twenty-ui 2.41.0 → 2.42.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/CHANGELOG.md +12 -0
- package/README.md +42 -22
- package/dist/{AllIcons-UzofKGsA.js → AllIcons-BkHLT6oe.js} +260 -260
- package/dist/{AllIcons-CFPS3m2F.cjs → AllIcons-DMeLF1LP.cjs} +1 -1
- package/dist/Avatar-BGFK0_a_.cjs +1 -0
- package/dist/Avatar-C_TzSJBe.js +67 -0
- package/dist/Heading-CQqDjovJ.cjs +1 -0
- package/dist/Heading-DvxTKEaL.js +16 -0
- package/dist/HorizontalSeparator-JwV0dB5W.js +44 -0
- package/dist/HorizontalSeparator-vJLHHlc4.cjs +1 -0
- package/dist/ListItem-C08r49UJ.js +109 -0
- package/dist/ListItem-D75aS69B.cjs +1 -0
- package/dist/ListItem.module-CFDku7rI.cjs +1 -0
- package/dist/ListItem.module-DBhzbt9-.js +38 -0
- package/dist/Loader-CHKTYJo7.cjs +1 -0
- package/dist/Loader-DbOLVUcK.js +14 -0
- package/dist/OverflowingTextWithTooltip-BXWJtb0f.js +179 -0
- package/dist/OverflowingTextWithTooltip-DpizuDxR.cjs +1 -0
- package/dist/Pill-BJ3K8Mdc.cjs +1 -0
- package/dist/Pill-DaFEFIOT.js +9 -0
- package/dist/ProgressBar-DwJQXHwg.cjs +1 -0
- package/dist/ProgressBar-RWLNIkzm.js +55 -0
- package/dist/ResizeHandle-BWfY2ONo.js +37 -0
- package/dist/ResizeHandle-IVbYS3b8.cjs +1 -0
- package/dist/Switch-BvVP6vjR.js +101 -0
- package/dist/Switch-DuoJ4ytC.cjs +1 -0
- package/dist/TabsTabContent-BWQCg7Ua.js +40 -0
- package/dist/TabsTabContent-ChqlTk3P.cjs +1 -0
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +1 -0
- package/dist/{primitives/input/CodeEditor/CodeEditor.d.ts → components/code-editor/CodeEditor/types/CodeEditorProps.d.ts} +1 -2
- package/dist/components/code-editor/CodeEditorHeader/CodeEditorHeader.d.ts +2 -0
- package/dist/components/code-editor/CodeEditorHeader/types/CodeEditorHeaderProps.d.ts +5 -0
- package/dist/components/code-editor/index.d.ts +6 -0
- package/dist/components/code-editor.cjs +1 -0
- package/dist/components/code-editor.mjs +229 -0
- package/dist/components/data-display/AvatarGroup/AvatarGroup.d.ts +2 -0
- package/dist/{primitives/data-display/AvatarGroup/AvatarGroup.d.ts → components/data-display/AvatarGroup/types/AvatarGroupProps.d.ts} +0 -1
- package/dist/components/data-display/JsonTree/JsonTree.d.ts +2 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonNestedNode.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonNodeLabel.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonNodeValue.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonTreeContextProvider.d.ts +1 -1
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonValueNode.d.ts +1 -1
- package/dist/components/data-display/JsonTree/internal/contexts/JsonTreeContext.d.ts +2 -0
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree/internal}/hooks/useJsonTreeContextOrThrow.d.ts +1 -1
- package/dist/{primitives/json-visualizer/contexts/JsonTreeContext.d.ts → components/data-display/JsonTree/internal/types/JsonTreeContextType.d.ts} +2 -6
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree/internal}/utils/isTwoFirstDepths.d.ts +1 -1
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree}/types/JsonNodeHighlighting.d.ts +1 -1
- package/dist/components/data-display/JsonTree/types/JsonTreeEntry.d.ts +6 -0
- package/dist/components/data-display/JsonTree/types/JsonTreeProps.d.ts +12 -0
- package/dist/components/data-display/JsonTree/types/ShouldExpandNodeInitiallyProps.d.ts +4 -0
- package/dist/components/data-display/TintedIconTile/TintedIconTile.d.ts +2 -0
- package/dist/components/data-display/TintedIconTile/types/TintedIconTileProps.d.ts +7 -0
- package/dist/components/feedback/Callout/Callout.d.ts +2 -0
- package/dist/components/feedback/Callout/types/CalloutProps.d.ts +15 -0
- package/dist/components/feedback/Callout/types/CalloutVariant.d.ts +1 -0
- package/dist/components/feedback/Info/Info.d.ts +2 -0
- package/dist/components/feedback/Info/types/InfoAccent.d.ts +1 -0
- package/dist/{primitives/feedback/Info/Info.d.ts → components/feedback/Info/types/InfoProps.d.ts} +4 -3
- package/dist/{primitives → components}/feedback/InlineBanner/InlineBanner.d.ts +1 -1
- package/dist/components/feedback/Toast/hooks/useToast.d.ts +7 -0
- package/dist/components/index.d.ts +81 -3
- package/dist/components/input/CardPicker/types/CardPickerProps.d.ts +2 -0
- package/dist/components/input/ColorSchemePicker/ColorSchemePicker.d.ts +2 -0
- package/dist/{primitives/input → components/input/ColorSchemePicker/internal}/ColorSchemeCard/ColorSchemeCard.d.ts +1 -1
- package/dist/components/input/ColorSchemePicker/types/ColorSchemePickerProps.d.ts +9 -0
- package/dist/components/input/IconButton/IconButton.d.ts +2 -0
- package/dist/components/input/IconButton/types/IconButtonProps.d.ts +14 -0
- package/dist/components/input/IconButton/types/IconButtonSize.d.ts +2 -0
- package/dist/components/{LightButton → input/LightButton}/types/LightButtonProps.d.ts +1 -1
- package/dist/components/input/LightIconButton/LightIconButton.d.ts +2 -0
- package/dist/components/input/LightIconButton/types/LightIconButtonProps.d.ts +4 -0
- package/dist/components/{MainButton → input/MainButton}/MainButton.d.ts +1 -1
- package/dist/components/input/SearchInput/SearchInput.d.ts +2 -0
- package/dist/{primitives/input/SearchInput/SearchInput.d.ts → components/input/SearchInput/types/SearchInputProps.d.ts} +0 -1
- package/dist/components/input/SettingsRow/SettingsRow.d.ts +2 -0
- package/dist/components/input/SettingsRow/__stories__/ControlledSettingsRowExample.d.ts +2 -0
- package/dist/components/input/SettingsRow/types/SettingsRowProps.d.ts +6 -0
- package/dist/components/layout/Section/Section.d.ts +4 -0
- package/dist/components/layout/Section/internal/SectionHeader.d.ts +2 -0
- package/dist/components/layout/Section/internal/SectionRoot.d.ts +2 -0
- package/dist/components/layout/Section/types/SectionHeaderProps.d.ts +9 -0
- package/dist/components/layout/Section/types/SectionRootProps.d.ts +6 -0
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +2 -0
- package/dist/components/navigation/MenuItem/constants/DefaultColorLabels.d.ts +2 -0
- package/dist/{primitives/navigation/MenuItem/constants/DefaultColorLabels.d.ts → components/navigation/MenuItem/types/ColorLabels.d.ts} +0 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +32 -0
- package/dist/components/navigation/MenuItemAvatar/MenuItemAvatar.d.ts +2 -0
- package/dist/{primitives/navigation/MenuItemAvatar/MenuItemAvatar.d.ts → components/navigation/MenuItemAvatar/types/MenuItemAvatarProps.d.ts} +3 -5
- package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +2 -0
- package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +19 -0
- package/dist/components/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts +2 -0
- package/dist/{primitives/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts → components/navigation/MenuItemSuggestion/types/MenuItemSuggestionProps.d.ts} +1 -2
- package/dist/components/navigation/MenuPicker/MenuPicker.d.ts +2 -0
- package/dist/components/navigation/MenuPicker/types/MenuPickerProps.d.ts +15 -0
- package/dist/{primitives/navigation → components/navigation/NavigationBar/internal}/NavigationBarItem/NavigationBarItem.d.ts +1 -1
- package/dist/components/navigation/TabButton/TabButton.d.ts +2 -0
- package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +5 -0
- package/dist/components-B2Pdf_yn.js +1459 -0
- package/dist/components-DfhgWbKW.cjs +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +43 -3
- package/dist/data-display-QOdhAohf.cjs +1 -0
- package/dist/data-display-YQG01UPq.js +184 -0
- package/dist/feedback-BvpEL2-w.js +25 -0
- package/dist/feedback-CH2UC0Fv.cjs +1 -0
- package/dist/handleClickableElementKeyDown-0XD9MRqa.cjs +1 -0
- package/dist/handleClickableElementKeyDown-CJ_JsX2K.js +11 -0
- package/dist/icon/components/IconBrandTypesafeAi.d.ts +4 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +2 -1
- package/dist/icon/providers/internal/AllIcons.d.ts +1 -1
- package/dist/{icon-DqzYzlBl.js → icon-CDy3-hqV.js} +954 -487
- package/dist/icon-lF2kxwql.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +499 -498
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +642 -736
- package/dist/input-C2q7tGPj.js +383 -0
- package/dist/input-CAX9aS7C.cjs +1 -0
- package/dist/isDefined-DS2Q42p5.cjs +1 -0
- package/dist/isDefined-fMi6eQ4r.js +5 -0
- package/dist/layout-BgAfeZsL.cjs +1 -0
- package/dist/layout-D-XbKoLM.js +30 -0
- package/dist/linkifyText-BHQ4_CzQ.cjs +1 -0
- package/dist/linkifyText-BINRNP9w.js +45 -0
- package/dist/navigation-Z7puI3wl.js +91 -0
- package/dist/navigation-e5PTdnND.cjs +1 -0
- package/dist/primitives/accessibility/index.d.ts +0 -1
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +2 -4
- package/dist/primitives/data-display/Chip/types/ChipProps.d.ts +2 -2
- package/dist/primitives/data-display/index.d.ts +0 -23
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +10 -25
- package/dist/primitives/feedback/index.d.ts +0 -25
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +7 -27
- package/dist/primitives/index.d.ts +0 -1
- package/dist/primitives/input/Button/Button.d.ts +1 -1
- package/dist/primitives/input/Button/types/ButtonProps.d.ts +1 -1
- package/dist/primitives/input/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/primitives/input/ButtonGroup/internal/ButtonGroupContext.d.ts +1 -1
- package/dist/primitives/input/ButtonGroup/types/ButtonGroupProps.d.ts +4 -1
- package/dist/primitives/input/index.d.ts +0 -49
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +14 -42
- package/dist/primitives/layout/AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts +3 -1
- package/dist/primitives/layout/index.d.ts +0 -8
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +8 -18
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemPickerExample.d.ts +6 -0
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +1 -0
- package/dist/primitives/navigation/Tabs/Tabs.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/internal/TabsTab.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/types/TabsTabProps.d.ts +2 -0
- package/dist/primitives/navigation/index.d.ts +0 -38
- package/dist/primitives/navigation/internal/tab/TabsTabContent.d.ts +4 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +8 -41
- package/dist/primitives/surfaces/Dialog/Dialog.d.ts +13 -0
- package/dist/primitives/surfaces/Dialog/__stories__/DialogExample.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/__stories__/DialogExampleProps.d.ts +9 -0
- package/dist/primitives/surfaces/Dialog/__stories__/waitForDialog.d.ts +1 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogBody.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogDescription.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogFooter.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogHeader.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogPopup.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogTitle.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogBodyProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogCloseProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogDescriptionProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogFooterProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogHeaderProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogPopupProps.d.ts +9 -0
- package/dist/primitives/surfaces/Dialog/types/DialogRootProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogSize.d.ts +1 -0
- package/dist/primitives/surfaces/Dialog/types/DialogTitleProps.d.ts +3 -0
- package/dist/primitives/surfaces/Dialog/types/DialogTriggerProps.d.ts +2 -0
- package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +9 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipComponent.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipContent.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipAlign.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipContentProps.d.ts +6 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +12 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipProps.d.ts +7 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipProviderProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipRootProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipSide.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipTriggerProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +20 -15
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +11 -18
- package/dist/primitives/typography/Heading/Heading.d.ts +2 -0
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +6 -0
- package/dist/primitives/{surfaces → typography}/OverflowingTextWithTooltip/OverflowingTextWithTooltip.d.ts +4 -4
- package/dist/primitives/typography/index.d.ts +3 -8
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +5 -13
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +66 -199
- package/dist/style.css +1 -1
- package/dist/surfaces-Cr4lhCvZ.js +306 -0
- package/dist/surfaces-CuxI6145.cjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +48 -44
- package/dist/{theme-constants-DETwIS-a.js → theme-constants-CrrgAYWN.js} +32 -32
- package/dist/theme-constants-ZNgkgDE-.cjs +1 -0
- package/dist/theme-constants.cjs +1 -1
- package/dist/theme-constants.mjs +5 -5
- package/dist/utilities/index.d.ts +0 -5
- package/dist/utilities-D7Z6Uof8.cjs +1 -0
- package/dist/utilities-FXsKnNbt.js +49 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +17 -21
- package/package.json +28 -12
- package/dist/Button-DDrUyVB1.cjs +0 -1
- package/dist/Button-u4e3zI-a.js +0 -72
- package/dist/HorizontalSeparator-BWu4LVEU.cjs +0 -1
- package/dist/HorizontalSeparator-p1xF1-ka.js +0 -37
- package/dist/OverflowingTextWithTooltip-C21bgWKF.js +0 -236
- package/dist/OverflowingTextWithTooltip-C2iADYbv.cjs +0 -1
- package/dist/Pill-4lAWCmbk.cjs +0 -1
- package/dist/Pill-abKRH4XK.js +0 -19
- package/dist/TablerIcons-Ctfi8z4q.js +0 -448
- package/dist/accessibility-BEkMTFE2.cjs +0 -1
- package/dist/accessibility-C7H0m2Th.js +0 -16
- package/dist/components-B0WZ1iBV.js +0 -19
- package/dist/components-BwvstA6U.cjs +0 -1
- package/dist/data-display-ByvqdkPn.js +0 -472
- package/dist/data-display-DH28tg-I.cjs +0 -1
- package/dist/feedback-62S0e8tP.cjs +0 -1
- package/dist/feedback-Cu7U-W9T.js +0 -660
- package/dist/handleClickableElementKeyDown-C8Uz61XJ.js +0 -6
- package/dist/handleClickableElementKeyDown-CByqtBhO.cjs +0 -1
- package/dist/icon-QYavWP3u.cjs +0 -1
- package/dist/input-B1qr987z.cjs +0 -1
- package/dist/input-DOIOurw8.js +0 -1322
- package/dist/json-visualizer-CN76kFy-.cjs +0 -1
- package/dist/json-visualizer-Q7wzKVum.js +0 -241
- package/dist/layout-BN3KI-Wu.cjs +0 -1
- package/dist/layout-LzKpLxiO.js +0 -124
- package/dist/linkifyText-C4_e-MKf.cjs +0 -1
- package/dist/linkifyText-DVk8e0sw.js +0 -40
- package/dist/navigation-BqWHvCpD.cjs +0 -1
- package/dist/navigation-CqKtMuQI.js +0 -724
- package/dist/primitives/accessibility/components/VisibilityHiddenInput.d.ts +0 -1
- package/dist/primitives/data-display/AnimatedCheckmark/AnimatedCheckmark.d.ts +0 -7
- package/dist/primitives/data-display/AvatarOrIcon/AvatarOrIcon.d.ts +0 -2
- package/dist/primitives/data-display/AvatarOrIcon/types/AvatarOrIconProps.d.ts +0 -12
- package/dist/primitives/data-display/Chip/constants/LinkChipClickOutsideId.d.ts +0 -1
- package/dist/primitives/data-display/EllipsisDisplay/EllipsisDisplay.d.ts +0 -7
- package/dist/primitives/data-display/JsonDisplay/JsonDisplay.d.ts +0 -6
- package/dist/primitives/data-display/LinkChip/LinkChip.d.ts +0 -11
- package/dist/primitives/data-display/NumberDisplay/NumberDisplay.d.ts +0 -6
- package/dist/primitives/data-display/SelectDisplay/SelectDisplay.d.ts +0 -10
- package/dist/primitives/data-display/TextDisplay/TextDisplay.d.ts +0 -6
- package/dist/primitives/data-display/TintedIconTile/TintedIconTile.d.ts +0 -8
- package/dist/primitives/feedback/AnimatedPlaceholder/AnimatedPlaceholder.d.ts +0 -7
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/Background.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/DarkBackground.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/DarkMovingImage.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/constants/MovingImage.d.ts +0 -19
- package/dist/primitives/feedback/AnimatedPlaceholder/types/AnimatedPlaceholderType.d.ts +0 -3
- package/dist/primitives/feedback/Callout/Callout.d.ts +0 -15
- package/dist/primitives/feedback/EmptyPlaceholderStyled/EmptyPlaceholderStyled.d.ts +0 -11
- package/dist/primitives/feedback/ErrorPlaceholderStyled/ErrorPlaceholderStyled.d.ts +0 -5
- package/dist/primitives/feedback/SidePanelInformationBanner/SidePanelInformationBanner.d.ts +0 -7
- package/dist/primitives/feedback/Toast/hooks/useToast.d.ts +0 -7
- package/dist/primitives/input/AnimatedButton/AnimatedButton.d.ts +0 -3
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonAccent.d.ts +0 -1
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonBaseProps.d.ts +0 -30
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonPosition.d.ts +0 -1
- package/dist/primitives/input/AnimatedButton/internal/AnimatedButtonVariant.d.ts +0 -1
- package/dist/primitives/input/AnimatedButton/types/AnimatedButtonProps.d.ts +0 -7
- package/dist/primitives/input/AnimatedLightIconButton/AnimatedLightIconButton.d.ts +0 -17
- package/dist/primitives/input/CardPicker/types/CardPickerProps.d.ts +0 -2
- package/dist/primitives/input/CodeEditorHeader/CodeEditorHeader.d.ts +0 -6
- package/dist/primitives/input/ColorPickerButton/ColorPickerButton.d.ts +0 -7
- package/dist/primitives/input/ColorSchemePicker/ColorSchemePicker.d.ts +0 -10
- package/dist/primitives/input/FloatingButton/FloatingButton.d.ts +0 -17
- package/dist/primitives/input/FloatingButtonGroup/FloatingButtonGroup.d.ts +0 -7
- package/dist/primitives/input/FloatingIconButton/FloatingIconButton.d.ts +0 -18
- package/dist/primitives/input/FloatingIconButtonGroup/FloatingIconButtonGroup.d.ts +0 -12
- package/dist/primitives/input/IconButton/IconButton.d.ts +0 -16
- package/dist/primitives/input/IconButton/types/IconButtonAccent.d.ts +0 -1
- package/dist/primitives/input/IconButton/types/IconButtonPosition.d.ts +0 -1
- package/dist/primitives/input/IconButton/types/IconButtonProps.d.ts +0 -21
- package/dist/primitives/input/IconButton/types/IconButtonSize.d.ts +0 -1
- package/dist/primitives/input/IconButton/types/IconButtonVariant.d.ts +0 -1
- package/dist/primitives/input/IconButtonGroup/IconButtonGroup.d.ts +0 -12
- package/dist/primitives/input/IconButtonWithTooltip/IconButtonWithTooltip.d.ts +0 -9
- package/dist/primitives/input/IconListViewGrip/IconListViewGrip.d.ts +0 -4
- package/dist/primitives/input/InputHint/InputHint.d.ts +0 -10
- package/dist/primitives/input/InputLabel/InputLabel.d.ts +0 -10
- package/dist/primitives/input/InsideButton/InsideButton.d.ts +0 -10
- package/dist/primitives/input/LightIconButton/LightIconButton.d.ts +0 -17
- package/dist/primitives/input/LightIconButtonGroup/LightIconButtonGroup.d.ts +0 -17
- package/dist/primitives/input/RoundedIconButton/RoundedIconButton.d.ts +0 -9
- package/dist/primitives/input/TabButton/TabButton.d.ts +0 -28
- package/dist/primitives/input/TabButton/parts/StyledTabBase.d.ts +0 -15
- package/dist/primitives/input/TabButton/parts/TabContent.d.ts +0 -15
- package/dist/primitives/json-visualizer/components/JsonTree.d.ts +0 -14
- package/dist/primitives/json-visualizer/index.d.ts +0 -14
- package/dist/primitives/json-visualizer.cjs +0 -1
- package/dist/primitives/json-visualizer.mjs +0 -14
- package/dist/primitives/layout/AnimatedCircleLoading/AnimatedCircleLoading.d.ts +0 -3
- package/dist/primitives/layout/AnimatedContainer/AnimatedContainer.d.ts +0 -3
- package/dist/primitives/layout/AnimatedEaseIn/AnimatedEaseIn.d.ts +0 -7
- package/dist/primitives/layout/AnimatedEaseInOut/AnimatedEaseInOut.d.ts +0 -11
- package/dist/primitives/layout/AnimatedRotate/AnimatedRotate.d.ts +0 -9
- package/dist/primitives/layout/AutogrowWrapper/AutogrowWrapper.d.ts +0 -8
- package/dist/primitives/layout/Section/Section.d.ts +0 -19
- package/dist/primitives/navigation/ContactLink/ContactLink.d.ts +0 -9
- package/dist/primitives/navigation/GithubVersionLink/GithubVersionLink.d.ts +0 -5
- package/dist/primitives/navigation/MenuItem/MenuItem.d.ts +0 -47
- package/dist/primitives/navigation/MenuItem/parts/MenuItemMultiSelectCheckbox.d.ts +0 -7
- package/dist/primitives/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +0 -21
- package/dist/primitives/navigation/MenuItemMultiSelect/MenuItemMultiSelect.d.ts +0 -15
- package/dist/primitives/navigation/MenuItemMultiSelectAvatar/MenuItemMultiSelectAvatar.d.ts +0 -12
- package/dist/primitives/navigation/MenuItemMultiSelectTag/MenuItemMultiSelectTag.d.ts +0 -13
- package/dist/primitives/navigation/MenuItemNavigate/MenuItemNavigate.d.ts +0 -9
- package/dist/primitives/navigation/MenuItemSelect/MenuItemSelect.d.ts +0 -26
- package/dist/primitives/navigation/MenuItemSelectAvatar/MenuItemSelectAvatar.d.ts +0 -14
- package/dist/primitives/navigation/MenuItemSelectColor/MenuItemSelectColor.d.ts +0 -15
- package/dist/primitives/navigation/MenuItemSelectTag/MenuItemSelectTag.d.ts +0 -15
- package/dist/primitives/navigation/MenuItemSwitch/MenuItemSwitch.d.ts +0 -14
- package/dist/primitives/navigation/MenuPicker/MenuPicker.d.ts +0 -17
- package/dist/primitives/navigation/RawLink/RawLink.d.ts +0 -9
- package/dist/primitives/navigation/SocialLink/LinkType.d.ts +0 -9
- package/dist/primitives/navigation/SocialLink/SocialLink.d.ts +0 -10
- package/dist/primitives/navigation/SocialLink/socialLinkProviders.d.ts +0 -10
- package/dist/primitives/navigation/UndecoratedLink/UndecoratedLink.d.ts +0 -10
- package/dist/primitives/surfaces/AppTooltip/AppTooltip.d.ts +0 -34
- package/dist/primitives/surfaces/Modal/Modal.d.ts +0 -2
- package/dist/primitives/surfaces/Modal/types/ModalOverlay.d.ts +0 -1
- package/dist/primitives/surfaces/Modal/types/ModalPadding.d.ts +0 -1
- package/dist/primitives/surfaces/Modal/types/ModalProps.d.ts +0 -26
- package/dist/primitives/surfaces/Modal/types/ModalSize.d.ts +0 -1
- package/dist/primitives/surfaces/ModalBackdrop/ModalBackdrop.d.ts +0 -8
- package/dist/primitives/surfaces/ModalContent/ModalContent.d.ts +0 -9
- package/dist/primitives/surfaces/ModalFooter/ModalFooter.d.ts +0 -7
- package/dist/primitives/surfaces/ModalHeader/ModalHeader.d.ts +0 -8
- package/dist/primitives/typography/H1Title/H1Title.d.ts +0 -13
- package/dist/primitives/typography/H2Title/H2Title.d.ts +0 -8
- package/dist/primitives/typography/H3Title/H3Title.d.ts +0 -8
- package/dist/primitives/typography/SeparatorLineText/SeparatorLineText.d.ts +0 -3
- package/dist/primitives/typography/StyledText/StyledText.d.ts +0 -14
- package/dist/surfaces-B8zw9F5W.js +0 -494
- package/dist/surfaces-ec8RlQ5J.cjs +0 -1
- package/dist/theme-constants-Do_FO7Uy.cjs +0 -1
- package/dist/typography-CaY1Dwdi.js +0 -93
- package/dist/typography-Rw7ZDHyn.cjs +0 -1
- package/dist/useResizeHandle-BsV5UEJk.cjs +0 -1
- package/dist/useResizeHandle-CCRiw9Fi.js +0 -37
- package/dist/utilities/navigation/hooks/useMouseDownNavigation.d.ts +0 -15
- package/dist/utilities/navigation/hooks/useResetLocationHash.d.ts +0 -3
- package/dist/utilities/navigation/isNavigationModifierPressed.d.ts +0 -3
- package/dist/utilities/navigation/types/trigger-event.type.d.ts +0 -1
- package/dist/utilities/utils/getDisplayValueByUrlType.d.ts +0 -7
- package/dist/utilities-DmbkuukL.cjs +0 -1
- package/dist/utilities-kvjM4sIB.js +0 -156
- package/dist/{primitives/input → components/code-editor}/CodeEditor/constants/BaseCodeEditorThemeId.d.ts +0 -0
- package/dist/{primitives/input → components/code-editor}/CodeEditor/utils/getBaseCodeEditorTheme.d.ts +0 -0
- package/dist/{primitives → components}/data-display/CommandBlock/CommandBlock.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonArrayNode.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonArrow.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonList.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree}/internal/JsonListItem.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonNode.d.ts +0 -0
- package/dist/{primitives/json-visualizer/components → components/data-display/JsonTree/internal}/JsonObjectNode.d.ts +0 -0
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree/internal}/utils/isArray.d.ts +0 -0
- package/dist/{primitives/json-visualizer → components/data-display/JsonTree}/types/GetJsonNodeHighlighting.d.ts +0 -0
- package/dist/{primitives → components}/data-display/NotificationCounter/NotificationCounter.d.ts +0 -0
- package/dist/{primitives/data-display → components/data-display/TintedIconTile/internal}/StyledTintedIconTileContainer/StyledTintedIconTileContainer.d.ts +0 -0
- package/dist/{primitives → components}/data-display/TintedIconTile/internal/constants/tintedIconTileColorShades.constant.d.ts +0 -0
- package/dist/{primitives → components}/data-display/TintedIconTile/internal/utils/getColorFromTheme.d.ts +0 -0
- package/dist/{primitives → components}/data-display/TintedIconTile/utils/getIconTileColorShades.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/Toast.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/ToastProvider.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/constants/DefaultToastLimit.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/contexts/ToastContext.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useCloseToast.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useEnqueueToast.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useToastContext.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/hooks/useToastEntries.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/stores/createToastStore.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastEntry.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastNotification.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastOptions.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastProps.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastProviderProps.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastStoreState.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/types/ToastVariant.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/utils/completeToastExit.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/utils/dismissToasts.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toast/utils/isToastVisible.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/Toaster.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/__stories__/ToastControls.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/__stories__/ToasterExample.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/__stories__/ToasterExampleProps.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterItem.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterItems.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/internal/ToasterLifecycleEffect.d.ts +0 -0
- package/dist/{primitives → components}/feedback/Toaster/types/ToasterProps.d.ts +0 -0
- package/dist/{primitives → components}/input/CardPicker/CardPicker.d.ts +0 -0
- package/dist/{primitives/data-display → components/input/ColorSchemePicker/internal}/Checkmark/Checkmark.d.ts +0 -0
- package/dist/components/{LightButton → input/LightButton}/LightButton.d.ts +0 -0
- package/dist/{primitives → components}/layout/AnimatedIconCrossfade/AnimatedIconCrossfade.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemIcon.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemIconBoxContainer.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +0 -0
- package/dist/{primitives → components}/navigation/MenuItem/parts/MenuItemLeftContent.d.ts +1 -1
- /package/dist/{primitives → components}/navigation/MenuItem/parts/StyledMenuItemBase.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/MenuItem/types/MenuItemAccent.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/MenuItem/types/MenuItemDraggableGripMode.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/NavigationBar/NavigationBar.d.ts +0 -0
- /package/dist/{primitives → components}/navigation/RoundedLink/RoundedLink.d.ts +0 -0
- /package/dist/primitives/navigation/{MenuItemHotKeys → ListItem/internal/MenuItemHotKeys}/MenuItemHotKeys.d.ts +0 -0
- /package/dist/primitives/typography/{LinkifiedText → OverflowingTextWithTooltip/internal/LinkifiedText}/LinkifiedText.d.ts +0 -0
- /package/dist/primitives/typography/{Label → internal/Label}/Label.d.ts +0 -0
|
@@ -0,0 +1,383 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let i=require("@sniptt/guards");var n=e=>!(0,i.isUndefined)(e)&&!(0,i.isNull)(e);Object.defineProperty(exports,"isDefined",{enumerable:!0,get:function(){return n}});
|
|
@@ -0,0 +1 @@
|
|
|
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}});
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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}});
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../handleClickableElementKeyDown-0XD9MRqa.cjs");exports.VisibilityHidden=e.VisibilityHidden;exports.handleClickableElementKeyDown=e.handleClickableElementKeyDown;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { t as l } from "../handleClickableElementKeyDown-C8Uz61XJ.js";
|
|
1
|
+
import { n as i, t as l } from "../handleClickableElementKeyDown-CJ_JsX2K.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
e as VisibilityHiddenInput,
|
|
3
|
+
i as VisibilityHidden,
|
|
6
4
|
l as handleClickableElementKeyDown
|
|
7
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { TooltipSide } from '../../../surfaces/Tooltip/types/TooltipSide';
|
|
4
4
|
import { ChipSize } from './ChipSize';
|
|
5
5
|
import { ChipVariant } from './ChipVariant';
|
|
6
6
|
export type ChipProps = Omit<useRender.ComponentProps<'div'>, 'color'> & {
|
|
@@ -17,7 +17,7 @@ export type ChipProps = Omit<useRender.ComponentProps<'div'>, 'color'> & {
|
|
|
17
17
|
endElementDivider?: boolean;
|
|
18
18
|
maxWidth?: number;
|
|
19
19
|
tooltipLabel?: string;
|
|
20
|
-
tooltipPlace?:
|
|
20
|
+
tooltipPlace?: TooltipSide;
|
|
21
21
|
alwaysShowTooltip?: boolean;
|
|
22
22
|
isLabelHidden?: boolean;
|
|
23
23
|
forceEmptyText?: boolean;
|