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,1459 @@
|
|
|
1
|
+
import { Bt as Oe, Cn as Qe, Ei as Ze, En as et, Kc as tt, Nn as rt, Sn as at, Yi as fe, ca as nt, fl as Pe, jo as ot, ks as it, nr as st, nt as ne, pc as lt, wa as be, wn as ct } from "./icon-CDy3-hqV.js";
|
|
2
|
+
import { t as v } from "./isDefined-fMi6eQ4r.js";
|
|
3
|
+
import { r as b, s as L, t as dt } from "./theme-constants-CrrgAYWN.js";
|
|
4
|
+
import { n as ut, t as ee } from "./handleClickableElementKeyDown-CJ_JsX2K.js";
|
|
5
|
+
import { l as mt } from "./utilities-FXsKnNbt.js";
|
|
6
|
+
import { c as _t, o as vt, s as ht } from "./theme-OwFrow8b.js";
|
|
7
|
+
import { n as ft } from "./linkifyText-BINRNP9w.js";
|
|
8
|
+
import { i as Ct, n as pt, r as N, t as bt } from "./Switch-BvVP6vjR.js";
|
|
9
|
+
import { t as q } from "./mergeClassNames-BHKm1BNi.js";
|
|
10
|
+
import { n as gt, t as It } from "./ProgressBar-RWLNIkzm.js";
|
|
11
|
+
import { r as qe, t as G } from "./OverflowingTextWithTooltip-BXWJtb0f.js";
|
|
12
|
+
import { t as Nt } from "./HorizontalSeparator-JwV0dB5W.js";
|
|
13
|
+
import { r as St } from "./ListItem.module-DBhzbt9-.js";
|
|
14
|
+
import { n as yt, t as kt } from "./ListItem-C08r49UJ.js";
|
|
15
|
+
import { t as Tt } from "./Heading-DvxTKEaL.js";
|
|
16
|
+
import { t as wt } from "./Avatar-C_TzSJBe.js";
|
|
17
|
+
import { n as xt, t as Bt } from "./TabsTabContent-BWQCg7Ua.js";
|
|
18
|
+
import { clsx as m } from "clsx";
|
|
19
|
+
import { Fragment as T, jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
20
|
+
import { isArray as Lt, isBoolean as Mt, isNonEmptyArray as zt, isNonEmptyString as A, isNumber as At, isPositiveInteger as Rt, isString as P } from "@sniptt/guards";
|
|
21
|
+
import { Collapsible as we } from "@base-ui/react/collapsible";
|
|
22
|
+
import { createContext as We, forwardRef as ge, useContext as Ie, useId as Ne, useLayoutEffect as Fe, useMemo as $t, useRef as Et, useState as U } from "react";
|
|
23
|
+
import { useRender as te } from "@base-ui/react/use-render";
|
|
24
|
+
import { Store as jt, useStore as Dt } from "@base-ui/utils/store";
|
|
25
|
+
import { useDirection as Ot } from "@base-ui/react/direction-provider";
|
|
26
|
+
import { createPortal as Pt } from "react-dom";
|
|
27
|
+
import { Input as qt } from "@base-ui/react/input";
|
|
28
|
+
var Wt = "_container_2aram_1", Ft = "_itemContainer_2aram_6", oe = {
|
|
29
|
+
container: Wt,
|
|
30
|
+
itemContainer: Ft
|
|
31
|
+
}, Jt = 4, jo = ({ avatars: e, className: r, maxVisible: a = Jt, overflowAvatar: n, overlap: o = "right", overlapOffset: i = "3px" }) => {
|
|
32
|
+
const s = e.slice(0, a);
|
|
33
|
+
if (!s.length && !n) return null;
|
|
34
|
+
const l = { "--avatar-group-overlap-offset": i };
|
|
35
|
+
return /* @__PURE__ */ u("div", {
|
|
36
|
+
className: m(oe.container, r),
|
|
37
|
+
children: [s.map((d, c) => /* @__PURE__ */ t("div", {
|
|
38
|
+
className: oe.itemContainer,
|
|
39
|
+
"data-overlap": o,
|
|
40
|
+
style: l,
|
|
41
|
+
children: d
|
|
42
|
+
}, c)), n && /* @__PURE__ */ t("div", {
|
|
43
|
+
className: oe.itemContainer,
|
|
44
|
+
"data-overlap": o,
|
|
45
|
+
style: l,
|
|
46
|
+
children: n
|
|
47
|
+
})]
|
|
48
|
+
});
|
|
49
|
+
}, Vt = "_container_stu26_1", Ht = "_commandContain_stu26_12", Gt = "_buttonContainer_stu26_16", Kt = "_lineStartSpan_stu26_20", Ut = "_lineSpan_stu26_24", J = {
|
|
50
|
+
container: Vt,
|
|
51
|
+
commandContain: Ht,
|
|
52
|
+
buttonContainer: Gt,
|
|
53
|
+
lineStartSpan: Kt,
|
|
54
|
+
lineSpan: Ut
|
|
55
|
+
}, Do = ({ commands: e, button: r }) => /* @__PURE__ */ u("div", {
|
|
56
|
+
className: J.container,
|
|
57
|
+
children: [/* @__PURE__ */ t("div", {
|
|
58
|
+
className: J.commandContain,
|
|
59
|
+
children: /* @__PURE__ */ t(T, { children: e.map((a, n) => /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ t("span", {
|
|
60
|
+
className: J.lineStartSpan,
|
|
61
|
+
children: "> "
|
|
62
|
+
}), /* @__PURE__ */ t("span", {
|
|
63
|
+
className: J.lineSpan,
|
|
64
|
+
children: a
|
|
65
|
+
})] }, n)) })
|
|
66
|
+
}), r && /* @__PURE__ */ t("div", {
|
|
67
|
+
className: J.buttonContainer,
|
|
68
|
+
children: r
|
|
69
|
+
})]
|
|
70
|
+
}), Yt = "_list_80v6h_1", Xt = "_nested_80v6h_8", xe = {
|
|
71
|
+
list: Yt,
|
|
72
|
+
nested: Xt
|
|
73
|
+
}, Qt = ({ depth: e, className: r, children: a }) => /* @__PURE__ */ t("ul", {
|
|
74
|
+
className: m(xe.list, e > 0 && xe.nested, r),
|
|
75
|
+
children: a
|
|
76
|
+
}), Je = We(void 0), W = () => {
|
|
77
|
+
const e = Ie(Je);
|
|
78
|
+
if (!v(e)) throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");
|
|
79
|
+
return e;
|
|
80
|
+
}, Zt = "_button_1ix33_1", er = "_red_1ix33_17", tr = "_chevron_1ix33_22", ie = {
|
|
81
|
+
button: Zt,
|
|
82
|
+
red: er,
|
|
83
|
+
chevron: tr
|
|
84
|
+
}, rr = ({ isOpen: e, onClick: r, variant: a }) => {
|
|
85
|
+
const n = b(), { arrowButtonCollapsedLabel: o, arrowButtonExpandedLabel: i } = W(), s = a === "blue" ? L.color.blue : a === "red" ? L.font.color.danger : L.font.color.secondary;
|
|
86
|
+
return /* @__PURE__ */ u("button", {
|
|
87
|
+
className: m(ie.button, a === "red" && ie.red),
|
|
88
|
+
onClick: r,
|
|
89
|
+
children: [/* @__PURE__ */ t(ut, { children: e ? i : o }), /* @__PURE__ */ t("div", {
|
|
90
|
+
className: ie.chevron,
|
|
91
|
+
"data-open": e || void 0,
|
|
92
|
+
children: /* @__PURE__ */ t(ct, {
|
|
93
|
+
size: n.icon.size.md,
|
|
94
|
+
color: s
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
}, ar = ({ label: e, value: r, depth: a, keyPath: n, highlighting: o }) => {
|
|
99
|
+
const { emptyArrayLabel: i } = W();
|
|
100
|
+
return /* @__PURE__ */ t(Se, {
|
|
101
|
+
elements: [...r.entries()].map(([s, l]) => ({
|
|
102
|
+
id: s,
|
|
103
|
+
label: String(s),
|
|
104
|
+
value: l
|
|
105
|
+
})),
|
|
106
|
+
renderElementsCount: (s) => `[${s}]`,
|
|
107
|
+
label: e,
|
|
108
|
+
Icon: Oe,
|
|
109
|
+
depth: a,
|
|
110
|
+
emptyElementsText: i,
|
|
111
|
+
keyPath: n,
|
|
112
|
+
highlighting: o
|
|
113
|
+
});
|
|
114
|
+
}, nr = ({ label: e, value: r, depth: a, keyPath: n, highlighting: o }) => {
|
|
115
|
+
const { emptyObjectLabel: i } = W();
|
|
116
|
+
return /* @__PURE__ */ t(Se, {
|
|
117
|
+
elements: Object.entries(r).map(([s, l]) => ({
|
|
118
|
+
id: s,
|
|
119
|
+
label: s,
|
|
120
|
+
value: l
|
|
121
|
+
})),
|
|
122
|
+
renderElementsCount: (s) => `{${s}}`,
|
|
123
|
+
label: e,
|
|
124
|
+
Icon: st,
|
|
125
|
+
depth: a,
|
|
126
|
+
emptyElementsText: i,
|
|
127
|
+
keyPath: n,
|
|
128
|
+
highlighting: o
|
|
129
|
+
});
|
|
130
|
+
}, or = "_labelContainer_1pq94_1", ir = "_blue_1pq94_23", sr = "_red_1pq94_29", se = {
|
|
131
|
+
labelContainer: or,
|
|
132
|
+
blue: ir,
|
|
133
|
+
red: sr
|
|
134
|
+
}, Ve = ({ label: e, Icon: r, highlighting: a }) => {
|
|
135
|
+
const n = b();
|
|
136
|
+
return /* @__PURE__ */ u("span", {
|
|
137
|
+
className: m(se.labelContainer, a === "blue" && se.blue, a === "red" && se.red),
|
|
138
|
+
children: [/* @__PURE__ */ t(r, {
|
|
139
|
+
size: n.icon.size.md,
|
|
140
|
+
color: a === "blue" ? n.color.blue : a === "red" ? n.font.color.danger : n.font.color.tertiary
|
|
141
|
+
}), /* @__PURE__ */ t("span", { children: e })]
|
|
142
|
+
});
|
|
143
|
+
}, lr = "_text_3y2ep_1", cr = "_blue_3y2ep_10", dr = "_red_3y2ep_14", le = {
|
|
144
|
+
text: lr,
|
|
145
|
+
blue: cr,
|
|
146
|
+
red: dr
|
|
147
|
+
}, ur = ({ valueAsString: e, highlighting: r }) => {
|
|
148
|
+
const { onNodeValueClick: a } = W(), n = v(a), o = () => {
|
|
149
|
+
a?.(e);
|
|
150
|
+
}, i = m(le.text, r === "blue" && le.blue, r === "red" && le.red);
|
|
151
|
+
return n ? /* @__PURE__ */ t("span", {
|
|
152
|
+
className: i,
|
|
153
|
+
role: "button",
|
|
154
|
+
tabIndex: 0,
|
|
155
|
+
onClick: o,
|
|
156
|
+
onKeyDown: ee,
|
|
157
|
+
children: e
|
|
158
|
+
}) : /* @__PURE__ */ t("span", {
|
|
159
|
+
className: i,
|
|
160
|
+
children: e
|
|
161
|
+
});
|
|
162
|
+
}, mr = "_listItem_1i7if_1", _r = { listItem: mr }, H = (e) => /* @__PURE__ */ u("li", {
|
|
163
|
+
className: _r.listItem,
|
|
164
|
+
children: [e.label && /* @__PURE__ */ t(Ve, {
|
|
165
|
+
label: e.label,
|
|
166
|
+
Icon: e.Icon,
|
|
167
|
+
highlighting: e.highlighting
|
|
168
|
+
}), /* @__PURE__ */ t(ur, {
|
|
169
|
+
valueAsString: e.valueAsString,
|
|
170
|
+
highlighting: e.highlighting
|
|
171
|
+
})]
|
|
172
|
+
}), vr = (e) => Lt(e), He = ({ label: e, value: r, depth: a, keyPath: n }) => {
|
|
173
|
+
const { getNodeHighlighting: o, emptyStringLabel: i } = W(), s = o?.(n);
|
|
174
|
+
return v(r) ? P(r) ? /* @__PURE__ */ t(H, {
|
|
175
|
+
label: e,
|
|
176
|
+
valueAsString: A(r) ? r : i,
|
|
177
|
+
Icon: tt,
|
|
178
|
+
highlighting: s
|
|
179
|
+
}) : At(r) ? /* @__PURE__ */ t(H, {
|
|
180
|
+
label: e,
|
|
181
|
+
valueAsString: String(r),
|
|
182
|
+
Icon: ot,
|
|
183
|
+
highlighting: s
|
|
184
|
+
}) : Mt(r) ? /* @__PURE__ */ t(H, {
|
|
185
|
+
label: e,
|
|
186
|
+
valueAsString: String(r),
|
|
187
|
+
Icon: Qe,
|
|
188
|
+
highlighting: s
|
|
189
|
+
}) : vr(r) ? /* @__PURE__ */ t(ar, {
|
|
190
|
+
label: e,
|
|
191
|
+
value: r,
|
|
192
|
+
depth: a,
|
|
193
|
+
keyPath: n,
|
|
194
|
+
highlighting: s
|
|
195
|
+
}) : /* @__PURE__ */ t(nr, {
|
|
196
|
+
label: e,
|
|
197
|
+
value: r,
|
|
198
|
+
depth: a,
|
|
199
|
+
keyPath: n,
|
|
200
|
+
highlighting: s
|
|
201
|
+
}) : /* @__PURE__ */ t(H, {
|
|
202
|
+
label: e,
|
|
203
|
+
valueAsString: "null",
|
|
204
|
+
Icon: rt,
|
|
205
|
+
highlighting: s
|
|
206
|
+
});
|
|
207
|
+
}, hr = "_container_1c6yj_1", fr = "_labelContainer_1c6yj_6", Cr = "_elementsCount_1c6yj_12", pr = "_elementsCountRed_1c6yj_16", br = "_panel_1c6yj_20", gr = "_list_1c6yj_30", Ir = "_nested_1c6yj_37", M = {
|
|
208
|
+
container: hr,
|
|
209
|
+
labelContainer: fr,
|
|
210
|
+
elementsCount: Cr,
|
|
211
|
+
elementsCountRed: pr,
|
|
212
|
+
panel: br,
|
|
213
|
+
list: gr,
|
|
214
|
+
nested: Ir
|
|
215
|
+
}, Se = ({ label: e, Icon: r, elements: a, renderElementsCount: n, emptyElementsText: o, depth: i, keyPath: s, highlighting: l }) => {
|
|
216
|
+
const { shouldExpandNodeInitially: d } = W(), c = !v(e), [_, h] = U(d({
|
|
217
|
+
keyPath: s,
|
|
218
|
+
depth: i
|
|
219
|
+
})), f = /* @__PURE__ */ t("ul", {
|
|
220
|
+
className: m(M.list, i > 0 && M.nested),
|
|
221
|
+
children: a.length === 0 ? /* @__PURE__ */ t(H, {
|
|
222
|
+
valueAsString: o,
|
|
223
|
+
highlighting: void 0
|
|
224
|
+
}) : a.map(({ id: p, label: x, value: B }) => {
|
|
225
|
+
const I = A(s) ? `${s}.${p}` : String(p);
|
|
226
|
+
return /* @__PURE__ */ t(He, {
|
|
227
|
+
label: x,
|
|
228
|
+
value: B,
|
|
229
|
+
depth: i + 1,
|
|
230
|
+
keyPath: I
|
|
231
|
+
}, p);
|
|
232
|
+
})
|
|
233
|
+
}), g = () => {
|
|
234
|
+
h(!_);
|
|
235
|
+
};
|
|
236
|
+
return c ? /* @__PURE__ */ t("li", {
|
|
237
|
+
className: M.container,
|
|
238
|
+
children: f
|
|
239
|
+
}) : /* @__PURE__ */ u(we.Root, {
|
|
240
|
+
className: M.container,
|
|
241
|
+
open: _,
|
|
242
|
+
render: /* @__PURE__ */ t("li", {}),
|
|
243
|
+
children: [/* @__PURE__ */ u("div", {
|
|
244
|
+
className: M.labelContainer,
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ t(rr, {
|
|
247
|
+
isOpen: _,
|
|
248
|
+
onClick: g,
|
|
249
|
+
variant: l === "partial-blue" ? "blue" : l === "red" ? l : void 0
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ t(Ve, {
|
|
252
|
+
label: e,
|
|
253
|
+
Icon: r,
|
|
254
|
+
highlighting: l === "red" ? l : void 0
|
|
255
|
+
}),
|
|
256
|
+
n && /* @__PURE__ */ t("span", {
|
|
257
|
+
className: m(M.elementsCount, l === "red" && M.elementsCountRed),
|
|
258
|
+
children: n(a.length)
|
|
259
|
+
})
|
|
260
|
+
]
|
|
261
|
+
}), /* @__PURE__ */ t(we.Panel, {
|
|
262
|
+
className: M.panel,
|
|
263
|
+
children: f
|
|
264
|
+
})]
|
|
265
|
+
});
|
|
266
|
+
}, Nr = ({ value: e, children: r }) => /* @__PURE__ */ t(Je.Provider, {
|
|
267
|
+
value: e,
|
|
268
|
+
children: r
|
|
269
|
+
}), Sr = ({ depth: e }) => e <= 1, Oo = ({ value: e, entries: r, shouldExpandNodeInitially: a = Sr, ...n }) => /* @__PURE__ */ t(Nr, {
|
|
270
|
+
value: {
|
|
271
|
+
...n,
|
|
272
|
+
shouldExpandNodeInitially: a
|
|
273
|
+
},
|
|
274
|
+
children: /* @__PURE__ */ t(Qt, {
|
|
275
|
+
depth: 0,
|
|
276
|
+
children: v(r) ? /* @__PURE__ */ t(Se, {
|
|
277
|
+
elements: r,
|
|
278
|
+
Icon: Oe,
|
|
279
|
+
depth: 0,
|
|
280
|
+
keyPath: "",
|
|
281
|
+
emptyElementsText: n.emptyObjectLabel
|
|
282
|
+
}) : /* @__PURE__ */ t(He, {
|
|
283
|
+
value: e ?? null,
|
|
284
|
+
depth: 0,
|
|
285
|
+
keyPath: ""
|
|
286
|
+
})
|
|
287
|
+
})
|
|
288
|
+
}), yr = "_notificationCounter_1lalu_1", kr = "_primary_1lalu_13", Tr = "_secondary_1lalu_18", Be = {
|
|
289
|
+
notificationCounter: yr,
|
|
290
|
+
primary: kr,
|
|
291
|
+
secondary: Tr
|
|
292
|
+
}, Po = ({ count: e, variant: r = "primary", className: a }) => /* @__PURE__ */ t("div", {
|
|
293
|
+
className: m(Be.notificationCounter, Be[r], a),
|
|
294
|
+
children: e
|
|
295
|
+
}), wr = "_root_j2xk4_1", xr = { root: wr }, Br = ({ $backgroundColor: e, $borderColor: r, $dimension: a, className: n, style: o, ...i }) => /* @__PURE__ */ t("div", {
|
|
296
|
+
...i,
|
|
297
|
+
className: m(xr.root, n),
|
|
298
|
+
style: {
|
|
299
|
+
"--tinted-icon-tile-background-color": e,
|
|
300
|
+
"--tinted-icon-tile-border": r ? `1px solid ${r}` : void 0,
|
|
301
|
+
"--tinted-icon-tile-dimension": a,
|
|
302
|
+
...o
|
|
303
|
+
}
|
|
304
|
+
}), ce = {
|
|
305
|
+
background: 4,
|
|
306
|
+
border: 6,
|
|
307
|
+
icon: 10
|
|
308
|
+
}, de = (e, r) => {
|
|
309
|
+
const a = L.color, n = L.tag.text;
|
|
310
|
+
return a[`${e}${r}`] ?? n[e];
|
|
311
|
+
}, Lr = (e) => {
|
|
312
|
+
const r = mt(e);
|
|
313
|
+
return {
|
|
314
|
+
backgroundColor: de(r, ce.background),
|
|
315
|
+
iconColor: de(r, ce.icon),
|
|
316
|
+
borderColor: de(r, ce.border)
|
|
317
|
+
};
|
|
318
|
+
}, Ge = ({ Icon: e, color: r = _t, size: a, stroke: n }) => {
|
|
319
|
+
const o = b(), i = Lr(r), s = a ?? o.icon.size.md, l = n ?? o.icon.stroke.md, d = v(a) ? `${a}px` : void 0;
|
|
320
|
+
return /* @__PURE__ */ t(Br, {
|
|
321
|
+
$backgroundColor: i.backgroundColor,
|
|
322
|
+
$dimension: d,
|
|
323
|
+
children: /* @__PURE__ */ t(e, {
|
|
324
|
+
size: s,
|
|
325
|
+
stroke: l,
|
|
326
|
+
color: i.iconColor
|
|
327
|
+
})
|
|
328
|
+
});
|
|
329
|
+
}, Mr = "_container_h4v7r_1", zr = "_containerFullWidth_h4v7r_14", Ar = "_containerInfo_h4v7r_18", Rr = "_containerWarning_h4v7r_23", $r = "_containerSuccess_h4v7r_28", Er = "_containerError_h4v7r_33", jr = "_containerNeutral_h4v7r_38", Dr = "_header_h4v7r_43", Or = "_iconContainer_h4v7r_52", Pr = "_iconContainerInfo_h4v7r_61", qr = "_iconContainerWarning_h4v7r_65", Wr = "_iconContainerSuccess_h4v7r_69", Fr = "_iconContainerError_h4v7r_73", Jr = "_iconContainerNeutral_h4v7r_77", Vr = "_title_h4v7r_81", Hr = "_descriptionWrapper_h4v7r_93", Gr = "_descriptionWrapperWithAction_h4v7r_101", Kr = "_description_h4v7r_93", Ur = "_footer_h4v7r_114", Yr = "_closeButton_h4v7r_121", C = {
|
|
330
|
+
container: Mr,
|
|
331
|
+
containerFullWidth: zr,
|
|
332
|
+
containerInfo: Ar,
|
|
333
|
+
containerWarning: Rr,
|
|
334
|
+
containerSuccess: $r,
|
|
335
|
+
containerError: Er,
|
|
336
|
+
containerNeutral: jr,
|
|
337
|
+
header: Dr,
|
|
338
|
+
iconContainer: Or,
|
|
339
|
+
iconContainerInfo: Pr,
|
|
340
|
+
iconContainerWarning: qr,
|
|
341
|
+
iconContainerSuccess: Wr,
|
|
342
|
+
iconContainerError: Fr,
|
|
343
|
+
iconContainerNeutral: Jr,
|
|
344
|
+
title: Vr,
|
|
345
|
+
descriptionWrapper: Hr,
|
|
346
|
+
descriptionWrapperWithAction: Gr,
|
|
347
|
+
description: Kr,
|
|
348
|
+
footer: Ur,
|
|
349
|
+
closeButton: Yr
|
|
350
|
+
}, Xr = {
|
|
351
|
+
info: C.containerInfo,
|
|
352
|
+
warning: C.containerWarning,
|
|
353
|
+
error: C.containerError,
|
|
354
|
+
neutral: C.containerNeutral,
|
|
355
|
+
success: C.containerSuccess
|
|
356
|
+
}, Qr = {
|
|
357
|
+
info: C.iconContainerInfo,
|
|
358
|
+
warning: C.iconContainerWarning,
|
|
359
|
+
error: C.iconContainerError,
|
|
360
|
+
neutral: C.iconContainerNeutral,
|
|
361
|
+
success: C.iconContainerSuccess
|
|
362
|
+
}, qo = ({ variant: e, title: r, description: a, fullWidth: n = !1, Icon: o = nt, action: i, isClosable: s = !1, onClose: l }) => {
|
|
363
|
+
const [d, c] = U(!0), _ = () => {
|
|
364
|
+
s && (c(!1), l?.());
|
|
365
|
+
};
|
|
366
|
+
return d ? /* @__PURE__ */ u("div", {
|
|
367
|
+
className: m(C.container, Xr[e], n && C.containerFullWidth),
|
|
368
|
+
children: [
|
|
369
|
+
/* @__PURE__ */ u("div", {
|
|
370
|
+
className: C.header,
|
|
371
|
+
children: [
|
|
372
|
+
/* @__PURE__ */ t("div", {
|
|
373
|
+
className: m(C.iconContainer, Qr[e]),
|
|
374
|
+
children: /* @__PURE__ */ t(o, { size: 16 })
|
|
375
|
+
}),
|
|
376
|
+
/* @__PURE__ */ t("div", {
|
|
377
|
+
className: C.title,
|
|
378
|
+
children: r
|
|
379
|
+
}),
|
|
380
|
+
s && /* @__PURE__ */ t(N, {
|
|
381
|
+
startIcon: /* @__PURE__ */ t(Pe, {}),
|
|
382
|
+
className: C.closeButton,
|
|
383
|
+
variant: "ghost",
|
|
384
|
+
size: "sm",
|
|
385
|
+
"aria-label": "Close",
|
|
386
|
+
onClick: _
|
|
387
|
+
})
|
|
388
|
+
]
|
|
389
|
+
}),
|
|
390
|
+
A(a) && /* @__PURE__ */ t("div", {
|
|
391
|
+
className: m(C.descriptionWrapper, v(i) && C.descriptionWrapperWithAction),
|
|
392
|
+
children: /* @__PURE__ */ t("div", {
|
|
393
|
+
className: C.description,
|
|
394
|
+
children: a
|
|
395
|
+
})
|
|
396
|
+
}),
|
|
397
|
+
v(i) && /* @__PURE__ */ t("div", {
|
|
398
|
+
className: C.footer,
|
|
399
|
+
children: /* @__PURE__ */ t(N, {
|
|
400
|
+
type: "button",
|
|
401
|
+
onClick: i.onClick,
|
|
402
|
+
size: "sm",
|
|
403
|
+
variant: "ghost",
|
|
404
|
+
style: { fontWeight: "var(--t-font-weight-regular)" },
|
|
405
|
+
children: i.label
|
|
406
|
+
})
|
|
407
|
+
})
|
|
408
|
+
]
|
|
409
|
+
}) : null;
|
|
410
|
+
}, Zr = "_info_phgej_1", ea = "_accentBlue_phgej_14", ta = "_accentDanger_phgej_19", ra = "_textContainer_phgej_24", aa = "_linkContainer_phgej_33", K = {
|
|
411
|
+
info: Zr,
|
|
412
|
+
accentBlue: ea,
|
|
413
|
+
accentDanger: ta,
|
|
414
|
+
textContainer: ra,
|
|
415
|
+
linkContainer: aa
|
|
416
|
+
}, na = {
|
|
417
|
+
blue: K.accentBlue,
|
|
418
|
+
danger: K.accentDanger
|
|
419
|
+
}, Wo = ({ accent: e = "blue", text: r, buttonTitle: a, onClick: n, href: o, render: i }) => {
|
|
420
|
+
const s = b();
|
|
421
|
+
return /* @__PURE__ */ u("div", {
|
|
422
|
+
className: m(K.info, na[e]),
|
|
423
|
+
children: [
|
|
424
|
+
/* @__PURE__ */ u("div", {
|
|
425
|
+
className: K.textContainer,
|
|
426
|
+
children: [/* @__PURE__ */ t(be, { size: s.icon.size.md }), r]
|
|
427
|
+
}),
|
|
428
|
+
a && o && /* @__PURE__ */ t("span", {
|
|
429
|
+
className: K.linkContainer,
|
|
430
|
+
children: /* @__PURE__ */ t(N, {
|
|
431
|
+
href: o,
|
|
432
|
+
render: i,
|
|
433
|
+
size: "sm",
|
|
434
|
+
variant: "outline",
|
|
435
|
+
color: e === "blue" ? "accent" : "danger",
|
|
436
|
+
children: a
|
|
437
|
+
})
|
|
438
|
+
}),
|
|
439
|
+
a && n && !o && /* @__PURE__ */ t(N, {
|
|
440
|
+
onClick: n,
|
|
441
|
+
size: "sm",
|
|
442
|
+
variant: "outline",
|
|
443
|
+
color: e === "blue" ? "accent" : "danger",
|
|
444
|
+
children: a
|
|
445
|
+
})
|
|
446
|
+
]
|
|
447
|
+
});
|
|
448
|
+
}, oa = "_banner_j76tb_1", ia = "_embedded_j76tb_6", sa = "_bannerContent_j76tb_10", la = "_bannerText_j76tb_21", Z = {
|
|
449
|
+
banner: oa,
|
|
450
|
+
embedded: ia,
|
|
451
|
+
bannerContent: sa,
|
|
452
|
+
bannerText: la
|
|
453
|
+
}, Fo = ({ color: e, message: r, embedded: a = !1, button: n, LeftIcon: o = be, className: i }) => {
|
|
454
|
+
const s = b();
|
|
455
|
+
return /* @__PURE__ */ u(gt, {
|
|
456
|
+
className: m(Z.banner, a && Z.embedded, i),
|
|
457
|
+
color: e,
|
|
458
|
+
variant: "secondary",
|
|
459
|
+
children: [/* @__PURE__ */ u("div", {
|
|
460
|
+
className: Z.bannerContent,
|
|
461
|
+
children: [/* @__PURE__ */ t(o, { size: s.icon.size.md }), /* @__PURE__ */ t("div", {
|
|
462
|
+
className: Z.bannerText,
|
|
463
|
+
children: /* @__PURE__ */ t(G, {
|
|
464
|
+
isFocusable: !0,
|
|
465
|
+
text: /* @__PURE__ */ t(T, { children: r }),
|
|
466
|
+
tooltipContent: r
|
|
467
|
+
})
|
|
468
|
+
})]
|
|
469
|
+
}), n && !n.hidden && /* @__PURE__ */ t(N, {
|
|
470
|
+
size: "sm",
|
|
471
|
+
onClick: n?.onClick,
|
|
472
|
+
disabled: n.disabled,
|
|
473
|
+
startIcon: v(n.Icon) ? /* @__PURE__ */ t(n.Icon, {}) : void 0,
|
|
474
|
+
variant: "outline",
|
|
475
|
+
color: e === "danger" ? "danger" : "accent",
|
|
476
|
+
children: n?.title
|
|
477
|
+
})]
|
|
478
|
+
});
|
|
479
|
+
}, Jo = 3, Ke = We(void 0), re = (e) => e.status === "visible", Ue = ({ store: e, toastsToClose: r, nextToasts: a = e.state.toasts }) => {
|
|
480
|
+
const n = a.map((i) => r.includes(i) ? {
|
|
481
|
+
...i,
|
|
482
|
+
status: "closing"
|
|
483
|
+
} : i), o = e.state.mountedToasterCount > 0;
|
|
484
|
+
e.set("toasts", o ? n : n.filter(re));
|
|
485
|
+
for (const i of r) i.notification.onClose?.();
|
|
486
|
+
}, Y = () => {
|
|
487
|
+
const e = Ie(Ke);
|
|
488
|
+
if (!v(e)) throw new Error("Toast components must be used within a ToastProvider.");
|
|
489
|
+
return e;
|
|
490
|
+
}, Ye = () => {
|
|
491
|
+
const e = Y();
|
|
492
|
+
return { closeToast: (a) => {
|
|
493
|
+
const n = e.state.toasts.filter((o) => re(o) && (!v(a) || o.notification.id === a));
|
|
494
|
+
zt(n) && Ue({
|
|
495
|
+
store: e,
|
|
496
|
+
toastsToClose: n
|
|
497
|
+
});
|
|
498
|
+
} };
|
|
499
|
+
}, Le = 0, ca = () => {
|
|
500
|
+
const e = Y();
|
|
501
|
+
return { enqueueToast: $t(() => {
|
|
502
|
+
function r(a) {
|
|
503
|
+
if (!v(a)) return;
|
|
504
|
+
const { dedupeKey: n, ...o } = a, { toasts: i, limit: s } = e.state, l = i.filter(re), d = v(n) ? l.find((h) => h.dedupeKey === n) : void 0;
|
|
505
|
+
if (v(d)) return d.notification.id;
|
|
506
|
+
Le += 1;
|
|
507
|
+
const c = `toast-${Le}`, _ = Math.max(0, l.length - s + 1);
|
|
508
|
+
return Ue({
|
|
509
|
+
store: e,
|
|
510
|
+
toastsToClose: l.slice(0, _),
|
|
511
|
+
nextToasts: [...i, {
|
|
512
|
+
notification: {
|
|
513
|
+
...o,
|
|
514
|
+
id: c
|
|
515
|
+
},
|
|
516
|
+
dedupeKey: n,
|
|
517
|
+
status: "visible"
|
|
518
|
+
}]
|
|
519
|
+
}), c;
|
|
520
|
+
}
|
|
521
|
+
return r;
|
|
522
|
+
}, [e]) };
|
|
523
|
+
}, Vo = () => {
|
|
524
|
+
const { closeToast: e } = Ye(), { enqueueToast: r } = ca();
|
|
525
|
+
return {
|
|
526
|
+
enqueueToast: r,
|
|
527
|
+
closeToast: e
|
|
528
|
+
};
|
|
529
|
+
}, da = () => Dt(Y(), (e) => e.toasts), ua = (e = 3) => {
|
|
530
|
+
if (!Rt(e)) throw new Error("Toast limit must be a positive integer.");
|
|
531
|
+
return new jt({
|
|
532
|
+
toasts: [],
|
|
533
|
+
limit: e,
|
|
534
|
+
mountedToasterCount: 0
|
|
535
|
+
});
|
|
536
|
+
}, ma = "_root_1h3ss_1", _a = "_progress_1h3ss_19", va = "_header_1h3ss_30", ha = "_message_1h3ss_39", fa = "_icon_1h3ss_44", Ca = "_actions_1h3ss_49", pa = "_description_1h3ss_55", ba = "_footer_1h3ss_64", ga = "_footerAction_1h3ss_68", Ia = "_closeButton_1h3ss_75", y = {
|
|
537
|
+
root: ma,
|
|
538
|
+
progress: _a,
|
|
539
|
+
header: va,
|
|
540
|
+
message: ha,
|
|
541
|
+
icon: fa,
|
|
542
|
+
actions: Ca,
|
|
543
|
+
description: pa,
|
|
544
|
+
footer: ba,
|
|
545
|
+
footerAction: ga,
|
|
546
|
+
closeButton: Ia
|
|
547
|
+
}, Na = {
|
|
548
|
+
default: ne,
|
|
549
|
+
error: ne,
|
|
550
|
+
success: lt,
|
|
551
|
+
info: be,
|
|
552
|
+
warning: ne
|
|
553
|
+
}, Sa = ({ children: e, description: r, icon: a, iconLabel: n, action: o, progress: i, duration: s = 6e3, onCancel: l, onClose: d, cancelLabel: c = "Cancel", closeLabel: _ = "Close", variant: h = "default", role: f = "status", className: g, onMouseEnter: p, onMouseLeave: x, render: B, ref: I, ...E }) => {
|
|
554
|
+
const S = b(), [j, D] = U(!1), X = Na[h];
|
|
555
|
+
return te({
|
|
556
|
+
render: B,
|
|
557
|
+
ref: I,
|
|
558
|
+
props: {
|
|
559
|
+
role: f,
|
|
560
|
+
"aria-live": f === "alert" ? "assertive" : "polite",
|
|
561
|
+
...E,
|
|
562
|
+
className: m(y.root, g),
|
|
563
|
+
onMouseEnter: (F) => {
|
|
564
|
+
D(!0), p?.(F);
|
|
565
|
+
},
|
|
566
|
+
onMouseLeave: (F) => {
|
|
567
|
+
D(!1), x?.(F);
|
|
568
|
+
},
|
|
569
|
+
children: /* @__PURE__ */ u(T, { children: [
|
|
570
|
+
/* @__PURE__ */ t("div", {
|
|
571
|
+
className: y.progress,
|
|
572
|
+
"aria-hidden": !0,
|
|
573
|
+
children: /* @__PURE__ */ t(It, {
|
|
574
|
+
barColor: S.snackBar[h].backgroundColor,
|
|
575
|
+
value: i ?? 100,
|
|
576
|
+
countdownDurationInMs: v(i) ? void 0 : s,
|
|
577
|
+
isCountdownPaused: j,
|
|
578
|
+
onCountdownComplete: d
|
|
579
|
+
})
|
|
580
|
+
}),
|
|
581
|
+
/* @__PURE__ */ u("div", {
|
|
582
|
+
className: y.header,
|
|
583
|
+
children: [
|
|
584
|
+
/* @__PURE__ */ t("div", {
|
|
585
|
+
className: y.icon,
|
|
586
|
+
children: a ?? /* @__PURE__ */ t(X, {
|
|
587
|
+
"aria-label": n,
|
|
588
|
+
"aria-hidden": !v(n),
|
|
589
|
+
color: S.snackBar[h].color,
|
|
590
|
+
size: S.icon.size.md
|
|
591
|
+
})
|
|
592
|
+
}),
|
|
593
|
+
/* @__PURE__ */ t("div", {
|
|
594
|
+
className: y.message,
|
|
595
|
+
children: e
|
|
596
|
+
}),
|
|
597
|
+
/* @__PURE__ */ u("div", {
|
|
598
|
+
className: y.actions,
|
|
599
|
+
children: [v(l) && /* @__PURE__ */ t(N, {
|
|
600
|
+
onClick: l,
|
|
601
|
+
size: "sm",
|
|
602
|
+
variant: "ghost",
|
|
603
|
+
style: { fontWeight: "var(--t-font-weight-regular)" },
|
|
604
|
+
children: c
|
|
605
|
+
}), v(d) && /* @__PURE__ */ t(N, {
|
|
606
|
+
title: _,
|
|
607
|
+
"aria-label": _,
|
|
608
|
+
startIcon: /* @__PURE__ */ t(Pe, {}),
|
|
609
|
+
className: y.closeButton,
|
|
610
|
+
variant: "ghost",
|
|
611
|
+
size: "sm",
|
|
612
|
+
onClick: d
|
|
613
|
+
})]
|
|
614
|
+
})
|
|
615
|
+
]
|
|
616
|
+
}),
|
|
617
|
+
v(r) && /* @__PURE__ */ t("div", {
|
|
618
|
+
className: y.description,
|
|
619
|
+
children: r
|
|
620
|
+
}),
|
|
621
|
+
v(o) && /* @__PURE__ */ u("div", {
|
|
622
|
+
className: y.footer,
|
|
623
|
+
children: [/* @__PURE__ */ t(Nt, { noMargin: !0 }), /* @__PURE__ */ t("div", {
|
|
624
|
+
className: y.footerAction,
|
|
625
|
+
children: o
|
|
626
|
+
})]
|
|
627
|
+
})
|
|
628
|
+
] })
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
}, Ho = ({ children: e, limit: r = 3 }) => {
|
|
632
|
+
const [a] = U(() => ua(r));
|
|
633
|
+
return /* @__PURE__ */ t(Ke.Provider, {
|
|
634
|
+
value: a,
|
|
635
|
+
children: e
|
|
636
|
+
});
|
|
637
|
+
}, Me = ({ store: e, toast: r }) => {
|
|
638
|
+
const { toasts: a } = e.state;
|
|
639
|
+
r.status === "closing" && a.includes(r) && e.set("toasts", a.filter((n) => n !== r));
|
|
640
|
+
}, ya = "_root_1q2cc_1", ka = "_item_1q2cc_20", Ta = "_itemContent_1q2cc_47", Ce = {
|
|
641
|
+
root: ya,
|
|
642
|
+
item: ka,
|
|
643
|
+
itemContent: Ta
|
|
644
|
+
}, wa = ({ elementRef: e, toastEntry: r }) => {
|
|
645
|
+
const a = Y();
|
|
646
|
+
return Fe(() => {
|
|
647
|
+
if (r.status === "visible") return;
|
|
648
|
+
const n = e.current?.getAnimations?.() ?? [];
|
|
649
|
+
if (n.length === 0) {
|
|
650
|
+
Me({
|
|
651
|
+
store: a,
|
|
652
|
+
toast: r
|
|
653
|
+
});
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
let o = !1;
|
|
657
|
+
return Promise.allSettled(n.map((i) => i.finished)).then(() => {
|
|
658
|
+
o || Me({
|
|
659
|
+
store: a,
|
|
660
|
+
toast: r
|
|
661
|
+
});
|
|
662
|
+
}), () => {
|
|
663
|
+
o = !0;
|
|
664
|
+
};
|
|
665
|
+
}, [
|
|
666
|
+
e,
|
|
667
|
+
r,
|
|
668
|
+
a
|
|
669
|
+
]), /* @__PURE__ */ t(T, {});
|
|
670
|
+
}, xa = ({ toastEntry: e, getToastProps: r, onClose: a }) => {
|
|
671
|
+
const { notification: n, status: o } = e, { id: i, ...s } = n, l = Et(null);
|
|
672
|
+
return /* @__PURE__ */ u(T, { children: [/* @__PURE__ */ t("div", {
|
|
673
|
+
ref: l,
|
|
674
|
+
className: Ce.item,
|
|
675
|
+
"data-exiting": o === "closing" || void 0,
|
|
676
|
+
inert: o === "closing",
|
|
677
|
+
children: /* @__PURE__ */ t("div", {
|
|
678
|
+
className: Ce.itemContent,
|
|
679
|
+
children: /* @__PURE__ */ t(Sa, {
|
|
680
|
+
...s,
|
|
681
|
+
...r?.(n),
|
|
682
|
+
id: i,
|
|
683
|
+
onClose: () => a(i)
|
|
684
|
+
})
|
|
685
|
+
})
|
|
686
|
+
}), /* @__PURE__ */ t(wa, {
|
|
687
|
+
elementRef: l,
|
|
688
|
+
toastEntry: e
|
|
689
|
+
})] });
|
|
690
|
+
}, Ba = ({ getToastProps: e }) => {
|
|
691
|
+
const r = da(), { closeToast: a } = Ye();
|
|
692
|
+
return r.map((n) => /* @__PURE__ */ t(xa, {
|
|
693
|
+
toastEntry: n,
|
|
694
|
+
getToastProps: e,
|
|
695
|
+
onClose: a
|
|
696
|
+
}, n.notification.id));
|
|
697
|
+
}, La = () => {
|
|
698
|
+
const e = Y();
|
|
699
|
+
return Fe(() => (e.set("mountedToasterCount", e.state.mountedToasterCount + 1), () => {
|
|
700
|
+
e.set("mountedToasterCount", e.state.mountedToasterCount - 1), !(e.state.mountedToasterCount > 0) && e.set("toasts", e.state.toasts.filter(re));
|
|
701
|
+
}), [e]), null;
|
|
702
|
+
}, Go = ({ container: e, getToastProps: r, className: a, render: n, ref: o, ...i }) => {
|
|
703
|
+
const s = dt(), l = Ot(), d = e === void 0 ? s ?? (typeof document > "u" ? null : document.body) : e, c = te({
|
|
704
|
+
render: n,
|
|
705
|
+
ref: o,
|
|
706
|
+
props: {
|
|
707
|
+
role: "region",
|
|
708
|
+
dir: l,
|
|
709
|
+
"aria-label": "Notifications",
|
|
710
|
+
...i,
|
|
711
|
+
className: m(Ce.root, a),
|
|
712
|
+
children: /* @__PURE__ */ u(T, { children: [/* @__PURE__ */ t(La, {}), /* @__PURE__ */ t(Ba, { getToastProps: r })] })
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
return v(d) ? Pt(c, d) : null;
|
|
716
|
+
}, Ma = "_container_1gape_1", za = "_cardInner_1gape_23", ze = {
|
|
717
|
+
container: Ma,
|
|
718
|
+
cardInner: za
|
|
719
|
+
}, Ko = ({ children: e, className: r, ...a }) => /* @__PURE__ */ t(pt, {
|
|
720
|
+
render: /* @__PURE__ */ t("div", {}),
|
|
721
|
+
...a,
|
|
722
|
+
className: q(ze.container, r),
|
|
723
|
+
children: /* @__PURE__ */ t("div", {
|
|
724
|
+
className: ze.cardInner,
|
|
725
|
+
children: e
|
|
726
|
+
})
|
|
727
|
+
}), Aa = "_root_16neu_1", Ra = { root: Aa }, Ae = ({ className: e }) => {
|
|
728
|
+
const r = b();
|
|
729
|
+
return /* @__PURE__ */ t("div", {
|
|
730
|
+
className: m(Ra.root, e),
|
|
731
|
+
children: /* @__PURE__ */ t(at, {
|
|
732
|
+
color: r.grayScale.gray1,
|
|
733
|
+
size: 14
|
|
734
|
+
})
|
|
735
|
+
});
|
|
736
|
+
}, $a = "_container_qsmue_1", Ea = "_colorSchemeBackground_qsmue_6", ja = "_colorSchemeContent_qsmue_22", Da = "_mixedColorSchemeSegment_qsmue_39", Oa = "_checkmarkContainer_qsmue_54", z = {
|
|
737
|
+
container: $a,
|
|
738
|
+
colorSchemeBackground: Ea,
|
|
739
|
+
colorSchemeContent: ja,
|
|
740
|
+
mixedColorSchemeSegment: Da,
|
|
741
|
+
checkmarkContainer: Oa
|
|
742
|
+
}, ue = ({ variant: e, style: r, className: a, onClick: n, onMouseEnter: o, onMouseLeave: i }) => {
|
|
743
|
+
const s = e === "Dark" ? ht : vt, l = m(z.colorSchemeBackground, a), d = {
|
|
744
|
+
"--color-scheme-card-background": s.gray4,
|
|
745
|
+
"--color-scheme-card-border-color": s.gray5,
|
|
746
|
+
"--color-scheme-card-content-background": s.gray1,
|
|
747
|
+
"--color-scheme-card-content-color": s.gray12,
|
|
748
|
+
...r
|
|
749
|
+
}, c = /* @__PURE__ */ t("div", {
|
|
750
|
+
className: z.colorSchemeContent,
|
|
751
|
+
children: "Aa"
|
|
752
|
+
});
|
|
753
|
+
return v(n) ? /* @__PURE__ */ t("div", {
|
|
754
|
+
className: l,
|
|
755
|
+
style: d,
|
|
756
|
+
role: "button",
|
|
757
|
+
tabIndex: 0,
|
|
758
|
+
"aria-label": e,
|
|
759
|
+
onClick: n,
|
|
760
|
+
onKeyDown: ee,
|
|
761
|
+
onMouseEnter: o,
|
|
762
|
+
onMouseLeave: i,
|
|
763
|
+
children: c
|
|
764
|
+
}) : /* @__PURE__ */ t("div", {
|
|
765
|
+
className: l,
|
|
766
|
+
style: d,
|
|
767
|
+
onMouseEnter: o,
|
|
768
|
+
onMouseLeave: i,
|
|
769
|
+
children: c
|
|
770
|
+
});
|
|
771
|
+
}, me = ({ variant: e, selected: r, onClick: a, className: n }) => {
|
|
772
|
+
const o = /* @__PURE__ */ u(T, { children: [/* @__PURE__ */ t(ue, {
|
|
773
|
+
style: {
|
|
774
|
+
borderTopRightRadius: 0,
|
|
775
|
+
borderBottomRightRadius: 0
|
|
776
|
+
},
|
|
777
|
+
variant: "Light"
|
|
778
|
+
}), /* @__PURE__ */ t(ue, {
|
|
779
|
+
style: {
|
|
780
|
+
borderTopLeftRadius: 0,
|
|
781
|
+
borderBottomLeftRadius: 0
|
|
782
|
+
},
|
|
783
|
+
variant: "Dark"
|
|
784
|
+
})] });
|
|
785
|
+
return e === "System" ? /* @__PURE__ */ u("div", {
|
|
786
|
+
className: m(z.container, n),
|
|
787
|
+
children: [v(a) ? /* @__PURE__ */ t("div", {
|
|
788
|
+
className: z.mixedColorSchemeSegment,
|
|
789
|
+
role: "button",
|
|
790
|
+
tabIndex: 0,
|
|
791
|
+
"aria-label": e,
|
|
792
|
+
onClick: a,
|
|
793
|
+
onKeyDown: ee,
|
|
794
|
+
children: o
|
|
795
|
+
}) : /* @__PURE__ */ t("div", {
|
|
796
|
+
className: z.mixedColorSchemeSegment,
|
|
797
|
+
children: o
|
|
798
|
+
}), /* @__PURE__ */ t("div", {
|
|
799
|
+
className: z.checkmarkContainer,
|
|
800
|
+
"data-selected": r || void 0,
|
|
801
|
+
children: /* @__PURE__ */ t(Ae, {})
|
|
802
|
+
})]
|
|
803
|
+
}) : /* @__PURE__ */ u("div", {
|
|
804
|
+
className: m(z.container, n),
|
|
805
|
+
children: [/* @__PURE__ */ t(ue, {
|
|
806
|
+
variant: e,
|
|
807
|
+
onClick: a
|
|
808
|
+
}), /* @__PURE__ */ t("div", {
|
|
809
|
+
className: z.checkmarkContainer,
|
|
810
|
+
"data-selected": r || void 0,
|
|
811
|
+
children: /* @__PURE__ */ t(Ae, {})
|
|
812
|
+
})]
|
|
813
|
+
});
|
|
814
|
+
}, Pa = "_container_pqcwk_1", qa = "_cardContainer_pqcwk_13", Wa = "_card_pqcwk_13", Fa = "_label_pqcwk_29", k = {
|
|
815
|
+
container: Pa,
|
|
816
|
+
cardContainer: qa,
|
|
817
|
+
card: Wa,
|
|
818
|
+
label: Fa
|
|
819
|
+
}, Uo = ({ value: e, onChange: r, className: a, lightLabel: n, darkLabel: o, systemLabel: i }) => /* @__PURE__ */ u("div", {
|
|
820
|
+
className: m(k.container, a),
|
|
821
|
+
children: [
|
|
822
|
+
/* @__PURE__ */ u("div", {
|
|
823
|
+
className: k.cardContainer,
|
|
824
|
+
children: [/* @__PURE__ */ t(me, {
|
|
825
|
+
className: k.card,
|
|
826
|
+
onClick: () => r("Light"),
|
|
827
|
+
variant: "Light",
|
|
828
|
+
selected: e === "Light"
|
|
829
|
+
}), /* @__PURE__ */ t("span", {
|
|
830
|
+
className: k.label,
|
|
831
|
+
children: n
|
|
832
|
+
})]
|
|
833
|
+
}),
|
|
834
|
+
/* @__PURE__ */ u("div", {
|
|
835
|
+
className: k.cardContainer,
|
|
836
|
+
children: [/* @__PURE__ */ t(me, {
|
|
837
|
+
className: k.card,
|
|
838
|
+
onClick: () => r("Dark"),
|
|
839
|
+
variant: "Dark",
|
|
840
|
+
selected: e === "Dark"
|
|
841
|
+
}), /* @__PURE__ */ t("span", {
|
|
842
|
+
className: k.label,
|
|
843
|
+
children: o
|
|
844
|
+
})]
|
|
845
|
+
}),
|
|
846
|
+
/* @__PURE__ */ u("div", {
|
|
847
|
+
className: k.cardContainer,
|
|
848
|
+
children: [/* @__PURE__ */ t(me, {
|
|
849
|
+
className: k.card,
|
|
850
|
+
onClick: () => r("System"),
|
|
851
|
+
variant: "System",
|
|
852
|
+
selected: e === "System"
|
|
853
|
+
}), /* @__PURE__ */ t("span", {
|
|
854
|
+
className: k.label,
|
|
855
|
+
children: i
|
|
856
|
+
})]
|
|
857
|
+
})
|
|
858
|
+
]
|
|
859
|
+
}), Ja = "_button_190l2_1", Va = "_tooltipAnchor_190l2_28", Ha = "_icon_190l2_32", _e = {
|
|
860
|
+
button: Ja,
|
|
861
|
+
tooltipAnchor: Va,
|
|
862
|
+
icon: Ha
|
|
863
|
+
}, Ga = ({ children: e, size: r = "md", shape: a = "square", className: n, tooltip: o, tooltipPlace: i = "bottom", tooltipDelay: s = 1e3, tooltipOffset: l = 5, disabled: d, loading: c, ..._ }) => {
|
|
864
|
+
const h = Ie(Ct)?.size ?? r, f = A(o), g = d || c, p = /* @__PURE__ */ t(N, {
|
|
865
|
+
..._,
|
|
866
|
+
size: r === "xs" ? "sm" : r,
|
|
867
|
+
"data-icon-size": h,
|
|
868
|
+
"data-shape": a,
|
|
869
|
+
disabled: d,
|
|
870
|
+
loading: c,
|
|
871
|
+
startIcon: /* @__PURE__ */ t("span", {
|
|
872
|
+
className: _e.icon,
|
|
873
|
+
children: e
|
|
874
|
+
}),
|
|
875
|
+
className: q(_e.button, n)
|
|
876
|
+
});
|
|
877
|
+
return f ? /* @__PURE__ */ t(qe, {
|
|
878
|
+
content: o,
|
|
879
|
+
delay: s,
|
|
880
|
+
side: i,
|
|
881
|
+
sideOffset: l,
|
|
882
|
+
children: g ? /* @__PURE__ */ t("span", {
|
|
883
|
+
className: _e.tooltipAnchor,
|
|
884
|
+
children: p
|
|
885
|
+
}) : p
|
|
886
|
+
}) : p;
|
|
887
|
+
}, Ka = "_button_k3e4y_1", Ua = { button: Ka }, Yo = ({ className: e, emphasis: r = "standard", size: a = "sm", variant: n = "ghost", ...o }) => /* @__PURE__ */ t(N, {
|
|
888
|
+
...o,
|
|
889
|
+
size: a,
|
|
890
|
+
variant: n,
|
|
891
|
+
"data-emphasis": r,
|
|
892
|
+
className: q(Ua.button, e)
|
|
893
|
+
}), Ya = "_button_prhtf_1", Xa = { button: Ya }, Xo = ({ className: e, emphasis: r = "standard", size: a = "sm", variant: n = "ghost", ...o }) => /* @__PURE__ */ t(Ga, {
|
|
894
|
+
...o,
|
|
895
|
+
size: a,
|
|
896
|
+
variant: n,
|
|
897
|
+
"data-emphasis": r,
|
|
898
|
+
className: q(Xa.button, e)
|
|
899
|
+
}), Qa = "_button_1fwx7_1", Za = { button: Qa }, Qo = ({ className: e, elevated: r = !0, variant: a = "solid", ...n }) => /* @__PURE__ */ t(N, {
|
|
900
|
+
...n,
|
|
901
|
+
elevated: r,
|
|
902
|
+
variant: a,
|
|
903
|
+
className: q(Za.button, e)
|
|
904
|
+
}), en = "_wrapper_1c0v5_1", tn = "_filterButton_1c0v5_8", rn = "_filterIcon_1c0v5_16", an = "_inputContainer_1c0v5_20", nn = "_iconContainer_1c0v5_37", on = "_input_1c0v5_20", O = {
|
|
905
|
+
wrapper: en,
|
|
906
|
+
filterButton: tn,
|
|
907
|
+
filterIcon: rn,
|
|
908
|
+
inputContainer: an,
|
|
909
|
+
iconContainer: nn,
|
|
910
|
+
input: on
|
|
911
|
+
}, Zo = ({ value: e, onChange: r, placeholder: a, filterDropdown: n, autoFocus: o, disabled: i, className: s, id: l, filterButtonAriaLabel: d = "Filter", "aria-label": c, "aria-labelledby": _ }) => {
|
|
912
|
+
const h = b(), [f, g] = U(!1), p = Ne(), x = l ?? p, B = /* @__PURE__ */ t(N, {
|
|
913
|
+
variant: "outline",
|
|
914
|
+
"aria-label": d,
|
|
915
|
+
startIcon: /* @__PURE__ */ t("span", {
|
|
916
|
+
className: O.filterIcon,
|
|
917
|
+
children: /* @__PURE__ */ t(Ze, { size: h.icon.size.md })
|
|
918
|
+
}),
|
|
919
|
+
className: O.filterButton
|
|
920
|
+
});
|
|
921
|
+
return /* @__PURE__ */ u("div", {
|
|
922
|
+
className: m(O.wrapper, s),
|
|
923
|
+
children: [/* @__PURE__ */ u("div", {
|
|
924
|
+
className: O.inputContainer,
|
|
925
|
+
children: [/* @__PURE__ */ t("div", {
|
|
926
|
+
className: O.iconContainer,
|
|
927
|
+
"data-focused": f || void 0,
|
|
928
|
+
"aria-hidden": !0,
|
|
929
|
+
children: /* @__PURE__ */ t(it, { size: h.icon.size.md })
|
|
930
|
+
}), /* @__PURE__ */ t(qt, {
|
|
931
|
+
id: x,
|
|
932
|
+
className: O.input,
|
|
933
|
+
value: e,
|
|
934
|
+
onValueChange: (I) => r(I),
|
|
935
|
+
onFocus: () => g(!0),
|
|
936
|
+
onBlur: () => g(!1),
|
|
937
|
+
placeholder: a,
|
|
938
|
+
autoFocus: o,
|
|
939
|
+
disabled: i,
|
|
940
|
+
"aria-label": _ ? void 0 : c ?? a,
|
|
941
|
+
"aria-labelledby": _
|
|
942
|
+
})]
|
|
943
|
+
}), n && n(B)]
|
|
944
|
+
});
|
|
945
|
+
}, ei = ({ children: e, startIcon: r, description: a, focused: n = !1, checked: o, defaultChecked: i, onCheckedChange: s, disabled: l = !1, readOnly: d = !1, size: c = "sm", name: _, value: h, required: f, className: g, style: p, ref: x, ...B }) => {
|
|
946
|
+
const I = Ne(), E = `${I}-label`, S = `${I}-description`, j = St(a);
|
|
947
|
+
return /* @__PURE__ */ t(kt, {
|
|
948
|
+
className: g,
|
|
949
|
+
style: p,
|
|
950
|
+
startIcon: r,
|
|
951
|
+
focused: n,
|
|
952
|
+
disabled: l,
|
|
953
|
+
description: j && /* @__PURE__ */ t("span", {
|
|
954
|
+
id: S,
|
|
955
|
+
children: a
|
|
956
|
+
}),
|
|
957
|
+
render: (D) => /* @__PURE__ */ t("label", {
|
|
958
|
+
...B,
|
|
959
|
+
...D,
|
|
960
|
+
htmlFor: I,
|
|
961
|
+
ref: x
|
|
962
|
+
}),
|
|
963
|
+
endIcon: /* @__PURE__ */ t(bt, {
|
|
964
|
+
id: I,
|
|
965
|
+
"aria-labelledby": E,
|
|
966
|
+
"aria-describedby": j ? S : void 0,
|
|
967
|
+
checked: o,
|
|
968
|
+
defaultChecked: i,
|
|
969
|
+
onCheckedChange: s,
|
|
970
|
+
disabled: l,
|
|
971
|
+
readOnly: d,
|
|
972
|
+
size: c,
|
|
973
|
+
name: _,
|
|
974
|
+
value: h,
|
|
975
|
+
required: f
|
|
976
|
+
}),
|
|
977
|
+
children: /* @__PURE__ */ t("span", {
|
|
978
|
+
id: E,
|
|
979
|
+
children: e
|
|
980
|
+
})
|
|
981
|
+
});
|
|
982
|
+
}, sn = "_container_gwbng_1", ln = "_layer_gwbng_8", cn = "_visible_gwbng_22", dn = "_hidden_gwbng_27", $ = {
|
|
983
|
+
container: sn,
|
|
984
|
+
layer: ln,
|
|
985
|
+
visible: cn,
|
|
986
|
+
hidden: dn
|
|
987
|
+
}, ti = ({ isActive: e, ActiveIcon: r, InactiveIcon: a, size: n }) => {
|
|
988
|
+
const o = b(), i = n ?? o.icon.size.sm;
|
|
989
|
+
return /* @__PURE__ */ u("div", {
|
|
990
|
+
className: $.container,
|
|
991
|
+
style: { "--animated-icon-crossfade-size": `${i}px` },
|
|
992
|
+
children: [/* @__PURE__ */ t("div", {
|
|
993
|
+
className: m($.layer, e ? $.hidden : $.visible),
|
|
994
|
+
children: /* @__PURE__ */ t(a, { size: i })
|
|
995
|
+
}), /* @__PURE__ */ t("div", {
|
|
996
|
+
className: m($.layer, e ? $.visible : $.hidden),
|
|
997
|
+
children: /* @__PURE__ */ t(r, { size: i })
|
|
998
|
+
})]
|
|
999
|
+
});
|
|
1000
|
+
}, un = "_header_1r38k_1", mn = "_titleRow_1r38k_8", _n = "_title_1r38k_8", vn = "_adornment_1r38k_21", hn = "_description_1r38k_27", V = {
|
|
1001
|
+
header: un,
|
|
1002
|
+
titleRow: mn,
|
|
1003
|
+
title: _n,
|
|
1004
|
+
adornment: vn,
|
|
1005
|
+
description: hn
|
|
1006
|
+
}, fn = ({ title: e, description: r, adornment: a, level: n = 2, size: o = "md", color: i = "primary", descriptionLineClamp: s = 5, render: l, ref: d, className: c, ..._ }) => {
|
|
1007
|
+
const h = Ne(), f = P(r) ? A(r) : v(r) && r !== !1;
|
|
1008
|
+
return te({
|
|
1009
|
+
render: l,
|
|
1010
|
+
ref: d,
|
|
1011
|
+
props: {
|
|
1012
|
+
..._,
|
|
1013
|
+
className: m(V.header, c),
|
|
1014
|
+
children: /* @__PURE__ */ u(T, { children: [/* @__PURE__ */ u("div", {
|
|
1015
|
+
className: V.titleRow,
|
|
1016
|
+
children: [/* @__PURE__ */ t(Tt, {
|
|
1017
|
+
level: n,
|
|
1018
|
+
size: o,
|
|
1019
|
+
color: i,
|
|
1020
|
+
className: V.title,
|
|
1021
|
+
"aria-describedby": f ? h : void 0,
|
|
1022
|
+
children: e
|
|
1023
|
+
}), v(a) && /* @__PURE__ */ t("div", {
|
|
1024
|
+
className: V.adornment,
|
|
1025
|
+
children: a
|
|
1026
|
+
})]
|
|
1027
|
+
}), f && /* @__PURE__ */ t("div", {
|
|
1028
|
+
id: h,
|
|
1029
|
+
className: V.description,
|
|
1030
|
+
children: P(r) ? /* @__PURE__ */ t(G, {
|
|
1031
|
+
text: r,
|
|
1032
|
+
displayedMaxRows: s,
|
|
1033
|
+
isTooltipMultiline: !0,
|
|
1034
|
+
isFocusable: !0
|
|
1035
|
+
}) : r
|
|
1036
|
+
})] })
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
}, Cn = "_root_ztxxm_1", pn = "_fullWidth_ztxxm_20", Re = {
|
|
1040
|
+
root: Cn,
|
|
1041
|
+
fullWidth: pn
|
|
1042
|
+
}, bn = ({ align: e = "left", color: r = "primary", fullWidth: a = !0, className: n, render: o, ref: i, ...s }) => te({
|
|
1043
|
+
render: o,
|
|
1044
|
+
ref: i,
|
|
1045
|
+
props: {
|
|
1046
|
+
...s,
|
|
1047
|
+
"data-align": e,
|
|
1048
|
+
"data-color": r,
|
|
1049
|
+
className: m(Re.root, a && Re.fullWidth, n)
|
|
1050
|
+
}
|
|
1051
|
+
}), ri = {
|
|
1052
|
+
Root: bn,
|
|
1053
|
+
Header: fn
|
|
1054
|
+
}, ai = {
|
|
1055
|
+
gray: "Gray",
|
|
1056
|
+
tomato: "Tomato",
|
|
1057
|
+
red: "Red",
|
|
1058
|
+
ruby: "Ruby",
|
|
1059
|
+
crimson: "Crimson",
|
|
1060
|
+
pink: "Pink",
|
|
1061
|
+
plum: "Plum",
|
|
1062
|
+
purple: "Purple",
|
|
1063
|
+
violet: "Violet",
|
|
1064
|
+
iris: "Iris",
|
|
1065
|
+
cyan: "Cyan",
|
|
1066
|
+
turquoise: "Turquoise",
|
|
1067
|
+
sky: "Sky",
|
|
1068
|
+
blue: "Blue",
|
|
1069
|
+
jade: "Jade",
|
|
1070
|
+
green: "Green",
|
|
1071
|
+
grass: "Grass",
|
|
1072
|
+
mint: "Mint",
|
|
1073
|
+
lime: "Lime",
|
|
1074
|
+
bronze: "Bronze",
|
|
1075
|
+
gold: "Gold",
|
|
1076
|
+
brown: "Brown",
|
|
1077
|
+
orange: "Orange",
|
|
1078
|
+
amber: "Amber",
|
|
1079
|
+
yellow: "Yellow"
|
|
1080
|
+
}, gn = "_iconContainer_1ivx0_1", In = "_withBackground_1ivx0_9", $e = {
|
|
1081
|
+
iconContainer: gn,
|
|
1082
|
+
withBackground: In
|
|
1083
|
+
}, ye = ({ children: e, className: r, hasBackground: a = !0 }) => /* @__PURE__ */ t("div", {
|
|
1084
|
+
className: m($e.iconContainer, a && $e.withBackground, r),
|
|
1085
|
+
children: e
|
|
1086
|
+
}), Nn = ({ Icon: e, iconThemeColor: r, withContainer: a = !1, withContainerBackground: n = !0 }) => {
|
|
1087
|
+
const o = b();
|
|
1088
|
+
if (!e) return null;
|
|
1089
|
+
if (v(r)) return /* @__PURE__ */ t(Ge, {
|
|
1090
|
+
Icon: e,
|
|
1091
|
+
color: r,
|
|
1092
|
+
size: o.icon.size.md,
|
|
1093
|
+
stroke: o.icon.stroke.sm
|
|
1094
|
+
});
|
|
1095
|
+
const i = /* @__PURE__ */ t(e, {
|
|
1096
|
+
size: o.icon.size.md,
|
|
1097
|
+
stroke: o.icon.stroke.sm
|
|
1098
|
+
});
|
|
1099
|
+
return a ? /* @__PURE__ */ t(ye, {
|
|
1100
|
+
hasBackground: n,
|
|
1101
|
+
children: i
|
|
1102
|
+
}) : i;
|
|
1103
|
+
}, Sn = "_iconSwapContainer_g9ywp_1", yn = "_defaultIcon_g9ywp_8", kn = "_hoverIcon_g9ywp_13", ve = {
|
|
1104
|
+
iconSwapContainer: Sn,
|
|
1105
|
+
defaultIcon: yn,
|
|
1106
|
+
hoverIcon: kn
|
|
1107
|
+
}, Tn = ({ LeftIcon: e, iconThemeColor: r, withIconContainer: a = !1, gripIconColor: n }) => {
|
|
1108
|
+
const o = b();
|
|
1109
|
+
if (!e) return null;
|
|
1110
|
+
const i = /* @__PURE__ */ u("div", {
|
|
1111
|
+
className: ve.iconSwapContainer,
|
|
1112
|
+
children: [/* @__PURE__ */ t("div", {
|
|
1113
|
+
className: m(ve.defaultIcon, "grip-swap-default-icon"),
|
|
1114
|
+
children: v(r) ? /* @__PURE__ */ t(Ge, {
|
|
1115
|
+
Icon: e,
|
|
1116
|
+
color: r,
|
|
1117
|
+
size: o.icon.size.md,
|
|
1118
|
+
stroke: o.icon.stroke.sm
|
|
1119
|
+
}) : /* @__PURE__ */ t(e, {
|
|
1120
|
+
size: o.icon.size.md,
|
|
1121
|
+
stroke: o.icon.stroke.sm
|
|
1122
|
+
})
|
|
1123
|
+
}), /* @__PURE__ */ t("div", {
|
|
1124
|
+
className: m(ve.hoverIcon, "grip-swap-hover-icon"),
|
|
1125
|
+
children: /* @__PURE__ */ t(fe, {
|
|
1126
|
+
size: o.icon.size.md,
|
|
1127
|
+
stroke: o.icon.stroke.sm,
|
|
1128
|
+
color: n
|
|
1129
|
+
})
|
|
1130
|
+
})]
|
|
1131
|
+
});
|
|
1132
|
+
return a && !v(r) ? /* @__PURE__ */ t(ye, { children: i }) : i;
|
|
1133
|
+
}, wn = "_menuItemBase_1jkew_1", xn = "_hoverableMenuItemBase_1jkew_54", Bn = "_menuItemLabel_1jkew_136", Ln = "_menuItemLabelLight_1jkew_145", Mn = "_noIconFiller_1jkew_155", zn = "_menuItemLeftContent_1jkew_159", An = "_menuItemRightContent_1jkew_172", Rn = "_draggableItem_1jkew_183", $n = "_menuItemIconCheckContainer_1jkew_189", En = "_menuItemContextualText_1jkew_196", jn = "_rightMenuItemContextualText_1jkew_206", w = {
|
|
1134
|
+
menuItemBase: wn,
|
|
1135
|
+
hoverableMenuItemBase: xn,
|
|
1136
|
+
menuItemLabel: Bn,
|
|
1137
|
+
menuItemLabelLight: Ln,
|
|
1138
|
+
noIconFiller: Mn,
|
|
1139
|
+
menuItemLeftContent: zn,
|
|
1140
|
+
menuItemRightContent: An,
|
|
1141
|
+
draggableItem: Rn,
|
|
1142
|
+
menuItemIconCheckContainer: $n,
|
|
1143
|
+
menuItemContextualText: En,
|
|
1144
|
+
rightMenuItemContextualText: jn
|
|
1145
|
+
}, Dn = ge(({ accent: e, isKeySelected: r, isHoverBackgroundDisabled: a, hovered: n, disabled: o, focused: i, className: s, children: l, ...d }, c) => /* @__PURE__ */ t("div", {
|
|
1146
|
+
ref: c,
|
|
1147
|
+
className: m(w.menuItemBase, s),
|
|
1148
|
+
"data-accent": e,
|
|
1149
|
+
"data-key-selected": r || void 0,
|
|
1150
|
+
"data-hover-background-disabled": a || void 0,
|
|
1151
|
+
"data-disabled": o || void 0,
|
|
1152
|
+
"data-focused": i || void 0,
|
|
1153
|
+
...d,
|
|
1154
|
+
children: l
|
|
1155
|
+
}));
|
|
1156
|
+
Dn.displayName = "StyledMenuItemBase";
|
|
1157
|
+
var R = (e, r) => {
|
|
1158
|
+
const a = ge(({ className: n, children: o, ...i }, s) => /* @__PURE__ */ t("div", {
|
|
1159
|
+
ref: s,
|
|
1160
|
+
className: m(e, n),
|
|
1161
|
+
...i,
|
|
1162
|
+
children: o
|
|
1163
|
+
}));
|
|
1164
|
+
return a.displayName = r, a;
|
|
1165
|
+
}, On = R(w.menuItemLabel, "StyledMenuItemLabel"), ni = R(w.menuItemLabelLight, "StyledMenuItemLabelLight"), oi = R(w.noIconFiller, "StyledNoIconFiller"), Xe = R(w.menuItemLeftContent, "StyledMenuItemLeftContent"), pe = R(w.menuItemRightContent, "StyledMenuItemRightContent"), Ee = R(w.draggableItem, "StyledDraggableItem"), ke = ge(({ accent: e, isKeySelected: r, isHoverBackgroundDisabled: a, hovered: n, disabled: o, focused: i, isIconDisplayedOnHoverOnly: s, cursor: l, className: d, children: c, ..._ }, h) => /* @__PURE__ */ t("div", {
|
|
1166
|
+
ref: h,
|
|
1167
|
+
className: m(w.hoverableMenuItemBase, d),
|
|
1168
|
+
"data-accent": e,
|
|
1169
|
+
"data-key-selected": r || void 0,
|
|
1170
|
+
"data-hover-background-disabled": a || void 0,
|
|
1171
|
+
"data-disabled": o || void 0,
|
|
1172
|
+
"data-focused": i || void 0,
|
|
1173
|
+
"data-icon-displayed-on-hover-only": s || void 0,
|
|
1174
|
+
"data-cursor": l,
|
|
1175
|
+
..._,
|
|
1176
|
+
children: c
|
|
1177
|
+
}));
|
|
1178
|
+
ke.displayName = "StyledHoverableMenuItemBase";
|
|
1179
|
+
var Pn = R(w.menuItemContextualText, "StyledMenuItemContextualText"), qn = R(w.rightMenuItemContextualText, "StyledRightMenuItemContextualText"), Wn = "_mainText_d0zu3_1", Fn = "_menuItemLabelRight_d0zu3_9", je = {
|
|
1180
|
+
mainText: Wn,
|
|
1181
|
+
menuItemLabelRight: Fn
|
|
1182
|
+
}, Te = ({ className: e, LeftComponent: r, LeftIcon: a, iconThemeColor: n, withIconContainer: o = !1, withIconContainerBackground: i = !0, text: s, contextualText: l, contextualTextPosition: d = "left", gripMode: c = "never", disabled: _ = !1 }) => {
|
|
1183
|
+
const h = b(), f = o ? L.font.color.tertiary : _ ? L.font.color.extraLight : L.font.color.light;
|
|
1184
|
+
return /* @__PURE__ */ u(Xe, {
|
|
1185
|
+
className: e,
|
|
1186
|
+
children: [
|
|
1187
|
+
c === "always" && (o ? /* @__PURE__ */ t(ye, {
|
|
1188
|
+
hasBackground: i,
|
|
1189
|
+
children: /* @__PURE__ */ t(Ee, { children: /* @__PURE__ */ t(fe, {
|
|
1190
|
+
size: h.icon.size.md,
|
|
1191
|
+
stroke: h.icon.stroke.sm,
|
|
1192
|
+
color: f
|
|
1193
|
+
}) })
|
|
1194
|
+
}) : /* @__PURE__ */ t(Ee, { children: /* @__PURE__ */ t(fe, {
|
|
1195
|
+
size: h.icon.size.md,
|
|
1196
|
+
stroke: h.icon.stroke.sm,
|
|
1197
|
+
color: f
|
|
1198
|
+
}) })),
|
|
1199
|
+
c === "onHover" ? /* @__PURE__ */ t(Tn, {
|
|
1200
|
+
LeftIcon: a,
|
|
1201
|
+
iconThemeColor: n,
|
|
1202
|
+
withIconContainer: o,
|
|
1203
|
+
gripIconColor: f
|
|
1204
|
+
}) : /* @__PURE__ */ t(Nn, {
|
|
1205
|
+
Icon: a,
|
|
1206
|
+
iconThemeColor: n,
|
|
1207
|
+
withContainer: o,
|
|
1208
|
+
withContainerBackground: i
|
|
1209
|
+
}),
|
|
1210
|
+
r,
|
|
1211
|
+
/* @__PURE__ */ u(On, { children: [P(s) ? /* @__PURE__ */ t("div", {
|
|
1212
|
+
className: je.mainText,
|
|
1213
|
+
children: /* @__PURE__ */ t(G, { text: s })
|
|
1214
|
+
}) : s, d === "left" && /* @__PURE__ */ t(T, { children: P(l) ? A(l) && /* @__PURE__ */ t(Pn, { children: /* @__PURE__ */ t(G, {
|
|
1215
|
+
text: `· ${l}`,
|
|
1216
|
+
tooltipContent: l
|
|
1217
|
+
}) }) : l })] }),
|
|
1218
|
+
d === "right" && /* @__PURE__ */ t("div", {
|
|
1219
|
+
className: je.menuItemLabelRight,
|
|
1220
|
+
children: /* @__PURE__ */ t(qn, { children: P(l) ? /* @__PURE__ */ t(G, { text: l }) : l })
|
|
1221
|
+
})
|
|
1222
|
+
]
|
|
1223
|
+
});
|
|
1224
|
+
}, Jn = "_subMenuIcon_j232v_1", Vn = "_subMenuIconOpened_j232v_9", De = {
|
|
1225
|
+
subMenuIcon: Jn,
|
|
1226
|
+
subMenuIconOpened: Vn
|
|
1227
|
+
}, Hn = ({ accent: e = "default", className: r, withIconContainer: a = !1, withIconContainerBackground: n = !0, iconButtons: o, isIconDisplayedOnHoverOnly: i = !0, LeftIcon: s, iconThemeColor: l, LeftComponent: d, RightIcon: c, RightComponent: _, onClick: h, onMouseEnter: f, onMouseLeave: g, testId: p, text: x, contextualTextPosition: B = "left", contextualText: I, hasSubMenu: E = !1, disabled: S = !1, focused: j = !1, selected: D = !1, hotKeys: X, isSubMenuOpened: F = !1 }) => {
|
|
1228
|
+
const Q = b();
|
|
1229
|
+
return /* @__PURE__ */ u(ke, {
|
|
1230
|
+
"data-testid": p ?? void 0,
|
|
1231
|
+
onClick: S ? void 0 : (ae) => {
|
|
1232
|
+
h && (ae.preventDefault(), ae.stopPropagation(), h?.(ae));
|
|
1233
|
+
},
|
|
1234
|
+
disabled: S,
|
|
1235
|
+
className: r,
|
|
1236
|
+
accent: e,
|
|
1237
|
+
isIconDisplayedOnHoverOnly: i,
|
|
1238
|
+
onMouseEnter: f,
|
|
1239
|
+
onMouseLeave: g,
|
|
1240
|
+
focused: j || D,
|
|
1241
|
+
children: [/* @__PURE__ */ t(Te, {
|
|
1242
|
+
LeftIcon: s ?? void 0,
|
|
1243
|
+
iconThemeColor: l,
|
|
1244
|
+
LeftComponent: d,
|
|
1245
|
+
withIconContainer: a,
|
|
1246
|
+
withIconContainerBackground: n,
|
|
1247
|
+
text: x,
|
|
1248
|
+
contextualText: I,
|
|
1249
|
+
contextualTextPosition: B,
|
|
1250
|
+
disabled: S
|
|
1251
|
+
}), /* @__PURE__ */ u(pe, { children: [
|
|
1252
|
+
o && /* @__PURE__ */ t(pe, {
|
|
1253
|
+
className: "hoverable-buttons",
|
|
1254
|
+
children: o
|
|
1255
|
+
}),
|
|
1256
|
+
X && /* @__PURE__ */ t(yt, { hotKeys: X }),
|
|
1257
|
+
c && /* @__PURE__ */ t(c, {
|
|
1258
|
+
size: Q.icon.size.md,
|
|
1259
|
+
stroke: Q.icon.stroke.sm
|
|
1260
|
+
}),
|
|
1261
|
+
_,
|
|
1262
|
+
E && /* @__PURE__ */ t("div", {
|
|
1263
|
+
className: m(De.subMenuIcon, F && De.subMenuIconOpened),
|
|
1264
|
+
style: { visibility: S ? "hidden" : "visible" },
|
|
1265
|
+
children: /* @__PURE__ */ t(et, {
|
|
1266
|
+
size: Q.icon.size.sm,
|
|
1267
|
+
color: Q.font.color.light
|
|
1268
|
+
})
|
|
1269
|
+
})
|
|
1270
|
+
] })]
|
|
1271
|
+
});
|
|
1272
|
+
}, ii = ({ accent: e = "default", className: r, iconButtons: a, isIconDisplayedOnHoverOnly: n = !0, isTooltipOpen: o, onClick: i, onMouseEnter: s, onMouseLeave: l, testId: d, avatar: c, hasSubMenu: _ = !1, text: h, contextualText: f }) => /* @__PURE__ */ t(Hn, {
|
|
1273
|
+
accent: e,
|
|
1274
|
+
className: r,
|
|
1275
|
+
iconButtons: a,
|
|
1276
|
+
isIconDisplayedOnHoverOnly: n,
|
|
1277
|
+
isTooltipOpen: o,
|
|
1278
|
+
LeftComponent: v(c) ? /* @__PURE__ */ t(wt, {
|
|
1279
|
+
name: c.name,
|
|
1280
|
+
src: c.src,
|
|
1281
|
+
colorSeed: c.colorSeed,
|
|
1282
|
+
size: c.size,
|
|
1283
|
+
shape: c.shape
|
|
1284
|
+
}) : void 0,
|
|
1285
|
+
onClick: i,
|
|
1286
|
+
onMouseEnter: s,
|
|
1287
|
+
onMouseLeave: l,
|
|
1288
|
+
testId: d,
|
|
1289
|
+
text: h,
|
|
1290
|
+
contextualText: f,
|
|
1291
|
+
hasSubMenu: _
|
|
1292
|
+
}), si = ({ LeftIcon: e, withIconContainer: r = !1, accent: a = "default", iconButtons: n, onClick: o, text: i, contextualText: s, isDragDisabled: l = !1, className: d, isIconDisplayedOnHoverOnly: c = !0, gripMode: _ = "never" }) => /* @__PURE__ */ u(ke, {
|
|
1293
|
+
onClick: o,
|
|
1294
|
+
accent: a,
|
|
1295
|
+
className: d,
|
|
1296
|
+
isIconDisplayedOnHoverOnly: c,
|
|
1297
|
+
cursor: _ !== "never" ? l ? "default" : "drag" : "default",
|
|
1298
|
+
children: [/* @__PURE__ */ t(Te, {
|
|
1299
|
+
LeftIcon: e,
|
|
1300
|
+
text: i,
|
|
1301
|
+
contextualText: s,
|
|
1302
|
+
withIconContainer: r,
|
|
1303
|
+
disabled: l,
|
|
1304
|
+
gripMode: _
|
|
1305
|
+
}), n && /* @__PURE__ */ t(pe, {
|
|
1306
|
+
className: "hoverable-buttons",
|
|
1307
|
+
children: n
|
|
1308
|
+
})]
|
|
1309
|
+
}), Gn = "_suggestionMenuItem_1qyjt_1", Kn = { suggestionMenuItem: Gn }, li = ({ LeftIcon: e, withIconContainer: r = !1, text: a, contextualText: n = void 0, contextualTextPosition: o = "left", className: i, selected: s, onClick: l }) => {
|
|
1310
|
+
const d = (c) => {
|
|
1311
|
+
l && (c.preventDefault(), c.stopPropagation(), l?.(c));
|
|
1312
|
+
};
|
|
1313
|
+
return /* @__PURE__ */ t("li", {
|
|
1314
|
+
className: m(Kn.suggestionMenuItem, i),
|
|
1315
|
+
"data-selected": s || void 0,
|
|
1316
|
+
role: v(l) ? "button" : void 0,
|
|
1317
|
+
tabIndex: v(l) ? 0 : void 0,
|
|
1318
|
+
onClick: d,
|
|
1319
|
+
onKeyDown: ee,
|
|
1320
|
+
children: /* @__PURE__ */ t(Xe, { children: /* @__PURE__ */ t(Te, {
|
|
1321
|
+
LeftIcon: e ?? void 0,
|
|
1322
|
+
text: a,
|
|
1323
|
+
contextualText: n,
|
|
1324
|
+
contextualTextPosition: o,
|
|
1325
|
+
withIconContainer: r
|
|
1326
|
+
}) })
|
|
1327
|
+
});
|
|
1328
|
+
}, Un = "_menuPicker_o8ra4_1", Yn = "_iconContainer_o8ra4_41", Xn = "_label_o8ra4_50", he = {
|
|
1329
|
+
menuPicker: Un,
|
|
1330
|
+
iconContainer: Yn,
|
|
1331
|
+
label: Xn
|
|
1332
|
+
}, ci = ({ id: e, icon: r, label: a, selected: n = !1, disabled: o = !1, showLabel: i = !0, onClick: s, className: l, testId: d, tooltipContent: c, tooltipDelay: _ = 0, tooltipOffset: h = 5 }) => {
|
|
1333
|
+
const f = b();
|
|
1334
|
+
return /* @__PURE__ */ t(qe, {
|
|
1335
|
+
content: c,
|
|
1336
|
+
disabled: !A(c),
|
|
1337
|
+
sideOffset: h,
|
|
1338
|
+
side: "bottom",
|
|
1339
|
+
positionMethod: "fixed",
|
|
1340
|
+
delay: _,
|
|
1341
|
+
children: /* @__PURE__ */ u("button", {
|
|
1342
|
+
id: e,
|
|
1343
|
+
disabled: o,
|
|
1344
|
+
onClick: s,
|
|
1345
|
+
className: m(he.menuPicker, l),
|
|
1346
|
+
"data-testid": d,
|
|
1347
|
+
"data-selected": n ? "" : void 0,
|
|
1348
|
+
"aria-pressed": n,
|
|
1349
|
+
"aria-disabled": o,
|
|
1350
|
+
"aria-label": a,
|
|
1351
|
+
children: [/* @__PURE__ */ t("div", {
|
|
1352
|
+
className: he.iconContainer,
|
|
1353
|
+
children: /* @__PURE__ */ t(r, {
|
|
1354
|
+
size: f.icon.size.md,
|
|
1355
|
+
stroke: f.icon.stroke.sm
|
|
1356
|
+
})
|
|
1357
|
+
}), v(a) && i && /* @__PURE__ */ t("div", {
|
|
1358
|
+
className: he.label,
|
|
1359
|
+
"data-selected": n ? "" : void 0,
|
|
1360
|
+
"data-disabled": o ? "" : void 0,
|
|
1361
|
+
children: a
|
|
1362
|
+
})]
|
|
1363
|
+
})
|
|
1364
|
+
});
|
|
1365
|
+
}, Qn = "_iconButton_19i33_1", Zn = { iconButton: Qn }, eo = ({ Icon: e, isActive: r, onClick: a, ariaLabel: n }) => {
|
|
1366
|
+
const o = b();
|
|
1367
|
+
return /* @__PURE__ */ t("button", {
|
|
1368
|
+
type: "button",
|
|
1369
|
+
className: Zn.iconButton,
|
|
1370
|
+
"data-active": r ? "" : void 0,
|
|
1371
|
+
"aria-label": n,
|
|
1372
|
+
"aria-pressed": r,
|
|
1373
|
+
onClick: a,
|
|
1374
|
+
children: /* @__PURE__ */ t(e, {
|
|
1375
|
+
color: L.grayScale.gray10,
|
|
1376
|
+
size: o.icon.size.lg,
|
|
1377
|
+
"aria-hidden": !0
|
|
1378
|
+
})
|
|
1379
|
+
});
|
|
1380
|
+
}, to = "_container_vsk1i_1", ro = { container: to }, di = ({ activeItemName: e, isHidden: r = !1, items: a }) => /* @__PURE__ */ t("nav", {
|
|
1381
|
+
className: ro.container,
|
|
1382
|
+
"data-hidden": r ? "" : void 0,
|
|
1383
|
+
"aria-hidden": r,
|
|
1384
|
+
children: a.map(({ Icon: n, name: o, label: i, onClick: s }) => /* @__PURE__ */ t(eo, {
|
|
1385
|
+
Icon: n,
|
|
1386
|
+
isActive: e === o,
|
|
1387
|
+
onClick: s,
|
|
1388
|
+
ariaLabel: i
|
|
1389
|
+
}, o))
|
|
1390
|
+
}), ao = "_root_os1x1_1", no = { root: ao }, ui = ({ label: e, href: r, onClick: a, className: n }) => {
|
|
1391
|
+
if (!A(e)) return /* @__PURE__ */ t(T, {});
|
|
1392
|
+
const o = (i) => {
|
|
1393
|
+
i.stopPropagation(), a?.(i);
|
|
1394
|
+
};
|
|
1395
|
+
return /* @__PURE__ */ t("a", {
|
|
1396
|
+
href: ft(r),
|
|
1397
|
+
target: "_blank",
|
|
1398
|
+
rel: "noreferrer",
|
|
1399
|
+
onClick: o,
|
|
1400
|
+
className: m(no.root, n),
|
|
1401
|
+
children: e
|
|
1402
|
+
});
|
|
1403
|
+
}, oo = "_button_quwcq_1", io = { button: oo }, mi = ({ active: e = !1, className: r, children: a, startIcon: n, endIcon: o, badge: i, size: s = "sm", ...l }) => /* @__PURE__ */ t(N, {
|
|
1404
|
+
...l,
|
|
1405
|
+
variant: "ghost",
|
|
1406
|
+
size: s,
|
|
1407
|
+
"data-active": e || void 0,
|
|
1408
|
+
className: q(m(xt.tab, io.button), r),
|
|
1409
|
+
children: /* @__PURE__ */ t(Bt, {
|
|
1410
|
+
startIcon: n,
|
|
1411
|
+
endIcon: o,
|
|
1412
|
+
badge: i,
|
|
1413
|
+
children: a
|
|
1414
|
+
})
|
|
1415
|
+
});
|
|
1416
|
+
export {
|
|
1417
|
+
Ue as A,
|
|
1418
|
+
Oo as B,
|
|
1419
|
+
Sa as C,
|
|
1420
|
+
ca as D,
|
|
1421
|
+
Vo as E,
|
|
1422
|
+
Wo as F,
|
|
1423
|
+
jo as H,
|
|
1424
|
+
qo as I,
|
|
1425
|
+
Ge as L,
|
|
1426
|
+
Ke as M,
|
|
1427
|
+
Jo as N,
|
|
1428
|
+
Ye as O,
|
|
1429
|
+
Fo as P,
|
|
1430
|
+
Lr as R,
|
|
1431
|
+
Ho as S,
|
|
1432
|
+
da as T,
|
|
1433
|
+
Do as V,
|
|
1434
|
+
Ga as _,
|
|
1435
|
+
li as a,
|
|
1436
|
+
Go as b,
|
|
1437
|
+
Hn as c,
|
|
1438
|
+
ti as d,
|
|
1439
|
+
ei as f,
|
|
1440
|
+
Yo as g,
|
|
1441
|
+
Xo as h,
|
|
1442
|
+
ci as i,
|
|
1443
|
+
re as j,
|
|
1444
|
+
Y as k,
|
|
1445
|
+
ai as l,
|
|
1446
|
+
Qo as m,
|
|
1447
|
+
ui as n,
|
|
1448
|
+
si as o,
|
|
1449
|
+
Zo as p,
|
|
1450
|
+
di as r,
|
|
1451
|
+
ii as s,
|
|
1452
|
+
mi as t,
|
|
1453
|
+
ri as u,
|
|
1454
|
+
Uo as v,
|
|
1455
|
+
ua as w,
|
|
1456
|
+
Me as x,
|
|
1457
|
+
Ko as y,
|
|
1458
|
+
Po as z
|
|
1459
|
+
};
|