@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.
- package/components/card/Card.js +1 -1
- package/components/danger-zone/DangerZone.js +1 -1
- package/components/layout/Layout.js +1 -1
- package/components/rich-card-select/RichCardStateSelect.js +1 -1
- package/components/theme-select/ThemeSelect.js +1 -1
- package/package.json +1 -1
- package/style-inject.es-d4ddeae4.js +1 -0
package/components/card/Card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
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
|
|
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
|
|
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,
|
|
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("
|
|
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
|
@@ -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))}};
|