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
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-BBUGkQQV.cjs"),e=require("../navigation-B1hPNYv2.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=t.Dropdown;exports.ListItemButton=e.ListItemButton;exports.MenuItem=e.MenuItem;exports.MenuItemAvatar=e.MenuItemAvatar;exports.MenuItemDraggable=e.MenuItemDraggable;exports.MenuItemSuggestion=e.MenuItemSuggestion;exports.MenuPicker=e.MenuPicker;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../Dropdown-
|
|
2
|
-
import { a as s, c as o, i as n, l as r, n as m, o as u, r as i, s as g, t as p } from "../navigation-
|
|
1
|
+
import { t } from "../Dropdown-CScN_olN.js";
|
|
2
|
+
import { a as s, c as o, i as n, l as r, n as m, o as u, r as i, s as g, t as p } from "../navigation-itBinyPi.js";
|
|
3
3
|
export {
|
|
4
4
|
g as DEFAULT_COLOR_LABELS,
|
|
5
5
|
t as Dropdown,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-BiSAY2oN.cjs");exports.SettingsRow=e.SettingsRow;
|
package/dist/components.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./data-display-DjhAHvj1.cjs"),i=require("./TintedIconTile-CU2hCerq.cjs"),n=require("./feedback-B5x8tmnG.cjs"),r=require("./Dropdown-BBUGkQQV.cjs"),e=require("./input-BEKjAOjS.cjs"),u=require("./layout-wuIu4rJ3.cjs"),t=require("./navigation-B1hPNYv2.cjs"),a=require("./settings-BiSAY2oN.cjs");exports.AnimatedIconCrossfade=u.AnimatedIconCrossfade;exports.AvatarGroup=o.AvatarGroup;exports.Callout=n.Callout;exports.CommandBlock=o.CommandBlock;exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=t.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=e.ImageInput;exports.InlineBanner=n.InlineBanner;exports.JsonTree=o.JsonTree;exports.LightButton=e.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=t.ListItemButton;exports.MainButton=e.MainButton;exports.MenuItem=t.MenuItem;exports.MenuItemAvatar=t.MenuItemAvatar;exports.MenuItemDraggable=t.MenuItemDraggable;exports.MenuItemSuggestion=t.MenuItemSuggestion;exports.MenuPicker=t.MenuPicker;exports.MetricRow=o.MetricRow;exports.NumberStepper=e.NumberStepper;exports.OverflowingList=u.OverflowingList;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.Section=u.Section;exports.SegmentedControl=e.SegmentedControl;exports.SettingsRow=a.SettingsRow;exports.StackIcon=o.StackIcon;exports.TabButton=t.TabButton;exports.TintedIconTile=i.TintedIconTile;exports.Toast=n.Toast;exports.ToastProvider=n.ToastProvider;exports.Toaster=n.Toaster;exports.getIconTileColorShades=i.getIconTileColorShades;exports.useDropdownPage=t.useDropdownPage;exports.useToast=n.useToast;
|
package/dist/components.mjs
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { a as t, i as o, n as s, r, t as
|
|
2
|
-
import { n as i, t as m } from "./TintedIconTile-
|
|
3
|
-
import { a as c, i as p, n as I, o as
|
|
4
|
-
import { n as
|
|
5
|
-
import { a as M, i as
|
|
6
|
-
import { n as
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
1
|
+
import { a as t, i as o, n as s, r, t as e } from "./data-display-DU3G8ZyI.js";
|
|
2
|
+
import { n as i, t as m } from "./TintedIconTile-4BGa8g8n.js";
|
|
3
|
+
import { a as c, i as p, n as I, o as l, r as g, t as f } from "./feedback-DhilJ_fX.js";
|
|
4
|
+
import { n as T, r as d, t as B } from "./Dropdown-CScN_olN.js";
|
|
5
|
+
import { a as L, c as M, i as P, l as h, n as k, o as w, r as A, s as v, t as D } from "./input-BUgnp6eA.js";
|
|
6
|
+
import { n as y, r as O, t as R } from "./layout-BKHabkTu.js";
|
|
7
|
+
import { a as _, c as x, i as F, l as G, n as J, o as N, r as U, s as j, t as q } from "./navigation-itBinyPi.js";
|
|
8
|
+
import { t as H } from "./settings-CC-2gcAx.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
O as AnimatedIconCrossfade,
|
|
11
11
|
t as AvatarGroup,
|
|
12
|
-
|
|
12
|
+
l as Callout,
|
|
13
13
|
o as CommandBlock,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
h as CountrySelect,
|
|
15
|
+
M as CurrencyPicker,
|
|
16
|
+
j as DEFAULT_COLOR_LABELS,
|
|
17
|
+
B as Dropdown,
|
|
18
|
+
d as IconButton,
|
|
19
|
+
v as ImageInput,
|
|
20
20
|
c as InlineBanner,
|
|
21
21
|
r as JsonTree,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
w as LightButton,
|
|
23
|
+
T as LightIconButton,
|
|
24
|
+
x as ListItemButton,
|
|
25
|
+
L as MainButton,
|
|
26
|
+
N as MenuItem,
|
|
27
|
+
_ as MenuItemAvatar,
|
|
28
|
+
F as MenuItemDraggable,
|
|
29
|
+
U as MenuItemSuggestion,
|
|
30
|
+
J as MenuPicker,
|
|
31
31
|
s as MetricRow,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
P as NumberStepper,
|
|
33
|
+
y as OverflowingList,
|
|
34
|
+
A as PhoneCountryPicker,
|
|
35
35
|
k as SearchInput,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
R as Section,
|
|
37
|
+
D as SegmentedControl,
|
|
38
|
+
H as SettingsRow,
|
|
39
|
+
e as StackIcon,
|
|
40
|
+
q as TabButton,
|
|
39
41
|
m as TintedIconTile,
|
|
40
42
|
g as Toast,
|
|
41
43
|
I as ToastProvider,
|
|
42
|
-
|
|
44
|
+
f as Toaster,
|
|
43
45
|
i as getIconTileColorShades,
|
|
44
|
-
|
|
46
|
+
G as useDropdownPage,
|
|
45
47
|
p as useToast
|
|
46
48
|
};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { t as c } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { a as i } from "./theme-B2EaXhye.js";
|
|
3
|
+
import { s as O } from "./utilities-CEi9I09B.js";
|
|
4
|
+
import { t as V } from "./Loader-DtHWQH8w.js";
|
|
5
|
+
import { t as S } from "./OverflowingTextWithTooltip-Be2-wCcZ.js";
|
|
6
|
+
import { useRender as _ } from "@base-ui/react/use-render";
|
|
7
|
+
import { isBoolean as C, isString as E } from "@sniptt/guards";
|
|
8
|
+
import { clsx as g } from "clsx";
|
|
9
|
+
import { Fragment as v, jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
10
|
+
var pa = {
|
|
11
|
+
xl: {
|
|
12
|
+
fontSize: "16px",
|
|
13
|
+
width: "40px"
|
|
14
|
+
},
|
|
15
|
+
lg: {
|
|
16
|
+
fontSize: "13px",
|
|
17
|
+
width: "24px"
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
fontSize: "12px",
|
|
21
|
+
width: "16px"
|
|
22
|
+
},
|
|
23
|
+
sm: {
|
|
24
|
+
fontSize: "10px",
|
|
25
|
+
width: "14px"
|
|
26
|
+
},
|
|
27
|
+
xs: {
|
|
28
|
+
fontSize: "8px",
|
|
29
|
+
width: "12px"
|
|
30
|
+
}
|
|
31
|
+
}, Y = "_badge_1q6rc_1", $ = { badge: Y }, da = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: l, render: e, ref: s, ...o }) => _({
|
|
32
|
+
defaultTagName: "span",
|
|
33
|
+
render: e,
|
|
34
|
+
ref: s,
|
|
35
|
+
props: {
|
|
36
|
+
...o,
|
|
37
|
+
className: g($.badge, l),
|
|
38
|
+
"data-badge-size": a,
|
|
39
|
+
"data-badge-color": t,
|
|
40
|
+
"data-badge-shape": r
|
|
41
|
+
}
|
|
42
|
+
}), F = "_chip_a644p_1", U = "_endElementDivider_a644p_75", T = {
|
|
43
|
+
chip: F,
|
|
44
|
+
endElementDivider: U
|
|
45
|
+
}, Z = { height: "var(--t-spacing-4)" }, ma = ({ children: a, size: t = "sm", variant: r = "ghost", color: l = "primary", shape: e = "square", weight: s = "regular", onClick: o, clickable: d = c(o), startElement: m, endElement: p, endElementDivider: h = !1, maxWidth: f, truncate: b = !0, tooltipContent: w, tooltipDelay: q, isTooltipMultiline: k, tooltipPlace: z, alwaysShowTooltip: B = !1, className: D, style: j, render: A, ref: L, ...R }) => {
|
|
46
|
+
const P = c(a) && !C(a) && a !== "", M = E(a) ? {
|
|
47
|
+
text: a,
|
|
48
|
+
tooltipContent: w
|
|
49
|
+
} : {
|
|
50
|
+
text: a ?? !1,
|
|
51
|
+
tooltipContent: w ?? ""
|
|
52
|
+
};
|
|
53
|
+
return _({
|
|
54
|
+
render: A,
|
|
55
|
+
ref: L,
|
|
56
|
+
state: {
|
|
57
|
+
size: t,
|
|
58
|
+
variant: r,
|
|
59
|
+
color: l,
|
|
60
|
+
shape: e,
|
|
61
|
+
weight: s,
|
|
62
|
+
clickable: d,
|
|
63
|
+
truncate: b
|
|
64
|
+
},
|
|
65
|
+
props: {
|
|
66
|
+
...R,
|
|
67
|
+
onClick: o,
|
|
68
|
+
className: g(T.chip, D),
|
|
69
|
+
style: {
|
|
70
|
+
...c(f) ? { "--tw-chip-max-width": `calc(${f}px - 2 * var(--tw-chip-padding))` } : {},
|
|
71
|
+
...j
|
|
72
|
+
},
|
|
73
|
+
children: /* @__PURE__ */ x(v, { children: [
|
|
74
|
+
m,
|
|
75
|
+
P && /* @__PURE__ */ n(S, {
|
|
76
|
+
...M,
|
|
77
|
+
render: /* @__PURE__ */ n("span", {}),
|
|
78
|
+
style: t === "md" ? Z : void 0,
|
|
79
|
+
truncate: b,
|
|
80
|
+
tooltipDelay: q,
|
|
81
|
+
isTooltipMultiline: k,
|
|
82
|
+
tooltipPlace: z,
|
|
83
|
+
alwaysShowTooltip: B
|
|
84
|
+
}),
|
|
85
|
+
c(p) && p !== !1 && /* @__PURE__ */ x(v, { children: [h && /* @__PURE__ */ n("span", { className: T.endElementDivider }), p] })
|
|
86
|
+
] })
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}, G = "_root_6bfj6_1", H = "_circle_6bfj6_13", y = {
|
|
90
|
+
root: G,
|
|
91
|
+
circle: H
|
|
92
|
+
}, ca = ({ colorName: a, color: t, variant: r, className: l, style: e, render: s, ref: o, ...d }) => _({
|
|
93
|
+
defaultTagName: "div",
|
|
94
|
+
render: s,
|
|
95
|
+
ref: o,
|
|
96
|
+
props: {
|
|
97
|
+
...d,
|
|
98
|
+
className: g(y.root, r === "circle" && y.circle, l),
|
|
99
|
+
style: {
|
|
100
|
+
"--color-sample-color": t ?? i.tag.background[a],
|
|
101
|
+
"--color-sample-border-color": i.tag.text[a],
|
|
102
|
+
...e
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}), I = "_status_y5v42_1", J = "_content_y5v42_49", N = {
|
|
106
|
+
status: I,
|
|
107
|
+
content: J
|
|
108
|
+
}, _a = ({ children: a, color: t, loading: r = !1, weight: l = "regular", className: e, style: s, render: o, ref: d, ...m }) => {
|
|
109
|
+
const p = O(t);
|
|
110
|
+
return _({
|
|
111
|
+
defaultTagName: "span",
|
|
112
|
+
render: o,
|
|
113
|
+
ref: d,
|
|
114
|
+
state: {
|
|
115
|
+
loading: r,
|
|
116
|
+
weight: l
|
|
117
|
+
},
|
|
118
|
+
props: {
|
|
119
|
+
"aria-busy": r || void 0,
|
|
120
|
+
...m,
|
|
121
|
+
className: g(N.status, e),
|
|
122
|
+
style: {
|
|
123
|
+
"--tw-status-background": i.tag.background[p],
|
|
124
|
+
"--tw-status-text-color": i.tag.text[p],
|
|
125
|
+
...s
|
|
126
|
+
},
|
|
127
|
+
children: /* @__PURE__ */ x(v, { children: [/* @__PURE__ */ n("span", {
|
|
128
|
+
className: N.content,
|
|
129
|
+
children: a
|
|
130
|
+
}), r && /* @__PURE__ */ n(V, {
|
|
131
|
+
color: t,
|
|
132
|
+
"aria-hidden": "true",
|
|
133
|
+
render: /* @__PURE__ */ n("span", {})
|
|
134
|
+
})] })
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}, K = "_tag_1rqsl_1", Q = "_content_1rqsl_46", W = "_overflowingText_1rqsl_55", X = "_iconContainer_1rqsl_59", u = {
|
|
138
|
+
tag: K,
|
|
139
|
+
content: Q,
|
|
140
|
+
overflowingText: W,
|
|
141
|
+
iconContainer: X
|
|
142
|
+
}, ga = ({ children: a, color: t, weight: r = "regular", variant: l = "soft", startIcon: e, truncate: s = !0, borderStyle: o = "solid", className: d, style: m, render: p, ref: h, ...f }) => _({
|
|
143
|
+
defaultTagName: "span",
|
|
144
|
+
render: p,
|
|
145
|
+
ref: h,
|
|
146
|
+
state: {
|
|
147
|
+
variant: l,
|
|
148
|
+
weight: r,
|
|
149
|
+
truncate: s
|
|
150
|
+
},
|
|
151
|
+
props: {
|
|
152
|
+
...f,
|
|
153
|
+
className: g(u.tag, d),
|
|
154
|
+
style: {
|
|
155
|
+
"--tw-tag-background": t === "transparent" ? "transparent" : i.tag.background[t] ?? i.tag.background.gray,
|
|
156
|
+
"--tw-tag-text": t === "transparent" ? i.font.color.secondary : i.tag.text[t] ?? i.font.color.secondary,
|
|
157
|
+
"--tw-tag-border-style": o,
|
|
158
|
+
...m
|
|
159
|
+
},
|
|
160
|
+
children: /* @__PURE__ */ x(v, { children: [c(e) && !C(e) && e !== "" && /* @__PURE__ */ n("span", {
|
|
161
|
+
className: u.iconContainer,
|
|
162
|
+
"aria-hidden": !0,
|
|
163
|
+
children: e
|
|
164
|
+
}), /* @__PURE__ */ n("span", {
|
|
165
|
+
className: u.content,
|
|
166
|
+
children: E(a) && s ? /* @__PURE__ */ n(S, {
|
|
167
|
+
text: a,
|
|
168
|
+
render: /* @__PURE__ */ n("span", {}),
|
|
169
|
+
className: u.overflowingText
|
|
170
|
+
}) : a
|
|
171
|
+
})] })
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
export {
|
|
175
|
+
da as a,
|
|
176
|
+
ma as i,
|
|
177
|
+
_a as n,
|
|
178
|
+
pa as o,
|
|
179
|
+
ca as r,
|
|
180
|
+
ga as t
|
|
181
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const l=require("./theme-1XkFz8Qu.cjs"),p=require("./isDefined-DS2Q42p5.cjs"),A=require("./utilities-BeLfNQ0Q.cjs"),k=require("./Loader-Bb72CUQ9.cjs"),y=require("./OverflowingTextWithTooltip-BlufG-6n.cjs");let _=require("@base-ui/react/use-render"),f=require("@sniptt/guards"),g=require("clsx"),e=require("react/jsx-runtime");var z={xl:{fontSize:"16px",width:"40px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},L="_badge_1q6rc_1",F={badge:L},Y=({size:t="sm",color:r="tertiary",shape:s="pill",className:o,render:a,ref:n,...i})=>(0,_.useRender)({defaultTagName:"span",render:a,ref:n,props:{...i,className:(0,g.clsx)(F.badge,o),"data-badge-size":t,"data-badge-color":r,"data-badge-shape":s}}),I="_chip_a644p_1",M="_endElementDivider_a644p_75",j={chip:I,endElementDivider:M},W={height:"var(--t-spacing-4)"},Z=({children:t,size:r="sm",variant:s="ghost",color:o="primary",shape:a="square",weight:n="regular",onClick:i,clickable:d=p.isDefined(i),startElement:c,endElement:u,endElementDivider:b=!1,maxWidth:m,truncate:v=!0,tooltipContent:h,tooltipDelay:C,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:N=!1,className:O,style:P,render:R,ref:V,...D})=>{const E=p.isDefined(t)&&!(0,f.isBoolean)(t)&&t!=="",B=(0,f.isString)(t)?{text:t,tooltipContent:h}:{text:t??!1,tooltipContent:h??""};return(0,_.useRender)({render:R,ref:V,state:{size:r,variant:s,color:o,shape:a,weight:n,clickable:d,truncate:v},props:{...D,onClick:i,className:(0,g.clsx)(j.chip,O),style:{...p.isDefined(m)?{"--tw-chip-max-width":`calc(${m}px - 2 * var(--tw-chip-padding))`}:{},...P},children:(0,e.jsxs)(e.Fragment,{children:[c,E&&(0,e.jsx)(y.OverflowingTextWithTooltip,{...B,render:(0,e.jsx)("span",{}),style:r==="md"?W:void 0,truncate:v,tooltipDelay:C,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:N}),p.isDefined(u)&&u!==!1&&(0,e.jsxs)(e.Fragment,{children:[b&&(0,e.jsx)("span",{className:j.endElementDivider}),u]})]})}})},$="_root_6bfj6_1",U="_circle_6bfj6_13",T={root:$,circle:U},G=({colorName:t,color:r,variant:s,className:o,style:a,render:n,ref:i,...d})=>(0,_.useRender)({defaultTagName:"div",render:n,ref:i,props:{...d,className:(0,g.clsx)(T.root,s==="circle"&&T.circle,o),style:{"--color-sample-color":r??l.themeCssVariables.tag.background[t],"--color-sample-border-color":l.themeCssVariables.tag.text[t],...a}}}),H="_status_y5v42_1",J="_content_y5v42_49",q={status:H,content:J},K=({children:t,color:r,loading:s=!1,weight:o="regular",className:a,style:n,render:i,ref:d,...c})=>{const u=A.parseThemeColor(r);return(0,_.useRender)({defaultTagName:"span",render:i,ref:d,state:{loading:s,weight:o},props:{"aria-busy":s||void 0,...c,className:(0,g.clsx)(q.status,a),style:{"--tw-status-background":l.themeCssVariables.tag.background[u],"--tw-status-text-color":l.themeCssVariables.tag.text[u],...n},children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:q.content,children:t}),s&&(0,e.jsx)(k.Loader,{color:r,"aria-hidden":"true",render:(0,e.jsx)("span",{})})]})}})},Q="_tag_1rqsl_1",X="_content_1rqsl_46",ee="_overflowingText_1rqsl_55",te="_iconContainer_1rqsl_59",x={tag:Q,content:X,overflowingText:ee,iconContainer:te},re=({children:t,color:r,weight:s="regular",variant:o="soft",startIcon:a,truncate:n=!0,borderStyle:i="solid",className:d,style:c,render:u,ref:b,...m})=>(0,_.useRender)({defaultTagName:"span",render:u,ref:b,state:{variant:o,weight:s,truncate:n},props:{...m,className:(0,g.clsx)(x.tag,d),style:{"--tw-tag-background":r==="transparent"?"transparent":l.themeCssVariables.tag.background[r]??l.themeCssVariables.tag.background.gray,"--tw-tag-text":r==="transparent"?l.themeCssVariables.font.color.secondary:l.themeCssVariables.tag.text[r]??l.themeCssVariables.font.color.secondary,"--tw-tag-border-style":i,...c},children:(0,e.jsxs)(e.Fragment,{children:[p.isDefined(a)&&!(0,f.isBoolean)(a)&&a!==""&&(0,e.jsx)("span",{className:x.iconContainer,"aria-hidden":!0,children:a}),(0,e.jsx)("span",{className:x.content,children:(0,f.isString)(t)&&n?(0,e.jsx)(y.OverflowingTextWithTooltip,{text:t,render:(0,e.jsx)("span",{}),className:x.overflowingText}):t})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return Y}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return re}});
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { t as u } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Jc as Q, No as W, Pn as Y, Tn as Z, Vt as D, rr as ee, wn as re } from "./icon-BdXwnJA6.js";
|
|
3
|
+
import { a as j, r as G } from "./theme-B2EaXhye.js";
|
|
4
|
+
import { t as ne } from "./VisuallyHidden-CFZP7ybO.js";
|
|
5
|
+
import { t as te } from "./ProgressRing-8mYV9cxE.js";
|
|
6
|
+
import { useRender as T } from "@base-ui/react/use-render";
|
|
7
|
+
import { isArray as oe, isBoolean as ae, isNonEmptyArray as M, isNonEmptyString as V, isNumber as se, isString as le } from "@sniptt/guards";
|
|
8
|
+
import { clsx as c } from "clsx";
|
|
9
|
+
import { Children as $, createContext as ie, isValidElement as ce, useContext as de, useId as me, useState as ue } from "react";
|
|
10
|
+
import { Fragment as k, jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
import { Collapsible as P } from "@base-ui/react/collapsible";
|
|
12
|
+
var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCountContainer_5cu4g_22", pe = "_overflowCount_5cu4g_22", x = {
|
|
13
|
+
container: _e,
|
|
14
|
+
itemContainer: ve,
|
|
15
|
+
overflowCountContainer: he,
|
|
16
|
+
overflowCount: pe
|
|
17
|
+
}, be = 4, _r = ({ avatars: e, className: n, maxVisible: t = be, total: o, renderOverflow: l, overflowShape: s = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ..._ }) => {
|
|
18
|
+
const m = $.toArray(e), g = Number.isNaN(t) ? 0 : Math.max(0, Math.floor(t)), N = m.slice(0, g), h = o ?? m.length, f = (Number.isFinite(h) ? Math.max(m.length, Math.floor(h)) : m.length) - N.length, w = u(l), y = f > 0 && (w ? l(f) : /* @__PURE__ */ d("span", {
|
|
19
|
+
className: x.overflowCount,
|
|
20
|
+
"data-shape": s,
|
|
21
|
+
children: ["+", f]
|
|
22
|
+
})), O = M($.toArray(y)), B = { "--avatar-group-overlap-offset": i }, X = T({
|
|
23
|
+
render: b,
|
|
24
|
+
ref: C,
|
|
25
|
+
props: {
|
|
26
|
+
..._,
|
|
27
|
+
className: c(x.container, n),
|
|
28
|
+
children: /* @__PURE__ */ d(k, { children: [$.map(N, (S) => /* @__PURE__ */ r("span", {
|
|
29
|
+
className: x.itemContainer,
|
|
30
|
+
"data-overlap": a,
|
|
31
|
+
style: B,
|
|
32
|
+
children: S
|
|
33
|
+
}, ce(S) ? S.key : void 0)), O && /* @__PURE__ */ r("span", {
|
|
34
|
+
className: c(x.itemContainer, !w && x.overflowCountContainer),
|
|
35
|
+
"data-overlap": a,
|
|
36
|
+
style: B,
|
|
37
|
+
children: y
|
|
38
|
+
})] })
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return M(N) || O ? X : null;
|
|
42
|
+
}, Ce = "_container_1j72k_1", Ne = "_commands_1j72k_13", fe = "_actions_1j72k_25", xe = "_prompt_1j72k_32", A = {
|
|
43
|
+
container: Ce,
|
|
44
|
+
commands: Ne,
|
|
45
|
+
actions: fe,
|
|
46
|
+
prompt: xe
|
|
47
|
+
}, vr = ({ commands: e, actions: n, render: t, ref: o, className: l, ...s }) => T({
|
|
48
|
+
render: t,
|
|
49
|
+
ref: o,
|
|
50
|
+
props: {
|
|
51
|
+
...s,
|
|
52
|
+
className: c(A.container, l),
|
|
53
|
+
children: /* @__PURE__ */ d(k, { children: [/* @__PURE__ */ r("pre", {
|
|
54
|
+
className: A.commands,
|
|
55
|
+
children: /* @__PURE__ */ r("code", { children: e.map((a, i) => /* @__PURE__ */ d("span", { children: [
|
|
56
|
+
i > 0 && `
|
|
57
|
+
`,
|
|
58
|
+
/* @__PURE__ */ r("span", {
|
|
59
|
+
className: A.prompt,
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
children: "> "
|
|
62
|
+
}),
|
|
63
|
+
a
|
|
64
|
+
] }, i)) })
|
|
65
|
+
}), u(n) && /* @__PURE__ */ r("div", {
|
|
66
|
+
className: A.actions,
|
|
67
|
+
children: n
|
|
68
|
+
})] })
|
|
69
|
+
}
|
|
70
|
+
}), Ie = "_list_1i4lv_1", ge = "_nested_1i4lv_8", z = {
|
|
71
|
+
list: Ie,
|
|
72
|
+
nested: ge
|
|
73
|
+
}, we = ({ depth: e, className: n, children: t }) => /* @__PURE__ */ r("ul", {
|
|
74
|
+
className: c(z.list, e > 0 && z.nested, n),
|
|
75
|
+
children: t
|
|
76
|
+
}), H = ie(void 0), p = () => {
|
|
77
|
+
const e = de(H);
|
|
78
|
+
if (!u(e)) throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");
|
|
79
|
+
return e;
|
|
80
|
+
}, ye = "_button_1e3ij_1", Ae = "_red_1e3ij_17", Je = "_chevron_1e3ij_22", L = {
|
|
81
|
+
button: ye,
|
|
82
|
+
red: Ae,
|
|
83
|
+
chevron: Je
|
|
84
|
+
}, Te = ({ isOpen: e, onClick: n, variant: t }) => {
|
|
85
|
+
const o = G(), { arrowButtonCollapsedLabel: l, arrowButtonExpandedLabel: s } = p(), a = t === "blue" ? j.color.blue : t === "red" ? j.font.color.danger : j.font.color.secondary;
|
|
86
|
+
return /* @__PURE__ */ d("button", {
|
|
87
|
+
className: c(L.button, t === "red" && L.red),
|
|
88
|
+
onClick: n,
|
|
89
|
+
children: [/* @__PURE__ */ r(ne, { children: e ? s : l }), /* @__PURE__ */ r("div", {
|
|
90
|
+
className: L.chevron,
|
|
91
|
+
"data-open": e || void 0,
|
|
92
|
+
children: /* @__PURE__ */ r(Z, {
|
|
93
|
+
size: o.icon.size.md,
|
|
94
|
+
color: a
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
}, ke = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
|
|
99
|
+
const { emptyArrayLabel: s } = p();
|
|
100
|
+
return /* @__PURE__ */ r(R, {
|
|
101
|
+
elements: [...n.entries()].map(([a, i]) => ({
|
|
102
|
+
id: a,
|
|
103
|
+
label: String(a),
|
|
104
|
+
value: i
|
|
105
|
+
})),
|
|
106
|
+
renderElementsCount: (a) => `[${a}]`,
|
|
107
|
+
label: e,
|
|
108
|
+
Icon: D,
|
|
109
|
+
depth: t,
|
|
110
|
+
emptyElementsText: s,
|
|
111
|
+
keyPath: o,
|
|
112
|
+
highlighting: l
|
|
113
|
+
});
|
|
114
|
+
}, Se = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
|
|
115
|
+
const { emptyObjectLabel: s } = p();
|
|
116
|
+
return /* @__PURE__ */ r(R, {
|
|
117
|
+
elements: Object.entries(n).map(([a, i]) => ({
|
|
118
|
+
id: a,
|
|
119
|
+
label: a,
|
|
120
|
+
value: i
|
|
121
|
+
})),
|
|
122
|
+
renderElementsCount: (a) => `{${a}}`,
|
|
123
|
+
label: e,
|
|
124
|
+
Icon: ee,
|
|
125
|
+
depth: t,
|
|
126
|
+
emptyElementsText: s,
|
|
127
|
+
keyPath: o,
|
|
128
|
+
highlighting: l
|
|
129
|
+
});
|
|
130
|
+
}, je = "_labelContainer_1pq94_1", $e = "_blue_1pq94_23", Le = "_red_1pq94_29", E = {
|
|
131
|
+
labelContainer: je,
|
|
132
|
+
blue: $e,
|
|
133
|
+
red: Le
|
|
134
|
+
}, K = ({ label: e, Icon: n, highlighting: t }) => {
|
|
135
|
+
const o = G();
|
|
136
|
+
return /* @__PURE__ */ d("span", {
|
|
137
|
+
className: c(E.labelContainer, t === "blue" && E.blue, t === "red" && E.red),
|
|
138
|
+
children: [/* @__PURE__ */ r(n, {
|
|
139
|
+
size: o.icon.size.md,
|
|
140
|
+
color: t === "blue" ? o.color.blue : t === "red" ? o.font.color.danger : o.font.color.tertiary
|
|
141
|
+
}), /* @__PURE__ */ r("span", { children: e })]
|
|
142
|
+
});
|
|
143
|
+
}, Ee = "_text_1ot24_1", qe = "_blue_1ot24_10", Ve = "_red_1ot24_14", Re = "_button_1ot24_18", J = {
|
|
144
|
+
text: Ee,
|
|
145
|
+
blue: qe,
|
|
146
|
+
red: Ve,
|
|
147
|
+
button: Re
|
|
148
|
+
}, Oe = ({ valueAsString: e, highlighting: n }) => {
|
|
149
|
+
const { onNodeValueClick: t } = p(), o = u(t), l = () => {
|
|
150
|
+
t?.(e);
|
|
151
|
+
}, s = c(J.text, n === "blue" && J.blue, n === "red" && J.red);
|
|
152
|
+
return o ? /* @__PURE__ */ r("button", {
|
|
153
|
+
className: c(s, J.button),
|
|
154
|
+
type: "button",
|
|
155
|
+
onClick: l,
|
|
156
|
+
children: e
|
|
157
|
+
}) : /* @__PURE__ */ r("span", {
|
|
158
|
+
className: s,
|
|
159
|
+
children: e
|
|
160
|
+
});
|
|
161
|
+
}, Be = "_listItem_1i7if_1", Me = { listItem: Be }, I = (e) => /* @__PURE__ */ d("li", {
|
|
162
|
+
className: Me.listItem,
|
|
163
|
+
children: [e.label && /* @__PURE__ */ r(K, {
|
|
164
|
+
label: e.label,
|
|
165
|
+
Icon: e.Icon,
|
|
166
|
+
highlighting: e.highlighting
|
|
167
|
+
}), /* @__PURE__ */ r(Oe, {
|
|
168
|
+
valueAsString: e.valueAsString,
|
|
169
|
+
highlighting: e.highlighting
|
|
170
|
+
})]
|
|
171
|
+
}), Pe = (e) => oe(e), U = ({ label: e, value: n, depth: t, keyPath: o }) => {
|
|
172
|
+
const { getNodeHighlighting: l, emptyStringLabel: s } = p(), a = l?.(o);
|
|
173
|
+
return u(n) ? le(n) ? /* @__PURE__ */ r(I, {
|
|
174
|
+
label: e,
|
|
175
|
+
valueAsString: V(n) ? n : s,
|
|
176
|
+
Icon: Q,
|
|
177
|
+
highlighting: a
|
|
178
|
+
}) : se(n) ? /* @__PURE__ */ r(I, {
|
|
179
|
+
label: e,
|
|
180
|
+
valueAsString: String(n),
|
|
181
|
+
Icon: W,
|
|
182
|
+
highlighting: a
|
|
183
|
+
}) : ae(n) ? /* @__PURE__ */ r(I, {
|
|
184
|
+
label: e,
|
|
185
|
+
valueAsString: String(n),
|
|
186
|
+
Icon: re,
|
|
187
|
+
highlighting: a
|
|
188
|
+
}) : Pe(n) ? /* @__PURE__ */ r(ke, {
|
|
189
|
+
label: e,
|
|
190
|
+
value: n,
|
|
191
|
+
depth: t,
|
|
192
|
+
keyPath: o,
|
|
193
|
+
highlighting: a
|
|
194
|
+
}) : /* @__PURE__ */ r(Se, {
|
|
195
|
+
label: e,
|
|
196
|
+
value: n,
|
|
197
|
+
depth: t,
|
|
198
|
+
keyPath: o,
|
|
199
|
+
highlighting: a
|
|
200
|
+
}) : /* @__PURE__ */ r(I, {
|
|
201
|
+
label: e,
|
|
202
|
+
valueAsString: "null",
|
|
203
|
+
Icon: Y,
|
|
204
|
+
highlighting: a
|
|
205
|
+
});
|
|
206
|
+
}, ze = "_container_d0cqx_1", Fe = "_labelContainer_d0cqx_6", De = "_elementsCount_d0cqx_12", Ge = "_elementsCountRed_d0cqx_16", He = "_panel_d0cqx_20", Ke = "_list_d0cqx_30", Ue = "_nested_d0cqx_37", v = {
|
|
207
|
+
container: ze,
|
|
208
|
+
labelContainer: Fe,
|
|
209
|
+
elementsCount: De,
|
|
210
|
+
elementsCountRed: Ge,
|
|
211
|
+
panel: He,
|
|
212
|
+
list: Ke,
|
|
213
|
+
nested: Ue
|
|
214
|
+
}, R = ({ label: e, Icon: n, elements: t, renderElementsCount: o, emptyElementsText: l, depth: s, keyPath: a, highlighting: i }) => {
|
|
215
|
+
const { shouldExpandNodeInitially: b } = p(), C = !u(e), [_, m] = ue(b({
|
|
216
|
+
keyPath: a,
|
|
217
|
+
depth: s
|
|
218
|
+
})), g = /* @__PURE__ */ r("ul", {
|
|
219
|
+
className: c(v.list, s > 0 && v.nested),
|
|
220
|
+
children: t.length === 0 ? /* @__PURE__ */ r(I, {
|
|
221
|
+
valueAsString: l,
|
|
222
|
+
highlighting: void 0
|
|
223
|
+
}) : t.map(({ id: h, label: f, value: w }) => {
|
|
224
|
+
const y = V(a) ? `${a}.${h}` : String(h);
|
|
225
|
+
return /* @__PURE__ */ r(U, {
|
|
226
|
+
label: f,
|
|
227
|
+
value: w,
|
|
228
|
+
depth: s + 1,
|
|
229
|
+
keyPath: y
|
|
230
|
+
}, h);
|
|
231
|
+
})
|
|
232
|
+
}), N = () => {
|
|
233
|
+
m(!_);
|
|
234
|
+
};
|
|
235
|
+
return C ? /* @__PURE__ */ r("li", {
|
|
236
|
+
className: v.container,
|
|
237
|
+
children: g
|
|
238
|
+
}) : /* @__PURE__ */ d(P.Root, {
|
|
239
|
+
className: v.container,
|
|
240
|
+
open: _,
|
|
241
|
+
render: /* @__PURE__ */ r("li", {}),
|
|
242
|
+
children: [/* @__PURE__ */ d("div", {
|
|
243
|
+
className: v.labelContainer,
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ r(Te, {
|
|
246
|
+
isOpen: _,
|
|
247
|
+
onClick: N,
|
|
248
|
+
variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ r(K, {
|
|
251
|
+
label: e,
|
|
252
|
+
Icon: n,
|
|
253
|
+
highlighting: i === "red" ? i : void 0
|
|
254
|
+
}),
|
|
255
|
+
o && /* @__PURE__ */ r("span", {
|
|
256
|
+
className: c(v.elementsCount, i === "red" && v.elementsCountRed),
|
|
257
|
+
children: o(t.length)
|
|
258
|
+
})
|
|
259
|
+
]
|
|
260
|
+
}), /* @__PURE__ */ r(P.Panel, {
|
|
261
|
+
className: v.panel,
|
|
262
|
+
children: g
|
|
263
|
+
})]
|
|
264
|
+
});
|
|
265
|
+
}, Xe = ({ value: e, children: n }) => /* @__PURE__ */ r(H.Provider, {
|
|
266
|
+
value: e,
|
|
267
|
+
children: n
|
|
268
|
+
}), Qe = ({ depth: e }) => e <= 1, hr = ({ value: e, entries: n, shouldExpandNodeInitially: t = Qe, ...o }) => /* @__PURE__ */ r(Xe, {
|
|
269
|
+
value: {
|
|
270
|
+
...o,
|
|
271
|
+
shouldExpandNodeInitially: t
|
|
272
|
+
},
|
|
273
|
+
children: /* @__PURE__ */ r(we, {
|
|
274
|
+
depth: 0,
|
|
275
|
+
children: u(n) ? /* @__PURE__ */ r(R, {
|
|
276
|
+
elements: n,
|
|
277
|
+
Icon: D,
|
|
278
|
+
depth: 0,
|
|
279
|
+
keyPath: "",
|
|
280
|
+
emptyElementsText: o.emptyObjectLabel
|
|
281
|
+
}) : /* @__PURE__ */ r(U, {
|
|
282
|
+
value: e ?? null,
|
|
283
|
+
depth: 0,
|
|
284
|
+
keyPath: ""
|
|
285
|
+
})
|
|
286
|
+
})
|
|
287
|
+
}), We = "_row_1hj4l_1", Ye = "_label_1hj4l_11", Ze = "_icon_1hj4l_20", q = {
|
|
288
|
+
row: We,
|
|
289
|
+
label: Ye,
|
|
290
|
+
icon: Ze
|
|
291
|
+
}, pr = ({ children: e, startIcon: n, value: t, progress: o, progressColor: l, progressValueText: s, render: a, ref: i, className: b, ...C }) => {
|
|
292
|
+
const _ = me(), m = s ?? t;
|
|
293
|
+
return T({
|
|
294
|
+
render: a,
|
|
295
|
+
ref: i,
|
|
296
|
+
props: {
|
|
297
|
+
...C,
|
|
298
|
+
className: c(q.row, b),
|
|
299
|
+
children: /* @__PURE__ */ d(k, { children: [/* @__PURE__ */ d("div", {
|
|
300
|
+
className: q.label,
|
|
301
|
+
children: [u(n) && /* @__PURE__ */ r("span", {
|
|
302
|
+
className: q.icon,
|
|
303
|
+
"aria-hidden": "true",
|
|
304
|
+
children: n
|
|
305
|
+
}), /* @__PURE__ */ r("span", {
|
|
306
|
+
id: _,
|
|
307
|
+
children: e
|
|
308
|
+
})]
|
|
309
|
+
}), u(o) ? /* @__PURE__ */ r(te, {
|
|
310
|
+
value: o,
|
|
311
|
+
size: "sm",
|
|
312
|
+
barColor: l,
|
|
313
|
+
"aria-labelledby": _,
|
|
314
|
+
...V(m) ? { "aria-valuetext": m } : {},
|
|
315
|
+
children: t
|
|
316
|
+
}) : /* @__PURE__ */ r("span", { children: t })] })
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}, er = "_root_7l8sk_1", rr = "_stackedIcon_7l8sk_14", F = {
|
|
320
|
+
root: er,
|
|
321
|
+
stackedIcon: rr
|
|
322
|
+
}, br = ({ icon: e, stackedIcon: n, className: t, render: o, ref: l, ...s }) => T({
|
|
323
|
+
render: o,
|
|
324
|
+
ref: l,
|
|
325
|
+
props: {
|
|
326
|
+
...s,
|
|
327
|
+
className: c(F.root, t),
|
|
328
|
+
children: /* @__PURE__ */ d(k, { children: [/* @__PURE__ */ r("span", {
|
|
329
|
+
"aria-hidden": "true",
|
|
330
|
+
children: e
|
|
331
|
+
}), /* @__PURE__ */ r("span", {
|
|
332
|
+
"aria-hidden": "true",
|
|
333
|
+
className: F.stackedIcon,
|
|
334
|
+
children: n
|
|
335
|
+
})] })
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
export {
|
|
339
|
+
_r as a,
|
|
340
|
+
vr as i,
|
|
341
|
+
pr as n,
|
|
342
|
+
hr as r,
|
|
343
|
+
br as t
|
|
344
|
+
};
|