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,11 +1,11 @@
|
|
|
1
1
|
import { t as u } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { t as _ } from "./theme-B2EaXhye.js";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as p } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
4
|
import { t as v } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
5
5
|
import { t as f } from "./Heading-pXllCJCO.js";
|
|
6
|
-
import { useRender as
|
|
6
|
+
import { useRender as c } from "@base-ui/react/use-render";
|
|
7
7
|
import { isUndefined as C } from "@sniptt/guards";
|
|
8
|
-
import { clsx as
|
|
8
|
+
import { clsx as s } from "clsx";
|
|
9
9
|
import { jsx as i } from "react/jsx-runtime";
|
|
10
10
|
import { AlertDialog as d } from "@base-ui/react/alert-dialog";
|
|
11
11
|
import { Dialog as l } from "@base-ui/react/dialog";
|
|
@@ -20,30 +20,30 @@ var N = "_backdrop_aak4r_1", k = "_viewport_aak4r_12", H = "_popup_aak4r_30", P
|
|
|
20
20
|
description: w
|
|
21
21
|
}, B = ({ className: r, ...a }) => /* @__PURE__ */ i(d.Backdrop, {
|
|
22
22
|
...a,
|
|
23
|
-
className:
|
|
24
|
-
}), F = ({ render: r, ref: a, className: e, ...o }) =>
|
|
23
|
+
className: p(t.backdrop, r)
|
|
24
|
+
}), F = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
25
25
|
render: r,
|
|
26
26
|
ref: a,
|
|
27
27
|
props: {
|
|
28
28
|
...o,
|
|
29
|
-
className:
|
|
29
|
+
className: s(t.body, e)
|
|
30
30
|
}
|
|
31
31
|
}), b = ({ className: r, ...a }) => /* @__PURE__ */ i(d.Description, {
|
|
32
32
|
...a,
|
|
33
|
-
className:
|
|
34
|
-
}), h = ({ render: r, ref: a, className: e, ...o }) =>
|
|
33
|
+
className: p(t.description, r)
|
|
34
|
+
}), h = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
35
35
|
render: r,
|
|
36
36
|
ref: a,
|
|
37
37
|
props: {
|
|
38
38
|
...o,
|
|
39
|
-
className:
|
|
39
|
+
className: s(t.footer, e)
|
|
40
40
|
}
|
|
41
|
-
}), R = ({ render: r, ref: a, className: e, ...o }) =>
|
|
41
|
+
}), R = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
42
42
|
render: r,
|
|
43
43
|
ref: a,
|
|
44
44
|
props: {
|
|
45
45
|
...o,
|
|
46
|
-
className:
|
|
46
|
+
className: s(t.header, e)
|
|
47
47
|
}
|
|
48
48
|
}), V = ({ container: r, ...a }) => {
|
|
49
49
|
const e = _(), o = v();
|
|
@@ -55,25 +55,25 @@ var N = "_backdrop_aak4r_1", k = "_viewport_aak4r_12", H = "_popup_aak4r_30", P
|
|
|
55
55
|
}, x = ({ size: r = "md", className: a, ...e }) => /* @__PURE__ */ i(d.Popup, {
|
|
56
56
|
...e,
|
|
57
57
|
"data-size": r,
|
|
58
|
-
className:
|
|
59
|
-
}),
|
|
58
|
+
className: p(t.popup, a)
|
|
59
|
+
}), $ = ({ className: r, ...a }) => /* @__PURE__ */ i(d.Title, {
|
|
60
60
|
...a,
|
|
61
|
-
className:
|
|
62
|
-
}),
|
|
61
|
+
className: p(t.title, r)
|
|
62
|
+
}), z = ({ className: r, ...a }) => {
|
|
63
63
|
const e = v();
|
|
64
64
|
return /* @__PURE__ */ i(d.Viewport, {
|
|
65
65
|
dir: e,
|
|
66
66
|
...a,
|
|
67
|
-
className:
|
|
67
|
+
className: p(t.viewport, r)
|
|
68
68
|
});
|
|
69
69
|
}, j = () => ({
|
|
70
70
|
Root: d.Root,
|
|
71
71
|
Trigger: d.Trigger,
|
|
72
72
|
Portal: V,
|
|
73
73
|
Backdrop: B,
|
|
74
|
-
Viewport:
|
|
74
|
+
Viewport: z,
|
|
75
75
|
Popup: x,
|
|
76
|
-
Title:
|
|
76
|
+
Title: $,
|
|
77
77
|
Description: b,
|
|
78
78
|
Close: d.Close,
|
|
79
79
|
Header: R,
|
|
@@ -81,35 +81,35 @@ var N = "_backdrop_aak4r_1", k = "_viewport_aak4r_12", H = "_popup_aak4r_30", P
|
|
|
81
81
|
Footer: h,
|
|
82
82
|
Handle: d.Handle,
|
|
83
83
|
createHandle: d.createHandle
|
|
84
|
-
}),
|
|
84
|
+
}), Nr = /* @__PURE__ */ j(), U = "_cardContent_122dn_1", q = { cardContent: U }, E = ({ className: r, divider: a, render: e, ref: o, ...n }) => c({
|
|
85
85
|
render: e,
|
|
86
86
|
ref: o,
|
|
87
87
|
props: {
|
|
88
88
|
...n,
|
|
89
|
-
className:
|
|
89
|
+
className: s(q.cardContent, r),
|
|
90
90
|
"data-divider": a || void 0
|
|
91
91
|
}
|
|
92
|
-
}), G = "_cardFooter_yo8y2_1", I = { cardFooter: G }, J = ({ className: r, divider: a, render: e, ref: o, ...n }) =>
|
|
92
|
+
}), G = "_cardFooter_yo8y2_1", I = { cardFooter: G }, J = ({ className: r, divider: a, render: e, ref: o, ...n }) => c({
|
|
93
93
|
render: e,
|
|
94
94
|
ref: o,
|
|
95
95
|
props: {
|
|
96
96
|
...n,
|
|
97
|
-
className:
|
|
97
|
+
className: s(I.cardFooter, r),
|
|
98
98
|
"data-no-divider": a === !1 || void 0
|
|
99
99
|
}
|
|
100
|
-
}), K = "_cardHeader_18psr_1", L = { cardHeader: K }, M = ({ className: r, render: a, ref: e, ...o }) =>
|
|
100
|
+
}), K = "_cardHeader_18psr_1", L = { cardHeader: K }, M = ({ className: r, render: a, ref: e, ...o }) => c({
|
|
101
101
|
render: a,
|
|
102
102
|
ref: e,
|
|
103
103
|
props: {
|
|
104
104
|
...o,
|
|
105
|
-
className:
|
|
105
|
+
className: s(L.cardHeader, r)
|
|
106
106
|
}
|
|
107
|
-
}), O = "_card_1mvso_1", Q = { card: O }, S = ({ className: r, fullWidth: a, rounded: e, backgroundColor: o, style: n, render: m, ref: g, ...D }) =>
|
|
107
|
+
}), O = "_card_1mvso_1", Q = { card: O }, S = ({ className: r, fullWidth: a, rounded: e, backgroundColor: o, style: n, render: m, ref: g, ...D }) => c({
|
|
108
108
|
render: m,
|
|
109
109
|
ref: g,
|
|
110
110
|
props: {
|
|
111
111
|
...D,
|
|
112
|
-
className:
|
|
112
|
+
className: s(Q.card, r),
|
|
113
113
|
"data-full-width": a || void 0,
|
|
114
114
|
"data-rounded": e || void 0,
|
|
115
115
|
style: u(o) ? {
|
|
@@ -117,86 +117,86 @@ var N = "_backdrop_aak4r_1", k = "_viewport_aak4r_12", H = "_popup_aak4r_30", P
|
|
|
117
117
|
"--card-background-color": o
|
|
118
118
|
} : n
|
|
119
119
|
}
|
|
120
|
-
}),
|
|
120
|
+
}), kr = {
|
|
121
121
|
Root: S,
|
|
122
122
|
Header: M,
|
|
123
123
|
Content: E,
|
|
124
124
|
Footer: J
|
|
125
125
|
}, W = ({ className: r, ...a }) => /* @__PURE__ */ i(l.Backdrop, {
|
|
126
126
|
...a,
|
|
127
|
-
className:
|
|
128
|
-
}), X = ({ render: r, ref: a, className: e, ...o }) =>
|
|
127
|
+
className: p(t.backdrop, r)
|
|
128
|
+
}), X = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
129
129
|
render: r,
|
|
130
130
|
ref: a,
|
|
131
131
|
props: {
|
|
132
132
|
...o,
|
|
133
|
-
className:
|
|
133
|
+
className: s(t.body, e)
|
|
134
134
|
}
|
|
135
|
-
}), Y = ({ className: r, ...a }) => /* @__PURE__ */ i(l.Description, {
|
|
135
|
+
}), Y = "_description_3f4d1_1", Z = { description: Y }, rr = ({ className: r, ...a }) => /* @__PURE__ */ i(l.Description, {
|
|
136
136
|
...a,
|
|
137
|
-
className: s(t.description, r)
|
|
138
|
-
}),
|
|
137
|
+
className: p(s(t.description, Z.description), r)
|
|
138
|
+
}), ar = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
139
139
|
render: r,
|
|
140
140
|
ref: a,
|
|
141
141
|
props: {
|
|
142
142
|
...o,
|
|
143
|
-
className:
|
|
143
|
+
className: s(t.footer, e)
|
|
144
144
|
}
|
|
145
|
-
}),
|
|
145
|
+
}), er = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
146
146
|
render: r,
|
|
147
147
|
ref: a,
|
|
148
148
|
props: {
|
|
149
149
|
...o,
|
|
150
|
-
className:
|
|
150
|
+
className: s(t.header, e)
|
|
151
151
|
}
|
|
152
|
-
}),
|
|
152
|
+
}), or = ({ size: r = "md", className: a, ...e }) => {
|
|
153
153
|
const o = v();
|
|
154
154
|
return /* @__PURE__ */ i(l.Popup, {
|
|
155
155
|
dir: o,
|
|
156
156
|
...e,
|
|
157
157
|
"data-size": r,
|
|
158
|
-
className:
|
|
158
|
+
className: p(t.popup, a)
|
|
159
159
|
});
|
|
160
|
-
},
|
|
160
|
+
}, tr = ({ container: r, ...a }) => {
|
|
161
161
|
const e = _();
|
|
162
162
|
return /* @__PURE__ */ i(l.Portal, {
|
|
163
163
|
...a,
|
|
164
164
|
container: C(r) ? e ?? void 0 : r
|
|
165
165
|
});
|
|
166
|
-
},
|
|
166
|
+
}, ir = "_title_yzpck_1", dr = { title: ir }, lr = ({ level: r = 2, size: a = "lg", color: e = "primary", className: o, render: n, ...m }) => /* @__PURE__ */ i(l.Title, {
|
|
167
167
|
...m,
|
|
168
|
-
className:
|
|
168
|
+
className: p(dr.title, o),
|
|
169
169
|
render: /* @__PURE__ */ i(f, {
|
|
170
170
|
level: r,
|
|
171
171
|
size: a,
|
|
172
172
|
color: e,
|
|
173
173
|
render: n
|
|
174
174
|
})
|
|
175
|
-
}),
|
|
175
|
+
}), sr = ({ className: r, ...a }) => {
|
|
176
176
|
const e = v();
|
|
177
177
|
return /* @__PURE__ */ i(l.Viewport, {
|
|
178
178
|
dir: e,
|
|
179
179
|
...a,
|
|
180
|
-
className:
|
|
180
|
+
className: p(t.viewport, r)
|
|
181
181
|
});
|
|
182
|
-
},
|
|
182
|
+
}, Hr = {
|
|
183
183
|
createHandle: l.createHandle,
|
|
184
184
|
Handle: l.Handle,
|
|
185
185
|
Root: l.Root,
|
|
186
186
|
Trigger: l.Trigger,
|
|
187
|
-
Portal:
|
|
187
|
+
Portal: tr,
|
|
188
188
|
Backdrop: W,
|
|
189
|
-
Viewport:
|
|
190
|
-
Popup:
|
|
191
|
-
Title:
|
|
192
|
-
Description:
|
|
189
|
+
Viewport: sr,
|
|
190
|
+
Popup: or,
|
|
191
|
+
Title: lr,
|
|
192
|
+
Description: rr,
|
|
193
193
|
Close: l.Close,
|
|
194
|
-
Header:
|
|
194
|
+
Header: er,
|
|
195
195
|
Body: X,
|
|
196
|
-
Footer:
|
|
196
|
+
Footer: ar
|
|
197
197
|
};
|
|
198
198
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
kr as n,
|
|
200
|
+
Nr as r,
|
|
201
|
+
Hr as t
|
|
202
202
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type GroupedCatalogProps<CatalogExample extends {
|
|
3
|
+
label: string;
|
|
4
|
+
}> = {
|
|
5
|
+
groups: {
|
|
6
|
+
label: string;
|
|
7
|
+
examples: CatalogExample[];
|
|
8
|
+
}[];
|
|
9
|
+
renderExample: (example: CatalogExample) => ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const GroupedCatalog: <CatalogExample extends {
|
|
12
|
+
label: string;
|
|
13
|
+
}>({ groups, renderExample, }: GroupedCatalogProps<CatalogExample>) => import("react").JSX.Element;
|
|
14
|
+
export {};
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { ComponentStorybookLayout } from './ComponentStorybookLayout';
|
|
|
3
3
|
export type { CatalogDimension, CatalogOptions, } from './decorators/CatalogDecorator';
|
|
4
4
|
export { CatalogDecorator } from './decorators/CatalogDecorator';
|
|
5
5
|
export { ComponentDecorator } from './decorators/ComponentDecorator';
|
|
6
|
+
export { GroupedCatalog } from './GroupedCatalog';
|
|
6
7
|
export { AVATAR_URL_MOCK } from './mocks/avatarUrlMock';
|
|
7
8
|
export type { CatalogStory } from './types/CatalogStory';
|
|
8
9
|
export { overrideMediaQueryMatches } from './utils/overrideMediaQueryMatches';
|
package/dist/testing.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("./theme-1XkFz8Qu.cjs"),E=require("./isDefined-DS2Q42p5.cjs"),B=require("./Heading-CTRYClCO.cjs");let h=require("@sniptt/guards"),U=require("clsx"),e=require("react/jsx-runtime");var j={test:"error",config:{rules:[{id:"color-contrast",enabled:!1}]}},V="_layout_17ld0_1",T={layout:V},w=({width:r,backgroundColor:a,height:A,children:t})=>(0,e.jsx)("div",{className:T.layout,style:{background:a,height:E.isDefined(A)?`${A}px`:"fit-content",minWidth:r?"unset":"300px",width:r?`${r}px`:"fit-content"},children:t}),y="_columnTitle_5dert_1",f="_rowsTitle_5dert_7",M="_rowTitle_5dert_15",F="_elementTitle_5dert_23",S="_container_5dert_32",b="_columnContainer_5dert_37",N="_rowsContainer_5dert_43",k="_rowContainer_5dert_49",D="_elementContainer_5dert_56",x="_cellContainer_5dert_60",i={columnTitle:y,rowsTitle:f,rowTitle:M,elementTitle:F,container:S,columnContainer:b,rowsContainer:N,rowContainer:k,elementContainer:D,cellContainer:x},m={name:"",values:[void 0],props:()=>({})},g=r=>(0,h.isString)(r)||(0,h.isNumber)(r),L=(r,a)=>{const{catalog:{dimensions:A=[],options:t={}}={dimensions:[],options:{}}}=a.parameters||{};if(!A||!Array.isArray(A))return(0,e.jsx)(r,{});const[n=m,s=m,u=m,C=m]=A;return(0,e.jsx)("div",{className:i.container,children:C.values.map((l,_)=>(0,e.jsxs)("div",{className:i.columnContainer,children:[(0,e.jsx)("div",{className:i.columnTitle,children:C.labels?.(l)??(g(l)?l:"")}),u.values.map((d,R)=>(0,e.jsxs)("div",{className:i.rowsContainer,children:[(0,e.jsx)("div",{className:i.rowsTitle,children:u.labels?.(d)??(g(d)?d:"")}),s.values.map((c,v)=>(0,e.jsxs)("div",{className:i.rowContainer,children:[(0,e.jsx)("div",{className:i.rowTitle,children:s.labels?.(c)??(g(c)?c:"")}),n.values.map((o,Q)=>(0,e.jsxs)("div",{className:i.cellContainer,id:A.length>1?`catalog-cell-${_}-${R}-${v}-${Q}`:o,children:[(0,e.jsx)("span",{className:i.elementTitle,children:n.labels?.(o)??(g(o)?o:"")}),(0,e.jsx)("div",{className:(0,U.clsx)(i.elementContainer,t?.elementContainer?.className),style:{minWidth:t?.elementContainer?.width?`${t.elementContainer.width}px`:"auto",...t?.elementContainer?.style},children:(0,e.jsx)(r,{args:{...a.args,...n.props(o),...s.props(c),...u.props(d),...C.props(l)}})})]},`d1-${Q}`))]},`d2-${v}`))]},`d3-${R}`))]},`d4-${_}`))})},I=(r,a)=>{if(r)switch(a){case"default":return p.themeCssVariables.grayScale.gray11;case"danger":return p.themeCssVariables.color.red;case"blue":return p.themeCssVariables.color.blue;default:return}},q=(r,a)=>{const{container:A}=a.parameters,t=a.args.inverted,n=a.args.accent,s=I(t,n);return(0,e.jsx)(w,{width:A?.width,height:A?.height,backgroundColor:s,children:(0,e.jsx)(r,{})})},K=({groups:r,renderExample:a})=>(0,e.jsx)("div",{style:{display:"grid",gap:"var(--t-spacing-6)",width:"100%"},children:r.map(({label:A,examples:t})=>(0,e.jsxs)("section",{"aria-label":A,children:[(0,e.jsx)(B.Heading,{level:3,children:A}),(0,e.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"var(--t-spacing-6)",marginTop:"var(--t-spacing-3)"},children:t.map(n=>(0,e.jsx)("div",{style:{display:"grid",gap:"var(--t-spacing-2)",justifyItems:"start"},children:a(n)},n.label))})]},A))}),W="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAA/8AAEQgAFAAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMACwgICggHCwoJCg0MCw0RHBIRDw8RIhkaFBwpJCsqKCQnJy0yQDctMD0wJyc4TDk9Q0VISUgrNk9VTkZUQEdIRf/bAEMBDA0NEQ8RIRISIUUuJy5FRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRf/dAAQAAv/aAAwDAQACEQMRAD8Ava1q728otYY98joSCTgZrnbXWdTtrhrfVZXWLafmcAEkdgR/hVltQku9Q8+OIEBcGOT+ID0PY1ka1KH2u8ToqnPLbmIqG7u6LtbQ7RXBRec4Uck9eKXcPWsKDWVnhWSL5kYcFelSf2m3901POh8jP//QoyIAnTuKpXsY82NsksUyWPU5q/L9z8RVK++/F/uCsVsaEURwgA4HtT9x9TUcf3KfUGh//9k=",O=r=>Object.assign(new EventTarget,{media:r,matches:!1,onchange:null,addListener:()=>{},removeListener:()=>{}}),Y=r=>{const a=window.matchMedia;return window.matchMedia=A=>{const t=(0,h.isFunction)(a)?a.call(window,A):O(A),n=r[A];return E.isDefined(n)&&Object.defineProperty(t,"matches",{value:n}),t},()=>{window.matchMedia=a}};exports.A11Y_DEFER_COLOR_CONTRAST=j;exports.AVATAR_URL_MOCK=W;exports.CatalogDecorator=L;exports.ComponentDecorator=q;exports.ComponentStorybookLayout=w;exports.GroupedCatalog=K;exports.overrideMediaQueryMatches=Y;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,90 +1,91 @@
|
|
|
1
1
|
import { t as w } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { a as Q } from "./theme-B2EaXhye.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { t as B } from "./Heading-pXllCJCO.js";
|
|
4
|
+
import { isFunction as _, isNumber as U, isString as V } from "@sniptt/guards";
|
|
5
|
+
import { clsx as f } from "clsx";
|
|
6
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
6
7
|
var q = {
|
|
7
8
|
test: "error",
|
|
8
9
|
config: { rules: [{
|
|
9
10
|
id: "color-contrast",
|
|
10
11
|
enabled: !1
|
|
11
12
|
}] }
|
|
12
|
-
}, T = "_layout_17ld0_1",
|
|
13
|
-
className:
|
|
13
|
+
}, T = "_layout_17ld0_1", y = { layout: T }, F = ({ width: e, backgroundColor: r, height: A, children: t }) => /* @__PURE__ */ a("div", {
|
|
14
|
+
className: y.layout,
|
|
14
15
|
style: {
|
|
15
|
-
background:
|
|
16
|
-
height: w(
|
|
16
|
+
background: r,
|
|
17
|
+
height: w(A) ? `${A}px` : "fit-content",
|
|
17
18
|
minWidth: e ? "unset" : "300px",
|
|
18
19
|
width: e ? `${e}px` : "fit-content"
|
|
19
20
|
},
|
|
20
21
|
children: t
|
|
21
|
-
}), M = "_columnTitle_5dert_1", N = "_rowsTitle_5dert_7", k = "_rowTitle_5dert_15",
|
|
22
|
+
}), M = "_columnTitle_5dert_1", N = "_rowsTitle_5dert_7", k = "_rowTitle_5dert_15", S = "_elementTitle_5dert_23", b = "_container_5dert_32", I = "_columnContainer_5dert_37", D = "_rowsContainer_5dert_43", L = "_rowContainer_5dert_49", W = "_elementContainer_5dert_56", j = "_cellContainer_5dert_60", i = {
|
|
22
23
|
columnTitle: M,
|
|
23
24
|
rowsTitle: N,
|
|
24
25
|
rowTitle: k,
|
|
25
|
-
elementTitle:
|
|
26
|
-
container:
|
|
27
|
-
columnContainer:
|
|
26
|
+
elementTitle: S,
|
|
27
|
+
container: b,
|
|
28
|
+
columnContainer: I,
|
|
28
29
|
rowsContainer: D,
|
|
29
|
-
rowContainer:
|
|
30
|
-
elementContainer:
|
|
31
|
-
cellContainer:
|
|
32
|
-
},
|
|
30
|
+
rowContainer: L,
|
|
31
|
+
elementContainer: W,
|
|
32
|
+
cellContainer: j
|
|
33
|
+
}, g = {
|
|
33
34
|
name: "",
|
|
34
35
|
values: [void 0],
|
|
35
36
|
props: () => ({})
|
|
36
|
-
},
|
|
37
|
-
const { catalog: { dimensions:
|
|
37
|
+
}, p = (e) => V(e) || U(e), $ = (e, r) => {
|
|
38
|
+
const { catalog: { dimensions: A = [], options: t = {} } = {
|
|
38
39
|
dimensions: [],
|
|
39
40
|
options: {}
|
|
40
|
-
} } =
|
|
41
|
-
if (!
|
|
42
|
-
const [
|
|
41
|
+
} } = r.parameters || {};
|
|
42
|
+
if (!A || !Array.isArray(A)) return /* @__PURE__ */ a(e, {});
|
|
43
|
+
const [n = g, o = g, C = g, h = g] = A;
|
|
43
44
|
return /* @__PURE__ */ a("div", {
|
|
44
|
-
className:
|
|
45
|
-
children:
|
|
46
|
-
className:
|
|
45
|
+
className: i.container,
|
|
46
|
+
children: h.values.map((c, u) => /* @__PURE__ */ l("div", {
|
|
47
|
+
className: i.columnContainer,
|
|
47
48
|
children: [/* @__PURE__ */ a("div", {
|
|
48
|
-
className:
|
|
49
|
-
children:
|
|
50
|
-
}),
|
|
51
|
-
className:
|
|
49
|
+
className: i.columnTitle,
|
|
50
|
+
children: h.labels?.(c) ?? (p(c) ? c : "")
|
|
51
|
+
}), C.values.map((d, v) => /* @__PURE__ */ l("div", {
|
|
52
|
+
className: i.rowsContainer,
|
|
52
53
|
children: [/* @__PURE__ */ a("div", {
|
|
53
|
-
className:
|
|
54
|
-
children:
|
|
55
|
-
}),
|
|
56
|
-
className:
|
|
54
|
+
className: i.rowsTitle,
|
|
55
|
+
children: C.labels?.(d) ?? (p(d) ? d : "")
|
|
56
|
+
}), o.values.map((m, R) => /* @__PURE__ */ l("div", {
|
|
57
|
+
className: i.rowContainer,
|
|
57
58
|
children: [/* @__PURE__ */ a("div", {
|
|
58
|
-
className:
|
|
59
|
-
children:
|
|
60
|
-
}),
|
|
61
|
-
className:
|
|
62
|
-
id:
|
|
59
|
+
className: i.rowTitle,
|
|
60
|
+
children: o.labels?.(m) ?? (p(m) ? m : "")
|
|
61
|
+
}), n.values.map((s, E) => /* @__PURE__ */ l("div", {
|
|
62
|
+
className: i.cellContainer,
|
|
63
|
+
id: A.length > 1 ? `catalog-cell-${u}-${v}-${R}-${E}` : s,
|
|
63
64
|
children: [/* @__PURE__ */ a("span", {
|
|
64
|
-
className:
|
|
65
|
-
children:
|
|
65
|
+
className: i.elementTitle,
|
|
66
|
+
children: n.labels?.(s) ?? (p(s) ? s : "")
|
|
66
67
|
}), /* @__PURE__ */ a("div", {
|
|
67
|
-
className:
|
|
68
|
+
className: f(i.elementContainer, t?.elementContainer?.className),
|
|
68
69
|
style: {
|
|
69
70
|
minWidth: t?.elementContainer?.width ? `${t.elementContainer.width}px` : "auto",
|
|
70
71
|
...t?.elementContainer?.style
|
|
71
72
|
},
|
|
72
73
|
children: /* @__PURE__ */ a(e, { args: {
|
|
73
|
-
...
|
|
74
|
-
...
|
|
75
|
-
...
|
|
76
|
-
...
|
|
77
|
-
...
|
|
74
|
+
...r.args,
|
|
75
|
+
...n.props(s),
|
|
76
|
+
...o.props(m),
|
|
77
|
+
...C.props(d),
|
|
78
|
+
...h.props(c)
|
|
78
79
|
} })
|
|
79
80
|
})]
|
|
80
|
-
}, `d1-${
|
|
81
|
-
}, `d2-${
|
|
82
|
-
}, `d3-${
|
|
83
|
-
}, `d4-${
|
|
81
|
+
}, `d1-${E}`))]
|
|
82
|
+
}, `d2-${R}`))]
|
|
83
|
+
}, `d3-${v}`))]
|
|
84
|
+
}, `d4-${u}`))
|
|
84
85
|
});
|
|
85
|
-
},
|
|
86
|
+
}, K = (e, r) => {
|
|
86
87
|
if (e)
|
|
87
|
-
switch (
|
|
88
|
+
switch (r) {
|
|
88
89
|
case "default":
|
|
89
90
|
return Q.grayScale.gray11;
|
|
90
91
|
case "danger":
|
|
@@ -94,15 +95,43 @@ var q = {
|
|
|
94
95
|
default:
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
|
-
},
|
|
98
|
-
const { container:
|
|
98
|
+
}, P = (e, r) => {
|
|
99
|
+
const { container: A } = r.parameters, t = r.args.inverted, n = r.args.accent, o = K(t, n);
|
|
99
100
|
return /* @__PURE__ */ a(F, {
|
|
100
|
-
width:
|
|
101
|
-
height:
|
|
102
|
-
backgroundColor:
|
|
101
|
+
width: A?.width,
|
|
102
|
+
height: A?.height,
|
|
103
|
+
backgroundColor: o,
|
|
103
104
|
children: /* @__PURE__ */ a(e, {})
|
|
104
105
|
});
|
|
105
|
-
},
|
|
106
|
+
}, x = ({ groups: e, renderExample: r }) => /* @__PURE__ */ a("div", {
|
|
107
|
+
style: {
|
|
108
|
+
display: "grid",
|
|
109
|
+
gap: "var(--t-spacing-6)",
|
|
110
|
+
width: "100%"
|
|
111
|
+
},
|
|
112
|
+
children: e.map(({ label: A, examples: t }) => /* @__PURE__ */ l("section", {
|
|
113
|
+
"aria-label": A,
|
|
114
|
+
children: [/* @__PURE__ */ a(B, {
|
|
115
|
+
level: 3,
|
|
116
|
+
children: A
|
|
117
|
+
}), /* @__PURE__ */ a("div", {
|
|
118
|
+
style: {
|
|
119
|
+
display: "flex",
|
|
120
|
+
flexWrap: "wrap",
|
|
121
|
+
gap: "var(--t-spacing-6)",
|
|
122
|
+
marginTop: "var(--t-spacing-3)"
|
|
123
|
+
},
|
|
124
|
+
children: t.map((n) => /* @__PURE__ */ a("div", {
|
|
125
|
+
style: {
|
|
126
|
+
display: "grid",
|
|
127
|
+
gap: "var(--t-spacing-2)",
|
|
128
|
+
justifyItems: "start"
|
|
129
|
+
},
|
|
130
|
+
children: r(n)
|
|
131
|
+
}, n.label))
|
|
132
|
+
})]
|
|
133
|
+
}, A))
|
|
134
|
+
}), z = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAA/8AAEQgAFAAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMACwgICggHCwoJCg0MCw0RHBIRDw8RIhkaFBwpJCsqKCQnJy0yQDctMD0wJyc4TDk9Q0VISUgrNk9VTkZUQEdIRf/bAEMBDA0NEQ8RIRISIUUuJy5FRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRf/dAAQAAv/aAAwDAQACEQMRAD8Ava1q728otYY98joSCTgZrnbXWdTtrhrfVZXWLafmcAEkdgR/hVltQku9Q8+OIEBcGOT+ID0PY1ka1KH2u8ToqnPLbmIqG7u6LtbQ7RXBRec4Uck9eKXcPWsKDWVnhWSL5kYcFelSf2m3901POh8jP//QoyIAnTuKpXsY82NsksUyWPU5q/L9z8RVK++/F/uCsVsaEURwgA4HtT9x9TUcf3KfUGh//9k=", Y = (e) => Object.assign(new EventTarget(), {
|
|
106
135
|
media: e,
|
|
107
136
|
matches: !1,
|
|
108
137
|
onchange: null,
|
|
@@ -110,20 +139,21 @@ var q = {
|
|
|
110
139
|
},
|
|
111
140
|
removeListener: () => {
|
|
112
141
|
}
|
|
113
|
-
}),
|
|
114
|
-
const
|
|
115
|
-
return window.matchMedia = (
|
|
116
|
-
const t = _(
|
|
117
|
-
return w(
|
|
142
|
+
}), ee = (e) => {
|
|
143
|
+
const r = window.matchMedia;
|
|
144
|
+
return window.matchMedia = (A) => {
|
|
145
|
+
const t = _(r) ? r.call(window, A) : Y(A), n = e[A];
|
|
146
|
+
return w(n) && Object.defineProperty(t, "matches", { value: n }), t;
|
|
118
147
|
}, () => {
|
|
119
|
-
window.matchMedia =
|
|
148
|
+
window.matchMedia = r;
|
|
120
149
|
};
|
|
121
150
|
};
|
|
122
151
|
export {
|
|
123
152
|
q as A11Y_DEFER_COLOR_CONTRAST,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
153
|
+
z as AVATAR_URL_MOCK,
|
|
154
|
+
$ as CatalogDecorator,
|
|
155
|
+
P as ComponentDecorator,
|
|
127
156
|
F as ComponentStorybookLayout,
|
|
128
|
-
|
|
157
|
+
x as GroupedCatalog,
|
|
158
|
+
ee as overrideMediaQueryMatches
|
|
129
159
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as r } from "./Shortcut-Bp9iDdQg.js";
|
|
2
|
+
import { n as e } from "./OverflowingTextWithTooltip-BmUROIah.js";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
var v = ({ mode: o, children: t }) => /* @__PURE__ */ i(e.Provider, {
|
|
5
|
+
value: o,
|
|
6
|
+
children: t
|
|
7
|
+
}), f = (o) => r(o).text;
|
|
8
|
+
export {
|
|
9
|
+
v as n,
|
|
10
|
+
f as t
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=require("./Shortcut-N8TELGPI.cjs"),o=require("./OverflowingTextWithTooltip-Z2daM0_x.cjs");let i=require("react/jsx-runtime");var n=({mode:e,children:r})=>(0,i.jsx)(o.OverflowingTextTooltipModeContext.Provider,{value:e,children:r}),u=e=>t.getShortcutPresentation(e).text;Object.defineProperty(exports,"OverflowingTextTooltipModeProvider",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"formatShortcut",{enumerable:!0,get:function(){return u}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const S=require("./theme-1XkFz8Qu.cjs"),u=require("./isDefined-DS2Q42p5.cjs"),s=require("./doNotTranslate-CHE7WmRS.cjs");let a=require("@sniptt/guards"),c=require("react");var l=()=>{const r=globalThis.navigator?.userAgent;if(!(0,a.isString)(r))return"unknown";const e=r.toLowerCase();return e.includes("ios")||e.includes("iphone")||e.includes("ipad")?"ios":e.includes(s.doNotTranslate("mac os x"))||e.includes("macos")?"mac":e.includes("windows")?"windows":e.includes("android")?"android":e.includes("linux")?"linux":"unknown"},o=s.doNotTranslate("(max-width: 768px)"),f={getSnapshot:()=>!1,subscribe:()=>()=>{}},i=new WeakMap,g=r=>({getSnapshot:()=>r.matches,subscribe:e=>(r.addEventListener("change",e),()=>r.removeEventListener("change",e))}),y=r=>{const e=i.get(r);if(u.isDefined(e))return e;const t=new Map;return i.set(r,t),t},M=r=>{if(typeof window>"u"||!(0,a.isFunction)(window.matchMedia))return f;const e=y(window.matchMedia),t=e.get(r);if(u.isDefined(t))return t;const n=g(window.matchMedia(r));return e.set(r,n),n},m=()=>!1,d=r=>{const{subscribe:e,getSnapshot:t}=M(r);return(0,c.useSyncExternalStore)(e,t,m)},w=()=>d(o);Object.defineProperty(exports,"MOBILE_MEDIA_QUERY",{enumerable:!0,get:function(){return o}});Object.defineProperty(exports,"getUserDevice",{enumerable:!0,get:function(){return l}});Object.defineProperty(exports,"useIsMobile",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"useMediaQuery",{enumerable:!0,get:function(){return d}});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as s } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as a } from "./doNotTranslate-BSVT8Xyd.js";
|
|
3
|
+
import "./theme-B2EaXhye.js";
|
|
4
|
+
import { isFunction as o, isString as u } from "@sniptt/guards";
|
|
5
|
+
import { useSyncExternalStore as d } from "react";
|
|
6
|
+
var E = () => {
|
|
7
|
+
const r = globalThis.navigator?.userAgent;
|
|
8
|
+
if (!u(r)) return "unknown";
|
|
9
|
+
const e = r.toLowerCase();
|
|
10
|
+
return e.includes("ios") || e.includes("iphone") || e.includes("ipad") ? "ios" : e.includes(a("mac os x")) || e.includes("macos") ? "mac" : e.includes("windows") ? "windows" : e.includes("android") ? "android" : e.includes("linux") ? "linux" : "unknown";
|
|
11
|
+
}, c = a("(max-width: 768px)"), m = {
|
|
12
|
+
getSnapshot: () => !1,
|
|
13
|
+
subscribe: () => () => {
|
|
14
|
+
}
|
|
15
|
+
}, i = /* @__PURE__ */ new WeakMap(), f = (r) => ({
|
|
16
|
+
getSnapshot: () => r.matches,
|
|
17
|
+
subscribe: (e) => (r.addEventListener("change", e), () => r.removeEventListener("change", e))
|
|
18
|
+
}), l = (r) => {
|
|
19
|
+
const e = i.get(r);
|
|
20
|
+
if (s(e)) return e;
|
|
21
|
+
const t = /* @__PURE__ */ new Map();
|
|
22
|
+
return i.set(r, t), t;
|
|
23
|
+
}, w = (r) => {
|
|
24
|
+
if (typeof window > "u" || !o(window.matchMedia)) return m;
|
|
25
|
+
const e = l(window.matchMedia), t = e.get(r);
|
|
26
|
+
if (s(t)) return t;
|
|
27
|
+
const n = f(window.matchMedia(r));
|
|
28
|
+
return e.set(r, n), n;
|
|
29
|
+
}, S = () => !1, p = (r) => {
|
|
30
|
+
const { subscribe: e, getSnapshot: t } = w(r);
|
|
31
|
+
return d(e, t, S);
|
|
32
|
+
}, b = () => p(c);
|
|
33
|
+
export {
|
|
34
|
+
E as i,
|
|
35
|
+
p as n,
|
|
36
|
+
c as r,
|
|
37
|
+
b as t
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const doNotTranslate: <TValue>(value: TValue) => TValue;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { t as o } from "./doNotTranslate-BSVT8Xyd.js";
|
|
2
|
+
import { f as a, h } from "./theme-B2EaXhye.js";
|
|
3
|
+
import { i as c, n as m } from "./useIsMobile-D1ImfQnE.js";
|
|
4
|
+
import { z as l } from "zod";
|
|
5
|
+
var g = (r) => r.replace(/\d+$/, ""), f = l.enum(a), O = (r) => {
|
|
6
|
+
const e = f.safeParse(r ?? "");
|
|
7
|
+
return e.success ? e.data : h;
|
|
8
|
+
}, v = (r) => {
|
|
9
|
+
let e = 0;
|
|
10
|
+
for (let t = 0; t < r.length; t++) e = r.charCodeAt(t) + ((e << 5) - e);
|
|
11
|
+
return a[Math.abs(e) % a.length] ?? a[0];
|
|
12
|
+
}, S = ({ string: r, variant: e = 9, theme: t }) => {
|
|
13
|
+
if (e < 1 || e > 12) throw new Error(o("Variant must be between 1 and 12"));
|
|
14
|
+
const i = `${v(r)}${e}`;
|
|
15
|
+
return t.color[i];
|
|
16
|
+
}, T = () => {
|
|
17
|
+
const r = c();
|
|
18
|
+
return r === "mac" || r === "ios" ? "⌘" : o("Ctrl");
|
|
19
|
+
}, p = o("(hover: none) and (pointer: coarse)"), A = () => m(p), u = [
|
|
20
|
+
"http:",
|
|
21
|
+
"https:",
|
|
22
|
+
"mailto:",
|
|
23
|
+
"tel:"
|
|
24
|
+
], s = "https://same-origin-probe.invalid", n = (r) => {
|
|
25
|
+
if (r.startsWith("/")) try {
|
|
26
|
+
return new URL(r, s).origin === s;
|
|
27
|
+
} catch {
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const e = new URL(r);
|
|
32
|
+
return u.includes(e.protocol);
|
|
33
|
+
} catch {
|
|
34
|
+
return !1;
|
|
35
|
+
}
|
|
36
|
+
}, L = (r) => {
|
|
37
|
+
if (!r || r.trim().length === 0) return;
|
|
38
|
+
if (n(r)) return r;
|
|
39
|
+
if (r.startsWith("/")) return;
|
|
40
|
+
const e = `https://${r}`;
|
|
41
|
+
return n(e) ? e : void 0;
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
v as a,
|
|
45
|
+
f as c,
|
|
46
|
+
T as i,
|
|
47
|
+
g as l,
|
|
48
|
+
A as n,
|
|
49
|
+
S as o,
|
|
50
|
+
p as r,
|
|
51
|
+
O as s,
|
|
52
|
+
L as t
|
|
53
|
+
};
|