Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vtex/admin-ui-system

Package Overview
Dependencies
Maintainers
66
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/admin-ui-system - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0-next.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [0.5.0-next.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.4.2...@vtex/admin-ui-system@0.5.0-next.0) (2020-12-10)
### Bug Fixes
* **admin-ui:** add type reference ([c29587e](https://github.com/vtex/onda/commit/c29587ed7dadc728b1055d4221bc1b047e38c979))
## [0.4.2](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.4.1...@vtex/admin-ui-system@0.4.2) (2020-12-09)

@@ -8,0 +19,0 @@

6

dist/admin-ui-system.cjs.development.js

@@ -496,8 +496,2 @@ 'use strict';

});
Object.defineProperty(exports, 'jsx', {
enumerable: true,
get: function () {
return core.jsx;
}
});
exports.get = get;

@@ -504,0 +498,0 @@ exports.pick = lodash_pick;

2

dist/admin-ui-system.cjs.production.min.js

@@ -1,2 +0,2 @@

"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("react")),t=require("@theme-ui/core"),o=require("@emotion/css"),n=e(require("lodash.get")),i=e(require("lodash.pick")),s=e(require("lodash.omit")),a=e(require("lodash.merge")),d=e(require("@emotion/is-prop-valid")),c=e(require("tiny-invariant")),l=require("@theme-ui/match-media"),p=require("@emotion/react"),u=require("@theme-ui/color");function b(){return(b=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}var g=function(e){return"function"==typeof e},f=function(e){return 0===Object.keys(e).length&&e.constructor===Object};function m(e,r){var t={};for(var o in e)d(o)&&!r.includes(o)&&(t[o]=e[o]);return t}var h=function(e,r){var t;return b({},e,((t={})[r]=function(e,r){if("number"!=typeof r||r>=0){if("string"==typeof r&&r.startsWith("-")){var t=r.substring(1);return"-"+n(e,t,t)}return n(e,r,r)}var o=Math.abs(r),i=n(e,o,o);return"string"==typeof i?"-"+i:-1*Number(i)},t))},y={bg:"backgroundColor",fontSettings:"fontVariationSettings"},S=[40,52,64].map((function(e){return e+"em"})),v={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},x={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},B=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","top","bottom","left","right"].reduce(h,{}),k={color:"colors",backgroundColor:"colors",borderColor:"colors",caretColor:"colors",columnRuleColor:"colors",opacity:"opacities",transition:"transitions",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",scrollPadding:"space",scrollPaddingTop:"space",scrollPaddingRight:"space",scrollPaddingBottom:"space",scrollPaddingLeft:"space",scrollPaddingX:"space",scrollPaddingY:"space",inset:"space",insetBlock:"space",insetBlockEnd:"space",insetBlockStart:"space",insetInline:"space",insetInlineEnd:"space",insetInlineStart:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"border",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",borderBlock:"borders",borderBlockEnd:"borders",borderBlockEndStyle:"borderStyles",borderBlockEndWidth:"borderWidths",borderBlockStart:"borders",borderBlockStartStyle:"borderStyles",borderBlockStartWidth:"borderWidths",borderBlockStyle:"borderStyles",borderBlockWidth:"borderWidths",borderEndEndRadius:"radii",borderEndStartRadius:"radii",borderInline:"borders",borderInlineEnd:"borders",borderInlineEndStyle:"borderStyles",borderInlineEndWidth:"borderWidths",borderInlineStart:"borders",borderInlineStartStyle:"borderStyles",borderInlineStartWidth:"borderWidths",borderInlineStyle:"borderStyles",borderInlineWidth:"borderWidths",borderStartEndRadius:"radii",borderStartStartRadius:"radii",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",blockSize:"sizes",inlineSize:"sizes",maxBlockSize:"sizes",maxInlineSize:"sizes",minBlockSize:"sizes",minInlineSize:"sizes",fill:"colors",stroke:"colors",fontVariationSettings:"fontSettings",text:"text"},z=function e(r){return void 0===r&&(r={}),function(t){void 0===t&&(t={});var o=b({},v,"theme"in t?t.theme:t),i={},s="function"==typeof r?r(o):r;s.themeKey&&delete(s=b({},n(o,s.themeKey),s)).themeKey;var a=function(e){return function(r){var t={},o=[null].concat((r&&r.breakpoints||S).map((function(e){return"@media screen and (min-width: "+e+")"})));for(var n in e){var i=n,s=e[i];if("function"==typeof s&&(s=s(null!=r?r:{})),null!=s)if(Array.isArray(s))for(var a=0;a<s.slice(0,o.length).length;a++){var d,c=o[a];c?(t[c]=null!==(d=t[c])&&void 0!==d?d:{},null!=s[a]&&(t[c][i]=s[a])):t[i]=s[a]}else t[i]=s}return t}}(s)(o);for(var d in a){var c=a[d],l="function"==typeof c?c(o):c;if(l&&"object"==typeof l)i[d]=e(l)(o);else{var p=d in y?y[d]:d,u=n(o,p in k?k[p]:void 0,n(o,p,{})),g=n(B,p,n)(u,l,l),f=g&&"object"==typeof g;if(f&&(g=e(g)(o),Object.assign(i,g),delete i[p]),p in x)for(var m=x[p],h=0;h<m.length;h++)i[m[h]]=g;else f||(i[p]=g)}}return i}};function R(e){return function(o){return r.createElement(t.ThemeProvider,{theme:e},o.children)}}function W(e){return{stylesOf:function(r){return n(e,r,{})},cn:function(r){var t=z(r)(e);return o.css(t)}}}function I(){var e=t.useThemeUI().theme;return(f(e)||!e)&&c(!1),e}Object.keys(u).forEach((function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})})),Object.defineProperty(exports,"jsx",{enumerable:!0,get:function(){return t.jsx}}),exports.get=n,exports.pick=i,exports.omit=s,exports.isPropValid=d,Object.defineProperty(exports,"Global",{enumerable:!0,get:function(){return p.Global}}),Object.defineProperty(exports,"css",{enumerable:!0,get:function(){return p.css}}),Object.defineProperty(exports,"keyframes",{enumerable:!0,get:function(){return p.keyframes}}),exports.cleanProps=function(e,r){void 0===r&&(r=[]);var t=m(e,r);return s.apply(void 0,[t].concat(r))},exports.createElement=function(e){var t=e.children,o=e.component,n=e.htmlProps,i=e.element,s=e.ref;return g(t)?t(n):r.createElement(o,b({as:i},n,{ref:s}),null!=t?t:null==n?void 0:n.children)},exports.createSystem=function(e){var r=R(e),t=W(e);return{ThemeProvider:r,cn:t.cn,stylesOf:t.stylesOf}},exports.createThemeConsumers=W,exports.createThemeProvider=R,exports.forwardRef=function(e){return r.forwardRef(e)},exports.isFunction=g,exports.isObjectEmpty=f,exports.merge=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,[{}].concat(r))},exports.pickHTMLProps=m,exports.styles=z,exports.transformScale=h,exports.useClassName=function(e){return(0,W(I()).cn)(e)},exports.useResponsiveValue=function(e){var r=Array.isArray(e)?e:[e];return l.useResponsiveValue(r)},exports.useTheme=I;
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("react")),t=require("@theme-ui/core"),o=require("@emotion/css"),n=e(require("lodash.get")),i=e(require("lodash.pick")),a=e(require("lodash.omit")),s=e(require("lodash.merge")),d=e(require("@emotion/is-prop-valid")),c=e(require("tiny-invariant")),l=require("@theme-ui/match-media"),p=require("@emotion/react"),u=require("@theme-ui/color");function b(){return(b=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}var g=function(e){return"function"==typeof e},f=function(e){return 0===Object.keys(e).length&&e.constructor===Object};function m(e,r){var t={};for(var o in e)d(o)&&!r.includes(o)&&(t[o]=e[o]);return t}var h=function(e,r){var t;return b({},e,((t={})[r]=function(e,r){if("number"!=typeof r||r>=0){if("string"==typeof r&&r.startsWith("-")){var t=r.substring(1);return"-"+n(e,t,t)}return n(e,r,r)}var o=Math.abs(r),i=n(e,o,o);return"string"==typeof i?"-"+i:-1*Number(i)},t))},y={bg:"backgroundColor",fontSettings:"fontVariationSettings"},S=[40,52,64].map((function(e){return e+"em"})),v={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},B={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},k=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","top","bottom","left","right"].reduce(h,{}),x={color:"colors",backgroundColor:"colors",borderColor:"colors",caretColor:"colors",columnRuleColor:"colors",opacity:"opacities",transition:"transitions",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",scrollPadding:"space",scrollPaddingTop:"space",scrollPaddingRight:"space",scrollPaddingBottom:"space",scrollPaddingLeft:"space",scrollPaddingX:"space",scrollPaddingY:"space",inset:"space",insetBlock:"space",insetBlockEnd:"space",insetBlockStart:"space",insetInline:"space",insetInlineEnd:"space",insetInlineStart:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"border",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",borderBlock:"borders",borderBlockEnd:"borders",borderBlockEndStyle:"borderStyles",borderBlockEndWidth:"borderWidths",borderBlockStart:"borders",borderBlockStartStyle:"borderStyles",borderBlockStartWidth:"borderWidths",borderBlockStyle:"borderStyles",borderBlockWidth:"borderWidths",borderEndEndRadius:"radii",borderEndStartRadius:"radii",borderInline:"borders",borderInlineEnd:"borders",borderInlineEndStyle:"borderStyles",borderInlineEndWidth:"borderWidths",borderInlineStart:"borders",borderInlineStartStyle:"borderStyles",borderInlineStartWidth:"borderWidths",borderInlineStyle:"borderStyles",borderInlineWidth:"borderWidths",borderStartEndRadius:"radii",borderStartStartRadius:"radii",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",blockSize:"sizes",inlineSize:"sizes",maxBlockSize:"sizes",maxInlineSize:"sizes",minBlockSize:"sizes",minInlineSize:"sizes",fill:"colors",stroke:"colors",fontVariationSettings:"fontSettings",text:"text"},z=function e(r){return void 0===r&&(r={}),function(t){void 0===t&&(t={});var o=b({},v,"theme"in t?t.theme:t),i={},a="function"==typeof r?r(o):r;a.themeKey&&delete(a=b({},n(o,a.themeKey),a)).themeKey;var s=function(e){return function(r){var t={},o=[null].concat((r&&r.breakpoints||S).map((function(e){return"@media screen and (min-width: "+e+")"})));for(var n in e){var i=n,a=e[i];if("function"==typeof a&&(a=a(null!=r?r:{})),null!=a)if(Array.isArray(a))for(var s=0;s<a.slice(0,o.length).length;s++){var d,c=o[s];c?(t[c]=null!==(d=t[c])&&void 0!==d?d:{},null!=a[s]&&(t[c][i]=a[s])):t[i]=a[s]}else t[i]=a}return t}}(a)(o);for(var d in s){var c=s[d],l="function"==typeof c?c(o):c;if(l&&"object"==typeof l)i[d]=e(l)(o);else{var p=d in y?y[d]:d,u=n(o,p in x?x[p]:void 0,n(o,p,{})),g=n(k,p,n)(u,l,l),f=g&&"object"==typeof g;if(f&&(g=e(g)(o),Object.assign(i,g),delete i[p]),p in B)for(var m=B[p],h=0;h<m.length;h++)i[m[h]]=g;else f||(i[p]=g)}}return i}};function R(e){return function(o){return r.createElement(t.ThemeProvider,{theme:e},o.children)}}function W(e){return{stylesOf:function(r){return n(e,r,{})},cn:function(r){var t=z(r)(e);return o.css(t)}}}function I(){var e=t.useThemeUI().theme;return(f(e)||!e)&&c(!1),e}Object.keys(u).forEach((function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})})),exports.get=n,exports.pick=i,exports.omit=a,exports.isPropValid=d,Object.defineProperty(exports,"Global",{enumerable:!0,get:function(){return p.Global}}),Object.defineProperty(exports,"css",{enumerable:!0,get:function(){return p.css}}),Object.defineProperty(exports,"keyframes",{enumerable:!0,get:function(){return p.keyframes}}),exports.cleanProps=function(e,r){void 0===r&&(r=[]);var t=m(e,r);return a.apply(void 0,[t].concat(r))},exports.createElement=function(e){var t=e.children,o=e.component,n=e.htmlProps,i=e.element,a=e.ref;return g(t)?t(n):r.createElement(o,b({as:i},n,{ref:a}),null!=t?t:null==n?void 0:n.children)},exports.createSystem=function(e){var r=R(e),t=W(e);return{ThemeProvider:r,cn:t.cn,stylesOf:t.stylesOf}},exports.createThemeConsumers=W,exports.createThemeProvider=R,exports.forwardRef=function(e){return r.forwardRef(e)},exports.isFunction=g,exports.isObjectEmpty=f,exports.merge=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return s.apply(void 0,[{}].concat(r))},exports.pickHTMLProps=m,exports.styles=z,exports.transformScale=h,exports.useClassName=function(e){return(0,W(I()).cn)(e)},exports.useResponsiveValue=function(e){var r=Array.isArray(e)?e:[e];return l.useResponsiveValue(r)},exports.useTheme=I;
//# sourceMappingURL=admin-ui-system.cjs.production.min.js.map
import React from 'react';
import { ThemeProvider, useThemeUI } from '@theme-ui/core';
export { jsx } from '@theme-ui/core';
import { css } from '@emotion/css';

@@ -5,0 +4,0 @@ import get from 'lodash.get';

@@ -9,3 +9,2 @@ export * from './createSystem';

export { Global, css, keyframes } from '@emotion/react';
export { jsx } from '@theme-ui/core';
export * from '@theme-ui/color';
{
"name": "@vtex/admin-ui-system",
"version": "0.4.2",
"version": "0.5.0-next.0",
"main": "dist/index.js",

@@ -45,3 +45,3 @@ "module": "dist/admin-ui-system.esm.js",

"@emotion/is-prop-valid": "^1.0.0",
"@emotion/react": "^11.1.1",
"@emotion/react": "^11.1.2",
"@theme-ui/color": "^0.4.0-rc.5",

@@ -59,3 +59,3 @@ "@theme-ui/core": "^0.4.0-rc.5",

},
"gitHead": "ae2bf2ad5f80ce8fcad3352f21e0a7916dd4ab92"
"gitHead": "2879e6454d8d9f55410bbc1a5696aa9a98971e49"
}

@@ -10,3 +10,5 @@ export * from './createSystem'

export { Global, css, keyframes } from '@emotion/react'
export { jsx } from '@theme-ui/core'
export * from '@theme-ui/color'
// eslint-disable-next-line spaced-comment
/// <reference types="@emotion/react/types/css-prop" />

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc