twenty-ui 2.42.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 +89 -63
- package/dist/{AllIcons-BkHLT6oe.js → AllIcons-CFMhMGzh.js} +1 -1
- package/dist/{AllIcons-DMeLF1LP.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-C08r49UJ.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-DbOLVUcK.js → Loader-BLkXvZli.js} +4 -4
- package/dist/Loader-CMXdrX1d.cjs +1 -0
- 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/ResizeHandle-DN1bRxQb.js +89 -0
- package/dist/ResizeHandle-cll01qBQ.cjs +1 -0
- package/dist/Switch-BLO0Y9bi.cjs +1 -0
- package/dist/Switch-CMVfAYqP.js +127 -0
- package/dist/TabsTabContent-BseLV1Wk.cjs +1 -0
- package/dist/TabsTabContent-_NCTxoP6.js +40 -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/CodeEditor.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/{utils → internal/utils}/getBaseCodeEditorTheme.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +1 -0
- package/dist/components/code-editor/index.d.ts +0 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +64 -62
- package/dist/components/data-display/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/components/data-display/AvatarGroup/types/AvatarGroupProps.d.ts +3 -0
- 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 +19 -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 +4 -12
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +21 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownContextMenuExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPagesExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPanelExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerExample.d.ts +4 -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 +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownBack.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownClose.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContext.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +41 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownFocusTarget.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownHeader.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownNestedRootEffect.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPage.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPageFocusEffect.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPageFocusRequest.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRoot.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSection.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSeparator.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenu.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownTitle.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownTrigger.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownDismissTarget.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownFocusTarget.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItemLabel.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItems.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearchTarget.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTrigger.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getNextDropdownItem.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/isUnhandledModifierShortcut.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/preventDismissingClickActivation.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownContext.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +7 -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 +10 -0
- package/dist/components/navigation/Dropdown/types/DropdownCloseProps.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownContentProps.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownDismissEvent.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownHeaderProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownPageProps.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownRootProps.d.ts +14 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownSectionProps.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuTriggerProps.d.ts +6 -0
- package/dist/components/navigation/Dropdown/types/DropdownTitleProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownTriggerProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownType.d.ts +1 -0
- 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 +31 -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/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/hooks/useIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/icon/providers/internal/AllIcons.d.ts +1 -1
- package/dist/{icon-CDy3-hqV.js → icon-B7aZ6RxF.js} +191 -176
- package/dist/icon-DK8OPi-m.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +227 -226
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +620 -643
- package/dist/individual-entry.d.ts +0 -1
- 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/ButtonGroup/internal/ButtonGroupContext.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/SegmentedControl/SegmentedControl.d.ts +2 -29
- package/dist/primitives/input/SegmentedControl/types/SegmentedControlOption.d.ts +13 -0
- package/dist/primitives/input/SegmentedControl/types/SegmentedControlProps.d.ts +10 -0
- package/dist/primitives/input/index.d.ts +2 -2
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +15 -15
- package/dist/primitives/layout/{AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts → Collapsible/Collapsible.d.ts} +2 -5
- package/dist/primitives/layout/ResizeHandle/ResizeHandle.d.ts +2 -9
- package/dist/primitives/layout/ResizeHandle/__stories__/ControlledResizeHandle.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizableDemo.d.ts +3 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/withMockPointerCapture.d.ts +4 -0
- package/dist/primitives/layout/ResizeHandle/internal/ResizeHandleDefaults.constant.d.ts +6 -0
- package/dist/primitives/layout/ResizeHandle/internal/useResizeHandleInteraction.d.ts +19 -0
- package/dist/primitives/layout/ResizeHandle/types/ResizeHandleProps.d.ts +11 -0
- 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 +5 -7
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +7 -8
- 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/Card/Card.d.ts +17 -7
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +8 -0
- 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/index.d.ts +0 -3
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +8 -10
- 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 -58
- package/dist/style.css +1 -1
- package/dist/surfaces-BJilWRcD.js +264 -0
- package/dist/surfaces-iGk6vB0x.cjs +1 -0
- package/dist/testing/index.d.ts +1 -3
- package/dist/testing/utils/overrideMediaQueryMatches.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +98 -102
- package/dist/theme/ThemeOverrides.d.ts +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -0
- package/dist/theme/ThemeProviderProps.d.ts +13 -0
- 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 +2 -0
- package/dist/theme/index.d.ts +10 -0
- package/dist/theme/internal/ThemeContextType.d.ts +6 -0
- package/dist/theme/internal/computeThemeFromCss.d.ts +2 -0
- package/dist/theme/internal/getThemeContext.d.ts +3 -0
- package/dist/theme/internal/getThemeScopeContext.d.ts +2 -0
- package/dist/theme/internal/resolveExplicitTheme.d.ts +5 -0
- package/dist/{theme-constants → theme}/themeCssVariables.d.ts +4 -0
- package/dist/{theme-constants → theme}/themeTypes.d.ts +4 -0
- package/dist/{theme-OwFrow8b.js → theme-CjHovJAZ.js} +1208 -23
- 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 +14 -7
- package/dist/useProvidedTextDirection-B7ovnsdr.cjs +1 -0
- package/dist/useProvidedTextDirection-P1dtjUtE.js +9 -0
- package/dist/utilities/color/utils/stringToThemeColorP3String.d.ts +1 -2
- package/dist/utilities/device/getUserDevice.d.ts +1 -1
- package/dist/utilities/index.d.ts +3 -4
- package/dist/utilities/responsive/constants/MobileMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/constants/TouchDeviceMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/hooks/useMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/internal/getMediaQueryStore.d.ts +6 -0
- package/dist/utilities-B7EwAZ4L.cjs +1 -0
- package/dist/utilities-CMrqpiWM.js +64 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +16 -15
- package/package.json +3 -17
- package/CHANGELOG.md +0 -12
- package/dist/Avatar-BGFK0_a_.cjs +0 -1
- package/dist/Avatar-C_TzSJBe.js +0 -67
- package/dist/ListItem-D75aS69B.cjs +0 -1
- package/dist/ListItem.module-CFDku7rI.cjs +0 -1
- package/dist/ListItem.module-DBhzbt9-.js +0 -38
- package/dist/Loader-CHKTYJo7.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BXWJtb0f.js +0 -179
- package/dist/OverflowingTextWithTooltip-DpizuDxR.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/ResizeHandle-BWfY2ONo.js +0 -37
- package/dist/ResizeHandle-IVbYS3b8.cjs +0 -1
- package/dist/Switch-BvVP6vjR.js +0 -101
- package/dist/Switch-DuoJ4ytC.cjs +0 -1
- package/dist/TabsTabContent-BWQCg7Ua.js +0 -40
- package/dist/TabsTabContent-ChqlTk3P.cjs +0 -1
- package/dist/chunk-u_mIcLyS.cjs +0 -1
- 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-B2Pdf_yn.js +0 -1459
- package/dist/components-DfhgWbKW.cjs +0 -1
- package/dist/data-display-QOdhAohf.cjs +0 -1
- package/dist/data-display-YQG01UPq.js +0 -184
- package/dist/feedback-BvpEL2-w.js +0 -25
- package/dist/feedback-CH2UC0Fv.cjs +0 -1
- package/dist/icon-lF2kxwql.cjs +0 -1
- package/dist/input-C2q7tGPj.js +0 -383
- package/dist/input-CAX9aS7C.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-Z7puI3wl.js +0 -91
- package/dist/navigation-e5PTdnND.cjs +0 -1
- 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/layout/ResizeHandle/hooks/useResizeHandle.d.ts +0 -10
- 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-Cr4lhCvZ.js +0 -306
- package/dist/surfaces-CuxI6145.cjs +0 -1
- package/dist/testing/decorators/ComponentWithRouterDecorator.d.ts +0 -9
- package/dist/testing/decorators/RouterDecorator.d.ts +0 -2
- package/dist/theme-YHfZnD2U.cjs +0 -1
- package/dist/theme-constants/ThemeProvider.d.ts +0 -15
- package/dist/theme-constants/ThemeScopeContext.d.ts +0 -1
- package/dist/theme-constants/getNextThemeColor.d.ts +0 -2
- package/dist/theme-constants/index.d.ts +0 -10
- package/dist/theme-constants-CrrgAYWN.js +0 -1163
- package/dist/theme-constants-ZNgkgDE-.cjs +0 -1
- package/dist/theme-constants.cjs +0 -1
- package/dist/theme-constants.mjs +0 -12
- package/dist/utilities/screen-size/hooks/useScreenSize.d.ts +0 -4
- package/dist/utilities/types/ClickOutsideAttributes.d.ts +0 -4
- package/dist/utilities-D7Z6Uof8.cjs +0 -1
- package/dist/utilities-FXsKnNbt.js +0 -49
- /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
- /package/dist/primitives/surfaces/{CardContent → Card/internal}/CardContent.d.ts +0 -0
- /package/dist/primitives/surfaces/{CardFooter → Card/internal}/CardFooter.d.ts +0 -0
- /package/dist/primitives/surfaces/{CardHeader → Card/internal}/CardHeader.d.ts +0 -0
- /package/dist/{theme-constants/constants.d.ts → theme/constants/MobileViewport.d.ts} +0 -0
- /package/dist/{theme-constants → theme}/useTheme.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useThemeColorScheme.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useThemeContainer.d.ts +0 -0
package/dist/input-C2q7tGPj.js
DELETED
|
@@ -1,383 +0,0 @@
|
|
|
1
|
-
import { Sn as P, bo as W, wn as Y } from "./icon-CDy3-hqV.js";
|
|
2
|
-
import { t as p } from "./isDefined-fMi6eQ4r.js";
|
|
3
|
-
import { r as Z, t as ee } from "./theme-constants-CrrgAYWN.js";
|
|
4
|
-
import { i as re } from "./Switch-BvVP6vjR.js";
|
|
5
|
-
import { t as l } from "./mergeClassNames-BHKm1BNi.js";
|
|
6
|
-
import { n as N, r as w, t as g } from "./ListItem.module-DBhzbt9-.js";
|
|
7
|
-
import { clsx as h } from "clsx";
|
|
8
|
-
import { Fragment as ae, jsx as a, jsxs as C } from "react/jsx-runtime";
|
|
9
|
-
import { isBoolean as te, isFunction as V, isNumber as oe } from "@sniptt/guards";
|
|
10
|
-
import { createContext as ie, forwardRef as F, useContext as le, useLayoutEffect as ne, useMemo as se, useRef as ce } from "react";
|
|
11
|
-
import { useRender as H } from "@base-ui/react/use-render";
|
|
12
|
-
import { useDirection as de } from "@base-ui/react/direction-provider";
|
|
13
|
-
import { Input as M } from "@base-ui/react/input";
|
|
14
|
-
import { Checkbox as A } from "@base-ui/react/checkbox";
|
|
15
|
-
import { Field as $ } from "@base-ui/react/field";
|
|
16
|
-
import { RadioGroup as me } from "@base-ui/react/radio-group";
|
|
17
|
-
import { Select as v } from "@base-ui/react/select";
|
|
18
|
-
import { Slider as T } from "@base-ui/react/slider";
|
|
19
|
-
var ue = "_container_262rx_1", _e = { container: ue }, Ar = ({ attached: e = !0, framed: r = !1, className: t, children: o, variant: i, size: c, color: n, render: u, ref: d, ...x }) => {
|
|
20
|
-
const I = H({
|
|
21
|
-
render: u,
|
|
22
|
-
ref: d,
|
|
23
|
-
props: {
|
|
24
|
-
role: "group",
|
|
25
|
-
"data-attached": e || void 0,
|
|
26
|
-
"data-framed": r || void 0,
|
|
27
|
-
...x,
|
|
28
|
-
className: h(_e.container, t),
|
|
29
|
-
children: o
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return /* @__PURE__ */ a(re.Provider, {
|
|
33
|
-
value: {
|
|
34
|
-
variant: i,
|
|
35
|
-
color: n,
|
|
36
|
-
size: c
|
|
37
|
-
},
|
|
38
|
-
children: I
|
|
39
|
-
});
|
|
40
|
-
}, Or = ({ size: e = "sm", variant: r = "solid", shape: t = "square", color: o = "accent", hoverable: i = !0, className: c, children: n, ...u }) => /* @__PURE__ */ C(A.Root, {
|
|
41
|
-
...u,
|
|
42
|
-
className: l(h(N.root, N[e], N[r], N[t], N[o], i && N.hoverable), c),
|
|
43
|
-
children: [/* @__PURE__ */ a("span", {
|
|
44
|
-
className: N.box,
|
|
45
|
-
children: /* @__PURE__ */ C(A.Indicator, {
|
|
46
|
-
className: N.indicator,
|
|
47
|
-
children: [/* @__PURE__ */ a(P, {
|
|
48
|
-
className: N.check,
|
|
49
|
-
"aria-hidden": !0
|
|
50
|
-
}), /* @__PURE__ */ a(W, {
|
|
51
|
-
className: N.minus,
|
|
52
|
-
"aria-hidden": !0
|
|
53
|
-
})]
|
|
54
|
-
})
|
|
55
|
-
}), n]
|
|
56
|
-
}), ve = "_description_yrj5x_1", pe = { description: ve }, K = F(({ className: e, ...r }, t) => /* @__PURE__ */ a($.Description, {
|
|
57
|
-
ref: t,
|
|
58
|
-
className: l(pe.description, e),
|
|
59
|
-
...r
|
|
60
|
-
}));
|
|
61
|
-
K.displayName = "FieldDescription";
|
|
62
|
-
var he = "_error_179et_1", fe = { error: he }, U = F(({ className: e, ...r }, t) => /* @__PURE__ */ a($.Error, {
|
|
63
|
-
ref: t,
|
|
64
|
-
className: l(fe.error, e),
|
|
65
|
-
...r
|
|
66
|
-
}));
|
|
67
|
-
U.displayName = "FieldError";
|
|
68
|
-
var be = "_label_1yxve_1", Ne = { label: be }, X = F(({ className: e, ...r }, t) => /* @__PURE__ */ a($.Label, {
|
|
69
|
-
ref: t,
|
|
70
|
-
className: l(Ne.label, e),
|
|
71
|
-
...r
|
|
72
|
-
}));
|
|
73
|
-
X.displayName = "FieldLabel";
|
|
74
|
-
var Br = {
|
|
75
|
-
Root: $.Root,
|
|
76
|
-
Label: X,
|
|
77
|
-
Control: $.Control,
|
|
78
|
-
Description: K,
|
|
79
|
-
Error: U,
|
|
80
|
-
Validity: $.Validity
|
|
81
|
-
}, J = ie(null), ge = "_input_14itx_1", Se = "_sm_14itx_45", xe = "_md_14itx_49", D = {
|
|
82
|
-
input: ge,
|
|
83
|
-
sm: Se,
|
|
84
|
-
md: xe
|
|
85
|
-
}, qr = ({ size: e, className: r, ...t }) => {
|
|
86
|
-
const o = le(J), i = e ?? o?.size ?? "md";
|
|
87
|
-
return /* @__PURE__ */ a(M, {
|
|
88
|
-
...t,
|
|
89
|
-
className: l(h(D.input, D[i]), r),
|
|
90
|
-
"data-grouped": p(o) || void 0
|
|
91
|
-
});
|
|
92
|
-
}, ke = "_root_lk8ci_1", Ie = "_sm_lk8ci_27", ye = "_md_lk8ci_31", Ce = "_startElement_lk8ci_35", Te = "_endElement_lk8ci_36", j = {
|
|
93
|
-
root: ke,
|
|
94
|
-
sm: Ie,
|
|
95
|
-
md: ye,
|
|
96
|
-
startElement: Ce,
|
|
97
|
-
endElement: Te
|
|
98
|
-
}, O = (e) => p(e) && !te(e) && e !== "", zr = ({ size: e = "md", startElement: r, endElement: t, className: o, children: i, render: c, ref: n, ...u }) => {
|
|
99
|
-
const d = H({
|
|
100
|
-
render: c,
|
|
101
|
-
ref: n,
|
|
102
|
-
props: {
|
|
103
|
-
...u,
|
|
104
|
-
className: h(j.root, j[e], o),
|
|
105
|
-
children: /* @__PURE__ */ C(ae, { children: [
|
|
106
|
-
O(r) && /* @__PURE__ */ a("span", {
|
|
107
|
-
className: j.startElement,
|
|
108
|
-
children: r
|
|
109
|
-
}),
|
|
110
|
-
i,
|
|
111
|
-
O(t) && /* @__PURE__ */ a("span", {
|
|
112
|
-
className: j.endElement,
|
|
113
|
-
children: t
|
|
114
|
-
})
|
|
115
|
-
] })
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
return /* @__PURE__ */ a(J.Provider, {
|
|
119
|
-
value: { size: e },
|
|
120
|
-
children: d
|
|
121
|
-
});
|
|
122
|
-
}, Le = "_root_1h79s_1", $e = { root: Le }, Pr = ({ className: e, ...r }) => /* @__PURE__ */ a(me, {
|
|
123
|
-
...r,
|
|
124
|
-
className: l($e.root, e)
|
|
125
|
-
}), Ee = "_container_1fskn_1", Re = "_item_1fskn_16", we = "_iconOnly_1fskn_56", je = "_icon_1fskn_56", De = "_label_1fskn_70", E = {
|
|
126
|
-
container: Ee,
|
|
127
|
-
item: Re,
|
|
128
|
-
iconOnly: we,
|
|
129
|
-
icon: je,
|
|
130
|
-
label: De
|
|
131
|
-
}, Vr = ({ ariaLabel: e, itemWidth: r = "equal", onChange: t, options: o, role: i = "group", value: c, width: n }) => {
|
|
132
|
-
const u = Z(), d = i === "tablist", x = p(n) ? { "--segmented-control-width": typeof n == "number" ? `${n}px` : n } : void 0, I = ({ event: f, optionIndex: y, optionValue: _ }) => {
|
|
133
|
-
t(_), Array.from(f.currentTarget.parentElement?.querySelectorAll("button:not(:disabled)") ?? [])[y]?.focus();
|
|
134
|
-
}, R = (f, y) => {
|
|
135
|
-
if (!d) return;
|
|
136
|
-
const _ = o.filter((L) => !L.disabled), m = _.findIndex((L) => L.value === y);
|
|
137
|
-
if (m === -1 || _.length === 0) return;
|
|
138
|
-
const b = _.length - 1, s = {
|
|
139
|
-
ArrowDown: (m + 1) % _.length,
|
|
140
|
-
ArrowLeft: m === 0 ? b : m - 1,
|
|
141
|
-
ArrowRight: (m + 1) % _.length,
|
|
142
|
-
ArrowUp: m === 0 ? b : m - 1,
|
|
143
|
-
End: b,
|
|
144
|
-
Home: 0
|
|
145
|
-
}[f.key];
|
|
146
|
-
p(s) && (f.preventDefault(), I({
|
|
147
|
-
event: f,
|
|
148
|
-
optionIndex: s,
|
|
149
|
-
optionValue: _[s].value
|
|
150
|
-
}));
|
|
151
|
-
};
|
|
152
|
-
return /* @__PURE__ */ a("div", {
|
|
153
|
-
className: E.container,
|
|
154
|
-
role: i,
|
|
155
|
-
"aria-label": e,
|
|
156
|
-
style: x,
|
|
157
|
-
children: o.map(({ Icon: f, ariaLabel: y, disabled: _, label: m, value: b }) => {
|
|
158
|
-
const s = b === c, L = y ?? (typeof m == "string" ? m : void 0), G = p(m);
|
|
159
|
-
return /* @__PURE__ */ C("button", {
|
|
160
|
-
"aria-label": L,
|
|
161
|
-
"aria-pressed": d ? void 0 : s,
|
|
162
|
-
"aria-selected": d ? s : void 0,
|
|
163
|
-
className: h(E.item, !G && E.iconOnly),
|
|
164
|
-
"data-active": s || void 0,
|
|
165
|
-
disabled: _,
|
|
166
|
-
"data-item-width": r,
|
|
167
|
-
onClick: () => t(b),
|
|
168
|
-
onKeyDown: (Q) => R(Q, b),
|
|
169
|
-
role: d ? "tab" : void 0,
|
|
170
|
-
tabIndex: d ? s ? 0 : -1 : void 0,
|
|
171
|
-
type: "button",
|
|
172
|
-
children: [f && /* @__PURE__ */ a("span", {
|
|
173
|
-
className: E.icon,
|
|
174
|
-
children: /* @__PURE__ */ a(f, {
|
|
175
|
-
"aria-hidden": G || p(L),
|
|
176
|
-
color: s ? u.font.color.primary : u.font.color.secondary,
|
|
177
|
-
size: u.icon.size.md
|
|
178
|
-
})
|
|
179
|
-
}), G && /* @__PURE__ */ a("span", {
|
|
180
|
-
className: E.label,
|
|
181
|
-
children: m
|
|
182
|
-
})]
|
|
183
|
-
}, b);
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}, Ge = "_trigger_hijh9_1", Fe = "_value_hijh9_12", Ae = "_icon_hijh9_31", Oe = "_positioner_hijh9_42", Be = "_popup_hijh9_46", qe = "_item_hijh9_71", ze = "_indicator_hijh9_75", Pe = "_groupLabel_hijh9_81", Ve = "_separator_hijh9_89", S = {
|
|
187
|
-
trigger: Ge,
|
|
188
|
-
value: Fe,
|
|
189
|
-
icon: Ae,
|
|
190
|
-
positioner: Oe,
|
|
191
|
-
popup: Be,
|
|
192
|
-
item: qe,
|
|
193
|
-
indicator: ze,
|
|
194
|
-
groupLabel: Pe,
|
|
195
|
-
separator: Ve
|
|
196
|
-
}, He = ({ className: e, ...r }) => /* @__PURE__ */ a(v.GroupLabel, {
|
|
197
|
-
...r,
|
|
198
|
-
className: l(S.groupLabel, e)
|
|
199
|
-
}), Me = ({ className: e, children: r, startIcon: t, endIcon: o, description: i, descriptionPlacement: c = "inline", ...n }) => /* @__PURE__ */ C(v.Item, {
|
|
200
|
-
...n,
|
|
201
|
-
className: l(h(g.root, S.item), e),
|
|
202
|
-
"data-color": "neutral",
|
|
203
|
-
"data-indicator": "check",
|
|
204
|
-
children: [
|
|
205
|
-
w(t) && /* @__PURE__ */ a("div", {
|
|
206
|
-
className: g.startIcon,
|
|
207
|
-
"aria-hidden": !0,
|
|
208
|
-
children: t
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ C("div", {
|
|
211
|
-
className: g.label,
|
|
212
|
-
children: [/* @__PURE__ */ a(v.ItemText, {
|
|
213
|
-
className: g.text,
|
|
214
|
-
children: r
|
|
215
|
-
}), w(i) && c === "inline" && /* @__PURE__ */ a("div", {
|
|
216
|
-
className: h(g.description, g.inlineDescription),
|
|
217
|
-
children: i
|
|
218
|
-
})]
|
|
219
|
-
}),
|
|
220
|
-
w(i) && c === "end" && /* @__PURE__ */ a("div", {
|
|
221
|
-
className: h(g.description, g.endDescription),
|
|
222
|
-
children: i
|
|
223
|
-
}),
|
|
224
|
-
w(o) && /* @__PURE__ */ a("div", {
|
|
225
|
-
className: g.endIcon,
|
|
226
|
-
"aria-hidden": !0,
|
|
227
|
-
children: o
|
|
228
|
-
}),
|
|
229
|
-
/* @__PURE__ */ a(v.ItemIndicator, {
|
|
230
|
-
className: S.indicator,
|
|
231
|
-
children: /* @__PURE__ */ a(P, { className: g.checkIndicator })
|
|
232
|
-
})
|
|
233
|
-
]
|
|
234
|
-
}), Ke = ({ side: e = "bottom", align: r = "start", sideOffset: t = 8, alignOffset: o, alignItemWithTrigger: i = !1, anchor: c, container: n, className: u, ...d }) => {
|
|
235
|
-
const x = ee(), I = de();
|
|
236
|
-
return /* @__PURE__ */ a(v.Portal, {
|
|
237
|
-
container: n === void 0 ? x ?? void 0 : n,
|
|
238
|
-
children: /* @__PURE__ */ a(v.Positioner, {
|
|
239
|
-
dir: I,
|
|
240
|
-
side: e,
|
|
241
|
-
align: r,
|
|
242
|
-
sideOffset: t,
|
|
243
|
-
alignOffset: o,
|
|
244
|
-
alignItemWithTrigger: i,
|
|
245
|
-
anchor: c,
|
|
246
|
-
className: S.positioner,
|
|
247
|
-
children: /* @__PURE__ */ a(v.Popup, {
|
|
248
|
-
...d,
|
|
249
|
-
className: l(S.popup, u)
|
|
250
|
-
})
|
|
251
|
-
})
|
|
252
|
-
});
|
|
253
|
-
}, Ue = ({ className: e, ...r }) => /* @__PURE__ */ a(v.Separator, {
|
|
254
|
-
...r,
|
|
255
|
-
className: l(S.separator, e)
|
|
256
|
-
}), Xe = ({ size: e = "md", className: r, children: t, ...o }) => /* @__PURE__ */ C(v.Trigger, {
|
|
257
|
-
...o,
|
|
258
|
-
className: l(h(D.input, D[e], S.trigger), r),
|
|
259
|
-
children: [t, /* @__PURE__ */ a(v.Icon, {
|
|
260
|
-
className: S.icon,
|
|
261
|
-
children: /* @__PURE__ */ a(Y, {})
|
|
262
|
-
})]
|
|
263
|
-
}), Je = ({ className: e, ...r }) => /* @__PURE__ */ a(v.Value, {
|
|
264
|
-
...r,
|
|
265
|
-
className: l(S.value, e)
|
|
266
|
-
}), Qe = () => ({
|
|
267
|
-
Root: v.Root,
|
|
268
|
-
Trigger: Xe,
|
|
269
|
-
Value: Je,
|
|
270
|
-
Popup: Ke,
|
|
271
|
-
Item: Me,
|
|
272
|
-
Group: v.Group,
|
|
273
|
-
GroupLabel: He,
|
|
274
|
-
Separator: Ue
|
|
275
|
-
}), Hr = /* @__PURE__ */ Qe(), We = "_root_1mh0w_1", Ye = "_accent_1mh0w_16", Ze = "_success_1mh0w_20", er = "_control_1mh0w_24", rr = "_track_1mh0w_42", ar = "_indicator_1mh0w_55", tr = "_thumb_1mh0w_66", or = "_label_1mh0w_80", ir = "_value_1mh0w_81", k = {
|
|
276
|
-
root: We,
|
|
277
|
-
accent: Ye,
|
|
278
|
-
success: Ze,
|
|
279
|
-
control: er,
|
|
280
|
-
track: rr,
|
|
281
|
-
indicator: ar,
|
|
282
|
-
thumb: tr,
|
|
283
|
-
label: or,
|
|
284
|
-
value: ir
|
|
285
|
-
}, lr = ({ className: e, color: r = "accent", thumbAlignment: t = "edge", ...o }) => /* @__PURE__ */ a(T.Root, {
|
|
286
|
-
...o,
|
|
287
|
-
thumbAlignment: t,
|
|
288
|
-
className: l(h(k.root, k[r]), e)
|
|
289
|
-
}), nr = ({ className: e, ...r }) => /* @__PURE__ */ a(T.Control, {
|
|
290
|
-
...r,
|
|
291
|
-
className: l(k.control, e)
|
|
292
|
-
}), sr = ({ className: e, ...r }) => /* @__PURE__ */ a(T.Track, {
|
|
293
|
-
...r,
|
|
294
|
-
className: l(k.track, e)
|
|
295
|
-
}), cr = ({ className: e, ...r }) => /* @__PURE__ */ a(T.Indicator, {
|
|
296
|
-
...r,
|
|
297
|
-
className: l(k.indicator, e)
|
|
298
|
-
}), dr = ({ className: e, ...r }) => /* @__PURE__ */ a(T.Thumb, {
|
|
299
|
-
...r,
|
|
300
|
-
className: l(k.thumb, e)
|
|
301
|
-
}), mr = ({ className: e, ...r }) => /* @__PURE__ */ a(T.Label, {
|
|
302
|
-
...r,
|
|
303
|
-
className: l(k.label, e)
|
|
304
|
-
}), ur = ({ className: e, ...r }) => /* @__PURE__ */ a(T.Value, {
|
|
305
|
-
...r,
|
|
306
|
-
className: l(k.value, e)
|
|
307
|
-
}), Mr = {
|
|
308
|
-
Root: lr,
|
|
309
|
-
Control: nr,
|
|
310
|
-
Track: sr,
|
|
311
|
-
Indicator: cr,
|
|
312
|
-
Thumb: dr,
|
|
313
|
-
Label: mr,
|
|
314
|
-
Value: ur
|
|
315
|
-
}, _r = (e) => p(e) ? oe(e) ? `${e}px` : String(e) : "", B = (e, r) => {
|
|
316
|
-
if (p(e)) {
|
|
317
|
-
if (V(e)) return e(r);
|
|
318
|
-
e.current = r;
|
|
319
|
-
}
|
|
320
|
-
}, vr = (...e) => (r) => {
|
|
321
|
-
const t = e.map((o) => {
|
|
322
|
-
const i = B(o, r);
|
|
323
|
-
return V(i) ? i : () => B(o, null);
|
|
324
|
-
});
|
|
325
|
-
return () => {
|
|
326
|
-
for (const o of t) o();
|
|
327
|
-
};
|
|
328
|
-
}, q = (e) => {
|
|
329
|
-
e.style.blockSize = "auto";
|
|
330
|
-
const r = e.offsetHeight - e.clientHeight;
|
|
331
|
-
e.style.blockSize = `${e.scrollHeight + r}px`;
|
|
332
|
-
}, pr = "_textarea_1qcvj_1", hr = "_sm_1qcvj_38", fr = "_md_1qcvj_42", z = {
|
|
333
|
-
textarea: pr,
|
|
334
|
-
sm: hr,
|
|
335
|
-
md: fr
|
|
336
|
-
}, br = /* @__PURE__ */ a("textarea", {}), Kr = ({ size: e = "md", autoResize: r = !1, maxRows: t, className: o, style: i, ref: c, render: n = br, onChange: u, value: d, rows: x, ...I }) => {
|
|
337
|
-
const R = ce(null), f = se(() => vr(c, R), [c]), y = p(d), _ = i?.blockSize;
|
|
338
|
-
ne(() => {
|
|
339
|
-
const s = R.current;
|
|
340
|
-
if (p(s)) {
|
|
341
|
-
if (!r) {
|
|
342
|
-
s.style.blockSize = _r(_);
|
|
343
|
-
return;
|
|
344
|
-
}
|
|
345
|
-
q(s);
|
|
346
|
-
}
|
|
347
|
-
}, [
|
|
348
|
-
r,
|
|
349
|
-
d,
|
|
350
|
-
t,
|
|
351
|
-
x,
|
|
352
|
-
_
|
|
353
|
-
]);
|
|
354
|
-
const m = (s) => {
|
|
355
|
-
r && !y && q(s.currentTarget), u?.(s);
|
|
356
|
-
}, b = p(t) ? {
|
|
357
|
-
...i,
|
|
358
|
-
"--tw-textarea-max-rows": t
|
|
359
|
-
} : i;
|
|
360
|
-
return /* @__PURE__ */ a(M, {
|
|
361
|
-
...I,
|
|
362
|
-
rows: x,
|
|
363
|
-
onChange: m,
|
|
364
|
-
ref: f,
|
|
365
|
-
render: n,
|
|
366
|
-
value: d,
|
|
367
|
-
className: l(h(z.textarea, z[e]), o),
|
|
368
|
-
style: b,
|
|
369
|
-
"data-auto-resize": r || void 0
|
|
370
|
-
});
|
|
371
|
-
};
|
|
372
|
-
export {
|
|
373
|
-
Pr as a,
|
|
374
|
-
Br as c,
|
|
375
|
-
Vr as i,
|
|
376
|
-
Or as l,
|
|
377
|
-
Mr as n,
|
|
378
|
-
zr as o,
|
|
379
|
-
Hr as r,
|
|
380
|
-
qr as s,
|
|
381
|
-
Kr as t,
|
|
382
|
-
Ar as u
|
|
383
|
-
};
|
package/dist/input-CAX9aS7C.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const f=require("./isDefined-DS2Q42p5.cjs"),B=require("./theme-constants-ZNgkgDE-.cjs"),J=require("./Switch-DuoJ4ytC.cjs"),o=require("./mergeClassNames-BbJtXN2t.cjs"),i=require("./ListItem.module-CFDku7rI.cjs");let x=require("clsx"),t=require("react/jsx-runtime"),w=require("@sniptt/guards"),N=require("react"),z=require("@base-ui/react/use-render"),Q=require("@base-ui/react/direction-provider"),V=require("@base-ui/react/input"),G=require("@base-ui/react/checkbox"),L=require("@base-ui/react/field"),W=require("@base-ui/react/radio-group"),p=require("@base-ui/react/select"),I=require("@base-ui/react/slider"),T=require("@tabler/icons-react");var Y="_container_262rx_1",Z={container:Y},ee=({attached:e=!0,framed:r=!1,className:a,children:l,variant:s,size:d,color:n,render:m,ref:u,...j})=>{const C=(0,z.useRender)({render:m,ref:u,props:{role:"group","data-attached":e||void 0,"data-framed":r||void 0,...j,className:(0,x.clsx)(Z.container,a),children:l}});return(0,t.jsx)(J.ButtonGroupContext.Provider,{value:{variant:s,color:n,size:d},children:C})},re=({size:e="sm",variant:r="solid",shape:a="square",color:l="accent",hoverable:s=!0,className:d,children:n,...m})=>(0,t.jsxs)(G.Checkbox.Root,{...m,className:o.mergeClassNames((0,x.clsx)(i.Checkbox_module_default.root,i.Checkbox_module_default[e],i.Checkbox_module_default[r],i.Checkbox_module_default[a],i.Checkbox_module_default[l],s&&i.Checkbox_module_default.hoverable),d),children:[(0,t.jsx)("span",{className:i.Checkbox_module_default.box,children:(0,t.jsxs)(G.Checkbox.Indicator,{className:i.Checkbox_module_default.indicator,children:[(0,t.jsx)(T.IconCheck,{className:i.Checkbox_module_default.check,"aria-hidden":!0}),(0,t.jsx)(T.IconMinus,{className:i.Checkbox_module_default.minus,"aria-hidden":!0})]})}),n]}),te="_description_yrj5x_1",ae={description:te},H=(0,N.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(L.Field.Description,{ref:a,className:o.mergeClassNames(ae.description,e),...r}));H.displayName="FieldDescription";var le="_error_179et_1",se={error:le},M=(0,N.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(L.Field.Error,{ref:a,className:o.mergeClassNames(se.error,e),...r}));M.displayName="FieldError";var ie="_label_1yxve_1",oe={label:ie},K=(0,N.forwardRef)(({className:e,...r},a)=>(0,t.jsx)(L.Field.Label,{ref:a,className:o.mergeClassNames(oe.label,e),...r}));K.displayName="FieldLabel";var ne={Root:L.Field.Root,Label:K,Control:L.Field.Control,Description:H,Error:M,Validity:L.Field.Validity},U=(0,N.createContext)(null),ce="_input_14itx_1",de="_sm_14itx_45",ue="_md_14itx_49",F={input:ce,sm:de,md:ue},_e=({size:e,className:r,...a})=>{const l=(0,N.useContext)(U),s=e??l?.size??"md";return(0,t.jsx)(V.Input,{...a,className:o.mergeClassNames((0,x.clsx)(F.input,F[s]),r),"data-grouped":f.isDefined(l)||void 0})},me="_root_lk8ci_1",ve="_sm_lk8ci_27",pe="_md_lk8ci_31",fe="_startElement_lk8ci_35",xe="_endElement_lk8ci_36",R={root:me,sm:ve,md:pe,startElement:fe,endElement:xe},O=e=>f.isDefined(e)&&!(0,w.isBoolean)(e)&&e!=="",he=({size:e="md",startElement:r,endElement:a,className:l,children:s,render:d,ref:n,...m})=>{const u=(0,z.useRender)({render:d,ref:n,props:{...m,className:(0,x.clsx)(R.root,R[e],l),children:(0,t.jsxs)(t.Fragment,{children:[O(r)&&(0,t.jsx)("span",{className:R.startElement,children:r}),s,O(a)&&(0,t.jsx)("span",{className:R.endElement,children:a})]})}});return(0,t.jsx)(U.Provider,{value:{size:e},children:u})},be="_root_1h79s_1",ge={root:be},je=({className:e,...r})=>(0,t.jsx)(W.RadioGroup,{...r,className:o.mergeClassNames(ge.root,e)}),Ne="_container_1fskn_1",Se="_item_1fskn_16",Ce="_iconOnly_1fskn_56",ke="_icon_1fskn_56",Ie="_label_1fskn_70",q={container:Ne,item:Se,iconOnly:Ce,icon:ke,label:Ie},ye=({ariaLabel:e,itemWidth:r="equal",onChange:a,options:l,role:s="group",value:d,width:n})=>{const m=B.useTheme(),u=s==="tablist",j=f.isDefined(n)?{"--segmented-control-width":typeof n=="number"?`${n}px`:n}:void 0,C=({event:h,optionIndex:k,optionValue:v})=>{a(v),Array.from(h.currentTarget.parentElement?.querySelectorAll("button:not(:disabled)")??[])[k]?.focus()},D=(h,k)=>{if(!u)return;const v=l.filter(y=>!y.disabled),_=v.findIndex(y=>y.value===k);if(_===-1||v.length===0)return;const b=v.length-1,c={ArrowDown:(_+1)%v.length,ArrowLeft:_===0?b:_-1,ArrowRight:(_+1)%v.length,ArrowUp:_===0?b:_-1,End:b,Home:0}[h.key];f.isDefined(c)&&(h.preventDefault(),C({event:h,optionIndex:c,optionValue:v[c].value}))};return(0,t.jsx)("div",{className:q.container,role:s,"aria-label":e,style:j,children:l.map(({Icon:h,ariaLabel:k,disabled:v,label:_,value:b})=>{const c=b===d,y=k??(typeof _=="string"?_:void 0),E=f.isDefined(_);return(0,t.jsxs)("button",{"aria-label":y,"aria-pressed":u?void 0:c,"aria-selected":u?c:void 0,className:(0,x.clsx)(q.item,!E&&q.iconOnly),"data-active":c||void 0,disabled:v,"data-item-width":r,onClick:()=>a(b),onKeyDown:X=>D(X,b),role:u?"tab":void 0,tabIndex:u?c?0:-1:void 0,type:"button",children:[h&&(0,t.jsx)("span",{className:q.icon,children:(0,t.jsx)(h,{"aria-hidden":E||f.isDefined(y),color:c?m.font.color.primary:m.font.color.secondary,size:m.icon.size.md})}),E&&(0,t.jsx)("span",{className:q.label,children:_})]},b)})})},Le="_trigger_hijh9_1",qe="_value_hijh9_12",De="_icon_hijh9_31",Re="_positioner_hijh9_42",Te="_popup_hijh9_46",Fe="_item_hijh9_71",we="_indicator_hijh9_75",Ee="_groupLabel_hijh9_81",Ge="_separator_hijh9_89",g={trigger:Le,value:qe,icon:De,positioner:Re,popup:Te,item:Fe,indicator:we,groupLabel:Ee,separator:Ge},Oe=({className:e,...r})=>(0,t.jsx)(p.Select.GroupLabel,{...r,className:o.mergeClassNames(g.groupLabel,e)}),Pe=({className:e,children:r,startIcon:a,endIcon:l,description:s,descriptionPlacement:d="inline",...n})=>(0,t.jsxs)(p.Select.Item,{...n,className:o.mergeClassNames((0,x.clsx)(i.ListItem_module_default.root,g.item),e),"data-color":"neutral","data-indicator":"check",children:[i.isRenderableSlot(a)&&(0,t.jsx)("div",{className:i.ListItem_module_default.startIcon,"aria-hidden":!0,children:a}),(0,t.jsxs)("div",{className:i.ListItem_module_default.label,children:[(0,t.jsx)(p.Select.ItemText,{className:i.ListItem_module_default.text,children:r}),i.isRenderableSlot(s)&&d==="inline"&&(0,t.jsx)("div",{className:(0,x.clsx)(i.ListItem_module_default.description,i.ListItem_module_default.inlineDescription),children:s})]}),i.isRenderableSlot(s)&&d==="end"&&(0,t.jsx)("div",{className:(0,x.clsx)(i.ListItem_module_default.description,i.ListItem_module_default.endDescription),children:s}),i.isRenderableSlot(l)&&(0,t.jsx)("div",{className:i.ListItem_module_default.endIcon,"aria-hidden":!0,children:l}),(0,t.jsx)(p.Select.ItemIndicator,{className:g.indicator,children:(0,t.jsx)(T.IconCheck,{className:i.ListItem_module_default.checkIndicator})})]}),$e=({side:e="bottom",align:r="start",sideOffset:a=8,alignOffset:l,alignItemWithTrigger:s=!1,anchor:d,container:n,className:m,...u})=>{const j=B.useThemeContainer(),C=(0,Q.useDirection)();return(0,t.jsx)(p.Select.Portal,{container:n===void 0?j??void 0:n,children:(0,t.jsx)(p.Select.Positioner,{dir:C,side:e,align:r,sideOffset:a,alignOffset:l,alignItemWithTrigger:s,anchor:d,className:g.positioner,children:(0,t.jsx)(p.Select.Popup,{...u,className:o.mergeClassNames(g.popup,m)})})})},Ae=({className:e,...r})=>(0,t.jsx)(p.Select.Separator,{...r,className:o.mergeClassNames(g.separator,e)}),Be=({size:e="md",className:r,children:a,...l})=>(0,t.jsxs)(p.Select.Trigger,{...l,className:o.mergeClassNames((0,x.clsx)(F.input,F[e],g.trigger),r),children:[a,(0,t.jsx)(p.Select.Icon,{className:g.icon,children:(0,t.jsx)(T.IconChevronDown,{})})]}),ze=({className:e,...r})=>(0,t.jsx)(p.Select.Value,{...r,className:o.mergeClassNames(g.value,e)}),Ve=()=>({Root:p.Select.Root,Trigger:Be,Value:ze,Popup:$e,Item:Pe,Group:p.Select.Group,GroupLabel:Oe,Separator:Ae}),He=Ve(),Me="_root_1mh0w_1",Ke="_accent_1mh0w_16",Ue="_success_1mh0w_20",Xe="_control_1mh0w_24",Je="_track_1mh0w_42",Qe="_indicator_1mh0w_55",We="_thumb_1mh0w_66",Ye="_label_1mh0w_80",Ze="_value_1mh0w_81",S={root:Me,accent:Ke,success:Ue,control:Xe,track:Je,indicator:Qe,thumb:We,label:Ye,value:Ze},er=({className:e,color:r="accent",thumbAlignment:a="edge",...l})=>(0,t.jsx)(I.Slider.Root,{...l,thumbAlignment:a,className:o.mergeClassNames((0,x.clsx)(S.root,S[r]),e)}),rr=({className:e,...r})=>(0,t.jsx)(I.Slider.Control,{...r,className:o.mergeClassNames(S.control,e)}),tr=({className:e,...r})=>(0,t.jsx)(I.Slider.Track,{...r,className:o.mergeClassNames(S.track,e)}),ar=({className:e,...r})=>(0,t.jsx)(I.Slider.Indicator,{...r,className:o.mergeClassNames(S.indicator,e)}),lr=({className:e,...r})=>(0,t.jsx)(I.Slider.Thumb,{...r,className:o.mergeClassNames(S.thumb,e)}),sr=({className:e,...r})=>(0,t.jsx)(I.Slider.Label,{...r,className:o.mergeClassNames(S.label,e)}),ir=({className:e,...r})=>(0,t.jsx)(I.Slider.Value,{...r,className:o.mergeClassNames(S.value,e)}),or={Root:er,Control:rr,Track:tr,Indicator:ar,Thumb:lr,Label:sr,Value:ir},nr=e=>f.isDefined(e)?(0,w.isNumber)(e)?`${e}px`:String(e):"",P=(e,r)=>{if(f.isDefined(e)){if((0,w.isFunction)(e))return e(r);e.current=r}},cr=(...e)=>r=>{const a=e.map(l=>{const s=P(l,r);return(0,w.isFunction)(s)?s:()=>P(l,null)});return()=>{for(const l of a)l()}},$=e=>{e.style.blockSize="auto";const r=e.offsetHeight-e.clientHeight;e.style.blockSize=`${e.scrollHeight+r}px`},dr="_textarea_1qcvj_1",ur="_sm_1qcvj_38",_r="_md_1qcvj_42",A={textarea:dr,sm:ur,md:_r},mr=(0,t.jsx)("textarea",{}),vr=({size:e="md",autoResize:r=!1,maxRows:a,className:l,style:s,ref:d,render:n=mr,onChange:m,value:u,rows:j,...C})=>{const D=(0,N.useRef)(null),h=(0,N.useMemo)(()=>cr(d,D),[d]),k=f.isDefined(u),v=s?.blockSize;(0,N.useLayoutEffect)(()=>{const c=D.current;if(f.isDefined(c)){if(!r){c.style.blockSize=nr(v);return}$(c)}},[r,u,a,j,v]);const _=c=>{r&&!k&&$(c.currentTarget),m?.(c)},b=f.isDefined(a)?{...s,"--tw-textarea-max-rows":a}:s;return(0,t.jsx)(V.Input,{...C,rows:j,onChange:_,ref:h,render:n,value:u,className:o.mergeClassNames((0,x.clsx)(A.textarea,A[e]),l),style:b,"data-auto-resize":r||void 0})};Object.defineProperty(exports,"ButtonGroup",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:function(){return re}});Object.defineProperty(exports,"Field",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"Input",{enumerable:!0,get:function(){return _e}});Object.defineProperty(exports,"InputGroup",{enumerable:!0,get:function(){return he}});Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:function(){return je}});Object.defineProperty(exports,"SegmentedControl",{enumerable:!0,get:function(){return ye}});Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return He}});Object.defineProperty(exports,"Slider",{enumerable:!0,get:function(){return or}});Object.defineProperty(exports,"Textarea",{enumerable:!0,get:function(){return vr}});
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let i=require("clsx"),n=require("@sniptt/guards");var u=(r,e)=>t=>(0,i.clsx)(r,(0,n.isFunction)(e)?e(t):e);Object.defineProperty(exports,"mergeClassNames",{enumerable:!0,get:function(){return u}});
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { t as w } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as u } from "./mergeClassNames-BHKm1BNi.js";
|
|
3
|
-
import { n as f, t as A } from "./TabsTabContent-BWQCg7Ua.js";
|
|
4
|
-
import { clsx as g } from "clsx";
|
|
5
|
-
import { jsx as n, jsxs as N } from "react/jsx-runtime";
|
|
6
|
-
import "react";
|
|
7
|
-
import { useDirection as k } from "@base-ui/react/direction-provider";
|
|
8
|
-
import { Tabs as m } from "@base-ui/react/tabs";
|
|
9
|
-
var I = "_root_5ahh0_1", K = { root: I }, q = (r) => /* @__PURE__ */ n("a", {
|
|
10
|
-
className: g(K.root, r.className),
|
|
11
|
-
href: r.href,
|
|
12
|
-
onClick: r.onClick,
|
|
13
|
-
target: r.target,
|
|
14
|
-
rel: r.rel,
|
|
15
|
-
children: r.children
|
|
16
|
-
}), z = "https://cal.com/team/twenty/talk-to-us", G = "https://github.com/twentyhq/twenty", O = "https://twenty.com/pricing", L = ({ event: r, direction: a, loopFocus: l }) => {
|
|
17
|
-
if (r.altKey || r.ctrlKey || r.metaKey || r.shiftKey) return;
|
|
18
|
-
const s = r.currentTarget, o = Array.from(s.querySelectorAll('[role="tab"]')).filter((t) => t.closest('[role="tablist"]') === s), i = o.findIndex((t) => t === r.target);
|
|
19
|
-
if (i === -1) return;
|
|
20
|
-
const c = a === "rtl" ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"], [e, b] = s.getAttribute("aria-orientation") === "vertical" ? ["ArrowDown", "ArrowUp"] : c;
|
|
21
|
-
if (![
|
|
22
|
-
e,
|
|
23
|
-
b,
|
|
24
|
-
"Home",
|
|
25
|
-
"End"
|
|
26
|
-
].includes(r.key)) return;
|
|
27
|
-
r.preventBaseUIHandler(), r.preventDefault();
|
|
28
|
-
const d = o.filter((t) => !t.hasAttribute("data-disabled") && !t.hasAttribute("disabled") && t.getAttribute("aria-disabled") !== "true" && !t.closest("[hidden], [inert]"));
|
|
29
|
-
if (r.key === "Home") {
|
|
30
|
-
d[0]?.focus();
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (r.key === "End") {
|
|
34
|
-
d[d.length - 1]?.focus();
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const h = r.key === b, T = h ? [...d].reverse() : d, y = T.find((t) => h ? o.indexOf(t) < i : o.indexOf(t) > i);
|
|
38
|
-
if (w(y)) {
|
|
39
|
-
y.focus();
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
l && T[0]?.focus();
|
|
43
|
-
}, _ = ({ className: r, children: a, onKeyDown: l, loopFocus: s = !0, ...o }) => {
|
|
44
|
-
const i = k(), c = (e) => {
|
|
45
|
-
if (l?.(e), e.defaultPrevented) {
|
|
46
|
-
e.preventBaseUIHandler();
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
e.baseUIHandlerPrevented || L({
|
|
50
|
-
event: e,
|
|
51
|
-
direction: i,
|
|
52
|
-
loopFocus: s
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
return /* @__PURE__ */ N(m.List, {
|
|
56
|
-
...o,
|
|
57
|
-
loopFocus: s,
|
|
58
|
-
onKeyDown: c,
|
|
59
|
-
className: u(f.list, r),
|
|
60
|
-
children: [a, /* @__PURE__ */ n(m.Indicator, { className: f.indicator })]
|
|
61
|
-
});
|
|
62
|
-
}, x = ({ className: r, ...a }) => /* @__PURE__ */ n(m.Panel, {
|
|
63
|
-
...a,
|
|
64
|
-
className: u(f.panel, r)
|
|
65
|
-
}), C = ({ className: r, ...a }) => /* @__PURE__ */ n(m.Root, {
|
|
66
|
-
...a,
|
|
67
|
-
className: u(f.root, r)
|
|
68
|
-
}), p = ({ className: r, children: a, startIcon: l, endIcon: s, badge: o, highlighted: i = !1, size: c = "sm", ...e }) => /* @__PURE__ */ n(m.Tab, {
|
|
69
|
-
...e,
|
|
70
|
-
className: u(f.tab, r),
|
|
71
|
-
"data-size": c,
|
|
72
|
-
"data-highlighted": i || void 0,
|
|
73
|
-
children: /* @__PURE__ */ n(A, {
|
|
74
|
-
startIcon: l,
|
|
75
|
-
endIcon: s,
|
|
76
|
-
badge: o,
|
|
77
|
-
children: a
|
|
78
|
-
})
|
|
79
|
-
}), S = {
|
|
80
|
-
Root: C,
|
|
81
|
-
List: _,
|
|
82
|
-
Tab: p,
|
|
83
|
-
Panel: x
|
|
84
|
-
};
|
|
85
|
-
export {
|
|
86
|
-
q as a,
|
|
87
|
-
z as i,
|
|
88
|
-
O as n,
|
|
89
|
-
G as r,
|
|
90
|
-
S as t
|
|
91
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const g=require("./chunk-u_mIcLyS.cjs"),N=require("./isDefined-DS2Q42p5.cjs"),f=require("./mergeClassNames-BbJtXN2t.cjs"),l=require("./TabsTabContent-ChqlTk3P.cjs");let I=require("clsx"),o=require("react/jsx-runtime"),y=require("react");y=g.__toESM(y,1);let A=require("@base-ui/react/direction-provider"),b=require("@base-ui/react/tabs");var k="_root_5ahh0_1",w={root:k},x=e=>(0,o.jsx)("a",{className:(0,I.clsx)(w.root,e.className),href:e.href,onClick:e.onClick,target:e.target,rel:e.rel,children:e.children}),C="https://cal.com/team/twenty/talk-to-us",L="https://github.com/twentyhq/twenty",q="https://twenty.com/pricing",K=({event:e,direction:t,loopFocus:u})=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const s=e.currentTarget,i=Array.from(s.querySelectorAll('[role="tab"]')).filter(r=>r.closest('[role="tablist"]')===s),n=i.findIndex(r=>r===e.target);if(n===-1)return;const c=t==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[a,_]=s.getAttribute("aria-orientation")==="vertical"?["ArrowDown","ArrowUp"]:c;if(![a,_,"Home","End"].includes(e.key))return;e.preventBaseUIHandler(),e.preventDefault();const d=i.filter(r=>!r.hasAttribute("data-disabled")&&!r.hasAttribute("disabled")&&r.getAttribute("aria-disabled")!=="true"&&!r.closest("[hidden], [inert]"));if(e.key==="Home"){d[0]?.focus();return}if(e.key==="End"){d[d.length-1]?.focus();return}const m=e.key===_,T=m?[...d].reverse():d,h=T.find(r=>m?i.indexOf(r)<n:i.indexOf(r)>n);if(N.isDefined(h)){h.focus();return}u&&T[0]?.focus()},j=({className:e,children:t,onKeyDown:u,loopFocus:s=!0,...i})=>{const n=(0,A.useDirection)(),c=a=>{if(u?.(a),a.defaultPrevented){a.preventBaseUIHandler();return}a.baseUIHandlerPrevented||K({event:a,direction:n,loopFocus:s})};return(0,o.jsxs)(b.Tabs.List,{...i,loopFocus:s,onKeyDown:c,className:f.mergeClassNames(l.Tab_module_default.list,e),children:[t,(0,o.jsx)(b.Tabs.Indicator,{className:l.Tab_module_default.indicator})]})},P=({className:e,...t})=>(0,o.jsx)(b.Tabs.Panel,{...t,className:f.mergeClassNames(l.Tab_module_default.panel,e)}),D=({className:e,...t})=>(0,o.jsx)(b.Tabs.Root,{...t,className:f.mergeClassNames(l.Tab_module_default.root,e)}),H=({className:e,children:t,startIcon:u,endIcon:s,badge:i,highlighted:n=!1,size:c="sm",...a})=>(0,o.jsx)(b.Tabs.Tab,{...a,className:f.mergeClassNames(l.Tab_module_default.tab,e),"data-size":c,"data-highlighted":n||void 0,children:(0,o.jsx)(l.TabsTabContent,{startIcon:u,endIcon:s,badge:i,children:t})}),O={Root:D,List:j,Tab:H,Panel:P};Object.defineProperty(exports,"CAL_LINK",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"ClickToActionLink",{enumerable:!0,get:function(){return x}});Object.defineProperty(exports,"GITHUB_LINK",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"TWENTY_PRICING_LINK",{enumerable:!0,get:function(){return q}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return O}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ColorScheme = 'Dark' | 'Light' | 'System';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AnimationMode = 'scroll-height' | 'fit-content';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type AnimationSize = number | 'fit-content';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PointerEvent } from 'react';
|
|
2
|
-
export declare const useResizeHandle: ({ initialSize, axis, }: {
|
|
3
|
-
initialSize: number;
|
|
4
|
-
axis?: "x" | "y";
|
|
5
|
-
}) => {
|
|
6
|
-
size: number;
|
|
7
|
-
handleResizeStart: (event: PointerEvent) => void;
|
|
8
|
-
handleResizeMove: (event: PointerEvent) => void;
|
|
9
|
-
handleResizeEnd: () => void;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const CAL_LINK = "https://cal.com/team/twenty/talk-to-us";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GITHUB_LINK = "https://github.com/twentyhq/twenty";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TWENTY_PRICING_LINK = "https://twenty.com/pricing";
|