@zonos/amino 5.1.61 → 5.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),t=require("styled-components"),r=require("../stack/HStack.js"),i=require("../text/Text.js"),a=require("../../styles/constants/theme.js");function c(e){return e&&e.__esModule?e:{default:e}}require("../stack/Stack.js");var s,o,d,g=c(t),h=g.default.div(s||(s=e.__makeTemplateObject(["\n border: ",";\n border-radius: ",";\n padding: ",";\n background: ",";\n\n /** Dividers should stretch the whole width by default */\n hr {\n margin-left: ",";\n margin-right: ",";\n }\n"],["\n border: ",";\n border-radius: ",";\n padding: ",";\n background: ",";\n\n /** Dividers should stretch the whole width by default */\n hr {\n margin-left: ",";\n margin-right: ",";\n }\n"])),a.theme.border,a.theme.radius6,(function(e){return e.$spacing||a.theme.space24}),a.theme.gray0,(function(e){return e.$spacing?"calc(".concat(e.$spacing," * -1)"):a.theme.spaceNegative24}),(function(e){return e.$spacing?"calc(".concat(e.$spacing," * -1)"):a.theme.spaceNegative24})),u=g.default.div(o||(o=e.__makeTemplateObject(["\n margin: ",";\n padding: ",";\n display: flex;\n align-items: center;\n margin-bottom: ",";\n border-bottom: ",";\n height: 65px;\n line-height: 65px;\n user-select: none;\n\n h5 {\n margin-bottom: 0;\n flex: 1;\n }\n"],["\n margin: ",";\n padding: ",";\n display: flex;\n align-items: center;\n margin-bottom: ",";\n border-bottom: ",";\n height: 65px;\n line-height: 65px;\n user-select: none;\n\n h5 {\n margin-bottom: 0;\n flex: 1;\n }\n"])),(function(e){return e.$spacing?"calc(".concat(e.$spacing," * -1)"):a.theme.spaceNegative24}),(function(e){return e.$spacing||a.theme.space24}),(function(e){return e.$spacing||a.theme.space24}),a.theme.border),m=g.default.div(d||(d=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: ",";\n padding: ",";\n border-top: ",";\n background: ",";\n margin-top: ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n height: ",";\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: ",";\n padding: ",";\n border-top: ",";\n background: ",";\n margin-top: ",";\n border-bottom-left-radius: ",";\n border-bottom-right-radius: ",";\n height: ",";\n"])),(function(e){return e.$spacing?"calc(".concat(e.$spacing," * -1)"):a.theme.spaceNegative24}),(function(e){return e.$spacing||a.theme.space24}),a.theme.border,a.theme.surfaceColorSecondary,(function(e){return e.$spacing||a.theme.space24}),a.theme.radius8,a.theme.radius8,(function(e){return e.$footerHeight&&"".concat(e.$footerHeight,"px")}));exports.Card=function(e){var t=e.actions,c=e.children,s=e.className,o=e.footerActions,d=e.footerContent,g=e.footerHeight,l=e.label,p=e.spacing,b=void 0===p?a.theme.space24:p;return n.jsxs(h,{$spacing:b,className:s||"",children:[l&&n.jsxs(u,{$spacing:b,children:[n.jsx(i.Text,{type:"subheader",children:l}),n.jsx(r.HStack,{spacing:8,children:t})]}),c,(o||d)&&n.jsxs(m,{$footerHeight:g,$spacing:b,children:[n.jsx("div",{children:d}),n.jsx(r.HStack,{spacing:8,children:o})]})]})};
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("clsx"),a=require("../stack/HStack.js"),i=require("../text/Text.js"),t=require("../../styles/constants/theme.js"),n=require("../../style-inject.es-d4ddeae4.js");function o(e){return e&&e.__esModule?e:{default:e}}require("../../_tslib-ccfac372.js"),require("styled-components"),require("../stack/Stack.js");var d=o(r),s="Amino_Card-module__card--DJCwk",c="Amino_Card-module__cardHeader--UBcny",m="Amino_Card-module__cardFooter--Ea-tJ";n.styleInject(".Amino_Card-module__card--DJCwk{background:var(--amino-gray-0);border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--padding-spacing)}.Amino_Card-module__card--DJCwk hr{margin-left:var(--margin);margin-right:var(--margin)}.Amino_Card-module__cardHeader--UBcny{align-items:center;border-bottom:var(--amino-border);display:flex;height:65px;line-height:65px;margin:var(--margin);margin-bottom:var(--margin-bottom);padding:var(--padding-spacing);-webkit-user-select:none;user-select:none}.Amino_Card-module__cardHeader--UBcny h5{flex:1;margin-bottom:0}.Amino_Card-module__cardFooter--Ea-tJ{align-items:center;background:var(--amino-surface-color-secondary);border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);border-top:var(--amino-border);display:flex;height:var(--footer-height);justify-content:space-between;margin:var(--margin);margin-top:var(--margin-top);padding:var(--padding-spacing)}");exports.Card=function(r){var n=r.actions,o=r.children,l=r.className,g=r.footerActions,u=r.footerContent,p=r.footerHeight,h=r.label,_=r.spacing;return e.jsxs("div",{className:d.default(l,s),style:{"--footer-height":p?"".concat(p,"px"):"65px","--margin":_?"calc(".concat(_," * -1)"):t.theme.spaceNegative24,"--margin-bottom":_||t.theme.space24,"--margin-top":_||t.theme.space24,"--padding-spacing":_||t.theme.space24},children:[h&&e.jsxs("div",{className:c,children:[e.jsx(i.Text,{type:"subheader",children:h}),e.jsx(a.HStack,{spacing:8,children:n})]}),o,(g||u)&&e.jsxs("div",{className:m,children:[e.jsx("div",{children:u}),e.jsx(a.HStack,{spacing:8,children:g})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-ccfac372.js"),r=require("styled-components"),n=require("../card/Card.js"),t=require("../../styles/constants/theme.js");function o(e){return e&&e.__esModule?e:{default:e}}require("react/jsx-runtime"),require("../stack/HStack.js"),require("../stack/Stack.js"),require("../text/Text.js");var a,s=o(r).default(n.Card)(a||(a=e.__makeTemplateObject(["\n border-color: ",";\n box-shadow: 0px 1px 5px rgba(255, 0, 0, 0.19);\n\n header {\n border-color: ",";\n }\n\n h4 {\n color: ",";\n }\n"],["\n border-color: ",";\n box-shadow: 0px 1px 5px rgba(255, 0, 0, 0.19);\n\n header {\n border-color: ",";\n }\n\n h4 {\n color: ",";\n }\n"])),t.theme.red200,t.theme.red200,t.theme.red600);exports.DangerZone=s;
1
+ "use strict";var e=require("../../_tslib-ccfac372.js"),r=require("styled-components"),n=require("../card/Card.js"),t=require("../../styles/constants/theme.js");function o(e){return e&&e.__esModule?e:{default:e}}require("react/jsx-runtime"),require("clsx"),require("../stack/HStack.js"),require("../stack/Stack.js"),require("../text/Text.js"),require("../../style-inject.es-d4ddeae4.js");var s,a=o(r).default(n.Card)(s||(s=e.__makeTemplateObject(["\n border-color: ",";\n box-shadow: 0px 1px 5px rgba(255, 0, 0, 0.19);\n\n header {\n border-color: ",";\n }\n\n h4 {\n color: ",";\n }\n"],["\n border-color: ",";\n box-shadow: 0px 1px 5px rgba(255, 0, 0, 0.19);\n\n header {\n border-color: ",";\n }\n\n h4 {\n color: ",";\n }\n"])),t.theme.red200,t.theme.red200,t.theme.red600);exports.DangerZone=a;
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),o=require("../input/SearchInput.js");require("./NavigationGroup.js");var a=require("../../styles/constants/theme.js");require("../../_tslib-ccfac372.js"),require("react"),require("styled-components"),require("../../icons/SearchIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../collapse/Collapse.js"),require("@mui/material/Collapse");var r={aminoLayout:"Amino_Layout-module__aminoLayout--k-8EW",contentGrid:"Amino_Layout-module__contentGrid--6ltoS",styledSidebar:"Amino_Layout-module__styledSidebar--dnwoo",sidebarContent:"Amino_Layout-module__sidebarContent--NXMVV",searchInputWrapper:"Amino_Layout-module__searchInputWrapper--JldDc",styledLogoSidebar:"Amino_Layout-module__styledLogoSidebar--MTiPe",styledSearchInput:"Amino_Layout-module__styledSearchInput--uJCBW",content:"Amino_Layout-module__content--LYUwT",header:"Amino_Layout-module__header--lID5Y",footer:"Amino_Layout-module__footer--5enlV"};!function(e,o){void 0===o&&(o={});var a=o.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css","top"===a&&r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}}(".Amino_Layout-module__aminoLayout--k-8EW{height:100vh;overflow:hidden}.Amino_Layout-module__contentGrid--6ltoS{display:grid;grid-template-columns:var(--amino-sidebar-width) 1fr;height:var(--amino-appbar-height)}.Amino_Layout-module__styledSidebar--dnwoo{background:var(--amino-sidebar-color);border-right:var(--amino-border);box-sizing:border-box;display:grid;grid-template-rows:1fr calc(39px + var(--amino-space-24)*2);height:inherit;width:var(--amino-sidebar-width)}.Amino_Layout-module__sidebarContent--NXMVV{box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:var(--amino-space-16);width:100%}.Amino_Layout-module__searchInputWrapper--JldDc{margin-bottom:var(--amino-space-40)}.Amino_Layout-module__styledLogoSidebar--MTiPe{margin-bottom:var(--amino-space-24)}.Amino_Layout-module__styledSearchInput--uJCBW{border:0}.Amino_Layout-module__styledSearchInput--uJCBW svg{color:var(--amino-gray-1200)}.Amino_Layout-module__styledSearchInput--uJCBW input{background-color:var(--amino-gray-100);border:0}.Amino_Layout-module__styledSearchInput--uJCBW input ::-webkit-input-placeholder{color:var(--amino-gray-1200)}.Amino_Layout-module__styledSearchInput--uJCBW input ::placeholder{color:var(--amino-gray-1200)}.Amino_Layout-module__content--LYUwT{box-sizing:border-box;height:inherit;overflow-y:auto;padding:var(--amino-space-32)}.Amino_Layout-module__header--lID5Y{background:var(--amino-header-color);border-bottom:var(--amino-border);box-shadow:var(--amino-v3-shadow-base);box-sizing:border-box;display:flex;height:var(--amino-appbar-height);position:-webkit-sticky;position:sticky;top:0;z-index:var(--amino-appbar-elevation)}.Amino_Layout-module__footer--5enlV{box-sizing:border-box;width:var(--amino-sidebar-width)}");exports.Layout=function(t){var i=t.className,n=t.content,d=t.footer,s=t.headerContent,l=t.logoSidebar,u=t.searchInput,m=t.sidebar;return e.jsxs("main",{className:[i,r.aminoLayout].join(" "),children:[!!s&&e.jsx("header",{className:r.header,children:s}),e.jsxs("div",{className:r.contentGrid,style:{height:s?"calc(100vh - ".concat(a.theme.appbarHeight,")"):"100vh"},children:[e.jsxs("nav",{className:r.styledSidebar,children:[e.jsxs("div",{className:r.sidebarContent,children:[!!l&&e.jsx("div",{className:r.styledLogoSidebar,children:l}),!!u&&e.jsx("div",{className:r.searchInputWrapper,children:e.jsx(o.SearchInput,{className:r.styledSearchInput,onChange:u.onChange,value:u.value})}),m]}),e.jsx("div",{className:r.footer,children:d})]}),e.jsx("div",{className:r.content,children:n})]})]})};
1
+ "use strict";var e=require("react/jsx-runtime"),o=require("../input/SearchInput.js");require("./NavigationGroup.js");var a=require("../../styles/constants/theme.js"),r=require("../../style-inject.es-d4ddeae4.js");require("../../_tslib-ccfac372.js"),require("react"),require("styled-components"),require("../../icons/SearchIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../collapse/Collapse.js"),require("@mui/material/Collapse");var i={aminoLayout:"Amino_Layout-module__aminoLayout--k-8EW",contentGrid:"Amino_Layout-module__contentGrid--6ltoS",styledSidebar:"Amino_Layout-module__styledSidebar--dnwoo",sidebarContent:"Amino_Layout-module__sidebarContent--NXMVV",searchInputWrapper:"Amino_Layout-module__searchInputWrapper--JldDc",styledLogoSidebar:"Amino_Layout-module__styledLogoSidebar--MTiPe",styledSearchInput:"Amino_Layout-module__styledSearchInput--uJCBW",content:"Amino_Layout-module__content--LYUwT",header:"Amino_Layout-module__header--lID5Y",footer:"Amino_Layout-module__footer--5enlV"};r.styleInject(".Amino_Layout-module__aminoLayout--k-8EW{height:100vh;overflow:hidden}.Amino_Layout-module__contentGrid--6ltoS{display:grid;grid-template-columns:var(--amino-sidebar-width) 1fr;height:var(--height)}.Amino_Layout-module__styledSidebar--dnwoo{background:var(--amino-sidebar-color);border-right:var(--amino-border);box-sizing:border-box;display:grid;grid-template-rows:1fr calc(39px + var(--amino-space-24)*2);height:inherit;width:var(--amino-sidebar-width)}.Amino_Layout-module__sidebarContent--NXMVV{box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:var(--amino-space-16);width:100%}.Amino_Layout-module__searchInputWrapper--JldDc{margin-bottom:var(--amino-space-40)}.Amino_Layout-module__styledLogoSidebar--MTiPe{margin-bottom:var(--amino-space-24)}.Amino_Layout-module__styledSearchInput--uJCBW{border:0}.Amino_Layout-module__styledSearchInput--uJCBW svg{color:var(--amino-gray-1200)}.Amino_Layout-module__styledSearchInput--uJCBW input{background-color:var(--amino-gray-100);border:0}.Amino_Layout-module__styledSearchInput--uJCBW input ::-webkit-input-placeholder{color:var(--amino-gray-1200)}.Amino_Layout-module__styledSearchInput--uJCBW input ::placeholder{color:var(--amino-gray-1200)}.Amino_Layout-module__content--LYUwT{box-sizing:border-box;height:inherit;overflow-y:auto;padding:var(--amino-space-32)}.Amino_Layout-module__header--lID5Y{background:var(--amino-header-color);border-bottom:var(--amino-border);box-shadow:var(--amino-v3-shadow-base);box-sizing:border-box;display:flex;height:var(--amino-appbar-height);position:-webkit-sticky;position:sticky;top:0;z-index:var(--amino-appbar-elevation)}.Amino_Layout-module__footer--5enlV{box-sizing:border-box;width:var(--amino-sidebar-width)}");exports.Layout=function(r){var t=r.className,n=r.content,d=r.footer,s=r.headerContent,l=r.logoSidebar,u=r.searchInput,m=r.sidebar;return e.jsxs("main",{className:[t,i.aminoLayout].join(" "),style:{"--height":s?"calc(100vh - ".concat(a.theme.appbarHeight,")"):"100vh"},children:[!!s&&e.jsx("header",{className:i.header,children:s}),e.jsxs("div",{className:i.contentGrid,children:[e.jsxs("nav",{className:i.styledSidebar,children:[e.jsxs("div",{className:i.sidebarContent,children:[!!l&&e.jsx("div",{className:i.styledLogoSidebar,children:l}),!!u&&e.jsx("div",{className:i.searchInputWrapper,children:e.jsx(o.SearchInput,{className:i.styledSearchInput,onChange:u.onChange,value:u.value})}),m]}),e.jsx("div",{className:i.footer,children:d})]}),e.jsx("div",{className:i.content,children:n})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),t=require("styled-components"),r=require("../card/Card.js"),i=require("../stack/VStack.js"),o=require("../../styles/constants/theme.js");function c(e){return e&&e.__esModule?e:{default:e}}require("../stack/HStack.js"),require("../stack/Stack.js"),require("../text/Text.js");var a,l,s,u=c(t),h=u.default.div(a||(a=e.__makeTemplateObject(["\n font-weight: bold;\n"],["\n font-weight: bold;\n"]))),d=u.default.div(l||(l=e.__makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n"])),o.theme.space8),f=u.default(r.Card)(s||(s=e.__makeTemplateObject(["\n cursor: pointer;\n width: 180px;\n display: flex;\n gap: 24px;\n height: fit-content;\n align-items: center;\n font-weight: 500;\n flex: 0 0 180px;\n font-size: ",";\n color: ",";\n background-color: ",";\n border: ",";\n\n &:hover {\n background-color: ",";\n }\n\n svg > path {\n stroke: ",";\n fill: ",";\n }\n"],["\n cursor: pointer;\n width: 180px;\n display: flex;\n gap: 24px;\n height: fit-content;\n align-items: center;\n font-weight: 500;\n flex: 0 0 180px;\n font-size: ",";\n color: ",";\n background-color: ",";\n border: ",";\n\n &:hover {\n background-color: ",";\n }\n\n svg > path {\n stroke: ",";\n fill: ",";\n }\n"])),o.theme.fontSizeS,(function(e){return e.$highlighted&&o.theme.blue600}),(function(e){return e.$highlighted&&o.theme.blue100}),(function(e){return e.$highlighted&&"2px solid ".concat(o.theme.blue400)}),(function(e){return!e.$highlighted&&o.theme.gray50}),(function(e){return e.$highlighted&&o.theme.blue600}),(function(e){return e.$highlighted&&o.theme.blue200}));exports.RichCardStateSelect=function(e){var t=e.className,r=e.onClick,o=e.states,c=Array.from(new Set(o.map((function(e){return e.region})))),a=["West","Midwest","South","Northeast"];return c.sort((function(e,n){return a.indexOf(e)-a.indexOf(n)})),n.jsx(i.VStack,{className:t,spacing:24,children:c.map((function(e){return n.jsx("div",{children:n.jsxs(i.VStack,{spacing:16,children:[n.jsx(h,{children:e}),n.jsx(d,{children:o.filter((function(n){return n.region===e})).map((function(e){return n.jsx("button",{onClick:function(){return r(e)},type:"button",children:n.jsxs(f,{$highlighted:e.highlighted,spacing:"10px",children:[e.icon,e.name]})},e.code)}))})]})},e)}))})};
1
+ "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),t=require("styled-components"),r=require("../card/Card.js"),i=require("../stack/VStack.js"),o=require("../../styles/constants/theme.js");function c(e){return e&&e.__esModule?e:{default:e}}require("clsx"),require("../stack/HStack.js"),require("../stack/Stack.js"),require("../text/Text.js"),require("../../style-inject.es-d4ddeae4.js");var l,a,s,u=c(t),h=u.default.div(l||(l=e.__makeTemplateObject(["\n font-weight: bold;\n"],["\n font-weight: bold;\n"]))),d=u.default.div(a||(a=e.__makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n"],["\n display: flex;\n flex-wrap: wrap;\n gap: ",";\n"])),o.theme.space8),f=u.default(r.Card)(s||(s=e.__makeTemplateObject(["\n cursor: pointer;\n width: 180px;\n display: flex;\n gap: 24px;\n height: fit-content;\n align-items: center;\n font-weight: 500;\n flex: 0 0 180px;\n font-size: ",";\n color: ",";\n background-color: ",";\n border: ",";\n\n &:hover {\n background-color: ",";\n }\n\n svg > path {\n stroke: ",";\n fill: ",";\n }\n"],["\n cursor: pointer;\n width: 180px;\n display: flex;\n gap: 24px;\n height: fit-content;\n align-items: center;\n font-weight: 500;\n flex: 0 0 180px;\n font-size: ",";\n color: ",";\n background-color: ",";\n border: ",";\n\n &:hover {\n background-color: ",";\n }\n\n svg > path {\n stroke: ",";\n fill: ",";\n }\n"])),o.theme.fontSizeS,(function(e){return e.$highlighted&&o.theme.blue600}),(function(e){return e.$highlighted&&o.theme.blue100}),(function(e){return e.$highlighted&&"2px solid ".concat(o.theme.blue400)}),(function(e){return!e.$highlighted&&o.theme.gray50}),(function(e){return e.$highlighted&&o.theme.blue600}),(function(e){return e.$highlighted&&o.theme.blue200}));exports.RichCardStateSelect=function(e){var t=e.className,r=e.onClick,o=e.states,c=Array.from(new Set(o.map((function(e){return e.region})))),l=["West","Midwest","South","Northeast"];return c.sort((function(e,n){return l.indexOf(e)-l.indexOf(n)})),n.jsx(i.VStack,{className:t,spacing:24,children:c.map((function(e){return n.jsx("div",{children:n.jsxs(i.VStack,{spacing:16,children:[n.jsx(h,{children:e}),n.jsx(d,{children:o.filter((function(n){return n.region===e})).map((function(e){return n.jsx("button",{onClick:function(){return r(e)},type:"button",children:n.jsxs(f,{$highlighted:e.highlighted,spacing:"10px",children:[e.icon,e.name]})},e.code)}))})]})},e)}))})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),r=require("styled-components"),t=require("../card/Card.js"),i=require("../select/Select.js"),s=require("../stack/HStack.js"),c=require("../switch/Switch.js"),o=require("../text/Text.js"),a=require("../../icons/custom/theme/ThemeDarkIcon.js"),u=require("../../icons/custom/theme/ThemeLightIcon.js"),l=require("../../icons/NightIcon.js"),d=require("../../icons/SunnyIcon.js"),h=require("../../styles/constants/theme.js"),m=require("../../utils/hooks/useAminoTheme.js");function j(e){return e&&e.__esModule?e:{default:e}}require("../help-text/HelpText.js"),require("../select/_StyledReactSelect.js"),require("react"),require("react-select"),require("../checkbox/Checkbox.js"),require("clsx"),require("framer-motion"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../stack/Stack.js"),require("../../icons/flag-icon/useStableUniqueId.js"),require("uuid"),require("../../icons/icon-base/_ThemeIconBase.js"),require("../../Theme-61f4342c.js"),require("zod"),require("../../utils/hooks/useStorage.js"),require("../../utils/storage.js"),require("swr");var x,q,g=j(r),b=g.default.button(x||(x=e.__makeTemplateObject(["\n border: ",";\n color: ",";\n border-radius: ",";\n\n &:not([disabled]) {\n &:active,\n &:focus {\n outline: none;\n }\n }\n"],["\n border: ",";\n color: ",";\n border-radius: ",";\n\n &:not([disabled]) {\n &:active,\n &:focus {\n outline: none;\n }\n }\n"])),(function(e){return"2px solid ".concat(e.$isActive?h.theme.blue400:"transparent")}),(function(e){return e.$isActive?h.theme.primary:h.theme.textColor}),h.theme.radius8),p=g.default(t.Card)(q||(q=e.__makeTemplateObject(["\n background: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: ",";\n\n svg {\n height: 64px;\n width: 110px;\n box-shadow: ",";\n margin-bottom: ",";\n }\n"],["\n background: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: ",";\n\n svg {\n height: 64px;\n width: 110px;\n box-shadow: ",";\n margin-bottom: ",";\n }\n"])),h.theme.gray0,h.theme.space16,h.theme.v3ShadowLarge,h.theme.space16),f=[{label:"Light",value:"day"},{label:"Dark",value:"night"}];exports.ThemeSelect=function(e){var r=e.className,t=e.disabled,h=void 0!==t&&t,j=e.type,x=void 0===j?"select":j,q=m.useAminoTheme(),g=q.aminoTheme,y=q.setAminoTheme,k="day"===g;return n.jsxs(n.Fragment,{children:["cards"===x&&n.jsxs(s.HStack,{className:r,children:[n.jsx(b,{$isActive:"day"===g,"data-theme":"day",onClick:function(){return y("day")},type:"button",children:n.jsxs(p,{children:[n.jsx(u.ThemeLightIcon,{}),n.jsx(o.Text,{type:"bold-label",children:"Light"})]})}),n.jsx(b,{$isActive:"night"===g,"data-theme":"night",onClick:function(){return y("night")},type:"button",children:n.jsxs(p,{children:[n.jsx(a.ThemeDarkIcon,{}),n.jsx(o.Text,{type:"bold-label",children:"Dark"})]})})]}),"select"===x&&n.jsx(i.Select,{className:r,icon:function(){switch(g){case"day":default:return n.jsx(d.SunnyIcon,{});case"night":return n.jsx(l.NightIcon,{})}}(),isClearable:!1,isDisabled:h,onChange:function(e){return y((null==e?void 0:e.value)||"day")},options:f,value:f.filter((function(e){return e.value===g}))}),"toggle"===x&&n.jsx(c.Switch,{checked:k,className:r,disabled:h,onChange:function(){return!h&&y("day"===g?"night":"day")},switchIconLeft:n.jsx(l.NightIcon,{}),switchIconRight:n.jsx(d.SunnyIcon,{})})]})};
1
+ "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),r=require("styled-components"),t=require("../card/Card.js"),i=require("../select/Select.js"),s=require("../stack/HStack.js"),c=require("../switch/Switch.js"),o=require("../text/Text.js"),a=require("../../icons/custom/theme/ThemeDarkIcon.js"),u=require("../../icons/custom/theme/ThemeLightIcon.js"),l=require("../../icons/NightIcon.js"),d=require("../../icons/SunnyIcon.js"),h=require("../../styles/constants/theme.js"),m=require("../../utils/hooks/useAminoTheme.js");function j(e){return e&&e.__esModule?e:{default:e}}require("clsx"),require("../../style-inject.es-d4ddeae4.js"),require("../help-text/HelpText.js"),require("../select/_StyledReactSelect.js"),require("react"),require("react-select"),require("../checkbox/Checkbox.js"),require("framer-motion"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../stack/Stack.js"),require("../../icons/flag-icon/useStableUniqueId.js"),require("uuid"),require("../../icons/icon-base/_ThemeIconBase.js"),require("../../Theme-61f4342c.js"),require("zod"),require("../../utils/hooks/useStorage.js"),require("../../utils/storage.js"),require("swr");var q,x,g=j(r),b=g.default.button(q||(q=e.__makeTemplateObject(["\n border: ",";\n color: ",";\n border-radius: ",";\n\n &:not([disabled]) {\n &:active,\n &:focus {\n outline: none;\n }\n }\n"],["\n border: ",";\n color: ",";\n border-radius: ",";\n\n &:not([disabled]) {\n &:active,\n &:focus {\n outline: none;\n }\n }\n"])),(function(e){return"2px solid ".concat(e.$isActive?h.theme.blue400:"transparent")}),(function(e){return e.$isActive?h.theme.primary:h.theme.textColor}),h.theme.radius8),p=g.default(t.Card)(x||(x=e.__makeTemplateObject(["\n background: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: ",";\n\n svg {\n height: 64px;\n width: 110px;\n box-shadow: ",";\n margin-bottom: ",";\n }\n"],["\n background: ",";\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: ",";\n\n svg {\n height: 64px;\n width: 110px;\n box-shadow: ",";\n margin-bottom: ",";\n }\n"])),h.theme.gray0,h.theme.space16,h.theme.v3ShadowLarge,h.theme.space16),y=[{label:"Light",value:"day"},{label:"Dark",value:"night"}];exports.ThemeSelect=function(e){var r=e.className,t=e.disabled,h=void 0!==t&&t,j=e.type,q=void 0===j?"select":j,x=m.useAminoTheme(),g=x.aminoTheme,f=x.setAminoTheme,k="day"===g;return n.jsxs(n.Fragment,{children:["cards"===q&&n.jsxs(s.HStack,{className:r,children:[n.jsx(b,{$isActive:"day"===g,"data-theme":"day",onClick:function(){return f("day")},type:"button",children:n.jsxs(p,{children:[n.jsx(u.ThemeLightIcon,{}),n.jsx(o.Text,{type:"bold-label",children:"Light"})]})}),n.jsx(b,{$isActive:"night"===g,"data-theme":"night",onClick:function(){return f("night")},type:"button",children:n.jsxs(p,{children:[n.jsx(a.ThemeDarkIcon,{}),n.jsx(o.Text,{type:"bold-label",children:"Dark"})]})})]}),"select"===q&&n.jsx(i.Select,{className:r,icon:function(){switch(g){case"day":default:return n.jsx(d.SunnyIcon,{});case"night":return n.jsx(l.NightIcon,{})}}(),isClearable:!1,isDisabled:h,onChange:function(e){return f((null==e?void 0:e.value)||"day")},options:y,value:y.filter((function(e){return e.value===g}))}),"toggle"===q&&n.jsx(c.Switch,{checked:k,className:r,disabled:h,onChange:function(){return!h&&f("day"===g?"night":"day")},switchIconLeft:n.jsx(l.NightIcon,{}),switchIconRight:n.jsx(d.SunnyIcon,{})})]})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "5.1.61",
3
+ "version": "5.1.62",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
@@ -0,0 +1 @@
1
+ "use strict";exports.styleInject=function(e,t){void 0===t&&(t={});var d=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===d&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}};