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.
Files changed (336) hide show
  1. package/README.md +27 -2
  2. package/dist/{AllIcons-DrlkKKQf.cjs → AllIcons-Cyd7721G.cjs} +1 -1
  3. package/dist/{AllIcons-G3nKeM41.js → AllIcons-D132B8_i.js} +1 -1
  4. package/dist/Avatar-C6WxBgjS.cjs +1 -0
  5. package/dist/{Avatar-D-QA0RE5.js → Avatar-ifVlxbx_.js} +18 -17
  6. package/dist/{Button-Cs07psdD.js → Button-DIw804CX.js} +1 -1
  7. package/dist/{Button-COxEKIHL.cjs → Button-DTm1WDzp.cjs} +1 -1
  8. package/dist/Dropdown-1OAJvS1f.js +1000 -0
  9. package/dist/Dropdown-Bl4OXCf9.cjs +1 -0
  10. package/dist/{ListItem-CXu35dzp.js → ListItem-DizNUBT8.js} +4 -4
  11. package/dist/{ListItem-q6DHGlev.cjs → ListItem-DwBb-I1D.cjs} +1 -1
  12. package/dist/ListItem.module-BJ9Ttjrc.js +34 -0
  13. package/dist/ListItem.module-CO4u2oeF.cjs +1 -0
  14. package/dist/OverflowingTextWithTooltip-BmUROIah.js +90 -0
  15. package/dist/OverflowingTextWithTooltip-Z2daM0_x.cjs +1 -0
  16. package/dist/{ProgressBar-D_3Gia0E.js → ProgressBar-B3xACTV2.js} +1 -1
  17. package/dist/{ProgressBar-oF1qVHFx.cjs → ProgressBar-OpSMnDBz.cjs} +1 -1
  18. package/dist/{Radio-BMoQHDe7.js → Radio-BEAztmPu.js} +1 -1
  19. package/dist/{Radio-D_YUizSv.cjs → Radio-Dx6b4SYZ.cjs} +1 -1
  20. package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
  21. package/dist/{ResizeHandle-Bjg4R0c-.js → ResizeHandle-B30OYZxS.js} +57 -55
  22. package/dist/Shortcut-Bp9iDdQg.js +73 -0
  23. package/dist/Shortcut-N8TELGPI.cjs +1 -0
  24. package/dist/TabsTabContent-Co27Y2TU.cjs +1 -0
  25. package/dist/TabsTabContent-DVcObDp6.js +39 -0
  26. package/dist/{TintedIconTile-4BGa8g8n.js → TintedIconTile-B1XDtGrF.js} +1 -1
  27. package/dist/{TintedIconTile-CU2hCerq.cjs → TintedIconTile-DO1XJXCQ.cjs} +1 -1
  28. package/dist/Tooltip-Bg9Uk01p.cjs +1 -0
  29. package/dist/Tooltip-cLCgtFBF.js +124 -0
  30. package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
  31. package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
  32. package/dist/components/code-editor/CodeEditor/__stories__/ControlledCodeEditor.d.ts +2 -0
  33. package/dist/components/code-editor/CodeEditor/__stories__/ModelCodeEditor.d.ts +2 -0
  34. package/dist/components/code-editor/CodeEditor/__stories__/ResizableCodeEditor.d.ts +2 -0
  35. package/dist/components/code-editor/CodeEditor/__stories__/ThemedCodeEditor.d.ts +2 -0
  36. package/dist/components/code-editor/CodeEditor/__stories__/UnmountingCodeEditor.d.ts +2 -0
  37. package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +4 -1
  38. package/dist/components/code-editor/CodeEditor/internal/CodeEditorAutoHeightEffect.d.ts +9 -0
  39. package/dist/components/code-editor/CodeEditor/internal/CodeEditorLifecycleEffect.d.ts +11 -0
  40. package/dist/components/code-editor/CodeEditor/internal/CodeEditorLoaderConfigurationEffect.d.ts +7 -0
  41. package/dist/components/code-editor/CodeEditor/internal/CodeEditorMarkersEffect.d.ts +10 -0
  42. package/dist/components/code-editor/CodeEditor/internal/CodeEditorResizableHeightEffect.d.ts +11 -0
  43. package/dist/components/code-editor/CodeEditor/internal/CodeEditorThemeEffect.d.ts +10 -0
  44. package/dist/components/code-editor/CodeEditor/internal/constants/CodeEditorDefaultHeight.d.ts +1 -0
  45. package/dist/components/code-editor/CodeEditor/internal/types/ResizedCodeEditorHeight.d.ts +4 -0
  46. package/dist/components/code-editor/CodeEditor/internal/useCodeEditorHeight.d.ts +13 -0
  47. package/dist/components/code-editor/CodeEditor/internal/utils/defineCodeEditorDefaultTheme.d.ts +7 -0
  48. package/dist/components/code-editor/CodeEditor/internal/utils/getBaseCodeEditorTheme.d.ts +4 -1
  49. package/dist/components/code-editor/CodeEditor/internal/utils/getBoundedCodeEditorHeight.d.ts +1 -0
  50. package/dist/components/code-editor/CodeEditor/internal/utils/getCurrentCodeEditorHeight.d.ts +7 -0
  51. package/dist/components/code-editor/CodeEditor/internal/utils/getResizableCodeEditorHeight.d.ts +5 -0
  52. package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +4 -2
  53. package/dist/components/code-editor.cjs +1 -1
  54. package/dist/components/code-editor.mjs +268 -155
  55. package/dist/components/data-display.cjs +1 -1
  56. package/dist/components/data-display.mjs +2 -2
  57. package/dist/components/feedback/Toast/internal/components/ToastCountdownEffect.d.ts +4 -3
  58. package/dist/components/feedback/Toast/internal/components/ToastProviderLifecycleEffect.d.ts +3 -0
  59. package/dist/components/feedback/Toast/internal/constants/DefaultToastDuration.d.ts +1 -0
  60. package/dist/components/feedback/Toast/internal/contexts/ToastContext.d.ts +60 -1
  61. package/dist/components/feedback/Toast/internal/contexts/ToastTimingContext.d.ts +12 -2
  62. package/dist/components/feedback/Toast/internal/hooks/useToastContext.d.ts +60 -1
  63. package/dist/components/feedback/Toast/internal/hooks/useToastCountdown.d.ts +26 -0
  64. package/dist/components/feedback/Toast/internal/stores/createToastStore.d.ts +60 -1
  65. package/dist/components/feedback/Toast/internal/utils/assertValidToastLimit.d.ts +1 -0
  66. package/dist/components/feedback/Toast/internal/utils/completeToastExit.d.ts +3 -2
  67. package/dist/components/feedback/Toast/internal/utils/createToastCountdownStore.d.ts +22 -0
  68. package/dist/components/feedback/Toast/internal/utils/createToastLifecycle.d.ts +62 -0
  69. package/dist/components/feedback/Toast/internal/utils/dismissToasts.d.ts +3 -2
  70. package/dist/components/feedback/Toast/internal/utils/updateToastLimit.d.ts +5 -0
  71. package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleControls.d.ts +7 -0
  72. package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExample.d.ts +2 -0
  73. package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExampleProps.d.ts +7 -0
  74. package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts +9 -0
  75. package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleUnrelatedNotificationActions.d.ts +5 -0
  76. package/dist/components/feedback/Toaster/__stories__/ToasterPortalExample.d.ts +5 -0
  77. package/dist/components/feedback/Toaster/__stories__/ToasterProviderLayoutReplayEffect.d.ts +4 -0
  78. package/dist/components/feedback/Toaster/__stories__/ToasterProviderPassiveReplayEffect.d.ts +4 -0
  79. package/dist/components/feedback/Toaster/__stories__/ToasterProviderReplayExample.d.ts +6 -0
  80. package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspenseExample.d.ts +4 -0
  81. package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspension.d.ts +5 -0
  82. package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +2 -1
  83. package/dist/components/feedback.cjs +1 -1
  84. package/dist/components/feedback.mjs +1 -1
  85. package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
  86. package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
  87. package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
  88. package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
  89. package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
  90. package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
  91. package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
  92. package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
  93. package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
  94. package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
  95. package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
  96. package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
  97. package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
  98. package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
  99. package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
  100. package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
  101. package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
  102. package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
  103. package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
  104. package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
  105. package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
  106. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
  107. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
  108. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
  109. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
  110. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
  111. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
  112. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
  113. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
  114. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
  115. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
  116. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
  117. package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
  118. package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
  119. package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
  120. package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
  121. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
  122. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
  123. package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
  124. package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
  125. package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
  126. package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
  127. package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
  128. package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
  129. package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
  130. package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
  131. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
  132. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
  133. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
  134. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
  135. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
  136. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
  137. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
  138. package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
  139. package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
  140. package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
  141. package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
  142. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
  143. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
  144. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
  145. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
  146. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
  147. package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
  148. package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -3
  149. package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
  150. package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
  151. package/dist/components/input/SegmentedControl/types/SegmentedControlSize.d.ts +1 -0
  152. package/dist/components/input/index.d.ts +11 -0
  153. package/dist/components/input.cjs +1 -1
  154. package/dist/components/input.mjs +13 -13
  155. package/dist/components/layout/OverflowingList/OverflowingList.d.ts +1 -1
  156. package/dist/components/layout/OverflowingList/__stories__/OverflowingListActionsExample.d.ts +7 -0
  157. package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts +1 -0
  158. package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts +1 -0
  159. package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledStateExample.d.ts +1 -0
  160. package/dist/components/layout/OverflowingList/__stories__/OverflowingListDisabledTriggerFocusExample.d.ts +1 -0
  161. package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts +7 -0
  162. package/dist/components/layout/OverflowingList/__stories__/OverflowingListFocusExample.d.ts +1 -0
  163. package/dist/components/layout/OverflowingList/__stories__/OverflowingListInstanceCleanupExample.d.ts +1 -0
  164. package/dist/components/layout/OverflowingList/__stories__/OverflowingListStateExample.d.ts +1 -0
  165. package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts +1 -0
  166. package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +8 -2
  167. package/dist/components/layout/OverflowingList/internal/OverflowingListItemFocusEffect.d.ts +8 -0
  168. package/dist/components/layout/OverflowingList/internal/OverflowingListLayoutEffect.d.ts +16 -0
  169. package/dist/components/layout/OverflowingList/internal/OverflowingListPopupTarget.d.ts +10 -0
  170. package/dist/components/layout/OverflowingList/internal/focusOverflowingListFallback.d.ts +8 -0
  171. package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
  172. package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +9 -0
  173. package/dist/components/layout/OverflowingList/internal/types/OverflowingListLayout.d.ts +4 -0
  174. package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -1
  175. package/dist/components/layout/OverflowingList/internal/useOverflowingListFocus.d.ts +30 -0
  176. package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +6 -6
  177. package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -2
  178. package/dist/components/layout.cjs +1 -1
  179. package/dist/components/layout.mjs +1 -1
  180. package/dist/components/navigation/Dropdown/Dropdown.d.ts +5 -4
  181. package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
  182. package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
  183. package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
  184. package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
  185. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +12 -6
  186. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
  187. package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
  188. package/dist/components/navigation/Dropdown/internal/DropdownRowFocus.d.ts +5 -0
  189. package/dist/components/navigation/Dropdown/internal/DropdownRowsEffect.d.ts +5 -0
  190. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
  191. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
  192. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
  193. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
  194. package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
  195. package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
  196. package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
  197. package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +5 -0
  198. package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
  199. package/dist/components/navigation/Dropdown/internal/getDropdownRows.d.ts +1 -0
  200. package/dist/components/navigation/Dropdown/internal/getDropdownSearch.d.ts +1 -0
  201. package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
  202. package/dist/components/navigation/Dropdown/internal/getDropdownTabStopRowId.d.ts +4 -0
  203. package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
  204. package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +2 -1
  205. package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
  206. package/dist/components/navigation/Dropdown/internal/isDropdownRow.d.ts +4 -0
  207. package/dist/components/navigation/Dropdown/internal/isEnabledDropdownItem.d.ts +4 -0
  208. package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +0 -1
  209. package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +1 -6
  210. package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
  211. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
  212. package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
  213. package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
  214. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
  215. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
  216. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
  217. package/dist/components/navigation/index.d.ts +5 -0
  218. package/dist/components/navigation.cjs +1 -1
  219. package/dist/components/navigation.mjs +2 -2
  220. package/dist/components/settings.cjs +1 -1
  221. package/dist/components/settings.mjs +1 -1
  222. package/dist/components.cjs +1 -1
  223. package/dist/components.mjs +22 -22
  224. package/dist/data-display-BSKGlijb.cjs +1 -0
  225. package/dist/{data-display-DU3G8ZyI.js → data-display-BtXCGOGw.js} +82 -81
  226. package/dist/data-display-DtXIhJ4B.js +184 -0
  227. package/dist/data-display-XV3ht1rC.cjs +2 -0
  228. package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
  229. package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
  230. package/dist/feedback-Cs-38OH4.cjs +1 -0
  231. package/dist/feedback-DTyVVcTb.js +665 -0
  232. package/dist/icon/components/TablerIcons.d.ts +1 -1
  233. package/dist/icon/constants/TwentyIconDictionary.d.ts +7 -7
  234. package/dist/icon/index.d.ts +1 -1
  235. package/dist/{icon-JuDK6Wxr.cjs → icon-BNcdwwdl.cjs} +1 -1
  236. package/dist/{icon-BdXwnJA6.js → icon-CUE-QGQK.js} +129 -128
  237. package/dist/icon.cjs +1 -1
  238. package/dist/icon.mjs +77 -76
  239. package/dist/index.cjs +1 -1
  240. package/dist/index.mjs +222 -220
  241. package/dist/{input-Bnu5kNjg.cjs → input-B_rBplmn.cjs} +1 -1
  242. package/dist/input-BrjD91wv.js +785 -0
  243. package/dist/input-ChlFcqIS.cjs +1 -0
  244. package/dist/{input-vl6yK36n.js → input-D1oyk0tD.js} +4 -4
  245. package/dist/layout-CthYckvl.cjs +1 -0
  246. package/dist/layout-DQcjBu08.js +439 -0
  247. package/dist/{navigation-itBinyPi.js → navigation-B6nka3bW.js} +127 -130
  248. package/dist/navigation-CIVYqPc5.js +132 -0
  249. package/dist/navigation-CflGBYv-.cjs +1 -0
  250. package/dist/navigation-DoInK0Sp.cjs +1 -0
  251. package/dist/preventDismissingClickActivation-AaqHBLnW.js +45 -0
  252. package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +1 -0
  253. package/dist/primitives/data-display.cjs +1 -1
  254. package/dist/primitives/data-display.mjs +2 -2
  255. package/dist/primitives/feedback.cjs +1 -1
  256. package/dist/primitives/feedback.mjs +1 -1
  257. package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
  258. package/dist/primitives/input.cjs +1 -1
  259. package/dist/primitives/input.mjs +3 -3
  260. package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
  261. package/dist/primitives/layout.cjs +1 -1
  262. package/dist/primitives/layout.mjs +1 -1
  263. package/dist/primitives/navigation.cjs +1 -1
  264. package/dist/primitives/navigation.mjs +2 -2
  265. package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
  266. package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
  267. package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +2 -0
  268. package/dist/primitives/surfaces.cjs +1 -1
  269. package/dist/primitives/surfaces.mjs +2 -2
  270. package/dist/primitives/typography/OverflowingTextWithTooltip/OverflowingTextTooltipModeProvider.d.ts +6 -0
  271. package/dist/primitives/typography/OverflowingTextWithTooltip/internal/OverflowingTextTooltipModeContext.d.ts +2 -0
  272. package/dist/primitives/typography/OverflowingTextWithTooltip/internal/isElementOverflowing.d.ts +1 -0
  273. package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextTooltipMode.d.ts +1 -0
  274. package/dist/primitives/typography/Shortcut/Shortcut.d.ts +1 -1
  275. package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +1 -1
  276. package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +1 -0
  277. package/dist/primitives/typography/index.d.ts +2 -0
  278. package/dist/primitives/typography.cjs +1 -1
  279. package/dist/primitives/typography.mjs +10 -9
  280. package/dist/primitives.cjs +1 -1
  281. package/dist/primitives.mjs +37 -36
  282. package/dist/{settings-CC-2gcAx.js → settings-BgVuLpg9.js} +1 -1
  283. package/dist/{settings-BiSAY2oN.cjs → settings-CPXhrmbK.cjs} +1 -1
  284. package/dist/style.css +1 -1
  285. package/dist/surfaces-0rL5DoHt.cjs +1 -0
  286. package/dist/{surfaces-DZ2A-Nb9.js → surfaces-BLsR5ka0.js} +54 -54
  287. package/dist/testing/GroupedCatalog.d.ts +14 -0
  288. package/dist/testing/index.d.ts +1 -0
  289. package/dist/testing.cjs +1 -1
  290. package/dist/testing.mjs +96 -66
  291. package/dist/typography-DT2eKLvd.js +11 -0
  292. package/dist/typography-bKeSMuJd.cjs +1 -0
  293. package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
  294. package/dist/useIsMobile-D1ImfQnE.js +38 -0
  295. package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
  296. package/dist/utilities-BKCMZyqZ.js +53 -0
  297. package/dist/utilities-xZh8D2gd.cjs +1 -0
  298. package/dist/utilities.cjs +1 -1
  299. package/dist/utilities.mjs +3 -3
  300. package/package.json +3 -3
  301. package/dist/Avatar-CQhIEazb.cjs +0 -1
  302. package/dist/Dropdown-BBUGkQQV.cjs +0 -1
  303. package/dist/Dropdown-CScN_olN.js +0 -784
  304. package/dist/ListItem.module-Ar-vZ7Qu.js +0 -34
  305. package/dist/ListItem.module-B8NeDH1P.cjs +0 -1
  306. package/dist/OverflowingTextWithTooltip-Be2-wCcZ.js +0 -88
  307. package/dist/OverflowingTextWithTooltip-BlufG-6n.cjs +0 -1
  308. package/dist/ResizeHandle-CNlQ4TEE.cjs +0 -1
  309. package/dist/Shortcut-DKfB0kej.js +0 -71
  310. package/dist/Shortcut-ZuZ-KYSk.cjs +0 -1
  311. package/dist/TabsTabContent-DZUNi_iE.cjs +0 -1
  312. package/dist/TabsTabContent-s6J5bZ3R.js +0 -39
  313. package/dist/Tooltip-BMkznyoi.js +0 -120
  314. package/dist/Tooltip-JOYVeSsf.cjs +0 -1
  315. package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +0 -5
  316. package/dist/data-display-BMV-nC-9.js +0 -181
  317. package/dist/data-display-BkujQe5v.cjs +0 -1
  318. package/dist/data-display-DjhAHvj1.cjs +0 -2
  319. package/dist/feedback-B5x8tmnG.cjs +0 -1
  320. package/dist/feedback-DhilJ_fX.js +0 -509
  321. package/dist/input-BEKjAOjS.cjs +0 -1
  322. package/dist/input-BUgnp6eA.js +0 -559
  323. package/dist/layout-BKHabkTu.js +0 -267
  324. package/dist/layout-wuIu4rJ3.cjs +0 -1
  325. package/dist/navigation-B1hPNYv2.cjs +0 -1
  326. package/dist/navigation-Dg46Wr5m.js +0 -131
  327. package/dist/navigation-WsiYsmaq.cjs +0 -1
  328. package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
  329. package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
  330. package/dist/surfaces-vyAhk2Gw.cjs +0 -1
  331. package/dist/typography-8DF9mq2w.cjs +0 -1
  332. package/dist/typography-DmY7-GzQ.js +0 -5
  333. package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
  334. package/dist/useIsMobile-nrufFzMb.js +0 -37
  335. package/dist/utilities-BeLfNQ0Q.cjs +0 -1
  336. 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 { createToastStore } from '../stores/createToastStore';
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: ReturnType<typeof createToastStore>;
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 { createToastStore } from '../stores/createToastStore';
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: ReturnType<typeof createToastStore>;
5
+ store: Store<ToastStoreState>;
5
6
  toastsToClose: ToastEntry[];
6
7
  nextToasts?: ToastEntry[];
7
8
  }) => void;
@@ -0,0 +1,5 @@
1
+ import { createToastStore } from '../stores/createToastStore';
2
+ export declare const updateToastLimit: ({ store, limit, }: {
3
+ store: ReturnType<typeof createToastStore>;
4
+ limit: number;
5
+ }) => 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;
@@ -0,0 +1,7 @@
1
+ export type ToasterLifecycleExampleProps = {
2
+ duration?: number;
3
+ hasIndependentProvider?: boolean;
4
+ hasSlowMirrorExit?: boolean;
5
+ hasUnrelatedNotificationActions?: boolean;
6
+ onClose?: (notification: string) => void;
7
+ };
@@ -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,5 @@
1
+ type ToasterPortalExampleProps = {
2
+ isScoped?: boolean;
3
+ };
4
+ export declare const ToasterPortalExample: ({ isScoped, }: ToasterPortalExampleProps) => 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,6 @@
1
+ import { ReactNode } from 'react';
2
+ type ToasterProviderReplayExampleProps = {
3
+ children: ReactNode;
4
+ };
5
+ export declare const ToasterProviderReplayExample: ({ children, }: ToasterProviderReplayExampleProps) => import("react").JSX.Element;
6
+ 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 {};
@@ -0,0 +1,5 @@
1
+ type ToasterProviderSuspensionProps = {
2
+ pendingSuspension?: Promise<void>;
3
+ };
4
+ export declare const ToasterProviderSuspension: ({ pendingSuspension, }: ToasterProviderSuspensionProps) => null;
5
+ 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) => import("react").JSX.Element;
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-B5x8tmnG.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
+ 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,4 +1,4 @@
1
- import { a as s, i as o, n as r, o as t, r as e, t as n } from "../feedback-DhilJ_fX.js";
1
+ import { a as s, i as o, n as r, o as t, r as e, t as n } from "../feedback-DTyVVcTb.js";
2
2
  export {
3
3
  t as Callout,
4
4
  s as InlineBanner,
@@ -1,2 +1,5 @@
1
- import { CountrySelectProps } from './types/CountrySelectProps';
2
- export declare const CountrySelect: ({ countries, value, onValueChange, label, searchLabel, noCountryLabel, noResultsLabel, open: controlledOpen, onOpenChange, popupProps, disabled, className, style, render, onClick, onMouseDown, onPointerDown, onKeyDown, onKeyUp, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...props }: CountrySelectProps) => import("react").JSX.Element;
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,2 @@
1
+ import { CountrySelectProps } from '../types/CountrySelectProps';
2
+ export declare const CountrySelectComponent: ({ countries, value, defaultValue, onValueChange, disabled, noCountryLabel, ...props }: CountrySelectProps) => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CountrySelectContextValue } from './CountrySelectContextValue';
2
+ export declare const CountrySelectContext: import('react').Context<CountrySelectContextValue | undefined>;
@@ -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 { CountryChoice } from '../types/CountryChoice';
2
- type CountrySelectOptionsProps = {
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 { CountrySelectOptionsProps } from '../types/CountrySelectOptionsProps';
2
+ export declare const CountrySelectOptionsContent: ({ searchLabel, noResultsLabel, searchProps, render, ...props }: CountrySelectOptionsProps) => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { CountrySelectRootProps } from '../types/CountrySelectRootProps';
2
+ export declare const CountrySelectRoot: ({ countries, value: controlledValue, defaultValue, onValueChange, disabled, noCountryLabel, children, }: CountrySelectRootProps) => 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,5 @@
1
+ import { CountryChoice } from '../types/CountryChoice';
2
+ export type PreparedCountryChoice = CountryChoice & {
3
+ selectionValue: string;
4
+ searchText: string;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const getCountrySelectionValue: (value: string) => string;
@@ -0,0 +1 @@
1
+ export declare const useCountrySelectContextOrThrow: () => import('./CountrySelectContextValue').CountrySelectContextValue;
@@ -3,4 +3,5 @@ export type CountryChoice = {
3
3
  value: string;
4
4
  label: string;
5
5
  flag?: ReactNode;
6
+ disabled?: boolean;
6
7
  };
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ export type CountrySelectOptionsState = {
2
+ value: string | null;
3
+ multiple: false;
4
+ };
@@ -1,15 +1,9 @@
1
1
  import { DropdownContentProps } from '../../../navigation/Dropdown/types/DropdownContentProps';
2
- import { DropdownTriggerProps } from '../../../navigation/Dropdown/types/DropdownTriggerProps';
3
- import { CountryChoice } from './CountryChoice';
4
- export type CountrySelectProps = Omit<DropdownTriggerProps, 'children' | 'value' | 'defaultValue' | 'onChange' | 'openOnHover' | 'delay' | 'closeDelay'> & {
5
- countries: readonly CountryChoice[];
6
- value: string;
7
- onValueChange: (value: string) => void;
8
- label?: string;
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
- Trigger: ({ value, className, ...props }: import('..').CurrencyPickerTriggerProps) => import("react").JSX.Element;
3
- Options: ({ currencies, value, onValueChange, disabled, searchLabel, emptyLabel, className, render, ref, ...props }: import('..').CurrencyPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
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
  };
@@ -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 {};
@@ -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.Options>, 'currencies' | 'searchLabel' | 'emptyLabel' | 'onValueChange' | 'dir'> & {
4
- defaultValue?: string;
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;