@zonos/amino 5.1.9 → 5.1.11

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 n=require("../../_tslib-ccfac372.js"),o=require("react/jsx-runtime"),e=require("styled-components"),r=require("../../styles/constants/theme.js");function c(n){return n&&n.__esModule?n:{default:n}}var l,g,d=c(e),t=d.default.div(l||(l=n.__makeTemplateObject(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),i=d.default.div(g||(g=n.__makeTemplateObject(["\n display: flex;\n gap: ",";\n font-size: ",";\n padding: 4px 8px;\n text-align: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n align-items: center;\n\n p {\n margin: 0;\n font-weight: ",";\n line-height: 16px;\n }\n svg {\n order: ",";\n }\n\n &.bold {\n // bold config default (gray)\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n\n // size\n &.small {\n padding: 2px 8px;\n }\n\n &.blue {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.green {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.red {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.orange {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.purple {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.cyan {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n }\n }\n"],["\n display: flex;\n gap: ",";\n font-size: ",";\n padding: 4px 8px;\n text-align: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n align-items: center;\n\n p {\n margin: 0;\n font-weight: ",";\n line-height: 16px;\n }\n svg {\n order: ",";\n }\n\n &.bold {\n // bold config default (gray)\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n\n // size\n &.small {\n padding: 2px 8px;\n }\n\n &.blue {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.green {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.red {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.orange {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.purple {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.cyan {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n }\n }\n"])),r.theme.space8,r.theme.fontSizeS,(function(n){return n.$rounded?"20px":r.theme.radius6}),r.theme.gray100,r.theme.gray800,(function(n){return n.$fontWeight}),(function(n){return n.$iconRight?"2":""}),r.theme.gray600,r.theme.gray100,r.theme.gray100,r.theme.blue100,r.theme.blue800,r.theme.blue600,r.theme.blue100,r.theme.blue100,r.theme.green100,r.theme.green800,r.theme.green600,r.theme.green100,r.theme.green100,r.theme.red100,r.theme.red800,r.theme.red600,r.theme.red100,r.theme.red100,r.theme.orange100,r.theme.orange800,r.theme.orange600,r.theme.orange100,r.theme.orange100,r.theme.purple100,r.theme.purple800,r.theme.purple600,r.theme.purple100,r.theme.purple100,r.theme.cyan100,r.theme.cyan800,r.theme.cyan600,r.theme.cyan100);exports.Badge=function(n){var e=n.bold,r=n.children,c=n.className,l=n.color,g=void 0===l?"gray":l,d=n.fontWeight,a=void 0===d?600:d,b=n.icon,u=n.iconRight,s=void 0!==u&&u,h=n.rounded,m=void 0!==h&&h,f=n.size,p=void 0===f?"default":f;return o.jsx(t,{className:c,children:o.jsxs(i,{$fontWeight:a,$iconRight:s,$rounded:m,className:[g,p,e?"bold":""].join(" "),children:[b,o.jsx("p",{children:r})]})})};
1
+ "use strict";var n=require("../../_tslib-ccfac372.js"),o=require("react/jsx-runtime"),e=require("styled-components"),r=require("../../styles/constants/theme.js");function c(n){return n&&n.__esModule?n:{default:n}}var l,d,g=c(e),t=g.default.div(l||(l=n.__makeTemplateObject(["\n display: inline-block;\n"],["\n display: inline-block;\n"]))),i=g.default.div(d||(d=n.__makeTemplateObject(["\n display: flex;\n gap: ",";\n font-size: ",";\n padding: 4px 8px;\n text-align: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n align-items: center;\n\n p {\n margin: 0;\n font-weight: ",";\n line-height: 16px;\n }\n svg {\n order: ",";\n height: 16px;\n width: 16px;\n }\n\n &.bold {\n // bold config default (gray)\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n\n // size\n &.small {\n padding: 2px ",";\n border-radius: ",";\n gap: 2px;\n }\n\n &.blue {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.green {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.red {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.orange {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.purple {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.cyan {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n }\n }\n"],["\n display: flex;\n gap: ",";\n font-size: ",";\n padding: 4px 8px;\n text-align: center;\n border-radius: ",";\n background-color: ",";\n color: ",";\n align-items: center;\n\n p {\n margin: 0;\n font-weight: ",";\n line-height: 16px;\n }\n svg {\n order: ",";\n height: 16px;\n width: 16px;\n }\n\n &.bold {\n // bold config default (gray)\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n\n // size\n &.small {\n padding: 2px ",";\n border-radius: ",";\n gap: 2px;\n }\n\n &.blue {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.green {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.red {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.orange {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.purple {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n & svg {\n color: ",";\n }\n }\n }\n\n &.cyan {\n // color config\n background-color: ",";\n color: ",";\n &.bold {\n // bold config\n background-color: ",";\n color: ",";\n }\n }\n"])),r.theme.space4,r.theme.fontSizeS,(function(n){return n.$rounded?"20px":r.theme.radius6}),r.theme.gray100,r.theme.gray800,(function(n){return n.$fontWeight}),(function(n){return n.$iconRight?"2":""}),r.theme.gray600,r.theme.gray100,r.theme.gray100,r.theme.space4,r.theme.radius4,r.theme.blue100,r.theme.blue800,r.theme.blue600,r.theme.blue100,r.theme.blue100,r.theme.green100,r.theme.green800,r.theme.green600,r.theme.green100,r.theme.green100,r.theme.red100,r.theme.red800,r.theme.red600,r.theme.red100,r.theme.red100,r.theme.orange100,r.theme.orange800,r.theme.orange600,r.theme.orange100,r.theme.orange100,r.theme.purple100,r.theme.purple800,r.theme.purple600,r.theme.purple100,r.theme.purple100,r.theme.cyan100,r.theme.cyan800,r.theme.cyan600,r.theme.cyan100);exports.Badge=function(n){var e=n.bold,r=n.children,c=n.className,l=n.color,d=void 0===l?"gray":l,g=n.fontWeight,a=void 0===g?600:g,b=n.icon,u=n.iconRight,h=void 0!==u&&u,s=n.rounded,m=void 0!==s&&s,p=n.size,f=void 0===p?"default":p;return o.jsx(t,{className:c,children:o.jsxs(i,{$fontWeight:a,$iconRight:h,$rounded:m,className:[d,f,e?"bold":""].join(" "),children:[b,o.jsx("p",{children:r})]})})};
@@ -12,6 +12,7 @@ type ButtonBase = {
12
12
  className?: string;
13
13
  color?: Color | 'inherit';
14
14
  disabled?: boolean;
15
+ fitContentWidth?: boolean;
15
16
  hoverBackground?: Color | 'inherit';
16
17
  icon?: ReactNode;
17
18
  iconRight?: boolean;
@@ -1 +1 @@
1
- "use strict";var n=require("../../_tslib-ccfac372.js"),e=require("react/jsx-runtime"),o=require("react"),t=require("styled-components"),r=require("./RippleGroup.js"),a=require("./useRipple.js"),i=require("../spinner/Spinner.js"),c=require("../../styles/constants/theme.js");function u(n){return n&&n.__esModule?n:{default:n}}require("framer-motion"),require("uuid"),require("./_Ripple.js");var s,d,l,h,g,b,p,m,f,x,k=u(t),v=function(n){return"inherit"===n?"inherit":n?c.theme[n]:void 0},w=function(n){switch(n){case"sm":return 16;case"lg":case"xl":return 24;default:return 20}},y=k.default.span(s||(s=n.__makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n gap: ",";\n"],["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n gap: ",";\n"])),c.theme.radius6,c.theme.space8),_=k.default.button(d||(d=n.__makeTemplateObject(["\n position: relative;\n outline: none;\n height: ",";\n line-height: ",";\n font-size: 14px;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 0 ",";\n border-radius: ",";\n transition: ",";\n font-weight: 500;\n user-select: none;\n font-family: ",";\n letter-spacing: normal;\n cursor: pointer;\n white-space: nowrap;\n padding: ",";\n\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n\n &.only-icon {\n width: ",";\n padding: 0;\n }\n\n &:active,\n &:focus {\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n }\n\n &:focus {\n outline: none;\n }\n\n &:active {\n transform: scale(0.99);\n }\n\n &:not(.only-icon).has-icon {\n &.icon-right {\n svg:not(.amino-spinner) {\n margin-left: ",";\n margin-right: 0;\n }\n }\n svg:not(.amino-spinner) {\n margin-right: ",";\n margin-left: 0;\n }\n }\n &.loading {\n color: transparent;\n }\n\n &[disabled] {\n cursor: not-allowed;\n .content {\n opacity: ",";\n }\n }\n"],["\n position: relative;\n outline: none;\n height: ",";\n line-height: ",";\n font-size: 14px;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 0 ",";\n border-radius: ",";\n transition: ",";\n font-weight: 500;\n user-select: none;\n font-family: ",";\n letter-spacing: normal;\n cursor: pointer;\n white-space: nowrap;\n padding: ",";\n\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n\n &.only-icon {\n width: ",";\n padding: 0;\n }\n\n &:active,\n &:focus {\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n }\n\n &:focus {\n outline: none;\n }\n\n &:active {\n transform: scale(0.99);\n }\n\n &:not(.only-icon).has-icon {\n &.icon-right {\n svg:not(.amino-spinner) {\n margin-left: ",";\n margin-right: 0;\n }\n }\n svg:not(.amino-spinner) {\n margin-right: ",";\n margin-left: 0;\n }\n }\n &.loading {\n color: transparent;\n }\n\n &[disabled] {\n cursor: not-allowed;\n .content {\n opacity: ",";\n }\n }\n"])),(function(n){return"var(--amino-size-".concat(n.size,")")}),(function(n){return"var(--amino-size-".concat(n.size,")")}),c.theme.space16,c.theme.radius6,c.theme.transition,c.theme.fontSans,(function(n){return function(n){switch(n){case"sm":return"".concat(c.theme.space4," ").concat(c.theme.space8);case"lg":case"xl":return"".concat(c.theme.space12," ").concat(c.theme.space24);default:return"".concat(c.theme.space8," ").concat(c.theme.space16)}}(n.size)}),(function(n){return"var(--amino-size-".concat(n.size,")")}),c.theme.space8,c.theme.space8,(function(n){return n.outline?.6:1})),j=k.default(_)(l||(l=n.__makeTemplateObject(["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.color)||n.outline?c.theme.primary:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.primary," inset"):c.theme.shadowButtonPrimary}),(function(n){return v(n.background)||n.outline?"transparent":c.theme.primary}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.blue100:""}),(function(n){return n.outline?"":c.theme.buttonPrimaryHover}),(function(n){return n.outline?c.theme.blue200:c.theme.blue700}),c.theme.focusButton,(function(n){return n.outline?"transparent":c.theme.blue400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.blue400):""}),y,(function(n){return n.outline?"transparent":c.theme.primary})),R=k.default(_)(h||(h=n.__makeTemplateObject(["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n &:active {\n background: ",";\n }\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n &:active {\n background: ",";\n }\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.color)||n.outline?c.theme.success:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.success):c.theme.shadowButtonSuccess}),(function(n){return v(n.background)||n.outline?"transparent":c.theme.success}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.green100:""}),(function(n){return n.outline?"":c.theme.buttonSuccessHover}),(function(n){return n.outline?c.theme.green200:c.theme.green700}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.success," inset, ").concat(c.theme.buttonFocusRing):c.theme.focusButton}),(function(n){return n.outline?"transparent":c.theme.green400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.green400):""}),y,(function(n){return n.outline?"transparent":c.theme.success})),B=k.default(_)(g||(g=n.__makeTemplateObject(["\n color: ",";\n background: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n\n "," {\n background: ",";\n }\n"],["\n color: ",";\n background: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.color)||c.theme.textColor}),(function(n){return n.outline?"transparent":v(n.background)||c.theme.surfaceColor}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.gray300," inset"):c.theme.shadowButtonStandard}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.gray100:""}),(function(n){return n.outline?"":c.theme.buttonStandardHover}),(function(n){return n.outline?c.theme.gray200:c.theme.gray100}),c.theme.focusButtonStandard,y,(function(n){return n.outline?"transparent":c.theme.surfaceColor})),z=k.default(_)(b||(b=n.__makeTemplateObject(["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.background)||n.outline?"transparent":c.theme.danger}),(function(n){return v(n.color)||n.outline?c.theme.danger:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.danger):c.theme.shadowButtonDanger}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.red100:""}),(function(n){return n.outline?"":c.theme.buttonDangerHover}),(function(n){return n.outline?c.theme.red200:c.theme.red700}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.danger," inset, ").concat(c.theme.buttonFocusRing):c.theme.focusButton}),(function(n){return n.outline?"transparent":c.theme.red400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.red400):""}),y,(function(n){return n.outline?"transparent":c.theme.danger})),O=k.default(_)(p||(p=n.__makeTemplateObject(["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.background)||n.outline?"transparent":c.theme.warning}),(function(n){return v(n.color)||n.outline?c.theme.warning:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.warning):c.theme.shadowButtonWarning}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.orange100:""}),(function(n){return n.outline?"":c.theme.buttonWarningHover}),(function(n){return n.outline?c.theme.orange200:c.theme.orange700}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.warning," inset, ").concat(c.theme.buttonFocusRing):c.theme.focusButton}),(function(n){return n.outline?"transparent":c.theme.orange400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.orange400):""}),y,(function(n){return n.outline?"transparent":c.theme.warning})),T=k.default(_)(m||(m=n.__makeTemplateObject(["\n background: ",";\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"],["\n background: ",";\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"])),(function(n){return v(n.background)||"none"}),(function(n){return v(n.color)||c.theme.textColorSecondary}),(function(n){return v(n.hoverBackground)||c.theme.gray100}),c.theme.gray200,c.theme.buttonFocusRing),q=k.default(_)(f||(f=n.__makeTemplateObject(["\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"],["\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"])),(function(n){return v(n.color)||c.theme.primary}),(function(n){return v(n.hoverBackground)||c.theme.blue100}),c.theme.blue200,c.theme.buttonFocusRing),C=k.default(_)(x||(x=n.__makeTemplateObject(["\n color: ",";\n &:not([disabled]) {\n &:hover {\n color: ",";\n }\n }\n &[disabled] {\n color: ",";\n }\n &.loading {\n color: transparent;\n }\n"],["\n color: ",";\n &:not([disabled]) {\n &:hover {\n color: ",";\n }\n }\n &[disabled] {\n color: ",";\n }\n &.loading {\n color: transparent;\n }\n"])),(function(n){return n.href?c.theme.primary:c.theme.textColorSecondary}),(function(n){return n.href?c.theme.blue500:c.theme.gray700}),(function(n){return n.href?c.theme.blue300:c.theme.gray300})),S=_;exports.Button=function(t){var c=t.children,u=t.className,s=t.disabled,d=void 0!==s&&s,l=t.icon,h=t.iconRight,g=t.loading,b=void 0!==g&&g,p=t.loadingText,m=t.noRipple,f=void 0!==m&&m,x=t.size,k=void 0===x?"sm":x,v=t.spinnerColor,_=t.tag,I=t.themeOverride,G=t.type,F=void 0===G?"button":G,H=t.variant,N=void 0===H?"standard":H,D=n.__rest(t,["children","className","disabled","icon","iconRight","loading","loadingText","noRipple","size","spinnerColor","tag","themeOverride","type","variant"]),E=_||"button",P=function(n){return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"content",children:!h&&l}),e.jsx("div",{className:"content",children:c}),e.jsx("span",{className:"content",children:h&&l}),"plain"!==N&&"text"!==N&&b&&e.jsxs(y,{children:[e.jsx(i.Spinner,{color:n,size:w(k)}),p]})]})},W=[u||"",l&&!c?"only-icon":"",h?"icon-right":"",l?"has-icon":"",b?"loading":"",I].filter(Boolean).join(" "),M=o.useRef(null),A=a.useRipple({disabled:d||b,rippleEnabled:!f&&!["plain","text"].includes(N),rippleRef:M}),J=A.getRippleHandlers,K=A.rippleEnabled,L={className:W,disabled:d||b,size:k},Q=n.__assign(n.__assign(n.__assign({type:F},L),D),J(D));switch(N){case"primary":return e.jsxs(j,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||Q.outline?"info":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"success":return e.jsxs(R,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||Q.outline?"success":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"warning":return e.jsxs(O,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||Q.outline?"warning":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"danger":return e.jsxs(z,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||Q.outline?"danger":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"subtle":return e.jsxs(T,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||"black"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"link":return e.jsxs(q,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||"info"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"plain":return e.jsx(S,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:P(v)}));case"text":return e.jsx(C,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:P(v)}));default:return e.jsxs(B,n.__assign({as:E,tabIndex:"div"===E?0:void 0},Q,{children:[P(v||"black"),K&&e.jsx(r.RippleGroup,{ref:M})]}))}};
1
+ "use strict";var n=require("../../_tslib-ccfac372.js"),e=require("react/jsx-runtime"),t=require("react"),o=require("styled-components"),r=require("./RippleGroup.js"),a=require("./useRipple.js"),i=require("../spinner/Spinner.js"),c=require("../../styles/constants/theme.js");function u(n){return n&&n.__esModule?n:{default:n}}require("framer-motion"),require("uuid"),require("./_Ripple.js");var s,d,l,h,g,b,p,m,f,x,k=u(o),v=function(n){return"inherit"===n?"inherit":n?c.theme[n]:void 0},w=function(n){switch(n){case"sm":return 16;case"lg":case"xl":return 24;default:return 20}},y=k.default.span(s||(s=n.__makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n gap: ",";\n"],["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ",";\n gap: ",";\n"])),c.theme.radius6,c.theme.space8),_=k.default.button(d||(d=n.__makeTemplateObject(["\n position: relative;\n outline: none;\n height: ",";\n line-height: ",";\n font-size: 14px;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 0 ",";\n border-radius: ",";\n transition: ",";\n font-weight: 500;\n user-select: none;\n font-family: ",";\n letter-spacing: normal;\n cursor: pointer;\n white-space: nowrap;\n padding: ",";\n width: ",";\n\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n\n &.only-icon {\n width: ",";\n padding: 0;\n }\n\n &:active,\n &:focus {\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n }\n\n &:focus {\n outline: none;\n }\n\n &:active {\n transform: scale(0.99);\n }\n\n &:not(.only-icon).has-icon {\n &.icon-right {\n svg:not(.amino-spinner) {\n margin-left: ",";\n margin-right: 0;\n }\n }\n svg:not(.amino-spinner) {\n margin-right: ",";\n margin-left: 0;\n }\n }\n &.loading {\n color: transparent;\n }\n\n &[disabled] {\n cursor: not-allowed;\n .content {\n opacity: ",";\n }\n }\n"],["\n position: relative;\n outline: none;\n height: ",";\n line-height: ",";\n font-size: 14px;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n padding: 0 ",";\n border-radius: ",";\n transition: ",";\n font-weight: 500;\n user-select: none;\n font-family: ",";\n letter-spacing: normal;\n cursor: pointer;\n white-space: nowrap;\n padding: ",";\n width: ",";\n\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n\n &.only-icon {\n width: ",";\n padding: 0;\n }\n\n &:active,\n &:focus {\n svg path:not([data-is-secondary-color]) {\n fill: currentColor;\n }\n }\n\n &:focus {\n outline: none;\n }\n\n &:active {\n transform: scale(0.99);\n }\n\n &:not(.only-icon).has-icon {\n &.icon-right {\n svg:not(.amino-spinner) {\n margin-left: ",";\n margin-right: 0;\n }\n }\n svg:not(.amino-spinner) {\n margin-right: ",";\n margin-left: 0;\n }\n }\n &.loading {\n color: transparent;\n }\n\n &[disabled] {\n cursor: not-allowed;\n .content {\n opacity: ",";\n }\n }\n"])),(function(n){return"var(--amino-size-".concat(n.size,")")}),(function(n){return"var(--amino-size-".concat(n.size,")")}),c.theme.space16,c.theme.radius6,c.theme.transition,c.theme.fontSans,(function(n){return function(n){switch(n){case"sm":return"".concat(c.theme.space4," ").concat(c.theme.space8);case"lg":case"xl":return"".concat(c.theme.space12," ").concat(c.theme.space24);default:return"".concat(c.theme.space8," ").concat(c.theme.space16)}}(n.size)}),(function(n){return n.fitContentWidth&&"fit-content"}),(function(n){return"var(--amino-size-".concat(n.size,")")}),c.theme.space8,c.theme.space8,(function(n){return n.outline?.6:1})),j=k.default(_)(l||(l=n.__makeTemplateObject(["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.color)||n.outline?c.theme.primary:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.primary," inset"):c.theme.shadowButtonPrimary}),(function(n){return v(n.background)||n.outline?"transparent":c.theme.primary}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.blue100:""}),(function(n){return n.outline?"":c.theme.buttonPrimaryHover}),(function(n){return n.outline?c.theme.blue200:c.theme.blue700}),c.theme.focusButton,(function(n){return n.outline?"transparent":c.theme.blue400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.blue400):""}),y,(function(n){return n.outline?"transparent":c.theme.primary})),R=k.default(_)(h||(h=n.__makeTemplateObject(["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n &:active {\n background: ",";\n }\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n color: ",";\n box-shadow: ",";\n background: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n &:active {\n background: ",";\n }\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.color)||n.outline?c.theme.success:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.success):c.theme.shadowButtonSuccess}),(function(n){return v(n.background)||n.outline?"transparent":c.theme.success}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.green100:""}),(function(n){return n.outline?"":c.theme.buttonSuccessHover}),(function(n){return n.outline?c.theme.green200:c.theme.green700}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.success," inset, ").concat(c.theme.buttonFocusRing):c.theme.focusButton}),(function(n){return n.outline?"transparent":c.theme.green400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.green400):""}),y,(function(n){return n.outline?"transparent":c.theme.success})),B=k.default(_)(g||(g=n.__makeTemplateObject(["\n color: ",";\n background: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n\n "," {\n background: ",";\n }\n"],["\n color: ",";\n background: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.color)||c.theme.textColor}),(function(n){return n.outline?"transparent":v(n.background)||c.theme.surfaceColor}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.gray300," inset"):c.theme.shadowButtonStandard}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.gray100:""}),(function(n){return n.outline?"":c.theme.buttonStandardHover}),(function(n){return n.outline?c.theme.gray200:c.theme.gray100}),c.theme.focusButtonStandard,y,(function(n){return n.outline?"transparent":c.theme.surfaceColor})),z=k.default(_)(b||(b=n.__makeTemplateObject(["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.background)||n.outline?"transparent":c.theme.danger}),(function(n){return v(n.color)||n.outline?c.theme.danger:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.danger):c.theme.shadowButtonDanger}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.red100:""}),(function(n){return n.outline?"":c.theme.buttonDangerHover}),(function(n){return n.outline?c.theme.red200:c.theme.red700}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.danger," inset, ").concat(c.theme.buttonFocusRing):c.theme.focusButton}),(function(n){return n.outline?"transparent":c.theme.red400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.red400):""}),y,(function(n){return n.outline?"transparent":c.theme.danger})),C=k.default(_)(p||(p=n.__makeTemplateObject(["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"],["\n background: ",";\n color: ",";\n box-shadow: ",";\n\n &:not([disabled]) {\n &:hover {\n background-color: ",";\n background-image: ",";\n }\n &:active {\n background: ",";\n }\n &:focus {\n box-shadow: ",";\n }\n }\n\n &[disabled] {\n background: ",";\n box-shadow: ",";\n }\n\n "," {\n background: ",";\n }\n"])),(function(n){return v(n.background)||n.outline?"transparent":c.theme.warning}),(function(n){return v(n.color)||n.outline?c.theme.warning:c.theme.gray0}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.warning):c.theme.shadowButtonWarning}),(function(n){return v(n.hoverBackground)||n.outline?c.theme.orange100:""}),(function(n){return n.outline?"":c.theme.buttonWarningHover}),(function(n){return n.outline?c.theme.orange200:c.theme.orange700}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.warning," inset, ").concat(c.theme.buttonFocusRing):c.theme.focusButton}),(function(n){return n.outline?"transparent":c.theme.orange400}),(function(n){return n.outline?"0px 0px 0px 1px ".concat(c.theme.orange400):""}),y,(function(n){return n.outline?"transparent":c.theme.warning})),O=k.default(_)(m||(m=n.__makeTemplateObject(["\n background: ",";\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"],["\n background: ",";\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"])),(function(n){return v(n.background)||"none"}),(function(n){return v(n.color)||c.theme.textColorSecondary}),(function(n){return v(n.hoverBackground)||c.theme.gray100}),c.theme.gray200,c.theme.buttonFocusRing),T=k.default(_)(f||(f=n.__makeTemplateObject(["\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"],["\n color: ",";\n\n &:not([disabled]) {\n &:hover {\n background: ",";\n }\n &:active {\n background: ",";\n }\n }\n\n &:focus {\n box-shadow: ",";\n }\n\n &[disabled] {\n .content {\n opacity: 0.6;\n }\n }\n"])),(function(n){return v(n.color)||c.theme.primary}),(function(n){return v(n.hoverBackground)||c.theme.blue100}),c.theme.blue200,c.theme.buttonFocusRing),q=k.default(_)(x||(x=n.__makeTemplateObject(["\n color: ",";\n &:not([disabled]) {\n &:hover {\n color: ",";\n }\n }\n &[disabled] {\n color: ",";\n }\n &.loading {\n color: transparent;\n }\n"],["\n color: ",";\n &:not([disabled]) {\n &:hover {\n color: ",";\n }\n }\n &[disabled] {\n color: ",";\n }\n &.loading {\n color: transparent;\n }\n"])),(function(n){return n.href?c.theme.primary:c.theme.textColorSecondary}),(function(n){return n.href?c.theme.blue500:c.theme.gray700}),(function(n){return n.href?c.theme.blue300:c.theme.gray300})),S=_;exports.Button=function(o){var c=o.children,u=o.className,s=o.disabled,d=void 0!==s&&s,l=o.icon,h=o.iconRight,g=o.loading,b=void 0!==g&&g,p=o.loadingText,m=o.noRipple,f=void 0!==m&&m,x=o.size,k=void 0===x?"sm":x,v=o.spinnerColor,_=o.tag,I=o.themeOverride,G=o.type,F=void 0===G?"button":G,H=o.variant,N=void 0===H?"standard":H,W=n.__rest(o,["children","className","disabled","icon","iconRight","loading","loadingText","noRipple","size","spinnerColor","tag","themeOverride","type","variant"]),D=_||"button",E=function(n){return e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"content",children:!h&&l}),e.jsx("div",{className:"content",children:c}),e.jsx("span",{className:"content",children:h&&l}),"plain"!==N&&"text"!==N&&b&&e.jsxs(y,{children:[e.jsx(i.Spinner,{color:n,size:w(k)}),p]})]})},P=[u||"",l&&!c?"only-icon":"",h?"icon-right":"",l?"has-icon":"",b?"loading":"",I].filter(Boolean).join(" "),M=t.useRef(null),A=a.useRipple({disabled:d||b,rippleEnabled:!f&&!["plain","text"].includes(N),rippleRef:M}),J=A.getRippleHandlers,K=A.rippleEnabled,L={className:P,disabled:d||b,size:k},Q=n.__assign(n.__assign(n.__assign({type:F},L),W),J(W));switch(N){case"primary":return e.jsxs(j,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||Q.outline?"info":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"success":return e.jsxs(R,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||Q.outline?"success":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"warning":return e.jsxs(C,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||Q.outline?"warning":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"danger":return e.jsxs(z,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||Q.outline?"danger":"white"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"subtle":return e.jsxs(O,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||"black"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"link":return e.jsxs(T,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||"info"),K&&e.jsx(r.RippleGroup,{ref:M})]}));case"plain":return e.jsx(S,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:E(v)}));case"text":return e.jsx(q,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:E(v)}));default:return e.jsxs(B,n.__assign({as:D,tabIndex:"div"===D?0:void 0},Q,{children:[E(v||"black"),K&&e.jsx(r.RippleGroup,{ref:M})]}))}};
@@ -1 +1 @@
1
- "use strict";var n=require("../../_tslib-ccfac372.js"),e=require("react/jsx-runtime"),r=require("styled-components"),i=require("../../icons/RemoveIcon.js"),t=require("../../styles/constants/theme.js");function o(n){return n&&n.__esModule?n:{default:n}}require("react"),require("../../icons/icon-base/_IconBase.js");var a,s,l,c,d=o(r),u=d.default.div(a||(a=n.__makeTemplateObject(["\n display: inline-flex;\n // default background color (gray)\n background-color: ",";\n border-radius: ",";\n\n height: ",";\n"],["\n display: inline-flex;\n // default background color (gray)\n background-color: ",";\n border-radius: ",";\n\n height: ",";\n"])),t.theme.gray200,t.theme.radius6,(function(n){return"base"===n.$size?t.theme.space20:t.theme.space24})),g=d.default.button(s||(s=n.__makeTemplateObject(["\n display: inline-flex;\n font-size: ",";\n background-color: ",";\n border-radius: "," 0 0 ",";\n gap: ",";\n font-weight: normal;\n padding: 0 ",";\n\n color: ",";\n align-items: center;\n text-align: center;\n font-weight: 500;\n &:focus {\n outline: none;\n }\n p {\n margin: 0;\n font-weight: 600;\n }\n\n svg {\n order: ",";\n }\n"],["\n display: inline-flex;\n font-size: ",";\n background-color: ",";\n border-radius: "," 0 0 ",";\n gap: ",";\n font-weight: normal;\n padding: 0 ",";\n\n color: ",";\n align-items: center;\n text-align: center;\n font-weight: 500;\n &:focus {\n outline: none;\n }\n p {\n margin: 0;\n font-weight: 600;\n }\n\n svg {\n order: ",";\n }\n"])),(function(n){return"base"===n.size?t.theme.fontSizeS:t.theme.fontSizeBase}),t.theme.gray200,t.theme.radius6,t.theme.radius6,t.theme.space8,t.theme.space8,t.theme.gray800,(function(n){return n.iconRight?"2":""})),m=d.default.button(l||(l=n.__makeTemplateObject(["\n border-radius: 0 "," "," 0;\n display: inline-flex;\n align-items: center;\n padding: ",";\n"],["\n border-radius: 0 "," "," 0;\n display: inline-flex;\n align-items: center;\n padding: ",";\n"])),t.theme.radius6,t.theme.radius6,t.theme.space4),h=d.default.div(c||(c=n.__makeTemplateObject(["\n display: flex;\n\n ",":hover & {\n background-color: ",";\n border-radius: 50%;\n }\n"],["\n display: flex;\n\n ",":hover & {\n background-color: ",";\n border-radius: 50%;\n }\n"])),m,t.theme.gray300);exports.Tag=function(n){var r=n.children,t=n.className,o=n.icon,a=n.iconRight,s=n.onClick,l=n.onClose,c=n.size,d=void 0===c?"base":c;return e.jsxs(u,{$size:d,className:t,children:[e.jsxs(g,{iconRight:a,onClick:s,size:d,type:"button",children:[o,e.jsx("p",{children:r})]}),e.jsx(m,{onClick:l,type:"button",children:e.jsx(h,{children:e.jsx(i.RemoveIcon,{size:14})})})]})};
1
+ "use strict";var n=require("../../_tslib-ccfac372.js"),e=require("react/jsx-runtime"),t=require("styled-components"),r=require("../../icons/RemoveIcon.js"),i=require("../../styles/constants/theme.js");function o(n){return n&&n.__esModule?n:{default:n}}require("react"),require("../../icons/icon-base/_IconBase.js");var a,s,c,l,d=o(t),u=d.default.div(a||(a=n.__makeTemplateObject(["\n display: inline-flex;\n // default background color (gray)\n background-color: ",";\n border-radius: ",";\n\n height: ",";\n"],["\n display: inline-flex;\n // default background color (gray)\n background-color: ",";\n border-radius: ",";\n\n height: ",";\n"])),i.theme.gray100,i.theme.radius4,(function(n){return"base"===n.$size?i.theme.space20:i.theme.space24})),g=d.default.button(s||(s=n.__makeTemplateObject(["\n display: inline-flex;\n font-size: ",";\n background-color: ",";\n border-radius: "," 0 0 ",";\n font-weight: normal;\n padding: ",";\n gap: ",";\n color: ",";\n align-items: center;\n text-align: center;\n font-weight: 600;\n &:focus {\n outline: none;\n }\n p {\n margin: 0;\n font-weight: 600;\n }\n\n svg {\n order: ",";\n }\n"],["\n display: inline-flex;\n font-size: ",";\n background-color: ",";\n border-radius: "," 0 0 ",";\n font-weight: normal;\n padding: ",";\n gap: ",";\n color: ",";\n align-items: center;\n text-align: center;\n font-weight: 600;\n &:focus {\n outline: none;\n }\n p {\n margin: 0;\n font-weight: 600;\n }\n\n svg {\n order: ",";\n }\n"])),i.theme.fontSizeS,i.theme.gray100,i.theme.radius6,i.theme.radius6,(function(n){return"base"===n.size?"2px ".concat(i.theme.space4):"".concat(i.theme.space4," ").concat(i.theme.space4," ").concat(i.theme.space4," ").concat(i.theme.space8)}),i.theme.space4,i.theme.textColor,(function(n){return n.iconRight?"2":""})),m=d.default.button(c||(c=n.__makeTemplateObject(["\n border-radius: ",";\n display: inline-flex;\n align-items: center;\n padding: ",";\n"],["\n border-radius: ",";\n display: inline-flex;\n align-items: center;\n padding: ",";\n"])),i.theme.radius4,(function(n){return"base"===n.size?"2px 3px":"4px 5px"})),h=d.default.div(l||(l=n.__makeTemplateObject(["\n display: flex;\n\n ",":hover & {\n background-color: ",";\n border-radius: 50%;\n }\n"],["\n display: flex;\n\n ",":hover & {\n background-color: ",";\n border-radius: 50%;\n }\n"])),m,i.theme.gray300);exports.Tag=function(n){var t=n.children,i=n.className,o=n.icon,a=n.iconRight,s=n.onClick,c=n.onClose,l=n.size,d=void 0===l?"base":l;return e.jsxs(u,{$size:d,className:i,children:[e.jsxs(g,{iconRight:a,onClick:s,size:d,type:"button",children:[o,e.jsx("p",{children:t})]}),e.jsx(m,{onClick:c,size:d,type:"button",children:e.jsx(h,{children:e.jsx(r.RemoveIcon,{size:14})})})]})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "5.1.9",
3
+ "version": "5.1.11",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",