twenty-ui 2.46.0 → 2.48.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/dist/{AllIcons-C_27esn4.cjs → AllIcons-Cyd7721G.cjs} +1 -1
- package/dist/{AllIcons-CLbeNZLM.js → AllIcons-D132B8_i.js} +1 -1
- package/dist/{Avatar-DK78lGPU.cjs → Avatar-CQhIEazb.cjs} +1 -1
- package/dist/{Avatar-DnJMCjoR.js → Avatar-D-QA0RE5.js} +2 -2
- package/dist/{Button-DQUIhQAm.js → Button-D5enZ0Qz.js} +7 -6
- package/dist/Button-Dbi5P05r.cjs +1 -0
- package/dist/Dropdown-BKjAaZS0.cjs +1 -0
- package/dist/Dropdown-C2hXrjvD.js +820 -0
- package/dist/Input-DZWl81G_.js +23 -0
- package/dist/Input-DvL77rvu.cjs +1 -0
- package/dist/{ListItem-fFbJhi6M.cjs → ListItem-CHTR-GLd.cjs} +1 -1
- package/dist/{ListItem-BVJEFywj.js → ListItem-CjnrSbka.js} +4 -4
- package/dist/ListItem.module-BJ9Ttjrc.js +34 -0
- package/dist/ListItem.module-CO4u2oeF.cjs +1 -0
- package/dist/{Loader-GFhTL4Aw.cjs → Loader-Bb72CUQ9.cjs} +1 -1
- package/dist/{Loader-BBMC4fe6.js → Loader-DtHWQH8w.js} +1 -1
- package/dist/OverflowingTextWithTooltip-BmUROIah.js +90 -0
- package/dist/OverflowingTextWithTooltip-Z2daM0_x.cjs +1 -0
- package/dist/{Popover-C-JjVGKl.js → Popover-CWeCV7X9.js} +1 -1
- package/dist/{Popover-D_S9MGZm.cjs → Popover-CneCJTvD.cjs} +1 -1
- package/dist/ProgressBar-BvT1dyFo.js +84 -0
- package/dist/ProgressBar-DfFz0fFB.cjs +1 -0
- package/dist/ProgressRing-8mYV9cxE.js +68 -0
- package/dist/ProgressRing-g1nHGyUp.cjs +1 -0
- package/dist/Radio-DMI1B7o5.js +103 -0
- package/dist/Radio-xmHgGHQO.cjs +1 -0
- package/dist/{ResizeHandle-X2NdHzqt.js → ResizeHandle-C1kQ3MYR.js} +2 -1
- package/dist/ResizeHandle-DI4LHIQm.cjs +1 -0
- package/dist/Shortcut-BvWUZ3pb.js +72 -0
- package/dist/Shortcut-CgrdLv_L.cjs +1 -0
- package/dist/TabsTabContent-Co27Y2TU.cjs +1 -0
- package/dist/TabsTabContent-DVcObDp6.js +39 -0
- package/dist/{TintedIconTile-BZgRO7cg.js → TintedIconTile-4BGa8g8n.js} +2 -2
- package/dist/{TintedIconTile-Dp4uH0Up.cjs → TintedIconTile-CU2hCerq.cjs} +1 -1
- package/dist/Tooltip-Bg9Uk01p.cjs +1 -0
- package/dist/Tooltip-cLCgtFBF.js +124 -0
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/__stories__/ControlledCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ModelCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ResizableCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ThemedCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/UnmountingCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorAutoHeightEffect.d.ts +9 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLifecycleEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLoaderConfigurationEffect.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorMarkersEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorResizableHeightEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorThemeEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/constants/CodeEditorDefaultHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/types/ResizedCodeEditorHeight.d.ts +4 -0
- package/dist/components/code-editor/CodeEditor/internal/useCodeEditorHeight.d.ts +13 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/defineCodeEditorDefaultTheme.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getBaseCodeEditorTheme.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/utils/getBoundedCodeEditorHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getCurrentCodeEditorHeight.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getResizableCodeEditorHeight.d.ts +5 -0
- package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +4 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +267 -155
- package/dist/components/data-display/StackIcon/StackIcon.d.ts +2 -0
- package/dist/components/data-display/StackIcon/types/StackIconProps.d.ts +6 -0
- package/dist/components/data-display/index.d.ts +2 -1
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +5 -5
- package/dist/components/feedback/Toast/Toast.d.ts +1 -1
- package/dist/components/feedback/Toast/hooks/useToast.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/components/ToastCountdownEffect.d.ts +10 -0
- package/dist/components/feedback/Toast/internal/components/ToastFocusEffect.d.ts +7 -0
- package/dist/components/feedback/Toast/internal/components/ToastProgress.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/components/ToastProviderLifecycleEffect.d.ts +3 -0
- package/dist/components/feedback/Toast/internal/constants/DefaultToastDuration.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/contexts/ToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/contexts/ToastTimingContext.d.ts +14 -0
- package/dist/components/feedback/Toast/internal/hooks/useToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/hooks/useToastCountdown.d.ts +49 -0
- package/dist/components/feedback/Toast/internal/hooks/useUpdateToast.d.ts +4 -0
- package/dist/components/feedback/Toast/internal/stores/createToastStore.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/types/ToastEntry.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/assertValidToastLimit.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/completeToastExit.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/createToastCountdown.d.ts +22 -0
- package/dist/components/feedback/Toast/internal/utils/createToastCountdownStore.d.ts +22 -0
- package/dist/components/feedback/Toast/internal/utils/createToastLifecycle.d.ts +62 -0
- package/dist/components/feedback/Toast/internal/utils/dismissToasts.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/isCountdownDuration.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/updateToastInStore.d.ts +5 -0
- package/dist/components/feedback/Toast/internal/utils/updateToastLimit.d.ts +5 -0
- package/dist/components/feedback/Toast/types/ToastProps.d.ts +4 -6
- package/dist/components/feedback/Toast/types/ToastStatus.d.ts +1 -0
- package/dist/components/feedback/Toast/types/ToastUpdate.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/DefaultTimingDuration.d.ts +1 -0
- package/dist/components/feedback/Toaster/__stories__/ToastUpdateControls.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleControls.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExampleProps.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts +9 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleUnrelatedNotificationActions.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterPortalExample.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderLayoutReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderPassiveReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderReplayExample.d.ts +6 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspenseExample.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspension.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterRootReplacementExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterSelfRemovingActionExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterTimingExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterTimingExampleProps.d.ts +6 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterUpdateExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterUpdateExampleProps.d.ts +8 -0
- package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +2 -1
- package/dist/components/feedback/index.d.ts +2 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/NumberStepper/NumberStepper.d.ts +2 -0
- package/dist/{primitives → components}/input/NumberStepper/internal/utils/isBlurRoundingOfCurrentValue.d.ts +2 -2
- package/dist/components/input/NumberStepper/types/NumberStepperProps.d.ts +8 -0
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -3
- package/dist/{primitives → components}/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/{primitives → components}/input/SegmentedControl/types/SegmentedControlProps.d.ts +3 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlSize.d.ts +1 -0
- package/dist/components/input/index.d.ts +6 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +11 -9
- package/dist/components/layout/OverflowingList/OverflowingList.d.ts +1 -1
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListActionsExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListDisabledTriggerFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListInstanceCleanupExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +8 -2
- package/dist/components/layout/OverflowingList/internal/OverflowingListItemFocusEffect.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListLayoutEffect.d.ts +16 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListPopupTarget.d.ts +10 -0
- package/dist/components/layout/OverflowingList/internal/focusOverflowingListFallback.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +10 -0
- package/dist/components/layout/OverflowingList/internal/types/OverflowingListLayout.d.ts +4 -0
- package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -1
- package/dist/components/layout/OverflowingList/internal/useOverflowingListFocus.d.ts +30 -0
- package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +6 -6
- package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +6 -5
- package/dist/components/navigation/Dropdown/internal/DropdownGroup.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownGroupLabel.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownRowFocus.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRowsEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownRows.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearch.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTabStopRowId.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +2 -1
- package/dist/components/navigation/Dropdown/internal/isDropdownRow.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isEnabledDropdownItem.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +0 -1
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +1 -6
- package/dist/components/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +4 -5
- package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +1 -1
- package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +1 -0
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +35 -33
- package/dist/data-display-0QO_WDSs.js +183 -0
- package/dist/data-display-CPmTJAWJ.cjs +1 -0
- package/dist/data-display-DjhAHvj1.cjs +2 -0
- package/dist/data-display-KyZbLLy-.js +344 -0
- package/dist/feedback-CM6fatE8.js +664 -0
- package/dist/feedback-DA-AU5z5.js +38 -0
- package/dist/feedback-DNLERYY9.cjs +1 -0
- package/dist/feedback-ybO4n69s.cjs +1 -0
- package/dist/getProgressIndicatorPercentage-Mii9lnYd.cjs +1 -0
- package/dist/getProgressIndicatorPercentage-ejfaM6XU.js +7 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +7 -7
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-DM8Yjnig.cjs → icon-BNcdwwdl.cjs} +1 -1
- package/dist/{icon-Bo3y4NHM.js → icon-CUE-QGQK.js} +130 -129
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +77 -76
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +274 -268
- package/dist/input-3D2lXywH.cjs +1 -0
- package/dist/input-CJDYNwoO.cjs +1 -0
- package/dist/input-DRpDiMRi.js +421 -0
- package/dist/input-TM3nUdu6.js +554 -0
- package/dist/layout-BszCDxAO.js +441 -0
- package/dist/layout-VaIq7Sjr.cjs +1 -0
- package/dist/navigation-B1SRvzKK.js +403 -0
- package/dist/navigation-CYAs2LnR.js +131 -0
- package/dist/navigation-CthkGHJ8.cjs +1 -0
- package/dist/navigation-DrOV5E67.cjs +1 -0
- package/dist/preventDismissingClickActivation-CzWqpjiX.js +44 -0
- package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +1 -0
- package/dist/primitives/data-display/Badge/Badge.d.ts +2 -0
- package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +1 -0
- package/dist/primitives/data-display/Badge/types/BadgeProps.d.ts +9 -0
- package/dist/primitives/data-display/Badge/types/BadgeShape.d.ts +1 -0
- package/dist/primitives/data-display/Badge/types/BadgeSize.d.ts +1 -0
- package/dist/primitives/data-display/index.d.ts +5 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +8 -8
- package/dist/primitives/feedback/Progress/Progress.d.ts +1 -0
- package/dist/primitives/feedback/Progress/internal/getProgressIndicatorPercentage.d.ts +7 -0
- package/dist/primitives/feedback/Progress/types/ProgressIndicatorProps.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressIndicatorState.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressLabelProps.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressLabelState.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressRootProps.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressRootState.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressStatus.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressTrackProps.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressTrackState.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressValueProps.d.ts +2 -0
- package/dist/primitives/feedback/Progress/types/ProgressValueState.d.ts +2 -0
- package/dist/primitives/feedback/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/primitives/feedback/ProgressBar/types/ProgressBarProps.d.ts +2 -8
- package/dist/primitives/feedback/ProgressRing/ProgressRing.d.ts +1 -1
- package/dist/primitives/feedback/ProgressRing/internal/ProgressRingIndicator.d.ts +2 -0
- package/dist/primitives/feedback/ProgressRing/types/ProgressRingProps.d.ts +2 -3
- package/dist/primitives/feedback/Skeleton/Skeleton.d.ts +1 -1
- package/dist/primitives/feedback/Skeleton/types/SkeletonProps.d.ts +1 -0
- package/dist/primitives/feedback/index.d.ts +12 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +12 -10
- package/dist/primitives/input/Autocomplete/Autocomplete.d.ts +20 -3
- package/dist/primitives/input/Autocomplete/__stories__/AutocompleteFilteredCount.d.ts +1 -0
- package/dist/primitives/input/Autocomplete/__stories__/AutocompleteFilteredExample.d.ts +1 -0
- package/dist/primitives/input/Autocomplete/__stories__/AutocompleteGridExample.d.ts +1 -0
- package/dist/primitives/input/Autocomplete/__stories__/AutocompleteGroupedExample.d.ts +1 -0
- package/dist/primitives/input/Autocomplete/__stories__/AutocompletePositionedExample.d.ts +1 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteArrow.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteInput.d.ts +1 -1
- package/dist/primitives/input/Autocomplete/internal/AutocompletePopup.d.ts +1 -1
- package/dist/primitives/input/Autocomplete/internal/AutocompletePortal.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompletePositioner.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteSeparator.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteArrowProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteArrowState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteBackdropProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteBackdropState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteClearProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteClearState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteCollectionProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteCollectionState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteEmptyState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteFilter.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteFilterOptions.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteGroupLabelProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteGroupLabelState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteGroupProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteGroupState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteIconProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteIconState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteInputGroupState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteInputState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteItemState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteListState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompletePopupProps.d.ts +1 -2
- package/dist/primitives/input/Autocomplete/types/AutocompletePopupState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompletePortalProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompletePortalState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompletePositionerProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompletePositionerState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootActions.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootHighlightEventDetails.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootHighlightEventReason.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootProps.d.ts +1 -3
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRowProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRowState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteSeparatorProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteSeparatorState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteStatusProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteStatusState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteTriggerProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteTriggerState.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteValueProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteValueState.d.ts +2 -0
- package/dist/primitives/input/NumberField/NumberField.d.ts +9 -0
- package/dist/primitives/input/NumberField/__stories__/ControlledNumberFieldInteractionExample.d.ts +2 -0
- package/dist/primitives/input/NumberField/__stories__/NumberFieldFormInteractionExample.d.ts +2 -0
- package/dist/primitives/input/NumberField/__stories__/NumberFieldInteractionExample.d.ts +4 -0
- package/dist/primitives/input/NumberField/__stories__/NumberFieldScrubInteractionExample.d.ts +2 -0
- package/dist/primitives/input/NumberField/internal/NumberFieldDecrement.d.ts +2 -0
- package/dist/primitives/input/NumberField/internal/NumberFieldGroup.d.ts +2 -0
- package/dist/primitives/input/NumberField/internal/NumberFieldIncrement.d.ts +2 -0
- package/dist/primitives/input/NumberField/internal/NumberFieldInput.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldDecrementProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldDecrementState.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldGroupProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldGroupState.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldIncrementProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldIncrementState.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldInputProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldInputState.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldRootCommitEventDetails.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldRootCommitEventReason.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldRootProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldRootState.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldScrubAreaCursorProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldScrubAreaCursorState.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldScrubAreaProps.d.ts +2 -0
- package/dist/primitives/input/NumberField/types/NumberFieldScrubAreaState.d.ts +2 -0
- package/dist/primitives/input/Radio/Radio.d.ts +4 -2
- package/dist/primitives/input/Radio/internal/RadioComponent.d.ts +2 -0
- package/dist/primitives/input/Radio/internal/RadioIndicator.d.ts +1 -0
- package/dist/primitives/input/Radio/internal/RadioRoot.d.ts +2 -0
- package/dist/primitives/input/Radio/types/RadioIndicatorProps.d.ts +2 -0
- package/dist/primitives/input/Radio/types/RadioIndicatorState.d.ts +2 -0
- package/dist/primitives/input/Radio/types/RadioRootProps.d.ts +2 -0
- package/dist/primitives/input/Radio/types/RadioRootState.d.ts +2 -0
- package/dist/primitives/input/RadioGroup/types/RadioGroupChangeEventDetails.d.ts +2 -0
- package/dist/primitives/input/RadioGroup/types/RadioGroupChangeEventReason.d.ts +2 -0
- package/dist/primitives/input/RadioGroup/types/RadioGroupState.d.ts +2 -0
- package/dist/primitives/input/Select/Select.d.ts +14 -3
- package/dist/primitives/input/Select/__stories__/SelectExample.d.ts +2 -9
- package/dist/primitives/input/Select/__stories__/SelectExampleProps.d.ts +5 -0
- package/dist/primitives/input/Select/__stories__/SelectPositioningExample.d.ts +2 -0
- package/dist/primitives/input/Select/__stories__/selectItems.d.ts +4 -0
- package/dist/primitives/input/Select/internal/SelectIcon.d.ts +2 -0
- package/dist/primitives/input/Select/internal/SelectItem.d.ts +1 -1
- package/dist/primitives/input/Select/internal/SelectItemIndicator.d.ts +2 -0
- package/dist/primitives/input/Select/internal/SelectItemText.d.ts +2 -0
- package/dist/primitives/input/Select/internal/SelectPopup.d.ts +1 -1
- package/dist/primitives/input/Select/internal/SelectPortal.d.ts +2 -0
- package/dist/primitives/input/Select/internal/SelectPositioner.d.ts +2 -0
- package/dist/primitives/input/Select/internal/SelectTrigger.d.ts +1 -1
- package/dist/primitives/input/Select/types/SelectArrowProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectArrowState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectBackdropProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectBackdropState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectGroupLabelState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectGroupState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectIconProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectIconState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectItemIndicatorProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectItemIndicatorState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectItemProps.d.ts +2 -2
- package/dist/primitives/input/Select/types/SelectItemState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectItemTextProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectItemTextState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectLabelProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectLabelState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectListProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectListState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectPopupProps.d.ts +1 -7
- package/dist/primitives/input/Select/types/SelectPopupState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectPortalProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectPortalState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectPositionerProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectPositionerState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectRootActions.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectRootState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectScrollDownArrowProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectScrollDownArrowState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectScrollUpArrowProps.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectScrollUpArrowState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectSeparatorState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectTriggerState.d.ts +2 -0
- package/dist/primitives/input/Select/types/SelectValueState.d.ts +2 -0
- package/dist/primitives/input/index.d.ts +101 -5
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +16 -17
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +1 -1
- package/dist/primitives/navigation/Tabs/Tabs.d.ts +2 -1
- package/dist/primitives/navigation/Tabs/internal/TabsIndicator.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/internal/TabsList.d.ts +1 -1
- package/dist/primitives/navigation/Tabs/types/TabsIndicatorProps.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsIndicatorState.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsListState.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsPanelMetadata.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsPanelState.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsRootOrientation.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsRootState.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsTabActivationDirection.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsTabMetadata.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsTabPosition.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsTabProps.d.ts +2 -2
- package/dist/primitives/navigation/Tabs/types/TabsTabSize.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsTabState.d.ts +2 -0
- package/dist/primitives/navigation/Tabs/types/TabsTabValue.d.ts +2 -0
- package/dist/primitives/navigation/index.d.ts +15 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +0 -16
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +7 -8
- package/dist/primitives/typography/OverflowingTextWithTooltip/OverflowingTextTooltipModeProvider.d.ts +6 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/OverflowingTextTooltipModeContext.d.ts +2 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/isElementOverflowing.d.ts +1 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextTooltipMode.d.ts +1 -0
- package/dist/primitives/typography/Shortcut/Shortcut.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +1 -0
- package/dist/primitives/typography/index.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +10 -9
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +69 -67
- package/dist/{settings-bRqO7Q-5.cjs → settings-BAYsnlZJ.cjs} +1 -1
- package/dist/{settings-Fpo_5Uen.js → settings-BjEZiHXE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-0rL5DoHt.cjs +1 -0
- package/dist/surfaces-BLsR5ka0.js +202 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +1 -1
- package/dist/theme/constants/ThemeLight.d.ts +1 -0
- package/dist/theme/themeCssVariables.d.ts +1 -0
- package/dist/theme/themeTypes.d.ts +1 -0
- package/dist/theme-1XkFz8Qu.cjs +1 -0
- package/dist/{theme-yAk9zrNA.js → theme-B2EaXhye.js} +10 -7
- package/dist/theme-dark.css +1045 -1042
- package/dist/theme-light.css +1049 -1046
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/typography-B5QEuPaL.cjs +1 -0
- package/dist/typography-fOTFr0jS.js +11 -0
- package/dist/{useIsMobile-C_rtkXZO.cjs → useIsMobile-DxOPI2_E.cjs} +1 -1
- package/dist/{useIsMobile-BvEB9MOV.js → useIsMobile-nrufFzMb.js} +1 -1
- package/dist/utilities/index.d.ts +1 -0
- package/dist/{utilities-06FvJQzl.cjs → utilities-BeLfNQ0Q.cjs} +1 -1
- package/dist/{utilities-DpSj_IdQ.js → utilities-CEi9I09B.js} +2 -2
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +13 -12
- package/package.json +3 -1
- package/dist/Button-DkijwPOi.cjs +0 -1
- package/dist/Dropdown-CZVEnq0N.js +0 -774
- package/dist/Dropdown-Ckcy6ZLF.cjs +0 -1
- package/dist/Input-D3-FH2Zz.js +0 -49
- package/dist/Input-W2vWPc9r.cjs +0 -1
- package/dist/InputGroup-DEozqrQd.cjs +0 -1
- package/dist/InputGroup-wM9PT12U.js +0 -51
- package/dist/ListItem.module-Ar-vZ7Qu.js +0 -34
- package/dist/ListItem.module-B8NeDH1P.cjs +0 -1
- package/dist/MenuSeparator-BdPwyE9f.js +0 -25
- package/dist/MenuSeparator-wRxC7b_c.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-CXHiE4BG.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-wRABzEWd.js +0 -199
- package/dist/ProgressBar-BHiYQW6F.cjs +0 -1
- package/dist/ProgressBar-B_GDjg9S.js +0 -83
- package/dist/ProgressRing-CHLADu5q.cjs +0 -1
- package/dist/ProgressRing-Cwqo4hWZ.js +0 -57
- package/dist/ResizeHandle-BGboQXCx.cjs +0 -1
- package/dist/Shortcut-CWRh02hg.js +0 -71
- package/dist/Shortcut-oYvcja2P.cjs +0 -1
- package/dist/TabsTabContent-DZUNi_iE.cjs +0 -1
- package/dist/TabsTabContent-s6J5bZ3R.js +0 -39
- package/dist/components/data-display/NotificationCounter/NotificationCounter.d.ts +0 -7
- package/dist/components/feedback/Toast/types/ToastVariant.d.ts +0 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +0 -5
- package/dist/data-display-BMM4rYOl.cjs +0 -1
- package/dist/data-display-Bw-5dsCu.cjs +0 -2
- package/dist/data-display-CRDo6TBH.js +0 -175
- package/dist/data-display-CehSwX8i.js +0 -333
- package/dist/feedback-BV1EK98d.js +0 -382
- package/dist/feedback-BleeRoOP.cjs +0 -1
- package/dist/feedback-CI5j7IZ3.js +0 -37
- package/dist/feedback-f1_n3da1.cjs +0 -1
- package/dist/input-CKcuJwhb.js +0 -450
- package/dist/input-CmZ5aC9o.js +0 -548
- package/dist/input-D9vXRp8R.cjs +0 -1
- package/dist/input-DSvyF-Tb.cjs +0 -1
- package/dist/layout-Bt-DUE1X.js +0 -267
- package/dist/layout-DJq0Dcmq.cjs +0 -1
- package/dist/navigation-BVhRDMCr.js +0 -394
- package/dist/navigation-CsxM7PWb.cjs +0 -1
- package/dist/navigation-DK1z9KJj.js +0 -124
- package/dist/navigation-DOSnqFwk.cjs +0 -1
- package/dist/normalizeSearchText-DA4xMLCJ.js +0 -18
- package/dist/normalizeSearchText-DoNMfZqV.cjs +0 -1
- package/dist/primitives/data-display/Pill/Pill.d.ts +0 -10
- package/dist/primitives/input/Autocomplete/internal/AutocompleteRoot.d.ts +0 -2
- package/dist/primitives/input/NumberStepper/NumberStepper.d.ts +0 -2
- package/dist/primitives/input/NumberStepper/types/NumberStepperProps.d.ts +0 -7
- package/dist/primitives/navigation/ListItem/__stories__/ListItemMenuExample.d.ts +0 -6
- package/dist/primitives/surfaces/Menu/Menu.d.ts +0 -15
- package/dist/primitives/surfaces/Menu/internal/MenuCheckboxItem.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuGroup.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuGroupLabel.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuItem.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuNestingContext.d.ts +0 -1
- package/dist/primitives/surfaces/Menu/internal/MenuPopup.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuPopupPositionDefaults.d.ts +0 -8
- package/dist/primitives/surfaces/Menu/internal/MenuRadioGroup.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuRadioItem.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuSeparator.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuSubmenuRoot.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/MenuSubmenuTrigger.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +0 -17
- package/dist/primitives/surfaces/Menu/types/MenuActionItemProps.d.ts +0 -3
- package/dist/primitives/surfaces/Menu/types/MenuAlign.d.ts +0 -1
- package/dist/primitives/surfaces/Menu/types/MenuCheckboxItemProps.d.ts +0 -3
- package/dist/primitives/surfaces/Menu/types/MenuGroupLabelProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuGroupProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuPopupProps.d.ts +0 -31
- package/dist/primitives/surfaces/Menu/types/MenuRadioGroupProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuRadioItemProps.d.ts +0 -3
- package/dist/primitives/surfaces/Menu/types/MenuRootProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuSeparatorProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuSide.d.ts +0 -1
- package/dist/primitives/surfaces/Menu/types/MenuSubmenuRootProps.d.ts +0 -2
- package/dist/primitives/surfaces/Menu/types/MenuSubmenuTriggerProps.d.ts +0 -3
- package/dist/primitives/surfaces/Menu/types/MenuTriggerProps.d.ts +0 -2
- package/dist/surfaces-C2s4Qrvy.cjs +0 -1
- package/dist/surfaces-CV04bWoI.js +0 -294
- package/dist/theme-Zf62UE02.cjs +0 -1
- package/dist/typography-CBqN-Jhw.cjs +0 -1
- package/dist/typography-D-DQvgaS.js +0 -5
- /package/dist/{primitives → components}/input/NumberStepper/__stories__/ControlledNumberStepperExample.d.ts +0 -0
- /package/dist/{primitives → components}/input/NumberStepper/__stories__/NumberStepperFieldExample.d.ts +0 -0
- /package/dist/{primitives → components}/input/NumberStepper/__stories__/NumberStepperFormExample.d.ts +0 -0
- /package/dist/{primitives → components}/input/NumberStepper/internal/constants/NumberStepperFormat.d.ts +0 -0
- /package/dist/{primitives → components}/input/SegmentedControl/types/SegmentedControlOption.d.ts +0 -0
- /package/dist/utilities/{internal → utils}/preventDismissingClickActivation.d.ts +0 -0
|
@@ -0,0 +1,664 @@
|
|
|
1
|
+
import { t as l } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Ta as Y, gl as Z, hc as pe, la as _e, nt as F } from "./icon-CUE-QGQK.js";
|
|
3
|
+
import { a as Te, r as he, t as ge } from "./theme-B2EaXhye.js";
|
|
4
|
+
import { t as Ce } from "./mergeClassNames-ClFMR1v0.js";
|
|
5
|
+
import { t as W } from "./Button-D5enZ0Qz.js";
|
|
6
|
+
import { n as ee, r as be, t as we } from "./ProgressBar-BvT1dyFo.js";
|
|
7
|
+
import { t as y } from "./isRenderableSlot-DT_depzM.js";
|
|
8
|
+
import { t as xe } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
9
|
+
import { t as ye } from "./OverflowingTextWithTooltip-BmUROIah.js";
|
|
10
|
+
import { t as Ae } from "./Separator-0LzwPfOn.js";
|
|
11
|
+
import { useRender as z } from "@base-ui/react/use-render";
|
|
12
|
+
import { isNonEmptyArray as $, isPositiveInteger as Ne, isString as Ee, isUndefined as Pe } from "@sniptt/guards";
|
|
13
|
+
import { clsx as S } from "clsx";
|
|
14
|
+
import { createContext as te, useCallback as Ie, useContext as q, useEffect as Re, useLayoutEffect as I, useMemo as Se, useRef as ke, useState as P, useSyncExternalStore as Oe } from "react";
|
|
15
|
+
import { Fragment as R, jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
16
|
+
import { Store as We, useStore as Be } from "@base-ui/utils/store";
|
|
17
|
+
import { createPortal as Me } from "react-dom";
|
|
18
|
+
var Fe = "_action_3r2bm_1", De = { action: Fe }, ze = ({ className: e, ...t }) => /* @__PURE__ */ a(W, {
|
|
19
|
+
...t,
|
|
20
|
+
size: "sm",
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
className: Ce(De.action, e)
|
|
23
|
+
}), $e = "_container_1ix4w_1", qe = "_containerFullWidth_1ix4w_40", je = "_header_1ix4w_44", Ue = "_iconContainer_1ix4w_53", Le = "_title_1ix4w_63", Ke = "_descriptionWrapper_1ix4w_75", He = "_descriptionWrapperWithIcon_1ix4w_82", Ve = "_descriptionWrapperWithAction_1ix4w_86", Xe = "_description_1ix4w_75", Ge = "_footer_1ix4w_99", Je = "_closeButton_1ix4w_106", h = {
|
|
24
|
+
container: $e,
|
|
25
|
+
containerFullWidth: qe,
|
|
26
|
+
header: je,
|
|
27
|
+
iconContainer: Ue,
|
|
28
|
+
title: Le,
|
|
29
|
+
descriptionWrapper: Ke,
|
|
30
|
+
descriptionWrapperWithIcon: He,
|
|
31
|
+
descriptionWrapperWithAction: Ve,
|
|
32
|
+
description: Xe,
|
|
33
|
+
footer: Ge,
|
|
34
|
+
closeButton: Je
|
|
35
|
+
}, Qe = ({ status: e = "info", variant: t = "soft", color: o = be[e], title: s, description: r, fullWidth: c = !1, icon: n = /* @__PURE__ */ a(_e, {
|
|
36
|
+
size: Te.icon.size.md,
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}), action: v, closeLabel: f = "Close", onDismiss: m, className: _, render: T, ref: u, ...d }) => {
|
|
39
|
+
const i = y(n), p = y(v);
|
|
40
|
+
return z({
|
|
41
|
+
render: T,
|
|
42
|
+
ref: u,
|
|
43
|
+
state: {
|
|
44
|
+
status: e,
|
|
45
|
+
variant: t,
|
|
46
|
+
color: o
|
|
47
|
+
},
|
|
48
|
+
props: {
|
|
49
|
+
...d,
|
|
50
|
+
className: S(h.container, c && h.containerFullWidth, _),
|
|
51
|
+
children: /* @__PURE__ */ g(R, { children: [
|
|
52
|
+
/* @__PURE__ */ g("div", {
|
|
53
|
+
className: h.header,
|
|
54
|
+
children: [
|
|
55
|
+
i && /* @__PURE__ */ a("div", {
|
|
56
|
+
className: h.iconContainer,
|
|
57
|
+
children: n
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ a("div", {
|
|
60
|
+
className: h.title,
|
|
61
|
+
children: s
|
|
62
|
+
}),
|
|
63
|
+
l(m) && /* @__PURE__ */ a(W, {
|
|
64
|
+
type: "button",
|
|
65
|
+
startIcon: /* @__PURE__ */ a(Z, { "aria-hidden": "true" }),
|
|
66
|
+
className: h.closeButton,
|
|
67
|
+
variant: "ghost",
|
|
68
|
+
size: "sm",
|
|
69
|
+
"aria-label": f,
|
|
70
|
+
onClick: () => m()
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
y(r) && /* @__PURE__ */ a("div", {
|
|
75
|
+
className: S(h.descriptionWrapper, i && h.descriptionWrapperWithIcon, p && h.descriptionWrapperWithAction),
|
|
76
|
+
children: /* @__PURE__ */ a("div", {
|
|
77
|
+
className: h.description,
|
|
78
|
+
children: r
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
p && /* @__PURE__ */ a("div", {
|
|
82
|
+
className: h.footer,
|
|
83
|
+
children: v
|
|
84
|
+
})
|
|
85
|
+
] })
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}, no = Object.assign(Qe, { Action: ze }), Ye = "_banner_17vm4_1", Ze = "_embedded_17vm4_6", et = "_bannerContent_17vm4_10", tt = "_icon_17vm4_18", ot = "_bannerText_17vm4_28", st = "_compact_17vm4_33", E = {
|
|
89
|
+
banner: Ye,
|
|
90
|
+
embedded: Ze,
|
|
91
|
+
bannerContent: et,
|
|
92
|
+
icon: tt,
|
|
93
|
+
bannerText: ot,
|
|
94
|
+
compact: st
|
|
95
|
+
}, rt = ({ children: e, layout: t = "standard", variant: o = "soft", embedded: s = !1, icon: r = /* @__PURE__ */ a(Y, { "aria-hidden": "true" }), className: c, ...n }) => {
|
|
96
|
+
const v = t === "compact", f = !v && Ee(e);
|
|
97
|
+
return /* @__PURE__ */ a(ee, {
|
|
98
|
+
...n,
|
|
99
|
+
className: S(E.banner, v && E.compact, s && E.embedded, c),
|
|
100
|
+
variant: o,
|
|
101
|
+
"data-layout": t,
|
|
102
|
+
children: /* @__PURE__ */ g("div", {
|
|
103
|
+
className: E.bannerContent,
|
|
104
|
+
children: [y(r) && /* @__PURE__ */ a("span", {
|
|
105
|
+
className: E.icon,
|
|
106
|
+
children: r
|
|
107
|
+
}), /* @__PURE__ */ a("div", {
|
|
108
|
+
className: E.bannerText,
|
|
109
|
+
children: f ? /* @__PURE__ */ a(ye, {
|
|
110
|
+
isFocusable: !0,
|
|
111
|
+
text: /* @__PURE__ */ a(R, { children: e }),
|
|
112
|
+
tooltipContent: e
|
|
113
|
+
}) : e
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
}, io = Object.assign(rt, { Action: ee.Action }), A = (e) => e.status === "visible", B = ({ store: e, toastsToClose: t, nextToasts: o = e.state.toasts }) => {
|
|
118
|
+
const s = t.filter((n) => A(n) && e.state.toasts.includes(n)), r = o.map((n) => s.includes(n) ? {
|
|
119
|
+
...n,
|
|
120
|
+
status: "closing"
|
|
121
|
+
} : n), c = e.state.mountedToasterCount > 0;
|
|
122
|
+
e.set("toasts", c ? r : r.filter(A));
|
|
123
|
+
for (const n of s) n.notification.onClose?.();
|
|
124
|
+
}, oe = te(void 0), N = () => {
|
|
125
|
+
const e = q(oe);
|
|
126
|
+
if (!l(e)) throw new Error("Toast components must be used within a ToastProvider.");
|
|
127
|
+
return e;
|
|
128
|
+
}, se = () => {
|
|
129
|
+
const e = N();
|
|
130
|
+
return { closeToast: (o) => {
|
|
131
|
+
if (!e.lifecycle.isActive()) return;
|
|
132
|
+
const s = e.state.toasts.filter((r) => A(r) && (!l(o) || r.notification.id === o));
|
|
133
|
+
$(s) && B({
|
|
134
|
+
store: e,
|
|
135
|
+
toastsToClose: s
|
|
136
|
+
});
|
|
137
|
+
} };
|
|
138
|
+
}, J = 0, Q = () => (J += 1, `toast-${J}`), nt = () => {
|
|
139
|
+
const e = N();
|
|
140
|
+
return { enqueueToast: Se(() => {
|
|
141
|
+
function t(o) {
|
|
142
|
+
if (!l(o)) return;
|
|
143
|
+
if (!e.lifecycle.isActive()) return Q();
|
|
144
|
+
const { dedupeKey: s, ...r } = o, { toasts: c, limit: n } = e.state, v = c.filter(A), f = l(s) ? v.find((T) => T.dedupeKey === s) : void 0;
|
|
145
|
+
if (l(f)) return f.notification.id;
|
|
146
|
+
const m = Q(), _ = Math.max(0, v.length - n + 1);
|
|
147
|
+
return B({
|
|
148
|
+
store: e,
|
|
149
|
+
toastsToClose: v.slice(0, _),
|
|
150
|
+
nextToasts: [...c, {
|
|
151
|
+
notification: {
|
|
152
|
+
...r,
|
|
153
|
+
id: m
|
|
154
|
+
},
|
|
155
|
+
dedupeKey: s,
|
|
156
|
+
status: "visible"
|
|
157
|
+
}]
|
|
158
|
+
}), m;
|
|
159
|
+
}
|
|
160
|
+
return t;
|
|
161
|
+
}, [e]) };
|
|
162
|
+
}, it = ({ store: e, id: t, ...o }) => {
|
|
163
|
+
if (!e.lifecycle.isActive()) return;
|
|
164
|
+
const s = e.state.toasts.find((n) => n.notification.id === t && A(n)), r = Object.keys(o);
|
|
165
|
+
if (!l(s) || !$(r)) return;
|
|
166
|
+
const c = r.includes("duration") || l(s.notification.progress) && r.includes("progress") && !l(o.progress);
|
|
167
|
+
e.set("toasts", e.state.toasts.map((n) => n === s ? {
|
|
168
|
+
...n,
|
|
169
|
+
notification: {
|
|
170
|
+
...n.notification,
|
|
171
|
+
...o,
|
|
172
|
+
id: t
|
|
173
|
+
},
|
|
174
|
+
...c ? { durationRevision: (n.durationRevision ?? 0) + 1 } : {}
|
|
175
|
+
} : n));
|
|
176
|
+
}, at = () => {
|
|
177
|
+
const e = N();
|
|
178
|
+
return { updateToast: Ie((t) => it({
|
|
179
|
+
store: e,
|
|
180
|
+
...t
|
|
181
|
+
}), [e]) };
|
|
182
|
+
}, ao = () => {
|
|
183
|
+
const { closeToast: e } = se(), { enqueueToast: t } = nt(), { updateToast: o } = at();
|
|
184
|
+
return {
|
|
185
|
+
enqueueToast: t,
|
|
186
|
+
closeToast: e,
|
|
187
|
+
updateToast: o
|
|
188
|
+
};
|
|
189
|
+
}, ct = "_root_181ka_1", dt = "_progress_181ka_19", lt = "_header_181ka_30", ut = "_message_181ka_40", vt = "_icon_181ka_45", ft = "_actions_181ka_50", mt = "_description_181ka_56", pt = "_footer_181ka_65", _t = "_footerAction_181ka_69", Tt = "_closeButton_181ka_76", b = {
|
|
190
|
+
root: ct,
|
|
191
|
+
progress: dt,
|
|
192
|
+
header: lt,
|
|
193
|
+
message: ut,
|
|
194
|
+
icon: vt,
|
|
195
|
+
actions: ft,
|
|
196
|
+
description: mt,
|
|
197
|
+
footer: pt,
|
|
198
|
+
footerAction: _t,
|
|
199
|
+
closeButton: Tt
|
|
200
|
+
}, j = te({
|
|
201
|
+
durationRevision: 0,
|
|
202
|
+
isActive: !0
|
|
203
|
+
}), ht = ({ clock: e, onClockChange: t, duration: o, progress: s, isPaused: r, onClose: c }) => {
|
|
204
|
+
const { durationRevision: n, isActive: v, lifecycle: f, id: m, rendererKey: _, timingOverrides: T } = q(j), u = l(f) && l(m) && l(_), d = u ? void 0 : e, i = l(s), p = l(T) && Object.prototype.propertyIsEnumerable.call(T, "duration"), x = l(T) && Object.prototype.propertyIsEnumerable.call(T, "progress");
|
|
205
|
+
return I(() => {
|
|
206
|
+
if (u) {
|
|
207
|
+
t(f.updateRenderer({
|
|
208
|
+
id: m,
|
|
209
|
+
key: _,
|
|
210
|
+
configuration: {
|
|
211
|
+
duration: p ? o : void 0,
|
|
212
|
+
isProgress: x ? i : void 0,
|
|
213
|
+
isPaused: r
|
|
214
|
+
}
|
|
215
|
+
}));
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
d?.update({
|
|
219
|
+
duration: o,
|
|
220
|
+
durationRevision: n,
|
|
221
|
+
isPaused: r,
|
|
222
|
+
isProgress: i,
|
|
223
|
+
isActive: v,
|
|
224
|
+
onClose: c
|
|
225
|
+
});
|
|
226
|
+
}, [
|
|
227
|
+
d,
|
|
228
|
+
t,
|
|
229
|
+
u,
|
|
230
|
+
o,
|
|
231
|
+
n,
|
|
232
|
+
r,
|
|
233
|
+
i,
|
|
234
|
+
v,
|
|
235
|
+
c,
|
|
236
|
+
f,
|
|
237
|
+
m,
|
|
238
|
+
_,
|
|
239
|
+
p,
|
|
240
|
+
x
|
|
241
|
+
]), I(() => () => {
|
|
242
|
+
if (u) {
|
|
243
|
+
f.removeRenderer({
|
|
244
|
+
id: m,
|
|
245
|
+
key: _
|
|
246
|
+
});
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
d?.stop();
|
|
250
|
+
}, [
|
|
251
|
+
d,
|
|
252
|
+
f,
|
|
253
|
+
m,
|
|
254
|
+
_,
|
|
255
|
+
u
|
|
256
|
+
]), null;
|
|
257
|
+
}, gt = ({ element: e, isFocused: t, onFocusChange: o }) => (I(() => {
|
|
258
|
+
if (!t || !l(e)) return;
|
|
259
|
+
const s = () => {
|
|
260
|
+
e.contains(e.ownerDocument.activeElement) || o(!1);
|
|
261
|
+
};
|
|
262
|
+
s();
|
|
263
|
+
const r = new MutationObserver(s);
|
|
264
|
+
return r.observe(e, {
|
|
265
|
+
childList: !0,
|
|
266
|
+
subtree: !0
|
|
267
|
+
}), () => r.disconnect();
|
|
268
|
+
}, [
|
|
269
|
+
e,
|
|
270
|
+
t,
|
|
271
|
+
o
|
|
272
|
+
]), null), re = 6e3, ne = (e) => Number.isFinite(e) && e > 0, Ct = "_countdown_1vuo8_1", bt = "_toastCountdown_1vuo8_1", wt = {
|
|
273
|
+
countdown: Ct,
|
|
274
|
+
toastCountdown: bt
|
|
275
|
+
}, xt = ({ progress: e, duration: t, remainingDuration: o, revision: s, isPaused: r, barColor: c }) => l(e) ? /* @__PURE__ */ a(we, {
|
|
276
|
+
value: e,
|
|
277
|
+
barColor: c
|
|
278
|
+
}) : ne(t) ? /* @__PURE__ */ a("div", {
|
|
279
|
+
className: wt.countdown,
|
|
280
|
+
"data-paused": r || void 0,
|
|
281
|
+
style: {
|
|
282
|
+
"--toast-countdown-color": c,
|
|
283
|
+
"--toast-countdown-width": `${o / t * 100}%`,
|
|
284
|
+
"--toast-countdown-duration": `${o}ms`
|
|
285
|
+
}
|
|
286
|
+
}, s) : null, yt = 2 ** 31 - 1, At = ({ onChange: e }) => {
|
|
287
|
+
let t, o = 0, s, r, c = 0, n = 0, v = !1;
|
|
288
|
+
const f = () => {
|
|
289
|
+
n += 1, l(s) && (o = Math.max(0, o - (performance.now() - s)), s = void 0), clearTimeout(r), r = void 0;
|
|
290
|
+
}, m = () => {
|
|
291
|
+
l(t) && (c += 1, e({
|
|
292
|
+
duration: t.duration,
|
|
293
|
+
remainingDuration: o,
|
|
294
|
+
revision: c,
|
|
295
|
+
isPaused: t.isPaused || !t.isActive
|
|
296
|
+
}));
|
|
297
|
+
}, _ = () => {
|
|
298
|
+
v || (f(), v = !0, o = 0, m(), t?.onClose?.());
|
|
299
|
+
}, T = () => l(t) && t.isActive && !t.isPaused && !t.isProgress && ne(t.duration) && !v, u = () => {
|
|
300
|
+
if (!T()) return;
|
|
301
|
+
s = performance.now();
|
|
302
|
+
const i = n;
|
|
303
|
+
r = setTimeout(() => {
|
|
304
|
+
if (i === n) {
|
|
305
|
+
if (f(), o > 0) {
|
|
306
|
+
u();
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
_();
|
|
310
|
+
}
|
|
311
|
+
}, Math.min(o, yt));
|
|
312
|
+
};
|
|
313
|
+
return {
|
|
314
|
+
update: (i) => {
|
|
315
|
+
const p = !l(t) || i.duration !== t.duration || i.durationRevision !== t.durationRevision || t.isProgress && !i.isProgress, x = p || i.isProgress !== t?.isProgress || i.isPaused !== t?.isPaused || i.isActive !== t?.isActive, C = !l(s) && T();
|
|
316
|
+
if (!x && !C) {
|
|
317
|
+
t = i;
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
f(), t = i, !v && (p && (o = Math.max(0, i.duration)), m(), u());
|
|
321
|
+
},
|
|
322
|
+
close: _,
|
|
323
|
+
stop: f
|
|
324
|
+
};
|
|
325
|
+
}, ie = ({ duration: e, isPaused: t }) => {
|
|
326
|
+
let o = {
|
|
327
|
+
duration: e,
|
|
328
|
+
remainingDuration: e,
|
|
329
|
+
revision: 0,
|
|
330
|
+
isPaused: t
|
|
331
|
+
};
|
|
332
|
+
const s = /* @__PURE__ */ new Set();
|
|
333
|
+
return {
|
|
334
|
+
...At({ onChange: (r) => {
|
|
335
|
+
o = r;
|
|
336
|
+
for (const c of s) c();
|
|
337
|
+
} }),
|
|
338
|
+
getSnapshot: () => o,
|
|
339
|
+
subscribe: (r) => (s.add(r), () => {
|
|
340
|
+
s.delete(r);
|
|
341
|
+
})
|
|
342
|
+
};
|
|
343
|
+
}, Nt = ({ duration: e, isPaused: t }) => {
|
|
344
|
+
const { lifecycle: o, id: s, rendererKey: r } = q(j), [c, n] = P(() => (l(o) && l(s) && l(r) ? o.getCountdown(s) : void 0) ?? ie({
|
|
345
|
+
duration: e,
|
|
346
|
+
isPaused: t
|
|
347
|
+
}));
|
|
348
|
+
return {
|
|
349
|
+
countdown: Oe(c.subscribe, c.getSnapshot, c.getSnapshot),
|
|
350
|
+
clock: c,
|
|
351
|
+
setClock: n
|
|
352
|
+
};
|
|
353
|
+
}, Et = {
|
|
354
|
+
neutral: F,
|
|
355
|
+
error: F,
|
|
356
|
+
success: pe,
|
|
357
|
+
info: Y,
|
|
358
|
+
warning: F
|
|
359
|
+
}, Pt = ({ children: e, description: t, icon: o, iconLabel: s, action: r, progress: c, duration: n = re, onCancel: v, onClose: f, cancelLabel: m = "Cancel", closeLabel: _ = "Close", status: T = "neutral", role: u = "status", className: d, onMouseEnter: i, onMouseLeave: p, onFocus: x, onBlur: C, render: k, ref: ce, ...de }) => {
|
|
360
|
+
const U = he(), [le, L] = P(!1), [K, M] = P(!1), [ue, ve] = P(null), H = le || K, { countdown: O, clock: V, setClock: fe } = Nt({
|
|
361
|
+
duration: n,
|
|
362
|
+
isPaused: H
|
|
363
|
+
}), me = Et[T], X = U.snackBar[T === "neutral" ? "default" : T], G = Pe(o) ? /* @__PURE__ */ a(me, {
|
|
364
|
+
"aria-label": s,
|
|
365
|
+
"aria-hidden": !l(s),
|
|
366
|
+
color: X.color,
|
|
367
|
+
size: U.icon.size.md
|
|
368
|
+
}) : o;
|
|
369
|
+
return /* @__PURE__ */ g(R, { children: [
|
|
370
|
+
z({
|
|
371
|
+
render: k,
|
|
372
|
+
ref: [ce ?? null, ve],
|
|
373
|
+
props: {
|
|
374
|
+
role: u,
|
|
375
|
+
"aria-live": u === "alert" ? "assertive" : "polite",
|
|
376
|
+
...de,
|
|
377
|
+
className: S(b.root, d),
|
|
378
|
+
onMouseEnter: (w) => {
|
|
379
|
+
L(!0), i?.(w);
|
|
380
|
+
},
|
|
381
|
+
onMouseLeave: (w) => {
|
|
382
|
+
L(!1), p?.(w);
|
|
383
|
+
},
|
|
384
|
+
onFocus: (w) => {
|
|
385
|
+
M(!0), x?.(w);
|
|
386
|
+
},
|
|
387
|
+
onBlur: (w) => {
|
|
388
|
+
w.currentTarget.contains(w.relatedTarget) || M(!1), C?.(w);
|
|
389
|
+
},
|
|
390
|
+
children: /* @__PURE__ */ g(R, { children: [
|
|
391
|
+
/* @__PURE__ */ a("div", {
|
|
392
|
+
className: b.progress,
|
|
393
|
+
"aria-hidden": !0,
|
|
394
|
+
children: /* @__PURE__ */ a(xt, {
|
|
395
|
+
barColor: X.backgroundColor,
|
|
396
|
+
progress: c,
|
|
397
|
+
duration: O.duration,
|
|
398
|
+
remainingDuration: O.remainingDuration,
|
|
399
|
+
revision: O.revision,
|
|
400
|
+
isPaused: O.isPaused
|
|
401
|
+
})
|
|
402
|
+
}),
|
|
403
|
+
/* @__PURE__ */ g("div", {
|
|
404
|
+
className: b.header,
|
|
405
|
+
children: [
|
|
406
|
+
y(G) && /* @__PURE__ */ a("div", {
|
|
407
|
+
className: b.icon,
|
|
408
|
+
children: G
|
|
409
|
+
}),
|
|
410
|
+
/* @__PURE__ */ a("div", {
|
|
411
|
+
className: b.message,
|
|
412
|
+
children: e
|
|
413
|
+
}),
|
|
414
|
+
/* @__PURE__ */ g("div", {
|
|
415
|
+
className: b.actions,
|
|
416
|
+
children: [l(v) && y(m) && /* @__PURE__ */ a(W, {
|
|
417
|
+
onClick: v,
|
|
418
|
+
size: "sm",
|
|
419
|
+
variant: "ghost",
|
|
420
|
+
style: { fontWeight: "var(--t-font-weight-regular)" },
|
|
421
|
+
children: m
|
|
422
|
+
}), l(f) && /* @__PURE__ */ a(W, {
|
|
423
|
+
title: _,
|
|
424
|
+
"aria-label": _,
|
|
425
|
+
startIcon: /* @__PURE__ */ a(Z, {}),
|
|
426
|
+
className: b.closeButton,
|
|
427
|
+
variant: "ghost",
|
|
428
|
+
size: "sm",
|
|
429
|
+
onClick: V.close
|
|
430
|
+
})]
|
|
431
|
+
})
|
|
432
|
+
]
|
|
433
|
+
}),
|
|
434
|
+
y(t) && /* @__PURE__ */ a("div", {
|
|
435
|
+
className: b.description,
|
|
436
|
+
children: t
|
|
437
|
+
}),
|
|
438
|
+
y(r) && /* @__PURE__ */ g("div", {
|
|
439
|
+
className: b.footer,
|
|
440
|
+
children: [/* @__PURE__ */ a(Ae, {}), /* @__PURE__ */ a("div", {
|
|
441
|
+
className: b.footerAction,
|
|
442
|
+
children: r
|
|
443
|
+
})]
|
|
444
|
+
})
|
|
445
|
+
] })
|
|
446
|
+
}
|
|
447
|
+
}),
|
|
448
|
+
/* @__PURE__ */ a(gt, {
|
|
449
|
+
element: ue,
|
|
450
|
+
isFocused: K,
|
|
451
|
+
onFocusChange: M
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ a(ht, {
|
|
454
|
+
clock: V,
|
|
455
|
+
onClockChange: fe,
|
|
456
|
+
duration: n,
|
|
457
|
+
progress: c,
|
|
458
|
+
isPaused: H,
|
|
459
|
+
onClose: f
|
|
460
|
+
})
|
|
461
|
+
] });
|
|
462
|
+
}, ae = (e) => {
|
|
463
|
+
if (!Ne(e)) throw new Error("Toast limit must be a positive integer.");
|
|
464
|
+
}, It = ({ store: e, limit: t }) => {
|
|
465
|
+
if (ae(t), e.state.limit === t) return;
|
|
466
|
+
e.set("limit", t);
|
|
467
|
+
const o = e.state.toasts.filter(A), s = Math.max(0, o.length - t);
|
|
468
|
+
s !== 0 && B({
|
|
469
|
+
store: e,
|
|
470
|
+
toastsToClose: o.slice(0, s)
|
|
471
|
+
});
|
|
472
|
+
}, Rt = ({ limit: e }) => {
|
|
473
|
+
const t = N();
|
|
474
|
+
return Re(() => t.lifecycle.mount(), [t]), I(() => It({
|
|
475
|
+
store: t,
|
|
476
|
+
limit: e
|
|
477
|
+
}), [t, e]), null;
|
|
478
|
+
}, St = ({ store: e, toast: t }) => {
|
|
479
|
+
const { toasts: o } = e.state;
|
|
480
|
+
t.status === "closing" && o.includes(t) && e.set("toasts", o.filter((s) => s !== t));
|
|
481
|
+
}, kt = (e) => {
|
|
482
|
+
const t = /* @__PURE__ */ new Map();
|
|
483
|
+
let o = !1, s = !1, r = 0;
|
|
484
|
+
const c = (u) => {
|
|
485
|
+
const d = t.get(u);
|
|
486
|
+
if (l(d)) return d;
|
|
487
|
+
const i = {
|
|
488
|
+
countdown: ie({
|
|
489
|
+
duration: re,
|
|
490
|
+
isPaused: !0
|
|
491
|
+
}),
|
|
492
|
+
renderers: /* @__PURE__ */ new Map()
|
|
493
|
+
};
|
|
494
|
+
return t.set(u, i), i;
|
|
495
|
+
}, n = (u) => {
|
|
496
|
+
if (!o) return;
|
|
497
|
+
const d = t.get(u);
|
|
498
|
+
if (!l(d?.pendingExits) || d.pendingExits.size > 0) return;
|
|
499
|
+
const i = e.state.toasts.find((p) => p.notification.id === u);
|
|
500
|
+
l(i) && St({
|
|
501
|
+
store: e,
|
|
502
|
+
toast: i
|
|
503
|
+
});
|
|
504
|
+
}, v = () => {
|
|
505
|
+
for (const [u, d] of t) {
|
|
506
|
+
const i = e.state.toasts.find((C) => C.notification.id === u);
|
|
507
|
+
if (!l(i)) {
|
|
508
|
+
d.countdown.stop(), t.delete(u);
|
|
509
|
+
continue;
|
|
510
|
+
}
|
|
511
|
+
const p = d.renderers.values().next().value ?? d.lastRenderer;
|
|
512
|
+
d.lastRenderer = p;
|
|
513
|
+
const x = !o || d.renderers.size === 0 || [...d.renderers.values()].some((C) => C.isPaused);
|
|
514
|
+
d.countdown.update({
|
|
515
|
+
duration: p?.duration ?? i.notification.duration ?? 6e3,
|
|
516
|
+
durationRevision: i.durationRevision ?? 0,
|
|
517
|
+
isProgress: p?.isProgress ?? l(i.notification.progress),
|
|
518
|
+
isPaused: x,
|
|
519
|
+
isActive: i.status === "visible",
|
|
520
|
+
onClose: () => {
|
|
521
|
+
const C = e.state.toasts.find((k) => k.notification.id === u && A(k));
|
|
522
|
+
!o || !l(C) || B({
|
|
523
|
+
store: e,
|
|
524
|
+
toastsToClose: [C]
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
}), i.status !== "visible" && (d.pendingExits ??= new Set(d.renderers.keys()), n(u));
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
return {
|
|
531
|
+
mount: () => {
|
|
532
|
+
o = !0, s = !1, r += 1;
|
|
533
|
+
const u = e.subscribe(v);
|
|
534
|
+
return v(), () => {
|
|
535
|
+
o = !1, u();
|
|
536
|
+
for (const i of t.values()) i.countdown.stop();
|
|
537
|
+
const d = ++r;
|
|
538
|
+
queueMicrotask(() => {
|
|
539
|
+
o || r !== d || (s = !0, t.clear(), e.set("toasts", []));
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
},
|
|
543
|
+
isActive: () => !s,
|
|
544
|
+
getCountdown: (u) => t.get(u)?.countdown,
|
|
545
|
+
updateRenderer: ({ id: u, key: d, configuration: i }) => {
|
|
546
|
+
const p = c(u);
|
|
547
|
+
return p.renderers.has(d) || (p.countdown.stop(), p.pendingExits?.add(d)), p.renderers.set(d, i), v(), p.countdown;
|
|
548
|
+
},
|
|
549
|
+
removeRenderer: ({ id: u, key: d }) => {
|
|
550
|
+
const i = t.get(u);
|
|
551
|
+
l(i) && (i.renderers.delete(d), i.pendingExits?.delete(d), v());
|
|
552
|
+
},
|
|
553
|
+
finishExit: ({ id: u, key: d }) => {
|
|
554
|
+
t.get(u)?.pendingExits?.delete(d), n(u);
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
}, Ot = (e = 3) => {
|
|
558
|
+
ae(e);
|
|
559
|
+
const t = new We({
|
|
560
|
+
toasts: [],
|
|
561
|
+
limit: e,
|
|
562
|
+
mountedToasterCount: 0
|
|
563
|
+
});
|
|
564
|
+
return Object.assign(t, { lifecycle: kt(t) });
|
|
565
|
+
}, co = ({ children: e, limit: t = 3 }) => {
|
|
566
|
+
const [o] = P(() => Ot(t));
|
|
567
|
+
return /* @__PURE__ */ g(oe.Provider, {
|
|
568
|
+
value: o,
|
|
569
|
+
children: [e, /* @__PURE__ */ a(Rt, { limit: t })]
|
|
570
|
+
});
|
|
571
|
+
}, Wt = "_root_1q2cc_1", Bt = "_item_1q2cc_20", Mt = "_itemContent_1q2cc_47", D = {
|
|
572
|
+
root: Wt,
|
|
573
|
+
item: Bt,
|
|
574
|
+
itemContent: Mt
|
|
575
|
+
}, Ft = () => Be(N(), (e) => e.toasts), Dt = ({ elementRef: e, toastEntry: t, rendererKey: o }) => {
|
|
576
|
+
const s = N();
|
|
577
|
+
return I(() => {
|
|
578
|
+
if (t.status === "visible") return;
|
|
579
|
+
const r = () => s.lifecycle.finishExit({
|
|
580
|
+
id: t.notification.id,
|
|
581
|
+
key: o
|
|
582
|
+
}), c = e.current?.getAnimations?.() ?? [];
|
|
583
|
+
if (!$(c)) {
|
|
584
|
+
r();
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
let n = !1;
|
|
588
|
+
return Promise.allSettled(c.map((v) => v.finished)).then(() => {
|
|
589
|
+
n || r();
|
|
590
|
+
}), () => {
|
|
591
|
+
n = !0;
|
|
592
|
+
};
|
|
593
|
+
}, [
|
|
594
|
+
e,
|
|
595
|
+
t,
|
|
596
|
+
s,
|
|
597
|
+
o
|
|
598
|
+
]), null;
|
|
599
|
+
}, zt = ({ toastEntry: e, getToastProps: t, onClose: o }) => {
|
|
600
|
+
const { notification: s, status: r, durationRevision: c = 0 } = e, { id: n, ...v } = s, f = N(), m = t?.(s), [_] = P(() => /* @__PURE__ */ Symbol()), T = ke(null);
|
|
601
|
+
return /* @__PURE__ */ g(R, { children: [/* @__PURE__ */ a("div", {
|
|
602
|
+
ref: T,
|
|
603
|
+
className: D.item,
|
|
604
|
+
"data-exiting": r === "closing" || void 0,
|
|
605
|
+
inert: r === "closing",
|
|
606
|
+
children: /* @__PURE__ */ a("div", {
|
|
607
|
+
className: D.itemContent,
|
|
608
|
+
children: /* @__PURE__ */ a(j.Provider, {
|
|
609
|
+
value: {
|
|
610
|
+
durationRevision: c,
|
|
611
|
+
isActive: r === "visible",
|
|
612
|
+
lifecycle: f.lifecycle,
|
|
613
|
+
id: n,
|
|
614
|
+
rendererKey: _,
|
|
615
|
+
timingOverrides: m
|
|
616
|
+
},
|
|
617
|
+
children: /* @__PURE__ */ a(Pt, {
|
|
618
|
+
...v,
|
|
619
|
+
...m,
|
|
620
|
+
id: n,
|
|
621
|
+
onClose: () => o(n)
|
|
622
|
+
})
|
|
623
|
+
})
|
|
624
|
+
})
|
|
625
|
+
}), /* @__PURE__ */ a(Dt, {
|
|
626
|
+
elementRef: T,
|
|
627
|
+
toastEntry: e,
|
|
628
|
+
rendererKey: _
|
|
629
|
+
})] });
|
|
630
|
+
}, $t = ({ getToastProps: e }) => {
|
|
631
|
+
const t = Ft(), { closeToast: o } = se();
|
|
632
|
+
return t.map((s) => /* @__PURE__ */ a(zt, {
|
|
633
|
+
toastEntry: s,
|
|
634
|
+
getToastProps: e,
|
|
635
|
+
onClose: o
|
|
636
|
+
}, s.notification.id));
|
|
637
|
+
}, qt = () => {
|
|
638
|
+
const e = N();
|
|
639
|
+
return I(() => (e.set("mountedToasterCount", e.state.mountedToasterCount + 1), () => {
|
|
640
|
+
e.set("mountedToasterCount", e.state.mountedToasterCount - 1), !(e.state.mountedToasterCount > 0) && e.set("toasts", e.state.toasts.filter(A));
|
|
641
|
+
}), [e]), null;
|
|
642
|
+
}, lo = ({ container: e, getToastProps: t, className: o, render: s, ref: r, ...c }) => {
|
|
643
|
+
const n = ge(), v = xe(), f = e === void 0 ? n ?? (typeof document > "u" ? null : document.body) : e, m = z({
|
|
644
|
+
render: s,
|
|
645
|
+
ref: r,
|
|
646
|
+
props: {
|
|
647
|
+
role: "region",
|
|
648
|
+
dir: v,
|
|
649
|
+
"aria-label": "Notifications",
|
|
650
|
+
...c,
|
|
651
|
+
className: S(D.root, o),
|
|
652
|
+
children: /* @__PURE__ */ g(R, { children: [/* @__PURE__ */ a(qt, {}), /* @__PURE__ */ a($t, { getToastProps: t })] })
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
return l(f) ? Me(m, f) : null;
|
|
656
|
+
};
|
|
657
|
+
export {
|
|
658
|
+
io as a,
|
|
659
|
+
ao as i,
|
|
660
|
+
co as n,
|
|
661
|
+
no as o,
|
|
662
|
+
Pt as r,
|
|
663
|
+
lo as t
|
|
664
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useRender as _ } from "@base-ui/react/use-render";
|
|
2
|
+
import { clsx as u } from "clsx";
|
|
3
|
+
var f = {
|
|
4
|
+
xs: 13,
|
|
5
|
+
s: 16,
|
|
6
|
+
m: 24,
|
|
7
|
+
l: 32,
|
|
8
|
+
xl: 40
|
|
9
|
+
}, h = "_root_1kar2_1", v = "_skeletonShimmer_1kar2_1", S = {
|
|
10
|
+
root: h,
|
|
11
|
+
skeletonShimmer: v
|
|
12
|
+
}, g = ({ width: a, height: o, borderRadius: t, baseColor: e, highlightColor: l, animated: n = !0, layout: r = "inline", className: i, style: s, render: d, ref: m, ...k }) => _({
|
|
13
|
+
defaultTagName: "span",
|
|
14
|
+
render: d,
|
|
15
|
+
ref: m,
|
|
16
|
+
props: {
|
|
17
|
+
"aria-hidden": !0,
|
|
18
|
+
...k,
|
|
19
|
+
"data-skeleton": "",
|
|
20
|
+
"data-animated": n || void 0,
|
|
21
|
+
"data-layout": r,
|
|
22
|
+
className: u(S.root, i),
|
|
23
|
+
style: {
|
|
24
|
+
width: a,
|
|
25
|
+
height: o,
|
|
26
|
+
borderRadius: t,
|
|
27
|
+
backgroundColor: e,
|
|
28
|
+
"--skeleton-base-color": e,
|
|
29
|
+
"--skeleton-highlight-color": l,
|
|
30
|
+
...s
|
|
31
|
+
},
|
|
32
|
+
children: r === "inline" ? "" : void 0
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
f as n,
|
|
37
|
+
g as t
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let c=require("@base-ui/react/use-render"),k=require("clsx");var m={xs:13,s:16,m:24,l:32,xl:40},S="_root_1kar2_1",E="_skeletonShimmer_1kar2_1",h={root:S,skeletonShimmer:E},v=({width:t,height:n,borderRadius:a,baseColor:e,highlightColor:l,animated:o=!0,layout:r="inline",className:i,style:u,render:d,ref:s,..._})=>(0,c.useRender)({defaultTagName:"span",render:d,ref:s,props:{"aria-hidden":!0,..._,"data-skeleton":"","data-animated":o||void 0,"data-layout":r,className:(0,k.clsx)(h.root,i),style:{width:t,height:n,borderRadius:a,backgroundColor:e,"--skeleton-base-color":e,"--skeleton-highlight-color":l,...u},children:r==="inline"?"":void 0}});Object.defineProperty(exports,"SKELETON_HEIGHT_SIZES",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:function(){return v}});
|