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 +1,60 @@
|
|
|
1
|
-
export declare const useToastContext: () => import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState
|
|
1
|
+
export declare const useToastContext: () => import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState> & {
|
|
2
|
+
lifecycle: {
|
|
3
|
+
mount: () => () => void;
|
|
4
|
+
isActive: () => boolean;
|
|
5
|
+
getCountdown: (id: string) => {
|
|
6
|
+
getSnapshot: () => {
|
|
7
|
+
duration: number;
|
|
8
|
+
remainingDuration: number;
|
|
9
|
+
revision: number;
|
|
10
|
+
isPaused: boolean;
|
|
11
|
+
};
|
|
12
|
+
subscribe: (listener: () => void) => () => void;
|
|
13
|
+
update: (nextConfiguration: {
|
|
14
|
+
duration: number;
|
|
15
|
+
durationRevision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
isProgress: boolean;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
stop: () => void;
|
|
23
|
+
} | undefined;
|
|
24
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
25
|
+
id: string;
|
|
26
|
+
key: symbol;
|
|
27
|
+
configuration: {
|
|
28
|
+
duration?: number;
|
|
29
|
+
isProgress?: boolean;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
};
|
|
32
|
+
}) => {
|
|
33
|
+
getSnapshot: () => {
|
|
34
|
+
duration: number;
|
|
35
|
+
remainingDuration: number;
|
|
36
|
+
revision: number;
|
|
37
|
+
isPaused: boolean;
|
|
38
|
+
};
|
|
39
|
+
subscribe: (listener: () => void) => () => void;
|
|
40
|
+
update: (nextConfiguration: {
|
|
41
|
+
duration: number;
|
|
42
|
+
durationRevision: number;
|
|
43
|
+
isPaused: boolean;
|
|
44
|
+
isProgress: boolean;
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
}) => void;
|
|
48
|
+
close: () => void;
|
|
49
|
+
stop: () => void;
|
|
50
|
+
};
|
|
51
|
+
removeRenderer: ({ id, key }: {
|
|
52
|
+
id: string;
|
|
53
|
+
key: symbol;
|
|
54
|
+
}) => void;
|
|
55
|
+
finishExit: ({ id, key }: {
|
|
56
|
+
id: string;
|
|
57
|
+
key: symbol;
|
|
58
|
+
}) => void;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -9,6 +9,13 @@ export declare const useToastCountdown: ({ duration, isPaused, }: {
|
|
|
9
9
|
isPaused: boolean;
|
|
10
10
|
};
|
|
11
11
|
clock: {
|
|
12
|
+
getSnapshot: () => {
|
|
13
|
+
duration: number;
|
|
14
|
+
remainingDuration: number;
|
|
15
|
+
revision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
};
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
12
19
|
update: (nextConfiguration: {
|
|
13
20
|
duration: number;
|
|
14
21
|
durationRevision: number;
|
|
@@ -20,4 +27,23 @@ export declare const useToastCountdown: ({ duration, isPaused, }: {
|
|
|
20
27
|
close: () => void;
|
|
21
28
|
stop: () => void;
|
|
22
29
|
};
|
|
30
|
+
setClock: import('react').Dispatch<import('react').SetStateAction<{
|
|
31
|
+
getSnapshot: () => {
|
|
32
|
+
duration: number;
|
|
33
|
+
remainingDuration: number;
|
|
34
|
+
revision: number;
|
|
35
|
+
isPaused: boolean;
|
|
36
|
+
};
|
|
37
|
+
subscribe: (listener: () => void) => () => void;
|
|
38
|
+
update: (nextConfiguration: {
|
|
39
|
+
duration: number;
|
|
40
|
+
durationRevision: number;
|
|
41
|
+
isPaused: boolean;
|
|
42
|
+
isProgress: boolean;
|
|
43
|
+
isActive: boolean;
|
|
44
|
+
onClose?: () => void;
|
|
45
|
+
}) => void;
|
|
46
|
+
close: () => void;
|
|
47
|
+
stop: () => void;
|
|
48
|
+
}>>;
|
|
23
49
|
};
|
|
@@ -1,3 +1,62 @@
|
|
|
1
1
|
import { Store } from '@base-ui/utils/store';
|
|
2
2
|
import { ToastStoreState } from '../types/ToastStoreState';
|
|
3
|
-
export declare const createToastStore: (limit?: number) => Store<ToastStoreState
|
|
3
|
+
export declare const createToastStore: (limit?: number) => Store<ToastStoreState> & {
|
|
4
|
+
lifecycle: {
|
|
5
|
+
mount: () => () => void;
|
|
6
|
+
isActive: () => boolean;
|
|
7
|
+
getCountdown: (id: string) => {
|
|
8
|
+
getSnapshot: () => {
|
|
9
|
+
duration: number;
|
|
10
|
+
remainingDuration: number;
|
|
11
|
+
revision: number;
|
|
12
|
+
isPaused: boolean;
|
|
13
|
+
};
|
|
14
|
+
subscribe: (listener: () => void) => () => void;
|
|
15
|
+
update: (nextConfiguration: {
|
|
16
|
+
duration: number;
|
|
17
|
+
durationRevision: number;
|
|
18
|
+
isPaused: boolean;
|
|
19
|
+
isProgress: boolean;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
}) => void;
|
|
23
|
+
close: () => void;
|
|
24
|
+
stop: () => void;
|
|
25
|
+
} | undefined;
|
|
26
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
27
|
+
id: string;
|
|
28
|
+
key: symbol;
|
|
29
|
+
configuration: {
|
|
30
|
+
duration?: number;
|
|
31
|
+
isProgress?: boolean;
|
|
32
|
+
isPaused: boolean;
|
|
33
|
+
};
|
|
34
|
+
}) => {
|
|
35
|
+
getSnapshot: () => {
|
|
36
|
+
duration: number;
|
|
37
|
+
remainingDuration: number;
|
|
38
|
+
revision: number;
|
|
39
|
+
isPaused: boolean;
|
|
40
|
+
};
|
|
41
|
+
subscribe: (listener: () => void) => () => void;
|
|
42
|
+
update: (nextConfiguration: {
|
|
43
|
+
duration: number;
|
|
44
|
+
durationRevision: number;
|
|
45
|
+
isPaused: boolean;
|
|
46
|
+
isProgress: boolean;
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
onClose?: () => void;
|
|
49
|
+
}) => void;
|
|
50
|
+
close: () => void;
|
|
51
|
+
stop: () => void;
|
|
52
|
+
};
|
|
53
|
+
removeRenderer: ({ id, key }: {
|
|
54
|
+
id: string;
|
|
55
|
+
key: symbol;
|
|
56
|
+
}) => void;
|
|
57
|
+
finishExit: ({ id, key }: {
|
|
58
|
+
id: string;
|
|
59
|
+
key: symbol;
|
|
60
|
+
}) => void;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const assertValidToastLimit: (limit: number) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store } from '@base-ui/utils/store';
|
|
2
|
+
import { ToastStoreState } from '../types/ToastStoreState';
|
|
2
3
|
import { ToastEntry } from '../types/ToastEntry';
|
|
3
4
|
export declare const completeToastExit: ({ store, toast, }: {
|
|
4
|
-
store:
|
|
5
|
+
store: Store<ToastStoreState>;
|
|
5
6
|
toast: ToastEntry;
|
|
6
7
|
}) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createToastCountdown } from './createToastCountdown';
|
|
2
|
+
type CountdownSnapshot = Parameters<Parameters<typeof createToastCountdown>[0]['onChange']>[0];
|
|
3
|
+
export declare const createToastCountdownStore: ({ duration, isPaused, }: Pick<CountdownSnapshot, "duration" | "isPaused">) => {
|
|
4
|
+
getSnapshot: () => {
|
|
5
|
+
duration: number;
|
|
6
|
+
remainingDuration: number;
|
|
7
|
+
revision: number;
|
|
8
|
+
isPaused: boolean;
|
|
9
|
+
};
|
|
10
|
+
subscribe: (listener: () => void) => () => void;
|
|
11
|
+
update: (nextConfiguration: {
|
|
12
|
+
duration: number;
|
|
13
|
+
durationRevision: number;
|
|
14
|
+
isPaused: boolean;
|
|
15
|
+
isProgress: boolean;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
}) => void;
|
|
19
|
+
close: () => void;
|
|
20
|
+
stop: () => void;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Store } from '@base-ui/utils/store';
|
|
2
|
+
import { ToastStoreState } from '../types/ToastStoreState';
|
|
3
|
+
type RendererConfiguration = {
|
|
4
|
+
duration?: number;
|
|
5
|
+
isProgress?: boolean;
|
|
6
|
+
isPaused: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const createToastLifecycle: (store: Store<ToastStoreState>) => {
|
|
9
|
+
mount: () => () => void;
|
|
10
|
+
isActive: () => boolean;
|
|
11
|
+
getCountdown: (id: string) => {
|
|
12
|
+
getSnapshot: () => {
|
|
13
|
+
duration: number;
|
|
14
|
+
remainingDuration: number;
|
|
15
|
+
revision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
};
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
update: (nextConfiguration: {
|
|
20
|
+
duration: number;
|
|
21
|
+
durationRevision: number;
|
|
22
|
+
isPaused: boolean;
|
|
23
|
+
isProgress: boolean;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
}) => void;
|
|
27
|
+
close: () => void;
|
|
28
|
+
stop: () => void;
|
|
29
|
+
} | undefined;
|
|
30
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
31
|
+
id: string;
|
|
32
|
+
key: symbol;
|
|
33
|
+
configuration: RendererConfiguration;
|
|
34
|
+
}) => {
|
|
35
|
+
getSnapshot: () => {
|
|
36
|
+
duration: number;
|
|
37
|
+
remainingDuration: number;
|
|
38
|
+
revision: number;
|
|
39
|
+
isPaused: boolean;
|
|
40
|
+
};
|
|
41
|
+
subscribe: (listener: () => void) => () => void;
|
|
42
|
+
update: (nextConfiguration: {
|
|
43
|
+
duration: number;
|
|
44
|
+
durationRevision: number;
|
|
45
|
+
isPaused: boolean;
|
|
46
|
+
isProgress: boolean;
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
onClose?: () => void;
|
|
49
|
+
}) => void;
|
|
50
|
+
close: () => void;
|
|
51
|
+
stop: () => void;
|
|
52
|
+
};
|
|
53
|
+
removeRenderer: ({ id, key }: {
|
|
54
|
+
id: string;
|
|
55
|
+
key: symbol;
|
|
56
|
+
}) => void;
|
|
57
|
+
finishExit: ({ id, key }: {
|
|
58
|
+
id: string;
|
|
59
|
+
key: symbol;
|
|
60
|
+
}) => void;
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store } from '@base-ui/utils/store';
|
|
2
|
+
import { ToastStoreState } from '../types/ToastStoreState';
|
|
2
3
|
import { ToastEntry } from '../types/ToastEntry';
|
|
3
4
|
export declare const dismissToasts: ({ store, toastsToClose, nextToasts, }: {
|
|
4
|
-
store:
|
|
5
|
+
store: Store<ToastStoreState>;
|
|
5
6
|
toastsToClose: ToastEntry[];
|
|
6
7
|
nextToasts?: ToastEntry[];
|
|
7
8
|
}) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterLifecycleControlsProps = Pick<ToasterLifecycleExampleProps, 'duration' | 'hasUnrelatedNotificationActions' | 'onClose'> & {
|
|
3
|
+
onDetachRenderers: () => void;
|
|
4
|
+
onRememberProviderOperations?: (operations: () => void) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ToasterLifecycleControls: ({ duration, hasUnrelatedNotificationActions, onClose, onDetachRenderers, onRememberProviderOperations, }: ToasterLifecycleControlsProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
export declare const ToasterLifecycleExample: ({ duration, hasIndependentProvider, hasSlowMirrorExit, hasUnrelatedNotificationActions, onClose, }: ToasterLifecycleExampleProps) => import("react").JSX.Element;
|
package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToastProps } from '../../Toast/types/ToastProps';
|
|
2
|
+
type ToasterLifecycleTimingOverrideExampleProps = {
|
|
3
|
+
duration?: number;
|
|
4
|
+
progress?: number;
|
|
5
|
+
initialTimingOverrides: Pick<Partial<ToastProps>, 'duration' | 'progress'>;
|
|
6
|
+
onClose?: (notification: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const ToasterLifecycleTimingOverrideExample: ({ duration, progress, initialTimingOverrides, onClose, }: ToasterLifecycleTimingOverrideExampleProps) => import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type ToasterLifecycleUnrelatedNotificationActionsProps = {
|
|
2
|
+
onClose?: (notification: string) => void;
|
|
3
|
+
};
|
|
4
|
+
export declare const ToasterLifecycleUnrelatedNotificationActions: ({ onClose, }: ToasterLifecycleUnrelatedNotificationActionsProps) => import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterProviderLayoutReplayEffectProps = Pick<ToasterLifecycleExampleProps, 'onClose'>;
|
|
3
|
+
export declare const ToasterProviderLayoutReplayEffect: ({ onClose, }: ToasterProviderLayoutReplayEffectProps) => null;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterProviderPassiveReplayEffectProps = Pick<ToasterLifecycleExampleProps, 'onClose'>;
|
|
3
|
+
export declare const ToasterProviderPassiveReplayEffect: ({ onClose, }: ToasterProviderPassiveReplayEffectProps) => null;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ToasterLifecycleExampleProps } from './ToasterLifecycleExampleProps';
|
|
2
|
+
type ToasterProviderSuspenseExampleProps = Pick<ToasterLifecycleExampleProps, 'duration' | 'onClose'>;
|
|
3
|
+
export declare const ToasterProviderSuspenseExample: ({ duration, onClose, }: ToasterProviderSuspenseExampleProps) => import("react").JSX.Element;
|
|
4
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { ToastEntry } from '../../Toast/internal/types/ToastEntry';
|
|
|
3
3
|
type ToasterItemExitEffectProps = {
|
|
4
4
|
elementRef: RefObject<HTMLDivElement | null>;
|
|
5
5
|
toastEntry: ToastEntry;
|
|
6
|
+
rendererKey: symbol;
|
|
6
7
|
};
|
|
7
|
-
export declare const ToasterItemExitEffect: ({ elementRef, toastEntry, }: ToasterItemExitEffectProps) =>
|
|
8
|
+
export declare const ToasterItemExitEffect: ({ elementRef, toastEntry, rendererKey, }: ToasterItemExitEffectProps) => null;
|
|
8
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../feedback-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../feedback-Cs-38OH4.cjs");exports.Callout=e.Callout;exports.InlineBanner=e.InlineBanner;exports.Toast=e.Toast;exports.ToastProvider=e.ToastProvider;exports.Toaster=e.Toaster;exports.useToast=e.useToast;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const CountrySelect: (({ countries, value, defaultValue, onValueChange, disabled, noCountryLabel, ...props }: import('..').CountrySelectProps) => import("react").JSX.Element) & {
|
|
2
|
+
Root: ({ countries, value: controlledValue, defaultValue, onValueChange, disabled, noCountryLabel, children, }: import('..').CountrySelectRootProps) => import("react").JSX.Element;
|
|
3
|
+
Trigger: ({ label, wrapperProps, children, className, style, render, onClick, onMouseDown, onPointerDown, onKeyDown, onKeyUp, openOnHover, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }: import('..').CountrySelectTriggerProps) => import("react").JSX.Element;
|
|
4
|
+
Options: (props: import('..').CountrySelectOptionsProps) => import("react").JSX.Element;
|
|
5
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CountrySelectProps } from '../types/CountrySelectProps';
|
|
2
|
+
type CountrySelectPartsExampleProps = Pick<CountrySelectProps, 'onValueChange' | 'onOpenChange'> & {
|
|
3
|
+
compound?: boolean;
|
|
4
|
+
controlled?: boolean;
|
|
5
|
+
cancelSelection?: boolean;
|
|
6
|
+
closeOnSelect?: boolean;
|
|
7
|
+
keepMounted?: boolean;
|
|
8
|
+
openOnHover?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const CountrySelectPartsExample: ({ compound, controlled, cancelSelection, closeOnSelect, keepMounted, openOnHover, onValueChange, onOpenChange, }: CountrySelectPartsExampleProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CountrySelectRootProps } from '../types/CountrySelectRootProps';
|
|
2
|
+
import { PreparedCountryChoice } from './PreparedCountryChoice';
|
|
3
|
+
export type CountrySelectContextValue = {
|
|
4
|
+
countries: readonly PreparedCountryChoice[];
|
|
5
|
+
selectedCountry: PreparedCountryChoice | undefined;
|
|
6
|
+
value: string | null;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
noCountryLabel: string;
|
|
9
|
+
selectionGroupId: string;
|
|
10
|
+
changeValue: NonNullable<CountrySelectRootProps['onValueChange']>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CountrySelectProps } from '../types/CountrySelectProps';
|
|
2
|
+
type CountrySelectDropdownProps = Omit<CountrySelectProps, 'countries' | 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'noCountryLabel'>;
|
|
3
|
+
export declare const CountrySelectDropdown: ({ open: controlledOpen, defaultOpen, onOpenChange, onEscapeKeyDown, onInteractOutside, defaultPage, popupProps, optionsProps, searchLabel, noResultsLabel, searchProps, closeOnSelect, ...triggerProps }: CountrySelectDropdownProps) => import("react").JSX.Element;
|
|
4
|
+
export {};
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
countries: readonly CountryChoice[];
|
|
4
|
-
value: string;
|
|
5
|
-
onValueChange: (value: string) => void;
|
|
6
|
-
searchLabel: string;
|
|
7
|
-
noCountryLabel: string;
|
|
8
|
-
noResultsLabel: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const CountrySelectOptions: ({ countries, value, onValueChange, searchLabel, noCountryLabel, noResultsLabel, }: CountrySelectOptionsProps) => import("react").JSX.Element;
|
|
11
|
-
export {};
|
|
1
|
+
import { CountrySelectOptionsProps } from '../types/CountrySelectOptionsProps';
|
|
2
|
+
export declare const CountrySelectOptions: (props: CountrySelectOptionsProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CountrySelectTriggerProps } from '../types/CountrySelectTriggerProps';
|
|
2
|
+
export declare const CountrySelectTrigger: ({ label, wrapperProps, children, className, style, render, onClick, onMouseDown, onPointerDown, onKeyDown, onKeyUp, openOnHover, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }: CountrySelectTriggerProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NO_COUNTRY_SELECTION_VALUE = "no-country";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCountrySelectionValue: (value: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useCountrySelectContextOrThrow: () => import('./CountrySelectContextValue').CountrySelectContextValue;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { DropdownSearchProps } from '../../../navigation/Dropdown/types/DropdownSearchProps';
|
|
3
|
+
import { DropdownSelectionGroupProps } from '../../../navigation/Dropdown/types/DropdownSelectionGroupProps';
|
|
4
|
+
import { CountrySelectOptionsState } from './CountrySelectOptionsState';
|
|
5
|
+
export type CountrySelectOptionsProps = Omit<DropdownSelectionGroupProps, 'id' | 'children' | 'multiple' | 'value' | 'defaultValue' | 'onValueChange' | 'render'> & {
|
|
6
|
+
render?: useRender.ComponentProps<'div', CountrySelectOptionsState>['render'];
|
|
7
|
+
searchLabel?: string;
|
|
8
|
+
noResultsLabel?: string;
|
|
9
|
+
searchProps?: Omit<DropdownSearchProps, 'value' | 'defaultValue' | 'onValueChange'>;
|
|
10
|
+
};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { DropdownContentProps } from '../../../navigation/Dropdown/types/DropdownContentProps';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
searchLabel?: string;
|
|
10
|
-
noCountryLabel?: string;
|
|
11
|
-
noResultsLabel?: string;
|
|
12
|
-
open?: boolean;
|
|
13
|
-
onOpenChange?: (open: boolean) => void;
|
|
14
|
-
popupProps?: Omit<DropdownContentProps, 'children' | 'aria-label' | 'aria-labelledby' | 'keepMounted'>;
|
|
2
|
+
import { DropdownRootProps } from '../../../navigation/Dropdown/types/DropdownRootProps';
|
|
3
|
+
import { CountrySelectRootProps } from './CountrySelectRootProps';
|
|
4
|
+
import { CountrySelectTriggerProps } from './CountrySelectTriggerProps';
|
|
5
|
+
import { CountrySelectOptionsProps } from './CountrySelectOptionsProps';
|
|
6
|
+
export type CountrySelectProps = Omit<CountrySelectRootProps, 'children'> & CountrySelectTriggerProps & Omit<DropdownRootProps, 'children' | 'type' | 'multiple'> & Pick<CountrySelectOptionsProps, 'searchLabel' | 'noResultsLabel' | 'searchProps' | 'closeOnSelect'> & {
|
|
7
|
+
popupProps?: Omit<DropdownContentProps, 'children'>;
|
|
8
|
+
optionsProps?: Omit<CountrySelectOptionsProps, 'searchLabel' | 'noResultsLabel' | 'searchProps' | 'closeOnSelect'>;
|
|
15
9
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DropdownSelectionGroupChangeEventDetails } from '../../../navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails';
|
|
3
|
+
import { CountryChoice } from './CountryChoice';
|
|
4
|
+
export type CountrySelectRootProps = {
|
|
5
|
+
countries: readonly CountryChoice[];
|
|
6
|
+
value?: string | null;
|
|
7
|
+
defaultValue?: string | null;
|
|
8
|
+
onValueChange?: (value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
noCountryLabel?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { DropdownTriggerProps } from '../../../navigation/Dropdown/types/DropdownTriggerProps';
|
|
3
|
+
export type CountrySelectTriggerProps = Omit<DropdownTriggerProps, 'value' | 'defaultValue' | 'onChange' | 'disabled'> & {
|
|
4
|
+
label?: string;
|
|
5
|
+
wrapperProps?: Omit<ComponentPropsWithRef<'div'>, 'children'>;
|
|
6
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const CurrencyPicker: {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const CurrencyPicker: (({ currencies, value, defaultValue, onValueChange, closeOnSelect, disabled, selectedFirst, getOptionLabel, getSearchText, renderValue, open, defaultOpen, onOpenChange, onEscapeKeyDown, onInteractOutside, triggerProps, contentProps, optionsProps, ...props }: import('..').CurrencyPickerProps) => import("react").JSX.Element) & {
|
|
2
|
+
Root: ({ currencies, value: controlledValue, defaultValue, onValueChange, closeOnSelect, disabled, selectedFirst, getOptionLabel, getSearchText, renderValue, children, }: import('..').CurrencyPickerRootProps) => import("react").JSX.Element;
|
|
3
|
+
Trigger: ({ children, placeholder, disabled, className, ...props }: import('..').CurrencyPickerTriggerProps) => import("react").JSX.Element;
|
|
4
|
+
Options: ({ disabled, searchable, searchLabel, listLabel, emptyLabel, searchProps, className, render, ref, ...props }: import('..').CurrencyPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
4
5
|
};
|
package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { CurrencyPickerExample } from './CurrencyPickerExample';
|
|
3
|
+
type CurrencyPickerChangingDefaultExampleProps = Pick<ComponentProps<typeof CurrencyPickerExample>, 'onValueChange' | 'composition'>;
|
|
4
|
+
export declare const CurrencyPickerChangingDefaultExample: ({ onValueChange, composition, }: CurrencyPickerChangingDefaultExampleProps) => import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { CurrencyPickerExample } from './CurrencyPickerExample';
|
|
3
|
+
type CurrencyPickerControlledExampleProps = Pick<ComponentProps<typeof CurrencyPickerExample>, 'onValueChange' | 'composition'>;
|
|
4
|
+
export declare const CurrencyPickerControlledExample: ({ onValueChange, composition, }: CurrencyPickerControlledExampleProps) => import("react").JSX.Element;
|
|
5
|
+
export {};
|
package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { CurrencyPickerExample } from './CurrencyPickerExample';
|
|
3
|
+
type CurrencyPickerControlledSearchExampleProps = Pick<ComponentProps<typeof CurrencyPickerExample>, 'onValueChange' | 'composition'>;
|
|
4
|
+
export declare const CurrencyPickerControlledSearchExample: ({ onValueChange, composition, }: CurrencyPickerControlledSearchExampleProps) => import("react").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { CurrencyPicker } from '../CurrencyPicker';
|
|
3
|
-
type CurrencyPickerExampleProps = Pick<ComponentProps<typeof CurrencyPicker
|
|
4
|
-
|
|
5
|
-
disabled?: boolean;
|
|
3
|
+
type CurrencyPickerExampleProps = Pick<ComponentProps<typeof CurrencyPicker>, 'currencies' | 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'closeOnSelect' | 'selectedFirst' | 'getOptionLabel' | 'getSearchText' | 'renderValue'> & Pick<ComponentProps<typeof CurrencyPicker.Options>, 'searchLabel' | 'emptyLabel' | 'searchable' | 'searchProps' | 'dir'> & {
|
|
4
|
+
composition?: 'shorthand' | 'compound';
|
|
6
5
|
optionsDisabled?: boolean;
|
|
7
6
|
defaultOpen?: boolean;
|
|
8
7
|
triggerLabel?: string;
|
|
9
8
|
};
|
|
10
|
-
export declare const CurrencyPickerExample: ({ currencies, defaultValue, disabled, optionsDisabled, defaultOpen, triggerLabel, searchLabel, emptyLabel, onValueChange, dir, }: Partial<CurrencyPickerExampleProps>) => import("react").JSX.Element;
|
|
9
|
+
export declare const CurrencyPickerExample: ({ currencies, value, defaultValue, disabled, optionsDisabled, defaultOpen, triggerLabel, composition, selectedFirst, closeOnSelect, getOptionLabel, getSearchText, renderValue, searchLabel, searchProps, emptyLabel, searchable, onValueChange, dir, }: Partial<CurrencyPickerExampleProps>) => import("react").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CurrencyPickerListLabelExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CurrencyPickerRootStateExample: () => import("react").JSX.Element;
|