@lendi-ui/container
Advanced tools
Comparing version 1.0.0 to 2.0.0
"use strict"; | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.container = function () { return "\n box-sizing: border-box;\n max-width: 1024px;\n margin: auto;\n"; }; | ||
var styled_components_1 = require("styled-components"); | ||
var spacing_1 = require("@lendi-ui/spacing"); | ||
exports.container = function () { return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n max-width: 1200px;\n width: 100%;\n ", ";\n"], ["\n box-sizing: border-box;\n max-width: 1200px;\n width: 100%;\n ", ";\n"])), spacing_1.mx('auto')); }; | ||
var Container = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), exports.container); | ||
exports.default = Container; | ||
var templateObject_1, templateObject_2; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,11 @@ | ||
export var container = function () { return "\n box-sizing: border-box;\n max-width: 1024px;\n margin: auto;\n"; }; | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
return cooked; | ||
}; | ||
import styled, { css } from 'styled-components'; | ||
import { mx } from '@lendi-ui/spacing'; | ||
export var container = function () { return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n max-width: 1200px;\n width: 100%;\n ", ";\n"], ["\n box-sizing: border-box;\n max-width: 1200px;\n width: 100%;\n ", ";\n"])), mx('auto')); }; | ||
var Container = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), container); | ||
export default Container; | ||
var templateObject_1, templateObject_2; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,4 @@ | ||
export declare const container: () => string; | ||
/// <reference types="react" /> | ||
export declare const container: () => import("styled-components").InterpolationValue[]; | ||
declare const Container: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>; | ||
export default Container; |
{ | ||
"name": "@lendi-ui/container", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"source": "src/index.ts", | ||
@@ -12,2 +12,8 @@ "main": "dist/cjs/index.js", | ||
"license": "ISC", | ||
"peerDependencies": { | ||
"styled-components": "^2.0.0 || ^3.0.0" | ||
}, | ||
"dependencies": { | ||
"@lendi-ui/spacing": "^1.1.0" | ||
}, | ||
"scripts": { | ||
@@ -17,4 +23,4 @@ "build:cjs": "tsc --project tsconfig.cjs.json", | ||
"build:types": "tsc --project tsconfig.types.json", | ||
"build": "yarn run build:cjs && yarn run build:esm && yarn run build:types" | ||
"build": "yarn run build:types && yarn run build:cjs && yarn run build:esm" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3636
28
0
2
+ Added@lendi-ui/spacing@^1.1.0
+ Added@lendi-ui/breakpoint@1.0.1(transitive)
+ Added@lendi-ui/spacing@1.1.0(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addedcore-js@1.2.7(transitive)
+ Addedcss-color-keywords@1.0.0(transitive)
+ Addedcss-to-react-native@2.3.2(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedhoist-non-react-statics@2.5.5(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpostcss-value-parser@3.3.1(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@16.14.0(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedstyled-components@3.4.10(transitive)
+ Addedstylis@3.5.4(transitive)
+ Addedstylis-rule-sheet@0.0.10(transitive)
+ Addedsupports-color@3.2.3(transitive)
+ Addedua-parser-js@0.7.39(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)