twenty-ui 2.42.0 → 2.44.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 (345) hide show
  1. package/README.md +89 -63
  2. package/dist/{AllIcons-BkHLT6oe.js → AllIcons-CFMhMGzh.js} +1 -1
  3. package/dist/{AllIcons-DMeLF1LP.cjs → AllIcons-Cz8pObev.cjs} +1 -1
  4. package/dist/Avatar-B5-MSVUG.cjs +1 -0
  5. package/dist/Avatar-Da_dlwJP.js +68 -0
  6. package/dist/{ListItem-C08r49UJ.js → ListItem-Bg7Sk5Nv.js} +34 -31
  7. package/dist/ListItem-UYe5GaEQ.cjs +1 -0
  8. package/dist/ListItem.module-DkSRO3lX.cjs +1 -0
  9. package/dist/ListItem.module-DqkBkYtI.js +38 -0
  10. package/dist/{Loader-DbOLVUcK.js → Loader-BLkXvZli.js} +4 -4
  11. package/dist/Loader-CMXdrX1d.cjs +1 -0
  12. package/dist/MenuSeparator-Ct3cQtJ2.cjs +1 -0
  13. package/dist/MenuSeparator-CyUYx1nk.js +68 -0
  14. package/dist/OverflowingTextWithTooltip-CtHMhu6b.js +198 -0
  15. package/dist/OverflowingTextWithTooltip-maBlogGW.cjs +1 -0
  16. package/dist/ProgressBar-C8N-1Iav.cjs +1 -0
  17. package/dist/ProgressBar-Cq6EDZz9.js +58 -0
  18. package/dist/ResizeHandle-DN1bRxQb.js +89 -0
  19. package/dist/ResizeHandle-cll01qBQ.cjs +1 -0
  20. package/dist/Switch-BLO0Y9bi.cjs +1 -0
  21. package/dist/Switch-CMVfAYqP.js +127 -0
  22. package/dist/TabsTabContent-BseLV1Wk.cjs +1 -0
  23. package/dist/TabsTabContent-_NCTxoP6.js +40 -0
  24. package/dist/TextDirectionContext-pwtyVyKv.cjs +1 -0
  25. package/dist/TextDirectionContext-zzaQWZg6.js +5 -0
  26. package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -0
  27. package/dist/components/__stories__/reading-direction/DirectionalMenusExample.d.ts +4 -0
  28. package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
  29. package/dist/components/code-editor/CodeEditor/{utils → internal/utils}/getBaseCodeEditorTheme.d.ts +1 -1
  30. package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +1 -0
  31. package/dist/components/code-editor/index.d.ts +0 -2
  32. package/dist/components/code-editor.cjs +1 -1
  33. package/dist/components/code-editor.mjs +64 -62
  34. package/dist/components/data-display/AvatarGroup/AvatarGroup.d.ts +1 -1
  35. package/dist/components/data-display/AvatarGroup/types/AvatarGroupProps.d.ts +3 -0
  36. package/dist/components/feedback/Callout/Callout.d.ts +1 -1
  37. package/dist/components/feedback/Callout/types/CalloutProps.d.ts +1 -0
  38. package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -18
  39. package/dist/components/feedback/InlineBanner/internal/InlineBannerButton.d.ts +5 -0
  40. package/dist/components/feedback/InlineBanner/types/InlineBannerButtonProps.d.ts +7 -0
  41. package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +12 -0
  42. package/dist/components/feedback/Toast/Toast.d.ts +1 -1
  43. package/dist/components/feedback/Toast/internal/components/ToastProgress.d.ts +9 -0
  44. package/dist/components/feedback/Toast/{hooks → internal/hooks}/useEnqueueToast.d.ts +1 -1
  45. package/dist/components/feedback/Toast/{types → internal/types}/ToastEntry.d.ts +1 -1
  46. package/dist/components/feedback/Toast/types/ToastProps.d.ts +1 -1
  47. package/dist/components/feedback/Toaster/internal/ToasterItem.d.ts +1 -1
  48. package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +1 -1
  49. package/dist/components/index.d.ts +19 -20
  50. package/dist/components/input/IconButton/types/IconButtonProps.d.ts +1 -1
  51. package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
  52. package/dist/components/input/SearchInput/__stories__/SearchInputExample.d.ts +2 -0
  53. package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +4 -12
  54. package/dist/components/navigation/Dropdown/Dropdown.d.ts +21 -0
  55. package/dist/components/navigation/Dropdown/__stories__/DropdownContextMenuExample.d.ts +1 -0
  56. package/dist/components/navigation/Dropdown/__stories__/DropdownNestedExample.d.ts +1 -0
  57. package/dist/components/navigation/Dropdown/__stories__/DropdownPagesExample.d.ts +1 -0
  58. package/dist/components/navigation/Dropdown/__stories__/DropdownPanelExample.d.ts +1 -0
  59. package/dist/components/navigation/Dropdown/__stories__/DropdownPickerExample.d.ts +4 -0
  60. package/dist/components/navigation/Dropdown/__stories__/createStoryState.d.ts +4 -0
  61. package/dist/components/navigation/Dropdown/__stories__/dropdownStoryA11yParameters.d.ts +8 -0
  62. package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +6 -0
  63. package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +2 -0
  64. package/dist/components/navigation/Dropdown/internal/DropdownBack.d.ts +2 -0
  65. package/dist/components/navigation/Dropdown/internal/DropdownClose.d.ts +2 -0
  66. package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +2 -0
  67. package/dist/components/navigation/Dropdown/internal/DropdownContext.d.ts +2 -0
  68. package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +41 -0
  69. package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +2 -0
  70. package/dist/components/navigation/Dropdown/internal/DropdownFocusTarget.d.ts +6 -0
  71. package/dist/components/navigation/Dropdown/internal/DropdownHeader.d.ts +2 -0
  72. package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +2 -0
  73. package/dist/components/navigation/Dropdown/internal/DropdownNestedRootEffect.d.ts +6 -0
  74. package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +2 -0
  75. package/dist/components/navigation/Dropdown/internal/DropdownPage.d.ts +2 -0
  76. package/dist/components/navigation/Dropdown/internal/DropdownPageFocusEffect.d.ts +6 -0
  77. package/dist/components/navigation/Dropdown/internal/DropdownPageFocusRequest.d.ts +5 -0
  78. package/dist/components/navigation/Dropdown/internal/DropdownRoot.d.ts +4 -0
  79. package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +2 -0
  80. package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +5 -0
  81. package/dist/components/navigation/Dropdown/internal/DropdownSection.d.ts +2 -0
  82. package/dist/components/navigation/Dropdown/internal/DropdownSeparator.d.ts +2 -0
  83. package/dist/components/navigation/Dropdown/internal/DropdownSubmenu.d.ts +2 -0
  84. package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +2 -0
  85. package/dist/components/navigation/Dropdown/internal/DropdownTitle.d.ts +2 -0
  86. package/dist/components/navigation/Dropdown/internal/DropdownTrigger.d.ts +2 -0
  87. package/dist/components/navigation/Dropdown/internal/getDropdownDismissTarget.d.ts +1 -0
  88. package/dist/components/navigation/Dropdown/internal/getDropdownFocusTarget.d.ts +8 -0
  89. package/dist/components/navigation/Dropdown/internal/getDropdownItemLabel.d.ts +1 -0
  90. package/dist/components/navigation/Dropdown/internal/getDropdownItems.d.ts +1 -0
  91. package/dist/components/navigation/Dropdown/internal/getDropdownSearchTarget.d.ts +1 -0
  92. package/dist/components/navigation/Dropdown/internal/getDropdownTrigger.d.ts +1 -0
  93. package/dist/components/navigation/Dropdown/internal/getNextDropdownItem.d.ts +7 -0
  94. package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +5 -0
  95. package/dist/components/navigation/Dropdown/internal/isUnhandledModifierShortcut.d.ts +2 -0
  96. package/dist/components/navigation/Dropdown/internal/preventDismissingClickActivation.d.ts +1 -0
  97. package/dist/components/navigation/Dropdown/internal/useDropdownContext.d.ts +1 -0
  98. package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +7 -0
  99. package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +7 -0
  100. package/dist/components/navigation/Dropdown/internal/useRegisterDropdownLabelElement.d.ts +1 -0
  101. package/dist/components/navigation/Dropdown/internal/useRegisteredElementId.d.ts +1 -0
  102. package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +10 -0
  103. package/dist/components/navigation/Dropdown/types/DropdownCloseProps.d.ts +4 -0
  104. package/dist/components/navigation/Dropdown/types/DropdownContentProps.d.ts +5 -0
  105. package/dist/components/navigation/Dropdown/types/DropdownDismissEvent.d.ts +4 -0
  106. package/dist/components/navigation/Dropdown/types/DropdownHeaderProps.d.ts +2 -0
  107. package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -0
  108. package/dist/components/navigation/Dropdown/types/DropdownPageProps.d.ts +7 -0
  109. package/dist/components/navigation/Dropdown/types/DropdownRootProps.d.ts +14 -0
  110. package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +4 -0
  111. package/dist/components/navigation/Dropdown/types/DropdownSectionProps.d.ts +5 -0
  112. package/dist/components/navigation/Dropdown/types/DropdownSubmenuProps.d.ts +2 -0
  113. package/dist/components/navigation/Dropdown/types/DropdownSubmenuTriggerProps.d.ts +6 -0
  114. package/dist/components/navigation/Dropdown/types/DropdownTitleProps.d.ts +2 -0
  115. package/dist/components/navigation/Dropdown/types/DropdownTriggerProps.d.ts +2 -0
  116. package/dist/components/navigation/Dropdown/types/DropdownType.d.ts +1 -0
  117. package/dist/components/navigation/MenuItem/MenuItem.d.ts +1 -1
  118. package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +1 -0
  119. package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +1 -1
  120. package/dist/components-Bs-35QDJ.cjs +1 -0
  121. package/dist/components-kaERZ89J.js +1865 -0
  122. package/dist/components.cjs +1 -1
  123. package/dist/components.mjs +31 -43
  124. package/dist/data-display-DenoFbuP.cjs +1 -0
  125. package/dist/data-display-npY0auY_.js +190 -0
  126. package/dist/getSafeUrl-BuX_E2_8.cjs +1 -0
  127. package/dist/getSafeUrl-DXwcx-N0.js +27 -0
  128. package/dist/icon/components/TablerIcons.d.ts +1 -1
  129. package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
  130. package/dist/icon/hooks/useIcons.d.ts +1 -1
  131. package/dist/icon/index.d.ts +1 -1
  132. package/dist/icon/providers/internal/AllIcons.d.ts +1 -1
  133. package/dist/{icon-CDy3-hqV.js → icon-B7aZ6RxF.js} +191 -176
  134. package/dist/icon-DK8OPi-m.cjs +1 -0
  135. package/dist/icon.cjs +1 -1
  136. package/dist/icon.mjs +227 -226
  137. package/dist/index.cjs +1 -1
  138. package/dist/index.d.ts +0 -1
  139. package/dist/index.mjs +620 -643
  140. package/dist/individual-entry.d.ts +0 -1
  141. package/dist/input-BNuMVtkM.cjs +1 -0
  142. package/dist/input-COx4wMjs.js +324 -0
  143. package/dist/layout-BEC7fKLU.js +34 -0
  144. package/dist/layout-DniJJ8Mx.cjs +1 -0
  145. package/dist/navigation-CUofX3gO.js +78 -0
  146. package/dist/navigation-qJfYicT7.cjs +1 -0
  147. package/dist/primitives/data-display/Avatar/Avatar.d.ts +1 -1
  148. package/dist/primitives/data-display/Avatar/types/AvatarProps.d.ts +1 -0
  149. package/dist/primitives/data-display/Pill/Pill.d.ts +3 -1
  150. package/dist/primitives/data-display.cjs +1 -1
  151. package/dist/primitives/data-display.mjs +7 -8
  152. package/dist/primitives/feedback/ProgressBar/ProgressBar.d.ts +2 -12
  153. package/dist/primitives/feedback/ProgressBar/types/ProgressBarProps.d.ts +14 -0
  154. package/dist/primitives/feedback/index.d.ts +1 -2
  155. package/dist/primitives/feedback.cjs +1 -1
  156. package/dist/primitives/feedback.mjs +2 -4
  157. package/dist/primitives/input/Button/Button.d.ts +1 -1
  158. package/dist/primitives/input/Button/types/ButtonProps.d.ts +0 -2
  159. package/dist/primitives/input/Button/types/ButtonVariant.d.ts +1 -1
  160. package/dist/primitives/input/ButtonGroup/internal/ButtonGroupContext.d.ts +1 -1
  161. package/dist/primitives/input/Radio/Radio.d.ts +1 -1
  162. package/dist/primitives/input/Radio/types/RadioProps.d.ts +1 -0
  163. package/dist/primitives/input/SegmentedControl/SegmentedControl.d.ts +2 -29
  164. package/dist/primitives/input/SegmentedControl/types/SegmentedControlOption.d.ts +13 -0
  165. package/dist/primitives/input/SegmentedControl/types/SegmentedControlProps.d.ts +10 -0
  166. package/dist/primitives/input/index.d.ts +2 -2
  167. package/dist/primitives/input.cjs +1 -1
  168. package/dist/primitives/input.mjs +15 -15
  169. package/dist/primitives/layout/{AnimatedExpandableContainer/AnimatedExpandableContainer.d.ts → Collapsible/Collapsible.d.ts} +2 -5
  170. package/dist/primitives/layout/ResizeHandle/ResizeHandle.d.ts +2 -9
  171. package/dist/primitives/layout/ResizeHandle/__stories__/ControlledResizeHandle.d.ts +2 -0
  172. package/dist/primitives/layout/ResizeHandle/__stories__/ResizableDemo.d.ts +3 -0
  173. package/dist/primitives/layout/ResizeHandle/__stories__/withMockPointerCapture.d.ts +4 -0
  174. package/dist/primitives/layout/ResizeHandle/internal/ResizeHandleDefaults.constant.d.ts +6 -0
  175. package/dist/primitives/layout/ResizeHandle/internal/useResizeHandleInteraction.d.ts +19 -0
  176. package/dist/primitives/layout/ResizeHandle/types/ResizeHandleProps.d.ts +11 -0
  177. package/dist/primitives/layout/TextDirectionProvider/TextDirectionProvider.d.ts +2 -1
  178. package/dist/primitives/layout/TextDirectionProvider/internal/TextDirection.d.ts +1 -0
  179. package/dist/primitives/layout/TextDirectionProvider/internal/TextDirectionContext.d.ts +2 -0
  180. package/dist/primitives/layout/TextDirectionProvider/internal/useProvidedTextDirection.d.ts +1 -0
  181. package/dist/primitives/layout/index.d.ts +5 -7
  182. package/dist/primitives/layout.cjs +1 -1
  183. package/dist/primitives/layout.mjs +7 -8
  184. package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
  185. package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +1 -0
  186. package/dist/primitives/navigation/index.d.ts +0 -4
  187. package/dist/primitives/navigation.cjs +1 -1
  188. package/dist/primitives/navigation.mjs +4 -8
  189. package/dist/primitives/surfaces/Card/Card.d.ts +17 -7
  190. package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +8 -0
  191. package/dist/primitives/surfaces/Dialog/types/DialogSize.d.ts +1 -1
  192. package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +4 -1
  193. package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +1 -1
  194. package/dist/primitives/surfaces/Popover/Popover.d.ts +1 -1
  195. package/dist/primitives/surfaces/Popover/internal/PopoverPopup.d.ts +1 -1
  196. package/dist/primitives/surfaces/Popover/types/PopoverPopupProps.d.ts +5 -0
  197. package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
  198. package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
  199. package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +1 -0
  200. package/dist/primitives/surfaces/index.d.ts +0 -3
  201. package/dist/primitives/surfaces.cjs +1 -1
  202. package/dist/primitives/surfaces.mjs +8 -10
  203. package/dist/{utilities/utils → primitives/typography/OverflowingTextWithTooltip/internal/LinkifiedText}/linkifyText.d.ts +2 -1
  204. package/dist/primitives/typography.cjs +1 -1
  205. package/dist/primitives/typography.mjs +1 -1
  206. package/dist/primitives.cjs +1 -1
  207. package/dist/primitives.mjs +48 -58
  208. package/dist/style.css +1 -1
  209. package/dist/surfaces-BJilWRcD.js +264 -0
  210. package/dist/surfaces-iGk6vB0x.cjs +1 -0
  211. package/dist/testing/index.d.ts +1 -3
  212. package/dist/testing/utils/overrideMediaQueryMatches.d.ts +1 -0
  213. package/dist/testing.cjs +1 -1
  214. package/dist/testing.mjs +98 -102
  215. package/dist/theme/ThemeOverrides.d.ts +1 -0
  216. package/dist/theme/ThemeProvider.d.ts +3 -0
  217. package/dist/theme/ThemeProviderProps.d.ts +13 -0
  218. package/dist/theme/constants/MainColorNames.d.ts +1 -1
  219. package/dist/theme/constants/ThemeCommon.d.ts +3 -0
  220. package/dist/theme/constants/ThemeLight.d.ts +4 -0
  221. package/dist/theme/getNextThemeColor.d.ts +2 -0
  222. package/dist/theme/index.d.ts +10 -0
  223. package/dist/theme/internal/ThemeContextType.d.ts +6 -0
  224. package/dist/theme/internal/computeThemeFromCss.d.ts +2 -0
  225. package/dist/theme/internal/getThemeContext.d.ts +3 -0
  226. package/dist/theme/internal/getThemeScopeContext.d.ts +2 -0
  227. package/dist/theme/internal/resolveExplicitTheme.d.ts +5 -0
  228. package/dist/{theme-constants → theme}/themeCssVariables.d.ts +4 -0
  229. package/dist/{theme-constants → theme}/themeTypes.d.ts +4 -0
  230. package/dist/{theme-OwFrow8b.js → theme-CjHovJAZ.js} +1208 -23
  231. package/dist/theme-DumxXtpW.cjs +1 -0
  232. package/dist/theme-dark.css +2 -0
  233. package/dist/theme-light.css +2 -0
  234. package/dist/theme.cjs +1 -1
  235. package/dist/theme.mjs +14 -7
  236. package/dist/useProvidedTextDirection-B7ovnsdr.cjs +1 -0
  237. package/dist/useProvidedTextDirection-P1dtjUtE.js +9 -0
  238. package/dist/utilities/color/utils/stringToThemeColorP3String.d.ts +1 -2
  239. package/dist/utilities/device/getUserDevice.d.ts +1 -1
  240. package/dist/utilities/index.d.ts +3 -4
  241. package/dist/utilities/responsive/constants/MobileMediaQuery.d.ts +1 -0
  242. package/dist/utilities/responsive/constants/TouchDeviceMediaQuery.d.ts +1 -0
  243. package/dist/utilities/responsive/hooks/useMediaQuery.d.ts +1 -0
  244. package/dist/utilities/responsive/internal/getMediaQueryStore.d.ts +6 -0
  245. package/dist/utilities-B7EwAZ4L.cjs +1 -0
  246. package/dist/utilities-CMrqpiWM.js +64 -0
  247. package/dist/utilities.cjs +1 -1
  248. package/dist/utilities.mjs +16 -15
  249. package/package.json +3 -17
  250. package/CHANGELOG.md +0 -12
  251. package/dist/Avatar-BGFK0_a_.cjs +0 -1
  252. package/dist/Avatar-C_TzSJBe.js +0 -67
  253. package/dist/ListItem-D75aS69B.cjs +0 -1
  254. package/dist/ListItem.module-CFDku7rI.cjs +0 -1
  255. package/dist/ListItem.module-DBhzbt9-.js +0 -38
  256. package/dist/Loader-CHKTYJo7.cjs +0 -1
  257. package/dist/OverflowingTextWithTooltip-BXWJtb0f.js +0 -179
  258. package/dist/OverflowingTextWithTooltip-DpizuDxR.cjs +0 -1
  259. package/dist/Pill-BJ3K8Mdc.cjs +0 -1
  260. package/dist/Pill-DaFEFIOT.js +0 -9
  261. package/dist/ProgressBar-DwJQXHwg.cjs +0 -1
  262. package/dist/ProgressBar-RWLNIkzm.js +0 -55
  263. package/dist/ResizeHandle-BWfY2ONo.js +0 -37
  264. package/dist/ResizeHandle-IVbYS3b8.cjs +0 -1
  265. package/dist/Switch-BvVP6vjR.js +0 -101
  266. package/dist/Switch-DuoJ4ytC.cjs +0 -1
  267. package/dist/TabsTabContent-BWQCg7Ua.js +0 -40
  268. package/dist/TabsTabContent-ChqlTk3P.cjs +0 -1
  269. package/dist/chunk-u_mIcLyS.cjs +0 -1
  270. package/dist/components/data-display/JsonTree/internal/JsonListItem.d.ts +0 -4
  271. package/dist/components/feedback/Info/Info.d.ts +0 -2
  272. package/dist/components/feedback/Info/types/InfoAccent.d.ts +0 -1
  273. package/dist/components/feedback/Info/types/InfoProps.d.ts +0 -11
  274. package/dist/components/input/CardPicker/CardPicker.d.ts +0 -2
  275. package/dist/components/input/CardPicker/types/CardPickerProps.d.ts +0 -2
  276. package/dist/components/input/ColorSchemePicker/ColorSchemePicker.d.ts +0 -2
  277. package/dist/components/input/ColorSchemePicker/internal/Checkmark/Checkmark.d.ts +0 -5
  278. package/dist/components/input/ColorSchemePicker/internal/ColorSchemeCard/ColorSchemeCard.d.ts +0 -11
  279. package/dist/components/input/ColorSchemePicker/types/ColorSchemePickerProps.d.ts +0 -9
  280. package/dist/components/navigation/RoundedLink/RoundedLink.d.ts +0 -8
  281. package/dist/components-B2Pdf_yn.js +0 -1459
  282. package/dist/components-DfhgWbKW.cjs +0 -1
  283. package/dist/data-display-QOdhAohf.cjs +0 -1
  284. package/dist/data-display-YQG01UPq.js +0 -184
  285. package/dist/feedback-BvpEL2-w.js +0 -25
  286. package/dist/feedback-CH2UC0Fv.cjs +0 -1
  287. package/dist/icon-lF2kxwql.cjs +0 -1
  288. package/dist/input-C2q7tGPj.js +0 -383
  289. package/dist/input-CAX9aS7C.cjs +0 -1
  290. package/dist/layout-BgAfeZsL.cjs +0 -1
  291. package/dist/layout-D-XbKoLM.js +0 -30
  292. package/dist/linkifyText-BHQ4_CzQ.cjs +0 -1
  293. package/dist/linkifyText-BINRNP9w.js +0 -45
  294. package/dist/mergeClassNames-BHKm1BNi.js +0 -6
  295. package/dist/mergeClassNames-BbJtXN2t.cjs +0 -1
  296. package/dist/navigation-Z7puI3wl.js +0 -91
  297. package/dist/navigation-e5PTdnND.cjs +0 -1
  298. package/dist/primitives/feedback/CircularProgressBar/CircularProgressBar.d.ts +0 -7
  299. package/dist/primitives/input/Button/internal/ButtonSoon.d.ts +0 -5
  300. package/dist/primitives/input/types/ColorScheme.d.ts +0 -1
  301. package/dist/primitives/layout/AnimatedExpandableContainer/types/AnimationMode.d.ts +0 -1
  302. package/dist/primitives/layout/AnimatedExpandableContainer/types/AnimationSize.d.ts +0 -1
  303. package/dist/primitives/layout/ResizeHandle/hooks/useResizeHandle.d.ts +0 -10
  304. package/dist/primitives/navigation/ClickToActionLink/ClickToActionLink.d.ts +0 -6
  305. package/dist/primitives/navigation/Link/constants/Cal.d.ts +0 -1
  306. package/dist/primitives/navigation/Link/constants/GithubLink.d.ts +0 -1
  307. package/dist/primitives/navigation/Link/constants/TwentyPricingLink.d.ts +0 -1
  308. package/dist/surfaces-Cr4lhCvZ.js +0 -306
  309. package/dist/surfaces-CuxI6145.cjs +0 -1
  310. package/dist/testing/decorators/ComponentWithRouterDecorator.d.ts +0 -9
  311. package/dist/testing/decorators/RouterDecorator.d.ts +0 -2
  312. package/dist/theme-YHfZnD2U.cjs +0 -1
  313. package/dist/theme-constants/ThemeProvider.d.ts +0 -15
  314. package/dist/theme-constants/ThemeScopeContext.d.ts +0 -1
  315. package/dist/theme-constants/getNextThemeColor.d.ts +0 -2
  316. package/dist/theme-constants/index.d.ts +0 -10
  317. package/dist/theme-constants-CrrgAYWN.js +0 -1163
  318. package/dist/theme-constants-ZNgkgDE-.cjs +0 -1
  319. package/dist/theme-constants.cjs +0 -1
  320. package/dist/theme-constants.mjs +0 -12
  321. package/dist/utilities/screen-size/hooks/useScreenSize.d.ts +0 -4
  322. package/dist/utilities/types/ClickOutsideAttributes.d.ts +0 -4
  323. package/dist/utilities-D7Z6Uof8.cjs +0 -1
  324. package/dist/utilities-FXsKnNbt.js +0 -49
  325. /package/dist/components/code-editor/CodeEditor/{constants → internal/constants}/BaseCodeEditorThemeId.d.ts +0 -0
  326. /package/dist/components/feedback/Toast/{constants → internal/constants}/DefaultToastLimit.d.ts +0 -0
  327. /package/dist/components/feedback/Toast/{contexts → internal/contexts}/ToastContext.d.ts +0 -0
  328. /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useCloseToast.d.ts +0 -0
  329. /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useToastContext.d.ts +0 -0
  330. /package/dist/components/feedback/Toast/{hooks → internal/hooks}/useToastEntries.d.ts +0 -0
  331. /package/dist/components/feedback/Toast/{stores → internal/stores}/createToastStore.d.ts +0 -0
  332. /package/dist/components/feedback/Toast/{types → internal/types}/ToastStoreState.d.ts +0 -0
  333. /package/dist/components/feedback/Toast/{utils → internal/utils}/completeToastExit.d.ts +0 -0
  334. /package/dist/components/feedback/Toast/{utils → internal/utils}/dismissToasts.d.ts +0 -0
  335. /package/dist/components/feedback/Toast/{utils → internal/utils}/isToastVisible.d.ts +0 -0
  336. /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDimension.d.ts +0 -0
  337. /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDurationObject.d.ts +0 -0
  338. /package/dist/primitives/layout/{AnimatedExpandableContainer → Collapsible}/types/AnimationDurations.d.ts +0 -0
  339. /package/dist/primitives/surfaces/{CardContent → Card/internal}/CardContent.d.ts +0 -0
  340. /package/dist/primitives/surfaces/{CardFooter → Card/internal}/CardFooter.d.ts +0 -0
  341. /package/dist/primitives/surfaces/{CardHeader → Card/internal}/CardHeader.d.ts +0 -0
  342. /package/dist/{theme-constants/constants.d.ts → theme/constants/MobileViewport.d.ts} +0 -0
  343. /package/dist/{theme-constants → theme}/useTheme.d.ts +0 -0
  344. /package/dist/{theme-constants → theme}/useThemeColorScheme.d.ts +0 -0
  345. /package/dist/{theme-constants → theme}/useThemeContainer.d.ts +0 -0
@@ -0,0 +1,1865 @@
1
+ import { As as Ot, Bt as ct, Cn as zt, Ei as Rt, En as qt, Mo as Ft, Nn as $t, Tn as Wt, Yi as Me, ca as jt, mc as Gt, nr as Ht, nt as ke, pl as ze, qc as Jt, wa as lt, wn as Kt } from "./icon-B7aZ6RxF.js";
2
+ import { t as m } from "./isDefined-fMi6eQ4r.js";
3
+ import { a as K, h as Vt, r as R, t as Ut } from "./theme-CjHovJAZ.js";
4
+ import { n as Yt, t as Xt } from "./handleClickableElementKeyDown-CJ_JsX2K.js";
5
+ import { d as Qt } from "./utilities-CMrqpiWM.js";
6
+ import { a as G, n as Zt, o as er, r as dt, t as tr } from "./Switch-CMVfAYqP.js";
7
+ import { n as Y, t as rr } from "./useProvidedTextDirection-P1dtjUtE.js";
8
+ import { n as nr, t as or } from "./ProgressBar-Cq6EDZz9.js";
9
+ import { n as ut, r as mt, t as ue } from "./OverflowingTextWithTooltip-CtHMhu6b.js";
10
+ import { t as ar } from "./HorizontalSeparator-JwV0dB5W.js";
11
+ import { r as ir } from "./ListItem.module-DqkBkYtI.js";
12
+ import { n as sr, t as be } from "./ListItem-Bg7Sk5Nv.js";
13
+ import { t as cr } from "./Heading-DvxTKEaL.js";
14
+ import { a as Ie, n as lr, r as dr, t as ur } from "./MenuSeparator-CyUYx1nk.js";
15
+ import { t as mr } from "./Avatar-Da_dlwJP.js";
16
+ import { n as _r, t as vr } from "./TabsTabContent-_NCTxoP6.js";
17
+ import { clsx as p } from "clsx";
18
+ import { Fragment as V, jsx as n, jsxs as h } from "react/jsx-runtime";
19
+ import { isArray as pr, isBoolean as fr, isFunction as hr, isNonEmptyArray as gr, isNonEmptyString as $, isNumber as br, isPositiveInteger as Ir, isString as oe } from "@sniptt/guards";
20
+ import { Collapsible as Ue } from "@base-ui/react/collapsible";
21
+ import { createContext as Re, forwardRef as qe, useCallback as me, useContext as _e, useEffect as Cr, useId as ae, useLayoutEffect as Ce, useMemo as wr, useRef as Fe, useState as E } from "react";
22
+ import { Button as _t } from "@base-ui/react/button";
23
+ import { useRender as ve } from "@base-ui/react/use-render";
24
+ import { Store as yr, useStore as Tr } from "@base-ui/utils/store";
25
+ import { createPortal as Nr } from "react-dom";
26
+ import { Popover as vt } from "@base-ui/react/popover";
27
+ import { useMergedRefs as we } from "@base-ui/utils/useMergedRefs";
28
+ import { useDirection as pt } from "@base-ui/react/direction-provider";
29
+ var kr = "_container_5cu4g_1", Sr = "_itemContainer_5cu4g_6", xr = "_overflowCountContainer_5cu4g_22", Ar = "_overflowCount_5cu4g_22", ne = {
30
+ container: kr,
31
+ itemContainer: Sr,
32
+ overflowCountContainer: xr,
33
+ overflowCount: Ar
34
+ }, Lr = 4, Vi = ({ avatars: e, className: t, maxVisible: r = Lr, overflowAvatar: o, overflowCount: a = 0, overflowShape: i = "square", overlap: s = "right", overlapOffset: c = "3px" }) => {
35
+ const d = e.slice(0, r), l = !o && a > 0;
36
+ if (!d.length && !o && !l) return null;
37
+ const u = { "--avatar-group-overlap-offset": c };
38
+ return /* @__PURE__ */ h("div", {
39
+ className: p(ne.container, t),
40
+ children: [
41
+ d.map((_, v) => /* @__PURE__ */ n("div", {
42
+ className: ne.itemContainer,
43
+ "data-overlap": s,
44
+ style: u,
45
+ children: _
46
+ }, v)),
47
+ o && /* @__PURE__ */ n("div", {
48
+ className: ne.itemContainer,
49
+ "data-overlap": s,
50
+ style: u,
51
+ children: o
52
+ }),
53
+ l && /* @__PURE__ */ n("div", {
54
+ className: p(ne.itemContainer, ne.overflowCountContainer),
55
+ "data-overlap": s,
56
+ style: u,
57
+ children: /* @__PURE__ */ h("div", {
58
+ className: ne.overflowCount,
59
+ "data-shape": i,
60
+ children: ["+", a]
61
+ })
62
+ })
63
+ ]
64
+ });
65
+ }, Dr = "_container_stu26_1", Er = "_commandContain_stu26_12", Br = "_buttonContainer_stu26_16", Mr = "_lineStartSpan_stu26_20", Pr = "_lineSpan_stu26_24", ce = {
66
+ container: Dr,
67
+ commandContain: Er,
68
+ buttonContainer: Br,
69
+ lineStartSpan: Mr,
70
+ lineSpan: Pr
71
+ }, Ui = ({ commands: e, button: t }) => /* @__PURE__ */ h("div", {
72
+ className: ce.container,
73
+ children: [/* @__PURE__ */ n("div", {
74
+ className: ce.commandContain,
75
+ children: /* @__PURE__ */ n(V, { children: e.map((r, o) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ n("span", {
76
+ className: ce.lineStartSpan,
77
+ children: "> "
78
+ }), /* @__PURE__ */ n("span", {
79
+ className: ce.lineSpan,
80
+ children: r
81
+ })] }, o)) })
82
+ }), t && /* @__PURE__ */ n("div", {
83
+ className: ce.buttonContainer,
84
+ children: t
85
+ })]
86
+ }), Or = "_list_1i4lv_1", zr = "_nested_1i4lv_8", Ye = {
87
+ list: Or,
88
+ nested: zr
89
+ }, Rr = ({ depth: e, className: t, children: r }) => /* @__PURE__ */ n("ul", {
90
+ className: p(Ye.list, e > 0 && Ye.nested, t),
91
+ children: r
92
+ }), ft = Re(void 0), ie = () => {
93
+ const e = _e(ft);
94
+ if (!m(e)) throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");
95
+ return e;
96
+ }, qr = "_button_1e3ij_1", Fr = "_red_1e3ij_17", $r = "_chevron_1e3ij_22", Se = {
97
+ button: qr,
98
+ red: Fr,
99
+ chevron: $r
100
+ }, Wr = ({ isOpen: e, onClick: t, variant: r }) => {
101
+ const o = R(), { arrowButtonCollapsedLabel: a, arrowButtonExpandedLabel: i } = ie(), s = r === "blue" ? K.color.blue : r === "red" ? K.font.color.danger : K.font.color.secondary;
102
+ return /* @__PURE__ */ h("button", {
103
+ className: p(Se.button, r === "red" && Se.red),
104
+ onClick: t,
105
+ children: [/* @__PURE__ */ n(Yt, { children: e ? i : a }), /* @__PURE__ */ n("div", {
106
+ className: Se.chevron,
107
+ "data-open": e || void 0,
108
+ children: /* @__PURE__ */ n(Kt, {
109
+ size: o.icon.size.md,
110
+ color: s
111
+ })
112
+ })]
113
+ });
114
+ }, jr = ({ label: e, value: t, depth: r, keyPath: o, highlighting: a }) => {
115
+ const { emptyArrayLabel: i } = ie();
116
+ return /* @__PURE__ */ n($e, {
117
+ elements: [...t.entries()].map(([s, c]) => ({
118
+ id: s,
119
+ label: String(s),
120
+ value: c
121
+ })),
122
+ renderElementsCount: (s) => `[${s}]`,
123
+ label: e,
124
+ Icon: ct,
125
+ depth: r,
126
+ emptyElementsText: i,
127
+ keyPath: o,
128
+ highlighting: a
129
+ });
130
+ }, Gr = ({ label: e, value: t, depth: r, keyPath: o, highlighting: a }) => {
131
+ const { emptyObjectLabel: i } = ie();
132
+ return /* @__PURE__ */ n($e, {
133
+ elements: Object.entries(t).map(([s, c]) => ({
134
+ id: s,
135
+ label: s,
136
+ value: c
137
+ })),
138
+ renderElementsCount: (s) => `{${s}}`,
139
+ label: e,
140
+ Icon: Ht,
141
+ depth: r,
142
+ emptyElementsText: i,
143
+ keyPath: o,
144
+ highlighting: a
145
+ });
146
+ }, Hr = "_labelContainer_1pq94_1", Jr = "_blue_1pq94_23", Kr = "_red_1pq94_29", xe = {
147
+ labelContainer: Hr,
148
+ blue: Jr,
149
+ red: Kr
150
+ }, ht = ({ label: e, Icon: t, highlighting: r }) => {
151
+ const o = R();
152
+ return /* @__PURE__ */ h("span", {
153
+ className: p(xe.labelContainer, r === "blue" && xe.blue, r === "red" && xe.red),
154
+ children: [/* @__PURE__ */ n(t, {
155
+ size: o.icon.size.md,
156
+ color: r === "blue" ? o.color.blue : r === "red" ? o.font.color.danger : o.font.color.tertiary
157
+ }), /* @__PURE__ */ n("span", { children: e })]
158
+ });
159
+ }, Vr = "_text_1ot24_1", Ur = "_blue_1ot24_10", Yr = "_red_1ot24_14", Xr = "_button_1ot24_18", fe = {
160
+ text: Vr,
161
+ blue: Ur,
162
+ red: Yr,
163
+ button: Xr
164
+ }, Qr = ({ valueAsString: e, highlighting: t }) => {
165
+ const { onNodeValueClick: r } = ie(), o = m(r), a = () => {
166
+ r?.(e);
167
+ }, i = p(fe.text, t === "blue" && fe.blue, t === "red" && fe.red);
168
+ return o ? /* @__PURE__ */ n("button", {
169
+ className: p(i, fe.button),
170
+ type: "button",
171
+ onClick: a,
172
+ children: e
173
+ }) : /* @__PURE__ */ n("span", {
174
+ className: i,
175
+ children: e
176
+ });
177
+ }, Zr = "_listItem_1i7if_1", en = { listItem: Zr }, de = (e) => /* @__PURE__ */ h("li", {
178
+ className: en.listItem,
179
+ children: [e.label && /* @__PURE__ */ n(ht, {
180
+ label: e.label,
181
+ Icon: e.Icon,
182
+ highlighting: e.highlighting
183
+ }), /* @__PURE__ */ n(Qr, {
184
+ valueAsString: e.valueAsString,
185
+ highlighting: e.highlighting
186
+ })]
187
+ }), tn = (e) => pr(e), gt = ({ label: e, value: t, depth: r, keyPath: o }) => {
188
+ const { getNodeHighlighting: a, emptyStringLabel: i } = ie(), s = a?.(o);
189
+ return m(t) ? oe(t) ? /* @__PURE__ */ n(de, {
190
+ label: e,
191
+ valueAsString: $(t) ? t : i,
192
+ Icon: Jt,
193
+ highlighting: s
194
+ }) : br(t) ? /* @__PURE__ */ n(de, {
195
+ label: e,
196
+ valueAsString: String(t),
197
+ Icon: Ft,
198
+ highlighting: s
199
+ }) : fr(t) ? /* @__PURE__ */ n(de, {
200
+ label: e,
201
+ valueAsString: String(t),
202
+ Icon: zt,
203
+ highlighting: s
204
+ }) : tn(t) ? /* @__PURE__ */ n(jr, {
205
+ label: e,
206
+ value: t,
207
+ depth: r,
208
+ keyPath: o,
209
+ highlighting: s
210
+ }) : /* @__PURE__ */ n(Gr, {
211
+ label: e,
212
+ value: t,
213
+ depth: r,
214
+ keyPath: o,
215
+ highlighting: s
216
+ }) : /* @__PURE__ */ n(de, {
217
+ label: e,
218
+ valueAsString: "null",
219
+ Icon: $t,
220
+ highlighting: s
221
+ });
222
+ }, rn = "_container_d0cqx_1", nn = "_labelContainer_d0cqx_6", on = "_elementsCount_d0cqx_12", an = "_elementsCountRed_d0cqx_16", sn = "_panel_d0cqx_20", cn = "_list_d0cqx_30", ln = "_nested_d0cqx_37", U = {
223
+ container: rn,
224
+ labelContainer: nn,
225
+ elementsCount: on,
226
+ elementsCountRed: an,
227
+ panel: sn,
228
+ list: cn,
229
+ nested: ln
230
+ }, $e = ({ label: e, Icon: t, elements: r, renderElementsCount: o, emptyElementsText: a, depth: i, keyPath: s, highlighting: c }) => {
231
+ const { shouldExpandNodeInitially: d } = ie(), l = !m(e), [u, _] = E(d({
232
+ keyPath: s,
233
+ depth: i
234
+ })), v = /* @__PURE__ */ n("ul", {
235
+ className: p(U.list, i > 0 && U.nested),
236
+ children: r.length === 0 ? /* @__PURE__ */ n(de, {
237
+ valueAsString: a,
238
+ highlighting: void 0
239
+ }) : r.map(({ id: b, label: f, value: S }) => {
240
+ const y = $(s) ? `${s}.${b}` : String(b);
241
+ return /* @__PURE__ */ n(gt, {
242
+ label: f,
243
+ value: S,
244
+ depth: i + 1,
245
+ keyPath: y
246
+ }, b);
247
+ })
248
+ }), g = () => {
249
+ _(!u);
250
+ };
251
+ return l ? /* @__PURE__ */ n("li", {
252
+ className: U.container,
253
+ children: v
254
+ }) : /* @__PURE__ */ h(Ue.Root, {
255
+ className: U.container,
256
+ open: u,
257
+ render: /* @__PURE__ */ n("li", {}),
258
+ children: [/* @__PURE__ */ h("div", {
259
+ className: U.labelContainer,
260
+ children: [
261
+ /* @__PURE__ */ n(Wr, {
262
+ isOpen: u,
263
+ onClick: g,
264
+ variant: c === "partial-blue" ? "blue" : c === "red" ? c : void 0
265
+ }),
266
+ /* @__PURE__ */ n(ht, {
267
+ label: e,
268
+ Icon: t,
269
+ highlighting: c === "red" ? c : void 0
270
+ }),
271
+ o && /* @__PURE__ */ n("span", {
272
+ className: p(U.elementsCount, c === "red" && U.elementsCountRed),
273
+ children: o(r.length)
274
+ })
275
+ ]
276
+ }), /* @__PURE__ */ n(Ue.Panel, {
277
+ className: U.panel,
278
+ children: v
279
+ })]
280
+ });
281
+ }, dn = ({ value: e, children: t }) => /* @__PURE__ */ n(ft.Provider, {
282
+ value: e,
283
+ children: t
284
+ }), un = ({ depth: e }) => e <= 1, Yi = ({ value: e, entries: t, shouldExpandNodeInitially: r = un, ...o }) => /* @__PURE__ */ n(dn, {
285
+ value: {
286
+ ...o,
287
+ shouldExpandNodeInitially: r
288
+ },
289
+ children: /* @__PURE__ */ n(Rr, {
290
+ depth: 0,
291
+ children: m(t) ? /* @__PURE__ */ n($e, {
292
+ elements: t,
293
+ Icon: ct,
294
+ depth: 0,
295
+ keyPath: "",
296
+ emptyElementsText: o.emptyObjectLabel
297
+ }) : /* @__PURE__ */ n(gt, {
298
+ value: e ?? null,
299
+ depth: 0,
300
+ keyPath: ""
301
+ })
302
+ })
303
+ }), mn = "_notificationCounter_1lalu_1", _n = "_primary_1lalu_13", vn = "_secondary_1lalu_18", Xe = {
304
+ notificationCounter: mn,
305
+ primary: _n,
306
+ secondary: vn
307
+ }, Xi = ({ count: e, variant: t = "primary", className: r }) => /* @__PURE__ */ n("div", {
308
+ className: p(Xe.notificationCounter, Xe[t], r),
309
+ children: e
310
+ }), pn = "_root_j2xk4_1", fn = { root: pn }, hn = ({ $backgroundColor: e, $borderColor: t, $dimension: r, className: o, style: a, ...i }) => /* @__PURE__ */ n("div", {
311
+ ...i,
312
+ className: p(fn.root, o),
313
+ style: {
314
+ "--tinted-icon-tile-background-color": e,
315
+ "--tinted-icon-tile-border": t ? `1px solid ${t}` : void 0,
316
+ "--tinted-icon-tile-dimension": r,
317
+ ...a
318
+ }
319
+ }), Ae = {
320
+ background: 4,
321
+ border: 6,
322
+ icon: 10
323
+ }, Le = (e, t) => K.color[`${e}${t}`] ?? K.tag.text[e], gn = (e) => {
324
+ const t = Qt(e);
325
+ return {
326
+ backgroundColor: Le(t, Ae.background),
327
+ iconColor: Le(t, Ae.icon),
328
+ borderColor: Le(t, Ae.border)
329
+ };
330
+ }, bt = ({ Icon: e, color: t = Vt, size: r, stroke: o }) => {
331
+ const a = R(), i = gn(t), s = r ?? a.icon.size.md, c = o ?? a.icon.stroke.md, d = m(r) ? `${r}px` : void 0;
332
+ return /* @__PURE__ */ n(hn, {
333
+ $backgroundColor: i.backgroundColor,
334
+ $dimension: d,
335
+ children: /* @__PURE__ */ n(e, {
336
+ size: s,
337
+ stroke: c,
338
+ color: i.iconColor
339
+ })
340
+ });
341
+ }, bn = "_container_101hq_1", In = "_containerFullWidth_101hq_14", Cn = "_containerInfo_101hq_18", wn = "_containerWarning_101hq_23", yn = "_containerSuccess_101hq_28", Tn = "_containerError_101hq_33", Nn = "_containerNeutral_101hq_38", kn = "_header_101hq_43", Sn = "_iconContainer_101hq_52", xn = "_iconContainerInfo_101hq_61", An = "_iconContainerWarning_101hq_65", Ln = "_iconContainerSuccess_101hq_69", Dn = "_iconContainerError_101hq_73", En = "_iconContainerNeutral_101hq_77", Bn = "_title_101hq_81", Mn = "_descriptionWrapper_101hq_93", Pn = "_descriptionWrapperWithAction_101hq_101", On = "_description_101hq_93", zn = "_footer_101hq_114", Rn = "_closeButton_101hq_121", A = {
342
+ container: bn,
343
+ containerFullWidth: In,
344
+ containerInfo: Cn,
345
+ containerWarning: wn,
346
+ containerSuccess: yn,
347
+ containerError: Tn,
348
+ containerNeutral: Nn,
349
+ header: kn,
350
+ iconContainer: Sn,
351
+ iconContainerInfo: xn,
352
+ iconContainerWarning: An,
353
+ iconContainerSuccess: Ln,
354
+ iconContainerError: Dn,
355
+ iconContainerNeutral: En,
356
+ title: Bn,
357
+ descriptionWrapper: Mn,
358
+ descriptionWrapperWithAction: Pn,
359
+ description: On,
360
+ footer: zn,
361
+ closeButton: Rn
362
+ }, qn = {
363
+ info: A.containerInfo,
364
+ warning: A.containerWarning,
365
+ error: A.containerError,
366
+ neutral: A.containerNeutral,
367
+ success: A.containerSuccess
368
+ }, Fn = {
369
+ info: A.iconContainerInfo,
370
+ warning: A.iconContainerWarning,
371
+ error: A.iconContainerError,
372
+ neutral: A.iconContainerNeutral,
373
+ success: A.iconContainerSuccess
374
+ }, Qi = ({ variant: e, title: t, description: r, fullWidth: o = !1, Icon: a = jt, action: i, isClosable: s = !1, closeLabel: c = "Close", onClose: d }) => {
375
+ const [l, u] = E(!0), _ = () => {
376
+ s && (u(!1), d?.());
377
+ };
378
+ return l ? /* @__PURE__ */ h("div", {
379
+ className: p(A.container, qn[e], o && A.containerFullWidth),
380
+ children: [
381
+ /* @__PURE__ */ h("div", {
382
+ className: A.header,
383
+ children: [
384
+ /* @__PURE__ */ n("div", {
385
+ className: p(A.iconContainer, Fn[e]),
386
+ children: /* @__PURE__ */ n(a, { size: 16 })
387
+ }),
388
+ /* @__PURE__ */ n("div", {
389
+ className: A.title,
390
+ children: t
391
+ }),
392
+ s && /* @__PURE__ */ n(G, {
393
+ startIcon: /* @__PURE__ */ n(ze, {}),
394
+ className: A.closeButton,
395
+ variant: "ghost",
396
+ size: "sm",
397
+ "aria-label": c,
398
+ onClick: _
399
+ })
400
+ ]
401
+ }),
402
+ $(r) && /* @__PURE__ */ n("div", {
403
+ className: p(A.descriptionWrapper, m(i) && A.descriptionWrapperWithAction),
404
+ children: /* @__PURE__ */ n("div", {
405
+ className: A.description,
406
+ children: r
407
+ })
408
+ }),
409
+ m(i) && /* @__PURE__ */ n("div", {
410
+ className: A.footer,
411
+ children: /* @__PURE__ */ n(G, {
412
+ type: "button",
413
+ onClick: i.onClick,
414
+ size: "sm",
415
+ variant: "ghost",
416
+ style: { fontWeight: "var(--t-font-weight-regular)" },
417
+ children: i.label
418
+ })
419
+ })
420
+ ]
421
+ }) : null;
422
+ }, $n = "_banner_1w4g2_1", Wn = "_embedded_1w4g2_6", jn = "_bannerContent_1w4g2_10", Gn = "_bannerText_1w4g2_21", Hn = "_compact_1w4g2_26", Jn = "_compactBlue_1w4g2_43", Kn = "_compactDanger_1w4g2_48", ee = {
423
+ banner: $n,
424
+ embedded: Wn,
425
+ bannerContent: jn,
426
+ bannerText: Gn,
427
+ compact: Hn,
428
+ compactBlue: Jn,
429
+ compactDanger: Kn
430
+ }, Vn = ({ color: e, title: t, Icon: r, hidden: o, onClick: a, href: i, render: s, target: c, rel: d, download: l, disabled: u, "aria-label": _ }) => o ? null : /* @__PURE__ */ n(G, {
431
+ onClick: a,
432
+ href: i,
433
+ render: s,
434
+ target: c,
435
+ rel: d,
436
+ download: l,
437
+ disabled: u,
438
+ "aria-label": _,
439
+ size: "sm",
440
+ startIcon: m(r) ? /* @__PURE__ */ n(r, {}) : void 0,
441
+ variant: "outline",
442
+ color: e === "danger" ? "danger" : "accent",
443
+ children: t
444
+ }), Zi = ({ color: e = "blue", message: t, variant: r = "standard", embedded: o = !1, button: a, LeftIcon: i = lt, className: s }) => {
445
+ const c = R(), d = r === "compact";
446
+ return /* @__PURE__ */ h(nr, {
447
+ className: p(ee.banner, d && ee.compact, d && (e === "danger" ? ee.compactDanger : ee.compactBlue), o && ee.embedded, s),
448
+ color: e,
449
+ variant: "secondary",
450
+ children: [/* @__PURE__ */ h("div", {
451
+ className: ee.bannerContent,
452
+ children: [/* @__PURE__ */ n(i, { size: c.icon.size.md }), /* @__PURE__ */ n("div", {
453
+ className: ee.bannerText,
454
+ children: d ? t : /* @__PURE__ */ n(ue, {
455
+ isFocusable: !0,
456
+ text: /* @__PURE__ */ n(V, { children: t }),
457
+ tooltipContent: t
458
+ })
459
+ })]
460
+ }), m(a) && /* @__PURE__ */ n(Vn, {
461
+ ...a,
462
+ color: e
463
+ })]
464
+ });
465
+ }, ye = (e) => e.status === "visible", It = ({ store: e, toastsToClose: t, nextToasts: r = e.state.toasts }) => {
466
+ const o = r.map((i) => t.includes(i) ? {
467
+ ...i,
468
+ status: "closing"
469
+ } : i), a = e.state.mountedToasterCount > 0;
470
+ e.set("toasts", a ? o : o.filter(ye));
471
+ for (const i of t) i.notification.onClose?.();
472
+ }, Ct = Re(void 0), pe = () => {
473
+ const e = _e(Ct);
474
+ if (!m(e)) throw new Error("Toast components must be used within a ToastProvider.");
475
+ return e;
476
+ }, wt = () => {
477
+ const e = pe();
478
+ return { closeToast: (r) => {
479
+ const o = e.state.toasts.filter((a) => ye(a) && (!m(r) || a.notification.id === r));
480
+ gr(o) && It({
481
+ store: e,
482
+ toastsToClose: o
483
+ });
484
+ } };
485
+ }, Qe = 0, Un = () => {
486
+ const e = pe();
487
+ return { enqueueToast: wr(() => {
488
+ function t(r) {
489
+ if (!m(r)) return;
490
+ const { dedupeKey: o, ...a } = r, { toasts: i, limit: s } = e.state, c = i.filter(ye), d = m(o) ? c.find((_) => _.dedupeKey === o) : void 0;
491
+ if (m(d)) return d.notification.id;
492
+ Qe += 1;
493
+ const l = `toast-${Qe}`, u = Math.max(0, c.length - s + 1);
494
+ return It({
495
+ store: e,
496
+ toastsToClose: c.slice(0, u),
497
+ nextToasts: [...i, {
498
+ notification: {
499
+ ...a,
500
+ id: l
501
+ },
502
+ dedupeKey: o,
503
+ status: "visible"
504
+ }]
505
+ }), l;
506
+ }
507
+ return t;
508
+ }, [e]) };
509
+ }, es = () => {
510
+ const { closeToast: e } = wt(), { enqueueToast: t } = Un();
511
+ return {
512
+ enqueueToast: t,
513
+ closeToast: e
514
+ };
515
+ }, Yn = "_root_181ka_1", Xn = "_progress_181ka_19", Qn = "_header_181ka_30", Zn = "_message_181ka_40", eo = "_icon_181ka_45", to = "_actions_181ka_50", ro = "_description_181ka_56", no = "_footer_181ka_65", oo = "_footerAction_181ka_69", ao = "_closeButton_181ka_76", j = {
516
+ root: Yn,
517
+ progress: Xn,
518
+ header: Qn,
519
+ message: Zn,
520
+ icon: eo,
521
+ actions: to,
522
+ description: ro,
523
+ footer: no,
524
+ footerAction: oo,
525
+ closeButton: ao
526
+ }, io = "_countdown_1njr8_1", so = "_toastCountdown_1njr8_1", co = {
527
+ countdown: io,
528
+ toastCountdown: so
529
+ }, lo = ({ progress: e, duration: t, isPaused: r, barColor: o, onClose: a }) => m(e) ? /* @__PURE__ */ n(or, {
530
+ value: e,
531
+ barColor: o
532
+ }) : /* @__PURE__ */ n("div", {
533
+ className: co.countdown,
534
+ "data-paused": r || void 0,
535
+ onAnimationEnd: a,
536
+ style: {
537
+ "--toast-countdown-color": o,
538
+ "--toast-countdown-duration": `${t}ms`
539
+ }
540
+ }), uo = {
541
+ default: ke,
542
+ error: ke,
543
+ success: Gt,
544
+ info: lt,
545
+ warning: ke
546
+ }, mo = ({ children: e, description: t, icon: r, iconLabel: o, action: a, progress: i, duration: s = 6e3, onCancel: c, onClose: d, cancelLabel: l = "Cancel", closeLabel: u = "Close", variant: _ = "default", role: v = "status", className: g, onMouseEnter: b, onMouseLeave: f, onFocus: S, onBlur: y, render: I, ref: T, ...N }) => {
547
+ const C = R(), [B, M] = E(!1), [k, L] = E(!1), O = uo[_];
548
+ return ve({
549
+ render: I,
550
+ ref: T,
551
+ props: {
552
+ role: v,
553
+ "aria-live": v === "alert" ? "assertive" : "polite",
554
+ ...N,
555
+ className: p(j.root, g),
556
+ onMouseEnter: (w) => {
557
+ M(!0), b?.(w);
558
+ },
559
+ onMouseLeave: (w) => {
560
+ M(!1), f?.(w);
561
+ },
562
+ onFocus: (w) => {
563
+ L(!0), S?.(w);
564
+ },
565
+ onBlur: (w) => {
566
+ w.currentTarget.contains(w.relatedTarget) || L(!1), y?.(w);
567
+ },
568
+ children: /* @__PURE__ */ h(V, { children: [
569
+ /* @__PURE__ */ n("div", {
570
+ className: j.progress,
571
+ "aria-hidden": !0,
572
+ children: /* @__PURE__ */ n(lo, {
573
+ barColor: C.snackBar[_].backgroundColor,
574
+ progress: i,
575
+ duration: s,
576
+ isPaused: B || k,
577
+ onClose: d
578
+ })
579
+ }),
580
+ /* @__PURE__ */ h("div", {
581
+ className: j.header,
582
+ children: [
583
+ /* @__PURE__ */ n("div", {
584
+ className: j.icon,
585
+ children: r ?? /* @__PURE__ */ n(O, {
586
+ "aria-label": o,
587
+ "aria-hidden": !m(o),
588
+ color: C.snackBar[_].color,
589
+ size: C.icon.size.md
590
+ })
591
+ }),
592
+ /* @__PURE__ */ n("div", {
593
+ className: j.message,
594
+ children: e
595
+ }),
596
+ /* @__PURE__ */ h("div", {
597
+ className: j.actions,
598
+ children: [m(c) && /* @__PURE__ */ n(G, {
599
+ onClick: c,
600
+ size: "sm",
601
+ variant: "ghost",
602
+ style: { fontWeight: "var(--t-font-weight-regular)" },
603
+ children: l
604
+ }), m(d) && /* @__PURE__ */ n(G, {
605
+ title: u,
606
+ "aria-label": u,
607
+ startIcon: /* @__PURE__ */ n(ze, {}),
608
+ className: j.closeButton,
609
+ variant: "ghost",
610
+ size: "sm",
611
+ onClick: d
612
+ })]
613
+ })
614
+ ]
615
+ }),
616
+ m(t) && /* @__PURE__ */ n("div", {
617
+ className: j.description,
618
+ children: t
619
+ }),
620
+ m(a) && /* @__PURE__ */ h("div", {
621
+ className: j.footer,
622
+ children: [/* @__PURE__ */ n(ar, { noMargin: !0 }), /* @__PURE__ */ n("div", {
623
+ className: j.footerAction,
624
+ children: a
625
+ })]
626
+ })
627
+ ] })
628
+ }
629
+ });
630
+ }, _o = (e = 3) => {
631
+ if (!Ir(e)) throw new Error("Toast limit must be a positive integer.");
632
+ return new yr({
633
+ toasts: [],
634
+ limit: e,
635
+ mountedToasterCount: 0
636
+ });
637
+ }, ts = ({ children: e, limit: t = 3 }) => {
638
+ const [r] = E(() => _o(t));
639
+ return /* @__PURE__ */ n(Ct.Provider, {
640
+ value: r,
641
+ children: e
642
+ });
643
+ }, vo = "_root_1q2cc_1", po = "_item_1q2cc_20", fo = "_itemContent_1q2cc_47", Pe = {
644
+ root: vo,
645
+ item: po,
646
+ itemContent: fo
647
+ }, ho = () => Tr(pe(), (e) => e.toasts), Ze = ({ store: e, toast: t }) => {
648
+ const { toasts: r } = e.state;
649
+ t.status === "closing" && r.includes(t) && e.set("toasts", r.filter((o) => o !== t));
650
+ }, go = ({ elementRef: e, toastEntry: t }) => {
651
+ const r = pe();
652
+ return Ce(() => {
653
+ if (t.status === "visible") return;
654
+ const o = e.current?.getAnimations?.() ?? [];
655
+ if (o.length === 0) {
656
+ Ze({
657
+ store: r,
658
+ toast: t
659
+ });
660
+ return;
661
+ }
662
+ let a = !1;
663
+ return Promise.allSettled(o.map((i) => i.finished)).then(() => {
664
+ a || Ze({
665
+ store: r,
666
+ toast: t
667
+ });
668
+ }), () => {
669
+ a = !0;
670
+ };
671
+ }, [
672
+ e,
673
+ t,
674
+ r
675
+ ]), /* @__PURE__ */ n(V, {});
676
+ }, bo = ({ toastEntry: e, getToastProps: t, onClose: r }) => {
677
+ const { notification: o, status: a } = e, { id: i, ...s } = o, c = Fe(null);
678
+ return /* @__PURE__ */ h(V, { children: [/* @__PURE__ */ n("div", {
679
+ ref: c,
680
+ className: Pe.item,
681
+ "data-exiting": a === "closing" || void 0,
682
+ inert: a === "closing",
683
+ children: /* @__PURE__ */ n("div", {
684
+ className: Pe.itemContent,
685
+ children: /* @__PURE__ */ n(mo, {
686
+ ...s,
687
+ ...t?.(o),
688
+ id: i,
689
+ onClose: () => r(i)
690
+ })
691
+ })
692
+ }), /* @__PURE__ */ n(go, {
693
+ elementRef: c,
694
+ toastEntry: e
695
+ })] });
696
+ }, Io = ({ getToastProps: e }) => {
697
+ const t = ho(), { closeToast: r } = wt();
698
+ return t.map((o) => /* @__PURE__ */ n(bo, {
699
+ toastEntry: o,
700
+ getToastProps: e,
701
+ onClose: r
702
+ }, o.notification.id));
703
+ }, Co = () => {
704
+ const e = pe();
705
+ return Ce(() => (e.set("mountedToasterCount", e.state.mountedToasterCount + 1), () => {
706
+ e.set("mountedToasterCount", e.state.mountedToasterCount - 1), !(e.state.mountedToasterCount > 0) && e.set("toasts", e.state.toasts.filter(ye));
707
+ }), [e]), null;
708
+ }, rs = ({ container: e, getToastProps: t, className: r, render: o, ref: a, ...i }) => {
709
+ const s = Ut(), c = rr(), d = e === void 0 ? s ?? (typeof document > "u" ? null : document.body) : e, l = ve({
710
+ render: o,
711
+ ref: a,
712
+ props: {
713
+ role: "region",
714
+ dir: c,
715
+ "aria-label": "Notifications",
716
+ ...i,
717
+ className: p(Pe.root, r),
718
+ children: /* @__PURE__ */ h(V, { children: [/* @__PURE__ */ n(Co, {}), /* @__PURE__ */ n(Io, { getToastProps: t })] })
719
+ }
720
+ });
721
+ return m(d) ? Nr(l, d) : null;
722
+ }, wo = "_button_1qwl0_1", yo = "_tooltipAnchor_1qwl0_29", To = "_icon_1qwl0_33", De = {
723
+ button: wo,
724
+ tooltipAnchor: yo,
725
+ icon: To
726
+ }, No = ({ children: e, size: t = "md", shape: r = "square", className: o, tooltip: a, tooltipPlace: i = "bottom", tooltipDelay: s = 1e3, tooltipOffset: c = 5, disabled: d, loading: l, ...u }) => {
727
+ const _ = _e(er)?.size ?? t, v = $(a), g = d || l, b = /* @__PURE__ */ n(G, {
728
+ ...u,
729
+ size: t === "xs" ? "sm" : t,
730
+ "data-icon-size": _,
731
+ "data-shape": r,
732
+ disabled: d,
733
+ loading: l,
734
+ startIcon: /* @__PURE__ */ n("span", {
735
+ className: De.icon,
736
+ children: e
737
+ }),
738
+ className: Y(De.button, o)
739
+ });
740
+ return v ? /* @__PURE__ */ n(mt, {
741
+ content: a,
742
+ delay: s,
743
+ side: i,
744
+ sideOffset: c,
745
+ children: g ? /* @__PURE__ */ n("span", {
746
+ className: De.tooltipAnchor,
747
+ children: b
748
+ }) : b
749
+ }) : b;
750
+ }, ko = "_button_k3e4y_1", So = { button: ko }, ns = ({ className: e, emphasis: t = "standard", size: r = "sm", variant: o = "ghost", ...a }) => /* @__PURE__ */ n(G, {
751
+ ...a,
752
+ size: r,
753
+ variant: o,
754
+ "data-emphasis": t,
755
+ className: Y(So.button, e)
756
+ }), xo = "_button_prhtf_1", Ao = { button: xo }, Lo = ({ className: e, emphasis: t = "standard", size: r = "sm", variant: o = "ghost", ...a }) => /* @__PURE__ */ n(No, {
757
+ ...a,
758
+ size: r,
759
+ variant: o,
760
+ "data-emphasis": t,
761
+ className: Y(Ao.button, e)
762
+ }), Do = "_button_1fwx7_1", Eo = { button: Do }, os = ({ className: e, elevated: t = !0, variant: r = "solid", ...o }) => /* @__PURE__ */ n(G, {
763
+ ...o,
764
+ elevated: t,
765
+ variant: r,
766
+ className: Y(Eo.button, e)
767
+ }), Bo = "_wrapper_fz4xu_1", Mo = "_filterButton_fz4xu_8", Po = "_inputGroup_fz4xu_17", Oo = "_searchIcon_fz4xu_23", he = {
768
+ wrapper: Bo,
769
+ filterButton: Mo,
770
+ inputGroup: Po,
771
+ searchIcon: Oo
772
+ }, as = ({ placeholder: e, filterDropdown: t, size: r = "md", id: o, filterButtonAriaLabel: a = "Filter", "aria-label": i, "aria-labelledby": s, ...c }) => {
773
+ const d = R(), l = ae(), u = o ?? l, _ = /* @__PURE__ */ n(G, {
774
+ variant: "outline",
775
+ size: r,
776
+ "aria-label": a,
777
+ startIcon: /* @__PURE__ */ n(Rt, { size: d.icon.size.md }),
778
+ className: he.filterButton
779
+ });
780
+ return /* @__PURE__ */ h("div", {
781
+ className: he.wrapper,
782
+ children: [/* @__PURE__ */ n(Zt, {
783
+ className: he.inputGroup,
784
+ size: r,
785
+ startElement: /* @__PURE__ */ n(Ot, {
786
+ className: he.searchIcon,
787
+ size: d.icon.size.md,
788
+ "aria-hidden": !0
789
+ }),
790
+ children: /* @__PURE__ */ n(dt, {
791
+ ...c,
792
+ id: u,
793
+ placeholder: e,
794
+ "aria-label": $(s) ? void 0 : i ?? e,
795
+ "aria-labelledby": s
796
+ })
797
+ }), t?.(_)]
798
+ });
799
+ }, is = ({ children: e, startIcon: t, description: r, focused: o = !1, checked: a, defaultChecked: i, onCheckedChange: s, disabled: c = !1, readOnly: d = !1, size: l = "sm", name: u, value: _, required: v, className: g, style: b, ref: f, ...S }) => {
800
+ const y = ae(), I = `${y}-label`, T = `${y}-description`, N = ir(r);
801
+ return /* @__PURE__ */ n(be, {
802
+ className: g,
803
+ style: b,
804
+ startIcon: t,
805
+ focused: o,
806
+ disabled: c,
807
+ description: N && /* @__PURE__ */ n("span", {
808
+ id: T,
809
+ children: r
810
+ }),
811
+ render: (C) => /* @__PURE__ */ n("label", {
812
+ ...S,
813
+ ...C,
814
+ htmlFor: y,
815
+ ref: f
816
+ }),
817
+ endIcon: /* @__PURE__ */ n(tr, {
818
+ id: y,
819
+ "aria-labelledby": I,
820
+ "aria-describedby": N ? T : void 0,
821
+ checked: a,
822
+ defaultChecked: i,
823
+ onCheckedChange: s,
824
+ disabled: c,
825
+ readOnly: d,
826
+ size: l,
827
+ name: u,
828
+ value: _,
829
+ required: v
830
+ }),
831
+ children: /* @__PURE__ */ n("span", {
832
+ id: I,
833
+ children: e
834
+ })
835
+ });
836
+ }, zo = "_container_gwbng_1", Ro = "_layer_gwbng_8", qo = "_visible_gwbng_22", Fo = "_hidden_gwbng_27", te = {
837
+ container: zo,
838
+ layer: Ro,
839
+ visible: qo,
840
+ hidden: Fo
841
+ }, ss = ({ isActive: e, ActiveIcon: t, InactiveIcon: r, size: o }) => {
842
+ const a = R(), i = o ?? a.icon.size.sm;
843
+ return /* @__PURE__ */ h("div", {
844
+ className: te.container,
845
+ style: { "--animated-icon-crossfade-size": `${i}px` },
846
+ children: [/* @__PURE__ */ n("div", {
847
+ className: p(te.layer, e ? te.hidden : te.visible),
848
+ children: /* @__PURE__ */ n(r, { size: i })
849
+ }), /* @__PURE__ */ n("div", {
850
+ className: p(te.layer, e ? te.visible : te.hidden),
851
+ children: /* @__PURE__ */ n(t, { size: i })
852
+ })]
853
+ });
854
+ }, $o = "_header_1r38k_1", Wo = "_titleRow_1r38k_8", jo = "_title_1r38k_8", Go = "_adornment_1r38k_21", Ho = "_description_1r38k_27", le = {
855
+ header: $o,
856
+ titleRow: Wo,
857
+ title: jo,
858
+ adornment: Go,
859
+ description: Ho
860
+ }, Jo = ({ title: e, description: t, adornment: r, level: o = 2, size: a = "md", color: i = "primary", descriptionLineClamp: s = 5, render: c, ref: d, className: l, ...u }) => {
861
+ const _ = ae(), v = oe(t) ? $(t) : m(t) && t !== !1;
862
+ return ve({
863
+ render: c,
864
+ ref: d,
865
+ props: {
866
+ ...u,
867
+ className: p(le.header, l),
868
+ children: /* @__PURE__ */ h(V, { children: [/* @__PURE__ */ h("div", {
869
+ className: le.titleRow,
870
+ children: [/* @__PURE__ */ n(cr, {
871
+ level: o,
872
+ size: a,
873
+ color: i,
874
+ className: le.title,
875
+ "aria-describedby": v ? _ : void 0,
876
+ children: e
877
+ }), m(r) && /* @__PURE__ */ n("div", {
878
+ className: le.adornment,
879
+ children: r
880
+ })]
881
+ }), v && /* @__PURE__ */ n("div", {
882
+ id: _,
883
+ className: le.description,
884
+ children: oe(t) ? /* @__PURE__ */ n(ue, {
885
+ text: t,
886
+ displayedMaxRows: s,
887
+ isTooltipMultiline: !0,
888
+ isFocusable: !0
889
+ }) : t
890
+ })] })
891
+ }
892
+ });
893
+ }, Ko = "_root_ztxxm_1", Vo = "_fullWidth_ztxxm_20", et = {
894
+ root: Ko,
895
+ fullWidth: Vo
896
+ }, Uo = ({ align: e = "left", color: t = "primary", fullWidth: r = !0, className: o, render: a, ref: i, ...s }) => ve({
897
+ render: a,
898
+ ref: i,
899
+ props: {
900
+ ...s,
901
+ "data-align": e,
902
+ "data-color": t,
903
+ className: p(et.root, r && et.fullWidth, o)
904
+ }
905
+ }), cs = {
906
+ Root: Uo,
907
+ Header: Jo
908
+ }, We = (e) => e.getAttribute("aria-label") ?? e.textContent ?? "", Te = (e) => Array.from(e.querySelectorAll("[data-dropdown-item]")).filter((t) => t.getAttribute("aria-disabled") !== "true" && !t.hasAttribute("disabled") && t.closest("[data-dropdown-content]") === e), ge = Re(void 0), q = () => {
909
+ const e = _e(ge);
910
+ if (!m(e)) throw new Error("Dropdown components must be inside Dropdown.Root");
911
+ return e;
912
+ }, je = ({ id: e, isSubmenuTrigger: t = !1 }) => {
913
+ const r = q(), o = t ? r.parentType : r.type, a = t ? r.parentActiveItemId : r.activeItemId, i = t ? r.setParentActiveItemId : r.setActiveItemId;
914
+ return {
915
+ tabIndex: o === "menu" && a !== e ? -1 : 0,
916
+ activate: () => i?.(e)
917
+ };
918
+ }, yt = ({ color: e, startIcon: t, endIcon: r, description: o, descriptionPlacement: a, hotkeys: i, hotkeysJoinLabel: s, hasSubmenu: c, children: d, render: l, disabled: u = !1, nativeButton: _ = !m(l), closeOnClick: v = !0, onClick: g, onFocus: b, page: f, id: S, ...y }) => {
919
+ const { type: I, closeTree: T, goToPage: N } = q(), C = ae(), B = S ?? C, M = je({ id: B });
920
+ return /* @__PURE__ */ n(_t, {
921
+ ...y,
922
+ id: B,
923
+ disabled: u,
924
+ nativeButton: _,
925
+ role: y.role ?? (I === "menu" ? "menuitem" : void 0),
926
+ tabIndex: M.tabIndex,
927
+ onFocus: (k) => {
928
+ M.activate(), b?.(k);
929
+ },
930
+ "data-dropdown-item": "",
931
+ "data-dropdown-page": f,
932
+ onClick: (k) => {
933
+ if (g?.(k), !k.defaultPrevented) {
934
+ if (m(f)) {
935
+ const L = k.currentTarget.closest("[data-dropdown-content]");
936
+ if (!m(L)) return;
937
+ N({
938
+ id: f,
939
+ trigger: {
940
+ id: S,
941
+ index: Te(L).indexOf(k.currentTarget),
942
+ page: f,
943
+ label: We(k.currentTarget)
944
+ }
945
+ });
946
+ return;
947
+ }
948
+ v && T();
949
+ }
950
+ },
951
+ render: (k) => /* @__PURE__ */ n(be, {
952
+ ...k,
953
+ render: l ?? /* @__PURE__ */ n("button", { type: "button" }),
954
+ disabled: u,
955
+ color: e,
956
+ startIcon: t,
957
+ endIcon: r,
958
+ description: o,
959
+ descriptionPlacement: a,
960
+ hotkeys: i,
961
+ hotkeysJoinLabel: s,
962
+ hasSubmenu: c ?? m(f),
963
+ children: d
964
+ })
965
+ });
966
+ }, Yo = "_content_rrrph_1", Xo = "_page_rrrph_12", Qo = "_section_rrrph_16", Zo = "_separator_rrrph_28", ea = "_back_rrrph_36", ta = "_backIcon_rrrph_48", ra = "_searchContainer_rrrph_52", na = "_search_rrrph_52", oa = "_status_rrrph_69", aa = "_header_rrrph_75", ia = "_title_rrrph_88", F = {
967
+ content: Yo,
968
+ page: Xo,
969
+ section: Qo,
970
+ separator: Zo,
971
+ back: ea,
972
+ backIcon: ta,
973
+ searchContainer: ra,
974
+ search: na,
975
+ status: oa,
976
+ header: aa,
977
+ title: ia
978
+ }, sa = ({ children: e = "Back", className: t, onClick: r, ...o }) => {
979
+ const { goBack: a, canGoBack: i } = q();
980
+ return /* @__PURE__ */ n(yt, {
981
+ ...o,
982
+ className: p(F.back, t),
983
+ "data-dropdown-back": "",
984
+ disabled: o.disabled || !i,
985
+ startIcon: /* @__PURE__ */ n(Wt, { className: F.backIcon }),
986
+ closeOnClick: !1,
987
+ onClick: (s) => {
988
+ r?.(s), !s.defaultPrevented && a();
989
+ },
990
+ children: e
991
+ });
992
+ }, ca = ({ render: e, children: t, "aria-label": r, ...o }) => /* @__PURE__ */ n(vt.Close, {
993
+ ...o,
994
+ "aria-label": r,
995
+ render: e ?? /* @__PURE__ */ n(Lo, {
996
+ size: "sm",
997
+ "aria-label": r,
998
+ children: t ?? /* @__PURE__ */ n(ze, {})
999
+ }),
1000
+ children: m(e) ? t : void 0
1001
+ }), Ge = ({ content: e, target: t, edge: r = "first", type: o }) => {
1002
+ const a = m(t?.id) ? e.ownerDocument.getElementById(t.id) : null;
1003
+ if (m(a) && e.contains(a)) return a;
1004
+ const i = Te(e), s = m(t) ? i.filter((g) => g.dataset.dropdownPage === t.page) : [], [c] = s;
1005
+ if (s.length === 1 && m(c)) return c;
1006
+ const d = $(t?.label) ? s.filter((g) => We(g) === t?.label) : [], [l] = d;
1007
+ if (d.length === 1 && m(l)) return l;
1008
+ const u = m(t) ? i[t.index] : void 0;
1009
+ if (m(u)) return u;
1010
+ const _ = e.querySelector('input:not(:disabled):not([type="hidden"]),button:not(:disabled),textarea:not(:disabled),select:not(:disabled),a[href],[tabindex="0"]');
1011
+ if ((Array.from(e.querySelectorAll("[data-dropdown-page-type]")).find((g) => g.closest("[data-dropdown-content]") === e)?.dataset.dropdownPageType ?? o ?? e.dataset.type) === "panel") return _ ?? e;
1012
+ const v = e.querySelector("[data-dropdown-search]:not(:disabled)");
1013
+ return m(v) ? v : (r === "last" ? i[i.length - 1] : i[0]) ?? _ ?? e;
1014
+ }, la = ({ contentRef: e }) => {
1015
+ const { open: t, pageId: r, pageFocusRequest: o, setPageFocusRequest: a } = q();
1016
+ return Ce(() => {
1017
+ m(o) && (a(void 0), !(!t || o.pageId !== r || !m(e.current)) && Ge({
1018
+ content: e.current,
1019
+ target: o.target
1020
+ }).focus());
1021
+ }, [
1022
+ e,
1023
+ t,
1024
+ r,
1025
+ o,
1026
+ a
1027
+ ]), null;
1028
+ }, Tt = (e) => {
1029
+ if (e.dataset.type === "panel") return;
1030
+ const t = e.querySelector("[data-dropdown-search]:not(:disabled)");
1031
+ if (!(!m(t) || !$(t.value.trim())))
1032
+ return Te(e).find((r) => r.hasAttribute("data-dropdown-option-item"));
1033
+ }, da = ({ content: e }) => {
1034
+ const { setSearchTargetId: t } = q();
1035
+ return Ce(() => {
1036
+ if (!m(e)) return;
1037
+ const r = () => t(Tt(e)?.id);
1038
+ r();
1039
+ const o = new MutationObserver(r);
1040
+ return o.observe(e, {
1041
+ childList: !0,
1042
+ subtree: !0,
1043
+ attributes: !0,
1044
+ attributeFilter: ["disabled", "aria-disabled"]
1045
+ }), e.addEventListener("input", r), () => {
1046
+ o.disconnect(), e.removeEventListener("input", r), t(void 0);
1047
+ };
1048
+ }, [e, t]), null;
1049
+ }, ua = (e) => (e.ctrlKey || e.metaKey) && !e.defaultPrevented, ma = (e) => Array.from(e.ownerDocument.querySelectorAll("[data-dropdown-item][aria-controls]")).find((t) => t.getAttribute("aria-controls") === e.id), _a = ({ key: e, items: t, currentIndex: r, search: o, isSearch: a }) => {
1050
+ const i = t.length - 1;
1051
+ if (e === "ArrowDown") return t[r === i ? 0 : r + 1];
1052
+ if (e === "ArrowUp" && r === 0 && m(o)) return o;
1053
+ if (e === "ArrowUp") return t[r <= 0 ? i : r - 1];
1054
+ if (!a && e === "Home") return t[0];
1055
+ if (!a && e === "End") return t[i];
1056
+ }, va = 500, pa = ({ type: e, isSubmenu: t, setOpen: r }) => {
1057
+ const o = pt(), [a, i] = E({
1058
+ text: "",
1059
+ timestamp: 0
1060
+ });
1061
+ return (s) => {
1062
+ if (s.defaultPrevented) return;
1063
+ const c = s.currentTarget, d = s.target;
1064
+ if (!(d instanceof HTMLElement) || d.closest("[data-dropdown-content]") !== c) return;
1065
+ const l = d.matches('input,textarea,select,[contenteditable="true"]'), u = o === "rtl" ? "ArrowRight" : "ArrowLeft";
1066
+ if (t && (s.key === "Escape" || !l && s.key === u)) {
1067
+ s.preventDefault(), s.stopPropagation(), ma(c)?.focus(), r(!1);
1068
+ return;
1069
+ }
1070
+ if (e === "panel") return;
1071
+ const _ = c.querySelector("[data-dropdown-search]:not(:disabled)"), v = d === _;
1072
+ if (l && !v) return;
1073
+ const g = Te(c).filter((C) => !m(_) || !C.hasAttribute("data-dropdown-back")), b = v && s.key === "Enter" && !s.nativeEvent.isComposing ? Tt(c) : void 0;
1074
+ if (m(b)) {
1075
+ s.preventDefault(), b.click();
1076
+ return;
1077
+ }
1078
+ const f = g.indexOf(d), S = _a({
1079
+ key: s.key,
1080
+ items: g,
1081
+ currentIndex: f,
1082
+ search: _,
1083
+ isSearch: v
1084
+ });
1085
+ if (m(S)) {
1086
+ s.preventDefault(), S.focus();
1087
+ return;
1088
+ }
1089
+ if (l || s.key.length !== 1 || s.key === " " || s.altKey || s.ctrlKey || s.metaKey) return;
1090
+ const y = Date.now(), I = y - a.timestamp > va ? s.key : a.text + s.key;
1091
+ i({
1092
+ text: I,
1093
+ timestamp: y
1094
+ });
1095
+ const T = ([...I].every((C) => C === I[0]) ? s.key : I).toLocaleLowerCase(), N = [...g.slice(f + 1), ...g.slice(0, f + 1)].find((C) => We(C).trim().toLocaleLowerCase().startsWith(T));
1096
+ m(N) && (s.preventDefault(), N.focus());
1097
+ };
1098
+ }, fa = ({ side: e, align: t = "start", sideOffset: r = 0, alignOffset: o, anchor: a, container: i, keepMounted: s, width: c = 200, className: d, style: l, children: u, initialFocus: _, onKeyDown: v, onClick: g, onMouseDown: b, onPointerDown: f, "aria-label": S, "aria-labelledby": y, ref: I, ...T }) => {
1099
+ const { type: N, isSubmenu: C, setOpen: B, initialFocusEdge: M, focusOnOpen: k, triggerId: L, titleId: O } = q(), w = Fe(null), [J, x] = E(null), Q = we(w, I, x), re = pa({
1100
+ type: N,
1101
+ isSubmenu: C,
1102
+ setOpen: B
1103
+ }), Z = m(S) ? void 0 : O ?? L;
1104
+ return /* @__PURE__ */ h(V, { children: [
1105
+ /* @__PURE__ */ n(Ie.Popup, {
1106
+ ...T,
1107
+ ref: Q,
1108
+ side: e ?? (C ? "inline-end" : "bottom"),
1109
+ align: t,
1110
+ sideOffset: r,
1111
+ alignOffset: o,
1112
+ anchor: a,
1113
+ container: i,
1114
+ keepMounted: s,
1115
+ role: N === "menu" ? "menu" : "dialog",
1116
+ "aria-label": S,
1117
+ "aria-labelledby": y ?? Z,
1118
+ "data-dropdown-content": "",
1119
+ "data-type": N,
1120
+ className: Y(F.content, d),
1121
+ style: (D) => ({
1122
+ width: c,
1123
+ ...hr(l) ? l(D) : l
1124
+ }),
1125
+ initialFocus: _ ?? (() => k ? m(w.current) ? Ge({
1126
+ content: w.current,
1127
+ edge: M,
1128
+ type: N
1129
+ }) : !0 : !1),
1130
+ onKeyDown: (D) => {
1131
+ v?.(D), re(D), ua(D) || D.stopPropagation();
1132
+ },
1133
+ onClick: (D) => {
1134
+ D.stopPropagation(), g?.(D);
1135
+ },
1136
+ onMouseDown: (D) => {
1137
+ D.stopPropagation(), b?.(D);
1138
+ },
1139
+ onPointerDown: (D) => {
1140
+ D.stopPropagation(), f?.(D);
1141
+ },
1142
+ children: u
1143
+ }),
1144
+ /* @__PURE__ */ n(la, { contentRef: w }),
1145
+ /* @__PURE__ */ n(da, { content: J })
1146
+ ] });
1147
+ }, ha = ({ className: e, ...t }) => /* @__PURE__ */ n(ut, {
1148
+ ...t,
1149
+ role: "status",
1150
+ "aria-live": "polite",
1151
+ className: p(F.status, e)
1152
+ }), ga = ({ render: e, ref: t, className: r, ...o }) => ve({
1153
+ render: e,
1154
+ ref: t,
1155
+ props: {
1156
+ ...o,
1157
+ className: p(F.header, r)
1158
+ }
1159
+ }), ba = ({ className: e, ...t }) => /* @__PURE__ */ n(ut, {
1160
+ ...t,
1161
+ role: "status",
1162
+ "aria-live": "polite",
1163
+ "aria-busy": "true",
1164
+ className: p(F.status, e)
1165
+ }), Ia = ({ selected: e, indicator: t, onSelect: r, closeOnSelect: o, color: a, startIcon: i, endIcon: s, description: c, descriptionPlacement: d, hotkeys: l, hotkeysJoinLabel: u, hasSubmenu: _, children: v, render: g, disabled: b = !1, nativeButton: f = !m(g), onClick: S, onFocus: y, id: I, ...T }) => {
1166
+ const { type: N, multiple: C, closeTree: B, searchTargetId: M } = q(), k = N === "menu", L = C ? "menuitemcheckbox" : "menuitemradio", O = ae(), w = I ?? O, J = je({ id: w });
1167
+ return /* @__PURE__ */ n(_t, {
1168
+ ...T,
1169
+ id: w,
1170
+ disabled: b,
1171
+ nativeButton: f,
1172
+ role: k ? L : void 0,
1173
+ "aria-checked": k ? e : void 0,
1174
+ "aria-pressed": k ? void 0 : e,
1175
+ tabIndex: J.tabIndex,
1176
+ onFocus: (x) => {
1177
+ J.activate(), y?.(x);
1178
+ },
1179
+ "data-dropdown-item": "",
1180
+ "data-dropdown-option-item": "",
1181
+ onClick: (x) => {
1182
+ S?.(x), !x.defaultPrevented && (r?.(), (o ?? !C) && B());
1183
+ },
1184
+ render: (x) => /* @__PURE__ */ n(be, {
1185
+ ...x,
1186
+ render: g ?? /* @__PURE__ */ n("button", { type: "button" }),
1187
+ disabled: b,
1188
+ selected: e,
1189
+ focused: M === w,
1190
+ indicator: t ?? (C ? "checkbox" : "check"),
1191
+ color: a,
1192
+ startIcon: i,
1193
+ endIcon: s,
1194
+ description: c,
1195
+ descriptionPlacement: d,
1196
+ hotkeys: l,
1197
+ hotkeysJoinLabel: u,
1198
+ hasSubmenu: _,
1199
+ children: v
1200
+ })
1201
+ });
1202
+ }, Ca = ({ id: e, type: t, children: r }) => {
1203
+ const o = q(), { registerPage: a } = o, i = me((s) => {
1204
+ m(s) && a({
1205
+ id: e,
1206
+ type: t
1207
+ });
1208
+ }, [
1209
+ e,
1210
+ t,
1211
+ a
1212
+ ]);
1213
+ return o.pageId !== e ? null : /* @__PURE__ */ n(ge.Provider, {
1214
+ value: {
1215
+ ...o,
1216
+ type: t ?? o.rootType
1217
+ },
1218
+ children: /* @__PURE__ */ n("div", {
1219
+ ref: i,
1220
+ className: F.page,
1221
+ "data-dropdown-page-type": t ?? o.rootType,
1222
+ children: r
1223
+ })
1224
+ });
1225
+ }, wa = ({ open: e, registerOpenNestedRoot: t }) => (Cr(() => {
1226
+ if (e)
1227
+ return t?.();
1228
+ }, [e, t]), null), ya = (e) => e instanceof FocusEvent ? e.type === "focusout" && e.relatedTarget instanceof Element ? e.relatedTarget : null : e.target instanceof Element ? e.target : null, tt = ({ onDismiss: e, event: t }) => {
1229
+ if (!m(e)) return !1;
1230
+ let r = !1;
1231
+ return e({
1232
+ target: ya(t),
1233
+ preventDefault: () => {
1234
+ r = !0;
1235
+ }
1236
+ }), r;
1237
+ }, Ta = [
1238
+ "mousedown",
1239
+ "touchend",
1240
+ "focusout"
1241
+ ], Nt = ["pointerdown", "keydown"], Na = [
1242
+ ...Nt,
1243
+ "keyup",
1244
+ "mousedown"
1245
+ ], rt = (e) => {
1246
+ e.preventDefault(), e.stopPropagation();
1247
+ }, ka = (e) => {
1248
+ if (e.type === "click") {
1249
+ rt(e);
1250
+ return;
1251
+ }
1252
+ if (!Ta.includes(e.type)) return;
1253
+ const t = e.target instanceof Node ? e.target.ownerDocument ?? document : document, r = t.defaultView ?? t, o = new AbortController(), a = () => o.abort(), i = {
1254
+ capture: !0,
1255
+ signal: o.signal
1256
+ }, s = e.type === "focusout" ? Na : Nt;
1257
+ r.addEventListener("click", (c) => {
1258
+ rt(c), a();
1259
+ }, i);
1260
+ for (const c of s) r.addEventListener(c, a, i);
1261
+ }, nt = () => {
1262
+ const [e, t] = E();
1263
+ return [e, me((r) => (t(r), () => t((o) => o === r ? void 0 : o)), [])];
1264
+ }, kt = ({ children: e, type: t, open: r, defaultOpen: o = !1, onOpenChange: a, onEscapeKeyDown: i, onInteractOutside: s, multiple: c = !1, defaultPage: d = "root", isSubmenu: l = !1 }) => {
1265
+ const u = _e(ge), _ = Fe(0), v = me(() => (_.current += 1, () => {
1266
+ _.current -= 1;
1267
+ }), []), [g, b] = E(o), f = r ?? g, [S, y] = E(f), [I, T] = E([{ id: d }]), [N, C] = E(), [B, M] = E(), k = I[I.length - 1]?.id, [L, O] = E(), [w, J] = E("first"), [x, Q] = E(!0), [re, Z] = E(), [D, xt] = nt(), [At, Lt] = nt();
1268
+ S !== f && (y(f), f || (T([{ id: d }]), C(void 0), O(void 0), J("first"), Q(!0), Z(void 0)));
1269
+ const Ne = (z) => {
1270
+ m(r) || b(z), a?.(z);
1271
+ }, Dt = () => {
1272
+ Ne(!1), l && u?.closeTree();
1273
+ }, Et = ({ id: z, trigger: P }) => {
1274
+ O({ pageId: z }), T((W) => [...W, {
1275
+ id: z,
1276
+ trigger: P
1277
+ }]);
1278
+ }, Bt = () => {
1279
+ const z = I[I.length - 2];
1280
+ if (!m(z)) return;
1281
+ const P = I[I.length - 1]?.trigger;
1282
+ O({
1283
+ pageId: z.id,
1284
+ target: P
1285
+ }), T((W) => W.slice(0, -1));
1286
+ }, Mt = me(({ id: z, type: P }) => {
1287
+ if (!f) return;
1288
+ const W = P ?? t;
1289
+ C((se) => se?.id === z && se.type === W ? se : {
1290
+ id: z,
1291
+ type: W
1292
+ });
1293
+ }, [f, t]);
1294
+ return /* @__PURE__ */ n(Ie.Root, {
1295
+ open: f,
1296
+ onOpenChange: (z, P) => {
1297
+ const W = P.reason === "outside-press" || P.reason === "focus-out";
1298
+ if (W && _.current > 0) {
1299
+ P.cancel();
1300
+ return;
1301
+ }
1302
+ const se = P.reason === "escape-key" && tt({
1303
+ onDismiss: i,
1304
+ event: P.event
1305
+ }), Pt = W && tt({
1306
+ onDismiss: s,
1307
+ event: P.event
1308
+ });
1309
+ if (se || Pt) {
1310
+ P.cancel();
1311
+ return;
1312
+ }
1313
+ W && ka(P.event), Q(P.reason !== "trigger-hover"), Ne(z);
1314
+ },
1315
+ children: /* @__PURE__ */ h(ge.Provider, {
1316
+ value: {
1317
+ type: m(N) && N.id === k ? N.type : t,
1318
+ rootType: t,
1319
+ open: f,
1320
+ multiple: c,
1321
+ isSubmenu: l,
1322
+ parentType: u?.type,
1323
+ activeItemId: B,
1324
+ parentActiveItemId: u?.activeItemId,
1325
+ setActiveItemId: M,
1326
+ setParentActiveItemId: u?.setActiveItemId,
1327
+ pageId: k,
1328
+ pageFocusRequest: L,
1329
+ setPageFocusRequest: O,
1330
+ canGoBack: I.length > 1,
1331
+ initialFocusEdge: w,
1332
+ setInitialFocusEdge: J,
1333
+ focusOnOpen: x,
1334
+ setFocusOnOpen: Q,
1335
+ setOpen: Ne,
1336
+ closeTree: Dt,
1337
+ goToPage: Et,
1338
+ goBack: Bt,
1339
+ registerPage: Mt,
1340
+ registerOpenNestedRoot: v,
1341
+ searchTargetId: re,
1342
+ setSearchTargetId: Z,
1343
+ triggerId: D,
1344
+ registerTrigger: xt,
1345
+ titleId: At,
1346
+ registerTitle: Lt
1347
+ },
1348
+ children: [/* @__PURE__ */ n(wa, {
1349
+ open: f,
1350
+ registerOpenNestedRoot: l ? void 0 : u?.registerOpenNestedRoot
1351
+ }), e]
1352
+ })
1353
+ });
1354
+ }, Sa = ({ onValueChange: e, className: t, ...r }) => {
1355
+ const { searchTargetId: o } = q();
1356
+ return /* @__PURE__ */ n("div", {
1357
+ className: F.searchContainer,
1358
+ children: /* @__PURE__ */ n(dt, {
1359
+ type: "search",
1360
+ autoComplete: "off",
1361
+ "aria-activedescendant": o,
1362
+ ...r,
1363
+ "data-dropdown-search": "",
1364
+ className: Y(F.search, t),
1365
+ onValueChange: (a) => e?.(a)
1366
+ })
1367
+ });
1368
+ }, xa = ({ label: e, scrollable: t, className: r, children: o, ...a }) => /* @__PURE__ */ h(dr, {
1369
+ ...a,
1370
+ "data-scrollable": t || void 0,
1371
+ className: p(F.section, r),
1372
+ children: [m(e) && /* @__PURE__ */ n(lr, { children: e }), o]
1373
+ }), Aa = ({ className: e, ...t }) => /* @__PURE__ */ n(ur, {
1374
+ ...t,
1375
+ role: "separator",
1376
+ "data-dropdown-separator": "",
1377
+ className: p(F.separator, e)
1378
+ }), La = ({ type: e = "menu", ...t }) => /* @__PURE__ */ n(kt, {
1379
+ ...t,
1380
+ type: e,
1381
+ isSubmenu: !0
1382
+ }), He = (e) => me((t) => {
1383
+ if (!(!m(t) || !$(t.id)))
1384
+ return e(t.id);
1385
+ }, [e]), Da = ({ color: e, startIcon: t, endIcon: r, description: o, descriptionPlacement: a, hotkeys: i, hotkeysJoinLabel: s, hasSubmenu: c = !0, children: d, render: l, disabled: u = !1, nativeButton: _ = !m(l), openOnHover: v = !0, onKeyDown: g, onFocus: b, id: f, ref: S, ...y }) => {
1386
+ const I = pt(), { type: T, parentType: N, open: C, setOpen: B, setFocusOnOpen: M, registerTrigger: k } = q(), L = ae(), O = f ?? L, w = je({
1387
+ id: O,
1388
+ isSubmenuTrigger: !0
1389
+ }), J = we(S, He(k));
1390
+ return /* @__PURE__ */ n(Ie.Trigger, {
1391
+ ...y,
1392
+ ref: J,
1393
+ id: O,
1394
+ disabled: u,
1395
+ nativeButton: _,
1396
+ openOnHover: v,
1397
+ role: N === "menu" ? "menuitem" : void 0,
1398
+ "aria-haspopup": T === "menu" ? "menu" : "dialog",
1399
+ tabIndex: w.tabIndex,
1400
+ onFocus: (x) => {
1401
+ w.activate(), b?.(x);
1402
+ },
1403
+ "data-dropdown-item": "",
1404
+ onKeyDown: (x) => {
1405
+ if (g?.(x), x.defaultPrevented || u) return;
1406
+ const Q = I === "rtl" ? "ArrowLeft" : "ArrowRight";
1407
+ if (x.key === Q) {
1408
+ x.preventDefault(), x.stopPropagation(), M(!0);
1409
+ const re = x.currentTarget.getAttribute("aria-controls"), Z = m(re) ? x.currentTarget.ownerDocument.getElementById(re) : null;
1410
+ if (C && m(Z)) {
1411
+ Ge({
1412
+ content: Z,
1413
+ type: T
1414
+ }).focus();
1415
+ return;
1416
+ }
1417
+ B(!0);
1418
+ }
1419
+ },
1420
+ render: (x) => /* @__PURE__ */ n(be, {
1421
+ ...x,
1422
+ render: l ?? /* @__PURE__ */ n("button", { type: "button" }),
1423
+ disabled: u,
1424
+ color: e,
1425
+ startIcon: t,
1426
+ endIcon: r,
1427
+ description: o,
1428
+ descriptionPlacement: a,
1429
+ hotkeys: i,
1430
+ hotkeysJoinLabel: s,
1431
+ hasSubmenu: c,
1432
+ children: d
1433
+ })
1434
+ });
1435
+ }, Ea = ({ className: e, render: t, ref: r, ...o }) => {
1436
+ const { registerTitle: a } = q(), i = we(r, He(a));
1437
+ return /* @__PURE__ */ n(vt.Title, {
1438
+ ...o,
1439
+ ref: i,
1440
+ render: t ?? /* @__PURE__ */ n("div", {}),
1441
+ className: Y(F.title, e)
1442
+ });
1443
+ }, Ba = ({ onKeyDown: e, onClick: t, ref: r, ...o }) => {
1444
+ const { type: a, setOpen: i, setInitialFocusEdge: s, setFocusOnOpen: c, registerTrigger: d } = q(), l = we(r, He(d));
1445
+ return /* @__PURE__ */ n(Ie.Trigger, {
1446
+ ...o,
1447
+ ref: l,
1448
+ "aria-haspopup": a === "menu" ? "menu" : "dialog",
1449
+ onClick: (u) => {
1450
+ u.stopPropagation(), u.preventDefault(), t?.(u);
1451
+ },
1452
+ onKeyDown: (u) => {
1453
+ e?.(u), !(u.defaultPrevented || o.disabled || a === "panel") && (u.key !== "ArrowDown" && u.key !== "ArrowUp" || (u.preventDefault(), c(!0), s(u.key === "ArrowUp" ? "last" : "first"), i(!0)));
1454
+ }
1455
+ });
1456
+ }, Ma = kt, ls = {
1457
+ Root: Ma,
1458
+ Trigger: Ba,
1459
+ Content: fa,
1460
+ ActionItem: yt,
1461
+ OptionItem: Ia,
1462
+ Search: Sa,
1463
+ Header: ga,
1464
+ Title: Ea,
1465
+ Close: ca,
1466
+ Page: Ca,
1467
+ Back: sa,
1468
+ Submenu: La,
1469
+ SubmenuTrigger: Da,
1470
+ Section: xa,
1471
+ Separator: Aa,
1472
+ Loading: ba,
1473
+ Empty: ha
1474
+ }, ds = () => {
1475
+ const { pageId: e, goToPage: t, goBack: r, canGoBack: o } = q();
1476
+ return {
1477
+ page: e,
1478
+ goToPage: (a) => t({ id: a }),
1479
+ goBack: r,
1480
+ canGoBack: o
1481
+ };
1482
+ }, us = {
1483
+ gray: "Gray",
1484
+ tomato: "Tomato",
1485
+ red: "Red",
1486
+ ruby: "Ruby",
1487
+ crimson: "Crimson",
1488
+ pink: "Pink",
1489
+ plum: "Plum",
1490
+ purple: "Purple",
1491
+ violet: "Violet",
1492
+ iris: "Iris",
1493
+ cyan: "Cyan",
1494
+ turquoise: "Turquoise",
1495
+ sky: "Sky",
1496
+ blue: "Blue",
1497
+ jade: "Jade",
1498
+ green: "Green",
1499
+ grass: "Grass",
1500
+ mint: "Mint",
1501
+ lime: "Lime",
1502
+ bronze: "Bronze",
1503
+ gold: "Gold",
1504
+ brown: "Brown",
1505
+ orange: "Orange",
1506
+ amber: "Amber",
1507
+ yellow: "Yellow"
1508
+ }, Pa = "_iconContainer_1ivx0_1", Oa = "_withBackground_1ivx0_9", ot = {
1509
+ iconContainer: Pa,
1510
+ withBackground: Oa
1511
+ }, Je = ({ children: e, className: t, hasBackground: r = !0 }) => /* @__PURE__ */ n("div", {
1512
+ className: p(ot.iconContainer, r && ot.withBackground, t),
1513
+ children: e
1514
+ }), za = ({ Icon: e, iconThemeColor: t, withContainer: r = !1, withContainerBackground: o = !0 }) => {
1515
+ const a = R();
1516
+ if (!e) return null;
1517
+ if (m(t)) return /* @__PURE__ */ n(bt, {
1518
+ Icon: e,
1519
+ color: t,
1520
+ size: a.icon.size.md,
1521
+ stroke: a.icon.stroke.sm
1522
+ });
1523
+ const i = /* @__PURE__ */ n(e, {
1524
+ size: a.icon.size.md,
1525
+ stroke: a.icon.stroke.sm
1526
+ });
1527
+ return r ? /* @__PURE__ */ n(Je, {
1528
+ hasBackground: o,
1529
+ children: i
1530
+ }) : i;
1531
+ }, Ra = "_iconSwapContainer_g9ywp_1", qa = "_defaultIcon_g9ywp_8", Fa = "_hoverIcon_g9ywp_13", Ee = {
1532
+ iconSwapContainer: Ra,
1533
+ defaultIcon: qa,
1534
+ hoverIcon: Fa
1535
+ }, $a = ({ LeftIcon: e, iconThemeColor: t, withIconContainer: r = !1, gripIconColor: o }) => {
1536
+ const a = R();
1537
+ if (!e) return null;
1538
+ const i = /* @__PURE__ */ h("div", {
1539
+ className: Ee.iconSwapContainer,
1540
+ children: [/* @__PURE__ */ n("div", {
1541
+ className: p(Ee.defaultIcon, "grip-swap-default-icon"),
1542
+ children: m(t) ? /* @__PURE__ */ n(bt, {
1543
+ Icon: e,
1544
+ color: t,
1545
+ size: a.icon.size.md,
1546
+ stroke: a.icon.stroke.sm
1547
+ }) : /* @__PURE__ */ n(e, {
1548
+ size: a.icon.size.md,
1549
+ stroke: a.icon.stroke.sm
1550
+ })
1551
+ }), /* @__PURE__ */ n("div", {
1552
+ className: p(Ee.hoverIcon, "grip-swap-hover-icon"),
1553
+ children: /* @__PURE__ */ n(Me, {
1554
+ size: a.icon.size.md,
1555
+ stroke: a.icon.stroke.sm,
1556
+ color: o
1557
+ })
1558
+ })]
1559
+ });
1560
+ return r && !m(t) ? /* @__PURE__ */ n(Je, { children: i }) : i;
1561
+ }, Wa = "_menuItemBase_1jkew_1", ja = "_hoverableMenuItemBase_1jkew_54", Ga = "_menuItemLabel_1jkew_136", Ha = "_menuItemLabelLight_1jkew_145", Ja = "_noIconFiller_1jkew_155", Ka = "_menuItemLeftContent_1jkew_159", Va = "_menuItemRightContent_1jkew_172", Ua = "_draggableItem_1jkew_183", Ya = "_menuItemIconCheckContainer_1jkew_189", Xa = "_menuItemContextualText_1jkew_196", Qa = "_rightMenuItemContextualText_1jkew_206", H = {
1562
+ menuItemBase: Wa,
1563
+ hoverableMenuItemBase: ja,
1564
+ menuItemLabel: Ga,
1565
+ menuItemLabelLight: Ha,
1566
+ noIconFiller: Ja,
1567
+ menuItemLeftContent: Ka,
1568
+ menuItemRightContent: Va,
1569
+ draggableItem: Ua,
1570
+ menuItemIconCheckContainer: Ya,
1571
+ menuItemContextualText: Xa,
1572
+ rightMenuItemContextualText: Qa
1573
+ }, Za = qe(({ accent: e, isKeySelected: t, isHoverBackgroundDisabled: r, hovered: o, disabled: a, focused: i, className: s, children: c, ...d }, l) => /* @__PURE__ */ n("div", {
1574
+ ref: l,
1575
+ className: p(H.menuItemBase, s),
1576
+ "data-accent": e,
1577
+ "data-key-selected": t || void 0,
1578
+ "data-hover-background-disabled": r || void 0,
1579
+ "data-disabled": a || void 0,
1580
+ "data-focused": i || void 0,
1581
+ ...d,
1582
+ children: c
1583
+ }));
1584
+ Za.displayName = "StyledMenuItemBase";
1585
+ var X = (e, t) => {
1586
+ const r = qe(({ className: o, children: a, ...i }, s) => /* @__PURE__ */ n("div", {
1587
+ ref: s,
1588
+ className: p(e, o),
1589
+ ...i,
1590
+ children: a
1591
+ }));
1592
+ return r.displayName = t, r;
1593
+ }, ei = X(H.menuItemLabel, "StyledMenuItemLabel"), ms = X(H.menuItemLabelLight, "StyledMenuItemLabelLight"), _s = X(H.noIconFiller, "StyledNoIconFiller"), St = X(H.menuItemLeftContent, "StyledMenuItemLeftContent"), Oe = X(H.menuItemRightContent, "StyledMenuItemRightContent"), at = X(H.draggableItem, "StyledDraggableItem"), Ke = qe(({ accent: e, isKeySelected: t, isHoverBackgroundDisabled: r, hovered: o, disabled: a, focused: i, isIconDisplayedOnHoverOnly: s, cursor: c, className: d, children: l, ...u }, _) => /* @__PURE__ */ n("div", {
1594
+ ref: _,
1595
+ className: p(H.hoverableMenuItemBase, d),
1596
+ "data-accent": e,
1597
+ "data-key-selected": t || void 0,
1598
+ "data-hover-background-disabled": r || void 0,
1599
+ "data-disabled": a || void 0,
1600
+ "data-focused": i || void 0,
1601
+ "data-icon-displayed-on-hover-only": s || void 0,
1602
+ "data-cursor": c,
1603
+ ...u,
1604
+ children: l
1605
+ }));
1606
+ Ke.displayName = "StyledHoverableMenuItemBase";
1607
+ var ti = X(H.menuItemContextualText, "StyledMenuItemContextualText"), ri = X(H.rightMenuItemContextualText, "StyledRightMenuItemContextualText"), ni = "_mainText_d0zu3_1", oi = "_menuItemLabelRight_d0zu3_9", it = {
1608
+ mainText: ni,
1609
+ menuItemLabelRight: oi
1610
+ }, Ve = ({ className: e, LeftComponent: t, LeftIcon: r, iconThemeColor: o, withIconContainer: a = !1, withIconContainerBackground: i = !0, text: s, contextualText: c, contextualTextPosition: d = "left", gripMode: l = "never", disabled: u = !1 }) => {
1611
+ const _ = R(), v = a ? K.font.color.tertiary : u ? K.font.color.extraLight : K.font.color.light;
1612
+ return /* @__PURE__ */ h(St, {
1613
+ className: e,
1614
+ children: [
1615
+ l === "always" && (a ? /* @__PURE__ */ n(Je, {
1616
+ hasBackground: i,
1617
+ children: /* @__PURE__ */ n(at, { children: /* @__PURE__ */ n(Me, {
1618
+ size: _.icon.size.md,
1619
+ stroke: _.icon.stroke.sm,
1620
+ color: v
1621
+ }) })
1622
+ }) : /* @__PURE__ */ n(at, { children: /* @__PURE__ */ n(Me, {
1623
+ size: _.icon.size.md,
1624
+ stroke: _.icon.stroke.sm,
1625
+ color: v
1626
+ }) })),
1627
+ l === "onHover" ? /* @__PURE__ */ n($a, {
1628
+ LeftIcon: r,
1629
+ iconThemeColor: o,
1630
+ withIconContainer: a,
1631
+ gripIconColor: v
1632
+ }) : /* @__PURE__ */ n(za, {
1633
+ Icon: r,
1634
+ iconThemeColor: o,
1635
+ withContainer: a,
1636
+ withContainerBackground: i
1637
+ }),
1638
+ t,
1639
+ /* @__PURE__ */ h(ei, { children: [oe(s) ? /* @__PURE__ */ n("div", {
1640
+ className: it.mainText,
1641
+ children: /* @__PURE__ */ n(ue, { text: s })
1642
+ }) : s, d === "left" && /* @__PURE__ */ n(V, { children: oe(c) ? $(c) && /* @__PURE__ */ n(ti, { children: /* @__PURE__ */ n(ue, {
1643
+ text: `· ${c}`,
1644
+ tooltipContent: c
1645
+ }) }) : c })] }),
1646
+ d === "right" && /* @__PURE__ */ n("div", {
1647
+ className: it.menuItemLabelRight,
1648
+ children: /* @__PURE__ */ n(ri, { children: oe(c) ? /* @__PURE__ */ n(ue, { text: c }) : c })
1649
+ })
1650
+ ]
1651
+ });
1652
+ }, ai = "_subMenuIcon_j232v_1", ii = "_subMenuIconOpened_j232v_9", st = {
1653
+ subMenuIcon: ai,
1654
+ subMenuIconOpened: ii
1655
+ }, si = ({ accent: e = "default", className: t, withIconContainer: r = !1, withIconContainerBackground: o = !0, iconButtons: a, isIconDisplayedOnHoverOnly: i = !0, LeftIcon: s, iconThemeColor: c, LeftComponent: d, RightIcon: l, RightComponent: u, onClick: _, onMouseEnter: v, onMouseLeave: g, testId: b, text: f, contextualTextPosition: S = "left", contextualText: y, hasSubMenu: I = !1, disabled: T = !1, focused: N = !1, selected: C = !1, hotKeys: B, hotKeysJoinLabel: M, isSubMenuOpened: k = !1 }) => {
1656
+ const L = R();
1657
+ return /* @__PURE__ */ h(Ke, {
1658
+ "data-testid": b ?? void 0,
1659
+ onClick: T ? void 0 : (w) => {
1660
+ _ && (w.preventDefault(), w.stopPropagation(), _?.(w));
1661
+ },
1662
+ disabled: T,
1663
+ className: t,
1664
+ accent: e,
1665
+ isIconDisplayedOnHoverOnly: i,
1666
+ onMouseEnter: v,
1667
+ onMouseLeave: g,
1668
+ focused: N || C,
1669
+ children: [/* @__PURE__ */ n(Ve, {
1670
+ LeftIcon: s ?? void 0,
1671
+ iconThemeColor: c,
1672
+ LeftComponent: d,
1673
+ withIconContainer: r,
1674
+ withIconContainerBackground: o,
1675
+ text: f,
1676
+ contextualText: y,
1677
+ contextualTextPosition: S,
1678
+ disabled: T
1679
+ }), /* @__PURE__ */ h(Oe, { children: [
1680
+ a && /* @__PURE__ */ n(Oe, {
1681
+ className: "hoverable-buttons",
1682
+ children: a
1683
+ }),
1684
+ B && /* @__PURE__ */ n(sr, {
1685
+ hotKeys: B,
1686
+ joinLabel: M
1687
+ }),
1688
+ l && /* @__PURE__ */ n(l, {
1689
+ size: L.icon.size.md,
1690
+ stroke: L.icon.stroke.sm
1691
+ }),
1692
+ u,
1693
+ I && /* @__PURE__ */ n("div", {
1694
+ className: p(st.subMenuIcon, k && st.subMenuIconOpened),
1695
+ style: { visibility: T ? "hidden" : "visible" },
1696
+ children: /* @__PURE__ */ n(qt, {
1697
+ size: L.icon.size.sm,
1698
+ color: L.font.color.light
1699
+ })
1700
+ })
1701
+ ] })]
1702
+ });
1703
+ }, vs = ({ accent: e = "default", className: t, iconButtons: r, isIconDisplayedOnHoverOnly: o = !0, isTooltipOpen: a, onClick: i, onMouseEnter: s, onMouseLeave: c, testId: d, avatar: l, hasSubMenu: u = !1, text: _, contextualText: v }) => /* @__PURE__ */ n(si, {
1704
+ accent: e,
1705
+ className: t,
1706
+ iconButtons: r,
1707
+ isIconDisplayedOnHoverOnly: o,
1708
+ isTooltipOpen: a,
1709
+ LeftComponent: m(l) ? /* @__PURE__ */ n(mr, {
1710
+ name: l.name,
1711
+ src: l.src,
1712
+ colorSeed: l.colorSeed,
1713
+ size: l.size,
1714
+ shape: l.shape
1715
+ }) : void 0,
1716
+ onClick: i,
1717
+ onMouseEnter: s,
1718
+ onMouseLeave: c,
1719
+ testId: d,
1720
+ text: _,
1721
+ contextualText: v,
1722
+ hasSubMenu: u
1723
+ }), ps = ({ LeftIcon: e, withIconContainer: t = !1, accent: r = "default", iconButtons: o, onClick: a, text: i, contextualText: s, isDragDisabled: c = !1, className: d, isIconDisplayedOnHoverOnly: l = !0, gripMode: u = "never" }) => /* @__PURE__ */ h(Ke, {
1724
+ onClick: a,
1725
+ accent: r,
1726
+ className: d,
1727
+ isIconDisplayedOnHoverOnly: l,
1728
+ cursor: u !== "never" ? c ? "default" : "drag" : "default",
1729
+ children: [/* @__PURE__ */ n(Ve, {
1730
+ LeftIcon: e,
1731
+ text: i,
1732
+ contextualText: s,
1733
+ withIconContainer: t,
1734
+ disabled: c,
1735
+ gripMode: u
1736
+ }), o && /* @__PURE__ */ n(Oe, {
1737
+ className: "hoverable-buttons",
1738
+ children: o
1739
+ })]
1740
+ }), ci = "_suggestionMenuItem_1qyjt_1", li = { suggestionMenuItem: ci }, fs = ({ LeftIcon: e, withIconContainer: t = !1, text: r, contextualText: o = void 0, contextualTextPosition: a = "left", className: i, selected: s, onClick: c }) => {
1741
+ const d = (l) => {
1742
+ c && (l.preventDefault(), l.stopPropagation(), c?.(l));
1743
+ };
1744
+ return /* @__PURE__ */ n("li", {
1745
+ className: p(li.suggestionMenuItem, i),
1746
+ "data-selected": s || void 0,
1747
+ role: m(c) ? "button" : void 0,
1748
+ tabIndex: m(c) ? 0 : void 0,
1749
+ onClick: d,
1750
+ onKeyDown: Xt,
1751
+ children: /* @__PURE__ */ n(St, { children: /* @__PURE__ */ n(Ve, {
1752
+ LeftIcon: e ?? void 0,
1753
+ text: r,
1754
+ contextualText: o,
1755
+ contextualTextPosition: a,
1756
+ withIconContainer: t
1757
+ }) })
1758
+ });
1759
+ }, di = "_menuPicker_o8ra4_1", ui = "_iconContainer_o8ra4_41", mi = "_label_o8ra4_50", Be = {
1760
+ menuPicker: di,
1761
+ iconContainer: ui,
1762
+ label: mi
1763
+ }, hs = ({ id: e, icon: t, label: r, selected: o = !1, disabled: a = !1, showLabel: i = !0, onClick: s, className: c, testId: d, tooltipContent: l, tooltipDelay: u = 0, tooltipOffset: _ = 5 }) => {
1764
+ const v = R();
1765
+ return /* @__PURE__ */ n(mt, {
1766
+ content: l,
1767
+ disabled: !$(l),
1768
+ sideOffset: _,
1769
+ side: "bottom",
1770
+ positionMethod: "fixed",
1771
+ delay: u,
1772
+ children: /* @__PURE__ */ h("button", {
1773
+ id: e,
1774
+ disabled: a,
1775
+ onClick: s,
1776
+ className: p(Be.menuPicker, c),
1777
+ "data-testid": d,
1778
+ "data-selected": o ? "" : void 0,
1779
+ "aria-pressed": o,
1780
+ "aria-disabled": a,
1781
+ "aria-label": r,
1782
+ children: [/* @__PURE__ */ n("div", {
1783
+ className: Be.iconContainer,
1784
+ children: /* @__PURE__ */ n(t, {
1785
+ size: v.icon.size.md,
1786
+ stroke: v.icon.stroke.sm
1787
+ })
1788
+ }), m(r) && i && /* @__PURE__ */ n("div", {
1789
+ className: Be.label,
1790
+ "data-selected": o ? "" : void 0,
1791
+ "data-disabled": a ? "" : void 0,
1792
+ children: r
1793
+ })]
1794
+ })
1795
+ });
1796
+ }, _i = "_iconButton_19i33_1", vi = { iconButton: _i }, pi = ({ Icon: e, isActive: t, onClick: r, ariaLabel: o }) => {
1797
+ const a = R();
1798
+ return /* @__PURE__ */ n("button", {
1799
+ type: "button",
1800
+ className: vi.iconButton,
1801
+ "data-active": t ? "" : void 0,
1802
+ "aria-label": o,
1803
+ "aria-pressed": t,
1804
+ onClick: r,
1805
+ children: /* @__PURE__ */ n(e, {
1806
+ color: K.grayScale.gray10,
1807
+ size: a.icon.size.lg,
1808
+ "aria-hidden": !0
1809
+ })
1810
+ });
1811
+ }, fi = "_container_vsk1i_1", hi = { container: fi }, gs = ({ activeItemName: e, isHidden: t = !1, items: r }) => /* @__PURE__ */ n("nav", {
1812
+ className: hi.container,
1813
+ "data-hidden": t ? "" : void 0,
1814
+ "aria-hidden": t,
1815
+ children: r.map(({ Icon: o, name: a, label: i, onClick: s }) => /* @__PURE__ */ n(pi, {
1816
+ Icon: o,
1817
+ isActive: e === a,
1818
+ onClick: s,
1819
+ ariaLabel: i
1820
+ }, a))
1821
+ }), gi = "_button_quwcq_1", bi = { button: gi }, bs = ({ active: e = !1, className: t, children: r, startIcon: o, endIcon: a, badge: i, size: s = "sm", ...c }) => /* @__PURE__ */ n(G, {
1822
+ ...c,
1823
+ variant: "ghost",
1824
+ size: s,
1825
+ "data-active": e || void 0,
1826
+ className: Y(p(_r.tab, bi.button), t),
1827
+ children: /* @__PURE__ */ n(vr, {
1828
+ startIcon: o,
1829
+ endIcon: a,
1830
+ badge: i,
1831
+ children: r
1832
+ })
1833
+ });
1834
+ export {
1835
+ Vi as A,
1836
+ Zi as C,
1837
+ Xi as D,
1838
+ gn as E,
1839
+ Yi as O,
1840
+ es as S,
1841
+ bt as T,
1842
+ ns as _,
1843
+ ps as a,
1844
+ ts as b,
1845
+ us as c,
1846
+ cs as d,
1847
+ ss as f,
1848
+ Lo as g,
1849
+ os as h,
1850
+ fs as i,
1851
+ Ui as k,
1852
+ ds as l,
1853
+ as as m,
1854
+ gs as n,
1855
+ vs as o,
1856
+ is as p,
1857
+ hs as r,
1858
+ si as s,
1859
+ bs as t,
1860
+ ls as u,
1861
+ No as v,
1862
+ Qi as w,
1863
+ mo as x,
1864
+ rs as y
1865
+ };