twenty-ui 2.43.0 → 2.44.0
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/README.md +86 -65
- package/dist/{AllIcons-Z8o0B2fy.js → AllIcons-CFMhMGzh.js} +1 -1
- package/dist/{AllIcons-D_4JeQkX.cjs → AllIcons-Cz8pObev.cjs} +1 -1
- package/dist/Avatar-B5-MSVUG.cjs +1 -0
- package/dist/Avatar-Da_dlwJP.js +68 -0
- package/dist/{ListItem-D6DvFIbl.js → ListItem-Bg7Sk5Nv.js} +34 -31
- package/dist/ListItem-UYe5GaEQ.cjs +1 -0
- package/dist/ListItem.module-DkSRO3lX.cjs +1 -0
- package/dist/ListItem.module-DqkBkYtI.js +38 -0
- package/dist/{Loader-X1LymYkw.js → Loader-BLkXvZli.js} +1 -1
- package/dist/{Loader-Z6_7AA-x.cjs → Loader-CMXdrX1d.cjs} +1 -1
- package/dist/MenuSeparator-Ct3cQtJ2.cjs +1 -0
- package/dist/MenuSeparator-CyUYx1nk.js +68 -0
- package/dist/OverflowingTextWithTooltip-CtHMhu6b.js +198 -0
- package/dist/OverflowingTextWithTooltip-maBlogGW.cjs +1 -0
- package/dist/ProgressBar-C8N-1Iav.cjs +1 -0
- package/dist/ProgressBar-Cq6EDZz9.js +58 -0
- package/dist/Switch-BLO0Y9bi.cjs +1 -0
- package/dist/Switch-CMVfAYqP.js +127 -0
- package/dist/TextDirectionContext-pwtyVyKv.cjs +1 -0
- package/dist/TextDirectionContext-zzaQWZg6.js +5 -0
- package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -0
- package/dist/components/__stories__/reading-direction/DirectionalMenusExample.d.ts +4 -0
- package/dist/components/code-editor/CodeEditor/{utils → internal/utils}/getBaseCodeEditorTheme.d.ts +1 -1
- package/dist/components/code-editor/index.d.ts +0 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +36 -36
- package/dist/components/feedback/Callout/Callout.d.ts +1 -1
- package/dist/components/feedback/Callout/types/CalloutProps.d.ts +1 -0
- package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -18
- package/dist/components/feedback/InlineBanner/internal/InlineBannerButton.d.ts +5 -0
- package/dist/components/feedback/InlineBanner/types/InlineBannerButtonProps.d.ts +7 -0
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +12 -0
- package/dist/components/feedback/Toast/Toast.d.ts +1 -1
- package/dist/components/feedback/Toast/internal/components/ToastProgress.d.ts +9 -0
- package/dist/components/feedback/Toast/{hooks → internal/hooks}/useEnqueueToast.d.ts +1 -1
- package/dist/components/feedback/Toast/{types → internal/types}/ToastEntry.d.ts +1 -1
- package/dist/components/feedback/Toast/types/ToastProps.d.ts +1 -1
- package/dist/components/feedback/Toaster/internal/ToasterItem.d.ts +1 -1
- package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +1 -1
- package/dist/components/index.d.ts +4 -20
- package/dist/components/input/IconButton/types/IconButtonProps.d.ts +1 -1
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/__stories__/SearchInputExample.d.ts +2 -0
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -10
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +6 -6
- package/dist/components/navigation/Dropdown/__stories__/DropdownContextMenuExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/createStoryState.d.ts +4 -0
- package/dist/components/navigation/Dropdown/__stories__/dropdownStoryA11yParameters.d.ts +8 -0
- package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +5 -1
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownRoot.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownTitle.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/getDropdownDismissTarget.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/useRegisterDropdownLabelElement.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useRegisteredElementId.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +1 -1
- package/dist/components/navigation/Dropdown/types/DropdownDismissEvent.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownRootProps.d.ts +3 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuProps.d.ts +1 -1
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +1 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +1 -0
- package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +1 -1
- package/dist/components-Bs-35QDJ.cjs +1 -0
- package/dist/components-kaERZ89J.js +1865 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +30 -43
- package/dist/data-display-DenoFbuP.cjs +1 -0
- package/dist/data-display-npY0auY_.js +190 -0
- package/dist/getSafeUrl-BuX_E2_8.cjs +1 -0
- package/dist/getSafeUrl-DXwcx-N0.js +27 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/hooks/useIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-Bd81r48z.js → icon-B7aZ6RxF.js} +123 -122
- package/dist/{icon-iD9IXJmn.cjs → icon-DK8OPi-m.cjs} +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +227 -226
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +622 -642
- package/dist/input-BNuMVtkM.cjs +1 -0
- package/dist/input-COx4wMjs.js +324 -0
- package/dist/layout-BEC7fKLU.js +34 -0
- package/dist/layout-DniJJ8Mx.cjs +1 -0
- package/dist/navigation-CUofX3gO.js +78 -0
- package/dist/navigation-qJfYicT7.cjs +1 -0
- package/dist/primitives/data-display/Avatar/Avatar.d.ts +1 -1
- package/dist/primitives/data-display/Avatar/types/AvatarProps.d.ts +1 -0
- package/dist/primitives/data-display/Pill/Pill.d.ts +3 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +7 -8
- package/dist/primitives/feedback/ProgressBar/ProgressBar.d.ts +2 -12
- package/dist/primitives/feedback/ProgressBar/types/ProgressBarProps.d.ts +14 -0
- package/dist/primitives/feedback/index.d.ts +1 -2
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +2 -4
- package/dist/primitives/input/Button/Button.d.ts +1 -1
- package/dist/primitives/input/Button/types/ButtonProps.d.ts +0 -2
- package/dist/primitives/input/Button/types/ButtonVariant.d.ts +1 -1
- package/dist/primitives/input/Radio/Radio.d.ts +1 -1
- package/dist/primitives/input/Radio/types/RadioProps.d.ts +1 -0
- package/dist/primitives/input/index.d.ts +0 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +9 -9
- package/dist/primitives/layout/{AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts → Collapsible/Collapsible.d.ts} +2 -5
- package/dist/primitives/layout/TextDirectionProvider/TextDirectionProvider.d.ts +2 -1
- package/dist/primitives/layout/TextDirectionProvider/internal/TextDirection.d.ts +1 -0
- package/dist/primitives/layout/TextDirectionProvider/internal/TextDirectionContext.d.ts +2 -0
- package/dist/primitives/layout/TextDirectionProvider/internal/useProvidedTextDirection.d.ts +1 -0
- package/dist/primitives/layout/index.d.ts +4 -6
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +6 -6
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +1 -0
- package/dist/primitives/navigation/index.d.ts +0 -4
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +4 -8
- package/dist/primitives/surfaces/Dialog/types/DialogSize.d.ts +1 -1
- package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +4 -1
- package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/Popover.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/internal/PopoverPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/types/PopoverPopupProps.d.ts +5 -0
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +1 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +3 -3
- package/dist/{utilities/utils → primitives/typography/OverflowingTextWithTooltip/internal/LinkifiedText}/linkifyText.d.ts +2 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +48 -55
- package/dist/style.css +1 -1
- package/dist/surfaces-BJilWRcD.js +264 -0
- package/dist/surfaces-iGk6vB0x.cjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +1 -1
- package/dist/theme/constants/MainColorNames.d.ts +1 -1
- package/dist/theme/constants/ThemeCommon.d.ts +3 -0
- package/dist/theme/constants/ThemeLight.d.ts +4 -0
- package/dist/theme/getNextThemeColor.d.ts +1 -1
- package/dist/theme/themeCssVariables.d.ts +4 -0
- package/dist/theme/themeTypes.d.ts +4 -0
- package/dist/{theme-DBro6iwF.js → theme-CjHovJAZ.js} +30 -20
- package/dist/theme-DumxXtpW.cjs +1 -0
- package/dist/theme-dark.css +2 -0
- package/dist/theme-light.css +2 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/useProvidedTextDirection-B7ovnsdr.cjs +1 -0
- package/dist/useProvidedTextDirection-P1dtjUtE.js +9 -0
- package/dist/utilities/device/getUserDevice.d.ts +1 -1
- package/dist/utilities/index.d.ts +0 -3
- package/dist/utilities-B7EwAZ4L.cjs +1 -0
- package/dist/utilities-CMrqpiWM.js +64 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +12 -13
- package/package.json +2 -2
- package/CHANGELOG.md +0 -24
- package/dist/Avatar-BSHgTxt-.js +0 -67
- package/dist/Avatar-DTNH6Ku7.cjs +0 -1
- package/dist/Input-CFXY05bj.cjs +0 -1
- package/dist/Input-DHfmRBq5.js +0 -116
- package/dist/ListItem-2dHkY1NB.cjs +0 -1
- package/dist/ListItem.module-CveFbY4M.cjs +0 -1
- package/dist/ListItem.module-DtIGiTDL.js +0 -38
- package/dist/MenuSeparator-DJOspG7J.cjs +0 -1
- package/dist/MenuSeparator-dNx4JE6C.js +0 -66
- package/dist/OverflowingTextWithTooltip-CqEkoH6t.js +0 -179
- package/dist/OverflowingTextWithTooltip-bn6EwWeq.cjs +0 -1
- package/dist/Pill-BJ3K8Mdc.cjs +0 -1
- package/dist/Pill-DaFEFIOT.js +0 -9
- package/dist/ProgressBar-DwJQXHwg.cjs +0 -1
- package/dist/ProgressBar-RWLNIkzm.js +0 -55
- package/dist/components/data-display/JsonTree/internal/JsonListItem.d.ts +0 -4
- package/dist/components/feedback/Info/Info.d.ts +0 -2
- package/dist/components/feedback/Info/types/InfoAccent.d.ts +0 -1
- package/dist/components/feedback/Info/types/InfoProps.d.ts +0 -11
- package/dist/components/input/CardPicker/CardPicker.d.ts +0 -2
- package/dist/components/input/CardPicker/types/CardPickerProps.d.ts +0 -2
- package/dist/components/input/ColorSchemePicker/ColorSchemePicker.d.ts +0 -2
- package/dist/components/input/ColorSchemePicker/internal/Checkmark/Checkmark.d.ts +0 -5
- package/dist/components/input/ColorSchemePicker/internal/ColorSchemeCard/ColorSchemeCard.d.ts +0 -11
- package/dist/components/input/ColorSchemePicker/types/ColorSchemePickerProps.d.ts +0 -9
- package/dist/components/navigation/RoundedLink/RoundedLink.d.ts +0 -8
- package/dist/components-BYWo2sUE.cjs +0 -1
- package/dist/components-C96xU59U.js +0 -1996
- package/dist/data-display-BQ9g9oSc.cjs +0 -1
- package/dist/data-display-z9gKjkPS.js +0 -184
- package/dist/feedback-BvpEL2-w.js +0 -25
- package/dist/feedback-CH2UC0Fv.cjs +0 -1
- package/dist/input-C8IiOA9Q.js +0 -335
- package/dist/input-NBD4DP8j.cjs +0 -1
- package/dist/layout-BgAfeZsL.cjs +0 -1
- package/dist/layout-D-XbKoLM.js +0 -30
- package/dist/linkifyText-BHQ4_CzQ.cjs +0 -1
- package/dist/linkifyText-BINRNP9w.js +0 -45
- package/dist/mergeClassNames-BHKm1BNi.js +0 -6
- package/dist/mergeClassNames-BbJtXN2t.cjs +0 -1
- package/dist/navigation-BqZBteC2.cjs +0 -1
- package/dist/navigation-CLMgaqS8.js +0 -91
- package/dist/primitives/feedback/CircularProgressBar/CircularProgressBar.d.ts +0 -7
- package/dist/primitives/input/Button/internal/ButtonSoon.d.ts +0 -5
- package/dist/primitives/input/types/ColorScheme.d.ts +0 -1
- package/dist/primitives/layout/AnimatedExpandableContainer/types/AnimationMode.d.ts +0 -1
- package/dist/primitives/layout/AnimatedExpandableContainer/types/AnimationSize.d.ts +0 -1
- package/dist/primitives/navigation/ClickToActionLink/ClickToActionLink.d.ts +0 -6
- package/dist/primitives/navigation/Link/constants/Cal.d.ts +0 -1
- package/dist/primitives/navigation/Link/constants/GithubLink.d.ts +0 -1
- package/dist/primitives/navigation/Link/constants/TwentyPricingLink.d.ts +0 -1
- package/dist/surfaces-DX8oX1ou.js +0 -254
- package/dist/surfaces-uuLwsFxg.cjs +0 -1
- package/dist/theme-DNG4OSBd.cjs +0 -1
- package/dist/utilities/types/ClickOutsideAttributes.d.ts +0 -4
- package/dist/utilities-BlvbRryv.cjs +0 -1
- package/dist/utilities-C5Tt2HLT.js +0 -56
- /package/dist/components/code-editor/CodeEditor/{constants → internal/constants}/BaseCodeEditorThemeId.d.ts +0 -0
- /package/dist/components/feedback/Toast/{constants → internal/constants}/DefaultToastLimit.d.ts +0 -0
- /package/dist/components/feedback/Toast/{contexts → internal/contexts}/ToastContext.d.ts +0 -0
- /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useCloseToast.d.ts +0 -0
- /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useToastContext.d.ts +0 -0
- /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useToastEntries.d.ts +0 -0
- /package/dist/components/feedback/Toast/{stores → internal/stores}/createToastStore.d.ts +0 -0
- /package/dist/components/feedback/Toast/{types → internal/types}/ToastStoreState.d.ts +0 -0
- /package/dist/components/feedback/Toast/{utils → internal/utils}/completeToastExit.d.ts +0 -0
- /package/dist/components/feedback/Toast/{utils → internal/utils}/dismissToasts.d.ts +0 -0
- /package/dist/components/feedback/Toast/{utils → internal/utils}/isToastVisible.d.ts +0 -0
- /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDimension.d.ts +0 -0
- /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDurationObject.d.ts +0 -0
- /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDurations.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i=require("./theme-DNG4OSBd.cjs"),a=require("./isDefined-DS2Q42p5.cjs"),F=require("./utilities-BlvbRryv.cjs"),I=require("./Loader-Z6_7AA-x.cjs"),N=require("./OverflowingTextWithTooltip-bn6EwWeq.cjs");let v=require("clsx"),t=require("react/jsx-runtime"),C=require("@base-ui/react/button"),D=require("@base-ui/react/use-render");var K={xl:{fontSize:"16px",width:"40px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},$="_chip_104p8_1",k="_content_104p8_73",U="_emptyLabel_104p8_79",W="_endElementDivider_104p8_83",g={chip:$,content:k,emptyLabel:U,endElementDivider:W},Y=({children:e,size:r="sm",variant:s="ghost",color:l="primary",shape:n="square",weight:d="regular",disabled:o=!1,onClick:u,clickable:p=a.isDefined(u),nativeButton:f=!0,startElement:c,endElement:_,endElementDivider:m=!1,maxWidth:x,tooltipLabel:b,tooltipPlace:h,alwaysShowTooltip:P=!1,isLabelHidden:V=!1,forceEmptyText:O=!1,emptyLabel:R="Untitled",className:z,style:E,render:T,ref:A,...B})=>{const L=a.isDefined(e)&&e!==""&&e!==!1;return(0,D.useRender)({render:a.isDefined(u)?(0,t.jsx)(C.Button,{render:T,disabled:o,nativeButton:f}):T,ref:A,state:{size:r,variant:s,color:l,shape:n,weight:d,disabled:o,clickable:p},props:{...B,onClick:u,className:(0,v.clsx)(g.chip,z),style:{...a.isDefined(x)?{"--tw-chip-max-width":`calc(${x}px - 2 * var(--tw-chip-padding))`}:{},...E},children:(0,t.jsxs)(t.Fragment,{children:[c,!V&&(L?typeof e=="string"?(0,t.jsx)(N.OverflowingTextWithTooltip,{size:r==="md"?"large":"small",text:e,tooltipContent:b,tooltipPlace:h,alwaysShowTooltip:P}):(0,t.jsx)("span",{className:g.content,children:e}):!O&&(0,t.jsx)("span",{className:g.emptyLabel,children:R})),a.isDefined(_)&&_!==!1&&(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)("span",{className:g.endElementDivider}),_]})]})}})},Z="_root_1wwsw_1",G="_circle_1wwsw_13",H="_pipeline_1wwsw_19",w={root:Z,circle:G,pipeline:H},J=(e,r)=>a.isDefined(r)?r:i.themeCssVariables.tag.background[e],M=e=>i.themeCssVariables.tag.text[e],Q=({colorName:e,color:r,variant:s,className:l})=>(0,t.jsx)("div",{className:(0,v.clsx)(w.root,s==="circle"&&w.circle,s==="pipeline"&&w.pipeline,l),style:{"--color-sample-color":J(e,r),"--color-sample-border-color":M(e)}}),X="_status_va5xu_1",ee="_content_va5xu_49",q={status:X,content:ee},te=({children:e,color:r,loading:s=!1,weight:l="regular",disabled:n=!1,nativeButton:d=!0,onClick:o,className:u,style:p,render:f,ref:c,..._})=>{const m=F.parseThemeColor(r);return(0,D.useRender)({defaultTagName:"span",render:a.isDefined(o)?(0,t.jsx)(C.Button,{render:f,disabled:n,nativeButton:d}):f,ref:c,state:{loading:s,weight:l,disabled:n,interactive:a.isDefined(o)},props:{..._,onClick:o,className:(0,v.clsx)(q.status,u),style:{"--tw-status-background":i.themeCssVariables.tag.background[m],"--tw-status-text-color":i.themeCssVariables.tag.text[m],...p},children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:q.content,children:e}),s&&(0,t.jsx)(I.Loader,{color:r})]})}})},re="_tag_1vz7j_1",ae="_content_1vz7j_52",se="_iconContainer_1vz7j_58",j={tag:re,content:ae,iconContainer:se},y=e=>{e.preventDefault(),e.stopPropagation()},S=e=>{e.key!=="Enter"&&e.key!==" "||y(e)},ne=({children:e,color:r,weight:s="regular",variant:l="soft",startIcon:n,preventShrink:d=!1,preventPadding:o=!1,borderStyle:u="solid",disabled:p=!1,nativeButton:f=!0,onClick:c,className:_,style:m,render:x,ref:b,...h})=>(0,D.useRender)({defaultTagName:"span",render:a.isDefined(c)?(0,t.jsx)(C.Button,{render:x,disabled:p,nativeButton:f}):x,ref:b,state:{variant:l,weight:s,disabled:p,interactive:a.isDefined(c),preventShrink:d,preventPadding:o},props:{...h,onClick:c,...p&&{disabled:!0,"aria-disabled":!0,tabIndex:-1,onClickCapture:y,onPointerDownCapture:y,onKeyDownCapture:S,onKeyUpCapture:S},className:(0,v.clsx)(j.tag,_),style:{"--tw-tag-background":r==="transparent"?"transparent":i.themeCssVariables.tag.background[r]??i.themeCssVariables.tag.background.gray,"--tw-tag-text":r==="transparent"?i.themeCssVariables.font.color.secondary:i.themeCssVariables.tag.text[r]??i.themeCssVariables.font.color.secondary,"--tw-tag-border-style":u,...m},children:(0,t.jsxs)(t.Fragment,{children:[a.isDefined(n)&&typeof n!="boolean"&&n!==""&&(0,t.jsx)("span",{className:j.iconContainer,"aria-hidden":!0,children:n}),(0,t.jsx)("span",{className:j.content,children:typeof e=="string"&&!d?(0,t.jsx)(N.OverflowingTextWithTooltip,{text:e}):e})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return Y}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return Q}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return te}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return ne}});
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { t as r } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { a as n } from "./theme-DBro6iwF.js";
|
|
3
|
-
import { d as V } from "./utilities-C5Tt2HLT.js";
|
|
4
|
-
import { t as q } from "./Loader-X1LymYkw.js";
|
|
5
|
-
import { t as A } from "./OverflowingTextWithTooltip-CqEkoH6t.js";
|
|
6
|
-
import { clsx as h } from "clsx";
|
|
7
|
-
import { Fragment as x, jsx as e, jsxs as w } from "react/jsx-runtime";
|
|
8
|
-
import { Button as D } from "@base-ui/react/button";
|
|
9
|
-
import { useRender as T } from "@base-ui/react/use-render";
|
|
10
|
-
var ut = {
|
|
11
|
-
xl: {
|
|
12
|
-
fontSize: "16px",
|
|
13
|
-
width: "40px"
|
|
14
|
-
},
|
|
15
|
-
lg: {
|
|
16
|
-
fontSize: "13px",
|
|
17
|
-
width: "24px"
|
|
18
|
-
},
|
|
19
|
-
md: {
|
|
20
|
-
fontSize: "12px",
|
|
21
|
-
width: "16px"
|
|
22
|
-
},
|
|
23
|
-
sm: {
|
|
24
|
-
fontSize: "10px",
|
|
25
|
-
width: "14px"
|
|
26
|
-
},
|
|
27
|
-
xs: {
|
|
28
|
-
fontSize: "8px",
|
|
29
|
-
width: "12px"
|
|
30
|
-
}
|
|
31
|
-
}, F = "_chip_104p8_1", I = "_content_104p8_73", Y = "_emptyLabel_104p8_79", Z = "_endElementDivider_104p8_83", v = {
|
|
32
|
-
chip: F,
|
|
33
|
-
content: I,
|
|
34
|
-
emptyLabel: Y,
|
|
35
|
-
endElementDivider: Z
|
|
36
|
-
}, _t = ({ children: t, size: a = "sm", variant: s = "ghost", color: l = "primary", shape: o = "square", weight: _ = "regular", disabled: p = !1, onClick: i, clickable: c = r(i), nativeButton: d = !0, startElement: m, endElement: u, endElementDivider: f = !1, maxWidth: g, tooltipLabel: y, tooltipPlace: b, alwaysShowTooltip: L = !1, isLabelHidden: P = !1, forceEmptyText: R = !1, emptyLabel: B = "Untitled", className: K, style: $, render: z, ref: k, ...O }) => {
|
|
37
|
-
const U = r(t) && t !== "" && t !== !1;
|
|
38
|
-
return T({
|
|
39
|
-
render: r(i) ? /* @__PURE__ */ e(D, {
|
|
40
|
-
render: z,
|
|
41
|
-
disabled: p,
|
|
42
|
-
nativeButton: d
|
|
43
|
-
}) : z,
|
|
44
|
-
ref: k,
|
|
45
|
-
state: {
|
|
46
|
-
size: a,
|
|
47
|
-
variant: s,
|
|
48
|
-
color: l,
|
|
49
|
-
shape: o,
|
|
50
|
-
weight: _,
|
|
51
|
-
disabled: p,
|
|
52
|
-
clickable: c
|
|
53
|
-
},
|
|
54
|
-
props: {
|
|
55
|
-
...O,
|
|
56
|
-
onClick: i,
|
|
57
|
-
className: h(v.chip, K),
|
|
58
|
-
style: {
|
|
59
|
-
...r(g) ? { "--tw-chip-max-width": `calc(${g}px - 2 * var(--tw-chip-padding))` } : {},
|
|
60
|
-
...$
|
|
61
|
-
},
|
|
62
|
-
children: /* @__PURE__ */ w(x, { children: [
|
|
63
|
-
m,
|
|
64
|
-
!P && (U ? typeof t == "string" ? /* @__PURE__ */ e(A, {
|
|
65
|
-
size: a === "md" ? "large" : "small",
|
|
66
|
-
text: t,
|
|
67
|
-
tooltipContent: y,
|
|
68
|
-
tooltipPlace: b,
|
|
69
|
-
alwaysShowTooltip: L
|
|
70
|
-
}) : /* @__PURE__ */ e("span", {
|
|
71
|
-
className: v.content,
|
|
72
|
-
children: t
|
|
73
|
-
}) : !R && /* @__PURE__ */ e("span", {
|
|
74
|
-
className: v.emptyLabel,
|
|
75
|
-
children: B
|
|
76
|
-
})),
|
|
77
|
-
r(u) && u !== !1 && /* @__PURE__ */ w(x, { children: [f && /* @__PURE__ */ e("span", { className: v.endElementDivider }), u] })
|
|
78
|
-
] })
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}, G = "_root_1wwsw_1", H = "_circle_1wwsw_13", J = "_pipeline_1wwsw_19", C = {
|
|
82
|
-
root: G,
|
|
83
|
-
circle: H,
|
|
84
|
-
pipeline: J
|
|
85
|
-
}, M = (t, a) => r(a) ? a : n.tag.background[t], Q = (t) => n.tag.text[t], dt = ({ colorName: t, color: a, variant: s, className: l }) => /* @__PURE__ */ e("div", {
|
|
86
|
-
className: h(C.root, s === "circle" && C.circle, s === "pipeline" && C.pipeline, l),
|
|
87
|
-
style: {
|
|
88
|
-
"--color-sample-color": M(t, a),
|
|
89
|
-
"--color-sample-border-color": Q(t)
|
|
90
|
-
}
|
|
91
|
-
}), W = "_status_va5xu_1", X = "_content_va5xu_49", j = {
|
|
92
|
-
status: W,
|
|
93
|
-
content: X
|
|
94
|
-
}, ft = ({ children: t, color: a, loading: s = !1, weight: l = "regular", disabled: o = !1, nativeButton: _ = !0, onClick: p, className: i, style: c, render: d, ref: m, ...u }) => {
|
|
95
|
-
const f = V(a);
|
|
96
|
-
return T({
|
|
97
|
-
defaultTagName: "span",
|
|
98
|
-
render: r(p) ? /* @__PURE__ */ e(D, {
|
|
99
|
-
render: d,
|
|
100
|
-
disabled: o,
|
|
101
|
-
nativeButton: _
|
|
102
|
-
}) : d,
|
|
103
|
-
ref: m,
|
|
104
|
-
state: {
|
|
105
|
-
loading: s,
|
|
106
|
-
weight: l,
|
|
107
|
-
disabled: o,
|
|
108
|
-
interactive: r(p)
|
|
109
|
-
},
|
|
110
|
-
props: {
|
|
111
|
-
...u,
|
|
112
|
-
onClick: p,
|
|
113
|
-
className: h(j.status, i),
|
|
114
|
-
style: {
|
|
115
|
-
"--tw-status-background": n.tag.background[f],
|
|
116
|
-
"--tw-status-text-color": n.tag.text[f],
|
|
117
|
-
...c
|
|
118
|
-
},
|
|
119
|
-
children: /* @__PURE__ */ w(x, { children: [/* @__PURE__ */ e("span", {
|
|
120
|
-
className: j.content,
|
|
121
|
-
children: t
|
|
122
|
-
}), s && /* @__PURE__ */ e(q, { color: a })] })
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
}, tt = "_tag_1vz7j_1", at = "_content_1vz7j_52", et = "_iconContainer_1vz7j_58", N = {
|
|
126
|
-
tag: tt,
|
|
127
|
-
content: at,
|
|
128
|
-
iconContainer: et
|
|
129
|
-
}, S = (t) => {
|
|
130
|
-
t.preventDefault(), t.stopPropagation();
|
|
131
|
-
}, E = (t) => {
|
|
132
|
-
t.key !== "Enter" && t.key !== " " || S(t);
|
|
133
|
-
}, gt = ({ children: t, color: a, weight: s = "regular", variant: l = "soft", startIcon: o, preventShrink: _ = !1, preventPadding: p = !1, borderStyle: i = "solid", disabled: c = !1, nativeButton: d = !0, onClick: m, className: u, style: f, render: g, ref: y, ...b }) => T({
|
|
134
|
-
defaultTagName: "span",
|
|
135
|
-
render: r(m) ? /* @__PURE__ */ e(D, {
|
|
136
|
-
render: g,
|
|
137
|
-
disabled: c,
|
|
138
|
-
nativeButton: d
|
|
139
|
-
}) : g,
|
|
140
|
-
ref: y,
|
|
141
|
-
state: {
|
|
142
|
-
variant: l,
|
|
143
|
-
weight: s,
|
|
144
|
-
disabled: c,
|
|
145
|
-
interactive: r(m),
|
|
146
|
-
preventShrink: _,
|
|
147
|
-
preventPadding: p
|
|
148
|
-
},
|
|
149
|
-
props: {
|
|
150
|
-
...b,
|
|
151
|
-
onClick: m,
|
|
152
|
-
...c && {
|
|
153
|
-
disabled: !0,
|
|
154
|
-
"aria-disabled": !0,
|
|
155
|
-
tabIndex: -1,
|
|
156
|
-
onClickCapture: S,
|
|
157
|
-
onPointerDownCapture: S,
|
|
158
|
-
onKeyDownCapture: E,
|
|
159
|
-
onKeyUpCapture: E
|
|
160
|
-
},
|
|
161
|
-
className: h(N.tag, u),
|
|
162
|
-
style: {
|
|
163
|
-
"--tw-tag-background": a === "transparent" ? "transparent" : n.tag.background[a] ?? n.tag.background.gray,
|
|
164
|
-
"--tw-tag-text": a === "transparent" ? n.font.color.secondary : n.tag.text[a] ?? n.font.color.secondary,
|
|
165
|
-
"--tw-tag-border-style": i,
|
|
166
|
-
...f
|
|
167
|
-
},
|
|
168
|
-
children: /* @__PURE__ */ w(x, { children: [r(o) && typeof o != "boolean" && o !== "" && /* @__PURE__ */ e("span", {
|
|
169
|
-
className: N.iconContainer,
|
|
170
|
-
"aria-hidden": !0,
|
|
171
|
-
children: o
|
|
172
|
-
}), /* @__PURE__ */ e("span", {
|
|
173
|
-
className: N.content,
|
|
174
|
-
children: typeof t == "string" && !_ ? /* @__PURE__ */ e(A, { text: t }) : t
|
|
175
|
-
})] })
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
export {
|
|
179
|
-
ut as a,
|
|
180
|
-
_t as i,
|
|
181
|
-
ft as n,
|
|
182
|
-
dt as r,
|
|
183
|
-
gt as t
|
|
184
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
var o = "_svg_5jxqf_1", l = "_circularProgressBarRotate_5jxqf_1", t = "_circle_5jxqf_6", _ = "_circularProgressBarDash_5jxqf_1", s = {
|
|
3
|
-
svg: o,
|
|
4
|
-
circularProgressBarRotate: l,
|
|
5
|
-
circle: t,
|
|
6
|
-
circularProgressBarDash: _
|
|
7
|
-
}, i = ({ size: r = 50, barWidth: a = 5, barColor: e = "currentColor" }) => /* @__PURE__ */ c("svg", {
|
|
8
|
-
className: s.svg,
|
|
9
|
-
width: r,
|
|
10
|
-
height: r,
|
|
11
|
-
children: /* @__PURE__ */ c("circle", {
|
|
12
|
-
className: s.circle,
|
|
13
|
-
cx: r / 2,
|
|
14
|
-
cy: r / 2,
|
|
15
|
-
r: r / 2 - a,
|
|
16
|
-
fill: "none",
|
|
17
|
-
stroke: e,
|
|
18
|
-
strokeWidth: a,
|
|
19
|
-
strokeLinecap: "round",
|
|
20
|
-
pathLength: 100
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
i as t
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let a=require("react/jsx-runtime");var t="_svg_5jxqf_1",l="_circularProgressBarRotate_5jxqf_1",o="_circle_5jxqf_6",u="_circularProgressBarDash_5jxqf_1",c={svg:t,circularProgressBarRotate:l,circle:o,circularProgressBarDash:u},i=({size:r=50,barWidth:e=5,barColor:s="currentColor"})=>(0,a.jsx)("svg",{className:c.svg,width:r,height:r,children:(0,a.jsx)("circle",{className:c.circle,cx:r/2,cy:r/2,r:r/2-e,fill:"none",stroke:s,strokeWidth:e,strokeLinecap:"round",pathLength:100})});Object.defineProperty(exports,"CircularProgressBar",{enumerable:!0,get:function(){return i}});
|
package/dist/input-C8IiOA9Q.js
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
import { Sn as D, bo as J, wn as K } from "./icon-Bd81r48z.js";
|
|
2
|
-
import { t as k } from "./isDefined-fMi6eQ4r.js";
|
|
3
|
-
import { t as Q } from "./theme-DBro6iwF.js";
|
|
4
|
-
import { n as L, r as U, s as W } from "./Input-DHfmRBq5.js";
|
|
5
|
-
import { t as i } from "./mergeClassNames-BHKm1BNi.js";
|
|
6
|
-
import { n as _, r as f, t as u } from "./ListItem.module-DtIGiTDL.js";
|
|
7
|
-
import { clsx as v } from "clsx";
|
|
8
|
-
import { Fragment as Y, jsx as a, jsxs as N } from "react/jsx-runtime";
|
|
9
|
-
import { isBoolean as Z, isFunction as V, isNumber as ee } from "@sniptt/guards";
|
|
10
|
-
import { forwardRef as T, useLayoutEffect as re, useMemo as ae, useRef as oe } from "react";
|
|
11
|
-
import { useRender as B } from "@base-ui/react/use-render";
|
|
12
|
-
import { useDirection as te } from "@base-ui/react/direction-provider";
|
|
13
|
-
import { Radio as le } from "@base-ui/react/radio";
|
|
14
|
-
import { Input as ie } from "@base-ui/react/input";
|
|
15
|
-
import { Checkbox as j } from "@base-ui/react/checkbox";
|
|
16
|
-
import { Field as x } from "@base-ui/react/field";
|
|
17
|
-
import { RadioGroup as P } from "@base-ui/react/radio-group";
|
|
18
|
-
import { Select as c } from "@base-ui/react/select";
|
|
19
|
-
import { Slider as b } from "@base-ui/react/slider";
|
|
20
|
-
var ne = "_container_262rx_1", se = { container: ne }, Lr = ({ attached: e = !0, framed: r = !1, className: o, children: t, variant: l, size: s, color: n, render: m, ref: d, ...S }) => {
|
|
21
|
-
const C = B({
|
|
22
|
-
render: m,
|
|
23
|
-
ref: d,
|
|
24
|
-
props: {
|
|
25
|
-
role: "group",
|
|
26
|
-
"data-attached": e || void 0,
|
|
27
|
-
"data-framed": r || void 0,
|
|
28
|
-
...S,
|
|
29
|
-
className: v(se.container, o),
|
|
30
|
-
children: t
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return /* @__PURE__ */ a(W.Provider, {
|
|
34
|
-
value: {
|
|
35
|
-
variant: l,
|
|
36
|
-
color: n,
|
|
37
|
-
size: s
|
|
38
|
-
},
|
|
39
|
-
children: C
|
|
40
|
-
});
|
|
41
|
-
}, jr = ({ size: e = "sm", variant: r = "solid", shape: o = "square", color: t = "accent", hoverable: l = !0, className: s, children: n, ...m }) => /* @__PURE__ */ N(j.Root, {
|
|
42
|
-
...m,
|
|
43
|
-
className: i(v(_.root, _[e], _[r], _[o], _[t], l && _.hoverable), s),
|
|
44
|
-
children: [/* @__PURE__ */ a("span", {
|
|
45
|
-
className: _.box,
|
|
46
|
-
children: /* @__PURE__ */ N(j.Indicator, {
|
|
47
|
-
className: _.indicator,
|
|
48
|
-
children: [/* @__PURE__ */ a(D, {
|
|
49
|
-
className: _.check,
|
|
50
|
-
"aria-hidden": !0
|
|
51
|
-
}), /* @__PURE__ */ a(J, {
|
|
52
|
-
className: _.minus,
|
|
53
|
-
"aria-hidden": !0
|
|
54
|
-
})]
|
|
55
|
-
})
|
|
56
|
-
}), n]
|
|
57
|
-
}), ce = "_description_yrj5x_1", me = { description: ce }, q = T(({ className: e, ...r }, o) => /* @__PURE__ */ a(x.Description, {
|
|
58
|
-
ref: o,
|
|
59
|
-
className: i(me.description, e),
|
|
60
|
-
...r
|
|
61
|
-
}));
|
|
62
|
-
q.displayName = "FieldDescription";
|
|
63
|
-
var de = "_error_179et_1", _e = { error: de }, A = T(({ className: e, ...r }, o) => /* @__PURE__ */ a(x.Error, {
|
|
64
|
-
ref: o,
|
|
65
|
-
className: i(_e.error, e),
|
|
66
|
-
...r
|
|
67
|
-
}));
|
|
68
|
-
A.displayName = "FieldError";
|
|
69
|
-
var ue = "_label_1yxve_1", ve = { label: ue }, H = T(({ className: e, ...r }, o) => /* @__PURE__ */ a(x.Label, {
|
|
70
|
-
ref: o,
|
|
71
|
-
className: i(ve.label, e),
|
|
72
|
-
...r
|
|
73
|
-
}));
|
|
74
|
-
H.displayName = "FieldLabel";
|
|
75
|
-
var yr = {
|
|
76
|
-
Root: x.Root,
|
|
77
|
-
Label: H,
|
|
78
|
-
Control: x.Control,
|
|
79
|
-
Description: q,
|
|
80
|
-
Error: A,
|
|
81
|
-
Validity: x.Validity
|
|
82
|
-
}, pe = "_root_lk8ci_1", he = "_sm_lk8ci_27", fe = "_md_lk8ci_31", Ne = "_startElement_lk8ci_35", be = "_endElement_lk8ci_36", R = {
|
|
83
|
-
root: pe,
|
|
84
|
-
sm: he,
|
|
85
|
-
md: fe,
|
|
86
|
-
startElement: Ne,
|
|
87
|
-
endElement: be
|
|
88
|
-
}, y = (e) => k(e) && !Z(e) && e !== "", Gr = ({ size: e = "md", startElement: r, endElement: o, className: t, children: l, render: s, ref: n, ...m }) => {
|
|
89
|
-
const d = B({
|
|
90
|
-
render: s,
|
|
91
|
-
ref: n,
|
|
92
|
-
props: {
|
|
93
|
-
...m,
|
|
94
|
-
className: v(R.root, R[e], t),
|
|
95
|
-
children: /* @__PURE__ */ N(Y, { children: [
|
|
96
|
-
y(r) && /* @__PURE__ */ a("span", {
|
|
97
|
-
className: R.startElement,
|
|
98
|
-
children: r
|
|
99
|
-
}),
|
|
100
|
-
l,
|
|
101
|
-
y(o) && /* @__PURE__ */ a("span", {
|
|
102
|
-
className: R.endElement,
|
|
103
|
-
children: o
|
|
104
|
-
})
|
|
105
|
-
] })
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
return /* @__PURE__ */ a(U.Provider, {
|
|
109
|
-
value: { size: e },
|
|
110
|
-
children: d
|
|
111
|
-
});
|
|
112
|
-
}, Se = "_root_1h79s_1", ge = { root: Se }, Fr = ({ className: e, ...r }) => /* @__PURE__ */ a(P, {
|
|
113
|
-
...r,
|
|
114
|
-
className: i(ge.root, e)
|
|
115
|
-
}), ke = "_container_1uovu_1", xe = "_item_1uovu_20", Ce = "_iconOnly_1uovu_60", Ie = "_icon_1uovu_60", Re = "_label_1uovu_79", I = {
|
|
116
|
-
container: ke,
|
|
117
|
-
item: xe,
|
|
118
|
-
iconOnly: Ce,
|
|
119
|
-
icon: Ie,
|
|
120
|
-
label: Re
|
|
121
|
-
}, wr = ({ className: e, itemWidth: r = "equal", options: o, ...t }) => /* @__PURE__ */ a(P, {
|
|
122
|
-
...t,
|
|
123
|
-
className: i(I.container, e),
|
|
124
|
-
"data-item-width": r,
|
|
125
|
-
children: o.map(({ "aria-label": l, disabled: s, label: n, startIcon: m, value: d }) => /* @__PURE__ */ N(le.Root, {
|
|
126
|
-
value: d,
|
|
127
|
-
disabled: s,
|
|
128
|
-
"aria-label": l,
|
|
129
|
-
className: v(I.item, !f(n) && I.iconOnly),
|
|
130
|
-
children: [f(m) && /* @__PURE__ */ a("span", {
|
|
131
|
-
className: I.icon,
|
|
132
|
-
"aria-hidden": !0,
|
|
133
|
-
children: m
|
|
134
|
-
}), f(n) && /* @__PURE__ */ a("span", {
|
|
135
|
-
className: I.label,
|
|
136
|
-
children: n
|
|
137
|
-
})]
|
|
138
|
-
}, d))
|
|
139
|
-
}), Te = "_trigger_hijh9_1", $e = "_value_hijh9_12", Ee = "_icon_hijh9_31", Le = "_positioner_hijh9_42", je = "_popup_hijh9_46", ye = "_item_hijh9_71", Ge = "_indicator_hijh9_75", Fe = "_groupLabel_hijh9_81", we = "_separator_hijh9_89", p = {
|
|
140
|
-
trigger: Te,
|
|
141
|
-
value: $e,
|
|
142
|
-
icon: Ee,
|
|
143
|
-
positioner: Le,
|
|
144
|
-
popup: je,
|
|
145
|
-
item: ye,
|
|
146
|
-
indicator: Ge,
|
|
147
|
-
groupLabel: Fe,
|
|
148
|
-
separator: we
|
|
149
|
-
}, De = ({ className: e, ...r }) => /* @__PURE__ */ a(c.GroupLabel, {
|
|
150
|
-
...r,
|
|
151
|
-
className: i(p.groupLabel, e)
|
|
152
|
-
}), Ve = ({ className: e, children: r, startIcon: o, endIcon: t, description: l, descriptionPlacement: s = "inline", ...n }) => /* @__PURE__ */ N(c.Item, {
|
|
153
|
-
...n,
|
|
154
|
-
className: i(v(u.root, p.item), e),
|
|
155
|
-
"data-color": "neutral",
|
|
156
|
-
"data-indicator": "check",
|
|
157
|
-
children: [
|
|
158
|
-
f(o) && /* @__PURE__ */ a("div", {
|
|
159
|
-
className: u.startIcon,
|
|
160
|
-
"aria-hidden": !0,
|
|
161
|
-
children: o
|
|
162
|
-
}),
|
|
163
|
-
/* @__PURE__ */ N("div", {
|
|
164
|
-
className: u.label,
|
|
165
|
-
children: [/* @__PURE__ */ a(c.ItemText, {
|
|
166
|
-
className: u.text,
|
|
167
|
-
children: r
|
|
168
|
-
}), f(l) && s === "inline" && /* @__PURE__ */ a("div", {
|
|
169
|
-
className: v(u.description, u.inlineDescription),
|
|
170
|
-
children: l
|
|
171
|
-
})]
|
|
172
|
-
}),
|
|
173
|
-
f(l) && s === "end" && /* @__PURE__ */ a("div", {
|
|
174
|
-
className: v(u.description, u.endDescription),
|
|
175
|
-
children: l
|
|
176
|
-
}),
|
|
177
|
-
f(t) && /* @__PURE__ */ a("div", {
|
|
178
|
-
className: u.endIcon,
|
|
179
|
-
"aria-hidden": !0,
|
|
180
|
-
children: t
|
|
181
|
-
}),
|
|
182
|
-
/* @__PURE__ */ a(c.ItemIndicator, {
|
|
183
|
-
className: p.indicator,
|
|
184
|
-
children: /* @__PURE__ */ a(D, { className: u.checkIndicator })
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
}), Be = ({ side: e = "bottom", align: r = "start", sideOffset: o = 8, alignOffset: t, alignItemWithTrigger: l = !1, anchor: s, container: n, className: m, ...d }) => {
|
|
188
|
-
const S = Q(), C = te();
|
|
189
|
-
return /* @__PURE__ */ a(c.Portal, {
|
|
190
|
-
container: n === void 0 ? S ?? void 0 : n,
|
|
191
|
-
children: /* @__PURE__ */ a(c.Positioner, {
|
|
192
|
-
dir: C,
|
|
193
|
-
side: e,
|
|
194
|
-
align: r,
|
|
195
|
-
sideOffset: o,
|
|
196
|
-
alignOffset: t,
|
|
197
|
-
alignItemWithTrigger: l,
|
|
198
|
-
anchor: s,
|
|
199
|
-
className: p.positioner,
|
|
200
|
-
children: /* @__PURE__ */ a(c.Popup, {
|
|
201
|
-
...d,
|
|
202
|
-
className: i(p.popup, m)
|
|
203
|
-
})
|
|
204
|
-
})
|
|
205
|
-
});
|
|
206
|
-
}, Pe = ({ className: e, ...r }) => /* @__PURE__ */ a(c.Separator, {
|
|
207
|
-
...r,
|
|
208
|
-
className: i(p.separator, e)
|
|
209
|
-
}), qe = ({ size: e = "md", className: r, children: o, ...t }) => /* @__PURE__ */ N(c.Trigger, {
|
|
210
|
-
...t,
|
|
211
|
-
className: i(v(L.input, L[e], p.trigger), r),
|
|
212
|
-
children: [o, /* @__PURE__ */ a(c.Icon, {
|
|
213
|
-
className: p.icon,
|
|
214
|
-
children: /* @__PURE__ */ a(K, {})
|
|
215
|
-
})]
|
|
216
|
-
}), Ae = ({ className: e, ...r }) => /* @__PURE__ */ a(c.Value, {
|
|
217
|
-
...r,
|
|
218
|
-
className: i(p.value, e)
|
|
219
|
-
}), He = () => ({
|
|
220
|
-
Root: c.Root,
|
|
221
|
-
Trigger: qe,
|
|
222
|
-
Value: Ae,
|
|
223
|
-
Popup: Be,
|
|
224
|
-
Item: Ve,
|
|
225
|
-
Group: c.Group,
|
|
226
|
-
GroupLabel: De,
|
|
227
|
-
Separator: Pe
|
|
228
|
-
}), Dr = /* @__PURE__ */ He(), Me = "_root_1mh0w_1", Oe = "_accent_1mh0w_16", ze = "_success_1mh0w_20", Xe = "_control_1mh0w_24", Je = "_track_1mh0w_42", Ke = "_indicator_1mh0w_55", Qe = "_thumb_1mh0w_66", Ue = "_label_1mh0w_80", We = "_value_1mh0w_81", h = {
|
|
229
|
-
root: Me,
|
|
230
|
-
accent: Oe,
|
|
231
|
-
success: ze,
|
|
232
|
-
control: Xe,
|
|
233
|
-
track: Je,
|
|
234
|
-
indicator: Ke,
|
|
235
|
-
thumb: Qe,
|
|
236
|
-
label: Ue,
|
|
237
|
-
value: We
|
|
238
|
-
}, Ye = ({ className: e, color: r = "accent", thumbAlignment: o = "edge", ...t }) => /* @__PURE__ */ a(b.Root, {
|
|
239
|
-
...t,
|
|
240
|
-
thumbAlignment: o,
|
|
241
|
-
className: i(v(h.root, h[r]), e)
|
|
242
|
-
}), Ze = ({ className: e, ...r }) => /* @__PURE__ */ a(b.Control, {
|
|
243
|
-
...r,
|
|
244
|
-
className: i(h.control, e)
|
|
245
|
-
}), er = ({ className: e, ...r }) => /* @__PURE__ */ a(b.Track, {
|
|
246
|
-
...r,
|
|
247
|
-
className: i(h.track, e)
|
|
248
|
-
}), rr = ({ className: e, ...r }) => /* @__PURE__ */ a(b.Indicator, {
|
|
249
|
-
...r,
|
|
250
|
-
className: i(h.indicator, e)
|
|
251
|
-
}), ar = ({ className: e, ...r }) => /* @__PURE__ */ a(b.Thumb, {
|
|
252
|
-
...r,
|
|
253
|
-
className: i(h.thumb, e)
|
|
254
|
-
}), or = ({ className: e, ...r }) => /* @__PURE__ */ a(b.Label, {
|
|
255
|
-
...r,
|
|
256
|
-
className: i(h.label, e)
|
|
257
|
-
}), tr = ({ className: e, ...r }) => /* @__PURE__ */ a(b.Value, {
|
|
258
|
-
...r,
|
|
259
|
-
className: i(h.value, e)
|
|
260
|
-
}), Vr = {
|
|
261
|
-
Root: Ye,
|
|
262
|
-
Control: Ze,
|
|
263
|
-
Track: er,
|
|
264
|
-
Indicator: rr,
|
|
265
|
-
Thumb: ar,
|
|
266
|
-
Label: or,
|
|
267
|
-
Value: tr
|
|
268
|
-
}, lr = (e) => k(e) ? ee(e) ? `${e}px` : String(e) : "", G = (e, r) => {
|
|
269
|
-
if (k(e)) {
|
|
270
|
-
if (V(e)) return e(r);
|
|
271
|
-
e.current = r;
|
|
272
|
-
}
|
|
273
|
-
}, ir = (...e) => (r) => {
|
|
274
|
-
const o = e.map((t) => {
|
|
275
|
-
const l = G(t, r);
|
|
276
|
-
return V(l) ? l : () => G(t, null);
|
|
277
|
-
});
|
|
278
|
-
return () => {
|
|
279
|
-
for (const t of o) t();
|
|
280
|
-
};
|
|
281
|
-
}, F = (e) => {
|
|
282
|
-
e.style.blockSize = "auto";
|
|
283
|
-
const r = e.offsetHeight - e.clientHeight;
|
|
284
|
-
e.style.blockSize = `${e.scrollHeight + r}px`;
|
|
285
|
-
}, nr = "_textarea_1qcvj_1", sr = "_sm_1qcvj_38", cr = "_md_1qcvj_42", w = {
|
|
286
|
-
textarea: nr,
|
|
287
|
-
sm: sr,
|
|
288
|
-
md: cr
|
|
289
|
-
}, mr = /* @__PURE__ */ a("textarea", {}), Br = ({ size: e = "md", autoResize: r = !1, maxRows: o, className: t, style: l, ref: s, render: n = mr, onChange: m, value: d, rows: S, ...C }) => {
|
|
290
|
-
const $ = oe(null), M = ae(() => ir(s, $), [s]), O = k(d), E = l?.blockSize;
|
|
291
|
-
re(() => {
|
|
292
|
-
const g = $.current;
|
|
293
|
-
if (k(g)) {
|
|
294
|
-
if (!r) {
|
|
295
|
-
g.style.blockSize = lr(E);
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
F(g);
|
|
299
|
-
}
|
|
300
|
-
}, [
|
|
301
|
-
r,
|
|
302
|
-
d,
|
|
303
|
-
o,
|
|
304
|
-
S,
|
|
305
|
-
E
|
|
306
|
-
]);
|
|
307
|
-
const z = (g) => {
|
|
308
|
-
r && !O && F(g.currentTarget), m?.(g);
|
|
309
|
-
}, X = k(o) ? {
|
|
310
|
-
...l,
|
|
311
|
-
"--tw-textarea-max-rows": o
|
|
312
|
-
} : l;
|
|
313
|
-
return /* @__PURE__ */ a(ie, {
|
|
314
|
-
...C,
|
|
315
|
-
rows: S,
|
|
316
|
-
onChange: z,
|
|
317
|
-
ref: M,
|
|
318
|
-
render: n,
|
|
319
|
-
value: d,
|
|
320
|
-
className: i(v(w.textarea, w[e]), t),
|
|
321
|
-
style: X,
|
|
322
|
-
"data-auto-resize": r || void 0
|
|
323
|
-
});
|
|
324
|
-
};
|
|
325
|
-
export {
|
|
326
|
-
Fr as a,
|
|
327
|
-
jr as c,
|
|
328
|
-
wr as i,
|
|
329
|
-
Lr as l,
|
|
330
|
-
Vr as n,
|
|
331
|
-
Gr as o,
|
|
332
|
-
Dr as r,
|
|
333
|
-
yr as s,
|
|
334
|
-
Br as t
|
|
335
|
-
};
|
package/dist/input-NBD4DP8j.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const M=require("./theme-DNG4OSBd.cjs"),f=require("./isDefined-DS2Q42p5.cjs"),k=require("./Input-CFXY05bj.cjs"),o=require("./mergeClassNames-BbJtXN2t.cjs"),l=require("./ListItem.module-CveFbY4M.cjs");let m=require("clsx"),a=require("react/jsx-runtime"),R=require("@sniptt/guards"),j=require("react"),E=require("@base-ui/react/use-render"),z=require("@base-ui/react/direction-provider"),X=require("@base-ui/react/radio"),J=require("@base-ui/react/input"),y=require("@base-ui/react/checkbox"),N=require("@base-ui/react/field"),P=require("@base-ui/react/radio-group"),u=require("@base-ui/react/select"),p=require("@base-ui/react/slider"),I=require("@tabler/icons-react");var K="_container_262rx_1",Q={container:K},U=({attached:e=!0,framed:r=!1,className:t,children:s,variant:i,size:c,color:n,render:d,ref:_,...b})=>{const g=(0,E.useRender)({render:d,ref:_,props:{role:"group","data-attached":e||void 0,"data-framed":r||void 0,...b,className:(0,m.clsx)(Q.container,t),children:s}});return(0,a.jsx)(k.ButtonGroupContext.Provider,{value:{variant:i,color:n,size:c},children:g})},W=({size:e="sm",variant:r="solid",shape:t="square",color:s="accent",hoverable:i=!0,className:c,children:n,...d})=>(0,a.jsxs)(y.Checkbox.Root,{...d,className:o.mergeClassNames((0,m.clsx)(l.Checkbox_module_default.root,l.Checkbox_module_default[e],l.Checkbox_module_default[r],l.Checkbox_module_default[t],l.Checkbox_module_default[s],i&&l.Checkbox_module_default.hoverable),c),children:[(0,a.jsx)("span",{className:l.Checkbox_module_default.box,children:(0,a.jsxs)(y.Checkbox.Indicator,{className:l.Checkbox_module_default.indicator,children:[(0,a.jsx)(I.IconCheck,{className:l.Checkbox_module_default.check,"aria-hidden":!0}),(0,a.jsx)(I.IconMinus,{className:l.Checkbox_module_default.minus,"aria-hidden":!0})]})}),n]}),Y="_description_yrj5x_1",Z={description:Y},w=(0,j.forwardRef)(({className:e,...r},t)=>(0,a.jsx)(N.Field.Description,{ref:t,className:o.mergeClassNames(Z.description,e),...r}));w.displayName="FieldDescription";var ee="_error_179et_1",re={error:ee},$=(0,j.forwardRef)(({className:e,...r},t)=>(0,a.jsx)(N.Field.Error,{ref:t,className:o.mergeClassNames(re.error,e),...r}));$.displayName="FieldError";var ae="_label_1yxve_1",te={label:ae},O=(0,j.forwardRef)(({className:e,...r},t)=>(0,a.jsx)(N.Field.Label,{ref:t,className:o.mergeClassNames(te.label,e),...r}));O.displayName="FieldLabel";var le={Root:N.Field.Root,Label:O,Control:N.Field.Control,Description:w,Error:$,Validity:N.Field.Validity},se="_root_lk8ci_1",ie="_sm_lk8ci_27",oe="_md_lk8ci_31",ne="_startElement_lk8ci_35",ce="_endElement_lk8ci_36",C={root:se,sm:ie,md:oe,startElement:ne,endElement:ce},F=e=>f.isDefined(e)&&!(0,R.isBoolean)(e)&&e!=="",ue=({size:e="md",startElement:r,endElement:t,className:s,children:i,render:c,ref:n,...d})=>{const _=(0,E.useRender)({render:c,ref:n,props:{...d,className:(0,m.clsx)(C.root,C[e],s),children:(0,a.jsxs)(a.Fragment,{children:[F(r)&&(0,a.jsx)("span",{className:C.startElement,children:r}),i,F(t)&&(0,a.jsx)("span",{className:C.endElement,children:t})]})}});return(0,a.jsx)(k.InputGroupContext.Provider,{value:{size:e},children:_})},de="_root_1h79s_1",_e={root:de},me=({className:e,...r})=>(0,a.jsx)(P.RadioGroup,{...r,className:o.mergeClassNames(_e.root,e)}),ve="_container_1uovu_1",he="_item_1uovu_20",pe="_iconOnly_1uovu_60",be="_icon_1uovu_60",xe="_label_1uovu_79",S={container:ve,item:he,iconOnly:pe,icon:be,label:xe},fe=({className:e,itemWidth:r="equal",options:t,...s})=>(0,a.jsx)(P.RadioGroup,{...s,className:o.mergeClassNames(S.container,e),"data-item-width":r,children:t.map(({"aria-label":i,disabled:c,label:n,startIcon:d,value:_})=>(0,a.jsxs)(X.Radio.Root,{value:_,disabled:c,"aria-label":i,className:(0,m.clsx)(S.item,!l.isRenderableSlot(n)&&S.iconOnly),children:[l.isRenderableSlot(d)&&(0,a.jsx)("span",{className:S.icon,"aria-hidden":!0,children:d}),l.isRenderableSlot(n)&&(0,a.jsx)("span",{className:S.label,children:n})]},_))}),je="_trigger_hijh9_1",Ne="_value_hijh9_12",ge="_icon_hijh9_31",Se="_positioner_hijh9_42",Ce="_popup_hijh9_46",ke="_item_hijh9_71",Ie="_indicator_hijh9_75",Re="_groupLabel_hijh9_81",qe="_separator_hijh9_89",v={trigger:je,value:Ne,icon:ge,positioner:Se,popup:Ce,item:ke,indicator:Ie,groupLabel:Re,separator:qe},Le=({className:e,...r})=>(0,a.jsx)(u.Select.GroupLabel,{...r,className:o.mergeClassNames(v.groupLabel,e)}),ye=({className:e,children:r,startIcon:t,endIcon:s,description:i,descriptionPlacement:c="inline",...n})=>(0,a.jsxs)(u.Select.Item,{...n,className:o.mergeClassNames((0,m.clsx)(l.ListItem_module_default.root,v.item),e),"data-color":"neutral","data-indicator":"check",children:[l.isRenderableSlot(t)&&(0,a.jsx)("div",{className:l.ListItem_module_default.startIcon,"aria-hidden":!0,children:t}),(0,a.jsxs)("div",{className:l.ListItem_module_default.label,children:[(0,a.jsx)(u.Select.ItemText,{className:l.ListItem_module_default.text,children:r}),l.isRenderableSlot(i)&&c==="inline"&&(0,a.jsx)("div",{className:(0,m.clsx)(l.ListItem_module_default.description,l.ListItem_module_default.inlineDescription),children:i})]}),l.isRenderableSlot(i)&&c==="end"&&(0,a.jsx)("div",{className:(0,m.clsx)(l.ListItem_module_default.description,l.ListItem_module_default.endDescription),children:i}),l.isRenderableSlot(s)&&(0,a.jsx)("div",{className:l.ListItem_module_default.endIcon,"aria-hidden":!0,children:s}),(0,a.jsx)(u.Select.ItemIndicator,{className:v.indicator,children:(0,a.jsx)(I.IconCheck,{className:l.ListItem_module_default.checkIndicator})})]}),Fe=({side:e="bottom",align:r="start",sideOffset:t=8,alignOffset:s,alignItemWithTrigger:i=!1,anchor:c,container:n,className:d,..._})=>{const b=M.useThemeContainer(),g=(0,z.useDirection)();return(0,a.jsx)(u.Select.Portal,{container:n===void 0?b??void 0:n,children:(0,a.jsx)(u.Select.Positioner,{dir:g,side:e,align:r,sideOffset:t,alignOffset:s,alignItemWithTrigger:i,anchor:c,className:v.positioner,children:(0,a.jsx)(u.Select.Popup,{..._,className:o.mergeClassNames(v.popup,d)})})})},Te=({className:e,...r})=>(0,a.jsx)(u.Select.Separator,{...r,className:o.mergeClassNames(v.separator,e)}),Ge=({size:e="md",className:r,children:t,...s})=>(0,a.jsxs)(u.Select.Trigger,{...s,className:o.mergeClassNames((0,m.clsx)(k.Input_module_default.input,k.Input_module_default[e],v.trigger),r),children:[t,(0,a.jsx)(u.Select.Icon,{className:v.icon,children:(0,a.jsx)(I.IconChevronDown,{})})]}),De=({className:e,...r})=>(0,a.jsx)(u.Select.Value,{...r,className:o.mergeClassNames(v.value,e)}),Ee=()=>({Root:u.Select.Root,Trigger:Ge,Value:De,Popup:Fe,Item:ye,Group:u.Select.Group,GroupLabel:Le,Separator:Te}),Pe=Ee(),we="_root_1mh0w_1",$e="_accent_1mh0w_16",Oe="_success_1mh0w_20",Be="_control_1mh0w_24",Ve="_track_1mh0w_42",Ae="_indicator_1mh0w_55",He="_thumb_1mh0w_66",Me="_label_1mh0w_80",ze="_value_1mh0w_81",h={root:we,accent:$e,success:Oe,control:Be,track:Ve,indicator:Ae,thumb:He,label:Me,value:ze},Xe=({className:e,color:r="accent",thumbAlignment:t="edge",...s})=>(0,a.jsx)(p.Slider.Root,{...s,thumbAlignment:t,className:o.mergeClassNames((0,m.clsx)(h.root,h[r]),e)}),Je=({className:e,...r})=>(0,a.jsx)(p.Slider.Control,{...r,className:o.mergeClassNames(h.control,e)}),Ke=({className:e,...r})=>(0,a.jsx)(p.Slider.Track,{...r,className:o.mergeClassNames(h.track,e)}),Qe=({className:e,...r})=>(0,a.jsx)(p.Slider.Indicator,{...r,className:o.mergeClassNames(h.indicator,e)}),Ue=({className:e,...r})=>(0,a.jsx)(p.Slider.Thumb,{...r,className:o.mergeClassNames(h.thumb,e)}),We=({className:e,...r})=>(0,a.jsx)(p.Slider.Label,{...r,className:o.mergeClassNames(h.label,e)}),Ye=({className:e,...r})=>(0,a.jsx)(p.Slider.Value,{...r,className:o.mergeClassNames(h.value,e)}),Ze={Root:Xe,Control:Je,Track:Ke,Indicator:Qe,Thumb:Ue,Label:We,Value:Ye},er=e=>f.isDefined(e)?(0,R.isNumber)(e)?`${e}px`:String(e):"",T=(e,r)=>{if(f.isDefined(e)){if((0,R.isFunction)(e))return e(r);e.current=r}},rr=(...e)=>r=>{const t=e.map(s=>{const i=T(s,r);return(0,R.isFunction)(i)?i:()=>T(s,null)});return()=>{for(const s of t)s()}},G=e=>{e.style.blockSize="auto";const r=e.offsetHeight-e.clientHeight;e.style.blockSize=`${e.scrollHeight+r}px`},ar="_textarea_1qcvj_1",tr="_sm_1qcvj_38",lr="_md_1qcvj_42",D={textarea:ar,sm:tr,md:lr},sr=(0,a.jsx)("textarea",{}),ir=({size:e="md",autoResize:r=!1,maxRows:t,className:s,style:i,ref:c,render:n=sr,onChange:d,value:_,rows:b,...g})=>{const q=(0,j.useRef)(null),B=(0,j.useMemo)(()=>rr(c,q),[c]),V=f.isDefined(_),L=i?.blockSize;(0,j.useLayoutEffect)(()=>{const x=q.current;if(f.isDefined(x)){if(!r){x.style.blockSize=er(L);return}G(x)}},[r,_,t,b,L]);const A=x=>{r&&!V&&G(x.currentTarget),d?.(x)},H=f.isDefined(t)?{...i,"--tw-textarea-max-rows":t}:i;return(0,a.jsx)(J.Input,{...g,rows:b,onChange:A,ref:B,render:n,value:_,className:o.mergeClassNames((0,m.clsx)(D.textarea,D[e]),s),style:H,"data-auto-resize":r||void 0})};Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return U}});Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"Field",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"InputGroup",{enumerable:!0,get:function(){return ue}});Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return me}});Object.defineProperty(exports,"SegmentedControl",{enumerable:!0,get:function(){return fe}});Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Pe}});Object.defineProperty(exports,"Slider",{enumerable:!0,get:function(){return Ze}});Object.defineProperty(exports,"Textarea",{enumerable:!0,get:function(){return ir}});
|
package/dist/layout-BgAfeZsL.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let c=require("clsx"),r=require("react/jsx-runtime"),n=require("@base-ui/react/collapsible"),s=require("@base-ui/react/direction-provider");var _="_panel_1a8sy_1",p="_contained_1a8sy_25",i={panel:_,contained:p},b=({children:e,isExpanded:a,dimension:l="height",animationDurations:t="default",containAnimation:d=!0,duration:o})=>{const u=t==="default"?void 0:{"--animated-expandable-opacity-duration":`${t.opacity}s`,"--animated-expandable-size-duration":`${t.size}s`};return(0,r.jsx)(n.Collapsible.Root,{open:a,children:(0,r.jsx)(n.Collapsible.Panel,{className:(0,c.clsx)(i.panel,d&&i.contained),"data-dimension":l,"data-duration":o,style:u,children:e})})},x=({direction:e,children:a})=>(0,r.jsx)(s.DirectionProvider,{direction:e,children:a});Object.defineProperty(exports,"AnimatedExpandableContainer",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"TextDirectionProvider",{enumerable:!0,get:function(){return x}});
|
package/dist/layout-D-XbKoLM.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { clsx as s } from "clsx";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { Collapsible as o } from "@base-ui/react/collapsible";
|
|
4
|
-
import { DirectionProvider as m } from "@base-ui/react/direction-provider";
|
|
5
|
-
var c = "_panel_1a8sy_1", u = "_contained_1a8sy_25", r = {
|
|
6
|
-
panel: c,
|
|
7
|
-
contained: u
|
|
8
|
-
}, y = ({ children: a, isExpanded: e, dimension: i = "height", animationDurations: t = "default", containAnimation: d = !0, duration: l }) => {
|
|
9
|
-
const p = t === "default" ? void 0 : {
|
|
10
|
-
"--animated-expandable-opacity-duration": `${t.opacity}s`,
|
|
11
|
-
"--animated-expandable-size-duration": `${t.size}s`
|
|
12
|
-
};
|
|
13
|
-
return /* @__PURE__ */ n(o.Root, {
|
|
14
|
-
open: e,
|
|
15
|
-
children: /* @__PURE__ */ n(o.Panel, {
|
|
16
|
-
className: s(r.panel, d && r.contained),
|
|
17
|
-
"data-dimension": i,
|
|
18
|
-
"data-duration": l,
|
|
19
|
-
style: p,
|
|
20
|
-
children: a
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
}, b = ({ direction: a, children: e }) => /* @__PURE__ */ n(m, {
|
|
24
|
-
direction: a,
|
|
25
|
-
children: e
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
y as n,
|
|
29
|
-
b as t
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=["http:","https:","mailto:","tel:"],a="https://same-origin-probe.invalid",c=t=>{if(t.startsWith("/"))try{return new URL(t,a).origin===a}catch{return!1}try{const e=new URL(t);return o.includes(e.protocol)}catch{return!1}},f=t=>{if(!t||t.trim().length===0)return;if(c(t))return t;if(t.startsWith("/"))return;const e=`https://${t}`;return c(e)?e:void 0},h=/https?:\/\/[^\s<>[\]]+[^\s<>[\].,;:!?)]/g,l=t=>{const e=[];let n=0;for(const i of t.matchAll(h)){const s=i[0],r=i.index;r>n&&e.push({type:"text",content:t.slice(n,r)}),e.push({type:"link",content:s}),n=r+s.length}return n<t.length&&e.push({type:"text",content:t.slice(n)}),e};Object.defineProperty(exports,"getSafeUrl",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"linkifyText",{enumerable:!0,get:function(){return l}});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var o = [
|
|
2
|
-
"http:",
|
|
3
|
-
"https:",
|
|
4
|
-
"mailto:",
|
|
5
|
-
"tel:"
|
|
6
|
-
], a = "https://same-origin-probe.invalid", c = (t) => {
|
|
7
|
-
if (t.startsWith("/")) try {
|
|
8
|
-
return new URL(t, a).origin === a;
|
|
9
|
-
} catch {
|
|
10
|
-
return !1;
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
const e = new URL(t);
|
|
14
|
-
return o.includes(e.protocol);
|
|
15
|
-
} catch {
|
|
16
|
-
return !1;
|
|
17
|
-
}
|
|
18
|
-
}, p = (t) => {
|
|
19
|
-
if (!t || t.trim().length === 0) return;
|
|
20
|
-
if (c(t)) return t;
|
|
21
|
-
if (t.startsWith("/")) return;
|
|
22
|
-
const e = `https://${t}`;
|
|
23
|
-
return c(e) ? e : void 0;
|
|
24
|
-
}, h = /https?:\/\/[^\s<>[\]]+[^\s<>[\].,;:!?)]/g, l = (t) => {
|
|
25
|
-
const e = [];
|
|
26
|
-
let n = 0;
|
|
27
|
-
for (const s of t.matchAll(h)) {
|
|
28
|
-
const i = s[0], r = s.index;
|
|
29
|
-
r > n && e.push({
|
|
30
|
-
type: "text",
|
|
31
|
-
content: t.slice(n, r)
|
|
32
|
-
}), e.push({
|
|
33
|
-
type: "link",
|
|
34
|
-
content: i
|
|
35
|
-
}), n = r + i.length;
|
|
36
|
-
}
|
|
37
|
-
return n < t.length && e.push({
|
|
38
|
-
type: "text",
|
|
39
|
-
content: t.slice(n)
|
|
40
|
-
}), e;
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
p as n,
|
|
44
|
-
l as t
|
|
45
|
-
};
|