twenty-ui 2.49.0 → 2.51.1

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 (291) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +36 -32
  3. package/dist/{AllIcons-Cyd7721G.cjs → AllIcons-1tBWXXrE.cjs} +1 -1
  4. package/dist/{AllIcons-D132B8_i.js → AllIcons-ayl8BCtV.js} +1 -1
  5. package/dist/Button-CU8BS-Yd.js +75 -0
  6. package/dist/Button-iVyxlrwO.cjs +1 -0
  7. package/dist/Dropdown-D_hFndP5.cjs +1 -0
  8. package/dist/Dropdown-xXsGBv57.js +1056 -0
  9. package/dist/Heading-CHvEXL6n.cjs +1 -0
  10. package/dist/{Heading-pXllCJCO.js → Heading-Nj5BlPqB.js} +3 -3
  11. package/dist/Input-D1sIHUZ5.js +25 -0
  12. package/dist/Input-D69M4UwD.cjs +1 -0
  13. package/dist/ListItem-B-SFWJZb.cjs +1 -0
  14. package/dist/ListItem-WLONJMo5.js +91 -0
  15. package/dist/ListItem.module-B31VK9XZ.js +34 -0
  16. package/dist/ListItem.module-DiUK6-0Z.cjs +1 -0
  17. package/dist/OverflowingTextWithTooltip-ClpPsdpP.cjs +1 -0
  18. package/dist/OverflowingTextWithTooltip-D4eZc-7P.js +96 -0
  19. package/dist/ProgressBar-8pjpGrmZ.js +99 -0
  20. package/dist/ProgressBar-goqxS9NE.cjs +1 -0
  21. package/dist/Radio-CpQPRHXa.cjs +1 -0
  22. package/dist/Radio-VTjpEz8M.js +175 -0
  23. package/dist/Skeleton-BbIF780H.js +31 -0
  24. package/dist/Skeleton-tXeIy4qq.cjs +1 -0
  25. package/dist/TablerIcons-B-5Ua_Ne.js +460 -0
  26. package/dist/TabsTabContent-6rkARU9F.cjs +1 -0
  27. package/dist/TabsTabContent-DPkLTBi2.js +39 -0
  28. package/dist/Tooltip-08dDawT_.cjs +1 -0
  29. package/dist/Tooltip-C7zc16gI.js +132 -0
  30. package/dist/components/data-display/DetailsRow/DetailsRow.d.ts +2 -0
  31. package/dist/components/data-display/DetailsRow/types/DetailsRowProps.d.ts +9 -0
  32. package/dist/components/data-display/index.d.ts +2 -0
  33. package/dist/components/data-display.cjs +1 -1
  34. package/dist/components/data-display.mjs +9 -9
  35. package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -2
  36. package/dist/components/feedback/InlineBanner/internal/InlineBannerComponent.d.ts +1 -1
  37. package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +2 -1
  38. package/dist/components/feedback.cjs +1 -1
  39. package/dist/components/feedback.mjs +1 -1
  40. package/dist/components/input/DatePicker/DatePicker.d.ts +2 -0
  41. package/dist/components/input/DatePicker/__stories__/DatePickerCssVariableThemeExample.d.ts +1 -0
  42. package/dist/components/input/DatePicker/__stories__/DatePickerExample.d.ts +5 -0
  43. package/dist/components/input/DatePicker/__stories__/DatePickerExternalMonthExample.d.ts +4 -0
  44. package/dist/components/input/DatePicker/__stories__/DatePickerNavigationUnmountExample.d.ts +2 -0
  45. package/dist/components/input/DatePicker/__stories__/datePickerWeekdayLabels.d.ts +1 -0
  46. package/dist/components/input/DatePicker/internal/DatePickerException.d.ts +5 -0
  47. package/dist/components/input/DatePicker/internal/DatePickerHeader.d.ts +3 -0
  48. package/dist/components/input/DatePicker/internal/DatePickerSelect.d.ts +15 -0
  49. package/dist/components/input/DatePicker/internal/DatePickerSelectLifecycleEffect.d.ts +7 -0
  50. package/dist/components/input/DatePicker/internal/DatePickerViewedMonthEffect.d.ts +9 -0
  51. package/dist/components/input/DatePicker/internal/ReactDatePickerLibrary.d.ts +2 -0
  52. package/dist/components/input/DatePicker/internal/datePickerConstants.d.ts +6 -0
  53. package/dist/components/input/DatePicker/internal/formatDatePickerLocalDate.d.ts +1 -0
  54. package/dist/components/input/DatePicker/internal/parseDatePickerDateOrThrow.d.ts +1 -0
  55. package/dist/components/input/DatePicker/internal/parseDatePickerLocalDateOrThrow.d.ts +1 -0
  56. package/dist/components/input/DatePicker/internal/validateDatePickerHighlightedRangeOrThrow.d.ts +4 -0
  57. package/dist/components/input/DatePicker/types/DatePickerHeaderProps.d.ts +9 -0
  58. package/dist/components/input/DatePicker/types/DatePickerProps.d.ts +42 -0
  59. package/dist/components/input/EmojiPicker/EmojiPicker.d.ts +2 -0
  60. package/dist/components/input/EmojiPicker/__stories__/EmojiPickerExample.d.ts +4 -0
  61. package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryData.d.ts +30 -0
  62. package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryEmojibaseUrl.d.ts +1 -0
  63. package/dist/components/input/EmojiPicker/__stories__/mockEmojiPickerStoryData.d.ts +5 -0
  64. package/dist/components/input/EmojiPicker/internal/EmojiPickerEmoji.d.ts +2 -0
  65. package/dist/components/input/EmojiPicker/internal/EmojiPickerRow.d.ts +2 -0
  66. package/dist/components/input/EmojiPicker/internal/EmojiPickerScrollEffect.d.ts +6 -0
  67. package/dist/components/input/EmojiPicker/internal/scrollActiveEmojiIntoView.d.ts +1 -0
  68. package/dist/components/input/EmojiPicker/types/EmojiPickerProps.d.ts +11 -0
  69. package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +2 -0
  70. package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +12 -0
  71. package/dist/components/input/ReactionButton/ReactionButton.d.ts +2 -0
  72. package/dist/components/input/ReactionButton/__stories__/ReactionButtonExample.d.ts +2 -0
  73. package/dist/components/input/ReactionButton/types/ReactionButtonProps.d.ts +14 -0
  74. package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
  75. package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +1 -1
  76. package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
  77. package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +3 -1
  78. package/dist/components/input/SegmentedControl/types/SegmentedControlVariant.d.ts +1 -0
  79. package/dist/components/input/index.d.ts +10 -0
  80. package/dist/components/input.cjs +1 -1
  81. package/dist/components/input.mjs +17 -13
  82. package/dist/components/layout/LabeledSeparator/LabeledSeparator.d.ts +2 -0
  83. package/dist/components/layout/LabeledSeparator/types/LabeledSeparatorProps.d.ts +7 -0
  84. package/dist/components/layout/index.d.ts +2 -0
  85. package/dist/components/layout.cjs +1 -1
  86. package/dist/components/layout.mjs +5 -4
  87. package/dist/components/navigation/CountPager/CountPager.d.ts +2 -0
  88. package/dist/components/navigation/CountPager/__stories__/CountPagerCollectionExample.d.ts +3 -0
  89. package/dist/components/navigation/CountPager/__stories__/CountPagerExample.d.ts +2 -0
  90. package/dist/components/navigation/CountPager/types/CountPagerProps.d.ts +11 -0
  91. package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
  92. package/dist/components/navigation/Dropdown/__stories__/DropdownControlledPageSessionExample.d.ts +1 -0
  93. package/dist/components/navigation/Dropdown/__stories__/DropdownNestedPageSessionExample.d.ts +6 -0
  94. package/dist/components/navigation/Dropdown/__stories__/DropdownPageActivityExample.d.ts +1 -0
  95. package/dist/components/navigation/Dropdown/__stories__/DropdownPageSessionExample.d.ts +5 -0
  96. package/dist/components/navigation/Dropdown/__stories__/DropdownPickerPageSessionExample.d.ts +1 -0
  97. package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +1 -0
  98. package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
  99. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +3 -0
  100. package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +1 -1
  101. package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +1 -1
  102. package/dist/components/navigation/Dropdown/internal/DropdownPageEffect.d.ts +8 -0
  103. package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
  104. package/dist/components/navigation/Dropdown/internal/DropdownSearchEffect.d.ts +8 -0
  105. package/dist/components/navigation/Dropdown/internal/isActiveDropdownElement.d.ts +1 -0
  106. package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +1 -1
  107. package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +1 -1
  108. package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +1 -1
  109. package/dist/components/navigation/index.d.ts +2 -11
  110. package/dist/components/navigation.cjs +1 -1
  111. package/dist/components/navigation.mjs +7 -11
  112. package/dist/components/settings.cjs +1 -1
  113. package/dist/components/settings.mjs +1 -1
  114. package/dist/components.cjs +1 -1
  115. package/dist/components.mjs +42 -41
  116. package/dist/data-display-DUMj_z1t.js +252 -0
  117. package/dist/data-display-D_kbXJJd.cjs +2 -0
  118. package/dist/data-display-DzHM5j7j.cjs +1 -0
  119. package/dist/data-display-b-9s0RTe.js +422 -0
  120. package/dist/feedback-B50I0C35.cjs +1 -0
  121. package/dist/feedback-BQFSnMjh.js +10 -0
  122. package/dist/feedback-BzR4ggrP.cjs +1 -0
  123. package/dist/{feedback-DTyVVcTb.js → feedback-EaZszoXf.js} +225 -224
  124. package/dist/icon/components/TablerIcons.d.ts +1 -1
  125. package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
  126. package/dist/icon/index.d.ts +1 -1
  127. package/dist/{icon-CUE-QGQK.js → icon-ICz2_dVB.js} +550 -944
  128. package/dist/icon-TSBamkxk.cjs +1 -0
  129. package/dist/icon.cjs +1 -1
  130. package/dist/icon.mjs +510 -504
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.mjs +666 -658
  133. package/dist/input-BQABEELu.cjs +1 -0
  134. package/dist/input-CuySKbhm.js +2356 -0
  135. package/dist/input-DxoXgI5-.js +373 -0
  136. package/dist/input-ExCbk62Y.cjs +1 -0
  137. package/dist/layout-B1Iwc9ku.cjs +1 -0
  138. package/dist/layout-B2KvJ900.js +479 -0
  139. package/dist/{navigation-CIVYqPc5.js → navigation-BY8X2w04.js} +31 -31
  140. package/dist/navigation-ByYN6NgX.cjs +1 -0
  141. package/dist/navigation-DP5Edsq_.cjs +1 -0
  142. package/dist/navigation-DXMjQMPm.js +134 -0
  143. package/dist/normalizeSearchText-DLmPiBUZ.js +19 -0
  144. package/dist/normalizeSearchText-Do0MELpQ.cjs +1 -0
  145. package/dist/preventDismissingClickActivation-BEBrL9aB.cjs +1 -0
  146. package/dist/preventDismissingClickActivation-BQFMKRey.js +29 -0
  147. package/dist/primitives/accessibility.cjs +1 -1
  148. package/dist/primitives/accessibility.mjs +1 -1
  149. package/dist/primitives/data-display/Avatar/constants/AvatarPropertiesBySize.d.ts +4 -0
  150. package/dist/primitives/data-display/Avatar/types/AvatarSize.d.ts +1 -1
  151. package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +1 -1
  152. package/dist/primitives/data-display/Chip/types/ChipVariant.d.ts +1 -1
  153. package/dist/primitives/data-display.cjs +1 -1
  154. package/dist/primitives/data-display.mjs +7 -8
  155. package/dist/primitives/feedback/Banner/Banner.d.ts +2 -2
  156. package/dist/primitives/feedback/Banner/internal/BannerAction.d.ts +1 -1
  157. package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +1 -1
  158. package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +2 -0
  159. package/dist/primitives/feedback.cjs +1 -1
  160. package/dist/primitives/feedback.mjs +9 -8
  161. package/dist/primitives/input/Autocomplete/Autocomplete.d.ts +1 -1
  162. package/dist/primitives/input/Autocomplete/internal/AutocompleteInput.d.ts +1 -1
  163. package/dist/primitives/input/Autocomplete/types/AutocompleteInputProps.d.ts +8 -1
  164. package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -1
  165. package/dist/primitives/input/Button/types/ButtonColor.d.ts +1 -1
  166. package/dist/primitives/input/Input/Input.d.ts +1 -1
  167. package/dist/primitives/input/Input/types/InputProps.d.ts +3 -0
  168. package/dist/primitives/input/InputGroup/InputGroup.d.ts +1 -1
  169. package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +1 -0
  170. package/dist/primitives/input/RadioGroup/RadioGroup.d.ts +1 -1
  171. package/dist/primitives/input/RadioGroup/types/RadioGroupProps.d.ts +3 -1
  172. package/dist/primitives/input/Textarea/Textarea.d.ts +1 -1
  173. package/dist/primitives/input/Textarea/internal/TextareaAutoResizeEffect.d.ts +8 -0
  174. package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +2 -0
  175. package/dist/primitives/input/index.d.ts +1 -0
  176. package/dist/primitives/input/types/InputVariant.d.ts +1 -0
  177. package/dist/primitives/input.cjs +1 -1
  178. package/dist/primitives/input.mjs +15 -15
  179. package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
  180. package/dist/primitives/navigation/ListItem/__stories__/ListItemMultilineExample.d.ts +7 -0
  181. package/dist/primitives/navigation/ListItem/types/ListItemDescriptionPlacement.d.ts +1 -1
  182. package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -0
  183. package/dist/primitives/navigation/ListItem/types/ListItemState.d.ts +1 -0
  184. package/dist/primitives/navigation/Tabs/types/TabsSize.d.ts +1 -1
  185. package/dist/primitives/navigation.cjs +1 -1
  186. package/dist/primitives/navigation.mjs +2 -2
  187. package/dist/primitives/surfaces/Card/Card.d.ts +3 -1
  188. package/dist/primitives/surfaces/Card/internal/CardAction.d.ts +2 -0
  189. package/dist/primitives/surfaces/Card/internal/CardControl.d.ts +2 -0
  190. package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +1 -1
  191. package/dist/primitives/surfaces/Card/types/CardActionProps.d.ts +2 -0
  192. package/dist/primitives/surfaces/Card/types/CardControlProps.d.ts +2 -0
  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 +3 -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 +4 -2
  202. package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +2 -1
  203. package/dist/primitives/typography/Text/Text.d.ts +1 -1
  204. package/dist/primitives/typography/Text/internal/TextTypographyProps.d.ts +7 -0
  205. package/dist/primitives/typography/Text/types/TextProps.d.ts +2 -1
  206. package/dist/primitives/typography/internal/TypographyColor.d.ts +2 -0
  207. package/dist/primitives/typography/internal/TypographyFontSize.d.ts +2 -0
  208. package/dist/primitives/typography.cjs +1 -1
  209. package/dist/primitives/typography.mjs +3 -3
  210. package/dist/primitives.cjs +1 -1
  211. package/dist/primitives.mjs +40 -40
  212. package/dist/{settings-BgVuLpg9.js → settings-BTFAqYrD.js} +1 -1
  213. package/dist/{settings-CPXhrmbK.cjs → settings-D_iT1ngl.cjs} +1 -1
  214. package/dist/style.css +1 -1
  215. package/dist/surfaces-DtZwsfms.cjs +1 -0
  216. package/dist/surfaces-v0kQLZYO.js +224 -0
  217. package/dist/testing/index.d.ts +1 -0
  218. package/dist/testing/utils/waitForStorybookFontsLoaded.d.ts +1 -0
  219. package/dist/testing.cjs +1 -1
  220. package/dist/testing.mjs +87 -77
  221. package/dist/{typography-bKeSMuJd.cjs → typography-B05olPwL.cjs} +1 -1
  222. package/dist/{typography-DT2eKLvd.js → typography-BwyZEDDi.js} +1 -1
  223. package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
  224. package/dist/utilities.cjs +1 -1
  225. package/dist/utilities.mjs +11 -10
  226. package/package.json +3 -1
  227. package/dist/Avatar-C6WxBgjS.cjs +0 -1
  228. package/dist/Avatar-ifVlxbx_.js +0 -73
  229. package/dist/Button-DIw804CX.js +0 -72
  230. package/dist/Button-DTm1WDzp.cjs +0 -1
  231. package/dist/Dropdown-1OAJvS1f.js +0 -1000
  232. package/dist/Dropdown-Bl4OXCf9.cjs +0 -1
  233. package/dist/Heading-CTRYClCO.cjs +0 -1
  234. package/dist/Input-DZWl81G_.js +0 -23
  235. package/dist/Input-DvL77rvu.cjs +0 -1
  236. package/dist/ListItem-DizNUBT8.js +0 -86
  237. package/dist/ListItem-DwBb-I1D.cjs +0 -1
  238. package/dist/ListItem.module-BJ9Ttjrc.js +0 -34
  239. package/dist/ListItem.module-CO4u2oeF.cjs +0 -1
  240. package/dist/OverflowingTextWithTooltip-BmUROIah.js +0 -90
  241. package/dist/OverflowingTextWithTooltip-Z2daM0_x.cjs +0 -1
  242. package/dist/ProgressBar-B3xACTV2.js +0 -84
  243. package/dist/ProgressBar-OpSMnDBz.cjs +0 -1
  244. package/dist/Radio-BEAztmPu.js +0 -103
  245. package/dist/Radio-Dx6b4SYZ.cjs +0 -1
  246. package/dist/TabsTabContent-Co27Y2TU.cjs +0 -1
  247. package/dist/TabsTabContent-DVcObDp6.js +0 -39
  248. package/dist/TintedIconTile-B1XDtGrF.js +0 -40
  249. package/dist/TintedIconTile-DO1XJXCQ.cjs +0 -1
  250. package/dist/Tooltip-Bg9Uk01p.cjs +0 -1
  251. package/dist/Tooltip-cLCgtFBF.js +0 -124
  252. package/dist/components/navigation/MenuItem/MenuItem.d.ts +0 -2
  253. package/dist/components/navigation/MenuItem/parts/MenuItemIcon.d.ts +0 -9
  254. package/dist/components/navigation/MenuItem/parts/MenuItemIconBoxContainer.d.ts +0 -7
  255. package/dist/components/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +0 -8
  256. package/dist/components/navigation/MenuItem/parts/MenuItemLeftContent.d.ts +0 -19
  257. package/dist/components/navigation/MenuItem/parts/StyledMenuItemBase.d.ts +0 -25
  258. package/dist/components/navigation/MenuItem/types/MenuItemDraggableGripMode.d.ts +0 -1
  259. package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +0 -33
  260. package/dist/components/navigation/MenuItemAvatar/MenuItemAvatar.d.ts +0 -2
  261. package/dist/components/navigation/MenuItemAvatar/types/MenuItemAvatarProps.d.ts +0 -18
  262. package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +0 -2
  263. package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +0 -20
  264. package/dist/components/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts +0 -2
  265. package/dist/components/navigation/MenuItemSuggestion/types/MenuItemSuggestionProps.d.ts +0 -12
  266. package/dist/components/navigation/MenuPicker/MenuPicker.d.ts +0 -2
  267. package/dist/components/navigation/MenuPicker/types/MenuPickerProps.d.ts +0 -15
  268. package/dist/data-display-BSKGlijb.cjs +0 -1
  269. package/dist/data-display-BtXCGOGw.js +0 -345
  270. package/dist/data-display-DtXIhJ4B.js +0 -184
  271. package/dist/data-display-XV3ht1rC.cjs +0 -2
  272. package/dist/feedback-Cs-38OH4.cjs +0 -1
  273. package/dist/feedback-DA-AU5z5.js +0 -38
  274. package/dist/feedback-DNLERYY9.cjs +0 -1
  275. package/dist/icon-BNcdwwdl.cjs +0 -1
  276. package/dist/input-B_rBplmn.cjs +0 -1
  277. package/dist/input-BrjD91wv.js +0 -785
  278. package/dist/input-ChlFcqIS.cjs +0 -1
  279. package/dist/input-D1oyk0tD.js +0 -421
  280. package/dist/layout-CthYckvl.cjs +0 -1
  281. package/dist/layout-DQcjBu08.js +0 -439
  282. package/dist/navigation-B6nka3bW.js +0 -400
  283. package/dist/navigation-CflGBYv-.cjs +0 -1
  284. package/dist/navigation-DoInK0Sp.cjs +0 -1
  285. package/dist/preventDismissingClickActivation-AaqHBLnW.js +0 -45
  286. package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +0 -1
  287. package/dist/primitives/typography/internal/Label/Label.d.ts +0 -8
  288. package/dist/surfaces-0rL5DoHt.cjs +0 -1
  289. package/dist/surfaces-BLsR5ka0.js +0 -202
  290. /package/dist/{handleClickableElementKeyDown-C8Uz61XJ.js → accessibility-C8Uz61XJ.js} +0 -0
  291. /package/dist/{handleClickableElementKeyDown-CByqtBhO.cjs → accessibility-CByqtBhO.cjs} +0 -0
@@ -0,0 +1,479 @@
1
+ import { t as f } from "./isDefined-fMi6eQ4r.js";
2
+ import { t as Y } from "./doNotTranslate-BSVT8Xyd.js";
3
+ import { r as de, t as Ne } from "./OverflowingTextWithTooltip-D4eZc-7P.js";
4
+ import { t as se } from "./Separator-0LzwPfOn.js";
5
+ import { t as B } from "./Popover-CWeCV7X9.js";
6
+ import { t as Oe } from "./Heading-Nj5BlPqB.js";
7
+ import { useRender as Q } from "@base-ui/react/use-render";
8
+ import { isFunction as Z, isNonEmptyString as Le, isString as X, isUndefined as Ee } from "@sniptt/guards";
9
+ import { clsx as S } from "clsx";
10
+ import { cloneElement as Se, isValidElement as Me, memo as me, useCallback as J, useId as Te, useLayoutEffect as P, useRef as k, useState as q } from "react";
11
+ import { Fragment as j, jsx as u, jsxs as M } from "react/jsx-runtime";
12
+ import { mergeProps as xe } from "@base-ui/react/merge-props";
13
+ import { useMergedRefs as H } from "@base-ui/utils/useMergedRefs";
14
+ import { useControlled as De } from "@base-ui/utils/useControlled";
15
+ import { useStableCallback as z } from "@base-ui/utils/useStableCallback";
16
+ var Ae = "_container_1hm4x_1", Re = "_layer_1hm4x_9", ke = "_visible_1hm4x_23", ze = "_hidden_1hm4x_28", R = {
17
+ container: Ae,
18
+ layer: Re,
19
+ visible: ke,
20
+ hidden: ze
21
+ }, Et = ({ isActive: r, activeIcon: e, inactiveIcon: t, className: n, render: o, ref: s, ...l }) => Q({
22
+ defaultTagName: "span",
23
+ render: o,
24
+ ref: s,
25
+ props: {
26
+ ...l,
27
+ className: S(R.container, n),
28
+ children: /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ u("span", {
29
+ "aria-hidden": "true",
30
+ className: S(R.layer, r ? R.hidden : R.visible),
31
+ children: t
32
+ }), /* @__PURE__ */ u("span", {
33
+ "aria-hidden": "true",
34
+ className: S(R.layer, r ? R.visible : R.hidden),
35
+ children: e
36
+ })] })
37
+ }
38
+ }), We = "_root_izvk1_1", Ue = "_rule_izvk1_14", Ke = "_line_izvk1_22", Ve = "_marker_izvk1_28", Be = "_label_izvk1_36", K = {
39
+ root: We,
40
+ rule: Ue,
41
+ line: Ke,
42
+ marker: Ve,
43
+ label: Be
44
+ }, St = ({ children: r, labelPosition: e = "center", tone: t = "neutral", hasStartMarker: n = !1, className: o, render: s, ref: l, ...i }) => Q({
45
+ render: s,
46
+ ref: l,
47
+ props: {
48
+ role: "separator",
49
+ "aria-orientation": "horizontal",
50
+ "aria-label": r,
51
+ ...i,
52
+ "data-tone": t,
53
+ className: S(K.root, o),
54
+ children: /* @__PURE__ */ M(j, { children: [
55
+ /* @__PURE__ */ M("span", {
56
+ className: K.rule,
57
+ "aria-hidden": "true",
58
+ children: [n && /* @__PURE__ */ u("span", { className: K.marker }), /* @__PURE__ */ u(se, {
59
+ className: K.line,
60
+ "aria-hidden": !0
61
+ })]
62
+ }),
63
+ /* @__PURE__ */ u(de, {
64
+ render: /* @__PURE__ */ u("span", {}),
65
+ size: t === "danger" ? "sm" : "xs",
66
+ weight: t === "danger" ? "medium" : "semibold",
67
+ className: K.label,
68
+ children: r
69
+ }),
70
+ e === "center" && /* @__PURE__ */ u(se, {
71
+ className: K.line,
72
+ "aria-hidden": !0
73
+ })
74
+ ] })
75
+ }
76
+ }), $e = "_root_eheyl_1", He = "_items_eheyl_11", qe = "_item_eheyl_11", je = "_popupItem_eheyl_45", Ge = "_trigger_eheyl_49", Je = "_popup_eheyl_45", V = {
77
+ root: $e,
78
+ items: He,
79
+ item: qe,
80
+ popupItem: je,
81
+ trigger: Ge,
82
+ popup: Je
83
+ }, Qe = ({ props: r, state: e, render: t }) => {
84
+ const n = Me(t) ? t : void 0, o = H(r.ref, n?.props.ref);
85
+ if (Z(t)) return t(r, e);
86
+ const s = {
87
+ ...xe(r, n?.props),
88
+ children: r.children,
89
+ ref: o
90
+ };
91
+ return f(n) ? Se(n, s) : /* @__PURE__ */ u("div", { ...s });
92
+ }, Xe = me(({ elementRef: r, isHidden: e, onFocusLost: t }) => (P(() => {
93
+ const n = r.current, o = f(n) && n.contains(n.ownerDocument.activeElement);
94
+ e && o && t(n);
95
+ }, [
96
+ r,
97
+ e,
98
+ t
99
+ ]), null)), fe = (r) => J((e) => {
100
+ if (f(e))
101
+ return () => {
102
+ const t = e.ownerDocument, n = e.contains(t.activeElement);
103
+ queueMicrotask(() => {
104
+ const o = t.activeElement === t.body;
105
+ n && !e.isConnected && o && r(e);
106
+ });
107
+ };
108
+ }, [r]), ie = ({ children: r, index: e, isHidden: t, isLastVisible: n, isInPopup: o, onFocusLost: s }) => {
109
+ const l = k(null), i = z((a) => {
110
+ s({
111
+ index: e,
112
+ element: a,
113
+ isInPopup: o
114
+ });
115
+ });
116
+ return /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ u("div", {
117
+ ref: H(l, fe(i)),
118
+ className: o ? V.popupItem : V.item,
119
+ "data-item-index": e,
120
+ "data-hidden": t || void 0,
121
+ "data-last-visible": n || void 0,
122
+ "aria-hidden": t || void 0,
123
+ inert: t,
124
+ children: r
125
+ }), /* @__PURE__ */ u(Xe, {
126
+ elementRef: l,
127
+ isHidden: t,
128
+ onFocusLost: i
129
+ })] });
130
+ }, le = ({ itemWidths: r, availableWidth: e, gap: t, includePartialItem: n }) => {
131
+ let o = 0, s = 0;
132
+ for (const l of r) {
133
+ const i = o + l + (s > 0 ? t : 0);
134
+ if (s !== 0 && i > e) {
135
+ const a = o + t < e;
136
+ return n && a ? s + 1 : s;
137
+ }
138
+ o = i, s += 1;
139
+ }
140
+ return s;
141
+ }, Ye = ({ items: r, itemElements: e }) => {
142
+ r.setAttribute("data-measuring", "");
143
+ const t = e.map((n) => n.clientWidth);
144
+ return r.removeAttribute("data-measuring"), t;
145
+ }, Ze = ({ container: r, items: e, trigger: t, itemElements: n, itemCount: o, reserveCountSpace: s }) => {
146
+ const l = Ye({
147
+ items: e,
148
+ itemElements: n
149
+ }), i = parseFloat(getComputedStyle(e).columnGap) || 0, a = r.clientWidth, d = o > le({
150
+ itemWidths: l,
151
+ availableWidth: a,
152
+ gap: i,
153
+ includePartialItem: !1
154
+ }), p = t?.offsetWidth ?? 0;
155
+ return {
156
+ visibleItemCount: le({
157
+ itemWidths: l,
158
+ availableWidth: s && d ? Math.max(0, a - p - i) : a,
159
+ gap: i,
160
+ includePartialItem: !0
161
+ }),
162
+ hasOverflow: d
163
+ };
164
+ }, Pe = 100, et = me(({ containerRef: r, itemsRef: e, triggerRef: t, itemCount: n, inlineItemCount: o, reserveCountSpace: s, isMeasurementEnabled: l, isOpen: i, onLayoutChange: a, onOverflowUnavailable: d }) => {
165
+ const p = k(void 0), O = k(void 0), C = z(() => ({
166
+ itemCount: n,
167
+ inlineItemCount: o,
168
+ reserveCountSpace: s,
169
+ isOpen: i
170
+ })), F = z(a), T = z(d);
171
+ return P(() => {
172
+ const g = r.current, I = e.current;
173
+ if (!l || !f(g) || !f(I)) {
174
+ O.current = void 0;
175
+ return;
176
+ }
177
+ const L = /* @__PURE__ */ new Set(), y = () => {
178
+ const _ = Array.from(I.children), W = /* @__PURE__ */ new Set([g, ..._]);
179
+ f(t.current) && W.add(t.current);
180
+ for (const b of L) W.has(b) || (E?.unobserve(b), L.delete(b));
181
+ for (const b of W) L.has(b) || (E?.observe(b), L.add(b));
182
+ const D = C();
183
+ if (_.length !== D.inlineItemCount) return;
184
+ const c = Ze({
185
+ container: g,
186
+ items: I,
187
+ trigger: t.current,
188
+ itemElements: _,
189
+ itemCount: D.itemCount,
190
+ reserveCountSpace: D.reserveCountSpace
191
+ }), h = O.current, v = f(h) && h.isOpen && !h.layout.hasOverflow, A = D.isOpen && !c.hasOverflow;
192
+ O.current = {
193
+ layout: c,
194
+ isOpen: D.isOpen
195
+ }, F(c), A && !v && T();
196
+ }, E = f(globalThis.ResizeObserver) ? new ResizeObserver(y) : void 0;
197
+ p.current = y, y();
198
+ const x = new MutationObserver(y);
199
+ if (x.observe(I, {
200
+ attributes: !0,
201
+ attributeFilter: [
202
+ "class",
203
+ "style",
204
+ "hidden"
205
+ ],
206
+ characterData: !0,
207
+ childList: !0,
208
+ subtree: !0
209
+ }), x.observe(g, { childList: !0 }), !f(E)) {
210
+ const _ = setInterval(y, Pe);
211
+ return window.addEventListener("resize", y), () => {
212
+ p.current = void 0, clearInterval(_), x.disconnect(), window.removeEventListener("resize", y);
213
+ };
214
+ }
215
+ return () => {
216
+ p.current = void 0, x.disconnect(), E.disconnect();
217
+ };
218
+ }, [
219
+ r,
220
+ e,
221
+ t,
222
+ l,
223
+ C,
224
+ F,
225
+ T
226
+ ]), P(() => {
227
+ p.current?.();
228
+ }, [
229
+ n,
230
+ o,
231
+ s,
232
+ i
233
+ ]), null;
234
+ }), tt = ({ itemCount: r, inlineItemCount: e }) => {
235
+ const t = k(null), n = k(null), o = k(null), [s, l] = q({
236
+ visibleItemCount: e,
237
+ hasOverflow: r > e
238
+ });
239
+ return {
240
+ containerRef: t,
241
+ itemsRef: n,
242
+ triggerRef: o,
243
+ updateLayout: J((i) => {
244
+ l((a) => a.visibleItemCount !== i.visibleItemCount || a.hasOverflow !== i.hasOverflow ? i : a);
245
+ }, []),
246
+ ...s
247
+ };
248
+ }, rt = Y("button, a[href], input, select, textarea, [tabindex]"), ce = ({ items: r, popup: e, trigger: t, root: n, removedIndex: o, excludedItem: s }) => {
249
+ const l = [...Array.from(r?.children ?? []), ...Array.from(e?.children ?? [])].filter((i) => i !== s).sort((i, a) => Math.abs(Number(i.getAttribute("data-item-index")) - o) - Math.abs(Number(a.getAttribute("data-item-index")) - o) || Number(a.getAttribute("data-item-index")) - Number(i.getAttribute("data-item-index")));
250
+ for (const i of l)
251
+ if (!i.hasAttribute("inert")) {
252
+ for (const a of Array.from(i.querySelectorAll(rt))) if (!a.matches(":disabled") && !f(a.closest("[inert]")) && (a.focus(), a.ownerDocument.activeElement === a))
253
+ return;
254
+ }
255
+ t?.focus(), !(f(t) && t.ownerDocument.activeElement === t) && n?.focus();
256
+ }, nt = ({ containerRef: r, itemsRef: e, triggerRef: t, popup: n, itemCount: o, canExpand: s, isPopupOpen: l, isOpen: i, isHovered: a, showOverflowCount: d, onFocusCapture: p, onBlurCapture: O }) => {
257
+ const [C, F] = q(!1), [T, g] = q(), I = d ?? T ?? (a || C || i), L = z(({ index: c, element: h, isInPopup: v }) => {
258
+ ce({
259
+ items: v && s ? null : e.current,
260
+ popup: v && l ? n : null,
261
+ trigger: t.current,
262
+ root: r.current,
263
+ removedIndex: c,
264
+ excludedItem: h
265
+ });
266
+ }), y = J(() => {
267
+ const c = r.current;
268
+ c?.focus(), F(c?.ownerDocument.activeElement === c), g(void 0);
269
+ }, [r]), E = z(() => {
270
+ if (l) return;
271
+ const c = r.current, h = c?.ownerDocument, v = h?.activeElement, A = f(v) && e.current?.contains(v) && !f(v.closest("[inert]")), b = f(v) && v !== h?.body && !c?.contains(v) && !n?.contains(v);
272
+ if (A || b) return;
273
+ if (!s) {
274
+ ce({
275
+ items: e.current,
276
+ popup: null,
277
+ trigger: null,
278
+ root: c,
279
+ removedIndex: o
280
+ });
281
+ return;
282
+ }
283
+ const U = t.current;
284
+ if (f(U) && !U.matches(":disabled")) {
285
+ U.focus({ preventScroll: !0 });
286
+ return;
287
+ }
288
+ c?.focus({ preventScroll: !0 });
289
+ }), x = J(() => (queueMicrotask(E), !1), [E]), _ = fe(y);
290
+ return {
291
+ hasFocus: C,
292
+ isCountVisible: I,
293
+ restoreItemFocus: L,
294
+ schedulePopupFocusRestoration: x,
295
+ resetFocusWhenFocusedTriggerUnmounts: _,
296
+ handleFocusCapture: (c) => {
297
+ F(!0), e.current?.contains(c.target) && g((h) => h ?? I), p?.(c);
298
+ },
299
+ handleBlurCapture: (c) => {
300
+ F(c.currentTarget.contains(c.relatedTarget) || (n?.contains(c.relatedTarget) ?? !1)), e.current?.contains(c.relatedTarget) || g(void 0), O?.(c);
301
+ }
302
+ };
303
+ }, N = (r) => r.stopPropagation(), Mt = ({ children: r, showOverflowCount: e, maxInlineCount: t, overflowLabel: n = Y("Show all items"), open: o, defaultOpen: s = !1, onOpenChange: l, actionsRef: i, triggerProps: a, popupProps: d, className: p, onMouseEnter: O, onMouseLeave: C, onFocusCapture: F, onBlurCapture: T, ref: g, ...I }) => {
304
+ const [L, y] = q(!1), [E, x] = q(null), [_, W] = De({
305
+ controlled: o,
306
+ default: s,
307
+ name: Y("OverflowingList"),
308
+ state: "open"
309
+ }), D = k(null), c = i ?? D, h = f(t) && Number.isFinite(t) ? Math.min(r.length, Math.max(0, Math.floor(t))) : r.length, { containerRef: v, itemsRef: A, triggerRef: b, visibleItemCount: U, hasOverflow: ve, updateLayout: he } = tt({
310
+ itemCount: r.length,
311
+ inlineItemCount: h
312
+ }), G = ve && (_ || e !== !1), ee = _ && G, { hasFocus: _e, isCountVisible: te, restoreItemFocus: re, schedulePopupFocusRestoration: be, resetFocusWhenFocusedTriggerUnmounts: pe, handleFocusCapture: ge, handleBlurCapture: ye } = nt({
313
+ containerRef: v,
314
+ itemsRef: A,
315
+ triggerRef: b,
316
+ popup: E,
317
+ itemCount: r.length,
318
+ canExpand: G,
319
+ isPopupOpen: ee,
320
+ isOpen: _,
321
+ isHovered: L,
322
+ showOverflowCount: e,
323
+ onFocusCapture: F,
324
+ onBlurCapture: T
325
+ }), ne = (e ?? (L || _e)) || _, we = H(v, g), Fe = H(b, pe, a?.ref), Ce = H(x, d?.ref), ae = ne && e !== !1 ? U : h, oe = r.length - U, Ie = z(() => {
326
+ c.current?.close();
327
+ });
328
+ return /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ M("div", {
329
+ ...I,
330
+ ref: we,
331
+ tabIndex: I.tabIndex ?? -1,
332
+ className: S(V.root, p),
333
+ onMouseEnter: (m) => {
334
+ y(!0), O?.(m);
335
+ },
336
+ onMouseLeave: (m) => {
337
+ y(!1), C?.(m);
338
+ },
339
+ onFocusCapture: ge,
340
+ onBlurCapture: ye,
341
+ children: [/* @__PURE__ */ u("div", {
342
+ ref: A,
343
+ className: V.items,
344
+ children: r.slice(0, h).map((m, w) => /* @__PURE__ */ u(ie, {
345
+ index: w,
346
+ isHidden: w >= ae,
347
+ isLastVisible: e !== !1 && w === ae - 1,
348
+ isInPopup: !1,
349
+ onFocusLost: re,
350
+ children: m
351
+ }, m.key ?? w))
352
+ }), (G || _) && /* @__PURE__ */ M(B.Root, {
353
+ open: ee,
354
+ actionsRef: c,
355
+ onOpenChange: (m, w) => {
356
+ l?.(m, w), w.isCanceled || W(m);
357
+ },
358
+ children: [G && /* @__PURE__ */ u(B.Trigger, {
359
+ type: "button",
360
+ "aria-label": `+${oe} ${n}`,
361
+ ...a,
362
+ onClick: a?.onClick ?? N,
363
+ onMouseDown: a?.onMouseDown ?? N,
364
+ onPointerDown: a?.onPointerDown ?? N,
365
+ onKeyDown: a?.onKeyDown ?? N,
366
+ onKeyUp: a?.onKeyUp ?? N,
367
+ ref: Fe,
368
+ className: (m) => S(V.trigger, Z(a?.className) ? a.className(m) : a?.className),
369
+ "data-visible": te || void 0,
370
+ children: Ee(a?.children) ? `+${oe}` : a.children
371
+ }), /* @__PURE__ */ u(B.Portal, { children: /* @__PURE__ */ u(B.Positioner, {
372
+ anchor: v,
373
+ align: "start",
374
+ sideOffset: -9,
375
+ alignOffset: -7,
376
+ children: /* @__PURE__ */ u(B.Popup, {
377
+ "aria-label": n,
378
+ ...d,
379
+ onClick: d?.onClick ?? N,
380
+ onMouseDown: d?.onMouseDown ?? N,
381
+ onPointerDown: d?.onPointerDown ?? N,
382
+ onKeyDown: d?.onKeyDown ?? N,
383
+ onKeyUp: d?.onKeyUp ?? N,
384
+ ref: Ce,
385
+ render: (m, w) => /* @__PURE__ */ u(Qe, {
386
+ props: m,
387
+ state: w,
388
+ render: d?.render
389
+ }),
390
+ finalFocus: d?.finalFocus ?? be,
391
+ className: (m) => S(V.popup, Z(d?.className) ? d.className(m) : d?.className),
392
+ "data-overflowing-list-popup": "",
393
+ children: r.map((m, w) => /* @__PURE__ */ u(ie, {
394
+ index: w,
395
+ isHidden: !1,
396
+ isLastVisible: !1,
397
+ isInPopup: !0,
398
+ onFocusLost: re,
399
+ children: m
400
+ }, m.key ?? w))
401
+ })
402
+ }) })]
403
+ })]
404
+ }), /* @__PURE__ */ u(et, {
405
+ containerRef: v,
406
+ itemsRef: A,
407
+ triggerRef: b,
408
+ itemCount: r.length,
409
+ inlineItemCount: h,
410
+ reserveCountSpace: te,
411
+ isMeasurementEnabled: ne,
412
+ isOpen: _,
413
+ onLayoutChange: he,
414
+ onOverflowUnavailable: Ie
415
+ })] });
416
+ }, at = "_header_1dz7y_1", ot = "_titleRow_1dz7y_8", st = "_title_1dz7y_8", it = "_actions_1dz7y_21", lt = "_description_1dz7y_27", $ = {
417
+ header: at,
418
+ titleRow: ot,
419
+ title: st,
420
+ actions: it,
421
+ description: lt
422
+ }, ct = ({ title: r, description: e, actions: t, level: n = 2, size: o = "md", color: s = "primary", descriptionLineClamp: l = 5, isDescriptionFocusable: i = !1, render: a, ref: d, className: p, ...O }) => {
423
+ const C = Te(), F = X(e) ? Le(e) : f(e) && e !== !1, T = X(e) && l !== !1, g = X(e) ? /* @__PURE__ */ u(de, {
424
+ style: { whiteSpace: "pre-wrap" },
425
+ children: e
426
+ }) : e;
427
+ return Q({
428
+ render: a,
429
+ ref: d,
430
+ props: {
431
+ ...O,
432
+ className: S($.header, p),
433
+ children: /* @__PURE__ */ M(j, { children: [/* @__PURE__ */ M("div", {
434
+ className: $.titleRow,
435
+ children: [/* @__PURE__ */ u(Oe, {
436
+ level: n,
437
+ size: o,
438
+ color: s,
439
+ className: $.title,
440
+ "aria-describedby": F ? C : void 0,
441
+ children: r
442
+ }), f(t) && /* @__PURE__ */ u("div", {
443
+ className: $.actions,
444
+ children: t
445
+ })]
446
+ }), F && /* @__PURE__ */ u("div", {
447
+ id: C,
448
+ className: $.description,
449
+ children: T ? /* @__PURE__ */ u(Ne, {
450
+ text: e,
451
+ lineClamp: l,
452
+ isTooltipMultiline: !0,
453
+ isFocusable: i
454
+ }) : g
455
+ })] })
456
+ }
457
+ });
458
+ }, ut = "_root_ztxxm_1", dt = "_fullWidth_ztxxm_20", ue = {
459
+ root: ut,
460
+ fullWidth: dt
461
+ }, mt = ({ align: r = "left", color: e = "primary", fullWidth: t = !0, className: n, render: o, ref: s, ...l }) => Q({
462
+ render: o,
463
+ ref: s,
464
+ props: {
465
+ ...l,
466
+ "data-align": r,
467
+ "data-color": e,
468
+ className: S(ue.root, t && ue.fullWidth, n)
469
+ }
470
+ }), Tt = {
471
+ Root: mt,
472
+ Header: ct
473
+ };
474
+ export {
475
+ Et as i,
476
+ Mt as n,
477
+ St as r,
478
+ Tt as t
479
+ };
@@ -1,20 +1,20 @@
1
1
  import { t as p } from "./isDefined-fMi6eQ4r.js";
2
2
  import { t as T } from "./doNotTranslate-BSVT8Xyd.js";
3
3
  import { t as _ } from "./mergeClassNames-ClFMR1v0.js";
4
- import { n as g, t as B } from "./TabsTabContent-DVcObDp6.js";
5
- import { useRender as x } from "@base-ui/react/use-render";
4
+ import { n as g, t as B } from "./TabsTabContent-DPkLTBi2.js";
5
+ import { useRender as E } from "@base-ui/react/use-render";
6
6
  import { isString as L } from "@sniptt/guards";
7
- import { clsx as E } from "clsx";
8
- import { jsx as l, jsxs as R } from "react/jsx-runtime";
7
+ import { clsx as I } from "clsx";
8
+ import { jsx as d, jsxs as R } from "react/jsx-runtime";
9
9
  import { useDirection as K } from "@base-ui/react/direction-provider";
10
10
  import { Tabs as h } from "@base-ui/react/tabs";
11
- var C = "_root_ikxnr_1", O = "_list_ikxnr_13", S = "_item_ikxnr_24", D = "_content_ikxnr_35", H = "_separator_ikxnr_55", b = {
11
+ var C = "_root_1iwl8_1", O = "_list_1iwl8_14", S = "_item_1iwl8_25", D = "_content_1iwl8_36", H = "_separator_1iwl8_56", b = {
12
12
  root: C,
13
13
  list: O,
14
14
  item: S,
15
15
  content: D,
16
16
  separator: H
17
- }, P = ({ children: a, href: r, render: i, title: o, current: t, className: s, ref: e, "aria-current": n = t ? "page" : void 0, ...m }) => x({
17
+ }, P = ({ children: a, href: r, render: i, title: o, current: t, className: s, ref: e, "aria-current": n = t ? "page" : void 0, ...m }) => E({
18
18
  defaultTagName: p(r) ? "a" : "span",
19
19
  render: i,
20
20
  ref: e,
@@ -25,41 +25,41 @@ var C = "_root_ikxnr_1", O = "_list_ikxnr_13", S = "_item_ikxnr_24", D = "_conte
25
25
  title: o ?? (L(a) ? a : void 0),
26
26
  "aria-current": n,
27
27
  "data-linked": p(r) || void 0,
28
- className: E(b.content, s)
28
+ className: I(b.content, s)
29
29
  }
30
- }), sa = ({ links: a, className: r, render: i, ref: o, "aria-label": t = T("Breadcrumb"), ...s }) => x({
30
+ }), sa = ({ links: a, className: r, render: i, ref: o, "aria-label": t = T("Breadcrumb"), ...s }) => E({
31
31
  defaultTagName: "nav",
32
32
  render: i,
33
33
  ref: o,
34
34
  props: {
35
35
  ...s,
36
36
  "aria-label": t,
37
- className: E(b.root, r),
38
- children: /* @__PURE__ */ l("ol", {
37
+ className: I(b.root, r),
38
+ children: /* @__PURE__ */ d("ol", {
39
39
  className: b.list,
40
40
  children: a.map((e, n) => /* @__PURE__ */ R("li", {
41
41
  className: b.item,
42
- children: [n > 0 && /* @__PURE__ */ l("span", {
42
+ children: [n > 0 && /* @__PURE__ */ d("span", {
43
43
  className: b.separator,
44
44
  "aria-hidden": "true",
45
45
  children: "/"
46
- }), /* @__PURE__ */ l(P, {
46
+ }), /* @__PURE__ */ d(P, {
47
47
  ...e,
48
48
  current: n === a.length - 1
49
49
  })]
50
50
  }, n))
51
51
  })
52
52
  }
53
- }), U = ({ className: a, ...r }) => /* @__PURE__ */ l(h.Indicator, {
53
+ }), U = ({ className: a, ...r }) => /* @__PURE__ */ d(h.Indicator, {
54
54
  ...r,
55
55
  className: _(g.indicator, a)
56
- }), j = '[role="tab"]', q = '[role="tablist"]', z = T("[hidden], [inert]"), k = (a) => a.hasAttribute("data-disabled") || a.hasAttribute("disabled") || a.getAttribute("aria-disabled") === "true" || p(a.closest(z)), M = ({ event: a, direction: r, loopFocus: i }) => {
56
+ }), j = '[role="tab"]', q = '[role="tablist"]', z = T("[hidden], [inert]"), N = (a) => a.hasAttribute("data-disabled") || a.hasAttribute("disabled") || a.getAttribute("aria-disabled") === "true" || p(a.closest(z)), M = ({ event: a, direction: r, loopFocus: i }) => {
57
57
  if (a.altKey || a.ctrlKey || a.metaKey || a.shiftKey) return;
58
58
  const o = a.currentTarget, t = [];
59
- o.querySelectorAll(j).forEach((d) => {
60
- d.closest(q) === o && t.push(d);
59
+ o.querySelectorAll(j).forEach((l) => {
60
+ l.closest(q) === o && t.push(l);
61
61
  });
62
- const s = t.findIndex((d) => d === a.target);
62
+ const s = t.findIndex((l) => l === a.target);
63
63
  if (s === -1) return;
64
64
  const e = T(r === "rtl" ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"]), [n, m] = o.getAttribute("data-orientation") === "vertical" ? T(["ArrowDown", "ArrowUp"]) : e;
65
65
  if (!T([
@@ -68,22 +68,22 @@ var C = "_root_ikxnr_1", O = "_list_ikxnr_13", S = "_item_ikxnr_24", D = "_conte
68
68
  "Home",
69
69
  "End"
70
70
  ]).includes(a.key)) return;
71
- const y = a.key === m;
72
- let u = s + (y ? -1 : 1);
71
+ const w = a.key === m;
72
+ let u = s + (w ? -1 : 1);
73
73
  a.key === "Home" && (u = 0), a.key === "End" && (u = t.length - 1);
74
- const w = u < 0 || u >= t.length, I = y ? t.length - 1 : 0, A = t[w && i ? I : u];
75
- if (!p(A) || !k(A)) return;
74
+ const v = u < 0 || u >= t.length, k = w ? t.length - 1 : 0, y = t[v && i ? k : u];
75
+ if (!p(y) || !N(y)) return;
76
76
  a.preventBaseUIHandler(), a.preventDefault();
77
- const f = t.filter((d) => !k(d));
77
+ const f = t.filter((l) => !N(l));
78
78
  let c;
79
79
  if (a.key === "Home" && (c = f[0]), a.key === "End" && (c = f[f.length - 1]), a.key === n || a.key === m) {
80
- const d = y ? [...f].reverse() : f;
81
- c = d.find((N) => y ? t.indexOf(N) < s : t.indexOf(N) > s), c ??= i ? d[0] : void 0;
80
+ const l = w ? [...f].reverse() : f;
81
+ c = l.find((A) => w ? t.indexOf(A) < s : t.indexOf(A) > s), c ??= i ? l[0] : void 0;
82
82
  }
83
83
  if (!p(c) || c === a.target) return;
84
84
  a.stopPropagation();
85
- const v = c;
86
- queueMicrotask(() => v.focus());
85
+ const x = c;
86
+ queueMicrotask(() => x.focus());
87
87
  }, V = ({ className: a, onKeyDown: r, loopFocus: i = !0, ...o }) => {
88
88
  const t = K(), s = (e) => {
89
89
  if (r?.(e), e.defaultPrevented) {
@@ -96,24 +96,24 @@ var C = "_root_ikxnr_1", O = "_list_ikxnr_13", S = "_item_ikxnr_24", D = "_conte
96
96
  loopFocus: i
97
97
  });
98
98
  };
99
- return /* @__PURE__ */ l(h.List, {
99
+ return /* @__PURE__ */ d(h.List, {
100
100
  ...o,
101
101
  loopFocus: i,
102
102
  onKeyDown: s,
103
103
  className: _(g.list, a)
104
104
  });
105
- }, $ = ({ className: a, ...r }) => /* @__PURE__ */ l(h.Panel, {
105
+ }, $ = ({ className: a, ...r }) => /* @__PURE__ */ d(h.Panel, {
106
106
  ...r,
107
107
  className: _(g.panel, a)
108
- }), G = ({ className: a, ...r }) => /* @__PURE__ */ l(h.Root, {
108
+ }), G = ({ className: a, ...r }) => /* @__PURE__ */ d(h.Root, {
109
109
  ...r,
110
110
  className: _(g.root, a)
111
- }), J = ({ className: a, children: r, startIcon: i, endIcon: o, badge: t, highlighted: s = !1, size: e = "sm", ...n }) => /* @__PURE__ */ l(h.Tab, {
111
+ }), J = ({ className: a, children: r, startIcon: i, endIcon: o, badge: t, highlighted: s = !1, size: e = "sm", ...n }) => /* @__PURE__ */ d(h.Tab, {
112
112
  ...n,
113
113
  className: _(g.tab, a),
114
114
  "data-size": e,
115
115
  "data-highlighted": s || void 0,
116
- children: /* @__PURE__ */ l(B, {
116
+ children: /* @__PURE__ */ d(B, {
117
117
  startIcon: i,
118
118
  endIcon: o,
119
119
  badge: t,
@@ -0,0 +1 @@
1
+ const g=require("./isDefined-DS2Q42p5.cjs"),f=require("./doNotTranslate-CHE7WmRS.cjs"),N=require("./mergeClassNames-D4lshrT6.cjs"),c=require("./TabsTabContent-6rkARU9F.cjs");let A=require("@base-ui/react/use-render"),C=require("@sniptt/guards"),q=require("clsx"),o=require("react/jsx-runtime"),I=require("@base-ui/react/direction-provider"),p=require("@base-ui/react/tabs");var B="_root_1iwl8_1",k="_list_1iwl8_14",D="_item_1iwl8_25",L="_content_1iwl8_36",R="_separator_1iwl8_56",T={root:B,list:k,item:D,content:L,separator:R},K=({children:e,href:a,render:i,title:n,current:r,className:s,ref:t,"aria-current":l=r?"page":void 0,...b})=>(0,A.useRender)({defaultTagName:g.isDefined(a)?"a":"span",render:i,ref:t,props:{...b,children:e,href:a,title:n??((0,C.isString)(e)?e:void 0),"aria-current":l,"data-linked":g.isDefined(a)||void 0,className:(0,q.clsx)(T.content,s)}}),O=({links:e,className:a,render:i,ref:n,"aria-label":r=f.doNotTranslate("Breadcrumb"),...s})=>(0,A.useRender)({defaultTagName:"nav",render:i,ref:n,props:{...s,"aria-label":r,className:(0,q.clsx)(T.root,a),children:(0,o.jsx)("ol",{className:T.list,children:e.map((t,l)=>(0,o.jsxs)("li",{className:T.item,children:[l>0&&(0,o.jsx)("span",{className:T.separator,"aria-hidden":"true",children:"/"}),(0,o.jsx)(K,{...t,current:l===e.length-1})]},l))})}}),P=({className:e,...a})=>(0,o.jsx)(p.Tabs.Indicator,{...a,className:N.mergeClassNames(c.Tab_module_default.indicator,e)}),S='[role="tab"]',H='[role="tablist"]',U=f.doNotTranslate("[hidden], [inert]"),w=e=>e.hasAttribute("data-disabled")||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||g.isDefined(e.closest(U)),z=({event:e,direction:a,loopFocus:i})=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const n=e.currentTarget,r=[];n.querySelectorAll(S).forEach(d=>{d.closest(H)===n&&r.push(d)});const s=r.findIndex(d=>d===e.target);if(s===-1)return;const t=f.doNotTranslate(a==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"]),[l,b]=n.getAttribute("data-orientation")==="vertical"?f.doNotTranslate(["ArrowDown","ArrowUp"]):t;if(!f.doNotTranslate([l,b,"Home","End"]).includes(e.key))return;const x=e.key===b;let _=s+(x?-1:1);e.key==="Home"&&(_=0),e.key==="End"&&(_=r.length-1);const E=_<0||_>=r.length,j=x?r.length-1:0,h=r[E&&i?j:_];if(!g.isDefined(h)||!w(h))return;e.preventBaseUIHandler(),e.preventDefault();const m=r.filter(d=>!w(d));let u;if(e.key==="Home"&&(u=m[0]),e.key==="End"&&(u=m[m.length-1]),e.key===l||e.key===b){const d=x?[...m].reverse():m;u=d.find(y=>x?r.indexOf(y)<s:r.indexOf(y)>s),u??=i?d[0]:void 0}if(!g.isDefined(u)||u===e.target)return;e.stopPropagation();const v=u;queueMicrotask(()=>v.focus())},M=({className:e,onKeyDown:a,loopFocus:i=!0,...n})=>{const r=(0,I.useDirection)(),s=t=>{if(a?.(t),t.defaultPrevented){t.preventBaseUIHandler();return}t.baseUIHandlerPrevented||z({event:t,direction:r,loopFocus:i})};return(0,o.jsx)(p.Tabs.List,{...n,loopFocus:i,onKeyDown:s,className:N.mergeClassNames(c.Tab_module_default.list,e)})},V=({className:e,...a})=>(0,o.jsx)(p.Tabs.Panel,{...a,className:N.mergeClassNames(c.Tab_module_default.panel,e)}),G=({className:e,...a})=>(0,o.jsx)(p.Tabs.Root,{...a,className:N.mergeClassNames(c.Tab_module_default.root,e)}),J=({className:e,children:a,startIcon:i,endIcon:n,badge:r,highlighted:s=!1,size:t="sm",...l})=>(0,o.jsx)(p.Tabs.Tab,{...l,className:N.mergeClassNames(c.Tab_module_default.tab,e),"data-size":t,"data-highlighted":s||void 0,children:(0,o.jsx)(c.TabsTabContent,{startIcon:i,endIcon:n,badge:r,children:a})}),Q={Root:G,List:M,Tab:J,Indicator:P,Panel:V};Object.defineProperty(exports,"Breadcrumb",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return Q}});
@@ -0,0 +1 @@
1
+ const L=require("./doNotTranslate-CHE7WmRS.cjs"),w=require("./mergeClassNames-D4lshrT6.cjs"),B=require("./Button-iVyxlrwO.cjs"),P=require("./OverflowingTextWithTooltip-ClpPsdpP.cjs"),y=require("./ListItem-B-SFWJZb.cjs"),v=require("./Dropdown-D_hFndP5.cjs"),T=require("./TabsTabContent-6rkARU9F.cjs");let I=require("@base-ui/react/use-render"),f=require("@sniptt/guards"),x=require("clsx"),h=require("react"),r=require("react/jsx-runtime"),k=require("@base-ui/react/button"),j=require("@tabler/icons-react");var O="_pager_wkox0_1",N="_position_wkox0_11",D="_icon_wkox0_21",m={pager:O,position:N,icon:D},z=({index:e,count:t,onIndexChange:o,positionText:a,previousLabel:s,nextLabel:i,disabled:n=!1,positionPlacement:u="between",render:l,ref:c,className:d,...p})=>{const _=(0,f.isInteger)(e)&&(0,f.isInteger)(t)&&e>=0&&e<t,b=n||!_||e===0,q=n||!_||e===t-1,g=(0,r.jsx)(P.Text,{render:(0,r.jsx)("span",{}),className:m.position,"aria-live":"polite","aria-atomic":"true",children:a});return(0,I.useRender)({render:l,ref:c,props:{role:"group",...p,className:(0,x.clsx)(m.pager,d),"data-position-placement":u,children:(0,r.jsxs)(r.Fragment,{children:[u==="start"&&g,(0,r.jsx)(v.LightIconButton,{size:"sm",disabled:b,onClick:()=>o(e-1),"aria-label":s,children:(0,r.jsx)(j.IconChevronLeft,{className:m.icon})}),u==="between"&&g,(0,r.jsx)(v.LightIconButton,{size:"sm",disabled:q,onClick:()=>o(e+1),"aria-label":i,children:(0,r.jsx)(j.IconChevronRight,{className:m.icon})})]})}})},A=()=>{const{pageId:e,isPageActive:t,open:o,goToPage:a,goBack:s,canGoBack:i}=v.useDropdownContext();return{page:e,isActive:t&&o,goToPage:n=>a({id:n}),goBack:s,canGoBack:i}},G=({color:e,selected:t,selectionAppearance:o,active:a,focused:s,indicator:i,startIcon:n,endIcon:u,description:l,descriptionPlacement:c,shortcut:d,shortcutJoinLabel:p,hasSubmenu:_,disabled:b=!1,type:q="button",children:g,...C})=>(0,r.jsx)(y.ListItem,{color:e,selected:t,selectionAppearance:o,active:a,focused:s,indicator:i,startIcon:n,endIcon:u,description:l,descriptionPlacement:c,shortcut:d,shortcutJoinLabel:p,hasSubmenu:_,disabled:b,render:(0,r.jsx)(k.Button,{...C,nativeButton:!0,type:q,disabled:b}),children:g}),R=L.doNotTranslate({gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"}),E="_button_quwcq_1",S={button:E},F=({active:e=!1,className:t,children:o,startIcon:a,endIcon:s,badge:i,size:n,...u})=>{const l=(0,h.useContext)(B.ButtonGroupContext),c=n??l?.size??"sm";return(0,r.jsx)(B.Button,{...u,variant:"ghost",size:c,"data-active":e||void 0,className:w.mergeClassNames((0,x.clsx)(T.Tab_module_default.tab,S.button),t),children:(0,r.jsx)(T.TabsTabContent,{startIcon:a,endIcon:s,badge:i,children:o})})};Object.defineProperty(exports,"CountPager",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return R}});Object.defineProperty(exports,"ListItemButton",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return A}});