@luscii-healthtech/web-ui 58.19.3 → 59.0.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 (276) hide show
  1. package/dist/esm/components/Accordion/AccordionItem.js +2 -2
  2. package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
  3. package/dist/esm/components/Avatar/Avatar.js +9 -29
  4. package/dist/esm/components/Avatar/Avatar.js.map +1 -1
  5. package/dist/esm/components/Avatar/AvatarGroup.js +2 -8
  6. package/dist/esm/components/Avatar/AvatarGroup.js.map +1 -1
  7. package/dist/esm/components/Badge/Badge.js +1 -3
  8. package/dist/esm/components/Badge/Badge.js.map +1 -1
  9. package/dist/esm/components/ButtonV2/ButtonV2.js +11 -10
  10. package/dist/esm/components/ButtonV2/ButtonV2.js.map +1 -1
  11. package/dist/esm/components/ButtonV2/PrimaryButton.js +1 -1
  12. package/dist/esm/components/ButtonV2/PrimaryButton.js.map +1 -1
  13. package/dist/esm/components/ButtonV2/SecondaryButton.js +1 -1
  14. package/dist/esm/components/ButtonV2/TertiaryButton.js +1 -1
  15. package/dist/esm/components/Card/Card.js +4 -4
  16. package/dist/esm/components/Card/Card.js.map +1 -1
  17. package/dist/esm/components/CenteredHero/CenteredHero.js +2 -2
  18. package/dist/esm/components/CenteredHero/CenteredHero.js.map +1 -1
  19. package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
  20. package/dist/esm/components/ConfirmationDialog/ConfirmationDialog.js +1 -1
  21. package/dist/esm/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -1
  22. package/dist/esm/components/ConfirmationDialog/ConfirmationDialogChoices.js +5 -13
  23. package/dist/esm/components/ConfirmationDialog/ConfirmationDialogChoices.js.map +1 -1
  24. package/dist/esm/components/ConfirmationDialog/ConfirmationDialogMessage.js +1 -1
  25. package/dist/esm/components/ConfirmationDialog/ConfirmationDialogMessage.js.map +1 -1
  26. package/dist/esm/components/ConfirmationDialog/ConfirmationDialogTitle.js +2 -2
  27. package/dist/esm/components/ConfirmationDialog/ConfirmationDialogTitle.js.map +1 -1
  28. package/dist/esm/components/DatePicker/DatePicker.js +2 -3
  29. package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
  30. package/dist/esm/components/EmptyListMessage/EmptyListMessage.js +1 -1
  31. package/dist/esm/components/EmptyListMessage/EmptyListMessage.js.map +1 -1
  32. package/dist/esm/components/FlyOutMenu/FlyOutMenu.js +3 -4
  33. package/dist/esm/components/FlyOutMenu/FlyOutMenu.js.map +1 -1
  34. package/dist/esm/components/InfoField/InfoField.js +1 -1
  35. package/dist/esm/components/InfoField/InfoField.js.map +1 -1
  36. package/dist/esm/components/Input/SearchInput.js.map +1 -1
  37. package/dist/esm/components/MediaPicker/ImageCategory.js +1 -1
  38. package/dist/esm/components/MediaPicker/ImageCategory.js.map +1 -1
  39. package/dist/esm/components/MediaPicker/MediaPicker.js +1 -1
  40. package/dist/esm/components/MediaPicker/MediaPicker.js.map +1 -1
  41. package/dist/esm/components/Modal/FullPageModal.js +2 -2
  42. package/dist/esm/components/Modal/FullPageModal.js.map +1 -1
  43. package/dist/esm/components/Modal/FullPageModalHeader.js +2 -3
  44. package/dist/esm/components/Modal/FullPageModalHeader.js.map +1 -1
  45. package/dist/esm/components/Modal/ModalBase.js +1 -1
  46. package/dist/esm/components/Modal/ModalBase.js.map +1 -1
  47. package/dist/esm/components/Modal/ModalFooter.js +3 -5
  48. package/dist/esm/components/Modal/ModalFooter.js.map +1 -1
  49. package/dist/esm/components/Modal/ModalHeader.js +2 -2
  50. package/dist/esm/components/Modal/ModalHeader.js.map +1 -1
  51. package/dist/esm/components/Page/CRUDPage.js +3 -7
  52. package/dist/esm/components/Page/CRUDPage.js.map +1 -1
  53. package/dist/esm/components/Page/Page.js +2 -2
  54. package/dist/esm/components/Page/Page.js.map +1 -1
  55. package/dist/esm/components/PaginationMenu/PaginationMenu.js +1 -1
  56. package/dist/esm/components/PaginationMenu/PaginationMenu.js.map +1 -1
  57. package/dist/esm/components/RangeCoverage/RangeCoverage.js +2 -2
  58. package/dist/esm/components/RangeCoverage/RangeCoverage.js.map +1 -1
  59. package/dist/esm/components/Section/Section.js.map +1 -1
  60. package/dist/esm/components/Section/SectionItemWithContent.js +1 -1
  61. package/dist/esm/components/Section/SectionItemWithContent.js.map +1 -1
  62. package/dist/esm/components/Section/subcomponents/SectionHeader.js +2 -2
  63. package/dist/esm/components/Section/subcomponents/SectionHeader.js.map +1 -1
  64. package/dist/esm/components/SettingsMenuButton/SettingsMenuButton.js +3 -3
  65. package/dist/esm/components/SettingsMenuButton/SettingsMenuButton.js.map +1 -1
  66. package/dist/esm/components/Switcher/SwitcherItem.js +1 -1
  67. package/dist/esm/components/Switcher/SwitcherItem.js.map +1 -1
  68. package/dist/esm/components/Table/TableBodyRowDataCell.js +2 -1
  69. package/dist/esm/components/Table/TableBodyRowDataCell.js.map +1 -1
  70. package/dist/esm/components/Tag/TagGroup.js +2 -3
  71. package/dist/esm/components/Tag/TagGroup.js.map +1 -1
  72. package/dist/esm/components/Text/Text.js +7 -15
  73. package/dist/esm/components/Text/Text.js.map +1 -1
  74. package/dist/esm/components/TextEditor/LinkTooltip.js +1 -1
  75. package/dist/esm/components/TextEditor/LinkTooltip.js.map +1 -1
  76. package/dist/esm/components/Timeline/TimelineHeader.js +2 -2
  77. package/dist/esm/components/Timeline/TimelineHeader.js.map +1 -1
  78. package/dist/esm/components/Timeline/TimelineStep.js +1 -1
  79. package/dist/esm/components/Timeline/TimelineStep.js.map +1 -1
  80. package/dist/esm/components/TimelineCard/TimelineCard.js +6 -8
  81. package/dist/esm/components/TimelineCard/TimelineCard.js.map +1 -1
  82. package/dist/esm/components/Title/PageTitle.js +1 -0
  83. package/dist/esm/components/Title/PageTitle.js.map +1 -1
  84. package/dist/esm/index.js +2 -20
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/system/Sizes.js.map +1 -1
  87. package/dist/index.development.js +668 -1139
  88. package/dist/index.development.js.map +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/index.js.map +1 -1
  91. package/dist/src/components/Avatar/Avatar.d.ts +9 -42
  92. package/dist/src/components/Badge/Badge.d.ts +0 -4
  93. package/dist/src/components/ButtonV2/ButtonProps.type.d.ts +0 -13
  94. package/dist/src/components/Card/Card.d.ts +2 -2
  95. package/dist/src/components/Checkbox/Checkbox.d.ts +2 -11
  96. package/dist/src/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +1 -1
  97. package/dist/src/components/DatePicker/DatePicker.d.ts +0 -10
  98. package/dist/src/components/EmptyListMessage/EmptyListMessage.d.ts +1 -5
  99. package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +0 -4
  100. package/dist/src/components/Input/SearchInput.d.ts +0 -11
  101. package/dist/src/components/Modal/FullPageModal.d.ts +0 -10
  102. package/dist/src/components/Modal/FullPageModalHeader.d.ts +0 -7
  103. package/dist/src/components/Modal/ModalFooter.d.ts +0 -17
  104. package/dist/src/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +0 -4
  105. package/dist/src/components/Page/CRUDPage.types.d.ts +0 -25
  106. package/dist/src/components/PaginationMenu/PaginationMenu.types.d.ts +5 -16
  107. package/dist/src/components/Section/Section.d.ts +0 -4
  108. package/dist/src/components/Table/Table.types.d.ts +6 -3
  109. package/dist/src/components/Tag/TagGroup.d.ts +1 -17
  110. package/dist/src/components/Text/Text.d.ts +0 -33
  111. package/dist/src/components/Timeline/TimelineHeader.d.ts +3 -3
  112. package/dist/src/components/TimelineCard/TimelineCard.d.ts +2 -21
  113. package/dist/src/components/Title/PageTitle.d.ts +1 -0
  114. package/dist/src/generated/components/Avatar/Avatar.d.ts +9 -42
  115. package/dist/src/generated/components/Badge/Badge.d.ts +0 -4
  116. package/dist/src/generated/components/ButtonV2/ButtonProps.type.d.ts +0 -13
  117. package/dist/src/generated/components/Card/Card.d.ts +2 -2
  118. package/dist/src/generated/components/Checkbox/Checkbox.d.ts +2 -11
  119. package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +1 -1
  120. package/dist/src/generated/components/DatePicker/DatePicker.d.ts +0 -10
  121. package/dist/src/generated/components/EmptyListMessage/EmptyListMessage.d.ts +1 -5
  122. package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +0 -4
  123. package/dist/src/generated/components/Input/SearchInput.d.ts +0 -11
  124. package/dist/src/generated/components/Modal/FullPageModal.d.ts +0 -10
  125. package/dist/src/generated/components/Modal/FullPageModalHeader.d.ts +0 -7
  126. package/dist/src/generated/components/Modal/ModalFooter.d.ts +0 -17
  127. package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +0 -4
  128. package/dist/src/generated/components/Page/CRUDPage.types.d.ts +0 -25
  129. package/dist/src/generated/components/PaginationMenu/PaginationMenu.types.d.ts +5 -16
  130. package/dist/src/generated/components/Section/Section.d.ts +0 -4
  131. package/dist/src/generated/components/Table/Table.types.d.ts +6 -3
  132. package/dist/src/generated/components/Tag/TagGroup.d.ts +1 -17
  133. package/dist/src/generated/components/Text/Text.d.ts +0 -33
  134. package/dist/src/generated/components/Timeline/TimelineHeader.d.ts +3 -3
  135. package/dist/src/generated/components/TimelineCard/TimelineCard.d.ts +2 -21
  136. package/dist/src/generated/components/Title/PageTitle.d.ts +1 -0
  137. package/dist/src/generated/index.d.ts +2 -11
  138. package/dist/src/generated/system/Sizes.d.ts +2 -5
  139. package/dist/src/index.d.ts +2 -11
  140. package/dist/src/system/Sizes.d.ts +2 -5
  141. package/dist/stories/AccordionListRecipe.stories.d.ts +1 -2
  142. package/dist/stories/ActionController.stories.d.ts +6 -6
  143. package/dist/stories/AsideLayout.stories.d.ts +6 -6
  144. package/dist/stories/Avatar.stories.d.ts +4 -9
  145. package/dist/stories/Badge.stories.d.ts +0 -1
  146. package/dist/stories/Box.stories.d.ts +2 -2
  147. package/dist/stories/DatePicker.stories.d.ts +0 -1
  148. package/dist/stories/DetailsDisclosure.stories.d.ts +1669 -1669
  149. package/dist/stories/Divider.stories.d.ts +12 -12
  150. package/dist/stories/FullPageModal.stories.d.ts +0 -11
  151. package/dist/stories/HoverIndicatorControl.stories.d.ts +6 -6
  152. package/dist/stories/LabeledDatePicker.stories.d.ts +0 -1
  153. package/dist/stories/ListRecipe.stories.d.ts +1 -2
  154. package/dist/stories/ModalDialog.stories.d.ts +3553 -3553
  155. package/dist/stories/NaturalLanguageForm.stories.d.ts +0 -4
  156. package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +18 -18
  157. package/dist/stories/PrimaryTabBar.stories.d.ts +44 -44
  158. package/dist/stories/Section.stories.d.ts +6 -6
  159. package/dist/stories/SplitViewLayout.stories.d.ts +6 -6
  160. package/dist/stories/StyledOrderedList.stories.d.ts +44 -44
  161. package/dist/stories/StyledUnorderedList.stories.d.ts +44 -44
  162. package/dist/stories/Tabs.stories.d.ts +6 -6
  163. package/dist/stories/Text.stories.d.ts +0 -20
  164. package/dist/stories/TextColors.stories.d.ts +0 -1
  165. package/dist/stories/TextLegacy.stories.d.ts +0 -3
  166. package/dist/stories/TimelineCard.stories.d.ts +0 -8
  167. package/dist/stories/TimelineCardLayout.stories.d.ts +6 -6
  168. package/dist/stories/VerticalMenu.stories.d.ts +6 -6
  169. package/dist/web-ui-tailwind.css +0 -127
  170. package/package.json +1 -7
  171. package/dist/esm/components/AccordionList/AccordionList.js +0 -74
  172. package/dist/esm/components/AccordionList/AccordionList.js.map +0 -1
  173. package/dist/esm/components/AccordionList/subcomponents/AccordionListActions.js +0 -8
  174. package/dist/esm/components/AccordionList/subcomponents/AccordionListActions.js.map +0 -1
  175. package/dist/esm/components/BaseList/BaseList.js +0 -28
  176. package/dist/esm/components/BaseList/BaseList.js.map +0 -1
  177. package/dist/esm/components/BaseList/BaseListEmptyState.js +0 -14
  178. package/dist/esm/components/BaseList/BaseListEmptyState.js.map +0 -1
  179. package/dist/esm/components/BaseList/BaseListHeader.js +0 -24
  180. package/dist/esm/components/BaseList/BaseListHeader.js.map +0 -1
  181. package/dist/esm/components/BaseList/BaseListIcon.js +0 -19
  182. package/dist/esm/components/BaseList/BaseListIcon.js.map +0 -1
  183. package/dist/esm/components/BaseList/BaseListItem.js +0 -40
  184. package/dist/esm/components/BaseList/BaseListItem.js.map +0 -1
  185. package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseList.js +0 -12
  186. package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseList.js.map +0 -1
  187. package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseListItem.js +0 -22
  188. package/dist/esm/components/BaseList/DraggableBaseList/DraggableBaseListItem.js.map +0 -1
  189. package/dist/esm/components/BaseList/ListSkeleton/ListItemSkeleton.js +0 -8
  190. package/dist/esm/components/BaseList/ListSkeleton/ListItemSkeleton.js.map +0 -1
  191. package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.js +0 -13
  192. package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.js.map +0 -1
  193. package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.scss.js +0 -5
  194. package/dist/esm/components/BaseList/ListSkeleton/ListSkeleton.scss.js.map +0 -1
  195. package/dist/esm/components/BaseList/SortableBaseList/SortableBaseList.js +0 -13
  196. package/dist/esm/components/BaseList/SortableBaseList/SortableBaseList.js.map +0 -1
  197. package/dist/esm/components/BaseList/SortableBaseList/SortableBaseListItem.js +0 -28
  198. package/dist/esm/components/BaseList/SortableBaseList/SortableBaseListItem.js.map +0 -1
  199. package/dist/esm/components/BaseList/utils.js +0 -29
  200. package/dist/esm/components/BaseList/utils.js.map +0 -1
  201. package/dist/esm/components/List/List.js +0 -125
  202. package/dist/esm/components/List/List.js.map +0 -1
  203. package/dist/esm/components/List/ListItem.js +0 -16
  204. package/dist/esm/components/List/ListItem.js.map +0 -1
  205. package/dist/esm/components/Radio/RadioV2.js +0 -19
  206. package/dist/esm/components/Radio/RadioV2.js.map +0 -1
  207. package/dist/esm/components/RadioGroup/RadioGroupV2.js +0 -22
  208. package/dist/esm/components/RadioGroup/RadioGroupV2.js.map +0 -1
  209. package/dist/esm/components/TextLink/TextLink.js +0 -19
  210. package/dist/esm/components/TextLink/TextLink.js.map +0 -1
  211. package/dist/esm/components/Title/Title.js +0 -51
  212. package/dist/esm/components/Title/Title.js.map +0 -1
  213. package/dist/src/components/AccordionList/AccordionList.d.ts +0 -54
  214. package/dist/src/components/AccordionList/subcomponents/AccordionListActions.d.ts +0 -18
  215. package/dist/src/components/BaseList/BaseList.d.ts +0 -7
  216. package/dist/src/components/BaseList/BaseList.types.d.ts +0 -88
  217. package/dist/src/components/BaseList/BaseListEmptyState.d.ts +0 -7
  218. package/dist/src/components/BaseList/BaseListHeader.d.ts +0 -4
  219. package/dist/src/components/BaseList/BaseListIcon.d.ts +0 -5
  220. package/dist/src/components/BaseList/BaseListItem.d.ts +0 -4
  221. package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +0 -4
  222. package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +0 -3
  223. package/dist/src/components/BaseList/DraggableBaseList/index.d.ts +0 -2
  224. package/dist/src/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +0 -2
  225. package/dist/src/components/BaseList/ListSkeleton/ListSkeleton.d.ts +0 -13
  226. package/dist/src/components/BaseList/SortableBaseList/SortableBaseList.d.ts +0 -4
  227. package/dist/src/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +0 -3
  228. package/dist/src/components/BaseList/SortableBaseList/index.d.ts +0 -2
  229. package/dist/src/components/BaseList/index.d.ts +0 -6
  230. package/dist/src/components/BaseList/utils.d.ts +0 -10
  231. package/dist/src/components/List/List.d.ts +0 -8
  232. package/dist/src/components/List/List.types.d.ts +0 -30
  233. package/dist/src/components/List/ListItem.d.ts +0 -4
  234. package/dist/src/components/List/index.d.ts +0 -5
  235. package/dist/src/components/Radio/RadioV2.d.ts +0 -23
  236. package/dist/src/components/RadioGroup/RadioGroupV2.d.ts +0 -23
  237. package/dist/src/components/TextLink/TextLink.d.ts +0 -14
  238. package/dist/src/components/Title/Title.d.ts +0 -44
  239. package/dist/src/generated/components/AccordionList/AccordionList.d.ts +0 -54
  240. package/dist/src/generated/components/AccordionList/subcomponents/AccordionListActions.d.ts +0 -18
  241. package/dist/src/generated/components/BaseList/BaseList.d.ts +0 -7
  242. package/dist/src/generated/components/BaseList/BaseList.types.d.ts +0 -88
  243. package/dist/src/generated/components/BaseList/BaseListEmptyState.d.ts +0 -7
  244. package/dist/src/generated/components/BaseList/BaseListHeader.d.ts +0 -4
  245. package/dist/src/generated/components/BaseList/BaseListIcon.d.ts +0 -5
  246. package/dist/src/generated/components/BaseList/BaseListItem.d.ts +0 -4
  247. package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +0 -4
  248. package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +0 -3
  249. package/dist/src/generated/components/BaseList/DraggableBaseList/index.d.ts +0 -2
  250. package/dist/src/generated/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +0 -2
  251. package/dist/src/generated/components/BaseList/ListSkeleton/ListSkeleton.d.ts +0 -13
  252. package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseList.d.ts +0 -4
  253. package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +0 -3
  254. package/dist/src/generated/components/BaseList/SortableBaseList/index.d.ts +0 -2
  255. package/dist/src/generated/components/BaseList/index.d.ts +0 -6
  256. package/dist/src/generated/components/BaseList/utils.d.ts +0 -10
  257. package/dist/src/generated/components/List/List.d.ts +0 -8
  258. package/dist/src/generated/components/List/List.types.d.ts +0 -30
  259. package/dist/src/generated/components/List/ListItem.d.ts +0 -4
  260. package/dist/src/generated/components/List/index.d.ts +0 -5
  261. package/dist/src/generated/components/Radio/RadioV2.d.ts +0 -23
  262. package/dist/src/generated/components/RadioGroup/RadioGroupV2.d.ts +0 -23
  263. package/dist/src/generated/components/TextLink/TextLink.d.ts +0 -14
  264. package/dist/src/generated/components/Title/Title.d.ts +0 -44
  265. package/dist/stories/AccordionList.stories.d.ts +0 -120
  266. package/dist/stories/BaseList.stories.d.ts +0 -16
  267. package/dist/stories/Checkbox.stories.d.ts +0 -61
  268. package/dist/stories/DraggableAccordionList.stories.d.ts +0 -11
  269. package/dist/stories/DraggableList.stories.d.ts +0 -9
  270. package/dist/stories/EmptyListMessage.stories.d.ts +0 -32
  271. package/dist/stories/List.stories.d.ts +0 -248
  272. package/dist/stories/RadioGroupV2.stories.d.ts +0 -37
  273. package/dist/stories/RadioV2.stories.d.ts +0 -42
  274. package/dist/stories/SortableList.stories.d.ts +0 -9
  275. package/dist/stories/TextLink.stories.d.ts +0 -10
  276. package/dist/stories/Title.stories.d.ts +0 -16
@@ -6,13 +6,9 @@ var React = require('react');
6
6
  var sonner = require('sonner');
7
7
  var DOMPurify = require('dompurify');
8
8
  var lodashEs = require('lodash-es');
9
- var core = require('@dnd-kit/core');
10
- var sortable = require('@dnd-kit/sortable');
11
- var tailwindMerge = require('tailwind-merge');
12
- var reactLazyLoadImageComponent = require('react-lazy-load-image-component');
13
- var utilities = require('@dnd-kit/utilities');
14
- var Tooltip$1 = require('@radix-ui/react-tooltip');
15
9
  var ReactModal = require('react-modal');
10
+ var Tooltip$1 = require('@radix-ui/react-tooltip');
11
+ var tailwindMerge = require('tailwind-merge');
16
12
  var ReactDatePicker = require('react-datepicker');
17
13
  var enGB = require('date-fns/locale/en-GB');
18
14
  var nl = require('date-fns/locale/nl');
@@ -28,6 +24,7 @@ var PropTypes = require('prop-types');
28
24
  var ReactSelect = require('react-select');
29
25
  var Creatable = require('react-select/creatable');
30
26
  var RadixSwitch = require('@radix-ui/react-switch');
27
+ var reactLazyLoadImageComponent = require('react-lazy-load-image-component');
31
28
  var react = require('@tiptap/react');
32
29
  var StarterKit = require('@tiptap/starter-kit');
33
30
  var extensionMention = require('@tiptap/extension-mention');
@@ -59,8 +56,8 @@ function _interopNamespace(e) {
59
56
  var classNames__default = /*#__PURE__*/_interopDefault(classNames);
60
57
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
61
58
  var DOMPurify__default = /*#__PURE__*/_interopDefault(DOMPurify);
62
- var Tooltip__namespace = /*#__PURE__*/_interopNamespace(Tooltip$1);
63
59
  var ReactModal__default = /*#__PURE__*/_interopDefault(ReactModal);
60
+ var Tooltip__namespace = /*#__PURE__*/_interopNamespace(Tooltip$1);
64
61
  var ReactDatePicker__default = /*#__PURE__*/_interopDefault(ReactDatePicker);
65
62
  var FlyOutMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(FlyOutMenuPrimitive);
66
63
  var RadixHC__namespace = /*#__PURE__*/_interopNamespace(RadixHC);
@@ -74,46 +71,6 @@ var StarterKit__default = /*#__PURE__*/_interopDefault(StarterKit);
74
71
  var ToggleGroup__namespace = /*#__PURE__*/_interopNamespace(ToggleGroup);
75
72
  var d3__namespace = /*#__PURE__*/_interopNamespace(d3);
76
73
 
77
- const SIZES = {
78
- none: "0",
79
- /**
80
- * Represents the tiny size of 4px.
81
- */
82
- xxxxs: "4px",
83
- /**
84
- * Represents a very extra extra small size of 6px.
85
- */
86
- xxxs: "6px",
87
- /**
88
- * Represents an extra extra small size of 8px.
89
- */
90
- xxs: "8px",
91
- /**
92
- * Represents an extra small size of 10px.
93
- */
94
- xs: "10px",
95
- /**
96
- * Represents a small size of 12px.
97
- */
98
- s: "12px",
99
- /**
100
- * Represents a medium size of 16px.
101
- */
102
- m: "16px",
103
- /**
104
- * Represents a large size of 24px.
105
- */
106
- l: "24px",
107
- /**
108
- * Represents an extra large size of 32px.
109
- */
110
- xl: "32px",
111
- /**
112
- * Represents an extra extra large size of 32px.
113
- */
114
- xxl: "32px"
115
- };
116
-
117
74
  /******************************************************************************
118
75
  Copyright (c) Microsoft Corporation.
119
76
 
@@ -229,8 +186,8 @@ function styleInject(css, ref) {
229
186
  }
230
187
  }
231
188
 
232
- var css_248z$b = "/* https://stackoverflow.com/a/13924997 */\n.ui\\:text-two-lines-max {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n /* number of lines to show */\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n";
233
- styleInject(css_248z$b);
189
+ var css_248z$a = "/* https://stackoverflow.com/a/13924997 */\n.ui\\:text-two-lines-max {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n /* number of lines to show */\n -webkit-line-clamp: 2;\n line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n";
190
+ styleInject(css_248z$a);
234
191
 
235
192
  const newVariants = /* @__PURE__ */ new Set([
236
193
  "body-base-light",
@@ -321,15 +278,11 @@ const allowedHoverColors = {
321
278
  "blue-900": "ui:hover:text-primary-dark",
322
279
  white: "ui:hover:text-white"
323
280
  };
324
- const allowedGroupHoverColors = {
325
- "blue-900": "ui:group-hover:text-primary-dark",
326
- white: "ui:group-hover:text-white"
327
- };
328
281
  const DEFAULT_ELEMENT = "span";
329
282
  const Text = (props) => {
330
- var _a, _b, _c;
283
+ var _a, _b;
331
284
  if (isNewVariant(props.variant)) {
332
- const _d = props, { as, variant: variant2, color: color2 = "neutral", truncate: truncate2, containsDangerousHtml: containsDangerousHtml2, children: children2, className: className2 } = _d, rest2 = __rest(_d, ["as", "variant", "color", "truncate", "containsDangerousHtml", "children", "className"]);
285
+ const _c = props, { as, variant: variant2, color: color2 = "neutral", truncate: truncate2, containsDangerousHtml: containsDangerousHtml2, children: children2, className: className2 } = _c, rest2 = __rest(_c, ["as", "variant", "color", "truncate", "containsDangerousHtml", "children", "className"]);
333
286
  const Element2 = as !== null && as !== void 0 ? as : DEFAULT_ELEMENT;
334
287
  const newClassName = classNames__default.default(newVariantClasses[variant2], newTextColorClasses[color2], {
335
288
  "ui:truncate": truncate2
@@ -341,22 +294,18 @@ const Text = (props) => {
341
294
  }
342
295
  return jsxRuntime.jsx(Element2, Object.assign({ className: newClassName }, rest2, { children: children2 }));
343
296
  }
344
- const _e = props, { as: Element = props.inline ? "span" : "p", children, text, type, variant = "base", inline, color = "base", hoverColor, hoverInGroup, className, containsDangerousHtml, truncate, clampLines, capitalize } = _e, rest = __rest(_e, ["as", "children", "text", "type", "variant", "inline", "color", "hoverColor", "hoverInGroup", "className", "containsDangerousHtml", "truncate", "clampLines", "capitalize"]);
345
- const resolvedVariant = type !== null && type !== void 0 ? type : variant;
346
- const selectedHoverColor = hoverColor && !hoverInGroup && allowedHoverColors[hoverColor];
347
- const selectedGroupHoverColor = hoverColor && hoverInGroup && allowedGroupHoverColors[hoverColor];
297
+ const _d = props, { as: Element = "p", children, variant = "base", color = "base", hoverColor, className, containsDangerousHtml, truncate, clampLines, capitalize } = _d, rest = __rest(_d, ["as", "children", "variant", "color", "hoverColor", "className", "containsDangerousHtml", "truncate", "clampLines", "capitalize"]);
298
+ const selectedHoverColor = hoverColor && allowedHoverColors[hoverColor];
348
299
  const containerProps = {
349
300
  className: classNames__default.default(
350
301
  // apply different style classes
351
302
  // for now we stick with ui:font-size 16px on the body
352
303
  // so I am adjusting our styles accordingly (one step down)
353
- allowedTextStyles[resolvedVariant !== null && resolvedVariant !== void 0 ? resolvedVariant : "base"],
304
+ allowedTextStyles[variant],
354
305
  allowedColors[color !== null && color !== void 0 ? color : "base"],
355
306
  selectedHoverColor,
356
- selectedGroupHoverColor,
357
307
  "leading-6 sm:leading-5",
358
308
  {
359
- "ui:inline": inline,
360
309
  // FIXME: this class doesn't do anything without a ui:max-width
361
310
  "ui:truncate": truncate,
362
311
  "ui:text-two-lines-max": clampLines,
@@ -368,8 +317,8 @@ const Text = (props) => {
368
317
  )
369
318
  };
370
319
  return containsDangerousHtml ? jsxRuntime.jsx(Element, Object.assign({}, rest, containerProps, { dangerouslySetInnerHTML: {
371
- __html: children ? DOMPurify__default.default.sanitize((_b = children === null || children === void 0 ? void 0 : children.toString()) !== null && _b !== void 0 ? _b : "") : (_c = DOMPurify__default.default.sanitize(text !== null && text !== void 0 ? text : "")) !== null && _c !== void 0 ? _c : ""
372
- } })) : jsxRuntime.jsx(Element, Object.assign({}, rest, containerProps, { children: children !== null && children !== void 0 ? children : text }));
320
+ __html: DOMPurify__default.default.sanitize((_b = children === null || children === void 0 ? void 0 : children.toString()) !== null && _b !== void 0 ? _b : "")
321
+ } })) : jsxRuntime.jsx(Element, Object.assign({}, rest, containerProps, { children }));
373
322
  };
374
323
 
375
324
  const IconWrapper$1 = (SVGComponent) => (_a) => {
@@ -1147,50 +1096,15 @@ toast.info = (message) => {
1147
1096
  showToaster({ message, type: "success", showIcon: true, title: "" });
1148
1097
  };
1149
1098
 
1150
- var css_248z$a = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n/**\n * Avenir is NOT declared here. The library does not ship font files, so any\n * `@font-face` written against a path in this repo resolves against the\n * consuming app's document and 404s there. Providing the typeface is the\n * consumer's responsibility; this rule only names it.\n */\n.title-avenir {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}\n\n.title-inter {\n font-family: \"Inter\", \"Roboto\", \"Helvetica\", sans-serif;\n}";
1151
- styleInject(css_248z$a);
1152
-
1153
- const Title = (props) => {
1154
- const { variant: variantFromProps = "base", type, className, text, children, color, level, ref } = props, rest = __rest(props, ["variant", "type", "className", "text", "children", "color", "level", "ref"]);
1155
- const variant = type ? type : variantFromProps;
1156
- const isSmallTitle = variant === "xs" || variant === "sm";
1157
- const containerClassName = classNames__default.default("ui:font-bold ui:leading-inherit ui:antialiased", allowedColors[color !== null && color !== void 0 ? color : "base"], {
1158
- "title-inter": isSmallTitle,
1159
- "title-avenir": !isSmallTitle
1160
- //this is used to load the correct font from the css
1161
- }, {
1162
- "ui:text-base": variant === "xs",
1163
- "ui:text-xl": variant === "sm",
1164
- "ui:text-2xl": variant === "base",
1165
- "ui:text-3xl": variant === "lg",
1166
- "ui:text-4xl ": variant === "xl",
1167
- "ui:text-6xl ": variant === "2xl"
1168
- }, className);
1169
- let ContainerElement;
1170
- switch (variant) {
1171
- case "sm":
1172
- ContainerElement = "h5";
1173
- break;
1174
- case "base":
1175
- ContainerElement = "h4";
1176
- break;
1177
- case "lg":
1178
- ContainerElement = "h3";
1179
- break;
1180
- case "xl":
1181
- ContainerElement = "h2";
1182
- break;
1183
- case "2xl":
1184
- ContainerElement = "h1";
1185
- break;
1186
- default:
1187
- ContainerElement = "h4";
1188
- break;
1189
- }
1190
- if (level) {
1191
- ContainerElement = `h${level}`;
1192
- }
1193
- return jsxRuntime.jsx(ContainerElement, Object.assign({ className: containerClassName, ref }, rest, { children: text !== null && text !== void 0 ? text : children }));
1099
+ const variantClasses = {
1100
+ h1: "ui-typo-h1 ui:text-text-brand-primary-default",
1101
+ h2: "ui-typo-h2 ui:text-text-neutral-primary-default",
1102
+ h3: "ui-typo-h3 ui:text-text-neutral-primary-default",
1103
+ h4: "ui-typo-h4 ui:text-text-neutral-primary-default"
1104
+ };
1105
+ const Heading = (_a) => {
1106
+ var { as: Element = "h2", variant = "h2", className, children } = _a, rest = __rest(_a, ["as", "variant", "className", "children"]);
1107
+ return jsxRuntime.jsx(Element, Object.assign({ className: classNames__default.default(variantClasses[variant], className) }, rest, { children }));
1194
1108
  };
1195
1109
 
1196
1110
  const AccordionItem = ({ id, title, content, isCollapsedByDefault = false, onClosed, onOpened }) => {
@@ -1206,7 +1120,7 @@ const AccordionItem = ({ id, title, content, isCollapsedByDefault = false, onClo
1206
1120
  const Chevron = isCollapsed ? ChevronRightIcon : ChevronDownIcon;
1207
1121
  return jsxRuntime.jsxs("li", { className: "ui:border-b ui:border-slate-200 ui:bg-white ui:last:border-b-0", "data-test-id": id, children: [jsxRuntime.jsxs("div", { onClick: toggleCollapsed, className: classNames__default.default("ui:flex ui:w-full ui:select-none ui:flex-row ui:space-x-4 ui:p-4", "ui:cursor-pointer ui:transition-colors ui:duration-300 ui:ease-in-out ui:hover:bg-blue-50", {
1208
1122
  "ui:border-b ui:border-slate-200": !isCollapsed
1209
- }), children: [jsxRuntime.jsx(Chevron, { className: "ui:shrink-0 ui:self-center ui:text-slate-500" }), lodashEs.isString(title) ? jsxRuntime.jsx(Title, { variant: "xs", children: title }) : title] }), jsxRuntime.jsx("div", { className: classNames__default.default({ "ui:hidden": isCollapsed }), children: content })] });
1123
+ }), children: [jsxRuntime.jsx(Chevron, { className: "ui:shrink-0 ui:self-center ui:text-slate-500" }), lodashEs.isString(title) ? jsxRuntime.jsx(Heading, { variant: "h4", as: "h4", children: title }) : title] }), jsxRuntime.jsx("div", { className: classNames__default.default({ "ui:hidden": isCollapsed }), children: content })] });
1210
1124
  };
1211
1125
 
1212
1126
  const Accordion = ({ dataTestId, isCollapsedByDefault = false, items, className, footer }) => {
@@ -1217,27 +1131,6 @@ const Accordion = ({ dataTestId, isCollapsedByDefault = false, items, className,
1217
1131
  }), footer && jsxRuntime.jsx("li", { className: "ui:p-4", children: footer })] });
1218
1132
  };
1219
1133
 
1220
- const isSubstring = (string, searchTerm, caseSensitive = false) => {
1221
- const trueString = typeof string !== "string" ? JSON.stringify(string) : string;
1222
- const stringToSearch = caseSensitive ? trueString : trueString === null || trueString === void 0 ? void 0 : trueString.toLowerCase();
1223
- const searchTermWithCase = caseSensitive ? searchTerm : searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.toLowerCase();
1224
- return (stringToSearch === null || stringToSearch === void 0 ? void 0 : stringToSearch.indexOf(searchTermWithCase)) > -1;
1225
- };
1226
-
1227
- var css_248z$9 = ".list-skeleton .skeleton-box {\n display: inline-block;\n height: 1em;\n position: relative;\n overflow: hidden;\n background-color: #cbd5e1;\n border-radius: 3px;\n}\n.list-skeleton .skeleton-box::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));\n animation: shimmer 800ms infinite;\n content: \"\";\n}\n.list-skeleton .skeleton-box.is-circle {\n border-radius: 50%;\n}\n.list-skeleton .skeleton-box.is-button::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transform: translateX(-100%);\n background-image: linear-gradient(90deg, rgba(221, 221, 221, 0) 0, rgba(221, 221, 221, 0.2) 20%, rgba(221, 221, 221, 0.5) 60%, rgba(221, 221, 221, 0));\n animation: shimmer 800ms infinite;\n content: \"\";\n}\n@keyframes shimmer {\n 100% {\n transform: translateX(100%);\n }\n}";
1228
- styleInject(css_248z$9);
1229
-
1230
- const ListItemSkeleton = () => {
1231
- return jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-row ui:items-center ui:p-4", children: [jsxRuntime.jsx("div", { className: "skeleton-box is-circle ui:mr-2", style: { width: `${32}px`, height: `${32}px` } }), jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-col", children: [jsxRuntime.jsx("div", { className: "skeleton-box ui:mb-1", style: { width: `${160}px`, height: `${14}px` } }), jsxRuntime.jsx("div", { className: "skeleton-box", style: { width: `${110}px`, height: `${14}px` } })] }), jsxRuntime.jsx("div", { className: "skeleton-box is-button ui:ml-auto ui:rounded-full", style: { width: `${24}px`, height: `${24}px` } })] });
1232
- };
1233
-
1234
- const ListSkeleton = ({ items, "aria-label": ariaLabel = "Loading", dataTestId = "list-skeleton" }) => {
1235
- const skeletonItems = Array.from({ length: items || 5 }, (_, i) => {
1236
- return jsxRuntime.jsx(ListItemSkeleton, {}, i);
1237
- });
1238
- return jsxRuntime.jsxs("div", { "data-test-id": dataTestId, className: "list-skeleton ui:flex ui:flex-col ui:divide-y ui:divide-slate-200 ui:rounded-2xl ui:border ui:border-slate-50 ui:bg-white ui:shadow", role: "progressbar", "aria-label": ariaLabel, children: [jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-row ui:items-center ui:px-4 ui:py-2", children: [jsxRuntime.jsx("div", { className: "skeleton-box", style: { width: `${160}px`, height: `${14}px` } }), jsxRuntime.jsx("div", { className: "skeleton-box is-button ui:ml-auto ui:bg-slate-200 ui:radius-xxs", style: { width: `${110}px`, height: `${36}px` } })] }), skeletonItems] });
1239
- };
1240
-
1241
1134
  const ELEVATION = {
1242
1135
  surface: "none",
1243
1136
  base: "0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",
@@ -1305,6 +1198,46 @@ const createShadowClassName = (elevation, options) => {
1305
1198
  }, transitionClassName);
1306
1199
  };
1307
1200
 
1201
+ const SIZES = {
1202
+ none: "0",
1203
+ /**
1204
+ * Represents the tiny size of 4px.
1205
+ */
1206
+ xxxxs: "4px",
1207
+ /**
1208
+ * Represents a very extra extra small size of 6px.
1209
+ */
1210
+ xxxs: "6px",
1211
+ /**
1212
+ * Represents an extra extra small size of 8px.
1213
+ */
1214
+ xxs: "8px",
1215
+ /**
1216
+ * Represents an extra small size of 10px.
1217
+ */
1218
+ xs: "10px",
1219
+ /**
1220
+ * Represents a small size of 12px.
1221
+ */
1222
+ s: "12px",
1223
+ /**
1224
+ * Represents a medium size of 16px.
1225
+ */
1226
+ m: "16px",
1227
+ /**
1228
+ * Represents a large size of 24px.
1229
+ */
1230
+ l: "24px",
1231
+ /**
1232
+ * Represents an extra large size of 32px.
1233
+ */
1234
+ xl: "32px",
1235
+ /**
1236
+ * Represents an extra extra large size of 32px.
1237
+ */
1238
+ xxl: "32px"
1239
+ };
1240
+
1308
1241
  const createRadiusClassName = (borderRadius) => {
1309
1242
  if (!borderRadius || !SIZES[borderRadius]) {
1310
1243
  return "";
@@ -1427,551 +1360,54 @@ const BoxInner = (props, ref) => {
1427
1360
  };
1428
1361
  const Box = React__namespace.default.forwardRef(BoxInner);
1429
1362
 
1430
- const StackInner = (props, ref) => {
1431
- const { children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
1432
- const stackClasses = classNames__default.default(`ui:flex`, {
1433
- "ui:flex-row": axis === "x",
1434
- "ui:flex-col": axis === "y",
1435
- "ui:flex-row-reverse": axis === "x" && reverse,
1436
- "ui:flex-col-reverse": axis === "y" && reverse,
1437
- "ui:flex-wrap": wrap,
1438
- "ui:gap-f_none": _gap === "none",
1439
- "ui:gap-f_xs": _gap === "xs",
1440
- "ui:gap-f_s": _gap === "s",
1441
- "ui:gap-f_base": _gap === "base",
1442
- "ui:gap-f_m": _gap === "m",
1443
- "ui:gap-f_l": _gap === "l",
1444
- "ui:gap-f_xl": _gap === "xl",
1445
- "ui:gap-f_2xl": _gap === "2xl",
1446
- "ui:gap-f_3xl": _gap === "3xl",
1447
- "ui:gap-f_4xl": _gap === "4xl",
1448
- "ui:justify-center": justify === "center",
1449
- "ui:justify-start": justify === "start",
1450
- "ui:justify-end": justify === "end",
1451
- "ui:justify-normal": justify === "normal",
1452
- "ui:justify-between": justify === "between",
1453
- "ui:justify-around": justify === "around",
1454
- "ui:justify-evenly": justify === "evenly",
1455
- "ui:justify-stretch": justify === "stretch",
1456
- "ui:items-center": align === "center",
1457
- "ui:items-start": align === "start",
1458
- "ui:items-end": align === "end",
1459
- "ui:items-baseline": align === "baseline",
1460
- "ui:items-stretch": align === "stretch",
1461
- "ui:items-normal": align === "normal"
1462
- });
1463
- const classes = tailwindMerge.twMerge(stackClasses, className);
1464
- if (divider) {
1465
- const numberOfChildNodes = React__namespace.default.Children.toArray(children).length;
1466
- return (
1467
- // @ts-expect-error - Complex polymorphic type intersection between Stack and Box props
1468
- jsxRuntime.jsx(Box, Object.assign({ as, ref, className: classes }, attributes, { children: React__namespace.default.Children.map(children, (child, index) => {
1469
- const isLastItem = index >= numberOfChildNodes - 1;
1470
- if (React__namespace.default.isValidElement(child) === false) {
1471
- return null;
1472
- }
1473
- if (isLastItem) {
1474
- return child;
1475
- }
1476
- return jsxRuntime.jsxs(React__namespace.default.Fragment, { children: [child, divider] });
1477
- }) }))
1478
- );
1479
- }
1480
- return (
1481
- // @ts-expect-error - Complex polymorphic type intersection between Stack and Box props
1482
- jsxRuntime.jsx(Box, Object.assign({ as, ref, className: classes }, attributes, { children }))
1483
- );
1484
- };
1485
- const Stack = React__namespace.default.forwardRef(StackInner);
1486
-
1487
- const BaseListHeader = ({ title, subtitle, button, headerAccessory, transparent, withBorder }) => {
1488
- const hasHeaderComponent = Boolean(button || headerAccessory);
1489
- return jsxRuntime.jsxs("div", { "data-test-id": "base-list-header", className: classNames__default.default("ui:flex ui:flex-row ui:items-center ui:space-x-4 ui:rounded-t-2xl", {
1490
- "ui:py-4": !hasHeaderComponent || subtitle,
1491
- "ui:py-2": hasHeaderComponent && !subtitle,
1492
- "ui:border-slate-300 ui:bg-white ui:px-4": !transparent,
1493
- "ui:border-b ui:border-b-slate-200": !transparent && !withBorder,
1494
- "ui:border ui:border-b-0": withBorder && !transparent,
1495
- "ui:mb-px": transparent,
1496
- "ui:justify-between": title && hasHeaderComponent,
1497
- "ui:justify-start": title && !hasHeaderComponent,
1498
- "ui:justify-end": !title && hasHeaderComponent
1499
- }), children: [jsxRuntime.jsxs(Stack, { children: [typeof title === "string" && jsxRuntime.jsx(Title, { variant: "xs", children: title }), title && typeof title === "object" && jsxRuntime.jsx(Title, Object.assign({ variant: "xs" }, title)), subtitle && jsxRuntime.jsx(Text, { variant: "sm", color: "on-surface-variant", children: subtitle })] }), button && jsxRuntime.jsx("div", { className: "ui:space-x-3", children: React__namespace.default.createElement(button.buttonType, button.buttonProps) }), headerAccessory && jsxRuntime.jsx("div", { className: "ui:space-x-3", children: headerAccessory })] });
1500
- };
1501
-
1502
- const BaseListEmptyState = ({ message, roundTop, withBorder }) => {
1503
- const className = classNames__default.default("ui:p-4 ui:bg-white ui:rounded-b-2xl", {
1504
- "ui:rounded-t-2xl": roundTop,
1505
- "ui:border-slate-300 ui:border": withBorder
1506
- });
1507
- return jsxRuntime.jsx("div", { className, children: jsxRuntime.jsx(Text, { children: message }) });
1363
+ const Content$3 = (_a) => {
1364
+ var { container, children, className, backgroundColor } = _a, contentProps = __rest(_a, ["container", "children", "className", "backgroundColor"]);
1365
+ const getBackgroundColor = () => {
1366
+ switch (backgroundColor) {
1367
+ case "transparent":
1368
+ return void 0;
1369
+ default:
1370
+ return backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : "secondary-background";
1371
+ }
1372
+ };
1373
+ const getArrowBackgroundColor = () => {
1374
+ switch (backgroundColor) {
1375
+ case "transparent":
1376
+ return "ui:fill-transparent";
1377
+ default:
1378
+ return "ui:fill-secondary-background";
1379
+ }
1380
+ };
1381
+ return jsxRuntime.jsx(Tooltip__namespace.Portal, { container, children: jsxRuntime.jsxs(Tooltip__namespace.Content, Object.assign({ className: classNames__default.default(className, "ui:max-w-55", "ui:z-20", "ui:data-[state=delayed-open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=delayed-open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=delayed-open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2"), sideOffset: 4 }, contentProps, { children: [jsxRuntime.jsx(Box, { backgroundColor: getBackgroundColor(), _px: "l", _py: "m", borderRadius: "xxxxs", children }), jsxRuntime.jsx(Tooltip__namespace.Arrow, { width: 8, height: 8, className: getArrowBackgroundColor() })] })) });
1508
1382
  };
1509
-
1510
- const Icon = (_a) => {
1511
- var { name } = _a, iconProps = __rest(_a, ["name"]);
1512
- return React__namespace.default.createElement(Icons[name], iconProps);
1383
+ Content$3.displayName = "Tooltip.Content";
1384
+ const Root$2 = (props) => jsxRuntime.jsx(Tooltip__namespace.Root, Object.assign({}, props));
1385
+ Root$2.displayName = "Tooltip.Root";
1386
+ const TooltipText = (props) => {
1387
+ return jsxRuntime.jsx(Text, Object.assign({ color: "on-secondary", as: "span" }, props));
1513
1388
  };
1514
- const IconComponentOrKey = (props) => {
1515
- const { name } = props, iconProps = __rest(props, ["name"]);
1516
- if (isIconKey(name)) {
1517
- return jsxRuntime.jsx(Icon, Object.assign({ name }, iconProps));
1518
- }
1519
- return React__namespace.default.createElement(name, iconProps);
1389
+ TooltipText.displayName = "Tooltip.Text";
1390
+ const Tooltip = {
1391
+ Content: Content$3,
1392
+ Root: Root$2,
1393
+ Trigger: Tooltip__namespace.Trigger,
1394
+ Text: TooltipText
1520
1395
  };
1521
- function isIconKey(key) {
1522
- if (typeof key === "string") {
1523
- return key in Icons;
1524
- }
1525
- return false;
1526
- }
1527
-
1528
- const DragHandle = React.forwardRef((_a, ref) => {
1529
- var { dataTestId, className: classes, grabbing, disabled = false, label = "Drag to reorder" } = _a, props = __rest(_a, ["dataTestId", "className", "grabbing", "disabled", "label"]);
1530
- const className = classNames__default.default(classes, "ui:py-2 ui:focus:outline-primary", {
1531
- "ui:cursor-grab": !grabbing && !disabled,
1532
- "ui:cursor-grabbing ui:shadow-sm ui:bg-slate-200": grabbing && !disabled,
1533
- "ui:hover:bg-slate-200 ui:hover:shadow-sm ui:transition ui:duration-200 ui:rounded": !disabled,
1534
- "ui:cursor-not-allowed": disabled
1535
- });
1536
- return jsxRuntime.jsx("button", Object.assign({ ref, "aria-label": label }, props, { tabIndex: 0, className, "data-test-id": dataTestId !== null && dataTestId !== void 0 ? dataTestId : "dragHandle", children: jsxRuntime.jsx(Icon, { name: "DragIndicatorIcon", className: disabled ? "ui:text-slate-300" : "ui:text-slate-400" }) }));
1537
- });
1538
1396
 
1539
- var img$7 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3e%3cpath d='M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.9 10.98L8 13.51L11.1 9.52C11.3 9.26 11.7 9.26 11.9 9.53L15.41 14.21C15.66 14.54 15.42 15.01 15.01 15.01H3.02C2.6 15.01 2.37 14.53 2.63 14.2L5.12 11C5.31 10.74 5.69 10.73 5.9 10.98Z' fill='%23D1D5DB'/%3e%3c/svg%3e";
1540
-
1541
- const ImageInner = (_a) => {
1542
- var { src, alt = "", className, children = null, onClick, showIconOnFailure = true, wrapperClassName } = _a, otherProps = __rest(_a, ["src", "alt", "className", "children", "onClick", "showIconOnFailure", "wrapperClassName"]);
1543
- const [isError, setIsError] = React.useState(false);
1544
- if (!src || isError) {
1545
- if (children) {
1546
- return jsxRuntime.jsx("span", { onClick, children });
1547
- }
1548
- if (!showIconOnFailure) {
1549
- return null;
1550
- }
1551
- }
1552
- return jsxRuntime.jsx(reactLazyLoadImageComponent.LazyLoadImage, Object.assign({ className: classNames__default.default(className), effect: "blur", useIntersectionObserver: true, placeholder: jsxRuntime.jsx("div", { className: "ui:flex ui:h-full ui:w-full ui:flex-row ui:items-center ui:justify-center ui:rounded", children: jsxRuntime.jsx("img", { src: img$7, alt: "image-icon" }) }), src, alt, onClick, onError: () => setIsError(true), wrapperClassName }, otherProps));
1553
- };
1554
- var Image$1 = reactLazyLoadImageComponent.trackWindowScroll(ImageInner);
1555
-
1556
- const BaseListIcon = ({ icon, onAssetLoadError }) => {
1557
- const [loadIconError, setLoadIconError] = React.useState(false);
1558
- function onListItemIconLoadError() {
1559
- setLoadIconError(true);
1560
- onAssetLoadError === null || onAssetLoadError === void 0 ? void 0 : onAssetLoadError();
1561
- }
1562
- function onListItemIconLoad() {
1563
- setLoadIconError(false);
1564
- }
1565
- return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && React__namespace.default.isValidElement(icon) && icon, icon && typeof icon === "function" && React__namespace.default.createElement(icon, { className: "ui:w-6 ui:h-6" }), !loadIconError && icon && typeof icon === "string" && jsxRuntime.jsx(Image$1, { src: icon, "data-chromatic": "ignore", alt: "list-item-icon", className: "ui:h-6 ui:w-6 ui:text-sm", onLoad: onListItemIconLoad, onError: onListItemIconLoadError }), loadIconError && jsxRuntime.jsx(ImageIcon, { className: "ui:h-6 ui:w-6 ui:text-slate-300" })] });
1566
- };
1567
-
1568
- function createAssetLoadError(payload, callback) {
1569
- return () => {
1570
- console.error(Object.assign({ message: "Url from icon failed to load, please check the props passed to `ListItem`." }, payload));
1571
- callback === null || callback === void 0 ? void 0 : callback(payload);
1572
- };
1573
- }
1574
- const BaseListItem = React__namespace.default.forwardRef(({ itemId, title, tooltipId, roundTop, roundBottom = true, isDraggable, isSelected, subtitle, accessories, onlyShowAccessoriesOnHover, icon, onClick, handleItemClick, onAssetLoadError, dataTestId, renderDragHandle, withBorder, htmlProps, className: classNameProp, __isNested }, ref) => {
1575
- const clickHandler = onClick !== null && onClick !== void 0 ? onClick : handleItemClick;
1576
- const className = classNames__default.default("ui:group", "ui:flex ui:flex-row ui:items-center ui:space-x-4 ui:bg-white", "ui:px-4 ui:border-b ui:border-slate-200", {
1577
- "ui:first:rounded-t-2xl": roundTop,
1578
- "ui:last:rounded-b-2xl": roundBottom,
1579
- "ui:cursor-pointer": clickHandler,
1580
- "ui:hover:bg-blue-50 ui:transition-colors ui:ease-in-out ui:duration-300": clickHandler,
1581
- "ui:last:border-b-0": !withBorder,
1582
- "ui:first:border-t ui:border-l ui:border-r": withBorder,
1583
- // Nested padding calculated as 3x medium spacing and 2x large spacing (size of our icons)
1584
- "ui:pl-[calc(3*theme('spacing.m')+2*theme('spacing.l'))]": __isNested
1585
- }, classNameProp);
1586
- return jsxRuntime.jsxs("li", Object.assign({ className, "data-id": itemId, "data-tip": itemId, "data-for": tooltipId, "data-test-id": dataTestId || `base-list-item-${itemId}`, onClick: clickHandler }, htmlProps, { ref, children: [isDraggable && (renderDragHandle ? renderDragHandle() : jsxRuntime.jsx(DragHandle, { grabbing: false })), __isNested && jsxRuntime.jsx(Box, { width: "xxs", backgroundColor: "primary", className: "ui:self-stretch" }), icon && jsxRuntime.jsx(BaseListIcon, { icon, onAssetLoadError: createAssetLoadError({
1587
- itemId,
1588
- title,
1589
- subtitle,
1590
- icon
1591
- }, onAssetLoadError) }), jsxRuntime.jsxs("div", { className: "ui:py-4", children: [typeof title === "string" ? jsxRuntime.jsx(Text, { variant: isSelected ? "strong" : "base", children: title }) : title, subtitle && (typeof subtitle === "string" ? jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", children: subtitle }) : subtitle)] }), jsxRuntime.jsx("div", { className: "ui:grow" }), jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", align: "center", className: classNames__default.default({
1592
- "ui:opacity-0": onlyShowAccessoriesOnHover,
1593
- "ui:group-hover:opacity-100": onlyShowAccessoriesOnHover
1594
- }), children: accessories })] }));
1595
- });
1596
-
1597
- const BaseListInner = ({ dataTestId, title, subtitle, headerButton, headerAccessory, emptyStateMessage, isLoading, items, headerTransparent, itemComponent, footer, withBorder = false }, ref) => {
1598
- if (isLoading) {
1599
- return jsxRuntime.jsx(ListSkeleton, { items: items.length });
1600
- }
1601
- const hasHeader = Boolean(title || headerButton || headerAccessory);
1602
- const roundTop = Boolean(!hasHeader || hasHeader && headerTransparent);
1603
- const roundBottom = footer === void 0 || footer === null;
1604
- return jsxRuntime.jsxs("div", { "data-test-id": dataTestId || "base-list-component", children: [hasHeader && jsxRuntime.jsx(BaseListHeader, { title, subtitle, button: headerButton, headerAccessory, transparent: headerTransparent, withBorder }), items.length > 0 ? jsxRuntime.jsx("ul", { ref, children: items.map((props) => itemComponent ? React__namespace.default.createElement(itemComponent, Object.assign(Object.assign({ key: props.itemId }, props), {
1605
- roundBottom,
1606
- roundTop,
1607
- withBorder
1608
- })) : React__namespace.default.createElement(BaseListItem, Object.assign(Object.assign({ key: props.itemId }, props), {
1609
- roundBottom,
1610
- roundTop,
1611
- withBorder
1612
- }))) }) : emptyStateMessage && jsxRuntime.jsx(BaseListEmptyState, { message: emptyStateMessage, roundTop, withBorder }), footer] });
1613
- };
1614
- const BaseList = React__namespace.default.forwardRef(BaseListInner);
1615
-
1616
- const draggableListItemPropsPointer = {
1617
- symbol: /* @__PURE__ */ Symbol("draggable-list-item-props")
1618
- };
1619
- const createDraggableListProps = ({ itemId, title, subtitle, icon, isDraggable, isSelected }) => {
1620
- return new WeakMap([
1621
- [
1622
- draggableListItemPropsPointer,
1623
- Object.freeze({ itemId, title, subtitle, icon, isDraggable, isSelected })
1624
- ]
1625
- ]);
1626
- };
1627
- const isDraggableListItemProps = (subject) => {
1628
- if (subject instanceof WeakMap) {
1629
- return subject.has(draggableListItemPropsPointer);
1630
- }
1631
- return false;
1632
- };
1633
- const draggableListPropsKey = "listItem";
1634
- const getDndListItemProps = (subject) => {
1635
- var _a, _b, _c;
1636
- const possibleDraggableListItemProps = (_b = (_a = subject.data) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b[draggableListPropsKey];
1637
- if (!isDraggableListItemProps(possibleDraggableListItemProps)) {
1638
- return null;
1639
- }
1640
- return (_c = possibleDraggableListItemProps.get(draggableListItemPropsPointer)) !== null && _c !== void 0 ? _c : null;
1641
- };
1642
-
1643
- const DraggableBaseListItem = (_a) => {
1644
- var { draggableData } = _a, props = __rest(_a, ["draggableData"]);
1645
- const { setNodeRef, listeners, attributes, isDragging } = core.useDraggable({
1646
- id: props.draggableIdentifier,
1647
- disabled: !props.isDraggable,
1648
- data: {
1649
- [draggableListPropsKey]: createDraggableListProps(props),
1650
- draggableData
1651
- }
1652
- });
1653
- return jsxRuntime.jsx(BaseListItem, Object.assign({}, props, { ref: setNodeRef, isDraggable: true, renderDragHandle: () => jsxRuntime.jsx(DragHandle, Object.assign({ grabbing: isDragging }, attributes, listeners, { disabled: !props.isDraggable })) }));
1654
- };
1655
-
1656
- const DraggableBaseList = (_a) => {
1657
- var { items } = _a, props = __rest(_a, ["items"]);
1658
- return jsxRuntime.jsx(BaseList, Object.assign({}, props, { items, itemComponent: DraggableBaseListItem }));
1659
- };
1660
-
1661
- const Dropzone = React.forwardRef((props, ref) => {
1662
- const { isHighlighted = false, className, children } = props, rest = __rest(props, ["isHighlighted", "className", "children"]);
1663
- const classes = classNames__default.default("ui:border ui:items-center ui:border-primary", {
1664
- "ui:bg-surface ui:border-dashed": !isHighlighted,
1665
- "ui:bg-primary-background ui:border-solid": isHighlighted
1666
- }, className);
1667
- return jsxRuntime.jsx("div", Object.assign({ className: classes, ref }, rest, { children }));
1668
- });
1669
-
1670
- const SortableBaseListItem = (_a) => {
1671
- var { draggableData } = _a, props = __rest(_a, ["draggableData"]);
1672
- const { setNodeRef, listeners, attributes, transform, isDragging } = sortable.useSortable({
1673
- id: props.draggableIdentifier,
1674
- disabled: !props.isDraggable,
1675
- data: {
1676
- [draggableListPropsKey]: createDraggableListProps(props),
1677
- draggableData
1678
- }
1679
- });
1680
- const styleTransform = utilities.CSS.Transform.toString(transform);
1681
- if (isDragging) {
1682
- return jsxRuntime.jsxs("div", { style: { transform: styleTransform, position: "relative" }, children: [jsxRuntime.jsx(Dropzone, { className: "ui:absolute ui:h-full ui:w-full" }), jsxRuntime.jsx("div", { className: "ui:invisible", children: jsxRuntime.jsx(BaseListItem, Object.assign({}, props, { ref: setNodeRef, htmlProps: { style: { transform: styleTransform } }, isDraggable: props.__isNested ? false : true, renderDragHandle: () => jsxRuntime.jsx(DragHandle, Object.assign({}, attributes, listeners, { disabled: !props.isDraggable, grabbing: isDragging })) })) })] });
1683
- }
1684
- return jsxRuntime.jsx(BaseListItem, Object.assign({}, props, { ref: setNodeRef, htmlProps: { style: { transform: styleTransform } }, isDraggable: props.__isNested ? false : true, renderDragHandle: () => jsxRuntime.jsx(DragHandle, Object.assign({}, attributes, listeners, { disabled: !props.isDraggable, grabbing: isDragging })) }));
1685
- };
1686
-
1687
- const SortableBaseList = (_a) => {
1688
- var { draggableIdentifier, items } = _a, props = __rest(_a, ["draggableIdentifier", "items"]);
1689
- return jsxRuntime.jsx(sortable.SortableContext, { id: draggableIdentifier, strategy: sortable.verticalListSortingStrategy, items: items.map((item) => Object.assign(Object.assign({}, item), { id: item.draggableIdentifier })), children: jsxRuntime.jsx(BaseList, Object.assign({ items, itemComponent: SortableBaseListItem }, props)) });
1690
- };
1691
-
1692
- const ListItem = (props) => {
1693
- return jsxRuntime.jsx(BaseListItem, Object.assign({}, props));
1694
- };
1695
-
1696
- const DefaultList = (_a) => {
1697
- var { items, onDragEnd, onAssetLoadError, subtitle } = _a, props = __rest(_a, ["items", "onDragEnd", "onAssetLoadError", "subtitle"]);
1698
- const sensor = core.useSensor(core.MouseSensor);
1699
- const [draggedListItem, setDraggedListItem] = React.useState(null);
1700
- const [innerItems, setInnerItems] = React.useState(items);
1701
- const [expandedIds, setExpandedIds] = React.useState(() => /* @__PURE__ */ new Set());
1702
- React.useEffect(() => {
1703
- setInnerItems(items);
1704
- }, [items]);
1705
- const toggleExpand = (itemId) => {
1706
- setExpandedIds((prev) => {
1707
- const next = new Set(prev);
1708
- if (next.has(itemId)) {
1709
- next.delete(itemId);
1710
- } else {
1711
- next.add(itemId);
1712
- }
1713
- return next;
1714
- });
1715
- };
1716
- const composeIconWithChevron = (parentItem, isExpanded) => {
1717
- return jsxRuntime.jsxs(Stack, { axis: "x", _gap: "m", align: "center", children: [jsxRuntime.jsx("button", { type: "button", "aria-expanded": isExpanded, "aria-label": typeof parentItem.title === "string" ? `Sub-items of ${parentItem.title}` : "Sub-items", onClick: (e) => {
1718
- e.stopPropagation();
1719
- toggleExpand(parentItem.itemId);
1720
- }, onKeyDown: (e) => {
1721
- if (e.key === "Enter" || e.key === " ") {
1722
- e.preventDefault();
1723
- e.stopPropagation();
1724
- toggleExpand(parentItem.itemId);
1725
- }
1726
- }, children: jsxRuntime.jsx(ChevronRightIcon, { color: "neutral-interactive", "aria-hidden": "true", className: classNames__default.default("ui:shrink-0 ui:transition-transform", {
1727
- "ui:rotate-90": isExpanded
1728
- }) }) }), parentItem.icon ? jsxRuntime.jsx(BaseListIcon, { icon: parentItem.icon }) : null] });
1729
- };
1730
- const flattenedItems = React.useMemo(() => {
1731
- const result = [];
1732
- innerItems.forEach((parentItem, parentIndex) => {
1733
- var _a2;
1734
- const hasChildren = Boolean((_a2 = parentItem.children) === null || _a2 === void 0 ? void 0 : _a2.length);
1735
- const isExpanded = expandedIds.has(parentItem.itemId);
1736
- const composedIcon = hasChildren ? composeIconWithChevron(parentItem, isExpanded) : parentItem.icon;
1737
- result.push(Object.assign(Object.assign(Object.assign({}, parentItem), { icon: composedIcon, __parentIndex: parentIndex, htmlProps: Object.assign(Object.assign({}, parentItem.htmlProps), { id: `list-item-${parentItem.itemId}` }) }), parentItem.handleItemClick ? {
1738
- handleItemClick: (e) => {
1739
- var _a3;
1740
- (_a3 = parentItem.handleItemClick) === null || _a3 === void 0 ? void 0 : _a3.call(parentItem, e);
1741
- }
1742
- } : {}));
1743
- if (hasChildren && isExpanded && parentItem.children) {
1744
- parentItem.children.forEach((childItem) => {
1745
- result.push(Object.assign(Object.assign({}, childItem), { __isNested: true, htmlProps: Object.assign(Object.assign({}, childItem.htmlProps), { "aria-labelledby": `list-item-${parentItem.itemId}` }) }));
1746
- });
1747
- }
1748
- });
1749
- return result;
1750
- }, [innerItems, expandedIds]);
1751
- if (!onDragEnd) {
1752
- return jsxRuntime.jsx(BaseList, Object.assign({ itemComponent: ListItem, items: flattenedItems.map((item) => Object.assign(Object.assign({}, item), { isDraggable: false, onAssetLoadError })), subtitle }, props));
1753
- }
1754
- return jsxRuntime.jsxs(core.DndContext, { sensors: [sensor], onDragStart: (event) => {
1755
- setDraggedListItem(getDndListItemProps(event.active));
1756
- setExpandedIds(/* @__PURE__ */ new Set());
1757
- }, onDragEnd: (event) => {
1758
- var _a2, _b, _c, _d, _e, _f, _g, _h, _j;
1759
- if (!draggedListItem) {
1760
- return;
1761
- }
1762
- const currentIndex = (_d = (_c = (_b = (_a2 = event.active) === null || _a2 === void 0 ? void 0 : _a2.data) === null || _b === void 0 ? void 0 : _b.current) === null || _c === void 0 ? void 0 : _c.sortable) === null || _d === void 0 ? void 0 : _d.index;
1763
- const newIndex = (_h = (_g = (_f = (_e = event.over) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.current) === null || _g === void 0 ? void 0 : _g.sortable) === null || _h === void 0 ? void 0 : _h.index;
1764
- if (typeof currentIndex === "number" && typeof newIndex === "number") {
1765
- const currentParentIndex = flattenedItems[currentIndex].__parentIndex;
1766
- const newParentIndex = (_j = flattenedItems[newIndex]) === null || _j === void 0 ? void 0 : _j.__parentIndex;
1767
- if (typeof newParentIndex === "number") {
1768
- const newItems = sortable.arrayMove(innerItems, currentParentIndex, newParentIndex);
1769
- setInnerItems(newItems);
1770
- onDragEnd(draggedListItem.itemId, newParentIndex, {
1771
- state: newItems
1772
- });
1773
- }
1774
- }
1775
- setDraggedListItem(null);
1776
- }, children: [jsxRuntime.jsx(SortableBaseList, Object.assign({ draggableIdentifier: "sortable-list-identifier", items: flattenedItems.map((item) => Object.assign(Object.assign({}, item), {
1777
- draggableIdentifier: `${item.itemId}`,
1778
- isDraggable: item.__parentIndex !== void 0,
1779
- // Only top-level items are draggable
1780
- onAssetLoadError
1781
- })), subtitle }, props)), jsxRuntime.jsx(core.DragOverlay, { dropAnimation: null, wrapperElement: "ul", className: "ui:shadow-lg", children: draggedListItem && jsxRuntime.jsx(ListItem, Object.assign({}, draggedListItem, { renderDragHandle: () => jsxRuntime.jsx(DragHandle, { grabbing: true }) })) })] });
1782
- };
1783
- const List = (props) => {
1784
- if ("draggableListType" in props) {
1785
- switch (props.draggableListType) {
1786
- case "default":
1787
- return jsxRuntime.jsx(DefaultList, Object.assign({}, lodashEs.omit(props, "draggableListType")));
1788
- case "draggable":
1789
- return jsxRuntime.jsx(DraggableBaseList, Object.assign({}, lodashEs.omit(props, ["draggableListType"])));
1790
- case "sortable":
1791
- return jsxRuntime.jsx(SortableBaseList, Object.assign({}, lodashEs.omit(props, ["draggableListType"])));
1792
- }
1793
- }
1794
- return jsxRuntime.jsx(DefaultList, Object.assign({}, props));
1795
- };
1796
-
1797
- const calculateResponsiveWidthClasses = (size) => {
1798
- if (typeof size === "string") {
1799
- return {
1800
- "ui:w-16": size === "sm",
1801
- "ui:w-32": size === "md",
1802
- "ui:w-56": size === "lg",
1803
- "ui:w-80": size === "xl",
1804
- "ui:w-full": size === "full"
1805
- };
1806
- }
1807
- const sizesMapped = {
1808
- sm: "w-16",
1809
- md: "w-32",
1810
- lg: "w-56",
1811
- xl: "w-80",
1812
- full: "w-full"
1813
- };
1814
- const [defaultSize, smallSize, mediumSize, largeSize, extraLargeSize] = size;
1815
- return [
1816
- `ui:${sizesMapped[defaultSize]}`,
1817
- smallSize ? `ui:sm:${sizesMapped[smallSize]}` : "",
1818
- mediumSize ? `ui:md:${sizesMapped[mediumSize]}` : "",
1819
- largeSize ? `ui:lg:${sizesMapped[largeSize]}` : "",
1820
- extraLargeSize ? `ui:xl:${sizesMapped[extraLargeSize]}` : ""
1821
- ].filter(Boolean);
1822
- };
1823
- const breakpointPrefixes = ["", "sm:", "md:", "lg:", "xl:"];
1824
- const calculateResponsiveGrowClasses = (size) => {
1825
- if (typeof size === "string") {
1826
- return { "ui:fill-container": size === "full" };
1827
- }
1828
- return size.map((breakpointSize, index) => {
1829
- if (!breakpointSize) {
1830
- return "";
1831
- }
1832
- const suffix = breakpointSize === "full" ? "" : "-none";
1833
- return `ui:${breakpointPrefixes[index]}fill-container${suffix}`;
1834
- }).filter(Boolean);
1835
- };
1836
-
1837
- const StyledInput = React__namespace.default.forwardRef((_a, ref) => {
1838
- var { suffix, prefix, className, width = "full", height = "lg", icon, isError, isClearIconVisible, onClickClearField } = _a, attributes = __rest(_a, ["suffix", "prefix", "className", "width", "height", "icon", "isError", "isClearIconVisible", "onClickClearField"]);
1839
- const hasPrefix = !!prefix;
1840
- const hasSuffix = !!suffix;
1841
- const hasNoExtraContent = !hasPrefix && !hasSuffix;
1842
- const heightClasses = {
1843
- md: "ui:h-form-md",
1844
- lg: "ui:h-form-lg"
1845
- };
1846
- const prefixSuffixPaddingClasses = {
1847
- md: "ui:py-2 ui:px-3",
1848
- lg: "ui:p-3"
1849
- };
1850
- return jsxRuntime.jsxs(FlexRow, { spacing: "none", "data-test-id": "input-component-container", stretch: false, children: [jsxRuntime.jsx("span", { className: classNames__default.default(heightClasses[height], prefixSuffixPaddingClasses[height], "ui:border-b ui:border-t ui:border-solid ui:border-input-border", {
1851
- "ui:hidden": hasNoExtraContent,
1852
- "ui:order-1": hasSuffix,
1853
- "ui:rounded-l ui:border-l": hasPrefix,
1854
- "ui:rounded-r ui:border-r": hasSuffix
1855
- }, "ui:flex ui:flex-col ui:items-center", "ui:text-sm", "ui:text-slate-500", "ui:bg-main-background"), children: suffix || prefix }), jsxRuntime.jsxs("div", { className: classNames__default.default("ui:relative", calculateResponsiveGrowClasses(width)), children: [icon && jsxRuntime.jsx("div", { className: classNames__default.default("ui:absolute ui:left-4 ui:top-1/2", {
1856
- "ui:grow": width === "full"
1857
- }), style: {
1858
- transform: "translateY(-50%)",
1859
- zIndex: 20
1860
- }, children: jsxRuntime.jsx(IconComponentOrKey, { name: icon, className: "ui:h-6 ui:w-6 ui:text-slate-300" }) }), jsxRuntime.jsx("input", Object.assign({ ref, className: classNames__default.default("ui:block", calculateResponsiveWidthClasses(width), { "ui:pl-12": icon }, {
1861
- "ui:bg-slate-50 ui:text-slate-400": attributes.disabled,
1862
- "ui:text-slate-800": !attributes.disabled,
1863
- "ui:border-input-border": !attributes.disabled && !isError,
1864
- "ui:hover:border-input-border-dark": !attributes.disabled,
1865
- "ui:border-red-700": isError,
1866
- "ui:focus:outline-negative": isError,
1867
- "ui:focus:border-primary": !isError,
1868
- "ui:focus:outline-primary": !isError,
1869
- "ui:bg-white": !attributes.disabled
1870
- }, heightClasses[height], "ui:p-2", "ui:border", "ui:text-base ui:sm:text-sm", "ui:placeholder-slate-500", "ui:border-solid", "ui:transition-colors", "ui:duration-300", {
1871
- "ui:z-10": hasSuffix || hasPrefix,
1872
- // to make sure the ui:outline is displayed completely
1873
- "ui:rounded": hasNoExtraContent,
1874
- "ui:rounded-l": hasSuffix,
1875
- "ui:rounded-r": hasPrefix,
1876
- "ui:order-2": hasPrefix,
1877
- "ui:order-1": hasSuffix
1878
- }, "ui:shadow-default", className) }, attributes)), jsxRuntime.jsx("div", { className: "ui:absolute ui:right-0 ui:top-1/2", style: {
1879
- transform: "translateY(-50%)"
1880
- }, children: jsxRuntime.jsx(CrossIcon, { className: classNames__default.default("ui:mr-3 ui:h-6 ui:w-6 ui:cursor-pointer ui:text-slate-300", {
1881
- "ui:block": isClearIconVisible,
1882
- "ui:hidden": !isClearIconVisible
1883
- }), onClick: onClickClearField }) })] })] });
1884
- });
1885
-
1886
- const Input = React__namespace.default.forwardRef((_a, ref) => {
1887
- var { withSuffix = "", withPrefix = "", clearable = false, isDisabled = false, name, value = "", onChange, asFormField, maxLength, height = "lg" } = _a, otherProps = __rest(_a, ["withSuffix", "withPrefix", "clearable", "isDisabled", "name", "value", "onChange", "asFormField", "maxLength", "height"]);
1888
- const [innerValue, setInnerValue] = React.useState(value);
1889
- React.useEffect(() => {
1890
- setInnerValue(value);
1891
- }, [value]);
1892
- const clearField = () => {
1893
- setInnerValue("");
1894
- onChange === null || onChange === void 0 ? void 0 : onChange({
1895
- target: {
1896
- name: name || "",
1897
- value: ""
1898
- },
1899
- currentTarget: {
1900
- name: name || "",
1901
- value: ""
1902
- }
1903
- });
1904
- };
1905
- const handleChangeEvent = (event) => {
1906
- setInnerValue(event.currentTarget.value);
1907
- onChange === null || onChange === void 0 ? void 0 : onChange(asFormField ? event.currentTarget.value : {
1908
- target: {
1909
- name: name || "",
1910
- value: event.currentTarget.value
1911
- },
1912
- currentTarget: {
1913
- name: name || "",
1914
- value: event.currentTarget.value
1915
- }
1916
- });
1917
- };
1918
- const isClearIconVisible = clearable && !!innerValue;
1919
- return jsxRuntime.jsx(StyledInput, Object.assign({ "data-test-id": `input-${name}`, name, value: innerValue, onChange: handleChangeEvent, ref, size: maxLength, disabled: isDisabled, isClearIconVisible, onClickClearField: clearField, prefix: withPrefix, suffix: withSuffix, height }, otherProps));
1920
- });
1921
-
1922
- const SearchInput = React__namespace.default.forwardRef((props, ref) => {
1923
- var _a;
1924
- return jsxRuntime.jsx(Input, Object.assign({}, props, { icon: "SearchIcon", type: "text", width: (_a = props.width) !== null && _a !== void 0 ? _a : "xl", clearable: true, ref }));
1925
- });
1926
-
1927
- const Content$3 = (_a) => {
1928
- var { container, children, className, backgroundColor } = _a, contentProps = __rest(_a, ["container", "children", "className", "backgroundColor"]);
1929
- const getBackgroundColor = () => {
1930
- switch (backgroundColor) {
1931
- case "transparent":
1932
- return void 0;
1933
- default:
1934
- return backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : "secondary-background";
1935
- }
1936
- };
1937
- const getArrowBackgroundColor = () => {
1938
- switch (backgroundColor) {
1939
- case "transparent":
1940
- return "ui:fill-transparent";
1941
- default:
1942
- return "ui:fill-secondary-background";
1943
- }
1944
- };
1945
- return jsxRuntime.jsx(Tooltip__namespace.Portal, { container, children: jsxRuntime.jsxs(Tooltip__namespace.Content, Object.assign({ className: classNames__default.default(className, "ui:max-w-55", "ui:z-20", "ui:data-[state=delayed-open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=delayed-open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=delayed-open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2"), sideOffset: 4 }, contentProps, { children: [jsxRuntime.jsx(Box, { backgroundColor: getBackgroundColor(), _px: "l", _py: "m", borderRadius: "xxxxs", children }), jsxRuntime.jsx(Tooltip__namespace.Arrow, { width: 8, height: 8, className: getArrowBackgroundColor() })] })) });
1946
- };
1947
- Content$3.displayName = "Tooltip.Content";
1948
- const Root$2 = (props) => jsxRuntime.jsx(Tooltip__namespace.Root, Object.assign({}, props));
1949
- Root$2.displayName = "Tooltip.Root";
1950
- const TooltipText = (props) => {
1951
- return jsxRuntime.jsx(Text, Object.assign({ color: "on-secondary", as: "span" }, props));
1952
- };
1953
- TooltipText.displayName = "Tooltip.Text";
1954
- const Tooltip = {
1955
- Content: Content$3,
1956
- Root: Root$2,
1957
- Trigger: Tooltip__namespace.Trigger,
1958
- Text: TooltipText
1959
- };
1960
-
1961
- const Spinner = (props) => {
1962
- return jsxRuntime.jsxs("svg", { className: `ui:h-5 ui:w-5 ui:animate-spin ${props.className}`, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsxRuntime.jsx("circle", { className: "ui:opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), jsxRuntime.jsx("path", { className: "ui:opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] });
1397
+ const Spinner = (props) => {
1398
+ return jsxRuntime.jsxs("svg", { className: `ui:h-5 ui:w-5 ui:animate-spin ${props.className}`, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsxRuntime.jsx("circle", { className: "ui:opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), jsxRuntime.jsx("path", { className: "ui:opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })] });
1963
1399
  };
1964
1400
 
1965
1401
  const ButtonV2 = React__namespace.default.forwardRef((_a, innerRef) => {
1966
- var _b, _c, _d, _e, _f;
1967
- var { children, size = "medium", onClick, text, textColor, textHoverColor, icon, leadingIcon, trailingIcon, isDisabled, isPending, className, title, dataTestId, type = "button", titleTooltipContainer } = _a, otherAttributes = __rest(_a, ["children", "size", "onClick", "text", "textColor", "textHoverColor", "icon", "leadingIcon", "trailingIcon", "isDisabled", "isPending", "className", "title", "dataTestId", "type", "titleTooltipContainer"]);
1968
- const disabled = (_c = (_b = otherAttributes.disabled) !== null && _b !== void 0 ? _b : isDisabled) !== null && _c !== void 0 ? _c : false;
1402
+ var _b, _c, _d, _e;
1403
+ var { children, size = "medium", onClick, textColor, textHoverColor, leadingIcon, trailingIcon, isPending, className, title, dataTestId, type = "button", titleTooltipContainer } = _a, otherAttributes = __rest(_a, ["children", "size", "onClick", "textColor", "textHoverColor", "leadingIcon", "trailingIcon", "isPending", "className", "title", "dataTestId", "type", "titleTooltipContainer"]);
1404
+ const disabled = (_b = otherAttributes.disabled) !== null && _b !== void 0 ? _b : false;
1969
1405
  const generatedId = React__namespace.default.useId();
1970
- const buttonId = (_d = otherAttributes.id) !== null && _d !== void 0 ? _d : generatedId;
1406
+ const buttonId = (_c = otherAttributes.id) !== null && _c !== void 0 ? _c : generatedId;
1971
1407
  const buttonTooltipId = `button-tooltip-id-${buttonId}`;
1972
- const content = children !== null && children !== void 0 ? children : text;
1408
+ const content = children;
1973
1409
  const isInteractive = !disabled && !isPending;
1974
- const hasContentAndLeadingIcon = content && (icon !== null && icon !== void 0 ? icon : leadingIcon);
1410
+ const hasContentAndLeadingIcon = content && leadingIcon;
1975
1411
  const hasContentAndTrailingIcon = content && trailingIcon;
1976
1412
  function handleClick(event) {
1977
1413
  event.stopPropagation();
@@ -2009,9 +1445,11 @@ const ButtonV2 = React__namespace.default.forwardRef((_a, innerRef) => {
2009
1445
  "data-tip": true,
2010
1446
  "data-for": buttonTooltipId
2011
1447
  } : {};
2012
- const buttonComponent = jsxRuntime.jsxs("button", Object.assign({ ref: innerRef }, otherAttributes, { "aria-label": (_e = otherAttributes["aria-label"]) !== null && _e !== void 0 ? _e : !content && typeof title === "string" ? title : void 0, className: buttonClassName, type, onClick: handleClick, disabled: disabled || isPending, "aria-disabled": disabled, "aria-busy": isPending, "data-test-id": (_f = dataTestId !== null && dataTestId !== void 0 ? dataTestId : otherAttributes["data-test-id"]) !== null && _f !== void 0 ? _f : otherAttributes.id }, tooltipAttrs, { children: [leadingIcon && jsxRuntime.jsx(IconLayoutWrapper, { isInvisible: isPending, children: leadingIcon }), !leadingIcon && icon && jsxRuntime.jsx(IconLayoutWrapper, { isInvisible: isPending, children: jsxRuntime.jsx(IconComponentOrKey, { name: icon }) }), isPending && jsxRuntime.jsx("span", { className: "ui:absolute ui:left-1/2 ui:top-1/2 ui:-translate-x-1/2 ui:-translate-y-1/2 ui:transform ui:opacity-100", children: jsxRuntime.jsx(Spinner, { className: textColorClass }) }), content && jsxRuntime.jsx(Text, { variant: "strong", className: classNames__default.default({
2013
- "ui:opacity-[0.01]": isPending
2014
- }), color: textColor, hoverColor: textHoverColor, hoverInGroup: true, children: content }), trailingIcon && jsxRuntime.jsx(IconLayoutWrapper, { isInvisible: isPending, children: trailingIcon })] }));
1448
+ const buttonComponent = jsxRuntime.jsxs("button", Object.assign({ ref: innerRef }, otherAttributes, { "aria-label": (_d = otherAttributes["aria-label"]) !== null && _d !== void 0 ? _d : !content && typeof title === "string" ? title : void 0, className: buttonClassName, type, onClick: handleClick, disabled: disabled || isPending, "aria-disabled": disabled, "aria-busy": isPending, "data-test-id": (_e = dataTestId !== null && dataTestId !== void 0 ? dataTestId : otherAttributes["data-test-id"]) !== null && _e !== void 0 ? _e : otherAttributes.id }, tooltipAttrs, { children: [leadingIcon && jsxRuntime.jsx(IconLayoutWrapper, { isInvisible: isPending, children: leadingIcon }), isPending && jsxRuntime.jsx("span", { className: "ui:absolute ui:left-1/2 ui:top-1/2 ui:-translate-x-1/2 ui:-translate-y-1/2 ui:transform ui:opacity-100", children: jsxRuntime.jsx(Spinner, { className: textColorClass }) }), content && jsxRuntime.jsx(Text, { variant: "strong", className: classNames__default.default({
1449
+ "ui:opacity-[0.01]": isPending,
1450
+ "ui:group-hover:text-primary-dark": textHoverColor === "blue-900",
1451
+ "ui:group-hover:text-white": textHoverColor === "white"
1452
+ }), color: textColor, children: content }), trailingIcon && jsxRuntime.jsx(IconLayoutWrapper, { isInvisible: isPending, children: trailingIcon })] }));
2015
1453
  if (title) {
2016
1454
  return jsxRuntime.jsxs(Tooltip.Root, { children: [jsxRuntime.jsx(Tooltip.Trigger, { asChild: true, id: buttonTooltipId, children: buttonComponent }), jsxRuntime.jsx(Tooltip.Content, { container: titleTooltipContainer, children: jsxRuntime.jsx(Tooltip.Text, { children: title }) })] });
2017
1455
  }
@@ -2034,157 +1472,26 @@ function IconLayoutWrapper({ children, className, isInvisible }) {
2034
1472
  ), children });
2035
1473
  }
2036
1474
 
2037
- const SecondaryButton = React__namespace.default.forwardRef((props, innerRef) => {
2038
- const { textColor = "primary", textHoverColor = "blue-900" } = props, rest = __rest(props, ["textColor", "textHoverColor"]);
2039
- return jsxRuntime.jsx(ButtonV2, Object.assign({ ref: innerRef }, rest, { className: classNames__default.default([
2040
- `ui:text-${textColor}`,
2041
- // Colors of any icons on the button
2042
- "ui:bg-white",
2043
- "ui:border-neutral-border-high-contrast",
2044
- {
2045
- "ui:hover:border-neutral-interactive ui:hover:bg-primary-background": !props.isDisabled
2046
- }
2047
- ], props.className), textColor, textHoverColor }));
2048
- });
2049
-
2050
- var img$6 = "data:image/svg+xml,%3csvg width='144' height='144' viewBox='0 0 144 144' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%23BBE3D7'/%3e%3cpath d='M100 28H44C41.7909 28 40 29.7909 40 32V112C40 114.209 41.7909 116 44 116H100C102.209 116 104 114.209 104 112V32C104 29.7909 102.209 28 100 28Z' fill='%23FBFEFF'/%3e%3cellipse cx='58' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='58' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='58' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='86' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='86' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='86' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cpath d='M71.9007 101.202C70.0421 101.202 68.5352 99.6148 68.5352 97.6578V96H75.2663V97.6578C75.2663 99.6148 73.7594 101.202 71.9007 101.202Z' fill='%23454545'/%3e%3cpath d='M60.0918 96.0458C59.8056 95.6233 59.3882 95.5719 59.2189 95.5719C59.0496 95.5719 58.6252 95.6181 58.3461 96.0458C57.9584 96.6394 57.1663 96.8045 56.5764 96.4145C55.9865 96.025 55.8224 95.2273 56.2101 94.6338C56.8775 93.6111 58.0023 93 59.2189 93C60.4355 93 61.5603 93.6111 62.2284 94.6338C62.6154 95.2273 62.4513 96.025 61.8614 96.4145C61.645 96.5575 60.6888 96.9281 60.0918 96.0458Z' fill='%23454545'/%3e%3cpath d='M85.6543 96.0458C85.3681 95.6233 84.9513 95.5719 84.7814 95.5719C84.6121 95.5719 84.1883 95.6181 83.9092 96.0458C83.5215 96.6394 82.7288 96.8045 82.1389 96.4145C81.549 96.025 81.3849 95.2273 81.7726 94.6338C82.4406 93.6111 83.5655 93 84.7821 93C85.998 93 87.1228 93.6111 87.7909 94.6338C88.1786 95.2273 88.0144 96.025 87.4246 96.4145C87.2081 96.5575 86.2519 96.9281 85.6543 96.0458Z' fill='%23454545'/%3e%3crect x='88.8281' y='45.8281' width='8' height='4' rx='2' transform='rotate(45 88.8281 45.8281)' fill='%23BBE3D7'/%3e%3crect x='100.143' y='45.8281' width='12' height='4' rx='2' transform='rotate(135 100.143 45.8281)' fill='%23BBE3D7'/%3e%3crect x='46' y='46' width='34' height='8' rx='4' fill='%23C0E9FA'/%3e%3crect x='88.8281' y='65.8281' width='8' height='4' rx='2' transform='rotate(45 88.8281 65.8281)' fill='%23BBE3D7'/%3e%3crect x='100.143' y='65.8281' width='12' height='4' rx='2' transform='rotate(135 100.143 65.8281)' fill='%23BBE3D7'/%3e%3crect x='46' y='66' width='34' height='8' rx='4' fill='%23C0E9FA'/%3e%3c/svg%3e";
2051
-
2052
- var img$5 = "data:image/svg+xml,%3csvg width='144' height='144' viewBox='0 0 144 144' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_1866_119823)'%3e%3cmask id='mask0_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='144' height='144'%3e%3cpath d='M0 0V144H144V0H0H0Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask0_1866_119823)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M72 144C32.235 144 0 111.765 0 72C0 32.235 32.235 0 72 0C111.765 0 144 32.235 144 72C144 111.765 111.765 144 72 144Z' fill='%236ABFA5'/%3e%3c/g%3e%3cmask id='mask1_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='54' y='36' width='35' height='35'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask1_1866_119823)'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='%23F2F2F2'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71 39L71.3085 39.0035C78.8971 39.1745 85 45.6404 85 53.5915V68L57 67.8442V53.5915C57 45.533 63.2673 39 71 39ZM71 43.6584L70.7334 43.6623C65.6846 43.8094 61.6345 48.1211 61.6345 53.4187V64.1342L80.3646 64.238V53.4187C80.3646 48.0282 76.1712 43.6584 71 43.6584Z' fill='%23DEDEDE'/%3e%3c/g%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M90.5966 107.98H53.4036C50.1986 107.98 47.5996 105.381 47.5996 102.176V68.7708C47.5996 65.5658 50.1986 62.9668 53.4036 62.9668H90.5966C93.8026 62.9668 96.4006 65.5658 96.4006 68.7708V102.176C96.4006 105.381 93.8026 107.98 90.5966 107.98Z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71.9277 75.3438C69.1662 75.3438 66.9277 77.5836 66.9277 80.3467C66.9277 82.3006 68.0499 83.9884 69.6804 84.8115L69.6813 95.3438H74.1751L74.1761 84.8115C75.8065 83.9884 76.9277 82.3006 76.9277 80.3467C76.9277 77.5836 74.6893 75.3438 71.9277 75.3438Z' fill='%236670A5'/%3e%3cpath d='M61 62H53V63H61V62Z' fill='white'/%3e%3cpath d='M89 62H81V63H89V62Z' fill='white'/%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%236ABFA5'/%3e%3cpath d='M76.975 32.7732C79.9117 37.5004 83.0276 42.9368 86.1287 48.7329C87.8031 51.8633 90.8123 54.0548 94.2988 54.6825C100.469 55.7938 106.31 56.9717 111.465 58.1712C115.702 59.1572 117.426 64.2717 114.653 67.6338C111.028 72.0263 106.95 76.7279 102.457 81.5292C100.104 84.0461 98.9851 87.4836 99.4054 90.909C100.173 97.1657 100.778 103.076 101.239 108.507C101.61 112.876 97.2381 116.105 93.1944 114.44C87.6662 112.163 82.6966 109.553 77.0542 106.776C73.8839 105.217 70.1732 105.197 66.9841 106.72C61.3559 109.408 56.0667 111.994 50.9051 114.19C46.8445 115.918 42.404 112.698 42.7799 108.29C43.2385 102.918 43.8374 97.0822 44.5947 90.909C45.015 87.4829 43.8971 84.0454 41.5426 81.5286C37.051 76.7273 32.9716 72.0256 29.3475 67.6331C26.5747 64.271 28.2981 59.1565 32.5352 58.1705C37.6902 56.9711 43.5319 55.7931 49.7019 54.6819C53.1878 54.0542 56.1969 51.8626 57.872 48.7322C60.9725 42.9362 64.0884 37.4997 67.0257 32.7725C69.3225 29.0757 74.6775 29.0757 76.975 32.7732Z' fill='%23EDFFF9'/%3e%3cpath opacity='0.5' d='M60.6635 77.2045C60.6635 74.8627 58.2874 72.9648 55.3561 72.9648C52.4249 72.9648 50.0488 74.8627 50.0488 77.2045C50.0488 79.5455 52.4249 81.4441 55.3561 81.4441C58.2874 81.4441 60.6635 79.5455 60.6635 77.2045Z' fill='%23FF83B4'/%3e%3cpath opacity='0.5' d='M93.9499 77.2045C93.9499 74.8627 91.5739 72.9648 88.6426 72.9648C85.712 72.9648 83.3359 74.8627 83.3359 77.2045C83.3359 79.5455 85.712 81.4441 88.6426 81.4441C91.5739 81.4441 93.9499 79.5455 93.9499 77.2045Z' fill='%23FF83B4'/%3e%3cpath d='M71.9988 76.516C70.2801 76.516 68.5613 75.9577 67.1272 74.8417C66.5478 74.3911 66.4424 73.554 66.8923 72.9727C67.3414 72.3915 68.176 72.2858 68.7554 72.7363C70.6648 74.2227 73.3329 74.2227 75.243 72.7363C75.8224 72.2858 76.6562 72.3915 77.1061 72.9727C77.5552 73.554 77.4498 74.3911 76.8704 74.8417C75.4363 75.9577 73.7176 76.516 71.9988 76.516Z' fill='%23454545'/%3e%3cpath d='M58.6251 73.96C58.3276 73.5222 57.8939 73.469 57.718 73.469C57.5421 73.469 57.101 73.5168 56.811 73.96C56.4081 74.5749 55.585 74.746 54.972 74.3419C54.3591 73.9384 54.1885 73.1121 54.5914 72.4972C55.2849 71.4378 56.4538 70.8047 57.718 70.8047C58.9822 70.8047 60.1511 71.4378 60.8453 72.4972C61.2475 73.1121 61.077 73.9384 60.464 74.3419C60.2391 74.49 59.2454 74.8739 58.6251 73.96Z' fill='%23454545'/%3e%3cpath d='M87.1876 73.96C86.8901 73.5222 86.4571 73.469 86.2805 73.469C86.1046 73.469 85.6642 73.5168 85.3741 73.96C84.9713 74.5749 84.1475 74.746 83.5345 74.3419C82.9216 73.9384 82.751 73.1121 83.1539 72.4972C83.8481 71.4378 85.017 70.8047 86.2812 70.8047C87.5447 70.8047 88.7136 71.4378 89.4078 72.4972C89.8107 73.1121 89.6401 73.9384 89.0272 74.3419C88.8022 74.49 87.8086 74.8739 87.1876 73.96Z' fill='%23454545'/%3e%3cg clip-path='url(%23clip1_1866_119823)'%3e%3cmask id='mask2_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='144' height='144'%3e%3cpath d='M0 0V144H144V0H0H0Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask2_1866_119823)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M72 144C32.235 144 0 111.765 0 72C0 32.235 32.235 0 72 0C111.765 0 144 32.235 144 72C144 111.765 111.765 144 72 144Z' fill='%23BBE3D7'/%3e%3c/g%3e%3cmask id='mask3_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='54' y='36' width='35' height='35'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask3_1866_119823)'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='%23F2F2F2'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71 39L71.3085 39.0035C78.8971 39.1745 85 45.6404 85 53.5915V68L57 67.8442V53.5915C57 45.533 63.2673 39 71 39ZM71 43.6584L70.7334 43.6623C65.6846 43.8094 61.6345 48.1211 61.6345 53.4187V64.1342L80.3646 64.238V53.4187C80.3646 48.0282 76.1712 43.6584 71 43.6584Z' fill='%23DEDEDE'/%3e%3c/g%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M90.5966 107.98H53.4036C50.1986 107.98 47.5996 105.381 47.5996 102.176V68.7708C47.5996 65.5658 50.1986 62.9668 53.4036 62.9668H90.5966C93.8026 62.9668 96.4006 65.5658 96.4006 68.7708V102.176C96.4006 105.381 93.8026 107.98 90.5966 107.98Z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71.9277 75.3438C69.1662 75.3438 66.9277 77.5836 66.9277 80.3467C66.9277 82.3006 68.0499 83.9884 69.6804 84.8115L69.6813 95.3438H74.1751L74.1761 84.8115C75.8065 83.9884 76.9277 82.3006 76.9277 80.3467C76.9277 77.5836 74.6893 75.3438 71.9277 75.3438Z' fill='%236670A5'/%3e%3cpath d='M61 62H53V63H61V62Z' fill='white'/%3e%3cpath d='M89 62H81V63H89V62Z' fill='white'/%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%23BBE3D7'/%3e%3cpath d='M76.975 32.7732C79.9117 37.5004 83.0276 42.9368 86.1287 48.7329C87.8031 51.8633 90.8123 54.0548 94.2988 54.6825C100.469 55.7938 106.31 56.9717 111.465 58.1712C115.702 59.1572 117.426 64.2717 114.653 67.6338C111.028 72.0263 106.95 76.7279 102.457 81.5292C100.104 84.0461 98.9851 87.4836 99.4054 90.909C100.173 97.1657 100.778 103.076 101.239 108.507C101.61 112.876 97.2381 116.105 93.1944 114.44C87.6662 112.163 82.6966 109.553 77.0542 106.776C73.8839 105.217 70.1732 105.197 66.9841 106.72C61.3559 109.408 56.0667 111.994 50.9051 114.19C46.8445 115.918 42.404 112.698 42.7799 108.29C43.2385 102.918 43.8374 97.0822 44.5947 90.909C45.015 87.4829 43.8971 84.0454 41.5426 81.5286C37.051 76.7273 32.9716 72.0256 29.3475 67.6331C26.5747 64.271 28.2981 59.1565 32.5352 58.1705C37.6902 56.9711 43.5319 55.7931 49.7019 54.6819C53.1878 54.0542 56.1969 51.8626 57.872 48.7322C60.9725 42.9362 64.0884 37.4997 67.0257 32.7725C69.3225 29.0757 74.6775 29.0757 76.975 32.7732Z' fill='%23EDFFF9'/%3e%3cpath opacity='0.5' d='M60.6635 77.2045C60.6635 74.8627 58.2874 72.9648 55.3561 72.9648C52.4249 72.9648 50.0488 74.8627 50.0488 77.2045C50.0488 79.5455 52.4249 81.4441 55.3561 81.4441C58.2874 81.4441 60.6635 79.5455 60.6635 77.2045Z' fill='%23FF83B4'/%3e%3cpath opacity='0.5' d='M93.9499 77.2045C93.9499 74.8627 91.5739 72.9648 88.6426 72.9648C85.712 72.9648 83.3359 74.8627 83.3359 77.2045C83.3359 79.5455 85.712 81.4441 88.6426 81.4441C91.5739 81.4441 93.9499 79.5455 93.9499 77.2045Z' fill='%23FF83B4'/%3e%3cpath d='M71.9988 76.516C70.2801 76.516 68.5613 75.9577 67.1272 74.8417C66.5478 74.3911 66.4424 73.554 66.8923 72.9727C67.3414 72.3915 68.176 72.2858 68.7554 72.7363C70.6648 74.2227 73.3329 74.2227 75.243 72.7363C75.8224 72.2858 76.6562 72.3915 77.1061 72.9727C77.5552 73.554 77.4498 74.3911 76.8704 74.8417C75.4363 75.9577 73.7176 76.516 71.9988 76.516Z' fill='%23454545'/%3e%3cpath d='M58.6251 73.96C58.3276 73.5222 57.8939 73.469 57.718 73.469C57.5421 73.469 57.101 73.5168 56.811 73.96C56.4081 74.5749 55.585 74.746 54.972 74.3419C54.3591 73.9384 54.1885 73.1121 54.5914 72.4972C55.2849 71.4378 56.4538 70.8047 57.718 70.8047C58.9822 70.8047 60.1511 71.4378 60.8453 72.4972C61.2475 73.1121 61.077 73.9384 60.464 74.3419C60.2391 74.49 59.2454 74.8739 58.6251 73.96Z' fill='%23454545'/%3e%3cpath d='M87.1876 73.96C86.8901 73.5222 86.4571 73.469 86.2805 73.469C86.1046 73.469 85.6642 73.5168 85.3741 73.96C84.9713 74.5749 84.1475 74.746 83.5345 74.3419C82.9216 73.9384 82.751 73.1121 83.1539 72.4972C83.8481 71.4378 85.017 70.8047 86.2812 70.8047C87.5447 70.8047 88.7136 71.4378 89.4078 72.4972C89.8107 73.1121 89.6401 73.9384 89.0272 74.3419C88.8022 74.49 87.8086 74.8739 87.1876 73.96Z' fill='%23454545'/%3e%3ccircle cx='72' cy='72' r='72' fill='%23BBE3D7'/%3e%3cpath d='M57.8627 78L65 85.1367C65 85.1367 58.3298 97.4142 46.3849 109.359C42.1198 113.625 35.8091 114.23 32.2895 110.71C28.7706 107.19 29.3753 100.88 33.6404 96.6145C45.5853 84.6696 57.8627 78 57.8627 78Z' fill='%236670A5'/%3e%3cpath d='M49 83.6111C50.3607 85.6362 51.9273 87.5447 53.691 89.3083C55.4553 91.072 57.3631 92.6393 59.3882 94C63.0565 88.8161 65 85.239 65 85.239L57.7604 78C57.7604 78 54.1839 79.9435 49 83.6111Z' fill='%237A86C6'/%3e%3cpath d='M113 62.5C113 80.4489 98.4489 95 80.5 95C62.5511 95 48 80.4489 48 62.5C48 44.5504 62.5511 30 80.5 30C98.4489 30 113 44.5504 113 62.5Z' fill='%236670A5'/%3e%3cpath d='M104 62.5003C104 75.4788 93.4787 86 80.5 86C67.5213 86 57 75.4788 57 62.5003C57 49.5218 67.5213 39 80.5 39C93.4787 39 104 49.5218 104 62.5003Z' fill='%23CCECF9'/%3e%3cpath d='M66.5 64C65.6716 64 65 63.3273 65 62.4976V59.5024C65 58.6727 65.6716 58 66.5 58C67.3284 58 68 58.6727 68 59.5024V62.4974C68.0002 63.3272 67.3284 64 66.5 64Z' fill='%232D2D2D'/%3e%3cpath d='M94.5 64C93.6716 64 93 63.3273 93 62.4976V59.5024C93 58.6727 93.6716 58 94.5 58C95.3284 58 96 58.6727 96 59.5024V62.4974C96.0002 63.3272 95.3284 64 94.5 64Z' fill='%232D2D2D'/%3e%3cpath d='M80.5002 69C78.5064 69 76.6346 68.1213 75.3655 66.5887C74.828 65.9395 74.8906 64.9532 75.5057 64.3859C76.1208 63.8187 77.0552 63.8846 77.5928 64.5338C78.3 65.3879 79.3596 65.8776 80.5001 65.8776C81.6403 65.8776 82.6999 65.3879 83.4071 64.5338C83.9447 63.8846 84.8791 63.8183 85.4943 64.3859C86.1094 64.9532 86.1722 65.9395 85.6344 66.5887C84.3657 68.1213 82.4941 69 80.5002 69Z' fill='%232D2D2D'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_1866_119823'%3e%3crect width='144' height='144' fill='white'/%3e%3c/clipPath%3e%3cclipPath id='clip1_1866_119823'%3e%3crect width='144' height='144' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2053
-
2054
- var img$4 = "data:image/svg+xml,%3csvg width='144' height='144' viewBox='0 0 144 144' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%236ABFA5'/%3e%3cpath d='M76.975 32.7732C79.9117 37.5004 83.0276 42.9368 86.1287 48.7329C87.8031 51.8633 90.8123 54.0548 94.2988 54.6825C100.469 55.7938 106.31 56.9717 111.465 58.1712C115.702 59.1572 117.426 64.2717 114.653 67.6338C111.028 72.0263 106.95 76.7279 102.457 81.5292C100.104 84.0461 98.9851 87.4836 99.4054 90.909C100.173 97.1657 100.778 103.076 101.239 108.507C101.61 112.876 97.2381 116.105 93.1944 114.44C87.6662 112.163 82.6966 109.553 77.0542 106.776C73.8839 105.217 70.1732 105.197 66.9841 106.72C61.3559 109.408 56.0667 111.994 50.9051 114.19C46.8445 115.918 42.404 112.698 42.7799 108.29C43.2385 102.918 43.8374 97.0822 44.5947 90.909C45.015 87.4829 43.8971 84.0454 41.5426 81.5286C37.051 76.7273 32.9716 72.0256 29.3475 67.6331C26.5747 64.271 28.2981 59.1565 32.5352 58.1705C37.6902 56.9711 43.5319 55.7931 49.7019 54.6819C53.1878 54.0542 56.1969 51.8626 57.872 48.7322C60.9725 42.9362 64.0884 37.4997 67.0257 32.7725C69.3225 29.0757 74.6775 29.0757 76.975 32.7732Z' fill='%23EDFFF9'/%3e%3cpath opacity='0.5' d='M60.6643 77.204C60.6643 74.8623 58.2883 72.9644 55.357 72.9644C52.4257 72.9644 50.0497 74.8623 50.0497 77.204C50.0497 79.545 52.4257 81.4436 55.357 81.4436C58.2883 81.4436 60.6643 79.545 60.6643 77.204Z' fill='%23FF83B4'/%3e%3cpath opacity='0.5' d='M93.9503 77.204C93.9503 74.8623 91.5743 72.9644 88.643 72.9644C85.7124 72.9644 83.3364 74.8623 83.3364 77.204C83.3364 79.545 85.7124 81.4436 88.643 81.4436C91.5743 81.4436 93.9503 79.545 93.9503 77.204Z' fill='%23FF83B4'/%3e%3cpath d='M72 76.516C70.2813 76.516 68.5625 75.9577 67.1285 74.8417C66.5491 74.3911 66.4437 73.554 66.8935 72.9727C67.3426 72.3915 68.1772 72.2858 68.7566 72.7363C70.666 74.2227 73.3341 74.2227 75.2442 72.7363C75.8236 72.2858 76.6575 72.3915 77.1073 72.9727C77.5564 73.554 77.451 74.3911 76.8716 74.8417C75.4375 75.9577 73.7188 76.516 72 76.516Z' fill='%23454545'/%3e%3cpath d='M58.626 73.96C58.3286 73.5222 57.8949 73.469 57.719 73.469C57.5431 73.469 57.102 73.5168 56.8119 73.96C56.4091 74.5749 55.586 74.746 54.973 74.3419C54.36 73.9384 54.1895 73.1121 54.5923 72.4972C55.2859 71.4378 56.4548 70.8047 57.719 70.8047C58.9832 70.8047 60.1521 71.4378 60.8463 72.4972C61.2485 73.1121 61.0779 73.9384 60.465 74.3419C60.24 74.49 59.2464 74.8739 58.626 73.96Z' fill='%23454545'/%3e%3cpath d='M87.1882 73.96C86.8907 73.5222 86.4577 73.469 86.2811 73.469C86.1052 73.469 85.6648 73.5168 85.3747 73.96C84.9719 74.5749 84.1481 74.746 83.5351 74.3419C82.9222 73.9384 82.7516 73.1121 83.1545 72.4972C83.8487 71.4378 85.0176 70.8047 86.2818 70.8047C87.5453 70.8047 88.7142 71.4378 89.4084 72.4972C89.8113 73.1121 89.6407 73.9384 89.0278 74.3419C88.8028 74.49 87.8092 74.8739 87.1882 73.96Z' fill='%23454545'/%3e%3c/svg%3e";
2055
-
2056
- const imageSrc = {
2057
- "no-open-alerts": img$6,
2058
- "search-not-found": img$5,
2059
- "no-notes-found": img$4
2060
- };
2061
- const EmptyListMessage = ({ text, imageName, dataTestId = "empty-list-message", className }) => {
2062
- return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-col ui:items-center", className), "data-test-id": dataTestId, children: [imageName && jsxRuntime.jsx("img", { className: "ui:mb-2.5", alt: "", src: imageSrc[imageName] }), jsxRuntime.jsx(Text, { className: "ui:text-center", text })] });
2063
- };
2064
-
2065
- var img$3 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='68' height='20' viewBox='0 0 68 20'%3e %3cg fill='none' fill-rule='nonzero'%3e %3ccircle cx='10' cy='10' r='10' fill='%23F09'%3e %3canimate attributeName='opacity' dur='2s' values='1%3b0.6%3b1' repeatCount='indefinite' begin='0.1'/%3e %3canimate attributeName='r' dur='2s' repeatCount='indefinite' values='10%3b8%3b10' begin='0.1'/%3e %3c/circle%3e %3ccircle cx='34' cy='10' r='10' fill='%236ABFA5'%3e %3canimate attributeName='opacity' dur='2s' values='1%3b0.6%3b1' repeatCount='indefinite' begin='0.6'/%3e %3canimate attributeName='r' dur='2s' repeatCount='indefinite' values='10%3b8%3b10' begin='0.6'/%3e %3c/circle%3e %3ccircle cx='58' cy='10' r='10' fill='%236670A5'%3e %3canimate attributeName='opacity' dur='2s' values='1%3b0.6%3b1' repeatCount='indefinite' begin='1.1'/%3e %3canimate attributeName='r' dur='2s' repeatCount='indefinite' values='10%3b8%3b10' begin='1.1'/%3e %3c/circle%3e %3c/g%3e%3c/svg%3e";
2066
-
2067
- var img$2 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='margin: auto%3b background: none%3b display: block%3b shape-rendering: auto%3b' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' fill='none' stroke='%23009fe3' stroke-width='16' r='36' stroke-dasharray='169.64600329384882 58.548667764616276'%3e %3canimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1.1111111111111112s' values='0 50 50%3b360 50 50' keyTimes='0%3b1'%3e%3c/animateTransform%3e%3c/circle%3e%3c/svg%3e";
2068
-
2069
- var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='margin: auto%3b background: none%3b display: block%3b shape-rendering: auto%3b' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' fill='none' stroke='%23cbd5e1' stroke-width='16' r='36' stroke-dasharray='169.64600329384882 58.548667764616276'%3e %3canimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1.1111111111111112s' values='0 50 50%3b360 50 50' keyTimes='0%3b1'%3e%3c/animateTransform%3e%3c/circle%3e%3c!-- %5bldio%5d generated by https://loading.io/ --%3e%3c/svg%3e";
2070
-
2071
- var css_248z$8 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-loading {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-loading .cweb-loading-text {\n margin-bottom: 24px;\n}\n.cweb-loading.as-modal {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 9999;\n background-color: rgba(255, 255, 255, 0.6);\n}\n.cweb-loading.as-modal .cweb-loading-panel {\n position: relative;\n width: 320px;\n min-height: 120px;\n border-radius: 4px;\n padding: 16px;\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.36);\n background-color: #ffffff;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n.cweb-loading.as-modal .cweb-loading-panel:before {\n position: absolute;\n content: \"\";\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n height: 3px;\n background-color: #6abfa5;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}";
2072
- styleInject(css_248z$8);
2073
-
2074
- function LoadingIndicator(_a) {
2075
- var { asModal = false, asSpinner = false, className = "", spinnerColor = "blue", dataTestId = "loading-indicator" } = _a, restProps = __rest(_a, ["asModal", "asSpinner", "className", "spinnerColor", "dataTestId"]);
2076
- const spinnerToRender = spinnerColor === "blue" ? img$2 : img$1;
2077
- const containerClassName = classNames__default.default("cweb-loading", className, {
2078
- "as-modal": asModal
2079
- });
2080
- return jsxRuntime.jsx("div", Object.assign({ "aria-label": "Loading" }, restProps, { className: containerClassName, "data-test-id": dataTestId, role: "progressbar", children: jsxRuntime.jsx("img", { alt: "", src: asSpinner ? spinnerToRender : img$3, "data-chromatic": "ignore", className: classNames__default.default("ui:fill-current ui:stroke-current ui:text-gray-600", {
2081
- "ui:h-4 ui:w-4": asSpinner,
2082
- "ui:h-12 ui:w-12": !asSpinner
2083
- }) }) }));
2084
- }
2085
-
2086
- const CenteredHero = ({ title, text, image, imageAlt = "", slots, background = "slate-50", imageSize = "small", dataTestId = "centered-hero" }) => {
2087
- return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:align-center ui:flex ui:w-full ui:flex-col ui:items-center ui:p-6", {
2088
- "ui:bg-white": background === "white",
2089
- "ui:bg-slate-50": background === "slate-50"
2090
- }), "data-test-id": dataTestId, children: [image && jsxRuntime.jsx("img", { src: image, alt: imageAlt, className: classNames__default.default("ui:mb-4", {
2091
- "ui:max-h-36": imageSize === "small",
2092
- "ui:max-h-72": imageSize === "large"
2093
- }) }), title && jsxRuntime.jsx(Title, { variant: "base", children: title }), text && jsxRuntime.jsx(Text, { className: "ui:text-center", children: text }), (slots === null || slots === void 0 ? void 0 : slots.bottom) && jsxRuntime.jsx(Box, { _mt: "l", children: slots === null || slots === void 0 ? void 0 : slots.bottom })] });
2094
- };
2095
-
2096
- const AccordionListActions = (props) => {
2097
- return jsxRuntime.jsx("div", { className: "ui:flex ui:flex-row ui:flex-wrap ui:justify-start ui:gap-3", children: props.children });
2098
- };
2099
-
2100
- const AccordionList = (_a) => {
2101
- var { localisations: { title, searchPlaceholder = "", emptyListText = "" }, buttonProps, accordionItems, isSearchEnabled = false, isLoading = false, isError = false, errorState, actions, headerActions } = _a, accordionProps = __rest(_a, ["localisations", "buttonProps", "accordionItems", "isSearchEnabled", "isLoading", "isError", "errorState", "actions", "headerActions"]);
2102
- const [searchString, setSearchString] = React.useState("");
2103
- const filterItems = (items, filterString) => {
2104
- return items.filter((item) => isSubstring(item.title, filterString) || isSubstring(item.subtitle, filterString) || isSubstring(item.itemId, filterString) || isSubstring(item.matchTerm, filterString));
2105
- };
2106
- const filterAccordionListItems = (item, filterString) => {
2107
- switch (item.draggableListType) {
2108
- case "draggable":
2109
- return Object.assign(Object.assign({}, item), { listItems: filterItems(item.listItems, filterString) });
2110
- case "sortable":
2111
- return Object.assign(Object.assign({}, item), { listItems: filterItems(item.listItems, filterString) });
2112
- default:
2113
- return Object.assign(Object.assign({}, item), { listItems: filterItems(item.listItems, filterString) });
2114
- }
2115
- };
2116
- const contentForAccordionItem = (item) => {
2117
- switch (item.draggableListType) {
2118
- case "draggable":
2119
- return jsxRuntime.jsx(List, { draggableListType: item.draggableListType, items: item.listItems });
2120
- case "sortable":
2121
- return jsxRuntime.jsx(List, { draggableListType: item.draggableListType, draggableIdentifier: item.draggableIdentifier, items: item.listItems });
2122
- default:
2123
- return jsxRuntime.jsx(List, { items: item.listItems });
2124
- }
2125
- };
2126
- const titleForAccordionItem = ({ searchEnabled, itemTitle, numberOfItems, filteredNumberOfItems, filterString }) => {
2127
- if (!searchEnabled) {
2128
- return itemTitle;
2129
- }
2130
- if (filterString.length > 0) {
2131
- return `${itemTitle} (${filteredNumberOfItems}/${numberOfItems})`;
2132
- }
2133
- return `${itemTitle} (${numberOfItems})`;
2134
- };
2135
- const filteredAccordionItems = React.useMemo(() => {
2136
- var _a2;
2137
- return (_a2 = accordionItems === null || accordionItems === void 0 ? void 0 : accordionItems.map((item) => {
2138
- if (!isSearchEnabled) {
2139
- return Object.assign(Object.assign({}, item), { content: contentForAccordionItem(item) });
2140
- }
2141
- const filteredItem = filterAccordionListItems(item, searchString);
2142
- return Object.assign(Object.assign({}, filteredItem), { title: titleForAccordionItem({
2143
- searchEnabled: isSearchEnabled,
2144
- itemTitle: item.title,
2145
- numberOfItems: item.listItems.length,
2146
- filteredNumberOfItems: filteredItem.listItems.length,
2147
- filterString: searchString
2148
- }), content: contentForAccordionItem(filteredItem) });
2149
- })) !== null && _a2 !== void 0 ? _a2 : [];
2150
- }, [accordionItems, searchString, isSearchEnabled]);
2151
- return jsxRuntime.jsxs("div", { className: "ui:flex ui:h-full ui:flex-col ui:overflow-auto ui:rounded-lg ui:bg-white", children: [jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-col ui:space-y-4 ui:border-b ui:border-slate-200 ui:p-6", children: [jsxRuntime.jsx(Stack, { axis: "x", justify: "between", width: "full", children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [title && jsxRuntime.jsx(Title, { variant: "sm", children: title }), headerActions && jsxRuntime.jsx(jsxRuntime.Fragment, { children: headerActions })] }) }), isSearchEnabled && jsxRuntime.jsx(SearchInput, { width: "full", value: searchString, placeholder: searchPlaceholder, onChange: (e) => {
2152
- setSearchString(typeof e === "string" ? e : e.currentTarget.value);
2153
- } }), buttonProps && jsxRuntime.jsx("div", { children: jsxRuntime.jsx(SecondaryButton, Object.assign({}, buttonProps)) }), actions && jsxRuntime.jsx("div", { children: actions })] }), isError && errorState && jsxRuntime.jsx(CenteredHero, { dataTestId: "hero-error", title: errorState.title, text: errorState.description, image: "" }), !isError && isLoading && jsxRuntime.jsx(LoadingIndicator, { className: "ui:flex-1" }), !isError && !isLoading && filteredAccordionItems.length > 0 && jsxRuntime.jsx(Accordion, Object.assign({}, accordionProps, { items: filteredAccordionItems })), !isError && !isLoading && filteredAccordionItems.length === 0 && jsxRuntime.jsx(EmptyListMessage, { imageName: "search-not-found", text: emptyListText, className: "ui:mb-4 ui:border-b ui:border-t ui:border-slate-200 ui:py-4" })] });
2154
- };
2155
- AccordionList.Actions = AccordionListActions;
2156
-
2157
1475
  const TertiaryButton = React__namespace.default.forwardRef((props, innerRef) => {
2158
1476
  return jsxRuntime.jsx(ButtonV2, Object.assign({ ref: innerRef }, props, { className: classNames__default.default([
2159
1477
  "ui:text-primary",
2160
1478
  "ui:border-transparent ui:bg-transparent ui:!shadow-none",
2161
1479
  {
2162
- "ui:hover:bg-primary-background ui:hover:text-primary-dark": !props.isDisabled
1480
+ "ui:hover:bg-primary-background ui:hover:text-primary-dark": !props.disabled
2163
1481
  }
2164
1482
  ], props.className), textColor: "blue-800", textHoverColor: "blue-900" }));
2165
1483
  });
2166
1484
 
2167
1485
  const ModalHeader = (props) => {
2168
1486
  var _a;
2169
- return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-row", "ui:space-x-2 ui:px-6 ui:py-4", "ui:items-center ui:justify-between", "ui:border-b ui:border-slate-100", "ui:rounded-t-lg"), children: [jsxRuntime.jsx(Title, { text: props.title, type: "sm" }), jsxRuntime.jsx(TertiaryButton, { leadingIcon: jsxRuntime.jsx(CrossIcon, {}), onClick: props.onCloseClick, "aria-label": (_a = props.closeButtonLabel) !== null && _a !== void 0 ? _a : "Close dialog" })] });
1487
+ return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-row", "ui:space-x-2 ui:px-6 ui:py-4", "ui:items-center ui:justify-between", "ui:border-b ui:border-slate-100", "ui:rounded-t-lg"), children: [jsxRuntime.jsx(Heading, { variant: "h3", as: "h5", children: props.title }), jsxRuntime.jsx(TertiaryButton, { leadingIcon: jsxRuntime.jsx(CrossIcon, {}), onClick: props.onCloseClick, "aria-label": (_a = props.closeButtonLabel) !== null && _a !== void 0 ? _a : "Close dialog" })] });
2170
1488
  };
2171
1489
 
2172
- const PrimaryButton = React__namespace.default.forwardRef((props, innerRef) => {
2173
- return jsxRuntime.jsx(ButtonV2, Object.assign({ ref: innerRef }, props, { className: classNames__default.default([
2174
- "ui:text-white",
2175
- "ui:bg-linear-to-r",
2176
- "ui:gradient-blue",
2177
- {
2178
- "ui:hover:gradient-blue--hover": !props.isDisabled && !props.isPending
2179
- }
2180
- ], props.className), textColor: "white" }));
2181
- });
2182
-
2183
1490
  const ModalFooter = (props) => {
2184
1491
  return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-row", "ui:space-x-2 ui:px-6 ui:py-4", "ui:items-center", "ui:border-t ui:border-slate-100 ui:bg-slate-50", "ui:rounded-b-lg", {
2185
- "ui:justify-between": props.footerLeadingComponent || props.footerLeadingAccessory,
2186
- "ui:justify-end": !props.footerLeadingComponent && !props.footerLeadingAccessory
2187
- }), children: [props.footerLeadingAccessory && (typeof props.footerLeadingAccessory === "string" ? jsxRuntime.jsx(Text, { variant: "base", color: "slate-500", children: props.footerLeadingAccessory }) : props.footerLeadingAccessory), props.footerLeadingComponent && (typeof props.footerLeadingComponent === "string" ? jsxRuntime.jsx(Text, { variant: "base", color: "slate-500", children: props.footerLeadingComponent }) : jsxRuntime.jsx(SecondaryButton, Object.assign({ "data-test-id": "modal-footer-leading-secondary-button" }, props.footerLeadingComponent))), jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-row ui:space-x-2", children: [props.footerTrailingComponents.secondaryButton, props.footerTrailingComponents.secondaryButtonProps && jsxRuntime.jsx(SecondaryButton, Object.assign({ "data-test-id": "modal-footer-trailing-secondary-button" }, props.footerTrailingComponents.secondaryButtonProps)), props.footerTrailingComponents.primaryButton, props.footerTrailingComponents.primaryButtonProps && jsxRuntime.jsx(PrimaryButton, Object.assign({ "data-test-id": "modal-footer-trailing-primary-button" }, props.footerTrailingComponents.primaryButtonProps))] })] });
1492
+ "ui:justify-between": props.footerLeadingAccessory,
1493
+ "ui:justify-end": !props.footerLeadingAccessory
1494
+ }), children: [props.footerLeadingAccessory && (typeof props.footerLeadingAccessory === "string" ? jsxRuntime.jsx(Text, { variant: "base", color: "slate-500", children: props.footerLeadingAccessory }) : props.footerLeadingAccessory), jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-row ui:space-x-2", children: [props.footerTrailingComponents.secondaryButton, props.footerTrailingComponents.primaryButton] })] });
2188
1495
  };
2189
1496
 
2190
1497
  const TOP_BOTTOM_MARGIN_REM = 7.5;
@@ -2210,7 +1517,7 @@ const ModalBase = (props) => {
2210
1517
  "ui:max-h-135 ui:overflow-y-auto": props.scrollableContent && !autoMaxContentHeight
2211
1518
  }), children: jsxRuntime.jsx("div", { className: classNames__default.default("ui:px-6", {
2212
1519
  "ui:py-6": withContentPaddingY
2213
- }), children: props.children }) }), jsxRuntime.jsx(ModalFooter, { footerLeadingAccessory: props.footerLeadingAccessory, footerLeadingComponent: props.footerLeadingComponent, footerTrailingComponents: props.footerTrailingComponents })] });
1520
+ }), children: props.children }) }), jsxRuntime.jsx(ModalFooter, { footerLeadingAccessory: props.footerLeadingAccessory, footerTrailingComponents: props.footerTrailingComponents })] });
2214
1521
  };
2215
1522
 
2216
1523
  const Modal = (props) => {
@@ -2218,6 +1525,63 @@ const Modal = (props) => {
2218
1525
  };
2219
1526
  Modal.setAppElement = ReactModal__default.default.setAppElement;
2220
1527
 
1528
+ const StackInner = (props, ref) => {
1529
+ const { children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
1530
+ const stackClasses = classNames__default.default(`ui:flex`, {
1531
+ "ui:flex-row": axis === "x",
1532
+ "ui:flex-col": axis === "y",
1533
+ "ui:flex-row-reverse": axis === "x" && reverse,
1534
+ "ui:flex-col-reverse": axis === "y" && reverse,
1535
+ "ui:flex-wrap": wrap,
1536
+ "ui:gap-f_none": _gap === "none",
1537
+ "ui:gap-f_xs": _gap === "xs",
1538
+ "ui:gap-f_s": _gap === "s",
1539
+ "ui:gap-f_base": _gap === "base",
1540
+ "ui:gap-f_m": _gap === "m",
1541
+ "ui:gap-f_l": _gap === "l",
1542
+ "ui:gap-f_xl": _gap === "xl",
1543
+ "ui:gap-f_2xl": _gap === "2xl",
1544
+ "ui:gap-f_3xl": _gap === "3xl",
1545
+ "ui:gap-f_4xl": _gap === "4xl",
1546
+ "ui:justify-center": justify === "center",
1547
+ "ui:justify-start": justify === "start",
1548
+ "ui:justify-end": justify === "end",
1549
+ "ui:justify-normal": justify === "normal",
1550
+ "ui:justify-between": justify === "between",
1551
+ "ui:justify-around": justify === "around",
1552
+ "ui:justify-evenly": justify === "evenly",
1553
+ "ui:justify-stretch": justify === "stretch",
1554
+ "ui:items-center": align === "center",
1555
+ "ui:items-start": align === "start",
1556
+ "ui:items-end": align === "end",
1557
+ "ui:items-baseline": align === "baseline",
1558
+ "ui:items-stretch": align === "stretch",
1559
+ "ui:items-normal": align === "normal"
1560
+ });
1561
+ const classes = tailwindMerge.twMerge(stackClasses, className);
1562
+ if (divider) {
1563
+ const numberOfChildNodes = React__namespace.default.Children.toArray(children).length;
1564
+ return (
1565
+ // @ts-expect-error - Complex polymorphic type intersection between Stack and Box props
1566
+ jsxRuntime.jsx(Box, Object.assign({ as, ref, className: classes }, attributes, { children: React__namespace.default.Children.map(children, (child, index) => {
1567
+ const isLastItem = index >= numberOfChildNodes - 1;
1568
+ if (React__namespace.default.isValidElement(child) === false) {
1569
+ return null;
1570
+ }
1571
+ if (isLastItem) {
1572
+ return child;
1573
+ }
1574
+ return jsxRuntime.jsxs(React__namespace.default.Fragment, { children: [child, divider] });
1575
+ }) }))
1576
+ );
1577
+ }
1578
+ return (
1579
+ // @ts-expect-error - Complex polymorphic type intersection between Stack and Box props
1580
+ jsxRuntime.jsx(Box, Object.assign({ as, ref, className: classes }, attributes, { children }))
1581
+ );
1582
+ };
1583
+ const Stack = React__namespace.default.forwardRef(StackInner);
1584
+
2221
1585
  const Tag = (_a) => {
2222
1586
  var { _as = "span", _type = "neutral", _size = "large", _variant = "flat", _leadingIcon, _trailingIcon, _truncate, children, className } = _a, rest = __rest(_a, ["_as", "_type", "_size", "_variant", "_leadingIcon", "_trailingIcon", "_truncate", "children", "className"]);
2223
1587
  const isBordered = _variant === "bordered";
@@ -2330,20 +1694,12 @@ function checkImageValidity(src) {
2330
1694
  image.src = src;
2331
1695
  });
2332
1696
  }
2333
- const legacySizeAliases = {
2334
- xsmall: "xs",
2335
- small: "s",
2336
- medium: "m"
2337
- };
2338
1697
  const avatarSizeTokens = {
2339
1698
  xs: "var(--ui-semantic-size-lg)",
2340
1699
  s: "var(--ui-semantic-size-xl)",
2341
1700
  m: "var(--ui-semantic-size-5xl)"
2342
1701
  };
2343
- function resolveSize(size) {
2344
- return size in legacySizeAliases ? legacySizeAliases[size] : size;
2345
- }
2346
- const Avatar = ({ color, isSelf, size = "m", applyGroupOffset, src, alt, defaultImage, initials, children, className }) => {
1702
+ const Avatar = ({ isSelf = false, size = "m", applyGroupOffset, src, alt, defaultImage, initials, children, className }) => {
2347
1703
  const [hasValidImage, setHasValidImage] = React.useState(false);
2348
1704
  React.useEffect(() => {
2349
1705
  let mounted = true;
@@ -2358,27 +1714,18 @@ const Avatar = ({ color, isSelf, size = "m", applyGroupOffset, src, alt, default
2358
1714
  mounted = false;
2359
1715
  };
2360
1716
  }, [defaultImage, src]);
2361
- const resolvedSize = resolveSize(size);
2362
- const sizeStyle = resolvedSize === "large" ? void 0 : {
2363
- width: avatarSizeTokens[resolvedSize],
2364
- height: avatarSizeTokens[resolvedSize]
1717
+ const sizeStyle = {
1718
+ width: avatarSizeTokens[size],
1719
+ height: avatarSizeTokens[size]
2365
1720
  };
2366
- const sizeClassName = classNames__default.default("ui:rounded-full", {
2367
- "ui:h-32 ui:w-32": resolvedSize === "large"
2368
- });
2369
- const groupOffsetClassNames = classNames__default.default({
2370
- "ui:-ml-[calc(theme('spacing.32')/4)]": resolvedSize === "large" && applyGroupOffset
2371
- });
2372
- const groupOffsetStyle = applyGroupOffset && resolvedSize !== "large" ? { marginLeft: `calc(${avatarSizeTokens[resolvedSize]} / -4)` } : void 0;
2373
- const resolvedIsSelf = isSelf !== null && isSelf !== void 0 ? isSelf : color === "primary";
1721
+ const groupOffsetStyle = applyGroupOffset ? { marginLeft: `calc(${avatarSizeTokens[size]} / -4)` } : void 0;
2374
1722
  const colorClassName = classNames__default.default({
2375
- "ui:bg-background-brand-primary-default ui:text-text-inverse-primary-default": resolvedIsSelf,
2376
- "ui:bg-background-neutral-tertiary-default ui:text-text-neutral-primary-default": !resolvedIsSelf
1723
+ "ui:bg-background-brand-primary-default ui:text-text-inverse-primary-default": isSelf,
1724
+ "ui:bg-background-neutral-tertiary-default ui:text-text-neutral-primary-default": !isSelf
2377
1725
  });
2378
1726
  const containerClassName = classNames__default.default(
2379
1727
  className,
2380
- sizeClassName,
2381
- groupOffsetClassNames,
1728
+ "ui:rounded-full",
2382
1729
  colorClassName,
2383
1730
  /**
2384
1731
  * The design system puts a 1px inverse border on every avatar. It
@@ -2392,7 +1739,7 @@ const Avatar = ({ color, isSelf, size = "m", applyGroupOffset, src, alt, default
2392
1739
  */
2393
1740
  "ui:flex ui:shrink-0 ui:items-center ui:justify-center"
2394
1741
  );
2395
- const textVariant = resolvedSize === "m" ? "body-base-regular" : "body-small-regular";
1742
+ const textVariant = size === "m" ? "body-base-regular" : "body-small-regular";
2396
1743
  const imageClassName = classNames__default.default("ui:rounded-full ui:h-full ui:w-full ui:object-cover");
2397
1744
  const renderAvatar = () => {
2398
1745
  const elementToRender = initials !== null && initials !== void 0 ? initials : children;
@@ -2401,9 +1748,6 @@ const Avatar = ({ color, isSelf, size = "m", applyGroupOffset, src, alt, default
2401
1748
  } else if (hasValidImage) {
2402
1749
  return jsxRuntime.jsx("img", { className: imageClassName, src, alt });
2403
1750
  } else {
2404
- if (resolvedSize === "large") {
2405
- return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", { className: "ui:text-5xl", "aria-hidden": true, children: elementToRender }), jsxRuntime.jsx(ScreenReaderText, { children: alt })] });
2406
- }
2407
1751
  return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Text, { variant: textVariant, color: "current", "aria-hidden": true, children: elementToRender }), jsxRuntime.jsx(ScreenReaderText, { children: alt })] });
2408
1752
  }
2409
1753
  };
@@ -2433,14 +1777,8 @@ const AvatarGroup = (props) => {
2433
1777
  "ui:outline-slate-100": props.outlineColor === "slate-100",
2434
1778
  "ui:outline-white": props.outlineColor === "white"
2435
1779
  }, {
2436
- "ui:outline-2": isOneOfSizes(child.props.size, [
2437
- "xs",
2438
- "xsmall",
2439
- "s",
2440
- "small"
2441
- ]),
2442
- "ui:outline-4": isOneOfSizes(child.props.size, ["m", "medium"]),
2443
- "ui:outline-8": isOneOfSizes(child.props.size, ["large"])
1780
+ "ui:outline-2": isOneOfSizes(child.props.size, ["xs", "s"]),
1781
+ "ui:outline-4": isOneOfSizes(child.props.size, ["m"])
2444
1782
  }) }));
2445
1783
  }), jsxRuntime.jsx(MoreAvatarsLabel, Object.assign({}, props, { maxAvatars }))] }));
2446
1784
  };
@@ -2460,7 +1798,6 @@ function MoreAvatarsLabel(props) {
2460
1798
  }
2461
1799
 
2462
1800
  const Badge = (props) => {
2463
- var _a;
2464
1801
  const containerClasses = classNames__default.default([
2465
1802
  "ui:inline-flex",
2466
1803
  "ui:items-center",
@@ -2475,10 +1812,33 @@ const Badge = (props) => {
2475
1812
  "ui-typo-body-small-bold",
2476
1813
  "ui:text-text-brand-primary-default"
2477
1814
  ]);
2478
- const badgeContent = (_a = props.children) !== null && _a !== void 0 ? _a : props.badgeCount;
2479
- return jsxRuntime.jsx("div", { className: containerClasses, children: jsxRuntime.jsx("span", { className: textClasses, children: badgeContent }) });
1815
+ return jsxRuntime.jsx("div", { className: containerClasses, children: jsxRuntime.jsx("span", { className: textClasses, children: props.children }) });
2480
1816
  };
2481
1817
 
1818
+ const PrimaryButton = React__namespace.default.forwardRef((props, innerRef) => {
1819
+ return jsxRuntime.jsx(ButtonV2, Object.assign({ ref: innerRef }, props, { className: classNames__default.default([
1820
+ "ui:text-white",
1821
+ "ui:bg-linear-to-r",
1822
+ "ui:gradient-blue",
1823
+ {
1824
+ "ui:hover:gradient-blue--hover": !props.disabled && !props.isPending
1825
+ }
1826
+ ], props.className), textColor: "white" }));
1827
+ });
1828
+
1829
+ const SecondaryButton = React__namespace.default.forwardRef((props, innerRef) => {
1830
+ const { textColor = "primary", textHoverColor = "blue-900" } = props, rest = __rest(props, ["textColor", "textHoverColor"]);
1831
+ return jsxRuntime.jsx(ButtonV2, Object.assign({ ref: innerRef }, rest, { className: classNames__default.default([
1832
+ `ui:text-${textColor}`,
1833
+ // Colors of any icons on the button
1834
+ "ui:bg-white",
1835
+ "ui:border-neutral-border-high-contrast",
1836
+ {
1837
+ "ui:hover:border-neutral-interactive ui:hover:bg-primary-background": !props.disabled
1838
+ }
1839
+ ], props.className), textColor, textHoverColor }));
1840
+ });
1841
+
2482
1842
  const PrimaryIconButton = React__namespace.default.forwardRef((props, innerRef) => {
2483
1843
  const { children: icon, size = "medium", label } = props, rest = __rest(props, ["children", "size", "label"]);
2484
1844
  return jsxRuntime.jsx(PrimaryButton, Object.assign({ ref: innerRef }, rest, { "aria-label": label, size, leadingIcon: icon, className: classNames__default.default({
@@ -2572,112 +1932,43 @@ const Carousel = ({ id, className, slides = [], labels }) => {
2572
1932
  return;
2573
1933
  }
2574
1934
  const item = container.querySelector(`li:nth-child(${index + 1})`);
2575
- if (item) {
2576
- item.scrollIntoView({ behavior: "smooth", block: "nearest" });
2577
- setCurrentIndex(index);
2578
- }
2579
- }, [setCurrentIndex, slidesContainer.current]);
2580
- const onClickNext = React.useCallback(() => {
2581
- const nextIndex = (currentIndex + 1) % slides.length;
2582
- scrollToIndex(nextIndex);
2583
- }, [scrollToIndex, slides, currentIndex]);
2584
- const onClickPrevious = React.useCallback(() => {
2585
- let nextIndex = currentIndex - 1;
2586
- if (nextIndex < 0) {
2587
- nextIndex = slides.length - 1;
2588
- }
2589
- scrollToIndex(nextIndex);
2590
- }, [scrollToIndex, slides, currentIndex]);
2591
- const setCurrentIndexDebounced = React.useCallback(lodashEs.debounce((index) => {
2592
- setCurrentIndex(index);
2593
- }, 300), [setCurrentIndex]);
2594
- const onScroll = React.useCallback((e) => {
2595
- const scrollWidth = e.currentTarget.clientWidth;
2596
- const scrollLeft = e.currentTarget.scrollLeft;
2597
- const index = Math.round(scrollLeft / scrollWidth);
2598
- setCurrentIndexDebounced(index);
2599
- }, [setCurrentIndexDebounced]);
2600
- return jsxRuntime.jsx("div", { ref: slidesContainer, id, className, children: jsxRuntime.jsxs(Stack, { width: "full", align: "stretch", _gap: "l", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "stretch", width: "full", _gap: "l", children: [jsxRuntime.jsx(Stack, { justify: "center", children: jsxRuntime.jsx(SecondaryButton, { onClick: onClickPrevious, leadingIcon: jsxRuntime.jsx(ChevronLeftIcon, {}), "aria-label": (_a = labels === null || labels === void 0 ? void 0 : labels.previousButton) !== null && _a !== void 0 ? _a : "Previous slide", disabled: slides.length === 0 }) }), jsxRuntime.jsx(Stack, { as: "ol", ref: slidesTrackRef, tabIndex: isScrollable ? 0 : void 0, axis: "x", width: "full", align: "stretch", className: "ui:w-full ui:snap-x ui:snap-mandatory ui:overflow-x-auto", style: { scrollbarWidth: "none" }, onScroll, children: slides.map((slide, i) => jsxRuntime.jsx(Box, { width: "full", as: "li", className: "ui:shrink-0 ui:snap-start", children: slide }, i)) }), jsxRuntime.jsx(Stack, { justify: "center", children: jsxRuntime.jsx(SecondaryButton, { onClick: onClickNext, leadingIcon: jsxRuntime.jsx(ChevronRightIcon, {}), "aria-label": (_b = labels === null || labels === void 0 ? void 0 : labels.nextButton) !== null && _b !== void 0 ? _b : "Next slide", disabled: slides.length === 0 }) })] }), jsxRuntime.jsx(Stack, { align: "center", children: jsxRuntime.jsx(DotList, { activeIndex: currentIndex, amount: slides.length, onClickIndex: scrollToIndex, buttonLabel: labels === null || labels === void 0 ? void 0 : labels.dotButton }) })] }) });
2601
- };
2602
-
2603
- var css_248z$7 = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n.cweb-checkbox {\n outline: none;\n}\n.cweb-checkbox .cweb-checkbox-input {\n position: absolute;\n -webkit-appearance: none;\n height: 1px;\n opacity: 0;\n width: 1px;\n}\n.cweb-checkbox.type-regular .cweb-checkbox-icon-container {\n border-color: #cccccc;\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n border-width: 1px;\n border-style: solid;\n border-radius: 4px;\n}\n.cweb-checkbox.type-regular.hasError .cweb-checkbox-icon-container {\n border-color: var(--ui-color-red-800, #991b1b);\n}\n.cweb-checkbox.type-regular.is-focused .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon {\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2210%22 height%3D%228%22 viewBox%3D%220 0 10 8%22 fill%3D%22none%22%3E %3Cpath d%3D%22M9.207 0.792787C9.39447 0.980314 9.49979 1.23462 9.49979 1.49979C9.49979 1.76495 9.39447 2.01926 9.207 2.20679L4.207 7.20679C4.01947 7.39426 3.76516 7.49957 3.5 7.49957C3.23484 7.49957 2.98053 7.39426 2.793 7.20679L0.793 5.20679C0.610842 5.01818 0.510047 4.76558 0.512326 4.50339C0.514604 4.24119 0.619773 3.99038 0.805181 3.80497C0.990589 3.61956 1.2414 3.51439 1.5036 3.51211C1.7658 3.50983 2.0184 3.61063 2.207 3.79279L3.5 5.08579L7.793 0.792787C7.98053 0.605316 8.23484 0.5 8.5 0.5C8.76516 0.5 9.01947 0.605316 9.207 0.792787Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-checked.is-focused .cweb-checkbox-icon-container {\n border-color: #1d4ed8;\n}\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon {\n width: 0.5rem;\n height: 0.5rem;\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%222%22 viewBox%3D%220 0 10 2%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M9 -4.37114e-08C9.55228 -1.95703e-08 10 0.447715 10 1C10 1.55228 9.55228 2 9 2L1 2C0.447716 2 -6.78525e-08 1.55228 -4.37114e-08 1C-1.95703e-08 0.447715 0.447715 -4.17544e-07 1 -3.93402e-07L9 -4.37114e-08Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-indeterminate.is-focused .cweb-checkbox-icon-container {\n border-color: #1d4ed8;\n}\n.cweb-checkbox.type-regular.is-disabled.show-cross-when-disabled .cweb-checkbox-icon {\n width: 10px;\n height: 10px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2211px%22 height%3D%2211px%22 viewBox%3D%220 0 11 11%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cg stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke-linecap%3D%22round%22%3E %3Cg transform%3D%22translate(-6.000000%2C -7.000000)%22 stroke%3D%22%232D2D2D%22 stroke-width%3D%222%22%3E %3Cpath d%3D%22M7%2C17 L16%2C8 M16%2C17 L7%2C8%22 %2F%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n opacity: 0.6;\n}";
2604
- styleInject(css_248z$7);
2605
-
2606
- const CheckboxInner = (props) => {
2607
- const { id, explanation, type = "regular", isChecked = false, isIndeterminate = false, isDisabled, name, value, onChange, onClick, className, classNameCheckboxLabel, error, innerRef } = props;
2608
- const [checked, setChecked] = React.useState(false);
2609
- const [indeterminate, setIndeterminate] = React.useState(isIndeterminate);
2610
- const [isFocused, setIsFocused] = React.useState(false);
2611
- const containerClassName = classNames__default.default("cweb-checkbox", "type-regular", className, {
2612
- "is-focused": isFocused,
2613
- "is-checked": checked && !indeterminate,
2614
- "is-indeterminate": indeterminate,
2615
- "ui:opacity-50 ui:cursor-not-allowed is-disabled": isDisabled,
2616
- hasError: error
2617
- });
2618
- React.useEffect(() => {
2619
- setChecked(isChecked);
2620
- setIndeterminate(false);
2621
- }, [isChecked]);
2622
- React.useEffect(() => {
2623
- setIndeterminate(isIndeterminate);
2624
- }, [isIndeterminate]);
2625
- React.useEffect(() => {
2626
- if (innerRef) {
2627
- if (typeof innerRef !== "function" && (innerRef === null || innerRef === void 0 ? void 0 : innerRef.current)) {
2628
- innerRef.current.indeterminate = !indeterminate;
2629
- }
2630
- }
2631
- }, [indeterminate]);
2632
- const handleChange = (event) => {
2633
- setChecked(event.currentTarget.checked);
2634
- event.stopPropagation();
2635
- setIndeterminate(false);
2636
- if (onChange) {
2637
- onChange(event);
2638
- }
2639
- };
2640
- const handleFocus = () => setIsFocused(true);
2641
- const handleBlur = () => setIsFocused(false);
2642
- return jsxRuntime.jsx("div", {
2643
- className: containerClassName,
2644
- /**
2645
- * This harms a11y since the div becomes an interactible element.
2646
- * The main interaction in this component happens between a styled label (looking like a checkbox)
2647
- * and the invisible input checkbox itself.
2648
- *
2649
- * This `onClick` event is a requirement from using this component in the table,
2650
- * since the row is clickable and we need to stop propagation to not invoking the row click
2651
- * upon marking the checkbox as checked/unchecked.
2652
- */
2653
- onClick,
2654
- children: jsxRuntime.jsx("label", { className: classNames__default.default(classNameCheckboxLabel, "cweb-checkbox-label ui:group ui:relative ui:overflow-hidden", "ui:flex ui:w-full ui:cursor-pointer", {
2655
- "ui:cursor-not-allowed": isDisabled,
2656
- "ui:cursor-pointer": !isDisabled
2657
- }), "data-test-id": "checkbox-label", children: jsxRuntime.jsxs("div", { className: "ui:flex", children: [jsxRuntime.jsxs("div", { className: "ui:flex ui:h-[24px] ui:flex-col ui:justify-center ui:sm:h-[20px]", children: [jsxRuntime.jsx("input", { id, ref: innerRef, "data-test-id": `checkbox-${name}`, className: "cweb-checkbox-input", name, type: "checkbox", checked, disabled: isDisabled, value, onBlur: handleBlur, onFocus: handleFocus, onChange: handleChange }), jsxRuntime.jsx("span", { className: classNames__default.default("cweb-checkbox-icon-container ui:transition-colors", "ui:h-6 ui:w-6", "ui:sm:h-4 ui:sm:w-4", {
2658
- "ui:bg-primary": checked || indeterminate,
2659
- "ui:bg-white": !checked && !indeterminate,
2660
- "ui:group-hover:bg-blue-50": type === "regular" && !(checked || indeterminate),
2661
- "ui:group-hover:bg-primary-dark": checked || indeterminate,
2662
- "ui:outline-primary": isFocused
2663
- }), "data-test-id": "checkbox-span", children: jsxRuntime.jsx("div", { className: "cweb-checkbox-icon ui:h-3 ui:w-3 ui:sm:h-2 ui:sm:w-2" }) })] }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Label, Object.assign({}, props)), explanation && jsxRuntime.jsx(Text, { className: "ui:ml-2 ui:select-none", color: "slate-500", "data-test-id": "checkbox-explanation", children: explanation })] })] }) })
2664
- });
1935
+ if (item) {
1936
+ item.scrollIntoView({ behavior: "smooth", block: "nearest" });
1937
+ setCurrentIndex(index);
1938
+ }
1939
+ }, [setCurrentIndex, slidesContainer.current]);
1940
+ const onClickNext = React.useCallback(() => {
1941
+ const nextIndex = (currentIndex + 1) % slides.length;
1942
+ scrollToIndex(nextIndex);
1943
+ }, [scrollToIndex, slides, currentIndex]);
1944
+ const onClickPrevious = React.useCallback(() => {
1945
+ let nextIndex = currentIndex - 1;
1946
+ if (nextIndex < 0) {
1947
+ nextIndex = slides.length - 1;
1948
+ }
1949
+ scrollToIndex(nextIndex);
1950
+ }, [scrollToIndex, slides, currentIndex]);
1951
+ const setCurrentIndexDebounced = React.useCallback(lodashEs.debounce((index) => {
1952
+ setCurrentIndex(index);
1953
+ }, 300), [setCurrentIndex]);
1954
+ const onScroll = React.useCallback((e) => {
1955
+ const scrollWidth = e.currentTarget.clientWidth;
1956
+ const scrollLeft = e.currentTarget.scrollLeft;
1957
+ const index = Math.round(scrollLeft / scrollWidth);
1958
+ setCurrentIndexDebounced(index);
1959
+ }, [setCurrentIndexDebounced]);
1960
+ return jsxRuntime.jsx("div", { ref: slidesContainer, id, className, children: jsxRuntime.jsxs(Stack, { width: "full", align: "stretch", _gap: "l", children: [jsxRuntime.jsxs(Stack, { axis: "x", align: "stretch", width: "full", _gap: "l", children: [jsxRuntime.jsx(Stack, { justify: "center", children: jsxRuntime.jsx(SecondaryButton, { onClick: onClickPrevious, leadingIcon: jsxRuntime.jsx(ChevronLeftIcon, {}), "aria-label": (_a = labels === null || labels === void 0 ? void 0 : labels.previousButton) !== null && _a !== void 0 ? _a : "Previous slide", disabled: slides.length === 0 }) }), jsxRuntime.jsx(Stack, { as: "ol", ref: slidesTrackRef, tabIndex: isScrollable ? 0 : void 0, axis: "x", width: "full", align: "stretch", className: "ui:w-full ui:snap-x ui:snap-mandatory ui:overflow-x-auto", style: { scrollbarWidth: "none" }, onScroll, children: slides.map((slide, i) => jsxRuntime.jsx(Box, { width: "full", as: "li", className: "ui:shrink-0 ui:snap-start", children: slide }, i)) }), jsxRuntime.jsx(Stack, { justify: "center", children: jsxRuntime.jsx(SecondaryButton, { onClick: onClickNext, leadingIcon: jsxRuntime.jsx(ChevronRightIcon, {}), "aria-label": (_b = labels === null || labels === void 0 ? void 0 : labels.nextButton) !== null && _b !== void 0 ? _b : "Next slide", disabled: slides.length === 0 }) })] }), jsxRuntime.jsx(Stack, { align: "center", children: jsxRuntime.jsx(DotList, { activeIndex: currentIndex, amount: slides.length, onClickIndex: scrollToIndex, buttonLabel: labels === null || labels === void 0 ? void 0 : labels.dotButton }) })] }) });
1961
+ };
1962
+
1963
+ const CenteredHero = ({ title, text, image, imageAlt = "", slots, background = "slate-50", imageSize = "small", dataTestId = "centered-hero" }) => {
1964
+ return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:align-center ui:flex ui:w-full ui:flex-col ui:items-center ui:p-6", {
1965
+ "ui:bg-white": background === "white",
1966
+ "ui:bg-slate-50": background === "slate-50"
1967
+ }), "data-test-id": dataTestId, children: [image && jsxRuntime.jsx("img", { src: image, alt: imageAlt, className: classNames__default.default("ui:mb-4", {
1968
+ "ui:max-h-36": imageSize === "small",
1969
+ "ui:max-h-72": imageSize === "large"
1970
+ }) }), title && jsxRuntime.jsx(Heading, { variant: "h2", as: "h4", children: title }), text && jsxRuntime.jsx(Text, { className: "ui:text-center", children: text }), (slots === null || slots === void 0 ? void 0 : slots.bottom) && jsxRuntime.jsx(Box, { _mt: "l", children: slots === null || slots === void 0 ? void 0 : slots.bottom })] });
2665
1971
  };
2666
- function Label(props) {
2667
- const { text, renderLabel } = props;
2668
- const divAttributes = {
2669
- className: "ui:ml-2 ui:select-none",
2670
- "data-test-id": "checkbox-text"
2671
- };
2672
- if (renderLabel) {
2673
- return jsxRuntime.jsx("div", Object.assign({}, divAttributes, { children: renderLabel(props) }));
2674
- }
2675
- if (text) {
2676
- return jsxRuntime.jsx("div", Object.assign({}, divAttributes, { children: jsxRuntime.jsx(Text, { children: text }) }));
2677
- }
2678
- return null;
2679
- }
2680
- const Checkbox = React__namespace.default.forwardRef((props, ref) => jsxRuntime.jsx(CheckboxInner, Object.assign({}, props, { innerRef: ref })));
2681
1972
 
2682
1973
  const linkClasses = [
2683
1974
  "ui:[&_a]:text-primary",
@@ -2879,11 +2170,29 @@ const Chip = ({ accessory, leadingIcon, onClick, text }) => {
2879
2170
  return jsxRuntime.jsx(SecondaryButton, { className: "ui:bg-transparent! ui:px-s! ui:radius-xxxxs!", onClick, leadingIcon, trailingIcon: accessory, children: text });
2880
2171
  };
2881
2172
 
2173
+ const Icon = (_a) => {
2174
+ var { name } = _a, iconProps = __rest(_a, ["name"]);
2175
+ return React__namespace.default.createElement(Icons[name], iconProps);
2176
+ };
2177
+ const IconComponentOrKey = (props) => {
2178
+ const { name } = props, iconProps = __rest(props, ["name"]);
2179
+ if (isIconKey(name)) {
2180
+ return jsxRuntime.jsx(Icon, Object.assign({ name }, iconProps));
2181
+ }
2182
+ return React__namespace.default.createElement(name, iconProps);
2183
+ };
2184
+ function isIconKey(key) {
2185
+ if (typeof key === "string") {
2186
+ return key in Icons;
2187
+ }
2188
+ return false;
2189
+ }
2190
+
2882
2191
  const ConfirmationDialogTitle = (props) => {
2883
2192
  var _a;
2884
2193
  return props.title ? jsxRuntime.jsxs("div", { "data-test-id": "confirmation-dialog-title", className: classNames__default.default("ui:flex ui:flex-col ui:space-y-2 ui:text-center", {
2885
2194
  "ui:items-center ui:justify-center": (_a = props.title) === null || _a === void 0 ? void 0 : _a.icon
2886
- }), children: [props.title.icon && jsxRuntime.jsx(IconComponentOrKey, { name: props.title.icon, className: "dialog-header-icon ui:h-12 ui:w-12 ui:text-primary" }), jsxRuntime.jsx(Title, { variant: "sm", children: props.title.title })] }) : null;
2195
+ }), children: [props.title.icon && jsxRuntime.jsx(IconComponentOrKey, { name: props.title.icon, className: "dialog-header-icon ui:h-12 ui:w-12 ui:text-primary" }), jsxRuntime.jsx(Heading, { variant: "h3", as: "h5", children: props.title.title })] }) : null;
2887
2196
  };
2888
2197
 
2889
2198
  function Link(props) {
@@ -2929,50 +2238,49 @@ const StyledRadio = React__namespace.default.forwardRef((props, ref) => {
2929
2238
  return jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx("input", Object.assign({ type: "radio" }, attributes, { className: classNames__default.default("ui:appearance-none ui:w-4 ui:h-4 ui:rounded-full ui:border ui:border-slate-300 ui:bg-white", "ui:checked:grid ui:checked:place-content-center ui:checked:before:scale-[1] ui:checked:bg-primary ui:checked:border-primary", "ui:transition-colors ui:duration-100 ui:ease-in-out", "ui:before:content-[' '] ui:before:w-1.5 ui:before:h-1.5 ui:before:bg-white ui:before:rounded ui:before:scale-[0]", "ui:before:transition-transform ui:before:duration-200 ui:before:ease-[cubic-bezier(.47,.34,.52,1.39)]", className), ref })) });
2930
2239
  });
2931
2240
 
2932
- function RadioInner(_a) {
2933
- var { text, info, isError, innerRef, className: _, name } = _a, otherProps = __rest(_a, ["text", "info", "isError", "innerRef", "className", "name"]);
2934
- const { value, disabled } = otherProps;
2935
- const nameHtmlFor = `${name}-field-${value}`;
2241
+ const LabeledRadio = React__namespace.default.forwardRef((props, ref) => {
2242
+ const { children, label, helperText, errorText, className, inputClassName } = props, attributes = __rest(props, ["children", "label", "helperText", "errorText", "className", "inputClassName"]);
2243
+ const { id, disabled } = attributes;
2936
2244
  const semanticId = React__namespace.default.useId();
2937
- return jsxRuntime.jsxs(Stack, { as: "label", axis: "x", _gap: "m", className: "ui:radio-form-field-label ui:flex ui:flex-row ui:leading-none", htmlFor: nameHtmlFor, "data-has-error": isError, "data-test-id": nameHtmlFor, children: [jsxRuntime.jsx(StyledRadio, Object.assign({}, otherProps, { name, id: nameHtmlFor, ref: innerRef, "aria-describedby": semanticId })), jsxRuntime.jsxs("div", { children: [text && jsxRuntime.jsx(Text, { inline: true, variant: "base", color: disabled ? "slate-500" : void 0, children: text }), jsxRuntime.jsx(HelperAndErrorText, { helperText: info, describingId: semanticId })] })] });
2245
+ return jsxRuntime.jsxs(Stack, { as: "label", axis: "x", _gap: "m", htmlFor: id, className: classNames__default.default("ui:radio-form-field-label", className), children: [jsxRuntime.jsxs("div", { className: "ui:relative ui:flex ui:flex-row ui:items-center ui:self-start", children: [jsxRuntime.jsx(Text, { "aria-hidden": true, className: "ui:w-4 ui:opacity-0", children: "CENTER" }), jsxRuntime.jsx("div", { className: "ui:absolute", children: jsxRuntime.jsx(StyledRadio, Object.assign({ "aria-describedby": semanticId }, attributes, { ref, className: inputClassName })) })] }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(RadioLabel, { label, disabled, children }), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: semanticId })] })] });
2246
+ });
2247
+ function RadioLabel(props) {
2248
+ const { children, label, disabled } = props;
2249
+ if (!label && !children) {
2250
+ return null;
2251
+ }
2252
+ if (children) {
2253
+ return children;
2254
+ }
2255
+ return jsxRuntime.jsx(LabelText, { color: disabled ? "slate-500" : void 0, children: label });
2938
2256
  }
2939
- const RadioV2 = React__namespace.default.forwardRef((props, ref) => jsxRuntime.jsx(RadioInner, Object.assign({}, props, { innerRef: ref })));
2940
2257
 
2941
- function RadioGroupInner(_a) {
2942
- var { innerRef, options, defaultValue, title } = _a, registerProps = __rest(_a, ["innerRef", "options", "defaultValue", "title"]);
2943
- return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-col ui:space-y-2"), "data-test-id": `${registerProps.name}-radio-group`, children: [title && jsxRuntime.jsx(Text, { text: title }), options.map((option) => {
2944
- let defaultChecked;
2945
- if (!lodashEs.isNil(defaultValue)) {
2946
- defaultChecked = defaultValue === option.value;
2947
- }
2948
- return jsxRuntime.jsx(RadioV2, Object.assign({ defaultChecked }, option, registerProps, { ref: innerRef }), option.value);
2949
- })] });
2950
- }
2951
- const RadioGroupV2 = React__namespace.default.forwardRef((props, ref) => jsxRuntime.jsx(RadioGroupInner, Object.assign({}, props, { innerRef: ref })));
2258
+ const LabeledRadioGroup = (props) => {
2259
+ const { children, title, className, orientation = "vertical" } = props;
2260
+ const semanticId = React__namespace.default.useId();
2261
+ const orientationProps = orientation === "horizontal" ? {
2262
+ axis: "x",
2263
+ _gap: "2xl"
2264
+ } : {
2265
+ axis: "y",
2266
+ _gap: "base"
2267
+ };
2268
+ return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), _gap: "s", children: [title && jsxRuntime.jsx("legend", { className: "ui:contents", children: jsxRuntime.jsx(Text, { children: title }) }), jsxRuntime.jsx(Stack, Object.assign({}, orientationProps, { children })), jsxRuntime.jsx(HelperAndErrorText, { helperText: props.helperText, errorText: props.errorText, describingId: semanticId })] });
2269
+ };
2952
2270
 
2953
2271
  const ConfirmationDialogChoices = (props) => {
2954
2272
  const { choices, onChoiceChangeCallback, selectedChoice } = props;
2273
+ const idPrefix = React.useId();
2955
2274
  if (!choices) {
2956
2275
  return null;
2957
2276
  }
2958
- const choicesIntoRadioOptions = choices.options.map((choice) => {
2959
- return {
2960
- name: choice.text,
2961
- text: choice.text,
2962
- value: choice.value,
2963
- info: choice.description,
2964
- onChange: () => {
2965
- onChoiceChangeCallback === null || onChoiceChangeCallback === void 0 ? void 0 : onChoiceChangeCallback(choice);
2966
- }
2967
- };
2968
- });
2969
- return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(RadioGroupV2, { name: "confirm-dialog-choices", options: choicesIntoRadioOptions, defaultValue: selectedChoice === null || selectedChoice === void 0 ? void 0 : selectedChoice.value }), (selectedChoice === null || selectedChoice === void 0 ? void 0 : selectedChoice.displaysInfo) && jsxRuntime.jsx(NotificationBanner, { text: selectedChoice.displaysInfo.text, color: selectedChoice.displaysInfo.level })] });
2277
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(LabeledRadioGroup, { children: choices.options.map((choice) => jsxRuntime.jsx(LabeledRadio, { id: `${idPrefix}-${choice.value}`, name: "confirm-dialog-choices", value: choice.value, label: choice.text, helperText: choice.description, defaultChecked: choice.value === (selectedChoice === null || selectedChoice === void 0 ? void 0 : selectedChoice.value), onChange: () => onChoiceChangeCallback === null || onChoiceChangeCallback === void 0 ? void 0 : onChoiceChangeCallback(choice) }, choice.value)) }), (selectedChoice === null || selectedChoice === void 0 ? void 0 : selectedChoice.displaysInfo) && jsxRuntime.jsx(NotificationBanner, { text: selectedChoice.displaysInfo.text, color: selectedChoice.displaysInfo.level })] });
2970
2278
  };
2971
2279
 
2972
2280
  const ConfirmationDialogMessage = (props) => {
2973
2281
  const { message } = props;
2974
2282
  if (typeof message === "string") {
2975
- return jsxRuntime.jsx(Text, { text: message, containsDangerousHtml: true });
2283
+ return jsxRuntime.jsx(Text, { containsDangerousHtml: true, children: message });
2976
2284
  }
2977
2285
  return jsxRuntime.jsx("div", { className: "ui:space-y-2", children: message.map((messageLine) => jsxRuntime.jsx(Text, { containsDangerousHtml: true, children: messageLine }, messageLine)) });
2978
2286
  };
@@ -3000,7 +2308,7 @@ const ConfirmationDialog = (_a) => {
3000
2308
  };
3001
2309
  return jsxRuntime.jsx(ModalBase, { size, dataTestId, isOpen: props.isOpen, withExtraMarginTop: true, onCloseClick: handleOnCloseClick, footerTrailingComponents: {
3002
2310
  primaryButton: props.texts.confirmLabel ? jsxRuntime.jsx(PrimaryButton, { dataTestId: "modal-footer-trailing-primary-button", isPending: props.isProcessing, onClick: onConfirmHandler, children: props.texts.confirmLabel }) : null,
3003
- secondaryButton: jsxRuntime.jsx(SecondaryButton, { dataTestId: "modal-footer-trailing-secondary-button", onClick: props.onCancel, isDisabled: props.isProcessing, children: props.texts.cancelLabel })
2311
+ secondaryButton: jsxRuntime.jsx(SecondaryButton, { dataTestId: "modal-footer-trailing-secondary-button", onClick: props.onCancel, disabled: props.isProcessing, children: props.texts.cancelLabel })
3004
2312
  }, children: jsxRuntime.jsxs("div", { className: "ui:min-h-13 ui:space-y-4", children: [jsxRuntime.jsx(ConfirmationDialogTitle, { title: props.withTitle }), children, message && jsxRuntime.jsx(ConfirmationDialogMessage, { message }), jsxRuntime.jsx(ConfirmationDialogChoices, { choices: props.choices, onChoiceChangeCallback: onChoiceChange, selectedChoice })] }) });
3005
2313
  };
3006
2314
 
@@ -3018,8 +2326,8 @@ const LOCALE_MAP = {
3018
2326
  "pt-PT": pt.pt
3019
2327
  };
3020
2328
 
3021
- var css_248z$6 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-datepicker {\n width: 182px;\n height: 44px;\n border: 1px solid #cccccc;\n border-radius: 4px;\n background-color: #ffffff;\n outline: none;\n padding: 12px 12px 11px 12px;\n}\n.cweb-datepicker input.cweb-datepicker {\n font-size: 14px;\n}\n.cweb-datepicker::placeholder {\n color: #64748b;\n}\n.cweb-datepicker:-ms-input-placeholder {\n color: #64748b !important;\n}\n.cweb-datepicker::-ms-input-placeholder {\n color: #64748b;\n}\n\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle {\n border-bottom-color: #ffffff;\n margin-top: -4px;\n fill: #ffffff;\n color: #ffffff;\n}\n.react-datepicker-popper[data-placement^=top] {\n margin-bottom: 4px;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle {\n border-top-color: #ffffff;\n margin-bottom: -4px;\n fill: #ffffff;\n color: #ffffff;\n}\n.react-datepicker-popper .react-datepicker__children-container {\n width: 100%;\n margin: 0;\n}\n\n.cweb-datepicker-calendar {\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .cweb-datepicker-calendar {\n box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);\n }\n}\n.cweb-datepicker-calendar {\n padding: 0;\n border: 1px solid #cccccc;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n.cweb-datepicker-calendar .react-datepicker__triangle {\n left: 10px;\n border: 6px solid transparent;\n fill: #ffffff;\n color: #ffffff;\n}\n.cweb-datepicker-calendar .react-datepicker__navigation {\n top: 19px;\n width: 19px;\n height: 10px;\n}\n.cweb-datepicker-calendar .react-datepicker__navigation .react-datepicker__navigation-icon:before {\n border: 0;\n}\n.cweb-datepicker-calendar .react-datepicker__navigation.react-datepicker__navigation--previous {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%227%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0 1.5L1.5 0 5 3.5 8.5 0 10 1.5l-5 5z%22 fill%3D%22%231D9BD8%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n border: 0;\n transform: rotate(90deg);\n}\n.cweb-datepicker-calendar .react-datepicker__navigation.react-datepicker__navigation--next {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%227%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0 1.5L1.5 0 5 3.5 8.5 0 10 1.5l-5 5z%22 fill%3D%22%231D9BD8%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n border: 0;\n transform: rotate(-90deg);\n}\n.cweb-datepicker-calendar .react-datepicker__year-dropdown-container--select,\n.cweb-datepicker-calendar .react-datepicker__month-dropdown-container--select,\n.cweb-datepicker-calendar .react-datepicker__month-year-dropdown-container--select,\n.cweb-datepicker-calendar .react-datepicker__year-dropdown-container--scroll,\n.cweb-datepicker-calendar .react-datepicker__month-dropdown-container--scroll,\n.cweb-datepicker-calendar .react-datepicker__month-year-dropdown-container--scroll {\n margin: 2px;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-box {\n width: auto;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list {\n overflow-x: hidden;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n height: 40px !important;\n padding: 0 !important;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected {\n color: #ffffff;\n background-color: #1e40af !important;\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected:hover {\n background-color: #1e40af !important;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected:before {\n content: \"\";\n position: absolute;\n bottom: -3px;\n right: 0;\n left: initial;\n top: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(-135deg);\n}\n.cweb-datepicker-calendar .react-datepicker__header {\n padding-top: 0;\n border: none;\n background-color: #ffffff;\n font-size: 14px;\n padding-bottom: 0;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__current-month {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: 600;\n line-height: 19px;\n color: #2d2d2d;\n margin: 0;\n padding-top: 16px;\n padding-bottom: 16px;\n text-transform: capitalize;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__header__dropdown {\n margin-bottom: 15px;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n height: 44px;\n padding-left: 12px;\n border-radius: 4px;\n background: #ffffff url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2214%22 viewBox%3D%220 0 8 14%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M4 0C4.26522 5.96046e-08 4.51957 0.105357 4.70711 0.292893L7.70711 3.29289C8.09763 3.68342 8.09763 4.31658 7.70711 4.70711C7.31658 5.09763 6.68342 5.09763 6.29289 4.70711L4 2.41421L1.70711 4.70711C1.31658 5.09763 0.683417 5.09763 0.292893 4.70711C-0.0976311 4.31658 -0.097631 3.68342 0.292893 3.29289L3.29289 0.292893C3.48043 0.105357 3.73478 0 4 0ZM0.292893 9.29289C0.683417 8.90237 1.31658 8.90237 1.70711 9.29289L4 11.5858L6.29289 9.29289C6.68342 8.90237 7.31658 8.90237 7.70711 9.29289C8.09763 9.68342 8.09763 10.3166 7.70711 10.7071L4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.0976311 9.68342 0.292893 9.29289Z%22 fill%3D%22%239CA3AF%22%2F%3E%3C%2Fsvg%3E\") no-repeat right 8px center;\n text-transform: capitalize;\n -webkit-appearance: none;\n -moz-appearance: none;\n border: 1px solid #cccccc;\n transition: all 0.4s ease;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select:hover, .cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select:focus,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select:hover,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select:focus {\n color: #1e40af;\n border-color: #1e40af;\n cursor: pointer;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select {\n min-width: 172px;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select {\n min-width: 107px;\n}\n.cweb-datepicker-calendar .react-datepicker__header.react-datepicker__header--time {\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n height: 52px;\n padding: 0;\n background-color: #f3f3f3;\n}\n.cweb-datepicker-calendar .react-datepicker__day-names,\n.cweb-datepicker-calendar .react-datepicker__month {\n margin: 0.4rem;\n}\n.cweb-datepicker-calendar .react-datepicker__day-names,\n.cweb-datepicker-calendar .react-datepicker__week {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-datepicker-calendar .react-datepicker__day-name,\n.cweb-datepicker-calendar .react-datepicker__day {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n width: 41px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-datepicker-calendar .react-datepicker__day-name {\n height: 19px;\n text-transform: capitalize;\n}\n.cweb-datepicker-calendar .react-datepicker__day {\n height: 30px;\n border-radius: 4px;\n transition: background-color 0.3s ease-in-out;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted {\n background-color: #ffffff;\n color: #1e40af;\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted:after {\n content: \"\";\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: #1e40af;\n left: 0;\n right: 0;\n bottom: 2px;\n margin: 0 auto;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--selected:after, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--keyboard-selected:after, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--in-range:after {\n background-color: #ffffff;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--today {\n font-weight: bold;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-selecting-range {\n background-color: #e8f5fc;\n}\n.cweb-datepicker-calendar .react-datepicker__day:hover {\n background-color: #f8fafc;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-range, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected {\n color: #ffffff;\n background-color: #1e40af;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-range:hover, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected:hover {\n background-color: #1e40af;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--keyboard-selected {\n color: #ffffff;\n background-color: #1e40af;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected {\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-start {\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-start:before {\n content: \"\";\n position: absolute;\n top: -3px;\n left: 0;\n bottom: initial;\n right: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(45deg);\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-end {\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-end:before {\n content: \"\";\n position: absolute;\n bottom: -3px;\n right: 0;\n left: initial;\n top: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(-135deg);\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--disabled {\n color: #cccccc;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--disabled:hover {\n background-color: #ffffff;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--outside-month {\n color: var(--ui-color-text-neutral-secondary-default);\n}";
3022
- styleInject(css_248z$6);
2329
+ var css_248z$9 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-datepicker {\n width: 182px;\n height: 44px;\n border: 1px solid #cccccc;\n border-radius: 4px;\n background-color: #ffffff;\n outline: none;\n padding: 12px 12px 11px 12px;\n}\n.cweb-datepicker input.cweb-datepicker {\n font-size: 14px;\n}\n.cweb-datepicker::placeholder {\n color: #64748b;\n}\n.cweb-datepicker:-ms-input-placeholder {\n color: #64748b !important;\n}\n.cweb-datepicker::-ms-input-placeholder {\n color: #64748b;\n}\n\n.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle.react-datepicker__triangle {\n border-bottom-color: #ffffff;\n margin-top: -4px;\n fill: #ffffff;\n color: #ffffff;\n}\n.react-datepicker-popper[data-placement^=top] {\n margin-bottom: 4px;\n}\n.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle.react-datepicker__triangle {\n border-top-color: #ffffff;\n margin-bottom: -4px;\n fill: #ffffff;\n color: #ffffff;\n}\n.react-datepicker-popper .react-datepicker__children-container {\n width: 100%;\n margin: 0;\n}\n\n.cweb-datepicker-calendar {\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);\n}\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .cweb-datepicker-calendar {\n box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);\n }\n}\n.cweb-datepicker-calendar {\n padding: 0;\n border: 1px solid #cccccc;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n.cweb-datepicker-calendar .react-datepicker__triangle {\n left: 10px;\n border: 6px solid transparent;\n fill: #ffffff;\n color: #ffffff;\n}\n.cweb-datepicker-calendar .react-datepicker__navigation {\n top: 19px;\n width: 19px;\n height: 10px;\n}\n.cweb-datepicker-calendar .react-datepicker__navigation .react-datepicker__navigation-icon:before {\n border: 0;\n}\n.cweb-datepicker-calendar .react-datepicker__navigation.react-datepicker__navigation--previous {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%227%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0 1.5L1.5 0 5 3.5 8.5 0 10 1.5l-5 5z%22 fill%3D%22%231D9BD8%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n border: 0;\n transform: rotate(90deg);\n}\n.cweb-datepicker-calendar .react-datepicker__navigation.react-datepicker__navigation--next {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%227%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0 1.5L1.5 0 5 3.5 8.5 0 10 1.5l-5 5z%22 fill%3D%22%231D9BD8%22 fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n border: 0;\n transform: rotate(-90deg);\n}\n.cweb-datepicker-calendar .react-datepicker__year-dropdown-container--select,\n.cweb-datepicker-calendar .react-datepicker__month-dropdown-container--select,\n.cweb-datepicker-calendar .react-datepicker__month-year-dropdown-container--select,\n.cweb-datepicker-calendar .react-datepicker__year-dropdown-container--scroll,\n.cweb-datepicker-calendar .react-datepicker__month-dropdown-container--scroll,\n.cweb-datepicker-calendar .react-datepicker__month-year-dropdown-container--scroll {\n margin: 2px;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-box {\n width: auto;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list {\n overflow-x: hidden;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n height: 40px !important;\n padding: 0 !important;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected {\n color: #ffffff;\n background-color: #1e40af !important;\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected:hover {\n background-color: #1e40af !important;\n}\n.cweb-datepicker-calendar .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected:before {\n content: \"\";\n position: absolute;\n bottom: -3px;\n right: 0;\n left: initial;\n top: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(-135deg);\n}\n.cweb-datepicker-calendar .react-datepicker__header {\n padding-top: 0;\n border: none;\n background-color: #ffffff;\n font-size: 14px;\n padding-bottom: 0;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__current-month {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: 600;\n line-height: 19px;\n color: #2d2d2d;\n margin: 0;\n padding-top: 16px;\n padding-bottom: 16px;\n text-transform: capitalize;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__header__dropdown {\n margin-bottom: 15px;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n height: 44px;\n padding-left: 12px;\n border-radius: 4px;\n background: #ffffff url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2214%22 viewBox%3D%220 0 8 14%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M4 0C4.26522 5.96046e-08 4.51957 0.105357 4.70711 0.292893L7.70711 3.29289C8.09763 3.68342 8.09763 4.31658 7.70711 4.70711C7.31658 5.09763 6.68342 5.09763 6.29289 4.70711L4 2.41421L1.70711 4.70711C1.31658 5.09763 0.683417 5.09763 0.292893 4.70711C-0.0976311 4.31658 -0.097631 3.68342 0.292893 3.29289L3.29289 0.292893C3.48043 0.105357 3.73478 0 4 0ZM0.292893 9.29289C0.683417 8.90237 1.31658 8.90237 1.70711 9.29289L4 11.5858L6.29289 9.29289C6.68342 8.90237 7.31658 8.90237 7.70711 9.29289C8.09763 9.68342 8.09763 10.3166 7.70711 10.7071L4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.0976311 9.68342 0.292893 9.29289Z%22 fill%3D%22%239CA3AF%22%2F%3E%3C%2Fsvg%3E\") no-repeat right 8px center;\n text-transform: capitalize;\n -webkit-appearance: none;\n -moz-appearance: none;\n border: 1px solid #cccccc;\n transition: all 0.4s ease;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select:hover, .cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select:focus,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select:hover,\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select:focus {\n color: #1e40af;\n border-color: #1e40af;\n cursor: pointer;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__month-select {\n min-width: 172px;\n}\n.cweb-datepicker-calendar .react-datepicker__header .react-datepicker__year-select {\n min-width: 107px;\n}\n.cweb-datepicker-calendar .react-datepicker__header.react-datepicker__header--time {\n display: flex;\n justify-content: center;\n flex-direction: row;\n align-items: center;\n height: 52px;\n padding: 0;\n background-color: #f3f3f3;\n}\n.cweb-datepicker-calendar .react-datepicker__day-names,\n.cweb-datepicker-calendar .react-datepicker__month {\n margin: 0.4rem;\n}\n.cweb-datepicker-calendar .react-datepicker__day-names,\n.cweb-datepicker-calendar .react-datepicker__week {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-datepicker-calendar .react-datepicker__day-name,\n.cweb-datepicker-calendar .react-datepicker__day {\n font-family: \"Inter\", \"Roboto\", sans-serif;\n font-size: 14px;\n font-weight: normal;\n line-height: 19px;\n color: #1e293b;\n margin: 0;\n width: 41px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-datepicker-calendar .react-datepicker__day-name {\n height: 19px;\n text-transform: capitalize;\n}\n.cweb-datepicker-calendar .react-datepicker__day {\n height: 30px;\n border-radius: 4px;\n transition: background-color 0.3s ease-in-out;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted {\n background-color: #ffffff;\n color: #1e40af;\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted:after {\n content: \"\";\n position: absolute;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n background-color: #1e40af;\n left: 0;\n right: 0;\n bottom: 2px;\n margin: 0 auto;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--selected:after, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--keyboard-selected:after, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--highlighted.react-datepicker__day--in-range:after {\n background-color: #ffffff;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--today {\n font-weight: bold;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-selecting-range {\n background-color: #e8f5fc;\n}\n.cweb-datepicker-calendar .react-datepicker__day:hover {\n background-color: #f8fafc;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-range, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected {\n color: #ffffff;\n background-color: #1e40af;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--in-range:hover, .cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected:hover {\n background-color: #1e40af;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--keyboard-selected {\n color: #ffffff;\n background-color: #1e40af;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--selected {\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-start {\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-start:before {\n content: \"\";\n position: absolute;\n top: -3px;\n left: 0;\n bottom: initial;\n right: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(45deg);\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-end {\n position: relative;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--range-end:before {\n content: \"\";\n position: absolute;\n bottom: -3px;\n right: 0;\n left: initial;\n top: initial;\n border-style: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent #ffffff transparent transparent;\n transform: rotate(-135deg);\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--disabled {\n color: #cccccc;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--disabled:hover {\n background-color: #ffffff;\n}\n.cweb-datepicker-calendar .react-datepicker__day.react-datepicker__day--outside-month {\n color: var(--ui-color-text-neutral-secondary-default);\n}";
2330
+ styleInject(css_248z$9);
3023
2331
 
3024
2332
  function updateLocale(locale) {
3025
2333
  const resolvedLocale = locale !== null && locale !== void 0 ? locale : "en-GB";
@@ -3031,9 +2339,8 @@ function getLocaleModule(locale) {
3031
2339
  return LOCALE_MAP[resolvedLocale];
3032
2340
  }
3033
2341
  const DatePicker = (props) => {
3034
- const { locale: localeFromProps, className, hasCloseButton, closeButtonText, adjustDateOnChange = true, showMonthDropdown = true, showYearDropdown = true, shouldCloseOnSelect = false, allowSameDay = false, minDate, maxDate, isDisabled = false, selected, portalId = "datepicker-portal", zIndex = void 0, popperZIndex = 30 } = props, otherProps = __rest(props, ["locale", "className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected", "portalId", "zIndex", "popperZIndex"]);
3035
- const localeFromContext = useLocaleContext();
3036
- const locale = localeFromProps !== null && localeFromProps !== void 0 ? localeFromProps : localeFromContext;
2342
+ const { className, hasCloseButton, closeButtonText, adjustDateOnChange = true, showMonthDropdown = true, showYearDropdown = true, shouldCloseOnSelect = false, allowSameDay = false, minDate, maxDate, isDisabled = false, selected, portalId = "datepicker-portal", zIndex = void 0, popperZIndex = 30 } = props, otherProps = __rest(props, ["className", "hasCloseButton", "closeButtonText", "adjustDateOnChange", "showMonthDropdown", "showYearDropdown", "shouldCloseOnSelect", "allowSameDay", "minDate", "maxDate", "isDisabled", "selected", "portalId", "zIndex", "popperZIndex"]);
2343
+ const locale = useLocaleContext();
3037
2344
  const datePickerRef = React.useRef(null);
3038
2345
  React.useEffect(() => {
3039
2346
  updateLocale(locale);
@@ -3054,49 +2361,174 @@ const DatePicker = (props) => {
3054
2361
  event.preventDefault();
3055
2362
  (_a = datePickerRef.current) === null || _a === void 0 ? void 0 : _a.setOpen(false);
3056
2363
  };
3057
- const dateFormat = getDateFormat();
3058
- return jsxRuntime.jsx(ReactDatePicker__default.default, Object.assign({}, otherProps, { adjustDateOnChange, allowSameDay, calendarClassName: "cweb-datepicker-calendar", className: pickerClassName, dateFormat, disabled: isDisabled, dropdownMode: "select", locale: getLocaleModule(locale), maxDate, minDate, popperClassName: classNames__default.default("react-datepicker-popper", {
3059
- "ui:z-10!": popperZIndex === 10,
3060
- "ui:z-20!": popperZIndex === 20,
3061
- "ui:z-30!": popperZIndex === 30,
3062
- "ui:z-40!": popperZIndex === 40,
3063
- "ui:z-50!": popperZIndex === 50
3064
- }), popperPlacement: "bottom-start", portalId, ref: datePickerRef, selected, shouldCloseOnSelect, showMonthDropdown, showYearDropdown, timeFormat: "HH:mm", children: jsxRuntime.jsx("div", { className: "ui:m-2 ui:mt-0", children: hasCloseButton ? jsxRuntime.jsx(PrimaryButton, { onClick: handleCloseButtonClick, children: closeButtonText !== null && closeButtonText !== void 0 ? closeButtonText : "OK" }) : null }) }));
3065
- };
3066
-
3067
- const InfoField = (props) => {
3068
- let boxProps = {};
3069
- switch (props.linkType) {
3070
- case "link":
3071
- boxProps = {
3072
- as: "a",
3073
- href: props.value,
3074
- target: "_blank",
3075
- rel: "noopener noreferrer"
3076
- };
3077
- break;
3078
- case "tel":
3079
- boxProps = {
3080
- as: "a",
3081
- href: `tel:${props.value}`
3082
- };
3083
- break;
3084
- case "clipboard":
3085
- boxProps = {
3086
- as: "button",
3087
- type: "button",
3088
- "data-clipboard-text": props.value,
3089
- onClick: () => {
3090
- window.navigator.clipboard.writeText(props.value).then(() => {
3091
- var _a;
3092
- return (_a = props.onCopyToClipboard) === null || _a === void 0 ? void 0 : _a.call(props, props.value);
3093
- });
3094
- }
3095
- };
3096
- break;
3097
- }
3098
- return jsxRuntime.jsxs(Stack, { axis: "x", align: "center", _gap: "m", className: props.className, children: [props.icon, jsxRuntime.jsxs(Stack, Object.assign({}, boxProps, { className: "ui:overflow-hidden", children: [jsxRuntime.jsx(Text, { type: "sm", color: "slate-500", className: classNames__default.default({ "ui:break-words": props.supportsMultiline }, { "ui:whitespace-nowrap": !props.supportsMultiline }), children: props.label }), jsxRuntime.jsx(Text, { className: classNames__default.default({ "ui:break-words": props.supportsMultiline }, { "ui:whitespace-nowrap": !props.supportsMultiline }), truncate: !props.supportsMultiline, children: props.value })] }))] });
3099
- };
2364
+ const dateFormat = getDateFormat();
2365
+ return jsxRuntime.jsx(ReactDatePicker__default.default, Object.assign({}, otherProps, { adjustDateOnChange, allowSameDay, calendarClassName: "cweb-datepicker-calendar", className: pickerClassName, dateFormat, disabled: isDisabled, dropdownMode: "select", locale: getLocaleModule(locale), maxDate, minDate, popperClassName: classNames__default.default("react-datepicker-popper", {
2366
+ "ui:z-10!": popperZIndex === 10,
2367
+ "ui:z-20!": popperZIndex === 20,
2368
+ "ui:z-30!": popperZIndex === 30,
2369
+ "ui:z-40!": popperZIndex === 40,
2370
+ "ui:z-50!": popperZIndex === 50
2371
+ }), popperPlacement: "bottom-start", portalId, ref: datePickerRef, selected, shouldCloseOnSelect, showMonthDropdown, showYearDropdown, timeFormat: "HH:mm", children: jsxRuntime.jsx("div", { className: "ui:m-2 ui:mt-0", children: hasCloseButton ? jsxRuntime.jsx(PrimaryButton, { onClick: handleCloseButtonClick, children: closeButtonText !== null && closeButtonText !== void 0 ? closeButtonText : "OK" }) : null }) }));
2372
+ };
2373
+
2374
+ const InfoField = (props) => {
2375
+ let boxProps = {};
2376
+ switch (props.linkType) {
2377
+ case "link":
2378
+ boxProps = {
2379
+ as: "a",
2380
+ href: props.value,
2381
+ target: "_blank",
2382
+ rel: "noopener noreferrer"
2383
+ };
2384
+ break;
2385
+ case "tel":
2386
+ boxProps = {
2387
+ as: "a",
2388
+ href: `tel:${props.value}`
2389
+ };
2390
+ break;
2391
+ case "clipboard":
2392
+ boxProps = {
2393
+ as: "button",
2394
+ type: "button",
2395
+ "data-clipboard-text": props.value,
2396
+ onClick: () => {
2397
+ window.navigator.clipboard.writeText(props.value).then(() => {
2398
+ var _a;
2399
+ return (_a = props.onCopyToClipboard) === null || _a === void 0 ? void 0 : _a.call(props, props.value);
2400
+ });
2401
+ }
2402
+ };
2403
+ break;
2404
+ }
2405
+ return jsxRuntime.jsxs(Stack, { axis: "x", align: "center", _gap: "m", className: props.className, children: [props.icon, jsxRuntime.jsxs(Stack, Object.assign({}, boxProps, { className: "ui:overflow-hidden", children: [jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", className: classNames__default.default({ "ui:break-words": props.supportsMultiline }, { "ui:whitespace-nowrap": !props.supportsMultiline }), children: props.label }), jsxRuntime.jsx(Text, { className: classNames__default.default({ "ui:break-words": props.supportsMultiline }, { "ui:whitespace-nowrap": !props.supportsMultiline }), truncate: !props.supportsMultiline, children: props.value })] }))] });
2406
+ };
2407
+
2408
+ const calculateResponsiveWidthClasses = (size) => {
2409
+ if (typeof size === "string") {
2410
+ return {
2411
+ "ui:w-16": size === "sm",
2412
+ "ui:w-32": size === "md",
2413
+ "ui:w-56": size === "lg",
2414
+ "ui:w-80": size === "xl",
2415
+ "ui:w-full": size === "full"
2416
+ };
2417
+ }
2418
+ const sizesMapped = {
2419
+ sm: "w-16",
2420
+ md: "w-32",
2421
+ lg: "w-56",
2422
+ xl: "w-80",
2423
+ full: "w-full"
2424
+ };
2425
+ const [defaultSize, smallSize, mediumSize, largeSize, extraLargeSize] = size;
2426
+ return [
2427
+ `ui:${sizesMapped[defaultSize]}`,
2428
+ smallSize ? `ui:sm:${sizesMapped[smallSize]}` : "",
2429
+ mediumSize ? `ui:md:${sizesMapped[mediumSize]}` : "",
2430
+ largeSize ? `ui:lg:${sizesMapped[largeSize]}` : "",
2431
+ extraLargeSize ? `ui:xl:${sizesMapped[extraLargeSize]}` : ""
2432
+ ].filter(Boolean);
2433
+ };
2434
+ const breakpointPrefixes = ["", "sm:", "md:", "lg:", "xl:"];
2435
+ const calculateResponsiveGrowClasses = (size) => {
2436
+ if (typeof size === "string") {
2437
+ return { "ui:fill-container": size === "full" };
2438
+ }
2439
+ return size.map((breakpointSize, index) => {
2440
+ if (!breakpointSize) {
2441
+ return "";
2442
+ }
2443
+ const suffix = breakpointSize === "full" ? "" : "-none";
2444
+ return `ui:${breakpointPrefixes[index]}fill-container${suffix}`;
2445
+ }).filter(Boolean);
2446
+ };
2447
+
2448
+ const StyledInput = React__namespace.default.forwardRef((_a, ref) => {
2449
+ var { suffix, prefix, className, width = "full", height = "lg", icon, isError, isClearIconVisible, onClickClearField } = _a, attributes = __rest(_a, ["suffix", "prefix", "className", "width", "height", "icon", "isError", "isClearIconVisible", "onClickClearField"]);
2450
+ const hasPrefix = !!prefix;
2451
+ const hasSuffix = !!suffix;
2452
+ const hasNoExtraContent = !hasPrefix && !hasSuffix;
2453
+ const heightClasses = {
2454
+ md: "ui:h-form-md",
2455
+ lg: "ui:h-form-lg"
2456
+ };
2457
+ const prefixSuffixPaddingClasses = {
2458
+ md: "ui:py-2 ui:px-3",
2459
+ lg: "ui:p-3"
2460
+ };
2461
+ return jsxRuntime.jsxs(FlexRow, { spacing: "none", "data-test-id": "input-component-container", stretch: false, children: [jsxRuntime.jsx("span", { className: classNames__default.default(heightClasses[height], prefixSuffixPaddingClasses[height], "ui:border-b ui:border-t ui:border-solid ui:border-input-border", {
2462
+ "ui:hidden": hasNoExtraContent,
2463
+ "ui:order-1": hasSuffix,
2464
+ "ui:rounded-l ui:border-l": hasPrefix,
2465
+ "ui:rounded-r ui:border-r": hasSuffix
2466
+ }, "ui:flex ui:flex-col ui:items-center", "ui:text-sm", "ui:text-slate-500", "ui:bg-main-background"), children: suffix || prefix }), jsxRuntime.jsxs("div", { className: classNames__default.default("ui:relative", calculateResponsiveGrowClasses(width)), children: [icon && jsxRuntime.jsx("div", { className: classNames__default.default("ui:absolute ui:left-4 ui:top-1/2", {
2467
+ "ui:grow": width === "full"
2468
+ }), style: {
2469
+ transform: "translateY(-50%)",
2470
+ zIndex: 20
2471
+ }, children: jsxRuntime.jsx(IconComponentOrKey, { name: icon, className: "ui:h-6 ui:w-6 ui:text-slate-300" }) }), jsxRuntime.jsx("input", Object.assign({ ref, className: classNames__default.default("ui:block", calculateResponsiveWidthClasses(width), { "ui:pl-12": icon }, {
2472
+ "ui:bg-slate-50 ui:text-slate-400": attributes.disabled,
2473
+ "ui:text-slate-800": !attributes.disabled,
2474
+ "ui:border-input-border": !attributes.disabled && !isError,
2475
+ "ui:hover:border-input-border-dark": !attributes.disabled,
2476
+ "ui:border-red-700": isError,
2477
+ "ui:focus:outline-negative": isError,
2478
+ "ui:focus:border-primary": !isError,
2479
+ "ui:focus:outline-primary": !isError,
2480
+ "ui:bg-white": !attributes.disabled
2481
+ }, heightClasses[height], "ui:p-2", "ui:border", "ui:text-base ui:sm:text-sm", "ui:placeholder-slate-500", "ui:border-solid", "ui:transition-colors", "ui:duration-300", {
2482
+ "ui:z-10": hasSuffix || hasPrefix,
2483
+ // to make sure the ui:outline is displayed completely
2484
+ "ui:rounded": hasNoExtraContent,
2485
+ "ui:rounded-l": hasSuffix,
2486
+ "ui:rounded-r": hasPrefix,
2487
+ "ui:order-2": hasPrefix,
2488
+ "ui:order-1": hasSuffix
2489
+ }, "ui:shadow-default", className) }, attributes)), jsxRuntime.jsx("div", { className: "ui:absolute ui:right-0 ui:top-1/2", style: {
2490
+ transform: "translateY(-50%)"
2491
+ }, children: jsxRuntime.jsx(CrossIcon, { className: classNames__default.default("ui:mr-3 ui:h-6 ui:w-6 ui:cursor-pointer ui:text-slate-300", {
2492
+ "ui:block": isClearIconVisible,
2493
+ "ui:hidden": !isClearIconVisible
2494
+ }), onClick: onClickClearField }) })] })] });
2495
+ });
2496
+
2497
+ const Input = React__namespace.default.forwardRef((_a, ref) => {
2498
+ var { withSuffix = "", withPrefix = "", clearable = false, isDisabled = false, name, value = "", onChange, asFormField, maxLength, height = "lg" } = _a, otherProps = __rest(_a, ["withSuffix", "withPrefix", "clearable", "isDisabled", "name", "value", "onChange", "asFormField", "maxLength", "height"]);
2499
+ const [innerValue, setInnerValue] = React.useState(value);
2500
+ React.useEffect(() => {
2501
+ setInnerValue(value);
2502
+ }, [value]);
2503
+ const clearField = () => {
2504
+ setInnerValue("");
2505
+ onChange === null || onChange === void 0 ? void 0 : onChange({
2506
+ target: {
2507
+ name: name || "",
2508
+ value: ""
2509
+ },
2510
+ currentTarget: {
2511
+ name: name || "",
2512
+ value: ""
2513
+ }
2514
+ });
2515
+ };
2516
+ const handleChangeEvent = (event) => {
2517
+ setInnerValue(event.currentTarget.value);
2518
+ onChange === null || onChange === void 0 ? void 0 : onChange(asFormField ? event.currentTarget.value : {
2519
+ target: {
2520
+ name: name || "",
2521
+ value: event.currentTarget.value
2522
+ },
2523
+ currentTarget: {
2524
+ name: name || "",
2525
+ value: event.currentTarget.value
2526
+ }
2527
+ });
2528
+ };
2529
+ const isClearIconVisible = clearable && !!innerValue;
2530
+ return jsxRuntime.jsx(StyledInput, Object.assign({ "data-test-id": `input-${name}`, name, value: innerValue, onChange: handleChangeEvent, ref, size: maxLength, disabled: isDisabled, isClearIconVisible, onClickClearField: clearField, prefix: withPrefix, suffix: withSuffix, height }, otherProps));
2531
+ });
3100
2532
 
3101
2533
  function cn$1(...inputs) {
3102
2534
  return tailwindMerge.twMerge(classNames__default.default(inputs));
@@ -3139,15 +2571,14 @@ const FlyOutMenuSeparator = React__namespace.forwardRef((_a, ref) => {
3139
2571
  });
3140
2572
  FlyOutMenuSeparator.displayName = FlyOutMenuPrimitive__namespace.Separator.displayName;
3141
2573
  const ItemButton = (props) => {
3142
- const { children, icon, leadingIcon: leadingIconFromProps, trailingIcon } = props, rest = __rest(props, ["children", "icon", "leadingIcon", "trailingIcon"]);
3143
- const leadingIcon = leadingIconFromProps !== null && leadingIconFromProps !== void 0 ? leadingIconFromProps : icon;
2574
+ const { children, leadingIcon, trailingIcon } = props, rest = __rest(props, ["children", "leadingIcon", "trailingIcon"]);
3144
2575
  return jsxRuntime.jsxs("button", Object.assign({}, rest, { className: "ui:flex ui:w-full ui:gap-s ui:p-s", children: [React__namespace.isValidElement(leadingIcon) ? React__namespace.cloneElement(leadingIcon, { className: "ui:shrink-0" }) : null, jsxRuntime.jsx(Text, { className: "ui:mt-[2px] ui:text-start", children }), React__namespace.isValidElement(trailingIcon) ? React__namespace.cloneElement(trailingIcon, {
3145
2576
  className: "ui:shrink-0 ui:ml-auto"
3146
2577
  }) : null] }));
3147
2578
  };
3148
2579
  const FlyOutMenuButtonItem = (props) => {
3149
- const { children, icon, leadingIcon, trailingIcon } = props, rest = __rest(props, ["children", "icon", "leadingIcon", "trailingIcon"]);
3150
- return jsxRuntime.jsx(FlyOutMenuItem, Object.assign({}, rest, { children: jsxRuntime.jsx(ItemButton, { leadingIcon: leadingIcon !== null && leadingIcon !== void 0 ? leadingIcon : icon, trailingIcon, children }) }));
2580
+ const { children, leadingIcon, trailingIcon } = props, rest = __rest(props, ["children", "leadingIcon", "trailingIcon"]);
2581
+ return jsxRuntime.jsx(FlyOutMenuItem, Object.assign({}, rest, { children: jsxRuntime.jsx(ItemButton, { leadingIcon, trailingIcon, children }) }));
3151
2582
  };
3152
2583
  const FlyOutMenuChildrenItem = (props) => {
3153
2584
  const { children, icon } = props, rest = __rest(props, ["children", "icon"]);
@@ -3194,36 +2625,6 @@ const LabeledInput = React__namespace.default.forwardRef((props, ref) => {
3194
2625
  return jsxRuntime.jsxs(Stack, { as: "label", _gap: "s", align: fieldWidth ? "stretch" : void 0, className: classNames__default.default(fieldWidth && calculateResponsiveWidthClasses(fieldWidth), className), children: [label && jsxRuntime.jsx(LabelText, { children: props.label }), jsxRuntime.jsx(StyledInput, Object.assign({}, rest, { ref, isError: Boolean(errorText), "aria-describedby": [ariaDescribedBy, helperErrorTextId].join(" ") })), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
3195
2626
  });
3196
2627
 
3197
- const LabeledRadio = React__namespace.default.forwardRef((props, ref) => {
3198
- const { children, label, helperText, errorText, className, inputClassName } = props, attributes = __rest(props, ["children", "label", "helperText", "errorText", "className", "inputClassName"]);
3199
- const { id, disabled } = attributes;
3200
- const semanticId = React__namespace.default.useId();
3201
- return jsxRuntime.jsxs(Stack, { as: "label", axis: "x", _gap: "m", htmlFor: id, className: classNames__default.default("ui:radio-form-field-label", className), children: [jsxRuntime.jsxs("div", { className: "ui:relative ui:flex ui:flex-row ui:items-center ui:self-start", children: [jsxRuntime.jsx(Text, { "aria-hidden": true, className: "ui:w-4 ui:opacity-0", children: "CENTER" }), jsxRuntime.jsx("div", { className: "ui:absolute", children: jsxRuntime.jsx(StyledRadio, Object.assign({ "aria-describedby": semanticId }, attributes, { ref, className: inputClassName })) })] }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(RadioLabel, { label, disabled, children }), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: semanticId })] })] });
3202
- });
3203
- function RadioLabel(props) {
3204
- const { children, label, disabled } = props;
3205
- if (!label && !children) {
3206
- return null;
3207
- }
3208
- if (children) {
3209
- return children;
3210
- }
3211
- return jsxRuntime.jsx(LabelText, { color: disabled ? "slate-500" : void 0, children: label });
3212
- }
3213
-
3214
- const LabeledRadioGroup = (props) => {
3215
- const { children, title, className, orientation = "vertical" } = props;
3216
- const semanticId = React__namespace.default.useId();
3217
- const orientationProps = orientation === "horizontal" ? {
3218
- axis: "x",
3219
- _gap: "2xl"
3220
- } : {
3221
- axis: "y",
3222
- _gap: "base"
3223
- };
3224
- return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), _gap: "s", children: [title && jsxRuntime.jsx("legend", { className: "ui:contents", children: jsxRuntime.jsx(Text, { children: title }) }), jsxRuntime.jsx(Stack, Object.assign({}, orientationProps, { children })), jsxRuntime.jsx(HelperAndErrorText, { helperText: props.helperText, errorText: props.errorText, describingId: semanticId })] });
3225
- };
3226
-
3227
2628
  const Actions$1 = (props) => {
3228
2629
  const { children, className } = props, rest = __rest(props, ["children", "className"]);
3229
2630
  return jsxRuntime.jsx("div", Object.assign({}, rest, { className: classNames__default.default(
@@ -3286,7 +2687,7 @@ function Card(props) {
3286
2687
  });
3287
2688
  return jsxRuntime.jsx(Box, Object.assign({ as: Element, elevation: highlighted && !elevation ? "large" : elevation, borderRadius, className: outerClasses, backgroundColor: "surface" }, rest, { children: jsxRuntime.jsxs(Box, { className: innerClasses, children: [jsxRuntime.jsx(RenderTopBar, Object.assign({}, props)), padding ? jsxRuntime.jsx(Padding$1, { children }) : children] }) }));
3288
2689
  }
3289
- Card.Title = (props) => jsxRuntime.jsx(Title, Object.assign({ variant: "sm" }, props));
2690
+ Card.Title = (props) => jsxRuntime.jsx(Heading, Object.assign({ variant: "h3", as: "h5" }, props));
3290
2691
  Card.TopBar = TopBar;
3291
2692
  Card.Padding = Padding$1;
3292
2693
  Card.Section = Section$1;
@@ -3294,13 +2695,13 @@ Card.Actions = Actions$1;
3294
2695
  function RenderTopBar(props) {
3295
2696
  const { title, actions } = props;
3296
2697
  if (title && actions) {
3297
- return jsxRuntime.jsx(Padding$1, { children: jsxRuntime.jsxs(TopBar, { className: "ui:flex ui:flex-wrap ui:items-center ui:justify-between", children: [jsxRuntime.jsx(Title, { variant: "sm", children: title }), jsxRuntime.jsx(Actions$1, { children: actions })] }) });
2698
+ return jsxRuntime.jsx(Padding$1, { children: jsxRuntime.jsxs(TopBar, { className: "ui:flex ui:flex-wrap ui:items-center ui:justify-between", children: [jsxRuntime.jsx(Heading, { variant: "h3", as: "h5", children: title }), jsxRuntime.jsx(Actions$1, { children: actions })] }) });
3298
2699
  }
3299
2700
  if (actions) {
3300
2701
  return jsxRuntime.jsx(Padding$1, { children: jsxRuntime.jsx(TopBar, { children: jsxRuntime.jsx(Actions$1, { children: actions }) }) });
3301
2702
  }
3302
2703
  if (title) {
3303
- return jsxRuntime.jsx(Padding$1, { children: jsxRuntime.jsx(TopBar, { children: jsxRuntime.jsx(Title, { variant: "sm", children: title }) }) });
2704
+ return jsxRuntime.jsx(Padding$1, { children: jsxRuntime.jsx(TopBar, { children: jsxRuntime.jsx(Heading, { variant: "h3", as: "h5", children: title }) }) });
3304
2705
  }
3305
2706
  return null;
3306
2707
  }
@@ -3631,6 +3032,85 @@ Line.propTypes = {
3631
3032
  className: PropTypes__default.default.string
3632
3033
  };
3633
3034
 
3035
+ var css_248z$8 = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n.cweb-checkbox {\n outline: none;\n}\n.cweb-checkbox .cweb-checkbox-input {\n position: absolute;\n -webkit-appearance: none;\n height: 1px;\n opacity: 0;\n width: 1px;\n}\n.cweb-checkbox.type-regular .cweb-checkbox-icon-container {\n border-color: #cccccc;\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n border-width: 1px;\n border-style: solid;\n border-radius: 4px;\n}\n.cweb-checkbox.type-regular.hasError .cweb-checkbox-icon-container {\n border-color: var(--ui-color-red-800, #991b1b);\n}\n.cweb-checkbox.type-regular.is-focused .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon {\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2210%22 height%3D%228%22 viewBox%3D%220 0 10 8%22 fill%3D%22none%22%3E %3Cpath d%3D%22M9.207 0.792787C9.39447 0.980314 9.49979 1.23462 9.49979 1.49979C9.49979 1.76495 9.39447 2.01926 9.207 2.20679L4.207 7.20679C4.01947 7.39426 3.76516 7.49957 3.5 7.49957C3.23484 7.49957 2.98053 7.39426 2.793 7.20679L0.793 5.20679C0.610842 5.01818 0.510047 4.76558 0.512326 4.50339C0.514604 4.24119 0.619773 3.99038 0.805181 3.80497C0.990589 3.61956 1.2414 3.51439 1.5036 3.51211C1.7658 3.50983 2.0184 3.61063 2.207 3.79279L3.5 5.08579L7.793 0.792787C7.98053 0.605316 8.23484 0.5 8.5 0.5C8.76516 0.5 9.01947 0.605316 9.207 0.792787Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-checked.is-focused .cweb-checkbox-icon-container {\n border-color: #1d4ed8;\n}\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon {\n width: 0.5rem;\n height: 0.5rem;\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%222%22 viewBox%3D%220 0 10 2%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M9 -4.37114e-08C9.55228 -1.95703e-08 10 0.447715 10 1C10 1.55228 9.55228 2 9 2L1 2C0.447716 2 -6.78525e-08 1.55228 -4.37114e-08 1C-1.95703e-08 0.447715 0.447715 -4.17544e-07 1 -3.93402e-07L9 -4.37114e-08Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-indeterminate.is-focused .cweb-checkbox-icon-container {\n border-color: #1d4ed8;\n}\n.cweb-checkbox.type-regular.is-disabled.show-cross-when-disabled .cweb-checkbox-icon {\n width: 10px;\n height: 10px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2211px%22 height%3D%2211px%22 viewBox%3D%220 0 11 11%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cg stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke-linecap%3D%22round%22%3E %3Cg transform%3D%22translate(-6.000000%2C -7.000000)%22 stroke%3D%22%232D2D2D%22 stroke-width%3D%222%22%3E %3Cpath d%3D%22M7%2C17 L16%2C8 M16%2C17 L7%2C8%22 %2F%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n opacity: 0.6;\n}";
3036
+ styleInject(css_248z$8);
3037
+
3038
+ const CheckboxInner = (props) => {
3039
+ const { id, explanation, type = "regular", isChecked = false, isIndeterminate = false, isDisabled, name, value, onChange, onClick, className, classNameCheckboxLabel, error, innerRef } = props;
3040
+ const [checked, setChecked] = React.useState(false);
3041
+ const [indeterminate, setIndeterminate] = React.useState(isIndeterminate);
3042
+ const [isFocused, setIsFocused] = React.useState(false);
3043
+ const containerClassName = classNames__default.default("cweb-checkbox", "type-regular", className, {
3044
+ "is-focused": isFocused,
3045
+ "is-checked": checked && !indeterminate,
3046
+ "is-indeterminate": indeterminate,
3047
+ "ui:opacity-50 ui:cursor-not-allowed is-disabled": isDisabled,
3048
+ hasError: error
3049
+ });
3050
+ React.useEffect(() => {
3051
+ setChecked(isChecked);
3052
+ setIndeterminate(false);
3053
+ }, [isChecked]);
3054
+ React.useEffect(() => {
3055
+ setIndeterminate(isIndeterminate);
3056
+ }, [isIndeterminate]);
3057
+ React.useEffect(() => {
3058
+ if (innerRef) {
3059
+ if (typeof innerRef !== "function" && (innerRef === null || innerRef === void 0 ? void 0 : innerRef.current)) {
3060
+ innerRef.current.indeterminate = !indeterminate;
3061
+ }
3062
+ }
3063
+ }, [indeterminate]);
3064
+ const handleChange = (event) => {
3065
+ setChecked(event.currentTarget.checked);
3066
+ event.stopPropagation();
3067
+ setIndeterminate(false);
3068
+ if (onChange) {
3069
+ onChange(event);
3070
+ }
3071
+ };
3072
+ const handleFocus = () => setIsFocused(true);
3073
+ const handleBlur = () => setIsFocused(false);
3074
+ return jsxRuntime.jsx("div", {
3075
+ className: containerClassName,
3076
+ /**
3077
+ * This harms a11y since the div becomes an interactible element.
3078
+ * The main interaction in this component happens between a styled label (looking like a checkbox)
3079
+ * and the invisible input checkbox itself.
3080
+ *
3081
+ * This `onClick` event is a requirement from using this component in the table,
3082
+ * since the row is clickable and we need to stop propagation to not invoking the row click
3083
+ * upon marking the checkbox as checked/unchecked.
3084
+ */
3085
+ onClick,
3086
+ children: jsxRuntime.jsx("label", { className: classNames__default.default(classNameCheckboxLabel, "cweb-checkbox-label ui:group ui:relative ui:overflow-hidden", "ui:flex ui:w-full ui:cursor-pointer", {
3087
+ "ui:cursor-not-allowed": isDisabled,
3088
+ "ui:cursor-pointer": !isDisabled
3089
+ }), "data-test-id": "checkbox-label", children: jsxRuntime.jsxs("div", { className: "ui:flex", children: [jsxRuntime.jsxs("div", { className: "ui:flex ui:h-[24px] ui:flex-col ui:justify-center ui:sm:h-[20px]", children: [jsxRuntime.jsx("input", { id, ref: innerRef, "data-test-id": `checkbox-${name}`, className: "cweb-checkbox-input", name, type: "checkbox", checked, disabled: isDisabled, value, onBlur: handleBlur, onFocus: handleFocus, onChange: handleChange }), jsxRuntime.jsx("span", { className: classNames__default.default("cweb-checkbox-icon-container ui:transition-colors", "ui:h-6 ui:w-6", "ui:sm:h-4 ui:sm:w-4", {
3090
+ "ui:bg-primary": checked || indeterminate,
3091
+ "ui:bg-white": !checked && !indeterminate,
3092
+ "ui:group-hover:bg-blue-50": type === "regular" && !(checked || indeterminate),
3093
+ "ui:group-hover:bg-primary-dark": checked || indeterminate,
3094
+ "ui:outline-primary": isFocused
3095
+ }), "data-test-id": "checkbox-span", children: jsxRuntime.jsx("div", { className: "cweb-checkbox-icon ui:h-3 ui:w-3 ui:sm:h-2 ui:sm:w-2" }) })] }), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Label, Object.assign({}, props)), explanation && jsxRuntime.jsx(Text, { className: "ui:ml-2 ui:select-none", color: "slate-500", "data-test-id": "checkbox-explanation", children: explanation })] })] }) })
3096
+ });
3097
+ };
3098
+ function Label(props) {
3099
+ const { text, renderLabel } = props;
3100
+ const divAttributes = {
3101
+ className: "ui:ml-2 ui:select-none",
3102
+ "data-test-id": "checkbox-text"
3103
+ };
3104
+ if (renderLabel) {
3105
+ return jsxRuntime.jsx("div", Object.assign({}, divAttributes, { children: renderLabel(props) }));
3106
+ }
3107
+ if (text) {
3108
+ return jsxRuntime.jsx("div", Object.assign({}, divAttributes, { children: jsxRuntime.jsx(Text, { children: text }) }));
3109
+ }
3110
+ return null;
3111
+ }
3112
+ const Checkbox = React__namespace.default.forwardRef((props, ref) => jsxRuntime.jsx(CheckboxInner, Object.assign({}, props, { innerRef: ref })));
3113
+
3634
3114
  const THead = (props) => {
3635
3115
  return jsxRuntime.jsx("thead", { className: classNames__default.default(
3636
3116
  // Styles for all header cells
@@ -3650,6 +3130,42 @@ function TableHeader(props) {
3650
3130
  return jsxRuntime.jsx(THead, { children: jsxRuntime.jsxs("tr", { className: "ui:rounded-2xl", children: [props.selectAllCheckbox && jsxRuntime.jsx("th", { children: props.selectAllCheckbox }), props.fieldConfigurations.map((fieldConfig) => fieldConfig.headerText ? jsxRuntime.jsx("th", { children: jsxRuntime.jsx(Text, { variant: "strong", className: "ui:truncate ui:py-m ui:text-left ui:capitalize ui:leading-5", children: fieldConfig.headerText }) }, fieldConfig.key) : jsxRuntime.jsx("td", {}, fieldConfig.key))] }) });
3651
3131
  }
3652
3132
 
3133
+ var img$7 = "data:image/svg+xml,%3csvg width='144' height='144' viewBox='0 0 144 144' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%23BBE3D7'/%3e%3cpath d='M100 28H44C41.7909 28 40 29.7909 40 32V112C40 114.209 41.7909 116 44 116H100C102.209 116 104 114.209 104 112V32C104 29.7909 102.209 28 100 28Z' fill='%23FBFEFF'/%3e%3cellipse cx='58' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='58' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='58' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='86' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='86' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cellipse cx='86' cy='98' rx='4' ry='3' fill='%23FFD3E5'/%3e%3cpath d='M71.9007 101.202C70.0421 101.202 68.5352 99.6148 68.5352 97.6578V96H75.2663V97.6578C75.2663 99.6148 73.7594 101.202 71.9007 101.202Z' fill='%23454545'/%3e%3cpath d='M60.0918 96.0458C59.8056 95.6233 59.3882 95.5719 59.2189 95.5719C59.0496 95.5719 58.6252 95.6181 58.3461 96.0458C57.9584 96.6394 57.1663 96.8045 56.5764 96.4145C55.9865 96.025 55.8224 95.2273 56.2101 94.6338C56.8775 93.6111 58.0023 93 59.2189 93C60.4355 93 61.5603 93.6111 62.2284 94.6338C62.6154 95.2273 62.4513 96.025 61.8614 96.4145C61.645 96.5575 60.6888 96.9281 60.0918 96.0458Z' fill='%23454545'/%3e%3cpath d='M85.6543 96.0458C85.3681 95.6233 84.9513 95.5719 84.7814 95.5719C84.6121 95.5719 84.1883 95.6181 83.9092 96.0458C83.5215 96.6394 82.7288 96.8045 82.1389 96.4145C81.549 96.025 81.3849 95.2273 81.7726 94.6338C82.4406 93.6111 83.5655 93 84.7821 93C85.998 93 87.1228 93.6111 87.7909 94.6338C88.1786 95.2273 88.0144 96.025 87.4246 96.4145C87.2081 96.5575 86.2519 96.9281 85.6543 96.0458Z' fill='%23454545'/%3e%3crect x='88.8281' y='45.8281' width='8' height='4' rx='2' transform='rotate(45 88.8281 45.8281)' fill='%23BBE3D7'/%3e%3crect x='100.143' y='45.8281' width='12' height='4' rx='2' transform='rotate(135 100.143 45.8281)' fill='%23BBE3D7'/%3e%3crect x='46' y='46' width='34' height='8' rx='4' fill='%23C0E9FA'/%3e%3crect x='88.8281' y='65.8281' width='8' height='4' rx='2' transform='rotate(45 88.8281 65.8281)' fill='%23BBE3D7'/%3e%3crect x='100.143' y='65.8281' width='12' height='4' rx='2' transform='rotate(135 100.143 65.8281)' fill='%23BBE3D7'/%3e%3crect x='46' y='66' width='34' height='8' rx='4' fill='%23C0E9FA'/%3e%3c/svg%3e";
3134
+
3135
+ var img$6 = "data:image/svg+xml,%3csvg width='144' height='144' viewBox='0 0 144 144' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_1866_119823)'%3e%3cmask id='mask0_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='144' height='144'%3e%3cpath d='M0 0V144H144V0H0H0Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask0_1866_119823)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M72 144C32.235 144 0 111.765 0 72C0 32.235 32.235 0 72 0C111.765 0 144 32.235 144 72C144 111.765 111.765 144 72 144Z' fill='%236ABFA5'/%3e%3c/g%3e%3cmask id='mask1_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='54' y='36' width='35' height='35'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask1_1866_119823)'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='%23F2F2F2'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71 39L71.3085 39.0035C78.8971 39.1745 85 45.6404 85 53.5915V68L57 67.8442V53.5915C57 45.533 63.2673 39 71 39ZM71 43.6584L70.7334 43.6623C65.6846 43.8094 61.6345 48.1211 61.6345 53.4187V64.1342L80.3646 64.238V53.4187C80.3646 48.0282 76.1712 43.6584 71 43.6584Z' fill='%23DEDEDE'/%3e%3c/g%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M90.5966 107.98H53.4036C50.1986 107.98 47.5996 105.381 47.5996 102.176V68.7708C47.5996 65.5658 50.1986 62.9668 53.4036 62.9668H90.5966C93.8026 62.9668 96.4006 65.5658 96.4006 68.7708V102.176C96.4006 105.381 93.8026 107.98 90.5966 107.98Z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71.9277 75.3438C69.1662 75.3438 66.9277 77.5836 66.9277 80.3467C66.9277 82.3006 68.0499 83.9884 69.6804 84.8115L69.6813 95.3438H74.1751L74.1761 84.8115C75.8065 83.9884 76.9277 82.3006 76.9277 80.3467C76.9277 77.5836 74.6893 75.3438 71.9277 75.3438Z' fill='%236670A5'/%3e%3cpath d='M61 62H53V63H61V62Z' fill='white'/%3e%3cpath d='M89 62H81V63H89V62Z' fill='white'/%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%236ABFA5'/%3e%3cpath d='M76.975 32.7732C79.9117 37.5004 83.0276 42.9368 86.1287 48.7329C87.8031 51.8633 90.8123 54.0548 94.2988 54.6825C100.469 55.7938 106.31 56.9717 111.465 58.1712C115.702 59.1572 117.426 64.2717 114.653 67.6338C111.028 72.0263 106.95 76.7279 102.457 81.5292C100.104 84.0461 98.9851 87.4836 99.4054 90.909C100.173 97.1657 100.778 103.076 101.239 108.507C101.61 112.876 97.2381 116.105 93.1944 114.44C87.6662 112.163 82.6966 109.553 77.0542 106.776C73.8839 105.217 70.1732 105.197 66.9841 106.72C61.3559 109.408 56.0667 111.994 50.9051 114.19C46.8445 115.918 42.404 112.698 42.7799 108.29C43.2385 102.918 43.8374 97.0822 44.5947 90.909C45.015 87.4829 43.8971 84.0454 41.5426 81.5286C37.051 76.7273 32.9716 72.0256 29.3475 67.6331C26.5747 64.271 28.2981 59.1565 32.5352 58.1705C37.6902 56.9711 43.5319 55.7931 49.7019 54.6819C53.1878 54.0542 56.1969 51.8626 57.872 48.7322C60.9725 42.9362 64.0884 37.4997 67.0257 32.7725C69.3225 29.0757 74.6775 29.0757 76.975 32.7732Z' fill='%23EDFFF9'/%3e%3cpath opacity='0.5' d='M60.6635 77.2045C60.6635 74.8627 58.2874 72.9648 55.3561 72.9648C52.4249 72.9648 50.0488 74.8627 50.0488 77.2045C50.0488 79.5455 52.4249 81.4441 55.3561 81.4441C58.2874 81.4441 60.6635 79.5455 60.6635 77.2045Z' fill='%23FF83B4'/%3e%3cpath opacity='0.5' d='M93.9499 77.2045C93.9499 74.8627 91.5739 72.9648 88.6426 72.9648C85.712 72.9648 83.3359 74.8627 83.3359 77.2045C83.3359 79.5455 85.712 81.4441 88.6426 81.4441C91.5739 81.4441 93.9499 79.5455 93.9499 77.2045Z' fill='%23FF83B4'/%3e%3cpath d='M71.9988 76.516C70.2801 76.516 68.5613 75.9577 67.1272 74.8417C66.5478 74.3911 66.4424 73.554 66.8923 72.9727C67.3414 72.3915 68.176 72.2858 68.7554 72.7363C70.6648 74.2227 73.3329 74.2227 75.243 72.7363C75.8224 72.2858 76.6562 72.3915 77.1061 72.9727C77.5552 73.554 77.4498 74.3911 76.8704 74.8417C75.4363 75.9577 73.7176 76.516 71.9988 76.516Z' fill='%23454545'/%3e%3cpath d='M58.6251 73.96C58.3276 73.5222 57.8939 73.469 57.718 73.469C57.5421 73.469 57.101 73.5168 56.811 73.96C56.4081 74.5749 55.585 74.746 54.972 74.3419C54.3591 73.9384 54.1885 73.1121 54.5914 72.4972C55.2849 71.4378 56.4538 70.8047 57.718 70.8047C58.9822 70.8047 60.1511 71.4378 60.8453 72.4972C61.2475 73.1121 61.077 73.9384 60.464 74.3419C60.2391 74.49 59.2454 74.8739 58.6251 73.96Z' fill='%23454545'/%3e%3cpath d='M87.1876 73.96C86.8901 73.5222 86.4571 73.469 86.2805 73.469C86.1046 73.469 85.6642 73.5168 85.3741 73.96C84.9713 74.5749 84.1475 74.746 83.5345 74.3419C82.9216 73.9384 82.751 73.1121 83.1539 72.4972C83.8481 71.4378 85.017 70.8047 86.2812 70.8047C87.5447 70.8047 88.7136 71.4378 89.4078 72.4972C89.8107 73.1121 89.6401 73.9384 89.0272 74.3419C88.8022 74.49 87.8086 74.8739 87.1876 73.96Z' fill='%23454545'/%3e%3cg clip-path='url(%23clip1_1866_119823)'%3e%3cmask id='mask2_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='144' height='144'%3e%3cpath d='M0 0V144H144V0H0H0Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask2_1866_119823)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M72 144C32.235 144 0 111.765 0 72C0 32.235 32.235 0 72 0C111.765 0 144 32.235 144 72C144 111.765 111.765 144 72 144Z' fill='%23BBE3D7'/%3e%3c/g%3e%3cmask id='mask3_1866_119823' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='54' y='36' width='35' height='35'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='white'/%3e%3c/mask%3e%3cg mask='url(%23mask3_1866_119823)'%3e%3cpath d='M71.14 36L71.4657 36.003C80.7804 36.1767 88.28 43.7828 88.28 53.14V70.065L54 69.882V53.14C54 43.674 61.673 36 71.14 36ZM71.14 41.472L70.8441 41.4757C64.6488 41.6327 59.674 46.7039 59.674 52.937V65.524L82.605 65.646V52.937C82.605 46.605 77.471 41.472 71.14 41.472Z' fill='%23F2F2F2'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71 39L71.3085 39.0035C78.8971 39.1745 85 45.6404 85 53.5915V68L57 67.8442V53.5915C57 45.533 63.2673 39 71 39ZM71 43.6584L70.7334 43.6623C65.6846 43.8094 61.6345 48.1211 61.6345 53.4187V64.1342L80.3646 64.238V53.4187C80.3646 48.0282 76.1712 43.6584 71 43.6584Z' fill='%23DEDEDE'/%3e%3c/g%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M90.5966 107.98H53.4036C50.1986 107.98 47.5996 105.381 47.5996 102.176V68.7708C47.5996 65.5658 50.1986 62.9668 53.4036 62.9668H90.5966C93.8026 62.9668 96.4006 65.5658 96.4006 68.7708V102.176C96.4006 105.381 93.8026 107.98 90.5966 107.98Z' fill='white'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M71.9277 75.3438C69.1662 75.3438 66.9277 77.5836 66.9277 80.3467C66.9277 82.3006 68.0499 83.9884 69.6804 84.8115L69.6813 95.3438H74.1751L74.1761 84.8115C75.8065 83.9884 76.9277 82.3006 76.9277 80.3467C76.9277 77.5836 74.6893 75.3438 71.9277 75.3438Z' fill='%236670A5'/%3e%3cpath d='M61 62H53V63H61V62Z' fill='white'/%3e%3cpath d='M89 62H81V63H89V62Z' fill='white'/%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%23BBE3D7'/%3e%3cpath d='M76.975 32.7732C79.9117 37.5004 83.0276 42.9368 86.1287 48.7329C87.8031 51.8633 90.8123 54.0548 94.2988 54.6825C100.469 55.7938 106.31 56.9717 111.465 58.1712C115.702 59.1572 117.426 64.2717 114.653 67.6338C111.028 72.0263 106.95 76.7279 102.457 81.5292C100.104 84.0461 98.9851 87.4836 99.4054 90.909C100.173 97.1657 100.778 103.076 101.239 108.507C101.61 112.876 97.2381 116.105 93.1944 114.44C87.6662 112.163 82.6966 109.553 77.0542 106.776C73.8839 105.217 70.1732 105.197 66.9841 106.72C61.3559 109.408 56.0667 111.994 50.9051 114.19C46.8445 115.918 42.404 112.698 42.7799 108.29C43.2385 102.918 43.8374 97.0822 44.5947 90.909C45.015 87.4829 43.8971 84.0454 41.5426 81.5286C37.051 76.7273 32.9716 72.0256 29.3475 67.6331C26.5747 64.271 28.2981 59.1565 32.5352 58.1705C37.6902 56.9711 43.5319 55.7931 49.7019 54.6819C53.1878 54.0542 56.1969 51.8626 57.872 48.7322C60.9725 42.9362 64.0884 37.4997 67.0257 32.7725C69.3225 29.0757 74.6775 29.0757 76.975 32.7732Z' fill='%23EDFFF9'/%3e%3cpath opacity='0.5' d='M60.6635 77.2045C60.6635 74.8627 58.2874 72.9648 55.3561 72.9648C52.4249 72.9648 50.0488 74.8627 50.0488 77.2045C50.0488 79.5455 52.4249 81.4441 55.3561 81.4441C58.2874 81.4441 60.6635 79.5455 60.6635 77.2045Z' fill='%23FF83B4'/%3e%3cpath opacity='0.5' d='M93.9499 77.2045C93.9499 74.8627 91.5739 72.9648 88.6426 72.9648C85.712 72.9648 83.3359 74.8627 83.3359 77.2045C83.3359 79.5455 85.712 81.4441 88.6426 81.4441C91.5739 81.4441 93.9499 79.5455 93.9499 77.2045Z' fill='%23FF83B4'/%3e%3cpath d='M71.9988 76.516C70.2801 76.516 68.5613 75.9577 67.1272 74.8417C66.5478 74.3911 66.4424 73.554 66.8923 72.9727C67.3414 72.3915 68.176 72.2858 68.7554 72.7363C70.6648 74.2227 73.3329 74.2227 75.243 72.7363C75.8224 72.2858 76.6562 72.3915 77.1061 72.9727C77.5552 73.554 77.4498 74.3911 76.8704 74.8417C75.4363 75.9577 73.7176 76.516 71.9988 76.516Z' fill='%23454545'/%3e%3cpath d='M58.6251 73.96C58.3276 73.5222 57.8939 73.469 57.718 73.469C57.5421 73.469 57.101 73.5168 56.811 73.96C56.4081 74.5749 55.585 74.746 54.972 74.3419C54.3591 73.9384 54.1885 73.1121 54.5914 72.4972C55.2849 71.4378 56.4538 70.8047 57.718 70.8047C58.9822 70.8047 60.1511 71.4378 60.8453 72.4972C61.2475 73.1121 61.077 73.9384 60.464 74.3419C60.2391 74.49 59.2454 74.8739 58.6251 73.96Z' fill='%23454545'/%3e%3cpath d='M87.1876 73.96C86.8901 73.5222 86.4571 73.469 86.2805 73.469C86.1046 73.469 85.6642 73.5168 85.3741 73.96C84.9713 74.5749 84.1475 74.746 83.5345 74.3419C82.9216 73.9384 82.751 73.1121 83.1539 72.4972C83.8481 71.4378 85.017 70.8047 86.2812 70.8047C87.5447 70.8047 88.7136 71.4378 89.4078 72.4972C89.8107 73.1121 89.6401 73.9384 89.0272 74.3419C88.8022 74.49 87.8086 74.8739 87.1876 73.96Z' fill='%23454545'/%3e%3ccircle cx='72' cy='72' r='72' fill='%23BBE3D7'/%3e%3cpath d='M57.8627 78L65 85.1367C65 85.1367 58.3298 97.4142 46.3849 109.359C42.1198 113.625 35.8091 114.23 32.2895 110.71C28.7706 107.19 29.3753 100.88 33.6404 96.6145C45.5853 84.6696 57.8627 78 57.8627 78Z' fill='%236670A5'/%3e%3cpath d='M49 83.6111C50.3607 85.6362 51.9273 87.5447 53.691 89.3083C55.4553 91.072 57.3631 92.6393 59.3882 94C63.0565 88.8161 65 85.239 65 85.239L57.7604 78C57.7604 78 54.1839 79.9435 49 83.6111Z' fill='%237A86C6'/%3e%3cpath d='M113 62.5C113 80.4489 98.4489 95 80.5 95C62.5511 95 48 80.4489 48 62.5C48 44.5504 62.5511 30 80.5 30C98.4489 30 113 44.5504 113 62.5Z' fill='%236670A5'/%3e%3cpath d='M104 62.5003C104 75.4788 93.4787 86 80.5 86C67.5213 86 57 75.4788 57 62.5003C57 49.5218 67.5213 39 80.5 39C93.4787 39 104 49.5218 104 62.5003Z' fill='%23CCECF9'/%3e%3cpath d='M66.5 64C65.6716 64 65 63.3273 65 62.4976V59.5024C65 58.6727 65.6716 58 66.5 58C67.3284 58 68 58.6727 68 59.5024V62.4974C68.0002 63.3272 67.3284 64 66.5 64Z' fill='%232D2D2D'/%3e%3cpath d='M94.5 64C93.6716 64 93 63.3273 93 62.4976V59.5024C93 58.6727 93.6716 58 94.5 58C95.3284 58 96 58.6727 96 59.5024V62.4974C96.0002 63.3272 95.3284 64 94.5 64Z' fill='%232D2D2D'/%3e%3cpath d='M80.5002 69C78.5064 69 76.6346 68.1213 75.3655 66.5887C74.828 65.9395 74.8906 64.9532 75.5057 64.3859C76.1208 63.8187 77.0552 63.8846 77.5928 64.5338C78.3 65.3879 79.3596 65.8776 80.5001 65.8776C81.6403 65.8776 82.6999 65.3879 83.4071 64.5338C83.9447 63.8846 84.8791 63.8183 85.4943 64.3859C86.1094 64.9532 86.1722 65.9395 85.6344 66.5887C84.3657 68.1213 82.4941 69 80.5002 69Z' fill='%232D2D2D'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_1866_119823'%3e%3crect width='144' height='144' fill='white'/%3e%3c/clipPath%3e%3cclipPath id='clip1_1866_119823'%3e%3crect width='144' height='144' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
3136
+
3137
+ var img$5 = "data:image/svg+xml,%3csvg width='144' height='144' viewBox='0 0 144 144' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M72 144C111.765 144 144 111.765 144 72C144 32.2355 111.765 0 72 0C32.2355 0 0 32.2355 0 72C0 111.765 32.2355 144 72 144Z' fill='%236ABFA5'/%3e%3cpath d='M76.975 32.7732C79.9117 37.5004 83.0276 42.9368 86.1287 48.7329C87.8031 51.8633 90.8123 54.0548 94.2988 54.6825C100.469 55.7938 106.31 56.9717 111.465 58.1712C115.702 59.1572 117.426 64.2717 114.653 67.6338C111.028 72.0263 106.95 76.7279 102.457 81.5292C100.104 84.0461 98.9851 87.4836 99.4054 90.909C100.173 97.1657 100.778 103.076 101.239 108.507C101.61 112.876 97.2381 116.105 93.1944 114.44C87.6662 112.163 82.6966 109.553 77.0542 106.776C73.8839 105.217 70.1732 105.197 66.9841 106.72C61.3559 109.408 56.0667 111.994 50.9051 114.19C46.8445 115.918 42.404 112.698 42.7799 108.29C43.2385 102.918 43.8374 97.0822 44.5947 90.909C45.015 87.4829 43.8971 84.0454 41.5426 81.5286C37.051 76.7273 32.9716 72.0256 29.3475 67.6331C26.5747 64.271 28.2981 59.1565 32.5352 58.1705C37.6902 56.9711 43.5319 55.7931 49.7019 54.6819C53.1878 54.0542 56.1969 51.8626 57.872 48.7322C60.9725 42.9362 64.0884 37.4997 67.0257 32.7725C69.3225 29.0757 74.6775 29.0757 76.975 32.7732Z' fill='%23EDFFF9'/%3e%3cpath opacity='0.5' d='M60.6643 77.204C60.6643 74.8623 58.2883 72.9644 55.357 72.9644C52.4257 72.9644 50.0497 74.8623 50.0497 77.204C50.0497 79.545 52.4257 81.4436 55.357 81.4436C58.2883 81.4436 60.6643 79.545 60.6643 77.204Z' fill='%23FF83B4'/%3e%3cpath opacity='0.5' d='M93.9503 77.204C93.9503 74.8623 91.5743 72.9644 88.643 72.9644C85.7124 72.9644 83.3364 74.8623 83.3364 77.204C83.3364 79.545 85.7124 81.4436 88.643 81.4436C91.5743 81.4436 93.9503 79.545 93.9503 77.204Z' fill='%23FF83B4'/%3e%3cpath d='M72 76.516C70.2813 76.516 68.5625 75.9577 67.1285 74.8417C66.5491 74.3911 66.4437 73.554 66.8935 72.9727C67.3426 72.3915 68.1772 72.2858 68.7566 72.7363C70.666 74.2227 73.3341 74.2227 75.2442 72.7363C75.8236 72.2858 76.6575 72.3915 77.1073 72.9727C77.5564 73.554 77.451 74.3911 76.8716 74.8417C75.4375 75.9577 73.7188 76.516 72 76.516Z' fill='%23454545'/%3e%3cpath d='M58.626 73.96C58.3286 73.5222 57.8949 73.469 57.719 73.469C57.5431 73.469 57.102 73.5168 56.8119 73.96C56.4091 74.5749 55.586 74.746 54.973 74.3419C54.36 73.9384 54.1895 73.1121 54.5923 72.4972C55.2859 71.4378 56.4548 70.8047 57.719 70.8047C58.9832 70.8047 60.1521 71.4378 60.8463 72.4972C61.2485 73.1121 61.0779 73.9384 60.465 74.3419C60.24 74.49 59.2464 74.8739 58.626 73.96Z' fill='%23454545'/%3e%3cpath d='M87.1882 73.96C86.8907 73.5222 86.4577 73.469 86.2811 73.469C86.1052 73.469 85.6648 73.5168 85.3747 73.96C84.9719 74.5749 84.1481 74.746 83.5351 74.3419C82.9222 73.9384 82.7516 73.1121 83.1545 72.4972C83.8487 71.4378 85.0176 70.8047 86.2818 70.8047C87.5453 70.8047 88.7142 71.4378 89.4084 72.4972C89.8113 73.1121 89.6407 73.9384 89.0278 74.3419C88.8028 74.49 87.8092 74.8739 87.1882 73.96Z' fill='%23454545'/%3e%3c/svg%3e";
3138
+
3139
+ const imageSrc = {
3140
+ "no-open-alerts": img$7,
3141
+ "search-not-found": img$6,
3142
+ "no-notes-found": img$5
3143
+ };
3144
+ const EmptyListMessage = ({ text, imageName, dataTestId = "empty-list-message", className }) => {
3145
+ return jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-col ui:items-center", className), "data-test-id": dataTestId, children: [imageName && jsxRuntime.jsx("img", { className: "ui:mb-2.5", alt: "", src: imageSrc[imageName] }), jsxRuntime.jsx(Text, { className: "ui:text-center", children: text })] });
3146
+ };
3147
+
3148
+ var img$4 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='68' height='20' viewBox='0 0 68 20'%3e %3cg fill='none' fill-rule='nonzero'%3e %3ccircle cx='10' cy='10' r='10' fill='%23F09'%3e %3canimate attributeName='opacity' dur='2s' values='1%3b0.6%3b1' repeatCount='indefinite' begin='0.1'/%3e %3canimate attributeName='r' dur='2s' repeatCount='indefinite' values='10%3b8%3b10' begin='0.1'/%3e %3c/circle%3e %3ccircle cx='34' cy='10' r='10' fill='%236ABFA5'%3e %3canimate attributeName='opacity' dur='2s' values='1%3b0.6%3b1' repeatCount='indefinite' begin='0.6'/%3e %3canimate attributeName='r' dur='2s' repeatCount='indefinite' values='10%3b8%3b10' begin='0.6'/%3e %3c/circle%3e %3ccircle cx='58' cy='10' r='10' fill='%236670A5'%3e %3canimate attributeName='opacity' dur='2s' values='1%3b0.6%3b1' repeatCount='indefinite' begin='1.1'/%3e %3canimate attributeName='r' dur='2s' repeatCount='indefinite' values='10%3b8%3b10' begin='1.1'/%3e %3c/circle%3e %3c/g%3e%3c/svg%3e";
3149
+
3150
+ var img$3 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='margin: auto%3b background: none%3b display: block%3b shape-rendering: auto%3b' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' fill='none' stroke='%23009fe3' stroke-width='16' r='36' stroke-dasharray='169.64600329384882 58.548667764616276'%3e %3canimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1.1111111111111112s' values='0 50 50%3b360 50 50' keyTimes='0%3b1'%3e%3c/animateTransform%3e%3c/circle%3e%3c/svg%3e";
3151
+
3152
+ var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='margin: auto%3b background: none%3b display: block%3b shape-rendering: auto%3b' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' fill='none' stroke='%23cbd5e1' stroke-width='16' r='36' stroke-dasharray='169.64600329384882 58.548667764616276'%3e %3canimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1.1111111111111112s' values='0 50 50%3b360 50 50' keyTimes='0%3b1'%3e%3c/animateTransform%3e%3c/circle%3e%3c!-- %5bldio%5d generated by https://loading.io/ --%3e%3c/svg%3e";
3153
+
3154
+ var css_248z$7 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-loading {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-loading .cweb-loading-text {\n margin-bottom: 24px;\n}\n.cweb-loading.as-modal {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 9999;\n background-color: rgba(255, 255, 255, 0.6);\n}\n.cweb-loading.as-modal .cweb-loading-panel {\n position: relative;\n width: 320px;\n min-height: 120px;\n border-radius: 4px;\n padding: 16px;\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.36);\n background-color: #ffffff;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n.cweb-loading.as-modal .cweb-loading-panel:before {\n position: absolute;\n content: \"\";\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n height: 3px;\n background-color: #6abfa5;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}";
3155
+ styleInject(css_248z$7);
3156
+
3157
+ function LoadingIndicator(_a) {
3158
+ var { asModal = false, asSpinner = false, className = "", spinnerColor = "blue", dataTestId = "loading-indicator" } = _a, restProps = __rest(_a, ["asModal", "asSpinner", "className", "spinnerColor", "dataTestId"]);
3159
+ const spinnerToRender = spinnerColor === "blue" ? img$3 : img$2;
3160
+ const containerClassName = classNames__default.default("cweb-loading", className, {
3161
+ "as-modal": asModal
3162
+ });
3163
+ return jsxRuntime.jsx("div", Object.assign({ "aria-label": "Loading" }, restProps, { className: containerClassName, "data-test-id": dataTestId, role: "progressbar", children: jsxRuntime.jsx("img", { alt: "", src: asSpinner ? spinnerToRender : img$4, "data-chromatic": "ignore", className: classNames__default.default("ui:fill-current ui:stroke-current ui:text-gray-600", {
3164
+ "ui:h-4 ui:w-4": asSpinner,
3165
+ "ui:h-12 ui:w-12": !asSpinner
3166
+ }) }) }));
3167
+ }
3168
+
3653
3169
  function isTableFieldText(content) {
3654
3170
  return "text" in content || "tag" in content || "description" in content;
3655
3171
  }
@@ -3709,7 +3225,7 @@ function TableBodyRowDataCell(props) {
3709
3225
  if (!action) {
3710
3226
  return null;
3711
3227
  }
3712
- return jsxRuntime.jsx(TertiaryButton, { "data-test-id": `${action.key}-button`, className: "ui:ml-2 ui:first:ml-0", icon: action.icon, isDisabled: action.isDisabled, title: action.title, onClick: () => {
3228
+ return jsxRuntime.jsx(TertiaryButton, { "data-test-id": `${action.key}-button`, className: "ui:ml-2 ui:first:ml-0", leadingIcon: action.icon ? jsxRuntime.jsx(IconComponentOrKey, { name: action.icon }) : void 0, disabled: action.isDisabled, title: action.title, onClick: () => {
3713
3229
  action.handleClick(props.item);
3714
3230
  } }, action.key);
3715
3231
  }) })] });
@@ -3830,8 +3346,8 @@ const PaginationMenuSmall = (props) => {
3830
3346
  return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TertiaryButton, { "aria-label": localization.previous, "data-test-id": "prev-button", leadingIcon: jsxRuntime.jsx(ChevronLeftIcon, {}), "data-page": props.currentPageNumber - 1, onClick: handleOnChange, disabled: props.currentPageNumber === 1 }), jsxRuntime.jsx(Text, { className: "ui:ml-4", variant: "sm", color: "slate-500", children: `${props.currentPageNumber} / ${props.pageCount}` }), jsxRuntime.jsx(TertiaryButton, { className: "ui:ml-4", "aria-label": localization.next, "data-test-id": "next-button", leadingIcon: jsxRuntime.jsx(ChevronRightIcon, {}), disabled: props.currentPageNumber === props.pageCount, "data-page": props.currentPageNumber + 1, onClick: handleOnChange })] });
3831
3347
  };
3832
3348
 
3833
- var css_248z$5 = ".styled-select {\n appearance: none;\n}\n.styled-select::picker-icon {\n appearance: none;\n}";
3834
- styleInject(css_248z$5);
3349
+ var css_248z$6 = ".styled-select {\n appearance: none;\n}\n.styled-select::picker-icon {\n appearance: none;\n}";
3350
+ styleInject(css_248z$6);
3835
3351
 
3836
3352
  const StyledSelect = React__namespace.default.forwardRef((_a, ref) => {
3837
3353
  var { children, suffix, prefix, className, width = "full", height = "lg", isError } = _a, attributes = __rest(_a, ["children", "suffix", "prefix", "className", "width", "height", "isError"]);
@@ -3932,7 +3448,7 @@ const PaginationMenuCursor = (props) => {
3932
3448
 
3933
3449
  const Wrapper = ({ className, children }) => jsxRuntime.jsx(Stack, { axis: "x", align: "center", className: classNames__default.default(className), justify: "between", width: "full", children });
3934
3450
  const PaginationMenu = (props) => {
3935
- if (props.type === "small" || props.small) {
3451
+ if (props.type === "small") {
3936
3452
  return jsxRuntime.jsx(Wrapper, { className: props.className, children: jsxRuntime.jsx(PaginationMenuSmall, { localization: props.localization, pageCount: props.pageCount, currentPageNumber: props.currentPageNumber, pageSize: props.pageSize, onChange: props.onChange }) });
3937
3453
  }
3938
3454
  if (props.type === "cursor") {
@@ -4301,8 +3817,8 @@ const NavLayout = (props) => {
4301
3817
  }), children })] })] })] }));
4302
3818
  };
4303
3819
 
4304
- var css_248z$4 = ".cweb-page {\n width: 100%;\n max-width: 1140px;\n margin: 32px auto 0 auto;\n}\n.cweb-page .cweb-page-breadcrumbs {\n margin-bottom: 16px;\n}\n.cweb-page .page-spinner {\n margin-left: 8px;\n margin-bottom: 4px;\n}\n.cweb-page .page-spinner img {\n width: 21px;\n}\n.cweb-page .cweb-page-header {\n display: flex;\n align-items: center;\n width: 100%;\n flex-grow: 0;\n}\n.cweb-page .cweb-page-header .cweb-page-title {\n display: inline;\n}\n.cweb-page .cweb-page-header.accessory-right {\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n@media screen and (max-width: 426px) {\n .cweb-page .cweb-page-header.accessory-bottom {\n max-width: 75vw;\n }\n .cweb-page .cweb-page-header.accessory-bottom img {\n max-width: 10vw;\n }\n .cweb-page .cweb-page-header.accessory-bottom button p {\n font-size: 4vw;\n }\n}\n.cweb-page .cweb-page-header.accessory-bottom {\n flex-direction: column;\n align-items: flex-start;\n}\n.cweb-page .cweb-page-header.accessory-bottom .cweb-page-title {\n margin-bottom: 8px;\n display: inline;\n}";
4305
- styleInject(css_248z$4);
3820
+ var css_248z$5 = ".cweb-page {\n width: 100%;\n max-width: 1140px;\n margin: 32px auto 0 auto;\n}\n.cweb-page .cweb-page-breadcrumbs {\n margin-bottom: 16px;\n}\n.cweb-page .page-spinner {\n margin-left: 8px;\n margin-bottom: 4px;\n}\n.cweb-page .page-spinner img {\n width: 21px;\n}\n.cweb-page .cweb-page-header {\n display: flex;\n align-items: center;\n width: 100%;\n flex-grow: 0;\n}\n.cweb-page .cweb-page-header .cweb-page-title {\n display: inline;\n}\n.cweb-page .cweb-page-header.accessory-right {\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n@media screen and (max-width: 426px) {\n .cweb-page .cweb-page-header.accessory-bottom {\n max-width: 75vw;\n }\n .cweb-page .cweb-page-header.accessory-bottom img {\n max-width: 10vw;\n }\n .cweb-page .cweb-page-header.accessory-bottom button p {\n font-size: 4vw;\n }\n}\n.cweb-page .cweb-page-header.accessory-bottom {\n flex-direction: column;\n align-items: flex-start;\n}\n.cweb-page .cweb-page-header.accessory-bottom .cweb-page-title {\n margin-bottom: 8px;\n display: inline;\n}";
3821
+ styleInject(css_248z$5);
4306
3822
 
4307
3823
  function Page({
4308
3824
  dataTestId = "page",
@@ -4334,7 +3850,7 @@ function Page({
4334
3850
  return /* @__PURE__ */ jsxRuntime.jsx("div", { id, className: containerClassnames, children: /* @__PURE__ */ jsxRuntime.jsxs(NavLayout, { menu: navMenu, ...navLayoutProps, children: [
4335
3851
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: mergedPageClasses, "data-test-id": dataTestId, children: [
4336
3852
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: accessoryClasses, children: [
4337
- /* @__PURE__ */ jsxRuntime.jsx(Title, { "data-test-id": `${dataTestId}-title`, children: maybeTitle }),
3853
+ /* @__PURE__ */ jsxRuntime.jsx(Heading, { variant: "h2", as: "h4", "data-test-id": `${dataTestId}-title`, children: maybeTitle }),
4338
3854
  isPolling && /* @__PURE__ */ jsxRuntime.jsx(
4339
3855
  LoadingIndicator,
4340
3856
  {
@@ -4481,6 +3997,9 @@ const Breadcrumbs = ({
4481
3997
  return jsxRuntime.jsx("ul", { "data-test-id": "breadcrumbs", className: "ui:flex ui:flex-row ui:flex-wrap ui:items-center", children: (isTruncated ? crumbsAndDivider : crumbs).map((crumbOrDividerProps) => isBreadcrumbDividerProps(crumbOrDividerProps) ? jsxRuntime.jsx(BreadcrumbDividerItem, Object.assign({}, crumbOrDividerProps), `divider-${truncatedCrumbs.map((crumb) => crumb.name).join("-")}`) : jsxRuntime.jsx(BreadcrumbItem, Object.assign({}, crumbOrDividerProps, { render: renderItem }), crumbOrDividerProps.key || crumbOrDividerProps.name)) });
4482
3998
  };
4483
3999
 
4000
+ var css_248z$4 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n/**\n * Avenir is NOT declared here. The library does not ship font files, so any\n * `@font-face` written against a path in this repo resolves against the\n * consuming app's document and 404s there. Providing the typeface is the\n * consumer's responsibility; this rule only names it.\n */\n.title-avenir {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}\n\n.title-inter {\n font-family: \"Inter\", \"Roboto\", \"Helvetica\", sans-serif;\n}";
4001
+ styleInject(css_248z$4);
4002
+
4484
4003
  const PageTitle = (props) => {
4485
4004
  const { as: Component = "h2", className } = props, rest = __rest(props, ["as", "className"]);
4486
4005
  return jsxRuntime.jsx(Component, Object.assign({}, rest, { className: classNames__default.default(
@@ -4580,10 +4099,8 @@ const PageHeader = ({ navigation, breadcrumbs, dataTestId, accessories, isPollin
4580
4099
  ) })] }), jsxRuntime.jsx(Divider, { version: "v2" })] });
4581
4100
  };
4582
4101
 
4583
- const CRUDPage = ({ submitButtonProps, cancelButtonProps, className, children, isLoading, isSubmitting, dataTestId = "page", title, header, steps, isMobileFriendly, belowHeader, accessory }) => {
4102
+ const CRUDPage = ({ className, children, isLoading, dataTestId = "page", title, header, steps, isMobileFriendly, belowHeader, accessory }) => {
4584
4103
  const mergedClasses = classNames__default.default("cweb-crud-page", "ui:w-full ui:mb-0 ui:mx-auto ui:pb-8", className);
4585
- const submitButton = accessory !== null && accessory !== void 0 ? accessory : submitButtonProps && jsxRuntime.jsx(PrimaryButton, Object.assign({ "data-test-id": "submit-button", role: "primary", isPending: isSubmitting }, submitButtonProps), "submit-button");
4586
- const cancelButton = accessory !== null && accessory !== void 0 ? accessory : cancelButtonProps && jsxRuntime.jsx(TertiaryButton, Object.assign({ "data-test-id": "cancel-button", role: "secondary" }, cancelButtonProps), "cancel-button");
4587
4104
  if (isLoading) {
4588
4105
  return jsxRuntime.jsx("div", { className: "cweb-crud-page-container", "data-test-id": dataTestId, children: jsxRuntime.jsxs("div", { className: classNames__default.default(mergedClasses, "ui:relative ui:overflow-y-hidden", "cweb-crud-page-loading-container"), style: { height: "90vh" }, children: [jsxRuntime.jsx(PageHeaderBlock, { header, title }), jsxRuntime.jsx(LoadingIndicator, { className: classNames__default.default("crud-page-loader", "ui:absolute ui:bottom-0 ui:left-0 ui:right-0 ui:top-0 ui:m-auto ui:h-12 ui:w-12"), asModal: false })] }) });
4589
4106
  }
@@ -4608,7 +4125,7 @@ const CRUDPage = ({ submitButtonProps, cancelButtonProps, className, children, i
4608
4125
  state = "current";
4609
4126
  }
4610
4127
  return jsxRuntime.jsx(Steps.Step, { title: `${steps.localization.step} ${stepNumber}`, subtitle: stepTitle, state }, stepTitle);
4611
- }) }), children, jsxRuntime.jsx(Line, { left: accessory ? accessoriesToRender : [submitButton, cancelButton], className: classNames__default.default("cweb-crud-page-button-line", "ui:mt-4 ui:border-t ui:border-solid ui:border-color-divider ui:pt-4") })] }) })] }) });
4128
+ }) }), children, jsxRuntime.jsx(Line, { left: accessoriesToRender, className: classNames__default.default("cweb-crud-page-button-line", "ui:mt-4 ui:border-t ui:border-solid ui:border-color-divider ui:pt-4") })] }) })] }) });
4612
4129
  };
4613
4130
  const PageHeaderBlock = ({ header, title }) => {
4614
4131
  if (!title && !header) {
@@ -4616,7 +4133,7 @@ const PageHeaderBlock = ({ header, title }) => {
4616
4133
  }
4617
4134
  let pageHeaderComponent = null;
4618
4135
  if (title) {
4619
- pageHeaderComponent = jsxRuntime.jsx("div", { className: "ui:align-center ui:flex ui:flex-row ui:justify-start", children: jsxRuntime.jsx(PageHeader, { banner: null, title: jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-nowrap ui:items-center ui:gap-m", children: [title.icon && jsxRuntime.jsx("img", { id: "title-icon", src: title.icon, className: "ui:h-9 ui:w-9", alt: "title icon" }), jsxRuntime.jsx(PageTitle, { children: title.text })] }) }) });
4136
+ pageHeaderComponent = jsxRuntime.jsx("div", { className: "ui:align-center ui:flex ui:flex-row ui:justify-start", children: jsxRuntime.jsx(PageHeader, { banner: null, title: jsxRuntime.jsx("div", { className: "ui:flex ui:flex-nowrap ui:items-center ui:gap-m", children: jsxRuntime.jsx(PageTitle, { children: title.text }) }) }) });
4620
4137
  }
4621
4138
  if (header) {
4622
4139
  if (header.breadcrumbs !== void 0 && header.renderBreadcrumbItem !== void 0) {
@@ -4628,7 +4145,7 @@ const PageHeaderBlock = ({ header, title }) => {
4628
4145
  return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: "ui:align-center ui:flex ui:flex-row ui:justify-start", children: pageHeaderComponent }), jsxRuntime.jsx(Divider, { version: "v2" })] });
4629
4146
  };
4630
4147
 
4631
- var img = "data:image/svg+xml,%3csvg width='340' height='638' viewBox='0 0 340 638' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect x='8' y='60' width='50' height='8' rx='4' transform='rotate(90 8 60)' fill='%23111827'/%3e %3crect x='8' y='118' width='50' height='8' rx='4' transform='rotate(90 8 118)' fill='%23111827'/%3e %3crect x='340' y='67' width='30' height='8' rx='4' transform='rotate(90 340 67)' fill='%23111827'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M36 0C18.3269 0 4 14.3269 4 32V606C4 623.673 18.3269 638 36 638H304C321.673 638 336 623.673 336 606V32C336 14.3269 321.673 0 304 0H36ZM28 43C23.5817 43 20 46.5817 20 51V549C20 553.418 23.5817 557 28 557H312C316.418 557 320 553.418 320 549V51C320 46.5817 316.418 43 312 43H28Z' fill='%23374151'/%3e %3ccircle cx='171' cy='598' r='16' fill='%236B7280'/%3e %3ccircle cx='105.5' cy='22.5' r='4.5' fill='%236B7280'/%3e %3crect x='118' y='18' width='104' height='9' rx='4' fill='%239CA3AF'/%3e%3c/svg%3e";
4148
+ var img$1 = "data:image/svg+xml,%3csvg width='340' height='638' viewBox='0 0 340 638' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3crect x='8' y='60' width='50' height='8' rx='4' transform='rotate(90 8 60)' fill='%23111827'/%3e %3crect x='8' y='118' width='50' height='8' rx='4' transform='rotate(90 8 118)' fill='%23111827'/%3e %3crect x='340' y='67' width='30' height='8' rx='4' transform='rotate(90 340 67)' fill='%23111827'/%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M36 0C18.3269 0 4 14.3269 4 32V606C4 623.673 18.3269 638 36 638H304C321.673 638 336 623.673 336 606V32C336 14.3269 321.673 0 304 0H36ZM28 43C23.5817 43 20 46.5817 20 51V549C20 553.418 23.5817 557 28 557H312C316.418 557 320 553.418 320 549V51C320 46.5817 316.418 43 312 43H28Z' fill='%23374151'/%3e %3ccircle cx='171' cy='598' r='16' fill='%236B7280'/%3e %3ccircle cx='105.5' cy='22.5' r='4.5' fill='%236B7280'/%3e %3crect x='118' y='18' width='104' height='9' rx='4' fill='%239CA3AF'/%3e%3c/svg%3e";
4632
4149
 
4633
4150
  const useWindowDimensions = () => {
4634
4151
  const [height, setHeight] = React.useState(window.innerHeight);
@@ -4672,11 +4189,11 @@ const PreviewPhone = ({ className, children }) => {
4672
4189
  width: phoneWidth,
4673
4190
  height: phoneHeight,
4674
4191
  transform: `scale(${scale})`
4675
- }, children: [jsxRuntime.jsx("div", { className: "ui:h-full ui:px-5 ui:pb-20 ui:pt-11", children: jsxRuntime.jsx("div", { className: "ui:h-full ui:overflow-y-auto ui:bg-white", children }) }), jsxRuntime.jsx("img", { className: "ui:pointer-events-none ui:absolute ui:top-0", src: img, alt: "phone mockup" })] }) }) : jsxRuntime.jsx(jsxRuntime.Fragment, {});
4192
+ }, children: [jsxRuntime.jsx("div", { className: "ui:h-full ui:px-5 ui:pb-20 ui:pt-11", children: jsxRuntime.jsx("div", { className: "ui:h-full ui:overflow-y-auto ui:bg-white", children }) }), jsxRuntime.jsx("img", { className: "ui:pointer-events-none ui:absolute ui:top-0", src: img$1, alt: "phone mockup" })] }) }) : jsxRuntime.jsx(jsxRuntime.Fragment, {});
4676
4193
  };
4677
4194
 
4678
4195
  const SectionHeader = ({ title, aside, isLoading = false }) => {
4679
- return jsxRuntime.jsxs(Stack, { axis: "x", as: "header", justify: "between", align: "center", width: "full", "data-test-id": "section-header", _p: "l", children: [jsxRuntime.jsxs(Stack, { axis: "x", justify: "center", align: "center", _gap: "m", children: [typeof title === "string" ? jsxRuntime.jsx(Title, { variant: "sm", children: title }) : title, isLoading && jsxRuntime.jsx(LoadingIndicator, { asSpinner: true })] }), aside] });
4196
+ return jsxRuntime.jsxs(Stack, { axis: "x", as: "header", justify: "between", align: "center", width: "full", "data-test-id": "section-header", _p: "l", children: [jsxRuntime.jsxs(Stack, { axis: "x", justify: "center", align: "center", _gap: "m", children: [typeof title === "string" ? jsxRuntime.jsx(Heading, { variant: "h3", as: "h5", children: title }) : title, isLoading && jsxRuntime.jsx(LoadingIndicator, { asSpinner: true })] }), aside] });
4680
4197
  };
4681
4198
 
4682
4199
  const SectionFooter = ({ children }) => {
@@ -4705,7 +4222,7 @@ function SectionItemWithContent(props) {
4705
4222
  const { text, icon, className, iconClass, onClick } = props, rest = __rest(props, ["text", "icon", "className", "iconClass", "onClick"]);
4706
4223
  const mergedClasses = classNames__default.default("cweb-section-ui:bg-item", className);
4707
4224
  const iconClasses = classNames__default.default("ui:w-6 ui:h-6 ui:mr-4", iconClass);
4708
- return jsxRuntime.jsxs(SectionItem, Object.assign({ className: mergedClasses, onClick }, rest, { children: [icon && jsxRuntime.jsx("img", { className: iconClasses, src: icon, alt: "" }), jsxRuntime.jsx(Text, { text })] }));
4225
+ return jsxRuntime.jsxs(SectionItem, Object.assign({ className: mergedClasses, onClick }, rest, { children: [icon && jsxRuntime.jsx("img", { className: iconClasses, src: icon, alt: "" }), jsxRuntime.jsx(Text, { children: text })] }));
4709
4226
  }
4710
4227
 
4711
4228
  var css_248z$2 = ".customized-select [class*=MenuList] [class*=option]::after {\n position: absolute;\n content: \"\";\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22%3E %3Cg transform%3D%22translate(1.5%2C 0.5)%22%3E %3Cpath fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke%3D%22%230074DD%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22 stroke-width%3D%222%22 d%3D%22M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286%22%2F%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n right: 12px;\n height: 1rem;\n width: 1rem;\n}";
@@ -5000,7 +4517,7 @@ const SettingsMenuButton = (props) => {
5000
4517
  console.error("An icon component is required to use this component, please make sure to pass it as a prop. ");
5001
4518
  return jsxRuntime.jsx("span", { children: "Invalid props passed to this component." });
5002
4519
  }
5003
- return jsxRuntime.jsxs("div", { onClick: handleShowMenu, className: "ui:relative", children: [jsxRuntime.jsx(TertiaryButton, { icon: iconComponent, onClick: handleShowMenu, text: buttonTitle, "aria-label": buttonTitle ? void 0 : menuTitle !== null && menuTitle !== void 0 ? menuTitle : "Settings" }), jsxRuntime.jsxs("div", { ref: menuRef, className: classNames__default.default("ui:transform ui:cursor-default ui:transition-all ui:duration-300", "ui:absolute ui:-top-1 ui:z-30", "ui:max-h-78 ui:w-80 ui:overflow-y-auto ui:rounded", "ui:bg-white ui:shadow-md", "ui:border ui:border-slate-300", {
4520
+ return jsxRuntime.jsxs("div", { onClick: handleShowMenu, className: "ui:relative", children: [jsxRuntime.jsx(TertiaryButton, { leadingIcon: React.createElement(iconComponent), onClick: handleShowMenu, "aria-label": buttonTitle ? void 0 : menuTitle !== null && menuTitle !== void 0 ? menuTitle : "Settings", children: buttonTitle }), jsxRuntime.jsxs("div", { ref: menuRef, className: classNames__default.default("ui:transform ui:cursor-default ui:transition-all ui:duration-300", "ui:absolute ui:-top-1 ui:z-30", "ui:max-h-78 ui:w-80 ui:overflow-y-auto ui:rounded", "ui:bg-white ui:shadow-md", "ui:border ui:border-slate-300", {
5004
4521
  "ui:-left-54": shiftMenuTo === "left",
5005
4522
  "ui:-right-54": shiftMenuTo === "right",
5006
4523
  "ui:-left-68": shiftMenuTo === "left-md",
@@ -5010,14 +4527,14 @@ const SettingsMenuButton = (props) => {
5010
4527
  }, {
5011
4528
  "ui:pointer-events-none ui:opacity-0": !showMenu,
5012
4529
  "ui:opacity-100": showMenu
5013
- }), children: [menuTitle && jsxRuntime.jsx("div", { className: "ui:h-11 ui:w-full ui:bg-slate-50 ui:p-3", children: jsxRuntime.jsx(Text, { type: "sm", className: "ui:uppercase", text: menuTitle }) }), innerConfiguration.map((innerConfig) => jsxRuntime.jsxs("div", { className: "ui:flex ui:h-11 ui:w-full ui:items-center ui:justify-between ui:p-3", children: [jsxRuntime.jsx("label", { htmlFor: innerConfig.itemId, children: jsxRuntime.jsx(Text, { text: innerConfig.itemName }) }), jsxRuntime.jsx(Checkbox, { name: innerConfig.itemName, id: innerConfig.itemId, type: "switch", isChecked: innerConfig.on, onChange: handleOnVisibilitySwitchChanged })] }, innerConfig.itemId))] })] });
4530
+ }), children: [menuTitle && jsxRuntime.jsx("div", { className: "ui:h-11 ui:w-full ui:bg-slate-50 ui:p-3", children: jsxRuntime.jsx(Text, { variant: "sm", className: "ui:uppercase", children: menuTitle }) }), innerConfiguration.map((innerConfig) => jsxRuntime.jsxs("div", { className: "ui:flex ui:h-11 ui:w-full ui:items-center ui:justify-between ui:p-3", children: [jsxRuntime.jsx("label", { htmlFor: innerConfig.itemId, children: jsxRuntime.jsx(Text, { children: innerConfig.itemName }) }), jsxRuntime.jsx(Checkbox, { name: innerConfig.itemName, id: innerConfig.itemId, type: "switch", isChecked: innerConfig.on, onChange: handleOnVisibilitySwitchChanged })] }, innerConfig.itemId))] })] });
5014
4531
  };
5015
4532
 
5016
4533
  const SwitcherItem = ({ className, icon, ariaLabel, isSelected = false, isLast = false, name, onSelect }) => {
5017
4534
  return jsxRuntime.jsx("li", { role: "none", className: classNames__default.default("ui:flex ui:border-solid ui:border-border-neutral-secondary-default", { "ui:border-r": !isLast }), children: jsxRuntime.jsxs("button", { type: "button", "aria-pressed": isSelected, "aria-label": ariaLabel, onClick: onSelect, className: classNames__default.default("ui:flex ui:flex-row ui:cursor-pointer ui:appearance-none ui:items-center ui:gap-xxs ui:border-none ui:p-xxs", "ui:outline-none ui:transition ui:duration-150 ui:focus-visible:z-10 ui:focus-visible:ring-2 ui:focus-visible:ring-inset ui:focus-visible:ring-border-brand-primary-default", {
5018
4535
  "ui:bg-background-brand-secondary-default ui:text-text-brand-primary-default": isSelected,
5019
4536
  "ui:bg-background-neutral-secondary-default ui:text-text-neutral-secondary-default ui:hover:bg-background-neutral-secondary-hovered": !isSelected
5020
- }, className), children: [icon && jsxRuntime.jsx(IconComponentOrKey, { name: icon }), name && jsxRuntime.jsx(Text, { text: name, color: "current" })] }) });
4537
+ }, className), children: [icon && jsxRuntime.jsx(IconComponentOrKey, { name: icon }), name && jsxRuntime.jsx(Text, { color: "current", children: name })] }) });
5021
4538
  };
5022
4539
 
5023
4540
  const Switcher = ({ selectedIndex = -1, onChange, className, itemClassName, items }) => {
@@ -5045,6 +4562,30 @@ const Switch = (props) => {
5045
4562
  }), children: jsxRuntime.jsx(RadixSwitch__namespace.Thumb, { className: classNames__default.default("ui:h-[20px] ui:w-[20px]", "ui:bg-white", "ui:transition-transform ui:duration-100 ui:will-change-transform", "ui:translate-x-1 ui:data-[state=checked]:translate-x-[32px]", "ui:block ui:rounded-full") }) });
5046
4563
  };
5047
4564
 
4565
+ var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3e%3cpath d='M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.9 10.98L8 13.51L11.1 9.52C11.3 9.26 11.7 9.26 11.9 9.53L15.41 14.21C15.66 14.54 15.42 15.01 15.01 15.01H3.02C2.6 15.01 2.37 14.53 2.63 14.2L5.12 11C5.31 10.74 5.69 10.73 5.9 10.98Z' fill='%23D1D5DB'/%3e%3c/svg%3e";
4566
+
4567
+ const ImageInner = (_a) => {
4568
+ var { src, alt = "", className, children = null, onClick, showIconOnFailure = true, wrapperClassName } = _a, otherProps = __rest(_a, ["src", "alt", "className", "children", "onClick", "showIconOnFailure", "wrapperClassName"]);
4569
+ const [isError, setIsError] = React.useState(false);
4570
+ if (!src || isError) {
4571
+ if (children) {
4572
+ return jsxRuntime.jsx("span", { onClick, children });
4573
+ }
4574
+ if (!showIconOnFailure) {
4575
+ return null;
4576
+ }
4577
+ }
4578
+ return jsxRuntime.jsx(reactLazyLoadImageComponent.LazyLoadImage, Object.assign({ className: classNames__default.default(className), effect: "blur", useIntersectionObserver: true, placeholder: jsxRuntime.jsx("div", { className: "ui:flex ui:h-full ui:w-full ui:flex-row ui:items-center ui:justify-center ui:rounded", children: jsxRuntime.jsx("img", { src: img, alt: "image-icon" }) }), src, alt, onClick, onError: () => setIsError(true), wrapperClassName }, otherProps));
4579
+ };
4580
+ var Image$1 = reactLazyLoadImageComponent.trackWindowScroll(ImageInner);
4581
+
4582
+ const isSubstring = (string, searchTerm, caseSensitive = false) => {
4583
+ const trueString = typeof string !== "string" ? JSON.stringify(string) : string;
4584
+ const stringToSearch = caseSensitive ? trueString : trueString === null || trueString === void 0 ? void 0 : trueString.toLowerCase();
4585
+ const searchTermWithCase = caseSensitive ? searchTerm : searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.toLowerCase();
4586
+ return (stringToSearch === null || stringToSearch === void 0 ? void 0 : stringToSearch.indexOf(searchTermWithCase)) > -1;
4587
+ };
4588
+
5048
4589
  const useOnCloseAnimationFinished = ({
5049
4590
  /**
5050
4591
  * Reference to the dialog element
@@ -5211,8 +4752,13 @@ ModalDialog.Footer = Footer;
5211
4752
  ModalDialog.Actions = Actions;
5212
4753
  ModalDialog.useModalDialog = useModalDialog;
5213
4754
 
4755
+ const SearchInput = React__namespace.default.forwardRef((props, ref) => {
4756
+ var _a;
4757
+ return jsxRuntime.jsx(Input, Object.assign({}, props, { icon: "SearchIcon", type: "text", width: (_a = props.width) !== null && _a !== void 0 ? _a : "xl", clearable: true, ref }));
4758
+ });
4759
+
5214
4760
  const ImageCategory = (props) => {
5215
- return jsxRuntime.jsxs("div", { className: "ui:mt-4 ui:w-full", children: [jsxRuntime.jsx(Text, { text: props.category.key }), jsxRuntime.jsx("div", { className: "ui:flex ui:flex-row ui:flex-wrap", children: props.images.map((option, index) => {
4761
+ return jsxRuntime.jsxs("div", { className: "ui:mt-4 ui:w-full", children: [jsxRuntime.jsx(Text, { children: props.category.key }), jsxRuntime.jsx("div", { className: "ui:flex ui:flex-row ui:flex-wrap", children: props.images.map((option, index) => {
5216
4762
  const isSelected = option === props.highlightedImage;
5217
4763
  return jsxRuntime.jsx("button", { "data-test-id": `image-from-selector-${index.toString().padStart(2, "0")}`, "data-index": index, "data-src": option, onClick: props.handleImageClick, className: classNames__default.default("ui:m-2 ui:rounded ui:border ui:border-solid ui:border-slate-300 ui:p-2", {
5218
4764
  "ui:outline ui:outline-primary": isSelected,
@@ -5245,7 +4791,7 @@ const ImagePickerInner = ({
5245
4791
  innerRef
5246
4792
  }) => {
5247
4793
  var _a;
5248
- const placeholderImage = clearImageIndex !== void 0 && images[clearImageIndex] ? images[clearImageIndex] : img$7;
4794
+ const placeholderImage = clearImageIndex !== void 0 && images[clearImageIndex] ? images[clearImageIndex] : img;
5249
4795
  const isTypeCompact = type === "compact";
5250
4796
  const [search, setSearch] = React.useState("");
5251
4797
  const [filteredCategories, setFilteredCategories] = React.useState(categories);
@@ -5347,7 +4893,7 @@ const ImagePickerInner = ({
5347
4893
  var _a2;
5348
4894
  setIsImagesPanelOpen(false);
5349
4895
  (_a2 = fileInputRef.current) === null || _a2 === void 0 ? void 0 : _a2.click();
5350
- }, children: localisation.uploadImage }), jsxRuntime.jsx("input", { ref: fileInputRef, type: "file", disabled: isDisabled, name: `uploaded-${name}`, accept: acceptedMimeTypes.join(","), onChange: uploadImage, className: "ui:hidden" })] }), isClearButtonVisible && selectedMedia !== placeholderImage && !isUploading && jsxRuntime.jsx(SecondaryButton, { text: localisation.clearSelection, isDisabled, isPending: isUploading, onClick: handleDeleteClick })] })] }), jsxRuntime.jsxs(ModalDialog, { open: isImagesPanelOpen, onClose: handleCloseModal, variant: "centered-dialog", size: "l", children: [jsxRuntime.jsxs(ModalDialog.Header, { children: [jsxRuntime.jsx(ModalDialog.Title, { children: localisation.modalTitle }), jsxRuntime.jsx(ModalDialog.CloseButton, { onClick: handleCloseModal })] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(ModalDialog.Body, { children: jsxRuntime.jsxs(Stack, { axis: "y", _gap: "l", width: "full", className: "ui:max-h-135", children: [jsxRuntime.jsx(SearchInput, { name: "searchImages", className: "ui:w-full", value: search, placeholder: localisation.search, onChange: handleSearchChange }), jsxRuntime.jsx("div", { className: "ui:flex ui:w-full ui:flex-row ui:flex-wrap ui:items-center", children: filteredCategories === null || filteredCategories === void 0 ? void 0 : filteredCategories.map((category) => jsxRuntime.jsx(ImageCategory, { category, images: images === null || images === void 0 ? void 0 : images.filter((categoryImage) => categoryImage.includes(category.folder)), highlightedImage, handleImageClick, isTypeCompact }, category.folder)) })] }) }), jsxRuntime.jsx(ModalDialog.Footer, { children: jsxRuntime.jsx(ModalDialog.Actions, { width: "full", children: jsxRuntime.jsxs(Stack, { axis: "x", _gap: "m", justify: "end", width: "full", children: [jsxRuntime.jsx(SecondaryButton, { dataTestId: "modal-footer-trailing-secondary-button", onClick: handleCloseModal, children: localisation.cancel }), jsxRuntime.jsx(PrimaryButton, { dataTestId: "modal-footer-trailing-primary-button", onClick: handleConfirmSelection, children: localisation.selectButton })] }) }) })] })] });
4896
+ }, children: localisation.uploadImage }), jsxRuntime.jsx("input", { ref: fileInputRef, type: "file", disabled: isDisabled, name: `uploaded-${name}`, accept: acceptedMimeTypes.join(","), onChange: uploadImage, className: "ui:hidden" })] }), isClearButtonVisible && selectedMedia !== placeholderImage && !isUploading && jsxRuntime.jsx(SecondaryButton, { disabled: isDisabled, isPending: isUploading, onClick: handleDeleteClick, children: localisation.clearSelection })] })] }), jsxRuntime.jsxs(ModalDialog, { open: isImagesPanelOpen, onClose: handleCloseModal, variant: "centered-dialog", size: "l", children: [jsxRuntime.jsxs(ModalDialog.Header, { children: [jsxRuntime.jsx(ModalDialog.Title, { children: localisation.modalTitle }), jsxRuntime.jsx(ModalDialog.CloseButton, { onClick: handleCloseModal })] }), jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(ModalDialog.Body, { children: jsxRuntime.jsxs(Stack, { axis: "y", _gap: "l", width: "full", className: "ui:max-h-135", children: [jsxRuntime.jsx(SearchInput, { name: "searchImages", className: "ui:w-full", value: search, placeholder: localisation.search, onChange: handleSearchChange }), jsxRuntime.jsx("div", { className: "ui:flex ui:w-full ui:flex-row ui:flex-wrap ui:items-center", children: filteredCategories === null || filteredCategories === void 0 ? void 0 : filteredCategories.map((category) => jsxRuntime.jsx(ImageCategory, { category, images: images === null || images === void 0 ? void 0 : images.filter((categoryImage) => categoryImage.includes(category.folder)), highlightedImage, handleImageClick, isTypeCompact }, category.folder)) })] }) }), jsxRuntime.jsx(ModalDialog.Footer, { children: jsxRuntime.jsx(ModalDialog.Actions, { width: "full", children: jsxRuntime.jsxs(Stack, { axis: "x", _gap: "m", justify: "end", width: "full", children: [jsxRuntime.jsx(SecondaryButton, { dataTestId: "modal-footer-trailing-secondary-button", onClick: handleCloseModal, children: localisation.cancel }), jsxRuntime.jsx(PrimaryButton, { dataTestId: "modal-footer-trailing-primary-button", onClick: handleConfirmSelection, children: localisation.selectButton })] }) }) })] })] });
5351
4897
  };
5352
4898
  const MediaPicker = React__namespace.default.forwardRef((props, ref) => {
5353
4899
  var _a, _b;
@@ -5355,7 +4901,7 @@ const MediaPicker = React__namespace.default.forwardRef((props, ref) => {
5355
4901
  return jsxRuntime.jsx(ImagePickerInner, Object.assign({}, mappedProps, { innerRef: ref }));
5356
4902
  });
5357
4903
 
5358
- const TagGroup = ({ children, tags, tagSize = "large", className }) => jsxRuntime.jsxs("div", { className: classNames__default.default("ui:flex ui:flex-row ui:flex-wrap ui:gap-2", className), children: [children, tags === null || tags === void 0 ? void 0 : tags.map((tag) => jsxRuntime.jsx(Tag, Object.assign({ _size: tagSize }, tag)))] });
4904
+ const TagGroup = ({ children, className }) => jsxRuntime.jsx("div", { className: classNames__default.default("ui:flex ui:flex-row ui:flex-wrap ui:gap-2", className), children });
5359
4905
 
5360
4906
  const typeIcons$1 = {
5361
4907
  info: BookOpenIcon,
@@ -5391,16 +4937,16 @@ const InstrumentCard = ({ type, title, category, meta, id, copyIdLabel = "Copy I
5391
4937
  }, className: "ui:relative ui:z-10 ui:flex ui:cursor-pointer ui:focus-visible:outline-primary", children: jsxRuntime.jsx(Tag, { _size: "small", _variant: "bordered", _leadingIcon: jsxRuntime.jsx(CopyToClipboardIcon, { "aria-hidden": true }), children: id }) })] })] }), count !== void 0 && jsxRuntime.jsx(Tag, { _size: "small", _variant: "flat", _leadingIcon: jsxRuntime.jsx(CopyToClipboardIcon, { "aria-hidden": true }), className: "ui:shrink-0", children: jsxRuntime.jsx(Text, { variant: "body-small-bold", as: "span", children: count }) })] });
5392
4938
  };
5393
4939
 
5394
- const variantClasses = {
5395
- h1: "ui-typo-h1 ui:text-text-brand-primary-default",
5396
- h2: "ui-typo-h2 ui:text-text-neutral-primary-default",
5397
- h3: "ui-typo-h3 ui:text-text-neutral-primary-default",
5398
- h4: "ui-typo-h4 ui:text-text-neutral-primary-default"
5399
- };
5400
- const Heading = (_a) => {
5401
- var { as: Element = "h2", variant = "h2", className, children } = _a, rest = __rest(_a, ["as", "variant", "className", "children"]);
5402
- return jsxRuntime.jsx(Element, Object.assign({ className: classNames__default.default(variantClasses[variant], className) }, rest, { children }));
5403
- };
4940
+ const DragHandle = React.forwardRef((_a, ref) => {
4941
+ var { dataTestId, className: classes, grabbing, disabled = false, label = "Drag to reorder" } = _a, props = __rest(_a, ["dataTestId", "className", "grabbing", "disabled", "label"]);
4942
+ const className = classNames__default.default(classes, "ui:py-2 ui:focus:outline-primary", {
4943
+ "ui:cursor-grab": !grabbing && !disabled,
4944
+ "ui:cursor-grabbing ui:shadow-sm ui:bg-slate-200": grabbing && !disabled,
4945
+ "ui:hover:bg-slate-200 ui:hover:shadow-sm ui:transition ui:duration-200 ui:rounded": !disabled,
4946
+ "ui:cursor-not-allowed": disabled
4947
+ });
4948
+ return jsxRuntime.jsx("button", Object.assign({ ref, "aria-label": label }, props, { tabIndex: 0, className, "data-test-id": dataTestId !== null && dataTestId !== void 0 ? dataTestId : "dragHandle", children: jsxRuntime.jsx(Icon, { name: "DragIndicatorIcon", className: disabled ? "ui:text-slate-300" : "ui:text-slate-400" }) }));
4949
+ });
5404
4950
 
5405
4951
  const typeIcons = {
5406
4952
  information: ActionInformationColoredIcon,
@@ -5584,7 +5130,7 @@ const LinkTooltip = ({ linkElement, editorInstance, onClose, translations }) =>
5584
5130
  top: "anchor(bottom)",
5585
5131
  left: "anchor(left)",
5586
5132
  marginTop: "8px"
5587
- }, children: jsxRuntime.jsx(Card, { borderRadius: "s", elevation: "large", className: "ui:max-w-80", padding: false, border: true, children: jsxRuntime.jsxs(Stack, { width: "full", align: "stretch", children: [jsxRuntime.jsx(Box, { _p: "m", children: jsxRuntime.jsxs(Text, { children: [translations.visitUrlLabel, " ", jsxRuntime.jsx("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "ui:text-blue-600 ui:underline ui:text-sm ui:overflow-hidden ui:text-ellipsis ui:whitespace-nowrap hover:ui:text-blue-700", children: url })] }) }), jsxRuntime.jsx(Divider, { version: "v2" }), jsxRuntime.jsxs(Stack, { axis: "x", _gap: "base", _p: "m", children: [jsxRuntime.jsx(TertiaryButton, { onClick: handleEditLink, text: translations.editButtonText, size: "medium" }), jsxRuntime.jsx(TertiaryButton, { onClick: handleRemoveLink, text: translations.removeButtonText, size: "medium" }), jsxRuntime.jsx(TertiaryButton, { onClick: onClose, text: translations.closeButtonText, size: "medium" })] })] }) }) });
5133
+ }, children: jsxRuntime.jsx(Card, { borderRadius: "s", elevation: "large", className: "ui:max-w-80", padding: false, border: true, children: jsxRuntime.jsxs(Stack, { width: "full", align: "stretch", children: [jsxRuntime.jsx(Box, { _p: "m", children: jsxRuntime.jsxs(Text, { children: [translations.visitUrlLabel, " ", jsxRuntime.jsx("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "ui:text-blue-600 ui:underline ui:text-sm ui:overflow-hidden ui:text-ellipsis ui:whitespace-nowrap hover:ui:text-blue-700", children: url })] }) }), jsxRuntime.jsx(Divider, { version: "v2" }), jsxRuntime.jsxs(Stack, { axis: "x", _gap: "base", _p: "m", children: [jsxRuntime.jsx(TertiaryButton, { onClick: handleEditLink, size: "medium", children: translations.editButtonText }), jsxRuntime.jsx(TertiaryButton, { onClick: handleRemoveLink, size: "medium", children: translations.removeButtonText }), jsxRuntime.jsx(TertiaryButton, { onClick: onClose, size: "medium", children: translations.closeButtonText })] })] }) }) });
5588
5134
  };
5589
5135
 
5590
5136
  const TextEditorToolbarButton = ({ option, hasTextSelected, editor, translations }) => {
@@ -6034,20 +5580,6 @@ const TextEditor = (_a) => {
6034
5580
  return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(Card, Object.assign({ padding: false, border: true, borderRadius: "xs", backgroundColor: "base" }, attrs, { children: [jsxRuntime.jsx(Card.TopBar, { children: jsxRuntime.jsx(Card.Actions, { className: "ui:justify-start", children: jsxRuntime.jsx(TextEditorToolbar, { toolbarId, toolbar, hasTextSelected, editor, translations }) }) }), jsxRuntime.jsx(Divider, { version: "v2" }), jsxRuntime.jsx(react.EditorContent, { editor }), jsxRuntime.jsx("div", {})] })), linkTooltip && editor && jsxRuntime.jsx(LinkTooltip, { linkElement: linkTooltip, editorInstance: editor, onClose: () => setLinkTooltip(null), translations })] });
6035
5581
  };
6036
5582
 
6037
- const TextLink = (props) => {
6038
- const className = classNames__default.default("ui:text-sm ui:hover:underline", {
6039
- "ui:cursor-pointer": props.enabled,
6040
- "ui:cursor-default": !props.enabled
6041
- }, {
6042
- "ui:text-primary": props.enabled,
6043
- "ui:text-slate-800": !props.enabled
6044
- }, {
6045
- "ui:hover:text-primary-dark": props.enabled,
6046
- "ui:hover:text-slate-900": !props.enabled
6047
- });
6048
- return jsxRuntime.jsx("a", { href: props.href, rel: props.rel, target: props.target, onClick: props.onClick, className: classNames__default.default(className, props.className), children: props.text });
6049
- };
6050
-
6051
5583
  const TimelineStep = React__namespace.default.forwardRef(({ content, type = "base", dataTestId, title }, ref) => {
6052
5584
  const isWideStep = type === "wide";
6053
5585
  const borderClassNames = "ui:ml-4 ui:pl-6 ui:border-primary ui:border-l-2";
@@ -6055,7 +5587,7 @@ const TimelineStep = React__namespace.default.forwardRef(({ content, type = "bas
6055
5587
  [borderClassNames]: !isWideStep,
6056
5588
  "ui:bg-white ui:rounded-lg ui:overflow-hidden": isWideStep
6057
5589
  });
6058
- return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isWideStep && jsxRuntime.jsx("div", { className: classNames__default.default(borderClassNames, "ui:h-4 ui:first:h-0") }), jsxRuntime.jsxs("div", { className: containerClassNames, "data-test-id": dataTestId === void 0 ? "" : `timeline-step-${dataTestId}`, ref, children: [jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-col", children: [title && jsxRuntime.jsx(Text, Object.assign({ type: "lg-strong", className: "ui:flex ui:h-13 ui:flex-row ui:items-center ui:border-b" }, typeof title === "object" ? title : { text: title })), content] }), jsxRuntime.jsx("div", { className: "ui:absolute ui:-left-2 ui:top-0 ui:-ml-px ui:flex ui:h-13 ui:flex-row ui:items-center", children: jsxRuntime.jsx("span", { className: classNames__default.default("ui:inline-block ui:h-4 ui:w-4 ui:rounded-lg", {
5590
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [isWideStep && jsxRuntime.jsx("div", { className: classNames__default.default(borderClassNames, "ui:h-4 ui:first:h-0") }), jsxRuntime.jsxs("div", { className: containerClassNames, "data-test-id": dataTestId === void 0 ? "" : `timeline-step-${dataTestId}`, ref, children: [jsxRuntime.jsxs("div", { className: "ui:flex ui:flex-col", children: [title && jsxRuntime.jsx(Text, Object.assign({ variant: "lg-strong", className: "ui:flex ui:h-13 ui:flex-row ui:items-center ui:border-b" }, typeof title === "object" ? title : { children: title })), content] }), jsxRuntime.jsx("div", { className: "ui:absolute ui:-left-2 ui:top-0 ui:-ml-px ui:flex ui:h-13 ui:flex-row ui:items-center", children: jsxRuntime.jsx("span", { className: classNames__default.default("ui:inline-block ui:h-4 ui:w-4 ui:rounded-lg", {
6059
5591
  "ui:hidden": ["wide", "withoutDot"].includes(type),
6060
5592
  "ui:bg-primary": "base" === type,
6061
5593
  "ui:border-4 ui:border-primary ui:bg-white": "emptyDot" === type
@@ -6072,7 +5604,7 @@ const TimelineHeader = ({ title, buttons, withBorder = true }) => {
6072
5604
  "ui:justify-end": !title && hasButtons,
6073
5605
  "ui:border-b": withBorder
6074
5606
  });
6075
- return jsxRuntime.jsxs("div", { "data-test-id": "timeline-header", className, children: [title && jsxRuntime.jsx(Title, Object.assign({ variant: "sm" }, typeof title === "object" ? title : { text: title })), hasButtons && jsxRuntime.jsx("div", { className: "ui:flex ui:flex-row ui:space-x-4", children: buttons.map(({ buttonType: ButtonComponent, buttonProps }) => jsxRuntime.jsx(ButtonComponent, Object.assign({}, buttonProps))) })] });
5607
+ return jsxRuntime.jsxs("div", { "data-test-id": "timeline-header", className, children: [title && (typeof title === "string" ? jsxRuntime.jsx(Heading, { variant: "h3", as: "h5", children: title }) : title), hasButtons && jsxRuntime.jsx("div", { className: "ui:flex ui:flex-row ui:space-x-4", children: buttons.map(({ buttonType: ButtonComponent, buttonProps }) => jsxRuntime.jsx(ButtonComponent, Object.assign({}, buttonProps))) })] });
6076
5608
  };
6077
5609
 
6078
5610
  const Timeline = ({ headerProps, steps, loadMoreButtonProps, dataTestId = "timeline", emptyHeroProps }) => {
@@ -6147,16 +5679,16 @@ UnorderedList.Item = Item$1;
6147
5679
  UnorderedList.Padding = Padding;
6148
5680
  UnorderedList.Indent = Indent;
6149
5681
 
6150
- const FullPageModalHeader = ({ primaryButtonProps, actions, title }) => {
6151
- return jsxRuntime.jsxs("div", { className: "ui:flex ui:h-19 ui:flex-row ui:items-center ui:justify-between ui:bg-white ui:px-6", children: [jsxRuntime.jsx(PageTitle, { children: title }), primaryButtonProps && !actions && jsxRuntime.jsx(PrimaryButton, Object.assign({ "data-test-id": "modal-primary-button" }, primaryButtonProps)), actions && jsxRuntime.jsx("div", { children: actions })] });
5682
+ const FullPageModalHeader = ({ actions, title }) => {
5683
+ return jsxRuntime.jsxs("div", { className: "ui:flex ui:h-19 ui:flex-row ui:items-center ui:justify-between ui:bg-white ui:px-6", children: [jsxRuntime.jsx(PageTitle, { children: title }), actions && jsxRuntime.jsx("div", { children: actions })] });
6152
5684
  };
6153
5685
 
6154
5686
  const FullPageModalActions = (props) => {
6155
5687
  return jsxRuntime.jsx("div", { className: "ui:flex ui:flex-row ui:flex-wrap ui:justify-end ui:gap-3", children: props.children });
6156
5688
  };
6157
5689
 
6158
- const FullPageModal = ({ children, dataTestId, isOpen = false, onCloseClick, primaryButtonProps, actions, title }) => {
6159
- return jsxRuntime.jsx(ReactModal__default.default, { isOpen, contentLabel: title, overlayClassName: "ui:fixed ui:inset-0 ui:overflow-x-hidden ui:overflow-y-auto ui:z-20", onRequestClose: onCloseClick, shouldFocusAfterRender: false, className: "ui:h-full ui:w-full", data: { "test-id": dataTestId !== null && dataTestId !== void 0 ? dataTestId : "react-modal" }, children: jsxRuntime.jsxs("div", { className: "ui:flex ui:h-full ui:w-full ui:flex-col ui:bg-slate-100", children: [jsxRuntime.jsx(FullPageModalHeader, { title, primaryButtonProps, actions }), jsxRuntime.jsx("div", { className: "ui:flex ui:h-full ui:flex-row ui:overflow-hidden", children })] }) });
5690
+ const FullPageModal = ({ children, dataTestId, isOpen = false, onCloseClick, actions, title }) => {
5691
+ return jsxRuntime.jsx(ReactModal__default.default, { isOpen, contentLabel: title, overlayClassName: "ui:fixed ui:inset-0 ui:overflow-x-hidden ui:overflow-y-auto ui:z-20", onRequestClose: onCloseClick, shouldFocusAfterRender: false, className: "ui:h-full ui:w-full", data: { "test-id": dataTestId !== null && dataTestId !== void 0 ? dataTestId : "react-modal" }, children: jsxRuntime.jsxs("div", { className: "ui:flex ui:h-full ui:w-full ui:flex-col ui:bg-slate-100", children: [jsxRuntime.jsx(FullPageModalHeader, { title, actions }), jsxRuntime.jsx("div", { className: "ui:flex ui:h-full ui:flex-row ui:overflow-hidden", children })] }) });
6160
5692
  };
6161
5693
  FullPageModal.Actions = FullPageModalActions;
6162
5694
  FullPageModal.setAppElement = ReactModal__default.default.setAppElement;
@@ -6380,6 +5912,15 @@ function SectionTitle(props) {
6380
5912
  return jsxRuntime.jsx(MenuItemPadding, { children: jsxRuntime.jsx(Text, { variant: "strong", children: props.children }) });
6381
5913
  }
6382
5914
 
5915
+ const Dropzone = React.forwardRef((props, ref) => {
5916
+ const { isHighlighted = false, className, children } = props, rest = __rest(props, ["isHighlighted", "className", "children"]);
5917
+ const classes = classNames__default.default("ui:border ui:items-center ui:border-primary", {
5918
+ "ui:bg-surface ui:border-dashed": !isHighlighted,
5919
+ "ui:bg-primary-background ui:border-solid": isHighlighted
5920
+ }, className);
5921
+ return jsxRuntime.jsx("div", Object.assign({ className: classes, ref }, rest, { children }));
5922
+ });
5923
+
6383
5924
  const defaultRemoveFilterOptionLabelGetter = (activeFilter) => `Remove filter ${activeFilter.label}`;
6384
5925
  const ActiveFilters = (props) => {
6385
5926
  var _a;
@@ -6778,17 +6319,16 @@ const LoadingState = () => {
6778
6319
  return jsxRuntime.jsx(Card, { className: classNames__default.default("ui:w-full ui:border ui:border-slate-100"), padding: false, elevation: "surface", children: jsxRuntime.jsx(Box, { children: jsxRuntime.jsxs(Stack, { width: "full", _p: "l", axis: "x", justify: "between", align: "center", children: [jsxRuntime.jsx(Stack, { _gap: "m", width: "full", children: jsxRuntime.jsxs(Stack, { _gap: "l", axis: "x", align: "center", width: "full", children: [jsxRuntime.jsx(Skeleton, { variant: "rounded", width: 24, height: 24 }), jsxRuntime.jsxs(Stack, { width: "full", children: [jsxRuntime.jsx("div", { className: "ui:font-bold ui:leading-inherit ui:antialiased ui:text-slate-800 title-inter ui:text-base", children: jsxRuntime.jsx(Skeleton, { width: 120 }) }), jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", children: jsxRuntime.jsx(Skeleton, { width: 100 }) })] })] }) }), jsxRuntime.jsx(Skeleton, { variant: "rounded", width: 24, height: 24 })] }) }) });
6779
6320
  };
6780
6321
 
6781
- const TimelineCard = ({ title, subtitle, icon, leadingIcon, trailingIcon, statusText, state = "default", variant, disabled = false, isLoading = false, onClick }) => {
6782
- const presentation = variant !== null && variant !== void 0 ? variant : state;
6322
+ const TimelineCard = ({ title, subtitle, leadingIcon, trailingIcon, statusText, variant = "default", disabled = false, isLoading = false, onClick }) => {
6783
6323
  const getTitle = () => {
6784
6324
  return typeof title === "string" ? jsxRuntime.jsx(Text, { variant: "base", color: "slate-500", children: title }) : title;
6785
6325
  };
6786
6326
  return jsxRuntime.jsxs(Stack, { axis: "x", width: "full", align: "center", children: [isLoading ? jsxRuntime.jsx(LoadingState, {}) : jsxRuntime.jsx(Card, { as: onClick ? "button" : "div", className: classNames__default.default("ui:w-full ui:border ui:border-slate-100", {
6787
6327
  "ui:text-start ui:hover:border-slate-200 ui:focus:border-blue-800 ui:focus:outline-primary": onClick
6788
- }), padding: false, elevation: presentation === "highlighted" ? "medium" : "surface", onClick, disabled, children: jsxRuntime.jsx(Box, { className: classNames__default.default({
6789
- ["ui:border-l-8 ui:border-primary"]: presentation === "highlighted"
6790
- }), children: jsxRuntime.jsxs(Stack, { width: "full", _p: "l", axis: "x", justify: "between", align: "center", children: [jsxRuntime.jsxs(Stack, { _gap: "m", children: [statusText && jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", children: statusText }), jsxRuntime.jsxs(Stack, { _gap: "l", axis: "x", align: "center", children: [(icon === null || icon === void 0 ? void 0 : icon.url) && jsxRuntime.jsx("img", { className: "ui:shrink-0", width: 24, height: 24, src: icon.url, alt: "" }), (icon === null || icon === void 0 ? void 0 : icon.iconKey) && jsxRuntime.jsx(Icon, { className: "ui:shrink-0", name: icon.iconKey }), leadingIcon, jsxRuntime.jsxs(Stack, { width: "full", children: [(presentation === "bold" || presentation === "highlighted") && jsxRuntime.jsx(Title, { variant: "xs", children: title }), presentation === "default" && getTitle(), typeof subtitle === "string" ? jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", children: subtitle }) : subtitle] })] })] }), trailingIcon] }) }) }), jsxRuntime.jsx("svg", { role: "presentation", width: "17", height: "27", viewBox: "0 0 17 27", fill: "none", className: classNames__default.default("ui:translate-x-[-1.5px]", {
6791
- ["ui:invisible"]: presentation !== "highlighted"
6328
+ }), padding: false, elevation: variant === "highlighted" ? "medium" : "surface", onClick, disabled, children: jsxRuntime.jsx(Box, { className: classNames__default.default({
6329
+ ["ui:border-l-8 ui:border-primary"]: variant === "highlighted"
6330
+ }), children: jsxRuntime.jsxs(Stack, { width: "full", _p: "l", axis: "x", justify: "between", align: "center", children: [jsxRuntime.jsxs(Stack, { _gap: "m", children: [statusText && jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", children: statusText }), jsxRuntime.jsxs(Stack, { _gap: "l", axis: "x", align: "center", children: [leadingIcon, jsxRuntime.jsxs(Stack, { width: "full", children: [(variant === "bold" || variant === "highlighted") && jsxRuntime.jsx(Heading, { variant: "h4", as: "h4", children: title }), variant === "default" && getTitle(), typeof subtitle === "string" ? jsxRuntime.jsx(Text, { variant: "sm", color: "slate-500", children: subtitle }) : subtitle] })] })] }), trailingIcon] }) }) }), jsxRuntime.jsx("svg", { role: "presentation", width: "17", height: "27", viewBox: "0 0 17 27", fill: "none", className: classNames__default.default("ui:translate-x-[-1.5px]", {
6331
+ ["ui:invisible"]: variant !== "highlighted"
6792
6332
  }), children: jsxRuntime.jsx("path", { d: "M0.5 0.5L16 13L0.5 26", stroke: "rgb(226 232 240)", fill: "#fff" }) })] });
6793
6333
  };
6794
6334
 
@@ -7215,7 +6755,7 @@ const RangeCoverageComponent = (_a) => {
7215
6755
  ]));
7216
6756
  const segments = calculateSegments({ sections, start, end });
7217
6757
  const highlightPosition = highlightedRange ? calculateHighlightPosition({ highlightedRange, start, end }) : null;
7218
- return jsxRuntime.jsx(Box, Object.assign({ className }, rest, { children: jsxRuntime.jsxs(Stack, { _gap: "m", width: "full", align: "stretch", children: [jsxRuntime.jsxs(Stack, { justify: "between", axis: "x", align: "center", children: [jsxRuntime.jsx(Title, { variant: "xs", level: "3", "aria-hidden": title ? void 0 : true, children: title }), legendSwatches && (legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.length) > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "l", children: jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", align: "center", children: legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.map((swatch) => {
6758
+ return jsxRuntime.jsx(Box, Object.assign({ className }, rest, { children: jsxRuntime.jsxs(Stack, { _gap: "m", width: "full", align: "stretch", children: [jsxRuntime.jsxs(Stack, { justify: "between", axis: "x", align: "center", children: [jsxRuntime.jsx(Heading, { variant: "h4", as: "h3", "aria-hidden": title ? void 0 : true, children: title }), legendSwatches && (legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.length) > 0 && jsxRuntime.jsx(Stack, { axis: "x", _gap: "l", children: jsxRuntime.jsx(Stack, { axis: "x", _gap: "base", align: "center", children: legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.map((swatch) => {
7219
6759
  const background = isColorTuple(swatch.color) ? createStripedPattern({
7220
6760
  colorA: swatch.color[0],
7221
6761
  colorB: swatch.color[1],
@@ -7649,7 +7189,6 @@ Object.defineProperty(exports, "TooltipProvider", {
7649
7189
  get: function () { return Tooltip$1.Provider; }
7650
7190
  });
7651
7191
  exports.AbsentIcon = AbsentIcon;
7652
- exports.AccordionList = AccordionList;
7653
7192
  exports.AccordionTemporary = Accordion;
7654
7193
  exports.ActionBloodPressureColoredIcon = ActionBloodPressureColoredIcon;
7655
7194
  exports.ActionCalculationColoredIcon = ActionCalculationColoredIcon;
@@ -7706,7 +7245,6 @@ exports.ChatBubbleWithTextIcon = ChatBubbleWithTextIcon;
7706
7245
  exports.CheckCircleFilledIcon = CheckCircleFilledIcon;
7707
7246
  exports.CheckFilledColoredIcon = CheckFilledColoredIcon;
7708
7247
  exports.CheckIcon = CheckIcon;
7709
- exports.Checkbox = Checkbox;
7710
7248
  exports.CheckboxList = CheckboxList;
7711
7249
  exports.ChevronDoubleIcon = ChevronDoubleIcon;
7712
7250
  exports.ChevronDownIcon = ChevronDownIcon;
@@ -7741,7 +7279,6 @@ exports.EarthIcon = EarthIcon;
7741
7279
  exports.EmailIcon = EmailIcon;
7742
7280
  exports.EmojiIcon = EmojiIcon;
7743
7281
  exports.EmptyIcon = EmptyIcon;
7744
- exports.EmptyListMessage = EmptyListMessage;
7745
7282
  exports.ExclamationMarkIcon = ExclamationMarkIcon;
7746
7283
  exports.ExportIcon = ExportIcon;
7747
7284
  exports.ExternalLinkIcon = ExternalLinkIcon;
@@ -7813,10 +7350,8 @@ exports.LightBulbIcon = LightBulbIcon;
7813
7350
  exports.Line = Line;
7814
7351
  exports.Link = Link;
7815
7352
  exports.LinkIcon = LinkIcon;
7816
- exports.List = List;
7817
7353
  exports.ListDescIcon = ListDescIcon;
7818
7354
  exports.ListIcon = ListIcon;
7819
- exports.ListItem = ListItem;
7820
7355
  exports.LoadingIndicator = LoadingIndicator;
7821
7356
  exports.LocaleProvider = LocaleProvider;
7822
7357
  exports.LockIcon = LockIcon;
@@ -7858,15 +7393,12 @@ exports.PrimaryIconButton = PrimaryIconButton;
7858
7393
  exports.PrimaryTabBar = PrimaryTabBar;
7859
7394
  exports.PrinterIcon = PrinterIcon;
7860
7395
  exports.QuestionFilledIcon = QuestionFilledIcon;
7861
- exports.RadioGroupV2 = RadioGroupV2;
7862
- exports.RadioV2 = RadioV2;
7863
7396
  exports.RangeCoverage = RangeCoverage;
7864
7397
  exports.RedAlertColoredIcon = RedAlertColoredIcon;
7865
7398
  exports.RedAlertIcon = RedAlertIcon;
7866
7399
  exports.RefreshIcon = RefreshIcon;
7867
7400
  exports.RobotIcon = RobotIcon;
7868
7401
  exports.RocketIcon = RocketIcon;
7869
- exports.SIZES = SIZES;
7870
7402
  exports.SearchIcon = SearchIcon;
7871
7403
  exports.SearchInput = SearchInput;
7872
7404
  exports.SecondaryButton = SecondaryButton;
@@ -7924,13 +7456,11 @@ exports.TertiaryButton = TertiaryButton;
7924
7456
  exports.TertiaryIconButton = TertiaryIconButton;
7925
7457
  exports.Text = Text;
7926
7458
  exports.TextEditor = TextEditor;
7927
- exports.TextLink = TextLink;
7928
7459
  exports.Textarea = Textarea;
7929
7460
  exports.ThresholdIcon = ThresholdIcon;
7930
7461
  exports.Timeline = Timeline;
7931
7462
  exports.TimelineCard = TimelineCard;
7932
7463
  exports.TimelineCardLayout = TimelineCardLayout;
7933
- exports.Title = Title;
7934
7464
  exports.Toaster = Toaster;
7935
7465
  exports.Tooltip = Tooltip;
7936
7466
  exports.TrashBinIcon = TrashBinIcon;
@@ -7947,7 +7477,6 @@ exports.VideoIcon = VideoIcon;
7947
7477
  exports.WandIcon = WandIcon;
7948
7478
  exports.WeekdaysPicker = WeekdaysPicker;
7949
7479
  exports.WorkflowIcon = WorkflowIcon;
7950
- exports.getDndListItemProps = getDndListItemProps;
7951
7480
  exports.prepareClientSidePagination = prepareClientSidePagination;
7952
7481
  exports.toast = toast;
7953
7482
  //# sourceMappingURL=index.development.js.map