Socket
Socket
Sign inDemoInstall

@vtex/admin-ui-theme

Package Overview
Dependencies
Maintainers
67
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.15.0 to 0.16.0

dist/config/components/alert.d.ts

17

CHANGELOG.md

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

# [0.16.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-theme@0.15.0...@vtex/admin-ui-theme@0.16.0) (2021-01-26)
### Bug Fixes
* **alert:** change fluid property to be responsive ([153fb6f](https://github.com/vtex/onda/commit/153fb6fb620cf84b73b5f53f81b11c9286b74184))
### Features
* **alert:** add component ([babff93](https://github.com/vtex/onda/commit/babff9313ee49d000831f3aee09d1cf03a43b9ca))
* **alert:** update alert according to the design specifications ([3b44b3d](https://github.com/vtex/onda/commit/3b44b3d619cb339c1919586dffd23a99aaca2dd3))
# [0.15.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-theme@0.14.0...@vtex/admin-ui-theme@0.15.0) (2021-01-26)

@@ -8,0 +25,0 @@

125

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

@@ -623,2 +623,66 @@ 'use strict';

var styles$3 = {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
height: 56,
paddingY: 3,
paddingLeft: 4,
paddingRight: 3,
borderRadius: 'default',
opacity: 0,
zIndex: 999,
transform: 'translate3d(0, -10px, 0)',
visibility: 'hidden',
transition: 'pop',
borderStyle: 'solid',
borderWidth: 1
};
var visible = {
opacity: 1,
visibility: 'visible',
transform: 'translate3d(0, 0, 0)'
};
var error = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/adminUiSystem.lightness('red.secondary.default', 0.94),
borderColor: 'red.secondary'
});
var success = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/adminUiSystem.lightness('green.secondary.default', 0.94),
borderColor: 'green.secondary'
});
var warning = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/adminUiSystem.lightness('yellow.secondary.default', 0.94),
borderColor: 'yellow.secondary'
});
var info = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/adminUiSystem.lightness('blue.secondary.default', 0.94),
borderColor: 'blue.secondary'
});
var fluid = {
height: 'full',
alignItems: 'flex-start'
};
var sticky = {
borderRadius: 'flat',
paddingRight: 4
};
function getAlertVariants(name, styles) {
var _ref;
if (styles === void 0) {
styles = {};
}
return _ref = {}, _ref["" + name] = styles, _ref[name + "-visible"] = _extends({}, styles, visible), _ref[name + "-fluid"] = _extends({}, styles, fluid), _ref[name + "-sticky"] = _extends({}, styles, sticky), _ref[name + "-visible-fluid"] = _extends({}, styles, visible, fluid), _ref[name + "-visible-sticky"] = _extends({}, styles, visible, sticky), _ref[name + "-fluid-sticky"] = _extends({}, styles, visible, sticky), _ref[name + "-visible-fluid-sticky"] = _extends({}, styles, visible, sticky, fluid), _ref;
}
var alert = /*#__PURE__*/_extends({}, /*#__PURE__*/getAlertVariants('error', error), /*#__PURE__*/getAlertVariants('warning', warning), /*#__PURE__*/getAlertVariants('info', info), /*#__PURE__*/getAlertVariants('success', success));
var clickableStyles = {

@@ -630,3 +694,3 @@ cursor: 'pointer',

};
var styles$3 = {
var styles$4 = {
table: {

@@ -738,3 +802,3 @@ display: 'table',

},
regular: /*#__PURE__*/adminUiSystem.merge(styles$3, {
regular: /*#__PURE__*/adminUiSystem.merge(styles$4, {
cell: {

@@ -744,3 +808,3 @@ height: 80

}),
compact: /*#__PURE__*/adminUiSystem.merge(styles$3, {
compact: /*#__PURE__*/adminUiSystem.merge(styles$4, {
cell: {

@@ -750,3 +814,3 @@ height: 48

}),
variable: /*#__PURE__*/adminUiSystem.merge(styles$3, {
variable: /*#__PURE__*/adminUiSystem.merge(styles$4, {
cell: {

@@ -925,3 +989,3 @@ verticalAlign: 'top',

var styles$4 = {
var styles$5 = {
fontSettings: 'regular',

@@ -945,3 +1009,3 @@ lh: 'highlight',

var controlGroup = {
'horizontal-regular': /*#__PURE__*/_extends({}, styles$4, {
'horizontal-regular': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '2',

@@ -953,3 +1017,3 @@ flexDirection: 'row',

}),
'horizontal-small': /*#__PURE__*/_extends({}, styles$4, {
'horizontal-small': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '1',

@@ -961,3 +1025,3 @@ flexDirection: 'row',

}),
'vertical-regular': /*#__PURE__*/_extends({}, styles$4, {
'vertical-regular': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '2',

@@ -969,3 +1033,3 @@ flexDirection: 'column',

}),
'vertical-small': /*#__PURE__*/_extends({}, styles$4, {
'vertical-small': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '1',

@@ -1058,3 +1122,3 @@ flexDirection: 'column',

var styles$5 = {
var styles$6 = {
appearance: 'none',

@@ -1140,3 +1204,3 @@ borderStyle: 'solid',

var checkbox = {
regular: /*#__PURE__*/_extends({}, styles$5, {
regular: /*#__PURE__*/_extends({}, styles$6, {
height: 20,

@@ -1147,3 +1211,3 @@ width: 20,

}),
small: /*#__PURE__*/_extends({}, styles$5, {
small: /*#__PURE__*/_extends({}, styles$6, {
height: 16,

@@ -1156,3 +1220,3 @@ width: 16,

var styles$6 = {
var styles$7 = {
appearance: 'none',

@@ -1217,3 +1281,3 @@ position: 'relative',

var toggle = {
regular: /*#__PURE__*/adminUiSystem.merge(styles$6, {
regular: /*#__PURE__*/adminUiSystem.merge(styles$7, {
height: 20,

@@ -1231,3 +1295,3 @@ width: 36,

}),
small: /*#__PURE__*/adminUiSystem.merge(styles$6, {
small: /*#__PURE__*/adminUiSystem.merge(styles$7, {
height: 16,

@@ -1314,3 +1378,3 @@ width: 28,

};
var styles$7 = {
var styles$8 = {
display: 'flex',

@@ -1322,3 +1386,3 @@ position: 'relative',

};
var error = {
var error$1 = {
textarea: {

@@ -1336,5 +1400,5 @@ borderColor: 'red',

var textArea = {
container: /*#__PURE__*/_extends({}, styles$7),
container: /*#__PURE__*/_extends({}, styles$8),
"default": /*#__PURE__*/_extends({}, textAreaInputStyle),
'container-error': /*#__PURE__*/_extends({}, styles$7, error),
'container-error': /*#__PURE__*/_extends({}, styles$8, error$1),
'text-container': {

@@ -1393,3 +1457,3 @@ display: 'flex',

var styles$8 = {
var styles$9 = {
width: 106,

@@ -1436,3 +1500,3 @@ height: 48,

var numericStepper = {
'default-error': /*#__PURE__*/_extends({}, styles$8, {
'default-error': /*#__PURE__*/_extends({}, styles$9, {
borderColor: 'red',

@@ -1447,3 +1511,3 @@ ':hover': {

}),
"default": styles$8,
"default": styles$9,
container: containerStyles

@@ -1880,3 +1944,3 @@ };

var styles$9 = {
var styles$a = {
display: 'inline-block',

@@ -1893,6 +1957,6 @@ width: 'full',

var skeleton = {
rect: /*#__PURE__*/_extends({}, styles$9, {
rect: /*#__PURE__*/_extends({}, styles$a, {
borderRadius: 'default'
}),
circle: /*#__PURE__*/_extends({}, styles$9, {
circle: /*#__PURE__*/_extends({}, styles$a, {
borderRadius: 'circle'

@@ -1944,3 +2008,3 @@ })

var styles$a = {
var styles$b = {
display: 'flex',

@@ -1956,11 +2020,11 @@ alignItems: 'center',

var avatar = {
base: /*#__PURE__*/_extends({}, styles$a, {
base: /*#__PURE__*/_extends({}, styles$b, {
bg: 'dark.primary',
color: 'light.primary'
}),
primary: /*#__PURE__*/_extends({}, styles$a, {
primary: /*#__PURE__*/_extends({}, styles$b, {
bg: 'blue',
color: 'light.primary'
}),
danger: /*#__PURE__*/_extends({}, styles$a, {
danger: /*#__PURE__*/_extends({}, styles$b, {
bg: 'red',

@@ -1994,3 +2058,4 @@ color: 'light.primary'

numericStepper: numericStepper,
select: select
select: select,
alert: alert
};

@@ -1997,0 +2062,0 @@

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("polished"),e=require("@vtex/admin-ui-system");function o(){return(o=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r}).apply(this,arguments)}var i={dark:{primary:"#323845",secondary:"#707685"},light:{primary:"#FFFFFF",secondary:"#F4F6FB"},mid:{primary:"#898F9E",secondary:"#C4C5CA",tertiary:"#E0E2E7"},focus:"#8DB6FA",blue:{default:"#2953B2",hover:r.darken(.08,"#2953B2"),pressed:r.darken(.16,"#2953B2"),secondary:{default:"#DAE3F5",hover:r.darken(.04,"#DAE3F5"),pressed:r.darken(.08,"#DAE3F5")}},red:{default:"#CB4242",hover:r.darken(.08,"#CB4242"),pressed:r.darken(.16,"#CB4242"),secondary:{default:"#FEDADA",hover:r.darken(.04,"#FEDADA"),pressed:r.darken(.08,"#FEDADA")}},yellow:{default:"#FFBA52",hover:r.darken(.08,"#FFBA52"),pressed:r.darken(.16,"#FFBA52"),secondary:{default:"#F6E0BA",hover:r.darken(.04,"#F6E0BA"),pressed:r.darken(.08,"#F6E0BA")}},green:{default:"#368369",hover:r.darken(.08,"#368369"),pressed:r.darken(.16,"#368369"),secondary:{default:"#CEE8DE",hover:r.darken(.04,"#CEE8DE"),pressed:r.darken(.08,"#CEE8DE")}}},t={0:"0rem",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",px:"0.0625rem","2px":"0.125rem"},a={sizes:{sm:"20rem",md:"48rem",lg:"56rem",xl:"64rem","1/2":"50%","1/4":"25%","2/4":"50%","3/4":"75%","1/8":"12.5%","2/8":"25%","3/8":"37.5%","4/8":"50%","5/8":"62.5%","6/8":"75%","7/8":"87.5%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screenHeight:"100vh",screenWidth:"100vw"},colors:i,space:t,breakpoints:["640px","768px","1024px","1280px"],transition:{snap:"all 70ms cubic-bezier(0.2, 0.2, 0.38, 0.9)",fade:"all 110ms cubic-bezier(0.2, 0.2, 0.38, 0.9)",pop:"all 150ms cubic-bezier(0.4, 0.14, 0.3, 1)",callout:"all 240ms cubic-bezier(0.4, 0.14, 0.3, 1)"},fonts:{sans:"VTEXTrustVF, -apple-system, system-ui, BlinkMacSystemFont, sans-serif",mono:'"Dank Mono", "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Consolas", "Monaco", "Menlo", monospace'},fontSizes:{0:"0.75rem",1:"0.875rem",2:"1rem",3:"1.125rem",4:"1.25rem"},text:{code:{fontFamily:"mono",lineHeight:"code",fontSize:1,fontFeatureSettings:"'clig' 0, 'calt' 0",fontVariantLigatures:"normal"},small:{fontFamily:"sans",lineHeight:"small",fontSettings:"regular",fontSize:0},body:{fontFamily:"sans",lineHeight:"body",fontSettings:"regular",fontSize:1},highlight:{fontFamily:"sans",lineHeight:"highlight",fontSettings:"regular",fontSize:1},action:{fontFamily:"sans",lineHeight:"action",fontSettings:"regular",fontSize:1,textTransform:"uppercase"},subtitle:{fontFamily:"sans",lineHeight:"subtitle",fontSettings:"regular",fontSize:2},headline:{fontFamily:"sans",lineHeight:"headline",fontSettings:"regular",fontSize:4}},border:{default:{borderWidth:"1px",borderStyle:"solid",borderRadius:"default",borderColor:"mid.tertiary"},"divider-bottom":{borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderColor:"mid.tertiary"},"divider-top":{borderTopWidth:"1px",borderTopStyle:"solid",borderTopLeftRadius:0,borderTopRightRadius:0,borderColor:"mid.tertiary"}},zIndices:{under:-1,plain:0,over:999,1:1,2:2,3:3,4:4,5:5},fontSettings:{hairline:"'wght' 30",thin:"'wght' 50",light:"'wght' 65",regular:"'wght' 92",medium:"'wght' 120",bold:"'wght' 170",black:"'wght' 200"},lineHeights:{code:1,small:1.125,body:1.25,highlight:1.25,action:1.5,subtitle:1.5,headline:1.5},shadows:{menu:"0rem 0rem 1rem 0rem rgba(0,0,0,0.10)",subtle:"0rem 0rem 1.5rem 0rem rgba(0,0,0,0.05)",focus:"0rem 0rem 0rem "+t["2px"]+" "+i.focus},borderRadius:{default:"4px",flat:"0px",pill:"100px",circle:"100%"}},d={regular:{fontSize:1,height:40,width:"auto",paddingLeft:4,paddingRight:4},"regular-icon":{fontSize:1,height:40,width:40,paddingLeft:1,paddingRight:1,svg:{width:24,minWidth:24,height:24,minHeight:24,margin:1}},"regular-icon-start":{fontSize:1,height:40,width:"auto",paddingLeft:2,paddingRight:3,svg:{width:24,minWidth:24,height:24,minHeight:24,margin:1}},"regular-icon-end":{fontSize:1,height:40,width:"auto",paddingLeft:3,paddingRight:2,svg:{width:24,minWidth:24,height:24,minHeight:24,margin:1}},small:{fontSize:0,height:32,width:"auto",paddingLeft:3,paddingRight:3},"small-icon":{fontSize:0,height:32,width:32,paddingLeft:"2px",paddingRight:"2px",svg:{width:20,minWidth:20,height:20,minHeight:20,margin:1}},"small-icon-start":{fontSize:0,height:32,width:"auto",paddingLeft:2,paddingRight:3,svg:{width:20,minWidth:20,height:20,minHeight:20,margin:1}},"small-icon-end":{fontSize:0,height:32,width:"auto",paddingLeft:3,paddingRight:2,svg:{width:20,minWidth:20,height:20,minHeight:20,margin:1}}},n={primary:{textTransform:"uppercase",color:"light.primary",backgroundColor:"blue",":hover":{backgroundColor:"blue.hover"},":active":{backgroundColor:"blue.pressed"},":disabled":{color:"dark.primary",backgroundColor:"mid.secondary"}},secondary:{textTransform:"uppercase",backgroundColor:"blue.secondary",color:"blue",":hover":{backgroundColor:"blue.secondary.hover"},":active":{backgroundColor:"blue.secondary.pressed"},":disabled":{color:"mid.primary",backgroundColor:"light.secondary"}},tertiary:{textTransform:"capitalize",backgroundColor:"transparent",color:"blue",":hover":{color:"blue.hover",backgroundColor:e.alpha("blue.secondary.hover",.24)},":active":{color:"blue.pressed",backgroundColor:e.alpha("blue.secondary.pressed",.32)},":disabled":{color:"mid.primary"}},danger:{textTransform:"uppercase",color:"light.primary",backgroundColor:"red",":hover":{backgroundColor:"red.hover"},":active":{backgroundColor:"red.pressed"},":disabled":{color:"dark.primary",backgroundColor:"mid.secondary"}},"danger-secondary":{textTransform:"uppercase",backgroundColor:"red.secondary",color:"red",":hover":{backgroundColor:"red.secondary.hover",color:"red.hover"},":active":{backgroundColor:"red.secondary.pressed",color:"red.pressed"},":disabled":{color:"mid.primary",backgroundColor:"light.secondary"}},"danger-tertiary":{textTransform:"capitalize",backgroundColor:"transparent",color:"red",":hover":{color:"red.hover",backgroundColor:e.alpha("red.secondary.hover",.24)},":active":{color:"red.pressed",backgroundColor:e.alpha("red.secondary.pressed",.32)},":disabled":{color:"mid.primary"}},"adaptative-dark":{color:"currentColor",backgroundColor:"transparent",":hover":{backgroundColor:e.alpha("dark.primary",.04)},":active":{backgroundColor:e.alpha("dark.primary",.08)},":disabled":{color:"mid.primary"}},"adaptative-light":{color:"currentColor",backgroundColor:"transparent",":hover":{backgroundColor:e.alpha("light.primary",.04)},":active":{backgroundColor:e.alpha("light.primary",.08)},":disabled":{color:"mid.primary"}}},l={fontFamily:"sans",fontSettings:"regular",border:"none",borderRadius:"default",cursor:"pointer",position:"relative",":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},s=o({},Object.keys(n).reduce((function(r,e){return o({},r,Object.keys(d).reduce((function(r,i){var t;return o({},r,((t={})[e+"-"+i]=o({},l,n[e],d[i]),t))}),[]))}),{})),g={border:"solid",borderWidth:1,borderColor:"mid.tertiary",margin:0},h={horizontal:o({},g,{borderBottom:0}),vertical:o({},g,{borderLeft:0})},c={display:"inline-flex",alignItems:"center",borderRadius:"100px",color:"dark.primary",border:"none","> svg:nth-of-type(1)":{marginRight:1}},b={blue:{bg:"blue.secondary"},green:{bg:"green.secondary"},red:{bg:"red.secondary"},black:{bg:"dark.primary",color:"light.primary"},yellow:{bg:"yellow.secondary"},purple:{bg:"#E4E0F0"}},p={small:{height:26,paddingX:"2",lineHeight:"small",fontSettings:"'wght' 80",fontSize:0,svg:{width:16,height:16,minWidth:16,minHeight:16},button:{height:16,width:16}},regular:{height:40,paddingX:"4",lineHeight:"subtitle",fontSettings:"regular",fontSize:2,svg:{width:20,minWidth:20,height:20,minHeight:20},button:{height:20,width:20}}},m=o({},Object.keys(b).reduce((function(r,e){return o({},r,Object.keys(p).reduce((function(r,i){var t;return o({},r,((t={})[e+"-"+i]=o({},c,b[e],p[i]),t))}),[]))}),{})),u={cursor:"pointer",":hover":{bg:"light.secondary"}},f={table:{display:"table",width:"full"},header:{display:"table-header-group"},body:{display:"table-row-group"},"row-ltr":{display:"table-row",textAlign:"left",bg:"light.primary"},"row-rtl":{display:"table-row",textAlign:"right",bg:"light.primary"},"row-clickable-ltr":o({display:"table-row",textAlign:"left",bg:"light.primary"},u),"row-clickable-rtl":o({display:"table-row",textAlign:"right",bg:"light.primary"},u),cell:{flex:1,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"mid.tertiary",display:"table-cell",verticalAlign:"middle",paddingX:2,variant:"text.body"},columnheader:{bg:"light.primary",height:48,display:"table-cell",verticalAlign:"middle",paddingX:2,color:"dark.secondary",fontWeight:"normal",variant:"text.body",flex:1,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"mid.tertiary"}},y={skeleton:{height:24},image:{regular:{width:56,minWidth:56,height:56,minHeight:56,borderRadius:4},compact:{width:32,minWidth:32,height:32,minHeight:32,borderRadius:4},variable:{minWidth:32,minHeight:32,borderRadius:4}},"image-preview":{small:{width:56,minWidth:56,height:56,minHeight:56,borderRadius:4,boxShadow:"menu"},regular:{width:156,minWidth:156,height:156,minHeight:156,borderRadius:4,boxShadow:"menu"},large:{width:256,minWidth:256,height:256,minHeight:256,borderRadius:4,boxShadow:"menu"}},regular:e.merge(f,{cell:{height:80}}),compact:e.merge(f,{cell:{height:48}}),variable:e.merge(f,{cell:{verticalAlign:"top",minHeight:48,paddingY:4}})},x={display:"flex",width:"full",alignItems:"center",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"mid.tertiary",justifyContent:"flex-start"},C={compact:o({},x,{height:48,"svg, img":{minHeight:32,maxHeight:32,minWidth:32,maxWidth:32}}),regular:o({},x,{height:80,"svg, img":{minHeight:48,maxHeight:48,minWidth:48,maxWidth:48}}),comfortable:o({},x,{height:128,"svg, img":{minHeight:80,maxHeight:80,minWidth:80,maxWidth:80}})},v={fontSettings:"regular",width:"full",height:48,borderStyle:"solid",borderWidth:1,paddingLeft:3,paddingRight:4,borderColor:"mid.tertiary",borderRadius:"default",bg:"inherit",marginY:1,fontSize:1,color:"dark.primary",outline:0,transition:"snap",":hover":{borderColor:"dark.primary"},":focus":{borderColor:"blue",boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"mid.primary"},":focus + label":{transform:"translate(1px, 4px) scale(0.875)"},":placeholder-shown:not(:focus) + label":{paddingTop:1},":not(:placeholder-shown) + label":{transform:"translate(1px, 4px) scale(0.875)"}},k={borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default},":hover":{borderColor:"red.hover"}};function w(r,o){var i;return void 0===o&&(o={}),(i={})[""+r]=e.merge(v,o),i[r+"-icon"]=e.merge(v,o,{paddingLeft:44}),i[r+"-suffix"]=e.merge(v,o,{paddingRight:"64px"}),i[r+"-clear"]=e.merge(v,o,{paddingRight:"44px"}),i[r+"-icon-clear"]=e.merge(v,o,{paddingLeft:"44px",paddingRight:"44px"}),i[r+"-icon-suffix"]=e.merge(v,o,{paddingRight:"64px",paddingLeft:"44px"}),i[r+"-suffix-clear"]=e.merge(v,o,{paddingRight:"75px"}),i[r+"-icon-suffix-clear"]=e.merge(v,o,{paddingLeft:"44px",paddingRight:"75px"}),i}var S=o({container:{position:"relative"},"container-icon":{position:"relative",label:{left:"44px"}},suffix:{color:"mid.primary",borderLeftStyle:"solid",borderLeftWidth:"1px",borderLeftColor:"mid.tertiary",paddingTop:"14px",marginTop:"px",width:"32px",paddingLeft:3,lineHeight:"body",fontSettings:"regular",fontSize:1},icon:{color:"mid.primary",top:1,left:0,marginX:3,marginTop:"14px",position:"absolute",height:20,width:20,minWidth:20,minHeight:20},buttons:{right:0,top:1,height:46,paddingRight:3,position:"absolute",display:"flex",color:"dark.secondary"}},w("input"),w("input-error",k)),R={fontSettings:"regular",lh:"highlight",marginTop:3,marginBottom:6,display:"flex",alignItems:"flex-start","& > label > input":{marginRight:2,marginLeft:0},"& > label":{cursor:"pointer",color:"dark.secondary",display:"flex",alignItems:"center"}},W={"horizontal-regular":o({},R,{fontSize:"2",flexDirection:"row","& label:not(:last-child)":{marginRight:6}}),"horizontal-small":o({},R,{fontSize:"1",flexDirection:"row","& label:not(:last-child)":{marginRight:5}}),"vertical-regular":o({},R,{fontSize:"2",flexDirection:"column","& label:not(:last-child)":{marginBottom:4}}),"vertical-small":o({},R,{fontSize:"1",flexDirection:"column","& label:not(:last-child)":{marginBottom:4}})},z={appearance:"none",margin:0,position:"relative",cursor:"pointer",borderStyle:"solid",borderWidth:"1px",borderColor:"mid.secondary",backgroundColor:"transparent",borderRadius:"circle",":after":{content:'""',display:"block",borderRadius:"circle",backgroundColor:"light.primary",opacity:0},":checked":{backgroundColor:"blue",borderColor:"blue",":after":{opacity:1},":hover":{backgroundColor:"blue.hover",borderColor:"blue.hover"},":active":{borderColor:"blue.pressed",backgroundColor:"blue.pressed"}},":disabled":{cursor:"not-allowed",backgroundColor:"mid.tertiary",borderColor:"mid.primary",":after":{backgroundColor:"mid.primary"}},":hover":{borderColor:"dark.primary"},":active":{borderColor:"dark.secondary",backgroundColor:"blue.secondary"},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},H={regular:e.merge(z,{height:20,width:20,padding:"5px",":after":{width:8,height:8}}),small:e.merge(z,{height:16,width:16,padding:1,":after":{width:6,height:6}})},F={appearance:"none",borderStyle:"solid",borderWidth:1,borderColor:"mid.primary",borderRadius:3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center","&:checked":{backgroundColor:"blue",borderColor:"blue","&:after":{content:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' width='10' height='8' fill='none'><path d='M9 1L4 7L1 4' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path></svg>\")"},"&[disabled]:after":{content:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' width='10' height='8' fill='none'><path d='M9 1L4 7L1 4' stroke='%23898F9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path></svg>\")"},"&:hover":{backgroundColor:"blue.hover",borderColor:"blue.hover"},"&:active":{backgroundColor:"blue.pressed",borderColor:"blue.pressed"}},"&:indeterminate":{backgroundColor:"blue.secondary",borderColor:"blue",color:"blue","&:after":{content:'""',position:"absolute",width:8,height:0,borderWidth:1,borderStyle:"solid",borderLeft:0,borderRight:0,borderRadius:3,borderColor:"currentColor"},"&:disabled":{backgroundColor:"mid.secondary",borderColor:"mid.primary",color:"mid.primary"},"&:hover":{borderColor:"blue.hover",color:"blue.hover",bg:"blue.secondary.hover"},"&:active":{borderColor:"blue.pressed",color:"blue.pressed"}},"&:disabled":{backgroundColor:"mid.secondary",borderColor:"mid.primary",color:"mid.primary"},"&:hover":{borderColor:"dark.primary"},"&:active":{backgroundColor:"blue.secondary",borderColor:"dark.secondary"},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},B={regular:o({},F,{height:20,width:20,minWidth:20,minHeight:20}),small:o({},F,{height:16,width:16,minWidth:16,minHeight:16})},L={appearance:"none",position:"relative",cursor:"pointer",borderRadius:"6.25rem",backgroundColor:"mid.primary",borderStyle:"solid",borderColor:"mid.primary",borderWidth:1,"&:after":{content:'""',display:"block",position:"absolute",borderRadius:"1.25rem",backgroundColor:"light.primary",transition:"transform .25s ease"},"&:checked":{backgroundColor:"green",borderColor:"green","&:hover":{backgroundColor:"green.hover",borderColor:"green.hover"},"&:disabled":{backgroundColor:"mid.primary",borderColor:"mid.primary","&:after":{backgroundColor:"mid.secondary"}}},"&:hover":{backgroundColor:"dark.secondary",borderColor:"dark.secondary"},"&:disabled":{backgroundColor:"mid.primary",borderColor:"mid.primary","&:after":{backgroundColor:"mid.secondary"}},":not(:checked):active":{backgroundColor:"dark.secondary",borderColor:"dark.secondary",":after":{backgroundColor:"blue.secondary"}},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},T={regular:e.merge(L,{height:20,width:36,"&:after":{width:18,height:18},"&:checked":{"&:after":{transform:"translateX(16px)"}}}),small:e.merge(L,{height:16,width:28,"&:after":{width:14,height:14},"&:checked":{"&:after":{transform:"translateX(12px)"}}})},A={paddingTop:24,height:100,resize:"none",fontSettings:"regular",width:"full",borderStyle:"solid",borderWidth:1,paddingLeft:3,paddingRight:4,borderColor:"mid.tertiary",borderRadius:"default",bg:"inherit",marginY:1,fontSize:1,color:"dark.primary",outline:0,transition:"snap",":hover":{borderColor:"dark.primary"},":focus":{borderColor:"blue",boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"mid.primary"},":focus + label":{transform:"translate(1px, 4px) scale(0.875)"},":placeholder-shown:not(:focus) + label":{paddingTop:1},":not(:placeholder-shown) + label":{transform:"translate(1px, 4px) scale(0.875)"}},E={display:"flex",position:"relative",justifyContent:"flex-start",flexDirection:"column",width:"full"},I={textarea:{borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default},":hover":{borderColor:"red.hover"}}},D={container:o({},E),default:o({},A),"container-error":o({},E,I),"text-container":{display:"flex",justifyContent:"space-between",paddingTop:1},"floating-label":{fontSize:1,left:12,paddingTop:2,color:"mid.primary",marginBottom:3,position:"absolute",transform:"translate(0, 16px) scale(1)",transformOrigin:"top left",transition:"all 0.2s ease-out;"}},j={visibility:"hidden",cursor:"pointer",bg:"light.primary",borderRadius:"default",borderWidth:1,borderStyle:"solid",borderColor:"mid.secondary",boxShadow:"menu",outline:"none",marginTop:1,paddingY:4,width:"max-content",position:"absolute",zIndex:999},X={display:"flex",alignItems:"center",height:24,paddingX:4,cursor:"pointer",bg:"light.primary"},Y={menu:j,"menu-visible":o({},j,{visibility:"visible"}),item:X,"item-active":o({},X,{bg:"blue.secondary"})},O={width:106,height:48,appearance:"none","::-webkit-inner-spin-button ":{WebkitAppearance:"none",margin:0},paddingLeft:36,paddingRight:36,textAlign:"center",color:"dark.primary",borderStyle:"solid",borderWidth:1,borderColor:"mid.primary",borderRadius:"default",backgroundColor:"light.primary",":hover":{borderColor:"dark.primary"},":disabled":{backgroundColor:"light.secondary",color:"mid.primary"},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},M={"default-error":o({},O,{borderColor:"red",":hover":{borderColor:"red"},":focus":{outline:"none",boxShadow:"none"}}),default:O,container:{position:"relative",display:"flex",alignItems:"center",height:48,width:106,paddingY:12}},P={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",height:48,width:"inherit",boxShadow:"0 0 0 0 transparent",borderStyle:"solid",borderWidth:1,paddingLeft:3,paddingRight:4,borderColor:"mid.secondary",borderRadius:"default",bg:"inherit",fontSize:1,color:"dark.secondary",outline:0,":hover":{borderColor:"mid.primary"},":hover > svg":{color:"dark.primary"},":focus":{borderColor:i.blue.default,boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"dark.secondary",cursor:"initial"},":disabled > svg":{color:"dark.secondary"}},V={position:"absolute",top:"25%",lineHeight:1.5,paddingLeft:3,color:"dark.secondary",zIndex:2},q={color:"dark.primary",outline:"none",fontSize:1,appearance:"none",backgroundColor:"transparent",border:"1px solid",borderColor:"mid.secondary",borderRadius:"default",paddingTop:"1.125rem",paddingLeft:3,width:"100%",height:"100%",":focus":{borderColor:"blue",boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"dark.primary",opacity:1},":disabled > svg":{color:"dark.secondary"}},_={container:{width:288,position:"relative"},optionsPortal:{position:"absolute",zIndex:999,width:"inherit",backgroundColor:"light.primary",outline:"none"},optionsContainer:{display:"flex",flexDirection:"column",borderWidth:1,borderStyle:"solid",borderColor:"mid.primary",borderRadius:"default"},optionsLabel:{text:"small",lineHeight:1.5,paddingTop:2,paddingBottom:1,paddingLeft:3,color:"mid.primary"},optionsUl:{paddingBottom:1,maxHeight:150,width:"inherit",overflowY:"auto",borderBottomLeftRadius:4,borderBottomRightRadius:4},item:{color:"dark.primary",verticalAlign:"middle",listStyleType:"none",display:"flex",alignItems:"center",cursor:"pointer"},button:P,buttonError:o({},P,{borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default},":hover":{borderColor:"red"}}),selectedItem:{lineHeight:1.43,color:"dark.primary",float:"left",marginTop:"1.125rem",":not(:empty) + label":{fontSize:0,lineHeight:1.5}},label:{lineHeight:1.43,position:"absolute",left:12},mobileContainer:{position:"relative",width:288,height:48},mobileLabel:V,mobileLabelSelectedItem:o({},V,{top:2,text:"small"}),mobileSelect:q,mobileSelectError:o({},q,{borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default}}),mobileIcon:{position:"absolute",right:12,top:"25%",color:"dark.secondary"}},G={marginY:"2px",paddingX:1,fontSize:1,border:"none",textTransform:"initial",width:"full",div:{justifyContent:"flex-start"},svg:{marginLeft:0,marginRight:2}},U={display:"flex",flexDirection:"column",bg:"light.primary",marginTop:1,padding:3,minWidth:18,borderRadius:3,borderWidth:1,borderStyle:"solid",borderColor:"mid.secondary",boxShadow:"menu",hr:{marginY:2,borderStyle:"solid",borderBottomWidth:1,borderTop:"none",borderLeft:"none",borderRight:"none",borderColor:"mid.secondary",width:"calc(100% -"+t[3]+")",marginX:"-"+t[3],outline:"none"},item:o({},G,{color:"dark.primary",":focus":{bg:e.alpha("blue.secondary.default",.32),outline:"none",boxShadow:"none"},":hover":{color:"dark.primary"}}),"item-dangerous":o({},G,{color:"red",":focus":{bg:e.alpha("red.secondary.default",.32),outline:"none",boxShadow:"none"},":hover":{color:"red"}})},J={outline:"none",bg:"light.primary",borderRadius:3,borderColor:"mid.tertiary",borderStyle:"solid",borderWidth:1,position:"relative",overflowY:"auto",overflowX:"hidden",maxHeight:"3/4",margin:2,opacity:0,transform:"translate3d(0, 48px, 0)",transition:"pop","&[data-enter]":{opacity:1,transform:"translate3d(0, 0, 0)"}},K={display:"flex",justifyContent:"space-between",alignItems:"center",borderColor:"mid.tertiary",borderStyle:"solid","button + button":{marginLeft:4},paddingY:4,paddingX:6,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:1,h1:{variant:"text.subtitle",lineHeight:0},position:"sticky",top:0,left:0,right:0,bg:"light.primary",zIndex:999},N={display:"flex",justifyContent:"space-between",alignItems:"center",borderColor:"mid.tertiary",borderStyle:"solid",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,position:"sticky",bottom:0,left:0,right:0,bg:"light.primary",padding:6,flexDirection:["column-reverse","column-reverse","row"],">button":{width:["full","full","inherit"]},"* + button":{marginLeft:[0,0,4],marginBottom:[4,4,0]}},Q={paddingTop:4,paddingX:6,paddingBottom:6},Z=o({},Q,{scrollbarWidth:"thin",scrollbarColor:"light.primary","::-webkit-scrollbar":{width:"8px"},"::-webkit-scrollbar-thumb":{backgroundColor:"mid.tertiary",borderRadius:"6px",border:"2px solid",color:"light.primary"}},{overflowY:"auto"}),$={display:"inline-block",width:"full",height:"full",backgroundColor:"light.secondary",backgroundSize:"200px 100%",backgroundRepeat:"no-repeat",lineHeight:1,borderRadius:3,backgroundImage:"linear-gradient(\n 90deg,\n "+i.light.secondary+",\n white,\n "+i.light.secondary+"\n )"},rr={display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,padding:2,borderRadius:"circle",textTransform:"uppercase"};exports.theme=o({},a,{components:{button:s,list:C,table:y,controlGroup:W,toggle:T,checkbox:B,radio:H,abstractInput:S,input:{container:{display:"flex",position:"relative",justifyContent:"flex-start",flexDirection:"column"},"floating-label":{fontSize:1,left:12,paddingTop:2,color:"mid.primary",marginBottom:3,position:"absolute",transform:"translate(0, 16px) scale(1)",transformOrigin:"top left",transition:"all 0.2s ease-out;"},"text-container":{display:"flex",justifyContent:"space-between",alignItems:"",paddingTop:1}},tooltip:{backgroundColor:"dark.primary",color:"light.primary",fontSize:1,paddingY:2,paddingX:3,borderRadius:3,maxWidth:240,minHeight:32,zIndex:"over"},menu:U,modal:{backdrop:{display:"flex",flexDirection:"column",justifyContent:["flex-end","flex-end","center"],alignItems:"center",backgroundColor:r.rgba(i.dark.primary,.5),position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,opacity:0,transition:"fade","&[data-enter]":{opacity:1}},"surface-small":o({},J,{width:["calc(100% - 16px)","calc(100% - 16px)",320]}),"surface-regular":o({},J,{width:["calc(100% - 16px)","calc(100% - 16px)",560]}),"surface-large":o({},J,{width:["calc(100% - 16px)","calc(100% - 16px)",800]}),"header-small":o({},K,{height:56}),"header-regular":o({},K,{height:56}),"header-large":o({},K,{height:80}),"content-with-small-scroll-area":o({},Z,{height:"calc(100% - 3.5rem)"}),"content-with-regular-scroll-area":o({},Z,{height:"calc(100% - 3.5rem)"}),"content-with-large-scroll-area":o({},Z,{height:"calc(100% - 5rem)"}),"content-with-larger-scroll-area":o({},Z,{height:"calc(100% - 7rem)"}),"content-with-extra-large-scroll-area":o({},Z,{height:"calc(100% - 10rem)"}),content:o({},Q),"footer-small":o({},N,{borderTopWidth:0,pt:0,">button":{width:"full"},minHeight:"3.5rem"}),"footer-regular":o({},N,{borderTopWidth:1,minHeight:"3.5rem"}),"footer-large":o({},N,{borderTopWidth:1,minHeight:"5rem"})},skeleton:{rect:o({},$,{borderRadius:"default"}),circle:o({},$,{borderRadius:"circle"})},divider:h,collapsible:{container:{bg:"light.primary",borderColor:"mid.tertiary",borderStyle:"solid",borderWidth:1,borderRadius:"default"},"container-grouped":{bg:"light.primary",borderRadius:"default"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:6,paddingLeft:2,"div > button:nth-of-type(n+2)":{marginLeft:1}},section:{paddingX:6,paddingBottom:6},"header-nested":{display:"flex",alignItems:"center",justifyContent:"space-between",padding:4,paddingLeft:0,"div > button:nth-of-type(n+2)":{marginLeft:1}},"section-nested":{paddingX:4,paddingBottom:4}},avatar:{base:o({},rr,{bg:"dark.primary",color:"light.primary"}),primary:o({},rr,{bg:"blue",color:"light.primary"}),danger:o({},rr,{bg:"red",color:"light.primary"})},tag:m,anchor:{font:"inherit",color:"blue",textDecoration:"none",":active":{color:"blue.pressed",textDecoration:"underline"},":hover":{color:"blue.hover",textDecoration:"underline"}},dropdown:Y,textArea:D,numericStepper:M,select:_}});
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("polished"),e=require("@vtex/admin-ui-system");function o(){return(o=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r}).apply(this,arguments)}var i={dark:{primary:"#323845",secondary:"#707685"},light:{primary:"#FFFFFF",secondary:"#F4F6FB"},mid:{primary:"#898F9E",secondary:"#C4C5CA",tertiary:"#E0E2E7"},focus:"#8DB6FA",blue:{default:"#2953B2",hover:r.darken(.08,"#2953B2"),pressed:r.darken(.16,"#2953B2"),secondary:{default:"#DAE3F5",hover:r.darken(.04,"#DAE3F5"),pressed:r.darken(.08,"#DAE3F5")}},red:{default:"#CB4242",hover:r.darken(.08,"#CB4242"),pressed:r.darken(.16,"#CB4242"),secondary:{default:"#FEDADA",hover:r.darken(.04,"#FEDADA"),pressed:r.darken(.08,"#FEDADA")}},yellow:{default:"#FFBA52",hover:r.darken(.08,"#FFBA52"),pressed:r.darken(.16,"#FFBA52"),secondary:{default:"#F6E0BA",hover:r.darken(.04,"#F6E0BA"),pressed:r.darken(.08,"#F6E0BA")}},green:{default:"#368369",hover:r.darken(.08,"#368369"),pressed:r.darken(.16,"#368369"),secondary:{default:"#CEE8DE",hover:r.darken(.04,"#CEE8DE"),pressed:r.darken(.08,"#CEE8DE")}}},t={0:"0rem",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",px:"0.0625rem","2px":"0.125rem"},a={sizes:{sm:"20rem",md:"48rem",lg:"56rem",xl:"64rem","1/2":"50%","1/4":"25%","2/4":"50%","3/4":"75%","1/8":"12.5%","2/8":"25%","3/8":"37.5%","4/8":"50%","5/8":"62.5%","6/8":"75%","7/8":"87.5%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screenHeight:"100vh",screenWidth:"100vw"},colors:i,space:t,breakpoints:["640px","768px","1024px","1280px"],transition:{snap:"all 70ms cubic-bezier(0.2, 0.2, 0.38, 0.9)",fade:"all 110ms cubic-bezier(0.2, 0.2, 0.38, 0.9)",pop:"all 150ms cubic-bezier(0.4, 0.14, 0.3, 1)",callout:"all 240ms cubic-bezier(0.4, 0.14, 0.3, 1)"},fonts:{sans:"VTEXTrustVF, -apple-system, system-ui, BlinkMacSystemFont, sans-serif",mono:'"Dank Mono", "Operator Mono", "Fira Code Retina", "Fira Code", "FiraCode-Retina", "Consolas", "Monaco", "Menlo", monospace'},fontSizes:{0:"0.75rem",1:"0.875rem",2:"1rem",3:"1.125rem",4:"1.25rem"},text:{code:{fontFamily:"mono",lineHeight:"code",fontSize:1,fontFeatureSettings:"'clig' 0, 'calt' 0",fontVariantLigatures:"normal"},small:{fontFamily:"sans",lineHeight:"small",fontSettings:"regular",fontSize:0},body:{fontFamily:"sans",lineHeight:"body",fontSettings:"regular",fontSize:1},highlight:{fontFamily:"sans",lineHeight:"highlight",fontSettings:"regular",fontSize:1},action:{fontFamily:"sans",lineHeight:"action",fontSettings:"regular",fontSize:1,textTransform:"uppercase"},subtitle:{fontFamily:"sans",lineHeight:"subtitle",fontSettings:"regular",fontSize:2},headline:{fontFamily:"sans",lineHeight:"headline",fontSettings:"regular",fontSize:4}},border:{default:{borderWidth:"1px",borderStyle:"solid",borderRadius:"default",borderColor:"mid.tertiary"},"divider-bottom":{borderBottomWidth:"1px",borderBottomStyle:"solid",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderColor:"mid.tertiary"},"divider-top":{borderTopWidth:"1px",borderTopStyle:"solid",borderTopLeftRadius:0,borderTopRightRadius:0,borderColor:"mid.tertiary"}},zIndices:{under:-1,plain:0,over:999,1:1,2:2,3:3,4:4,5:5},fontSettings:{hairline:"'wght' 30",thin:"'wght' 50",light:"'wght' 65",regular:"'wght' 92",medium:"'wght' 120",bold:"'wght' 170",black:"'wght' 200"},lineHeights:{code:1,small:1.125,body:1.25,highlight:1.25,action:1.5,subtitle:1.5,headline:1.5},shadows:{menu:"0rem 0rem 1rem 0rem rgba(0,0,0,0.10)",subtle:"0rem 0rem 1.5rem 0rem rgba(0,0,0,0.05)",focus:"0rem 0rem 0rem "+t["2px"]+" "+i.focus},borderRadius:{default:"4px",flat:"0px",pill:"100px",circle:"100%"}},d={regular:{fontSize:1,height:40,width:"auto",paddingLeft:4,paddingRight:4},"regular-icon":{fontSize:1,height:40,width:40,paddingLeft:1,paddingRight:1,svg:{width:24,minWidth:24,height:24,minHeight:24,margin:1}},"regular-icon-start":{fontSize:1,height:40,width:"auto",paddingLeft:2,paddingRight:3,svg:{width:24,minWidth:24,height:24,minHeight:24,margin:1}},"regular-icon-end":{fontSize:1,height:40,width:"auto",paddingLeft:3,paddingRight:2,svg:{width:24,minWidth:24,height:24,minHeight:24,margin:1}},small:{fontSize:0,height:32,width:"auto",paddingLeft:3,paddingRight:3},"small-icon":{fontSize:0,height:32,width:32,paddingLeft:"2px",paddingRight:"2px",svg:{width:20,minWidth:20,height:20,minHeight:20,margin:1}},"small-icon-start":{fontSize:0,height:32,width:"auto",paddingLeft:2,paddingRight:3,svg:{width:20,minWidth:20,height:20,minHeight:20,margin:1}},"small-icon-end":{fontSize:0,height:32,width:"auto",paddingLeft:3,paddingRight:2,svg:{width:20,minWidth:20,height:20,minHeight:20,margin:1}}},n={primary:{textTransform:"uppercase",color:"light.primary",backgroundColor:"blue",":hover":{backgroundColor:"blue.hover"},":active":{backgroundColor:"blue.pressed"},":disabled":{color:"dark.primary",backgroundColor:"mid.secondary"}},secondary:{textTransform:"uppercase",backgroundColor:"blue.secondary",color:"blue",":hover":{backgroundColor:"blue.secondary.hover"},":active":{backgroundColor:"blue.secondary.pressed"},":disabled":{color:"mid.primary",backgroundColor:"light.secondary"}},tertiary:{textTransform:"capitalize",backgroundColor:"transparent",color:"blue",":hover":{color:"blue.hover",backgroundColor:e.alpha("blue.secondary.hover",.24)},":active":{color:"blue.pressed",backgroundColor:e.alpha("blue.secondary.pressed",.32)},":disabled":{color:"mid.primary"}},danger:{textTransform:"uppercase",color:"light.primary",backgroundColor:"red",":hover":{backgroundColor:"red.hover"},":active":{backgroundColor:"red.pressed"},":disabled":{color:"dark.primary",backgroundColor:"mid.secondary"}},"danger-secondary":{textTransform:"uppercase",backgroundColor:"red.secondary",color:"red",":hover":{backgroundColor:"red.secondary.hover",color:"red.hover"},":active":{backgroundColor:"red.secondary.pressed",color:"red.pressed"},":disabled":{color:"mid.primary",backgroundColor:"light.secondary"}},"danger-tertiary":{textTransform:"capitalize",backgroundColor:"transparent",color:"red",":hover":{color:"red.hover",backgroundColor:e.alpha("red.secondary.hover",.24)},":active":{color:"red.pressed",backgroundColor:e.alpha("red.secondary.pressed",.32)},":disabled":{color:"mid.primary"}},"adaptative-dark":{color:"currentColor",backgroundColor:"transparent",":hover":{backgroundColor:e.alpha("dark.primary",.04)},":active":{backgroundColor:e.alpha("dark.primary",.08)},":disabled":{color:"mid.primary"}},"adaptative-light":{color:"currentColor",backgroundColor:"transparent",":hover":{backgroundColor:e.alpha("light.primary",.04)},":active":{backgroundColor:e.alpha("light.primary",.08)},":disabled":{color:"mid.primary"}}},l={fontFamily:"sans",fontSettings:"regular",border:"none",borderRadius:"default",cursor:"pointer",position:"relative",":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},s=o({},Object.keys(n).reduce((function(r,e){return o({},r,Object.keys(d).reduce((function(r,i){var t;return o({},r,((t={})[e+"-"+i]=o({},l,n[e],d[i]),t))}),[]))}),{})),g={border:"solid",borderWidth:1,borderColor:"mid.tertiary",margin:0},h={horizontal:o({},g,{borderBottom:0}),vertical:o({},g,{borderLeft:0})},c={display:"inline-flex",alignItems:"center",borderRadius:"100px",color:"dark.primary",border:"none","> svg:nth-of-type(1)":{marginRight:1}},b={blue:{bg:"blue.secondary"},green:{bg:"green.secondary"},red:{bg:"red.secondary"},black:{bg:"dark.primary",color:"light.primary"},yellow:{bg:"yellow.secondary"},purple:{bg:"#E4E0F0"}},p={small:{height:26,paddingX:"2",lineHeight:"small",fontSettings:"'wght' 80",fontSize:0,svg:{width:16,height:16,minWidth:16,minHeight:16},button:{height:16,width:16}},regular:{height:40,paddingX:"4",lineHeight:"subtitle",fontSettings:"regular",fontSize:2,svg:{width:20,minWidth:20,height:20,minHeight:20},button:{height:20,width:20}}},m=o({},Object.keys(b).reduce((function(r,e){return o({},r,Object.keys(p).reduce((function(r,i){var t;return o({},r,((t={})[e+"-"+i]=o({},c,b[e],p[i]),t))}),[]))}),{})),u={display:"flex",alignItems:"center",justifyContent:"space-between",height:56,paddingY:3,paddingLeft:4,paddingRight:3,borderRadius:"default",opacity:0,zIndex:999,transform:"translate3d(0, -10px, 0)",visibility:"hidden",transition:"pop",borderStyle:"solid",borderWidth:1},f={opacity:1,visibility:"visible",transform:"translate3d(0, 0, 0)"},y=o({},u,{bg:e.lightness("red.secondary.default",.94),borderColor:"red.secondary"}),x=o({},u,{bg:e.lightness("green.secondary.default",.94),borderColor:"green.secondary"}),v=o({},u,{bg:e.lightness("yellow.secondary.default",.94),borderColor:"yellow.secondary"}),C=o({},u,{bg:e.lightness("blue.secondary.default",.94),borderColor:"blue.secondary"}),k={height:"full",alignItems:"flex-start"},w={borderRadius:"flat",paddingRight:4};function S(r,e){var i;return void 0===e&&(e={}),(i={})[""+r]=e,i[r+"-visible"]=o({},e,f),i[r+"-fluid"]=o({},e,k),i[r+"-sticky"]=o({},e,w),i[r+"-visible-fluid"]=o({},e,f,k),i[r+"-visible-sticky"]=o({},e,f,w),i[r+"-fluid-sticky"]=o({},e,f,w),i[r+"-visible-fluid-sticky"]=o({},e,f,w,k),i}var R=o({},S("error",y),S("warning",v),S("info",C),S("success",x)),W={cursor:"pointer",":hover":{bg:"light.secondary"}},z={table:{display:"table",width:"full"},header:{display:"table-header-group"},body:{display:"table-row-group"},"row-ltr":{display:"table-row",textAlign:"left",bg:"light.primary"},"row-rtl":{display:"table-row",textAlign:"right",bg:"light.primary"},"row-clickable-ltr":o({display:"table-row",textAlign:"left",bg:"light.primary"},W),"row-clickable-rtl":o({display:"table-row",textAlign:"right",bg:"light.primary"},W),cell:{flex:1,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"mid.tertiary",display:"table-cell",verticalAlign:"middle",paddingX:2,variant:"text.body"},columnheader:{bg:"light.primary",height:48,display:"table-cell",verticalAlign:"middle",paddingX:2,color:"dark.secondary",fontWeight:"normal",variant:"text.body",flex:1,borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"mid.tertiary"}},H={skeleton:{height:24},image:{regular:{width:56,minWidth:56,height:56,minHeight:56,borderRadius:4},compact:{width:32,minWidth:32,height:32,minHeight:32,borderRadius:4},variable:{minWidth:32,minHeight:32,borderRadius:4}},"image-preview":{small:{width:56,minWidth:56,height:56,minHeight:56,borderRadius:4,boxShadow:"menu"},regular:{width:156,minWidth:156,height:156,minHeight:156,borderRadius:4,boxShadow:"menu"},large:{width:256,minWidth:256,height:256,minHeight:256,borderRadius:4,boxShadow:"menu"}},regular:e.merge(z,{cell:{height:80}}),compact:e.merge(z,{cell:{height:48}}),variable:e.merge(z,{cell:{verticalAlign:"top",minHeight:48,paddingY:4}})},F={display:"flex",width:"full",alignItems:"center",borderBottomWidth:1,borderBottomStyle:"solid",borderBottomColor:"mid.tertiary",justifyContent:"flex-start"},L={compact:o({},F,{height:48,"svg, img":{minHeight:32,maxHeight:32,minWidth:32,maxWidth:32}}),regular:o({},F,{height:80,"svg, img":{minHeight:48,maxHeight:48,minWidth:48,maxWidth:48}}),comfortable:o({},F,{height:128,"svg, img":{minHeight:80,maxHeight:80,minWidth:80,maxWidth:80}})},B={fontSettings:"regular",width:"full",height:48,borderStyle:"solid",borderWidth:1,paddingLeft:3,paddingRight:4,borderColor:"mid.tertiary",borderRadius:"default",bg:"inherit",marginY:1,fontSize:1,color:"dark.primary",outline:0,transition:"snap",":hover":{borderColor:"dark.primary"},":focus":{borderColor:"blue",boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"mid.primary"},":focus + label":{transform:"translate(1px, 4px) scale(0.875)"},":placeholder-shown:not(:focus) + label":{paddingTop:1},":not(:placeholder-shown) + label":{transform:"translate(1px, 4px) scale(0.875)"}},T={borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default},":hover":{borderColor:"red.hover"}};function I(r,o){var i;return void 0===o&&(o={}),(i={})[""+r]=e.merge(B,o),i[r+"-icon"]=e.merge(B,o,{paddingLeft:44}),i[r+"-suffix"]=e.merge(B,o,{paddingRight:"64px"}),i[r+"-clear"]=e.merge(B,o,{paddingRight:"44px"}),i[r+"-icon-clear"]=e.merge(B,o,{paddingLeft:"44px",paddingRight:"44px"}),i[r+"-icon-suffix"]=e.merge(B,o,{paddingRight:"64px",paddingLeft:"44px"}),i[r+"-suffix-clear"]=e.merge(B,o,{paddingRight:"75px"}),i[r+"-icon-suffix-clear"]=e.merge(B,o,{paddingLeft:"44px",paddingRight:"75px"}),i}var A=o({container:{position:"relative"},"container-icon":{position:"relative",label:{left:"44px"}},suffix:{color:"mid.primary",borderLeftStyle:"solid",borderLeftWidth:"1px",borderLeftColor:"mid.tertiary",paddingTop:"14px",marginTop:"px",width:"32px",paddingLeft:3,lineHeight:"body",fontSettings:"regular",fontSize:1},icon:{color:"mid.primary",top:1,left:0,marginX:3,marginTop:"14px",position:"absolute",height:20,width:20,minWidth:20,minHeight:20},buttons:{right:0,top:1,height:46,paddingRight:3,position:"absolute",display:"flex",color:"dark.secondary"}},I("input"),I("input-error",T)),E={fontSettings:"regular",lh:"highlight",marginTop:3,marginBottom:6,display:"flex",alignItems:"flex-start","& > label > input":{marginRight:2,marginLeft:0},"& > label":{cursor:"pointer",color:"dark.secondary",display:"flex",alignItems:"center"}},D={"horizontal-regular":o({},E,{fontSize:"2",flexDirection:"row","& label:not(:last-child)":{marginRight:6}}),"horizontal-small":o({},E,{fontSize:"1",flexDirection:"row","& label:not(:last-child)":{marginRight:5}}),"vertical-regular":o({},E,{fontSize:"2",flexDirection:"column","& label:not(:last-child)":{marginBottom:4}}),"vertical-small":o({},E,{fontSize:"1",flexDirection:"column","& label:not(:last-child)":{marginBottom:4}})},j={appearance:"none",margin:0,position:"relative",cursor:"pointer",borderStyle:"solid",borderWidth:"1px",borderColor:"mid.secondary",backgroundColor:"transparent",borderRadius:"circle",":after":{content:'""',display:"block",borderRadius:"circle",backgroundColor:"light.primary",opacity:0},":checked":{backgroundColor:"blue",borderColor:"blue",":after":{opacity:1},":hover":{backgroundColor:"blue.hover",borderColor:"blue.hover"},":active":{borderColor:"blue.pressed",backgroundColor:"blue.pressed"}},":disabled":{cursor:"not-allowed",backgroundColor:"mid.tertiary",borderColor:"mid.primary",":after":{backgroundColor:"mid.primary"}},":hover":{borderColor:"dark.primary"},":active":{borderColor:"dark.secondary",backgroundColor:"blue.secondary"},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},X={regular:e.merge(j,{height:20,width:20,padding:"5px",":after":{width:8,height:8}}),small:e.merge(j,{height:16,width:16,padding:1,":after":{width:6,height:6}})},Y={appearance:"none",borderStyle:"solid",borderWidth:1,borderColor:"mid.primary",borderRadius:3,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center","&:checked":{backgroundColor:"blue",borderColor:"blue","&:after":{content:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' width='10' height='8' fill='none'><path d='M9 1L4 7L1 4' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path></svg>\")"},"&[disabled]:after":{content:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' width='10' height='8' fill='none'><path d='M9 1L4 7L1 4' stroke='%23898F9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path></svg>\")"},"&:hover":{backgroundColor:"blue.hover",borderColor:"blue.hover"},"&:active":{backgroundColor:"blue.pressed",borderColor:"blue.pressed"}},"&:indeterminate":{backgroundColor:"blue.secondary",borderColor:"blue",color:"blue","&:after":{content:'""',position:"absolute",width:8,height:0,borderWidth:1,borderStyle:"solid",borderLeft:0,borderRight:0,borderRadius:3,borderColor:"currentColor"},"&:disabled":{backgroundColor:"mid.secondary",borderColor:"mid.primary",color:"mid.primary"},"&:hover":{borderColor:"blue.hover",color:"blue.hover",bg:"blue.secondary.hover"},"&:active":{borderColor:"blue.pressed",color:"blue.pressed"}},"&:disabled":{backgroundColor:"mid.secondary",borderColor:"mid.primary",color:"mid.primary"},"&:hover":{borderColor:"dark.primary"},"&:active":{backgroundColor:"blue.secondary",borderColor:"dark.secondary"},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},O={regular:o({},Y,{height:20,width:20,minWidth:20,minHeight:20}),small:o({},Y,{height:16,width:16,minWidth:16,minHeight:16})},M={appearance:"none",position:"relative",cursor:"pointer",borderRadius:"6.25rem",backgroundColor:"mid.primary",borderStyle:"solid",borderColor:"mid.primary",borderWidth:1,"&:after":{content:'""',display:"block",position:"absolute",borderRadius:"1.25rem",backgroundColor:"light.primary",transition:"transform .25s ease"},"&:checked":{backgroundColor:"green",borderColor:"green","&:hover":{backgroundColor:"green.hover",borderColor:"green.hover"},"&:disabled":{backgroundColor:"mid.primary",borderColor:"mid.primary","&:after":{backgroundColor:"mid.secondary"}}},"&:hover":{backgroundColor:"dark.secondary",borderColor:"dark.secondary"},"&:disabled":{backgroundColor:"mid.primary",borderColor:"mid.primary","&:after":{backgroundColor:"mid.secondary"}},":not(:checked):active":{backgroundColor:"dark.secondary",borderColor:"dark.secondary",":after":{backgroundColor:"blue.secondary"}},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},P={regular:e.merge(M,{height:20,width:36,"&:after":{width:18,height:18},"&:checked":{"&:after":{transform:"translateX(16px)"}}}),small:e.merge(M,{height:16,width:28,"&:after":{width:14,height:14},"&:checked":{"&:after":{transform:"translateX(12px)"}}})},V={paddingTop:24,height:100,resize:"none",fontSettings:"regular",width:"full",borderStyle:"solid",borderWidth:1,paddingLeft:3,paddingRight:4,borderColor:"mid.tertiary",borderRadius:"default",bg:"inherit",marginY:1,fontSize:1,color:"dark.primary",outline:0,transition:"snap",":hover":{borderColor:"dark.primary"},":focus":{borderColor:"blue",boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"mid.primary"},":focus + label":{transform:"translate(1px, 4px) scale(0.875)"},":placeholder-shown:not(:focus) + label":{paddingTop:1},":not(:placeholder-shown) + label":{transform:"translate(1px, 4px) scale(0.875)"}},q={display:"flex",position:"relative",justifyContent:"flex-start",flexDirection:"column",width:"full"},_={textarea:{borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default},":hover":{borderColor:"red.hover"}}},G={container:o({},q),default:o({},V),"container-error":o({},q,_),"text-container":{display:"flex",justifyContent:"space-between",paddingTop:1},"floating-label":{fontSize:1,left:12,paddingTop:2,color:"mid.primary",marginBottom:3,position:"absolute",transform:"translate(0, 16px) scale(1)",transformOrigin:"top left",transition:"all 0.2s ease-out;"}},U={visibility:"hidden",cursor:"pointer",bg:"light.primary",borderRadius:"default",borderWidth:1,borderStyle:"solid",borderColor:"mid.secondary",boxShadow:"menu",outline:"none",marginTop:1,paddingY:4,width:"max-content",position:"absolute",zIndex:999},J={display:"flex",alignItems:"center",height:24,paddingX:4,cursor:"pointer",bg:"light.primary"},K={menu:U,"menu-visible":o({},U,{visibility:"visible"}),item:J,"item-active":o({},J,{bg:"blue.secondary"})},N={width:106,height:48,appearance:"none","::-webkit-inner-spin-button ":{WebkitAppearance:"none",margin:0},paddingLeft:36,paddingRight:36,textAlign:"center",color:"dark.primary",borderStyle:"solid",borderWidth:1,borderColor:"mid.primary",borderRadius:"default",backgroundColor:"light.primary",":hover":{borderColor:"dark.primary"},":disabled":{backgroundColor:"light.secondary",color:"mid.primary"},":focus:not([data-focus-visible-added])":{outline:"none",boxShadow:"none"},":focus":{outline:"none",boxShadow:"focus"}},Q={"default-error":o({},N,{borderColor:"red",":hover":{borderColor:"red"},":focus":{outline:"none",boxShadow:"none"}}),default:N,container:{position:"relative",display:"flex",alignItems:"center",height:48,width:106,paddingY:12}},Z={display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",height:48,width:"inherit",boxShadow:"0 0 0 0 transparent",borderStyle:"solid",borderWidth:1,paddingLeft:3,paddingRight:4,borderColor:"mid.secondary",borderRadius:"default",bg:"inherit",fontSize:1,color:"dark.secondary",outline:0,":hover":{borderColor:"mid.primary"},":hover > svg":{color:"dark.primary"},":focus":{borderColor:i.blue.default,boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"dark.secondary",cursor:"initial"},":disabled > svg":{color:"dark.secondary"}},$={position:"absolute",top:"25%",lineHeight:1.5,paddingLeft:3,color:"dark.secondary",zIndex:2},rr={color:"dark.primary",outline:"none",fontSize:1,appearance:"none",backgroundColor:"transparent",border:"1px solid",borderColor:"mid.secondary",borderRadius:"default",paddingTop:"1.125rem",paddingLeft:3,width:"100%",height:"100%",":focus":{borderColor:"blue",boxShadow:"0 0 0 1px "+i.blue.default},":disabled":{bg:"light.secondary",borderColor:"mid.primary",color:"dark.primary",opacity:1},":disabled > svg":{color:"dark.secondary"}},er={container:{width:288,position:"relative"},optionsPortal:{position:"absolute",zIndex:999,width:"inherit",backgroundColor:"light.primary",outline:"none"},optionsContainer:{display:"flex",flexDirection:"column",borderWidth:1,borderStyle:"solid",borderColor:"mid.primary",borderRadius:"default"},optionsLabel:{text:"small",lineHeight:1.5,paddingTop:2,paddingBottom:1,paddingLeft:3,color:"mid.primary"},optionsUl:{paddingBottom:1,maxHeight:150,width:"inherit",overflowY:"auto",borderBottomLeftRadius:4,borderBottomRightRadius:4},item:{color:"dark.primary",verticalAlign:"middle",listStyleType:"none",display:"flex",alignItems:"center",cursor:"pointer"},button:Z,buttonError:o({},Z,{borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default},":hover":{borderColor:"red"}}),selectedItem:{lineHeight:1.43,color:"dark.primary",float:"left",marginTop:"1.125rem",":not(:empty) + label":{fontSize:0,lineHeight:1.5}},label:{lineHeight:1.43,position:"absolute",left:12},mobileContainer:{position:"relative",width:288,height:48},mobileLabel:$,mobileLabelSelectedItem:o({},$,{top:2,text:"small"}),mobileSelect:rr,mobileSelectError:o({},rr,{borderColor:"red",":focus":{borderColor:"red",boxShadow:"0 0 0 1px "+i.red.default}}),mobileIcon:{position:"absolute",right:12,top:"25%",color:"dark.secondary"}},or={marginY:"2px",paddingX:1,fontSize:1,border:"none",textTransform:"initial",width:"full",div:{justifyContent:"flex-start"},svg:{marginLeft:0,marginRight:2}},ir={display:"flex",flexDirection:"column",bg:"light.primary",marginTop:1,padding:3,minWidth:18,borderRadius:3,borderWidth:1,borderStyle:"solid",borderColor:"mid.secondary",boxShadow:"menu",hr:{marginY:2,borderStyle:"solid",borderBottomWidth:1,borderTop:"none",borderLeft:"none",borderRight:"none",borderColor:"mid.secondary",width:"calc(100% -"+t[3]+")",marginX:"-"+t[3],outline:"none"},item:o({},or,{color:"dark.primary",":focus":{bg:e.alpha("blue.secondary.default",.32),outline:"none",boxShadow:"none"},":hover":{color:"dark.primary"}}),"item-dangerous":o({},or,{color:"red",":focus":{bg:e.alpha("red.secondary.default",.32),outline:"none",boxShadow:"none"},":hover":{color:"red"}})},tr={outline:"none",bg:"light.primary",borderRadius:3,borderColor:"mid.tertiary",borderStyle:"solid",borderWidth:1,position:"relative",overflowY:"auto",overflowX:"hidden",maxHeight:"3/4",margin:2,opacity:0,transform:"translate3d(0, 48px, 0)",transition:"pop","&[data-enter]":{opacity:1,transform:"translate3d(0, 0, 0)"}},ar={display:"flex",justifyContent:"space-between",alignItems:"center",borderColor:"mid.tertiary",borderStyle:"solid","button + button":{marginLeft:4},paddingY:4,paddingX:6,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:1,h1:{variant:"text.subtitle",lineHeight:0},position:"sticky",top:0,left:0,right:0,bg:"light.primary",zIndex:999},dr={display:"flex",justifyContent:"space-between",alignItems:"center",borderColor:"mid.tertiary",borderStyle:"solid",borderBottomWidth:0,borderLeftWidth:0,borderRightWidth:0,position:"sticky",bottom:0,left:0,right:0,bg:"light.primary",padding:6,flexDirection:["column-reverse","column-reverse","row"],">button":{width:["full","full","inherit"]},"* + button":{marginLeft:[0,0,4],marginBottom:[4,4,0]}},nr={paddingTop:4,paddingX:6,paddingBottom:6},lr=o({},nr,{scrollbarWidth:"thin",scrollbarColor:"light.primary","::-webkit-scrollbar":{width:"8px"},"::-webkit-scrollbar-thumb":{backgroundColor:"mid.tertiary",borderRadius:"6px",border:"2px solid",color:"light.primary"}},{overflowY:"auto"}),sr={display:"inline-block",width:"full",height:"full",backgroundColor:"light.secondary",backgroundSize:"200px 100%",backgroundRepeat:"no-repeat",lineHeight:1,borderRadius:3,backgroundImage:"linear-gradient(\n 90deg,\n "+i.light.secondary+",\n white,\n "+i.light.secondary+"\n )"},gr={display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,padding:2,borderRadius:"circle",textTransform:"uppercase"};exports.theme=o({},a,{components:{button:s,list:L,table:H,controlGroup:D,toggle:P,checkbox:O,radio:X,abstractInput:A,input:{container:{display:"flex",position:"relative",justifyContent:"flex-start",flexDirection:"column"},"floating-label":{fontSize:1,left:12,paddingTop:2,color:"mid.primary",marginBottom:3,position:"absolute",transform:"translate(0, 16px) scale(1)",transformOrigin:"top left",transition:"all 0.2s ease-out;"},"text-container":{display:"flex",justifyContent:"space-between",alignItems:"",paddingTop:1}},tooltip:{backgroundColor:"dark.primary",color:"light.primary",fontSize:1,paddingY:2,paddingX:3,borderRadius:3,maxWidth:240,minHeight:32,zIndex:"over"},menu:ir,modal:{backdrop:{display:"flex",flexDirection:"column",justifyContent:["flex-end","flex-end","center"],alignItems:"center",backgroundColor:r.rgba(i.dark.primary,.5),position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,opacity:0,transition:"fade","&[data-enter]":{opacity:1}},"surface-small":o({},tr,{width:["calc(100% - 16px)","calc(100% - 16px)",320]}),"surface-regular":o({},tr,{width:["calc(100% - 16px)","calc(100% - 16px)",560]}),"surface-large":o({},tr,{width:["calc(100% - 16px)","calc(100% - 16px)",800]}),"header-small":o({},ar,{height:56}),"header-regular":o({},ar,{height:56}),"header-large":o({},ar,{height:80}),"content-with-small-scroll-area":o({},lr,{height:"calc(100% - 3.5rem)"}),"content-with-regular-scroll-area":o({},lr,{height:"calc(100% - 3.5rem)"}),"content-with-large-scroll-area":o({},lr,{height:"calc(100% - 5rem)"}),"content-with-larger-scroll-area":o({},lr,{height:"calc(100% - 7rem)"}),"content-with-extra-large-scroll-area":o({},lr,{height:"calc(100% - 10rem)"}),content:o({},nr),"footer-small":o({},dr,{borderTopWidth:0,pt:0,">button":{width:"full"},minHeight:"3.5rem"}),"footer-regular":o({},dr,{borderTopWidth:1,minHeight:"3.5rem"}),"footer-large":o({},dr,{borderTopWidth:1,minHeight:"5rem"})},skeleton:{rect:o({},sr,{borderRadius:"default"}),circle:o({},sr,{borderRadius:"circle"})},divider:h,collapsible:{container:{bg:"light.primary",borderColor:"mid.tertiary",borderStyle:"solid",borderWidth:1,borderRadius:"default"},"container-grouped":{bg:"light.primary",borderRadius:"default"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:6,paddingLeft:2,"div > button:nth-of-type(n+2)":{marginLeft:1}},section:{paddingX:6,paddingBottom:6},"header-nested":{display:"flex",alignItems:"center",justifyContent:"space-between",padding:4,paddingLeft:0,"div > button:nth-of-type(n+2)":{marginLeft:1}},"section-nested":{paddingX:4,paddingBottom:4}},avatar:{base:o({},gr,{bg:"dark.primary",color:"light.primary"}),primary:o({},gr,{bg:"blue",color:"light.primary"}),danger:o({},gr,{bg:"red",color:"light.primary"})},tag:m,anchor:{font:"inherit",color:"blue",textDecoration:"none",":active":{color:"blue.pressed",textDecoration:"underline"},":hover":{color:"blue.hover",textDecoration:"underline"}},dropdown:K,textArea:G,numericStepper:Q,select:er,alert:R}});
//# sourceMappingURL=admin-ui-theme.cjs.production.min.js.map
import { darken, rgba } from 'polished';
import { alpha, merge } from '@vtex/admin-ui-system';
import { alpha, lightness, merge } from '@vtex/admin-ui-system';

@@ -619,2 +619,66 @@ function _extends() {

var styles$3 = {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
height: 56,
paddingY: 3,
paddingLeft: 4,
paddingRight: 3,
borderRadius: 'default',
opacity: 0,
zIndex: 999,
transform: 'translate3d(0, -10px, 0)',
visibility: 'hidden',
transition: 'pop',
borderStyle: 'solid',
borderWidth: 1
};
var visible = {
opacity: 1,
visibility: 'visible',
transform: 'translate3d(0, 0, 0)'
};
var error = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/lightness('red.secondary.default', 0.94),
borderColor: 'red.secondary'
});
var success = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/lightness('green.secondary.default', 0.94),
borderColor: 'green.secondary'
});
var warning = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/lightness('yellow.secondary.default', 0.94),
borderColor: 'yellow.secondary'
});
var info = /*#__PURE__*/_extends({}, styles$3, {
bg: /*#__PURE__*/lightness('blue.secondary.default', 0.94),
borderColor: 'blue.secondary'
});
var fluid = {
height: 'full',
alignItems: 'flex-start'
};
var sticky = {
borderRadius: 'flat',
paddingRight: 4
};
function getAlertVariants(name, styles) {
var _ref;
if (styles === void 0) {
styles = {};
}
return _ref = {}, _ref["" + name] = styles, _ref[name + "-visible"] = _extends({}, styles, visible), _ref[name + "-fluid"] = _extends({}, styles, fluid), _ref[name + "-sticky"] = _extends({}, styles, sticky), _ref[name + "-visible-fluid"] = _extends({}, styles, visible, fluid), _ref[name + "-visible-sticky"] = _extends({}, styles, visible, sticky), _ref[name + "-fluid-sticky"] = _extends({}, styles, visible, sticky), _ref[name + "-visible-fluid-sticky"] = _extends({}, styles, visible, sticky, fluid), _ref;
}
var alert = /*#__PURE__*/_extends({}, /*#__PURE__*/getAlertVariants('error', error), /*#__PURE__*/getAlertVariants('warning', warning), /*#__PURE__*/getAlertVariants('info', info), /*#__PURE__*/getAlertVariants('success', success));
var clickableStyles = {

@@ -626,3 +690,3 @@ cursor: 'pointer',

};
var styles$3 = {
var styles$4 = {
table: {

@@ -734,3 +798,3 @@ display: 'table',

},
regular: /*#__PURE__*/merge(styles$3, {
regular: /*#__PURE__*/merge(styles$4, {
cell: {

@@ -740,3 +804,3 @@ height: 80

}),
compact: /*#__PURE__*/merge(styles$3, {
compact: /*#__PURE__*/merge(styles$4, {
cell: {

@@ -746,3 +810,3 @@ height: 48

}),
variable: /*#__PURE__*/merge(styles$3, {
variable: /*#__PURE__*/merge(styles$4, {
cell: {

@@ -921,3 +985,3 @@ verticalAlign: 'top',

var styles$4 = {
var styles$5 = {
fontSettings: 'regular',

@@ -941,3 +1005,3 @@ lh: 'highlight',

var controlGroup = {
'horizontal-regular': /*#__PURE__*/_extends({}, styles$4, {
'horizontal-regular': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '2',

@@ -949,3 +1013,3 @@ flexDirection: 'row',

}),
'horizontal-small': /*#__PURE__*/_extends({}, styles$4, {
'horizontal-small': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '1',

@@ -957,3 +1021,3 @@ flexDirection: 'row',

}),
'vertical-regular': /*#__PURE__*/_extends({}, styles$4, {
'vertical-regular': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '2',

@@ -965,3 +1029,3 @@ flexDirection: 'column',

}),
'vertical-small': /*#__PURE__*/_extends({}, styles$4, {
'vertical-small': /*#__PURE__*/_extends({}, styles$5, {
fontSize: '1',

@@ -1054,3 +1118,3 @@ flexDirection: 'column',

var styles$5 = {
var styles$6 = {
appearance: 'none',

@@ -1136,3 +1200,3 @@ borderStyle: 'solid',

var checkbox = {
regular: /*#__PURE__*/_extends({}, styles$5, {
regular: /*#__PURE__*/_extends({}, styles$6, {
height: 20,

@@ -1143,3 +1207,3 @@ width: 20,

}),
small: /*#__PURE__*/_extends({}, styles$5, {
small: /*#__PURE__*/_extends({}, styles$6, {
height: 16,

@@ -1152,3 +1216,3 @@ width: 16,

var styles$6 = {
var styles$7 = {
appearance: 'none',

@@ -1213,3 +1277,3 @@ position: 'relative',

var toggle = {
regular: /*#__PURE__*/merge(styles$6, {
regular: /*#__PURE__*/merge(styles$7, {
height: 20,

@@ -1227,3 +1291,3 @@ width: 36,

}),
small: /*#__PURE__*/merge(styles$6, {
small: /*#__PURE__*/merge(styles$7, {
height: 16,

@@ -1310,3 +1374,3 @@ width: 28,

};
var styles$7 = {
var styles$8 = {
display: 'flex',

@@ -1318,3 +1382,3 @@ position: 'relative',

};
var error = {
var error$1 = {
textarea: {

@@ -1332,5 +1396,5 @@ borderColor: 'red',

var textArea = {
container: /*#__PURE__*/_extends({}, styles$7),
container: /*#__PURE__*/_extends({}, styles$8),
"default": /*#__PURE__*/_extends({}, textAreaInputStyle),
'container-error': /*#__PURE__*/_extends({}, styles$7, error),
'container-error': /*#__PURE__*/_extends({}, styles$8, error$1),
'text-container': {

@@ -1389,3 +1453,3 @@ display: 'flex',

var styles$8 = {
var styles$9 = {
width: 106,

@@ -1432,3 +1496,3 @@ height: 48,

var numericStepper = {
'default-error': /*#__PURE__*/_extends({}, styles$8, {
'default-error': /*#__PURE__*/_extends({}, styles$9, {
borderColor: 'red',

@@ -1443,3 +1507,3 @@ ':hover': {

}),
"default": styles$8,
"default": styles$9,
container: containerStyles

@@ -1876,3 +1940,3 @@ };

var styles$9 = {
var styles$a = {
display: 'inline-block',

@@ -1889,6 +1953,6 @@ width: 'full',

var skeleton = {
rect: /*#__PURE__*/_extends({}, styles$9, {
rect: /*#__PURE__*/_extends({}, styles$a, {
borderRadius: 'default'
}),
circle: /*#__PURE__*/_extends({}, styles$9, {
circle: /*#__PURE__*/_extends({}, styles$a, {
borderRadius: 'circle'

@@ -1940,3 +2004,3 @@ })

var styles$a = {
var styles$b = {
display: 'flex',

@@ -1952,11 +2016,11 @@ alignItems: 'center',

var avatar = {
base: /*#__PURE__*/_extends({}, styles$a, {
base: /*#__PURE__*/_extends({}, styles$b, {
bg: 'dark.primary',
color: 'light.primary'
}),
primary: /*#__PURE__*/_extends({}, styles$a, {
primary: /*#__PURE__*/_extends({}, styles$b, {
bg: 'blue',
color: 'light.primary'
}),
danger: /*#__PURE__*/_extends({}, styles$a, {
danger: /*#__PURE__*/_extends({}, styles$b, {
bg: 'red',

@@ -1990,3 +2054,4 @@ color: 'light.primary'

numericStepper: numericStepper,
select: select
select: select,
alert: alert
};

@@ -1993,0 +2058,0 @@

@@ -859,3 +859,2 @@ declare const _default: {

backgroundImage: string;
animation: string;
};

@@ -872,3 +871,2 @@ circle: {

backgroundImage: string;
animation: string;
};

@@ -1411,3 +1409,149 @@ };

};
alert: {
error: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'error-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
success: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'success-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
warning: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'warning-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
info: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'info-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
};
};
export default _default;

@@ -860,3 +860,2 @@ export declare const theme: {

backgroundImage: string;
animation: string;
};

@@ -873,3 +872,2 @@ circle: {

backgroundImage: string;
animation: string;
};

@@ -1412,2 +1410,148 @@ };

};
alert: {
error: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'error-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
success: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'success-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
warning: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'warning-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
info: {
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
opacity: number;
zIndex: number;
transform: string;
visibility: string;
transition: string;
borderStyle: string;
borderWidth: number;
};
'info-visible': {
opacity: number;
visibility: string;
transform: string;
borderColor: string;
display: string;
alignItems: string;
justifyContent: string;
height: number;
paddingY: number;
paddingLeft: number;
paddingRight: number;
borderRadius: string;
zIndex: number;
transition: string;
borderStyle: string;
borderWidth: number;
};
};
};

@@ -1414,0 +1558,0 @@ sizes: {

{
"name": "@vtex/admin-ui-theme",
"version": "0.15.0",
"version": "0.16.0",
"main": "dist/index.js",

@@ -36,3 +36,3 @@ "module": "dist/admin-ui-theme.esm.js",

"devDependencies": {
"@vtex/admin-ui-system": "^0.9.0"
"@vtex/admin-ui-system": "^0.10.0"
},

@@ -42,3 +42,3 @@ "dependencies": {

},
"gitHead": "41bb0d6351eefe968fafe40c411893052ffa089b"
"gitHead": "85de0da9438fd778ef0c392751e25dc72490dc96"
}

@@ -6,2 +6,3 @@ // elements

import anchor from './anchor'
import alert from './alert'
// data

@@ -53,2 +54,3 @@ import table from './table'

select,
alert,
}

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