twenty-ui 2.48.0 → 2.50.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 (286) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +27 -2
  3. package/dist/Button-CU8BS-Yd.js +75 -0
  4. package/dist/Button-iVyxlrwO.cjs +1 -0
  5. package/dist/Dropdown-ChTVyesF.js +1018 -0
  6. package/dist/Dropdown-DlItz8Gh.cjs +1 -0
  7. package/dist/Heading-CHvEXL6n.cjs +1 -0
  8. package/dist/{Heading-pXllCJCO.js → Heading-Nj5BlPqB.js} +3 -3
  9. package/dist/{ListItem-CHTR-GLd.cjs → ListItem-C6Xl00m1.cjs} +1 -1
  10. package/dist/{ListItem-CjnrSbka.js → ListItem-C84ANa76.js} +2 -2
  11. package/dist/{OverflowingTextWithTooltip-Z2daM0_x.cjs → OverflowingTextWithTooltip-BQmpPObX.cjs} +1 -1
  12. package/dist/{OverflowingTextWithTooltip-BmUROIah.js → OverflowingTextWithTooltip-BtB9cGdJ.js} +20 -21
  13. package/dist/ProgressBar-CzGs7cuE.cjs +1 -0
  14. package/dist/ProgressBar-D4tKQ7OA.js +84 -0
  15. package/dist/{Radio-DMI1B7o5.js → Radio-BwBZ4e8g.js} +29 -29
  16. package/dist/{Radio-xmHgGHQO.cjs → Radio-sIYxZnR_.cjs} +1 -1
  17. package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
  18. package/dist/{ResizeHandle-C1kQ3MYR.js → ResizeHandle-B30OYZxS.js} +56 -55
  19. package/dist/Shortcut-Bp9iDdQg.js +73 -0
  20. package/dist/Shortcut-N8TELGPI.cjs +1 -0
  21. package/dist/TabsTabContent-6rkARU9F.cjs +1 -0
  22. package/dist/TabsTabContent-DPkLTBi2.js +39 -0
  23. package/dist/Tooltip-6uS8_wdA.js +132 -0
  24. package/dist/Tooltip-DL3sfbuw.cjs +1 -0
  25. package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
  26. package/dist/components/code-editor.cjs +1 -1
  27. package/dist/components/code-editor.mjs +52 -51
  28. package/dist/components/data-display.cjs +1 -1
  29. package/dist/components/data-display.mjs +6 -7
  30. package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -2
  31. package/dist/components/feedback/InlineBanner/internal/InlineBannerComponent.d.ts +1 -1
  32. package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -0
  33. package/dist/components/feedback.cjs +1 -1
  34. package/dist/components/feedback.mjs +1 -1
  35. package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
  36. package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
  37. package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
  38. package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
  39. package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
  40. package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
  41. package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
  42. package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
  43. package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
  44. package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
  45. package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
  46. package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
  47. package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
  48. package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
  49. package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
  50. package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
  51. package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
  52. package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
  53. package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
  54. package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
  55. package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
  56. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
  57. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
  58. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
  59. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
  60. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
  61. package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
  62. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
  63. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
  64. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
  65. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
  66. package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
  67. package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
  68. package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
  69. package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
  70. package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
  71. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
  72. package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
  73. package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
  74. package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
  75. package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
  76. package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
  77. package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
  78. package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
  79. package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
  80. package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
  81. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
  82. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
  83. package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
  84. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
  85. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
  86. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
  87. package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
  88. package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
  89. package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
  90. package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
  91. package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
  92. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
  93. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
  94. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
  95. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
  96. package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
  97. package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +1 -1
  98. package/dist/components/input/index.d.ts +10 -0
  99. package/dist/components/input.cjs +1 -1
  100. package/dist/components/input.mjs +13 -13
  101. package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
  102. package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +1 -2
  103. package/dist/components/layout.cjs +1 -1
  104. package/dist/components/layout.mjs +1 -1
  105. package/dist/components/navigation/Dropdown/Dropdown.d.ts +3 -2
  106. package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
  107. package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
  108. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +6 -1
  109. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
  110. package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
  111. package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
  112. package/dist/components/navigation/Dropdown/internal/DropdownSearchEffect.d.ts +8 -0
  113. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
  114. package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
  115. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
  116. package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
  117. package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
  118. package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
  119. package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +2 -2
  120. package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
  121. package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
  122. package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
  123. package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
  124. package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
  125. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
  126. package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
  127. package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
  128. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
  129. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
  130. package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
  131. package/dist/components/navigation/index.d.ts +5 -11
  132. package/dist/components/navigation.cjs +1 -1
  133. package/dist/components/navigation.mjs +6 -11
  134. package/dist/components/settings.cjs +1 -1
  135. package/dist/components/settings.mjs +1 -1
  136. package/dist/components.cjs +1 -1
  137. package/dist/components.mjs +37 -43
  138. package/dist/data-display-C-eoJ5En.js +378 -0
  139. package/dist/data-display-CM1yXpnE.cjs +2 -0
  140. package/dist/data-display-CXw-mxeS.js +252 -0
  141. package/dist/data-display-DdES9XqZ.cjs +1 -0
  142. package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
  143. package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
  144. package/dist/feedback-4HKPcMRs.js +666 -0
  145. package/dist/feedback-BSOWDBI0.js +38 -0
  146. package/dist/feedback-DBRXDPSP.cjs +1 -0
  147. package/dist/feedback-DspXawf9.cjs +1 -0
  148. package/dist/index.cjs +1 -1
  149. package/dist/index.mjs +625 -631
  150. package/dist/input-CWWp7cqL.cjs +1 -0
  151. package/dist/input-CvZ_uB_9.cjs +1 -0
  152. package/dist/input-Qn5_aFYU.js +785 -0
  153. package/dist/input-k5cMhFI_.js +428 -0
  154. package/dist/layout-DDqeMgFv.js +439 -0
  155. package/dist/layout-iSfGrMrH.cjs +1 -0
  156. package/dist/navigation-7Y6gHFlj.cjs +1 -0
  157. package/dist/navigation-BY8X2w04.js +132 -0
  158. package/dist/navigation-BcXCiLE1.js +86 -0
  159. package/dist/navigation-ByYN6NgX.cjs +1 -0
  160. package/dist/normalizeSearchText-DLmPiBUZ.js +19 -0
  161. package/dist/normalizeSearchText-Do0MELpQ.cjs +1 -0
  162. package/dist/preventDismissingClickActivation-BEBrL9aB.cjs +1 -0
  163. package/dist/preventDismissingClickActivation-BQFMKRey.js +29 -0
  164. package/dist/primitives/accessibility.cjs +1 -1
  165. package/dist/primitives/accessibility.mjs +1 -1
  166. package/dist/primitives/data-display/Avatar/constants/AvatarPropertiesBySize.d.ts +4 -0
  167. package/dist/primitives/data-display/Avatar/types/AvatarSize.d.ts +1 -1
  168. package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +1 -1
  169. package/dist/primitives/data-display/Chip/types/ChipVariant.d.ts +1 -1
  170. package/dist/primitives/data-display.cjs +1 -1
  171. package/dist/primitives/data-display.mjs +7 -8
  172. package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
  173. package/dist/primitives/feedback/Banner/internal/BannerAction.d.ts +1 -1
  174. package/dist/primitives/feedback.cjs +1 -1
  175. package/dist/primitives/feedback.mjs +2 -2
  176. package/dist/primitives/input/Autocomplete/Autocomplete.d.ts +1 -1
  177. package/dist/primitives/input/Autocomplete/internal/AutocompleteInput.d.ts +1 -1
  178. package/dist/primitives/input/Autocomplete/types/AutocompleteInputProps.d.ts +8 -1
  179. package/dist/primitives/input/Button/types/ButtonColor.d.ts +1 -1
  180. package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
  181. package/dist/primitives/input/RadioGroup/RadioGroup.d.ts +1 -1
  182. package/dist/primitives/input/RadioGroup/types/RadioGroupProps.d.ts +3 -1
  183. package/dist/primitives/input.cjs +1 -1
  184. package/dist/primitives/input.mjs +3 -3
  185. package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
  186. package/dist/primitives/layout.cjs +1 -1
  187. package/dist/primitives/layout.mjs +1 -1
  188. package/dist/primitives/navigation/Tabs/types/TabsSize.d.ts +1 -1
  189. package/dist/primitives/navigation.cjs +1 -1
  190. package/dist/primitives/navigation.mjs +2 -2
  191. package/dist/primitives/surfaces/Card/Card.d.ts +1 -1
  192. package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +1 -1
  193. package/dist/primitives/surfaces/Card/types/CardRootProps.d.ts +0 -1
  194. package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -0
  195. package/dist/primitives/surfaces/Tooltip/__stories__/findTooltip.d.ts +1 -0
  196. package/dist/primitives/surfaces/Tooltip/internal/TooltipBody.d.ts +2 -8
  197. package/dist/primitives/surfaces/Tooltip/types/TooltipBodyProps.d.ts +6 -0
  198. package/dist/primitives/surfaces/index.d.ts +1 -0
  199. package/dist/primitives/surfaces.cjs +1 -1
  200. package/dist/primitives/surfaces.mjs +2 -2
  201. package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +1 -1
  202. package/dist/primitives/typography.cjs +1 -1
  203. package/dist/primitives/typography.mjs +4 -4
  204. package/dist/primitives.cjs +1 -1
  205. package/dist/primitives.mjs +46 -47
  206. package/dist/{settings-BAYsnlZJ.cjs → settings-DT5bEO6A.cjs} +1 -1
  207. package/dist/{settings-BjEZiHXE.js → settings-XGSJtobU.js} +1 -1
  208. package/dist/style.css +1 -1
  209. package/dist/surfaces-q8voTXEJ.cjs +1 -0
  210. package/dist/{surfaces-BLsR5ka0.js → surfaces-vhSZBmbz.js} +77 -78
  211. package/dist/testing/GroupedCatalog.d.ts +14 -0
  212. package/dist/testing/index.d.ts +2 -0
  213. package/dist/testing/utils/waitForStorybookFontsLoaded.d.ts +1 -0
  214. package/dist/testing.cjs +1 -1
  215. package/dist/testing.mjs +102 -62
  216. package/dist/{typography-fOTFr0jS.js → typography-BPdXzW2T.js} +2 -2
  217. package/dist/{typography-B5QEuPaL.cjs → typography-CWtuNruY.cjs} +1 -1
  218. package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
  219. package/dist/useIsMobile-D1ImfQnE.js +38 -0
  220. package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
  221. package/dist/utilities-BKCMZyqZ.js +53 -0
  222. package/dist/utilities-xZh8D2gd.cjs +1 -0
  223. package/dist/utilities.cjs +1 -1
  224. package/dist/utilities.mjs +11 -10
  225. package/package.json +3 -3
  226. package/dist/Avatar-CQhIEazb.cjs +0 -1
  227. package/dist/Avatar-D-QA0RE5.js +0 -72
  228. package/dist/Button-D5enZ0Qz.js +0 -72
  229. package/dist/Button-Dbi5P05r.cjs +0 -1
  230. package/dist/Dropdown-BKjAaZS0.cjs +0 -1
  231. package/dist/Dropdown-C2hXrjvD.js +0 -820
  232. package/dist/Heading-CTRYClCO.cjs +0 -1
  233. package/dist/ProgressBar-BvT1dyFo.js +0 -84
  234. package/dist/ProgressBar-DfFz0fFB.cjs +0 -1
  235. package/dist/ResizeHandle-DI4LHIQm.cjs +0 -1
  236. package/dist/Shortcut-BvWUZ3pb.js +0 -72
  237. package/dist/Shortcut-CgrdLv_L.cjs +0 -1
  238. package/dist/TabsTabContent-Co27Y2TU.cjs +0 -1
  239. package/dist/TabsTabContent-DVcObDp6.js +0 -39
  240. package/dist/TintedIconTile-4BGa8g8n.js +0 -40
  241. package/dist/TintedIconTile-CU2hCerq.cjs +0 -1
  242. package/dist/Tooltip-Bg9Uk01p.cjs +0 -1
  243. package/dist/Tooltip-cLCgtFBF.js +0 -124
  244. package/dist/components/navigation/MenuItem/MenuItem.d.ts +0 -2
  245. package/dist/components/navigation/MenuItem/parts/MenuItemIcon.d.ts +0 -9
  246. package/dist/components/navigation/MenuItem/parts/MenuItemIconBoxContainer.d.ts +0 -7
  247. package/dist/components/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +0 -8
  248. package/dist/components/navigation/MenuItem/parts/MenuItemLeftContent.d.ts +0 -19
  249. package/dist/components/navigation/MenuItem/parts/StyledMenuItemBase.d.ts +0 -25
  250. package/dist/components/navigation/MenuItem/types/MenuItemDraggableGripMode.d.ts +0 -1
  251. package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +0 -33
  252. package/dist/components/navigation/MenuItemAvatar/MenuItemAvatar.d.ts +0 -2
  253. package/dist/components/navigation/MenuItemAvatar/types/MenuItemAvatarProps.d.ts +0 -18
  254. package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +0 -2
  255. package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +0 -20
  256. package/dist/components/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts +0 -2
  257. package/dist/components/navigation/MenuItemSuggestion/types/MenuItemSuggestionProps.d.ts +0 -12
  258. package/dist/components/navigation/MenuPicker/MenuPicker.d.ts +0 -2
  259. package/dist/components/navigation/MenuPicker/types/MenuPickerProps.d.ts +0 -15
  260. package/dist/data-display-0QO_WDSs.js +0 -183
  261. package/dist/data-display-CPmTJAWJ.cjs +0 -1
  262. package/dist/data-display-DjhAHvj1.cjs +0 -2
  263. package/dist/data-display-KyZbLLy-.js +0 -344
  264. package/dist/feedback-CM6fatE8.js +0 -664
  265. package/dist/feedback-DA-AU5z5.js +0 -38
  266. package/dist/feedback-DNLERYY9.cjs +0 -1
  267. package/dist/feedback-ybO4n69s.cjs +0 -1
  268. package/dist/input-3D2lXywH.cjs +0 -1
  269. package/dist/input-CJDYNwoO.cjs +0 -1
  270. package/dist/input-DRpDiMRi.js +0 -421
  271. package/dist/input-TM3nUdu6.js +0 -554
  272. package/dist/layout-BszCDxAO.js +0 -441
  273. package/dist/layout-VaIq7Sjr.cjs +0 -1
  274. package/dist/navigation-B1SRvzKK.js +0 -403
  275. package/dist/navigation-CYAs2LnR.js +0 -131
  276. package/dist/navigation-CthkGHJ8.cjs +0 -1
  277. package/dist/navigation-DrOV5E67.cjs +0 -1
  278. package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
  279. package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
  280. package/dist/surfaces-0rL5DoHt.cjs +0 -1
  281. package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
  282. package/dist/useIsMobile-nrufFzMb.js +0 -37
  283. package/dist/utilities-BeLfNQ0Q.cjs +0 -1
  284. package/dist/utilities-CEi9I09B.js +0 -52
  285. /package/dist/{handleClickableElementKeyDown-C8Uz61XJ.js → accessibility-C8Uz61XJ.js} +0 -0
  286. /package/dist/{handleClickableElementKeyDown-CByqtBhO.cjs → accessibility-CByqtBhO.cjs} +0 -0
@@ -0,0 +1,428 @@
1
+ import { t as u } from "./isDefined-fMi6eQ4r.js";
2
+ import { Cn as j, So as ue, Tn as de } from "./icon-CUE-QGQK.js";
3
+ import { t as q } from "./theme-B2EaXhye.js";
4
+ import { t as a } from "./mergeClassNames-ClFMR1v0.js";
5
+ import { r as pe } from "./Button-CU8BS-Yd.js";
6
+ import { t as T } from "./isRenderableSlot-DT_depzM.js";
7
+ import { t as G } from "./useProvidedTextDirection-Dk8LBQeF.js";
8
+ import { n as f, t as m } from "./ListItem.module-BJ9Ttjrc.js";
9
+ import { n as k, r as ve } from "./Input-DZWl81G_.js";
10
+ import { i as h } from "./Radio-BwBZ4e8g.js";
11
+ import { useRender as z } from "@base-ui/react/use-render";
12
+ import { isFunction as R, isNumber as _e, isUndefined as W } from "@sniptt/guards";
13
+ import { clsx as d } from "clsx";
14
+ import { forwardRef as F, useContext as fe, useLayoutEffect as B, useMemo as he, useRef as be, useState as Se } from "react";
15
+ import { jsx as t, jsxs as L } from "react/jsx-runtime";
16
+ import { mergeProps as Ne } from "@base-ui/react/merge-props";
17
+ import { Input as Ie } from "@base-ui/react/input";
18
+ import { RadioGroup as ge } from "@base-ui/react/radio-group";
19
+ import { Autocomplete as s } from "@base-ui/react/autocomplete";
20
+ import { Checkbox as O } from "@base-ui/react/checkbox";
21
+ import { Field as S } from "@base-ui/react/field";
22
+ import { Select as n } from "@base-ui/react/select";
23
+ import { Slider as N } from "@base-ui/react/slider";
24
+ var Ce = "_inputGroup_17li0_1", Ae = "_positioner_17li0_8", we = "_popup_17li0_12", xe = "_arrow_17li0_31", Te = "_separator_17li0_72", Pe = "_list_17li0_86", ke = "_empty_17li0_93", I = {
25
+ inputGroup: Ce,
26
+ positioner: Ae,
27
+ popup: we,
28
+ arrow: xe,
29
+ separator: Te,
30
+ list: Pe,
31
+ empty: ke
32
+ }, Le = ({ className: e, ...r }) => /* @__PURE__ */ t(s.Arrow, {
33
+ ...r,
34
+ className: a(I.arrow, e)
35
+ }), Ge = ({ className: e, ...r }) => /* @__PURE__ */ t(s.Empty, {
36
+ ...r,
37
+ className: a(I.empty, e)
38
+ }), Re = ({ size: e, className: r, render: o, ...i }) => {
39
+ const l = fe(ve);
40
+ if (u(o)) return /* @__PURE__ */ t(s.Input, {
41
+ ...i,
42
+ className: r,
43
+ render: o
44
+ });
45
+ const c = e ?? l?.size ?? "md";
46
+ return /* @__PURE__ */ t(s.Input, {
47
+ ...i,
48
+ className: a(d(k.input, k[c]), r),
49
+ "data-grouped": u(l) || void 0
50
+ });
51
+ }, Fe = ({ className: e, ...r }) => /* @__PURE__ */ t(s.InputGroup, {
52
+ ...r,
53
+ className: a(I.inputGroup, e)
54
+ }), ye = ({ className: e, children: r, startIcon: o, endIcon: i, description: l, descriptionPlacement: c = "inline", ...p }) => /* @__PURE__ */ L(s.Item, {
55
+ ...p,
56
+ className: a(m.root, e),
57
+ "data-color": "neutral",
58
+ children: [
59
+ T(o) && /* @__PURE__ */ t("div", {
60
+ className: m.startIcon,
61
+ "aria-hidden": !0,
62
+ children: o
63
+ }),
64
+ /* @__PURE__ */ L("div", {
65
+ className: m.label,
66
+ children: [/* @__PURE__ */ t("div", {
67
+ className: m.text,
68
+ children: r
69
+ }), T(l) && c === "inline" && /* @__PURE__ */ t("div", {
70
+ className: d(m.description, m.inlineDescription),
71
+ children: l
72
+ })]
73
+ }),
74
+ T(l) && c === "end" && /* @__PURE__ */ t("div", {
75
+ className: d(m.description, m.endDescription),
76
+ children: l
77
+ }),
78
+ T(i) && /* @__PURE__ */ t("div", {
79
+ className: m.endIcon,
80
+ "aria-hidden": !0,
81
+ children: i
82
+ })
83
+ ]
84
+ }), De = ({ className: e, ...r }) => /* @__PURE__ */ t(s.List, {
85
+ ...r,
86
+ className: a(I.list, e)
87
+ }), Ee = ({ width: e, style: r, className: o, ...i }) => /* @__PURE__ */ t(s.Popup, {
88
+ ...i,
89
+ className: a(I.popup, o),
90
+ style: (l) => ({
91
+ width: e,
92
+ minInlineSize: u(e) ? 0 : void 0,
93
+ ...R(r) ? r(l) : r
94
+ })
95
+ }), Be = ({ container: e, ...r }) => {
96
+ const o = q(), i = G();
97
+ return /* @__PURE__ */ t(s.Portal, {
98
+ dir: i,
99
+ ...r,
100
+ container: W(e) ? o ?? void 0 : e
101
+ });
102
+ }, Ve = ({ className: e, align: r = "start", sideOffset: o = 8, ...i }) => {
103
+ const l = G();
104
+ return /* @__PURE__ */ t(s.Positioner, {
105
+ dir: l,
106
+ align: r,
107
+ sideOffset: o,
108
+ ...i,
109
+ className: a(I.positioner, e)
110
+ });
111
+ }, $e = ({ className: e, ...r }) => /* @__PURE__ */ t(s.Separator, {
112
+ ...r,
113
+ className: a(I.separator, e)
114
+ }), je = () => ({
115
+ Root: s.Root,
116
+ Value: s.Value,
117
+ Trigger: s.Trigger,
118
+ InputGroup: Fe,
119
+ Input: Re,
120
+ Icon: s.Icon,
121
+ Clear: s.Clear,
122
+ Portal: Be,
123
+ Backdrop: s.Backdrop,
124
+ Positioner: Ve,
125
+ Popup: Ee,
126
+ Arrow: Le,
127
+ List: De,
128
+ Status: s.Status,
129
+ Group: s.Group,
130
+ GroupLabel: s.GroupLabel,
131
+ Item: ye,
132
+ Row: s.Row,
133
+ Collection: s.Collection,
134
+ Empty: Ge,
135
+ Separator: $e,
136
+ useFilter: s.useFilter,
137
+ useFilteredItems: s.useFilteredItems
138
+ }), oo = /* @__PURE__ */ je(), qe = "_container_262rx_1", ze = { container: qe }, to = ({ attached: e = !0, framed: r = !1, className: o, children: i, variant: l, size: c, color: p, render: g, ref: C, ...A }) => {
139
+ const w = z({
140
+ render: g,
141
+ ref: C,
142
+ props: {
143
+ role: "group",
144
+ "data-attached": e || void 0,
145
+ "data-framed": r || void 0,
146
+ ...A,
147
+ className: d(ze.container, o),
148
+ children: i
149
+ }
150
+ });
151
+ return /* @__PURE__ */ t(pe.Provider, {
152
+ value: {
153
+ variant: l,
154
+ color: p,
155
+ size: c
156
+ },
157
+ children: w
158
+ });
159
+ }, H = ({ className: e, ...r }) => /* @__PURE__ */ t(O.Indicator, {
160
+ ...r,
161
+ className: a(f.indicator, e)
162
+ }), U = ({ size: e = "sm", variant: r = "solid", shape: o = "square", color: i = "accent", hoverable: l = !0, className: c, ...p }) => /* @__PURE__ */ t(O.Root, {
163
+ ...p,
164
+ className: a(d(f.root, f[e], f[r], f[o], f[i], l && f.hoverable), c)
165
+ }), We = ({ children: e, ...r }) => /* @__PURE__ */ L(U, {
166
+ ...r,
167
+ children: [/* @__PURE__ */ L(H, { children: [/* @__PURE__ */ t(j, {
168
+ className: f.check,
169
+ "aria-hidden": !0
170
+ }), /* @__PURE__ */ t(ue, {
171
+ className: f.minus,
172
+ "aria-hidden": !0
173
+ })] }), e]
174
+ }), ao = Object.assign(We, {
175
+ Root: U,
176
+ Indicator: H
177
+ }), Oe = "_description_yrj5x_1", He = { description: Oe }, M = F(({ className: e, ...r }, o) => /* @__PURE__ */ t(S.Description, {
178
+ ref: o,
179
+ className: a(He.description, e),
180
+ ...r
181
+ }));
182
+ M.displayName = "FieldDescription";
183
+ var Ue = "_error_179et_1", Me = { error: Ue }, J = F(({ className: e, ...r }, o) => /* @__PURE__ */ t(S.Error, {
184
+ ref: o,
185
+ className: a(Me.error, e),
186
+ ...r
187
+ }));
188
+ J.displayName = "FieldError";
189
+ var Je = "_label_1yxve_1", Ke = { label: Je }, K = F(({ className: e, ...r }, o) => /* @__PURE__ */ t(S.Label, {
190
+ ref: o,
191
+ className: a(Ke.label, e),
192
+ ...r
193
+ }));
194
+ K.displayName = "FieldLabel";
195
+ var io = {
196
+ Root: S.Root,
197
+ Item: S.Item,
198
+ Label: K,
199
+ Control: S.Control,
200
+ Description: M,
201
+ Error: J,
202
+ Validity: S.Validity
203
+ }, Qe = "_root_1bvm7_1", Xe = { root: Qe }, lo = ({ className: e, orientation: r = "vertical", ...o }) => /* @__PURE__ */ t(ge, {
204
+ ...o,
205
+ className: a(Xe.root, e),
206
+ "data-orientation": r
207
+ }), Ye = ({ className: e, ...r }) => /* @__PURE__ */ t(n.GroupLabel, {
208
+ ...r,
209
+ className: a(h.groupLabel, e)
210
+ }), Ze = ({ className: e, children: r = /* @__PURE__ */ t(de, {}), ...o }) => /* @__PURE__ */ t(n.Icon, {
211
+ ...o,
212
+ className: a(h.icon, e),
213
+ children: r
214
+ }), er = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Item, {
215
+ "data-color": "neutral",
216
+ "data-indicator": "check",
217
+ ...r,
218
+ className: a(d(m.root, h.item), e)
219
+ }), rr = ({ className: e, children: r = /* @__PURE__ */ t(j, { className: m.checkIndicator }), ...o }) => /* @__PURE__ */ t(n.ItemIndicator, {
220
+ ...o,
221
+ className: a(h.indicator, e),
222
+ children: r
223
+ }), or = ({ className: e, ...r }) => /* @__PURE__ */ t(n.ItemText, {
224
+ ...r,
225
+ className: a(d(m.label, m.text), e)
226
+ }), tr = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Popup, {
227
+ ...r,
228
+ className: a(h.popup, e)
229
+ }), ar = ({ container: e, ...r }) => {
230
+ const o = q(), i = G();
231
+ return /* @__PURE__ */ t(n.Portal, {
232
+ dir: i,
233
+ ...r,
234
+ container: W(e) ? o ?? void 0 : e
235
+ });
236
+ }, ir = ({ className: e, ...r }) => {
237
+ const o = G();
238
+ return /* @__PURE__ */ t(n.Positioner, {
239
+ dir: o,
240
+ ...r,
241
+ className: a(h.positioner, e)
242
+ });
243
+ }, lr = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Separator, {
244
+ ...r,
245
+ className: a(h.separator, e)
246
+ }), sr = ({ size: e = "md", className: r, ...o }) => /* @__PURE__ */ t(n.Trigger, {
247
+ ...o,
248
+ className: a(d(k.input, k[e], h.trigger), r)
249
+ }), nr = ({ className: e, ...r }) => /* @__PURE__ */ t(n.Value, {
250
+ ...r,
251
+ className: a(h.value, e)
252
+ }), cr = () => ({
253
+ Root: n.Root,
254
+ Label: n.Label,
255
+ Trigger: sr,
256
+ Value: nr,
257
+ Icon: Ze,
258
+ Portal: ar,
259
+ Backdrop: n.Backdrop,
260
+ Positioner: ir,
261
+ Popup: tr,
262
+ List: n.List,
263
+ Item: er,
264
+ ItemIndicator: rr,
265
+ ItemText: or,
266
+ Arrow: n.Arrow,
267
+ ScrollDownArrow: n.ScrollDownArrow,
268
+ ScrollUpArrow: n.ScrollUpArrow,
269
+ Group: n.Group,
270
+ GroupLabel: Ye,
271
+ Separator: lr
272
+ }), so = /* @__PURE__ */ cr(), mr = "_root_1mh0w_1", ur = "_accent_1mh0w_16", dr = "_success_1mh0w_20", pr = "_control_1mh0w_24", vr = "_track_1mh0w_42", _r = "_indicator_1mh0w_55", fr = "_thumb_1mh0w_66", hr = "_label_1mh0w_80", br = "_value_1mh0w_81", b = {
273
+ root: mr,
274
+ accent: ur,
275
+ success: dr,
276
+ control: pr,
277
+ track: vr,
278
+ indicator: _r,
279
+ thumb: fr,
280
+ label: hr,
281
+ value: br
282
+ }, Sr = ({ className: e, color: r = "accent", thumbAlignment: o = "edge", ...i }) => /* @__PURE__ */ t(N.Root, {
283
+ ...i,
284
+ thumbAlignment: o,
285
+ className: a(d(b.root, b[r]), e)
286
+ }), Nr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Control, {
287
+ ...r,
288
+ className: a(b.control, e)
289
+ }), Ir = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Track, {
290
+ ...r,
291
+ className: a(b.track, e)
292
+ }), gr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Indicator, {
293
+ ...r,
294
+ className: a(b.indicator, e)
295
+ }), Cr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Thumb, {
296
+ ...r,
297
+ className: a(b.thumb, e)
298
+ }), Ar = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Label, {
299
+ ...r,
300
+ className: a(b.label, e)
301
+ }), wr = ({ className: e, ...r }) => /* @__PURE__ */ t(N.Value, {
302
+ ...r,
303
+ className: a(b.value, e)
304
+ }), no = {
305
+ Root: Sr,
306
+ Control: Nr,
307
+ Track: Ir,
308
+ Indicator: gr,
309
+ Thumb: Cr,
310
+ Label: Ar,
311
+ Value: wr
312
+ }, xr = ({ controlProps: e, nativeProps: r, state: o, render: i }) => {
313
+ const { ref: l, ...c } = e, { ref: p, ...g } = r;
314
+ return z({
315
+ defaultTagName: "textarea",
316
+ render: i,
317
+ state: { ...o },
318
+ ref: [l ?? null, p ?? null],
319
+ props: Ne(c, g)
320
+ });
321
+ }, Tr = (e) => u(e) ? _e(e) ? `${e}px` : String(e) : "", V = (e, r) => {
322
+ if (u(e)) {
323
+ if (R(e)) return e(r);
324
+ e.current = r;
325
+ }
326
+ }, Pr = (...e) => (r) => {
327
+ const o = e.map((i) => {
328
+ const l = V(i, r);
329
+ return R(l) ? l : () => V(i, null);
330
+ });
331
+ return () => {
332
+ for (const i of o) i();
333
+ };
334
+ }, P = (e) => {
335
+ e.style.blockSize = "auto";
336
+ const r = e.offsetHeight - e.clientHeight;
337
+ e.style.blockSize = `${e.scrollHeight + r}px`;
338
+ }, kr = (e) => {
339
+ if (!u(globalThis.ResizeObserver)) return;
340
+ let r, o = e.clientWidth;
341
+ const i = new ResizeObserver(() => {
342
+ const l = e.clientWidth;
343
+ l !== o && (o = l, u(r) && cancelAnimationFrame(r), r = requestAnimationFrame(() => {
344
+ r = void 0, P(e);
345
+ }));
346
+ });
347
+ return i.observe(e), () => {
348
+ i.disconnect(), u(r) && cancelAnimationFrame(r);
349
+ };
350
+ }, Lr = "_textarea_1qcvj_1", Gr = "_sm_1qcvj_38", Rr = "_md_1qcvj_42", $ = {
351
+ textarea: Lr,
352
+ sm: Gr,
353
+ md: Rr
354
+ }, co = ({ size: e = "md", autoResize: r = !1, maxRows: o, className: i, style: l, ref: c, render: p, onChange: g, value: C, rows: A, ...w }) => {
355
+ const [v, Q] = Se(null), X = he(() => Pr(c, Q), [c]), Y = u(C), y = l?.blockSize, D = be(!1);
356
+ B(() => {
357
+ if (!u(v)) return;
358
+ const _ = D.current;
359
+ if (D.current = r, r) {
360
+ P(v);
361
+ return;
362
+ }
363
+ _ && (v.style.blockSize = Tr(y));
364
+ }, [
365
+ v,
366
+ r,
367
+ C,
368
+ o,
369
+ A,
370
+ e,
371
+ y
372
+ ]), B(() => {
373
+ if (!r || !u(v)) return;
374
+ let _ = !0;
375
+ const x = (me) => {
376
+ requestAnimationFrame(() => {
377
+ _ && !me.defaultPrevented && P(v);
378
+ });
379
+ }, E = v.form, ce = kr(v);
380
+ return E?.addEventListener("reset", x), () => {
381
+ _ = !1, E?.removeEventListener("reset", x), ce?.();
382
+ };
383
+ }, [
384
+ v,
385
+ r,
386
+ w.form
387
+ ]);
388
+ const Z = (_) => {
389
+ r && !Y && P(_.currentTarget), g?.(_);
390
+ }, ee = u(o) ? {
391
+ ...l,
392
+ "--tw-textarea-max-rows": o
393
+ } : l, { "aria-describedby": re, id: oe, name: te, disabled: ae, autoFocus: ie, defaultValue: le, onValueChange: se, ...ne } = w;
394
+ return /* @__PURE__ */ t(Ie, {
395
+ "aria-describedby": re,
396
+ id: oe,
397
+ name: te,
398
+ disabled: ae,
399
+ autoFocus: ie,
400
+ defaultValue: le,
401
+ onValueChange: se,
402
+ render: (_, x) => /* @__PURE__ */ t(xr, {
403
+ controlProps: _,
404
+ nativeProps: {
405
+ ...ne,
406
+ rows: A,
407
+ onChange: Z,
408
+ ref: X
409
+ },
410
+ state: x,
411
+ render: p
412
+ }),
413
+ value: C,
414
+ className: a(d($.textarea, $[e]), i),
415
+ style: ee,
416
+ "data-auto-resize": r || void 0
417
+ });
418
+ };
419
+ export {
420
+ io as a,
421
+ oo as c,
422
+ lo as i,
423
+ no as n,
424
+ ao as o,
425
+ so as r,
426
+ to as s,
427
+ co as t
428
+ };