twenty-ui 2.47.0 → 2.49.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/README.md +27 -2
- package/dist/{AllIcons-DrlkKKQf.cjs → AllIcons-Cyd7721G.cjs} +1 -1
- package/dist/{AllIcons-G3nKeM41.js → AllIcons-D132B8_i.js} +1 -1
- package/dist/Avatar-C6WxBgjS.cjs +1 -0
- package/dist/{Avatar-D-QA0RE5.js → Avatar-ifVlxbx_.js} +18 -17
- package/dist/{Button-Cs07psdD.js → Button-DIw804CX.js} +1 -1
- package/dist/{Button-COxEKIHL.cjs → Button-DTm1WDzp.cjs} +1 -1
- package/dist/Dropdown-1OAJvS1f.js +1000 -0
- package/dist/Dropdown-Bl4OXCf9.cjs +1 -0
- package/dist/{ListItem-CXu35dzp.js → ListItem-DizNUBT8.js} +4 -4
- package/dist/{ListItem-q6DHGlev.cjs → ListItem-DwBb-I1D.cjs} +1 -1
- package/dist/ListItem.module-BJ9Ttjrc.js +34 -0
- package/dist/ListItem.module-CO4u2oeF.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-BmUROIah.js +90 -0
- package/dist/OverflowingTextWithTooltip-Z2daM0_x.cjs +1 -0
- package/dist/{ProgressBar-D_3Gia0E.js → ProgressBar-B3xACTV2.js} +1 -1
- package/dist/{ProgressBar-oF1qVHFx.cjs → ProgressBar-OpSMnDBz.cjs} +1 -1
- package/dist/{Radio-BMoQHDe7.js → Radio-BEAztmPu.js} +1 -1
- package/dist/{Radio-D_YUizSv.cjs → Radio-Dx6b4SYZ.cjs} +1 -1
- package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
- package/dist/{ResizeHandle-Bjg4R0c-.js → ResizeHandle-B30OYZxS.js} +57 -55
- package/dist/Shortcut-Bp9iDdQg.js +73 -0
- package/dist/Shortcut-N8TELGPI.cjs +1 -0
- package/dist/TabsTabContent-Co27Y2TU.cjs +1 -0
- package/dist/TabsTabContent-DVcObDp6.js +39 -0
- package/dist/{TintedIconTile-4BGa8g8n.js → TintedIconTile-B1XDtGrF.js} +1 -1
- package/dist/{TintedIconTile-CU2hCerq.cjs → TintedIconTile-DO1XJXCQ.cjs} +1 -1
- package/dist/Tooltip-Bg9Uk01p.cjs +1 -0
- package/dist/Tooltip-cLCgtFBF.js +124 -0
- package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/__stories__/ControlledCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ModelCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ResizableCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ThemedCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/UnmountingCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorAutoHeightEffect.d.ts +9 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLifecycleEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLoaderConfigurationEffect.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorMarkersEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorResizableHeightEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorThemeEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/constants/CodeEditorDefaultHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/types/ResizedCodeEditorHeight.d.ts +4 -0
- package/dist/components/code-editor/CodeEditor/internal/useCodeEditorHeight.d.ts +13 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/defineCodeEditorDefaultTheme.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getBaseCodeEditorTheme.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/utils/getBoundedCodeEditorHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getCurrentCodeEditorHeight.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getResizableCodeEditorHeight.d.ts +5 -0
- package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +4 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +268 -155
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +2 -2
- package/dist/components/feedback/Toast/internal/components/ToastCountdownEffect.d.ts +4 -3
- package/dist/components/feedback/Toast/internal/components/ToastProviderLifecycleEffect.d.ts +3 -0
- package/dist/components/feedback/Toast/internal/constants/DefaultToastDuration.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/contexts/ToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/contexts/ToastTimingContext.d.ts +12 -2
- package/dist/components/feedback/Toast/internal/hooks/useToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/hooks/useToastCountdown.d.ts +26 -0
- package/dist/components/feedback/Toast/internal/stores/createToastStore.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/utils/assertValidToastLimit.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/completeToastExit.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/createToastCountdownStore.d.ts +22 -0
- package/dist/components/feedback/Toast/internal/utils/createToastLifecycle.d.ts +62 -0
- package/dist/components/feedback/Toast/internal/utils/dismissToasts.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/updateToastLimit.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleControls.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExampleProps.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts +9 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleUnrelatedNotificationActions.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterPortalExample.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderLayoutReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderPassiveReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderReplayExample.d.ts +6 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspenseExample.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspension.d.ts +5 -0
- package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +2 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
- package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
- package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
- package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
- package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
- package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
- package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
- package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
- package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
- package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
- package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
- package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
- package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
- package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
- package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
- package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
- package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
- package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
- package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
- package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -3
- package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
- package/dist/components/input/SegmentedControl/types/SegmentedControlSize.d.ts +1 -0
- package/dist/components/input/index.d.ts +11 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +13 -13
- package/dist/components/layout/OverflowingList/OverflowingList.d.ts +1 -1
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListActionsExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListDisabledTriggerFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListInstanceCleanupExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +8 -2
- package/dist/components/layout/OverflowingList/internal/OverflowingListItemFocusEffect.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListLayoutEffect.d.ts +16 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListPopupTarget.d.ts +10 -0
- package/dist/components/layout/OverflowingList/internal/focusOverflowingListFallback.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
- package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +9 -0
- package/dist/components/layout/OverflowingList/internal/types/OverflowingListLayout.d.ts +4 -0
- package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -1
- package/dist/components/layout/OverflowingList/internal/useOverflowingListFocus.d.ts +30 -0
- package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +6 -6
- package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +5 -4
- package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +12 -6
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRowFocus.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRowsEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownRows.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearch.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTabStopRowId.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +2 -1
- package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownRow.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isEnabledDropdownItem.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +0 -1
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +1 -6
- package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
- package/dist/components/navigation/index.d.ts +5 -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 +22 -22
- package/dist/data-display-BSKGlijb.cjs +1 -0
- package/dist/{data-display-DU3G8ZyI.js → data-display-BtXCGOGw.js} +82 -81
- package/dist/data-display-DtXIhJ4B.js +184 -0
- package/dist/data-display-XV3ht1rC.cjs +2 -0
- package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
- package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
- package/dist/feedback-Cs-38OH4.cjs +1 -0
- package/dist/feedback-DTyVVcTb.js +665 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +7 -7
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-JuDK6Wxr.cjs → icon-BNcdwwdl.cjs} +1 -1
- package/dist/{icon-BdXwnJA6.js → icon-CUE-QGQK.js} +129 -128
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +77 -76
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +222 -220
- package/dist/{input-Bnu5kNjg.cjs → input-B_rBplmn.cjs} +1 -1
- package/dist/input-BrjD91wv.js +785 -0
- package/dist/input-ChlFcqIS.cjs +1 -0
- package/dist/{input-vl6yK36n.js → input-D1oyk0tD.js} +4 -4
- package/dist/layout-CthYckvl.cjs +1 -0
- package/dist/layout-DQcjBu08.js +439 -0
- package/dist/{navigation-itBinyPi.js → navigation-B6nka3bW.js} +127 -130
- package/dist/navigation-CIVYqPc5.js +132 -0
- package/dist/navigation-CflGBYv-.cjs +1 -0
- package/dist/navigation-DoInK0Sp.cjs +1 -0
- package/dist/preventDismissingClickActivation-AaqHBLnW.js +45 -0
- package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +1 -0
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +2 -2
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +1 -1
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/OverflowingTextTooltipModeProvider.d.ts +6 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/OverflowingTextTooltipModeContext.d.ts +2 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/isElementOverflowing.d.ts +1 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextTooltipMode.d.ts +1 -0
- package/dist/primitives/typography/Shortcut/Shortcut.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +1 -0
- package/dist/primitives/typography/index.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +10 -9
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +37 -36
- package/dist/{settings-CC-2gcAx.js → settings-BgVuLpg9.js} +1 -1
- package/dist/{settings-BiSAY2oN.cjs → settings-CPXhrmbK.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-0rL5DoHt.cjs +1 -0
- package/dist/{surfaces-DZ2A-Nb9.js → surfaces-BLsR5ka0.js} +54 -54
- package/dist/testing/GroupedCatalog.d.ts +14 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +96 -66
- package/dist/typography-DT2eKLvd.js +11 -0
- package/dist/typography-bKeSMuJd.cjs +1 -0
- package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
- package/dist/useIsMobile-D1ImfQnE.js +38 -0
- package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
- package/dist/utilities-BKCMZyqZ.js +53 -0
- package/dist/utilities-xZh8D2gd.cjs +1 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +3 -3
- package/package.json +3 -3
- package/dist/Avatar-CQhIEazb.cjs +0 -1
- package/dist/Dropdown-BBUGkQQV.cjs +0 -1
- package/dist/Dropdown-CScN_olN.js +0 -784
- package/dist/ListItem.module-Ar-vZ7Qu.js +0 -34
- package/dist/ListItem.module-B8NeDH1P.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-Be2-wCcZ.js +0 -88
- package/dist/OverflowingTextWithTooltip-BlufG-6n.cjs +0 -1
- package/dist/ResizeHandle-CNlQ4TEE.cjs +0 -1
- package/dist/Shortcut-DKfB0kej.js +0 -71
- package/dist/Shortcut-ZuZ-KYSk.cjs +0 -1
- package/dist/TabsTabContent-DZUNi_iE.cjs +0 -1
- package/dist/TabsTabContent-s6J5bZ3R.js +0 -39
- package/dist/Tooltip-BMkznyoi.js +0 -120
- package/dist/Tooltip-JOYVeSsf.cjs +0 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +0 -5
- package/dist/data-display-BMV-nC-9.js +0 -181
- package/dist/data-display-BkujQe5v.cjs +0 -1
- package/dist/data-display-DjhAHvj1.cjs +0 -2
- package/dist/feedback-B5x8tmnG.cjs +0 -1
- package/dist/feedback-DhilJ_fX.js +0 -509
- package/dist/input-BEKjAOjS.cjs +0 -1
- package/dist/input-BUgnp6eA.js +0 -559
- package/dist/layout-BKHabkTu.js +0 -267
- package/dist/layout-wuIu4rJ3.cjs +0 -1
- package/dist/navigation-B1hPNYv2.cjs +0 -1
- package/dist/navigation-Dg46Wr5m.js +0 -131
- package/dist/navigation-WsiYsmaq.cjs +0 -1
- package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
- package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
- package/dist/surfaces-vyAhk2Gw.cjs +0 -1
- package/dist/typography-8DF9mq2w.cjs +0 -1
- package/dist/typography-DmY7-GzQ.js +0 -5
- package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
- package/dist/useIsMobile-nrufFzMb.js +0 -37
- package/dist/utilities-BeLfNQ0Q.cjs +0 -1
- package/dist/utilities-CEi9I09B.js +0 -52
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var _ = "_root_xrjjl_1", r = "_solid_xrjjl_23", o = "_outline_xrjjl_27", e = "_soft_xrjjl_31", a = "_sm_xrjjl_36", s = "_md_xrjjl_41", v = "_square_xrjjl_47", n = "_round_xrjjl_52", t = "_accent_xrjjl_58", c = "_success_xrjjl_64", i = "_warning_xrjjl_70", l = "_hoverable_xrjjl_76", j = "_indicator_xrjjl_128", d = "_check_xrjjl_149", x = "_minus_xrjjl_150", y = {
|
|
2
|
-
root: _,
|
|
3
|
-
solid: r,
|
|
4
|
-
outline: o,
|
|
5
|
-
soft: e,
|
|
6
|
-
sm: a,
|
|
7
|
-
md: s,
|
|
8
|
-
square: v,
|
|
9
|
-
round: n,
|
|
10
|
-
accent: t,
|
|
11
|
-
success: c,
|
|
12
|
-
warning: i,
|
|
13
|
-
hoverable: l,
|
|
14
|
-
indicator: j,
|
|
15
|
-
check: d,
|
|
16
|
-
minus: x
|
|
17
|
-
}, u = "_root_1vsoe_2", m = "_submenuIcon_1vsoe_53", h = "_startIcon_1vsoe_57", I = "_endIcon_1vsoe_58", b = "_label_1vsoe_74", k = "_text_1vsoe_84", p = "_description_1vsoe_92", f = "_inlineDescription_1vsoe_100", D = "_endDescription_1vsoe_105", g = "_hotkeys_1vsoe_110", q = "_actions_1vsoe_116", w = "_checkIndicator_1vsoe_133", C = {
|
|
18
|
-
root: u,
|
|
19
|
-
submenuIcon: m,
|
|
20
|
-
startIcon: h,
|
|
21
|
-
endIcon: I,
|
|
22
|
-
label: b,
|
|
23
|
-
text: k,
|
|
24
|
-
description: p,
|
|
25
|
-
inlineDescription: f,
|
|
26
|
-
endDescription: D,
|
|
27
|
-
hotkeys: g,
|
|
28
|
-
actions: q,
|
|
29
|
-
checkIndicator: w
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
y as n,
|
|
33
|
-
C as t
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _="_root_xrjjl_1",r="_solid_xrjjl_23",e="_outline_xrjjl_27",o="_soft_xrjjl_31",a="_sm_xrjjl_36",t="_md_xrjjl_41",n="_square_xrjjl_47",s="_round_xrjjl_52",v="_accent_xrjjl_58",c="_success_xrjjl_64",i="_warning_xrjjl_70",l="_hoverable_xrjjl_76",j="_indicator_xrjjl_128",u="_check_xrjjl_149",d="_minus_xrjjl_150",x={root:_,solid:r,outline:e,soft:o,sm:a,md:t,square:n,round:s,accent:v,success:c,warning:i,hoverable:l,indicator:j,check:u,minus:d},m="_root_1vsoe_2",b="_submenuIcon_1vsoe_53",f="_startIcon_1vsoe_57",h="_endIcon_1vsoe_58",I="_label_1vsoe_74",k="_text_1vsoe_84",p="_description_1vsoe_92",g="_inlineDescription_1vsoe_100",y="_endDescription_1vsoe_105",D="_hotkeys_1vsoe_110",q="_actions_1vsoe_116",w="_checkIndicator_1vsoe_133",C={root:m,submenuIcon:b,startIcon:f,endIcon:h,label:I,text:k,description:p,inlineDescription:g,endDescription:y,hotkeys:D,actions:q,checkIndicator:w};Object.defineProperty(exports,"Checkbox_module_default",{enumerable:!0,get:function(){return x}});Object.defineProperty(exports,"ListItem_module_default",{enumerable:!0,get:function(){return C}});
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { t as s } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { n as H, t as l } from "./Tooltip-BMkznyoi.js";
|
|
3
|
-
import { useRender as S } from "@base-ui/react/use-render";
|
|
4
|
-
import { isNonEmptyString as M } from "@sniptt/guards";
|
|
5
|
-
import { clsx as W } from "clsx";
|
|
6
|
-
import { memo as B, useRef as F, useState as P } from "react";
|
|
7
|
-
import { jsx as o, jsxs as q } from "react/jsx-runtime";
|
|
8
|
-
import { mergeProps as z } from "@base-ui/react/merge-props";
|
|
9
|
-
import { useMergedRefs as A } from "@base-ui/utils/useMergedRefs";
|
|
10
|
-
var G = "_truncate_1x6ii_1", J = "_lineClamp_1x6ii_7", R = {
|
|
11
|
-
truncate: G,
|
|
12
|
-
lineClamp: J
|
|
13
|
-
}, K = ({ render: v, truncate: i, lineClamp: t, className: f, style: r, ref: a, ...u }) => {
|
|
14
|
-
const c = s(t) && Number.isInteger(t) && t > 0;
|
|
15
|
-
return S({
|
|
16
|
-
render: v,
|
|
17
|
-
ref: a,
|
|
18
|
-
props: {
|
|
19
|
-
...u,
|
|
20
|
-
className: W(i && R.truncate, c && R.lineClamp, f),
|
|
21
|
-
style: c ? {
|
|
22
|
-
...r,
|
|
23
|
-
"--text-line-clamp": t
|
|
24
|
-
} : r
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}, L = "_overflowingMultilineText_14o0a_1", Q = "_overflowingText_14o0a_20", U = "_multilineTooltip_14o0a_37", d = {
|
|
28
|
-
overflowingMultilineText: L,
|
|
29
|
-
overflowingText: Q,
|
|
30
|
-
multilineTooltip: U
|
|
31
|
-
}, re = B(function({ text: i, isTooltipMultiline: t, truncate: f, lineClamp: r, tooltipContent: a, tooltipDelay: u = 500, tooltipPlace: c = "bottom", alwaysShowTooltip: g = !1, isFocusable: b = !1, render: N, ref: C, className: E, ...I }) {
|
|
32
|
-
const p = F(null), k = A(p, C), [T, y] = P(!1), [D, x] = P(!1), h = () => {
|
|
33
|
-
const e = p.current, n = s(e) && (e.scrollHeight > e.clientHeight || e.scrollWidth > e.clientWidth);
|
|
34
|
-
return y(n), n;
|
|
35
|
-
}, _ = (e) => {
|
|
36
|
-
if (!e) {
|
|
37
|
-
x(!1);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
x(h() || g);
|
|
41
|
-
}, j = (e) => {
|
|
42
|
-
e.stopPropagation(), e.preventDefault();
|
|
43
|
-
}, m = M(a) ? a : M(i) ? i : null, O = s(r);
|
|
44
|
-
return /* @__PURE__ */ q(l.Root, {
|
|
45
|
-
open: D && s(m),
|
|
46
|
-
onOpenChange: (...e) => {
|
|
47
|
-
const [n, w] = e;
|
|
48
|
-
if (!n && w.reason === "trigger-hover" && p.current?.contains(document.activeElement)) {
|
|
49
|
-
w.cancel();
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
_(n);
|
|
53
|
-
},
|
|
54
|
-
disabled: !s(m) || !T && !g,
|
|
55
|
-
children: [/* @__PURE__ */ o(l.Trigger, {
|
|
56
|
-
delay: u,
|
|
57
|
-
closeOnClick: !1,
|
|
58
|
-
render: /* @__PURE__ */ o(K, {
|
|
59
|
-
...O ? { lineClamp: r } : { truncate: f ?? !0 },
|
|
60
|
-
dir: "auto",
|
|
61
|
-
"data-content-overflowing": T ? "" : void 0,
|
|
62
|
-
className: W(O ? d.overflowingMultilineText : d.overflowingText, E),
|
|
63
|
-
render: N,
|
|
64
|
-
ref: k,
|
|
65
|
-
...z({
|
|
66
|
-
tabIndex: b ? 0 : void 0,
|
|
67
|
-
onPointerEnter: h,
|
|
68
|
-
onFocus: () => _(!0)
|
|
69
|
-
}, I),
|
|
70
|
-
children: i
|
|
71
|
-
})
|
|
72
|
-
}), /* @__PURE__ */ o(l.Portal, { children: /* @__PURE__ */ o(l.Positioner, {
|
|
73
|
-
sideOffset: 5,
|
|
74
|
-
side: c,
|
|
75
|
-
positionMethod: "absolute",
|
|
76
|
-
style: { maxWidth: "300px" },
|
|
77
|
-
children: /* @__PURE__ */ o(l.Popup, {
|
|
78
|
-
className: t ? d.multilineTooltip : void 0,
|
|
79
|
-
onClick: j,
|
|
80
|
-
children: /* @__PURE__ */ o(H, { children: m })
|
|
81
|
-
})
|
|
82
|
-
}) })]
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
K as n,
|
|
87
|
-
re as t
|
|
88
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=require("./isDefined-DS2Q42p5.cjs"),r=require("./Tooltip-JOYVeSsf.cjs");let k=require("@base-ui/react/use-render"),q=require("@sniptt/guards"),D=require("clsx"),c=require("react"),t=require("react/jsx-runtime"),H=require("@base-ui/react/merge-props"),B=require("@base-ui/utils/useMergedRefs");var F="_truncate_1x6ii_1",z="_lineClamp_1x6ii_7",j={truncate:F,lineClamp:z},P=({render:T,truncate:o,lineClamp:i,className:d,style:n,ref:u,...f})=>{const a=s.isDefined(i)&&Number.isInteger(i)&&i>0;return(0,k.useRender)({render:T,ref:u,props:{...f,className:(0,D.clsx)(o&&j.truncate,a&&j.lineClamp,d),style:a?{...n,"--text-line-clamp":i}:n}})},A="_overflowingMultilineText_14o0a_1",G="_overflowingText_14o0a_20",J="_multilineTooltip_14o0a_37",g={overflowingMultilineText:A,overflowingText:G,multilineTooltip:J},K=(0,c.memo)(function({text:o,isTooltipMultiline:i,truncate:d,lineClamp:n,tooltipContent:u,tooltipDelay:f=500,tooltipPlace:a="bottom",alwaysShowTooltip:x=!1,isFocusable:M=!1,render:R,ref:W,className:y,...N}){const p=(0,c.useRef)(null),E=(0,B.useMergedRefs)(p,W),[v,C]=(0,c.useState)(!1),[I,m]=(0,c.useState)(!1),h=()=>{const e=p.current,l=s.isDefined(e)&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth);return C(l),l},O=e=>{if(!e){m(!1);return}m(h()||x)},S=e=>{e.stopPropagation(),e.preventDefault()},_=(0,q.isNonEmptyString)(u)?u:(0,q.isNonEmptyString)(o)?o:null,w=s.isDefined(n);return(0,t.jsxs)(r.Tooltip.Root,{open:I&&s.isDefined(_),onOpenChange:(...e)=>{const[l,b]=e;if(!l&&b.reason==="trigger-hover"&&p.current?.contains(document.activeElement)){b.cancel();return}O(l)},disabled:!s.isDefined(_)||!v&&!x,children:[(0,t.jsx)(r.Tooltip.Trigger,{delay:f,closeOnClick:!1,render:(0,t.jsx)(P,{...w?{lineClamp:n}:{truncate:d??!0},dir:"auto","data-content-overflowing":v?"":void 0,className:(0,D.clsx)(w?g.overflowingMultilineText:g.overflowingText,y),render:R,ref:E,...(0,H.mergeProps)({tabIndex:M?0:void 0,onPointerEnter:h,onFocus:()=>O(!0)},N),children:o})}),(0,t.jsx)(r.Tooltip.Portal,{children:(0,t.jsx)(r.Tooltip.Positioner,{sideOffset:5,side:a,positionMethod:"absolute",style:{maxWidth:"300px"},children:(0,t.jsx)(r.Tooltip.Popup,{className:i?g.multilineTooltip:void 0,onClick:S,children:(0,t.jsx)(r.TooltipBody,{children:_})})})})]})});Object.defineProperty(exports,"OverflowingTextWithTooltip",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return P}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const u=require("./isDefined-DS2Q42p5.cjs");let T=require("@base-ui/react/use-render"),A=require("@sniptt/guards"),M=require("clsx"),k=require("react"),N=require("react/jsx-runtime"),U=require("@base-ui/react/merge-props"),j=require("@base-ui/react/direction-provider"),F=require("@base-ui/utils/useStableCallback"),X=require("@base-ui/utils/useControlled"),q=require("@base-ui/utils/clamp");var m={value:150,min:50,max:500,step:10,dragThreshold:0,edgeDragThreshold:5},Y={left:{axis:"x",direction:"reverse"},right:{axis:"x",direction:"normal"},top:{axis:"y",direction:"reverse"},bottom:{axis:"y",direction:"normal"}},Z=({axis:d,isReversed:R,value:i,onValueChange:h,onValueCommitted:w,onResizeStart:z,onResizeEnd:I,onActivate:g,scale:P,dragThreshold:b,min:_,max:D,disabled:l})=>{const n=(0,k.useRef)(null),c=(0,k.useRef)(!1),s=(0,F.useStableCallback)(e=>{const r=n.current;if(!u.isDefined(r)||(n.current=null,r.removeEscapeKeyListener(),c.current=e||r.hasStarted,r.target.hasPointerCapture?.(r.pointerId)&&r.target.releasePointerCapture?.(r.pointerId),!r.hasStarted))return;const o=e?(0,q.clamp)(r.startValue,_,D):r.currentValue;e&&h(o),e||w?.(o),I?.({cancelled:e,value:o})});(0,k.useEffect)(()=>()=>{s(!0)},[s]);const f=e=>{e.preventDefault()},C=e=>{if(l||e.defaultPrevented||e.button!==0||u.isDefined(n.current))return;const r=(0,A.isFunction)(P)?P():P,o=Number.isFinite(r)&&r>0?r:1,p=e.currentTarget.ownerDocument?.defaultView,a=K=>{K.key==="Escape"&&(K.preventDefault(),K.stopPropagation(),s(!0))};e.currentTarget.setPointerCapture?.(e.pointerId),p?.addEventListener("keydown",a,!0),c.current=!1,n.current={pointerId:e.pointerId,target:e.currentTarget,axis:d,startPosition:d==="y"?e.clientY:e.clientX,startValue:i,currentValue:i,multiplier:(R?-1:1)/o,threshold:Math.max(0,b),hasStarted:!1,removeEscapeKeyListener:()=>p?.removeEventListener("keydown",a,!0)}},x=e=>{const r=n.current;if(e.defaultPrevented||!u.isDefined(r)||r.pointerId!==e.pointerId)return;if(l){s(!0);return}const o=(r.axis==="y"?e.clientY:e.clientX)-r.startPosition,p=Math.abs(o)>r.threshold;if(!r.hasStarted&&!p)return;const a=(0,q.clamp)(r.startValue+o*r.multiplier,_,D);r.hasStarted&&a===r.currentValue||(r.currentValue=a,r.hasStarted||(r.hasStarted=!0,z?.(a)),h(a))},t=e=>{n.current?.pointerId===e.pointerId&&(x(e),s(l||e.defaultPrevented))},E=e=>{n.current?.pointerId===e.pointerId&&s(!0)};return{onMouseDown:f,onPointerDown:C,onPointerMove:x,onPointerUp:t,onPointerCancel:E,onLostPointerCapture:E,onClick:e=>{const r=c.current&&e.detail>0;c.current=!1,!(l||e.defaultPrevented||r)&&g?.()},isPointerActive:()=>u.isDefined(n.current)}},G=({axis:d,direction:R,value:i,onValueChange:h,onValueCommitted:w,onResizeStart:z,onResizeEnd:I,onActivate:g,scale:P,dragThreshold:b,min:_,max:D,step:l,disabled:n})=>{const c=(0,j.useDirection)(),s=u.isDefined(R)?R==="reverse":d==="x"&&c==="rtl",{isPointerActive:f,...C}=Z({axis:d,isReversed:s,value:i,onValueChange:h,onValueCommitted:w,onResizeStart:z,onResizeEnd:I,onActivate:g,scale:P,dragThreshold:b,min:_,max:D,disabled:n});return{...C,onKeyDown:t=>{const E=t.altKey||t.ctrlKey||t.metaKey;if(t.defaultPrevented||n||E||f())return;if((t.key==="Enter"||t.key===" ")&&u.isDefined(g)){t.preventDefault(),t.stopPropagation(),t.repeat||g();return}const y=d==="y"?"ArrowDown":"ArrowRight",e=d==="y"?"ArrowUp":"ArrowLeft",r=s?e:y,o=s?y:e,p=new Map([[r,i+l],[o,i-l],["Home",_],["End",D]]).get(t.key);if(!u.isDefined(p))return;t.preventDefault(),t.stopPropagation();const a=(0,q.clamp)(p,_,D);a!==i&&(h(a),w?.(a))}}},O="_area_y24an_1",W="_bar_y24an_74",V={area:O,bar:W},B=({axis:d="y",direction:R,edge:i,placement:h=u.isDefined(i)?"edge":"inline",scale:w=1,dragThreshold:z=u.isDefined(i)?m.edgeDragThreshold:m.dragThreshold,value:I,defaultValue:g=m.value,onValueChange:P,onValueCommitted:b,onResizeStart:_,onResizeEnd:D,onActivate:l,min:n=m.min,max:c=m.max,step:s=m.step,disabled:f=!1,className:C,children:x=h==="gap"?null:(0,N.jsx)("div",{className:V.bar}),render:t,ref:E,...y})=>{const e=u.isDefined(i)?Y[i]:void 0,r=e?.axis??d,o=e?.direction??R,[p,a]=(0,k.useState)(!1),[K,H]=(0,X.useControlled)({controlled:I,default:g,name:"ResizeHandle"}),v=(0,q.clamp)(K,n,c),L=G({axis:r,direction:o,scale:w,dragThreshold:z,onValueCommitted:b,onResizeStart:S=>{a(!0),_?.(S)},onResizeEnd:S=>{a(!1),D?.(S)},onActivate:l,value:v,onValueChange:S=>{H(S),P?.(S)},min:n,max:c,step:s,disabled:f});return(0,T.useRender)({render:t,ref:E,state:{axis:r,edge:i,placement:h,disabled:f,resizing:p},props:(0,U.mergeProps)(L,y,{role:"separator",tabIndex:f?-1:y.tabIndex??0,"aria-label":y["aria-label"]??"Resize","aria-orientation":r==="y"?"horizontal":"vertical","aria-valuemin":n,"aria-valuemax":c,"aria-valuenow":v,"aria-disabled":f||void 0,"aria-keyshortcuts":y["aria-keyshortcuts"]??(u.isDefined(l)&&!f?"Enter Space":void 0),className:(0,M.clsx)(V.area,C),children:x})})};Object.defineProperty(exports,"ResizeHandle",{enumerable:!0,get:function(){return B}});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { t as g } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { i as S, t as A } from "./useIsMobile-nrufFzMb.js";
|
|
3
|
-
import { isNonEmptyArray as v, isString as E } from "@sniptt/guards";
|
|
4
|
-
import { clsx as w } from "clsx";
|
|
5
|
-
import { Fragment as C } from "react";
|
|
6
|
-
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
7
|
-
var x = /* @__PURE__ */ new Map([
|
|
8
|
-
["⌘", "Command"],
|
|
9
|
-
["⌥", "Option"],
|
|
10
|
-
["⇧", "Shift"],
|
|
11
|
-
["⌃", "Control"],
|
|
12
|
-
["Ctrl", "Control"],
|
|
13
|
-
["⏎", "Enter"],
|
|
14
|
-
["↵", "Enter"],
|
|
15
|
-
["⌫", "Backspace"],
|
|
16
|
-
["↑", "Arrow up"],
|
|
17
|
-
["↓", "Arrow down"],
|
|
18
|
-
["←", "Arrow left"],
|
|
19
|
-
["→", "Arrow right"],
|
|
20
|
-
["esc", "Escape"]
|
|
21
|
-
]), y = (o) => o.every(E), j = ({ shortcut: o, platform: i, sequenceJoinLabel: l = "then", combinationSeparator: d }) => {
|
|
22
|
-
const e = S(), a = i === "mac" || !g(i) && (e === "mac" || e === "ios"), u = /* @__PURE__ */ new Map([
|
|
23
|
-
["Mod", a ? "⌘" : "Ctrl"],
|
|
24
|
-
["CommandOrControl", a ? "⌘" : "Ctrl"],
|
|
25
|
-
["Command", "⌘"],
|
|
26
|
-
["Control", "Ctrl"],
|
|
27
|
-
["Alt", a ? "⌥" : "Alt"],
|
|
28
|
-
["Enter", "⏎"]
|
|
29
|
-
]), n = (y(o) ? [o] : o).filter(v).map((r) => r.map((t) => u.get(t) ?? t)), c = d ?? (a ? "" : " "), m = ` ${l} `;
|
|
30
|
-
return {
|
|
31
|
-
groups: n,
|
|
32
|
-
separator: c,
|
|
33
|
-
sequenceJoinLabel: l,
|
|
34
|
-
text: n.map((r) => r.join(c)).join(m),
|
|
35
|
-
accessibleLabel: n.map((r) => r.map((t) => x.get(t) ?? t).join(" + ")).join(m)
|
|
36
|
-
};
|
|
37
|
-
}, k = "_root_1llux_1", M = "_content_1llux_28", L = "_combination_1llux_29", N = "_key_1llux_35", p = {
|
|
38
|
-
root: k,
|
|
39
|
-
content: M,
|
|
40
|
-
combination: L,
|
|
41
|
-
key: N
|
|
42
|
-
}, K = ({ shortcut: o, platform: i, sequenceJoinLabel: l, combinationSeparator: d, variant: e = "keys", visibility: a = "always", className: u, "aria-label": n, ...c }) => {
|
|
43
|
-
const m = A(), r = j({
|
|
44
|
-
shortcut: o,
|
|
45
|
-
platform: i,
|
|
46
|
-
sequenceJoinLabel: l,
|
|
47
|
-
combinationSeparator: d
|
|
48
|
-
});
|
|
49
|
-
return !v(r.groups) || a === "desktop" && m ? null : /* @__PURE__ */ s("span", {
|
|
50
|
-
...c,
|
|
51
|
-
className: w(p.root, u),
|
|
52
|
-
"data-variant": e,
|
|
53
|
-
role: "img",
|
|
54
|
-
"aria-label": n ?? r.accessibleLabel,
|
|
55
|
-
children: /* @__PURE__ */ s("span", {
|
|
56
|
-
className: p.content,
|
|
57
|
-
"aria-hidden": !0,
|
|
58
|
-
children: e !== "keys" ? r.text : r.groups.map((t, _) => /* @__PURE__ */ h(C, { children: [_ > 0 && /* @__PURE__ */ s("span", { children: ` ${r.sequenceJoinLabel} ` }), /* @__PURE__ */ s("span", {
|
|
59
|
-
className: p.combination,
|
|
60
|
-
children: t.map((f, b) => /* @__PURE__ */ h(C, { children: [b > 0 && r.separator, /* @__PURE__ */ s("kbd", {
|
|
61
|
-
className: p.key,
|
|
62
|
-
children: f
|
|
63
|
-
})] }, b))
|
|
64
|
-
})] }, _))
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
j as n,
|
|
70
|
-
K as t
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const S=require("./isDefined-DS2Q42p5.cjs"),j=require("./useIsMobile-DxOPI2_E.cjs");let _=require("@sniptt/guards"),v=require("clsx"),h=require("react"),n=require("react/jsx-runtime");var y=new Map([["⌘","Command"],["⌥","Option"],["⇧","Shift"],["⌃","Control"],["Ctrl","Control"],["⏎","Enter"],["↵","Enter"],["⌫","Backspace"],["↑","Arrow up"],["↓","Arrow down"],["←","Arrow left"],["→","Arrow right"],["esc","Escape"]]),f=r=>r.every(_.isString),x=({shortcut:r,platform:i,sequenceJoinLabel:l="then",combinationSeparator:p})=>{const o=j.getUserDevice(),a=i==="mac"||!S.isDefined(i)&&(o==="mac"||o==="ios"),d=new Map([["Mod",a?"⌘":"Ctrl"],["CommandOrControl",a?"⌘":"Ctrl"],["Command","⌘"],["Control","Ctrl"],["Alt",a?"⌥":"Alt"],["Enter","⏎"]]),s=(f(r)?[r]:r).filter(_.isNonEmptyArray).map(e=>e.map(t=>d.get(t)??t)),c=p??(a?"":" "),u=` ${l} `;return{groups:s,separator:c,sequenceJoinLabel:l,text:s.map(e=>e.join(c)).join(u),accessibleLabel:s.map(e=>e.map(t=>y.get(t)??t).join(" + ")).join(u)}},A="_root_1llux_1",E="_content_1llux_28",q="_combination_1llux_29",w="_key_1llux_35",m={root:A,content:E,combination:q,key:w},M=({shortcut:r,platform:i,sequenceJoinLabel:l,combinationSeparator:p,variant:o="keys",visibility:a="always",className:d,"aria-label":s,...c})=>{const u=j.useIsMobile(),e=x({shortcut:r,platform:i,sequenceJoinLabel:l,combinationSeparator:p});return!(0,_.isNonEmptyArray)(e.groups)||a==="desktop"&&u?null:(0,n.jsx)("span",{...c,className:(0,v.clsx)(m.root,d),"data-variant":o,role:"img","aria-label":s??e.accessibleLabel,children:(0,n.jsx)("span",{className:m.content,"aria-hidden":!0,children:o!=="keys"?e.text:e.groups.map((t,b)=>(0,n.jsxs)(h.Fragment,{children:[b>0&&(0,n.jsx)("span",{children:` ${e.sequenceJoinLabel} `}),(0,n.jsx)("span",{className:m.combination,children:t.map((C,g)=>(0,n.jsxs)(h.Fragment,{children:[g>0&&e.separator,(0,n.jsx)("kbd",{className:m.key,children:C})]},g))})]},b))})})};Object.defineProperty(exports,"Shortcut",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"getShortcutPresentation",{enumerable:!0,get:function(){return x}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r=require("./isRenderableSlot-Guryb6Nf.cjs");let a=require("react/jsx-runtime");var _="_root_ub2oy_1",o="_list_ub2oy_10",b="_tab_ub2oy_37",u="_content_ub2oy_89",i="_label_ub2oy_108",c="_startIcon_ub2oy_114",d="_badge_ub2oy_115",v="_panel_ub2oy_130",y="_indicator_ub2oy_139",e={root:_,list:o,tab:b,content:u,label:i,startIcon:c,badge:d,panel:v,indicator:y},m=({children:s,startIcon:t,endIcon:n,badge:l})=>(0,a.jsxs)("span",{className:e.content,children:[r.isRenderableSlot(t)&&(0,a.jsx)("span",{className:e.startIcon,"aria-hidden":!0,children:t}),(0,a.jsx)("span",{className:e.label,children:s}),r.isRenderableSlot(n)&&(0,a.jsx)("span",{className:e.startIcon,"aria-hidden":!0,children:n}),r.isRenderableSlot(l)&&(0,a.jsx)("span",{className:e.badge,children:l})]});Object.defineProperty(exports,"Tab_module_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"TabsTabContent",{enumerable:!0,get:function(){return m}});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { t } from "./isRenderableSlot-DT_depzM.js";
|
|
2
|
-
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
var l = "_root_ub2oy_1", b = "_list_ub2oy_10", i = "_tab_ub2oy_37", c = "_content_ub2oy_89", d = "_label_ub2oy_108", u = "_startIcon_ub2oy_114", v = "_badge_ub2oy_115", m = "_panel_ub2oy_130", p = "_indicator_ub2oy_139", a = {
|
|
4
|
-
root: l,
|
|
5
|
-
list: b,
|
|
6
|
-
tab: i,
|
|
7
|
-
content: c,
|
|
8
|
-
label: d,
|
|
9
|
-
startIcon: u,
|
|
10
|
-
badge: v,
|
|
11
|
-
panel: m,
|
|
12
|
-
indicator: p
|
|
13
|
-
}, N = ({ children: s, startIcon: e, endIcon: _, badge: o }) => /* @__PURE__ */ n("span", {
|
|
14
|
-
className: a.content,
|
|
15
|
-
children: [
|
|
16
|
-
t(e) && /* @__PURE__ */ r("span", {
|
|
17
|
-
className: a.startIcon,
|
|
18
|
-
"aria-hidden": !0,
|
|
19
|
-
children: e
|
|
20
|
-
}),
|
|
21
|
-
/* @__PURE__ */ r("span", {
|
|
22
|
-
className: a.label,
|
|
23
|
-
children: s
|
|
24
|
-
}),
|
|
25
|
-
t(_) && /* @__PURE__ */ r("span", {
|
|
26
|
-
className: a.startIcon,
|
|
27
|
-
"aria-hidden": !0,
|
|
28
|
-
children: _
|
|
29
|
-
}),
|
|
30
|
-
t(o) && /* @__PURE__ */ r("span", {
|
|
31
|
-
className: a.badge,
|
|
32
|
-
children: o
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
a as n,
|
|
38
|
-
N as t
|
|
39
|
-
};
|
package/dist/Tooltip-BMkznyoi.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { t as ir } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as er } from "./theme-B2EaXhye.js";
|
|
3
|
-
import { t as c } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
|
-
import { t as s } from "./isRenderableSlot-DT_depzM.js";
|
|
5
|
-
import { t as ar } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
6
|
-
import { isFunction as T, isNumber as tr, isString as sr } from "@sniptt/guards";
|
|
7
|
-
import { Fragment as h, jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
8
|
-
import { Tooltip as e } from "@base-ui/react/tooltip";
|
|
9
|
-
var nr = "_positioner_w2bea_1", pr = "_popup_w2bea_5", lr = "_content_w2bea_47", dr = "_title_w2bea_53", cr = "_icon_w2bea_65", mr = "_description_w2bea_75", _r = "_arrow_w2bea_81", n = {
|
|
10
|
-
positioner: nr,
|
|
11
|
-
popup: pr,
|
|
12
|
-
content: lr,
|
|
13
|
-
title: dr,
|
|
14
|
-
icon: cr,
|
|
15
|
-
description: mr,
|
|
16
|
-
arrow: _r
|
|
17
|
-
}, w = ({ className: r, ...i }) => /* @__PURE__ */ o(e.Arrow, {
|
|
18
|
-
...i,
|
|
19
|
-
className: c(n.arrow, r)
|
|
20
|
-
}), vr = ({ children: r, description: i, startIcon: a }) => /* @__PURE__ */ p("div", {
|
|
21
|
-
className: n.content,
|
|
22
|
-
children: [s(r) && /* @__PURE__ */ p("div", {
|
|
23
|
-
className: n.title,
|
|
24
|
-
children: [s(a) && /* @__PURE__ */ o("span", {
|
|
25
|
-
className: n.icon,
|
|
26
|
-
"aria-hidden": !0,
|
|
27
|
-
children: a
|
|
28
|
-
}), /* @__PURE__ */ o("span", { children: r })]
|
|
29
|
-
}), s(i) && /* @__PURE__ */ o("div", {
|
|
30
|
-
className: n.description,
|
|
31
|
-
children: i
|
|
32
|
-
})]
|
|
33
|
-
}), f = ({ className: r, withExitAnimation: i = !1, ...a }) => /* @__PURE__ */ o(e.Popup, {
|
|
34
|
-
role: "tooltip",
|
|
35
|
-
"data-with-exit-animation": i || void 0,
|
|
36
|
-
...a,
|
|
37
|
-
className: c(n.popup, r)
|
|
38
|
-
}), b = ({ container: r, ...i }) => {
|
|
39
|
-
const a = er();
|
|
40
|
-
return /* @__PURE__ */ o(e.Portal, {
|
|
41
|
-
...i,
|
|
42
|
-
container: r ?? a ?? void 0
|
|
43
|
-
});
|
|
44
|
-
}, g = ({ className: r, ...i }) => {
|
|
45
|
-
const a = ar();
|
|
46
|
-
return /* @__PURE__ */ o(e.Positioner, {
|
|
47
|
-
dir: a,
|
|
48
|
-
...i,
|
|
49
|
-
className: c(n.positioner, r)
|
|
50
|
-
});
|
|
51
|
-
}, ur = 10, Tr = "300px", hr = ({ content: r, children: i, description: a, startIcon: m, open: _, defaultOpen: P, onOpenChange: N, onOpenChangeComplete: D, disabled: x = !1, disableHoverablePopup: A, trackCursorAxis: F, actionsRef: H, handle: E, triggerId: R, defaultTriggerId: S, delay: j, closeDelay: y, closeOnClick: L, side: O = "top", align: U = "center", sideOffset: V = ur, alignOffset: B, anchor: C, positionMethod: M, collisionBoundary: W, collisionPadding: X, collisionAvoidance: $, sticky: k, arrowPadding: q, disableAnchorTracking: z, arrow: G = !1, maxWidth: I = Tr, container: J, keepMounted: K, triggerProps: Q, positionerProps: Y, portalProps: Z, ...rr }) => {
|
|
52
|
-
const l = s(a), d = x || !T(r) && !s(r) && !l, v = /* @__PURE__ */ o(e.Trigger, {
|
|
53
|
-
render: i,
|
|
54
|
-
delay: j,
|
|
55
|
-
closeDelay: y,
|
|
56
|
-
closeOnClick: L,
|
|
57
|
-
...Q
|
|
58
|
-
}), u = (t) => {
|
|
59
|
-
if (!(s(t) || l)) return /* @__PURE__ */ o(h, { children: v });
|
|
60
|
-
const or = sr(t) || tr(t) || l || s(m);
|
|
61
|
-
return /* @__PURE__ */ p(h, { children: [v, /* @__PURE__ */ o(b, {
|
|
62
|
-
container: J,
|
|
63
|
-
keepMounted: K,
|
|
64
|
-
...Z,
|
|
65
|
-
children: /* @__PURE__ */ o(g, {
|
|
66
|
-
side: O,
|
|
67
|
-
align: U,
|
|
68
|
-
sideOffset: V,
|
|
69
|
-
alignOffset: B,
|
|
70
|
-
anchor: C,
|
|
71
|
-
positionMethod: M,
|
|
72
|
-
collisionBoundary: W,
|
|
73
|
-
collisionPadding: X,
|
|
74
|
-
collisionAvoidance: $,
|
|
75
|
-
sticky: k,
|
|
76
|
-
arrowPadding: q,
|
|
77
|
-
disableAnchorTracking: z,
|
|
78
|
-
style: { maxWidth: I },
|
|
79
|
-
...Y,
|
|
80
|
-
children: /* @__PURE__ */ p(f, {
|
|
81
|
-
...rr,
|
|
82
|
-
children: [or ? /* @__PURE__ */ o(vr, {
|
|
83
|
-
description: a,
|
|
84
|
-
startIcon: m,
|
|
85
|
-
children: t
|
|
86
|
-
}) : t, G && /* @__PURE__ */ o(w, {})]
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
})] });
|
|
90
|
-
};
|
|
91
|
-
return /* @__PURE__ */ o(e.Root, {
|
|
92
|
-
open: ir(_) ? _ && !d : void 0,
|
|
93
|
-
defaultOpen: P && !d,
|
|
94
|
-
onOpenChange: N,
|
|
95
|
-
onOpenChangeComplete: D,
|
|
96
|
-
disabled: d,
|
|
97
|
-
disableHoverablePopup: A,
|
|
98
|
-
trackCursorAxis: F,
|
|
99
|
-
actionsRef: H,
|
|
100
|
-
handle: E,
|
|
101
|
-
triggerId: R,
|
|
102
|
-
defaultTriggerId: S,
|
|
103
|
-
children: T(r) ? (t) => u(r(t)) : u(r)
|
|
104
|
-
});
|
|
105
|
-
}, Ar = Object.assign(hr, {
|
|
106
|
-
Root: e.Root,
|
|
107
|
-
Trigger: e.Trigger,
|
|
108
|
-
Portal: b,
|
|
109
|
-
Positioner: g,
|
|
110
|
-
Popup: f,
|
|
111
|
-
Arrow: w,
|
|
112
|
-
Viewport: e.Viewport,
|
|
113
|
-
Provider: e.Provider,
|
|
114
|
-
Handle: e.Handle,
|
|
115
|
-
createHandle: e.createHandle
|
|
116
|
-
});
|
|
117
|
-
export {
|
|
118
|
-
vr as n,
|
|
119
|
-
Ar as t
|
|
120
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const re=require("./theme-1XkFz8Qu.cjs"),ie=require("./isDefined-DS2Q42p5.cjs"),c=require("./mergeClassNames-D4lshrT6.cjs"),a=require("./isRenderableSlot-Guryb6Nf.cjs"),oe=require("./useProvidedTextDirection-PVaoQCLH.cjs");let n=require("@sniptt/guards"),e=require("react/jsx-runtime"),o=require("@base-ui/react/tooltip");var te="_positioner_w2bea_1",se="_popup_w2bea_5",ae="_content_w2bea_47",le="_title_w2bea_53",ne="_icon_w2bea_65",pe="_description_w2bea_75",de="_arrow_w2bea_81",l={positioner:te,popup:se,content:ae,title:le,icon:ne,description:pe,arrow:de},b=({className:r,...i})=>(0,e.jsx)(o.Tooltip.Arrow,{...i,className:c.mergeClassNames(l.arrow,r)}),x=({children:r,description:i,startIcon:t})=>(0,e.jsxs)("div",{className:l.content,children:[a.isRenderableSlot(r)&&(0,e.jsxs)("div",{className:l.title,children:[a.isRenderableSlot(t)&&(0,e.jsx)("span",{className:l.icon,"aria-hidden":!0,children:t}),(0,e.jsx)("span",{children:r})]}),a.isRenderableSlot(i)&&(0,e.jsx)("div",{className:l.description,children:i})]}),v=({className:r,withExitAnimation:i=!1,...t})=>(0,e.jsx)(o.Tooltip.Popup,{role:"tooltip","data-with-exit-animation":i||void 0,...t,className:c.mergeClassNames(l.popup,r)}),j=({container:r,...i})=>{const t=re.useThemeContainer();return(0,e.jsx)(o.Tooltip.Portal,{...i,container:r??t??void 0})},g=({className:r,...i})=>{const t=oe.useProvidedTextDirection();return(0,e.jsx)(o.Tooltip.Positioner,{dir:t,...i,className:c.mergeClassNames(l.positioner,r)})},ce=10,ue="300px",_e=({content:r,children:i,description:t,startIcon:u,open:_,defaultOpen:h,onOpenChange:w,onOpenChangeComplete:P,disabled:q=!1,disableHoverablePopup:f,trackCursorAxis:N,actionsRef:R,handle:S,triggerId:D,defaultTriggerId:F,delay:y,closeDelay:A,closeOnClick:H,side:O="top",align:C="center",sideOffset:E=ce,alignOffset:L,anchor:B,positionMethod:U,collisionBoundary:V,collisionPadding:M,collisionAvoidance:W,sticky:X,arrowPadding:k,disableAnchorTracking:z,arrow:G=!1,maxWidth:I=ue,container:J,keepMounted:K,triggerProps:Q,positionerProps:Y,portalProps:Z,...$})=>{const p=a.isRenderableSlot(t),d=q||!(0,n.isFunction)(r)&&!a.isRenderableSlot(r)&&!p,T=(0,e.jsx)(o.Tooltip.Trigger,{render:i,delay:y,closeDelay:A,closeOnClick:H,...Q}),m=s=>{if(!(a.isRenderableSlot(s)||p))return(0,e.jsx)(e.Fragment,{children:T});const ee=(0,n.isString)(s)||(0,n.isNumber)(s)||p||a.isRenderableSlot(u);return(0,e.jsxs)(e.Fragment,{children:[T,(0,e.jsx)(j,{container:J,keepMounted:K,...Z,children:(0,e.jsx)(g,{side:O,align:C,sideOffset:E,alignOffset:L,anchor:B,positionMethod:U,collisionBoundary:V,collisionPadding:M,collisionAvoidance:W,sticky:X,arrowPadding:k,disableAnchorTracking:z,style:{maxWidth:I},...Y,children:(0,e.jsxs)(v,{...$,children:[ee?(0,e.jsx)(x,{description:t,startIcon:u,children:s}):s,G&&(0,e.jsx)(b,{})]})})})]})};return(0,e.jsx)(o.Tooltip.Root,{open:ie.isDefined(_)?_&&!d:void 0,defaultOpen:h&&!d,onOpenChange:w,onOpenChangeComplete:P,disabled:d,disableHoverablePopup:f,trackCursorAxis:N,actionsRef:R,handle:S,triggerId:D,defaultTriggerId:F,children:(0,n.isFunction)(r)?s=>m(r(s)):m(r)})},Te=Object.assign(_e,{Root:o.Tooltip.Root,Trigger:o.Tooltip.Trigger,Portal:j,Positioner:g,Popup:v,Arrow:b,Viewport:o.Tooltip.Viewport,Provider:o.Tooltip.Provider,Handle:o.Tooltip.Handle,createHandle:o.Tooltip.createHandle});Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return Te}});Object.defineProperty(exports,"TooltipBody",{enumerable:!0,get:function(){return x}});
|
|
@@ -1,181 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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}});
|
|
@@ -1,2 +0,0 @@
|
|
|
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}});
|