@zonos/amino 5.1.85 → 5.1.86
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/alert-dialog/AlertContext.js +1 -1
- package/components/alert-dialog/AlertDialog.js +1 -1
- package/components/alert-dialog/useAlert.js +1 -1
- package/components/announcement-dialog/AnnouncementDialog.js +1 -1
- package/components/button/Button.js +1 -1
- package/components/button/ButtonIcon.js +1 -1
- package/components/card/Card.js +1 -1
- package/components/confirm-dialog/ConfirmContext.js +1 -1
- package/components/confirm-dialog/ConfirmDialog.js +1 -1
- package/components/confirm-dialog/useConfirm.js +1 -1
- package/components/connection-map/ConnectionMap.js +1 -1
- package/components/cover-sheet/CoverSheetActions.js +1 -1
- package/components/danger-zone/DangerZone.js +1 -1
- package/components/dialog/Dialog.js +1 -1
- package/components/filter/filter-amount/FilterAmount.js +1 -1
- package/components/filter/filter-select/FilterSelect.js +1 -1
- package/components/filter/filter-text/FilterText.js +1 -1
- package/components/filter/useFilterWrapper.js +1 -1
- package/components/nested-data-table/NestedDataTable.js +1 -1
- package/components/nested-data-table/NestedDataTableHasura.js +1 -1
- package/components/nested-data-table/_TableData.js +1 -1
- package/components/rich-card-select/RichCardStateSelect.js +1 -1
- package/components/rich-checkbox/RichCheckbox.js +1 -1
- package/components/rich-radio/RichRadio.js +1 -1
- package/components/section/HSection.js +1 -1
- package/components/section/VSection.js +1 -1
- package/components/section/_SectionHeader.d.ts +3 -3
- package/components/section/_SectionHeader.js +1 -1
- package/components/section/_SectionInnerWrapper.d.ts +3 -3
- package/components/section/_SectionInnerWrapper.js +1 -1
- package/components/section/_SectionSubheader.d.ts +3 -3
- package/components/section/_SectionSubheader.js +1 -1
- package/components/select/CountryPhoneSelect.js +1 -1
- package/components/select/_StyledReactSelect.d.ts +1 -1
- package/components/select/_StyledReactSelect.js +1 -1
- package/components/simple-table/SimpleTable.js +1 -1
- package/components/skeleton/Skeleton.d.ts +1 -1
- package/components/skeleton/Skeleton.js +1 -1
- package/components/slide-over/SlideOver.js +1 -1
- package/components/slider/Slider.js +1 -1
- package/components/sortable-list/SortableList.js +1 -1
- package/components/sortable-list/SortableListItem.js +1 -1
- package/components/spinner/Spinner.d.ts +1 -1
- package/components/spinner/Spinner.js +1 -1
- package/components/split-panel/SplitPanel.d.ts +3 -3
- package/components/split-panel/SplitPanel.js +1 -1
- package/components/stack/HStack.d.ts +1 -1
- package/components/stack/HStack.js +1 -1
- package/components/stack/Stack.d.ts +6 -1
- package/components/stack/Stack.js +1 -1
- package/components/stack/VStack.d.ts +1 -1
- package/components/stack/VStack.js +1 -1
- package/components/surface/Surface.d.ts +3 -3
- package/components/surface/Surface.js +1 -1
- package/components/switch/Switch.js +1 -1
- package/components/text/Text.d.ts +3 -2
- package/components/text/Text.js +1 -1
- package/components/tooltip/Tooltip.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),r=require("clsx"),n=require("../../style-inject.es-d4ddeae4.js");function t(e){return e&&e.__esModule?e:{default:e}}var i=t(r),s="Amino__SectionInnerWrapper-module__styledSectionInnerWrapper--J-UCy";n.styleInject(".Amino__SectionInnerWrapper-module__styledSectionInnerWrapper--J-UCy{align-items:center;align-items:flex-start;display:flex;margin-bottom:24px}");exports.SectionInnerWrapper=function(r){var n=r.children,t=r.className,a=r.style;return e.jsx("header",{className:i.default(t,s),style:a,children:n})};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
type
|
|
2
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
+
type Props = BaseProps & {
|
|
3
4
|
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const SectionSubheader: ({ children, className }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const SectionSubheader: ({ children, className, style }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("clsx"),r=require("../text/Text.js"),s=require("../../style-inject.es-d4ddeae4.js");function i(e){return e&&e.__esModule?e:{default:e}}require("../../_tslib-ccfac372.js"),require("styled-components"),require("../../styles/constants/theme.js");var n=i(t),u="Amino__SectionSubheader-module__styledSectionSubheader--EHA4c";s.styleInject(".Amino__SectionSubheader-module__styledSectionSubheader--EHA4c.Amino__SectionSubheader-module__styledSectionSubheader--EHA4c{margin-top:8px}");exports.SectionSubheader=function(t){var s=t.children,i=t.className,c=t.style;return e.jsx(r.Text,{className:n.default(i,u),color:"gray800",style:c,type:"body",children:s})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),o=require("react"),t=require("react-select"),r=require("../input/Input.js"),i=require("./Select.js"),u=require("../../icons/ChevronDownIcon.js"),s=require("../../style-inject.es-d4ddeae4.js");require("clsx"),require("../help-text/HelpText.js"),require("../text/Text.js"),require("styled-components"),require("../../styles/constants/theme.js"),require("../input/input-type/_DateInput.js"),require("../input/input-type/_FloatLabelInput.js"),require("../../utils/getTestId.js"),require("../../icons/CalendarIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../input/input-type/_NumberInput.js"),require("../../icons/CaretDownIcon.js"),require("../../icons/CaretUpIcon.js"),require("../input/input-type/_PasswordInput.js"),require("../../icons/EyeIcon.js"),require("../../icons/EyeOffIcon.js"),require("../input/input-type/_TimeInput.js"),require("../../icons/ClockIcon.js"),require("./_StyledReactSelect.js"),require("../checkbox/Checkbox.js"),require("framer-motion"),require("../../icons/CheckmarkIcon.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js");var l="Amino_CountryPhoneSelect-module__optionLabel--l4S6-",c="Amino_CountryPhoneSelect-module__phoneCodeLabel--E2vZL",a="Amino_CountryPhoneSelect-module__styledPrefix--lAgqy",p="Amino_CountryPhoneSelect-module__styledInputWrapper--RKVmN";s.styleInject(".Amino_CountryPhoneSelect-module__inputValuePrefix--AMPA3{align-items:flex-end;color:var(--amino-gray-800);display:flex;order:2;padding-bottom:8px;padding-left:16px;padding-right:4px;white-space:nowrap}.Amino_CountryPhoneSelect-module__optionLabel--l4S6-{display:flex}.Amino_CountryPhoneSelect-module__phoneCodeLabel--E2vZL{color:var(--amino-gray-700);margin-left:4px}.Amino_CountryPhoneSelect-module__styledPrefix--lAgqy{align-items:center;display:flex;position:relative}.Amino_CountryPhoneSelect-module__styledPrefix--lAgqy svg{border-radius:2px}.Amino_CountryPhoneSelect-module__styledPrefix--lAgqy svg:last-child{left:20px;position:absolute;top:-2px;z-index:1}.Amino_CountryPhoneSelect-module__styledInputWrapper--RKVmN .Amino_CountryPhoneSelect-module__inputValuePrefix--AMPA3{padding-left:14px}");var d=function(r){var i=r.selectProps.setMenuIsOpen,u=o.useCallback((function(){i(!1)}),[i]);return o.useEffect((function(){return document.addEventListener("mousedown",u),function(){document.removeEventListener("mousedown",u)}}),[u]),n.jsx(t.components.MenuList,e.__assign({},r))},m=function(e){return n.jsxs("div",{className:l,children:[e.displayName,n.jsx("div",{className:c,children:e.phoneCode.join(", ")})]})};exports.CountryPhoneSelect=function(t){var s=t.countryOptions,l=t.icon,c=t.label,_=void 0===c?"Phone number":c,y=t.phone,h=t.phoneCountry,j=t.setPhone,x=t.setPhoneCountry,C=e.__rest(t,["countryOptions","icon","label","phone","phoneCountry","setPhone","setPhoneCountry"]),q=e.__read(o.useState(!1),2),f=q[0],v=q[1],I={setMenuIsOpen:v},P=(null==h?void 0:h.phoneCode)?"+".concat(null==h?void 0:h.phoneCode):void 0;return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:p,children:n.jsx(r.Input,{label:_,onChange:function(e){return j(e.target.value)},prefix:n.jsxs("div",{className:a,onClick:function(){return v(!f)},role:"button",tabIndex:0,children:[l,n.jsx(u.ChevronDownIcon,{size:19})]}),value:y,valuePrefix:P})}),n.jsx(i.Select,e.__assign({},C,{components:{Control:function(){return null},MenuList:d},formatOptionLabel:m,menuIsOpen:f,onBlur:function(){return v(!1)},onChange:function(e){x(e),v(!1)},options:s,value:h},I))]})};
|
|
@@ -18,5 +18,5 @@ export type StyledReactSelectProps<Option extends SelectOption, IsMulti extends
|
|
|
18
18
|
size?: Size;
|
|
19
19
|
styles?: StylesConfig<Option, IsMulti, Group>;
|
|
20
20
|
} & Props<Option, IsMulti, Group> & HelpTextProps & AdditionalProps<Option['value']> & BaseProps;
|
|
21
|
-
export declare const StyledReactSelect: <Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>>({ closeOnOutsideScroll, components, customOption, error, hasGroups, helpText, icon, label, menuPosition, placeholder, size,
|
|
21
|
+
export declare const StyledReactSelect: <Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>>({ closeOnOutsideScroll, components, customOption, error, hasGroups, helpText, icon, label, menuPosition, placeholder, size, style, ...props }: StyledReactSelectProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),t=require("react"),o=require("react-select"),i=require("styled-components"),s=require("../checkbox/Checkbox.js"),r=require("../help-text/HelpText.js"),a=require("../../icons/CheckCircleIcon.js"),c=require("../../icons/DoubleChevronIcon.js"),l=require("../../icons/RemoveCircleIcon.js"),u=require("../../icons/RemoveIcon.js"),d=require("../../styles/constants/theme.js"),p=require("../../utils/getTestId.js");function h(e){return e&&e.__esModule?e:{default:e}}require("clsx"),require("framer-motion"),require("../text/Text.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../style-inject.es-d4ddeae4.js");var m,g,f,_,x,b,v,j,y,k,T,z=h(o),C=h(i),O=function(e){switch(e){case"sm":return"".concat(d.theme.radius6);case"lg":return"".concat(d.theme.radius10);case"xl":return"".concat(d.theme.radius12);default:return"".concat(d.theme.radius8)}},w=function(t){return n.jsx(o.components.ClearIndicator,e.__assign({},t,{children:n.jsx(l.RemoveCircleIcon,{size:24})}))},q=function(t){return n.jsx(o.components.DropdownIndicator,e.__assign({},t,{children:n.jsx(c.DoubleChevronIcon,{size:24})}))},I=C.default.div(m||(m=e.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ",";\n padding: 10px;\n"],["\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: ",";\n padding: 10px;\n"])),d.theme.gray700),R=C.default.label(b||(b=e.__makeTemplateObject(["\n position: absolute;\n transition: ",";\n font-size: ",";\n line-height: ",";\n transform-origin: left top;\n left: calc("," - 2px);\n .has-icon & {\n left: calc("," + 2px);\n }\n top: calc(50% - "," / 2);\n .has-label & {\n & + div {\n align-self: flex-end;\n }\n }\n .has-value &,\n .is-focused & {\n top: calc("," + 3px);\n transform: scale(0.8);\n }\n\n /* Size modify */\n ","\n\n ","\n\n ","\n\n ","\n"],["\n position: absolute;\n transition: ",";\n font-size: ",";\n line-height: ",";\n transform-origin: left top;\n left: calc("," - 2px);\n .has-icon & {\n left: calc("," + 2px);\n }\n top: calc(50% - "," / 2);\n .has-label & {\n & + div {\n align-self: flex-end;\n }\n }\n .has-value &,\n .is-focused & {\n top: calc("," + 3px);\n transform: scale(0.8);\n }\n\n /* Size modify */\n ","\n\n ","\n\n ","\n\n ","\n"])),d.theme.transition,d.theme.fontSizeBase,d.theme.fontSizeBase,d.theme.space16,d.theme.space40,d.theme.fontSizeBase,d.theme.space8,(function(n){var t=n.$size;return"sm"===t&&i.css(g||(g=e.__makeTemplateObject(["\n .",".has-label & {\n & + div {\n margin-bottom: -6px;\n }\n }\n .",".has-value &,\n .",".is-focused & {\n top: 2px;\n }\n "],["\n .",".has-label & {\n & + div {\n margin-bottom: -6px;\n }\n }\n .",".has-value &,\n .",".is-focused & {\n top: 2px;\n }\n "])),t,t,t)}),(function(n){var t=n.$size;return"md"===t&&i.css(f||(f=e.__makeTemplateObject(["\n .",".has-label & {\n & + div {\n margin-bottom: -2px;\n }\n }\n .",".has-value &,\n .",".is-focused & {\n top: 6px;\n }\n "],["\n .",".has-label & {\n & + div {\n margin-bottom: -2px;\n }\n }\n .",".has-value &,\n .",".is-focused & {\n top: 6px;\n }\n "])),t,t,t)}),(function(n){var t=n.$size;return"lg"===t&&i.css(_||(_=e.__makeTemplateObject(["\n .",".has-value &,\n .",".is-focused & {\n top: 10px;\n }\n "],["\n .",".has-value &,\n .",".is-focused & {\n top: 10px;\n }\n "])),t,t)}),(function(n){var t=n.$size;return"xl"===t&&i.css(x||(x=e.__makeTemplateObject(["\n .",".has-label & {\n & + div {\n margin-bottom: 3px;\n }\n }\n .",".has-value &,\n .",".is-focused & {\n top: 11px;\n }\n "],["\n .",".has-label & {\n & + div {\n margin-bottom: 3px;\n }\n }\n .",".has-value &,\n .",".is-focused & {\n top: 11px;\n }\n "])),t,t,t)})),S=C.default.div(v||(v=e.__makeTemplateObject(["\n .react-select-control + div {\n z-index: 20;\n }\n\n &.has-error .react-select-control {\n box-shadow: ",";\n }\n"],["\n .react-select-control + div {\n z-index: 20;\n }\n\n &.has-error .react-select-control {\n box-shadow: ",";\n }\n"])),d.theme.glowError),L=C.default.strong(j||(j=e.__makeTemplateObject(["\n font-weight: 600;\n"],["\n font-weight: 600;\n"]))),P=function(t){var o=t.children,i=t.className,s=t.cx,r=t.getStyles,a=t.hasValue,c=t.innerProps,l=t.innerRef,u=t.isDisabled,d=t.isFocused,p=t.menuIsOpen,h=t.selectProps,m=h.icon,g=h.label,f=h.size,_=h.value;return n.jsxs("div",e.__assign({ref:l,className:s({control:!0,"control--is-disabled":u,"control--is-focused":d,"control--menu-is-open":p},[i,a?"has-value":"",m?"has-icon":"",d?"is-focused":"",g||Array.isArray(_)&&_.length>1?"has-label":"",f,"react-select-control"].join(" ")),style:r("control",t)},c,{children:[m&&n.jsx(I,{children:m}),n.jsxs(R,{$size:f,children:[g," ",Array.isArray(_)&&_.length>1&&n.jsxs(L,{children:["(",_.length," selected)"]})]}),o]}))},M=C.default.div(y||(y=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n color: ",";\n svg {\n margin-right: 4px;\n color: ",";\n }\n"],["\n display: flex;\n align-items: center;\n color: ",";\n svg {\n margin-right: 4px;\n color: ",";\n }\n"])),(function(e){return e.$color||"inherit"}),d.theme.gray1200),B=C.default.div(k||(k=e.__makeTemplateObject(["\n &:not(.is-disabled) {\n &.is-focused,\n &:hover {\n /* The styles are inlined on this component from emotion, so we must override */\n background-color: "," !important;\n }\n }\n"],["\n &:not(.is-disabled) {\n &.is-focused,\n &:hover {\n /* The styles are inlined on this component from emotion, so we must override */\n background-color: "," !important;\n }\n }\n"])),d.theme.gray100),D=C.default.div(T||(T=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),N=function(e){var t=e.children,o=e.color,i=e.icon;return n.jsxs(M,{$color:o,children:[i,t]})},V=function(t){var i=t.children,s=e.__rest(t,["children"]);return n.jsx(o.components.MultiValueLabel,e.__assign({},s,{children:n.jsx(N,{icon:s.data.icon,children:i})}))},$=function(t){var o=t.innerProps;return n.jsx("div",e.__assign({},o,{role:"button",children:n.jsx(u.RemoveIcon,{size:14})}))},W=function(t){var o=t.children,i=t.className,r=t.data,c=t.getStyles,l=t.innerProps,u=t.innerRef,d=t.isDisabled,p=t.isFocused,h=t.isSelected,m=t.selectProps,g=m,f=g.customOption,_=g.hasGroups,x=c("option",t),b=x.color,v=e.__rest(x,["color"]);_&&(v.paddingLeft=48);return n.jsx("div",e.__assign({ref:u},l,{children:n.jsx(B,{className:[i,p?"is-focused":"",d?"is-disabled":""].join(" "),style:v,children:m.isMulti?n.jsx(s.Checkbox,{allowPropagation:!0,checked:h,disabled:d,icon:r.icon,label:r.label,labelDescription:r.labelDescription,onChange:function(){}}):f?f(r.value):n.jsxs(D,{children:[n.jsx(N,{color:b,icon:r.icon,children:o}),h&&n.jsx(a.CheckCircleIcon,{color:"blue600",size:24})]})})}))},H={clearIndicator:function(n){return e.__assign(e.__assign({},n),{color:d.theme.gray700,paddingLeft:14,paddingRight:4})},control:function(n,t){var o=t.selectProps.size;return e.__assign(e.__assign({},n),{background:d.theme.inputBackground,borderColor:"".concat(d.theme.gray200),borderRadius:O(o),boxShadow:t.isFocused?"".concat(d.theme.glowBlue):"",color:d.theme.gray800,cursor:"pointer",flexWrap:"inherit",height:"var(--amino-size-".concat(o,")"),minHeight:"var(--amino-size-".concat(o,")")})},dropdownIndicator:function(n){return e.__assign(e.__assign({},n),{color:d.theme.gray900,paddingLeft:4,paddingRight:10})},group:function(n){return e.__assign(e.__assign({},n),{paddingBottom:0,paddingTop:0})},indicatorSeparator:function(n){return e.__assign(e.__assign({},n),{width:0})},input:function(n){return e.__assign(e.__assign({},n),{color:d.theme.textColor,opacity:.8})},menu:function(n){return e.__assign(e.__assign({},n),{background:d.theme.surfaceColor,borderRadius:12,boxShadow:d.theme.v3ShadowLarge,marginTop:4})},menuList:function(n){return e.__assign(e.__assign({},n),{paddingLeft:8,paddingRight:8,paddingTop:8})},multiValue:function(n){return e.__assign(e.__assign({},n),{alignItems:"center",background:d.theme.gray100,borderRadius:d.theme.radius4,fontWeight:600,maxHeight:20,minWidth:"inherit",paddingRight:2})},multiValueLabel:function(n){return e.__assign(e.__assign({},n),{color:d.theme.textColor})},option:function(n,t){return e.__assign(e.__assign({},n),{backgroundColor:"inherit",borderRadius:"8px",color:t.isSelected?d.theme.blue600:d.theme.textColor,cursor:"pointer",fontWeight:t.isSelected?500:400,paddingBottom:7,paddingLeft:8,paddingRight:12,paddingTop:7})},placeholder:function(n){return e.__assign(e.__assign({},n),{".has-label.is-focused &":{opacity:1},opacity:0})},singleValue:function(n){return e.__assign(e.__assign({},n),{color:d.theme.textColor,fontWeight:500})},valueContainer:function(n){return e.__assign(e.__assign({},n),{".has-icon &":{paddingLeft:0},flexWrap:"nowrap",padding:"unset",paddingLeft:12})}};exports.CheckboxOptionComponent=W,exports.StyledReactSelect=function(o){var i=o.closeOnOutsideScroll,s=void 0!==i&&i,a=o.components,c=o.customOption,l=o.error,u=o.hasGroups,d=o.helpText,h=o.icon,m=o.label,g=o.menuPosition,f=void 0===g?"fixed":g,_=o.placeholder,x=o.size,b=void 0===x?"xl":x,v=o.styles,j=e.__rest(o,["closeOnOutsideScroll","components","customOption","error","hasGroups","helpText","icon","label","menuPosition","placeholder","size","styles"]),y={customOption:c,hasGroups:u,icon:h,label:m,size:b},k=t.useMemo((function(){return p.getTestId({componentName:"select",name:m})}),[m]),T=t.useRef(null),C=t.useMemo((function(){return!!s&&function(e){var n,t,o;return!(e.target instanceof HTMLElement)||(null===(o=!(null===(t=null===(n=T.current)||void 0===n?void 0:n.menuListRef)||void 0===t?void 0:t.isEqualNode(e.target)))||void 0===o||o)}}),[s]);return n.jsxs(S,{className:[l?"has-error":""].join(" "),"data-testid":k,children:[n.jsx(z.default,e.__assign({ref:T,closeMenuOnScroll:C,components:e.__assign({ClearIndicator:w,Control:P,DropdownIndicator:q,MultiValueLabel:V,MultiValueRemove:$,Option:W},a),menuPosition:f,placeholder:_||"",styles:e.__assign(e.__assign({},v),H)},j,y)),n.jsx(r.HelpText,{error:l,helpText:d})]})};
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),l=require("react"),o=require("react-select"),n=require("clsx"),a=require("../checkbox/Checkbox.js"),i=require("../help-text/HelpText.js"),c=require("../../icons/CheckCircleIcon.js"),s=require("../../icons/DoubleChevronIcon.js"),r=require("../../icons/RemoveCircleIcon.js"),_=require("../../icons/RemoveIcon.js"),d=require("../../styles/constants/theme.js"),u=require("../../utils/getTestId.js"),m=require("../../style-inject.es-d4ddeae4.js");function S(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../text/Text.js"),require("styled-components"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js");var p=S(o),y=S(n),g={iconWrapper:"Amino__StyledReactSelect-module__iconWrapper--o6af4",styledFloatedLabel:"Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB",hasIcon:"Amino__StyledReactSelect-module__hasIcon--ua8Qm",hasLabel:"Amino__StyledReactSelect-module__hasLabel--2uysz",hasValue:"Amino__StyledReactSelect-module__hasValue--QzRR6",isFocused:"Amino__StyledReactSelect-module__isFocused--cvHNw",sm:"Amino__StyledReactSelect-module__sm--uRxwS",md:"Amino__StyledReactSelect-module__md--05qsU",lg:"Amino__StyledReactSelect-module__lg--iGesU",xl:"Amino__StyledReactSelect-module__xl--4TfG5",styledSelectWrapper:"Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S",reactSelectControl:"Amino__StyledReactSelect-module__reactSelectControl--0sbFa",hasError:"Amino__StyledReactSelect-module__hasError--DJ10C",strongLabel:"Amino__StyledReactSelect-module__strongLabel--iF71N",checkboxOptionIconWrapper:"Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF",styledSelectOptionWrapper:"Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9",isDisabled:"Amino__StyledReactSelect-module__isDisabled--WwkVj",selectedSingleOptionWrapper:"Amino__StyledReactSelect-module__selectedSingleOptionWrapper--0Yd8x"};m.styleInject(".Amino__StyledReactSelect-module__iconWrapper--o6af4{align-items:center;color:var(--amino-gray-700);display:flex;justify-content:space-between;padding:10px}.Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{font-size:var(--amino-font-size-base);left:14px;line-height:var(--amino-font-size-base);position:absolute;top:calc(50% - var(--amino-font-size-base)/2);transform-origin:left top;transition:var(--amino-transition)}.Amino__StyledReactSelect-module__hasIcon--ua8Qm .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{left:42px}.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{align-self:flex-end}.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:11px;transform:scale(.8)}.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:-6px}.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__sm--uRxwS.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:2px}.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:-2px}.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__md--05qsU.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:6px}.Amino__StyledReactSelect-module__lg--iGesU.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__lg--iGesU.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:10px}.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__hasLabel--2uysz .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB+div{margin-bottom:3px}.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__hasValue--QzRR6 .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB,.Amino__StyledReactSelect-module__xl--4TfG5.Amino__StyledReactSelect-module__isFocused--cvHNw .Amino__StyledReactSelect-module__styledFloatedLabel--zUtDB{top:11px}.Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S .Amino__StyledReactSelect-module__reactSelectControl--0sbFa+div{z-index:20}.Amino__StyledReactSelect-module__styledSelectWrapper--s0t-S.Amino__StyledReactSelect-module__hasError--DJ10C .Amino__StyledReactSelect-module__reactSelectControl--0sbFa{box-shadow:var(--amino-glow-error)}.Amino__StyledReactSelect-module__strongLabel--iF71N{font-weight:600}.Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF{align-items:center;color:var(--amino-styled-react-select-color);display:flex}.Amino__StyledReactSelect-module__checkboxOptionIconWrapper--Q91uF svg{color:var(--amino-gray-1200);margin-right:4px}.Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9:not(.Amino__StyledReactSelect-module__isDisabled--WwkVj).Amino__StyledReactSelect-module__isFocused--cvHNw,.Amino__StyledReactSelect-module__styledSelectOptionWrapper--RNcU9:not(.Amino__StyledReactSelect-module__isDisabled--WwkVj):hover{background-color:var(--amino-gray-100)!important}.Amino__StyledReactSelect-module__selectedSingleOptionWrapper--0Yd8x{align-items:center;display:flex;justify-content:space-between}");var h=function(e){switch(e){case"sm":return"".concat(d.theme.radius6);case"lg":return"".concat(d.theme.radius10);case"xl":return"".concat(d.theme.radius12);default:return"".concat(d.theme.radius8)}},R=function(l){return t.jsx(o.components.ClearIndicator,e.__assign({},l,{children:t.jsx(r.RemoveCircleIcon,{size:24})}))},b=function(l){return t.jsx(o.components.DropdownIndicator,e.__assign({},l,{children:t.jsx(s.DoubleChevronIcon,{size:24})}))},x=function(l){var o=l.children,n=l.className,a=l.cx,i=l.getStyles,c=l.hasValue,s=l.innerProps,r=l.innerRef,_=l.isDisabled,d=l.isFocused,u=l.menuIsOpen,m=l.selectProps,S=m.icon,p=m.label,y=m.size,h=m.value;return t.jsxs("div",e.__assign({ref:r,className:a({control:!0,"control--is-disabled":_,"control--is-focused":d,"control--menu-is-open":u},[n,c&&g.hasValue,S&&g.hasIcon,d&&g.isFocused,p||Array.isArray(h)&&h.length>1?g.hasLabel:"",y&&g[y],g.reactSelectControl,"react-select-control"].join(" ")),style:i("control",l)},s,{children:[S&&t.jsx("div",{className:g.iconWrapper,children:S}),t.jsxs("label",{className:g.styledFloatedLabel,children:[p," ",Array.isArray(h)&&h.length>1&&t.jsxs("strong",{className:g.strongLabel,children:["(",h.length," selected)"]})]}),o]}))},f=function(e){var l=e.children,o=e.color,n=e.icon;return t.jsxs("div",{className:g.checkboxOptionIconWrapper,style:{"--amino-styled-react-select-color":o||"inherit"},children:[n,l]})},A=function(l){var n=l.children,a=e.__rest(l,["children"]);return t.jsx(o.components.MultiValueLabel,e.__assign({},a,{children:t.jsx(f,{icon:a.data.icon,children:n})}))},v=function(l){var o=l.innerProps;return t.jsx("div",e.__assign({},o,{role:"button",children:t.jsx(_.RemoveIcon,{size:14})}))},j=function(l){var o=l.children,n=l.className,i=l.data,s=l.getStyles,r=l.innerProps,_=l.innerRef,d=l.isDisabled,u=l.isFocused,m=l.isSelected,S=l.selectProps,p=S,y=p.customOption,h=p.hasGroups,R=s("option",l),b=R.color,x=e.__rest(R,["color"]);h&&(x.paddingLeft=48);return t.jsx("div",e.__assign({ref:_},r,{children:t.jsx("div",{className:[n,g.styledSelectOptionWrapper,u&&g.isFocused,d&&g.isDisabled].join(" "),style:x,children:S.isMulti?t.jsx(a.Checkbox,{allowPropagation:!0,checked:m,disabled:d,icon:i.icon,label:i.label,labelDescription:i.labelDescription,onChange:function(){}}):y?y(i.value):t.jsxs("div",{className:g.selectedSingleOptionWrapper,children:[t.jsx(f,{color:b,icon:i.icon,children:o}),m&&t.jsx(c.CheckCircleIcon,{color:"blue600",size:24})]})})}))},L={clearIndicator:function(t){return e.__assign(e.__assign({},t),{color:d.theme.gray700,paddingLeft:14,paddingRight:4})},control:function(t,l){var o=l.selectProps.size;return e.__assign(e.__assign({},t),{background:d.theme.inputBackground,borderColor:"".concat(d.theme.gray200),borderRadius:h(o),boxShadow:l.isFocused?"".concat(d.theme.glowBlue):"",color:d.theme.gray800,cursor:"pointer",flexWrap:"inherit",height:"var(--amino-size-".concat(o,")"),minHeight:"var(--amino-size-".concat(o,")")})},dropdownIndicator:function(t){return e.__assign(e.__assign({},t),{color:d.theme.gray900,paddingLeft:4,paddingRight:10})},group:function(t){return e.__assign(e.__assign({},t),{paddingBottom:0,paddingTop:0})},indicatorSeparator:function(t){return e.__assign(e.__assign({},t),{width:0})},input:function(t){return e.__assign(e.__assign({},t),{color:d.theme.textColor,opacity:.8})},menu:function(t){return e.__assign(e.__assign({},t),{background:d.theme.surfaceColor,borderRadius:12,boxShadow:d.theme.v3ShadowLarge,marginTop:4})},menuList:function(t){return e.__assign(e.__assign({},t),{paddingLeft:8,paddingRight:8,paddingTop:8})},multiValue:function(t){return e.__assign(e.__assign({},t),{alignItems:"center",background:d.theme.gray100,borderRadius:d.theme.radius4,fontWeight:600,maxHeight:20,minWidth:"inherit",paddingRight:2})},multiValueLabel:function(t){return e.__assign(e.__assign({},t),{color:d.theme.textColor})},option:function(t,l){return e.__assign(e.__assign({},t),{backgroundColor:"inherit",borderRadius:"8px",color:l.isSelected?d.theme.blue600:d.theme.textColor,cursor:"pointer",fontWeight:l.isSelected?500:400,paddingBottom:7,paddingLeft:8,paddingRight:12,paddingTop:7})},placeholder:function(t){return e.__assign(e.__assign({},t),{".has-label.is-focused &":{opacity:1},opacity:0})},singleValue:function(t){return e.__assign(e.__assign({},t),{color:d.theme.textColor,fontWeight:500})},valueContainer:function(t){return e.__assign(e.__assign({},t),{".has-icon &":{paddingLeft:0},flexWrap:"nowrap",padding:"unset",paddingLeft:12})}};exports.CheckboxOptionComponent=j,exports.StyledReactSelect=function(o){var n=o.closeOnOutsideScroll,a=void 0!==n&&n,c=o.components,s=o.customOption,r=o.error,_=o.hasGroups,d=o.helpText,m=o.icon,S=o.label,h=o.menuPosition,f=void 0===h?"fixed":h,z=o.placeholder,F=o.size,C=void 0===F?"xl":F,D=o.style,W=e.__rest(o,["closeOnOutsideScroll","components","customOption","error","hasGroups","helpText","icon","label","menuPosition","placeholder","size","style"]),w={customOption:s,hasGroups:_,icon:m,label:S,size:C},I=l.useMemo((function(){return u.getTestId({componentName:"select",name:S})}),[S]),U=l.useRef(null),O=l.useMemo((function(){return!!a&&function(e){var t,l,o;return!(e.target instanceof HTMLElement)||(null===(o=!(null===(l=null===(t=U.current)||void 0===t?void 0:t.menuListRef)||void 0===l?void 0:l.isEqualNode(e.target)))||void 0===o||o)}}),[a]);return t.jsxs("div",{className:y.default(g.styledSelectWrapper,r&&g.hasError),"data-testid":I,children:[t.jsx(p.default,e.__assign({ref:U,closeMenuOnScroll:O,components:e.__assign({ClearIndicator:R,Control:x,DropdownIndicator:b,MultiValueLabel:A,MultiValueRemove:v,Option:j},c),menuPosition:f,placeholder:z||"",styles:e.__assign(e.__assign({},D),L)},W,w)),t.jsx(i.HelpText,{error:r,helpText:d})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),l=require("react/jsx-runtime"),o=require("react"),i=require("clsx"),t=require("../checkbox/Checkbox.js"),n=require("../skeleton/Skeleton.js"),d=require("../text/Text.js"),a=require("../../style-inject.es-d4ddeae4.js");function r(e){return e&&e.__esModule?e:{default:e}}require("framer-motion"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js"),require("../../utils/getTestId.js"),require("styled-components");var m=r(i),c="Amino_SimpleTable-module__tableStyled--Q3YSy",s="Amino_SimpleTable-module__noPadding--b5Y-c",_="Amino_SimpleTable-module__withHover--eL3XX",b="Amino_SimpleTable-module__clickable--XnaaE",u="Amino_SimpleTable-module__loading--bvjof",h="Amino_SimpleTable-module__cellLink--jySVK",S="Amino_SimpleTable-module__styledCheckbox---753a";a.styleInject(".Amino_SimpleTable-module__tableStyled--Q3YSy{width:100%}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead{text-transform:uppercase}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead>tr{border-bottom:var(--amino-border);height:56px}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead>tr>th{padding:16px;white-space:nowrap}.Amino_SimpleTable-module__tableStyled--Q3YSy>thead>tr>th.Amino_SimpleTable-module__noPadding--b5Y-c{padding:0}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr{border-bottom:var(--amino-border);height:48px}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr.Amino_SimpleTable-module__withHover--eL3XX:hover{background-color:var(--amino-gray-50)}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr.Amino_SimpleTable-module__clickable--XnaaE{cursor:pointer}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr:not(:hover) .Amino_SimpleTable-module__row-hover-show--wkowE{visibility:collapse}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td{padding:12px}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__noPadding--b5Y-c{padding:0}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__loading--bvjof{text-align:center}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td:not(:hover) .Amino_SimpleTable-module__cell-hover-show--fenGT{visibility:collapse}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__cellLink--jySVK{padding:0}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__cellLink--jySVK>a{display:block;height:100%;padding:12px;width:100%}.Amino_SimpleTable-module__tableStyled--Q3YSy>tbody>tr>td.Amino_SimpleTable-module__cellLink--jySVK>a.Amino_SimpleTable-module__noPadding--b5Y-c{padding:0}.Amino_SimpleTable-module__styledCheckbox---753a{display:inline-flex;padding:12px}");exports.SimpleTable=function(i){var a=i.className,r=i.getRowLink,y=i.headers,p=i.items,x=i.keyExtractor,g=i.loading,k=void 0!==g&&g,j=i.loadingItems,v=void 0===j?10:j,A=i.noHoverBackground,T=void 0!==A&&A,C=i.onRowClick,f=i.onRowHover,w=i.renderFooter,Y=i.selectable,Q=void 0===Y?{enabled:!1}:Y,q=function(e,o){var i=o[e.key],t=function(i){return r&&!Q.anySelected?l.jsx("td",{className:h,children:l.jsx("a",{className:m.default(e.noPadding&&s),href:r(o),style:{textAlign:e.align||"start"},children:i})}):l.jsx("td",{className:m.default(e.noPadding&&s),style:{textAlign:e.align||"start"},children:i})};return e.renderCustom?l.jsx(l.Fragment,{children:t(e.renderCustom(i,o))}):l.jsx(l.Fragment,{children:t(String(i))})};return l.jsxs("table",{className:m.default(a,c),children:[l.jsxs("colgroup",{children:[!!Q.onHeaderCheckboxChange&&l.jsx("col",{width:0}),y.map((function(e){return l.jsx("col",{width:void 0!==e.width?"".concat(e.width,"%"):void 0},e.key)}))]}),l.jsx("thead",{children:l.jsxs("tr",{children:[!!Q.onHeaderCheckboxChange&&l.jsx("th",{className:s,children:Q.renderCustomHeaderCheckbox||l.jsx(t.Checkbox,{checked:!k&&Q.headerCheckboxValue||!1,className:S,disabled:k,onChange:Q.onHeaderCheckboxChange})}),y.map((function(e){return l.jsx("th",{style:{textAlign:e.align||"start"},children:l.jsx(d.Text,{color:"gray800",type:"small-header",children:e.name})},e.key)}))]})}),l.jsx("tbody",{children:k?e.__spreadArray([],e.__read(Array(v).keys()),!1).map((function(e){return l.jsxs("tr",{children:[Q.enabled&&l.jsx("td",{children:l.jsx(n.Skeleton,{height:30},e)}),y.map((function(o){return l.jsx("td",{className:m.default(u,o.noPadding&&s),children:l.jsx(n.Skeleton,{height:30},e)},o.key)}))]},e)})):p.map((function(e,i){var n,d,a,r=!!C||!!Q.anySelected&&!!Q.onRowCheckboxChange;return l.jsxs("tr",{className:m.default(r&&b,!T&&_),onClick:function(){var l,o,t;Q.anySelected?(null===(l=Q.isRowCheckboxDisabled)||void 0===l?void 0:l.call(Q,e,i))||null===(o=Q.onRowCheckboxChange)||void 0===o||o.call(Q,!(null===(t=Q.isRowChecked)||void 0===t?void 0:t.call(Q,e,i)),e,i):null==C||C(e)},onMouseEnter:function(){return null==f?void 0:f(e)},children:[Q.enabled&&l.jsx("td",{className:s,children:(null===(n=Q.renderCustomRowCheckbox)||void 0===n?void 0:n.call(Q,e,i))||l.jsx(t.Checkbox,{checked:(null===(d=Q.isRowChecked)||void 0===d?void 0:d.call(Q,e,i))||!1,className:S,disabled:(null===(a=Q.isRowCheckboxDisabled)||void 0===a?void 0:a.call(Q,e,i))||!1,onChange:function(l){var o;return null===(o=Q.onRowCheckboxChange)||void 0===o?void 0:o.call(Q,l,e,i)}})}),y.map((function(i){return l.jsx(o.Fragment,{children:q(i,e)},i.key)}))]},x(e))}))}),w]})};
|
|
@@ -12,4 +12,4 @@ export type SkeletonProps = BaseProps & {
|
|
|
12
12
|
* @param width - Optional width in pixels
|
|
13
13
|
* @param height - Optional height in em
|
|
14
14
|
*/
|
|
15
|
-
export declare const Skeleton: ({ animation, children, className, height, width, }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Skeleton: ({ animation, children, className, height, style, width, }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),n=require("clsx"),o=require("../../style-inject.es-d4ddeae4.js");function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n),a="Amino_Skeleton-module__skeletonWrapper--5p9qr",s="Amino_Skeleton-module__animation--V7bRQ";o.styleInject('@keyframes Amino_Skeleton-module__shimmerAction--dSaE6{0%{transform:translateX(-100%)}75%,to{transform:translateX(100%)}}.Amino_Skeleton-module__skeletonWrapper--5p9qr{background:var(--amino-gray-200);border-radius:var(--amino-radius-6);height:var(--amino-skeleton-height);overflow:hidden;position:relative;width:var(--amino-skeleton-width)}.Amino_Skeleton-module__skeletonWrapper--5p9qr.Amino_Skeleton-module__animation--V7bRQ:after{animation:Amino_Skeleton-module__shimmerAction--dSaE6 1.4s linear .5s infinite;background:linear-gradient(90deg,#0000,#00000014,#0000);bottom:0;content:"";left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}');exports.Skeleton=function(n){var o=n.animation,i=void 0===o||o,l=n.children,m=n.className,d=n.height,_=n.style,u=n.width;return t.jsx("div",{className:r.default(m,a,i&&s),style:e.__assign(e.__assign({},_),{"--amino-skeleton-height":d?"".concat(d,"px"):"1em","--amino-skeleton-width":u?"".concat(u,"px"):"100%"}),children:l})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),r=require("react/jsx-runtime");require("react");var i=require("clsx"),o=require("../button/Button.js"),n=require("../dialog/BaseDialog.js"),s=require("../stack/HStack.js"),t=require("../stack/VStack.js"),a=require("../text/Text.js"),l=require("../../icons/RemoveIcon.js"),d=require("../../style-inject.es-d4ddeae4.js");function u(e){return e&&e.__esModule?e:{default:e}}require("../button/RippleGroup.js"),require("framer-motion"),require("uuid"),require("../button/_Ripple.js"),require("../../utils/getAminoColor.js"),require("../../styles/constants/theme.js"),require("../button/useRipple.js"),require("../spinner/Spinner.js"),require("react-dom"),require("../stack/Stack.js"),require("styled-components"),require("../../icons/icon-base/_IconBase.js");var c=u(i),m={styledBaseDialog:"Amino_SlideOver-module__styledBaseDialog--kdoHN",wrapper:"Amino_SlideOver-module__wrapper--h4h0-",slideOverHeader:"Amino_SlideOver-module__slideOverHeader--QseSi","header-content":"Amino_SlideOver-module__header-content--QF5NY",slideOverContent:"Amino_SlideOver-module__slideOverContent--vCKvH",footer:"Amino_SlideOver-module__footer--mwPVV"};d.styleInject(".Amino_SlideOver-module__styledBaseDialog--kdoHN{background:#0000;border:none;border-radius:0;box-shadow:none;height:100vh;max-height:none;overflow:visible;overflow:initial;position:absolute;right:0;top:0}.Amino_SlideOver-module__wrapper--h4h0-{background:var(--amino-surface-color);border-radius:12px;box-shadow:var(--amino-v3-shadow-xxl);display:flex;flex-direction:column;height:100%;margin:8px}.Amino_SlideOver-module__slideOverHeader--QseSi{align-items:center;border-bottom:var(--amino-border);display:flex;gap:16px;padding:16px}.Amino_SlideOver-module__slideOverHeader--QseSi .Amino_SlideOver-module__header-content--QF5NY{flex:1;margin:0}.Amino_SlideOver-module__slideOverContent--vCKvH{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:24px}.Amino_SlideOver-module__footer--mwPVV{align-items:center;background:var(--amino-surface-color-secondary);border-radius:12px;border-top:var(--amino-border);display:flex;justify-content:flex-end;padding:24px}.Amino_SlideOver-module__footer--mwPVV>div+div{margin-left:8px}");exports.SlideOver=function(i){var d=i.actions,u=i.children,v=i.label,_=i.onClose,p=i.subtitle,x=i.width,h=void 0===x?444:x,j=e.__rest(i,["actions","children","label","onClose","subtitle","width"]);return r.jsx(n.BaseDialog,e.__assign({className:m.styledBaseDialog,onClose:_,popupMotionProps:{animate:{x:0},exit:{x:h},initial:{x:h},transition:{duration:.45,ease:[.4,0,.2,1]}},width:h},j,{children:r.jsxs("div",{className:m.wrapper,children:[r.jsxs("header",{className:m.slideOverHeader,children:[r.jsx(o.Button,{icon:r.jsx(l.RemoveIcon,{}),onClick:_}),p?r.jsxs(t.VStack,{className:c.default(m.headerContent,"header-content"),spacing:0,children:[r.jsx(a.Text,{type:"subheader",children:v}),p]}):r.jsx(a.Text,{className:c.default(m.headerContent,"header-content"),type:"subheader",children:v})]}),r.jsx("div",{className:m.slideOverContent,children:u}),d&&r.jsx("div",{className:m.footer,children:r.jsx(s.HStack,{spacing:8,children:d})})]})}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),i=require("react/jsx-runtime"),r=require("@radix-ui/react-slider"),o=require("clsx"),a=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=d(o),n="Amino_Slider-module__styledSlider--DgldC",t="Amino_Slider-module__styledTrack--LJSr2",s="Amino_Slider-module__styledRange--H8Kqc",m="Amino_Slider-module__styledThumb--ZJzHZ",u="Amino_Slider-module__sliderWrapper--NJhMD",c="Amino_Slider-module__indicator---fWLA",_="Amino_Slider-module__upTriangle--obmpR",h="Amino_Slider-module__indicatorWrapper---so7l";a.styleInject(".Amino_Slider-module__styledSlider--DgldC{align-items:center;display:flex;height:12px;position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.Amino_Slider-module__styledTrack--LJSr2{background-color:var(--amino-gray-200);border-radius:20px;box-shadow:var(--amino-v3-shadow-inset);flex-grow:1;height:var(--amino-slider-styled-track-height);position:relative}.Amino_Slider-module__styledTrack--LJSr2+span{transition:all .3s ease}.Amino_Slider-module__styledRange--H8Kqc{background-color:var(--amino-primary);border-radius:9999px;height:100%;position:absolute;transition:all .3s ease}.Amino_Slider-module__styledThumb--ZJzHZ{background:var(--amino-gray-0);border:var(--amino-border);border-radius:20px;box-shadow:var(--amino-v3-shadow-base);cursor:pointer;display:block;height:var(--amino-slider-styled-thumb-height);width:var(--amino-slider-styled-thumb-width)}[data-theme=night] .Amino_Slider-module__styledThumb--ZJzHZ{background:var(--amino-gray-1200)}.Amino_Slider-module__styledThumb--ZJzHZ:active,.Amino_Slider-module__styledThumb--ZJzHZ:focus{background:var(--amino-gray-100);border-color:var(--amino-primary);box-shadow:var(--amino-glow-blue);outline:none}.Amino_Slider-module__sliderWrapper--NJhMD{height:var(--amino-slider-wrapper-height);position:relative}.Amino_Slider-module__indicator---fWLA{align-items:center;background:var(--amino-blue-100);border-bottom-left-radius:var(--amino-radius-6);border-bottom-right-radius:var(--amino-radius-6);color:var(--amino-blue-800);display:flex;font-weight:500;height:32px;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:48px}.Amino_Slider-module__indicator---fWLA span{margin-top:-8px}.Amino_Slider-module__upTriangle--obmpR{border-bottom:24px solid var(--amino-blue-100);border-left:24px solid #0000;border-right:24px solid #0000;border-top-left-radius:var(--amino-radius-6);border-top-right-radius:var(--amino-radius-6);height:0;width:0;width:48px}.Amino_Slider-module__indicatorWrapper---so7l{margin-left:-12px;margin-top:34px}");exports.Slider=function(o){var a=o.className,d=o.hideIndicator,p=void 0!==d&&d,b=o.max,g=o.min,v=o.onChange,x=o.size,y=void 0===x?12:x,S=o.step,A=o.suffix,f=void 0===A?"%":A,w=o.value;return i.jsx("div",{className:l.default(a,u),style:{"--amino-slider-styled-thumb-height":"".concat(2*y,"px"),"--amino-slider-styled-thumb-width":"".concat(2*y,"px"),"--amino-slider-styled-track-height":"".concat(y,"px"),"--amino-slider-wrapper-height":p?"":"90px"},children:i.jsxs(r.Root,{className:n,max:b,min:g,onValueChange:function(i){var r=e.__read(i,1)[0];return void 0!==r&&v(r)},step:S,value:[w],children:[i.jsx(r.Track,{className:t,children:i.jsx(r.Range,{className:s})}),i.jsx(r.Thumb,{className:m,children:!p&&i.jsxs("div",{className:h,children:[i.jsx("div",{className:_}),i.jsx("div",{className:c,children:i.jsxs("span",{children:[w,f]})})]})})]})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/core"),r=require("@dnd-kit/modifiers"),i=require("@dnd-kit/sortable"),s=require("../../style-inject.es-d4ddeae4.js"),l="Amino_SortableList-module__styledSortableList--lwAuY";s.styleInject(".Amino_SortableList-module__styledSortableList--lwAuY{display:flex;flex-direction:column;gap:5px}");exports.SortableList=function(s){var n=s.children,o=s.handleDragEnd,d=s.itemIds,a=s.sortingStrategy,c=void 0===a?i.verticalListSortingStrategy:a;return e.jsx(t.DndContext,{collisionDetection:t.closestCenter,modifiers:[r.restrictToParentElement,r.restrictToVerticalAxis],onDragEnd:o,children:e.jsx(i.SortableContext,{items:d,strategy:c,children:e.jsx("div",{className:l,children:n})})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),s=require("@dnd-kit/sortable"),i=require("@dnd-kit/utilities"),r=require("../../icons/DragIcon.js"),n=require("../../style-inject.es-d4ddeae4.js");require("react"),require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js");var l="Amino_SortableListItem-module__styledSortableListItem--N-vqT",a="Amino_SortableListItem-module__styledSortableSection--fMakn";n.styleInject(".Amino_SortableListItem-module__styledSortableListItem--N-vqT{align-items:center;display:flex;gap:24px;justify-content:flex-end}.Amino_SortableListItem-module__styledSortableSection--fMakn{flex-grow:1}");exports.SortableListItem=function(n){var o=n.children,d=n.handleIconSize,c=void 0===d?20:d,m=n.id,u=n.useHandle,_=s.useSortable({id:m}),j=_.attributes,S=_.listeners,b=_.setNodeRef,x=_.transform,f=_.transition,v={transform:i.CSS.Transform.toString(x),transition:f};return t.jsx("div",{ref:b,children:u?t.jsxs("div",{className:l,style:v,children:[t.jsx("div",{className:a,children:o}),t.jsx("div",e.__assign({},S,j,{children:t.jsx(r.DragIcon,{size:c})}))]}):t.jsx("div",e.__assign({className:l,style:v},S,j,{children:t.jsx("div",{className:a,children:o})}))})};
|
|
@@ -10,4 +10,4 @@ export type SpinnerProps = BaseProps & {
|
|
|
10
10
|
*/
|
|
11
11
|
size?: number;
|
|
12
12
|
};
|
|
13
|
-
export declare const Spinner: ({ className, color, size, }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Spinner: ({ className, color, size, style, }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),i=require("clsx"),r=require("../../style-inject.es-d4ddeae4.js");function o(e){return e&&e.__esModule?e:{default:e}}var _=o(i),m={wrapper:"Amino_Spinner-module__wrapper--HsFcH",styledSvg:"Amino_Spinner-module__styledSvg--b-3GA",rotate:"Amino_Spinner-module__rotate--1zs3G",track:"Amino_Spinner-module__track--8g3IO",black:"Amino_Spinner-module__black--fWAPm",white:"Amino_Spinner-module__white---tttI",info:"Amino_Spinner-module__info--vNEZ8",success:"Amino_Spinner-module__success--wtOak",danger:"Amino_Spinner-module__danger--XUgrZ",warning:"Amino_Spinner-module__warning--skHle",dash:"Amino_Spinner-module__dash--74jKn"};r.styleInject(".Amino_Spinner-module__wrapper--HsFcH{height:var(--amino-spinner-height);overflow:hidden;position:relative;width:var(--amino-spinner-width)}.Amino_Spinner-module__styledSvg--b-3GA{stroke:var(--amino-blue-600);animation:Amino_Spinner-module__rotate--1zs3G 2s linear infinite;height:var(--amino-spinner-height);position:absolute;width:var(--amino-spinner-width)}.Amino_Spinner-module__styledSvg--b-3GA circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-gray-200)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__black--fWAPm{stroke:var(--amino-spinner-stroke-black)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__black--fWAPm circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-spinner-track-black)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__white---tttI{stroke:var(--amino-spinner-stroke-white)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__white---tttI circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-spinner-track-white)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__info--vNEZ8{stroke:var(--amino-blue-600)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__info--vNEZ8 circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-blue-100)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__success--wtOak{stroke:var(--amino-green-600)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__success--wtOak circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-green-100)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__danger--XUgrZ{stroke:var(--amino-red-600)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__danger--XUgrZ circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-red-100)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__warning--skHle{stroke:var(--amino-orange-600)}.Amino_Spinner-module__styledSvg--b-3GA.Amino_Spinner-module__warning--skHle circle.Amino_Spinner-module__track--8g3IO{stroke:var(--amino-orange-100)}@keyframes Amino_Spinner-module__rotate--1zs3G{to{transform:rotate(1turn)}}@keyframes Amino_Spinner-module__dash--74jKn{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.Amino_Spinner-module__styledSvg--b-3GA circle:not(.Amino_Spinner-module__track--8g3IO){stroke-linecap:round;animation:Amino_Spinner-module__dash--74jKn 1.5s ease-in-out infinite}");exports.Spinner=function(i){var r=i.className,o=i.color,t=void 0===o?"primary":o,a=i.size,s=void 0===a?32:a,l=i.style;return n.jsx("div",{className:m.wrapper,style:e.__assign(e.__assign({},l),{"--amino-spinner-height":"".concat(s,"px"),"--amino-spinner-width":"".concat(s,"px")}),children:n.jsxs("svg",{className:_.default(r,m.styledSvg,"primary"!==t&&m[t],"amino-spinner"),viewBox:"0 0 50 50",children:[n.jsx("circle",{className:_.default(m.track,"track"),cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20",strokeWidth:"5"}),n.jsx("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20",strokeWidth:"5"})]})})};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
type
|
|
2
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
3
|
+
type SplitPanelProps = BaseProps & {
|
|
3
4
|
children: any;
|
|
4
|
-
className?: string;
|
|
5
5
|
collapseAll?: boolean;
|
|
6
6
|
direction?: 'horizontal' | 'vertical';
|
|
7
7
|
/**
|
|
@@ -26,5 +26,5 @@ type SplitPanelProps = {
|
|
|
26
26
|
* Split panel component
|
|
27
27
|
* @ref https://greggman.github.io/react-split-it/
|
|
28
28
|
*/
|
|
29
|
-
export declare const SplitPanel: ({ children, className, collapseAll, direction, gutterSize, onSetSizes, sizes, ...props }: SplitPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const SplitPanel: ({ children, className, collapseAll, direction, gutterSize, onSetSizes, sizes, style, ...props }: SplitPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),r=require("react/jsx-runtime"),i=require("react"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),r=require("react/jsx-runtime"),i=require("react"),t=require("react-split-it"),l=require("clsx"),n=require("../../style-inject.es-d4ddeae4.js");function s(e){return e&&e.__esModule?e:{default:e}}var a=s(t),u=s(l),c="Amino_SplitPanel-module__styledWrapper--cj4W-";n.styleInject(".Amino_SplitPanel-module__styledWrapper--cj4W-{display:block;height:100%;width:100%}");var d=function(r){var i=r.childrenCount,t=r.sizes;if(0===t.length)return e.__spreadArray([1],e.__read(new Array(i-1).fill(0)),!1);if(t.length!==i){var l=Math.abs(i-t.length);return e.__spreadArray(e.__spreadArray([],e.__read(t),!1),e.__read(new Array(l).fill(1)),!1)}var n=t.reduce((function(e,r){return e+r}),0);return t.map((function(e){return e/n}))};exports.SplitPanel=function(t){var l=t.children,n=t.className,s=t.collapseAll,_=t.direction,o=t.gutterSize,f=void 0===o?3:o,p=t.onSetSizes,h=t.sizes,y=void 0===h?[1]:h,z=t.style,S=e.__rest(t,["children","className","collapseAll","direction","gutterSize","onSetSizes","sizes","style"]),A=i.Children.count(l),v=e.__read(i.useState(d({childrenCount:A,sizes:y})),1)[0];return i.useEffect((function(){if(1!==v[0]||s)s?null==p||p(e.__spreadArray([1],e.__read(new Array(A-1).fill(0)),!1)):null==p||p(d({childrenCount:A,sizes:v}));else{var r=1/A;null==p||p(new Array(A).fill(r))}}),[A,s,v,p]),r.jsx("div",{className:u.default(n,c),style:z,children:r.jsx(a.default,e.__assign({direction:_,gutterSize:s?0:f,onSetSizes:p,sizes:d({childrenCount:A,sizes:y})},S,{children:l}))})};
|
|
@@ -5,4 +5,4 @@ import { type StackProps } from "./Stack";
|
|
|
5
5
|
* @param alignment - Optional alignment
|
|
6
6
|
* @param spacing - Optional spacing between elements
|
|
7
7
|
*/
|
|
8
|
-
export declare const HStack: ({ children, spacing, ...props }: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const HStack: ({ children, className, spacing, style, ...props }: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),s=require("react/jsx-runtime"),a=require("clsx"),t=require("./Stack.js"),c=require("../../style-inject.es-d4ddeae4.js");function r(e){return e&&e.__esModule?e:{default:e}}var i=r(a),n="Amino_HStack-module__styledHStack--sbuQ3";c.styleInject(".Amino_HStack-module__styledHStack--sbuQ3{grid-column-gap:var(--amino-h-stack-gap);grid-auto-flow:column}");exports.HStack=function(a){var c=a.children,r=a.className,l=a.spacing,u=void 0===l?24:l,_=a.style,o=e.__rest(a,["children","className","spacing","style"]);return s.jsx(t.Stack,e.__assign({className:i.default(r,n),style:e.__assign(e.__assign({},_),{"--amino-h-stack-gap":"".concat(u,"px")})},o,{children:c}))};
|
|
@@ -9,5 +9,10 @@ export type StackProps = {
|
|
|
9
9
|
/** @default 24 */
|
|
10
10
|
spacing?: GridSpacing;
|
|
11
11
|
} & DivProps & BaseProps;
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A stack
|
|
14
|
+
*
|
|
15
|
+
* @param alignment - Optional alignment
|
|
16
|
+
*/
|
|
17
|
+
export declare const Stack: ({ alignment, children, className, style, ...otherProps }: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
18
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),s=require("clsx"),a=require("../../style-inject.es-d4ddeae4.js");function i(e){return e&&e.__esModule?e:{default:e}}var n=i(s),l="Amino_Stack-module__styledStack--L5tSA";a.styleInject(".Amino_Stack-module__styledStack--L5tSA{display:grid;grid-auto-columns:minmax(0,1fr)}.Amino_Stack-module__styledStack--L5tSA>*{justify-self:var(--amino-stack-alignment)}");exports.Stack=function(s){var a=s.alignment,i=s.children,r=s.className,c=s.style,u=e.__rest(s,["alignment","children","className","style"]);return t.jsx("div",e.__assign({className:n.default(r,l),style:e.__assign(e.__assign({},c),{"--amino-stack-alignment":a||"unset"})},u,{children:i}))};
|
|
@@ -5,4 +5,4 @@ import { type StackProps } from "./Stack";
|
|
|
5
5
|
* @param alignment - Optional alignment
|
|
6
6
|
* @param spacing - Optional spacing between elements
|
|
7
7
|
*/
|
|
8
|
-
export declare const VStack: ({ children, spacing, style, ...props }: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const VStack: ({ children, className, spacing, style, ...props }: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),s=require("react/jsx-runtime"),a=require("clsx"),t=require("./Stack.js"),r=require("../../style-inject.es-d4ddeae4.js");function c(e){return e&&e.__esModule?e:{default:e}}var i=c(a),n="Amino_VStack-module__styledVStack--GCZhv";r.styleInject(".Amino_VStack-module__styledVStack--GCZhv{grid-row-gap:var(--amino-v-stack-gap);grid-auto-flow:row}");exports.VStack=function(a){var r=a.children,c=a.className,l=a.spacing,u=void 0===l?24:l,_=a.style,o=e.__rest(a,["children","className","spacing","style"]);return s.jsx(t.Stack,e.__assign({className:i.default(c,n),style:e.__assign(e.__assign({},_),{"--amino-v-stack-gap":"".concat(u,"px")})},o,{children:r}))};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
2
3
|
import type { Depth } from "../../types/Depth";
|
|
3
|
-
type Props = {
|
|
4
|
+
type Props = BaseProps & {
|
|
4
5
|
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
6
|
/**
|
|
7
7
|
* @default false
|
|
8
8
|
*/
|
|
9
9
|
dense?: boolean;
|
|
10
10
|
depth?: Depth;
|
|
11
11
|
};
|
|
12
|
-
export declare const Surface: ({ children, className, dense, depth, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Surface: ({ children, className, dense, depth, style, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("clsx"),r=require("../../style-inject.es-d4ddeae4.js");function o(e){return e&&e.__esModule?e:{default:e}}var d=o(a),u={surfaceBase:"Amino_Surface-module__surfaceBase--kTy01",dense:"Amino_Surface-module__dense--kLwc3",depth4:"Amino_Surface-module__depth4--B3yw8",depth8:"Amino_Surface-module__depth8--NDOvt",depth16:"Amino_Surface-module__depth16--vDCOy",depth64:"Amino_Surface-module__depth64--pyxEJ"};r.styleInject(".Amino_Surface-module__surfaceBase--kTy01{background:var(--amino-surface-color);border-radius:var(--amino-radius-8);color:var(--amino-text-color);padding:24px}.Amino_Surface-module__surfaceBase--kTy01.Amino_Surface-module__dense--kLwc3{border-radius:var(--amino-radius-6)}.Amino_Surface-module__surfaceBase--kTy01.Amino_Surface-module__depth4--B3yw8{border:var(--amino-border);box-shadow:var(--amino-v3-shadow-base)}.Amino_Surface-module__surfaceBase--kTy01.Amino_Surface-module__depth8--NDOvt{box-shadow:var(--amino-v3-shadow-medium)}.Amino_Surface-module__surfaceBase--kTy01.Amino_Surface-module__depth16--vDCOy{box-shadow:var(--amino-v3-shadow-large)}.Amino_Surface-module__surfaceBase--kTy01.Amino_Surface-module__depth64--pyxEJ{box-shadow:var(--amino-v3-shadow-xl)}");exports.Surface=function(a){var r=a.children,o=a.className,s=a.dense,_=void 0!==s&&s,m=a.depth,c=void 0===m?"depth4":m,i=a.style,n=d.default(o,u.surfaceBase,"elevated",_&&u.dense,c&&u[c]);return e.jsx("div",{className:n,style:i,children:r})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var i=require("react/jsx-runtime"),e=require("clsx"),o=require("../text/Text.js"),t=require("../../style-inject.es-d4ddeae4.js");function n(i){return i&&i.__esModule?i:{default:i}}require("../../_tslib-ccfac372.js"),require("styled-components"),require("../../styles/constants/theme.js");var l=n(e),c="Amino_Switch-module__aminoSwitch--V20lQ",m="Amino_Switch-module__checked--cgbVH",a="Amino_Switch-module__aminoSwitchWithIcons--WNTDb",_="Amino_Switch-module__aminoSwitchWrapper--OrqKy",h="Amino_Switch-module__aminoSwitchWrapperWithIcons--YPYDn",d="Amino_Switch-module__styledLabel--mmtjI",r="Amino_Switch-module__styledLabelDescription--5xNoS",s="Amino_Switch-module__labelWrapper--l4iEG",w="Amino_Switch-module__switchContainer--ZM-Jo",u="Amino_Switch-module__disabled--drg1V",p="Amino_Switch-module__styledSubtitle--Zgig5",S="Amino_Switch-module__switchIcon--mIgO1",x="Amino_Switch-module__left--Q--oT";t.styleInject(".Amino_Switch-module__aminoSwitch--V20lQ{background:var(--amino-gray-0);border-radius:50%;box-shadow:inset 0 -1px 1px 0 #00000014,0 1px 3px 0 #0003;height:14px;left:1px;position:absolute;top:1px;transition:var(--amino-transition);width:14px}.Amino_Switch-module__aminoSwitch--V20lQ.Amino_Switch-module__checked--cgbVH{box-shadow:inset 0 -1px 1px 0 #445eee14,0 1px 3px 0 #0003;left:calc(100% - 15px)}[data-theme=night] .Amino_Switch-module__aminoSwitch--V20lQ{background:var(--amino-gray-1200)}.Amino_Switch-module__aminoSwitchWithIcons--WNTDb{box-shadow:inset 0 -1px 1px 0 #0003,0 1px 3px 0 #0006;height:28px;left:2px;top:2px;width:28px}.Amino_Switch-module__aminoSwitchWithIcons--WNTDb.Amino_Switch-module__checked--cgbVH{left:calc(100% - 30px)}[data-theme=night] .Amino_Switch-module__aminoSwitchWithIcons--WNTDb{background:var(--amino-gray-200)}.Amino_Switch-module__aminoSwitchWrapper--OrqKy{background:var(--amino-gray-100);border-radius:20px;box-shadow:var(--amino-v3-shadow-inset);display:block;height:16px;line-height:16px;margin-right:16px;min-height:16px;min-width:32px;position:relative;-webkit-user-select:none;user-select:none;width:32px}.Amino_Switch-module__aminoSwitchWrapper--OrqKy.Amino_Switch-module__checked--cgbVH{background:var(--amino-primary)}.Amino_Switch-module__aminoSwitchWrapperWithIcons--YPYDn.Amino_Switch-module__aminoSwitchWrapperWithIcons--YPYDn{background:var(--amino-gray-50);height:32px;min-width:24px;width:62px}.Amino_Switch-module__styledLabel--mmtjI{margin-bottom:0}.Amino_Switch-module__styledLabelDescription--5xNoS{color:var(--amino-gray-600);margin-left:4px}.Amino_Switch-module__labelWrapper--l4iEG{align-items:center;display:flex;line-height:16px}.Amino_Switch-module__labelWrapper--l4iEG svg{margin-right:4px}.Amino_Switch-module__switchContainer--ZM-Jo{cursor:pointer;display:flex;flex-direction:row}.Amino_Switch-module__switchContainer--ZM-Jo.Amino_Switch-module__disabled--drg1V{cursor:not-allowed}.Amino_Switch-module__switchContainer--ZM-Jo.Amino_Switch-module__disabled--drg1V .Amino_Switch-module__aminoSwitchWrapper--OrqKy{opacity:.6}.Amino_Switch-module__switchContainer--ZM-Jo.Amino_Switch-module__disabled--drg1V .Amino_Switch-module__aminoSwitch--V20lQ{opacity:.95}.Amino_Switch-module__switchContainer--ZM-Jo.Amino_Switch-module__disabled--drg1V .Amino_Switch-module__styledLabel--mmtjI{color:var(--amino-gray-600)}.Amino_Switch-module__switchContainer--ZM-Jo.Amino_Switch-module__disabled--drg1V .Amino_Switch-module__styledSubtitle--Zgig5{color:var(--amino-gray-400)}.Amino_Switch-module__switchIcon--mIgO1{left:auto;position:absolute;right:4px;top:4px}.Amino_Switch-module__switchIcon--mIgO1.Amino_Switch-module__left--Q--oT{left:4px;right:auto}.Amino_Switch-module__switchIcon--mIgO1 svg{height:24px;width:24px}");exports.Switch=function(e){var t=e.checked,n=e.className,g=e.disabled,b=e.label,A=e.labelDescription,y=e.labelIcon,v=e.onChange,f=e.subtitle,j=e.switchIconLeft,I=e.switchIconRight,W=null==b?void 0:b.replace(/\s/g,"-").toLowerCase(),N=Boolean(j||I);return i.jsxs("label",{className:l.default(n,w,g&&u),htmlFor:W,onClick:function(){return!g&&v(!t)},children:[N?i.jsxs("div",{className:l.default(_,h,t&&m),children:[i.jsx("div",{className:l.default(c,a,t&&m),id:W}),i.jsx("div",{className:l.default(S,x),children:j}),i.jsx("div",{className:S,children:I})]}):i.jsx("div",{className:l.default(_,t&&m),children:i.jsx("div",{className:l.default(c,t&&m),id:W})}),i.jsxs("div",{children:[i.jsxs("div",{className:s,children:[y,i.jsxs(o.Text,{className:d,type:"input-label",children:[b,A&&i.jsx("span",{className:r,children:A})]})]}),f&&i.jsx(o.Text,{className:p,type:"subtitle",children:f})]})]})};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { type Color } from "../../types";
|
|
3
|
+
import type { BaseProps } from "../../types/BaseProps";
|
|
3
4
|
export declare const textOthers: readonly ["code", "subtitle", "small-header", "input-label"];
|
|
4
5
|
type OtherText = (typeof textOthers)[number];
|
|
5
6
|
export declare const textOptions: readonly [{
|
|
@@ -92,7 +93,7 @@ type TypographyOverrides = {
|
|
|
92
93
|
lineHeight?: Size;
|
|
93
94
|
};
|
|
94
95
|
type TextStyle = Type | OtherText;
|
|
95
|
-
export type TextProps = {
|
|
96
|
+
export type TextProps = BaseProps & {
|
|
96
97
|
children: ReactNode;
|
|
97
98
|
className?: string;
|
|
98
99
|
isUppercase?: boolean;
|
|
@@ -100,5 +101,5 @@ export type TextProps = {
|
|
|
100
101
|
title?: string;
|
|
101
102
|
type?: TextStyle;
|
|
102
103
|
} & TypographyOverrides;
|
|
103
|
-
export declare const Text: ({ children, className, color, fontSize, fontWeight, isUppercase, lineHeight, tag, title, type, }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
104
|
+
export declare const Text: ({ children, className, color, fontSize, fontWeight, isUppercase, lineHeight, style, tag, title, type, }: TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
104
105
|
export {};
|
package/components/text/Text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),i=require("styled-components"),a=require("../../styles/constants/theme.js");function s(e){return e&&e.__esModule?e:{default:e}}var n,r,l,h=s(i),o=h.default.span(n||(n=e.__makeTemplateObject(["\n font-size: ",";\n line-height: 16px;\n color: ",";\n"],["\n font-size: ",";\n line-height: 16px;\n color: ",";\n"])),a.theme.fontSizeS,a.theme.gray900),p=h.default.span(r||(r=e.__makeTemplateObject(["\n color: ",";\n display: block;\n font-family: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: ",";\n"],["\n color: ",";\n display: block;\n font-family: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: ",";\n"])),a.theme.gray1200,a.theme.fontSans,a.theme.space8),g=[{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",type:"page-header",weight:700},{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"header",weight:600},{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"description-header",weight:700},{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",type:"title",weight:600},{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"bold-subheader",weight:700},{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",type:"semi-bold-subheader",weight:600},{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"subheader",weight:500},{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"bold-label",weight:700},{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"label",weight:500},{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",type:"body",weight:400},{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",type:"small-header",weight:600},{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",type:"caption",weight:400},{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",type:"hint-text",weight:400}],c=e.__read(g,13),d=c[0],u=c[1],z=c[2],b=c[3],f=c[4],m=c[5],x=c[6],w=c[7],y=c[8],U=c[9],W=c[10],S=c[11],$=c[12],_=h.default.h1(l||(l=e.__makeTemplateObject(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0;\n color: ",";\n text-transform: ",";\n\n svg {\n display: inline-block;\n vertical-align: middle;\n }\n"],["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0;\n color: ",";\n text-transform: ",";\n\n svg {\n display: inline-block;\n vertical-align: middle;\n }\n"])),(function(e){return"var(--amino-font-size-".concat(e.$fontSize||e.$size,")")}),(function(e){return e.$fontWeight}),(function(e){return"var(--amino-line-height-".concat(e.$lineHeight||e.$size,")")}),(function(e){return e.$color&&a.theme[e.$color]}),(function(e){return e.$isUppercase&&"uppercase"}));exports.Text=function(e){var i=e.children,a=e.className,s=e.color,n=e.fontSize,r=e.fontWeight,l=e.isUppercase,h=e.lineHeight,g=e.
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),i=require("styled-components"),a=require("../../styles/constants/theme.js");function s(e){return e&&e.__esModule?e:{default:e}}var n,r,l,h=s(i),o=h.default.span(n||(n=e.__makeTemplateObject(["\n font-size: ",";\n line-height: 16px;\n color: ",";\n"],["\n font-size: ",";\n line-height: 16px;\n color: ",";\n"])),a.theme.fontSizeS,a.theme.gray900),p=h.default.span(r||(r=e.__makeTemplateObject(["\n color: ",";\n display: block;\n font-family: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: ",";\n"],["\n color: ",";\n display: block;\n font-family: ",";\n font-size: 14px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: ",";\n"])),a.theme.gray1200,a.theme.fontSans,a.theme.space8),g=[{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",type:"page-header",weight:700},{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"header",weight:600},{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",type:"description-header",weight:700},{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",type:"title",weight:600},{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"bold-subheader",weight:700},{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",type:"semi-bold-subheader",weight:600},{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",type:"subheader",weight:500},{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"bold-label",weight:700},{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",type:"label",weight:500},{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",type:"body",weight:400},{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",type:"small-header",weight:600},{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",type:"caption",weight:400},{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",type:"hint-text",weight:400}],c=e.__read(g,13),d=c[0],u=c[1],z=c[2],b=c[3],f=c[4],m=c[5],x=c[6],w=c[7],y=c[8],U=c[9],W=c[10],S=c[11],$=c[12],_=h.default.h1(l||(l=e.__makeTemplateObject(["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0;\n color: ",";\n text-transform: ",";\n\n svg {\n display: inline-block;\n vertical-align: middle;\n }\n"],["\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0;\n color: ",";\n text-transform: ",";\n\n svg {\n display: inline-block;\n vertical-align: middle;\n }\n"])),(function(e){return"var(--amino-font-size-".concat(e.$fontSize||e.$size,")")}),(function(e){return e.$fontWeight}),(function(e){return"var(--amino-line-height-".concat(e.$lineHeight||e.$size,")")}),(function(e){return e.$color&&a.theme[e.$color]}),(function(e){return e.$isUppercase&&"uppercase"}));exports.Text=function(e){var i=e.children,a=e.className,s=e.color,n=e.fontSize,r=e.fontWeight,l=e.isUppercase,h=e.lineHeight,g=e.style,c=e.tag,v=e.title,j=function(e){var r=e.as,l=e.fontWeight,o=e.isUppercase,p=e.size;return t.jsx(_,{$color:s,$fontSize:n,$fontWeight:l,$isUppercase:!!o,$lineHeight:h,$size:p,as:r,className:a,style:g,title:v,children:i})};switch(e.type){case"page-header":return j({as:c||d.tag,fontWeight:r||d.weight,isUppercase:l,size:d.size});case"header":return j({as:c||u.tag,fontWeight:r||u.weight,isUppercase:l,size:u.size});case"description-header":return j({as:c||z.tag,fontWeight:r||z.weight,isUppercase:l,size:z.size});case"title":return j({as:c||b.tag,fontWeight:r||b.weight,isUppercase:l,size:b.size});case"bold-subheader":return j({as:c||f.tag,fontWeight:r||f.weight,isUppercase:l,size:f.size});case"semi-bold-subheader":return j({as:c||m.tag,fontWeight:r||m.weight,isUppercase:l,size:m.size});case"subheader":return j({as:c||x.tag,fontWeight:r||x.weight,isUppercase:l,size:x.size});case"bold-label":return j({as:c||w.tag,fontWeight:r||w.weight,isUppercase:l,size:w.size});case"label":return j({as:c||y.tag,fontWeight:r||y.weight,isUppercase:l,size:y.size});case"small-header":return j({as:c||W.tag,fontWeight:r||W.weight,isUppercase:"boolean"!=typeof l||l,size:W.size});case"caption":return j({as:c||S.tag,fontWeight:r||S.weight,isUppercase:l,size:S.size});case"hint-text":return j({as:c||$.tag,fontWeight:r||$.weight,isUppercase:l,size:$.size});case"subtitle":return t.jsx(o,{className:a,title:v,children:i});case"input-label":return t.jsx(p,{className:a,title:v,children:i});default:return j({as:c||U.tag,fontWeight:r||U.weight,isUppercase:l,size:U.size})}},exports.textOptions=g,exports.textOthers=["code","subtitle","small-header","input-label"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),s=require("@mui/material/styles"),o=require("@mui/material/Tooltip"),a=require("styled-components"),
|
|
1
|
+
"use strict";var e=require("../../_tslib-ccfac372.js"),t=require("react/jsx-runtime"),s=require("@mui/material/styles"),o=require("@mui/material/Tooltip"),a=require("styled-components"),r=require("../stack/VStack.js"),n=require("../text/Text.js"),i=require("../../styles/constants/theme.js"),l=require("../../utils/hooks/useAminoTheme.js");function d(e){return e&&e.__esModule?e:{default:e}}require("clsx"),require("../stack/Stack.js"),require("../../style-inject.es-d4ddeae4.js"),require("react"),require("../../Theme-61f4342c.js"),require("zod"),require("../../utils/hooks/useStorage.js"),require("../../utils/storage.js"),require("swr");var c,u,p,m,h=d(o),g=d(a),j=g.default(r.VStack)(c||(c=e.__makeTemplateObject(["\n padding: ",";\n"],["\n padding: ",";\n"])),i.theme.space0),b=g.default.div(u||(u=e.__makeTemplateObject([""],[""]))),_=g.default.span(p||(p=e.__makeTemplateObject(["\n display: none;\n"],["\n display: none;\n"]))),k=g.default.div(m||(m=e.__makeTemplateObject(["\n position: relative;\n [disabled] + "," {\n display: block;\n cursor: not-allowed;\n /** @desc avoid showing tooltip on top of dialog or coversheet */\n z-index: 10;\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n }\n"],["\n position: relative;\n [disabled] + "," {\n display: block;\n cursor: not-allowed;\n /** @desc avoid showing tooltip on top of dialog or coversheet */\n z-index: 10;\n\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n }\n"])),_),q=s.styled((function(s){var o=s.className,a=s.dataTheme,r=e.__rest(s,["className","dataTheme"]);return t.jsx(h.default,e.__assign({},r,{classes:{popper:o},PopperProps:e.__assign(e.__assign({},r.PopperProps),{"data-theme":a})}))}))((function(e){var t,s,a=e.background;return(t={})["& .".concat(o.tooltipClasses.tooltip)]={backgroundColor:a?i.theme[a]:i.theme.gray1200,borderRadius:i.theme.radius10,boxShadow:i.theme.v3ShadowLarge,padding:i.theme.space12},t["&[data-theme='night']"]=((s={})[".".concat(o.tooltipClasses.tooltip)]={backgroundColor:a?i.theme[a]:i.theme.gray50},s),t}));exports.Tooltip=function(s){var o=s.background,a=s.children,r=s.className,i=s.open,d=s.showTooltip,c=s.subtitle,u=s.tag,p=s.themeOverride,m=s.title,h=e.__rest(s,["background","children","className","open","showTooltip","subtitle","tag","themeOverride","title"]),g=l.useAminoTheme().aminoTheme;return d?t.jsx(q,e.__assign({},h,{background:o,className:r,dataTheme:p||g,open:i,title:t.jsxs(j,{spacing:8,children:[m&&t.jsx(n.Text,{isUppercase:!1,type:"small-header",children:m}),"string"==typeof c?t.jsx(n.Text,{type:"caption",children:c}):c]}),children:t.jsxs(k,{as:u,children:[a,t.jsx(_,{})]})})):t.jsx(b,{as:u,children:a})};
|