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
package/dist/layout-BKHabkTu.js
DELETED
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { t as h } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { n as se, t as ae } from "./OverflowingTextWithTooltip-Be2-wCcZ.js";
|
|
3
|
-
import { t as M } from "./Popover-CWeCV7X9.js";
|
|
4
|
-
import { t as oe } from "./Heading-pXllCJCO.js";
|
|
5
|
-
import { useRender as j } from "@base-ui/react/use-render";
|
|
6
|
-
import { isNonEmptyString as ne, isString as K } from "@sniptt/guards";
|
|
7
|
-
import { clsx as T } from "clsx";
|
|
8
|
-
import { useCallback as ee, useId as ie, useLayoutEffect as J, useRef as z, useState as W } from "react";
|
|
9
|
-
import { Fragment as te, jsx as l, jsxs as V } from "react/jsx-runtime";
|
|
10
|
-
import { useMergedRefs as Q } from "@base-ui/utils/useMergedRefs";
|
|
11
|
-
var le = "_container_1hm4x_1", ce = "_layer_1hm4x_9", de = "_visible_1hm4x_23", ue = "_hidden_1hm4x_28", I = {
|
|
12
|
-
container: le,
|
|
13
|
-
layer: ce,
|
|
14
|
-
visible: de,
|
|
15
|
-
hidden: ue
|
|
16
|
-
}, Ve = ({ isActive: t, activeIcon: e, inactiveIcon: r, className: a, render: s, ref: o, ...n }) => j({
|
|
17
|
-
defaultTagName: "span",
|
|
18
|
-
render: s,
|
|
19
|
-
ref: o,
|
|
20
|
-
props: {
|
|
21
|
-
...n,
|
|
22
|
-
className: T(I.container, a),
|
|
23
|
-
children: /* @__PURE__ */ V(te, { children: [/* @__PURE__ */ l("span", {
|
|
24
|
-
"aria-hidden": "true",
|
|
25
|
-
className: T(I.layer, t ? I.hidden : I.visible),
|
|
26
|
-
children: r
|
|
27
|
-
}), /* @__PURE__ */ l("span", {
|
|
28
|
-
"aria-hidden": "true",
|
|
29
|
-
className: T(I.layer, t ? I.visible : I.hidden),
|
|
30
|
-
children: e
|
|
31
|
-
})] })
|
|
32
|
-
}
|
|
33
|
-
}), me = "_root_1yq9n_1", fe = "_items_1yq9n_11", ve = "_item_1yq9n_11", he = "_trigger_1yq9n_45", pe = "_popup_1yq9n_72", H = {
|
|
34
|
-
root: me,
|
|
35
|
-
items: fe,
|
|
36
|
-
item: ve,
|
|
37
|
-
trigger: he,
|
|
38
|
-
popup: pe
|
|
39
|
-
}, re = (t) => ee((e) => {
|
|
40
|
-
if (h(e))
|
|
41
|
-
return () => {
|
|
42
|
-
e.contains(e.ownerDocument.activeElement) && t();
|
|
43
|
-
};
|
|
44
|
-
}, [t]), _e = ({ children: t, isHidden: e, isLastVisible: r, onFocusedItemUnmount: a }) => /* @__PURE__ */ l("div", {
|
|
45
|
-
ref: re(a),
|
|
46
|
-
className: H.item,
|
|
47
|
-
"data-hidden": e || void 0,
|
|
48
|
-
"data-last-visible": r || void 0,
|
|
49
|
-
"aria-hidden": e || void 0,
|
|
50
|
-
inert: e,
|
|
51
|
-
children: t
|
|
52
|
-
}), X = ({ itemWidths: t, availableWidth: e, gap: r, includePartialItem: a }) => {
|
|
53
|
-
let s = 0, o = 0;
|
|
54
|
-
for (const n of t) {
|
|
55
|
-
const c = s + n + (o > 0 ? r : 0);
|
|
56
|
-
if (o !== 0 && c > e) {
|
|
57
|
-
const p = s + r < e;
|
|
58
|
-
return a && p ? o + 1 : o;
|
|
59
|
-
}
|
|
60
|
-
s = c, o += 1;
|
|
61
|
-
}
|
|
62
|
-
return o;
|
|
63
|
-
}, ge = ({ items: t, itemElements: e, supportsSynchronousLayout: r }) => {
|
|
64
|
-
if (!r) return e.map((s) => s.scrollWidth);
|
|
65
|
-
t.setAttribute("data-measuring", "");
|
|
66
|
-
const a = e.map((s) => s.clientWidth);
|
|
67
|
-
return t.removeAttribute("data-measuring"), a;
|
|
68
|
-
}, be = 100, ye = ({ itemCount: t, inlineItemCount: e, reserveCountSpace: r, isMeasurementEnabled: a }) => {
|
|
69
|
-
const s = z(null), o = z(null), n = z(null), c = z(void 0), p = z({
|
|
70
|
-
itemCount: t,
|
|
71
|
-
reserveCountSpace: r
|
|
72
|
-
}), [x, F] = W(e), [w, y] = W(t > e);
|
|
73
|
-
return J(() => {
|
|
74
|
-
p.current = {
|
|
75
|
-
itemCount: t,
|
|
76
|
-
reserveCountSpace: r
|
|
77
|
-
}, c.current?.();
|
|
78
|
-
}, [
|
|
79
|
-
t,
|
|
80
|
-
e,
|
|
81
|
-
r
|
|
82
|
-
]), J(() => {
|
|
83
|
-
const u = s.current, d = o.current;
|
|
84
|
-
if (!a || !h(u) || !h(d)) return;
|
|
85
|
-
const m = h(globalThis.ResizeObserver), R = /* @__PURE__ */ new Set(), f = () => {
|
|
86
|
-
const b = Array.from(d.children), N = /* @__PURE__ */ new Set([u, ...b]);
|
|
87
|
-
h(n.current) && N.add(n.current);
|
|
88
|
-
for (const v of R) N.has(v) || (_?.unobserve(v), R.delete(v));
|
|
89
|
-
for (const v of N) R.has(v) || (_?.observe(v), R.add(v));
|
|
90
|
-
const L = p.current, O = ge({
|
|
91
|
-
items: d,
|
|
92
|
-
itemElements: b,
|
|
93
|
-
supportsSynchronousLayout: m
|
|
94
|
-
}), C = parseFloat(getComputedStyle(d).columnGap) || 0, S = u.clientWidth, q = X({
|
|
95
|
-
itemWidths: O,
|
|
96
|
-
availableWidth: S,
|
|
97
|
-
gap: C,
|
|
98
|
-
includePartialItem: !1
|
|
99
|
-
}), P = L.itemCount > q, U = n.current?.offsetWidth ?? 0, $ = L.reserveCountSpace && P ? Math.max(0, S - U - C) : S;
|
|
100
|
-
y(P), F(X({
|
|
101
|
-
itemWidths: O,
|
|
102
|
-
availableWidth: $,
|
|
103
|
-
gap: C,
|
|
104
|
-
includePartialItem: !0
|
|
105
|
-
}));
|
|
106
|
-
}, _ = m ? new ResizeObserver(f) : void 0;
|
|
107
|
-
c.current = f, f();
|
|
108
|
-
const g = new MutationObserver(f);
|
|
109
|
-
if (g.observe(d, {
|
|
110
|
-
attributes: !0,
|
|
111
|
-
attributeFilter: [
|
|
112
|
-
"class",
|
|
113
|
-
"style",
|
|
114
|
-
"hidden"
|
|
115
|
-
],
|
|
116
|
-
characterData: !0,
|
|
117
|
-
childList: !0,
|
|
118
|
-
subtree: !0
|
|
119
|
-
}), g.observe(u, { childList: !0 }), !h(_)) {
|
|
120
|
-
const b = setInterval(f, be);
|
|
121
|
-
return window.addEventListener("resize", f), () => {
|
|
122
|
-
c.current = void 0, clearInterval(b), g.disconnect(), window.removeEventListener("resize", f);
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return () => {
|
|
126
|
-
c.current = void 0, g.disconnect(), _.disconnect();
|
|
127
|
-
};
|
|
128
|
-
}, [a]), {
|
|
129
|
-
containerRef: s,
|
|
130
|
-
itemsRef: o,
|
|
131
|
-
triggerRef: n,
|
|
132
|
-
visibleItemCount: x,
|
|
133
|
-
hasOverflow: w
|
|
134
|
-
};
|
|
135
|
-
}, A = (t) => t.stopPropagation(), Y = {
|
|
136
|
-
onClick: A,
|
|
137
|
-
onMouseDown: A,
|
|
138
|
-
onPointerDown: A,
|
|
139
|
-
onKeyDown: A,
|
|
140
|
-
onKeyUp: A
|
|
141
|
-
}, qe = ({ children: t, showOverflowCount: e, maxInlineCount: r, overflowLabel: a = "Show all items", className: s, onMouseEnter: o, onMouseLeave: n, onFocusCapture: c, onBlurCapture: p, ref: x, ...F }) => {
|
|
142
|
-
const [w, y] = W(!1), [u, d] = W(!1), [m, R] = W(!1), [f, _] = W(), g = e ?? f ?? (w || u || m), b = h(r) && Number.isFinite(r) ? Math.min(t.length, Math.max(0, Math.floor(r))) : t.length, N = e ?? (w || u || m), { containerRef: L, itemsRef: O, triggerRef: C, visibleItemCount: S, hasOverflow: q } = ye({
|
|
143
|
-
itemCount: t.length,
|
|
144
|
-
inlineItemCount: b,
|
|
145
|
-
reserveCountSpace: g,
|
|
146
|
-
isMeasurementEnabled: N
|
|
147
|
-
}), P = ee(() => {
|
|
148
|
-
d(!1), _(void 0);
|
|
149
|
-
}, []), U = re(P), $ = Q(L, x), v = Q(C, U), B = N ? S : b, G = t.length - S, k = q && (m || e !== !1);
|
|
150
|
-
return m && !k && R(!1), /* @__PURE__ */ l(M.Root, {
|
|
151
|
-
open: m && k,
|
|
152
|
-
onOpenChange: R,
|
|
153
|
-
children: /* @__PURE__ */ V("div", {
|
|
154
|
-
...F,
|
|
155
|
-
ref: $,
|
|
156
|
-
className: T(H.root, s),
|
|
157
|
-
onMouseEnter: (i) => {
|
|
158
|
-
y(!0), o?.(i);
|
|
159
|
-
},
|
|
160
|
-
onMouseLeave: (i) => {
|
|
161
|
-
y(!1), n?.(i);
|
|
162
|
-
},
|
|
163
|
-
onFocusCapture: (i) => {
|
|
164
|
-
d(!0), O.current?.contains(i.target) && _((E) => E ?? g), c?.(i);
|
|
165
|
-
},
|
|
166
|
-
onBlurCapture: (i) => {
|
|
167
|
-
d(i.currentTarget.contains(i.relatedTarget)), O.current?.contains(i.relatedTarget) || _(void 0), p?.(i);
|
|
168
|
-
},
|
|
169
|
-
children: [
|
|
170
|
-
/* @__PURE__ */ l("div", {
|
|
171
|
-
ref: O,
|
|
172
|
-
className: H.items,
|
|
173
|
-
children: t.slice(0, b).map((i, E) => /* @__PURE__ */ l(_e, {
|
|
174
|
-
isHidden: E >= B,
|
|
175
|
-
isLastVisible: e !== !1 && E === B - 1,
|
|
176
|
-
onFocusedItemUnmount: P,
|
|
177
|
-
children: i
|
|
178
|
-
}, i.key ?? E))
|
|
179
|
-
}),
|
|
180
|
-
k && /* @__PURE__ */ V(M.Trigger, {
|
|
181
|
-
ref: v,
|
|
182
|
-
type: "button",
|
|
183
|
-
className: H.trigger,
|
|
184
|
-
"data-visible": g || void 0,
|
|
185
|
-
"aria-label": `+${G} ${a}`,
|
|
186
|
-
...Y,
|
|
187
|
-
children: ["+", G]
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ l(M.Portal, { children: /* @__PURE__ */ l(M.Positioner, {
|
|
190
|
-
anchor: L,
|
|
191
|
-
align: "start",
|
|
192
|
-
sideOffset: -9,
|
|
193
|
-
alignOffset: -7,
|
|
194
|
-
children: /* @__PURE__ */ l(M.Popup, {
|
|
195
|
-
"aria-label": a,
|
|
196
|
-
className: H.popup,
|
|
197
|
-
"data-overflowing-list-popup": "",
|
|
198
|
-
...Y,
|
|
199
|
-
children: t
|
|
200
|
-
})
|
|
201
|
-
}) })
|
|
202
|
-
]
|
|
203
|
-
})
|
|
204
|
-
});
|
|
205
|
-
}, Re = "_header_1dz7y_1", Ie = "_titleRow_1dz7y_8", we = "_title_1dz7y_8", Ne = "_actions_1dz7y_21", Oe = "_description_1dz7y_27", D = {
|
|
206
|
-
header: Re,
|
|
207
|
-
titleRow: Ie,
|
|
208
|
-
title: we,
|
|
209
|
-
actions: Ne,
|
|
210
|
-
description: Oe
|
|
211
|
-
}, Se = ({ title: t, description: e, actions: r, level: a = 2, size: s = "md", color: o = "primary", descriptionLineClamp: n = 5, isDescriptionFocusable: c = !1, render: p, ref: x, className: F, ...w }) => {
|
|
212
|
-
const y = ie(), u = K(e) ? ne(e) : h(e) && e !== !1, d = K(e) && n !== !1, m = K(e) ? /* @__PURE__ */ l(se, {
|
|
213
|
-
style: { whiteSpace: "pre-wrap" },
|
|
214
|
-
children: e
|
|
215
|
-
}) : e;
|
|
216
|
-
return j({
|
|
217
|
-
render: p,
|
|
218
|
-
ref: x,
|
|
219
|
-
props: {
|
|
220
|
-
...w,
|
|
221
|
-
className: T(D.header, F),
|
|
222
|
-
children: /* @__PURE__ */ V(te, { children: [/* @__PURE__ */ V("div", {
|
|
223
|
-
className: D.titleRow,
|
|
224
|
-
children: [/* @__PURE__ */ l(oe, {
|
|
225
|
-
level: a,
|
|
226
|
-
size: s,
|
|
227
|
-
color: o,
|
|
228
|
-
className: D.title,
|
|
229
|
-
"aria-describedby": u ? y : void 0,
|
|
230
|
-
children: t
|
|
231
|
-
}), h(r) && /* @__PURE__ */ l("div", {
|
|
232
|
-
className: D.actions,
|
|
233
|
-
children: r
|
|
234
|
-
})]
|
|
235
|
-
}), u && /* @__PURE__ */ l("div", {
|
|
236
|
-
id: y,
|
|
237
|
-
className: D.description,
|
|
238
|
-
children: d ? /* @__PURE__ */ l(ae, {
|
|
239
|
-
text: e,
|
|
240
|
-
lineClamp: n,
|
|
241
|
-
isTooltipMultiline: !0,
|
|
242
|
-
isFocusable: c
|
|
243
|
-
}) : m
|
|
244
|
-
})] })
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
}, We = "_root_ztxxm_1", Te = "_fullWidth_ztxxm_20", Z = {
|
|
248
|
-
root: We,
|
|
249
|
-
fullWidth: Te
|
|
250
|
-
}, xe = ({ align: t = "left", color: e = "primary", fullWidth: r = !0, className: a, render: s, ref: o, ...n }) => j({
|
|
251
|
-
render: s,
|
|
252
|
-
ref: o,
|
|
253
|
-
props: {
|
|
254
|
-
...n,
|
|
255
|
-
"data-align": t,
|
|
256
|
-
"data-color": e,
|
|
257
|
-
className: T(Z.root, r && Z.fullWidth, a)
|
|
258
|
-
}
|
|
259
|
-
}), Ue = {
|
|
260
|
-
Root: xe,
|
|
261
|
-
Header: Se
|
|
262
|
-
};
|
|
263
|
-
export {
|
|
264
|
-
qe as n,
|
|
265
|
-
Ve as r,
|
|
266
|
-
Ue as t
|
|
267
|
-
};
|
package/dist/layout-wuIu4rJ3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const h=require("./isDefined-DS2Q42p5.cjs"),B=require("./OverflowingTextWithTooltip-BlufG-6n.cjs"),C=require("./Popover-CneCJTvD.cjs"),Z=require("./Heading-CTRYClCO.cjs");let U=require("@base-ui/react/use-render"),z=require("@sniptt/guards"),P=require("clsx"),o=require("react"),s=require("react/jsx-runtime"),G=require("@base-ui/utils/useMergedRefs");var ee="_container_1hm4x_1",te="_layer_1hm4x_9",re="_visible_1hm4x_23",se="_hidden_1hm4x_28",I={container:ee,layer:te,visible:re,hidden:se},ie=({isActive:t,activeIcon:e,inactiveIcon:r,className:n,render:i,ref:a,...c})=>(0,U.useRender)({defaultTagName:"span",render:i,ref:a,props:{...c,className:(0,P.clsx)(I.container,n),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:(0,P.clsx)(I.layer,t?I.hidden:I.visible),children:r}),(0,s.jsx)("span",{"aria-hidden":"true",className:(0,P.clsx)(I.layer,t?I.visible:I.hidden),children:e})]})}}),ne="_root_1yq9n_1",ae="_items_1yq9n_11",oe="_item_1yq9n_11",ce="_trigger_1yq9n_45",le="_popup_1yq9n_72",E={root:ne,items:ae,item:oe,trigger:ce,popup:le},Y=t=>(0,o.useCallback)(e=>{if(h.isDefined(e))return()=>{e.contains(e.ownerDocument.activeElement)&&t()}},[t]),ue=({children:t,isHidden:e,isLastVisible:r,onFocusedItemUnmount:n})=>(0,s.jsx)("div",{ref:Y(n),className:E.item,"data-hidden":e||void 0,"data-last-visible":r||void 0,"aria-hidden":e||void 0,inert:e,children:t}),J=({itemWidths:t,availableWidth:e,gap:r,includePartialItem:n})=>{let i=0,a=0;for(const c of t){const u=i+c+(a>0?r:0);if(a!==0&&u>e){const p=i+r<e;return n&&p?a+1:a}i=u,a+=1}return a},de=({items:t,itemElements:e,supportsSynchronousLayout:r})=>{if(!r)return e.map(i=>i.scrollWidth);t.setAttribute("data-measuring","");const n=e.map(i=>i.clientWidth);return t.removeAttribute("data-measuring"),n},fe=100,ve=({itemCount:t,inlineItemCount:e,reserveCountSpace:r,isMeasurementEnabled:n})=>{const i=(0,o.useRef)(null),a=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,o.useRef)(void 0),p=(0,o.useRef)({itemCount:t,reserveCountSpace:r}),[N,q]=(0,o.useState)(e),[S,y]=(0,o.useState)(t>e);return(0,o.useLayoutEffect)(()=>{p.current={itemCount:t,reserveCountSpace:r},u.current?.()},[t,e,r]),(0,o.useLayoutEffect)(()=>{const f=i.current,d=a.current;if(!n||!h.isDefined(f)||!h.isDefined(d))return;const v=h.isDefined(globalThis.ResizeObserver),R=new Set,m=()=>{const x=Array.from(d.children),O=new Set([f,...x]);h.isDefined(c.current)&&O.add(c.current);for(const _ of R)O.has(_)||(g?.unobserve(_),R.delete(_));for(const _ of O)R.has(_)||(g?.observe(_),R.add(_));const T=p.current,j=de({items:d,itemElements:x,supportsSynchronousLayout:v}),W=parseFloat(getComputedStyle(d).columnGap)||0,w=f.clientWidth,A=J({itemWidths:j,availableWidth:w,gap:W,includePartialItem:!1}),D=T.itemCount>A,H=c.current?.offsetWidth??0,V=T.reserveCountSpace&&D?Math.max(0,w-H-W):w;y(D),q(J({itemWidths:j,availableWidth:V,gap:W,includePartialItem:!0}))},g=v?new ResizeObserver(m):void 0;u.current=m,m();const b=new MutationObserver(m);if(b.observe(d,{attributes:!0,attributeFilter:["class","style","hidden"],characterData:!0,childList:!0,subtree:!0}),b.observe(f,{childList:!0}),!h.isDefined(g)){const x=setInterval(m,fe);return window.addEventListener("resize",m),()=>{u.current=void 0,clearInterval(x),b.disconnect(),window.removeEventListener("resize",m)}}return()=>{u.current=void 0,b.disconnect(),g.disconnect()}},[n]),{containerRef:i,itemsRef:a,triggerRef:c,visibleItemCount:N,hasOverflow:S}},F=t=>t.stopPropagation(),Q={onClick:F,onMouseDown:F,onPointerDown:F,onKeyDown:F,onKeyUp:F},me=({children:t,showOverflowCount:e,maxInlineCount:r,overflowLabel:n="Show all items",className:i,onMouseEnter:a,onMouseLeave:c,onFocusCapture:u,onBlurCapture:p,ref:N,...q})=>{const[S,y]=(0,o.useState)(!1),[f,d]=(0,o.useState)(!1),[v,R]=(0,o.useState)(!1),[m,g]=(0,o.useState)(),b=e??m??(S||f||v),x=h.isDefined(r)&&Number.isFinite(r)?Math.min(t.length,Math.max(0,Math.floor(r))):t.length,O=e??(S||f||v),{containerRef:T,itemsRef:j,triggerRef:W,visibleItemCount:w,hasOverflow:A}=ve({itemCount:t.length,inlineItemCount:x,reserveCountSpace:b,isMeasurementEnabled:O}),D=(0,o.useCallback)(()=>{d(!1),g(void 0)},[]),H=Y(D),V=(0,G.useMergedRefs)(T,N),_=(0,G.useMergedRefs)(W,H),K=O?w:x,$=t.length-w,k=A&&(v||e!==!1);return v&&!k&&R(!1),(0,s.jsx)(C.Popover.Root,{open:v&&k,onOpenChange:R,children:(0,s.jsxs)("div",{...q,ref:V,className:(0,P.clsx)(E.root,i),onMouseEnter:l=>{y(!0),a?.(l)},onMouseLeave:l=>{y(!1),c?.(l)},onFocusCapture:l=>{d(!0),j.current?.contains(l.target)&&g(L=>L??b),u?.(l)},onBlurCapture:l=>{d(l.currentTarget.contains(l.relatedTarget)),j.current?.contains(l.relatedTarget)||g(void 0),p?.(l)},children:[(0,s.jsx)("div",{ref:j,className:E.items,children:t.slice(0,x).map((l,L)=>(0,s.jsx)(ue,{isHidden:L>=K,isLastVisible:e!==!1&&L===K-1,onFocusedItemUnmount:D,children:l},l.key??L))}),k&&(0,s.jsxs)(C.Popover.Trigger,{ref:_,type:"button",className:E.trigger,"data-visible":b||void 0,"aria-label":`+${$} ${n}`,...Q,children:["+",$]}),(0,s.jsx)(C.Popover.Portal,{children:(0,s.jsx)(C.Popover.Positioner,{anchor:T,align:"start",sideOffset:-9,alignOffset:-7,children:(0,s.jsx)(C.Popover.Popup,{"aria-label":n,className:E.popup,"data-overflowing-list-popup":"",...Q,children:t})})})]})})},_e="_header_1dz7y_1",he="_titleRow_1dz7y_8",pe="_title_1dz7y_8",ge="_actions_1dz7y_21",be="_description_1dz7y_27",M={header:_e,titleRow:he,title:pe,actions:ge,description:be},xe=({title:t,description:e,actions:r,level:n=2,size:i="md",color:a="primary",descriptionLineClamp:c=5,isDescriptionFocusable:u=!1,render:p,ref:N,className:q,...S})=>{const y=(0,o.useId)(),f=(0,z.isString)(e)?(0,z.isNonEmptyString)(e):h.isDefined(e)&&e!==!1,d=(0,z.isString)(e)&&c!==!1,v=(0,z.isString)(e)?(0,s.jsx)(B.Text,{style:{whiteSpace:"pre-wrap"},children:e}):e;return(0,U.useRender)({render:p,ref:N,props:{...S,className:(0,P.clsx)(M.header,q),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:M.titleRow,children:[(0,s.jsx)(Z.Heading,{level:n,size:i,color:a,className:M.title,"aria-describedby":f?y:void 0,children:t}),h.isDefined(r)&&(0,s.jsx)("div",{className:M.actions,children:r})]}),f&&(0,s.jsx)("div",{id:y,className:M.description,children:d?(0,s.jsx)(B.OverflowingTextWithTooltip,{text:e,lineClamp:c,isTooltipMultiline:!0,isFocusable:u}):v})]})}})},ye="_root_ztxxm_1",Re="_fullWidth_ztxxm_20",X={root:ye,fullWidth:Re},Ie=({align:t="left",color:e="primary",fullWidth:r=!0,className:n,render:i,ref:a,...c})=>(0,U.useRender)({render:i,ref:a,props:{...c,"data-align":t,"data-color":e,className:(0,P.clsx)(X.root,r&&X.fullWidth,n)}}),Se={Root:Ie,Header:xe};Object.defineProperty(exports,"AnimatedIconCrossfade",{enumerable:!0,get:function(){return ie}});Object.defineProperty(exports,"OverflowingList",{enumerable:!0,get:function(){return me}});Object.defineProperty(exports,"Section",{enumerable:!0,get:function(){return Se}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const g=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),Z=require("./mergeClassNames-D4lshrT6.cjs"),ee=require("./TintedIconTile-CU2hCerq.cjs"),te=require("./Shortcut-ZuZ-KYSk.cjs"),N=require("./Button-COxEKIHL.cjs"),ne=require("./Tooltip-JOYVeSsf.cjs"),w=require("./OverflowingTextWithTooltip-BlufG-6n.cjs"),re=require("./ListItem-q6DHGlev.cjs"),ae=require("./Dropdown-BBUGkQQV.cjs"),ie=require("./Avatar-CQhIEazb.cjs"),oe=require("./handleClickableElementKeyDown-CByqtBhO.cjs"),P=require("./TabsTabContent-DZUNi_iE.cjs");let j=require("@sniptt/guards"),f=require("clsx"),k=require("react"),e=require("react/jsx-runtime"),se=require("@base-ui/react/button"),C=require("@tabler/icons-react");var ue=()=>{const{pageId:n,goToPage:a,goBack:r,canGoBack:s}=ae.useDropdownContext();return{page:n,goToPage:t=>a({id:t}),goBack:r,canGoBack:s}},le=({color:n,selected:a,focused:r,indicator:s,startIcon:t,endIcon:o,description:l,descriptionPlacement:u,shortcut:d,shortcutJoinLabel:i,hasSubmenu:m,disabled:c=!1,type:v="button",children:I,...x})=>(0,e.jsx)(re.ListItem,{color:n,selected:a,focused:r,indicator:s,startIcon:t,endIcon:o,description:l,descriptionPlacement:u,shortcut:d,shortcutJoinLabel:i,hasSubmenu:m,disabled:c,render:(0,e.jsx)(se.Button,{...x,nativeButton:!0,type:v,disabled:c}),children:I}),de={gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"},ce="_iconContainer_1ivx0_1",me="_withBackground_1ivx0_9",O={iconContainer:ce,withBackground:me},M=({children:n,className:a,hasBackground:r=!0})=>(0,e.jsx)("div",{className:(0,f.clsx)(O.iconContainer,r&&O.withBackground,a),children:n}),E=({Icon:n,iconThemeColor:a,withContainer:r=!1,withContainerBackground:s=!0})=>{const t=g.useTheme();if(!n)return null;if(_.isDefined(a))return(0,e.jsx)(ee.TintedIconTile,{icon:(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm}),color:a,style:{width:t.icon.size.md,height:t.icon.size.md}});const o=(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm});return r?(0,e.jsx)(M,{hasBackground:s,children:o}):o},ve="_iconSwapContainer_g9ywp_1",_e="_defaultIcon_g9ywp_8",fe="_hoverIcon_g9ywp_13",L={iconSwapContainer:ve,defaultIcon:_e,hoverIcon:fe},he=({leadingContent:n,withIconContainer:a=!1,withIconContainerBackground:r=!0,gripIconColor:s})=>{const t=g.useTheme();if(!_.isDefined(n))return null;const o=(0,e.jsxs)("div",{className:L.iconSwapContainer,children:[(0,e.jsx)("div",{className:(0,f.clsx)(L.defaultIcon,"grip-swap-default-icon"),children:n}),(0,e.jsx)("div",{className:(0,f.clsx)(L.hoverIcon,"grip-swap-hover-icon"),children:(0,e.jsx)(C.IconGripVertical,{size:t.icon.size.md,stroke:t.icon.stroke.sm,color:s})})]});return a?(0,e.jsx)(M,{hasBackground:r,children:o}):o},Ie="_hoverableMenuItemBase_1jkew_54",ge="_menuItemBase_1jkew_1",be="_menuItemLabel_1jkew_136",xe="_menuItemLabelLight_1jkew_145",je="_noIconFiller_1jkew_155",ye="_menuItemLeftContent_1jkew_159",pe="_menuItemRightContent_1jkew_172",Ce="_draggableItem_1jkew_183",Me="_menuItemIconCheckContainer_1jkew_189",ke="_menuItemContextualText_1jkew_196",Se="_rightMenuItemContextualText_1jkew_206",h={hoverableMenuItemBase:Ie,menuItemBase:ge,menuItemLabel:be,menuItemLabelLight:xe,noIconFiller:je,menuItemLeftContent:ye,menuItemRightContent:pe,draggableItem:Ce,menuItemIconCheckContainer:Me,menuItemContextualText:ke,rightMenuItemContextualText:Se},we=(0,k.forwardRef)(({accent:n,isKeySelected:a,isHoverBackgroundDisabled:r,hovered:s,disabled:t,focused:o,className:l,children:u,...d},i)=>(0,e.jsx)("div",{ref:i,className:(0,f.clsx)(h.menuItemBase,l),"data-accent":n,"data-key-selected":a||void 0,"data-hover-background-disabled":r||void 0,"data-disabled":t||void 0,"data-focused":o||void 0,...d,children:u}));we.displayName="StyledMenuItemBase";var b=(n,a)=>{const r=(0,k.forwardRef)(({className:s,children:t,...o},l)=>(0,e.jsx)("div",{ref:l,className:(0,f.clsx)(n,s),...o,children:t}));return r.displayName=a,r},Le=b(h.menuItemLabel,"StyledMenuItemLabel"),$e=b(h.menuItemLabelLight,"StyledMenuItemLabelLight"),Ye=b(h.noIconFiller,"StyledNoIconFiller"),F=b(h.menuItemLeftContent,"StyledMenuItemLeftContent"),T=b(h.menuItemRightContent,"StyledMenuItemRightContent"),R=b(h.draggableItem,"StyledDraggableItem"),B=(0,k.forwardRef)(({accent:n,isKeySelected:a,isHoverBackgroundDisabled:r,hovered:s,disabled:t,focused:o,isIconDisplayedOnHoverOnly:l,cursor:u,className:d,children:i,...m},c)=>(0,e.jsx)("div",{ref:c,className:(0,f.clsx)(h.hoverableMenuItemBase,d),"data-accent":n,"data-key-selected":a||void 0,"data-hover-background-disabled":r||void 0,"data-disabled":t||void 0,"data-focused":o||void 0,"data-icon-displayed-on-hover-only":l||void 0,"data-cursor":u,...m,children:i}));B.displayName="StyledHoverableMenuItemBase";var qe=b(h.menuItemContextualText,"StyledMenuItemContextualText"),Te=b(h.rightMenuItemContextualText,"StyledRightMenuItemContextualText"),Be="_mainText_d0zu3_1",ze="_menuItemLabelRight_d0zu3_9",G={mainText:Be,menuItemLabelRight:ze},De=({LeftComponent:n,LeftIcon:a,iconThemeColor:r})=>{if(_.isDefined(n))return n;if(_.isDefined(a))return(0,e.jsx)(E,{Icon:a,iconThemeColor:r})},z=({className:n,LeftComponent:a,LeftIcon:r,iconThemeColor:s,withIconContainer:t=!1,withIconContainerBackground:o=!0,text:l,contextualText:u,contextualTextPosition:d="left",gripMode:i="never",disabled:m=!1})=>{const c=g.useTheme(),v=t?g.themeCssVariables.font.color.tertiary:m?g.themeCssVariables.font.color.extraLight:g.themeCssVariables.font.color.light,I=De({LeftComponent:a,LeftIcon:r,iconThemeColor:s}),x=t&&!_.isDefined(s);return(0,e.jsxs)(F,{className:n,children:[i==="always"&&(t?(0,e.jsx)(M,{hasBackground:o,children:(0,e.jsx)(R,{children:(0,e.jsx)(C.IconGripVertical,{size:c.icon.size.md,stroke:c.icon.stroke.sm,color:v})})}):(0,e.jsx)(R,{children:(0,e.jsx)(C.IconGripVertical,{size:c.icon.size.md,stroke:c.icon.stroke.sm,color:v})})),i==="always"&&(x&&_.isDefined(I)?(0,e.jsx)(M,{hasBackground:o,children:I}):I),i==="onHover"&&(0,e.jsx)(he,{leadingContent:I,withIconContainer:x,withIconContainerBackground:o,gripIconColor:v}),i==="never"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(E,{Icon:r,iconThemeColor:s,withContainer:t,withContainerBackground:o}),a]}),(0,e.jsxs)(Le,{children:[(0,j.isString)(l)?(0,e.jsx)("div",{className:G.mainText,children:(0,e.jsx)(w.OverflowingTextWithTooltip,{text:l})}):l,d==="left"&&(0,e.jsx)(e.Fragment,{children:(0,j.isString)(u)?(0,j.isNonEmptyString)(u)&&(0,e.jsx)(qe,{children:(0,e.jsx)(w.OverflowingTextWithTooltip,{text:`· ${u}`,tooltipContent:u})}):u})]}),d==="right"&&(0,e.jsx)("div",{className:G.menuItemLabelRight,children:(0,e.jsx)(Te,{children:(0,j.isString)(u)?(0,e.jsx)(w.OverflowingTextWithTooltip,{text:u}):u})})]})},Ne="_subMenuIcon_j232v_1",Pe="_subMenuIconOpened_j232v_9",A={subMenuIcon:Ne,subMenuIconOpened:Pe},V=({accent:n="default",className:a,withIconContainer:r=!1,withIconContainerBackground:s=!0,iconButtons:t,isIconDisplayedOnHoverOnly:o=!0,LeftIcon:l,iconThemeColor:u,LeftComponent:d,RightIcon:i,RightComponent:m,onClick:c,onMouseEnter:v,onMouseLeave:I,testId:x,text:W,contextualTextPosition:H="left",contextualText:K,hasSubMenu:J=!1,disabled:y=!1,focused:U=!1,selected:$=!1,shortcut:D,shortcutJoinLabel:Y,isSubMenuOpened:Q=!1})=>{const p=g.useTheme(),X=S=>{c&&(S.preventDefault(),S.stopPropagation(),c?.(S))};return(0,e.jsxs)(B,{"data-testid":x??void 0,onClick:y?void 0:X,disabled:y,className:a,accent:n,isIconDisplayedOnHoverOnly:o,onMouseEnter:v,onMouseLeave:I,focused:U||$,children:[(0,e.jsx)(z,{LeftIcon:l??void 0,iconThemeColor:u,LeftComponent:d,withIconContainer:r,withIconContainerBackground:s,text:W,contextualText:K,contextualTextPosition:H,disabled:y}),(0,e.jsxs)(T,{children:[t&&(0,e.jsx)(T,{className:"hoverable-buttons",children:t}),_.isDefined(D)&&(0,e.jsx)(te.Shortcut,{shortcut:D,sequenceJoinLabel:Y}),i&&(0,e.jsx)(i,{size:p.icon.size.md,stroke:p.icon.stroke.sm}),m,J&&(0,e.jsx)("div",{className:(0,f.clsx)(A.subMenuIcon,Q&&A.subMenuIconOpened),style:{visibility:y?"hidden":"visible"},children:(0,e.jsx)(C.IconChevronRight,{size:p.icon.size.sm,color:p.font.color.light})})]})]})},Oe=({accent:n="default",className:a,iconButtons:r,isIconDisplayedOnHoverOnly:s=!0,isTooltipOpen:t,onClick:o,onMouseEnter:l,onMouseLeave:u,testId:d,avatar:i,hasSubMenu:m=!1,text:c,contextualText:v})=>(0,e.jsx)(V,{accent:n,className:a,iconButtons:r,isIconDisplayedOnHoverOnly:s,isTooltipOpen:t,LeftComponent:_.isDefined(i)?(0,e.jsx)(ie.Avatar,{name:i.name,src:i.src,colorSeed:i.colorSeed,size:i.size,shape:i.shape}):void 0,onClick:o,onMouseEnter:l,onMouseLeave:u,testId:d,text:c,contextualText:v,hasSubMenu:m}),Re=({LeftIcon:n,LeftComponent:a,withIconContainer:r=!1,accent:s="default",iconButtons:t,onClick:o,text:l,contextualText:u,isDragDisabled:d=!1,className:i,isIconDisplayedOnHoverOnly:m=!0,gripMode:c="never"})=>(0,e.jsxs)(B,{onClick:o,accent:s,className:i,isIconDisplayedOnHoverOnly:m,cursor:c!=="never"?d?"default":"drag":"default",children:[(0,e.jsx)(z,{LeftIcon:n,LeftComponent:a,text:l,contextualText:u,withIconContainer:r,disabled:d,gripMode:c}),t&&(0,e.jsx)(T,{className:"hoverable-buttons",children:t})]}),Ge="_suggestionMenuItem_1qyjt_1",Ae={suggestionMenuItem:Ge},Ee=({LeftIcon:n,withIconContainer:a=!1,text:r,contextualText:s=void 0,contextualTextPosition:t="left",className:o,selected:l,onClick:u})=>{const d=i=>{u&&(i.preventDefault(),i.stopPropagation(),u?.(i))};return(0,e.jsx)("li",{className:(0,f.clsx)(Ae.suggestionMenuItem,o),"data-selected":l||void 0,role:_.isDefined(u)?"button":void 0,tabIndex:_.isDefined(u)?0:void 0,onClick:d,onKeyDown:oe.handleClickableElementKeyDown,children:(0,e.jsx)(F,{children:(0,e.jsx)(z,{LeftIcon:n??void 0,text:r,contextualText:s,contextualTextPosition:t,withIconContainer:a})})})},Fe="_menuPicker_o8ra4_1",Ve="_iconContainer_o8ra4_41",We="_label_o8ra4_50",q={menuPicker:Fe,iconContainer:Ve,label:We},He=({id:n,icon:a,label:r,selected:s=!1,disabled:t=!1,showLabel:o=!0,onClick:l,className:u,testId:d,tooltipContent:i,tooltipDelay:m=0,tooltipOffset:c=5})=>{const v=g.useTheme();return(0,e.jsx)(ne.Tooltip,{content:i,disabled:!(0,j.isNonEmptyString)(i),sideOffset:c,side:"bottom",positionMethod:"fixed",delay:m,children:(0,e.jsxs)("button",{id:n,disabled:t,onClick:l,className:(0,f.clsx)(q.menuPicker,u),"data-testid":d,"data-selected":s?"":void 0,"aria-pressed":s,"aria-disabled":t,"aria-label":r,children:[(0,e.jsx)("div",{className:q.iconContainer,children:(0,e.jsx)(a,{size:v.icon.size.md,stroke:v.icon.stroke.sm})}),_.isDefined(r)&&o&&(0,e.jsx)("div",{className:q.label,"data-selected":s?"":void 0,"data-disabled":t?"":void 0,children:r})]})})},Ke="_button_quwcq_1",Je={button:Ke},Ue=({active:n=!1,className:a,children:r,startIcon:s,endIcon:t,badge:o,size:l,...u})=>{const d=(0,k.useContext)(N.ButtonGroupContext),i=l??d?.size??"sm";return(0,e.jsx)(N.Button,{...u,variant:"ghost",size:i,"data-active":n||void 0,className:Z.mergeClassNames((0,f.clsx)(P.Tab_module_default.tab,Je.button),a),children:(0,e.jsx)(P.TabsTabContent,{startIcon:s,endIcon:t,badge:o,children:r})})};Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"ListItemButton",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"MenuItem",{enumerable:!0,get:function(){return V}});Object.defineProperty(exports,"MenuItemAvatar",{enumerable:!0,get:function(){return Oe}});Object.defineProperty(exports,"MenuItemDraggable",{enumerable:!0,get:function(){return Re}});Object.defineProperty(exports,"MenuItemSuggestion",{enumerable:!0,get:function(){return Ee}});Object.defineProperty(exports,"MenuPicker",{enumerable:!0,get:function(){return He}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return Ue}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return ue}});
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { t as T } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as p } from "./mergeClassNames-ClFMR1v0.js";
|
|
3
|
-
import { n as _, t as v } from "./TabsTabContent-s6J5bZ3R.js";
|
|
4
|
-
import { useRender as x } from "@base-ui/react/use-render";
|
|
5
|
-
import { isString as B } from "@sniptt/guards";
|
|
6
|
-
import { clsx as N } from "clsx";
|
|
7
|
-
import { jsx as l, jsxs as L } from "react/jsx-runtime";
|
|
8
|
-
import { useDirection as R } from "@base-ui/react/direction-provider";
|
|
9
|
-
import { Tabs as g } from "@base-ui/react/tabs";
|
|
10
|
-
var K = "_root_ikxnr_1", C = "_list_ikxnr_13", O = "_item_ikxnr_24", S = "_content_ikxnr_35", D = "_separator_ikxnr_55", b = {
|
|
11
|
-
root: K,
|
|
12
|
-
list: C,
|
|
13
|
-
item: O,
|
|
14
|
-
content: S,
|
|
15
|
-
separator: D
|
|
16
|
-
}, H = ({ children: a, href: r, render: i, title: o, current: t, className: s, ref: e, "aria-current": n = t ? "page" : void 0, ...m }) => x({
|
|
17
|
-
defaultTagName: T(r) ? "a" : "span",
|
|
18
|
-
render: i,
|
|
19
|
-
ref: e,
|
|
20
|
-
props: {
|
|
21
|
-
...m,
|
|
22
|
-
children: a,
|
|
23
|
-
href: r,
|
|
24
|
-
title: o ?? (B(a) ? a : void 0),
|
|
25
|
-
"aria-current": n,
|
|
26
|
-
"data-linked": T(r) || void 0,
|
|
27
|
-
className: N(b.content, s)
|
|
28
|
-
}
|
|
29
|
-
}), ta = ({ links: a, className: r, render: i, ref: o, "aria-label": t = "Breadcrumb", ...s }) => x({
|
|
30
|
-
defaultTagName: "nav",
|
|
31
|
-
render: i,
|
|
32
|
-
ref: o,
|
|
33
|
-
props: {
|
|
34
|
-
...s,
|
|
35
|
-
"aria-label": t,
|
|
36
|
-
className: N(b.root, r),
|
|
37
|
-
children: /* @__PURE__ */ l("ol", {
|
|
38
|
-
className: b.list,
|
|
39
|
-
children: a.map((e, n) => /* @__PURE__ */ L("li", {
|
|
40
|
-
className: b.item,
|
|
41
|
-
children: [n > 0 && /* @__PURE__ */ l("span", {
|
|
42
|
-
className: b.separator,
|
|
43
|
-
"aria-hidden": "true",
|
|
44
|
-
children: "/"
|
|
45
|
-
}), /* @__PURE__ */ l(H, {
|
|
46
|
-
...e,
|
|
47
|
-
current: n === a.length - 1
|
|
48
|
-
})]
|
|
49
|
-
}, n))
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
}), P = ({ className: a, ...r }) => /* @__PURE__ */ l(g.Indicator, {
|
|
53
|
-
...r,
|
|
54
|
-
className: p(_.indicator, a)
|
|
55
|
-
}), U = '[role="tab"]', j = '[role="tablist"]', q = "[hidden], [inert]", k = (a) => a.hasAttribute("data-disabled") || a.hasAttribute("disabled") || a.getAttribute("aria-disabled") === "true" || T(a.closest(q)), z = ({ event: a, direction: r, loopFocus: i }) => {
|
|
56
|
-
if (a.altKey || a.ctrlKey || a.metaKey || a.shiftKey) return;
|
|
57
|
-
const o = a.currentTarget, t = [];
|
|
58
|
-
o.querySelectorAll(U).forEach((d) => {
|
|
59
|
-
d.closest(j) === o && t.push(d);
|
|
60
|
-
});
|
|
61
|
-
const s = t.findIndex((d) => d === a.target);
|
|
62
|
-
if (s === -1) return;
|
|
63
|
-
const e = r === "rtl" ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"], [n, m] = o.getAttribute("data-orientation") === "vertical" ? ["ArrowDown", "ArrowUp"] : e;
|
|
64
|
-
if (![
|
|
65
|
-
n,
|
|
66
|
-
m,
|
|
67
|
-
"Home",
|
|
68
|
-
"End"
|
|
69
|
-
].includes(a.key)) return;
|
|
70
|
-
const h = a.key === m;
|
|
71
|
-
let u = s + (h ? -1 : 1);
|
|
72
|
-
a.key === "Home" && (u = 0), a.key === "End" && (u = t.length - 1);
|
|
73
|
-
const E = u < 0 || u >= t.length, w = h ? t.length - 1 : 0, y = t[E && i ? w : u];
|
|
74
|
-
if (!T(y) || !k(y)) return;
|
|
75
|
-
a.preventBaseUIHandler(), a.preventDefault();
|
|
76
|
-
const f = t.filter((d) => !k(d));
|
|
77
|
-
let c;
|
|
78
|
-
if (a.key === "Home" && (c = f[0]), a.key === "End" && (c = f[f.length - 1]), a.key === n || a.key === m) {
|
|
79
|
-
const d = h ? [...f].reverse() : f;
|
|
80
|
-
c = d.find((A) => h ? t.indexOf(A) < s : t.indexOf(A) > s), c ??= i ? d[0] : void 0;
|
|
81
|
-
}
|
|
82
|
-
if (!T(c) || c === a.target) return;
|
|
83
|
-
a.stopPropagation();
|
|
84
|
-
const I = c;
|
|
85
|
-
queueMicrotask(() => I.focus());
|
|
86
|
-
}, M = ({ className: a, onKeyDown: r, loopFocus: i = !0, ...o }) => {
|
|
87
|
-
const t = R(), s = (e) => {
|
|
88
|
-
if (r?.(e), e.defaultPrevented) {
|
|
89
|
-
e.preventBaseUIHandler();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
e.baseUIHandlerPrevented || z({
|
|
93
|
-
event: e,
|
|
94
|
-
direction: t,
|
|
95
|
-
loopFocus: i
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
return /* @__PURE__ */ l(g.List, {
|
|
99
|
-
...o,
|
|
100
|
-
loopFocus: i,
|
|
101
|
-
onKeyDown: s,
|
|
102
|
-
className: p(_.list, a)
|
|
103
|
-
});
|
|
104
|
-
}, V = ({ className: a, ...r }) => /* @__PURE__ */ l(g.Panel, {
|
|
105
|
-
...r,
|
|
106
|
-
className: p(_.panel, a)
|
|
107
|
-
}), $ = ({ className: a, ...r }) => /* @__PURE__ */ l(g.Root, {
|
|
108
|
-
...r,
|
|
109
|
-
className: p(_.root, a)
|
|
110
|
-
}), G = ({ className: a, children: r, startIcon: i, endIcon: o, badge: t, highlighted: s = !1, size: e = "sm", ...n }) => /* @__PURE__ */ l(g.Tab, {
|
|
111
|
-
...n,
|
|
112
|
-
className: p(_.tab, a),
|
|
113
|
-
"data-size": e,
|
|
114
|
-
"data-highlighted": s || void 0,
|
|
115
|
-
children: /* @__PURE__ */ l(v, {
|
|
116
|
-
startIcon: i,
|
|
117
|
-
endIcon: o,
|
|
118
|
-
badge: t,
|
|
119
|
-
children: r
|
|
120
|
-
})
|
|
121
|
-
}), ea = {
|
|
122
|
-
Root: $,
|
|
123
|
-
List: M,
|
|
124
|
-
Tab: G,
|
|
125
|
-
Indicator: P,
|
|
126
|
-
Panel: V
|
|
127
|
-
};
|
|
128
|
-
export {
|
|
129
|
-
ta as n,
|
|
130
|
-
ea as t
|
|
131
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const T=require("./isDefined-DS2Q42p5.cjs"),g=require("./mergeClassNames-D4lshrT6.cjs"),c=require("./TabsTabContent-DZUNi_iE.cjs");let A=require("@base-ui/react/use-render"),v=require("@sniptt/guards"),k=require("clsx"),d=require("react/jsx-runtime"),w=require("@base-ui/react/direction-provider"),x=require("@base-ui/react/tabs");var C="_root_ikxnr_1",I="_list_ikxnr_13",B="_item_ikxnr_24",D="_content_ikxnr_35",L="_separator_ikxnr_55",f={root:C,list:I,item:B,content:D,separator:L},R=({children:e,href:r,render:i,title:n,current:a,className:s,ref:t,"aria-current":l=a?"page":void 0,...b})=>(0,A.useRender)({defaultTagName:T.isDefined(r)?"a":"span",render:i,ref:t,props:{...b,children:e,href:r,title:n??((0,v.isString)(e)?e:void 0),"aria-current":l,"data-linked":T.isDefined(r)||void 0,className:(0,k.clsx)(f.content,s)}}),K=({links:e,className:r,render:i,ref:n,"aria-label":a="Breadcrumb",...s})=>(0,A.useRender)({defaultTagName:"nav",render:i,ref:n,props:{...s,"aria-label":a,className:(0,k.clsx)(f.root,r),children:(0,d.jsx)("ol",{className:f.list,children:e.map((t,l)=>(0,d.jsxs)("li",{className:f.item,children:[l>0&&(0,d.jsx)("span",{className:f.separator,"aria-hidden":"true",children:"/"}),(0,d.jsx)(R,{...t,current:l===e.length-1})]},l))})}}),O=({className:e,...r})=>(0,d.jsx)(x.Tabs.Indicator,{...r,className:g.mergeClassNames(c.Tab_module_default.indicator,e)}),P='[role="tab"]',S='[role="tablist"]',H="[hidden], [inert]",y=e=>e.hasAttribute("data-disabled")||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||T.isDefined(e.closest(H)),U=({event:e,direction:r,loopFocus:i})=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const n=e.currentTarget,a=[];n.querySelectorAll(P).forEach(o=>{o.closest(S)===n&&a.push(o)});const s=a.findIndex(o=>o===e.target);if(s===-1)return;const t=r==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[l,b]=n.getAttribute("data-orientation")==="vertical"?["ArrowDown","ArrowUp"]:t;if(![l,b,"Home","End"].includes(e.key))return;const p=e.key===b;let _=s+(p?-1:1);e.key==="Home"&&(_=0),e.key==="End"&&(_=a.length-1);const q=_<0||_>=a.length,E=p?a.length-1:0,N=a[q&&i?E:_];if(!T.isDefined(N)||!y(N))return;e.preventBaseUIHandler(),e.preventDefault();const m=a.filter(o=>!y(o));let u;if(e.key==="Home"&&(u=m[0]),e.key==="End"&&(u=m[m.length-1]),e.key===l||e.key===b){const o=p?[...m].reverse():m;u=o.find(h=>p?a.indexOf(h)<s:a.indexOf(h)>s),u??=i?o[0]:void 0}if(!T.isDefined(u)||u===e.target)return;e.stopPropagation();const j=u;queueMicrotask(()=>j.focus())},z=({className:e,onKeyDown:r,loopFocus:i=!0,...n})=>{const a=(0,w.useDirection)(),s=t=>{if(r?.(t),t.defaultPrevented){t.preventBaseUIHandler();return}t.baseUIHandlerPrevented||U({event:t,direction:a,loopFocus:i})};return(0,d.jsx)(x.Tabs.List,{...n,loopFocus:i,onKeyDown:s,className:g.mergeClassNames(c.Tab_module_default.list,e)})},M=({className:e,...r})=>(0,d.jsx)(x.Tabs.Panel,{...r,className:g.mergeClassNames(c.Tab_module_default.panel,e)}),V=({className:e,...r})=>(0,d.jsx)(x.Tabs.Root,{...r,className:g.mergeClassNames(c.Tab_module_default.root,e)}),G=({className:e,children:r,startIcon:i,endIcon:n,badge:a,highlighted:s=!1,size:t="sm",...l})=>(0,d.jsx)(x.Tabs.Tab,{...l,className:g.mergeClassNames(c.Tab_module_default.tab,e),"data-size":t,"data-highlighted":s||void 0,children:(0,d.jsx)(c.TabsTabContent,{startIcon:i,endIcon:n,badge:a,children:r})}),J={Root:V,List:z,Tab:G,Indicator:O,Panel:M};Object.defineProperty(exports,"Breadcrumb",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return J}});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { t as C } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
var L = /[·ʻʼ´¨ˆ˜΄ˇ˘˙˚˛˝¯¸^`]/g, l = new RegExp("([\\p{Script=Latin}\\p{Script=Greek}\\p{Script_Extensions=Arabic}\\p{Script=Hebrew}])\\p{Mark}+", "gu"), p = new RegExp("(\\p{Script=Cyrillic})(\\p{Mark}+)", "gu"), T = /[\u0300\u0301]/g, S = ["г", "к"], I = /[가-힣]+/g, A = /[ㄱ-ㆎ]/g, E = {
|
|
3
|
-
ø: "o",
|
|
4
|
-
æ: "ae",
|
|
5
|
-
ß: "ss",
|
|
6
|
-
ð: "d",
|
|
7
|
-
þ: "th",
|
|
8
|
-
ł: "l",
|
|
9
|
-
œ: "oe",
|
|
10
|
-
đ: "d",
|
|
11
|
-
ı: "i",
|
|
12
|
-
ŋ: "ng",
|
|
13
|
-
ς: "σ",
|
|
14
|
-
ё: "е"
|
|
15
|
-
}, u = new RegExp(`[${Object.keys(E).join("")}]`, "g"), R = (e, r, o) => S.includes(r) ? `${r}${o}` : `${r}${o.replace(T, "")}`, v = (e) => C(e) ? e.toLowerCase().normalize("NFD").replace(L, "").replace(l, "$1").replace(p, R).normalize("NFC").replace(I, (r) => r.normalize("NFD")).replace(A, (r) => r.normalize("NFKD")).replace(u, (r) => E[r] ?? r) : "", N = [
|
|
16
|
-
"pointerdown",
|
|
17
|
-
"mousedown",
|
|
18
|
-
"touchend",
|
|
19
|
-
"focusout"
|
|
20
|
-
], s = ["pointerdown", "keydown"], g = [
|
|
21
|
-
...s,
|
|
22
|
-
"keyup",
|
|
23
|
-
"mousedown"
|
|
24
|
-
], c = (e) => {
|
|
25
|
-
e.preventDefault(), e.stopPropagation();
|
|
26
|
-
}, m = (e) => {
|
|
27
|
-
if (e.type === "click") {
|
|
28
|
-
c(e);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (!N.includes(e.type)) return;
|
|
32
|
-
const r = e.target instanceof Node ? e.target.ownerDocument ?? document : document, o = r.defaultView ?? r, t = new AbortController(), i = () => t.abort(), a = {
|
|
33
|
-
capture: !0,
|
|
34
|
-
signal: t.signal
|
|
35
|
-
}, _ = e.type === "focusout" ? g : s;
|
|
36
|
-
o.addEventListener("click", (n) => {
|
|
37
|
-
c(n), i();
|
|
38
|
-
}, a);
|
|
39
|
-
for (const n of _) o.addEventListener(n, i, a);
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
v as n,
|
|
43
|
-
m as t
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const l=require("./isDefined-DS2Q42p5.cjs");var C=/[·ʻʼ´¨ˆ˜΄ˇ˘˙˚˛˝¯¸^`]/g,p=new RegExp("([\\p{Script=Latin}\\p{Script=Greek}\\p{Script_Extensions=Arabic}\\p{Script=Hebrew}])\\p{Mark}+","gu"),L=new RegExp("(\\p{Script=Cyrillic})(\\p{Mark}+)","gu"),u=/[\u0300\u0301]/g,T=["г","к"],S=/[가-힣]+/g,A=/[ㄱ-ㆎ]/g,s={ø:"o",æ:"ae",ß:"ss",ð:"d",þ:"th",ł:"l",œ:"oe",đ:"d",ı:"i",ŋ:"ng",ς:"σ",ё:"е"},I=new RegExp(`[${Object.keys(s).join("")}]`,"g"),g=(e,r,n)=>T.includes(r)?`${r}${n}`:`${r}${n.replace(u,"")}`,R=e=>l.isDefined(e)?e.toLowerCase().normalize("NFD").replace(C,"").replace(p,"$1").replace(L,g).normalize("NFC").replace(S,r=>r.normalize("NFD")).replace(A,r=>r.normalize("NFKD")).replace(I,r=>s[r]??r):"",d=["pointerdown","mousedown","touchend","focusout"],E=["pointerdown","keydown"],N=[...E,"keyup","mousedown"],c=e=>{e.preventDefault(),e.stopPropagation()},v=e=>{if(e.type==="click"){c(e);return}if(!d.includes(e.type))return;const r=e.target instanceof Node?e.target.ownerDocument??document:document,n=r.defaultView??r,i=new AbortController,o=()=>i.abort(),a={capture:!0,signal:i.signal},_=e.type==="focusout"?N:E;n.addEventListener("click",t=>{c(t),o()},a);for(const t of _)n.addEventListener(t,o,a)};Object.defineProperty(exports,"normalizeSearchText",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"preventDismissingClickActivation",{enumerable:!0,get:function(){return v}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _=require("./theme-1XkFz8Qu.cjs"),D=require("./isDefined-DS2Q42p5.cjs"),d=require("./mergeClassNames-D4lshrT6.cjs"),u=require("./useProvidedTextDirection-PVaoQCLH.cjs"),C=require("./Heading-CTRYClCO.cjs");let c=require("@base-ui/react/use-render"),N=require("@sniptt/guards"),n=require("clsx"),i=require("react/jsx-runtime"),l=require("@base-ui/react/alert-dialog"),s=require("@base-ui/react/dialog");var x="_backdrop_aak4r_1",A="_viewport_aak4r_12",f="_popup_aak4r_30",H="_header_aak4r_82",P="_body_aak4r_91",k="_footer_aak4r_95",T="_title_aak4r_106",b="_description_aak4r_113",t={backdrop:x,viewport:A,popup:f,header:H,body:P,footer:k,title:T,description:b},j=({className:e,...r})=>(0,i.jsx)(l.AlertDialog.Backdrop,{...r,className:d.mergeClassNames(t.backdrop,e)}),q=({render:e,ref:r,className:a,...o})=>(0,c.useRender)({render:e,ref:r,props:{...o,className:(0,n.clsx)(t.body,a)}}),R=({className:e,...r})=>(0,i.jsx)(l.AlertDialog.Description,{...r,className:d.mergeClassNames(t.description,e)}),y=({render:e,ref:r,className:a,...o})=>(0,c.useRender)({render:e,ref:r,props:{...o,className:(0,n.clsx)(t.footer,a)}}),w=({render:e,ref:r,className:a,...o})=>(0,c.useRender)({render:e,ref:r,props:{...o,className:(0,n.clsx)(t.header,a)}}),h=({container:e,...r})=>{const a=_.useThemeContainer(),o=u.useProvidedTextDirection();return(0,i.jsx)(l.AlertDialog.Portal,{dir:o,...r,container:e===void 0?a??void 0:e})},B=({size:e="md",className:r,...a})=>(0,i.jsx)(l.AlertDialog.Popup,{...a,"data-size":e,className:d.mergeClassNames(t.popup,r)}),F=({className:e,...r})=>(0,i.jsx)(l.AlertDialog.Title,{...r,className:d.mergeClassNames(t.title,e)}),V=({className:e,...r})=>{const a=u.useProvidedTextDirection();return(0,i.jsx)(l.AlertDialog.Viewport,{dir:a,...r,className:d.mergeClassNames(t.viewport,e)})},z=()=>({Root:l.AlertDialog.Root,Trigger:l.AlertDialog.Trigger,Portal:h,Backdrop:j,Viewport:V,Popup:B,Title:F,Description:R,Close:l.AlertDialog.Close,Header:w,Body:q,Footer:y,Handle:l.AlertDialog.Handle,createHandle:l.AlertDialog.createHandle}),O=z(),U="_cardContent_122dn_1",$={cardContent:U},E=({className:e,divider:r,render:a,ref:o,...p})=>(0,c.useRender)({render:a,ref:o,props:{...p,className:(0,n.clsx)($.cardContent,e),"data-divider":r||void 0}}),G="_cardFooter_yo8y2_1",I={cardFooter:G},J=({className:e,divider:r,render:a,ref:o,...p})=>(0,c.useRender)({render:a,ref:o,props:{...p,className:(0,n.clsx)(I.cardFooter,e),"data-no-divider":r===!1||void 0}}),K="_cardHeader_18psr_1",L={cardHeader:K},M=({className:e,render:r,ref:a,...o})=>(0,c.useRender)({render:r,ref:a,props:{...o,className:(0,n.clsx)(L.cardHeader,e)}}),Q="_card_1mvso_1",S={card:Q},W=({className:e,fullWidth:r,rounded:a,backgroundColor:o,style:p,render:g,ref:v,...m})=>(0,c.useRender)({render:g,ref:v,props:{...m,className:(0,n.clsx)(S.card,e),"data-full-width":r||void 0,"data-rounded":a||void 0,style:D.isDefined(o)?{...p,"--card-background-color":o}:p}}),X={Root:W,Header:M,Content:E,Footer:J},Y=({className:e,...r})=>(0,i.jsx)(s.Dialog.Backdrop,{...r,className:d.mergeClassNames(t.backdrop,e)}),Z=({render:e,ref:r,className:a,...o})=>(0,c.useRender)({render:e,ref:r,props:{...o,className:(0,n.clsx)(t.body,a)}}),ee=({className:e,...r})=>(0,i.jsx)(s.Dialog.Description,{...r,className:d.mergeClassNames(t.description,e)}),re=({render:e,ref:r,className:a,...o})=>(0,c.useRender)({render:e,ref:r,props:{...o,className:(0,n.clsx)(t.footer,a)}}),ae=({render:e,ref:r,className:a,...o})=>(0,c.useRender)({render:e,ref:r,props:{...o,className:(0,n.clsx)(t.header,a)}}),oe=({size:e="md",className:r,...a})=>{const o=u.useProvidedTextDirection();return(0,i.jsx)(s.Dialog.Popup,{dir:o,...a,"data-size":e,className:d.mergeClassNames(t.popup,r)})},te=({container:e,...r})=>{const a=_.useThemeContainer();return(0,i.jsx)(s.Dialog.Portal,{...r,container:(0,N.isUndefined)(e)?a??void 0:e})},ie="_title_yzpck_1",le={title:ie},se=({level:e=2,size:r="lg",color:a="primary",className:o,render:p,...g})=>(0,i.jsx)(s.Dialog.Title,{...g,className:d.mergeClassNames(le.title,o),render:(0,i.jsx)(C.Heading,{level:e,size:r,color:a,render:p})}),de=({className:e,...r})=>{const a=u.useProvidedTextDirection();return(0,i.jsx)(s.Dialog.Viewport,{dir:a,...r,className:d.mergeClassNames(t.viewport,e)})},ce={createHandle:s.Dialog.createHandle,Handle:s.Dialog.Handle,Root:s.Dialog.Root,Trigger:s.Dialog.Trigger,Portal:te,Backdrop:Y,Viewport:de,Popup:oe,Title:se,Description:ee,Close:s.Dialog.Close,Header:ae,Body:Z,Footer:re};Object.defineProperty(exports,"AlertDialog",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"Card",{enumerable:!0,get:function(){return X}});Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return ce}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./Shortcut-ZuZ-KYSk.cjs");var r=t=>e.getShortcutPresentation(t).text;Object.defineProperty(exports,"formatShortcut",{enumerable:!0,get:function(){return r}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const w=require("./theme-1XkFz8Qu.cjs"),u=require("./isDefined-DS2Q42p5.cjs");let s=require("@sniptt/guards"),c=require("react");var d=()=>{const r=globalThis.navigator?.userAgent;if(!(0,s.isString)(r))return"unknown";const e=r.toLowerCase();return e.includes("ios")||e.includes("iphone")||e.includes("ipad")?"ios":e.includes("mac os x")||e.includes("macos")?"mac":e.includes("windows")?"windows":e.includes("android")?"android":e.includes("linux")?"linux":"unknown"},a="(max-width: 768px)",l={getSnapshot:()=>!1,subscribe:()=>()=>{}},i=new WeakMap,f=r=>({getSnapshot:()=>r.matches,subscribe:e=>(r.addEventListener("change",e),()=>r.removeEventListener("change",e))}),g=r=>{const e=i.get(r);if(u.isDefined(e))return e;const t=new Map;return i.set(r,t),t},y=r=>{if(typeof window>"u"||!(0,s.isFunction)(window.matchMedia))return l;const e=g(window.matchMedia),t=e.get(r);if(u.isDefined(t))return t;const n=f(window.matchMedia(r));return e.set(r,n),n},M=()=>!1,o=r=>{const{subscribe:e,getSnapshot:t}=y(r);return(0,c.useSyncExternalStore)(e,t,M)},m=()=>o(a);Object.defineProperty(exports,"MOBILE_MEDIA_QUERY",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"getUserDevice",{enumerable:!0,get:function(){return d}});Object.defineProperty(exports,"useIsMobile",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"useMediaQuery",{enumerable:!0,get:function(){return o}});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { t as s } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import "./theme-B2EaXhye.js";
|
|
3
|
-
import { isFunction as a, isString as o } from "@sniptt/guards";
|
|
4
|
-
import { useSyncExternalStore as u } from "react";
|
|
5
|
-
var h = () => {
|
|
6
|
-
const r = globalThis.navigator?.userAgent;
|
|
7
|
-
if (!o(r)) return "unknown";
|
|
8
|
-
const e = r.toLowerCase();
|
|
9
|
-
return e.includes("ios") || e.includes("iphone") || e.includes("ipad") ? "ios" : e.includes("mac os x") || e.includes("macos") ? "mac" : e.includes("windows") ? "windows" : e.includes("android") ? "android" : e.includes("linux") ? "linux" : "unknown";
|
|
10
|
-
}, d = "(max-width: 768px)", c = {
|
|
11
|
-
getSnapshot: () => !1,
|
|
12
|
-
subscribe: () => () => {
|
|
13
|
-
}
|
|
14
|
-
}, i = /* @__PURE__ */ new WeakMap(), m = (r) => ({
|
|
15
|
-
getSnapshot: () => r.matches,
|
|
16
|
-
subscribe: (e) => (r.addEventListener("change", e), () => r.removeEventListener("change", e))
|
|
17
|
-
}), f = (r) => {
|
|
18
|
-
const e = i.get(r);
|
|
19
|
-
if (s(e)) return e;
|
|
20
|
-
const n = /* @__PURE__ */ new Map();
|
|
21
|
-
return i.set(r, n), n;
|
|
22
|
-
}, l = (r) => {
|
|
23
|
-
if (typeof window > "u" || !a(window.matchMedia)) return c;
|
|
24
|
-
const e = f(window.matchMedia), n = e.get(r);
|
|
25
|
-
if (s(n)) return n;
|
|
26
|
-
const t = m(window.matchMedia(r));
|
|
27
|
-
return e.set(r, t), t;
|
|
28
|
-
}, w = () => !1, S = (r) => {
|
|
29
|
-
const { subscribe: e, getSnapshot: n } = l(r);
|
|
30
|
-
return u(e, n, w);
|
|
31
|
-
}, Q = () => S(d);
|
|
32
|
-
export {
|
|
33
|
-
h as i,
|
|
34
|
-
S as n,
|
|
35
|
-
d as r,
|
|
36
|
-
Q as t
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=require("./theme-1XkFz8Qu.cjs"),i=require("./useIsMobile-DxOPI2_E.cjs");let m=require("zod");var h=e=>e.replace(/\d+$/,""),u=m.z.enum(n.MAIN_COLOR_NAMES),f=e=>{const r=u.safeParse(e??"");return r.success?r.data:n.DEFAULT_THEME_COLOR_FALLBACK},c=e=>{let r=0;for(let t=0;t<e.length;t++)r=e.charCodeAt(t)+((r<<5)-r);return n.MAIN_COLOR_NAMES[Math.abs(r)%n.MAIN_COLOR_NAMES.length]??n.MAIN_COLOR_NAMES[0]},O=({string:e,variant:r=9,theme:t})=>{if(r<1||r>12)throw new Error("Variant must be between 1 and 12");const l=`${c(e)}${r}`;return t.color[l]},C=()=>{const e=i.getUserDevice();return e==="mac"||e==="ios"?"⌘":"Ctrl"},s="(hover: none) and (pointer: coarse)",g=()=>i.useMediaQuery(s),b=["http:","https:","mailto:","tel:"],o="https://same-origin-probe.invalid",a=e=>{if(e.startsWith("/"))try{return new URL(e,o).origin===o}catch{return!1}try{const r=new URL(e);return b.includes(r.protocol)}catch{return!1}},_=e=>{if(!e||e.trim().length===0)return;if(a(e))return e;if(e.startsWith("/"))return;const r=`https://${e}`;return a(r)?r:void 0};Object.defineProperty(exports,"TOUCH_DEVICE_MEDIA_QUERY",{enumerable:!0,get:function(){return s}});Object.defineProperty(exports,"getMainColorNameFromPaletteColorName",{enumerable:!0,get:function(){return h}});Object.defineProperty(exports,"getOsControlSymbol",{enumerable:!0,get:function(){return C}});Object.defineProperty(exports,"getSafeUrl",{enumerable:!0,get:function(){return _}});Object.defineProperty(exports,"parseThemeColor",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"stringToThemeColor",{enumerable:!0,get:function(){return c}});Object.defineProperty(exports,"stringToThemeColorP3String",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"themeColorSchema",{enumerable:!0,get:function(){return u}});Object.defineProperty(exports,"useIsTouchDevice",{enumerable:!0,get:function(){return g}});
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { f as a, h as i } from "./theme-B2EaXhye.js";
|
|
2
|
-
import { i as h, n as c } from "./useIsMobile-nrufFzMb.js";
|
|
3
|
-
import { z as m } from "zod";
|
|
4
|
-
var E = (e) => e.replace(/\d+$/, ""), l = m.enum(a), d = (e) => {
|
|
5
|
-
const r = l.safeParse(e ?? "");
|
|
6
|
-
return r.success ? r.data : i;
|
|
7
|
-
}, v = (e) => {
|
|
8
|
-
let r = 0;
|
|
9
|
-
for (let t = 0; t < e.length; t++) r = e.charCodeAt(t) + ((r << 5) - r);
|
|
10
|
-
return a[Math.abs(r) % a.length] ?? a[0];
|
|
11
|
-
}, g = ({ string: e, variant: r = 9, theme: t }) => {
|
|
12
|
-
if (r < 1 || r > 12) throw new Error("Variant must be between 1 and 12");
|
|
13
|
-
const n = `${v(e)}${r}`;
|
|
14
|
-
return t.color[n];
|
|
15
|
-
}, O = () => {
|
|
16
|
-
const e = h();
|
|
17
|
-
return e === "mac" || e === "ios" ? "⌘" : "Ctrl";
|
|
18
|
-
}, f = "(hover: none) and (pointer: coarse)", S = () => c(f), u = [
|
|
19
|
-
"http:",
|
|
20
|
-
"https:",
|
|
21
|
-
"mailto:",
|
|
22
|
-
"tel:"
|
|
23
|
-
], o = "https://same-origin-probe.invalid", s = (e) => {
|
|
24
|
-
if (e.startsWith("/")) try {
|
|
25
|
-
return new URL(e, o).origin === o;
|
|
26
|
-
} catch {
|
|
27
|
-
return !1;
|
|
28
|
-
}
|
|
29
|
-
try {
|
|
30
|
-
const r = new URL(e);
|
|
31
|
-
return u.includes(r.protocol);
|
|
32
|
-
} catch {
|
|
33
|
-
return !1;
|
|
34
|
-
}
|
|
35
|
-
}, A = (e) => {
|
|
36
|
-
if (!e || e.trim().length === 0) return;
|
|
37
|
-
if (s(e)) return e;
|
|
38
|
-
if (e.startsWith("/")) return;
|
|
39
|
-
const r = `https://${e}`;
|
|
40
|
-
return s(r) ? r : void 0;
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
v as a,
|
|
44
|
-
l as c,
|
|
45
|
-
O as i,
|
|
46
|
-
E as l,
|
|
47
|
-
S as n,
|
|
48
|
-
g as o,
|
|
49
|
-
f as r,
|
|
50
|
-
d as s,
|
|
51
|
-
A as t
|
|
52
|
-
};
|