@zonos/amino 5.1.41 → 5.1.42
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");require("react");var r=require("styled-components"),t=require("../button/Button.js"),i=require("../dialog/BaseDialog.js"),a=require("../stack/HStack.js"),o=require("../stack/VStack.js"),s=require("../text/Text.js"),d=require("../../icons/RemoveIcon.js"),l=require("../../styles/constants/theme.js");function c(e){return e&&e.__esModule?e:{default:e}}require("../button/RippleGroup.js"),require("framer-motion"),require("uuid"),require("../button/_Ripple.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("react-dom"),require("../stack/Stack.js"),require("../../icons/icon-base/_IconBase.js");var u,h,p,m,b,x=c(r),g=x.default(i.BaseDialog)(u||(u=e.__makeTemplateObject(["\n /* Override BaseDialog.Popup styles */\n border-radius: 0;\n max-height: none;\n overflow: unset;\n border: none;\n background: transparent;\n box-shadow: none;\n\n position: absolute;\n height: 100vh;\n right: 0;\n top: 0;\n"],["\n /* Override BaseDialog.Popup styles */\n border-radius: 0;\n max-height: none;\n overflow: unset;\n border: none;\n background: transparent;\n box-shadow: none;\n\n position: absolute;\n height: 100vh;\n right: 0;\n top: 0;\n"]))),f=x.default.div(h||(h=e.__makeTemplateObject(["\n height: 100%;\n margin: ",";\n border-radius: ",";\n background: ",";\n\n display: flex;\n flex-direction: column;\n\n box-shadow: ",";\n"],["\n height: 100%;\n margin: ",";\n border-radius: ",";\n background: ",";\n\n display: flex;\n flex-direction: column;\n\n box-shadow: ",";\n"])),l.theme.space8,l.theme.space12,l.theme.surfaceColor,l.theme.v3ShadowXxl),j=x.default.header(p||(p=e.__makeTemplateObject(["\n padding: ",";\n border-bottom: ",";\n\n display: flex;\n gap: ",";\n align-items: center;\n\n .header-content {\n margin: 0;\n flex: 1;\n }\n"],["\n padding: ",";\n border-bottom: ",";\n\n display: flex;\n gap: ",";\n align-items: center;\n\n .header-content {\n margin: 0;\n flex: 1;\n }\n"])),l.theme.space16,l.theme.border,l.theme.space16),v=x.default.div(m||(m=e.__makeTemplateObject(["\n padding: ",";\n overflow-y: auto;\n overscroll-behavior: contain;\n flex: 1;\n"],["\n padding: ",";\n overflow-y: auto;\n overscroll-behavior: contain;\n flex: 1;\n"])),l.theme.space24),k=x.default.div(b||(b=e.__makeTemplateObject(["\n padding: ",";\n border-radius: ",";\n border-top: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background: ",";\n\n & > div + div {\n margin-left: ",";\n }\n"],["\n padding: ",";\n border-radius: ",";\n border-top: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background: ",";\n\n & > div + div {\n margin-left: ",";\n }\n"])),l.theme.space24,l.theme.space12,l.theme.border,l.theme.surfaceColorSecondary,l.theme.space8);exports.SlideOver=function(r){var i=r.actions,l=r.children,c=r.label,u=r.onClose,h=r.subtitle,p=r.width,m=e.__rest(r,["actions","children","label","onClose","subtitle","width"]);return n.jsx(g,e.__assign({onClose:u,popupMotionProps:{animate:{x:0},exit:{x:
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime");require("react");var r=require("styled-components"),t=require("../button/Button.js"),i=require("../dialog/BaseDialog.js"),a=require("../stack/HStack.js"),o=require("../stack/VStack.js"),s=require("../text/Text.js"),d=require("../../icons/RemoveIcon.js"),l=require("../../styles/constants/theme.js");function c(e){return e&&e.__esModule?e:{default:e}}require("../button/RippleGroup.js"),require("framer-motion"),require("uuid"),require("../button/_Ripple.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("react-dom"),require("../stack/Stack.js"),require("../../icons/icon-base/_IconBase.js");var u,h,p,m,b,x=c(r),g=x.default(i.BaseDialog)(u||(u=e.__makeTemplateObject(["\n /* Override BaseDialog.Popup styles */\n border-radius: 0;\n max-height: none;\n overflow: unset;\n border: none;\n background: transparent;\n box-shadow: none;\n\n position: absolute;\n height: 100vh;\n right: 0;\n top: 0;\n"],["\n /* Override BaseDialog.Popup styles */\n border-radius: 0;\n max-height: none;\n overflow: unset;\n border: none;\n background: transparent;\n box-shadow: none;\n\n position: absolute;\n height: 100vh;\n right: 0;\n top: 0;\n"]))),f=x.default.div(h||(h=e.__makeTemplateObject(["\n height: 100%;\n margin: ",";\n border-radius: ",";\n background: ",";\n\n display: flex;\n flex-direction: column;\n\n box-shadow: ",";\n"],["\n height: 100%;\n margin: ",";\n border-radius: ",";\n background: ",";\n\n display: flex;\n flex-direction: column;\n\n box-shadow: ",";\n"])),l.theme.space8,l.theme.space12,l.theme.surfaceColor,l.theme.v3ShadowXxl),j=x.default.header(p||(p=e.__makeTemplateObject(["\n padding: ",";\n border-bottom: ",";\n\n display: flex;\n gap: ",";\n align-items: center;\n\n .header-content {\n margin: 0;\n flex: 1;\n }\n"],["\n padding: ",";\n border-bottom: ",";\n\n display: flex;\n gap: ",";\n align-items: center;\n\n .header-content {\n margin: 0;\n flex: 1;\n }\n"])),l.theme.space16,l.theme.border,l.theme.space16),v=x.default.div(m||(m=e.__makeTemplateObject(["\n padding: ",";\n overflow-y: auto;\n overscroll-behavior: contain;\n flex: 1;\n"],["\n padding: ",";\n overflow-y: auto;\n overscroll-behavior: contain;\n flex: 1;\n"])),l.theme.space24),k=x.default.div(b||(b=e.__makeTemplateObject(["\n padding: ",";\n border-radius: ",";\n border-top: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background: ",";\n\n & > div + div {\n margin-left: ",";\n }\n"],["\n padding: ",";\n border-radius: ",";\n border-top: ",";\n display: flex;\n align-items: center;\n justify-content: flex-end;\n background: ",";\n\n & > div + div {\n margin-left: ",";\n }\n"])),l.theme.space24,l.theme.space12,l.theme.border,l.theme.surfaceColorSecondary,l.theme.space8);exports.SlideOver=function(r){var i=r.actions,l=r.children,c=r.label,u=r.onClose,h=r.subtitle,p=r.width,m=void 0===p?444:p,b=e.__rest(r,["actions","children","label","onClose","subtitle","width"]);return n.jsx(g,e.__assign({onClose:u,popupMotionProps:{animate:{x:0},exit:{x:m},initial:{x:m},transition:{duration:.45,ease:[.4,0,.2,1]}},width:m},b,{children:n.jsxs(f,{children:[n.jsxs(j,{children:[n.jsx(t.Button,{icon:n.jsx(d.RemoveIcon,{}),onClick:u}),h?n.jsxs(o.VStack,{className:"header-content",spacing:0,children:[n.jsx(s.Text,{type:"subheader",children:c}),h]}):n.jsx(s.Text,{className:"header-content",type:"subheader",children:c})]}),n.jsx(v,{children:l}),i&&n.jsx(k,{children:n.jsx(a.HStack,{spacing:8,children:i})})]})}))};
|
|
@@ -86,7 +86,7 @@ type Type = (typeof textOptions)[number]['type'];
|
|
|
86
86
|
export type FontWeight = (typeof textOptions)[number]['weight'] | 800;
|
|
87
87
|
type Tag = (typeof textOptions)[number]['tag'];
|
|
88
88
|
type TypographyOverrides = {
|
|
89
|
-
color?: Color;
|
|
89
|
+
color?: Color | 'textColorSecondary';
|
|
90
90
|
fontSize?: Size;
|
|
91
91
|
fontWeight?: FontWeight;
|
|
92
92
|
lineHeight?: Size;
|