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
@@ -6,10 +6,15 @@ export type { DropdownContentProps } from './Dropdown/types/DropdownContentProps
6
6
  export type { DropdownDismissEvent } from './Dropdown/types/DropdownDismissEvent';
7
7
  export type { DropdownHeaderProps } from './Dropdown/types/DropdownHeaderProps';
8
8
  export type { DropdownOptionItemProps } from './Dropdown/types/DropdownOptionItemProps';
9
+ export type { DropdownOptionItemSelectEventDetails } from './Dropdown/types/DropdownOptionItemSelectEventDetails';
10
+ export type { DropdownOptionItemState } from './Dropdown/types/DropdownOptionItemState';
9
11
  export type { DropdownPageProps } from './Dropdown/types/DropdownPageProps';
10
12
  export type { DropdownRootProps } from './Dropdown/types/DropdownRootProps';
11
13
  export type { DropdownSearchProps } from './Dropdown/types/DropdownSearchProps';
12
14
  export type { DropdownSectionProps } from './Dropdown/types/DropdownSectionProps';
15
+ export type { DropdownSelectionGroupChangeEventDetails } from './Dropdown/types/DropdownSelectionGroupChangeEventDetails';
16
+ export type { DropdownSelectionGroupProps } from './Dropdown/types/DropdownSelectionGroupProps';
17
+ export type { DropdownSelectionGroupState } from './Dropdown/types/DropdownSelectionGroupState';
13
18
  export type { DropdownSubmenuProps } from './Dropdown/types/DropdownSubmenuProps';
14
19
  export type { DropdownSubmenuTriggerProps } from './Dropdown/types/DropdownSubmenuTriggerProps';
15
20
  export type { DropdownTitleProps } from './Dropdown/types/DropdownTitleProps';
@@ -18,18 +23,7 @@ export type { DropdownType } from './Dropdown/types/DropdownType';
18
23
  export { ListItemButton } from './ListItemButton/ListItemButton';
19
24
  export type { ListItemButtonProps } from './ListItemButton/types/ListItemButtonProps';
20
25
  export { DEFAULT_COLOR_LABELS } from './MenuItem/constants/DefaultColorLabels';
21
- export { MenuItem } from './MenuItem/MenuItem';
22
26
  export type { ColorLabels } from './MenuItem/types/ColorLabels';
23
27
  export type { MenuItemAccent } from './MenuItem/types/MenuItemAccent';
24
- export type { MenuItemDraggableGripMode } from './MenuItem/types/MenuItemDraggableGripMode';
25
- export type { MenuItemProps } from './MenuItem/types/MenuItemProps';
26
- export { MenuItemAvatar } from './MenuItemAvatar/MenuItemAvatar';
27
- export type { MenuItemAvatarProps } from './MenuItemAvatar/types/MenuItemAvatarProps';
28
- export { MenuItemDraggable } from './MenuItemDraggable/MenuItemDraggable';
29
- export type { MenuItemDraggableProps } from './MenuItemDraggable/types/MenuItemDraggableProps';
30
- export { MenuItemSuggestion } from './MenuItemSuggestion/MenuItemSuggestion';
31
- export type { MenuItemSuggestionProps } from './MenuItemSuggestion/types/MenuItemSuggestionProps';
32
- export { MenuPicker } from './MenuPicker/MenuPicker';
33
- export type { MenuPickerProps } from './MenuPicker/types/MenuPickerProps';
34
28
  export { TabButton } from './TabButton/TabButton';
35
29
  export type { TabButtonProps } from './TabButton/types/TabButtonProps';
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-BKjAaZS0.cjs"),e=require("../navigation-DrOV5E67.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=t.Dropdown;exports.ListItemButton=e.ListItemButton;exports.MenuItem=e.MenuItem;exports.MenuItemAvatar=e.MenuItemAvatar;exports.MenuItemDraggable=e.MenuItemDraggable;exports.MenuItemSuggestion=e.MenuItemSuggestion;exports.MenuPicker=e.MenuPicker;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../Dropdown-DlItz8Gh.cjs"),e=require("../navigation-7Y6gHFlj.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=o.Dropdown;exports.ListItemButton=e.ListItemButton;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
@@ -1,14 +1,9 @@
1
- import { t } from "../Dropdown-C2hXrjvD.js";
2
- import { a as s, c as o, i as n, l as r, n as m, o as u, r as i, s as g, t as p } from "../navigation-B1SRvzKK.js";
1
+ import { t } from "../Dropdown-ChTVyesF.js";
2
+ import { i as a, n as s, r as m, t as n } from "../navigation-BcXCiLE1.js";
3
3
  export {
4
- g as DEFAULT_COLOR_LABELS,
4
+ s as DEFAULT_COLOR_LABELS,
5
5
  t as Dropdown,
6
- o as ListItemButton,
7
- u as MenuItem,
8
- s as MenuItemAvatar,
9
- n as MenuItemDraggable,
10
- i as MenuItemSuggestion,
11
- m as MenuPicker,
12
- p as TabButton,
13
- r as useDropdownPage
6
+ m as ListItemButton,
7
+ n as TabButton,
8
+ a as useDropdownPage
14
9
  };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-BAYsnlZJ.cjs");exports.SettingsRow=e.SettingsRow;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-DT5bEO6A.cjs");exports.SettingsRow=e.SettingsRow;
@@ -1,4 +1,4 @@
1
- import { t as o } from "../settings-BjEZiHXE.js";
1
+ import { t as o } from "../settings-XGSJtobU.js";
2
2
  export {
3
3
  o as SettingsRow
4
4
  };
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./data-display-DjhAHvj1.cjs"),i=require("./TintedIconTile-CU2hCerq.cjs"),n=require("./feedback-ybO4n69s.cjs"),r=require("./Dropdown-BKjAaZS0.cjs"),e=require("./input-3D2lXywH.cjs"),u=require("./layout-VaIq7Sjr.cjs"),t=require("./navigation-DrOV5E67.cjs"),a=require("./settings-BAYsnlZJ.cjs");exports.AnimatedIconCrossfade=u.AnimatedIconCrossfade;exports.AvatarGroup=o.AvatarGroup;exports.Callout=n.Callout;exports.CommandBlock=o.CommandBlock;exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=t.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=e.ImageInput;exports.InlineBanner=n.InlineBanner;exports.JsonTree=o.JsonTree;exports.LightButton=e.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=t.ListItemButton;exports.MainButton=e.MainButton;exports.MenuItem=t.MenuItem;exports.MenuItemAvatar=t.MenuItemAvatar;exports.MenuItemDraggable=t.MenuItemDraggable;exports.MenuItemSuggestion=t.MenuItemSuggestion;exports.MenuPicker=t.MenuPicker;exports.MetricRow=o.MetricRow;exports.NumberStepper=e.NumberStepper;exports.OverflowingList=u.OverflowingList;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.Section=u.Section;exports.SegmentedControl=e.SegmentedControl;exports.SettingsRow=a.SettingsRow;exports.StackIcon=o.StackIcon;exports.TabButton=t.TabButton;exports.TintedIconTile=i.TintedIconTile;exports.Toast=n.Toast;exports.ToastProvider=n.ToastProvider;exports.Toaster=n.Toaster;exports.getIconTileColorShades=i.getIconTileColorShades;exports.useDropdownPage=t.useDropdownPage;exports.useToast=n.useToast;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./data-display-CM1yXpnE.cjs"),o=require("./feedback-DspXawf9.cjs"),e=require("./input-CvZ_uB_9.cjs"),r=require("./Dropdown-DlItz8Gh.cjs"),i=require("./layout-iSfGrMrH.cjs"),n=require("./navigation-7Y6gHFlj.cjs"),u=require("./settings-DT5bEO6A.cjs");exports.AnimatedIconCrossfade=i.AnimatedIconCrossfade;exports.AvatarGroup=t.AvatarGroup;exports.Callout=o.Callout;exports.CommandBlock=t.CommandBlock;exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=n.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=e.ImageInput;exports.InlineBanner=o.InlineBanner;exports.JsonTree=t.JsonTree;exports.LightButton=e.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=n.ListItemButton;exports.MainButton=e.MainButton;exports.MetricRow=t.MetricRow;exports.NumberStepper=e.NumberStepper;exports.OverflowingList=i.OverflowingList;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.Section=i.Section;exports.SegmentedControl=e.SegmentedControl;exports.SettingsRow=u.SettingsRow;exports.StackIcon=t.StackIcon;exports.TabButton=n.TabButton;exports.TintedIconTile=t.TintedIconTile;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.Toaster=o.Toaster;exports.getIconTileColorShades=t.getIconTileColorShades;exports.useDropdownPage=n.useDropdownPage;exports.useToast=o.useToast;
@@ -1,48 +1,42 @@
1
- import { a as t, i as o, n as s, r, t as e } from "./data-display-KyZbLLy-.js";
2
- import { n as i, t as m } from "./TintedIconTile-4BGa8g8n.js";
3
- import { a as c, i as p, n as I, o as l, r as g, t as f } from "./feedback-CM6fatE8.js";
4
- import { n as T, r as d, t as B } from "./Dropdown-C2hXrjvD.js";
5
- import { a as L, c as M, i as P, l as h, n as k, o as w, r as A, s as v, t as D } from "./input-TM3nUdu6.js";
6
- import { n as y, r as O, t as R } from "./layout-BszCDxAO.js";
7
- import { a as _, c as x, i as F, l as G, n as J, o as N, r as U, s as j, t as q } from "./navigation-B1SRvzKK.js";
8
- import { t as H } from "./settings-BjEZiHXE.js";
1
+ import { a, i as t, n as s, o as r, r as n, s as e, t as i } from "./data-display-C-eoJ5En.js";
2
+ import { a as c, i as u, n as p, o as l, r as I, t as T } from "./feedback-4HKPcMRs.js";
3
+ import { a as f, c as B, i as C, l as S, n as g, o as L, r as h, s as w, t as P } from "./input-Qn5_aFYU.js";
4
+ import { a as A, i as v, t as y } from "./Dropdown-ChTVyesF.js";
5
+ import { n as O, r as R, t as b } from "./layout-DDqeMgFv.js";
6
+ import { i as M, n as _, r as x, t as F } from "./navigation-BcXCiLE1.js";
7
+ import { t as J } from "./settings-XGSJtobU.js";
9
8
  export {
10
- O as AnimatedIconCrossfade,
11
- t as AvatarGroup,
9
+ R as AnimatedIconCrossfade,
10
+ e as AvatarGroup,
12
11
  l as Callout,
13
- o as CommandBlock,
14
- h as CountrySelect,
15
- M as CurrencyPicker,
16
- j as DEFAULT_COLOR_LABELS,
17
- B as Dropdown,
18
- d as IconButton,
19
- v as ImageInput,
12
+ r as CommandBlock,
13
+ S as CountrySelect,
14
+ B as CurrencyPicker,
15
+ _ as DEFAULT_COLOR_LABELS,
16
+ y as Dropdown,
17
+ A as IconButton,
18
+ w as ImageInput,
20
19
  c as InlineBanner,
21
- r as JsonTree,
22
- w as LightButton,
23
- T as LightIconButton,
20
+ a as JsonTree,
21
+ L as LightButton,
22
+ v as LightIconButton,
24
23
  x as ListItemButton,
25
- L as MainButton,
26
- N as MenuItem,
27
- _ as MenuItemAvatar,
28
- F as MenuItemDraggable,
29
- U as MenuItemSuggestion,
30
- J as MenuPicker,
31
- s as MetricRow,
32
- P as NumberStepper,
33
- y as OverflowingList,
34
- A as PhoneCountryPicker,
35
- k as SearchInput,
36
- R as Section,
37
- D as SegmentedControl,
38
- H as SettingsRow,
39
- e as StackIcon,
40
- q as TabButton,
41
- m as TintedIconTile,
42
- g as Toast,
43
- I as ToastProvider,
44
- f as Toaster,
45
- i as getIconTileColorShades,
46
- G as useDropdownPage,
47
- p as useToast
24
+ f as MainButton,
25
+ t as MetricRow,
26
+ C as NumberStepper,
27
+ O as OverflowingList,
28
+ h as PhoneCountryPicker,
29
+ g as SearchInput,
30
+ b as Section,
31
+ P as SegmentedControl,
32
+ J as SettingsRow,
33
+ n as StackIcon,
34
+ F as TabButton,
35
+ i as TintedIconTile,
36
+ I as Toast,
37
+ p as ToastProvider,
38
+ T as Toaster,
39
+ s as getIconTileColorShades,
40
+ M as useDropdownPage,
41
+ u as useToast
48
42
  };
@@ -0,0 +1,378 @@
1
+ import { t as _ } from "./isDefined-fMi6eQ4r.js";
2
+ import { Jc as Y, No as Z, Pn as ee, Tn as re, Vt as G, rr as oe, wn as ne } from "./icon-CUE-QGQK.js";
3
+ import { t as te } from "./doNotTranslate-BSVT8Xyd.js";
4
+ import { a as T, h as ae, r as K } from "./theme-B2EaXhye.js";
5
+ import { t as le } from "./VisuallyHidden-CFZP7ybO.js";
6
+ import { t as se } from "./ProgressRing-8mYV9cxE.js";
7
+ import { s as ie } from "./utilities-BKCMZyqZ.js";
8
+ import { useRender as x } from "@base-ui/react/use-render";
9
+ import { isArray as ce, isBoolean as de, isNonEmptyArray as D, isNonEmptyString as V, isNumber as ue, isString as _e } from "@sniptt/guards";
10
+ import { clsx as c } from "clsx";
11
+ import { Children as E, createContext as me, isValidElement as ve, useContext as he, useId as pe, useState as be } from "react";
12
+ import { Fragment as S, jsx as o, jsxs as d } from "react/jsx-runtime";
13
+ import { Collapsible as P } from "@base-ui/react/collapsible";
14
+ var Ce = "_container_5cu4g_1", Ne = "_itemContainer_5cu4g_6", fe = "_overflowCountContainer_5cu4g_22", ge = "_overflowCount_5cu4g_22", g = {
15
+ container: Ce,
16
+ itemContainer: Ne,
17
+ overflowCountContainer: fe,
18
+ overflowCount: ge
19
+ }, Ie = 4, Tr = ({ avatars: e, className: r, maxVisible: n = Ie, total: t, renderOverflow: s, overflowShape: l = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ...m }) => {
20
+ const u = E.toArray(e), y = Number.isNaN(n) ? 0 : Math.max(0, Math.floor(n)), N = u.slice(0, y), h = t ?? u.length, f = (Number.isFinite(h) ? Math.max(u.length, Math.floor(h)) : u.length) - N.length, A = _(s), w = f > 0 && (A ? s(f) : /* @__PURE__ */ d("span", {
21
+ className: g.overflowCount,
22
+ "data-shape": l,
23
+ children: ["+", f]
24
+ })), F = D(E.toArray(w)), M = { "--avatar-group-overlap-offset": i }, W = x({
25
+ render: b,
26
+ ref: C,
27
+ props: {
28
+ ...m,
29
+ className: c(g.container, r),
30
+ children: /* @__PURE__ */ d(S, { children: [E.map(N, (L) => /* @__PURE__ */ o("span", {
31
+ className: g.itemContainer,
32
+ "data-overlap": a,
33
+ style: M,
34
+ children: L
35
+ }, ve(L) ? L.key : void 0)), F && /* @__PURE__ */ o("span", {
36
+ className: c(g.itemContainer, !A && g.overflowCountContainer),
37
+ "data-overlap": a,
38
+ style: M,
39
+ children: w
40
+ })] })
41
+ }
42
+ });
43
+ return D(N) || F ? W : null;
44
+ }, Te = "_container_1j72k_1", xe = "_commands_1j72k_13", ye = "_actions_1j72k_25", Ae = "_prompt_1j72k_32", k = {
45
+ container: Te,
46
+ commands: xe,
47
+ actions: ye,
48
+ prompt: Ae
49
+ }, xr = ({ commands: e, actions: r, render: n, ref: t, className: s, ...l }) => x({
50
+ render: n,
51
+ ref: t,
52
+ props: {
53
+ ...l,
54
+ className: c(k.container, s),
55
+ children: /* @__PURE__ */ d(S, { children: [/* @__PURE__ */ o("pre", {
56
+ className: k.commands,
57
+ children: /* @__PURE__ */ o("code", { children: e.map((a, i) => /* @__PURE__ */ d("span", { children: [
58
+ i > 0 && `
59
+ `,
60
+ /* @__PURE__ */ o("span", {
61
+ className: k.prompt,
62
+ "aria-hidden": "true",
63
+ children: "> "
64
+ }),
65
+ a
66
+ ] }, i)) })
67
+ }), _(r) && /* @__PURE__ */ o("div", {
68
+ className: k.actions,
69
+ children: r
70
+ })] })
71
+ }
72
+ }), we = "_list_1i4lv_1", ke = "_nested_1i4lv_8", z = {
73
+ list: we,
74
+ nested: ke
75
+ }, Je = ({ depth: e, className: r, children: n }) => /* @__PURE__ */ o("ul", {
76
+ className: c(z.list, e > 0 && z.nested, r),
77
+ children: n
78
+ }), U = me(void 0), p = () => {
79
+ const e = he(U);
80
+ if (!_(e)) throw new Error(te("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
81
+ return e;
82
+ }, Se = "_button_1e3ij_1", Le = "_red_1e3ij_17", Ee = "_chevron_1e3ij_22", $ = {
83
+ button: Se,
84
+ red: Le,
85
+ chevron: Ee
86
+ }, $e = ({ isOpen: e, onClick: r, variant: n }) => {
87
+ const t = K(), { arrowButtonCollapsedLabel: s, arrowButtonExpandedLabel: l } = p(), a = n === "blue" ? T.color.blue : n === "red" ? T.font.color.danger : T.font.color.secondary;
88
+ return /* @__PURE__ */ d("button", {
89
+ className: c($.button, n === "red" && $.red),
90
+ onClick: r,
91
+ children: [/* @__PURE__ */ o(le, { children: e ? l : s }), /* @__PURE__ */ o("div", {
92
+ className: $.chevron,
93
+ "data-open": e || void 0,
94
+ children: /* @__PURE__ */ o(re, {
95
+ size: t.icon.size.md,
96
+ color: a
97
+ })
98
+ })]
99
+ });
100
+ }, je = ({ label: e, value: r, depth: n, keyPath: t, highlighting: s }) => {
101
+ const { emptyArrayLabel: l } = p();
102
+ return /* @__PURE__ */ o(B, {
103
+ elements: [...r.entries()].map(([a, i]) => ({
104
+ id: a,
105
+ label: String(a),
106
+ value: i
107
+ })),
108
+ renderElementsCount: (a) => `[${a}]`,
109
+ label: e,
110
+ Icon: G,
111
+ depth: n,
112
+ emptyElementsText: l,
113
+ keyPath: t,
114
+ highlighting: s
115
+ });
116
+ }, Oe = ({ label: e, value: r, depth: n, keyPath: t, highlighting: s }) => {
117
+ const { emptyObjectLabel: l } = p();
118
+ return /* @__PURE__ */ o(B, {
119
+ elements: Object.entries(r).map(([a, i]) => ({
120
+ id: a,
121
+ label: a,
122
+ value: i
123
+ })),
124
+ renderElementsCount: (a) => `{${a}}`,
125
+ label: e,
126
+ Icon: oe,
127
+ depth: n,
128
+ emptyElementsText: l,
129
+ keyPath: t,
130
+ highlighting: s
131
+ });
132
+ }, Re = "_labelContainer_1pq94_1", qe = "_blue_1pq94_23", Ve = "_red_1pq94_29", j = {
133
+ labelContainer: Re,
134
+ blue: qe,
135
+ red: Ve
136
+ }, X = ({ label: e, Icon: r, highlighting: n }) => {
137
+ const t = K();
138
+ return /* @__PURE__ */ d("span", {
139
+ className: c(j.labelContainer, n === "blue" && j.blue, n === "red" && j.red),
140
+ children: [/* @__PURE__ */ o(r, {
141
+ size: t.icon.size.md,
142
+ color: n === "blue" ? t.color.blue : n === "red" ? t.font.color.danger : t.font.color.tertiary
143
+ }), /* @__PURE__ */ o("span", { children: e })]
144
+ });
145
+ }, Be = "_text_1ot24_1", Fe = "_blue_1ot24_10", Me = "_red_1ot24_14", De = "_button_1ot24_18", J = {
146
+ text: Be,
147
+ blue: Fe,
148
+ red: Me,
149
+ button: De
150
+ }, Pe = ({ valueAsString: e, highlighting: r }) => {
151
+ const { onNodeValueClick: n } = p(), t = _(n), s = () => {
152
+ n?.(e);
153
+ }, l = c(J.text, r === "blue" && J.blue, r === "red" && J.red);
154
+ return t ? /* @__PURE__ */ o("button", {
155
+ className: c(l, J.button),
156
+ type: "button",
157
+ onClick: s,
158
+ children: e
159
+ }) : /* @__PURE__ */ o("span", {
160
+ className: l,
161
+ children: e
162
+ });
163
+ }, ze = "_listItem_1i7if_1", He = { listItem: ze }, I = (e) => /* @__PURE__ */ d("li", {
164
+ className: He.listItem,
165
+ children: [e.label && /* @__PURE__ */ o(X, {
166
+ label: e.label,
167
+ Icon: e.Icon,
168
+ highlighting: e.highlighting
169
+ }), /* @__PURE__ */ o(Pe, {
170
+ valueAsString: e.valueAsString,
171
+ highlighting: e.highlighting
172
+ })]
173
+ }), Ge = (e) => ce(e), Q = ({ label: e, value: r, depth: n, keyPath: t }) => {
174
+ const { getNodeHighlighting: s, emptyStringLabel: l } = p(), a = s?.(t);
175
+ return _(r) ? _e(r) ? /* @__PURE__ */ o(I, {
176
+ label: e,
177
+ valueAsString: V(r) ? r : l,
178
+ Icon: Y,
179
+ highlighting: a
180
+ }) : ue(r) ? /* @__PURE__ */ o(I, {
181
+ label: e,
182
+ valueAsString: String(r),
183
+ Icon: Z,
184
+ highlighting: a
185
+ }) : de(r) ? /* @__PURE__ */ o(I, {
186
+ label: e,
187
+ valueAsString: String(r),
188
+ Icon: ne,
189
+ highlighting: a
190
+ }) : Ge(r) ? /* @__PURE__ */ o(je, {
191
+ label: e,
192
+ value: r,
193
+ depth: n,
194
+ keyPath: t,
195
+ highlighting: a
196
+ }) : /* @__PURE__ */ o(Oe, {
197
+ label: e,
198
+ value: r,
199
+ depth: n,
200
+ keyPath: t,
201
+ highlighting: a
202
+ }) : /* @__PURE__ */ o(I, {
203
+ label: e,
204
+ valueAsString: "null",
205
+ Icon: ee,
206
+ highlighting: a
207
+ });
208
+ }, Ke = "_container_d0cqx_1", Ue = "_labelContainer_d0cqx_6", Xe = "_elementsCount_d0cqx_12", Qe = "_elementsCountRed_d0cqx_16", We = "_panel_d0cqx_20", Ye = "_list_d0cqx_30", Ze = "_nested_d0cqx_37", v = {
209
+ container: Ke,
210
+ labelContainer: Ue,
211
+ elementsCount: Xe,
212
+ elementsCountRed: Qe,
213
+ panel: We,
214
+ list: Ye,
215
+ nested: Ze
216
+ }, B = ({ label: e, Icon: r, elements: n, renderElementsCount: t, emptyElementsText: s, depth: l, keyPath: a, highlighting: i }) => {
217
+ const { shouldExpandNodeInitially: b } = p(), C = !_(e), [m, u] = be(b({
218
+ keyPath: a,
219
+ depth: l
220
+ })), y = /* @__PURE__ */ o("ul", {
221
+ className: c(v.list, l > 0 && v.nested),
222
+ children: n.length === 0 ? /* @__PURE__ */ o(I, {
223
+ valueAsString: s,
224
+ highlighting: void 0
225
+ }) : n.map(({ id: h, label: f, value: A }) => {
226
+ const w = V(a) ? `${a}.${h}` : String(h);
227
+ return /* @__PURE__ */ o(Q, {
228
+ label: f,
229
+ value: A,
230
+ depth: l + 1,
231
+ keyPath: w
232
+ }, h);
233
+ })
234
+ }), N = () => {
235
+ u(!m);
236
+ };
237
+ return C ? /* @__PURE__ */ o("li", {
238
+ className: v.container,
239
+ children: y
240
+ }) : /* @__PURE__ */ d(P.Root, {
241
+ className: v.container,
242
+ open: m,
243
+ render: /* @__PURE__ */ o("li", {}),
244
+ children: [/* @__PURE__ */ d("div", {
245
+ className: v.labelContainer,
246
+ children: [
247
+ /* @__PURE__ */ o($e, {
248
+ isOpen: m,
249
+ onClick: N,
250
+ variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
251
+ }),
252
+ /* @__PURE__ */ o(X, {
253
+ label: e,
254
+ Icon: r,
255
+ highlighting: i === "red" ? i : void 0
256
+ }),
257
+ t && /* @__PURE__ */ o("span", {
258
+ className: c(v.elementsCount, i === "red" && v.elementsCountRed),
259
+ children: t(n.length)
260
+ })
261
+ ]
262
+ }), /* @__PURE__ */ o(P.Panel, {
263
+ className: v.panel,
264
+ children: y
265
+ })]
266
+ });
267
+ }, er = ({ value: e, children: r }) => /* @__PURE__ */ o(U.Provider, {
268
+ value: e,
269
+ children: r
270
+ }), rr = ({ depth: e }) => e <= 1, yr = ({ value: e, entries: r, shouldExpandNodeInitially: n = rr, ...t }) => /* @__PURE__ */ o(er, {
271
+ value: {
272
+ ...t,
273
+ shouldExpandNodeInitially: n
274
+ },
275
+ children: /* @__PURE__ */ o(Je, {
276
+ depth: 0,
277
+ children: _(r) ? /* @__PURE__ */ o(B, {
278
+ elements: r,
279
+ Icon: G,
280
+ depth: 0,
281
+ keyPath: "",
282
+ emptyElementsText: t.emptyObjectLabel
283
+ }) : /* @__PURE__ */ o(Q, {
284
+ value: e ?? null,
285
+ depth: 0,
286
+ keyPath: ""
287
+ })
288
+ })
289
+ }), or = "_row_1hj4l_1", nr = "_label_1hj4l_11", tr = "_icon_1hj4l_20", O = {
290
+ row: or,
291
+ label: nr,
292
+ icon: tr
293
+ }, Ar = ({ children: e, startIcon: r, value: n, progress: t, progressColor: s, progressValueText: l, render: a, ref: i, className: b, ...C }) => {
294
+ const m = pe(), u = l ?? n;
295
+ return x({
296
+ render: a,
297
+ ref: i,
298
+ props: {
299
+ ...C,
300
+ className: c(O.row, b),
301
+ children: /* @__PURE__ */ d(S, { children: [/* @__PURE__ */ d("div", {
302
+ className: O.label,
303
+ children: [_(r) && /* @__PURE__ */ o("span", {
304
+ className: O.icon,
305
+ "aria-hidden": "true",
306
+ children: r
307
+ }), /* @__PURE__ */ o("span", {
308
+ id: m,
309
+ children: e
310
+ })]
311
+ }), _(t) ? /* @__PURE__ */ o(se, {
312
+ value: t,
313
+ size: "sm",
314
+ barColor: s,
315
+ "aria-labelledby": m,
316
+ ...V(u) ? { "aria-valuetext": u } : {},
317
+ children: n
318
+ }) : /* @__PURE__ */ o("span", { children: n })] })
319
+ }
320
+ });
321
+ }, ar = "_root_7l8sk_1", lr = "_stackedIcon_7l8sk_14", H = {
322
+ root: ar,
323
+ stackedIcon: lr
324
+ }, wr = ({ icon: e, stackedIcon: r, className: n, render: t, ref: s, ...l }) => x({
325
+ render: t,
326
+ ref: s,
327
+ props: {
328
+ ...l,
329
+ className: c(H.root, n),
330
+ children: /* @__PURE__ */ d(S, { children: [/* @__PURE__ */ o("span", {
331
+ "aria-hidden": "true",
332
+ children: e
333
+ }), /* @__PURE__ */ o("span", {
334
+ "aria-hidden": "true",
335
+ className: H.stackedIcon,
336
+ children: r
337
+ })] })
338
+ }
339
+ }), R = {
340
+ background: 4,
341
+ border: 6,
342
+ icon: 10
343
+ }, q = (e, r) => T.color[`${e}${r}`] ?? T.tag.text[e], sr = (e) => {
344
+ const r = ie(e);
345
+ return {
346
+ backgroundColor: q(r, R.background),
347
+ iconColor: q(r, R.icon),
348
+ borderColor: q(r, R.border)
349
+ };
350
+ }, ir = "_root_9ntdy_1", cr = { root: ir }, kr = ({ icon: e, color: r = ae, className: n, style: t, render: s, ref: l, ...a }) => {
351
+ const i = sr(r);
352
+ return x({
353
+ render: s,
354
+ ref: l,
355
+ props: {
356
+ ...a,
357
+ className: c(cr.root, n),
358
+ style: {
359
+ backgroundColor: i.backgroundColor,
360
+ color: i.iconColor,
361
+ ...t
362
+ },
363
+ children: /* @__PURE__ */ o("span", {
364
+ "aria-hidden": "true",
365
+ children: e
366
+ })
367
+ }
368
+ });
369
+ };
370
+ export {
371
+ yr as a,
372
+ Ar as i,
373
+ sr as n,
374
+ xr as o,
375
+ wr as r,
376
+ Tr as s,
377
+ kr as t
378
+ };
@@ -0,0 +1,2 @@
1
+ const x=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),X=require("./doNotTranslate-CHE7WmRS.cjs"),Q=require("./VisuallyHidden-B-n4x1KY.cjs"),W=require("./ProgressRing-g1nHGyUp.cjs"),Y=require("./utilities-xZh8D2gd.cjs");let T=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),c=require("clsx"),h=require("react"),e=require("react/jsx-runtime"),B=require("@base-ui/react/collapsible"),b=require("@tabler/icons-react");var Z="_container_5cu4g_1",ee="_itemContainer_5cu4g_6",re="_overflowCountContainer_5cu4g_22",ne="_overflowCount_5cu4g_22",y={container:Z,itemContainer:ee,overflowCountContainer:re,overflowCount:ne},te=4,oe=({avatars:r,className:n,maxVisible:t=te,total:o,renderOverflow:l,overflowShape:a="square",overlap:s="right",overlapOffset:i="3px",render:C,ref:f,...m})=>{const d=h.Children.toArray(r),q=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),N=d.slice(0,q),p=o??d.length,g=(Number.isFinite(p)?Math.max(d.length,Math.floor(p)):d.length)-N.length,A=_.isDefined(l),k=g>0&&(A?l(g):(0,e.jsxs)("span",{className:y.overflowCount,"data-shape":a,children:["+",g]})),V=(0,u.isNonEmptyArray)(h.Children.toArray(k)),P={"--avatar-group-overlap-offset":i},U=(0,T.useRender)({render:C,ref:f,props:{...m,className:(0,c.clsx)(y.container,n),children:(0,e.jsxs)(e.Fragment,{children:[h.Children.map(N,J=>(0,e.jsx)("span",{className:y.itemContainer,"data-overlap":s,style:P,children:J},(0,h.isValidElement)(J)?J.key:void 0)),V&&(0,e.jsx)("span",{className:(0,c.clsx)(y.itemContainer,!A&&y.overflowCountContainer),"data-overlap":s,style:P,children:k})]})}});return(0,u.isNonEmptyArray)(N)||V?U:null},se="_container_1j72k_1",ae="_commands_1j72k_13",le="_actions_1j72k_25",ie="_prompt_1j72k_32",w={container:se,commands:ae,actions:le,prompt:ie},ce=({commands:r,actions:n,render:t,ref:o,className:l,...a})=>(0,T.useRender)({render:t,ref:o,props:{...a,className:(0,c.clsx)(w.container,l),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:w.commands,children:(0,e.jsx)("code",{children:r.map((s,i)=>(0,e.jsxs)("span",{children:[i>0&&`
2
+ `,(0,e.jsx)("span",{className:w.prompt,"aria-hidden":"true",children:"> "}),s]},i))})}),_.isDefined(n)&&(0,e.jsx)("div",{className:w.actions,children:n})]})}}),de="_list_1i4lv_1",ue="_nested_1i4lv_8",F={list:de,nested:ue},_e=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(F.list,r>0&&F.nested,n),children:t}),z=(0,h.createContext)(void 0),j=()=>{const r=(0,h.useContext)(z);if(!_.isDefined(r))throw new Error(X.doNotTranslate("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));return r},me="_button_1e3ij_1",ve="_red_1e3ij_17",xe="_chevron_1e3ij_22",E={button:me,red:ve,chevron:xe},he=({isOpen:r,onClick:n,variant:t})=>{const o=x.useTheme(),{arrowButtonCollapsedLabel:l,arrowButtonExpandedLabel:a}=j(),s=t==="blue"?x.themeCssVariables.color.blue:t==="red"?x.themeCssVariables.font.color.danger:x.themeCssVariables.font.color.secondary;return(0,e.jsxs)("button",{className:(0,c.clsx)(E.button,t==="red"&&E.red),onClick:n,children:[(0,e.jsx)(Q.VisuallyHidden,{children:r?a:l}),(0,e.jsx)("div",{className:E.chevron,"data-open":r||void 0,children:(0,e.jsx)(b.IconChevronDown,{size:o.icon.size.md,color:s})})]})},be=({label:r,value:n,depth:t,keyPath:o,highlighting:l})=>{const{emptyArrayLabel:a}=j();return(0,e.jsx)($,{elements:[...n.entries()].map(([s,i])=>({id:s,label:String(s),value:i})),renderElementsCount:s=>`[${s}]`,label:r,Icon:b.IconBrackets,depth:t,emptyElementsText:a,keyPath:o,highlighting:l})},pe=({label:r,value:n,depth:t,keyPath:o,highlighting:l})=>{const{emptyObjectLabel:a}=j();return(0,e.jsx)($,{elements:Object.entries(n).map(([s,i])=>({id:s,label:s,value:i})),renderElementsCount:s=>`{${s}}`,label:r,Icon:b.IconCube,depth:t,emptyElementsText:a,keyPath:o,highlighting:l})},je="_labelContainer_1pq94_1",Ce="_blue_1pq94_23",fe="_red_1pq94_29",O={labelContainer:je,blue:Ce,red:fe},H=({label:r,Icon:n,highlighting:t})=>{const o=x.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(O.labelContainer,t==="blue"&&O.blue,t==="red"&&O.red),children:[(0,e.jsx)(n,{size:o.icon.size.md,color:t==="blue"?o.color.blue:t==="red"?o.font.color.danger:o.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},Ne="_text_1ot24_1",ge="_blue_1ot24_10",ye="_red_1ot24_14",Ie="_button_1ot24_18",S={text:Ne,blue:ge,red:ye,button:Ie},Te=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=j(),o=_.isDefined(t),l=()=>{t?.(r)},a=(0,c.clsx)(S.text,n==="blue"&&S.blue,n==="red"&&S.red);return o?(0,e.jsx)("button",{className:(0,c.clsx)(a,S.button),type:"button",onClick:l,children:r}):(0,e.jsx)("span",{className:a,children:r})},qe="_listItem_1i7if_1",Ae={listItem:qe},I=r=>(0,e.jsxs)("li",{className:Ae.listItem,children:[r.label&&(0,e.jsx)(H,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)(Te,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),ke=r=>(0,u.isArray)(r),G=({label:r,value:n,depth:t,keyPath:o})=>{const{getNodeHighlighting:l,emptyStringLabel:a}=j(),s=l?.(o);return _.isDefined(n)?(0,u.isString)(n)?(0,e.jsx)(I,{label:r,valueAsString:(0,u.isNonEmptyString)(n)?n:a,Icon:b.IconTypography,highlighting:s}):(0,u.isNumber)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:b.IconNumber9,highlighting:s}):(0,u.isBoolean)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:b.IconCheckbox,highlighting:s}):ke(n)?(0,e.jsx)(be,{label:r,value:n,depth:t,keyPath:o,highlighting:s}):(0,e.jsx)(pe,{label:r,value:n,depth:t,keyPath:o,highlighting:s}):(0,e.jsx)(I,{label:r,valueAsString:"null",Icon:b.IconCircleOff,highlighting:s})},we="_container_d0cqx_1",Se="_labelContainer_d0cqx_6",Je="_elementsCount_d0cqx_12",Ee="_elementsCountRed_d0cqx_16",Oe="_panel_d0cqx_20",Le="_list_d0cqx_30",Re="_nested_d0cqx_37",v={container:we,labelContainer:Se,elementsCount:Je,elementsCountRed:Ee,panel:Oe,list:Le,nested:Re},$=({label:r,Icon:n,elements:t,renderElementsCount:o,emptyElementsText:l,depth:a,keyPath:s,highlighting:i})=>{const{shouldExpandNodeInitially:C}=j(),f=!_.isDefined(r),[m,d]=(0,h.useState)(C({keyPath:s,depth:a})),q=(0,e.jsx)("ul",{className:(0,c.clsx)(v.list,a>0&&v.nested),children:t.length===0?(0,e.jsx)(I,{valueAsString:l,highlighting:void 0}):t.map(({id:p,label:g,value:A})=>{const k=(0,u.isNonEmptyString)(s)?`${s}.${p}`:String(p);return(0,e.jsx)(G,{label:g,value:A,depth:a+1,keyPath:k},p)})}),N=()=>{d(!m)};return f?(0,e.jsx)("li",{className:v.container,children:q}):(0,e.jsxs)(B.Collapsible.Root,{className:v.container,open:m,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:v.labelContainer,children:[(0,e.jsx)(he,{isOpen:m,onClick:N,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(H,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),o&&(0,e.jsx)("span",{className:(0,c.clsx)(v.elementsCount,i==="red"&&v.elementsCountRed),children:o(t.length)})]}),(0,e.jsx)(B.Collapsible.Panel,{className:v.panel,children:q})]})},De=({value:r,children:n})=>(0,e.jsx)(z.Provider,{value:r,children:n}),$e=({depth:r})=>r<=1,Ve=({value:r,entries:n,shouldExpandNodeInitially:t=$e,...o})=>(0,e.jsx)(De,{value:{...o,shouldExpandNodeInitially:t},children:(0,e.jsx)(_e,{depth:0,children:_.isDefined(n)?(0,e.jsx)($,{elements:n,Icon:b.IconBrackets,depth:0,keyPath:"",emptyElementsText:o.emptyObjectLabel}):(0,e.jsx)(G,{value:r??null,depth:0,keyPath:""})})}),Pe="_row_1hj4l_1",Be="_label_1hj4l_11",Fe="_icon_1hj4l_20",L={row:Pe,label:Be,icon:Fe},Me=({children:r,startIcon:n,value:t,progress:o,progressColor:l,progressValueText:a,render:s,ref:i,className:C,...f})=>{const m=(0,h.useId)(),d=a??t;return(0,T.useRender)({render:s,ref:i,props:{...f,className:(0,c.clsx)(L.row,C),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:L.label,children:[_.isDefined(n)&&(0,e.jsx)("span",{className:L.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:m,children:r})]}),_.isDefined(o)?(0,e.jsx)(W.ProgressRing,{value:o,size:"sm",barColor:l,"aria-labelledby":m,...(0,u.isNonEmptyString)(d)?{"aria-valuetext":d}:{},children:t}):(0,e.jsx)("span",{children:t})]})}})},ze="_root_7l8sk_1",He="_stackedIcon_7l8sk_14",M={root:ze,stackedIcon:He},Ge=({icon:r,stackedIcon:n,className:t,render:o,ref:l,...a})=>(0,T.useRender)({render:o,ref:l,props:{...a,className:(0,c.clsx)(M.root,t),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{"aria-hidden":"true",children:r}),(0,e.jsx)("span",{"aria-hidden":"true",className:M.stackedIcon,children:n})]})}}),R={background:4,border:6,icon:10},D=(r,n)=>x.themeCssVariables.color[`${r}${n}`]??x.themeCssVariables.tag.text[r],K=r=>{const n=Y.parseThemeColor(r);return{backgroundColor:D(n,R.background),iconColor:D(n,R.icon),borderColor:D(n,R.border)}},Ke="_root_9ntdy_1",Ue={root:Ke},Xe=({icon:r,color:n=x.DEFAULT_THEME_COLOR_FALLBACK,className:t,style:o,render:l,ref:a,...s})=>{const i=K(n);return(0,T.useRender)({render:l,ref:a,props:{...s,className:(0,c.clsx)(Ue.root,t),style:{backgroundColor:i.backgroundColor,color:i.iconColor,...o},children:(0,e.jsx)("span",{"aria-hidden":"true",children:r})}})};Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return ce}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Ve}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"StackIcon",{enumerable:!0,get:function(){return Ge}});Object.defineProperty(exports,"TintedIconTile",{enumerable:!0,get:function(){return Xe}});Object.defineProperty(exports,"getIconTileColorShades",{enumerable:!0,get:function(){return K}});