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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const c=require("./theme-constants-Do_FO7Uy.cjs"),R=require("./accessibility-BEkMTFE2.cjs"),z=require("./handleClickableElementKeyDown-CByqtBhO.cjs");let x=require("clsx"),p=require("react"),b=require("@sniptt/guards"),r=require("react/jsx-runtime"),O=require("@base-ui/react/collapsible"),d=require("@tabler/icons-react");var N=(0,p.createContext)(void 0),_=()=>{const e=(0,p.useContext)(N);if(!c.isDefined(e))throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");return e},B="_button_1ix33_1",K="_red_1ix33_17",F="_chevron_1ix33_22",C={button:B,red:K,chevron:F},H=({isOpen:e,onClick:n,variant:t})=>{const o=c.useTheme(),{arrowButtonCollapsedLabel:a,arrowButtonExpandedLabel:l}=_(),s=t==="blue"?c.themeCssVariables.color.blue:t==="red"?c.themeCssVariables.font.color.danger:c.themeCssVariables.font.color.secondary;return(0,r.jsxs)("button",{className:(0,x.clsx)(C.button,t==="red"&&C.red),onClick:n,children:[(0,r.jsx)(R.VisibilityHidden,{children:e?l:a}),(0,r.jsx)("div",{className:C.chevron,"data-open":e||void 0,children:(0,r.jsx)(d.IconChevronDown,{size:o.icon.size.md,color:s})})]})},G="_labelContainer_1pq94_1",M="_blue_1pq94_23",Q="_red_1pq94_29",h={labelContainer:G,blue:M,red:Q},w=({label:e,Icon:n,highlighting:t})=>{const o=c.useTheme();return(0,r.jsxs)("span",{className:(0,x.clsx)(h.labelContainer,t==="blue"&&h.blue,t==="red"&&h.red),children:[(0,r.jsx)(n,{size:o.icon.size.md,color:t==="blue"?o.color.blue:t==="red"?o.font.color.danger:o.font.color.tertiary}),(0,r.jsx)("span",{children:e})]})},q=({label:e,value:n,depth:t,keyPath:o,highlighting:a})=>{const{emptyObjectLabel:l}=_();return(0,r.jsx)(g,{elements:Object.entries(n).map(([s,i])=>({id:s,label:s,value:i})),renderElementsCount:s=>`{${s}}`,label:e,Icon:d.IconCube,depth:t,emptyElementsText:l,keyPath:o,highlighting:a})},U="_text_3y2ep_1",W="_blue_3y2ep_10",X="_red_3y2ep_14",y={text:U,blue:W,red:X},Y=({valueAsString:e,highlighting:n})=>{const{onNodeValueClick:t}=_(),o=c.isDefined(t),a=()=>{t?.(e)},l=(0,x.clsx)(y.text,n==="blue"&&y.blue,n==="red"&&y.red);return o?(0,r.jsx)("span",{className:l,role:"button",tabIndex:0,onClick:a,onKeyDown:z.handleClickableElementKeyDown,children:e}):(0,r.jsx)("span",{className:l,children:e})},Z="_listItem_1i7if_1",ee={listItem:Z},m=e=>(0,r.jsxs)("li",{className:ee.listItem,children:[e.label&&(0,r.jsx)(w,{label:e.label,Icon:e.Icon,highlighting:e.highlighting}),(0,r.jsx)(Y,{valueAsString:e.valueAsString,highlighting:e.highlighting})]}),P=e=>(0,b.isArray)(e),J=({label:e,value:n,depth:t,keyPath:o})=>{const{getNodeHighlighting:a,emptyStringLabel:l}=_(),s=a?.(o);return c.isDefined(n)?(0,b.isString)(n)?(0,r.jsx)(m,{label:e,valueAsString:(0,b.isNonEmptyString)(n)?n:l,Icon:d.IconTypography,highlighting:s}):(0,b.isNumber)(n)?(0,r.jsx)(m,{label:e,valueAsString:String(n),Icon:d.IconNumber9,highlighting:s}):(0,b.isBoolean)(n)?(0,r.jsx)(m,{label:e,valueAsString:String(n),Icon:d.IconCheckbox,highlighting:s}):P(n)?(0,r.jsx)(A,{label:e,value:n,depth:t,keyPath:o,highlighting:s}):(0,r.jsx)(q,{label:e,value:n,depth:t,keyPath:o,highlighting:s}):(0,r.jsx)(m,{label:e,valueAsString:"null",Icon:d.IconCircleOff,highlighting:s})},re="_container_1c6yj_1",ne="_labelContainer_1c6yj_6",te="_elementsCount_1c6yj_12",se="_elementsCountRed_1c6yj_16",oe="_panel_1c6yj_20",le="_list_1c6yj_30",ae="_nested_1c6yj_37",u={container:re,labelContainer:ne,elementsCount:te,elementsCountRed:se,panel:oe,list:le,nested:ae},g=({label:e,Icon:n,elements:t,renderElementsCount:o,emptyElementsText:a,depth:l,keyPath:s,highlighting:i})=>{const{shouldExpandNodeInitially:j}=_(),D=!c.isDefined(e),[v,E]=(0,p.useState)(j({keyPath:s,depth:l})),I=(0,r.jsx)("ul",{className:(0,x.clsx)(u.list,l>0&&u.nested),children:t.length===0?(0,r.jsx)(m,{valueAsString:a,highlighting:void 0}):t.map(({id:f,label:$,value:L})=>{const k=(0,b.isNonEmptyString)(s)?`${s}.${f}`:String(f);return(0,r.jsx)(J,{label:$,value:L,depth:l+1,keyPath:k},f)})}),V=()=>{E(!v)};return D?(0,r.jsx)("li",{className:u.container,children:I}):(0,r.jsxs)(O.Collapsible.Root,{className:u.container,open:v,render:(0,r.jsx)("li",{}),children:[(0,r.jsxs)("div",{className:u.labelContainer,children:[(0,r.jsx)(H,{isOpen:v,onClick:V,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,r.jsx)(w,{label:e,Icon:n,highlighting:i==="red"?i:void 0}),o&&(0,r.jsx)("span",{className:(0,x.clsx)(u.elementsCount,i==="red"&&u.elementsCountRed),children:o(t.length)})]}),(0,r.jsx)(O.Collapsible.Panel,{className:u.panel,children:I})]})},A=({label:e,value:n,depth:t,keyPath:o,highlighting:a})=>{const{emptyArrayLabel:l}=_();return(0,r.jsx)(g,{elements:[...n.entries()].map(([s,i])=>({id:s,label:String(s),value:i})),renderElementsCount:s=>`[${s}]`,label:e,Icon:d.IconBrackets,depth:t,emptyElementsText:l,keyPath:o,highlighting:a})},ie="_list_80v6h_1",ce="_nested_80v6h_8",T={list:ie,nested:ce},ue=({depth:e,className:n,children:t})=>(0,r.jsx)("ul",{className:(0,x.clsx)(T.list,e>0&&T.nested,n),children:t}),S=({value:e,children:n})=>(0,r.jsx)(N.Provider,{value:e,children:n}),de=({value:e,getNodeHighlighting:n,shouldExpandNodeInitially:t,emptyArrayLabel:o,emptyObjectLabel:a,emptyStringLabel:l,arrowButtonCollapsedLabel:s,arrowButtonExpandedLabel:i,onNodeValueClick:j})=>(0,r.jsx)(S,{value:{getNodeHighlighting:n,shouldExpandNodeInitially:t,emptyArrayLabel:o,emptyObjectLabel:a,emptyStringLabel:l,arrowButtonCollapsedLabel:s,arrowButtonExpandedLabel:i,onNodeValueClick:j},children:(0,r.jsx)(ue,{depth:0,children:(0,r.jsx)(J,{value:e,depth:0,keyPath:""})})}),_e=({depth:e})=>e<=1;Object.defineProperty(exports,"JsonArrayNode",{enumerable:!0,get:function(){return A}});Object.defineProperty(exports,"JsonNestedNode",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"JsonNode",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"JsonObjectNode",{enumerable:!0,get:function(){return q}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"JsonTreeContext",{enumerable:!0,get:function(){return N}});Object.defineProperty(exports,"JsonTreeContextProvider",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"JsonValueNode",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"isArray",{enumerable:!0,get:function(){return P}});Object.defineProperty(exports,"isTwoFirstDepths",{enumerable:!0,get:function(){return _e}});Object.defineProperty(exports,"useJsonTreeContextOrThrow",{enumerable:!0,get:function(){return _}});
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { c as p, r as g, s as v } from "./theme-constants-DETwIS-a.js";
|
|
2
|
-
import { Et as R, Ft as k, H as q, Na as z, Tt as B, in as H, qs as K } from "./TablerIcons-Ctfi8z4q.js";
|
|
3
|
-
import { n as P } from "./accessibility-C7H0m2Th.js";
|
|
4
|
-
import { t as F } from "./handleClickableElementKeyDown-C8Uz61XJ.js";
|
|
5
|
-
import { clsx as c } from "clsx";
|
|
6
|
-
import { createContext as G, useContext as M, useState as Q } from "react";
|
|
7
|
-
import { isArray as U, isBoolean as W, isNonEmptyString as w, isNumber as X, isString as Y } from "@sniptt/guards";
|
|
8
|
-
import { jsx as r, jsxs as _ } from "react/jsx-runtime";
|
|
9
|
-
import { Collapsible as I } from "@base-ui/react/collapsible";
|
|
10
|
-
var T = G(void 0), u = () => {
|
|
11
|
-
const e = M(T);
|
|
12
|
-
if (!v(e)) throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");
|
|
13
|
-
return e;
|
|
14
|
-
}, Z = "_button_1ix33_1", ee = "_red_1ix33_17", re = "_chevron_1ix33_22", N = {
|
|
15
|
-
button: Z,
|
|
16
|
-
red: ee,
|
|
17
|
-
chevron: re
|
|
18
|
-
}, ne = ({ isOpen: e, onClick: n, variant: t }) => {
|
|
19
|
-
const a = g(), { arrowButtonCollapsedLabel: l, arrowButtonExpandedLabel: s } = u(), o = t === "blue" ? p.color.blue : t === "red" ? p.font.color.danger : p.font.color.secondary;
|
|
20
|
-
return /* @__PURE__ */ _("button", {
|
|
21
|
-
className: c(N.button, t === "red" && N.red),
|
|
22
|
-
onClick: n,
|
|
23
|
-
children: [/* @__PURE__ */ r(P, { children: e ? s : l }), /* @__PURE__ */ r("div", {
|
|
24
|
-
className: N.chevron,
|
|
25
|
-
"data-open": e || void 0,
|
|
26
|
-
children: /* @__PURE__ */ r(R, {
|
|
27
|
-
size: a.icon.size.md,
|
|
28
|
-
color: o
|
|
29
|
-
})
|
|
30
|
-
})]
|
|
31
|
-
});
|
|
32
|
-
}, te = "_labelContainer_1pq94_1", oe = "_blue_1pq94_23", ae = "_red_1pq94_29", f = {
|
|
33
|
-
labelContainer: te,
|
|
34
|
-
blue: oe,
|
|
35
|
-
red: ae
|
|
36
|
-
}, S = ({ label: e, Icon: n, highlighting: t }) => {
|
|
37
|
-
const a = g();
|
|
38
|
-
return /* @__PURE__ */ _("span", {
|
|
39
|
-
className: c(f.labelContainer, t === "blue" && f.blue, t === "red" && f.red),
|
|
40
|
-
children: [/* @__PURE__ */ r(n, {
|
|
41
|
-
size: a.icon.size.md,
|
|
42
|
-
color: t === "blue" ? a.color.blue : t === "red" ? a.font.color.danger : a.font.color.tertiary
|
|
43
|
-
}), /* @__PURE__ */ r("span", { children: e })]
|
|
44
|
-
});
|
|
45
|
-
}, se = ({ label: e, value: n, depth: t, keyPath: a, highlighting: l }) => {
|
|
46
|
-
const { emptyObjectLabel: s } = u();
|
|
47
|
-
return /* @__PURE__ */ r(A, {
|
|
48
|
-
elements: Object.entries(n).map(([o, i]) => ({
|
|
49
|
-
id: o,
|
|
50
|
-
label: o,
|
|
51
|
-
value: i
|
|
52
|
-
})),
|
|
53
|
-
renderElementsCount: (o) => `{${o}}`,
|
|
54
|
-
label: e,
|
|
55
|
-
Icon: H,
|
|
56
|
-
depth: t,
|
|
57
|
-
emptyElementsText: s,
|
|
58
|
-
keyPath: a,
|
|
59
|
-
highlighting: l
|
|
60
|
-
});
|
|
61
|
-
}, le = "_text_3y2ep_1", ie = "_blue_3y2ep_10", de = "_red_3y2ep_14", y = {
|
|
62
|
-
text: le,
|
|
63
|
-
blue: ie,
|
|
64
|
-
red: de
|
|
65
|
-
}, ce = ({ valueAsString: e, highlighting: n }) => {
|
|
66
|
-
const { onNodeValueClick: t } = u(), a = v(t), l = () => {
|
|
67
|
-
t?.(e);
|
|
68
|
-
}, s = c(y.text, n === "blue" && y.blue, n === "red" && y.red);
|
|
69
|
-
return a ? /* @__PURE__ */ r("span", {
|
|
70
|
-
className: s,
|
|
71
|
-
role: "button",
|
|
72
|
-
tabIndex: 0,
|
|
73
|
-
onClick: l,
|
|
74
|
-
onKeyDown: F,
|
|
75
|
-
children: e
|
|
76
|
-
}) : /* @__PURE__ */ r("span", {
|
|
77
|
-
className: s,
|
|
78
|
-
children: e
|
|
79
|
-
});
|
|
80
|
-
}, ue = "_listItem_1i7if_1", me = { listItem: ue }, m = (e) => /* @__PURE__ */ _("li", {
|
|
81
|
-
className: me.listItem,
|
|
82
|
-
children: [e.label && /* @__PURE__ */ r(S, {
|
|
83
|
-
label: e.label,
|
|
84
|
-
Icon: e.Icon,
|
|
85
|
-
highlighting: e.highlighting
|
|
86
|
-
}), /* @__PURE__ */ r(ce, {
|
|
87
|
-
valueAsString: e.valueAsString,
|
|
88
|
-
highlighting: e.highlighting
|
|
89
|
-
})]
|
|
90
|
-
}), _e = (e) => U(e), j = ({ label: e, value: n, depth: t, keyPath: a }) => {
|
|
91
|
-
const { getNodeHighlighting: l, emptyStringLabel: s } = u(), o = l?.(a);
|
|
92
|
-
return v(n) ? Y(n) ? /* @__PURE__ */ r(m, {
|
|
93
|
-
label: e,
|
|
94
|
-
valueAsString: w(n) ? n : s,
|
|
95
|
-
Icon: K,
|
|
96
|
-
highlighting: o
|
|
97
|
-
}) : X(n) ? /* @__PURE__ */ r(m, {
|
|
98
|
-
label: e,
|
|
99
|
-
valueAsString: String(n),
|
|
100
|
-
Icon: z,
|
|
101
|
-
highlighting: o
|
|
102
|
-
}) : W(n) ? /* @__PURE__ */ r(m, {
|
|
103
|
-
label: e,
|
|
104
|
-
valueAsString: String(n),
|
|
105
|
-
Icon: B,
|
|
106
|
-
highlighting: o
|
|
107
|
-
}) : _e(n) ? /* @__PURE__ */ r(ye, {
|
|
108
|
-
label: e,
|
|
109
|
-
value: n,
|
|
110
|
-
depth: t,
|
|
111
|
-
keyPath: a,
|
|
112
|
-
highlighting: o
|
|
113
|
-
}) : /* @__PURE__ */ r(se, {
|
|
114
|
-
label: e,
|
|
115
|
-
value: n,
|
|
116
|
-
depth: t,
|
|
117
|
-
keyPath: a,
|
|
118
|
-
highlighting: o
|
|
119
|
-
}) : /* @__PURE__ */ r(m, {
|
|
120
|
-
label: e,
|
|
121
|
-
valueAsString: "null",
|
|
122
|
-
Icon: k,
|
|
123
|
-
highlighting: o
|
|
124
|
-
});
|
|
125
|
-
}, ve = "_container_1c6yj_1", be = "_labelContainer_1c6yj_6", Ce = "_elementsCount_1c6yj_12", he = "_elementsCountRed_1c6yj_16", pe = "_panel_1c6yj_20", Ne = "_list_1c6yj_30", fe = "_nested_1c6yj_37", d = {
|
|
126
|
-
container: ve,
|
|
127
|
-
labelContainer: be,
|
|
128
|
-
elementsCount: Ce,
|
|
129
|
-
elementsCountRed: he,
|
|
130
|
-
panel: pe,
|
|
131
|
-
list: Ne,
|
|
132
|
-
nested: fe
|
|
133
|
-
}, A = ({ label: e, Icon: n, elements: t, renderElementsCount: a, emptyElementsText: l, depth: s, keyPath: o, highlighting: i }) => {
|
|
134
|
-
const { shouldExpandNodeInitially: b } = u(), $ = !v(e), [C, E] = Q(b({
|
|
135
|
-
keyPath: o,
|
|
136
|
-
depth: s
|
|
137
|
-
})), x = /* @__PURE__ */ r("ul", {
|
|
138
|
-
className: c(d.list, s > 0 && d.nested),
|
|
139
|
-
children: t.length === 0 ? /* @__PURE__ */ r(m, {
|
|
140
|
-
valueAsString: l,
|
|
141
|
-
highlighting: void 0
|
|
142
|
-
}) : t.map(({ id: h, label: O, value: V }) => {
|
|
143
|
-
const D = w(o) ? `${o}.${h}` : String(h);
|
|
144
|
-
return /* @__PURE__ */ r(j, {
|
|
145
|
-
label: O,
|
|
146
|
-
value: V,
|
|
147
|
-
depth: s + 1,
|
|
148
|
-
keyPath: D
|
|
149
|
-
}, h);
|
|
150
|
-
})
|
|
151
|
-
}), L = () => {
|
|
152
|
-
E(!C);
|
|
153
|
-
};
|
|
154
|
-
return $ ? /* @__PURE__ */ r("li", {
|
|
155
|
-
className: d.container,
|
|
156
|
-
children: x
|
|
157
|
-
}) : /* @__PURE__ */ _(I.Root, {
|
|
158
|
-
className: d.container,
|
|
159
|
-
open: C,
|
|
160
|
-
render: /* @__PURE__ */ r("li", {}),
|
|
161
|
-
children: [/* @__PURE__ */ _("div", {
|
|
162
|
-
className: d.labelContainer,
|
|
163
|
-
children: [
|
|
164
|
-
/* @__PURE__ */ r(ne, {
|
|
165
|
-
isOpen: C,
|
|
166
|
-
onClick: L,
|
|
167
|
-
variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ r(S, {
|
|
170
|
-
label: e,
|
|
171
|
-
Icon: n,
|
|
172
|
-
highlighting: i === "red" ? i : void 0
|
|
173
|
-
}),
|
|
174
|
-
a && /* @__PURE__ */ r("span", {
|
|
175
|
-
className: c(d.elementsCount, i === "red" && d.elementsCountRed),
|
|
176
|
-
children: a(t.length)
|
|
177
|
-
})
|
|
178
|
-
]
|
|
179
|
-
}), /* @__PURE__ */ r(I.Panel, {
|
|
180
|
-
className: d.panel,
|
|
181
|
-
children: x
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
184
|
-
}, ye = ({ label: e, value: n, depth: t, keyPath: a, highlighting: l }) => {
|
|
185
|
-
const { emptyArrayLabel: s } = u();
|
|
186
|
-
return /* @__PURE__ */ r(A, {
|
|
187
|
-
elements: [...n.entries()].map(([o, i]) => ({
|
|
188
|
-
id: o,
|
|
189
|
-
label: String(o),
|
|
190
|
-
value: i
|
|
191
|
-
})),
|
|
192
|
-
renderElementsCount: (o) => `[${o}]`,
|
|
193
|
-
label: e,
|
|
194
|
-
Icon: q,
|
|
195
|
-
depth: t,
|
|
196
|
-
emptyElementsText: s,
|
|
197
|
-
keyPath: a,
|
|
198
|
-
highlighting: l
|
|
199
|
-
});
|
|
200
|
-
}, xe = "_list_80v6h_1", Ie = "_nested_80v6h_8", J = {
|
|
201
|
-
list: xe,
|
|
202
|
-
nested: Ie
|
|
203
|
-
}, Je = ({ depth: e, className: n, children: t }) => /* @__PURE__ */ r("ul", {
|
|
204
|
-
className: c(J.list, e > 0 && J.nested, n),
|
|
205
|
-
children: t
|
|
206
|
-
}), ge = ({ value: e, children: n }) => /* @__PURE__ */ r(T.Provider, {
|
|
207
|
-
value: e,
|
|
208
|
-
children: n
|
|
209
|
-
}), Ve = ({ value: e, getNodeHighlighting: n, shouldExpandNodeInitially: t, emptyArrayLabel: a, emptyObjectLabel: l, emptyStringLabel: s, arrowButtonCollapsedLabel: o, arrowButtonExpandedLabel: i, onNodeValueClick: b }) => /* @__PURE__ */ r(ge, {
|
|
210
|
-
value: {
|
|
211
|
-
getNodeHighlighting: n,
|
|
212
|
-
shouldExpandNodeInitially: t,
|
|
213
|
-
emptyArrayLabel: a,
|
|
214
|
-
emptyObjectLabel: l,
|
|
215
|
-
emptyStringLabel: s,
|
|
216
|
-
arrowButtonCollapsedLabel: o,
|
|
217
|
-
arrowButtonExpandedLabel: i,
|
|
218
|
-
onNodeValueClick: b
|
|
219
|
-
},
|
|
220
|
-
children: /* @__PURE__ */ r(Je, {
|
|
221
|
-
depth: 0,
|
|
222
|
-
children: /* @__PURE__ */ r(j, {
|
|
223
|
-
value: e,
|
|
224
|
-
depth: 0,
|
|
225
|
-
keyPath: ""
|
|
226
|
-
})
|
|
227
|
-
})
|
|
228
|
-
}), De = ({ depth: e }) => e <= 1;
|
|
229
|
-
export {
|
|
230
|
-
A as a,
|
|
231
|
-
m as c,
|
|
232
|
-
T as d,
|
|
233
|
-
ye as i,
|
|
234
|
-
se as l,
|
|
235
|
-
Ve as n,
|
|
236
|
-
j as o,
|
|
237
|
-
ge as r,
|
|
238
|
-
_e as s,
|
|
239
|
-
De as t,
|
|
240
|
-
u
|
|
241
|
-
};
|
package/dist/layout-BN3KI-Wu.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const v=require("./theme-constants-Do_FO7Uy.cjs");let o=require("clsx"),a=require("react/jsx-runtime"),p=require("@base-ui/react/direction-provider"),s=require("@base-ui/react/collapsible");var f="_container_1ucks_1",b="_animatedCircleLoadingSpin_1ucks_1",y={container:f,animatedCircleLoadingSpin:b},x=({children:e})=>(0,a.jsx)("div",{className:y.container,children:e}),j="_container_vp2nv_1",g="_animatedContainerFadeIn_vp2nv_1",A={container:j,animatedContainerFadeIn:g},h=({children:e})=>(0,a.jsx)("div",{className:A.container,children:e}),C="_fadeIn_15pom_1",I="_animatedEaseInFadeIn_15pom_1",O={fadeIn:C,animatedEaseInFadeIn:I},P=({children:e,duration:n="normal"})=>(0,a.jsx)("div",{className:O.fadeIn,"data-duration":n,children:e}),q="_panel_rreni_1",N={panel:q},W=({children:e,isOpen:n,marginBottom:r,marginTop:t,duration:i="normal"})=>(0,a.jsx)(s.Collapsible.Root,{open:n,children:(0,a.jsx)(s.Collapsible.Panel,{className:N.panel,"data-duration":i,style:{"--animated-ease-in-out-margin-top":t??"0","--animated-ease-in-out-margin-bottom":r??"0"},children:e})}),E="_panel_18upp_1",$="_contained_18upp_25",u={panel:E,contained:$},z=({children:e,isExpanded:n,dimension:r="height",animationDurations:t="default",containAnimation:i=!0})=>{const l=t==="default"?void 0:{"--animated-expandable-opacity-duration":`${t.opacity}s`,"--animated-expandable-size-duration":`${t.size}s`};return(0,a.jsx)(s.Collapsible.Root,{open:n,children:(0,a.jsx)(s.Collapsible.Panel,{className:(0,o.clsx)(u.panel,i&&u.contained),"data-dimension":r,style:l,children:e})})},R="_container_n86lv_1",S="_layer_n86lv_8",L="_visible_n86lv_17",T="_hidden_n86lv_22",d={container:R,layer:S,visible:L,hidden:T},w=({isActive:e,ActiveIcon:n,InactiveIcon:r,size:t})=>{const i=v.useTheme(),l=t??i.icon.size.sm;return(0,a.jsxs)("div",{className:d.container,style:{"--animated-icon-crossfade-size":`${l}px`},children:[(0,a.jsx)("div",{className:(0,o.clsx)(d.layer,e?d.hidden:d.visible),children:(0,a.jsx)(r,{size:l})}),(0,a.jsx)("div",{className:(0,o.clsx)(d.layer,e?d.visible:d.hidden),children:(0,a.jsx)(n,{size:l})})]})},F="_container_1dmel_1",H="_animatedRotateIn_1dmel_1",k="_animateOnHover_1dmel_18",m={container:F,animatedRotateIn:H,animateOnHover:k},D=({children:e,duration:n="fast",animateOnHover:r})=>(0,a.jsx)("div",{className:(0,o.clsx)(m.container,r&&m.animateOnHover),"data-duration":n,children:e}),B="_container_c9ls6_1",G="_nodeWrapper_c9ls6_6",J="_childWrapper_c9ls6_12",_={container:B,nodeWrapper:G,childWrapper:J},K=({children:e,node:n=e,className:r})=>(0,a.jsxs)("div",{className:(0,o.clsx)(_.container,r),children:[(0,a.jsx)("span",{className:_.nodeWrapper,children:n}),(0,a.jsx)("div",{className:_.childWrapper,children:e})]}),M="_section_15iqe_1",Q="_fullWidth_15iqe_5",U="_left_15iqe_9",V="_center_15iqe_13",X="_primary_15iqe_17",Y="_secondary_15iqe_21",Z="_tertiary_15iqe_25",c={section:M,fullWidth:Q,left:U,center:V,primary:X,secondary:Y,tertiary:Z},ee=(function(e){return e.Left="left",e.Center="center",e})({}),ae=(function(e){return e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e})({}),ne=({children:e,className:n,alignment:r="left",fullWidth:t=!0,fontColor:i="primary"})=>(0,a.jsx)("div",{className:(0,o.clsx)(c.section,c[r],c[i],t&&c.fullWidth,n),children:e}),re=({direction:e,children:n})=>(0,a.jsx)(p.DirectionProvider,{direction:e,children:n});Object.defineProperty(exports,"AnimatedCircleLoading",{enumerable:!0,get:function(){return x}});Object.defineProperty(exports,"AnimatedContainer",{enumerable:!0,get:function(){return h}});Object.defineProperty(exports,"AnimatedEaseIn",{enumerable:!0,get:function(){return P}});Object.defineProperty(exports,"AnimatedEaseInOut",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"AnimatedExpandableContainer",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"AnimatedIconCrossfade",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"AnimatedRotate",{enumerable:!0,get:function(){return D}});Object.defineProperty(exports,"AutogrowWrapper",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Section",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"SectionAlignment",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"SectionFontColor",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"TextDirectionProvider",{enumerable:!0,get:function(){return re}});
|
package/dist/layout-LzKpLxiO.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { r as u } from "./theme-constants-DETwIS-a.js";
|
|
2
|
-
import { clsx as o } from "clsx";
|
|
3
|
-
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
4
|
-
import { DirectionProvider as f } from "@base-ui/react/direction-provider";
|
|
5
|
-
import { Collapsible as s } from "@base-ui/react/collapsible";
|
|
6
|
-
var y = "_container_1ucks_1", h = "_animatedCircleLoadingSpin_1ucks_1", I = {
|
|
7
|
-
container: y,
|
|
8
|
-
animatedCircleLoadingSpin: h
|
|
9
|
-
}, Y = ({ children: a }) => /* @__PURE__ */ e("div", {
|
|
10
|
-
className: I.container,
|
|
11
|
-
children: a
|
|
12
|
-
}), A = "_container_vp2nv_1", N = "_animatedContainerFadeIn_vp2nv_1", C = {
|
|
13
|
-
container: A,
|
|
14
|
-
animatedContainerFadeIn: N
|
|
15
|
-
}, Z = ({ children: a }) => /* @__PURE__ */ e("div", {
|
|
16
|
-
className: C.container,
|
|
17
|
-
children: a
|
|
18
|
-
}), W = "_fadeIn_15pom_1", b = "_animatedEaseInFadeIn_15pom_1", x = {
|
|
19
|
-
fadeIn: W,
|
|
20
|
-
animatedEaseInFadeIn: b
|
|
21
|
-
}, aa = ({ children: a, duration: n = "normal" }) => /* @__PURE__ */ e("div", {
|
|
22
|
-
className: x.fadeIn,
|
|
23
|
-
"data-duration": n,
|
|
24
|
-
children: a
|
|
25
|
-
}), g = "_panel_rreni_1", E = { panel: g }, ea = ({ children: a, isOpen: n, marginBottom: r, marginTop: i, duration: t = "normal" }) => /* @__PURE__ */ e(s.Root, {
|
|
26
|
-
open: n,
|
|
27
|
-
children: /* @__PURE__ */ e(s.Panel, {
|
|
28
|
-
className: E.panel,
|
|
29
|
-
"data-duration": t,
|
|
30
|
-
style: {
|
|
31
|
-
"--animated-ease-in-out-margin-top": i ?? "0",
|
|
32
|
-
"--animated-ease-in-out-margin-bottom": r ?? "0"
|
|
33
|
-
},
|
|
34
|
-
children: a
|
|
35
|
-
})
|
|
36
|
-
}), $ = "_panel_18upp_1", q = "_contained_18upp_25", m = {
|
|
37
|
-
panel: $,
|
|
38
|
-
contained: q
|
|
39
|
-
}, na = ({ children: a, isExpanded: n, dimension: r = "height", animationDurations: i = "default", containAnimation: t = !0 }) => {
|
|
40
|
-
const _ = i === "default" ? void 0 : {
|
|
41
|
-
"--animated-expandable-opacity-duration": `${i.opacity}s`,
|
|
42
|
-
"--animated-expandable-size-duration": `${i.size}s`
|
|
43
|
-
};
|
|
44
|
-
return /* @__PURE__ */ e(s.Root, {
|
|
45
|
-
open: n,
|
|
46
|
-
children: /* @__PURE__ */ e(s.Panel, {
|
|
47
|
-
className: o(m.panel, t && m.contained),
|
|
48
|
-
"data-dimension": r,
|
|
49
|
-
style: _,
|
|
50
|
-
children: a
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
}, z = "_container_n86lv_1", R = "_layer_n86lv_8", L = "_visible_n86lv_17", O = "_hidden_n86lv_22", d = {
|
|
54
|
-
container: z,
|
|
55
|
-
layer: R,
|
|
56
|
-
visible: L,
|
|
57
|
-
hidden: O
|
|
58
|
-
}, ra = ({ isActive: a, ActiveIcon: n, InactiveIcon: r, size: i }) => {
|
|
59
|
-
const t = u(), _ = i ?? t.icon.size.sm;
|
|
60
|
-
return /* @__PURE__ */ p("div", {
|
|
61
|
-
className: d.container,
|
|
62
|
-
style: { "--animated-icon-crossfade-size": `${_}px` },
|
|
63
|
-
children: [/* @__PURE__ */ e("div", {
|
|
64
|
-
className: o(d.layer, a ? d.hidden : d.visible),
|
|
65
|
-
children: /* @__PURE__ */ e(r, { size: _ })
|
|
66
|
-
}), /* @__PURE__ */ e("div", {
|
|
67
|
-
className: o(d.layer, a ? d.visible : d.hidden),
|
|
68
|
-
children: /* @__PURE__ */ e(n, { size: _ })
|
|
69
|
-
})]
|
|
70
|
-
});
|
|
71
|
-
}, P = "_container_1dmel_1", S = "_animatedRotateIn_1dmel_1", H = "_animateOnHover_1dmel_18", v = {
|
|
72
|
-
container: P,
|
|
73
|
-
animatedRotateIn: S,
|
|
74
|
-
animateOnHover: H
|
|
75
|
-
}, ia = ({ children: a, duration: n = "fast", animateOnHover: r }) => /* @__PURE__ */ e("div", {
|
|
76
|
-
className: o(v.container, r && v.animateOnHover),
|
|
77
|
-
"data-duration": n,
|
|
78
|
-
children: a
|
|
79
|
-
}), T = "_container_c9ls6_1", j = "_nodeWrapper_c9ls6_6", k = "_childWrapper_c9ls6_12", c = {
|
|
80
|
-
container: T,
|
|
81
|
-
nodeWrapper: j,
|
|
82
|
-
childWrapper: k
|
|
83
|
-
}, ta = ({ children: a, node: n = a, className: r }) => /* @__PURE__ */ p("div", {
|
|
84
|
-
className: o(c.container, r),
|
|
85
|
-
children: [/* @__PURE__ */ e("span", {
|
|
86
|
-
className: c.nodeWrapper,
|
|
87
|
-
children: n
|
|
88
|
-
}), /* @__PURE__ */ e("div", {
|
|
89
|
-
className: c.childWrapper,
|
|
90
|
-
children: a
|
|
91
|
-
})]
|
|
92
|
-
}), w = "_section_15iqe_1", F = "_fullWidth_15iqe_5", B = "_left_15iqe_9", D = "_center_15iqe_13", G = "_primary_15iqe_17", J = "_secondary_15iqe_21", K = "_tertiary_15iqe_25", l = {
|
|
93
|
-
section: w,
|
|
94
|
-
fullWidth: F,
|
|
95
|
-
left: B,
|
|
96
|
-
center: D,
|
|
97
|
-
primary: G,
|
|
98
|
-
secondary: J,
|
|
99
|
-
tertiary: K
|
|
100
|
-
}, da = /* @__PURE__ */ (function(a) {
|
|
101
|
-
return a.Left = "left", a.Center = "center", a;
|
|
102
|
-
})({}), oa = /* @__PURE__ */ (function(a) {
|
|
103
|
-
return a.Primary = "primary", a.Secondary = "secondary", a.Tertiary = "tertiary", a;
|
|
104
|
-
})({}), _a = ({ children: a, className: n, alignment: r = "left", fullWidth: i = !0, fontColor: t = "primary" }) => /* @__PURE__ */ e("div", {
|
|
105
|
-
className: o(l.section, l[r], l[t], i && l.fullWidth, n),
|
|
106
|
-
children: a
|
|
107
|
-
}), la = ({ direction: a, children: n }) => /* @__PURE__ */ e(f, {
|
|
108
|
-
direction: a,
|
|
109
|
-
children: n
|
|
110
|
-
});
|
|
111
|
-
export {
|
|
112
|
-
ta as a,
|
|
113
|
-
na as c,
|
|
114
|
-
Z as d,
|
|
115
|
-
Y as f,
|
|
116
|
-
oa as i,
|
|
117
|
-
ea as l,
|
|
118
|
-
_a as n,
|
|
119
|
-
ia as o,
|
|
120
|
-
da as r,
|
|
121
|
-
ra as s,
|
|
122
|
-
la as t,
|
|
123
|
-
aa as u
|
|
124
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=["http:","https:","mailto:","tel:"],c=t=>{if(t.startsWith("/")&&!t.startsWith("//"))return!0;try{const e=new URL(t);return a.includes(e.protocol)}catch{return!1}},o=t=>{if(!t||t.trim().length===0)return;if(c(t))return t;const e=`https://${t}`;return c(e)?e:void 0},f=/https?:\/\/[^\s<>[\]]+[^\s<>[\].,;:!?)]/g,h=t=>{const e=[];let n=0;for(const i of t.matchAll(f)){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 o}});Object.defineProperty(exports,"linkifyText",{enumerable:!0,get:function(){return h}});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var c = [
|
|
2
|
-
"http:",
|
|
3
|
-
"https:",
|
|
4
|
-
"mailto:",
|
|
5
|
-
"tel:"
|
|
6
|
-
], a = (t) => {
|
|
7
|
-
if (t.startsWith("/") && !t.startsWith("//")) return !0;
|
|
8
|
-
try {
|
|
9
|
-
const e = new URL(t);
|
|
10
|
-
return c.includes(e.protocol);
|
|
11
|
-
} catch {
|
|
12
|
-
return !1;
|
|
13
|
-
}
|
|
14
|
-
}, o = (t) => {
|
|
15
|
-
if (!t || t.trim().length === 0) return;
|
|
16
|
-
if (a(t)) return t;
|
|
17
|
-
const e = `https://${t}`;
|
|
18
|
-
return a(e) ? e : void 0;
|
|
19
|
-
}, h = /https?:\/\/[^\s<>[\]]+[^\s<>[\].,;:!?)]/g, p = (t) => {
|
|
20
|
-
const e = [];
|
|
21
|
-
let n = 0;
|
|
22
|
-
for (const r of t.matchAll(h)) {
|
|
23
|
-
const i = r[0], s = r.index;
|
|
24
|
-
s > n && e.push({
|
|
25
|
-
type: "text",
|
|
26
|
-
content: t.slice(n, s)
|
|
27
|
-
}), e.push({
|
|
28
|
-
type: "link",
|
|
29
|
-
content: i
|
|
30
|
-
}), n = s + i.length;
|
|
31
|
-
}
|
|
32
|
-
return n < t.length && e.push({
|
|
33
|
-
type: "text",
|
|
34
|
-
content: t.slice(n)
|
|
35
|
-
}), e;
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
o as n,
|
|
39
|
-
p as t
|
|
40
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const ve=require("./chunk-u_mIcLyS.cjs"),d=require("./theme-constants-Do_FO7Uy.cjs"),be=require("./utilities-DmbkuukL.cjs"),X=require("./linkifyText-C4_e-MKf.cjs"),B=require("./mergeClassNames-BbJtXN2t.cjs"),je=require("./handleClickableElementKeyDown-CByqtBhO.cjs"),C=require("./data-display-DH28tg-I.cjs"),b=require("./OverflowingTextWithTooltip-C2iADYbv.cjs"),A=require("./input-B1qr987z.cjs"),xe=require("./surfaces-ec8RlQ5J.cjs");let v=require("clsx"),M=require("react");M=ve.__toESM(M,1);let g=require("@sniptt/guards"),e=require("react/jsx-runtime"),Z=require("react-router-dom"),ge=require("@base-ui/react/direction-provider"),w=require("@base-ui/react/tabs"),I=require("@tabler/icons-react");var Ie="_root_5ahh0_1",ye={root:Ie},ee=t=>(0,e.jsx)("a",{className:(0,v.clsx)(ye.root,t.className),href:t.href,onClick:t.onClick,target:t.target,rel:t.rel,children:t.children}),ke="_root_1d4p2_1",pe={root:ke},Ce=({href:t,children:r,onClick:i,maxWidth:a})=>(0,e.jsx)("a",{className:pe.root,style:{"--contact-link-max-width":a??"100%"},target:"_blank",onClick:i,href:X.getSafeUrl(t),children:r}),te="https://github.com/twentyhq/twenty",Me=({version:t})=>(0,e.jsxs)(ee,{href:te,target:"_blank",rel:"noreferrer",children:[(0,e.jsx)(I.IconBrandGithub,{size:d.useTheme().icon.size.md}),t]}),Se="https://cal.com/team/twenty/talk-to-us",Le="https://twenty.com/pricing",re={gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"},Ne="_iconContainer_1ivx0_1",Te="_withBackground_1ivx0_9",H={iconContainer:Ne,withBackground:Te},K=({children:t,className:r,hasBackground:i=!0})=>(0,e.jsx)("div",{className:(0,v.clsx)(H.iconContainer,i&&H.withBackground,r),children:t}),we=({Icon:t,iconThemeColor:r,withContainer:i=!1,withContainerBackground:a=!0})=>{const n=d.useTheme();if(!t)return null;if(d.isDefined(r))return(0,e.jsx)(C.TintedIconTile,{Icon:t,color:r,size:n.icon.size.md,stroke:n.icon.stroke.sm});const o=(0,e.jsx)(t,{size:n.icon.size.md,stroke:n.icon.stroke.sm});return i?(0,e.jsx)(K,{hasBackground:a,children:o}):o},Oe="_iconSwapContainer_g9ywp_1",Pe="_defaultIcon_g9ywp_8",ze="_hoverIcon_g9ywp_13",W={iconSwapContainer:Oe,defaultIcon:Pe,hoverIcon:ze},Be=({LeftIcon:t,iconThemeColor:r,withIconContainer:i=!1,gripIconColor:a})=>{const n=d.useTheme();if(!t)return null;const o=(0,e.jsxs)("div",{className:W.iconSwapContainer,children:[(0,e.jsx)("div",{className:(0,v.clsx)(W.defaultIcon,"grip-swap-default-icon"),children:d.isDefined(r)?(0,e.jsx)(C.TintedIconTile,{Icon:t,color:r,size:n.icon.size.md,stroke:n.icon.stroke.sm}):(0,e.jsx)(t,{size:n.icon.size.md,stroke:n.icon.stroke.sm})}),(0,e.jsx)("div",{className:(0,v.clsx)(W.hoverIcon,"grip-swap-hover-icon"),children:(0,e.jsx)(I.IconGripVertical,{size:n.icon.size.md,stroke:n.icon.stroke.sm,color:a})})]});return i&&!d.isDefined(r)?(0,e.jsx)(K,{children:o}):o},Ae="_menuItemBase_1jkew_1",qe="_hoverableMenuItemBase_1jkew_54",Re="_menuItemLabel_1jkew_136",De="_menuItemLabelLight_1jkew_145",We="_noIconFiller_1jkew_155",Ge="_menuItemLeftContent_1jkew_159",Ke="_menuItemRightContent_1jkew_172",Ee="_draggableItem_1jkew_183",Ue="_menuItemIconCheckContainer_1jkew_189",Fe="_menuItemContextualText_1jkew_196",He="_rightMenuItemContextualText_1jkew_206",j={menuItemBase:Ae,hoverableMenuItemBase:qe,menuItemLabel:Re,menuItemLabelLight:De,noIconFiller:We,menuItemLeftContent:Ge,menuItemRightContent:Ke,draggableItem:Ee,menuItemIconCheckContainer:Ue,menuItemContextualText:Fe,rightMenuItemContextualText:He},S=(0,M.forwardRef)(({accent:t,isKeySelected:r,isHoverBackgroundDisabled:i,hovered:a,disabled:n,focused:o,className:l,children:s,...c},u)=>(0,e.jsx)("div",{ref:u,className:(0,v.clsx)(j.menuItemBase,l),"data-accent":t,"data-key-selected":r||void 0,"data-hover-background-disabled":i||void 0,"data-disabled":n||void 0,"data-focused":o||void 0,...c,children:s}));S.displayName="StyledMenuItemBase";var k=(t,r)=>{const i=(0,M.forwardRef)(({className:a,children:n,...o},l)=>(0,e.jsx)("div",{ref:l,className:(0,v.clsx)(t,a),...o,children:n}));return i.displayName=r,i},L=k(j.menuItemLabel,"StyledMenuItemLabel"),z=k(j.menuItemLabelLight,"StyledMenuItemLabelLight"),nr=k(j.noIconFiller,"StyledNoIconFiller"),y=k(j.menuItemLeftContent,"StyledMenuItemLeftContent"),E=k(j.menuItemRightContent,"StyledMenuItemRightContent"),V=k(j.draggableItem,"StyledDraggableItem"),q=(0,M.forwardRef)(({accent:t,isKeySelected:r,isHoverBackgroundDisabled:i,hovered:a,disabled:n,focused:o,isIconDisplayedOnHoverOnly:l,cursor:s,className:c,children:u,...h},m)=>(0,e.jsx)("div",{ref:m,className:(0,v.clsx)(j.hoverableMenuItemBase,c),"data-accent":t,"data-key-selected":r||void 0,"data-hover-background-disabled":i||void 0,"data-disabled":n||void 0,"data-focused":o||void 0,"data-icon-displayed-on-hover-only":l||void 0,"data-cursor":s,...h,children:u}));q.displayName="StyledHoverableMenuItemBase";var R=({size:t})=>(0,e.jsx)("div",{className:j.menuItemIconCheckContainer,children:(0,e.jsx)(I.IconCheck,{size:t})}),Ve=k(j.menuItemContextualText,"StyledMenuItemContextualText"),ne=k(j.rightMenuItemContextualText,"StyledRightMenuItemContextualText"),$e="_mainText_d0zu3_1",Ye="_menuItemLabelRight_d0zu3_9",$={mainText:$e,menuItemLabelRight:Ye},p=({className:t,LeftComponent:r,LeftIcon:i,iconThemeColor:a,withIconContainer:n=!1,withIconContainerBackground:o=!0,text:l,contextualText:s,contextualTextPosition:c="left",gripMode:u="never",disabled:h=!1})=>{const m=d.useTheme(),f=n?d.themeCssVariables.font.color.tertiary:h?d.themeCssVariables.font.color.extraLight:d.themeCssVariables.font.color.light;return(0,e.jsxs)(y,{className:t,children:[u==="always"&&(n?(0,e.jsx)(K,{hasBackground:o,children:(0,e.jsx)(V,{children:(0,e.jsx)(I.IconGripVertical,{size:m.icon.size.md,stroke:m.icon.stroke.sm,color:f})})}):(0,e.jsx)(V,{children:(0,e.jsx)(I.IconGripVertical,{size:m.icon.size.md,stroke:m.icon.stroke.sm,color:f})})),u==="onHover"?(0,e.jsx)(Be,{LeftIcon:i,iconThemeColor:a,withIconContainer:n,gripIconColor:f}):(0,e.jsx)(we,{Icon:i,iconThemeColor:a,withContainer:n,withContainerBackground:o}),r,(0,e.jsxs)(L,{children:[(0,g.isString)(l)?(0,e.jsx)("div",{className:$.mainText,children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:l})}):l,c==="left"&&(0,e.jsx)(e.Fragment,{children:(0,g.isString)(s)?(0,g.isNonEmptyString)(s)&&(0,e.jsx)(Ve,{children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:`· ${s}`,tooltipContent:s})}):s})]}),c==="right"&&(0,e.jsx)("div",{className:$.menuItemLabelRight,children:(0,e.jsx)(ne,{children:(0,g.isString)(s)?(0,e.jsx)(b.OverflowingTextWithTooltip,{text:s}):s})})]})},Je="_subMenuIcon_j232v_1",Qe="_subMenuIconOpened_j232v_9",Y={subMenuIcon:Je,subMenuIconOpened:Qe},ae=({accent:t="default",className:r,withIconContainer:i=!1,withIconContainerBackground:a=!0,iconButtons:n,isIconDisplayedOnHoverOnly:o=!0,LeftIcon:l,iconThemeColor:s,LeftComponent:c,RightIcon:u,RightComponent:h,onClick:m,onMouseEnter:f,onMouseLeave:_,testId:T,text:se,contextualTextPosition:le="left",contextualText:ue,hasSubMenu:ce=!1,disabled:O=!1,focused:de=!1,selected:me=!1,hotKeys:F,isSubMenuOpened:he=!1})=>{const P=d.useTheme(),fe=Array.isArray(n)&&n.length>0,_e=D=>{m&&(D.preventDefault(),D.stopPropagation(),m?.(D))};return(0,e.jsxs)(q,{"data-testid":T??void 0,onClick:O?void 0:_e,disabled:O,className:r,accent:t,isIconDisplayedOnHoverOnly:o,onMouseEnter:f,onMouseLeave:_,focused:de||me,children:[(0,e.jsx)(p,{LeftIcon:l??void 0,iconThemeColor:s,LeftComponent:c,withIconContainer:i,withIconContainerBackground:a,text:se,contextualText:ue,contextualTextPosition:le,disabled:O}),(0,e.jsxs)(E,{children:[n&&(0,e.jsx)("div",{className:"hoverable-buttons",children:fe&&(0,e.jsx)(A.LightIconButtonGroup,{iconButtons:n,size:"small"})}),F&&(0,e.jsx)(xe.MenuItemHotKeys,{hotKeys:F}),u&&(0,e.jsx)(u,{size:P.icon.size.md,stroke:P.icon.stroke.sm}),h,ce&&(0,e.jsx)("div",{className:(0,v.clsx)(Y.subMenuIcon,he&&Y.subMenuIconOpened),style:{visibility:O?"hidden":"visible"},children:(0,e.jsx)(I.IconChevronRight,{size:P.icon.size.sm,color:P.font.color.light})})]})]})},Xe=({accent:t="default",className:r,iconButtons:i,isIconDisplayedOnHoverOnly:a=!0,isTooltipOpen:n,onClick:o,onMouseEnter:l,onMouseLeave:s,testId:c,avatar:u,hasSubMenu:h=!1,text:m,contextualText:f})=>(0,e.jsx)(ae,{accent:t,className:r,iconButtons:i,isIconDisplayedOnHoverOnly:a,isTooltipOpen:n,LeftComponent:d.isDefined(u)?(0,e.jsx)(C.Avatar,{name:u.name,src:u.src,colorSeed:u.colorSeed,size:u.size,shape:u.shape}):void 0,onClick:o,onMouseEnter:l,onMouseLeave:s,testId:c,text:m,contextualText:f,hasSubMenu:h}),Ze=({LeftIcon:t,withIconContainer:r=!1,accent:i="default",iconButtons:a,onClick:n,text:o,contextualText:l,isDragDisabled:s=!1,className:c,isIconDisplayedOnHoverOnly:u=!0,gripMode:h="never"})=>{const m=Array.isArray(a)&&a.length>0;return(0,e.jsxs)(q,{onClick:n,accent:i,className:c,isIconDisplayedOnHoverOnly:u,cursor:h!=="never"?s?"default":"drag":"default",children:[(0,e.jsx)(p,{LeftIcon:t,text:o,contextualText:l,withIconContainer:r,disabled:s,gripMode:h}),m&&(0,e.jsx)(A.LightIconButtonGroup,{className:"hoverable-buttons",iconButtons:a})]})},et="_container_gnyb3_1",tt={container:et},U=({selected:t,onSelectChange:r,ariaLabel:i})=>(0,e.jsx)("div",{className:tt.container,onClick:a=>a.stopPropagation(),children:(0,e.jsx)(A.Checkbox,{checked:t,onCheckedChange:a=>r?.(a),"aria-label":i})}),rt="_leftContentWithCheckboxContainer_18kjc_1",nt={leftContentWithCheckboxContainer:rt},at=({color:t,LeftIcon:r,iconThemeColor:i,withIconContainer:a=!1,text:n,selected:o,isKeySelected:l,className:s,onSelectChange:c})=>{const u=()=>{c?.(!o)};return(0,e.jsx)(S,{isKeySelected:l,className:s,onClick:u,children:(0,e.jsxs)("div",{className:nt.leftContentWithCheckboxContainer,children:[(0,e.jsx)(U,{selected:o,onSelectChange:c,ariaLabel:n}),t?(0,e.jsx)(C.Tag,{color:t,startIcon:d.isDefined(r)?(0,e.jsx)(r,{}):void 0,children:n}):(0,e.jsx)(p,{LeftIcon:r,iconThemeColor:i,text:n,withIconContainer:a})]})})},it="_leftContentWithCheckboxContainer_ikfhb_1",ot="_textContainer_ikfhb_9",J={leftContentWithCheckboxContainer:it,textContainer:ot},st=({avatar:t,text:r,selected:i,contextualText:a,className:n,isKeySelected:o,onSelectChange:l})=>{const s=()=>{l?.(!i)};return(0,e.jsx)(S,{className:n,onClick:s,isKeySelected:o,children:(0,e.jsxs)("div",{className:J.leftContentWithCheckboxContainer,children:[(0,e.jsx)(U,{selected:i,onSelectChange:l,ariaLabel:r??a??"Select item"}),(0,e.jsxs)(y,{children:[t,(0,e.jsxs)("div",{className:J.textContainer,children:[(0,e.jsx)(L,{children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:r})}),a&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(z,{children:"·"}),(0,e.jsx)(z,{children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:a})})]})]})]})]})})},lt=({color:t,selected:r,className:i,onClick:a,isKeySelected:n,text:o,Icon:l})=>(0,e.jsx)(S,{isKeySelected:n,onClick:a,className:i,children:(0,e.jsxs)(y,{children:[(0,e.jsx)(U,{selected:r,onSelectChange:()=>a?.(),ariaLabel:o}),(0,e.jsx)(C.Tag,{color:t,startIcon:d.isDefined(l)?(0,e.jsx)(l,{}):void 0,children:o})]})}),ut=({LeftIcon:t,withIconContainer:r=!1,text:i,className:a,onClick:n})=>{const o=d.useTheme();return(0,e.jsxs)(S,{onClick:n,className:a,children:[(0,e.jsx)(y,{children:(0,e.jsx)(p,{LeftIcon:t,text:i,withIconContainer:r})}),(0,e.jsx)(I.IconChevronRight,{size:o.icon.size.sm,color:o.font.color.tertiary})]})},ct="_menuItemSelect_rqblm_1",dt={menuItemSelect:ct},N=(0,M.forwardRef)(({disabled:t,focused:r,isKeySelected:i,className:a,children:n,...o},l)=>(0,e.jsx)("div",{ref:l,className:(0,v.clsx)(dt.menuItemSelect,a),"data-disabled":t||void 0,"data-focused":r||void 0,"data-key-selected":i||void 0,...o,children:n}));N.displayName="StyledMenuItemSelect";var mt=({LeftComponent:t,LeftIcon:r,leftIconColor:i,withIconContainer:a=!1,text:n,selected:o,needIconCheck:l=!0,className:s,onClick:c,disabled:u,focused:h,hasSubMenu:m=!1,contextualText:f,contextualTextPosition:_="left"})=>{const T=d.useTheme();return(0,e.jsxs)(N,{onClick:c,className:s,disabled:u,focused:h,role:"option","aria-selected":o,"aria-disabled":u,children:[(0,e.jsx)(p,{LeftComponent:t,LeftIcon:r,iconThemeColor:i,text:n,contextualText:_==="left"?f:null,withIconContainer:a}),(0,e.jsxs)(E,{children:[_==="right"&&(0,e.jsx)(L,{children:(0,g.isString)(f)?(0,e.jsx)(ne,{children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:f})}):f}),o&&l&&(0,e.jsx)(I.IconCheck,{size:T.icon.size.md}),m&&(0,e.jsx)(I.IconChevronRight,{size:T.icon.size.sm,color:T.font.color.tertiary})]})]})},ht="_textContainer_y4rc7_1",ft={textContainer:ht},_t=({avatar:t,text:r,contextualText:i,selected:a,className:n,onClick:o,disabled:l,focused:s,testId:c})=>{const u=d.useTheme();return(0,e.jsxs)(N,{onClick:o,className:n,disabled:l,focused:s,"data-testid":c,role:"option","aria-selected":a,"aria-disabled":l,children:[(0,e.jsxs)(y,{children:[t,(0,e.jsxs)("div",{className:ft.textContainer,children:[(0,e.jsx)(L,{children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:r})}),i&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(z,{children:"·"}),(0,e.jsx)(z,{children:(0,e.jsx)(b.OverflowingTextWithTooltip,{text:i})})]})]})]}),a&&(0,e.jsx)(R,{size:u.icon.size.md})]})},vt=({color:t,selected:r,className:i,onClick:a,disabled:n,focused:o,variant:l="default",colorLabels:s=re})=>{const c=d.useTheme();return(0,e.jsxs)(N,{onClick:a,className:i,disabled:n,focused:o,children:[(0,e.jsxs)(y,{children:[(0,e.jsx)(C.ColorSample,{colorName:t,variant:l}),(0,e.jsx)(L,{children:s[t]})]}),r&&(0,e.jsx)(R,{size:c.icon.size.md})]})},bt=({color:t,selected:r,focused:i,isKeySelected:a,className:n,onClick:o,text:l,variant:s="soft",LeftIcon:c})=>{const u=d.useTheme();return(0,e.jsxs)(N,{onClick:o,className:n,focused:i,isKeySelected:a,children:[(0,e.jsx)(y,{children:(0,e.jsx)(C.Tag,{borderStyle:"dashed",variant:s,color:t,startIcon:d.isDefined(c)?(0,e.jsx)(c,{}):void 0,children:l})}),r&&(0,e.jsx)(R,{size:u.icon.size.md})]})},jt="_suggestionMenuItem_1qyjt_1",xt={suggestionMenuItem:jt},gt=({LeftIcon:t,withIconContainer:r=!1,text:i,contextualText:a=void 0,contextualTextPosition:n="left",className:o,selected:l,onClick:s})=>{const c=u=>{s&&(u.preventDefault(),u.stopPropagation(),s?.(u))};return(0,e.jsx)("li",{className:(0,v.clsx)(xt.suggestionMenuItem,o),"data-selected":l||void 0,role:d.isDefined(s)?"button":void 0,tabIndex:d.isDefined(s)?0:void 0,onClick:c,onKeyDown:je.handleClickableElementKeyDown,children:(0,e.jsx)(y,{children:(0,e.jsx)(p,{LeftIcon:t??void 0,text:i,contextualText:a,contextualTextPosition:n,withIconContainer:r})})})},It="_switchContainer_1l580_1",yt={switchContainer:It},kt=({focused:t,LeftIcon:r,withIconContainer:i=!1,text:a,checked:n,className:o,onCheckedChange:l,size:s="md",disabled:c=!1})=>{const u=()=>{c||l?.(!n)};return(0,e.jsx)(S,{className:o,focused:t,disabled:c,onClick:u,children:(0,e.jsxs)("div",{className:yt.switchContainer,children:[(0,e.jsx)(p,{LeftIcon:r,text:a,withIconContainer:i,disabled:c}),(0,e.jsx)(E,{onClick:h=>h.stopPropagation(),children:(0,e.jsx)(A.Switch,{checked:n,onCheckedChange:c?void 0:l,size:s,disabled:c,"aria-label":a})})]})})},pt="_menuPicker_o8ra4_1",Ct="_iconContainer_o8ra4_41",Mt="_label_o8ra4_50",G={menuPicker:pt,iconContainer:Ct,label:Mt},St=({id:t,icon:r,label:i,selected:a=!1,disabled:n=!1,showLabel:o=!0,onClick:l,className:s,testId:c,tooltipContent:u,tooltipDelay:h=b.TooltipDelay.noDelay,tooltipOffset:m=5})=>{const f=d.useTheme();return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("button",{id:t,disabled:n,onClick:l,className:(0,v.clsx)(G.menuPicker,s),"data-testid":c,"data-selected":a?"":void 0,"aria-pressed":a,"aria-disabled":n,"aria-label":i,children:[(0,e.jsx)("div",{className:G.iconContainer,children:(0,e.jsx)(r,{size:f.icon.size.md,stroke:f.icon.stroke.sm})}),d.isDefined(i)&&o&&(0,e.jsx)("div",{className:G.label,"data-selected":a?"":void 0,"data-disabled":n?"":void 0,children:i})]}),(0,g.isNonEmptyString)(u)&&(0,e.jsx)(b.AppTooltip,{anchorSelect:`#${t}`,offset:m,title:u,place:b.TooltipPosition.Bottom,positionStrategy:"fixed",delay:h,noArrow:!0})]})},Lt="_iconButton_19i33_1",Nt={iconButton:Lt},ie=({Icon:t,isActive:r,onClick:i,ariaLabel:a})=>{const n=d.useTheme();return(0,e.jsx)("button",{type:"button",className:Nt.iconButton,"data-active":r?"":void 0,"aria-label":a,"aria-pressed":r,onClick:i,children:(0,e.jsx)(t,{color:d.themeCssVariables.grayScale.gray10,size:n.icon.size.lg,"aria-hidden":!0})})},Tt="_container_vsk1i_1",wt={container:Tt},Ot=({activeItemName:t,isHidden:r=!1,items:i})=>(0,e.jsx)("nav",{className:wt.container,"data-hidden":r?"":void 0,"aria-hidden":r,children:i.map(({Icon:a,name:n,label:o,onClick:l})=>(0,e.jsx)(ie,{Icon:a,isActive:t===n,onClick:l,ariaLabel:o},n))}),Pt="_clickable_1d60u_1",zt={clickable:Pt},Bt=({className:t,href:r,children:i,onClick:a})=>(0,e.jsx)("div",{children:(0,e.jsx)("div",{className:(0,v.clsx)(zt.clickable,t),children:(0,e.jsx)(Z.Link,{target:"_blank",onClick:a,to:r,children:i})})}),At="_root_os1x1_1",qt={root:At},oe=({label:t,href:r,onClick:i,className:a})=>{if(!(0,g.isNonEmptyString)(t))return(0,e.jsx)(e.Fragment,{});const n=o=>{o.stopPropagation(),i?.(o)};return(0,e.jsx)("a",{href:X.getSafeUrl(r),target:"_blank",rel:"noreferrer",onClick:n,className:(0,v.clsx)(qt.root,a),children:t})},Rt=({label:t,href:r,onClick:i,type:a})=>(0,e.jsx)(oe,{href:r,onClick:i,label:(0,g.isNonEmptyString)(t)?t:be.getDisplayValueByUrlType({type:a,href:r})??r}),Dt="_root_o0irp_1",Wt="_list_o0irp_10",Gt="_tab_o0irp_37",Kt="_content_o0irp_89",Et="_label_o0irp_102",Ut="_startIcon_o0irp_108",Ft="_badge_o0irp_109",Ht="_panel_o0irp_124",Vt="_indicator_o0irp_133",x={root:Dt,list:Wt,tab:Gt,content:Kt,label:Et,startIcon:Ut,badge:Ft,panel:Ht,indicator:Vt},$t=({event:t,direction:r,loopFocus:i})=>{if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;const a=t.currentTarget,n=Array.from(a.querySelectorAll('[role="tab"]')).filter(_=>_.closest('[role="tablist"]')===a),o=n.findIndex(_=>_===t.target);if(o===-1)return;const l=r==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[s,c]=a.getAttribute("aria-orientation")==="vertical"?["ArrowDown","ArrowUp"]:l;if(![s,c,"Home","End"].includes(t.key))return;t.preventBaseUIHandler(),t.preventDefault();const u=n.filter(_=>!_.hasAttribute("data-disabled")&&!_.hasAttribute("disabled")&&_.getAttribute("aria-disabled")!=="true"&&!_.closest("[hidden], [inert]"));if(t.key==="Home"){u[0]?.focus();return}if(t.key==="End"){u[u.length-1]?.focus();return}const h=t.key===c,m=h?[...u].reverse():u,f=m.find(_=>h?n.indexOf(_)<o:n.indexOf(_)>o);if(d.isDefined(f)){f.focus();return}i&&m[0]?.focus()},Yt=({className:t,children:r,onKeyDown:i,loopFocus:a=!0,...n})=>{const o=(0,ge.useDirection)(),l=s=>{if(i?.(s),s.defaultPrevented){s.preventBaseUIHandler();return}s.baseUIHandlerPrevented||$t({event:s,direction:o,loopFocus:a})};return(0,e.jsxs)(w.Tabs.List,{...n,loopFocus:a,onKeyDown:l,className:B.mergeClassNames(x.list,t),children:[r,(0,e.jsx)(w.Tabs.Indicator,{className:x.indicator})]})},Jt=({className:t,...r})=>(0,e.jsx)(w.Tabs.Panel,{...r,className:B.mergeClassNames(x.panel,t)}),Qt=({className:t,...r})=>(0,e.jsx)(w.Tabs.Root,{...r,className:B.mergeClassNames(x.root,t)}),Q=t=>d.isDefined(t)&&!(0,g.isBoolean)(t)&&t!=="",Xt=({className:t,children:r,startIcon:i,badge:a,size:n="sm",...o})=>(0,e.jsx)(w.Tabs.Tab,{...o,className:B.mergeClassNames(x.tab,t),"data-size":n,children:(0,e.jsxs)("span",{className:x.content,children:[Q(i)&&(0,e.jsx)("span",{className:x.startIcon,"aria-hidden":!0,children:i}),(0,e.jsx)("span",{className:x.label,children:r}),Q(a)&&(0,e.jsx)("span",{className:x.badge,children:a})]})}),Zt={Root:Qt,List:Yt,Tab:Xt,Panel:Jt},er="_undecoratedLink_1uam7_1",tr={undecoratedLink:er},rr=({children:t,to:r,replace:i=!1,onClick:a,fullWidth:n=!1})=>(0,e.jsx)(Z.Link,{to:r,replace:i,onClick:a,className:tr.undecoratedLink,style:n?{width:"100%"}:void 0,children:t});Object.defineProperty(exports,"CAL_LINK",{enumerable:!0,get:function(){return Se}});Object.defineProperty(exports,"ClickToActionLink",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"ContactLink",{enumerable:!0,get:function(){return Ce}});Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return re}});Object.defineProperty(exports,"GITHUB_LINK",{enumerable:!0,get:function(){return te}});Object.defineProperty(exports,"GithubVersionLink",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"MenuItem",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"MenuItemAvatar",{enumerable:!0,get:function(){return Xe}});Object.defineProperty(exports,"MenuItemDraggable",{enumerable:!0,get:function(){return Ze}});Object.defineProperty(exports,"MenuItemLeftContent",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"MenuItemMultiSelect",{enumerable:!0,get:function(){return at}});Object.defineProperty(exports,"MenuItemMultiSelectAvatar",{enumerable:!0,get:function(){return st}});Object.defineProperty(exports,"MenuItemMultiSelectTag",{enumerable:!0,get:function(){return lt}});Object.defineProperty(exports,"MenuItemNavigate",{enumerable:!0,get:function(){return ut}});Object.defineProperty(exports,"MenuItemSelect",{enumerable:!0,get:function(){return mt}});Object.defineProperty(exports,"MenuItemSelectAvatar",{enumerable:!0,get:function(){return _t}});Object.defineProperty(exports,"MenuItemSelectColor",{enumerable:!0,get:function(){return vt}});Object.defineProperty(exports,"MenuItemSelectTag",{enumerable:!0,get:function(){return bt}});Object.defineProperty(exports,"MenuItemSuggestion",{enumerable:!0,get:function(){return gt}});Object.defineProperty(exports,"MenuItemSwitch",{enumerable:!0,get:function(){return kt}});Object.defineProperty(exports,"MenuPicker",{enumerable:!0,get:function(){return St}});Object.defineProperty(exports,"NavigationBar",{enumerable:!0,get:function(){return Ot}});Object.defineProperty(exports,"NavigationBarItem",{enumerable:!0,get:function(){return ie}});Object.defineProperty(exports,"RawLink",{enumerable:!0,get:function(){return Bt}});Object.defineProperty(exports,"RoundedLink",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"SocialLink",{enumerable:!0,get:function(){return Rt}});Object.defineProperty(exports,"StyledHoverableMenuItemBase",{enumerable:!0,get:function(){return q}});Object.defineProperty(exports,"StyledMenuItemIconCheck",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"StyledMenuItemLabel",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"StyledMenuItemLeftContent",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"StyledMenuItemSelect",{enumerable:!0,get:function(){return N}});Object.defineProperty(exports,"TWENTY_PRICING_LINK",{enumerable:!0,get:function(){return Le}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return Zt}});Object.defineProperty(exports,"UndecoratedLink",{enumerable:!0,get:function(){return rr}});
|