twenty-ui 2.41.0 → 2.43.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 +24 -0
- package/README.md +48 -23
- package/dist/{AllIcons-CFPS3m2F.cjs → AllIcons-D_4JeQkX.cjs} +1 -1
- package/dist/{AllIcons-UzofKGsA.js → AllIcons-Z8o0B2fy.js} +260 -260
- package/dist/Avatar-BSHgTxt-.js +67 -0
- package/dist/Avatar-DTNH6Ku7.cjs +1 -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/Input-CFXY05bj.cjs +1 -0
- package/dist/Input-DHfmRBq5.js +116 -0
- package/dist/ListItem-2dHkY1NB.cjs +1 -0
- package/dist/ListItem-D6DvFIbl.js +109 -0
- package/dist/ListItem.module-CveFbY4M.cjs +1 -0
- package/dist/ListItem.module-DtIGiTDL.js +38 -0
- package/dist/Loader-X1LymYkw.js +14 -0
- package/dist/Loader-Z6_7AA-x.cjs +1 -0
- package/dist/MenuSeparator-DJOspG7J.cjs +1 -0
- package/dist/MenuSeparator-dNx4JE6C.js +66 -0
- package/dist/OverflowingTextWithTooltip-CqEkoH6t.js +179 -0
- package/dist/OverflowingTextWithTooltip-bn6EwWeq.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-DN1bRxQb.js +89 -0
- package/dist/ResizeHandle-cll01qBQ.cjs +1 -0
- package/dist/TabsTabContent-BseLV1Wk.cjs +1 -0
- package/dist/TabsTabContent-_NCTxoP6.js +40 -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} +2 -2
- package/dist/{primitives/input → components/code-editor}/CodeEditor/utils/getBaseCodeEditorTheme.d.ts +1 -1
- 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 +231 -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} +3 -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 +96 -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/components/input/SearchInput/types/SearchInputProps.d.ts +14 -0
- 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/Dropdown/Dropdown.d.ts +21 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPagesExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPanelExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerExample.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownBack.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownClose.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContext.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +37 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownFocusTarget.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownHeader.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownNestedRootEffect.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPage.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPageFocusEffect.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/DropdownPageFocusRequest.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRoot.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSection.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSeparator.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenu.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownTitle.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownTrigger.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownFocusTarget.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItemLabel.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItems.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearchTarget.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTrigger.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getNextDropdownItem.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/isUnhandledModifierShortcut.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/preventDismissingClickActivation.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownContext.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +10 -0
- package/dist/components/navigation/Dropdown/types/DropdownCloseProps.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownContentProps.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownHeaderProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownPageProps.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownRootProps.d.ts +11 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +4 -0
- package/dist/components/navigation/Dropdown/types/DropdownSectionProps.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuTriggerProps.d.ts +6 -0
- package/dist/components/navigation/Dropdown/types/DropdownTitleProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownTriggerProps.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownType.d.ts +1 -0
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +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-BYWo2sUE.cjs +1 -0
- package/dist/components-C96xU59U.js +1996 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +44 -3
- package/dist/data-display-BQ9g9oSc.cjs +1 -0
- package/dist/data-display-z9gKjkPS.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/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/index.d.ts +2 -1
- package/dist/{icon-DqzYzlBl.js → icon-Bd81r48z.js} +968 -487
- package/dist/icon-iD9IXJmn.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +499 -498
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +642 -739
- package/dist/individual-entry.d.ts +0 -1
- package/dist/input-C8IiOA9Q.js +335 -0
- package/dist/input-NBD4DP8j.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-BqZBteC2.cjs +1 -0
- package/dist/navigation-CLMgaqS8.js +91 -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/types/ButtonGroupProps.d.ts +4 -1
- package/dist/primitives/input/SegmentedControl/SegmentedControl.d.ts +2 -29
- package/dist/primitives/input/SegmentedControl/types/SegmentedControlOption.d.ts +13 -0
- package/dist/primitives/input/SegmentedControl/types/SegmentedControlProps.d.ts +10 -0
- package/dist/primitives/input/index.d.ts +2 -50
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +15 -43
- package/dist/primitives/layout/AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts +3 -1
- package/dist/primitives/layout/ResizeHandle/ResizeHandle.d.ts +2 -9
- package/dist/primitives/layout/ResizeHandle/__stories__/ControlledResizeHandle.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizableDemo.d.ts +3 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/withMockPointerCapture.d.ts +4 -0
- package/dist/primitives/layout/ResizeHandle/internal/ResizeHandleDefaults.constant.d.ts +6 -0
- package/dist/primitives/layout/ResizeHandle/internal/useResizeHandleInteraction.d.ts +19 -0
- package/dist/primitives/layout/ResizeHandle/types/ResizeHandleProps.d.ts +11 -0
- package/dist/primitives/layout/index.d.ts +1 -9
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +6 -17
- 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/Card/Card.d.ts +17 -7
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +8 -0
- 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 -18
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +9 -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 +63 -199
- package/dist/style.css +1 -1
- package/dist/surfaces-DX8oX1ou.js +254 -0
- package/dist/surfaces-uuLwsFxg.cjs +1 -0
- package/dist/testing/index.d.ts +1 -3
- package/dist/testing/utils/overrideMediaQueryMatches.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +94 -94
- package/dist/theme/ThemeOverrides.d.ts +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -0
- package/dist/theme/ThemeProviderProps.d.ts +13 -0
- package/dist/{theme-constants → theme}/getNextThemeColor.d.ts +1 -1
- package/dist/theme/index.d.ts +10 -0
- package/dist/theme/internal/ThemeContextType.d.ts +6 -0
- package/dist/theme/internal/computeThemeFromCss.d.ts +2 -0
- package/dist/theme/internal/getThemeContext.d.ts +3 -0
- package/dist/theme/internal/getThemeScopeContext.d.ts +2 -0
- package/dist/theme/internal/resolveExplicitTheme.d.ts +5 -0
- package/dist/{theme-OwFrow8b.js → theme-DBro6iwF.js} +1198 -23
- package/dist/theme-DNG4OSBd.cjs +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +14 -7
- package/dist/utilities/color/utils/stringToThemeColorP3String.d.ts +1 -2
- package/dist/utilities/index.d.ts +3 -6
- package/dist/utilities/responsive/constants/MobileMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/constants/TouchDeviceMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/hooks/useMediaQuery.d.ts +1 -0
- package/dist/utilities/responsive/internal/getMediaQueryStore.d.ts +6 -0
- package/dist/utilities-BlvbRryv.cjs +1 -0
- package/dist/utilities-C5Tt2HLT.js +56 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +19 -21
- package/package.json +22 -20
- 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/chunk-u_mIcLyS.cjs +0 -1
- 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/SearchInput/SearchInput.d.ts +0 -15
- 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/ResizeHandle/hooks/useResizeHandle.d.ts +0 -10
- 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/testing/decorators/ComponentWithRouterDecorator.d.ts +0 -9
- package/dist/testing/decorators/RouterDecorator.d.ts +0 -2
- package/dist/theme-YHfZnD2U.cjs +0 -1
- package/dist/theme-constants/ThemeProvider.d.ts +0 -15
- package/dist/theme-constants/ThemeScopeContext.d.ts +0 -1
- package/dist/theme-constants/index.d.ts +0 -10
- package/dist/theme-constants-DETwIS-a.js +0 -1163
- package/dist/theme-constants-Do_FO7Uy.cjs +0 -1
- package/dist/theme-constants.cjs +0 -1
- package/dist/theme-constants.mjs +0 -12
- 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/screen-size/hooks/useScreenSize.d.ts +0 -4
- 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 → 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/surfaces/{CardContent → Card/internal}/CardContent.d.ts +0 -0
- /package/dist/primitives/surfaces/{CardFooter → Card/internal}/CardFooter.d.ts +0 -0
- /package/dist/primitives/surfaces/{CardHeader → Card/internal}/CardHeader.d.ts +0 -0
- /package/dist/primitives/typography/{LinkifiedText → OverflowingTextWithTooltip/internal/LinkifiedText}/LinkifiedText.d.ts +0 -0
- /package/dist/primitives/typography/{Label → internal/Label}/Label.d.ts +0 -0
- /package/dist/{theme-constants/constants.d.ts → theme/constants/MobileViewport.d.ts} +0 -0
- /package/dist/{theme-constants → theme}/themeCssVariables.d.ts +0 -0
- /package/dist/{theme-constants → theme}/themeTypes.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useTheme.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useThemeColorScheme.d.ts +0 -0
- /package/dist/{theme-constants → theme}/useThemeContainer.d.ts +0 -0
|
@@ -1,660 +0,0 @@
|
|
|
1
|
-
import { n as ie, r as D, s as m, t as se } from "./theme-constants-DETwIS-a.js";
|
|
2
|
-
import { t as C } from "./Button-u4e3zI-a.js";
|
|
3
|
-
import { Ei as w, hs as ce, i as A, pc as V, ui as le } from "./TablerIcons-Ctfi8z4q.js";
|
|
4
|
-
import { n as de, t as ge } from "./OverflowingTextWithTooltip-C21bgWKF.js";
|
|
5
|
-
import { A as G } from "./input-DOIOurw8.js";
|
|
6
|
-
import { t as me } from "./HorizontalSeparator-p1xF1-ka.js";
|
|
7
|
-
import { clsx as c } from "clsx";
|
|
8
|
-
import { createContext as _e, useContext as ue, useEffect as pe, useId as ve, useLayoutEffect as K, useMemo as he, useRef as X, useState as M } from "react";
|
|
9
|
-
import { isNonEmptyArray as be, isPositiveInteger as fe } from "@sniptt/guards";
|
|
10
|
-
import { Fragment as T, jsx as a, jsxs as u } from "react/jsx-runtime";
|
|
11
|
-
import { Link as ke } from "react-router-dom";
|
|
12
|
-
import { useRender as U } from "@base-ui/react/use-render";
|
|
13
|
-
import { createPortal as Ce } from "react-dom";
|
|
14
|
-
import { useDirection as Te } from "@base-ui/react/direction-provider";
|
|
15
|
-
import { Progress as L } from "@base-ui/react/progress";
|
|
16
|
-
import { Store as Ne, useStore as ye } from "@base-ui/utils/store";
|
|
17
|
-
var Ie = {
|
|
18
|
-
noFile: "/images/placeholders/background/no_file_bg.png",
|
|
19
|
-
noNote: "/images/placeholders/background/no_note_bg.png",
|
|
20
|
-
noRecord: "/images/placeholders/background/no_record_bg.png",
|
|
21
|
-
noMatchRecord: "/images/placeholders/background/no_match_record_bg.png",
|
|
22
|
-
noTask: "/images/placeholders/background/no_task_bg.png",
|
|
23
|
-
errorIndex: "/images/placeholders/background/error_index_bg.png",
|
|
24
|
-
emptyTimeline: "/images/placeholders/background/empty_timeline_bg.png",
|
|
25
|
-
loadingMessages: "/images/placeholders/background/loading_messages_bg.png",
|
|
26
|
-
loadingAccounts: "/images/placeholders/background/loading_accounts_bg.png",
|
|
27
|
-
emptyFunctions: "/images/placeholders/background/empty_functions_bg.png",
|
|
28
|
-
emptyInbox: "/images/placeholders/background/empty_inbox_bg.png",
|
|
29
|
-
error404: "/images/placeholders/background/404_bg.png",
|
|
30
|
-
error500: "/images/placeholders/background/500_bg.png",
|
|
31
|
-
noDeletedRecord: "/images/placeholders/background/no_deleted_record_bg.png",
|
|
32
|
-
noWidgets: "/images/placeholders/background/no_widgets_bg.png",
|
|
33
|
-
notShared: "/images/placeholders/background/not_shared_bg.png",
|
|
34
|
-
noCallRecording: "/images/placeholders/background/no_call_recording_bg.png"
|
|
35
|
-
}, xe = {
|
|
36
|
-
noFile: "/images/placeholders/dark-background/no_file_bg.png",
|
|
37
|
-
noNote: "/images/placeholders/dark-background/no_note_bg.png",
|
|
38
|
-
noRecord: "/images/placeholders/dark-background/no_record_bg.png",
|
|
39
|
-
noMatchRecord: "/images/placeholders/dark-background/no_match_record_bg.png",
|
|
40
|
-
noTask: "/images/placeholders/dark-background/no_task_bg.png",
|
|
41
|
-
errorIndex: "/images/placeholders/dark-background/error_index_bg.png",
|
|
42
|
-
emptyTimeline: "/images/placeholders/dark-background/empty_timeline_bg.png",
|
|
43
|
-
emptyInbox: "/images/placeholders/dark-background/empty_inbox_bg.png",
|
|
44
|
-
error404: "/images/placeholders/dark-background/404_bg.png",
|
|
45
|
-
error500: "/images/placeholders/dark-background/500_bg.png",
|
|
46
|
-
loadingMessages: "/images/placeholders/background/loading_messages_bg.png",
|
|
47
|
-
loadingAccounts: "/images/placeholders/background/loading_accounts_bg.png",
|
|
48
|
-
emptyFunctions: "/images/placeholders/dark-background/empty_functions_bg.png",
|
|
49
|
-
noDeletedRecord: "/images/placeholders/dark-background/no_deleted_record_bg.png",
|
|
50
|
-
noWidgets: "/images/placeholders/dark-background/no_widgets_bg.png",
|
|
51
|
-
notShared: "/images/placeholders/dark-background/not_shared_bg.png",
|
|
52
|
-
noCallRecording: "/images/placeholders/dark-background/no_call_recording_bg.png"
|
|
53
|
-
}, Ae = {
|
|
54
|
-
noFile: "/images/placeholders/dark-moving-image/no_file.png",
|
|
55
|
-
noNote: "/images/placeholders/dark-moving-image/no_note.png",
|
|
56
|
-
noRecord: "/images/placeholders/dark-moving-image/no_record.png",
|
|
57
|
-
noMatchRecord: "/images/placeholders/dark-moving-image/no_match_record.png",
|
|
58
|
-
noTask: "/images/placeholders/dark-moving-image/no_task.png",
|
|
59
|
-
errorIndex: "/images/placeholders/dark-moving-image/error_index.png",
|
|
60
|
-
emptyTimeline: "/images/placeholders/dark-moving-image/empty_timeline.png",
|
|
61
|
-
emptyInbox: "/images/placeholders/dark-moving-image/empty_inbox.png",
|
|
62
|
-
error404: "/images/placeholders/dark-moving-image/404.png",
|
|
63
|
-
error500: "/images/placeholders/dark-moving-image/500.png",
|
|
64
|
-
loadingMessages: "/images/placeholders/moving-image/loading_messages.png",
|
|
65
|
-
loadingAccounts: "/images/placeholders/moving-image/loading_accounts.png",
|
|
66
|
-
emptyFunctions: "/images/placeholders/dark-moving-image/empty_functions.png",
|
|
67
|
-
noDeletedRecord: "/images/placeholders/dark-moving-image/no_deleted_record.png",
|
|
68
|
-
noWidgets: "/images/placeholders/dark-moving-image/no_widgets.png",
|
|
69
|
-
notShared: "/images/placeholders/dark-moving-image/not_shared.png",
|
|
70
|
-
noCallRecording: "/images/placeholders/dark-moving-image/no_call_recording.png"
|
|
71
|
-
}, we = {
|
|
72
|
-
noFile: "/images/placeholders/moving-image/no_file.png",
|
|
73
|
-
noNote: "/images/placeholders/moving-image/no_note.png",
|
|
74
|
-
noRecord: "/images/placeholders/moving-image/no_record.png",
|
|
75
|
-
noMatchRecord: "/images/placeholders/moving-image/no_match_record.png",
|
|
76
|
-
noTask: "/images/placeholders/moving-image/no_task.png",
|
|
77
|
-
errorIndex: "/images/placeholders/moving-image/error_index.png",
|
|
78
|
-
emptyTimeline: "/images/placeholders/moving-image/empty_timeline.png",
|
|
79
|
-
loadingMessages: "/images/placeholders/moving-image/loading_messages.png",
|
|
80
|
-
loadingAccounts: "/images/placeholders/moving-image/loading_accounts.png",
|
|
81
|
-
emptyFunctions: "/images/placeholders/moving-image/empty_functions.png",
|
|
82
|
-
emptyInbox: "/images/placeholders/moving-image/empty_inbox.png",
|
|
83
|
-
error404: "/images/placeholders/moving-image/404.png",
|
|
84
|
-
error500: "/images/placeholders/moving-image/500.png",
|
|
85
|
-
noDeletedRecord: "/images/placeholders/moving-image/no_deleted_record.png",
|
|
86
|
-
noWidgets: "/images/placeholders/moving-image/no_widgets.png",
|
|
87
|
-
notShared: "/images/placeholders/moving-image/not_shared.png",
|
|
88
|
-
noCallRecording: "/images/placeholders/moving-image/no_call_recording.png"
|
|
89
|
-
}, Se = "_container_c2ldr_1", Ee = "_backgroundImage_c2ldr_9", Pe = "_backgroundImageLarge_c2ldr_14", Re = "_movingImage_c2ldr_19", Be = "_movingImageLarge_c2ldr_28", b = {
|
|
90
|
-
container: Se,
|
|
91
|
-
backgroundImage: Ee,
|
|
92
|
-
backgroundImageLarge: Pe,
|
|
93
|
-
movingImage: Re,
|
|
94
|
-
movingImageLarge: Be
|
|
95
|
-
}, y = 2, Na = ({ type: e, assetBasePath: r = "" }) => {
|
|
96
|
-
const n = ie(), o = X(null);
|
|
97
|
-
pe(() => {
|
|
98
|
-
const i = o.current;
|
|
99
|
-
if (i === null) return;
|
|
100
|
-
const g = (s, v) => {
|
|
101
|
-
i.style.setProperty("--parallax-x", `${s}px`), i.style.setProperty("--parallax-y", `${v}px`);
|
|
102
|
-
}, l = (s) => {
|
|
103
|
-
const v = "touches" in s ? s.touches[0].clientX : s.clientX, h = "touches" in s ? s.touches[0].clientY : s.clientY;
|
|
104
|
-
g(v / window.innerWidth * 2 * y - y, h / window.innerHeight * 2 * y - y);
|
|
105
|
-
}, _ = () => {
|
|
106
|
-
g(0, 0);
|
|
107
|
-
};
|
|
108
|
-
return window.addEventListener("mousemove", l), window.addEventListener("touchmove", l), window.document.addEventListener("mouseleave", _), () => {
|
|
109
|
-
window.removeEventListener("mousemove", l), window.removeEventListener("touchmove", l), window.document.removeEventListener("mouseleave", _);
|
|
110
|
-
};
|
|
111
|
-
}, []);
|
|
112
|
-
const t = e === "error500" || e === "error404";
|
|
113
|
-
return /* @__PURE__ */ u("div", {
|
|
114
|
-
className: b.container,
|
|
115
|
-
children: [/* @__PURE__ */ a("img", {
|
|
116
|
-
src: `${r}${n === "dark" ? xe[e] : Ie[e]}`,
|
|
117
|
-
alt: "",
|
|
118
|
-
className: c(b.backgroundImage, t && b.backgroundImageLarge)
|
|
119
|
-
}), /* @__PURE__ */ a("img", {
|
|
120
|
-
ref: o,
|
|
121
|
-
src: `${r}${n === "dark" ? Ae[e] : we[e]}`,
|
|
122
|
-
alt: "",
|
|
123
|
-
className: c(b.movingImage, t && b.movingImageLarge)
|
|
124
|
-
})]
|
|
125
|
-
});
|
|
126
|
-
}, Le = "_banner_i03ag_1", je = "_primaryBlue_i03ag_17", We = "_primaryDanger_i03ag_23", De = "_secondaryBlue_i03ag_29", Me = "_secondaryDanger_i03ag_35", f = {
|
|
127
|
-
banner: Le,
|
|
128
|
-
primaryBlue: je,
|
|
129
|
-
primaryDanger: We,
|
|
130
|
-
secondaryBlue: De,
|
|
131
|
-
secondaryDanger: Me
|
|
132
|
-
}, $e = {
|
|
133
|
-
primary: {
|
|
134
|
-
blue: f.primaryBlue,
|
|
135
|
-
danger: f.primaryDanger
|
|
136
|
-
},
|
|
137
|
-
secondary: {
|
|
138
|
-
blue: f.secondaryBlue,
|
|
139
|
-
danger: f.secondaryDanger
|
|
140
|
-
}
|
|
141
|
-
}, ze = ({ color: e = "blue", variant: r = "primary", className: n, children: o }) => /* @__PURE__ */ a("div", {
|
|
142
|
-
className: c(f.banner, $e[r][e], n),
|
|
143
|
-
children: o
|
|
144
|
-
}), Fe = "_container_1o484_1", Oe = "_containerInfo_1o484_14", qe = "_containerWarning_1o484_19", Ve = "_containerSuccess_1o484_24", Ge = "_containerError_1o484_29", Ke = "_containerNeutral_1o484_34", Xe = "_header_1o484_39", Ue = "_iconContainer_1o484_48", He = "_iconContainerInfo_1o484_57", Ye = "_iconContainerWarning_1o484_61", Je = "_iconContainerSuccess_1o484_65", Qe = "_iconContainerError_1o484_69", Ze = "_iconContainerNeutral_1o484_73", er = "_title_1o484_77", rr = "_descriptionWrapper_1o484_89", ar = "_descriptionWrapperWithAction_1o484_97", or = "_description_1o484_89", nr = "_footer_1o484_110", d = {
|
|
145
|
-
container: Fe,
|
|
146
|
-
containerInfo: Oe,
|
|
147
|
-
containerWarning: qe,
|
|
148
|
-
containerSuccess: Ve,
|
|
149
|
-
containerError: Ge,
|
|
150
|
-
containerNeutral: Ke,
|
|
151
|
-
header: Xe,
|
|
152
|
-
iconContainer: Ue,
|
|
153
|
-
iconContainerInfo: He,
|
|
154
|
-
iconContainerWarning: Ye,
|
|
155
|
-
iconContainerSuccess: Je,
|
|
156
|
-
iconContainerError: Qe,
|
|
157
|
-
iconContainerNeutral: Ze,
|
|
158
|
-
title: er,
|
|
159
|
-
descriptionWrapper: rr,
|
|
160
|
-
descriptionWrapperWithAction: ar,
|
|
161
|
-
description: or,
|
|
162
|
-
footer: nr
|
|
163
|
-
}, tr = {
|
|
164
|
-
info: d.containerInfo,
|
|
165
|
-
warning: d.containerWarning,
|
|
166
|
-
error: d.containerError,
|
|
167
|
-
neutral: d.containerNeutral,
|
|
168
|
-
success: d.containerSuccess
|
|
169
|
-
}, ir = {
|
|
170
|
-
info: d.iconContainerInfo,
|
|
171
|
-
warning: d.iconContainerWarning,
|
|
172
|
-
error: d.iconContainerError,
|
|
173
|
-
neutral: d.iconContainerNeutral,
|
|
174
|
-
success: d.iconContainerSuccess
|
|
175
|
-
}, ya = ({ variant: e, title: r, description: n, Icon: o = le, action: t, isClosable: i = !1, onClose: g }) => {
|
|
176
|
-
const [l, _] = M(!0), s = () => {
|
|
177
|
-
i && (_(!1), g?.());
|
|
178
|
-
};
|
|
179
|
-
return l ? /* @__PURE__ */ u("div", {
|
|
180
|
-
className: c(d.container, tr[e]),
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ u("div", {
|
|
183
|
-
className: d.header,
|
|
184
|
-
children: [
|
|
185
|
-
/* @__PURE__ */ a("div", {
|
|
186
|
-
className: c(d.iconContainer, ir[e]),
|
|
187
|
-
children: /* @__PURE__ */ a(o, { size: 16 })
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ a("div", {
|
|
190
|
-
className: d.title,
|
|
191
|
-
children: r
|
|
192
|
-
}),
|
|
193
|
-
i && /* @__PURE__ */ a(G, {
|
|
194
|
-
Icon: V,
|
|
195
|
-
size: "small",
|
|
196
|
-
"aria-label": "Close",
|
|
197
|
-
onClick: s
|
|
198
|
-
})
|
|
199
|
-
]
|
|
200
|
-
}),
|
|
201
|
-
/* @__PURE__ */ a("div", {
|
|
202
|
-
className: c(d.descriptionWrapper, m(t) && d.descriptionWrapperWithAction),
|
|
203
|
-
children: /* @__PURE__ */ a("div", {
|
|
204
|
-
className: d.description,
|
|
205
|
-
children: n
|
|
206
|
-
})
|
|
207
|
-
}),
|
|
208
|
-
m(t) && /* @__PURE__ */ a("div", {
|
|
209
|
-
className: d.footer,
|
|
210
|
-
children: /* @__PURE__ */ a(C, {
|
|
211
|
-
type: "button",
|
|
212
|
-
onClick: t.onClick,
|
|
213
|
-
size: "sm",
|
|
214
|
-
variant: "ghost",
|
|
215
|
-
style: { fontWeight: "var(--t-font-weight-regular)" },
|
|
216
|
-
children: t.label
|
|
217
|
-
})
|
|
218
|
-
})
|
|
219
|
-
]
|
|
220
|
-
}) : null;
|
|
221
|
-
}, sr = "_svg_5jxqf_1", cr = "_circularProgressBarRotate_5jxqf_1", lr = "_circle_5jxqf_6", dr = "_circularProgressBarDash_5jxqf_1", F = {
|
|
222
|
-
svg: sr,
|
|
223
|
-
circularProgressBarRotate: cr,
|
|
224
|
-
circle: lr,
|
|
225
|
-
circularProgressBarDash: dr
|
|
226
|
-
}, Ia = ({ size: e = 50, barWidth: r = 5, barColor: n = "currentColor" }) => /* @__PURE__ */ a("svg", {
|
|
227
|
-
className: F.svg,
|
|
228
|
-
width: e,
|
|
229
|
-
height: e,
|
|
230
|
-
children: /* @__PURE__ */ a("circle", {
|
|
231
|
-
className: F.circle,
|
|
232
|
-
cx: e / 2,
|
|
233
|
-
cy: e / 2,
|
|
234
|
-
r: e / 2 - r,
|
|
235
|
-
fill: "none",
|
|
236
|
-
stroke: n,
|
|
237
|
-
strokeWidth: r,
|
|
238
|
-
strokeLinecap: "round",
|
|
239
|
-
pathLength: 100
|
|
240
|
-
})
|
|
241
|
-
}), gr = "_emptyContainer_ftzrt_1", mr = "_emptyPlaceholderFadeIn_ftzrt_1", _r = "_emptyTextContainer_ftzrt_21", ur = "_emptyTitle_ftzrt_31", pr = "_emptySubTitle_ftzrt_37", S = {
|
|
242
|
-
emptyContainer: gr,
|
|
243
|
-
emptyPlaceholderFadeIn: mr,
|
|
244
|
-
emptyTextContainer: _r,
|
|
245
|
-
emptyTitle: ur,
|
|
246
|
-
emptySubTitle: pr
|
|
247
|
-
}, xa = ({ children: e, className: r, width: n }) => /* @__PURE__ */ a("div", {
|
|
248
|
-
className: c(S.emptyContainer, r),
|
|
249
|
-
style: m(n) ? { width: `${n}px` } : void 0,
|
|
250
|
-
children: e
|
|
251
|
-
}), Aa = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
252
|
-
className: c(S.emptyTextContainer, e),
|
|
253
|
-
...r
|
|
254
|
-
}), wa = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
255
|
-
className: c(S.emptyTitle, e),
|
|
256
|
-
...r
|
|
257
|
-
}), Sa = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
258
|
-
className: c(S.emptySubTitle, e),
|
|
259
|
-
...r
|
|
260
|
-
}), vr = "_errorContainer_5ujop_1", hr = "_errorTextContainer_5ujop_12", br = "_errorTitle_5ujop_22", fr = "_errorSubTitle_5ujop_29", E = {
|
|
261
|
-
errorContainer: vr,
|
|
262
|
-
errorTextContainer: hr,
|
|
263
|
-
errorTitle: br,
|
|
264
|
-
errorSubTitle: fr
|
|
265
|
-
}, Ea = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
266
|
-
className: c(E.errorContainer, e),
|
|
267
|
-
...r
|
|
268
|
-
}), Pa = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
269
|
-
className: c(E.errorTextContainer, e),
|
|
270
|
-
...r
|
|
271
|
-
}), Ra = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
272
|
-
className: c(E.errorTitle, e),
|
|
273
|
-
...r
|
|
274
|
-
}), Ba = ({ className: e, ...r }) => /* @__PURE__ */ a("div", {
|
|
275
|
-
className: c(E.errorSubTitle, e),
|
|
276
|
-
...r
|
|
277
|
-
}), kr = "_info_phgej_1", Cr = "_accentBlue_phgej_14", Tr = "_accentDanger_phgej_19", Nr = "_textContainer_phgej_24", yr = "_linkContainer_phgej_33", k = {
|
|
278
|
-
info: kr,
|
|
279
|
-
accentBlue: Cr,
|
|
280
|
-
accentDanger: Tr,
|
|
281
|
-
textContainer: Nr,
|
|
282
|
-
linkContainer: yr
|
|
283
|
-
}, Ir = {
|
|
284
|
-
blue: k.accentBlue,
|
|
285
|
-
danger: k.accentDanger
|
|
286
|
-
}, La = ({ accent: e = "blue", text: r, buttonTitle: n, onClick: o, to: t }) => {
|
|
287
|
-
const i = D();
|
|
288
|
-
return /* @__PURE__ */ u("div", {
|
|
289
|
-
className: c(k.info, Ir[e]),
|
|
290
|
-
children: [
|
|
291
|
-
/* @__PURE__ */ u("div", {
|
|
292
|
-
className: k.textContainer,
|
|
293
|
-
children: [/* @__PURE__ */ a(w, { size: i.icon.size.md }), r]
|
|
294
|
-
}),
|
|
295
|
-
n && t && /* @__PURE__ */ a("span", {
|
|
296
|
-
className: k.linkContainer,
|
|
297
|
-
children: /* @__PURE__ */ a(C, {
|
|
298
|
-
render: /* @__PURE__ */ a(ke, { to: t }),
|
|
299
|
-
nativeButton: !1,
|
|
300
|
-
role: "link",
|
|
301
|
-
size: "sm",
|
|
302
|
-
variant: "outline",
|
|
303
|
-
color: e === "blue" ? "accent" : "danger",
|
|
304
|
-
children: n
|
|
305
|
-
})
|
|
306
|
-
}),
|
|
307
|
-
n && o && !t && /* @__PURE__ */ a(C, {
|
|
308
|
-
onClick: o,
|
|
309
|
-
size: "sm",
|
|
310
|
-
variant: "outline",
|
|
311
|
-
color: e === "blue" ? "accent" : "danger",
|
|
312
|
-
children: n
|
|
313
|
-
})
|
|
314
|
-
]
|
|
315
|
-
});
|
|
316
|
-
}, xr = "_banner_j76tb_1", Ar = "_embedded_j76tb_6", wr = "_bannerContent_j76tb_10", Sr = "_bannerText_j76tb_21", I = {
|
|
317
|
-
banner: xr,
|
|
318
|
-
embedded: Ar,
|
|
319
|
-
bannerContent: wr,
|
|
320
|
-
bannerText: Sr
|
|
321
|
-
}, ja = ({ color: e, message: r, embedded: n = !1, button: o, LeftIcon: t = w, className: i }) => {
|
|
322
|
-
const g = D();
|
|
323
|
-
return /* @__PURE__ */ u(ze, {
|
|
324
|
-
className: c(I.banner, n && I.embedded, i),
|
|
325
|
-
color: e,
|
|
326
|
-
variant: "secondary",
|
|
327
|
-
children: [/* @__PURE__ */ u("div", {
|
|
328
|
-
className: I.bannerContent,
|
|
329
|
-
children: [/* @__PURE__ */ a(t, { size: g.icon.size.md }), /* @__PURE__ */ a("div", {
|
|
330
|
-
className: I.bannerText,
|
|
331
|
-
children: /* @__PURE__ */ a(ge, {
|
|
332
|
-
isFocusable: !0,
|
|
333
|
-
text: /* @__PURE__ */ a(T, { children: r }),
|
|
334
|
-
tooltipContent: r
|
|
335
|
-
})
|
|
336
|
-
})]
|
|
337
|
-
}), o && !o.hidden && /* @__PURE__ */ a(C, {
|
|
338
|
-
size: "sm",
|
|
339
|
-
onClick: o?.onClick,
|
|
340
|
-
disabled: o.disabled,
|
|
341
|
-
startIcon: m(o.Icon) ? /* @__PURE__ */ a(o.Icon, {}) : void 0,
|
|
342
|
-
variant: "outline",
|
|
343
|
-
color: e === "danger" ? "danger" : "accent",
|
|
344
|
-
children: o?.title
|
|
345
|
-
})]
|
|
346
|
-
});
|
|
347
|
-
}, Er = "_bar_1wpka_1", Pr = "_track_1wpka_14", Rr = "_indicator_1wpka_20", Br = "_countdown_1wpka_34", Lr = "_progressBarCountdown_1wpka_1", x = {
|
|
348
|
-
bar: Er,
|
|
349
|
-
track: Pr,
|
|
350
|
-
indicator: Rr,
|
|
351
|
-
countdown: Br,
|
|
352
|
-
progressBarCountdown: Lr
|
|
353
|
-
}, jr = ({ value: e, className: r, barColor: n, backgroundColor: o = "none", withBorderRadius: t = !1, ariaLabel: i, countdownDurationInMs: g, isCountdownPaused: l = !1, onCountdownComplete: _ }) => {
|
|
354
|
-
const s = g !== void 0;
|
|
355
|
-
return /* @__PURE__ */ a(L.Root, {
|
|
356
|
-
className: c(x.bar, r),
|
|
357
|
-
"data-with-border-radius": t || void 0,
|
|
358
|
-
"aria-label": i,
|
|
359
|
-
value: e,
|
|
360
|
-
style: {
|
|
361
|
-
"--progress-bar-background-color": o,
|
|
362
|
-
...n ? { "--progress-bar-color": n } : {},
|
|
363
|
-
...s ? { "--progress-bar-countdown-duration": `${g}ms` } : {}
|
|
364
|
-
},
|
|
365
|
-
children: /* @__PURE__ */ a(L.Track, {
|
|
366
|
-
className: x.track,
|
|
367
|
-
children: /* @__PURE__ */ a(L.Indicator, {
|
|
368
|
-
className: c(x.indicator, s && x.countdown),
|
|
369
|
-
"data-with-border-radius": t || void 0,
|
|
370
|
-
"data-nonzero": e > 0 && !s || void 0,
|
|
371
|
-
"data-paused": s && l || void 0,
|
|
372
|
-
onAnimationEnd: s ? _ : void 0
|
|
373
|
-
})
|
|
374
|
-
})
|
|
375
|
-
});
|
|
376
|
-
}, Wr = "_banner_k05bg_1", Dr = "_iconContainer_k05bg_12", Mr = "_message_k05bg_22", j = {
|
|
377
|
-
banner: Wr,
|
|
378
|
-
iconContainer: Dr,
|
|
379
|
-
message: Mr
|
|
380
|
-
}, Wa = ({ message: e, className: r, variant: n = "default", tooltipMessage: o }) => {
|
|
381
|
-
const t = ve();
|
|
382
|
-
return /* @__PURE__ */ u("div", {
|
|
383
|
-
className: c(j.banner, r),
|
|
384
|
-
"data-tooltip-id": o ? t : void 0,
|
|
385
|
-
children: [
|
|
386
|
-
/* @__PURE__ */ a("div", {
|
|
387
|
-
className: j.iconContainer,
|
|
388
|
-
children: n === "default" ? /* @__PURE__ */ a(w, { size: 16 }) : /* @__PURE__ */ a(A, { size: 16 })
|
|
389
|
-
}),
|
|
390
|
-
/* @__PURE__ */ a("p", {
|
|
391
|
-
className: j.message,
|
|
392
|
-
children: e
|
|
393
|
-
}),
|
|
394
|
-
m(o) && /* @__PURE__ */ a(de, {
|
|
395
|
-
anchorSelect: `[data-tooltip-id='${t}']`,
|
|
396
|
-
title: o,
|
|
397
|
-
place: "bottom"
|
|
398
|
-
})
|
|
399
|
-
]
|
|
400
|
-
});
|
|
401
|
-
}, P = (e) => e.status === "visible", H = ({ store: e, toastsToClose: r, nextToasts: n = e.state.toasts }) => {
|
|
402
|
-
const o = n.map((i) => r.includes(i) ? {
|
|
403
|
-
...i,
|
|
404
|
-
status: "closing"
|
|
405
|
-
} : i), t = e.state.mountedToasterCount > 0;
|
|
406
|
-
e.set("toasts", t ? o : o.filter(P));
|
|
407
|
-
for (const i of r) i.notification.onClose?.();
|
|
408
|
-
}, Y = _e(void 0), N = () => {
|
|
409
|
-
const e = ue(Y);
|
|
410
|
-
if (!m(e)) throw new Error("Toast components must be used within a ToastProvider.");
|
|
411
|
-
return e;
|
|
412
|
-
}, J = () => {
|
|
413
|
-
const e = N();
|
|
414
|
-
return { closeToast: (n) => {
|
|
415
|
-
const o = e.state.toasts.filter((t) => P(t) && (!m(n) || t.notification.id === n));
|
|
416
|
-
be(o) && H({
|
|
417
|
-
store: e,
|
|
418
|
-
toastsToClose: o
|
|
419
|
-
});
|
|
420
|
-
} };
|
|
421
|
-
}, O = 0, $r = () => {
|
|
422
|
-
const e = N();
|
|
423
|
-
return { enqueueToast: he(() => {
|
|
424
|
-
function r(n) {
|
|
425
|
-
if (!m(n)) return;
|
|
426
|
-
const { dedupeKey: o, ...t } = n, { toasts: i, limit: g } = e.state, l = i.filter(P), _ = m(o) ? l.find((h) => h.dedupeKey === o) : void 0;
|
|
427
|
-
if (m(_)) return _.notification.id;
|
|
428
|
-
O += 1;
|
|
429
|
-
const s = `toast-${O}`, v = Math.max(0, l.length - g + 1);
|
|
430
|
-
return H({
|
|
431
|
-
store: e,
|
|
432
|
-
toastsToClose: l.slice(0, v),
|
|
433
|
-
nextToasts: [...i, {
|
|
434
|
-
notification: {
|
|
435
|
-
...t,
|
|
436
|
-
id: s
|
|
437
|
-
},
|
|
438
|
-
dedupeKey: o,
|
|
439
|
-
status: "visible"
|
|
440
|
-
}]
|
|
441
|
-
}), s;
|
|
442
|
-
}
|
|
443
|
-
return r;
|
|
444
|
-
}, [e]) };
|
|
445
|
-
}, Da = () => {
|
|
446
|
-
const { closeToast: e } = J(), { enqueueToast: r } = $r();
|
|
447
|
-
return {
|
|
448
|
-
enqueueToast: r,
|
|
449
|
-
closeToast: e
|
|
450
|
-
};
|
|
451
|
-
}, zr = "_root_1dxjm_1", Fr = "_progress_1dxjm_19", Or = "_header_1dxjm_30", qr = "_message_1dxjm_39", Vr = "_icon_1dxjm_44", Gr = "_actions_1dxjm_49", Kr = "_description_1dxjm_55", Xr = "_footer_1dxjm_64", Ur = "_footerAction_1dxjm_68", p = {
|
|
452
|
-
root: zr,
|
|
453
|
-
progress: Fr,
|
|
454
|
-
header: Or,
|
|
455
|
-
message: qr,
|
|
456
|
-
icon: Vr,
|
|
457
|
-
actions: Gr,
|
|
458
|
-
description: Kr,
|
|
459
|
-
footer: Xr,
|
|
460
|
-
footerAction: Ur
|
|
461
|
-
}, Hr = {
|
|
462
|
-
default: A,
|
|
463
|
-
error: A,
|
|
464
|
-
success: ce,
|
|
465
|
-
info: w,
|
|
466
|
-
warning: A
|
|
467
|
-
}, Yr = ({ children: e, description: r, icon: n, iconLabel: o, action: t, progress: i, duration: g = 6e3, onCancel: l, onClose: _, cancelLabel: s = "Cancel", closeLabel: v = "Close", variant: h = "default", role: $ = "status", className: Q, onMouseEnter: Z, onMouseLeave: ee, render: re, ref: ae, ...oe }) => {
|
|
468
|
-
const R = D(), [ne, z] = M(!1), te = Hr[h];
|
|
469
|
-
return U({
|
|
470
|
-
render: re,
|
|
471
|
-
ref: ae,
|
|
472
|
-
props: {
|
|
473
|
-
role: $,
|
|
474
|
-
"aria-live": $ === "alert" ? "assertive" : "polite",
|
|
475
|
-
...oe,
|
|
476
|
-
className: c(p.root, Q),
|
|
477
|
-
onMouseEnter: (B) => {
|
|
478
|
-
z(!0), Z?.(B);
|
|
479
|
-
},
|
|
480
|
-
onMouseLeave: (B) => {
|
|
481
|
-
z(!1), ee?.(B);
|
|
482
|
-
},
|
|
483
|
-
children: /* @__PURE__ */ u(T, { children: [
|
|
484
|
-
/* @__PURE__ */ a("div", {
|
|
485
|
-
className: p.progress,
|
|
486
|
-
"aria-hidden": !0,
|
|
487
|
-
children: /* @__PURE__ */ a(jr, {
|
|
488
|
-
barColor: R.snackBar[h].backgroundColor,
|
|
489
|
-
value: i ?? 100,
|
|
490
|
-
countdownDurationInMs: m(i) ? void 0 : g,
|
|
491
|
-
isCountdownPaused: ne,
|
|
492
|
-
onCountdownComplete: _
|
|
493
|
-
})
|
|
494
|
-
}),
|
|
495
|
-
/* @__PURE__ */ u("div", {
|
|
496
|
-
className: p.header,
|
|
497
|
-
children: [
|
|
498
|
-
/* @__PURE__ */ a("div", {
|
|
499
|
-
className: p.icon,
|
|
500
|
-
children: n ?? /* @__PURE__ */ a(te, {
|
|
501
|
-
"aria-label": o,
|
|
502
|
-
"aria-hidden": !m(o),
|
|
503
|
-
color: R.snackBar[h].color,
|
|
504
|
-
size: R.icon.size.md
|
|
505
|
-
})
|
|
506
|
-
}),
|
|
507
|
-
/* @__PURE__ */ a("div", {
|
|
508
|
-
className: p.message,
|
|
509
|
-
children: e
|
|
510
|
-
}),
|
|
511
|
-
/* @__PURE__ */ u("div", {
|
|
512
|
-
className: p.actions,
|
|
513
|
-
children: [m(l) && /* @__PURE__ */ a(C, {
|
|
514
|
-
onClick: l,
|
|
515
|
-
size: "sm",
|
|
516
|
-
variant: "ghost",
|
|
517
|
-
style: { fontWeight: "var(--t-font-weight-regular)" },
|
|
518
|
-
children: s
|
|
519
|
-
}), m(_) && /* @__PURE__ */ a(G, {
|
|
520
|
-
title: v,
|
|
521
|
-
"aria-label": v,
|
|
522
|
-
Icon: V,
|
|
523
|
-
onClick: _
|
|
524
|
-
})]
|
|
525
|
-
})
|
|
526
|
-
]
|
|
527
|
-
}),
|
|
528
|
-
m(r) && /* @__PURE__ */ a("div", {
|
|
529
|
-
className: p.description,
|
|
530
|
-
children: r
|
|
531
|
-
}),
|
|
532
|
-
m(t) && /* @__PURE__ */ u("div", {
|
|
533
|
-
className: p.footer,
|
|
534
|
-
children: [/* @__PURE__ */ a(me, { noMargin: !0 }), /* @__PURE__ */ a("div", {
|
|
535
|
-
className: p.footerAction,
|
|
536
|
-
children: t
|
|
537
|
-
})]
|
|
538
|
-
})
|
|
539
|
-
] })
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
}, Jr = (e = 3) => {
|
|
543
|
-
if (!fe(e)) throw new Error("Toast limit must be a positive integer.");
|
|
544
|
-
return new Ne({
|
|
545
|
-
toasts: [],
|
|
546
|
-
limit: e,
|
|
547
|
-
mountedToasterCount: 0
|
|
548
|
-
});
|
|
549
|
-
}, Ma = ({ children: e, limit: r = 3 }) => {
|
|
550
|
-
const [n] = M(() => Jr(r));
|
|
551
|
-
return /* @__PURE__ */ a(Y.Provider, {
|
|
552
|
-
value: n,
|
|
553
|
-
children: e
|
|
554
|
-
});
|
|
555
|
-
}, Qr = () => ye(N(), (e) => e.toasts), Zr = "_root_1q2cc_1", ea = "_item_1q2cc_20", ra = "_itemContent_1q2cc_47", W = {
|
|
556
|
-
root: Zr,
|
|
557
|
-
item: ea,
|
|
558
|
-
itemContent: ra
|
|
559
|
-
}, q = ({ store: e, toast: r }) => {
|
|
560
|
-
const { toasts: n } = e.state;
|
|
561
|
-
r.status === "closing" && n.includes(r) && e.set("toasts", n.filter((o) => o !== r));
|
|
562
|
-
}, aa = ({ elementRef: e, toastEntry: r }) => {
|
|
563
|
-
const n = N();
|
|
564
|
-
return K(() => {
|
|
565
|
-
if (r.status === "visible") return;
|
|
566
|
-
const o = e.current?.getAnimations?.() ?? [];
|
|
567
|
-
if (o.length === 0) {
|
|
568
|
-
q({
|
|
569
|
-
store: n,
|
|
570
|
-
toast: r
|
|
571
|
-
});
|
|
572
|
-
return;
|
|
573
|
-
}
|
|
574
|
-
let t = !1;
|
|
575
|
-
return Promise.allSettled(o.map((i) => i.finished)).then(() => {
|
|
576
|
-
t || q({
|
|
577
|
-
store: n,
|
|
578
|
-
toast: r
|
|
579
|
-
});
|
|
580
|
-
}), () => {
|
|
581
|
-
t = !0;
|
|
582
|
-
};
|
|
583
|
-
}, [
|
|
584
|
-
e,
|
|
585
|
-
r,
|
|
586
|
-
n
|
|
587
|
-
]), /* @__PURE__ */ a(T, {});
|
|
588
|
-
}, oa = ({ toastEntry: e, getToastProps: r, onClose: n }) => {
|
|
589
|
-
const { notification: o, status: t } = e, { id: i, ...g } = o, l = X(null);
|
|
590
|
-
return /* @__PURE__ */ u(T, { children: [/* @__PURE__ */ a("div", {
|
|
591
|
-
ref: l,
|
|
592
|
-
className: W.item,
|
|
593
|
-
"data-exiting": t === "closing" || void 0,
|
|
594
|
-
inert: t === "closing",
|
|
595
|
-
children: /* @__PURE__ */ a("div", {
|
|
596
|
-
className: W.itemContent,
|
|
597
|
-
children: /* @__PURE__ */ a(Yr, {
|
|
598
|
-
...g,
|
|
599
|
-
...r?.(o),
|
|
600
|
-
id: i,
|
|
601
|
-
onClose: () => n(i)
|
|
602
|
-
})
|
|
603
|
-
})
|
|
604
|
-
}), /* @__PURE__ */ a(aa, {
|
|
605
|
-
elementRef: l,
|
|
606
|
-
toastEntry: e
|
|
607
|
-
})] });
|
|
608
|
-
}, na = ({ getToastProps: e }) => {
|
|
609
|
-
const r = Qr(), { closeToast: n } = J();
|
|
610
|
-
return r.map((o) => /* @__PURE__ */ a(oa, {
|
|
611
|
-
toastEntry: o,
|
|
612
|
-
getToastProps: e,
|
|
613
|
-
onClose: n
|
|
614
|
-
}, o.notification.id));
|
|
615
|
-
}, ta = () => {
|
|
616
|
-
const e = N();
|
|
617
|
-
return K(() => (e.set("mountedToasterCount", e.state.mountedToasterCount + 1), () => {
|
|
618
|
-
e.set("mountedToasterCount", e.state.mountedToasterCount - 1), !(e.state.mountedToasterCount > 0) && e.set("toasts", e.state.toasts.filter(P));
|
|
619
|
-
}), [e]), null;
|
|
620
|
-
}, $a = ({ container: e, getToastProps: r, className: n, render: o, ref: t, ...i }) => {
|
|
621
|
-
const g = se(), l = Te(), _ = e === void 0 ? g ?? (typeof document > "u" ? null : document.body) : e, s = U({
|
|
622
|
-
render: o,
|
|
623
|
-
ref: t,
|
|
624
|
-
props: {
|
|
625
|
-
role: "region",
|
|
626
|
-
dir: l,
|
|
627
|
-
"aria-label": "Notifications",
|
|
628
|
-
...i,
|
|
629
|
-
className: c(W.root, n),
|
|
630
|
-
children: /* @__PURE__ */ u(T, { children: [/* @__PURE__ */ a(ta, {}), /* @__PURE__ */ a(na, { getToastProps: r })] })
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
return m(_) ? Ce(s, _) : null;
|
|
634
|
-
};
|
|
635
|
-
export {
|
|
636
|
-
xe as C,
|
|
637
|
-
Ae as S,
|
|
638
|
-
Ia as _,
|
|
639
|
-
Wa as a,
|
|
640
|
-
Na as b,
|
|
641
|
-
La as c,
|
|
642
|
-
Pa as d,
|
|
643
|
-
Ra as f,
|
|
644
|
-
wa as g,
|
|
645
|
-
Aa as h,
|
|
646
|
-
Da as i,
|
|
647
|
-
Ea as l,
|
|
648
|
-
Sa as m,
|
|
649
|
-
Ma as n,
|
|
650
|
-
jr as o,
|
|
651
|
-
xa as p,
|
|
652
|
-
Yr as r,
|
|
653
|
-
ja as s,
|
|
654
|
-
$a as t,
|
|
655
|
-
Ba as u,
|
|
656
|
-
ya as v,
|
|
657
|
-
Ie as w,
|
|
658
|
-
we as x,
|
|
659
|
-
ze as y
|
|
660
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.currentTarget.click())};Object.defineProperty(exports,"handleClickableElementKeyDown",{enumerable:!0,get:function(){return r}});
|