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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twenty-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.44.0",
|
|
4
4
|
"description": "Twenty's shared React UI component library.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
"esbuild": "^0.28.1",
|
|
54
54
|
"glob": "^11.1.0",
|
|
55
55
|
"jsdom": "^30.0.1",
|
|
56
|
+
"lightningcss": "^1.32.0",
|
|
56
57
|
"monaco-editor": "0.52.2",
|
|
57
58
|
"prettier": "^3.1.1",
|
|
58
59
|
"react": "^19.2.0",
|
|
59
60
|
"react-docgen-typescript": "^2.2.2",
|
|
60
61
|
"react-dom": "^19.2.0",
|
|
61
|
-
"react-router-dom": "^7.18.4",
|
|
62
62
|
"sass": "^1.83.0",
|
|
63
63
|
"sass-embedded": "^1.83.0",
|
|
64
64
|
"size-limit": "^12.1.0",
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
"@sniptt/guards": "^0.2.0",
|
|
79
79
|
"@tabler/icons-react": "^3.31.0",
|
|
80
80
|
"clsx": "^2.1.1",
|
|
81
|
-
"react-responsive": "^9.0.2",
|
|
82
81
|
"type-fest": "^4.10.1",
|
|
83
82
|
"zod": "^4.1.11"
|
|
84
83
|
},
|
|
@@ -86,8 +85,7 @@
|
|
|
86
85
|
"@monaco-editor/react": "^4.7.0",
|
|
87
86
|
"monaco-editor": ">= 0.25.0 < 1",
|
|
88
87
|
"react": "^19.0.0",
|
|
89
|
-
"react-dom": "^19.0.0"
|
|
90
|
-
"react-router-dom": "^7.18.4"
|
|
88
|
+
"react-dom": "^19.0.0"
|
|
91
89
|
},
|
|
92
90
|
"scripts": {
|
|
93
91
|
"build": "npx vite build"
|
|
@@ -95,7 +93,6 @@
|
|
|
95
93
|
"files": [
|
|
96
94
|
"dist",
|
|
97
95
|
"LICENSE",
|
|
98
|
-
"CHANGELOG.md",
|
|
99
96
|
"!dist/individual",
|
|
100
97
|
"!dist/individual/**",
|
|
101
98
|
"!dist/**/*.map"
|
|
@@ -189,11 +186,6 @@
|
|
|
189
186
|
"import": "./dist/theme.mjs",
|
|
190
187
|
"require": "./dist/theme.cjs"
|
|
191
188
|
},
|
|
192
|
-
"./theme-constants": {
|
|
193
|
-
"types": "./dist/theme-constants/index.d.ts",
|
|
194
|
-
"import": "./dist/theme-constants.mjs",
|
|
195
|
-
"require": "./dist/theme-constants.cjs"
|
|
196
|
-
},
|
|
197
189
|
"./utilities": {
|
|
198
190
|
"types": "./dist/utilities/index.d.ts",
|
|
199
191
|
"import": "./dist/utilities.mjs",
|
|
@@ -250,9 +242,6 @@
|
|
|
250
242
|
"theme": [
|
|
251
243
|
"dist/theme/index.d.ts"
|
|
252
244
|
],
|
|
253
|
-
"theme-constants": [
|
|
254
|
-
"dist/theme-constants/index.d.ts"
|
|
255
|
-
],
|
|
256
245
|
"utilities": [
|
|
257
246
|
"dist/utilities/index.d.ts"
|
|
258
247
|
]
|
|
@@ -264,9 +253,6 @@
|
|
|
264
253
|
},
|
|
265
254
|
"monaco-editor": {
|
|
266
255
|
"optional": true
|
|
267
|
-
},
|
|
268
|
-
"react-router-dom": {
|
|
269
|
-
"optional": true
|
|
270
256
|
}
|
|
271
257
|
}
|
|
272
258
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [Unreleased]
|
|
4
|
-
|
|
5
|
-
### Breaking Changes
|
|
6
|
-
|
|
7
|
-
- **Public module ownership changes without a deprecation window.** This release removes 55 public React exports and the `twenty-ui/primitives/json-visualizer` entry point. Applications using the removed imports must migrate when upgrading; compatibility exports are not provided.
|
|
8
|
-
- Import shared compositions, including `JsonTree`, menu presets, and Toast components and hooks, from `twenty-ui/components`. Foundational controls retain `twenty-ui/primitives/<family>` imports. The optional code editor retains `twenty-ui/components/code-editor`.
|
|
9
|
-
- Field displays, application links, placeholders, and feature animations are no longer package exports. External applications must own these integrations or compose supported primitives. Internal implementation parts are private.
|
|
10
|
-
- `Info` uses `href` and `render` in place of `to`. Replace `AnimatedEaseInOut` with `AnimatedExpandableContainer`.
|
|
11
|
-
|
|
12
|
-
Keep `twenty-ui`, `twenty-sdk`, and `twenty-client-sdk` versions aligned when upgrading Twenty apps.
|
package/dist/Avatar-BGFK0_a_.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const h=require("./isDefined-DS2Q42p5.cjs"),I=require("./theme-constants-ZNgkgDE-.cjs"),d=require("./utilities-D7Z6Uof8.cjs"),S=require("./mergeClassNames-BbJtXN2t.cjs");let a=require("react/jsx-runtime"),F=require("@base-ui/react/button"),v=require("@base-ui/react/avatar");var L="_root_vjzsy_1",O="_avatarPulsing_vjzsy_1",R="_image_vjzsy_84",U="_fallback_vjzsy_90",$="_icon_vjzsy_94",n={root:L,avatarPulsing:O,image:R,fallback:U,icon:$},E=({src:j,name:o,colorSeed:l=o,size:q="md",shape:p="square",variant:_="soft",icon:t,color:k,backgroundColor:y,borderColor:x,pulsing:A=!1,disabled:g=!1,nativeButton:T=!0,onClick:m,className:z,style:c,render:i,"aria-label":C,...N})=>{const e=I.useTheme(),s=o?.trim().charAt(0).toUpperCase(),P=s?k??d.stringToThemeColorP3String({string:l??"",variant:12,theme:e}):e.font.color.tertiary,w=s?y??d.stringToThemeColorP3String({string:l??"",variant:_==="outline"?5:4,theme:e}):e.background.transparent.light,f=x??(s?d.stringToThemeColorP3String({string:l??"",variant:6,theme:e}):void 0),u=h.isDefined(m),b=h.isDefined(t)&&typeof t!="boolean"&&t!=="";return(0,a.jsx)(v.Avatar.Root,{...N,onClick:m,"aria-label":C??(u?o?.trim()||"Avatar":void 0),"data-size":q,"data-shape":p,"data-pulsing":A||void 0,"data-disabled":g||void 0,"data-clickable":u||void 0,className:S.mergeClassNames(n.root,z),style:r=>({"--tw-avatar-color":P,"--tw-avatar-background":b?"inherit":r.imageLoadingStatus==="loaded"?"none":w,"--tw-avatar-border":_==="outline"&&r.imageLoadingStatus!=="loaded"&&f?`1px solid ${f}`:"none",...typeof c=="function"?c(r):c}),render:u?(r,B)=>(0,a.jsx)(F.Button,{...r,disabled:g,nativeButton:T,render:typeof i=="function"?D=>i(D,B):i}):i,children:b?(0,a.jsx)("span",{className:n.icon,"aria-hidden":!0,children:t}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v.Avatar.Image,{src:j??void 0,alt:"",className:n.image}),(0,a.jsx)(v.Avatar.Fallback,{className:n.fallback,"aria-hidden":!0,children:s||"-"})]})})};Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return E}});
|
package/dist/Avatar-C_TzSJBe.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { t as b } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { r as L } from "./theme-constants-CrrgAYWN.js";
|
|
3
|
-
import { c as m } from "./utilities-FXsKnNbt.js";
|
|
4
|
-
import { t as $ } from "./mergeClassNames-BHKm1BNi.js";
|
|
5
|
-
import { Fragment as q, jsx as r, jsxs as D } from "react/jsx-runtime";
|
|
6
|
-
import { Button as R } from "@base-ui/react/button";
|
|
7
|
-
import { Avatar as v } from "@base-ui/react/avatar";
|
|
8
|
-
var S = "_root_vjzsy_1", U = "_avatarPulsing_vjzsy_1", E = "_image_vjzsy_84", G = "_fallback_vjzsy_90", H = "_icon_vjzsy_94", s = {
|
|
9
|
-
root: S,
|
|
10
|
-
avatarPulsing: U,
|
|
11
|
-
image: E,
|
|
12
|
-
fallback: G,
|
|
13
|
-
icon: H
|
|
14
|
-
}, X = ({ src: h, name: n, colorSeed: l = n, size: k = "md", shape: y = "square", variant: f = "soft", icon: o, color: j, backgroundColor: z, borderColor: A, pulsing: N = !1, disabled: g = !1, nativeButton: x = !0, onClick: u, className: w, style: c, render: i, "aria-label": B, ...C }) => {
|
|
15
|
-
const a = L(), e = n?.trim().charAt(0).toUpperCase(), I = e ? j ?? m({
|
|
16
|
-
string: l ?? "",
|
|
17
|
-
variant: 12,
|
|
18
|
-
theme: a
|
|
19
|
-
}) : a.font.color.tertiary, P = e ? z ?? m({
|
|
20
|
-
string: l ?? "",
|
|
21
|
-
variant: f === "outline" ? 5 : 4,
|
|
22
|
-
theme: a
|
|
23
|
-
}) : a.background.transparent.light, p = A ?? (e ? m({
|
|
24
|
-
string: l ?? "",
|
|
25
|
-
variant: 6,
|
|
26
|
-
theme: a
|
|
27
|
-
}) : void 0), d = b(u), _ = b(o) && typeof o != "boolean" && o !== "";
|
|
28
|
-
return /* @__PURE__ */ r(v.Root, {
|
|
29
|
-
...C,
|
|
30
|
-
onClick: u,
|
|
31
|
-
"aria-label": B ?? (d ? n?.trim() || "Avatar" : void 0),
|
|
32
|
-
"data-size": k,
|
|
33
|
-
"data-shape": y,
|
|
34
|
-
"data-pulsing": N || void 0,
|
|
35
|
-
"data-disabled": g || void 0,
|
|
36
|
-
"data-clickable": d || void 0,
|
|
37
|
-
className: $(s.root, w),
|
|
38
|
-
style: (t) => ({
|
|
39
|
-
"--tw-avatar-color": I,
|
|
40
|
-
"--tw-avatar-background": _ ? "inherit" : t.imageLoadingStatus === "loaded" ? "none" : P,
|
|
41
|
-
"--tw-avatar-border": f === "outline" && t.imageLoadingStatus !== "loaded" && p ? `1px solid ${p}` : "none",
|
|
42
|
-
...typeof c == "function" ? c(t) : c
|
|
43
|
-
}),
|
|
44
|
-
render: d ? (t, T) => /* @__PURE__ */ r(R, {
|
|
45
|
-
...t,
|
|
46
|
-
disabled: g,
|
|
47
|
-
nativeButton: x,
|
|
48
|
-
render: typeof i == "function" ? (F) => i(F, T) : i
|
|
49
|
-
}) : i,
|
|
50
|
-
children: _ ? /* @__PURE__ */ r("span", {
|
|
51
|
-
className: s.icon,
|
|
52
|
-
"aria-hidden": !0,
|
|
53
|
-
children: o
|
|
54
|
-
}) : /* @__PURE__ */ D(q, { children: [/* @__PURE__ */ r(v.Image, {
|
|
55
|
-
src: h ?? void 0,
|
|
56
|
-
alt: "",
|
|
57
|
-
className: s.image
|
|
58
|
-
}), /* @__PURE__ */ r(v.Fallback, {
|
|
59
|
-
className: s.fallback,
|
|
60
|
-
"aria-hidden": !0,
|
|
61
|
-
children: e || "-"
|
|
62
|
-
})] })
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
X as t
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const D=require("./chunk-u_mIcLyS.cjs"),R=require("./isDefined-DS2Q42p5.cjs"),S=require("./OverflowingTextWithTooltip-DpizuDxR.cjs"),e=require("./ListItem.module-CFDku7rI.cjs");let r=require("clsx"),t=require("react/jsx-runtime"),N=require("@sniptt/guards"),m=require("react");m=D.__toESM(m,1);let K=require("@base-ui/react/use-render"),_=require("@tabler/icons-react");var M="_commandTextContainer_2o210_1",O="_commandText_2o210_1",H="_commandKey_2o210_15",u={commandTextContainer:M,commandText:O,commandKey:H},v=({hotKeys:a,joinLabel:s="then"})=>(0,t.jsx)("div",{className:u.commandText,children:a&&(0,t.jsx)("div",{className:u.commandTextContainer,children:a.map((i,l)=>(0,t.jsxs)(m.default.Fragment,{children:[(0,t.jsx)("div",{className:u.commandKey,children:i}),l<a.length-1&&s]},l))})}),w=({checked:a,disabled:s})=>(0,t.jsx)("span",{"aria-hidden":!0,className:(0,r.clsx)(e.Checkbox_module_default.root,e.Checkbox_module_default.solid,e.Checkbox_module_default.sm,e.Checkbox_module_default.square,e.Checkbox_module_default.accent),"data-checked":a||void 0,"data-disabled":s||void 0,children:(0,t.jsx)("span",{className:e.Checkbox_module_default.box,children:a&&(0,t.jsx)("span",{className:e.Checkbox_module_default.indicator,children:(0,t.jsx)(_.IconCheck,{"aria-hidden":!0})})})}),E=({color:a="neutral",selected:s=!1,focused:i=!1,disabled:l=!1,indicator:n="none",startIcon:x,endIcon:h,description:d,descriptionPlacement:f="inline",actions:I,actionsVisibility:L="hover",hotkeys:j,hasSubmenu:k=!1,className:q,children:o,render:C,ref:g,onClick:p,...y})=>{const b=e.isRenderableSlot(d),T=c=>{if(l){c.preventDefault();return}R.isDefined(p)&&(c.stopPropagation(),p(c))};return(0,K.useRender)({render:C,ref:g,state:{color:a,indicator:n,selected:s,highlighted:i,disabled:l},props:{...y,"data-actions-visibility":L,className:(0,r.clsx)(e.ListItem_module_default.root,q),"aria-disabled":l||void 0,onClick:T,children:(0,t.jsxs)(t.Fragment,{children:[n==="checkbox"&&(0,t.jsx)(w,{checked:s,disabled:l}),e.isRenderableSlot(x)&&(0,t.jsx)("span",{className:e.ListItem_module_default.startIcon,children:x}),(0,t.jsxs)("span",{className:e.ListItem_module_default.label,children:[(0,t.jsx)("span",{className:e.ListItem_module_default.text,children:(0,N.isString)(o)?(0,t.jsx)(S.OverflowingTextWithTooltip,{text:o}):o}),b&&f==="inline"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,e.ListItem_module_default.inlineDescription),children:d})]}),b&&f==="end"&&(0,t.jsx)("span",{className:(0,r.clsx)(e.ListItem_module_default.description,e.ListItem_module_default.endDescription),children:d}),e.isRenderableSlot(I)&&(0,t.jsx)("span",{className:e.ListItem_module_default.actions,children:I}),(0,N.isNonEmptyArray)(j)&&(0,t.jsx)("span",{className:e.ListItem_module_default.hotkeys,children:(0,t.jsx)(v,{hotKeys:j})}),e.isRenderableSlot(h)&&(0,t.jsx)("span",{className:e.ListItem_module_default.endIcon,children:h}),n==="check"&&s&&(0,t.jsx)(_.IconCheck,{className:e.ListItem_module_default.checkIndicator,"aria-hidden":!0}),k&&(0,t.jsx)(_.IconChevronRight,{className:e.ListItem_module_default.submenuIcon,"aria-hidden":!0})]})}})};Object.defineProperty(exports,"ListItem",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"MenuItemHotKeys",{enumerable:!0,get:function(){return v}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _=require("./isDefined-DS2Q42p5.cjs");let r=require("@sniptt/guards");var t=e=>_.isDefined(e)&&!(0,r.isBoolean)(e)&&e!=="",n="_root_1fskg_1",a="_solid_1fskg_22",o="_outline_1fskg_26",s="_soft_1fskg_30",i="_sm_1fskg_35",u="_md_1fskg_40",c="_square_1fskg_46",f="_round_1fskg_51",v="_accent_1fskg_57",d="_success_1fskg_63",l="_warning_1fskg_69",k="_hoverable_1fskg_75",g="_box_1fskg_113",b="_indicator_1fskg_134",m="_check_1fskg_150",h="_minus_1fskg_151",p={root:n,solid:a,outline:o,soft:s,sm:i,md:u,square:c,round:f,accent:v,success:d,warning:l,hoverable:k,box:g,indicator:b,check:m,minus:h},I="_root_1f2ut_2",x="_submenuIcon_1f2ut_50",D="_startIcon_1f2ut_54",q="_endIcon_1f2ut_55",y="_label_1f2ut_71",j="_text_1f2ut_81",O="_description_1f2ut_89",P="_inlineDescription_1f2ut_97",w="_endDescription_1f2ut_102",C="_hotkeys_1f2ut_107",L="_actions_1f2ut_113",R="_checkIndicator_1f2ut_130",S={root:I,submenuIcon:x,startIcon:D,endIcon:q,label:y,text:j,description:O,inlineDescription:P,endDescription:w,hotkeys:C,actions:L,checkIndicator:R};Object.defineProperty(exports,"Checkbox_module_default",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"ListItem_module_default",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"isRenderableSlot",{enumerable:!0,get:function(){return t}});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { t as r } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { isBoolean as a } from "@sniptt/guards";
|
|
3
|
-
var j = (_) => r(_) && !a(_) && _ !== "", t = "_root_1fskg_1", s = "_solid_1fskg_22", o = "_outline_1fskg_26", e = "_soft_1fskg_30", n = "_sm_1fskg_35", i = "_md_1fskg_40", c = "_square_1fskg_46", f = "_round_1fskg_51", v = "_accent_1fskg_57", u = "_success_1fskg_63", k = "_warning_1fskg_69", d = "_hoverable_1fskg_75", g = "_box_1fskg_113", l = "_indicator_1fskg_134", m = "_check_1fskg_150", b = "_minus_1fskg_151", z = {
|
|
4
|
-
root: t,
|
|
5
|
-
solid: s,
|
|
6
|
-
outline: o,
|
|
7
|
-
soft: e,
|
|
8
|
-
sm: n,
|
|
9
|
-
md: i,
|
|
10
|
-
square: c,
|
|
11
|
-
round: f,
|
|
12
|
-
accent: v,
|
|
13
|
-
success: u,
|
|
14
|
-
warning: k,
|
|
15
|
-
hoverable: d,
|
|
16
|
-
box: g,
|
|
17
|
-
indicator: l,
|
|
18
|
-
check: m,
|
|
19
|
-
minus: b
|
|
20
|
-
}, h = "_root_1f2ut_2", p = "_submenuIcon_1f2ut_50", I = "_startIcon_1f2ut_54", x = "_endIcon_1f2ut_55", D = "_label_1f2ut_71", q = "_text_1f2ut_81", w = "_description_1f2ut_89", y = "_inlineDescription_1f2ut_97", B = "_endDescription_1f2ut_102", C = "_hotkeys_1f2ut_107", L = "_actions_1f2ut_113", R = "_checkIndicator_1f2ut_130", A = {
|
|
21
|
-
root: h,
|
|
22
|
-
submenuIcon: p,
|
|
23
|
-
startIcon: I,
|
|
24
|
-
endIcon: x,
|
|
25
|
-
label: D,
|
|
26
|
-
text: q,
|
|
27
|
-
description: w,
|
|
28
|
-
inlineDescription: y,
|
|
29
|
-
endDescription: B,
|
|
30
|
-
hotkeys: C,
|
|
31
|
-
actions: L,
|
|
32
|
-
checkIndicator: R
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
z as n,
|
|
36
|
-
j as r,
|
|
37
|
-
A as t
|
|
38
|
-
};
|
package/dist/Loader-CHKTYJo7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a=require("./theme-constants-ZNgkgDE-.cjs");let r=require("react/jsx-runtime");var o="_container_1i6sz_1",i="_dot_1i6sz_15",n="_loaderDot_1i6sz_1",t={container:o,dot:i,loaderDot:n},s=({color:e})=>(0,r.jsx)("div",{className:t.container,style:e?{"--loader-color":a.themeCssVariables.tag.text[e]}:void 0,children:(0,r.jsx)("div",{className:t.dot})});Object.defineProperty(exports,"Loader",{enumerable:!0,get:function(){return s}});
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { t as c } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as j } from "./theme-constants-CrrgAYWN.js";
|
|
3
|
-
import { n as y, t as F } from "./linkifyText-BINRNP9w.js";
|
|
4
|
-
import { t as U } from "./mergeClassNames-BHKm1BNi.js";
|
|
5
|
-
import { clsx as R } from "clsx";
|
|
6
|
-
import { Fragment as M, jsx as r, jsxs as O } from "react/jsx-runtime";
|
|
7
|
-
import { isNonEmptyString as P, isNumber as X, isString as $ } from "@sniptt/guards";
|
|
8
|
-
import { memo as z, useRef as B, useState as H } from "react";
|
|
9
|
-
import { Tooltip as p } from "@base-ui/react/tooltip";
|
|
10
|
-
import { useRender as q } from "@base-ui/react/use-render";
|
|
11
|
-
var G = "_positioner_12t3h_1", J = "_popup_12t3h_5", K = "_content_12t3h_29", Q = "_title_12t3h_35", V = "_icon_12t3h_47", Y = "_description_12t3h_57", Z = "_arrow_12t3h_63", v = {
|
|
12
|
-
positioner: G,
|
|
13
|
-
popup: J,
|
|
14
|
-
content: K,
|
|
15
|
-
title: Q,
|
|
16
|
-
icon: V,
|
|
17
|
-
description: Y,
|
|
18
|
-
arrow: Z
|
|
19
|
-
}, A = ({ children: t, description: o, startIcon: e, className: l, render: a, ref: s, ...d }) => q({
|
|
20
|
-
defaultTagName: "div",
|
|
21
|
-
render: a,
|
|
22
|
-
ref: s,
|
|
23
|
-
props: {
|
|
24
|
-
...d,
|
|
25
|
-
className: R(v.content, l),
|
|
26
|
-
children: /* @__PURE__ */ O(M, { children: [c(t) && t !== "" && /* @__PURE__ */ O("div", {
|
|
27
|
-
className: v.title,
|
|
28
|
-
children: [c(e) && /* @__PURE__ */ r("span", {
|
|
29
|
-
className: v.icon,
|
|
30
|
-
"aria-hidden": !0,
|
|
31
|
-
children: e
|
|
32
|
-
}), /* @__PURE__ */ r("span", { children: t })]
|
|
33
|
-
}), c(o) && /* @__PURE__ */ r("div", {
|
|
34
|
-
className: v.description,
|
|
35
|
-
children: o
|
|
36
|
-
})] })
|
|
37
|
-
}
|
|
38
|
-
}), ee = 10, te = "300px", L = ({ side: t = "top", align: o = "center", sideOffset: e = ee, alignOffset: l, anchor: a, positionMethod: s, collisionBoundary: d, collisionPadding: m, collisionAvoidance: _, sticky: u, disableAnchorTracking: f, arrow: T = !1, maxWidth: x = te, container: w, keepMounted: g, className: h, children: i, ...D }) => {
|
|
39
|
-
const E = j(), C = $(i) || X(i);
|
|
40
|
-
return /* @__PURE__ */ r(p.Portal, {
|
|
41
|
-
container: w ?? E ?? void 0,
|
|
42
|
-
keepMounted: g,
|
|
43
|
-
children: /* @__PURE__ */ r(p.Positioner, {
|
|
44
|
-
side: t,
|
|
45
|
-
align: o,
|
|
46
|
-
sideOffset: e,
|
|
47
|
-
alignOffset: l,
|
|
48
|
-
anchor: a,
|
|
49
|
-
positionMethod: s,
|
|
50
|
-
collisionBoundary: d,
|
|
51
|
-
collisionPadding: m,
|
|
52
|
-
collisionAvoidance: _,
|
|
53
|
-
sticky: u,
|
|
54
|
-
disableAnchorTracking: f,
|
|
55
|
-
className: v.positioner,
|
|
56
|
-
style: { maxWidth: x },
|
|
57
|
-
children: /* @__PURE__ */ O(p.Popup, {
|
|
58
|
-
role: "tooltip",
|
|
59
|
-
...D,
|
|
60
|
-
className: U(v.popup, h),
|
|
61
|
-
children: [C ? /* @__PURE__ */ r(A, { children: i }) : i, T && /* @__PURE__ */ r(p.Arrow, { className: v.arrow })]
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
});
|
|
65
|
-
}, oe = ({ content: t, children: o, open: e, defaultOpen: l, onOpenChange: a, onOpenChangeComplete: s, disabled: d = !1, disableHoverablePopup: m, trackCursorAxis: _, actionsRef: u, triggerId: f, defaultTriggerId: T, delay: x, closeDelay: w, closeOnClick: g, ...h }) => {
|
|
66
|
-
const i = d || !c(t) || t === "" || t === !1;
|
|
67
|
-
return /* @__PURE__ */ O(p.Root, {
|
|
68
|
-
open: c(e) ? e && !i : void 0,
|
|
69
|
-
defaultOpen: l && !i,
|
|
70
|
-
onOpenChange: a,
|
|
71
|
-
onOpenChangeComplete: s,
|
|
72
|
-
disabled: i,
|
|
73
|
-
disableHoverablePopup: m,
|
|
74
|
-
trackCursorAxis: _,
|
|
75
|
-
actionsRef: u,
|
|
76
|
-
triggerId: f,
|
|
77
|
-
defaultTriggerId: T,
|
|
78
|
-
children: [/* @__PURE__ */ r(p.Trigger, {
|
|
79
|
-
render: o,
|
|
80
|
-
delay: x,
|
|
81
|
-
closeDelay: w,
|
|
82
|
-
closeOnClick: g
|
|
83
|
-
}), /* @__PURE__ */ r(L, {
|
|
84
|
-
...h,
|
|
85
|
-
children: t
|
|
86
|
-
})]
|
|
87
|
-
});
|
|
88
|
-
}, b = Object.assign(oe, {
|
|
89
|
-
Root: p.Root,
|
|
90
|
-
Trigger: p.Trigger,
|
|
91
|
-
Popup: L,
|
|
92
|
-
Content: A,
|
|
93
|
-
Provider: p.Provider,
|
|
94
|
-
createHandle: p.createHandle
|
|
95
|
-
}), re = "_truncate_1x6ii_1", ie = "_lineClamp_1x6ii_7", I = {
|
|
96
|
-
truncate: re,
|
|
97
|
-
lineClamp: ie
|
|
98
|
-
}, ne = ({ render: t, truncate: o, lineClamp: e, className: l, style: a, ref: s, ...d }) => {
|
|
99
|
-
const m = c(e) && Number.isInteger(e) && e > 0;
|
|
100
|
-
return q({
|
|
101
|
-
render: t,
|
|
102
|
-
ref: s,
|
|
103
|
-
props: {
|
|
104
|
-
...d,
|
|
105
|
-
className: R(o && I.truncate, m && I.lineClamp, l),
|
|
106
|
-
style: m ? {
|
|
107
|
-
...a,
|
|
108
|
-
"--text-line-clamp": e
|
|
109
|
-
} : a
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}, le = "_link_mrld0_1", ae = { link: le }, se = ({ text: t }) => P(t) ? /* @__PURE__ */ r(M, { children: F(t).map((o, e) => o.type === "link" ? /* @__PURE__ */ r("a", {
|
|
113
|
-
className: ae.link,
|
|
114
|
-
href: y(o.content),
|
|
115
|
-
target: "_blank",
|
|
116
|
-
rel: "noopener noreferrer",
|
|
117
|
-
onClick: (l) => l.stopPropagation(),
|
|
118
|
-
children: o.content
|
|
119
|
-
}, e) : o.content) }) : null, ce = "_overflowingMultilineText_1qcnw_1", pe = "_overflowingText_1qcnw_20", de = "_large_1qcnw_37", me = "_multilineTooltip_1qcnw_41", k = {
|
|
120
|
-
overflowingMultilineText: ce,
|
|
121
|
-
overflowingText: pe,
|
|
122
|
-
large: de,
|
|
123
|
-
multilineTooltip: me
|
|
124
|
-
}, Ne = z(function({ size: o = "small", text: e, isTooltipMultiline: l, displayedMaxRows: a, tooltipContent: s, tooltipDelay: d = 500, tooltipPlace: m = "bottom", alwaysShowTooltip: _ = !1, isFocusable: u = !1 }) {
|
|
125
|
-
const f = B(null), [T, x] = H(!1), [w, g] = H(!1), h = () => {
|
|
126
|
-
const n = f.current, N = c(n) && (n.scrollHeight > n.clientHeight || n.scrollWidth > n.clientWidth);
|
|
127
|
-
return x(N), N;
|
|
128
|
-
}, i = (n) => {
|
|
129
|
-
if (!n) {
|
|
130
|
-
g(!1);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
g(h() || _);
|
|
134
|
-
}, D = () => {
|
|
135
|
-
f.current?.focus(), i(!0);
|
|
136
|
-
}, E = (n) => {
|
|
137
|
-
n.stopPropagation(), n.preventDefault();
|
|
138
|
-
}, C = P(s) ? s : P(e) ? e : null, S = c(a);
|
|
139
|
-
return /* @__PURE__ */ O(b.Root, {
|
|
140
|
-
open: w && c(C),
|
|
141
|
-
onOpenChange: (...n) => {
|
|
142
|
-
const [N, W] = n;
|
|
143
|
-
if (!N && W.reason === "trigger-hover" && u && document.activeElement === f.current) {
|
|
144
|
-
W.cancel();
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
i(N);
|
|
148
|
-
},
|
|
149
|
-
disabled: !c(C) || !T && !_,
|
|
150
|
-
children: [/* @__PURE__ */ r(b.Trigger, {
|
|
151
|
-
delay: d,
|
|
152
|
-
closeOnClick: !1,
|
|
153
|
-
render: /* @__PURE__ */ r(ne, {
|
|
154
|
-
...S ? { lineClamp: a || 1 } : { truncate: !0 },
|
|
155
|
-
"data-testid": "tooltip",
|
|
156
|
-
"data-content-overflowing": T ? "" : void 0,
|
|
157
|
-
className: R(S ? k.overflowingMultilineText : k.overflowingText, o === "large" && k.large),
|
|
158
|
-
ref: f,
|
|
159
|
-
tabIndex: u ? 0 : void 0,
|
|
160
|
-
onPointerEnter: h,
|
|
161
|
-
onFocus: u ? () => i(!0) : void 0,
|
|
162
|
-
onClick: u ? D : void 0,
|
|
163
|
-
children: P(e) ? /* @__PURE__ */ r(se, { text: e }) : e
|
|
164
|
-
})
|
|
165
|
-
}), /* @__PURE__ */ r(b.Popup, {
|
|
166
|
-
className: l ? k.multilineTooltip : void 0,
|
|
167
|
-
sideOffset: 5,
|
|
168
|
-
side: m,
|
|
169
|
-
positionMethod: "absolute",
|
|
170
|
-
onClick: E,
|
|
171
|
-
children: C
|
|
172
|
-
})]
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
export {
|
|
176
|
-
ne as n,
|
|
177
|
-
b as r,
|
|
178
|
-
Ne as t
|
|
179
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const c=require("./isDefined-DS2Q42p5.cjs"),A=require("./theme-constants-ZNgkgDE-.cjs"),S=require("./linkifyText-BHQ4_CzQ.cjs"),F=require("./mergeClassNames-BbJtXN2t.cjs");let P=require("clsx"),e=require("react/jsx-runtime"),h=require("@sniptt/guards"),q=require("react"),u=require("@base-ui/react/tooltip"),W=require("@base-ui/react/use-render");var L="_positioner_12t3h_1",U="_popup_12t3h_5",X="_content_12t3h_29",z="_title_12t3h_35",B="_icon_12t3h_47",G="_description_12t3h_57",J="_arrow_12t3h_63",v={positioner:L,popup:U,content:X,title:z,icon:B,description:G,arrow:J},H=({children:i,description:r,startIcon:t,className:l,render:s,ref:a,...p})=>(0,W.useRender)({defaultTagName:"div",render:s,ref:a,props:{...p,className:(0,P.clsx)(v.content,l),children:(0,e.jsxs)(e.Fragment,{children:[c.isDefined(i)&&i!==""&&(0,e.jsxs)("div",{className:v.title,children:[c.isDefined(t)&&(0,e.jsx)("span",{className:v.icon,"aria-hidden":!0,children:t}),(0,e.jsx)("span",{children:i})]}),c.isDefined(r)&&(0,e.jsx)("div",{className:v.description,children:r})]})}}),K=10,Q="300px",I=({side:i="top",align:r="center",sideOffset:t=K,alignOffset:l,anchor:s,positionMethod:a,collisionBoundary:p,collisionPadding:d,collisionAvoidance:T,sticky:_,disableAnchorTracking:f,arrow:g=!1,maxWidth:j=Q,container:w,keepMounted:m,className:x,children:n,...b})=>{const k=A.useThemeContainer(),N=(0,h.isString)(n)||(0,h.isNumber)(n);return(0,e.jsx)(u.Tooltip.Portal,{container:w??k??void 0,keepMounted:m,children:(0,e.jsx)(u.Tooltip.Positioner,{side:i,align:r,sideOffset:t,alignOffset:l,anchor:s,positionMethod:a,collisionBoundary:p,collisionPadding:d,collisionAvoidance:T,sticky:_,disableAnchorTracking:f,className:v.positioner,style:{maxWidth:j},children:(0,e.jsxs)(u.Tooltip.Popup,{role:"tooltip",...b,className:F.mergeClassNames(v.popup,x),children:[N?(0,e.jsx)(H,{children:n}):n,g&&(0,e.jsx)(u.Tooltip.Arrow,{className:v.arrow})]})})})},V=({content:i,children:r,open:t,defaultOpen:l,onOpenChange:s,onOpenChangeComplete:a,disabled:p=!1,disableHoverablePopup:d,trackCursorAxis:T,actionsRef:_,triggerId:f,defaultTriggerId:g,delay:j,closeDelay:w,closeOnClick:m,...x})=>{const n=p||!c.isDefined(i)||i===""||i===!1;return(0,e.jsxs)(u.Tooltip.Root,{open:c.isDefined(t)?t&&!n:void 0,defaultOpen:l&&!n,onOpenChange:s,onOpenChangeComplete:a,disabled:n,disableHoverablePopup:d,trackCursorAxis:T,actionsRef:_,triggerId:f,defaultTriggerId:g,children:[(0,e.jsx)(u.Tooltip.Trigger,{render:r,delay:j,closeDelay:w,closeOnClick:m}),(0,e.jsx)(I,{...x,children:i})]})},C=Object.assign(V,{Root:u.Tooltip.Root,Trigger:u.Tooltip.Trigger,Popup:I,Content:H,Provider:u.Tooltip.Provider,createHandle:u.Tooltip.createHandle}),Y="_truncate_1x6ii_1",Z="_lineClamp_1x6ii_7",R={truncate:Y,lineClamp:Z},M=({render:i,truncate:r,lineClamp:t,className:l,style:s,ref:a,...p})=>{const d=c.isDefined(t)&&Number.isInteger(t)&&t>0;return(0,W.useRender)({render:i,ref:a,props:{...p,className:(0,P.clsx)(r&&R.truncate,d&&R.lineClamp,l),style:d?{...s,"--text-line-clamp":t}:s}})},$="_link_mrld0_1",ee={link:$},te=({text:i})=>(0,h.isNonEmptyString)(i)?(0,e.jsx)(e.Fragment,{children:S.linkifyText(i).map((r,t)=>r.type==="link"?(0,e.jsx)("a",{className:ee.link,href:S.getSafeUrl(r.content),target:"_blank",rel:"noopener noreferrer",onClick:l=>l.stopPropagation(),children:r.content},t):r.content)}):null,ie="_overflowingMultilineText_1qcnw_1",re="_overflowingText_1qcnw_20",ne="_large_1qcnw_37",oe="_multilineTooltip_1qcnw_41",D={overflowingMultilineText:ie,overflowingText:re,large:ne,multilineTooltip:oe},le=(0,q.memo)(function({size:r="small",text:t,isTooltipMultiline:l,displayedMaxRows:s,tooltipContent:a,tooltipDelay:p=500,tooltipPlace:d="bottom",alwaysShowTooltip:T=!1,isFocusable:_=!1}){const f=(0,q.useRef)(null),[g,j]=(0,q.useState)(!1),[w,m]=(0,q.useState)(!1),x=()=>{const o=f.current,O=c.isDefined(o)&&(o.scrollHeight>o.clientHeight||o.scrollWidth>o.clientWidth);return j(O),O},n=o=>{if(!o){m(!1);return}m(x()||T)},b=()=>{f.current?.focus(),n(!0)},k=o=>{o.stopPropagation(),o.preventDefault()},N=(0,h.isNonEmptyString)(a)?a:(0,h.isNonEmptyString)(t)?t:null,E=c.isDefined(s);return(0,e.jsxs)(C.Root,{open:w&&c.isDefined(N),onOpenChange:(...o)=>{const[O,y]=o;if(!O&&y.reason==="trigger-hover"&&_&&document.activeElement===f.current){y.cancel();return}n(O)},disabled:!c.isDefined(N)||!g&&!T,children:[(0,e.jsx)(C.Trigger,{delay:p,closeOnClick:!1,render:(0,e.jsx)(M,{...E?{lineClamp:s||1}:{truncate:!0},"data-testid":"tooltip","data-content-overflowing":g?"":void 0,className:(0,P.clsx)(E?D.overflowingMultilineText:D.overflowingText,r==="large"&&D.large),ref:f,tabIndex:_?0:void 0,onPointerEnter:x,onFocus:_?()=>n(!0):void 0,onClick:_?b:void 0,children:(0,h.isNonEmptyString)(t)?(0,e.jsx)(te,{text:t}):t})}),(0,e.jsx)(C.Popup,{className:l?D.multilineTooltip:void 0,sideOffset:5,side:d,positionMethod:"absolute",onClick:k,children:N})]})});Object.defineProperty(exports,"OverflowingTextWithTooltip",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return C}});
|
package/dist/Pill-BJ3K8Mdc.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let t=require("clsx"),l=require("react/jsx-runtime");var a="_pill_2y5ao_1",s={pill:a},u=({className:r,label:i,Icon:e})=>(0,l.jsxs)("span",{className:(0,t.clsx)(s.pill,r),children:[e&&(0,l.jsx)(e,{size:12}),i]});Object.defineProperty(exports,"Pill",{enumerable:!0,get:function(){return u}});
|
package/dist/Pill-DaFEFIOT.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { clsx as i } from "clsx";
|
|
2
|
-
import { jsx as s, jsxs as e } from "react/jsx-runtime";
|
|
3
|
-
var p = "_pill_2y5ao_1", m = { pill: p }, _ = ({ className: r, label: a, Icon: l }) => /* @__PURE__ */ e("span", {
|
|
4
|
-
className: i(m.pill, r),
|
|
5
|
-
children: [l && /* @__PURE__ */ s(l, { size: 12 }), a]
|
|
6
|
-
});
|
|
7
|
-
export {
|
|
8
|
-
_ as t
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let _=require("clsx"),s=require("react/jsx-runtime"),t=require("@base-ui/react/progress");var v="_banner_i03ag_1",b="_primaryBlue_i03ag_17",m="_primaryDanger_i03ag_23",y="_secondaryBlue_i03ag_29",B="_secondaryDanger_i03ag_35",a={banner:v,primaryBlue:b,primaryDanger:m,secondaryBlue:y,secondaryDanger:B},w={primary:{blue:a.primaryBlue,danger:a.primaryDanger},secondary:{blue:a.secondaryBlue,danger:a.secondaryDanger}},k=({color:e="blue",variant:d="primary",className:n,children:i})=>(0,s.jsx)("div",{className:(0,_.clsx)(a.banner,w[d][e],n),children:i}),x="_bar_1wpka_1",f="_track_1wpka_14",N="_indicator_1wpka_20",P="_countdown_1wpka_34",j="_progressBarCountdown_1wpka_1",o={bar:x,track:f,indicator:N,countdown:P,progressBarCountdown:j},A=({value:e,className:d,barColor:n,backgroundColor:i="none",withBorderRadius:c=!1,ariaLabel:l,countdownDurationInMs:u,isCountdownPaused:g=!1,onCountdownComplete:p})=>{const r=u!==void 0;return(0,s.jsx)(t.Progress.Root,{className:(0,_.clsx)(o.bar,d),"data-with-border-radius":c||void 0,"aria-label":l,value:e,style:{"--progress-bar-background-color":i,...n?{"--progress-bar-color":n}:{},...r?{"--progress-bar-countdown-duration":`${u}ms`}:{}},children:(0,s.jsx)(t.Progress.Track,{className:o.track,children:(0,s.jsx)(t.Progress.Indicator,{className:(0,_.clsx)(o.indicator,r&&o.countdown),"data-with-border-radius":c||void 0,"data-nonzero":e>0&&!r||void 0,"data-paused":r&&g||void 0,onAnimationEnd:r?p:void 0})})})};Object.defineProperty(exports,"Banner",{enumerable:!0,get:function(){return k}});Object.defineProperty(exports,"ProgressBar",{enumerable:!0,get:function(){return A}});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { clsx as t } from "clsx";
|
|
2
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
-
import { Progress as _ } from "@base-ui/react/progress";
|
|
4
|
-
var m = "_banner_i03ag_1", v = "_primaryBlue_i03ag_17", y = "_primaryDanger_i03ag_23", b = "_secondaryBlue_i03ag_29", w = "_secondaryDanger_i03ag_35", a = {
|
|
5
|
-
banner: m,
|
|
6
|
-
primaryBlue: v,
|
|
7
|
-
primaryDanger: y,
|
|
8
|
-
secondaryBlue: b,
|
|
9
|
-
secondaryDanger: w
|
|
10
|
-
}, B = {
|
|
11
|
-
primary: {
|
|
12
|
-
blue: a.primaryBlue,
|
|
13
|
-
danger: a.primaryDanger
|
|
14
|
-
},
|
|
15
|
-
secondary: {
|
|
16
|
-
blue: a.secondaryBlue,
|
|
17
|
-
danger: a.secondaryDanger
|
|
18
|
-
}
|
|
19
|
-
}, E = ({ color: o = "blue", variant: s = "primary", className: e, children: i }) => /* @__PURE__ */ d("div", {
|
|
20
|
-
className: t(a.banner, B[s][o], e),
|
|
21
|
-
children: i
|
|
22
|
-
}), k = "_bar_1wpka_1", N = "_track_1wpka_14", f = "_indicator_1wpka_20", A = "_countdown_1wpka_34", D = "_progressBarCountdown_1wpka_1", n = {
|
|
23
|
-
bar: k,
|
|
24
|
-
track: N,
|
|
25
|
-
indicator: f,
|
|
26
|
-
countdown: A,
|
|
27
|
-
progressBarCountdown: D
|
|
28
|
-
}, P = ({ value: o, className: s, barColor: e, backgroundColor: i = "none", withBorderRadius: c = !1, ariaLabel: p, countdownDurationInMs: l, isCountdownPaused: u = !1, onCountdownComplete: g }) => {
|
|
29
|
-
const r = l !== void 0;
|
|
30
|
-
return /* @__PURE__ */ d(_.Root, {
|
|
31
|
-
className: t(n.bar, s),
|
|
32
|
-
"data-with-border-radius": c || void 0,
|
|
33
|
-
"aria-label": p,
|
|
34
|
-
value: o,
|
|
35
|
-
style: {
|
|
36
|
-
"--progress-bar-background-color": i,
|
|
37
|
-
...e ? { "--progress-bar-color": e } : {},
|
|
38
|
-
...r ? { "--progress-bar-countdown-duration": `${l}ms` } : {}
|
|
39
|
-
},
|
|
40
|
-
children: /* @__PURE__ */ d(_.Track, {
|
|
41
|
-
className: n.track,
|
|
42
|
-
children: /* @__PURE__ */ d(_.Indicator, {
|
|
43
|
-
className: t(n.indicator, r && n.countdown),
|
|
44
|
-
"data-with-border-radius": c || void 0,
|
|
45
|
-
"data-nonzero": o > 0 && !r || void 0,
|
|
46
|
-
"data-paused": r && u || void 0,
|
|
47
|
-
onAnimationEnd: r ? g : void 0
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
E as n,
|
|
54
|
-
P as t
|
|
55
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as S } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import { useState as o } from "react";
|
|
4
|
-
var c = 50, R = 500, I = ({ initialSize: r, axis: t = "y" }) => {
|
|
5
|
-
const [a, s] = o(r), [i, n] = o(null);
|
|
6
|
-
return {
|
|
7
|
-
size: a,
|
|
8
|
-
handleResizeStart: (e) => {
|
|
9
|
-
e.target.setPointerCapture(e.pointerId), n({
|
|
10
|
-
startPosition: t === "y" ? e.clientY : e.clientX,
|
|
11
|
-
startSize: a
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
handleResizeMove: (e) => {
|
|
15
|
-
if (!S(i)) return;
|
|
16
|
-
const z = (t === "y" ? e.clientY : e.clientX) - i.startPosition;
|
|
17
|
-
s(Math.min(R, Math.max(c, i.startSize + z)));
|
|
18
|
-
},
|
|
19
|
-
handleResizeEnd: () => {
|
|
20
|
-
n(null);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
}, _ = "_area_10ggy_1", m = "_bar_10ggy_10", d = {
|
|
24
|
-
area: _,
|
|
25
|
-
bar: m
|
|
26
|
-
}, M = ({ onPointerDown: r, onPointerMove: t, onPointerUp: a, style: s }) => /* @__PURE__ */ l("div", {
|
|
27
|
-
className: d.area,
|
|
28
|
-
onPointerDown: r,
|
|
29
|
-
onPointerMove: t,
|
|
30
|
-
onPointerUp: a,
|
|
31
|
-
style: s,
|
|
32
|
-
children: /* @__PURE__ */ l("div", { className: d.bar })
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
I as n,
|
|
36
|
-
M as t
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=require("./isDefined-DS2Q42p5.cjs");let l=require("react/jsx-runtime"),d=require("react");var z=50,S=500,_=({initialSize:a,axis:t="y"})=>{const[r,i]=(0,d.useState)(a),[n,s]=(0,d.useState)(null);return{size:r,handleResizeStart:e=>{e.target.setPointerCapture(e.pointerId),s({startPosition:t==="y"?e.clientY:e.clientX,startSize:r})},handleResizeMove:e=>{if(!o.isDefined(n))return;const c=(t==="y"?e.clientY:e.clientX)-n.startPosition;i(Math.min(S,Math.max(z,n.startSize+c)))},handleResizeEnd:()=>{s(null)}}},R="_area_10ggy_1",h="_bar_10ggy_10",u={area:R,bar:h},f=({onPointerDown:a,onPointerMove:t,onPointerUp:r,style:i})=>(0,l.jsx)("div",{className:u.area,onPointerDown:a,onPointerMove:t,onPointerUp:r,style:i,children:(0,l.jsx)("div",{className:u.bar})});Object.defineProperty(exports,"ResizeHandle",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"useResizeHandle",{enumerable:!0,get:function(){return _}});
|
package/dist/Switch-BvVP6vjR.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { t as i } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { i as H, r as L } from "./utilities-FXsKnNbt.js";
|
|
3
|
-
import { t as M } from "./Loader-DbOLVUcK.js";
|
|
4
|
-
import { t as q } from "./Pill-DaFEFIOT.js";
|
|
5
|
-
import { t as h } from "./mergeClassNames-BHKm1BNi.js";
|
|
6
|
-
import { clsx as p } from "clsx";
|
|
7
|
-
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
8
|
-
import { createContext as D, useContext as K } from "react";
|
|
9
|
-
import { Button as O } from "@base-ui/react/button";
|
|
10
|
-
import { Radio as j } from "@base-ui/react/radio";
|
|
11
|
-
import { Switch as B } from "@base-ui/react/switch";
|
|
12
|
-
var T = "_hotkeys_16heq_1", V = { hotkeys: T }, A = ({ hotkeys: o }) => /* @__PURE__ */ a("span", {
|
|
13
|
-
className: V.hotkeys,
|
|
14
|
-
"aria-hidden": !0,
|
|
15
|
-
children: o.join(H())
|
|
16
|
-
}), E = "_soonPillContainer_e7hkk_1", F = { soonPillContainer: E }, I = ({ label: o = "Soon" }) => /* @__PURE__ */ a("span", {
|
|
17
|
-
className: F.soonPillContainer,
|
|
18
|
-
children: /* @__PURE__ */ a(q, { label: o })
|
|
19
|
-
}), J = D(null), Q = "_button_1kjmt_1", U = "_content_1kjmt_161", W = "_label_1kjmt_170", X = "_icon_1kjmt_176", Y = "_hidden_1kjmt_186", Z = "_loader_1kjmt_190", t = {
|
|
20
|
-
button: Q,
|
|
21
|
-
content: U,
|
|
22
|
-
label: W,
|
|
23
|
-
icon: X,
|
|
24
|
-
hidden: Y,
|
|
25
|
-
loader: Z
|
|
26
|
-
}, Na = ({ variant: o = "outline", color: r = "neutral", size: e = "md", fullWidth: s = !1, loading: n = !1, elevated: S = !1, startIcon: f, endIcon: k, hotkeys: b, soon: N = !1, soonLabel: C, disabled: x = !1, href: _, render: y, className: P, children: c, ...w }) => {
|
|
27
|
-
const u = K(J), $ = u?.variant ?? o, R = u?.color ?? r, z = u?.size ?? e, G = L(), l = i(_);
|
|
28
|
-
return /* @__PURE__ */ m(O, {
|
|
29
|
-
...w,
|
|
30
|
-
...l ? { href: _ } : void 0,
|
|
31
|
-
className: h(t.button, P),
|
|
32
|
-
"data-variant": $,
|
|
33
|
-
"data-color": R,
|
|
34
|
-
"data-size": z,
|
|
35
|
-
"data-full-width": s || void 0,
|
|
36
|
-
"data-loading": n || void 0,
|
|
37
|
-
"data-elevated": S || void 0,
|
|
38
|
-
"aria-busy": n ? "true" : w["aria-busy"],
|
|
39
|
-
disabled: x || N || n,
|
|
40
|
-
role: l ? "link" : void 0,
|
|
41
|
-
nativeButton: !l,
|
|
42
|
-
render: y ?? (l ? /* @__PURE__ */ a("a", {
|
|
43
|
-
href: _,
|
|
44
|
-
children: c
|
|
45
|
-
}) : void 0),
|
|
46
|
-
children: [/* @__PURE__ */ m("span", {
|
|
47
|
-
className: p(t.content, n && t.hidden),
|
|
48
|
-
children: [
|
|
49
|
-
i(f) && /* @__PURE__ */ a("span", {
|
|
50
|
-
className: t.icon,
|
|
51
|
-
"aria-hidden": !0,
|
|
52
|
-
children: f
|
|
53
|
-
}),
|
|
54
|
-
i(c) && /* @__PURE__ */ a("span", {
|
|
55
|
-
className: t.label,
|
|
56
|
-
children: c
|
|
57
|
-
}),
|
|
58
|
-
i(k) && /* @__PURE__ */ a("span", {
|
|
59
|
-
className: t.icon,
|
|
60
|
-
"aria-hidden": !0,
|
|
61
|
-
children: k
|
|
62
|
-
}),
|
|
63
|
-
i(b) && !G && /* @__PURE__ */ a(A, { hotkeys: b }),
|
|
64
|
-
N && /* @__PURE__ */ a(I, { label: C })
|
|
65
|
-
]
|
|
66
|
-
}), n && /* @__PURE__ */ a("span", {
|
|
67
|
-
className: t.loader,
|
|
68
|
-
"aria-hidden": !0,
|
|
69
|
-
children: /* @__PURE__ */ a(M, {})
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
}, g = "_root_ahkrw_1", aa = "_control_ahkrw_18", oa = "_sm_ahkrw_33", ta = "_md_ahkrw_38", ra = "_indicator_ahkrw_49", d = {
|
|
73
|
-
root: g,
|
|
74
|
-
control: aa,
|
|
75
|
-
sm: oa,
|
|
76
|
-
md: ta,
|
|
77
|
-
indicator: ra
|
|
78
|
-
}, wa = ({ children: o, className: r, size: e = "sm", ...s }) => /* @__PURE__ */ m(j.Root, {
|
|
79
|
-
...s,
|
|
80
|
-
className: h(p(d.root, d[e]), r),
|
|
81
|
-
children: [/* @__PURE__ */ a("span", {
|
|
82
|
-
className: d.control,
|
|
83
|
-
"aria-hidden": !0,
|
|
84
|
-
children: /* @__PURE__ */ a(j.Indicator, { className: d.indicator })
|
|
85
|
-
}), o]
|
|
86
|
-
}), ea = "_root_rn2ew_1", sa = "_sm_rn2ew_33", na = "_md_rn2ew_39", ia = "_thumb_rn2ew_45", v = {
|
|
87
|
-
root: ea,
|
|
88
|
-
sm: sa,
|
|
89
|
-
md: na,
|
|
90
|
-
thumb: ia
|
|
91
|
-
}, ja = ({ size: o = "md", className: r, children: e, ...s }) => /* @__PURE__ */ m(B.Root, {
|
|
92
|
-
...s,
|
|
93
|
-
className: h(p(v.root, v[o]), r),
|
|
94
|
-
children: [/* @__PURE__ */ a(B.Thumb, { className: v.thumb }), e]
|
|
95
|
-
});
|
|
96
|
-
export {
|
|
97
|
-
J as i,
|
|
98
|
-
wa as n,
|
|
99
|
-
Na as r,
|
|
100
|
-
ja as t
|
|
101
|
-
};
|
package/dist/Switch-DuoJ4ytC.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i=require("./isDefined-DS2Q42p5.cjs"),w=require("./utilities-D7Z6Uof8.cjs"),L=require("./Loader-CHKTYJo7.cjs"),$=require("./Pill-BJ3K8Mdc.cjs"),v=require("./mergeClassNames-BbJtXN2t.cjs");let h=require("clsx"),e=require("react/jsx-runtime"),p=require("react"),H=require("@base-ui/react/button"),q=require("@base-ui/react/radio"),N=require("@base-ui/react/switch");var M="_hotkeys_16heq_1",K={hotkeys:M},T=({hotkeys:r})=>(0,e.jsx)("span",{className:K.hotkeys,"aria-hidden":!0,children:r.join(w.getOsShortcutSeparator())}),V="_soonPillContainer_e7hkk_1",A={soonPillContainer:V},E=({label:r="Soon"})=>(0,e.jsx)("span",{className:A.soonPillContainer,children:(0,e.jsx)($.Pill,{label:r})}),C=(0,p.createContext)(null),F="_button_1kjmt_1",I="_content_1kjmt_161",J="_label_1kjmt_170",Q="_icon_1kjmt_176",U="_hidden_1kjmt_186",W="_loader_1kjmt_190",t={button:F,content:I,label:J,icon:Q,hidden:U,loader:W},X=({variant:r="outline",color:a="neutral",size:o="md",fullWidth:s=!1,loading:n=!1,elevated:B=!1,startIcon:j,endIcon:b,hotkeys:x,soon:f=!1,soonLabel:S,disabled:y=!1,href:d,render:P,className:R,children:_,...k})=>{const c=(0,p.useContext)(C),g=c?.variant??r,D=c?.color??a,O=c?.size??o,z=w.useIsMobile(),l=i.isDefined(d),G=l?{href:d}:void 0;return(0,e.jsxs)(H.Button,{...k,...G,className:v.mergeClassNames(t.button,R),"data-variant":g,"data-color":D,"data-size":O,"data-full-width":s||void 0,"data-loading":n||void 0,"data-elevated":B||void 0,"aria-busy":n?"true":k["aria-busy"],disabled:y||f||n,role:l?"link":void 0,nativeButton:!l,render:P??(l?(0,e.jsx)("a",{href:d,children:_}):void 0),children:[(0,e.jsxs)("span",{className:(0,h.clsx)(t.content,n&&t.hidden),children:[i.isDefined(j)&&(0,e.jsx)("span",{className:t.icon,"aria-hidden":!0,children:j}),i.isDefined(_)&&(0,e.jsx)("span",{className:t.label,children:_}),i.isDefined(b)&&(0,e.jsx)("span",{className:t.icon,"aria-hidden":!0,children:b}),i.isDefined(x)&&!z&&(0,e.jsx)(T,{hotkeys:x}),f&&(0,e.jsx)(E,{label:S})]}),n&&(0,e.jsx)("span",{className:t.loader,"aria-hidden":!0,children:(0,e.jsx)(L.Loader,{})})]})},Y="_root_ahkrw_1",Z="_control_ahkrw_18",ee="_sm_ahkrw_33",re="_md_ahkrw_38",te="_indicator_ahkrw_49",u={root:Y,control:Z,sm:ee,md:re,indicator:te},ae=({children:r,className:a,size:o="sm",...s})=>(0,e.jsxs)(q.Radio.Root,{...s,className:v.mergeClassNames((0,h.clsx)(u.root,u[o]),a),children:[(0,e.jsx)("span",{className:u.control,"aria-hidden":!0,children:(0,e.jsx)(q.Radio.Indicator,{className:u.indicator})}),r]}),oe="_root_rn2ew_1",se="_sm_rn2ew_33",ne="_md_rn2ew_39",ie="_thumb_rn2ew_45",m={root:oe,sm:se,md:ne,thumb:ie},le=({size:r="md",className:a,children:o,...s})=>(0,e.jsxs)(N.Switch.Root,{...s,className:v.mergeClassNames((0,h.clsx)(m.root,m[r]),a),children:[(0,e.jsx)(N.Switch.Thumb,{className:m.thumb}),o]});Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"ButtonGroupContext",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"Radio",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"Switch",{enumerable:!0,get:function(){return le}});
|