@ultraviolet/ui 3.11.0 → 3.12.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 (845) hide show
  1. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.js +19 -0
  2. package/dist/_virtual/{_@oxc-project_runtime@0.114.0 → _@oxc-project_runtime@0.115.0}/helpers/objectSpread2.js +8 -4
  3. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutProperties.js +22 -0
  4. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js +17 -0
  5. package/dist/_virtual/{_@oxc-project_runtime@0.114.0 → _@oxc-project_runtime@0.115.0}/helpers/toPrimitive.js +8 -4
  6. package/dist/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.js +17 -0
  7. package/dist/_virtual/{_@oxc-project_runtime@0.114.0 → _@oxc-project_runtime@0.115.0}/helpers/typeof.js +5 -3
  8. package/dist/_virtual/_rolldown/runtime.js +2 -1
  9. package/dist/components/ActionBar/index.js +24 -24
  10. package/dist/components/ActionBar/styles.css.d.ts +4 -2
  11. package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
  12. package/dist/components/ActionBar/styles.css.js +15 -6
  13. package/dist/components/ActionBar/styles.css.ts.vanilla.js +8 -0
  14. package/dist/components/Alert/index.d.ts.map +1 -1
  15. package/dist/components/Alert/index.js +85 -80
  16. package/dist/components/Alert/styles.css.d.ts +46 -6
  17. package/dist/components/Alert/styles.css.d.ts.map +1 -1
  18. package/dist/components/Alert/styles.css.js +37 -29
  19. package/dist/components/Alert/styles.css.ts.vanilla.js +8 -0
  20. package/dist/components/Avatar/constants.js +18 -14
  21. package/dist/components/Avatar/index.d.ts.map +1 -1
  22. package/dist/components/Avatar/index.js +87 -81
  23. package/dist/components/Avatar/styles.css.d.ts +117 -115
  24. package/dist/components/Avatar/styles.css.d.ts.map +1 -1
  25. package/dist/components/Avatar/styles.css.js +169 -159
  26. package/dist/components/Avatar/styles.css.ts.vanilla.js +8 -0
  27. package/dist/components/Avatar/variables.css.js +9 -5
  28. package/dist/components/Avatar/variables.css.ts.vanilla.js +8 -0
  29. package/dist/components/Badge/constant.js +13 -7
  30. package/dist/components/Badge/index.js +35 -31
  31. package/dist/components/Badge/styles.css.d.ts +46 -1
  32. package/dist/components/Badge/styles.css.d.ts.map +1 -1
  33. package/dist/components/Badge/styles.css.js +109 -103
  34. package/dist/components/Badge/styles.css.ts.vanilla.js +8 -0
  35. package/dist/components/Banner/assets/default-image-small.js +8 -2
  36. package/dist/components/Banner/assets/default-image.js +8 -2
  37. package/dist/components/Banner/index.js +115 -107
  38. package/dist/components/Banner/styles.css.d.ts +20 -3
  39. package/dist/components/Banner/styles.css.d.ts.map +1 -1
  40. package/dist/components/Banner/styles.css.js +48 -40
  41. package/dist/components/Banner/styles.css.ts.vanilla.js +8 -0
  42. package/dist/components/BarChart/Tooltip.d.ts.map +1 -1
  43. package/dist/components/BarChart/Tooltip.js +27 -21
  44. package/dist/components/BarChart/index.js +61 -58
  45. package/dist/components/BarChart/styles.css.d.ts +4 -2
  46. package/dist/components/BarChart/styles.css.d.ts.map +1 -1
  47. package/dist/components/BarChart/styles.css.js +13 -5
  48. package/dist/components/BarChart/styles.css.ts.vanilla.js +8 -0
  49. package/dist/components/BarStack/index.d.ts.map +1 -1
  50. package/dist/components/BarStack/index.js +99 -93
  51. package/dist/components/BarStack/styles.css.d.ts +48 -45
  52. package/dist/components/BarStack/styles.css.d.ts.map +1 -1
  53. package/dist/components/BarStack/styles.css.js +40 -30
  54. package/dist/components/BarStack/styles.css.ts.vanilla.js +8 -0
  55. package/dist/components/Breadcrumbs/components/Item.d.ts.map +1 -1
  56. package/dist/components/Breadcrumbs/components/Item.js +58 -48
  57. package/dist/components/Breadcrumbs/components/styles.css.d.ts +4 -4
  58. package/dist/components/Breadcrumbs/components/styles.css.d.ts.map +1 -1
  59. package/dist/components/Breadcrumbs/components/styles.css.js +15 -13
  60. package/dist/components/Breadcrumbs/components/styles.css.ts.vanilla.js +8 -0
  61. package/dist/components/Breadcrumbs/index.js +20 -17
  62. package/dist/components/Breadcrumbs/styles.css.d.ts +14 -1
  63. package/dist/components/Breadcrumbs/styles.css.d.ts.map +1 -1
  64. package/dist/components/Breadcrumbs/styles.css.js +24 -3
  65. package/dist/components/Breadcrumbs/styles.css.ts.vanilla.js +8 -0
  66. package/dist/components/Bullet/index.js +25 -22
  67. package/dist/components/Bullet/styles.css.d.ts +23 -21
  68. package/dist/components/Bullet/styles.css.d.ts.map +1 -1
  69. package/dist/components/Bullet/styles.css.js +107 -101
  70. package/dist/components/Bullet/styles.css.ts.vanilla.js +8 -0
  71. package/dist/components/Button/constants.js +13 -7
  72. package/dist/components/Button/index.js +115 -113
  73. package/dist/components/Button/styles.css.d.ts +84 -1
  74. package/dist/components/Button/styles.css.d.ts.map +1 -1
  75. package/dist/components/Button/styles.css.js +156 -150
  76. package/dist/components/Button/styles.css.ts.vanilla.js +8 -0
  77. package/dist/components/Card/index.js +48 -44
  78. package/dist/components/Card/styles.css.d.ts +4 -2
  79. package/dist/components/Card/styles.css.d.ts.map +1 -1
  80. package/dist/components/Card/styles.css.js +12 -4
  81. package/dist/components/Card/styles.css.ts.vanilla.js +8 -0
  82. package/dist/components/Carousel/index.d.ts.map +1 -1
  83. package/dist/components/Carousel/index.js +100 -97
  84. package/dist/components/Carousel/styles.css.d.ts +7 -5
  85. package/dist/components/Carousel/styles.css.d.ts.map +1 -1
  86. package/dist/components/Carousel/styles.css.js +16 -8
  87. package/dist/components/Carousel/styles.css.ts.vanilla.js +8 -0
  88. package/dist/components/Checkbox/CheckboxIconContainer.js +37 -31
  89. package/dist/components/Checkbox/index.d.ts.map +1 -1
  90. package/dist/components/Checkbox/index.js +105 -99
  91. package/dist/components/Checkbox/styles.css.d.ts +10 -8
  92. package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
  93. package/dist/components/Checkbox/styles.css.js +37 -22
  94. package/dist/components/Checkbox/styles.css.ts.vanilla.js +8 -0
  95. package/dist/components/CheckboxGroup/index.js +107 -101
  96. package/dist/components/CheckboxGroup/styles.css.d.ts +4 -2
  97. package/dist/components/CheckboxGroup/styles.css.d.ts.map +1 -1
  98. package/dist/components/CheckboxGroup/styles.css.js +12 -4
  99. package/dist/components/CheckboxGroup/styles.css.ts.vanilla.js +8 -0
  100. package/dist/components/Chip/ChipContext.js +7 -2
  101. package/dist/components/Chip/ChipIcon.d.ts +3 -5
  102. package/dist/components/Chip/ChipIcon.d.ts.map +1 -1
  103. package/dist/components/Chip/ChipIcon.js +39 -45
  104. package/dist/components/Chip/index.d.ts +2 -2
  105. package/dist/components/Chip/index.js +73 -67
  106. package/dist/components/Chip/styles.css.d.ts +4 -2
  107. package/dist/components/Chip/styles.css.d.ts.map +1 -1
  108. package/dist/components/Chip/styles.css.js +12 -4
  109. package/dist/components/Chip/styles.css.ts.vanilla.js +8 -0
  110. package/dist/components/CopyButton/index.js +29 -27
  111. package/dist/components/DateInput/Context.js +23 -19
  112. package/dist/components/DateInput/components/CalendarContent.js +79 -67
  113. package/dist/components/DateInput/components/CalendarDaily.js +151 -139
  114. package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
  115. package/dist/components/DateInput/components/CalendarMonthly.js +93 -84
  116. package/dist/components/DateInput/components/Popup.js +42 -35
  117. package/dist/components/DateInput/components/styles.css.d.ts +0 -1
  118. package/dist/components/DateInput/components/styles.css.d.ts.map +1 -1
  119. package/dist/components/DateInput/components/styles.css.ts.vanilla.js +8 -0
  120. package/dist/components/DateInput/constants.js +8 -2
  121. package/dist/components/DateInput/helpers.js +59 -55
  122. package/dist/components/DateInput/helpersLocale.js +55 -51
  123. package/dist/components/DateInput/index.d.ts.map +1 -1
  124. package/dist/components/DateInput/index.js +243 -232
  125. package/dist/components/DateInput/styles.css.d.ts +13 -7
  126. package/dist/components/DateInput/styles.css.d.ts.map +1 -1
  127. package/dist/components/DateInput/styles.css.js +22 -8
  128. package/dist/components/DateInput/styles.css.ts.vanilla.js +8 -0
  129. package/dist/components/Dialog/Context.js +12 -8
  130. package/dist/components/Dialog/components/Button.js +20 -14
  131. package/dist/components/Dialog/components/Buttons.js +13 -8
  132. package/dist/components/Dialog/components/CancelButton.js +15 -10
  133. package/dist/components/Dialog/components/Stack.js +12 -7
  134. package/dist/components/Dialog/components/Text.js +14 -9
  135. package/dist/components/Dialog/index.js +70 -59
  136. package/dist/components/Dialog/styles.css.d.ts +4 -2
  137. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  138. package/dist/components/Dialog/styles.css.js +12 -4
  139. package/dist/components/Dialog/styles.css.ts.vanilla.js +8 -0
  140. package/dist/components/Drawer/DrawerContent.js +11 -6
  141. package/dist/components/Drawer/index.d.ts.map +1 -1
  142. package/dist/components/Drawer/index.js +109 -99
  143. package/dist/components/Drawer/styles.css.d.ts +11 -9
  144. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  145. package/dist/components/Drawer/styles.css.js +23 -15
  146. package/dist/components/Drawer/styles.css.ts.vanilla.js +8 -0
  147. package/dist/components/EmptyState/index.js +78 -73
  148. package/dist/components/EmptyState/styles.css.d.ts +22 -20
  149. package/dist/components/EmptyState/styles.css.d.ts.map +1 -1
  150. package/dist/components/EmptyState/styles.css.js +30 -22
  151. package/dist/components/EmptyState/styles.css.ts.vanilla.js +8 -0
  152. package/dist/components/Expandable/index.js +110 -109
  153. package/dist/components/Expandable/styles.css.d.ts +3 -1
  154. package/dist/components/Expandable/styles.css.d.ts.map +1 -1
  155. package/dist/components/Expandable/styles.css.js +10 -4
  156. package/dist/components/Expandable/styles.css.ts.vanilla.js +8 -0
  157. package/dist/components/ExpandableCard/components/Title.js +15 -10
  158. package/dist/components/ExpandableCard/index.d.ts.map +1 -1
  159. package/dist/components/ExpandableCard/index.js +148 -140
  160. package/dist/components/ExpandableCard/styles.css.d.ts +9 -7
  161. package/dist/components/ExpandableCard/styles.css.d.ts.map +1 -1
  162. package/dist/components/ExpandableCard/styles.css.js +17 -9
  163. package/dist/components/ExpandableCard/styles.css.ts.vanilla.js +8 -0
  164. package/dist/components/FileInput/FileInputProvider.js +12 -8
  165. package/dist/components/FileInput/components/Button.js +29 -21
  166. package/dist/components/FileInput/components/List.d.ts.map +1 -1
  167. package/dist/components/FileInput/components/List.js +138 -127
  168. package/dist/components/FileInput/helpers.js +37 -33
  169. package/dist/components/FileInput/index.js +232 -224
  170. package/dist/components/FileInput/styles.css.d.ts +29 -27
  171. package/dist/components/FileInput/styles.css.d.ts.map +1 -1
  172. package/dist/components/FileInput/styles.css.js +58 -49
  173. package/dist/components/FileInput/styles.css.ts.vanilla.js +8 -0
  174. package/dist/components/GlobalAlert/GlobalAlertLink.js +27 -22
  175. package/dist/components/GlobalAlert/index.js +54 -49
  176. package/dist/components/GlobalAlert/styles.css.d.ts +4 -2
  177. package/dist/components/GlobalAlert/styles.css.d.ts.map +1 -1
  178. package/dist/components/GlobalAlert/styles.css.js +16 -8
  179. package/dist/components/GlobalAlert/styles.css.ts.vanilla.js +8 -0
  180. package/dist/components/InfiniteScroll/index.js +72 -71
  181. package/dist/components/Key/constants.js +15 -9
  182. package/dist/components/Key/index.js +44 -40
  183. package/dist/components/Key/styles.css.d.ts +27 -25
  184. package/dist/components/Key/styles.css.d.ts.map +1 -1
  185. package/dist/components/Key/styles.css.js +57 -51
  186. package/dist/components/Key/styles.css.ts.vanilla.js +8 -0
  187. package/dist/components/Label/index.js +69 -65
  188. package/dist/components/Label/styles.css.d.ts +3 -1
  189. package/dist/components/Label/styles.css.d.ts.map +1 -1
  190. package/dist/components/Label/styles.css.js +13 -7
  191. package/dist/components/Label/styles.css.ts.vanilla.js +8 -0
  192. package/dist/components/LineChart/CustomLegend.d.ts.map +1 -1
  193. package/dist/components/LineChart/CustomLegend.js +100 -91
  194. package/dist/components/LineChart/Tooltip.js +28 -22
  195. package/dist/components/LineChart/helpers.js +36 -32
  196. package/dist/components/LineChart/index.js +99 -94
  197. package/dist/components/LineChart/styles.css.d.ts +14 -12
  198. package/dist/components/LineChart/styles.css.d.ts.map +1 -1
  199. package/dist/components/LineChart/styles.css.js +24 -16
  200. package/dist/components/LineChart/styles.css.ts.vanilla.js +8 -0
  201. package/dist/components/Link/index.d.ts.map +1 -1
  202. package/dist/components/Link/index.js +89 -86
  203. package/dist/components/Link/styles.css.d.ts +71 -69
  204. package/dist/components/Link/styles.css.d.ts.map +1 -1
  205. package/dist/components/Link/styles.css.js +82 -74
  206. package/dist/components/Link/styles.css.ts.vanilla.js +8 -0
  207. package/dist/components/List/Cell.js +41 -32
  208. package/dist/components/List/ColumnProvider.d.ts.map +1 -1
  209. package/dist/components/List/ColumnProvider.js +23 -12
  210. package/dist/components/List/HeaderCell.js +60 -52
  211. package/dist/components/List/HeaderRow.d.ts.map +1 -1
  212. package/dist/components/List/HeaderRow.js +39 -31
  213. package/dist/components/List/ListContext.js +209 -202
  214. package/dist/components/List/Row.d.ts.map +1 -1
  215. package/dist/components/List/Row.js +153 -141
  216. package/dist/components/List/SelectBar.js +34 -27
  217. package/dist/components/List/SkeletonRows.d.ts.map +1 -1
  218. package/dist/components/List/SkeletonRows.js +35 -26
  219. package/dist/components/List/index.d.ts.map +1 -1
  220. package/dist/components/List/index.js +71 -59
  221. package/dist/components/List/styles.css.d.ts +27 -25
  222. package/dist/components/List/styles.css.d.ts.map +1 -1
  223. package/dist/components/List/styles.css.js +48 -41
  224. package/dist/components/List/styles.css.ts.vanilla.js +8 -0
  225. package/dist/components/List/variables.css.js +18 -12
  226. package/dist/components/List/variables.css.ts.vanilla.js +8 -0
  227. package/dist/components/Loader/constants.js +15 -9
  228. package/dist/components/Loader/index.js +56 -52
  229. package/dist/components/Loader/styles.css.d.ts +5 -3
  230. package/dist/components/Loader/styles.css.d.ts.map +1 -1
  231. package/dist/components/Loader/styles.css.js +13 -5
  232. package/dist/components/Loader/styles.css.ts.vanilla.js +8 -0
  233. package/dist/components/Menu/MenuContent.d.ts.map +1 -1
  234. package/dist/components/Menu/MenuContent.js +193 -183
  235. package/dist/components/Menu/MenuProvider.js +45 -41
  236. package/dist/components/Menu/components/Group.js +31 -24
  237. package/dist/components/Menu/components/Item.js +150 -141
  238. package/dist/components/Menu/helpers.js +31 -30
  239. package/dist/components/Menu/index.js +36 -26
  240. package/dist/components/Menu/styles.css.d.ts +40 -38
  241. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  242. package/dist/components/Menu/styles.css.js +80 -72
  243. package/dist/components/Menu/styles.css.ts.vanilla.js +8 -0
  244. package/dist/components/Meter/index.js +52 -49
  245. package/dist/components/Meter/styles.css.d.ts +5 -3
  246. package/dist/components/Meter/styles.css.d.ts.map +1 -1
  247. package/dist/components/Meter/styles.css.js +14 -6
  248. package/dist/components/Meter/styles.css.ts.vanilla.js +8 -0
  249. package/dist/components/Modal/ModalContent.js +47 -40
  250. package/dist/components/Modal/ModalProvider.js +42 -38
  251. package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
  252. package/dist/components/Modal/components/Dialog.js +165 -157
  253. package/dist/components/Modal/components/Disclosure.js +39 -35
  254. package/dist/components/Modal/index.js +89 -86
  255. package/dist/components/Modal/styles.css.d.ts +72 -70
  256. package/dist/components/Modal/styles.css.d.ts.map +1 -1
  257. package/dist/components/Modal/styles.css.js +86 -73
  258. package/dist/components/Modal/styles.css.ts.vanilla.js +8 -0
  259. package/dist/components/Notice/index.js +22 -19
  260. package/dist/components/Notice/styles.css.d.ts +3 -1
  261. package/dist/components/Notice/styles.css.d.ts.map +1 -1
  262. package/dist/components/Notice/styles.css.js +9 -3
  263. package/dist/components/Notice/styles.css.ts.vanilla.js +8 -0
  264. package/dist/components/Notification/Notification.js +39 -31
  265. package/dist/components/Notification/NotificationContainer.js +21 -16
  266. package/dist/components/Notification/index.js +10 -0
  267. package/dist/components/Notification/styles.css.d.ts +3 -1
  268. package/dist/components/Notification/styles.css.d.ts.map +1 -1
  269. package/dist/components/Notification/styles.css.js +9 -3
  270. package/dist/components/Notification/styles.css.ts.vanilla.js +8 -0
  271. package/dist/components/NumberInput/index.d.ts.map +1 -1
  272. package/dist/components/NumberInput/index.js +202 -194
  273. package/dist/components/NumberInput/styles.css.d.ts +105 -95
  274. package/dist/components/NumberInput/styles.css.d.ts.map +1 -1
  275. package/dist/components/NumberInput/styles.css.js +82 -69
  276. package/dist/components/NumberInput/styles.css.ts.vanilla.js +8 -0
  277. package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
  278. package/dist/components/Pagination/PaginationButtons.js +96 -87
  279. package/dist/components/Pagination/PerPage.js +72 -65
  280. package/dist/components/Pagination/getPageNumbers.js +20 -23
  281. package/dist/components/Pagination/index.js +48 -45
  282. package/dist/components/Pagination/styles.css.d.ts +5 -3
  283. package/dist/components/Pagination/styles.css.d.ts.map +1 -1
  284. package/dist/components/Pagination/styles.css.js +19 -11
  285. package/dist/components/Pagination/styles.css.ts.vanilla.js +8 -0
  286. package/dist/components/PasswordCheck/index.js +35 -32
  287. package/dist/components/PasswordCheck/styles.css.d.ts +3 -1
  288. package/dist/components/PasswordCheck/styles.css.d.ts.map +1 -1
  289. package/dist/components/PasswordCheck/styles.css.js +9 -3
  290. package/dist/components/PasswordCheck/styles.css.ts.vanilla.js +8 -0
  291. package/dist/components/PieChart/Legends.d.ts.map +1 -1
  292. package/dist/components/PieChart/Legends.js +56 -49
  293. package/dist/components/PieChart/Tooltip.js +47 -41
  294. package/dist/components/PieChart/index.d.ts.map +1 -1
  295. package/dist/components/PieChart/index.js +98 -93
  296. package/dist/components/PieChart/styles.css.d.ts +45 -43
  297. package/dist/components/PieChart/styles.css.d.ts.map +1 -1
  298. package/dist/components/PieChart/styles.css.js +57 -49
  299. package/dist/components/PieChart/styles.css.ts.vanilla.js +8 -0
  300. package/dist/components/Popover/index.js +88 -82
  301. package/dist/components/Popover/styles.css.d.ts +31 -29
  302. package/dist/components/Popover/styles.css.d.ts.map +1 -1
  303. package/dist/components/Popover/styles.css.js +26 -18
  304. package/dist/components/Popover/styles.css.ts.vanilla.js +8 -0
  305. package/dist/components/Popup/helpers.js +235 -251
  306. package/dist/components/Popup/index.d.ts.map +1 -1
  307. package/dist/components/Popup/index.js +325 -322
  308. package/dist/components/Popup/styles.css.d.ts +40 -38
  309. package/dist/components/Popup/styles.css.d.ts.map +1 -1
  310. package/dist/components/Popup/styles.css.js +42 -33
  311. package/dist/components/Popup/styles.css.ts.vanilla.js +8 -0
  312. package/dist/components/Popup/variables.css.js +15 -9
  313. package/dist/components/Popup/variables.css.ts.vanilla.js +8 -0
  314. package/dist/components/ProgressBar/index.d.ts.map +1 -1
  315. package/dist/components/ProgressBar/index.js +76 -70
  316. package/dist/components/ProgressBar/styles.css.d.ts +6 -4
  317. package/dist/components/ProgressBar/styles.css.d.ts.map +1 -1
  318. package/dist/components/ProgressBar/styles.css.js +26 -17
  319. package/dist/components/ProgressBar/styles.css.ts.vanilla.js +8 -0
  320. package/dist/components/ProgressBar/variables.css.js +8 -2
  321. package/dist/components/ProgressBar/variables.css.ts.vanilla.js +8 -0
  322. package/dist/components/Radio/index.d.ts.map +1 -1
  323. package/dist/components/Radio/index.js +96 -91
  324. package/dist/components/Radio/styles.css.d.ts +12 -10
  325. package/dist/components/Radio/styles.css.d.ts.map +1 -1
  326. package/dist/components/Radio/styles.css.js +26 -16
  327. package/dist/components/Radio/styles.css.ts.vanilla.js +8 -0
  328. package/dist/components/RadioGroup/index.js +104 -98
  329. package/dist/components/RadioGroup/styles.css.d.ts +3 -1
  330. package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
  331. package/dist/components/RadioGroup/styles.css.js +9 -3
  332. package/dist/components/RadioGroup/styles.css.ts.vanilla.js +8 -0
  333. package/dist/components/Row/index.js +23 -19
  334. package/dist/components/Row/styles.css.d.ts +3 -1
  335. package/dist/components/Row/styles.css.d.ts.map +1 -1
  336. package/dist/components/Row/styles.css.js +491 -485
  337. package/dist/components/Row/styles.css.ts.vanilla.js +8 -0
  338. package/dist/components/Row/variables.css.js +24 -18
  339. package/dist/components/Row/variables.css.ts.vanilla.js +8 -0
  340. package/dist/components/SearchInput/KeyGroup.d.ts.map +1 -1
  341. package/dist/components/SearchInput/KeyGroup.js +22 -15
  342. package/dist/components/SearchInput/index.js +198 -195
  343. package/dist/components/SearchInput/styles.css.d.ts +5 -3
  344. package/dist/components/SearchInput/styles.css.d.ts.map +1 -1
  345. package/dist/components/SearchInput/styles.css.js +13 -5
  346. package/dist/components/SearchInput/styles.css.ts.vanilla.js +8 -0
  347. package/dist/components/SelectInput/SelectInputProvider.js +165 -161
  348. package/dist/components/SelectInput/components/Dropdown.d.ts.map +1 -1
  349. package/dist/components/SelectInput/components/Dropdown.js +669 -651
  350. package/dist/components/SelectInput/components/DropdownOption.d.ts.map +1 -1
  351. package/dist/components/SelectInput/components/DropdownOption.js +121 -113
  352. package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +1 -1
  353. package/dist/components/SelectInput/components/SearchBarDropdown.js +102 -93
  354. package/dist/components/SelectInput/components/SelectBar.d.ts.map +1 -1
  355. package/dist/components/SelectInput/components/SelectBar.js +289 -274
  356. package/dist/components/SelectInput/components/dropdown.css.js +33 -42
  357. package/dist/components/SelectInput/components/dropdown.css.ts.vanilla.js +8 -0
  358. package/dist/components/SelectInput/components/selectBar.css.d.ts +1 -1
  359. package/dist/components/SelectInput/components/selectBar.css.d.ts.map +1 -1
  360. package/dist/components/SelectInput/components/selectBar.css.js +50 -54
  361. package/dist/components/SelectInput/components/selectBar.css.ts.vanilla.js +8 -0
  362. package/dist/components/SelectInput/constants.js +18 -12
  363. package/dist/components/SelectInput/findOptionInOptions.js +12 -8
  364. package/dist/components/SelectInput/index.js +112 -104
  365. package/dist/components/SelectInput/styles.css.d.ts +164 -2
  366. package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
  367. package/dist/components/SelectInput/styles.css.js +115 -4
  368. package/dist/components/SelectInput/styles.css.ts.vanilla.js +8 -0
  369. package/dist/components/SelectableCard/IllustrationContainer.d.ts +6 -2
  370. package/dist/components/SelectableCard/IllustrationContainer.d.ts.map +1 -1
  371. package/dist/components/SelectableCard/IllustrationContainer.js +43 -55
  372. package/dist/components/SelectableCard/MultiStateInput.js +77 -68
  373. package/dist/components/SelectableCard/SelectableCard.d.ts.map +1 -1
  374. package/dist/components/SelectableCard/SelectableCard.js +113 -106
  375. package/dist/components/SelectableCard/index.js +11 -0
  376. package/dist/components/SelectableCard/styles.css.d.ts +28 -26
  377. package/dist/components/SelectableCard/styles.css.d.ts.map +1 -1
  378. package/dist/components/SelectableCard/styles.css.js +36 -28
  379. package/dist/components/SelectableCard/styles.css.ts.vanilla.js +8 -0
  380. package/dist/components/SelectableCard/types.d.ts +8 -5
  381. package/dist/components/SelectableCard/types.d.ts.map +1 -1
  382. package/dist/components/SelectableCard/variables.css.js +10 -4
  383. package/dist/components/SelectableCard/variables.css.ts.vanilla.js +8 -0
  384. package/dist/components/SelectableCardGroup/index.js +101 -93
  385. package/dist/components/SelectableCardGroup/styles.css.d.ts +3 -1
  386. package/dist/components/SelectableCardGroup/styles.css.d.ts.map +1 -1
  387. package/dist/components/SelectableCardGroup/styles.css.js +9 -3
  388. package/dist/components/SelectableCardGroup/styles.css.ts.vanilla.js +8 -0
  389. package/dist/components/SelectableCardOptionGroup/Provider.js +20 -16
  390. package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.d.ts.map +1 -1
  391. package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +73 -68
  392. package/dist/components/SelectableCardOptionGroup/components/Image.d.ts.map +1 -1
  393. package/dist/components/SelectableCardOptionGroup/components/Image.js +20 -15
  394. package/dist/components/SelectableCardOptionGroup/components/Option.d.ts.map +1 -1
  395. package/dist/components/SelectableCardOptionGroup/components/Option.js +86 -73
  396. package/dist/components/SelectableCardOptionGroup/index.js +9 -0
  397. package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +10 -8
  398. package/dist/components/SelectableCardOptionGroup/styles.css.d.ts.map +1 -1
  399. package/dist/components/SelectableCardOptionGroup/styles.css.js +18 -10
  400. package/dist/components/SelectableCardOptionGroup/styles.css.ts.vanilla.js +8 -0
  401. package/dist/components/Separator/index.d.ts.map +1 -1
  402. package/dist/components/Separator/index.js +44 -42
  403. package/dist/components/Separator/styles.css.d.ts +127 -66
  404. package/dist/components/Separator/styles.css.d.ts.map +1 -1
  405. package/dist/components/Separator/styles.css.js +60 -50
  406. package/dist/components/Separator/styles.css.ts.vanilla.js +8 -0
  407. package/dist/components/Skeleton/Block.js +18 -11
  408. package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
  409. package/dist/components/Skeleton/Blocks.js +21 -12
  410. package/dist/components/Skeleton/BoxWithIcon.d.ts.map +1 -1
  411. package/dist/components/Skeleton/BoxWithIcon.js +21 -12
  412. package/dist/components/Skeleton/Donut.d.ts.map +1 -1
  413. package/dist/components/Skeleton/Donut.js +30 -22
  414. package/dist/components/Skeleton/IconSkeleton.d.ts.map +1 -1
  415. package/dist/components/Skeleton/IconSkeleton.js +9 -4
  416. package/dist/components/Skeleton/Line.d.ts.map +1 -1
  417. package/dist/components/Skeleton/Line.js +20 -13
  418. package/dist/components/Skeleton/List.d.ts.map +1 -1
  419. package/dist/components/Skeleton/List.js +20 -14
  420. package/dist/components/Skeleton/Slider.d.ts.map +1 -1
  421. package/dist/components/Skeleton/Slider.js +17 -10
  422. package/dist/components/Skeleton/Square.d.ts.map +1 -1
  423. package/dist/components/Skeleton/Square.js +9 -4
  424. package/dist/components/Skeleton/index.js +51 -43
  425. package/dist/components/Skeleton/styles.css.d.ts +22 -2
  426. package/dist/components/Skeleton/styles.css.d.ts.map +1 -1
  427. package/dist/components/Skeleton/styles.css.js +32 -4
  428. package/dist/components/Skeleton/styles.css.ts.vanilla.js +8 -0
  429. package/dist/components/Skeleton/stylesVariants.css.js +12 -24
  430. package/dist/components/Skeleton/stylesVariants.css.ts.vanilla.js +8 -0
  431. package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
  432. package/dist/components/Slider/components/DoubleSlider.js +287 -272
  433. package/dist/components/Slider/components/Options.js +39 -33
  434. package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
  435. package/dist/components/Slider/components/SingleSlider.js +201 -191
  436. package/dist/components/Slider/constant.js +8 -0
  437. package/dist/components/Slider/index.js +102 -98
  438. package/dist/components/Slider/styles.css.d.ts +145 -141
  439. package/dist/components/Slider/styles.css.d.ts.map +1 -1
  440. package/dist/components/Slider/styles.css.js +110 -100
  441. package/dist/components/Slider/styles.css.ts.vanilla.js +8 -0
  442. package/dist/components/Snippet/index.d.ts.map +1 -1
  443. package/dist/components/Snippet/index.js +117 -110
  444. package/dist/components/Snippet/styles.css.d.ts +42 -40
  445. package/dist/components/Snippet/styles.css.d.ts.map +1 -1
  446. package/dist/components/Snippet/styles.css.js +58 -50
  447. package/dist/components/Snippet/styles.css.ts.vanilla.js +8 -0
  448. package/dist/components/Stack/index.d.ts.map +1 -1
  449. package/dist/components/Stack/index.js +62 -60
  450. package/dist/components/Stack/styles.css.d.ts +3 -1
  451. package/dist/components/Stack/styles.css.d.ts.map +1 -1
  452. package/dist/components/Stack/styles.css.js +578 -572
  453. package/dist/components/Stack/styles.css.ts.vanilla.js +8 -0
  454. package/dist/components/Stack/variables.css.js +12 -6
  455. package/dist/components/Stack/variables.css.ts.vanilla.js +8 -0
  456. package/dist/components/Status/index.js +19 -16
  457. package/dist/components/Status/styles.css.d.ts +22 -20
  458. package/dist/components/Status/styles.css.d.ts.map +1 -1
  459. package/dist/components/Status/styles.css.js +41 -32
  460. package/dist/components/Status/styles.css.ts.vanilla.js +8 -0
  461. package/dist/components/StepList/index.js +31 -29
  462. package/dist/components/StepList/styles.css.d.ts +23 -21
  463. package/dist/components/StepList/styles.css.d.ts.map +1 -1
  464. package/dist/components/StepList/styles.css.js +28 -20
  465. package/dist/components/StepList/styles.css.ts.vanilla.js +8 -0
  466. package/dist/components/Stepper/Step.d.ts.map +1 -1
  467. package/dist/components/Stepper/Step.js +85 -76
  468. package/dist/components/Stepper/StepperProvider.js +39 -38
  469. package/dist/components/Stepper/index.js +51 -43
  470. package/dist/components/Stepper/styles.css.d.ts +101 -87
  471. package/dist/components/Stepper/styles.css.d.ts.map +1 -1
  472. package/dist/components/Stepper/styles.css.js +155 -126
  473. package/dist/components/Stepper/styles.css.ts.vanilla.js +8 -0
  474. package/dist/components/SwitchButton/FocusOverlay.js +16 -9
  475. package/dist/components/SwitchButton/Option.d.ts.map +1 -1
  476. package/dist/components/SwitchButton/Option.js +47 -39
  477. package/dist/components/SwitchButton/SwitchButtonContext.js +12 -8
  478. package/dist/components/SwitchButton/constant.js +8 -0
  479. package/dist/components/SwitchButton/index.js +140 -131
  480. package/dist/components/SwitchButton/styles.css.d.ts +7 -8
  481. package/dist/components/SwitchButton/styles.css.d.ts.map +1 -1
  482. package/dist/components/SwitchButton/styles.css.js +21 -13
  483. package/dist/components/SwitchButton/styles.css.ts.vanilla.js +8 -0
  484. package/dist/components/Table/Body.js +7 -3
  485. package/dist/components/Table/Cell.js +35 -27
  486. package/dist/components/Table/Header.js +11 -6
  487. package/dist/components/Table/HeaderCell.d.ts.map +1 -1
  488. package/dist/components/Table/HeaderCell.js +69 -60
  489. package/dist/components/Table/HeaderRow.js +35 -26
  490. package/dist/components/Table/Row.d.ts.map +1 -1
  491. package/dist/components/Table/Row.js +123 -111
  492. package/dist/components/Table/SelectBar.js +34 -27
  493. package/dist/components/Table/SkeletonRows.d.ts.map +1 -1
  494. package/dist/components/Table/SkeletonRows.js +24 -17
  495. package/dist/components/Table/TableContext.js +56 -49
  496. package/dist/components/Table/constants.js +8 -0
  497. package/dist/components/Table/index.js +82 -69
  498. package/dist/components/Table/styles.css.d.ts +65 -63
  499. package/dist/components/Table/styles.css.d.ts.map +1 -1
  500. package/dist/components/Table/styles.css.js +56 -47
  501. package/dist/components/Table/styles.css.ts.vanilla.js +8 -0
  502. package/dist/components/Table/variables.css.js +13 -7
  503. package/dist/components/Table/variables.css.ts.vanilla.js +8 -0
  504. package/dist/components/Tabs/Tab.d.ts.map +1 -1
  505. package/dist/components/Tabs/Tab.js +95 -83
  506. package/dist/components/Tabs/TabMenu.js +46 -38
  507. package/dist/components/Tabs/TabMenuItem.js +35 -26
  508. package/dist/components/Tabs/TabsContext.js +8 -4
  509. package/dist/components/Tabs/index.js +85 -77
  510. package/dist/components/Tabs/styles.css.d.ts +11 -9
  511. package/dist/components/Tabs/styles.css.d.ts.map +1 -1
  512. package/dist/components/Tabs/styles.css.js +22 -14
  513. package/dist/components/Tabs/styles.css.ts.vanilla.js +8 -0
  514. package/dist/components/Tag/index.js +78 -73
  515. package/dist/components/Tag/styles.css.d.ts +28 -26
  516. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  517. package/dist/components/Tag/styles.css.js +62 -54
  518. package/dist/components/Tag/styles.css.ts.vanilla.js +8 -0
  519. package/dist/components/TagInput/index.d.ts.map +1 -1
  520. package/dist/components/TagInput/index.js +196 -187
  521. package/dist/components/TagInput/styles.css.d.ts +20 -18
  522. package/dist/components/TagInput/styles.css.d.ts.map +1 -1
  523. package/dist/components/TagInput/styles.css.js +22 -14
  524. package/dist/components/TagInput/styles.css.ts.vanilla.js +8 -0
  525. package/dist/components/TagList/constant.js +7 -2
  526. package/dist/components/TagList/index.d.ts.map +1 -1
  527. package/dist/components/TagList/index.js +170 -164
  528. package/dist/components/TagList/styles.css.d.ts +12 -10
  529. package/dist/components/TagList/styles.css.d.ts.map +1 -1
  530. package/dist/components/TagList/styles.css.js +20 -12
  531. package/dist/components/TagList/styles.css.ts.vanilla.js +8 -0
  532. package/dist/components/Text/index.js +50 -43
  533. package/dist/components/Text/style.css.d.ts +48 -1
  534. package/dist/components/Text/style.css.d.ts.map +1 -1
  535. package/dist/components/Text/style.css.js +448 -442
  536. package/dist/components/Text/style.css.ts.vanilla.js +8 -0
  537. package/dist/components/Text/variables.css.js +12 -6
  538. package/dist/components/Text/variables.css.ts.vanilla.js +8 -0
  539. package/dist/components/TextArea/index.d.ts.map +1 -1
  540. package/dist/components/TextArea/index.js +154 -144
  541. package/dist/components/TextArea/styles.css.d.ts +14 -12
  542. package/dist/components/TextArea/styles.css.d.ts.map +1 -1
  543. package/dist/components/TextArea/styles.css.js +24 -16
  544. package/dist/components/TextArea/styles.css.ts.vanilla.js +8 -0
  545. package/dist/components/TextInput/index.d.ts.map +1 -1
  546. package/dist/components/TextInput/index.js +202 -196
  547. package/dist/components/TextInput/styles.css.d.ts +9 -7
  548. package/dist/components/TextInput/styles.css.d.ts.map +1 -1
  549. package/dist/components/TextInput/styles.css.js +23 -14
  550. package/dist/components/TextInput/styles.css.ts.vanilla.js +8 -0
  551. package/dist/components/TimeInput/constants.js +19 -13
  552. package/dist/components/TimeInput/helpers.js +46 -42
  553. package/dist/components/TimeInput/index.js +304 -296
  554. package/dist/components/TimeInput/styles.css.d.ts +69 -67
  555. package/dist/components/TimeInput/styles.css.d.ts.map +1 -1
  556. package/dist/components/TimeInput/styles.css.js +34 -26
  557. package/dist/components/TimeInput/styles.css.ts.vanilla.js +8 -0
  558. package/dist/components/Toaster/Toaster.js +34 -27
  559. package/dist/components/Toaster/ToasterContainer.js +27 -29
  560. package/dist/components/Toaster/components/CloseButton.js +17 -11
  561. package/dist/components/Toaster/components/Content.js +19 -13
  562. package/dist/components/Toaster/constants.js +8 -2
  563. package/dist/components/Toaster/index.js +10 -0
  564. package/dist/components/Toaster/styles.css.d.ts +5 -3
  565. package/dist/components/Toaster/styles.css.d.ts.map +1 -1
  566. package/dist/components/Toaster/styles.css.js +13 -4
  567. package/dist/components/Toaster/styles.css.ts.vanilla.js +8 -0
  568. package/dist/components/Toggle/index.js +93 -84
  569. package/dist/components/Toggle/styles.css.d.ts +83 -81
  570. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  571. package/dist/components/Toggle/styles.css.js +54 -46
  572. package/dist/components/Toggle/styles.css.ts.vanilla.js +8 -0
  573. package/dist/components/ToggleGroup/index.d.ts.map +1 -1
  574. package/dist/components/ToggleGroup/index.js +100 -94
  575. package/dist/components/ToggleGroup/styles.css.d.ts +3 -1
  576. package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
  577. package/dist/components/ToggleGroup/styles.css.js +9 -3
  578. package/dist/components/ToggleGroup/styles.css.ts.vanilla.js +8 -0
  579. package/dist/components/Tooltip/index.js +31 -29
  580. package/dist/components/Tooltip/styles.css.d.ts +3 -1
  581. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  582. package/dist/components/Tooltip/styles.css.js +9 -3
  583. package/dist/components/Tooltip/styles.css.ts.vanilla.js +8 -0
  584. package/dist/components/TreeMapChart/Tooltip.js +24 -18
  585. package/dist/components/TreeMapChart/index.js +54 -50
  586. package/dist/components/TreeMapChart/styles.css.d.ts +4 -2
  587. package/dist/components/TreeMapChart/styles.css.d.ts.map +1 -1
  588. package/dist/components/TreeMapChart/styles.css.js +12 -4
  589. package/dist/components/TreeMapChart/styles.css.ts.vanilla.js +8 -0
  590. package/dist/components/UnitInput/index.d.ts.map +1 -1
  591. package/dist/components/UnitInput/index.js +134 -124
  592. package/dist/components/UnitInput/styles.css.d.ts +8 -6
  593. package/dist/components/UnitInput/styles.css.d.ts.map +1 -1
  594. package/dist/components/UnitInput/styles.css.js +31 -23
  595. package/dist/components/UnitInput/styles.css.ts.vanilla.js +8 -0
  596. package/dist/components/VerificationCode/index.d.ts.map +1 -1
  597. package/dist/components/VerificationCode/index.js +153 -149
  598. package/dist/components/VerificationCode/styles.css.d.ts +5 -3
  599. package/dist/components/VerificationCode/styles.css.d.ts.map +1 -1
  600. package/dist/components/VerificationCode/styles.css.js +18 -10
  601. package/dist/components/VerificationCode/styles.css.ts.vanilla.js +8 -0
  602. package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -1
  603. package/dist/components/compositions/CodeEditor/index.js +123 -113
  604. package/dist/components/compositions/CodeEditor/styles.css.d.ts +17 -15
  605. package/dist/components/compositions/CodeEditor/styles.css.d.ts.map +1 -1
  606. package/dist/components/compositions/CodeEditor/styles.css.js +32 -24
  607. package/dist/components/compositions/CodeEditor/styles.css.ts.vanilla.js +8 -0
  608. package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -1
  609. package/dist/components/compositions/ContentCard/Content.js +62 -55
  610. package/dist/components/compositions/ContentCard/Skeleton.d.ts.map +1 -1
  611. package/dist/components/compositions/ContentCard/Skeleton.js +32 -25
  612. package/dist/components/compositions/ContentCard/index.d.ts.map +1 -1
  613. package/dist/components/compositions/ContentCard/index.js +71 -68
  614. package/dist/components/compositions/ContentCard/styles.css.d.ts +22 -17
  615. package/dist/components/compositions/ContentCard/styles.css.d.ts.map +1 -1
  616. package/dist/components/compositions/ContentCard/styles.css.js +41 -30
  617. package/dist/components/compositions/ContentCard/styles.css.ts.vanilla.js +8 -0
  618. package/dist/components/compositions/ContentCardGroup/Card.d.ts.map +1 -1
  619. package/dist/components/compositions/ContentCardGroup/Card.js +57 -50
  620. package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts.map +1 -1
  621. package/dist/components/compositions/ContentCardGroup/SkeletonCard.js +30 -23
  622. package/dist/components/compositions/ContentCardGroup/index.js +22 -14
  623. package/dist/components/compositions/ContentCardGroup/styles.css.d.ts +9 -7
  624. package/dist/components/compositions/ContentCardGroup/styles.css.d.ts.map +1 -1
  625. package/dist/components/compositions/ContentCardGroup/styles.css.js +17 -9
  626. package/dist/components/compositions/ContentCardGroup/styles.css.ts.vanilla.js +8 -0
  627. package/dist/components/compositions/Conversation/index.d.ts.map +1 -1
  628. package/dist/components/compositions/Conversation/index.js +54 -46
  629. package/dist/components/compositions/Conversation/styles.css.d.ts +9 -7
  630. package/dist/components/compositions/Conversation/styles.css.d.ts.map +1 -1
  631. package/dist/components/compositions/Conversation/styles.css.js +26 -18
  632. package/dist/components/compositions/Conversation/styles.css.ts.vanilla.js +8 -0
  633. package/dist/components/compositions/CustomerSatisfaction/assets/1-5.js +8 -2
  634. package/dist/components/compositions/CustomerSatisfaction/assets/1-5NB.js +8 -2
  635. package/dist/components/compositions/CustomerSatisfaction/assets/2-5.js +8 -2
  636. package/dist/components/compositions/CustomerSatisfaction/assets/2-5NB.js +8 -2
  637. package/dist/components/compositions/CustomerSatisfaction/assets/3-5.js +8 -2
  638. package/dist/components/compositions/CustomerSatisfaction/assets/3-5NB.js +8 -2
  639. package/dist/components/compositions/CustomerSatisfaction/assets/4-5.js +8 -2
  640. package/dist/components/compositions/CustomerSatisfaction/assets/4-5NB.js +8 -2
  641. package/dist/components/compositions/CustomerSatisfaction/assets/5-5.js +8 -2
  642. package/dist/components/compositions/CustomerSatisfaction/assets/5-5NB.js +8 -2
  643. package/dist/components/compositions/CustomerSatisfaction/index.d.ts.map +1 -1
  644. package/dist/components/compositions/CustomerSatisfaction/index.js +99 -82
  645. package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts +18 -16
  646. package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts.map +1 -1
  647. package/dist/components/compositions/CustomerSatisfaction/styles.css.js +24 -14
  648. package/dist/components/compositions/CustomerSatisfaction/styles.css.ts.vanilla.js +8 -0
  649. package/dist/components/compositions/EstimateCost/CompactEstimateCost.js +33 -26
  650. package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +1 -1
  651. package/dist/components/compositions/EstimateCost/Components/ContentComponents.js +114 -103
  652. package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.js +38 -32
  653. package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -1
  654. package/dist/components/compositions/EstimateCost/Components/Item.js +159 -148
  655. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts.map +1 -1
  656. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +80 -67
  657. package/dist/components/compositions/EstimateCost/Components/ItemPrice.js +56 -49
  658. package/dist/components/compositions/EstimateCost/Components/LineThrough.js +19 -12
  659. package/dist/components/compositions/EstimateCost/Components/NumberInput.js +36 -28
  660. package/dist/components/compositions/EstimateCost/Components/Region.js +37 -29
  661. package/dist/components/compositions/EstimateCost/Components/Regular.d.ts.map +1 -1
  662. package/dist/components/compositions/EstimateCost/Components/Regular.js +20 -14
  663. package/dist/components/compositions/EstimateCost/Components/Strong.js +14 -9
  664. package/dist/components/compositions/EstimateCost/Components/Unit.d.ts.map +1 -1
  665. package/dist/components/compositions/EstimateCost/Components/Unit.js +52 -43
  666. package/dist/components/compositions/EstimateCost/Components/Zone.js +36 -28
  667. package/dist/components/compositions/EstimateCost/Components/components.css.d.ts +12 -12
  668. package/dist/components/compositions/EstimateCost/Components/components.css.d.ts.map +1 -1
  669. package/dist/components/compositions/EstimateCost/Components/components.css.js +63 -64
  670. package/dist/components/compositions/EstimateCost/Components/components.css.ts.vanilla.js +8 -0
  671. package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
  672. package/dist/components/compositions/EstimateCost/EstimateCostContent.js +203 -186
  673. package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +31 -25
  674. package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts.map +1 -1
  675. package/dist/components/compositions/EstimateCost/OverlayComponent.js +101 -90
  676. package/dist/components/compositions/EstimateCost/OverlayContext.js +11 -7
  677. package/dist/components/compositions/EstimateCost/constants.js +29 -23
  678. package/dist/components/compositions/EstimateCost/helper.js +12 -7
  679. package/dist/components/compositions/EstimateCost/index.js +106 -86
  680. package/dist/components/compositions/EstimateCost/locales/en.js +28 -22
  681. package/dist/components/compositions/EstimateCost/styles.css.d.ts +150 -71
  682. package/dist/components/compositions/EstimateCost/styles.css.d.ts.map +1 -1
  683. package/dist/components/compositions/EstimateCost/styles.css.js +142 -66
  684. package/dist/components/compositions/EstimateCost/styles.css.ts.vanilla.js +8 -0
  685. package/dist/components/compositions/FAQ/index.d.ts +3 -5
  686. package/dist/components/compositions/FAQ/index.d.ts.map +1 -1
  687. package/dist/components/compositions/FAQ/index.js +20 -15
  688. package/dist/components/compositions/FAQ/styles.css.d.ts +3 -1
  689. package/dist/components/compositions/FAQ/styles.css.d.ts.map +1 -1
  690. package/dist/components/compositions/FAQ/styles.css.js +11 -3
  691. package/dist/components/compositions/FAQ/styles.css.ts.vanilla.js +8 -0
  692. package/dist/components/compositions/InfoTable/Context.js +7 -2
  693. package/dist/components/compositions/InfoTable/components/Cell.js +39 -32
  694. package/dist/components/compositions/InfoTable/components/Row.js +23 -15
  695. package/dist/components/compositions/InfoTable/index.d.ts +5 -7
  696. package/dist/components/compositions/InfoTable/index.d.ts.map +1 -1
  697. package/dist/components/compositions/InfoTable/index.js +31 -21
  698. package/dist/components/compositions/InfoTable/styles.css.d.ts +8 -6
  699. package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -1
  700. package/dist/components/compositions/InfoTable/styles.css.js +17 -9
  701. package/dist/components/compositions/InfoTable/styles.css.ts.vanilla.js +8 -0
  702. package/dist/components/compositions/Navigation/Footer.d.ts.map +1 -1
  703. package/dist/components/compositions/Navigation/Footer.js +62 -54
  704. package/dist/components/compositions/Navigation/Header.js +22 -15
  705. package/dist/components/compositions/Navigation/NavigationContent.d.ts.map +1 -1
  706. package/dist/components/compositions/Navigation/NavigationContent.js +105 -93
  707. package/dist/components/compositions/Navigation/NavigationProvider.js +121 -113
  708. package/dist/components/compositions/Navigation/animations.css.ts.vanilla.js +8 -0
  709. package/dist/components/compositions/Navigation/components/Group.js +42 -33
  710. package/dist/components/compositions/Navigation/components/Item.d.ts.map +1 -1
  711. package/dist/components/compositions/Navigation/components/Item.js +190 -179
  712. package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +1 -1
  713. package/dist/components/compositions/Navigation/components/ItemExpanded.js +207 -196
  714. package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +1 -1
  715. package/dist/components/compositions/Navigation/components/ItemFragments.js +61 -53
  716. package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +1 -1
  717. package/dist/components/compositions/Navigation/components/ItemMenu.js +135 -122
  718. package/dist/components/compositions/Navigation/components/ItemProvider.js +14 -10
  719. package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -1
  720. package/dist/components/compositions/Navigation/components/PinnedItems.js +103 -94
  721. package/dist/components/compositions/Navigation/components/Separator.d.ts.map +1 -1
  722. package/dist/components/compositions/Navigation/components/Separator.js +11 -5
  723. package/dist/components/compositions/Navigation/components/ShowHide.js +50 -42
  724. package/dist/components/compositions/Navigation/components/items.css.d.ts +22 -22
  725. package/dist/components/compositions/Navigation/components/items.css.d.ts.map +1 -1
  726. package/dist/components/compositions/Navigation/components/items.css.ts.vanilla.js +8 -0
  727. package/dist/components/compositions/Navigation/components/styles.css.d.ts +7 -7
  728. package/dist/components/compositions/Navigation/components/styles.css.d.ts.map +1 -1
  729. package/dist/components/compositions/Navigation/components/styles.css.ts.vanilla.js +8 -0
  730. package/dist/components/compositions/Navigation/constants.js +8 -0
  731. package/dist/components/compositions/Navigation/index.js +34 -28
  732. package/dist/components/compositions/Navigation/locales/en.js +16 -10
  733. package/dist/components/compositions/Navigation/styles.css.d.ts +156 -33
  734. package/dist/components/compositions/Navigation/styles.css.d.ts.map +1 -1
  735. package/dist/components/compositions/Navigation/styles.css.js +186 -30
  736. package/dist/components/compositions/Navigation/styles.css.ts.vanilla.js +8 -0
  737. package/dist/components/compositions/Navigation/variables.css.js +8 -2
  738. package/dist/components/compositions/Navigation/variables.css.ts.vanilla.js +8 -0
  739. package/dist/components/compositions/OfferList/OfferListProvider.d.ts.map +1 -1
  740. package/dist/components/compositions/OfferList/OfferListProvider.js +41 -23
  741. package/dist/components/compositions/OfferList/components/Banner.d.ts.map +1 -1
  742. package/dist/components/compositions/OfferList/components/Banner.js +35 -27
  743. package/dist/components/compositions/OfferList/components/Cell.d.ts.map +1 -1
  744. package/dist/components/compositions/OfferList/components/Cell.js +35 -26
  745. package/dist/components/compositions/OfferList/components/OfferListRowProvider.js +10 -6
  746. package/dist/components/compositions/OfferList/components/Row.d.ts.map +1 -1
  747. package/dist/components/compositions/OfferList/components/Row.js +176 -160
  748. package/dist/components/compositions/OfferList/index.js +54 -45
  749. package/dist/components/compositions/OfferList/styles.css.d.ts +40 -37
  750. package/dist/components/compositions/OfferList/styles.css.d.ts.map +1 -1
  751. package/dist/components/compositions/OfferList/styles.css.js +127 -118
  752. package/dist/components/compositions/OfferList/styles.css.ts.vanilla.js +8 -0
  753. package/dist/components/compositions/OptionSelector/components/ArrowIcon.js +18 -13
  754. package/dist/components/compositions/OptionSelector/components/IconWithContent.js +13 -8
  755. package/dist/components/compositions/OptionSelector/components/RevealOnHover.d.ts.map +1 -1
  756. package/dist/components/compositions/OptionSelector/components/RevealOnHover.js +17 -12
  757. package/dist/components/compositions/OptionSelector/components/Selector.d.ts.map +1 -1
  758. package/dist/components/compositions/OptionSelector/components/Selector.js +33 -27
  759. package/dist/components/compositions/OptionSelector/components/SelectorLabel.d.ts.map +1 -1
  760. package/dist/components/compositions/OptionSelector/components/SelectorLabel.js +17 -11
  761. package/dist/components/compositions/OptionSelector/index.d.ts.map +1 -1
  762. package/dist/components/compositions/OptionSelector/index.js +147 -140
  763. package/dist/components/compositions/OptionSelector/styles.css.d.ts +25 -23
  764. package/dist/components/compositions/OptionSelector/styles.css.d.ts.map +1 -1
  765. package/dist/components/compositions/OptionSelector/styles.css.js +37 -28
  766. package/dist/components/compositions/OptionSelector/styles.css.ts.vanilla.js +8 -0
  767. package/dist/components/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
  768. package/dist/components/compositions/OrderSummary/NonScrollableContent.js +92 -83
  769. package/dist/components/compositions/OrderSummary/Provider.js +20 -14
  770. package/dist/components/compositions/OrderSummary/ScrollableContent.d.ts.map +1 -1
  771. package/dist/components/compositions/OrderSummary/ScrollableContent.js +220 -210
  772. package/dist/components/compositions/OrderSummary/constants.js +21 -15
  773. package/dist/components/compositions/OrderSummary/helpers.js +132 -125
  774. package/dist/components/compositions/OrderSummary/index.d.ts.map +1 -1
  775. package/dist/components/compositions/OrderSummary/index.js +142 -128
  776. package/dist/components/compositions/OrderSummary/locales/en.js +16 -10
  777. package/dist/components/compositions/OrderSummary/styles.css.d.ts +21 -19
  778. package/dist/components/compositions/OrderSummary/styles.css.d.ts.map +1 -1
  779. package/dist/components/compositions/OrderSummary/styles.css.js +34 -26
  780. package/dist/components/compositions/OrderSummary/styles.css.ts.vanilla.js +8 -0
  781. package/dist/components/compositions/Plans/FeatureHint.js +39 -32
  782. package/dist/components/compositions/Plans/PlanHeader.d.ts.map +1 -1
  783. package/dist/components/compositions/Plans/PlanHeader.js +99 -89
  784. package/dist/components/compositions/Plans/index.d.ts.map +1 -1
  785. package/dist/components/compositions/Plans/index.js +159 -148
  786. package/dist/components/compositions/Plans/locales/en.js +12 -6
  787. package/dist/components/compositions/Plans/styles.css.d.ts +53 -51
  788. package/dist/components/compositions/Plans/styles.css.d.ts.map +1 -1
  789. package/dist/components/compositions/Plans/styles.css.js +41 -33
  790. package/dist/components/compositions/Plans/styles.css.ts.vanilla.js +8 -0
  791. package/dist/components/compositions/SteppedListCard/Step.js +47 -39
  792. package/dist/components/compositions/SteppedListCard/SteppedListContent.d.ts.map +1 -1
  793. package/dist/components/compositions/SteppedListCard/SteppedListContent.js +56 -48
  794. package/dist/components/compositions/SteppedListCard/helper.js +27 -27
  795. package/dist/components/compositions/SteppedListCard/index.d.ts.map +1 -1
  796. package/dist/components/compositions/SteppedListCard/index.js +98 -88
  797. package/dist/components/compositions/SteppedListCard/styles.css.d.ts +10 -8
  798. package/dist/components/compositions/SteppedListCard/styles.css.d.ts.map +1 -1
  799. package/dist/components/compositions/SteppedListCard/styles.css.js +18 -10
  800. package/dist/components/compositions/SteppedListCard/styles.css.ts.vanilla.js +8 -0
  801. package/dist/components/compositions/index.js +35 -14
  802. package/dist/components/compositions/styles.d.ts +15 -0
  803. package/dist/components/compositions/styles.d.ts.map +1 -0
  804. package/dist/components/compositions/styles.js +37 -0
  805. package/dist/components/index.js +167 -0
  806. package/dist/components/styles.d.ts +75 -0
  807. package/dist/components/styles.d.ts.map +1 -0
  808. package/dist/components/styles.js +157 -0
  809. package/dist/helpers/isClientSide.js +9 -6
  810. package/dist/helpers/legend.js +13 -9
  811. package/dist/helpers/nivoTheme.js +20 -16
  812. package/dist/helpers/recursivelyGetChildrenString.js +16 -12
  813. package/dist/helpers/treeMap.js +25 -103
  814. package/dist/hooks/useIsOverflowing.js +25 -24
  815. package/dist/index.d.ts +1 -0
  816. package/dist/index.d.ts.map +1 -1
  817. package/dist/index.js +96 -8
  818. package/dist/theme/ThemeProvider.js +46 -49
  819. package/dist/theme/index.js +19 -20
  820. package/dist/themes/dist/vanilla/themes.css.js.vanilla.js +8 -0
  821. package/dist/ui.css +1 -1
  822. package/dist/utils/animations/animations.js +8 -0
  823. package/dist/utils/animations/animations2.js +33 -27
  824. package/dist/utils/animations/{animationsVE.css.d.ts → animationsVanillaExtract.css.d.ts} +1 -1
  825. package/dist/utils/animations/animationsVanillaExtract.css.d.ts.map +1 -0
  826. package/dist/utils/animations/animationsVanillaExtract.css.js +39 -0
  827. package/dist/utils/animations/animationsVanillaExtract.css.ts.vanilla.js +8 -0
  828. package/dist/utils/index.d.ts +1 -1
  829. package/dist/utils/index.d.ts.map +1 -1
  830. package/dist/utils/index.js +10 -2
  831. package/dist/utils/normalize.js +7 -3
  832. package/dist/utils/responsive/utilities.js +15 -10
  833. package/package.json +12 -6
  834. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/asyncToGenerator.js +0 -32
  835. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/defineProperty.js +0 -15
  836. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js +0 -18
  837. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutPropertiesLoose.js +0 -15
  838. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/toPropertyKey.js +0 -12
  839. package/dist/components/DateInput/components/styles.css.js +0 -11
  840. package/dist/components/compositions/Navigation/components/items.css.js +0 -124
  841. package/dist/components/compositions/Navigation/components/styles.css.js +0 -29
  842. package/dist/helpers/isJSON.d.ts +0 -3
  843. package/dist/helpers/isJSON.d.ts.map +0 -1
  844. package/dist/utils/animations/animationsVE.css.d.ts.map +0 -1
  845. package/dist/utils/animations/animationsVE.css.js +0 -33
@@ -1,351 +1,354 @@
1
1
  'use client';
2
- import { __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.114.0/helpers/objectSpread2.js";
4
- import { isClientSide } from "../../helpers/isClientSide.js";
5
- import { DEFAULT_POSITIONS, computePositions } from "./helpers.js";
6
- import { animationPopup, childrenContainerPopup, containerPopup, popup } from "./styles.css.js";
7
- import { animationDurationPopup, arrowLeft, arrowTop, arrowTransform, maxHeightPopup, maxWidthPopup, popupInitialPosition, popupPosition } from "./variables.css.js";
2
+ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { _objectSpread2, init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.115.0/helpers/objectSpread2.js";
4
+ import { init_isClientSide, isClientSide } from "../../helpers/isClientSide.js";
5
+ import { DEFAULT_POSITIONS, computePositions, init_helpers } from "./helpers.js";
6
+ import { init_styles_css, popupStyle } from "./styles.css.js";
7
+ import { animationDurationPopup, arrowLeft, arrowTop, arrowTransform, init_variables_css, maxHeightPopup, maxWidthPopup, popupInitialPosition, popupPosition } from "./variables.css.js";
8
8
  import { forwardRef, startTransition, useCallback, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
9
+ import { cn } from "@ultraviolet/utils";
9
10
  import { assignInlineVars } from "@vanilla-extract/dynamic";
10
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
- import { cn } from "@ultraviolet/utils";
12
12
  import { createPortal } from "react-dom";
13
13
 
14
14
  //#region src/components/Popup/index.tsx
15
- const DEFAULT_ANIMATION_DURATION = 230;
16
- const DEFAULT_DEBOUNCE_DURATION = 200;
17
- const noop = () => {};
18
- /**
19
- * This event handle allow us to not bubble the event to document.body like this react-select works fine
20
- */
21
- const stopClickPropagation = (event) => {
22
- event.stopPropagation();
23
- };
24
- const getPopupPortalTarget = ({ node, role, portalTarget }) => {
25
- if (portalTarget) return portalTarget;
26
- if (role === "dialog") {
27
- if (node) return node;
28
- if (isClientSide) return document.body;
15
+ var DEFAULT_ANIMATION_DURATION, DEFAULT_DEBOUNCE_DURATION, noop, stopClickPropagation, getPopupPortalTarget, Popup;
16
+ var init_Popup = __esmMin(() => {
17
+ init_isClientSide();
18
+ init_helpers();
19
+ init_styles_css();
20
+ init_variables_css();
21
+ init_objectSpread2();
22
+ DEFAULT_ANIMATION_DURATION = 230;
23
+ DEFAULT_DEBOUNCE_DURATION = 200;
24
+ noop = () => {};
25
+ stopClickPropagation = (event) => {
26
+ event.stopPropagation();
27
+ };
28
+ getPopupPortalTarget = ({ node, role, portalTarget }) => {
29
+ if (portalTarget) return portalTarget;
30
+ if (role === "dialog") {
31
+ if (node) return node;
32
+ if (isClientSide) return document.body;
33
+ return null;
34
+ }
35
+ if (typeof window !== "undefined") return document.body;
29
36
  return null;
30
- }
31
- if (typeof window !== "undefined") return document.body;
32
- return null;
33
- };
34
- /**
35
- * @experimental This component is experimental and may be subject to breaking changes in the future.
36
- */
37
- const Popup = forwardRef(({ children, text = "", placement = "auto", align = "center", id, className, containerFullWidth, containerFullHeight, maxWidth = "14.5rem", maxHeight, visible, innerRef, role = "popup", "data-testid": dataTestId, hasArrow = true, onClose, tabIndex = 0, onKeyDown, "aria-haspopup": ariaHasPopup, hideOnClickOutside = false, debounceDelay = DEFAULT_DEBOUNCE_DURATION, disableAnimation = false, portalTarget, dynamicDomRendering = true, style }, ref) => {
38
- const childrenRef = useRef(null);
39
- useImperativeHandle(innerRef, () => childrenRef.current);
40
- const innerPopupRef = useRef(null);
41
- useImperativeHandle(ref, () => innerPopupRef.current);
42
- const timer = useRef(void 0);
43
- const popupPortalTarget = getPopupPortalTarget({
44
- node: childrenRef.current,
45
- portalTarget,
46
- role
47
- });
48
- const animationDuration = disableAnimation || maxHeight ? 0 : DEFAULT_ANIMATION_DURATION;
49
- const debounceTimer = useRef(void 0);
50
- const [visibleInDom, setVisibleInDom] = useState(false);
51
- const [reverseAnimation, setReverseAnimation] = useState(false);
52
- const [positions, setPositions] = useState(_objectSpread2({}, DEFAULT_POSITIONS));
53
- const uniqueId = useId();
54
- const generatedId = id !== null && id !== void 0 ? id : uniqueId;
55
- const isControlled = visible !== void 0;
56
- const isAnimated = useMemo(() => animationDuration > 0 && !maxHeight, [animationDuration, maxHeight]);
57
- const generatePopupPositions = useCallback(() => {
58
- if (childrenRef.current && innerPopupRef.current && popupPortalTarget) setPositions(computePositions({
59
- align,
60
- childrenRef,
37
+ };
38
+ Popup = forwardRef(({ children, text = "", placement = "auto", align = "center", id, className, containerFullWidth, containerFullHeight, maxWidth = "14.5rem", maxHeight, visible, innerRef, role = "popup", "data-testid": dataTestId, hasArrow = true, onClose, tabIndex = 0, onKeyDown, "aria-haspopup": ariaHasPopup, hideOnClickOutside = false, debounceDelay = DEFAULT_DEBOUNCE_DURATION, disableAnimation = false, portalTarget, dynamicDomRendering = true, style }, ref) => {
39
+ const childrenRef = useRef(null);
40
+ useImperativeHandle(innerRef, () => childrenRef.current);
41
+ const innerPopupRef = useRef(null);
42
+ useImperativeHandle(ref, () => innerPopupRef.current);
43
+ const timer = useRef(void 0);
44
+ const popupPortalTarget = getPopupPortalTarget({
45
+ node: childrenRef.current,
46
+ portalTarget,
47
+ role
48
+ });
49
+ const animationDuration = disableAnimation || maxHeight ? 0 : DEFAULT_ANIMATION_DURATION;
50
+ const debounceTimer = useRef(void 0);
51
+ const [visibleInDom, setVisibleInDom] = useState(false);
52
+ const [reverseAnimation, setReverseAnimation] = useState(false);
53
+ const [positions, setPositions] = useState(_objectSpread2({}, DEFAULT_POSITIONS));
54
+ const uniqueId = useId();
55
+ const generatedId = id !== null && id !== void 0 ? id : uniqueId;
56
+ const isControlled = visible !== void 0;
57
+ const isAnimated = useMemo(() => animationDuration > 0 && !maxHeight, [animationDuration, maxHeight]);
58
+ const generatePopupPositions = useCallback(() => {
59
+ if (childrenRef.current && innerPopupRef.current && popupPortalTarget) setPositions(computePositions({
60
+ align,
61
+ childrenRef,
62
+ hasArrow,
63
+ placement,
64
+ popupPortalTarget,
65
+ popupRef: innerPopupRef
66
+ }));
67
+ }, [
61
68
  hasArrow,
62
69
  placement,
63
- popupPortalTarget,
64
- popupRef: innerPopupRef
65
- }));
66
- }, [
67
- hasArrow,
68
- placement,
69
- align,
70
- popupPortalTarget
71
- ]);
72
- /**
73
- * This function is called when we need to recompute positions of popup due to window scroll or resize.
74
- */
75
- const onWindowChangeDetected = useCallback(() => {
76
- if (innerPopupRef.current) innerPopupRef.current.style.animation = "none";
77
- generatePopupPositions();
78
- }, [generatePopupPositions, innerPopupRef]);
79
- /**
80
- * This function is called when we need to remove popup portal from DOM and remove event listener to it.
81
- */
82
- const unmountPopupFromDom = useCallback(() => {
83
- setVisibleInDom(false);
84
- setReverseAnimation(false);
85
- window.removeEventListener("scroll", onWindowChangeDetected, true);
86
- }, [onWindowChangeDetected]);
87
- /**
88
- * This function is called when we need to hide popup. A timeout is set to allow animation end, then remove
89
- * popup from dom.
90
- */
91
- const closePopup = useCallback(() => {
92
- const closeFunction = () => {
93
- if (disableAnimation) {
94
- onClose === null || onClose === void 0 || onClose();
95
- unmountPopupFromDom();
96
- } else {
97
- setReverseAnimation(true);
98
- timer.current = setTimeout(() => {
70
+ align,
71
+ popupPortalTarget
72
+ ]);
73
+ /**
74
+ * This function is called when we need to recompute positions of popup due to window scroll or resize.
75
+ */
76
+ const onWindowChangeDetected = useCallback(() => {
77
+ if (innerPopupRef.current) innerPopupRef.current.style.animation = "none";
78
+ generatePopupPositions();
79
+ }, [generatePopupPositions, innerPopupRef]);
80
+ /**
81
+ * This function is called when we need to remove popup portal from DOM and remove event listener to it.
82
+ */
83
+ const unmountPopupFromDom = useCallback(() => {
84
+ setVisibleInDom(false);
85
+ setReverseAnimation(false);
86
+ window.removeEventListener("scroll", onWindowChangeDetected, true);
87
+ }, [onWindowChangeDetected]);
88
+ /**
89
+ * This function is called when we need to hide popup. A timeout is set to allow animation end, then remove
90
+ * popup from dom.
91
+ */
92
+ const closePopup = useCallback(() => {
93
+ const closeFunction = () => {
94
+ if (disableAnimation) {
99
95
  onClose === null || onClose === void 0 || onClose();
100
96
  unmountPopupFromDom();
101
- }, animationDuration);
102
- }
103
- };
104
- if (disableAnimation) closeFunction();
105
- else debounceTimer.current = setTimeout(() => {
106
- closeFunction();
107
- }, debounceDelay && !disableAnimation ? debounceDelay : 0);
108
- }, [
109
- animationDuration,
110
- disableAnimation,
111
- debounceDelay,
112
- onClose,
113
- unmountPopupFromDom
114
- ]);
115
- /**
116
- * When mouse hover or stop hovering children this function display or hide popup. A timeout is set to allow animation
117
- * end, then remove popup from dom.
118
- */
119
- const onPointerEvent = useCallback((isVisible) => () => {
120
- if (!visible && debounceDelay > 0 && debounceTimer.current) {
121
- clearTimeout(debounceTimer.current);
122
- debounceTimer.current = void 0;
123
- }
124
- if (!isVisible && innerPopupRef.current && !debounceTimer.current) closePopup();
125
- else if (isVisible) {
126
- if (timer.current) {
127
- setReverseAnimation(false);
128
- clearTimeout(timer.current);
129
- timer.current = void 0;
130
- }
131
- if (debounceTimer.current) {
97
+ } else {
98
+ setReverseAnimation(true);
99
+ timer.current = setTimeout(() => {
100
+ onClose === null || onClose === void 0 || onClose();
101
+ unmountPopupFromDom();
102
+ }, animationDuration);
103
+ }
104
+ };
105
+ if (disableAnimation) closeFunction();
106
+ else debounceTimer.current = setTimeout(() => {
107
+ closeFunction();
108
+ }, debounceDelay && !disableAnimation ? debounceDelay : 0);
109
+ }, [
110
+ animationDuration,
111
+ disableAnimation,
112
+ debounceDelay,
113
+ onClose,
114
+ unmountPopupFromDom
115
+ ]);
116
+ /**
117
+ * When mouse hover or stop hovering children this function display or hide popup. A timeout is set to allow animation
118
+ * end, then remove popup from dom.
119
+ */
120
+ const onPointerEvent = useCallback((isVisible) => () => {
121
+ if (!visible && debounceDelay > 0 && debounceTimer.current) {
132
122
  clearTimeout(debounceTimer.current);
133
123
  debounceTimer.current = void 0;
134
124
  }
135
- if (debounceDelay > 0) debounceTimer.current = setTimeout(() => {
136
- setVisibleInDom(true);
137
- }, debounceDelay);
138
- else startTransition(() => {
139
- setVisibleInDom(true);
125
+ if (!isVisible && innerPopupRef.current && !debounceTimer.current) closePopup();
126
+ else if (isVisible) {
127
+ if (timer.current) {
128
+ setReverseAnimation(false);
129
+ clearTimeout(timer.current);
130
+ timer.current = void 0;
131
+ }
132
+ if (debounceTimer.current) {
133
+ clearTimeout(debounceTimer.current);
134
+ debounceTimer.current = void 0;
135
+ }
136
+ if (debounceDelay > 0) debounceTimer.current = setTimeout(() => {
137
+ setVisibleInDom(true);
138
+ }, debounceDelay);
139
+ else startTransition(() => {
140
+ setVisibleInDom(true);
141
+ });
142
+ }
143
+ }, [
144
+ closePopup,
145
+ debounceDelay,
146
+ visible
147
+ ]);
148
+ useLayoutEffect(() => {
149
+ const currentRef = childrenRef.current;
150
+ const mutationObserver = new MutationObserver(() => {
151
+ generatePopupPositions();
152
+ });
153
+ const resizeObserver = new ResizeObserver(() => {
154
+ generatePopupPositions();
140
155
  });
141
- }
142
- }, [
143
- closePopup,
144
- debounceDelay,
145
- visible
146
- ]);
147
- useLayoutEffect(() => {
148
- const currentRef = childrenRef.current;
149
- const mutationObserver = new MutationObserver(() => {
150
- generatePopupPositions();
151
- });
152
- const resizeObserver = new ResizeObserver(() => {
153
- generatePopupPositions();
154
- });
155
- if (currentRef) {
156
- resizeObserver.observe(currentRef);
157
- mutationObserver.observe(currentRef, { characterData: true });
158
- }
159
- return () => {
160
156
  if (currentRef) {
161
- resizeObserver.unobserve(currentRef);
162
- mutationObserver.disconnect();
163
- }
164
- };
165
- }, [visibleInDom, generatePopupPositions]);
166
- /**
167
- * Once popup is visible in the dom we can compute positions, then set it visible on screen and add event to
168
- * recompute positions on scroll or screen resize.
169
- */
170
- useLayoutEffect(() => {
171
- if (visibleInDom) {
172
- generatePopupPositions();
173
- if (popupPortalTarget === document.body) window.addEventListener("scroll", onWindowChangeDetected, true);
174
- window.addEventListener("resize", onWindowChangeDetected, true);
175
- }
176
- return () => {
177
- window.removeEventListener("scroll", onWindowChangeDetected, true);
178
- window.removeEventListener("resize", onWindowChangeDetected, true);
179
- if (timer.current) {
180
- clearTimeout(timer.current);
181
- timer.current = void 0;
157
+ resizeObserver.observe(currentRef);
158
+ mutationObserver.observe(currentRef, { characterData: true });
182
159
  }
183
- };
184
- }, [
185
- generatePopupPositions,
186
- onWindowChangeDetected,
187
- visibleInDom,
188
- maxWidth,
189
- popupPortalTarget
190
- ]);
191
- useLayoutEffect(() => {
192
- if (visibleInDom && innerPopupRef.current) innerPopupRef.current.style.opacity = "1";
193
- }, [visibleInDom, positions]);
194
- /**
195
- * If popup has `visible` prop it means the popup is manually controlled through this prop.
196
- * In this cas we don't want to display popup on hover, but only when `visible` is true.
197
- */
198
- useEffect(() => {
199
- if (isControlled) onPointerEvent(visible)();
200
- }, [
201
- isControlled,
202
- onPointerEvent,
203
- visible
204
- ]);
205
- useEffect(() => {
206
- const handleEscPress = (event) => {
207
- if (event.key === "Escape") {
208
- event.preventDefault();
209
- event.stopPropagation();
210
- closePopup();
160
+ return () => {
161
+ if (currentRef) {
162
+ resizeObserver.unobserve(currentRef);
163
+ mutationObserver.disconnect();
164
+ }
165
+ };
166
+ }, [visibleInDom, generatePopupPositions]);
167
+ /**
168
+ * Once popup is visible in the dom we can compute positions, then set it visible on screen and add event to
169
+ * recompute positions on scroll or screen resize.
170
+ */
171
+ useLayoutEffect(() => {
172
+ if (visibleInDom) {
173
+ generatePopupPositions();
174
+ window.addEventListener("scroll", onWindowChangeDetected, true);
175
+ window.addEventListener("resize", onWindowChangeDetected, true);
211
176
  }
212
- };
213
- const handleClickOutside = (event) => {
214
- const popupCurrent = innerPopupRef.current;
215
- const childrenCurrent = childrenRef.current;
216
- if (popupCurrent && hideOnClickOutside && !event.defaultPrevented && event.target && event.target !== popupCurrent && event.target !== childrenCurrent && !(childrenCurrent === null || childrenCurrent === void 0 ? void 0 : childrenCurrent.contains(event.target)) && !popupCurrent.contains(event.target)) {
217
- event.preventDefault();
218
- event.stopPropagation();
219
- closePopup();
177
+ return () => {
178
+ window.removeEventListener("scroll", onWindowChangeDetected, true);
179
+ window.removeEventListener("resize", onWindowChangeDetected, true);
180
+ if (timer.current) {
181
+ clearTimeout(timer.current);
182
+ timer.current = void 0;
183
+ }
184
+ };
185
+ }, [
186
+ generatePopupPositions,
187
+ onWindowChangeDetected,
188
+ visibleInDom,
189
+ maxWidth,
190
+ popupPortalTarget
191
+ ]);
192
+ useLayoutEffect(() => {
193
+ if (visibleInDom && innerPopupRef.current) innerPopupRef.current.style.opacity = "1";
194
+ }, [visibleInDom, positions]);
195
+ /**
196
+ * If popup has `visible` prop it means the popup is manually controlled through this prop.
197
+ * In this cas we don't want to display popup on hover, but only when `visible` is true.
198
+ */
199
+ useEffect(() => {
200
+ if (isControlled) onPointerEvent(visible)();
201
+ }, [
202
+ isControlled,
203
+ onPointerEvent,
204
+ visible
205
+ ]);
206
+ useEffect(() => {
207
+ const handleEscPress = (event) => {
208
+ if (event.key === "Escape") {
209
+ event.preventDefault();
210
+ event.stopPropagation();
211
+ closePopup();
212
+ }
213
+ };
214
+ const handleClickOutside = (event) => {
215
+ const popupCurrent = innerPopupRef.current;
216
+ const childrenCurrent = childrenRef.current;
217
+ if (popupCurrent && hideOnClickOutside && !event.defaultPrevented && event.target && event.target !== popupCurrent && event.target !== childrenCurrent && !(childrenCurrent === null || childrenCurrent === void 0 ? void 0 : childrenCurrent.contains(event.target)) && !popupCurrent.contains(event.target)) {
218
+ event.preventDefault();
219
+ event.stopPropagation();
220
+ closePopup();
221
+ }
222
+ };
223
+ if (visibleInDom) {
224
+ document.body.addEventListener("keyup", handleEscPress);
225
+ document.body.addEventListener("click", handleClickOutside);
220
226
  }
221
- };
222
- if (visibleInDom) {
223
- document.body.addEventListener("keyup", handleEscPress);
224
- document.body.addEventListener("click", handleClickOutside);
225
- }
226
- return () => {
227
- document.body.removeEventListener("keyup", handleEscPress);
228
- document.body.removeEventListener("click", handleClickOutside);
229
- };
230
- }, [
231
- closePopup,
232
- visibleInDom,
233
- innerPopupRef,
234
- childrenRef,
235
- hideOnClickOutside
236
- ]);
237
- /**
238
- * This event will occur only for dialog and will trap focus inside the dialog.
239
- */
240
- const handleFocusTrap = useCallback((event) => {
241
- var _innerPopupRef$curren;
242
- if (!(event.key === "Tab")) return;
243
- event.stopPropagation();
244
- const focusableEls = (_innerPopupRef$curren = innerPopupRef.current) === null || _innerPopupRef$curren === void 0 ? void 0 : _innerPopupRef$curren.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])");
245
- if ((focusableEls === null || focusableEls === void 0 ? void 0 : focusableEls.length) === 0) event.preventDefault();
246
- if (focusableEls) {
247
- const elems = [...focusableEls];
248
- const firstFocusableEl = elems[0];
249
- const lastFocusableEl = elems.at(-1);
250
- if (event.shiftKey) {
251
- if (document.activeElement === firstFocusableEl || document.activeElement === innerPopupRef.current) {
252
- if (lastFocusableEl instanceof HTMLElement) lastFocusableEl.focus();
227
+ return () => {
228
+ document.body.removeEventListener("keyup", handleEscPress);
229
+ document.body.removeEventListener("click", handleClickOutside);
230
+ };
231
+ }, [
232
+ closePopup,
233
+ visibleInDom,
234
+ innerPopupRef,
235
+ childrenRef,
236
+ hideOnClickOutside
237
+ ]);
238
+ /**
239
+ * This event will occur only for dialog and will trap focus inside the dialog.
240
+ */
241
+ const handleFocusTrap = useCallback((event) => {
242
+ var _innerPopupRef$curren;
243
+ if (!(event.key === "Tab")) return;
244
+ event.stopPropagation();
245
+ const focusableEls = (_innerPopupRef$curren = innerPopupRef.current) === null || _innerPopupRef$curren === void 0 ? void 0 : _innerPopupRef$curren.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])");
246
+ if ((focusableEls === null || focusableEls === void 0 ? void 0 : focusableEls.length) === 0) event.preventDefault();
247
+ if (focusableEls) {
248
+ const elems = [...focusableEls];
249
+ const firstFocusableEl = elems[0];
250
+ const lastFocusableEl = elems.at(-1);
251
+ if (event.shiftKey) {
252
+ if (document.activeElement === firstFocusableEl || document.activeElement === innerPopupRef.current) {
253
+ if (lastFocusableEl instanceof HTMLElement) lastFocusableEl.focus();
254
+ event.preventDefault();
255
+ }
256
+ } else if (document.activeElement === lastFocusableEl || document.activeElement === innerPopupRef.current) {
257
+ if (firstFocusableEl instanceof HTMLElement) firstFocusableEl.focus();
253
258
  event.preventDefault();
254
259
  }
255
- } else if (document.activeElement === lastFocusableEl || document.activeElement === innerPopupRef.current) {
256
- if (firstFocusableEl instanceof HTMLElement) firstFocusableEl.focus();
257
- event.preventDefault();
258
260
  }
261
+ }, []);
262
+ /**
263
+ * On unmount, clear all timers
264
+ */
265
+ useEffect(() => () => {
266
+ if (timer.current) clearTimeout(timer.current);
267
+ if (debounceTimer.current) clearTimeout(debounceTimer.current);
268
+ }, []);
269
+ /**
270
+ * Will render children conditionally if children is a function or not.
271
+ */
272
+ const renderChildren = useCallback(() => {
273
+ if (typeof children === "function") return children({
274
+ onBlur: isControlled ? noop : onPointerEvent(false),
275
+ onFocus: isControlled ? noop : onPointerEvent(true),
276
+ onPointerEnter: isControlled ? noop : onPointerEvent(true),
277
+ onPointerLeave: isControlled ? noop : onPointerEvent(false),
278
+ ref: childrenRef
279
+ });
280
+ return /* @__PURE__ */ jsx("div", {
281
+ "aria-controls": generatedId,
282
+ "aria-describedby": generatedId,
283
+ "aria-haspopup": ariaHasPopup,
284
+ className: popupStyle.childrenContainer({
285
+ fullHeight: containerFullHeight,
286
+ fullWidth: containerFullWidth
287
+ }),
288
+ onBlur: isControlled ? noop : onPointerEvent(false),
289
+ onFocus: isControlled ? noop : onPointerEvent(true),
290
+ onKeyDown: (event) => {
291
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
292
+ },
293
+ onPointerEnter: isControlled ? noop : onPointerEvent(true),
294
+ onPointerLeave: isControlled ? noop : onPointerEvent(false),
295
+ ref: childrenRef,
296
+ tabIndex,
297
+ children
298
+ });
299
+ }, [
300
+ ariaHasPopup,
301
+ children,
302
+ containerFullHeight,
303
+ containerFullWidth,
304
+ generatedId,
305
+ isControlled,
306
+ onKeyDown,
307
+ onPointerEvent,
308
+ tabIndex
309
+ ]);
310
+ const shouldRender = useMemo(() => {
311
+ if (!dynamicDomRendering) return true;
312
+ if (dynamicDomRendering && visibleInDom) return true;
313
+ return false;
314
+ }, [dynamicDomRendering, visibleInDom]);
315
+ if (!text) {
316
+ if (typeof children === "function") return null;
317
+ return children;
259
318
  }
260
- }, []);
261
- /**
262
- * On unmount, clear all timers
263
- */
264
- useEffect(() => () => {
265
- if (timer.current) clearTimeout(timer.current);
266
- if (debounceTimer.current) clearTimeout(debounceTimer.current);
267
- }, []);
268
- /**
269
- * Will render children conditionally if children is a function or not.
270
- */
271
- const renderChildren = useCallback(() => {
272
- if (typeof children === "function") return children({
273
- onBlur: isControlled ? noop : onPointerEvent(false),
274
- onFocus: isControlled ? noop : onPointerEvent(true),
319
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderChildren(), shouldRender ? createPortal(/* @__PURE__ */ jsx("div", {
320
+ className: cn(className, popupStyle.popup({
321
+ hasArrow,
322
+ visibleInDom: dynamicDomRendering ? void 0 : visibleInDom
323
+ }), isAnimated ? popupStyle.animation[reverseAnimation ? "reverse" : "notReverse"] : ""),
324
+ "data-testid": dataTestId,
325
+ "data-visible-in-dom": dynamicDomRendering ? void 0 : visibleInDom,
326
+ id: generatedId,
327
+ onClick: stopClickPropagation,
328
+ onKeyDown: role === "dialog" ? handleFocusTrap : void 0,
275
329
  onPointerEnter: isControlled ? noop : onPointerEvent(true),
276
330
  onPointerLeave: isControlled ? noop : onPointerEvent(false),
277
- ref: childrenRef
278
- });
279
- return /* @__PURE__ */ jsx("div", {
280
- "aria-controls": generatedId,
281
- "aria-describedby": generatedId,
282
- "aria-haspopup": ariaHasPopup,
283
- className: childrenContainerPopup({
284
- fullHeight: containerFullHeight,
285
- fullWidth: containerFullWidth
286
- }),
287
- onBlur: isControlled ? noop : onPointerEvent(false),
288
- onFocus: isControlled ? noop : onPointerEvent(true),
289
- onKeyDown: (event) => {
290
- onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
291
- },
292
- onPointerEnter: isControlled ? noop : onPointerEvent(true),
293
- onPointerLeave: isControlled ? noop : onPointerEvent(false),
294
- ref: childrenRef,
295
- tabIndex,
296
- children
297
- });
298
- }, [
299
- ariaHasPopup,
300
- children,
301
- containerFullHeight,
302
- containerFullWidth,
303
- generatedId,
304
- isControlled,
305
- onKeyDown,
306
- onPointerEvent,
307
- tabIndex
308
- ]);
309
- const shouldRender = useMemo(() => {
310
- if (!dynamicDomRendering) return true;
311
- if (dynamicDomRendering && visibleInDom) return true;
312
- return false;
313
- }, [dynamicDomRendering, visibleInDom]);
314
- if (!text) {
315
- if (typeof children === "function") return null;
316
- return children;
317
- }
318
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderChildren(), shouldRender ? createPortal(/* @__PURE__ */ jsx("div", {
319
- className: cn(className, popup({
320
- hasArrow,
321
- visibleInDom: dynamicDomRendering ? void 0 : visibleInDom
322
- }), isAnimated ? animationPopup[reverseAnimation ? "reverse" : "notReverse"] : ""),
323
- "data-testid": dataTestId,
324
- "data-visible-in-dom": dynamicDomRendering ? void 0 : visibleInDom,
325
- id: generatedId,
326
- onClick: stopClickPropagation,
327
- onKeyDown: role === "dialog" ? handleFocusTrap : void 0,
328
- onPointerEnter: isControlled ? noop : onPointerEvent(true),
329
- onPointerLeave: isControlled ? noop : onPointerEvent(false),
330
- ref: innerPopupRef,
331
- role,
332
- style: _objectSpread2(_objectSpread2({}, assignInlineVars({
333
- [arrowTop]: `${positions.arrowTop}`,
334
- [arrowLeft]: `${positions.arrowLeft}px`,
335
- [arrowTransform]: `${positions.arrowTransform} rotate(${positions.rotate}deg)`,
336
- [popupPosition]: positions.popupPosition,
337
- [animationDurationPopup]: `${animationDuration}ms`,
338
- [popupInitialPosition]: positions.popupInitialPosition,
339
- [maxWidthPopup]: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
340
- [maxHeightPopup]: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
341
- })), style),
342
- children: /* @__PURE__ */ jsx("div", {
343
- className: containerPopup({ hasMaxHeight: !!maxHeight }),
344
- style: assignInlineVars({ [maxHeightPopup]: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight }),
345
- children: text
346
- })
347
- }), popupPortalTarget) : null] });
331
+ ref: innerPopupRef,
332
+ role,
333
+ style: _objectSpread2(_objectSpread2({}, assignInlineVars({
334
+ [arrowTop]: `${positions.arrowTop}`,
335
+ [arrowLeft]: `${positions.arrowLeft}px`,
336
+ [arrowTransform]: `${positions.arrowTransform} rotate(${positions.rotate}deg)`,
337
+ [popupPosition]: positions.popupPosition,
338
+ [animationDurationPopup]: `${animationDuration}ms`,
339
+ [popupInitialPosition]: positions.popupInitialPosition,
340
+ [maxWidthPopup]: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
341
+ [maxHeightPopup]: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
342
+ })), style),
343
+ children: /* @__PURE__ */ jsx("div", {
344
+ className: popupStyle.container({ hasMaxHeight: !!maxHeight }),
345
+ style: assignInlineVars({ [maxHeightPopup]: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight }),
346
+ children: text
347
+ })
348
+ }), popupPortalTarget) : null] });
349
+ });
348
350
  });
349
351
 
350
352
  //#endregion
351
- export { Popup };
353
+ init_Popup();
354
+ export { Popup, init_Popup };