twenty-ui 2.46.0 → 2.47.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-DrlkKKQf.cjs} +1 -1
- package/dist/{AllIcons-CLbeNZLM.js → AllIcons-G3nKeM41.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-COxEKIHL.cjs +1 -0
- package/dist/{Button-DQUIhQAm.js → Button-Cs07psdD.js} +7 -6
- package/dist/Dropdown-BBUGkQQV.cjs +1 -0
- package/dist/{Dropdown-CZVEnq0N.js → Dropdown-CScN_olN.js} +210 -200
- package/dist/Input-DZWl81G_.js +23 -0
- package/dist/Input-DvL77rvu.cjs +1 -0
- package/dist/{ListItem-BVJEFywj.js → ListItem-CXu35dzp.js} +3 -3
- package/dist/{ListItem-fFbJhi6M.cjs → ListItem-q6DHGlev.cjs} +1 -1
- package/dist/{Loader-GFhTL4Aw.cjs → Loader-Bb72CUQ9.cjs} +1 -1
- package/dist/{Loader-BBMC4fe6.js → Loader-DtHWQH8w.js} +1 -1
- package/dist/OverflowingTextWithTooltip-Be2-wCcZ.js +88 -0
- package/dist/OverflowingTextWithTooltip-BlufG-6n.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-D_3Gia0E.js +84 -0
- package/dist/ProgressBar-oF1qVHFx.cjs +1 -0
- package/dist/ProgressRing-8mYV9cxE.js +68 -0
- package/dist/ProgressRing-g1nHGyUp.cjs +1 -0
- package/dist/Radio-BMoQHDe7.js +103 -0
- package/dist/Radio-D_YUizSv.cjs +1 -0
- package/dist/{ResizeHandle-BGboQXCx.cjs → ResizeHandle-CNlQ4TEE.cjs} +1 -1
- package/dist/{Shortcut-CWRh02hg.js → Shortcut-DKfB0kej.js} +1 -1
- package/dist/{Shortcut-oYvcja2P.cjs → Shortcut-ZuZ-KYSk.cjs} +1 -1
- package/dist/{TintedIconTile-BZgRO7cg.js → TintedIconTile-4BGa8g8n.js} +2 -2
- package/dist/{TintedIconTile-Dp4uH0Up.cjs → TintedIconTile-CU2hCerq.cjs} +1 -1
- package/dist/Tooltip-BMkznyoi.js +120 -0
- package/dist/Tooltip-JOYVeSsf.cjs +1 -0
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +7 -7
- 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 +9 -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/contexts/ToastTimingContext.d.ts +4 -0
- package/dist/components/feedback/Toast/internal/hooks/useToastCountdown.d.ts +23 -0
- package/dist/components/feedback/Toast/internal/hooks/useUpdateToast.d.ts +4 -0
- package/dist/components/feedback/Toast/internal/types/ToastEntry.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/createToastCountdown.d.ts +22 -0
- 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/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__/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/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/{primitives → components}/input/SegmentedControl/types/SegmentedControlProps.d.ts +1 -1
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +11 -9
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- 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/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-BMV-nC-9.js +181 -0
- package/dist/data-display-BkujQe5v.cjs +1 -0
- package/dist/data-display-DU3G8ZyI.js +344 -0
- package/dist/data-display-DjhAHvj1.cjs +2 -0
- package/dist/feedback-B5x8tmnG.cjs +1 -0
- package/dist/feedback-DA-AU5z5.js +38 -0
- package/dist/feedback-DNLERYY9.cjs +1 -0
- package/dist/feedback-DhilJ_fX.js +509 -0
- package/dist/getProgressIndicatorPercentage-Mii9lnYd.cjs +1 -0
- package/dist/getProgressIndicatorPercentage-ejfaM6XU.js +7 -0
- package/dist/{icon-Bo3y4NHM.js → icon-BdXwnJA6.js} +2 -2
- package/dist/{icon-DM8Yjnig.cjs → icon-JuDK6Wxr.cjs} +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +193 -189
- package/dist/input-BEKjAOjS.cjs +1 -0
- package/dist/input-BUgnp6eA.js +559 -0
- package/dist/input-Bnu5kNjg.cjs +1 -0
- package/dist/input-vl6yK36n.js +421 -0
- package/dist/layout-BKHabkTu.js +267 -0
- package/dist/layout-wuIu4rJ3.cjs +1 -0
- package/dist/navigation-B1hPNYv2.cjs +1 -0
- package/dist/navigation-Dg46Wr5m.js +131 -0
- package/dist/navigation-WsiYsmaq.cjs +1 -0
- package/dist/navigation-itBinyPi.js +403 -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/index.d.ts +0 -16
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +7 -8
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +3 -3
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +67 -66
- package/dist/{settings-bRqO7Q-5.cjs → settings-BiSAY2oN.cjs} +1 -1
- package/dist/{settings-Fpo_5Uen.js → settings-CC-2gcAx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-DZ2A-Nb9.js +202 -0
- package/dist/surfaces-vyAhk2Gw.cjs +1 -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-CBqN-Jhw.cjs → typography-8DF9mq2w.cjs} +1 -1
- package/dist/typography-DmY7-GzQ.js +5 -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-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/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/components/data-display/NotificationCounter/NotificationCounter.d.ts +0 -7
- package/dist/components/feedback/Toast/types/ToastVariant.d.ts +0 -1
- 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-D-DQvgaS.js +0 -5
- package/dist/{ResizeHandle-X2NdHzqt.js → ResizeHandle-Bjg4R0c-.js} +1 -1
- /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/SegmentedControl.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,2 @@
|
|
|
1
|
+
const y=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),H=require("./VisuallyHidden-B-n4x1KY.cjs"),K=require("./ProgressRing-g1nHGyUp.cjs");let S=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),c=require("clsx"),x=require("react"),e=require("react/jsx-runtime"),$=require("@base-ui/react/collapsible"),h=require("@tabler/icons-react");var U="_container_5cu4g_1",X="_itemContainer_5cu4g_6",Q="_overflowCountContainer_5cu4g_22",W="_overflowCount_5cu4g_22",g={container:U,itemContainer:X,overflowCountContainer:Q,overflowCount:W},Y=4,Z=({avatars:r,className:n,maxVisible:t=Y,total:s,renderOverflow:l,overflowShape:o="square",overlap:a="right",overlapOffset:i="3px",render:p,ref:C,...m})=>{const d=x.Children.toArray(r),q=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),f=d.slice(0,q),b=s??d.length,N=(Number.isFinite(b)?Math.max(d.length,Math.floor(b)):d.length)-f.length,w=_.isDefined(l),A=N>0&&(w?l(N):(0,e.jsxs)("span",{className:g.overflowCount,"data-shape":o,children:["+",N]})),L=(0,u.isNonEmptyArray)(x.Children.toArray(A)),V={"--avatar-group-overlap-offset":i},G=(0,S.useRender)({render:p,ref:C,props:{...m,className:(0,c.clsx)(g.container,n),children:(0,e.jsxs)(e.Fragment,{children:[x.Children.map(f,T=>(0,e.jsx)("span",{className:g.itemContainer,"data-overlap":a,style:V,children:T},(0,x.isValidElement)(T)?T.key:void 0)),L&&(0,e.jsx)("span",{className:(0,c.clsx)(g.itemContainer,!w&&g.overflowCountContainer),"data-overlap":a,style:V,children:A})]})}});return(0,u.isNonEmptyArray)(f)||L?G:null},ee="_container_1j72k_1",re="_commands_1j72k_13",ne="_actions_1j72k_25",te="_prompt_1j72k_32",J={container:ee,commands:re,actions:ne,prompt:te},se=({commands:r,actions:n,render:t,ref:s,className:l,...o})=>(0,S.useRender)({render:t,ref:s,props:{...o,className:(0,c.clsx)(J.container,l),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:J.commands,children:(0,e.jsx)("code",{children:r.map((a,i)=>(0,e.jsxs)("span",{children:[i>0&&`
|
|
2
|
+
`,(0,e.jsx)("span",{className:J.prompt,"aria-hidden":"true",children:"> "}),a]},i))})}),_.isDefined(n)&&(0,e.jsx)("div",{className:J.actions,children:n})]})}}),ae="_list_1i4lv_1",oe="_nested_1i4lv_8",P={list:ae,nested:oe},le=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(P.list,r>0&&P.nested,n),children:t}),M=(0,x.createContext)(void 0),j=()=>{const r=(0,x.useContext)(M);if(!_.isDefined(r))throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");return r},ie="_button_1e3ij_1",ce="_red_1e3ij_17",de="_chevron_1e3ij_22",E={button:ie,red:ce,chevron:de},ue=({isOpen:r,onClick:n,variant:t})=>{const s=y.useTheme(),{arrowButtonCollapsedLabel:l,arrowButtonExpandedLabel:o}=j(),a=t==="blue"?y.themeCssVariables.color.blue:t==="red"?y.themeCssVariables.font.color.danger:y.themeCssVariables.font.color.secondary;return(0,e.jsxs)("button",{className:(0,c.clsx)(E.button,t==="red"&&E.red),onClick:n,children:[(0,e.jsx)(H.VisuallyHidden,{children:r?o:l}),(0,e.jsx)("div",{className:E.chevron,"data-open":r||void 0,children:(0,e.jsx)(h.IconChevronDown,{size:s.icon.size.md,color:a})})]})},_e=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyArrayLabel:o}=j();return(0,e.jsx)(D,{elements:[...n.entries()].map(([a,i])=>({id:a,label:String(a),value:i})),renderElementsCount:a=>`[${a}]`,label:r,Icon:h.IconBrackets,depth:t,emptyElementsText:o,keyPath:s,highlighting:l})},me=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyObjectLabel:o}=j();return(0,e.jsx)(D,{elements:Object.entries(n).map(([a,i])=>({id:a,label:a,value:i})),renderElementsCount:a=>`{${a}}`,label:r,Icon:h.IconCube,depth:t,emptyElementsText:o,keyPath:s,highlighting:l})},ve="_labelContainer_1pq94_1",xe="_blue_1pq94_23",he="_red_1pq94_29",R={labelContainer:ve,blue:xe,red:he},F=({label:r,Icon:n,highlighting:t})=>{const s=y.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(R.labelContainer,t==="blue"&&R.blue,t==="red"&&R.red),children:[(0,e.jsx)(n,{size:s.icon.size.md,color:t==="blue"?s.color.blue:t==="red"?s.font.color.danger:s.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},be="_text_1ot24_1",je="_blue_1ot24_10",pe="_red_1ot24_14",Ce="_button_1ot24_18",k={text:be,blue:je,red:pe,button:Ce},fe=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=j(),s=_.isDefined(t),l=()=>{t?.(r)},o=(0,c.clsx)(k.text,n==="blue"&&k.blue,n==="red"&&k.red);return s?(0,e.jsx)("button",{className:(0,c.clsx)(o,k.button),type:"button",onClick:l,children:r}):(0,e.jsx)("span",{className:o,children:r})},Ne="_listItem_1i7if_1",ge={listItem:Ne},I=r=>(0,e.jsxs)("li",{className:ge.listItem,children:[r.label&&(0,e.jsx)(F,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)(fe,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),ye=r=>(0,u.isArray)(r),z=({label:r,value:n,depth:t,keyPath:s})=>{const{getNodeHighlighting:l,emptyStringLabel:o}=j(),a=l?.(s);return _.isDefined(n)?(0,u.isString)(n)?(0,e.jsx)(I,{label:r,valueAsString:(0,u.isNonEmptyString)(n)?n:o,Icon:h.IconTypography,highlighting:a}):(0,u.isNumber)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:h.IconNumber9,highlighting:a}):(0,u.isBoolean)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:h.IconCheckbox,highlighting:a}):ye(n)?(0,e.jsx)(_e,{label:r,value:n,depth:t,keyPath:s,highlighting:a}):(0,e.jsx)(me,{label:r,value:n,depth:t,keyPath:s,highlighting:a}):(0,e.jsx)(I,{label:r,valueAsString:"null",Icon:h.IconCircleOff,highlighting:a})},Ie="_container_d0cqx_1",qe="_labelContainer_d0cqx_6",we="_elementsCount_d0cqx_12",Ae="_elementsCountRed_d0cqx_16",Je="_panel_d0cqx_20",ke="_list_d0cqx_30",Se="_nested_d0cqx_37",v={container:Ie,labelContainer:qe,elementsCount:we,elementsCountRed:Ae,panel:Je,list:ke,nested:Se},D=({label:r,Icon:n,elements:t,renderElementsCount:s,emptyElementsText:l,depth:o,keyPath:a,highlighting:i})=>{const{shouldExpandNodeInitially:p}=j(),C=!_.isDefined(r),[m,d]=(0,x.useState)(p({keyPath:a,depth:o})),q=(0,e.jsx)("ul",{className:(0,c.clsx)(v.list,o>0&&v.nested),children:t.length===0?(0,e.jsx)(I,{valueAsString:l,highlighting:void 0}):t.map(({id:b,label:N,value:w})=>{const A=(0,u.isNonEmptyString)(a)?`${a}.${b}`:String(b);return(0,e.jsx)(z,{label:N,value:w,depth:o+1,keyPath:A},b)})}),f=()=>{d(!m)};return C?(0,e.jsx)("li",{className:v.container,children:q}):(0,e.jsxs)($.Collapsible.Root,{className:v.container,open:m,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:v.labelContainer,children:[(0,e.jsx)(ue,{isOpen:m,onClick:f,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(F,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),s&&(0,e.jsx)("span",{className:(0,c.clsx)(v.elementsCount,i==="red"&&v.elementsCountRed),children:s(t.length)})]}),(0,e.jsx)($.Collapsible.Panel,{className:v.panel,children:q})]})},Te=({value:r,children:n})=>(0,e.jsx)(M.Provider,{value:r,children:n}),Ee=({depth:r})=>r<=1,Re=({value:r,entries:n,shouldExpandNodeInitially:t=Ee,...s})=>(0,e.jsx)(Te,{value:{...s,shouldExpandNodeInitially:t},children:(0,e.jsx)(le,{depth:0,children:_.isDefined(n)?(0,e.jsx)(D,{elements:n,Icon:h.IconBrackets,depth:0,keyPath:"",emptyElementsText:s.emptyObjectLabel}):(0,e.jsx)(z,{value:r??null,depth:0,keyPath:""})})}),Oe="_row_1hj4l_1",De="_label_1hj4l_11",Le="_icon_1hj4l_20",O={row:Oe,label:De,icon:Le},Ve=({children:r,startIcon:n,value:t,progress:s,progressColor:l,progressValueText:o,render:a,ref:i,className:p,...C})=>{const m=(0,x.useId)(),d=o??t;return(0,S.useRender)({render:a,ref:i,props:{...C,className:(0,c.clsx)(O.row,p),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:O.label,children:[_.isDefined(n)&&(0,e.jsx)("span",{className:O.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:m,children:r})]}),_.isDefined(s)?(0,e.jsx)(K.ProgressRing,{value:s,size:"sm",barColor:l,"aria-labelledby":m,...(0,u.isNonEmptyString)(d)?{"aria-valuetext":d}:{},children:t}):(0,e.jsx)("span",{children:t})]})}})},$e="_root_7l8sk_1",Pe="_stackedIcon_7l8sk_14",B={root:$e,stackedIcon:Pe},Be=({icon:r,stackedIcon:n,className:t,render:s,ref:l,...o})=>(0,S.useRender)({render:s,ref:l,props:{...o,className:(0,c.clsx)(B.root,t),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{"aria-hidden":"true",children:r}),(0,e.jsx)("span",{"aria-hidden":"true",className:B.stackedIcon,children:n})]})}});Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Re}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return Ve}});Object.defineProperty(exports,"StackIcon",{enumerable:!0,get:function(){return Be}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const y=require("./theme-1XkFz8Qu.cjs"),u=require("./isDefined-DS2Q42p5.cjs"),ae=require("./mergeClassNames-D4lshrT6.cjs"),D=require("./Button-COxEKIHL.cjs"),S=require("./ProgressBar-oF1qVHFx.cjs"),g=require("./isRenderableSlot-Guryb6Nf.cjs"),ce=require("./useProvidedTextDirection-PVaoQCLH.cjs"),ue=require("./OverflowingTextWithTooltip-BlufG-6n.cjs"),le=require("./Separator-UJVlrTzw.cjs");let W=require("@base-ui/react/use-render"),q=require("@sniptt/guards"),P=require("clsx"),d=require("react"),s=require("react/jsx-runtime"),K=require("@base-ui/utils/store"),de=require("react-dom"),h=require("@tabler/icons-react");var ve="_action_3r2bm_1",_e={action:ve},me=({className:e,...t})=>(0,s.jsx)(D.Button,{...t,size:"sm",variant:"ghost",className:ae.mergeClassNames(_e.action,e)}),fe="_container_1ix4w_1",pe="_containerFullWidth_1ix4w_40",Te="_header_1ix4w_44",xe="_iconContainer_1ix4w_53",he="_title_1ix4w_63",ge="_descriptionWrapper_1ix4w_75",be="_descriptionWrapperWithIcon_1ix4w_82",Ce="_descriptionWrapperWithAction_1ix4w_86",je="_description_1ix4w_75",we="_footer_1ix4w_99",Ne="_closeButton_1ix4w_106",m={container:fe,containerFullWidth:pe,header:Te,iconContainer:xe,title:he,descriptionWrapper:ge,descriptionWrapperWithIcon:be,descriptionWrapperWithAction:Ce,description:je,footer:we,closeButton:Ne},Pe=({status:e="info",variant:t="soft",color:r=S.FEEDBACK_STATUS_COLORS[e],title:o,description:n,fullWidth:i=!1,icon:a=(0,s.jsx)(h.IconHelp,{size:y.themeCssVariables.icon.size.md,"aria-hidden":"true"}),action:c,closeLabel:l="Close",onDismiss:v,className:T,render:f,ref:N,..._})=>{const b=g.isRenderableSlot(a),C=g.isRenderableSlot(c);return(0,W.useRender)({render:f,ref:N,state:{status:e,variant:t,color:r},props:{..._,className:(0,P.clsx)(m.container,i&&m.containerFullWidth,T),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:m.header,children:[b&&(0,s.jsx)("div",{className:m.iconContainer,children:a}),(0,s.jsx)("div",{className:m.title,children:o}),u.isDefined(v)&&(0,s.jsx)(D.Button,{type:"button",startIcon:(0,s.jsx)(h.IconX,{"aria-hidden":"true"}),className:m.closeButton,variant:"ghost",size:"sm","aria-label":l,onClick:()=>v()})]}),g.isRenderableSlot(n)&&(0,s.jsx)("div",{className:(0,P.clsx)(m.descriptionWrapper,b&&m.descriptionWrapperWithIcon,C&&m.descriptionWrapperWithAction),children:(0,s.jsx)("div",{className:m.description,children:n})}),C&&(0,s.jsx)("div",{className:m.footer,children:c})]})}})},qe=Object.assign(Pe,{Action:me}),Ie="_banner_17vm4_1",Ae="_embedded_17vm4_6",De="_bannerContent_17vm4_10",Se="_icon_17vm4_18",Re="_bannerText_17vm4_28",Be="_compact_17vm4_33",j={banner:Ie,embedded:Ae,bannerContent:De,icon:Se,bannerText:Re,compact:Be},Ee=({children:e,layout:t="standard",variant:r="soft",embedded:o=!1,icon:n=(0,s.jsx)(h.IconInfoCircle,{"aria-hidden":"true"}),className:i,...a})=>{const c=t==="compact",l=!c&&(0,q.isString)(e);return(0,s.jsx)(S.Banner,{...a,className:(0,P.clsx)(j.banner,c&&j.compact,o&&j.embedded,i),variant:r,"data-layout":t,children:(0,s.jsxs)("div",{className:j.bannerContent,children:[g.isRenderableSlot(n)&&(0,s.jsx)("span",{className:j.icon,children:n}),(0,s.jsx)("div",{className:j.bannerText,children:l?(0,s.jsx)(ue.OverflowingTextWithTooltip,{isFocusable:!0,text:(0,s.jsx)(s.Fragment,{children:e}),tooltipContent:e}):e})]})})},ye=Object.assign(Ee,{Action:S.Banner.Action}),I=e=>e.status==="visible",X=({store:e,toastsToClose:t,nextToasts:r=e.state.toasts})=>{const o=r.map(i=>t.includes(i)?{...i,status:"closing"}:i),n=e.state.mountedToasterCount>0;e.set("toasts",n?o:o.filter(I));for(const i of t)i.notification.onClose?.()},V=(0,d.createContext)(void 0),w=()=>{const e=(0,d.useContext)(V);if(!u.isDefined(e))throw new Error("Toast components must be used within a ToastProvider.");return e},G=()=>{const e=w();return{closeToast:r=>{const o=e.state.toasts.filter(n=>I(n)&&(!u.isDefined(r)||n.notification.id===r));(0,q.isNonEmptyArray)(o)&&X({store:e,toastsToClose:o})}}},U=0,We=()=>{const e=w();return{enqueueToast:(0,d.useMemo)(()=>{function t(r){if(!u.isDefined(r))return;const{dedupeKey:o,...n}=r,{toasts:i,limit:a}=e.state,c=i.filter(I),l=u.isDefined(o)?c.find(f=>f.dedupeKey===o):void 0;if(u.isDefined(l))return l.notification.id;U+=1;const v=`toast-${U}`,T=Math.max(0,c.length-a+1);return X({store:e,toastsToClose:c.slice(0,T),nextToasts:[...i,{notification:{...n,id:v},dedupeKey:o,status:"visible"}]}),v}return t},[e])}},Fe=({store:e,id:t,...r})=>{const o=e.state.toasts.find(a=>a.notification.id===t&&I(a)),n=Object.keys(r);if(!u.isDefined(o)||!(0,q.isNonEmptyArray)(n))return;const i=n.includes("duration")||u.isDefined(o.notification.progress)&&n.includes("progress")&&!u.isDefined(r.progress);e.set("toasts",e.state.toasts.map(a=>a===o?{...a,notification:{...a.notification,...r,id:t},...i?{durationRevision:(a.durationRevision??0)+1}:{}}:a))},Oe=()=>{const e=w();return{updateToast:(0,d.useCallback)(t=>Fe({store:e,...t}),[e])}},ke=()=>{const{closeToast:e}=G(),{enqueueToast:t}=We(),{updateToast:r}=Oe();return{enqueueToast:t,closeToast:e,updateToast:r}},Me="_root_181ka_1",$e="_progress_181ka_19",ze="_header_181ka_30",Le="_message_181ka_40",Ue="_icon_181ka_45",He="_actions_181ka_50",Ke="_description_181ka_56",Xe="_footer_181ka_65",Ve="_footerAction_181ka_69",Ge="_closeButton_181ka_76",p={root:Me,progress:$e,header:ze,message:Le,icon:Ue,actions:He,description:Ke,footer:Xe,footerAction:Ve,closeButton:Ge},J=(0,d.createContext)({durationRevision:0,isActive:!0}),Je=({clock:e,duration:t,progress:r,isPaused:o,onClose:n})=>{const{durationRevision:i,isActive:a}=(0,d.useContext)(J),c=u.isDefined(r);return(0,d.useLayoutEffect)(()=>{e.update({duration:t,durationRevision:i,isPaused:o,isProgress:c,isActive:a,onClose:n})},[e,t,i,o,c,a,n]),(0,d.useLayoutEffect)(()=>()=>e.stop(),[e]),null},Qe=({element:e,isFocused:t,onFocusChange:r})=>((0,d.useLayoutEffect)(()=>{if(!t||!u.isDefined(e))return;const o=()=>{e.contains(e.ownerDocument.activeElement)||r(!1)};o();const n=new MutationObserver(o);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[e,t,r]),null),Q=e=>Number.isFinite(e)&&e>0,Ye="_countdown_1vuo8_1",Ze="_toastCountdown_1vuo8_1",et={countdown:Ye,toastCountdown:Ze},tt=({progress:e,duration:t,remainingDuration:r,revision:o,isPaused:n,barColor:i})=>u.isDefined(e)?(0,s.jsx)(S.ProgressBar,{value:e,barColor:i}):Q(t)?(0,s.jsx)("div",{className:et.countdown,"data-paused":n||void 0,style:{"--toast-countdown-color":i,"--toast-countdown-width":`${r/t*100}%`,"--toast-countdown-duration":`${r}ms`}},o):null,st=2**31-1,rt=({onChange:e})=>{let t,r=0,o,n,i=0,a=!1;const c=()=>{u.isDefined(o)&&(r=Math.max(0,r-(performance.now()-o)),o=void 0),clearTimeout(n),n=void 0},l=()=>{u.isDefined(t)&&(i+=1,e({duration:t.duration,remainingDuration:r,revision:i,isPaused:t.isPaused||!t.isActive}))},v=()=>{a||(c(),a=!0,r=0,l(),t?.onClose?.())},T=()=>u.isDefined(t)&&t.isActive&&!t.isPaused&&!t.isProgress&&Q(t.duration)&&!a,f=()=>{T()&&(o=performance.now(),n=setTimeout(()=>{if(c(),r>0){f();return}v()},Math.min(r,st)))};return{update:_=>{const b=!u.isDefined(t)||_.duration!==t.duration||_.durationRevision!==t.durationRevision||t.isProgress&&!_.isProgress,C=b||_.isProgress!==t?.isProgress||_.isPaused!==t?.isPaused||_.isActive!==t?.isActive,R=!u.isDefined(o)&&T();if(!C&&!R){t=_;return}c(),t=_,!a&&(b&&(r=Math.max(0,_.duration)),l(),f())},close:v,stop:c}},ot=({duration:e,isPaused:t})=>{const[r,o]=(0,d.useState)({duration:e,remainingDuration:e,revision:0,isPaused:t}),[n]=(0,d.useState)(()=>rt({onChange:o}));return{countdown:r,clock:n}},nt={neutral:h.IconAlertTriangle,error:h.IconAlertTriangle,success:h.IconSquareRoundedCheck,info:h.IconInfoCircle,warning:h.IconAlertTriangle},Y=({children:e,description:t,icon:r,iconLabel:o,action:n,progress:i,duration:a=6e3,onCancel:c,onClose:l,cancelLabel:v="Cancel",closeLabel:T="Close",status:f="neutral",role:N="status",className:_,onMouseEnter:b,onMouseLeave:C,onFocus:R,onBlur:Z,render:ee,ref:te,...se})=>{const F=y.useTheme(),[re,O]=(0,d.useState)(!1),[k,B]=(0,d.useState)(!1),[oe,ne]=(0,d.useState)(null),M=re||k,{countdown:A,clock:$}=ot({duration:a,isPaused:M}),ie=nt[f],z=F.snackBar[f==="neutral"?"default":f],L=(0,q.isUndefined)(r)?(0,s.jsx)(ie,{"aria-label":o,"aria-hidden":!u.isDefined(o),color:z.color,size:F.icon.size.md}):r;return(0,s.jsxs)(s.Fragment,{children:[(0,W.useRender)({render:ee,ref:[te??null,ne],props:{role:N,"aria-live":N==="alert"?"assertive":"polite",...se,className:(0,P.clsx)(p.root,_),onMouseEnter:x=>{O(!0),b?.(x)},onMouseLeave:x=>{O(!1),C?.(x)},onFocus:x=>{B(!0),R?.(x)},onBlur:x=>{x.currentTarget.contains(x.relatedTarget)||B(!1),Z?.(x)},children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:p.progress,"aria-hidden":!0,children:(0,s.jsx)(tt,{barColor:z.backgroundColor,progress:i,duration:A.duration,remainingDuration:A.remainingDuration,revision:A.revision,isPaused:A.isPaused})}),(0,s.jsxs)("div",{className:p.header,children:[g.isRenderableSlot(L)&&(0,s.jsx)("div",{className:p.icon,children:L}),(0,s.jsx)("div",{className:p.message,children:e}),(0,s.jsxs)("div",{className:p.actions,children:[u.isDefined(c)&&g.isRenderableSlot(v)&&(0,s.jsx)(D.Button,{onClick:c,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:v}),u.isDefined(l)&&(0,s.jsx)(D.Button,{title:T,"aria-label":T,startIcon:(0,s.jsx)(h.IconX,{}),className:p.closeButton,variant:"ghost",size:"sm",onClick:$.close})]})]}),g.isRenderableSlot(t)&&(0,s.jsx)("div",{className:p.description,children:t}),g.isRenderableSlot(n)&&(0,s.jsxs)("div",{className:p.footer,children:[(0,s.jsx)(le.Separator,{}),(0,s.jsx)("div",{className:p.footerAction,children:n})]})]})}}),(0,s.jsx)(Qe,{element:oe,isFocused:k,onFocusChange:B}),(0,s.jsx)(Je,{clock:$,duration:a,progress:i,isPaused:M,onClose:l})]})},it=(e=3)=>{if(!(0,q.isPositiveInteger)(e))throw new Error("Toast limit must be a positive integer.");return new K.Store({toasts:[],limit:e,mountedToasterCount:0})},at=({children:e,limit:t=3})=>{const[r]=(0,d.useState)(()=>it(t));return(0,s.jsx)(V.Provider,{value:r,children:e})},ct="_root_1q2cc_1",ut="_item_1q2cc_20",lt="_itemContent_1q2cc_47",E={root:ct,item:ut,itemContent:lt},dt=()=>(0,K.useStore)(w(),e=>e.toasts),H=({store:e,toast:t})=>{const{toasts:r}=e.state;t.status==="closing"&&r.includes(t)&&e.set("toasts",r.filter(o=>o!==t))},vt=({elementRef:e,toastEntry:t})=>{const r=w();return(0,d.useLayoutEffect)(()=>{if(t.status==="visible")return;const o=e.current?.getAnimations?.()??[];if(o.length===0){H({store:r,toast:t});return}let n=!1;return Promise.allSettled(o.map(i=>i.finished)).then(()=>{n||H({store:r,toast:t})}),()=>{n=!0}},[e,t,r]),(0,s.jsx)(s.Fragment,{})},_t=({toastEntry:e,getToastProps:t,onClose:r})=>{const{notification:o,status:n,durationRevision:i=0}=e,{id:a,...c}=o,l=(0,d.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:l,className:E.item,"data-exiting":n==="closing"||void 0,inert:n==="closing",children:(0,s.jsx)("div",{className:E.itemContent,children:(0,s.jsx)(J.Provider,{value:{durationRevision:i,isActive:n==="visible"},children:(0,s.jsx)(Y,{...c,...t?.(o),id:a,onClose:()=>r(a)})})})}),(0,s.jsx)(vt,{elementRef:l,toastEntry:e})]})},mt=({getToastProps:e})=>{const t=dt(),{closeToast:r}=G();return t.map(o=>(0,s.jsx)(_t,{toastEntry:o,getToastProps:e,onClose:r},o.notification.id))},ft=()=>{const e=w();return(0,d.useLayoutEffect)(()=>(e.set("mountedToasterCount",e.state.mountedToasterCount+1),()=>{e.set("mountedToasterCount",e.state.mountedToasterCount-1),!(e.state.mountedToasterCount>0)&&e.set("toasts",e.state.toasts.filter(I))}),[e]),null},pt=({container:e,getToastProps:t,className:r,render:o,ref:n,...i})=>{const a=y.useThemeContainer(),c=ce.useProvidedTextDirection(),l=e===void 0?a??(typeof document>"u"?null:document.body):e,v=(0,W.useRender)({render:o,ref:n,props:{role:"region",dir:c,"aria-label":"Notifications",...i,className:(0,P.clsx)(E.root,r),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ft,{}),(0,s.jsx)(mt,{getToastProps:t})]})}});return u.isDefined(l)?(0,de.createPortal)(v,l):null};Object.defineProperty(exports,"Callout",{enumerable:!0,get:function(){return qe}});Object.defineProperty(exports,"InlineBanner",{enumerable:!0,get:function(){return ye}});Object.defineProperty(exports,"Toast",{enumerable:!0,get:function(){return Y}});Object.defineProperty(exports,"ToastProvider",{enumerable:!0,get:function(){return at}});Object.defineProperty(exports,"Toaster",{enumerable:!0,get:function(){return pt}});Object.defineProperty(exports,"useToast",{enumerable:!0,get:function(){return ke}});
|
|
@@ -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}});
|
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
import { t as u } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Ta as L, hc as lt, hl as V, la as mt, nt as F } from "./icon-BdXwnJA6.js";
|
|
3
|
+
import { a as vt, r as _t, t as ft } from "./theme-B2EaXhye.js";
|
|
4
|
+
import { t as pt } from "./mergeClassNames-ClFMR1v0.js";
|
|
5
|
+
import { t as B } from "./Button-Cs07psdD.js";
|
|
6
|
+
import { n as X, r as ht, t as Tt } from "./ProgressBar-D_3Gia0E.js";
|
|
7
|
+
import { t as C } from "./isRenderableSlot-DT_depzM.js";
|
|
8
|
+
import { t as Ct } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
9
|
+
import { t as gt } from "./OverflowingTextWithTooltip-Be2-wCcZ.js";
|
|
10
|
+
import { t as wt } from "./Separator-0LzwPfOn.js";
|
|
11
|
+
import { useRender as O } from "@base-ui/react/use-render";
|
|
12
|
+
import { isNonEmptyArray as G, isPositiveInteger as bt, isString as Nt, isUndefined as xt } from "@sniptt/guards";
|
|
13
|
+
import { clsx as P } from "clsx";
|
|
14
|
+
import { createContext as J, useCallback as At, useContext as Q, useLayoutEffect as W, useMemo as It, useRef as Pt, useState as x } from "react";
|
|
15
|
+
import { Fragment as w, jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
16
|
+
import { Store as Wt, useStore as kt } from "@base-ui/utils/store";
|
|
17
|
+
import { createPortal as Et } from "react-dom";
|
|
18
|
+
var Bt = "_action_3r2bm_1", Rt = { action: Bt }, St = ({ className: t, ...e }) => /* @__PURE__ */ a(B, {
|
|
19
|
+
...e,
|
|
20
|
+
size: "sm",
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
className: pt(Rt.action, t)
|
|
23
|
+
}), Ft = "_container_1ix4w_1", Mt = "_containerFullWidth_1ix4w_40", Ot = "_header_1ix4w_44", $t = "_iconContainer_1ix4w_53", yt = "_title_1ix4w_63", qt = "_descriptionWrapper_1ix4w_75", zt = "_descriptionWrapperWithIcon_1ix4w_82", Dt = "_descriptionWrapperWithAction_1ix4w_86", Ut = "_description_1ix4w_75", jt = "_footer_1ix4w_99", Ht = "_closeButton_1ix4w_106", v = {
|
|
24
|
+
container: Ft,
|
|
25
|
+
containerFullWidth: Mt,
|
|
26
|
+
header: Ot,
|
|
27
|
+
iconContainer: $t,
|
|
28
|
+
title: yt,
|
|
29
|
+
descriptionWrapper: qt,
|
|
30
|
+
descriptionWrapperWithIcon: zt,
|
|
31
|
+
descriptionWrapperWithAction: Dt,
|
|
32
|
+
description: Ut,
|
|
33
|
+
footer: jt,
|
|
34
|
+
closeButton: Ht
|
|
35
|
+
}, Kt = ({ status: t = "info", variant: e = "soft", color: o = ht[t], title: s, description: r, fullWidth: n = !1, icon: i = /* @__PURE__ */ a(mt, {
|
|
36
|
+
size: vt.icon.size.md,
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}), action: c, closeLabel: d = "Close", onDismiss: l, className: h, render: _, ref: I, ...m }) => {
|
|
39
|
+
const g = C(i), b = C(c);
|
|
40
|
+
return O({
|
|
41
|
+
render: _,
|
|
42
|
+
ref: I,
|
|
43
|
+
state: {
|
|
44
|
+
status: t,
|
|
45
|
+
variant: e,
|
|
46
|
+
color: o
|
|
47
|
+
},
|
|
48
|
+
props: {
|
|
49
|
+
...m,
|
|
50
|
+
className: P(v.container, n && v.containerFullWidth, h),
|
|
51
|
+
children: /* @__PURE__ */ p(w, { children: [
|
|
52
|
+
/* @__PURE__ */ p("div", {
|
|
53
|
+
className: v.header,
|
|
54
|
+
children: [
|
|
55
|
+
g && /* @__PURE__ */ a("div", {
|
|
56
|
+
className: v.iconContainer,
|
|
57
|
+
children: i
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ a("div", {
|
|
60
|
+
className: v.title,
|
|
61
|
+
children: s
|
|
62
|
+
}),
|
|
63
|
+
u(l) && /* @__PURE__ */ a(B, {
|
|
64
|
+
type: "button",
|
|
65
|
+
startIcon: /* @__PURE__ */ a(V, { "aria-hidden": "true" }),
|
|
66
|
+
className: v.closeButton,
|
|
67
|
+
variant: "ghost",
|
|
68
|
+
size: "sm",
|
|
69
|
+
"aria-label": d,
|
|
70
|
+
onClick: () => l()
|
|
71
|
+
})
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
C(r) && /* @__PURE__ */ a("div", {
|
|
75
|
+
className: P(v.descriptionWrapper, g && v.descriptionWrapperWithIcon, b && v.descriptionWrapperWithAction),
|
|
76
|
+
children: /* @__PURE__ */ a("div", {
|
|
77
|
+
className: v.description,
|
|
78
|
+
children: r
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
b && /* @__PURE__ */ a("div", {
|
|
82
|
+
className: v.footer,
|
|
83
|
+
children: c
|
|
84
|
+
})
|
|
85
|
+
] })
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}, Ge = Object.assign(Kt, { Action: St }), Lt = "_banner_17vm4_1", Vt = "_embedded_17vm4_6", Xt = "_bannerContent_17vm4_10", Gt = "_icon_17vm4_18", Jt = "_bannerText_17vm4_28", Qt = "_compact_17vm4_33", N = {
|
|
89
|
+
banner: Lt,
|
|
90
|
+
embedded: Vt,
|
|
91
|
+
bannerContent: Xt,
|
|
92
|
+
icon: Gt,
|
|
93
|
+
bannerText: Jt,
|
|
94
|
+
compact: Qt
|
|
95
|
+
}, Yt = ({ children: t, layout: e = "standard", variant: o = "soft", embedded: s = !1, icon: r = /* @__PURE__ */ a(L, { "aria-hidden": "true" }), className: n, ...i }) => {
|
|
96
|
+
const c = e === "compact", d = !c && Nt(t);
|
|
97
|
+
return /* @__PURE__ */ a(X, {
|
|
98
|
+
...i,
|
|
99
|
+
className: P(N.banner, c && N.compact, s && N.embedded, n),
|
|
100
|
+
variant: o,
|
|
101
|
+
"data-layout": e,
|
|
102
|
+
children: /* @__PURE__ */ p("div", {
|
|
103
|
+
className: N.bannerContent,
|
|
104
|
+
children: [C(r) && /* @__PURE__ */ a("span", {
|
|
105
|
+
className: N.icon,
|
|
106
|
+
children: r
|
|
107
|
+
}), /* @__PURE__ */ a("div", {
|
|
108
|
+
className: N.bannerText,
|
|
109
|
+
children: d ? /* @__PURE__ */ a(gt, {
|
|
110
|
+
isFocusable: !0,
|
|
111
|
+
text: /* @__PURE__ */ a(w, { children: t }),
|
|
112
|
+
tooltipContent: t
|
|
113
|
+
}) : t
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
}, Je = Object.assign(Yt, { Action: X.Action }), k = (t) => t.status === "visible", Y = ({ store: t, toastsToClose: e, nextToasts: o = t.state.toasts }) => {
|
|
118
|
+
const s = o.map((n) => e.includes(n) ? {
|
|
119
|
+
...n,
|
|
120
|
+
status: "closing"
|
|
121
|
+
} : n), r = t.state.mountedToasterCount > 0;
|
|
122
|
+
t.set("toasts", r ? s : s.filter(k));
|
|
123
|
+
for (const n of e) n.notification.onClose?.();
|
|
124
|
+
}, Z = J(void 0), A = () => {
|
|
125
|
+
const t = Q(Z);
|
|
126
|
+
if (!u(t)) throw new Error("Toast components must be used within a ToastProvider.");
|
|
127
|
+
return t;
|
|
128
|
+
}, tt = () => {
|
|
129
|
+
const t = A();
|
|
130
|
+
return { closeToast: (o) => {
|
|
131
|
+
const s = t.state.toasts.filter((r) => k(r) && (!u(o) || r.notification.id === o));
|
|
132
|
+
G(s) && Y({
|
|
133
|
+
store: t,
|
|
134
|
+
toastsToClose: s
|
|
135
|
+
});
|
|
136
|
+
} };
|
|
137
|
+
}, H = 0, Zt = () => {
|
|
138
|
+
const t = A();
|
|
139
|
+
return { enqueueToast: It(() => {
|
|
140
|
+
function e(o) {
|
|
141
|
+
if (!u(o)) return;
|
|
142
|
+
const { dedupeKey: s, ...r } = o, { toasts: n, limit: i } = t.state, c = n.filter(k), d = u(s) ? c.find((_) => _.dedupeKey === s) : void 0;
|
|
143
|
+
if (u(d)) return d.notification.id;
|
|
144
|
+
H += 1;
|
|
145
|
+
const l = `toast-${H}`, h = Math.max(0, c.length - i + 1);
|
|
146
|
+
return Y({
|
|
147
|
+
store: t,
|
|
148
|
+
toastsToClose: c.slice(0, h),
|
|
149
|
+
nextToasts: [...n, {
|
|
150
|
+
notification: {
|
|
151
|
+
...r,
|
|
152
|
+
id: l
|
|
153
|
+
},
|
|
154
|
+
dedupeKey: s,
|
|
155
|
+
status: "visible"
|
|
156
|
+
}]
|
|
157
|
+
}), l;
|
|
158
|
+
}
|
|
159
|
+
return e;
|
|
160
|
+
}, [t]) };
|
|
161
|
+
}, te = ({ store: t, id: e, ...o }) => {
|
|
162
|
+
const s = t.state.toasts.find((i) => i.notification.id === e && k(i)), r = Object.keys(o);
|
|
163
|
+
if (!u(s) || !G(r)) return;
|
|
164
|
+
const n = r.includes("duration") || u(s.notification.progress) && r.includes("progress") && !u(o.progress);
|
|
165
|
+
t.set("toasts", t.state.toasts.map((i) => i === s ? {
|
|
166
|
+
...i,
|
|
167
|
+
notification: {
|
|
168
|
+
...i.notification,
|
|
169
|
+
...o,
|
|
170
|
+
id: e
|
|
171
|
+
},
|
|
172
|
+
...n ? { durationRevision: (i.durationRevision ?? 0) + 1 } : {}
|
|
173
|
+
} : i));
|
|
174
|
+
}, ee = () => {
|
|
175
|
+
const t = A();
|
|
176
|
+
return { updateToast: At((e) => te({
|
|
177
|
+
store: t,
|
|
178
|
+
...e
|
|
179
|
+
}), [t]) };
|
|
180
|
+
}, Qe = () => {
|
|
181
|
+
const { closeToast: t } = tt(), { enqueueToast: e } = Zt(), { updateToast: o } = ee();
|
|
182
|
+
return {
|
|
183
|
+
enqueueToast: e,
|
|
184
|
+
closeToast: t,
|
|
185
|
+
updateToast: o
|
|
186
|
+
};
|
|
187
|
+
}, oe = "_root_181ka_1", se = "_progress_181ka_19", re = "_header_181ka_30", ae = "_message_181ka_40", ne = "_icon_181ka_45", ie = "_actions_181ka_50", ce = "_description_181ka_56", ue = "_footer_181ka_65", de = "_footerAction_181ka_69", le = "_closeButton_181ka_76", f = {
|
|
188
|
+
root: oe,
|
|
189
|
+
progress: se,
|
|
190
|
+
header: re,
|
|
191
|
+
message: ae,
|
|
192
|
+
icon: ne,
|
|
193
|
+
actions: ie,
|
|
194
|
+
description: ce,
|
|
195
|
+
footer: ue,
|
|
196
|
+
footerAction: de,
|
|
197
|
+
closeButton: le
|
|
198
|
+
}, et = J({
|
|
199
|
+
durationRevision: 0,
|
|
200
|
+
isActive: !0
|
|
201
|
+
}), me = ({ clock: t, duration: e, progress: o, isPaused: s, onClose: r }) => {
|
|
202
|
+
const { durationRevision: n, isActive: i } = Q(et), c = u(o);
|
|
203
|
+
return W(() => {
|
|
204
|
+
t.update({
|
|
205
|
+
duration: e,
|
|
206
|
+
durationRevision: n,
|
|
207
|
+
isPaused: s,
|
|
208
|
+
isProgress: c,
|
|
209
|
+
isActive: i,
|
|
210
|
+
onClose: r
|
|
211
|
+
});
|
|
212
|
+
}, [
|
|
213
|
+
t,
|
|
214
|
+
e,
|
|
215
|
+
n,
|
|
216
|
+
s,
|
|
217
|
+
c,
|
|
218
|
+
i,
|
|
219
|
+
r
|
|
220
|
+
]), W(() => () => t.stop(), [t]), null;
|
|
221
|
+
}, ve = ({ element: t, isFocused: e, onFocusChange: o }) => (W(() => {
|
|
222
|
+
if (!e || !u(t)) return;
|
|
223
|
+
const s = () => {
|
|
224
|
+
t.contains(t.ownerDocument.activeElement) || o(!1);
|
|
225
|
+
};
|
|
226
|
+
s();
|
|
227
|
+
const r = new MutationObserver(s);
|
|
228
|
+
return r.observe(t, {
|
|
229
|
+
childList: !0,
|
|
230
|
+
subtree: !0
|
|
231
|
+
}), () => r.disconnect();
|
|
232
|
+
}, [
|
|
233
|
+
t,
|
|
234
|
+
e,
|
|
235
|
+
o
|
|
236
|
+
]), null), ot = (t) => Number.isFinite(t) && t > 0, _e = "_countdown_1vuo8_1", fe = "_toastCountdown_1vuo8_1", pe = {
|
|
237
|
+
countdown: _e,
|
|
238
|
+
toastCountdown: fe
|
|
239
|
+
}, he = ({ progress: t, duration: e, remainingDuration: o, revision: s, isPaused: r, barColor: n }) => u(t) ? /* @__PURE__ */ a(Tt, {
|
|
240
|
+
value: t,
|
|
241
|
+
barColor: n
|
|
242
|
+
}) : ot(e) ? /* @__PURE__ */ a("div", {
|
|
243
|
+
className: pe.countdown,
|
|
244
|
+
"data-paused": r || void 0,
|
|
245
|
+
style: {
|
|
246
|
+
"--toast-countdown-color": n,
|
|
247
|
+
"--toast-countdown-width": `${o / e * 100}%`,
|
|
248
|
+
"--toast-countdown-duration": `${o}ms`
|
|
249
|
+
}
|
|
250
|
+
}, s) : null, Te = 2 ** 31 - 1, Ce = ({ onChange: t }) => {
|
|
251
|
+
let e, o = 0, s, r, n = 0, i = !1;
|
|
252
|
+
const c = () => {
|
|
253
|
+
u(s) && (o = Math.max(0, o - (performance.now() - s)), s = void 0), clearTimeout(r), r = void 0;
|
|
254
|
+
}, d = () => {
|
|
255
|
+
u(e) && (n += 1, t({
|
|
256
|
+
duration: e.duration,
|
|
257
|
+
remainingDuration: o,
|
|
258
|
+
revision: n,
|
|
259
|
+
isPaused: e.isPaused || !e.isActive
|
|
260
|
+
}));
|
|
261
|
+
}, l = () => {
|
|
262
|
+
i || (c(), i = !0, o = 0, d(), e?.onClose?.());
|
|
263
|
+
}, h = () => u(e) && e.isActive && !e.isPaused && !e.isProgress && ot(e.duration) && !i, _ = () => {
|
|
264
|
+
h() && (s = performance.now(), r = setTimeout(() => {
|
|
265
|
+
if (c(), o > 0) {
|
|
266
|
+
_();
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
l();
|
|
270
|
+
}, Math.min(o, Te)));
|
|
271
|
+
};
|
|
272
|
+
return {
|
|
273
|
+
update: (m) => {
|
|
274
|
+
const g = !u(e) || m.duration !== e.duration || m.durationRevision !== e.durationRevision || e.isProgress && !m.isProgress, b = g || m.isProgress !== e?.isProgress || m.isPaused !== e?.isPaused || m.isActive !== e?.isActive, R = !u(s) && h();
|
|
275
|
+
if (!b && !R) {
|
|
276
|
+
e = m;
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
c(), e = m, !i && (g && (o = Math.max(0, m.duration)), d(), _());
|
|
280
|
+
},
|
|
281
|
+
close: l,
|
|
282
|
+
stop: c
|
|
283
|
+
};
|
|
284
|
+
}, ge = ({ duration: t, isPaused: e }) => {
|
|
285
|
+
const [o, s] = x({
|
|
286
|
+
duration: t,
|
|
287
|
+
remainingDuration: t,
|
|
288
|
+
revision: 0,
|
|
289
|
+
isPaused: e
|
|
290
|
+
}), [r] = x(() => Ce({ onChange: s }));
|
|
291
|
+
return {
|
|
292
|
+
countdown: o,
|
|
293
|
+
clock: r
|
|
294
|
+
};
|
|
295
|
+
}, we = {
|
|
296
|
+
neutral: F,
|
|
297
|
+
error: F,
|
|
298
|
+
success: lt,
|
|
299
|
+
info: L,
|
|
300
|
+
warning: F
|
|
301
|
+
}, be = ({ children: t, description: e, icon: o, iconLabel: s, action: r, progress: n, duration: i = 6e3, onCancel: c, onClose: d, cancelLabel: l = "Cancel", closeLabel: h = "Close", status: _ = "neutral", role: I = "status", className: m, onMouseEnter: g, onMouseLeave: b, onFocus: R, onBlur: st, render: rt, ref: at, ...nt }) => {
|
|
302
|
+
const $ = _t(), [it, y] = x(!1), [q, S] = x(!1), [ct, ut] = x(null), z = it || q, { countdown: E, clock: D } = ge({
|
|
303
|
+
duration: i,
|
|
304
|
+
isPaused: z
|
|
305
|
+
}), dt = we[_], U = $.snackBar[_ === "neutral" ? "default" : _], j = xt(o) ? /* @__PURE__ */ a(dt, {
|
|
306
|
+
"aria-label": s,
|
|
307
|
+
"aria-hidden": !u(s),
|
|
308
|
+
color: U.color,
|
|
309
|
+
size: $.icon.size.md
|
|
310
|
+
}) : o;
|
|
311
|
+
return /* @__PURE__ */ p(w, { children: [
|
|
312
|
+
O({
|
|
313
|
+
render: rt,
|
|
314
|
+
ref: [at ?? null, ut],
|
|
315
|
+
props: {
|
|
316
|
+
role: I,
|
|
317
|
+
"aria-live": I === "alert" ? "assertive" : "polite",
|
|
318
|
+
...nt,
|
|
319
|
+
className: P(f.root, m),
|
|
320
|
+
onMouseEnter: (T) => {
|
|
321
|
+
y(!0), g?.(T);
|
|
322
|
+
},
|
|
323
|
+
onMouseLeave: (T) => {
|
|
324
|
+
y(!1), b?.(T);
|
|
325
|
+
},
|
|
326
|
+
onFocus: (T) => {
|
|
327
|
+
S(!0), R?.(T);
|
|
328
|
+
},
|
|
329
|
+
onBlur: (T) => {
|
|
330
|
+
T.currentTarget.contains(T.relatedTarget) || S(!1), st?.(T);
|
|
331
|
+
},
|
|
332
|
+
children: /* @__PURE__ */ p(w, { children: [
|
|
333
|
+
/* @__PURE__ */ a("div", {
|
|
334
|
+
className: f.progress,
|
|
335
|
+
"aria-hidden": !0,
|
|
336
|
+
children: /* @__PURE__ */ a(he, {
|
|
337
|
+
barColor: U.backgroundColor,
|
|
338
|
+
progress: n,
|
|
339
|
+
duration: E.duration,
|
|
340
|
+
remainingDuration: E.remainingDuration,
|
|
341
|
+
revision: E.revision,
|
|
342
|
+
isPaused: E.isPaused
|
|
343
|
+
})
|
|
344
|
+
}),
|
|
345
|
+
/* @__PURE__ */ p("div", {
|
|
346
|
+
className: f.header,
|
|
347
|
+
children: [
|
|
348
|
+
C(j) && /* @__PURE__ */ a("div", {
|
|
349
|
+
className: f.icon,
|
|
350
|
+
children: j
|
|
351
|
+
}),
|
|
352
|
+
/* @__PURE__ */ a("div", {
|
|
353
|
+
className: f.message,
|
|
354
|
+
children: t
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ p("div", {
|
|
357
|
+
className: f.actions,
|
|
358
|
+
children: [u(c) && C(l) && /* @__PURE__ */ a(B, {
|
|
359
|
+
onClick: c,
|
|
360
|
+
size: "sm",
|
|
361
|
+
variant: "ghost",
|
|
362
|
+
style: { fontWeight: "var(--t-font-weight-regular)" },
|
|
363
|
+
children: l
|
|
364
|
+
}), u(d) && /* @__PURE__ */ a(B, {
|
|
365
|
+
title: h,
|
|
366
|
+
"aria-label": h,
|
|
367
|
+
startIcon: /* @__PURE__ */ a(V, {}),
|
|
368
|
+
className: f.closeButton,
|
|
369
|
+
variant: "ghost",
|
|
370
|
+
size: "sm",
|
|
371
|
+
onClick: D.close
|
|
372
|
+
})]
|
|
373
|
+
})
|
|
374
|
+
]
|
|
375
|
+
}),
|
|
376
|
+
C(e) && /* @__PURE__ */ a("div", {
|
|
377
|
+
className: f.description,
|
|
378
|
+
children: e
|
|
379
|
+
}),
|
|
380
|
+
C(r) && /* @__PURE__ */ p("div", {
|
|
381
|
+
className: f.footer,
|
|
382
|
+
children: [/* @__PURE__ */ a(wt, {}), /* @__PURE__ */ a("div", {
|
|
383
|
+
className: f.footerAction,
|
|
384
|
+
children: r
|
|
385
|
+
})]
|
|
386
|
+
})
|
|
387
|
+
] })
|
|
388
|
+
}
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ a(ve, {
|
|
391
|
+
element: ct,
|
|
392
|
+
isFocused: q,
|
|
393
|
+
onFocusChange: S
|
|
394
|
+
}),
|
|
395
|
+
/* @__PURE__ */ a(me, {
|
|
396
|
+
clock: D,
|
|
397
|
+
duration: i,
|
|
398
|
+
progress: n,
|
|
399
|
+
isPaused: z,
|
|
400
|
+
onClose: d
|
|
401
|
+
})
|
|
402
|
+
] });
|
|
403
|
+
}, Ne = (t = 3) => {
|
|
404
|
+
if (!bt(t)) throw new Error("Toast limit must be a positive integer.");
|
|
405
|
+
return new Wt({
|
|
406
|
+
toasts: [],
|
|
407
|
+
limit: t,
|
|
408
|
+
mountedToasterCount: 0
|
|
409
|
+
});
|
|
410
|
+
}, Ye = ({ children: t, limit: e = 3 }) => {
|
|
411
|
+
const [o] = x(() => Ne(e));
|
|
412
|
+
return /* @__PURE__ */ a(Z.Provider, {
|
|
413
|
+
value: o,
|
|
414
|
+
children: t
|
|
415
|
+
});
|
|
416
|
+
}, xe = "_root_1q2cc_1", Ae = "_item_1q2cc_20", Ie = "_itemContent_1q2cc_47", M = {
|
|
417
|
+
root: xe,
|
|
418
|
+
item: Ae,
|
|
419
|
+
itemContent: Ie
|
|
420
|
+
}, Pe = () => kt(A(), (t) => t.toasts), K = ({ store: t, toast: e }) => {
|
|
421
|
+
const { toasts: o } = t.state;
|
|
422
|
+
e.status === "closing" && o.includes(e) && t.set("toasts", o.filter((s) => s !== e));
|
|
423
|
+
}, We = ({ elementRef: t, toastEntry: e }) => {
|
|
424
|
+
const o = A();
|
|
425
|
+
return W(() => {
|
|
426
|
+
if (e.status === "visible") return;
|
|
427
|
+
const s = t.current?.getAnimations?.() ?? [];
|
|
428
|
+
if (s.length === 0) {
|
|
429
|
+
K({
|
|
430
|
+
store: o,
|
|
431
|
+
toast: e
|
|
432
|
+
});
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
let r = !1;
|
|
436
|
+
return Promise.allSettled(s.map((n) => n.finished)).then(() => {
|
|
437
|
+
r || K({
|
|
438
|
+
store: o,
|
|
439
|
+
toast: e
|
|
440
|
+
});
|
|
441
|
+
}), () => {
|
|
442
|
+
r = !0;
|
|
443
|
+
};
|
|
444
|
+
}, [
|
|
445
|
+
t,
|
|
446
|
+
e,
|
|
447
|
+
o
|
|
448
|
+
]), /* @__PURE__ */ a(w, {});
|
|
449
|
+
}, ke = ({ toastEntry: t, getToastProps: e, onClose: o }) => {
|
|
450
|
+
const { notification: s, status: r, durationRevision: n = 0 } = t, { id: i, ...c } = s, d = Pt(null);
|
|
451
|
+
return /* @__PURE__ */ p(w, { children: [/* @__PURE__ */ a("div", {
|
|
452
|
+
ref: d,
|
|
453
|
+
className: M.item,
|
|
454
|
+
"data-exiting": r === "closing" || void 0,
|
|
455
|
+
inert: r === "closing",
|
|
456
|
+
children: /* @__PURE__ */ a("div", {
|
|
457
|
+
className: M.itemContent,
|
|
458
|
+
children: /* @__PURE__ */ a(et.Provider, {
|
|
459
|
+
value: {
|
|
460
|
+
durationRevision: n,
|
|
461
|
+
isActive: r === "visible"
|
|
462
|
+
},
|
|
463
|
+
children: /* @__PURE__ */ a(be, {
|
|
464
|
+
...c,
|
|
465
|
+
...e?.(s),
|
|
466
|
+
id: i,
|
|
467
|
+
onClose: () => o(i)
|
|
468
|
+
})
|
|
469
|
+
})
|
|
470
|
+
})
|
|
471
|
+
}), /* @__PURE__ */ a(We, {
|
|
472
|
+
elementRef: d,
|
|
473
|
+
toastEntry: t
|
|
474
|
+
})] });
|
|
475
|
+
}, Ee = ({ getToastProps: t }) => {
|
|
476
|
+
const e = Pe(), { closeToast: o } = tt();
|
|
477
|
+
return e.map((s) => /* @__PURE__ */ a(ke, {
|
|
478
|
+
toastEntry: s,
|
|
479
|
+
getToastProps: t,
|
|
480
|
+
onClose: o
|
|
481
|
+
}, s.notification.id));
|
|
482
|
+
}, Be = () => {
|
|
483
|
+
const t = A();
|
|
484
|
+
return W(() => (t.set("mountedToasterCount", t.state.mountedToasterCount + 1), () => {
|
|
485
|
+
t.set("mountedToasterCount", t.state.mountedToasterCount - 1), !(t.state.mountedToasterCount > 0) && t.set("toasts", t.state.toasts.filter(k));
|
|
486
|
+
}), [t]), null;
|
|
487
|
+
}, Ze = ({ container: t, getToastProps: e, className: o, render: s, ref: r, ...n }) => {
|
|
488
|
+
const i = ft(), c = Ct(), d = t === void 0 ? i ?? (typeof document > "u" ? null : document.body) : t, l = O({
|
|
489
|
+
render: s,
|
|
490
|
+
ref: r,
|
|
491
|
+
props: {
|
|
492
|
+
role: "region",
|
|
493
|
+
dir: c,
|
|
494
|
+
"aria-label": "Notifications",
|
|
495
|
+
...n,
|
|
496
|
+
className: P(M.root, o),
|
|
497
|
+
children: /* @__PURE__ */ p(w, { children: [/* @__PURE__ */ a(Be, {}), /* @__PURE__ */ a(Ee, { getToastProps: e })] })
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
return u(d) ? Et(l, d) : null;
|
|
501
|
+
};
|
|
502
|
+
export {
|
|
503
|
+
Je as a,
|
|
504
|
+
Qe as i,
|
|
505
|
+
Ye as n,
|
|
506
|
+
Ge as o,
|
|
507
|
+
be as r,
|
|
508
|
+
Ze as t
|
|
509
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let t=require("@sniptt/guards");var n=({width:e,fallbackPercentage:r})=>(0,t.isString)(e)?Number.parseFloat(e):r;Object.defineProperty(exports,"getProgressIndicatorPercentage",{enumerable:!0,get:function(){return n}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r } from "./theme-
|
|
1
|
+
import { r } from "./theme-B2EaXhye.js";
|
|
2
2
|
import { clsx as p } from "clsx";
|
|
3
3
|
import { createContext as I, forwardRef as g, useContext as u, useEffect as f, useState as y } from "react";
|
|
4
4
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
@@ -3709,7 +3709,7 @@ var s7 = (o) => {
|
|
|
3709
3709
|
], W7 = ({ children: o }) => {
|
|
3710
3710
|
const [n, a] = y({});
|
|
3711
3711
|
return f(() => {
|
|
3712
|
-
import("./AllIcons-
|
|
3712
|
+
import("./AllIcons-G3nKeM41.js").then(({ ALL_ICONS: i }) => {
|
|
3713
3713
|
a(i);
|
|
3714
3714
|
});
|
|
3715
3715
|
}, []), /* @__PURE__ */ e(d.Provider, {
|