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,20 +1,21 @@
1
1
  import { t as u } from "./isDefined-fMi6eQ4r.js";
2
- import { Jc as Q, No as W, Pn as Y, Tn as Z, Vt as D, rr as ee, wn as re } from "./icon-BdXwnJA6.js";
2
+ import { Jc as Q, No as W, Pn as Y, Tn as Z, Vt as D, rr as ee, wn as re } from "./icon-CUE-QGQK.js";
3
+ import { t as ne } from "./doNotTranslate-BSVT8Xyd.js";
3
4
  import { a as j, r as G } from "./theme-B2EaXhye.js";
4
- import { t as ne } from "./VisuallyHidden-CFZP7ybO.js";
5
- import { t as te } from "./ProgressRing-8mYV9cxE.js";
5
+ import { t as te } from "./VisuallyHidden-CFZP7ybO.js";
6
+ import { t as oe } from "./ProgressRing-8mYV9cxE.js";
6
7
  import { useRender as T } from "@base-ui/react/use-render";
7
- import { isArray as oe, isBoolean as ae, isNonEmptyArray as M, isNonEmptyString as V, isNumber as se, isString as le } from "@sniptt/guards";
8
+ import { isArray as ae, isBoolean as se, isNonEmptyArray as M, isNonEmptyString as V, isNumber as le, isString as ie } from "@sniptt/guards";
8
9
  import { clsx as c } from "clsx";
9
- import { Children as $, createContext as ie, isValidElement as ce, useContext as de, useId as me, useState as ue } from "react";
10
+ import { Children as $, createContext as ce, isValidElement as de, useContext as me, useId as ue, useState as _e } from "react";
10
11
  import { Fragment as k, jsx as r, jsxs as d } from "react/jsx-runtime";
11
12
  import { Collapsible as P } from "@base-ui/react/collapsible";
12
- var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCountContainer_5cu4g_22", pe = "_overflowCount_5cu4g_22", x = {
13
- container: _e,
14
- itemContainer: ve,
15
- overflowCountContainer: he,
16
- overflowCount: pe
17
- }, be = 4, _r = ({ avatars: e, className: n, maxVisible: t = be, total: o, renderOverflow: l, overflowShape: s = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ..._ }) => {
13
+ var ve = "_container_5cu4g_1", he = "_itemContainer_5cu4g_6", pe = "_overflowCountContainer_5cu4g_22", be = "_overflowCount_5cu4g_22", x = {
14
+ container: ve,
15
+ itemContainer: he,
16
+ overflowCountContainer: pe,
17
+ overflowCount: be
18
+ }, Ce = 4, hr = ({ avatars: e, className: n, maxVisible: t = Ce, total: o, renderOverflow: l, overflowShape: s = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ..._ }) => {
18
19
  const m = $.toArray(e), g = Number.isNaN(t) ? 0 : Math.max(0, Math.floor(t)), N = m.slice(0, g), h = o ?? m.length, f = (Number.isFinite(h) ? Math.max(m.length, Math.floor(h)) : m.length) - N.length, w = u(l), y = f > 0 && (w ? l(f) : /* @__PURE__ */ d("span", {
19
20
  className: x.overflowCount,
20
21
  "data-shape": s,
@@ -30,7 +31,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
30
31
  "data-overlap": a,
31
32
  style: B,
32
33
  children: S
33
- }, ce(S) ? S.key : void 0)), O && /* @__PURE__ */ r("span", {
34
+ }, de(S) ? S.key : void 0)), O && /* @__PURE__ */ r("span", {
34
35
  className: c(x.itemContainer, !w && x.overflowCountContainer),
35
36
  "data-overlap": a,
36
37
  style: B,
@@ -39,12 +40,12 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
39
40
  }
40
41
  });
41
42
  return M(N) || O ? X : null;
42
- }, Ce = "_container_1j72k_1", Ne = "_commands_1j72k_13", fe = "_actions_1j72k_25", xe = "_prompt_1j72k_32", A = {
43
- container: Ce,
44
- commands: Ne,
45
- actions: fe,
46
- prompt: xe
47
- }, vr = ({ commands: e, actions: n, render: t, ref: o, className: l, ...s }) => T({
43
+ }, Ne = "_container_1j72k_1", fe = "_commands_1j72k_13", xe = "_actions_1j72k_25", Ie = "_prompt_1j72k_32", A = {
44
+ container: Ne,
45
+ commands: fe,
46
+ actions: xe,
47
+ prompt: Ie
48
+ }, pr = ({ commands: e, actions: n, render: t, ref: o, className: l, ...s }) => T({
48
49
  render: t,
49
50
  ref: o,
50
51
  props: {
@@ -67,26 +68,26 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
67
68
  children: n
68
69
  })] })
69
70
  }
70
- }), Ie = "_list_1i4lv_1", ge = "_nested_1i4lv_8", z = {
71
- list: Ie,
72
- nested: ge
73
- }, we = ({ depth: e, className: n, children: t }) => /* @__PURE__ */ r("ul", {
71
+ }), ge = "_list_1i4lv_1", we = "_nested_1i4lv_8", z = {
72
+ list: ge,
73
+ nested: we
74
+ }, ye = ({ depth: e, className: n, children: t }) => /* @__PURE__ */ r("ul", {
74
75
  className: c(z.list, e > 0 && z.nested, n),
75
76
  children: t
76
- }), H = ie(void 0), p = () => {
77
- const e = de(H);
78
- if (!u(e)) throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");
77
+ }), H = ce(void 0), p = () => {
78
+ const e = me(H);
79
+ if (!u(e)) throw new Error(ne("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
79
80
  return e;
80
- }, ye = "_button_1e3ij_1", Ae = "_red_1e3ij_17", Je = "_chevron_1e3ij_22", L = {
81
- button: ye,
82
- red: Ae,
83
- chevron: Je
84
- }, Te = ({ isOpen: e, onClick: n, variant: t }) => {
81
+ }, Ae = "_button_1e3ij_1", Je = "_red_1e3ij_17", Te = "_chevron_1e3ij_22", L = {
82
+ button: Ae,
83
+ red: Je,
84
+ chevron: Te
85
+ }, ke = ({ isOpen: e, onClick: n, variant: t }) => {
85
86
  const o = G(), { arrowButtonCollapsedLabel: l, arrowButtonExpandedLabel: s } = p(), a = t === "blue" ? j.color.blue : t === "red" ? j.font.color.danger : j.font.color.secondary;
86
87
  return /* @__PURE__ */ d("button", {
87
88
  className: c(L.button, t === "red" && L.red),
88
89
  onClick: n,
89
- children: [/* @__PURE__ */ r(ne, { children: e ? s : l }), /* @__PURE__ */ r("div", {
90
+ children: [/* @__PURE__ */ r(te, { children: e ? s : l }), /* @__PURE__ */ r("div", {
90
91
  className: L.chevron,
91
92
  "data-open": e || void 0,
92
93
  children: /* @__PURE__ */ r(Z, {
@@ -95,7 +96,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
95
96
  })
96
97
  })]
97
98
  });
98
- }, ke = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
99
+ }, Se = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
99
100
  const { emptyArrayLabel: s } = p();
100
101
  return /* @__PURE__ */ r(R, {
101
102
  elements: [...n.entries()].map(([a, i]) => ({
@@ -111,7 +112,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
111
112
  keyPath: o,
112
113
  highlighting: l
113
114
  });
114
- }, Se = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
115
+ }, je = ({ label: e, value: n, depth: t, keyPath: o, highlighting: l }) => {
115
116
  const { emptyObjectLabel: s } = p();
116
117
  return /* @__PURE__ */ r(R, {
117
118
  elements: Object.entries(n).map(([a, i]) => ({
@@ -127,10 +128,10 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
127
128
  keyPath: o,
128
129
  highlighting: l
129
130
  });
130
- }, je = "_labelContainer_1pq94_1", $e = "_blue_1pq94_23", Le = "_red_1pq94_29", E = {
131
- labelContainer: je,
132
- blue: $e,
133
- red: Le
131
+ }, $e = "_labelContainer_1pq94_1", Le = "_blue_1pq94_23", Ee = "_red_1pq94_29", E = {
132
+ labelContainer: $e,
133
+ blue: Le,
134
+ red: Ee
134
135
  }, K = ({ label: e, Icon: n, highlighting: t }) => {
135
136
  const o = G();
136
137
  return /* @__PURE__ */ d("span", {
@@ -140,12 +141,12 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
140
141
  color: t === "blue" ? o.color.blue : t === "red" ? o.font.color.danger : o.font.color.tertiary
141
142
  }), /* @__PURE__ */ r("span", { children: e })]
142
143
  });
143
- }, Ee = "_text_1ot24_1", qe = "_blue_1ot24_10", Ve = "_red_1ot24_14", Re = "_button_1ot24_18", J = {
144
- text: Ee,
145
- blue: qe,
146
- red: Ve,
147
- button: Re
148
- }, Oe = ({ valueAsString: e, highlighting: n }) => {
144
+ }, qe = "_text_1ot24_1", Ve = "_blue_1ot24_10", Re = "_red_1ot24_14", Oe = "_button_1ot24_18", J = {
145
+ text: qe,
146
+ blue: Ve,
147
+ red: Re,
148
+ button: Oe
149
+ }, Be = ({ valueAsString: e, highlighting: n }) => {
149
150
  const { onNodeValueClick: t } = p(), o = u(t), l = () => {
150
151
  t?.(e);
151
152
  }, s = c(J.text, n === "blue" && J.blue, n === "red" && J.red);
@@ -158,40 +159,40 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
158
159
  className: s,
159
160
  children: e
160
161
  });
161
- }, Be = "_listItem_1i7if_1", Me = { listItem: Be }, I = (e) => /* @__PURE__ */ d("li", {
162
- className: Me.listItem,
162
+ }, Me = "_listItem_1i7if_1", Pe = { listItem: Me }, I = (e) => /* @__PURE__ */ d("li", {
163
+ className: Pe.listItem,
163
164
  children: [e.label && /* @__PURE__ */ r(K, {
164
165
  label: e.label,
165
166
  Icon: e.Icon,
166
167
  highlighting: e.highlighting
167
- }), /* @__PURE__ */ r(Oe, {
168
+ }), /* @__PURE__ */ r(Be, {
168
169
  valueAsString: e.valueAsString,
169
170
  highlighting: e.highlighting
170
171
  })]
171
- }), Pe = (e) => oe(e), U = ({ label: e, value: n, depth: t, keyPath: o }) => {
172
+ }), ze = (e) => ae(e), U = ({ label: e, value: n, depth: t, keyPath: o }) => {
172
173
  const { getNodeHighlighting: l, emptyStringLabel: s } = p(), a = l?.(o);
173
- return u(n) ? le(n) ? /* @__PURE__ */ r(I, {
174
+ return u(n) ? ie(n) ? /* @__PURE__ */ r(I, {
174
175
  label: e,
175
176
  valueAsString: V(n) ? n : s,
176
177
  Icon: Q,
177
178
  highlighting: a
178
- }) : se(n) ? /* @__PURE__ */ r(I, {
179
+ }) : le(n) ? /* @__PURE__ */ r(I, {
179
180
  label: e,
180
181
  valueAsString: String(n),
181
182
  Icon: W,
182
183
  highlighting: a
183
- }) : ae(n) ? /* @__PURE__ */ r(I, {
184
+ }) : se(n) ? /* @__PURE__ */ r(I, {
184
185
  label: e,
185
186
  valueAsString: String(n),
186
187
  Icon: re,
187
188
  highlighting: a
188
- }) : Pe(n) ? /* @__PURE__ */ r(ke, {
189
+ }) : ze(n) ? /* @__PURE__ */ r(Se, {
189
190
  label: e,
190
191
  value: n,
191
192
  depth: t,
192
193
  keyPath: o,
193
194
  highlighting: a
194
- }) : /* @__PURE__ */ r(Se, {
195
+ }) : /* @__PURE__ */ r(je, {
195
196
  label: e,
196
197
  value: n,
197
198
  depth: t,
@@ -203,16 +204,16 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
203
204
  Icon: Y,
204
205
  highlighting: a
205
206
  });
206
- }, ze = "_container_d0cqx_1", Fe = "_labelContainer_d0cqx_6", De = "_elementsCount_d0cqx_12", Ge = "_elementsCountRed_d0cqx_16", He = "_panel_d0cqx_20", Ke = "_list_d0cqx_30", Ue = "_nested_d0cqx_37", v = {
207
- container: ze,
208
- labelContainer: Fe,
209
- elementsCount: De,
210
- elementsCountRed: Ge,
211
- panel: He,
212
- list: Ke,
213
- nested: Ue
207
+ }, Fe = "_container_d0cqx_1", De = "_labelContainer_d0cqx_6", Ge = "_elementsCount_d0cqx_12", He = "_elementsCountRed_d0cqx_16", Ke = "_panel_d0cqx_20", Ue = "_list_d0cqx_30", Xe = "_nested_d0cqx_37", v = {
208
+ container: Fe,
209
+ labelContainer: De,
210
+ elementsCount: Ge,
211
+ elementsCountRed: He,
212
+ panel: Ke,
213
+ list: Ue,
214
+ nested: Xe
214
215
  }, R = ({ label: e, Icon: n, elements: t, renderElementsCount: o, emptyElementsText: l, depth: s, keyPath: a, highlighting: i }) => {
215
- const { shouldExpandNodeInitially: b } = p(), C = !u(e), [_, m] = ue(b({
216
+ const { shouldExpandNodeInitially: b } = p(), C = !u(e), [_, m] = _e(b({
216
217
  keyPath: a,
217
218
  depth: s
218
219
  })), g = /* @__PURE__ */ r("ul", {
@@ -242,7 +243,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
242
243
  children: [/* @__PURE__ */ d("div", {
243
244
  className: v.labelContainer,
244
245
  children: [
245
- /* @__PURE__ */ r(Te, {
246
+ /* @__PURE__ */ r(ke, {
246
247
  isOpen: _,
247
248
  onClick: N,
248
249
  variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
@@ -262,15 +263,15 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
262
263
  children: g
263
264
  })]
264
265
  });
265
- }, Xe = ({ value: e, children: n }) => /* @__PURE__ */ r(H.Provider, {
266
+ }, Qe = ({ value: e, children: n }) => /* @__PURE__ */ r(H.Provider, {
266
267
  value: e,
267
268
  children: n
268
- }), Qe = ({ depth: e }) => e <= 1, hr = ({ value: e, entries: n, shouldExpandNodeInitially: t = Qe, ...o }) => /* @__PURE__ */ r(Xe, {
269
+ }), We = ({ depth: e }) => e <= 1, br = ({ value: e, entries: n, shouldExpandNodeInitially: t = We, ...o }) => /* @__PURE__ */ r(Qe, {
269
270
  value: {
270
271
  ...o,
271
272
  shouldExpandNodeInitially: t
272
273
  },
273
- children: /* @__PURE__ */ r(we, {
274
+ children: /* @__PURE__ */ r(ye, {
274
275
  depth: 0,
275
276
  children: u(n) ? /* @__PURE__ */ r(R, {
276
277
  elements: n,
@@ -284,12 +285,12 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
284
285
  keyPath: ""
285
286
  })
286
287
  })
287
- }), We = "_row_1hj4l_1", Ye = "_label_1hj4l_11", Ze = "_icon_1hj4l_20", q = {
288
- row: We,
289
- label: Ye,
290
- icon: Ze
291
- }, pr = ({ children: e, startIcon: n, value: t, progress: o, progressColor: l, progressValueText: s, render: a, ref: i, className: b, ...C }) => {
292
- const _ = me(), m = s ?? t;
288
+ }), Ye = "_row_1hj4l_1", Ze = "_label_1hj4l_11", er = "_icon_1hj4l_20", q = {
289
+ row: Ye,
290
+ label: Ze,
291
+ icon: er
292
+ }, Cr = ({ children: e, startIcon: n, value: t, progress: o, progressColor: l, progressValueText: s, render: a, ref: i, className: b, ...C }) => {
293
+ const _ = ue(), m = s ?? t;
293
294
  return T({
294
295
  render: a,
295
296
  ref: i,
@@ -306,7 +307,7 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
306
307
  id: _,
307
308
  children: e
308
309
  })]
309
- }), u(o) ? /* @__PURE__ */ r(te, {
310
+ }), u(o) ? /* @__PURE__ */ r(oe, {
310
311
  value: o,
311
312
  size: "sm",
312
313
  barColor: l,
@@ -316,10 +317,10 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
316
317
  }) : /* @__PURE__ */ r("span", { children: t })] })
317
318
  }
318
319
  });
319
- }, er = "_root_7l8sk_1", rr = "_stackedIcon_7l8sk_14", F = {
320
- root: er,
321
- stackedIcon: rr
322
- }, br = ({ icon: e, stackedIcon: n, className: t, render: o, ref: l, ...s }) => T({
320
+ }, rr = "_root_7l8sk_1", nr = "_stackedIcon_7l8sk_14", F = {
321
+ root: rr,
322
+ stackedIcon: nr
323
+ }, Nr = ({ icon: e, stackedIcon: n, className: t, render: o, ref: l, ...s }) => T({
323
324
  render: o,
324
325
  ref: l,
325
326
  props: {
@@ -336,9 +337,9 @@ var _e = "_container_5cu4g_1", ve = "_itemContainer_5cu4g_6", he = "_overflowCou
336
337
  }
337
338
  });
338
339
  export {
339
- _r as a,
340
- vr as i,
341
- pr as n,
342
- hr as r,
343
- br as t
340
+ hr as a,
341
+ pr as i,
342
+ Cr as n,
343
+ br as r,
344
+ Nr as t
344
345
  };
@@ -0,0 +1,184 @@
1
+ import { t as c } from "./isDefined-fMi6eQ4r.js";
2
+ import { t as O } from "./doNotTranslate-BSVT8Xyd.js";
3
+ import { a as i } from "./theme-B2EaXhye.js";
4
+ import { s as V } from "./utilities-BKCMZyqZ.js";
5
+ import { t as Y } from "./Loader-DtHWQH8w.js";
6
+ import { t as S } from "./OverflowingTextWithTooltip-BmUROIah.js";
7
+ import { useRender as _ } from "@base-ui/react/use-render";
8
+ import { isBoolean as C, isString as j } from "@sniptt/guards";
9
+ import { clsx as g } from "clsx";
10
+ import { Fragment as v, jsx as l, jsxs as x } from "react/jsx-runtime";
11
+ var ca = {
12
+ xl: {
13
+ fontSize: "16px",
14
+ width: "40px"
15
+ },
16
+ lg: {
17
+ fontSize: "13px",
18
+ width: "24px"
19
+ },
20
+ md: {
21
+ fontSize: "12px",
22
+ width: "16px"
23
+ },
24
+ sm: {
25
+ fontSize: "10px",
26
+ width: "14px"
27
+ },
28
+ xs: {
29
+ fontSize: "8px",
30
+ width: "12px"
31
+ }
32
+ }, $ = "_badge_1q6rc_1", F = { badge: $ }, _a = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: n, render: e, ref: s, ...o }) => _({
33
+ defaultTagName: "span",
34
+ render: e,
35
+ ref: s,
36
+ props: {
37
+ ...o,
38
+ className: g(F.badge, n),
39
+ "data-badge-size": a,
40
+ "data-badge-color": t,
41
+ "data-badge-shape": r
42
+ }
43
+ }), U = "_chip_j2xcu_1", Z = "_label_j2xcu_26", G = "_endElementDivider_j2xcu_75", b = {
44
+ chip: U,
45
+ label: Z,
46
+ endElementDivider: G
47
+ }, H = { height: "var(--t-spacing-4)" }, ga = ({ children: a, size: t = "sm", variant: r = "ghost", color: n = "primary", shape: e = "square", weight: s = "regular", onClick: o, clickable: d = c(o), startElement: m, endElement: p, endElementDivider: h = !1, maxWidth: u, truncate: w = !0, tooltipContent: T, tooltipDelay: E, isTooltipMultiline: q, tooltipPlace: k, alwaysShowTooltip: z = !1, className: B, style: D, render: A, ref: L, ...R }) => {
48
+ const P = c(a) && !C(a) && a !== "", M = j(a) ? {
49
+ text: a,
50
+ tooltipContent: T
51
+ } : {
52
+ text: a ?? !1,
53
+ tooltipContent: T ?? ""
54
+ };
55
+ return _({
56
+ render: A,
57
+ ref: L,
58
+ state: {
59
+ size: t,
60
+ variant: r,
61
+ color: n,
62
+ shape: e,
63
+ weight: s,
64
+ clickable: d,
65
+ truncate: w
66
+ },
67
+ props: {
68
+ ...R,
69
+ onClick: o,
70
+ className: g(b.chip, B),
71
+ style: {
72
+ ...c(u) ? { "--tw-chip-max-width": O(`calc(${u}px - 2 * var(--tw-chip-padding))`) } : {},
73
+ ...D
74
+ },
75
+ children: /* @__PURE__ */ x(v, { children: [
76
+ m,
77
+ P && /* @__PURE__ */ l(S, {
78
+ ...M,
79
+ render: /* @__PURE__ */ l("span", {}),
80
+ className: b.label,
81
+ style: t === "md" ? H : void 0,
82
+ truncate: w,
83
+ tooltipDelay: E,
84
+ isTooltipMultiline: q,
85
+ tooltipPlace: k,
86
+ alwaysShowTooltip: z
87
+ }),
88
+ c(p) && p !== !1 && /* @__PURE__ */ x(v, { children: [h && /* @__PURE__ */ l("span", { className: b.endElementDivider }), p] })
89
+ ] })
90
+ }
91
+ });
92
+ }, I = "_root_6bfj6_1", J = "_circle_6bfj6_13", N = {
93
+ root: I,
94
+ circle: J
95
+ }, ua = ({ colorName: a, color: t, variant: r, className: n, style: e, render: s, ref: o, ...d }) => _({
96
+ defaultTagName: "div",
97
+ render: s,
98
+ ref: o,
99
+ props: {
100
+ ...d,
101
+ className: g(N.root, r === "circle" && N.circle, n),
102
+ style: {
103
+ "--color-sample-color": t ?? i.tag.background[a],
104
+ "--color-sample-border-color": i.tag.text[a],
105
+ ...e
106
+ }
107
+ }
108
+ }), K = "_status_y5v42_1", Q = "_content_y5v42_49", y = {
109
+ status: K,
110
+ content: Q
111
+ }, fa = ({ children: a, color: t, loading: r = !1, weight: n = "regular", className: e, style: s, render: o, ref: d, ...m }) => {
112
+ const p = V(t);
113
+ return _({
114
+ defaultTagName: "span",
115
+ render: o,
116
+ ref: d,
117
+ state: {
118
+ loading: r,
119
+ weight: n
120
+ },
121
+ props: {
122
+ "aria-busy": r || void 0,
123
+ ...m,
124
+ className: g(y.status, e),
125
+ style: {
126
+ "--tw-status-background": i.tag.background[p],
127
+ "--tw-status-text-color": i.tag.text[p],
128
+ ...s
129
+ },
130
+ children: /* @__PURE__ */ x(v, { children: [/* @__PURE__ */ l("span", {
131
+ className: y.content,
132
+ children: a
133
+ }), r && /* @__PURE__ */ l(Y, {
134
+ color: t,
135
+ "aria-hidden": "true",
136
+ render: /* @__PURE__ */ l("span", {})
137
+ })] })
138
+ }
139
+ });
140
+ }, W = "_tag_1rqsl_1", X = "_content_1rqsl_46", aa = "_overflowingText_1rqsl_55", ta = "_iconContainer_1rqsl_59", f = {
141
+ tag: W,
142
+ content: X,
143
+ overflowingText: aa,
144
+ iconContainer: ta
145
+ }, va = ({ children: a, color: t, weight: r = "regular", variant: n = "soft", startIcon: e, truncate: s = !0, borderStyle: o = "solid", className: d, style: m, render: p, ref: h, ...u }) => _({
146
+ defaultTagName: "span",
147
+ render: p,
148
+ ref: h,
149
+ state: {
150
+ variant: n,
151
+ weight: r,
152
+ truncate: s
153
+ },
154
+ props: {
155
+ ...u,
156
+ className: g(f.tag, d),
157
+ style: {
158
+ "--tw-tag-background": t === "transparent" ? "transparent" : i.tag.background[t] ?? i.tag.background.gray,
159
+ "--tw-tag-text": t === "transparent" ? i.font.color.secondary : i.tag.text[t] ?? i.font.color.secondary,
160
+ "--tw-tag-border-style": o,
161
+ ...m
162
+ },
163
+ children: /* @__PURE__ */ x(v, { children: [c(e) && !C(e) && e !== "" && /* @__PURE__ */ l("span", {
164
+ className: f.iconContainer,
165
+ "aria-hidden": !0,
166
+ children: e
167
+ }), /* @__PURE__ */ l("span", {
168
+ className: f.content,
169
+ children: j(a) && s ? /* @__PURE__ */ l(S, {
170
+ text: a,
171
+ render: /* @__PURE__ */ l("span", {}),
172
+ className: f.overflowingText
173
+ }) : a
174
+ })] })
175
+ }
176
+ });
177
+ export {
178
+ _a as a,
179
+ ga as i,
180
+ fa as n,
181
+ ca as o,
182
+ ua as r,
183
+ va as t
184
+ };
@@ -0,0 +1,2 @@
1
+ const y=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),H=require("./doNotTranslate-CHE7WmRS.cjs"),K=require("./VisuallyHidden-B-n4x1KY.cjs"),U=require("./ProgressRing-g1nHGyUp.cjs");let k=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),c=require("clsx"),x=require("react"),e=require("react/jsx-runtime"),$=require("@base-ui/react/collapsible"),h=require("@tabler/icons-react");var X="_container_5cu4g_1",Q="_itemContainer_5cu4g_6",W="_overflowCountContainer_5cu4g_22",Y="_overflowCount_5cu4g_22",g={container:X,itemContainer:Q,overflowCountContainer:W,overflowCount:Y},Z=4,ee=({avatars:r,className:n,maxVisible:t=Z,total:s,renderOverflow:l,overflowShape:o="square",overlap:a="right",overlapOffset:i="3px",render:p,ref:C,...m})=>{const d=x.Children.toArray(r),q=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),f=d.slice(0,q),b=s??d.length,N=(Number.isFinite(b)?Math.max(d.length,Math.floor(b)):d.length)-f.length,w=_.isDefined(l),A=N>0&&(w?l(N):(0,e.jsxs)("span",{className:g.overflowCount,"data-shape":o,children:["+",N]})),L=(0,u.isNonEmptyArray)(x.Children.toArray(A)),V={"--avatar-group-overlap-offset":i},G=(0,k.useRender)({render:p,ref:C,props:{...m,className:(0,c.clsx)(g.container,n),children:(0,e.jsxs)(e.Fragment,{children:[x.Children.map(f,S=>(0,e.jsx)("span",{className:g.itemContainer,"data-overlap":a,style:V,children:S},(0,x.isValidElement)(S)?S.key:void 0)),L&&(0,e.jsx)("span",{className:(0,c.clsx)(g.itemContainer,!w&&g.overflowCountContainer),"data-overlap":a,style:V,children:A})]})}});return(0,u.isNonEmptyArray)(f)||L?G:null},re="_container_1j72k_1",ne="_commands_1j72k_13",te="_actions_1j72k_25",se="_prompt_1j72k_32",J={container:re,commands:ne,actions:te,prompt:se},ae=({commands:r,actions:n,render:t,ref:s,className:l,...o})=>(0,k.useRender)({render:t,ref:s,props:{...o,className:(0,c.clsx)(J.container,l),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:J.commands,children:(0,e.jsx)("code",{children:r.map((a,i)=>(0,e.jsxs)("span",{children:[i>0&&`
2
+ `,(0,e.jsx)("span",{className:J.prompt,"aria-hidden":"true",children:"> "}),a]},i))})}),_.isDefined(n)&&(0,e.jsx)("div",{className:J.actions,children:n})]})}}),oe="_list_1i4lv_1",le="_nested_1i4lv_8",P={list:oe,nested:le},ie=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(P.list,r>0&&P.nested,n),children:t}),M=(0,x.createContext)(void 0),j=()=>{const r=(0,x.useContext)(M);if(!_.isDefined(r))throw new Error(H.doNotTranslate("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));return r},ce="_button_1e3ij_1",de="_red_1e3ij_17",ue="_chevron_1e3ij_22",E={button:ce,red:de,chevron:ue},_e=({isOpen:r,onClick:n,variant:t})=>{const s=y.useTheme(),{arrowButtonCollapsedLabel:l,arrowButtonExpandedLabel:o}=j(),a=t==="blue"?y.themeCssVariables.color.blue:t==="red"?y.themeCssVariables.font.color.danger:y.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)(K.VisuallyHidden,{children:r?o:l}),(0,e.jsx)("div",{className:E.chevron,"data-open":r||void 0,children:(0,e.jsx)(h.IconChevronDown,{size:s.icon.size.md,color:a})})]})},me=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyArrayLabel:o}=j();return(0,e.jsx)(D,{elements:[...n.entries()].map(([a,i])=>({id:a,label:String(a),value:i})),renderElementsCount:a=>`[${a}]`,label:r,Icon:h.IconBrackets,depth:t,emptyElementsText:o,keyPath:s,highlighting:l})},ve=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyObjectLabel:o}=j();return(0,e.jsx)(D,{elements:Object.entries(n).map(([a,i])=>({id:a,label:a,value:i})),renderElementsCount:a=>`{${a}}`,label:r,Icon:h.IconCube,depth:t,emptyElementsText:o,keyPath:s,highlighting:l})},xe="_labelContainer_1pq94_1",he="_blue_1pq94_23",be="_red_1pq94_29",R={labelContainer:xe,blue:he,red:be},F=({label:r,Icon:n,highlighting:t})=>{const s=y.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(R.labelContainer,t==="blue"&&R.blue,t==="red"&&R.red),children:[(0,e.jsx)(n,{size:s.icon.size.md,color:t==="blue"?s.color.blue:t==="red"?s.font.color.danger:s.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},je="_text_1ot24_1",pe="_blue_1ot24_10",Ce="_red_1ot24_14",fe="_button_1ot24_18",T={text:je,blue:pe,red:Ce,button:fe},Ne=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=j(),s=_.isDefined(t),l=()=>{t?.(r)},o=(0,c.clsx)(T.text,n==="blue"&&T.blue,n==="red"&&T.red);return s?(0,e.jsx)("button",{className:(0,c.clsx)(o,T.button),type:"button",onClick:l,children:r}):(0,e.jsx)("span",{className:o,children:r})},ge="_listItem_1i7if_1",ye={listItem:ge},I=r=>(0,e.jsxs)("li",{className:ye.listItem,children:[r.label&&(0,e.jsx)(F,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)(Ne,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),Ie=r=>(0,u.isArray)(r),z=({label:r,value:n,depth:t,keyPath:s})=>{const{getNodeHighlighting:l,emptyStringLabel:o}=j(),a=l?.(s);return _.isDefined(n)?(0,u.isString)(n)?(0,e.jsx)(I,{label:r,valueAsString:(0,u.isNonEmptyString)(n)?n:o,Icon:h.IconTypography,highlighting:a}):(0,u.isNumber)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:h.IconNumber9,highlighting:a}):(0,u.isBoolean)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:h.IconCheckbox,highlighting:a}):Ie(n)?(0,e.jsx)(me,{label:r,value:n,depth:t,keyPath:s,highlighting:a}):(0,e.jsx)(ve,{label:r,value:n,depth:t,keyPath:s,highlighting:a}):(0,e.jsx)(I,{label:r,valueAsString:"null",Icon:h.IconCircleOff,highlighting:a})},qe="_container_d0cqx_1",we="_labelContainer_d0cqx_6",Ae="_elementsCount_d0cqx_12",Je="_elementsCountRed_d0cqx_16",Te="_panel_d0cqx_20",ke="_list_d0cqx_30",Se="_nested_d0cqx_37",v={container:qe,labelContainer:we,elementsCount:Ae,elementsCountRed:Je,panel:Te,list:ke,nested:Se},D=({label:r,Icon:n,elements:t,renderElementsCount:s,emptyElementsText:l,depth:o,keyPath:a,highlighting:i})=>{const{shouldExpandNodeInitially:p}=j(),C=!_.isDefined(r),[m,d]=(0,x.useState)(p({keyPath:a,depth:o})),q=(0,e.jsx)("ul",{className:(0,c.clsx)(v.list,o>0&&v.nested),children:t.length===0?(0,e.jsx)(I,{valueAsString:l,highlighting:void 0}):t.map(({id:b,label:N,value:w})=>{const A=(0,u.isNonEmptyString)(a)?`${a}.${b}`:String(b);return(0,e.jsx)(z,{label:N,value:w,depth:o+1,keyPath:A},b)})}),f=()=>{d(!m)};return C?(0,e.jsx)("li",{className:v.container,children:q}):(0,e.jsxs)($.Collapsible.Root,{className:v.container,open:m,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:v.labelContainer,children:[(0,e.jsx)(_e,{isOpen:m,onClick:f,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(F,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),s&&(0,e.jsx)("span",{className:(0,c.clsx)(v.elementsCount,i==="red"&&v.elementsCountRed),children:s(t.length)})]}),(0,e.jsx)($.Collapsible.Panel,{className:v.panel,children:q})]})},Ee=({value:r,children:n})=>(0,e.jsx)(M.Provider,{value:r,children:n}),Re=({depth:r})=>r<=1,Oe=({value:r,entries:n,shouldExpandNodeInitially:t=Re,...s})=>(0,e.jsx)(Ee,{value:{...s,shouldExpandNodeInitially:t},children:(0,e.jsx)(ie,{depth:0,children:_.isDefined(n)?(0,e.jsx)(D,{elements:n,Icon:h.IconBrackets,depth:0,keyPath:"",emptyElementsText:s.emptyObjectLabel}):(0,e.jsx)(z,{value:r??null,depth:0,keyPath:""})})}),De="_row_1hj4l_1",Le="_label_1hj4l_11",Ve="_icon_1hj4l_20",O={row:De,label:Le,icon:Ve},$e=({children:r,startIcon:n,value:t,progress:s,progressColor:l,progressValueText:o,render:a,ref:i,className:p,...C})=>{const m=(0,x.useId)(),d=o??t;return(0,k.useRender)({render:a,ref:i,props:{...C,className:(0,c.clsx)(O.row,p),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:O.label,children:[_.isDefined(n)&&(0,e.jsx)("span",{className:O.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:m,children:r})]}),_.isDefined(s)?(0,e.jsx)(U.ProgressRing,{value:s,size:"sm",barColor:l,"aria-labelledby":m,...(0,u.isNonEmptyString)(d)?{"aria-valuetext":d}:{},children:t}):(0,e.jsx)("span",{children:t})]})}})},Pe="_root_7l8sk_1",Be="_stackedIcon_7l8sk_14",B={root:Pe,stackedIcon:Be},Me=({icon:r,stackedIcon:n,className:t,render:s,ref:l,...o})=>(0,k.useRender)({render:s,ref:l,props:{...o,className:(0,c.clsx)(B.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:B.stackedIcon,children:n})]})}});Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Oe}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return $e}});Object.defineProperty(exports,"StackIcon",{enumerable:!0,get:function(){return Me}});
@@ -0,0 +1,4 @@
1
+ var t = (a) => a;
2
+ export {
3
+ t
4
+ };
@@ -0,0 +1 @@
1
+ var t=e=>e;Object.defineProperty(exports,"doNotTranslate",{enumerable:!0,get:function(){return t}});
@@ -0,0 +1 @@
1
+ const F=require("./theme-1XkFz8Qu.cjs"),d=require("./isDefined-DS2Q42p5.cjs"),E=require("./doNotTranslate-CHE7WmRS.cjs"),fe=require("./mergeClassNames-D4lshrT6.cjs"),q=require("./Button-DTm1WDzp.cjs"),O=require("./ProgressBar-OpSMnDBz.cjs"),y=require("./isRenderableSlot-Guryb6Nf.cjs"),ve=require("./useProvidedTextDirection-PVaoQCLH.cjs"),me=require("./OverflowingTextWithTooltip-Z2daM0_x.cjs"),_e=require("./Separator-UJVlrTzw.cjs");let M=require("@base-ui/react/use-render"),R=require("@sniptt/guards"),A=require("clsx"),p=require("react"),r=require("react/jsx-runtime"),Q=require("@base-ui/utils/store"),pe=require("react-dom"),j=require("@tabler/icons-react");var Te="_action_3r2bm_1",xe={action:Te},he=({className:e,...t})=>(0,r.jsx)(q.Button,{...t,size:"sm",variant:"ghost",className:fe.mergeClassNames(xe.action,e)}),ge="_container_1ix4w_1",be="_containerFullWidth_1ix4w_40",Ce="_header_1ix4w_44",je="_iconContainer_1ix4w_53",we="_title_1ix4w_63",ye="_descriptionWrapper_1ix4w_75",De="_descriptionWrapperWithIcon_1ix4w_82",Ne="_descriptionWrapperWithAction_1ix4w_86",Pe="_description_1ix4w_75",Ee="_footer_1ix4w_99",Re="_closeButton_1ix4w_106",h={container:ge,containerFullWidth:be,header:Ce,iconContainer:je,title:we,descriptionWrapper:ye,descriptionWrapperWithIcon:De,descriptionWrapperWithAction:Ne,description:Pe,footer:Ee,closeButton:Re},Ae=({status:e="info",variant:t="soft",color:s=O.FEEDBACK_STATUS_COLORS[e],title:n,description:o,fullWidth:c=!1,icon:i=(0,r.jsx)(j.IconHelp,{size:F.themeCssVariables.icon.size.md,"aria-hidden":"true"}),action:f,closeLabel:v=E.doNotTranslate("Close"),onDismiss:m,className:T,render:x,ref:l,...u})=>{const a=y.isRenderableSlot(i),_=y.isRenderableSlot(f);return(0,M.useRender)({render:x,ref:l,state:{status:e,variant:t,color:s},props:{...u,className:(0,A.clsx)(h.container,c&&h.containerFullWidth,T),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:h.header,children:[a&&(0,r.jsx)("div",{className:h.iconContainer,children:i}),(0,r.jsx)("div",{className:h.title,children:n}),d.isDefined(m)&&(0,r.jsx)(q.Button,{type:"button",startIcon:(0,r.jsx)(j.IconX,{"aria-hidden":"true"}),className:h.closeButton,variant:"ghost",size:"sm","aria-label":v,onClick:()=>m()})]}),y.isRenderableSlot(o)&&(0,r.jsx)("div",{className:(0,A.clsx)(h.descriptionWrapper,a&&h.descriptionWrapperWithIcon,_&&h.descriptionWrapperWithAction),children:(0,r.jsx)("div",{className:h.description,children:o})}),_&&(0,r.jsx)("div",{className:h.footer,children:f})]})}})},Se=Object.assign(Ae,{Action:he}),Ie="_banner_17vm4_1",qe="_embedded_17vm4_6",Oe="_bannerContent_17vm4_10",ke="_icon_17vm4_18",Be="_bannerText_17vm4_28",We="_compact_17vm4_33",P={banner:Ie,embedded:qe,bannerContent:Oe,icon:ke,bannerText:Be,compact:We},Fe=({children:e,layout:t="standard",variant:s="soft",embedded:n=!1,icon:o=(0,r.jsx)(j.IconInfoCircle,{"aria-hidden":"true"}),className:c,...i})=>{const f=t==="compact",v=!f&&(0,R.isString)(e);return(0,r.jsx)(O.Banner,{...i,className:(0,A.clsx)(P.banner,f&&P.compact,n&&P.embedded,c),variant:s,"data-layout":t,children:(0,r.jsxs)("div",{className:P.bannerContent,children:[y.isRenderableSlot(o)&&(0,r.jsx)("span",{className:P.icon,children:o}),(0,r.jsx)("div",{className:P.bannerText,children:v?(0,r.jsx)(me.OverflowingTextWithTooltip,{isFocusable:!0,text:(0,r.jsx)(r.Fragment,{children:e}),tooltipContent:e}):e})]})})},Me=Object.assign(Fe,{Action:O.Banner.Action}),D=e=>e.status==="visible",k=({store:e,toastsToClose:t,nextToasts:s=e.state.toasts})=>{const n=t.filter(i=>D(i)&&e.state.toasts.includes(i)),o=s.map(i=>n.includes(i)?{...i,status:"closing"}:i),c=e.state.mountedToasterCount>0;e.set("toasts",c?o:o.filter(D));for(const i of n)i.notification.onClose?.()},Y=(0,p.createContext)(void 0),N=()=>{const e=(0,p.useContext)(Y);if(!d.isDefined(e))throw new Error(E.doNotTranslate("Toast components must be used within a ToastProvider."));return e},Z=()=>{const e=N();return{closeToast:s=>{if(!e.lifecycle.isActive())return;const n=e.state.toasts.filter(o=>D(o)&&(!d.isDefined(s)||o.notification.id===s));(0,R.isNonEmptyArray)(n)&&k({store:e,toastsToClose:n})}}},G=0,J=()=>(G+=1,`toast-${G}`),Le=()=>{const e=N();return{enqueueToast:(0,p.useMemo)(()=>{function t(s){if(!d.isDefined(s))return;if(!e.lifecycle.isActive())return J();const{dedupeKey:n,...o}=s,{toasts:c,limit:i}=e.state,f=c.filter(D),v=d.isDefined(n)?f.find(x=>x.dedupeKey===n):void 0;if(d.isDefined(v))return v.notification.id;const m=J(),T=Math.max(0,f.length-i+1);return k({store:e,toastsToClose:f.slice(0,T),nextToasts:[...c,{notification:{...o,id:m},dedupeKey:n,status:"visible"}]}),m}return t},[e])}},ze=({store:e,id:t,...s})=>{if(!e.lifecycle.isActive())return;const n=e.state.toasts.find(i=>i.notification.id===t&&D(i)),o=Object.keys(s);if(!d.isDefined(n)||!(0,R.isNonEmptyArray)(o))return;const c=o.includes("duration")||d.isDefined(n.notification.progress)&&o.includes("progress")&&!d.isDefined(s.progress);e.set("toasts",e.state.toasts.map(i=>i===n?{...i,notification:{...i.notification,...s,id:t},...c?{durationRevision:(i.durationRevision??0)+1}:{}}:i))},$e=()=>{const e=N();return{updateToast:(0,p.useCallback)(t=>ze({store:e,...t}),[e])}},Ue=()=>{const{closeToast:e}=Z(),{enqueueToast:t}=Le(),{updateToast:s}=$e();return{enqueueToast:t,closeToast:e,updateToast:s}},Ke="_root_181ka_1",He="_progress_181ka_19",Ve="_header_181ka_30",Xe="_message_181ka_40",Ge="_icon_181ka_45",Je="_actions_181ka_50",Qe="_description_181ka_56",Ye="_footer_181ka_65",Ze="_footerAction_181ka_69",et="_closeButton_181ka_76",b={root:Ke,progress:He,header:Ve,message:Xe,icon:Ge,actions:Je,description:Qe,footer:Ye,footerAction:Ze,closeButton:et},L=(0,p.createContext)({durationRevision:0,isActive:!0}),tt=({clock:e,onClockChange:t,duration:s,progress:n,isPaused:o,onClose:c})=>{const{durationRevision:i,isActive:f,lifecycle:v,id:m,rendererKey:T,timingOverrides:x}=(0,p.useContext)(L),l=d.isDefined(v)&&d.isDefined(m)&&d.isDefined(T),u=l?void 0:e,a=d.isDefined(n),_=d.isDefined(x)&&Object.prototype.propertyIsEnumerable.call(x,"duration"),w=d.isDefined(x)&&Object.prototype.propertyIsEnumerable.call(x,"progress");return(0,p.useLayoutEffect)(()=>{if(l){t(v.updateRenderer({id:m,key:T,configuration:{duration:_?s:void 0,isProgress:w?a:void 0,isPaused:o}}));return}u?.update({duration:s,durationRevision:i,isPaused:o,isProgress:a,isActive:f,onClose:c})},[u,t,l,s,i,o,a,f,c,v,m,T,_,w]),(0,p.useLayoutEffect)(()=>()=>{if(l){v.removeRenderer({id:m,key:T});return}u?.stop()},[u,v,m,T,l]),null},st=({element:e,isFocused:t,onFocusChange:s})=>((0,p.useLayoutEffect)(()=>{if(!t||!d.isDefined(e))return;const n=()=>{e.contains(e.ownerDocument.activeElement)||s(!1)};n();const o=new MutationObserver(n);return o.observe(e,{childList:!0,subtree:!0}),()=>o.disconnect()},[e,t,s]),null),ee=6e3,te=e=>Number.isFinite(e)&&e>0,nt="_countdown_1vuo8_1",rt="_toastCountdown_1vuo8_1",ot={countdown:nt,toastCountdown:rt},it=({progress:e,duration:t,remainingDuration:s,revision:n,isPaused:o,barColor:c})=>d.isDefined(e)?(0,r.jsx)(O.ProgressBar,{value:e,barColor:c}):te(t)?(0,r.jsx)("div",{className:ot.countdown,"data-paused":o||void 0,style:{"--toast-countdown-color":c,"--toast-countdown-width":`${s/t*100}%`,"--toast-countdown-duration":`${s}ms`}},n):null,at=2**31-1,ct=({onChange:e})=>{let t,s=0,n,o,c=0,i=0,f=!1;const v=()=>{i+=1,d.isDefined(n)&&(s=Math.max(0,s-(performance.now()-n)),n=void 0),clearTimeout(o),o=void 0},m=()=>{d.isDefined(t)&&(c+=1,e({duration:t.duration,remainingDuration:s,revision:c,isPaused:t.isPaused||!t.isActive}))},T=()=>{f||(v(),f=!0,s=0,m(),t?.onClose?.())},x=()=>d.isDefined(t)&&t.isActive&&!t.isPaused&&!t.isProgress&&te(t.duration)&&!f,l=()=>{if(!x())return;n=performance.now();const a=i;o=setTimeout(()=>{if(a===i){if(v(),s>0){l();return}T()}},Math.min(s,at))};return{update:a=>{const _=!d.isDefined(t)||a.duration!==t.duration||a.durationRevision!==t.durationRevision||t.isProgress&&!a.isProgress,w=_||a.isProgress!==t?.isProgress||a.isPaused!==t?.isPaused||a.isActive!==t?.isActive,g=!d.isDefined(n)&&x();if(!w&&!g){t=a;return}v(),t=a,!f&&(_&&(s=Math.max(0,a.duration)),m(),l())},close:T,stop:v}},se=({duration:e,isPaused:t})=>{let s={duration:e,remainingDuration:e,revision:0,isPaused:t};const n=new Set;return{...ct({onChange:o=>{s=o;for(const c of n)c()}}),getSnapshot:()=>s,subscribe:o=>(n.add(o),()=>{n.delete(o)})}},ut=({duration:e,isPaused:t})=>{const{lifecycle:s,id:n,rendererKey:o}=(0,p.useContext)(L),[c,i]=(0,p.useState)(()=>(d.isDefined(s)&&d.isDefined(n)&&d.isDefined(o)?s.getCountdown(n):void 0)??se({duration:e,isPaused:t}));return{countdown:(0,p.useSyncExternalStore)(c.subscribe,c.getSnapshot,c.getSnapshot),clock:c,setClock:i}},dt={neutral:j.IconAlertTriangle,error:j.IconAlertTriangle,success:j.IconSquareRoundedCheck,info:j.IconInfoCircle,warning:j.IconAlertTriangle},ne=({children:e,description:t,icon:s,iconLabel:n,action:o,progress:c,duration:i=ee,onCancel:f,onClose:v,cancelLabel:m=E.doNotTranslate("Cancel"),closeLabel:T=E.doNotTranslate("Close"),status:x="neutral",role:l="status",className:u,onMouseEnter:a,onMouseLeave:_,onFocus:w,onBlur:g,render:S,ref:oe,...ie})=>{const z=F.useTheme(),[ae,$]=(0,p.useState)(!1),[U,B]=(0,p.useState)(!1),[ce,ue]=(0,p.useState)(null),K=ae||U,{countdown:I,clock:H,setClock:de}=ut({duration:i,isPaused:K}),le=dt[x],V=z.snackBar[x==="neutral"?"default":x],X=(0,R.isUndefined)(s)?(0,r.jsx)(le,{"aria-label":n,"aria-hidden":!d.isDefined(n),color:V.color,size:z.icon.size.md}):s;return(0,r.jsxs)(r.Fragment,{children:[(0,M.useRender)({render:S,ref:[oe??null,ue],props:{role:l,"aria-live":l==="alert"?"assertive":"polite",...ie,className:(0,A.clsx)(b.root,u),onMouseEnter:C=>{$(!0),a?.(C)},onMouseLeave:C=>{$(!1),_?.(C)},onFocus:C=>{B(!0),w?.(C)},onBlur:C=>{C.currentTarget.contains(C.relatedTarget)||B(!1),g?.(C)},children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:b.progress,"aria-hidden":!0,children:(0,r.jsx)(it,{barColor:V.backgroundColor,progress:c,duration:I.duration,remainingDuration:I.remainingDuration,revision:I.revision,isPaused:I.isPaused})}),(0,r.jsxs)("div",{className:b.header,children:[y.isRenderableSlot(X)&&(0,r.jsx)("div",{className:b.icon,children:X}),(0,r.jsx)("div",{className:b.message,children:e}),(0,r.jsxs)("div",{className:b.actions,children:[d.isDefined(f)&&y.isRenderableSlot(m)&&(0,r.jsx)(q.Button,{onClick:f,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:m}),d.isDefined(v)&&(0,r.jsx)(q.Button,{title:T,"aria-label":T,startIcon:(0,r.jsx)(j.IconX,{}),className:b.closeButton,variant:"ghost",size:"sm",onClick:H.close})]})]}),y.isRenderableSlot(t)&&(0,r.jsx)("div",{className:b.description,children:t}),y.isRenderableSlot(o)&&(0,r.jsxs)("div",{className:b.footer,children:[(0,r.jsx)(_e.Separator,{}),(0,r.jsx)("div",{className:b.footerAction,children:o})]})]})}}),(0,r.jsx)(st,{element:ce,isFocused:U,onFocusChange:B}),(0,r.jsx)(tt,{clock:H,onClockChange:de,duration:i,progress:c,isPaused:K,onClose:v})]})},re=e=>{if(!(0,R.isPositiveInteger)(e))throw new Error(E.doNotTranslate("Toast limit must be a positive integer."))},lt=({store:e,limit:t})=>{if(re(t),e.state.limit===t)return;e.set("limit",t);const s=e.state.toasts.filter(D),n=Math.max(0,s.length-t);n!==0&&k({store:e,toastsToClose:s.slice(0,n)})},ft=({limit:e})=>{const t=N();return(0,p.useEffect)(()=>t.lifecycle.mount(),[t]),(0,p.useLayoutEffect)(()=>lt({store:t,limit:e}),[t,e]),null},vt=({store:e,toast:t})=>{const{toasts:s}=e.state;t.status==="closing"&&s.includes(t)&&e.set("toasts",s.filter(n=>n!==t))},mt=e=>{const t=new Map;let s=!1,n=!1,o=0;const c=l=>{const u=t.get(l);if(d.isDefined(u))return u;const a={countdown:se({duration:ee,isPaused:!0}),renderers:new Map};return t.set(l,a),a},i=l=>{if(!s)return;const u=t.get(l);if(!d.isDefined(u?.pendingExits)||u.pendingExits.size>0)return;const a=e.state.toasts.find(_=>_.notification.id===l);d.isDefined(a)&&vt({store:e,toast:a})},f=()=>{for(const[l,u]of t){const a=e.state.toasts.find(g=>g.notification.id===l);if(!d.isDefined(a)){u.countdown.stop(),t.delete(l);continue}const _=u.renderers.values().next().value??u.lastRenderer;u.lastRenderer=_;const w=!s||u.renderers.size===0||[...u.renderers.values()].some(g=>g.isPaused);u.countdown.update({duration:_?.duration??a.notification.duration??6e3,durationRevision:a.durationRevision??0,isProgress:_?.isProgress??d.isDefined(a.notification.progress),isPaused:w,isActive:a.status==="visible",onClose:()=>{const g=e.state.toasts.find(S=>S.notification.id===l&&D(S));!s||!d.isDefined(g)||k({store:e,toastsToClose:[g]})}}),a.status!=="visible"&&(u.pendingExits??=new Set(u.renderers.keys()),i(l))}};return{mount:()=>{s=!0,n=!1,o+=1;const l=e.subscribe(f);return f(),()=>{s=!1,l();for(const a of t.values())a.countdown.stop();const u=++o;queueMicrotask(()=>{s||o!==u||(n=!0,t.clear(),e.set("toasts",[]))})}},isActive:()=>!n,getCountdown:l=>t.get(l)?.countdown,updateRenderer:({id:l,key:u,configuration:a})=>{const _=c(l);return _.renderers.has(u)||(_.countdown.stop(),_.pendingExits?.add(u)),_.renderers.set(u,a),f(),_.countdown},removeRenderer:({id:l,key:u})=>{const a=t.get(l);d.isDefined(a)&&(a.renderers.delete(u),a.pendingExits?.delete(u),f())},finishExit:({id:l,key:u})=>{t.get(l)?.pendingExits?.delete(u),i(l)}}},_t=(e=3)=>{re(e);const t=new Q.Store({toasts:[],limit:e,mountedToasterCount:0});return Object.assign(t,{lifecycle:mt(t)})},pt=({children:e,limit:t=3})=>{const[s]=(0,p.useState)(()=>_t(t));return(0,r.jsxs)(Y.Provider,{value:s,children:[e,(0,r.jsx)(ft,{limit:t})]})},Tt="_root_1q2cc_1",xt="_item_1q2cc_20",ht="_itemContent_1q2cc_47",W={root:Tt,item:xt,itemContent:ht},gt=()=>(0,Q.useStore)(N(),e=>e.toasts),bt=({elementRef:e,toastEntry:t,rendererKey:s})=>{const n=N();return(0,p.useLayoutEffect)(()=>{if(t.status==="visible")return;const o=()=>n.lifecycle.finishExit({id:t.notification.id,key:s}),c=e.current?.getAnimations?.()??[];if(!(0,R.isNonEmptyArray)(c)){o();return}let i=!1;return Promise.allSettled(c.map(f=>f.finished)).then(()=>{i||o()}),()=>{i=!0}},[e,t,n,s]),null},Ct=({toastEntry:e,getToastProps:t,onClose:s})=>{const{notification:n,status:o,durationRevision:c=0}=e,{id:i,...f}=n,v=N(),m=t?.(n),[T]=(0,p.useState)(()=>Symbol()),x=(0,p.useRef)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:x,className:W.item,"data-exiting":o==="closing"||void 0,inert:o==="closing",children:(0,r.jsx)("div",{className:W.itemContent,children:(0,r.jsx)(L.Provider,{value:{durationRevision:c,isActive:o==="visible",lifecycle:v.lifecycle,id:i,rendererKey:T,timingOverrides:m},children:(0,r.jsx)(ne,{...f,...m,id:i,onClose:()=>s(i)})})})}),(0,r.jsx)(bt,{elementRef:x,toastEntry:e,rendererKey:T})]})},jt=({getToastProps:e})=>{const t=gt(),{closeToast:s}=Z();return t.map(n=>(0,r.jsx)(Ct,{toastEntry:n,getToastProps:e,onClose:s},n.notification.id))},wt=()=>{const e=N();return(0,p.useLayoutEffect)(()=>(e.set("mountedToasterCount",e.state.mountedToasterCount+1),()=>{e.set("mountedToasterCount",e.state.mountedToasterCount-1),!(e.state.mountedToasterCount>0)&&e.set("toasts",e.state.toasts.filter(D))}),[e]),null},yt=({container:e,getToastProps:t,className:s,render:n,ref:o,...c})=>{const i=F.useThemeContainer(),f=ve.useProvidedTextDirection(),v=e===void 0?i??(typeof document>"u"?null:document.body):e,m=(0,M.useRender)({render:n,ref:o,props:{role:"region",dir:f,"aria-label":E.doNotTranslate("Notifications"),...c,className:(0,A.clsx)(W.root,s),children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(wt,{}),(0,r.jsx)(jt,{getToastProps:t})]})}});return d.isDefined(v)?(0,pe.createPortal)(m,v):null};Object.defineProperty(exports,"Callout",{enumerable:!0,get:function(){return Se}});Object.defineProperty(exports,"InlineBanner",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"Toast",{enumerable:!0,get:function(){return ne}});Object.defineProperty(exports,"ToastProvider",{enumerable:!0,get:function(){return pt}});Object.defineProperty(exports,"Toaster",{enumerable:!0,get:function(){return yt}});Object.defineProperty(exports,"useToast",{enumerable:!0,get:function(){return Ue}});