@ultraviolet/ui 3.11.1 → 3.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (880) 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 -160
  26. package/dist/components/Avatar/styles.css.ts.vanilla.js +8 -0
  27. package/dist/components/Avatar/variables.css.js +10 -4
  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 +2 -2
  56. package/dist/components/Breadcrumbs/components/Item.d.ts.map +1 -1
  57. package/dist/components/Breadcrumbs/components/Item.js +61 -48
  58. package/dist/components/Breadcrumbs/components/styles.css.d.ts +4 -4
  59. package/dist/components/Breadcrumbs/components/styles.css.d.ts.map +1 -1
  60. package/dist/components/Breadcrumbs/components/styles.css.js +15 -13
  61. package/dist/components/Breadcrumbs/components/styles.css.ts.vanilla.js +8 -0
  62. package/dist/components/Breadcrumbs/index.js +20 -17
  63. package/dist/components/Breadcrumbs/styles.css.d.ts +14 -1
  64. package/dist/components/Breadcrumbs/styles.css.d.ts.map +1 -1
  65. package/dist/components/Breadcrumbs/styles.css.js +24 -3
  66. package/dist/components/Breadcrumbs/styles.css.ts.vanilla.js +8 -0
  67. package/dist/components/Bullet/index.js +25 -22
  68. package/dist/components/Bullet/styles.css.d.ts +23 -21
  69. package/dist/components/Bullet/styles.css.d.ts.map +1 -1
  70. package/dist/components/Bullet/styles.css.js +107 -101
  71. package/dist/components/Bullet/styles.css.ts.vanilla.js +8 -0
  72. package/dist/components/Button/constants.js +13 -7
  73. package/dist/components/Button/index.js +115 -113
  74. package/dist/components/Button/styles.css.d.ts +84 -1
  75. package/dist/components/Button/styles.css.d.ts.map +1 -1
  76. package/dist/components/Button/styles.css.js +156 -150
  77. package/dist/components/Button/styles.css.ts.vanilla.js +8 -0
  78. package/dist/components/Card/index.js +48 -44
  79. package/dist/components/Card/styles.css.d.ts +4 -2
  80. package/dist/components/Card/styles.css.d.ts.map +1 -1
  81. package/dist/components/Card/styles.css.js +12 -4
  82. package/dist/components/Card/styles.css.ts.vanilla.js +8 -0
  83. package/dist/components/Carousel/index.d.ts.map +1 -1
  84. package/dist/components/Carousel/index.js +100 -97
  85. package/dist/components/Carousel/styles.css.d.ts +7 -5
  86. package/dist/components/Carousel/styles.css.d.ts.map +1 -1
  87. package/dist/components/Carousel/styles.css.js +16 -8
  88. package/dist/components/Carousel/styles.css.ts.vanilla.js +8 -0
  89. package/dist/components/Checkbox/CheckboxIconContainer.js +37 -31
  90. package/dist/components/Checkbox/index.d.ts.map +1 -1
  91. package/dist/components/Checkbox/index.js +105 -99
  92. package/dist/components/Checkbox/styles.css.d.ts +10 -8
  93. package/dist/components/Checkbox/styles.css.d.ts.map +1 -1
  94. package/dist/components/Checkbox/styles.css.js +37 -24
  95. package/dist/components/Checkbox/styles.css.ts.vanilla.js +8 -0
  96. package/dist/components/CheckboxGroup/index.js +107 -101
  97. package/dist/components/CheckboxGroup/styles.css.d.ts +4 -2
  98. package/dist/components/CheckboxGroup/styles.css.d.ts.map +1 -1
  99. package/dist/components/CheckboxGroup/styles.css.js +12 -4
  100. package/dist/components/CheckboxGroup/styles.css.ts.vanilla.js +8 -0
  101. package/dist/components/Chip/ChipContext.js +7 -2
  102. package/dist/components/Chip/ChipIcon.d.ts +3 -5
  103. package/dist/components/Chip/ChipIcon.d.ts.map +1 -1
  104. package/dist/components/Chip/ChipIcon.js +39 -45
  105. package/dist/components/Chip/index.d.ts +2 -2
  106. package/dist/components/Chip/index.js +73 -67
  107. package/dist/components/Chip/styles.css.d.ts +4 -2
  108. package/dist/components/Chip/styles.css.d.ts.map +1 -1
  109. package/dist/components/Chip/styles.css.js +12 -4
  110. package/dist/components/Chip/styles.css.ts.vanilla.js +8 -0
  111. package/dist/components/CopyButton/index.js +28 -26
  112. package/dist/components/DateInput/Context.js +23 -19
  113. package/dist/components/DateInput/components/CalendarContent.js +79 -67
  114. package/dist/components/DateInput/components/CalendarDaily.js +151 -139
  115. package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
  116. package/dist/components/DateInput/components/CalendarMonthly.js +93 -84
  117. package/dist/components/DateInput/components/Popup.js +42 -35
  118. package/dist/components/DateInput/components/styles.css.d.ts +0 -1
  119. package/dist/components/DateInput/components/styles.css.d.ts.map +1 -1
  120. package/dist/components/DateInput/components/styles.css.ts.vanilla.js +8 -0
  121. package/dist/components/DateInput/constants.js +8 -2
  122. package/dist/components/DateInput/helpers.js +59 -55
  123. package/dist/components/DateInput/helpersLocale.js +55 -51
  124. package/dist/components/DateInput/index.d.ts.map +1 -1
  125. package/dist/components/DateInput/index.js +243 -232
  126. package/dist/components/DateInput/styles.css.d.ts +13 -7
  127. package/dist/components/DateInput/styles.css.d.ts.map +1 -1
  128. package/dist/components/DateInput/styles.css.js +22 -8
  129. package/dist/components/DateInput/styles.css.ts.vanilla.js +8 -0
  130. package/dist/components/Dialog/Context.js +12 -8
  131. package/dist/components/Dialog/components/Button.js +20 -14
  132. package/dist/components/Dialog/components/Buttons.js +13 -8
  133. package/dist/components/Dialog/components/CancelButton.js +15 -10
  134. package/dist/components/Dialog/components/Stack.js +12 -7
  135. package/dist/components/Dialog/components/Text.js +14 -9
  136. package/dist/components/Dialog/index.js +70 -59
  137. package/dist/components/Dialog/styles.css.d.ts +4 -2
  138. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  139. package/dist/components/Dialog/styles.css.js +12 -4
  140. package/dist/components/Dialog/styles.css.ts.vanilla.js +8 -0
  141. package/dist/components/Drawer/DrawerContent.js +11 -6
  142. package/dist/components/Drawer/index.d.ts.map +1 -1
  143. package/dist/components/Drawer/index.js +96 -95
  144. package/dist/components/Drawer/styles.css.d.ts +11 -9
  145. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  146. package/dist/components/Drawer/styles.css.js +23 -15
  147. package/dist/components/Drawer/styles.css.ts.vanilla.js +8 -0
  148. package/dist/components/EmptyState/index.js +78 -73
  149. package/dist/components/EmptyState/styles.css.d.ts +22 -20
  150. package/dist/components/EmptyState/styles.css.d.ts.map +1 -1
  151. package/dist/components/EmptyState/styles.css.js +30 -22
  152. package/dist/components/EmptyState/styles.css.ts.vanilla.js +8 -0
  153. package/dist/components/Expandable/index.js +110 -109
  154. package/dist/components/Expandable/styles.css.d.ts +3 -1
  155. package/dist/components/Expandable/styles.css.d.ts.map +1 -1
  156. package/dist/components/Expandable/styles.css.js +10 -4
  157. package/dist/components/Expandable/styles.css.ts.vanilla.js +8 -0
  158. package/dist/components/ExpandableCard/components/Title.js +15 -10
  159. package/dist/components/ExpandableCard/index.d.ts.map +1 -1
  160. package/dist/components/ExpandableCard/index.js +148 -140
  161. package/dist/components/ExpandableCard/styles.css.d.ts +9 -7
  162. package/dist/components/ExpandableCard/styles.css.d.ts.map +1 -1
  163. package/dist/components/ExpandableCard/styles.css.js +17 -9
  164. package/dist/components/ExpandableCard/styles.css.ts.vanilla.js +8 -0
  165. package/dist/components/FileInput/FileInputProvider.js +12 -8
  166. package/dist/components/FileInput/components/Button.js +29 -21
  167. package/dist/components/FileInput/components/List.d.ts.map +1 -1
  168. package/dist/components/FileInput/components/List.js +138 -127
  169. package/dist/components/FileInput/helpers.js +37 -33
  170. package/dist/components/FileInput/index.js +232 -224
  171. package/dist/components/FileInput/styles.css.d.ts +29 -27
  172. package/dist/components/FileInput/styles.css.d.ts.map +1 -1
  173. package/dist/components/FileInput/styles.css.js +58 -49
  174. package/dist/components/FileInput/styles.css.ts.vanilla.js +8 -0
  175. package/dist/components/GlobalAlert/GlobalAlertLink.js +27 -22
  176. package/dist/components/GlobalAlert/index.d.ts +2 -0
  177. package/dist/components/GlobalAlert/index.js +54 -49
  178. package/dist/components/GlobalAlert/styles.css.d.ts +4 -2
  179. package/dist/components/GlobalAlert/styles.css.d.ts.map +1 -1
  180. package/dist/components/GlobalAlert/styles.css.js +16 -8
  181. package/dist/components/GlobalAlert/styles.css.ts.vanilla.js +8 -0
  182. package/dist/components/InfiniteScroll/index.js +72 -71
  183. package/dist/components/Key/constants.js +15 -9
  184. package/dist/components/Key/index.js +44 -40
  185. package/dist/components/Key/styles.css.d.ts +27 -25
  186. package/dist/components/Key/styles.css.d.ts.map +1 -1
  187. package/dist/components/Key/styles.css.js +57 -51
  188. package/dist/components/Key/styles.css.ts.vanilla.js +8 -0
  189. package/dist/components/Label/index.js +69 -65
  190. package/dist/components/Label/styles.css.d.ts +3 -1
  191. package/dist/components/Label/styles.css.d.ts.map +1 -1
  192. package/dist/components/Label/styles.css.js +13 -7
  193. package/dist/components/Label/styles.css.ts.vanilla.js +8 -0
  194. package/dist/components/LineChart/CustomLegend.d.ts.map +1 -1
  195. package/dist/components/LineChart/CustomLegend.js +100 -91
  196. package/dist/components/LineChart/Tooltip.js +28 -22
  197. package/dist/components/LineChart/helpers.js +36 -32
  198. package/dist/components/LineChart/index.js +99 -94
  199. package/dist/components/LineChart/styles.css.d.ts +14 -12
  200. package/dist/components/LineChart/styles.css.d.ts.map +1 -1
  201. package/dist/components/LineChart/styles.css.js +24 -16
  202. package/dist/components/LineChart/styles.css.ts.vanilla.js +8 -0
  203. package/dist/components/Link/index.d.ts +2 -1
  204. package/dist/components/Link/index.d.ts.map +1 -1
  205. package/dist/components/Link/index.js +90 -86
  206. package/dist/components/Link/styles.css.d.ts +71 -69
  207. package/dist/components/Link/styles.css.d.ts.map +1 -1
  208. package/dist/components/Link/styles.css.js +82 -74
  209. package/dist/components/Link/styles.css.ts.vanilla.js +8 -0
  210. package/dist/components/List/Cell.js +41 -32
  211. package/dist/components/List/ColumnProvider.d.ts.map +1 -1
  212. package/dist/components/List/ColumnProvider.js +23 -12
  213. package/dist/components/List/HeaderCell.js +60 -52
  214. package/dist/components/List/HeaderRow.d.ts.map +1 -1
  215. package/dist/components/List/HeaderRow.js +39 -31
  216. package/dist/components/List/ListContext.js +209 -202
  217. package/dist/components/List/Row.d.ts +1 -0
  218. package/dist/components/List/Row.d.ts.map +1 -1
  219. package/dist/components/List/Row.js +153 -141
  220. package/dist/components/List/SelectBar.js +34 -27
  221. package/dist/components/List/SkeletonRows.d.ts.map +1 -1
  222. package/dist/components/List/SkeletonRows.js +35 -26
  223. package/dist/components/List/index.d.ts.map +1 -1
  224. package/dist/components/List/index.js +71 -59
  225. package/dist/components/List/styles.css.d.ts +27 -25
  226. package/dist/components/List/styles.css.d.ts.map +1 -1
  227. package/dist/components/List/styles.css.js +48 -40
  228. package/dist/components/List/styles.css.ts.vanilla.js +8 -0
  229. package/dist/components/List/variables.css.js +18 -12
  230. package/dist/components/List/variables.css.ts.vanilla.js +8 -0
  231. package/dist/components/Loader/constants.js +15 -9
  232. package/dist/components/Loader/index.js +56 -52
  233. package/dist/components/Loader/styles.css.d.ts +5 -3
  234. package/dist/components/Loader/styles.css.d.ts.map +1 -1
  235. package/dist/components/Loader/styles.css.js +13 -5
  236. package/dist/components/Loader/styles.css.ts.vanilla.js +8 -0
  237. package/dist/components/Menu/MenuContent.d.ts.map +1 -1
  238. package/dist/components/Menu/MenuContent.js +193 -183
  239. package/dist/components/Menu/MenuProvider.js +45 -41
  240. package/dist/components/Menu/components/Group.js +31 -24
  241. package/dist/components/Menu/components/Item.js +150 -141
  242. package/dist/components/Menu/helpers.js +31 -30
  243. package/dist/components/Menu/index.js +36 -26
  244. package/dist/components/Menu/styles.css.d.ts +40 -38
  245. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  246. package/dist/components/Menu/styles.css.js +80 -72
  247. package/dist/components/Menu/styles.css.ts.vanilla.js +8 -0
  248. package/dist/components/Meter/index.js +52 -49
  249. package/dist/components/Meter/styles.css.d.ts +5 -3
  250. package/dist/components/Meter/styles.css.d.ts.map +1 -1
  251. package/dist/components/Meter/styles.css.js +14 -6
  252. package/dist/components/Meter/styles.css.ts.vanilla.js +8 -0
  253. package/dist/components/Modal/ModalContent.d.ts +1 -1
  254. package/dist/components/Modal/ModalContent.d.ts.map +1 -1
  255. package/dist/components/Modal/ModalContent.js +48 -40
  256. package/dist/components/Modal/ModalProvider.js +42 -38
  257. package/dist/components/Modal/components/Dialog.d.ts +1 -1
  258. package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
  259. package/dist/components/Modal/components/Dialog.js +166 -157
  260. package/dist/components/Modal/components/Disclosure.js +39 -35
  261. package/dist/components/Modal/index.d.ts +3 -1
  262. package/dist/components/Modal/index.d.ts.map +1 -1
  263. package/dist/components/Modal/index.js +91 -86
  264. package/dist/components/Modal/styles.css.d.ts +72 -70
  265. package/dist/components/Modal/styles.css.d.ts.map +1 -1
  266. package/dist/components/Modal/styles.css.js +86 -73
  267. package/dist/components/Modal/styles.css.ts.vanilla.js +8 -0
  268. package/dist/components/Modal/types.d.ts +1 -0
  269. package/dist/components/Modal/types.d.ts.map +1 -1
  270. package/dist/components/Notice/index.js +22 -19
  271. package/dist/components/Notice/styles.css.d.ts +3 -1
  272. package/dist/components/Notice/styles.css.d.ts.map +1 -1
  273. package/dist/components/Notice/styles.css.js +9 -3
  274. package/dist/components/Notice/styles.css.ts.vanilla.js +8 -0
  275. package/dist/components/Notification/Notification.js +39 -31
  276. package/dist/components/Notification/NotificationContainer.js +21 -16
  277. package/dist/components/Notification/index.js +10 -0
  278. package/dist/components/Notification/styles.css.d.ts +3 -1
  279. package/dist/components/Notification/styles.css.d.ts.map +1 -1
  280. package/dist/components/Notification/styles.css.js +9 -3
  281. package/dist/components/Notification/styles.css.ts.vanilla.js +8 -0
  282. package/dist/components/NumberInput/index.d.ts.map +1 -1
  283. package/dist/components/NumberInput/index.js +202 -194
  284. package/dist/components/NumberInput/styles.css.d.ts +105 -95
  285. package/dist/components/NumberInput/styles.css.d.ts.map +1 -1
  286. package/dist/components/NumberInput/styles.css.js +82 -69
  287. package/dist/components/NumberInput/styles.css.ts.vanilla.js +8 -0
  288. package/dist/components/Pagination/PaginationButtons.d.ts.map +1 -1
  289. package/dist/components/Pagination/PaginationButtons.js +96 -87
  290. package/dist/components/Pagination/PerPage.js +72 -65
  291. package/dist/components/Pagination/getPageNumbers.js +20 -23
  292. package/dist/components/Pagination/index.js +48 -45
  293. package/dist/components/Pagination/styles.css.d.ts +5 -3
  294. package/dist/components/Pagination/styles.css.d.ts.map +1 -1
  295. package/dist/components/Pagination/styles.css.js +19 -11
  296. package/dist/components/Pagination/styles.css.ts.vanilla.js +8 -0
  297. package/dist/components/PasswordCheck/index.js +35 -32
  298. package/dist/components/PasswordCheck/styles.css.d.ts +3 -1
  299. package/dist/components/PasswordCheck/styles.css.d.ts.map +1 -1
  300. package/dist/components/PasswordCheck/styles.css.js +9 -3
  301. package/dist/components/PasswordCheck/styles.css.ts.vanilla.js +8 -0
  302. package/dist/components/PieChart/Legends.d.ts.map +1 -1
  303. package/dist/components/PieChart/Legends.js +56 -49
  304. package/dist/components/PieChart/Tooltip.js +47 -41
  305. package/dist/components/PieChart/index.d.ts.map +1 -1
  306. package/dist/components/PieChart/index.js +98 -93
  307. package/dist/components/PieChart/styles.css.d.ts +45 -43
  308. package/dist/components/PieChart/styles.css.d.ts.map +1 -1
  309. package/dist/components/PieChart/styles.css.js +57 -49
  310. package/dist/components/PieChart/styles.css.ts.vanilla.js +8 -0
  311. package/dist/components/Popover/index.js +88 -82
  312. package/dist/components/Popover/styles.css.d.ts +31 -29
  313. package/dist/components/Popover/styles.css.d.ts.map +1 -1
  314. package/dist/components/Popover/styles.css.js +26 -18
  315. package/dist/components/Popover/styles.css.ts.vanilla.js +8 -0
  316. package/dist/components/Popup/helpers.js +235 -251
  317. package/dist/components/Popup/index.d.ts.map +1 -1
  318. package/dist/components/Popup/index.js +325 -322
  319. package/dist/components/Popup/styles.css.d.ts +40 -38
  320. package/dist/components/Popup/styles.css.d.ts.map +1 -1
  321. package/dist/components/Popup/styles.css.js +42 -32
  322. package/dist/components/Popup/styles.css.ts.vanilla.js +8 -0
  323. package/dist/components/Popup/variables.css.js +14 -10
  324. package/dist/components/Popup/variables.css.ts.vanilla.js +8 -0
  325. package/dist/components/ProgressBar/index.d.ts.map +1 -1
  326. package/dist/components/ProgressBar/index.js +76 -70
  327. package/dist/components/ProgressBar/styles.css.d.ts +6 -4
  328. package/dist/components/ProgressBar/styles.css.d.ts.map +1 -1
  329. package/dist/components/ProgressBar/styles.css.js +26 -16
  330. package/dist/components/ProgressBar/styles.css.ts.vanilla.js +8 -0
  331. package/dist/components/ProgressBar/variables.css.js +7 -3
  332. package/dist/components/ProgressBar/variables.css.ts.vanilla.js +8 -0
  333. package/dist/components/Radio/index.d.ts.map +1 -1
  334. package/dist/components/Radio/index.js +96 -91
  335. package/dist/components/Radio/styles.css.d.ts +12 -10
  336. package/dist/components/Radio/styles.css.d.ts.map +1 -1
  337. package/dist/components/Radio/styles.css.js +26 -15
  338. package/dist/components/Radio/styles.css.ts.vanilla.js +8 -0
  339. package/dist/components/RadioGroup/index.js +104 -98
  340. package/dist/components/RadioGroup/styles.css.d.ts +3 -1
  341. package/dist/components/RadioGroup/styles.css.d.ts.map +1 -1
  342. package/dist/components/RadioGroup/styles.css.js +9 -3
  343. package/dist/components/RadioGroup/styles.css.ts.vanilla.js +8 -0
  344. package/dist/components/Row/index.js +23 -19
  345. package/dist/components/Row/styles.css.d.ts +3 -1
  346. package/dist/components/Row/styles.css.d.ts.map +1 -1
  347. package/dist/components/Row/styles.css.js +491 -485
  348. package/dist/components/Row/styles.css.ts.vanilla.js +8 -0
  349. package/dist/components/Row/variables.css.js +24 -18
  350. package/dist/components/Row/variables.css.ts.vanilla.js +8 -0
  351. package/dist/components/SearchInput/KeyGroup.d.ts.map +1 -1
  352. package/dist/components/SearchInput/KeyGroup.js +22 -15
  353. package/dist/components/SearchInput/index.js +198 -195
  354. package/dist/components/SearchInput/styles.css.d.ts +5 -3
  355. package/dist/components/SearchInput/styles.css.d.ts.map +1 -1
  356. package/dist/components/SearchInput/styles.css.js +13 -5
  357. package/dist/components/SearchInput/styles.css.ts.vanilla.js +8 -0
  358. package/dist/components/SelectInput/SelectInputProvider.js +165 -161
  359. package/dist/components/SelectInput/components/Dropdown.d.ts.map +1 -1
  360. package/dist/components/SelectInput/components/Dropdown.js +669 -651
  361. package/dist/components/SelectInput/components/DropdownOption.d.ts.map +1 -1
  362. package/dist/components/SelectInput/components/DropdownOption.js +121 -113
  363. package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +1 -1
  364. package/dist/components/SelectInput/components/SearchBarDropdown.js +102 -93
  365. package/dist/components/SelectInput/components/SelectBar.d.ts.map +1 -1
  366. package/dist/components/SelectInput/components/SelectBar.js +289 -274
  367. package/dist/components/SelectInput/components/dropdown.css.js +33 -42
  368. package/dist/components/SelectInput/components/dropdown.css.ts.vanilla.js +8 -0
  369. package/dist/components/SelectInput/components/selectBar.css.d.ts +1 -1
  370. package/dist/components/SelectInput/components/selectBar.css.d.ts.map +1 -1
  371. package/dist/components/SelectInput/components/selectBar.css.js +50 -54
  372. package/dist/components/SelectInput/components/selectBar.css.ts.vanilla.js +8 -0
  373. package/dist/components/SelectInput/constants.js +18 -12
  374. package/dist/components/SelectInput/findOptionInOptions.js +12 -8
  375. package/dist/components/SelectInput/index.js +112 -104
  376. package/dist/components/SelectInput/styles.css.d.ts +164 -2
  377. package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
  378. package/dist/components/SelectInput/styles.css.js +115 -4
  379. package/dist/components/SelectInput/styles.css.ts.vanilla.js +8 -0
  380. package/dist/components/SelectableCard/IllustrationContainer.d.ts +6 -2
  381. package/dist/components/SelectableCard/IllustrationContainer.d.ts.map +1 -1
  382. package/dist/components/SelectableCard/IllustrationContainer.js +43 -55
  383. package/dist/components/SelectableCard/MultiStateInput.js +77 -68
  384. package/dist/components/SelectableCard/SelectableCard.d.ts.map +1 -1
  385. package/dist/components/SelectableCard/SelectableCard.js +113 -106
  386. package/dist/components/SelectableCard/index.js +11 -0
  387. package/dist/components/SelectableCard/styles.css.d.ts +28 -26
  388. package/dist/components/SelectableCard/styles.css.d.ts.map +1 -1
  389. package/dist/components/SelectableCard/styles.css.js +36 -28
  390. package/dist/components/SelectableCard/styles.css.ts.vanilla.js +8 -0
  391. package/dist/components/SelectableCard/types.d.ts +8 -5
  392. package/dist/components/SelectableCard/types.d.ts.map +1 -1
  393. package/dist/components/SelectableCard/variables.css.js +10 -4
  394. package/dist/components/SelectableCard/variables.css.ts.vanilla.js +8 -0
  395. package/dist/components/SelectableCardGroup/index.js +101 -93
  396. package/dist/components/SelectableCardGroup/styles.css.d.ts +3 -1
  397. package/dist/components/SelectableCardGroup/styles.css.d.ts.map +1 -1
  398. package/dist/components/SelectableCardGroup/styles.css.js +9 -3
  399. package/dist/components/SelectableCardGroup/styles.css.ts.vanilla.js +8 -0
  400. package/dist/components/SelectableCardOptionGroup/Provider.js +20 -16
  401. package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.d.ts.map +1 -1
  402. package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +73 -68
  403. package/dist/components/SelectableCardOptionGroup/components/Image.d.ts.map +1 -1
  404. package/dist/components/SelectableCardOptionGroup/components/Image.js +20 -15
  405. package/dist/components/SelectableCardOptionGroup/components/Option.d.ts.map +1 -1
  406. package/dist/components/SelectableCardOptionGroup/components/Option.js +86 -73
  407. package/dist/components/SelectableCardOptionGroup/index.js +9 -0
  408. package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +10 -8
  409. package/dist/components/SelectableCardOptionGroup/styles.css.d.ts.map +1 -1
  410. package/dist/components/SelectableCardOptionGroup/styles.css.js +18 -10
  411. package/dist/components/SelectableCardOptionGroup/styles.css.ts.vanilla.js +8 -0
  412. package/dist/components/Separator/index.d.ts.map +1 -1
  413. package/dist/components/Separator/index.js +44 -42
  414. package/dist/components/Separator/styles.css.d.ts +127 -66
  415. package/dist/components/Separator/styles.css.d.ts.map +1 -1
  416. package/dist/components/Separator/styles.css.js +60 -50
  417. package/dist/components/Separator/styles.css.ts.vanilla.js +8 -0
  418. package/dist/components/Skeleton/Block.js +18 -11
  419. package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
  420. package/dist/components/Skeleton/Blocks.js +21 -12
  421. package/dist/components/Skeleton/BoxWithIcon.d.ts.map +1 -1
  422. package/dist/components/Skeleton/BoxWithIcon.js +21 -12
  423. package/dist/components/Skeleton/Donut.d.ts.map +1 -1
  424. package/dist/components/Skeleton/Donut.js +30 -22
  425. package/dist/components/Skeleton/IconSkeleton.d.ts.map +1 -1
  426. package/dist/components/Skeleton/IconSkeleton.js +9 -4
  427. package/dist/components/Skeleton/Line.d.ts.map +1 -1
  428. package/dist/components/Skeleton/Line.js +20 -13
  429. package/dist/components/Skeleton/List.d.ts.map +1 -1
  430. package/dist/components/Skeleton/List.js +20 -14
  431. package/dist/components/Skeleton/Slider.d.ts.map +1 -1
  432. package/dist/components/Skeleton/Slider.js +17 -10
  433. package/dist/components/Skeleton/Square.d.ts.map +1 -1
  434. package/dist/components/Skeleton/Square.js +9 -4
  435. package/dist/components/Skeleton/index.js +51 -43
  436. package/dist/components/Skeleton/styles.css.d.ts +22 -2
  437. package/dist/components/Skeleton/styles.css.d.ts.map +1 -1
  438. package/dist/components/Skeleton/styles.css.js +32 -4
  439. package/dist/components/Skeleton/styles.css.ts.vanilla.js +8 -0
  440. package/dist/components/Skeleton/stylesVariants.css.js +12 -24
  441. package/dist/components/Skeleton/stylesVariants.css.ts.vanilla.js +8 -0
  442. package/dist/components/Slider/components/DoubleSlider.d.ts +1 -1
  443. package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
  444. package/dist/components/Slider/components/DoubleSlider.js +289 -272
  445. package/dist/components/Slider/components/Options.d.ts +2 -1
  446. package/dist/components/Slider/components/Options.d.ts.map +1 -1
  447. package/dist/components/Slider/components/Options.js +39 -33
  448. package/dist/components/Slider/components/SingleSlider.d.ts +1 -1
  449. package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
  450. package/dist/components/Slider/components/SingleSlider.js +203 -191
  451. package/dist/components/Slider/constant.js +8 -0
  452. package/dist/components/Slider/index.d.ts +1 -1
  453. package/dist/components/Slider/index.d.ts.map +1 -1
  454. package/dist/components/Slider/index.js +104 -98
  455. package/dist/components/Slider/styles.css.d.ts +145 -141
  456. package/dist/components/Slider/styles.css.d.ts.map +1 -1
  457. package/dist/components/Slider/styles.css.js +110 -100
  458. package/dist/components/Slider/styles.css.ts.vanilla.js +8 -0
  459. package/dist/components/Slider/types.d.ts +4 -0
  460. package/dist/components/Slider/types.d.ts.map +1 -1
  461. package/dist/components/Snippet/index.d.ts.map +1 -1
  462. package/dist/components/Snippet/index.js +117 -110
  463. package/dist/components/Snippet/styles.css.d.ts +42 -40
  464. package/dist/components/Snippet/styles.css.d.ts.map +1 -1
  465. package/dist/components/Snippet/styles.css.js +58 -50
  466. package/dist/components/Snippet/styles.css.ts.vanilla.js +8 -0
  467. package/dist/components/Stack/index.d.ts.map +1 -1
  468. package/dist/components/Stack/index.js +62 -60
  469. package/dist/components/Stack/styles.css.d.ts +3 -1
  470. package/dist/components/Stack/styles.css.d.ts.map +1 -1
  471. package/dist/components/Stack/styles.css.js +578 -572
  472. package/dist/components/Stack/styles.css.ts.vanilla.js +8 -0
  473. package/dist/components/Stack/variables.css.js +12 -6
  474. package/dist/components/Stack/variables.css.ts.vanilla.js +8 -0
  475. package/dist/components/Status/index.js +19 -16
  476. package/dist/components/Status/styles.css.d.ts +22 -20
  477. package/dist/components/Status/styles.css.d.ts.map +1 -1
  478. package/dist/components/Status/styles.css.js +41 -32
  479. package/dist/components/Status/styles.css.ts.vanilla.js +8 -0
  480. package/dist/components/StepList/index.js +31 -29
  481. package/dist/components/StepList/styles.css.d.ts +23 -21
  482. package/dist/components/StepList/styles.css.d.ts.map +1 -1
  483. package/dist/components/StepList/styles.css.js +28 -20
  484. package/dist/components/StepList/styles.css.ts.vanilla.js +8 -0
  485. package/dist/components/Stepper/Step.d.ts.map +1 -1
  486. package/dist/components/Stepper/Step.js +85 -76
  487. package/dist/components/Stepper/StepperProvider.js +39 -38
  488. package/dist/components/Stepper/index.js +51 -43
  489. package/dist/components/Stepper/styles.css.d.ts +101 -87
  490. package/dist/components/Stepper/styles.css.d.ts.map +1 -1
  491. package/dist/components/Stepper/styles.css.js +155 -126
  492. package/dist/components/Stepper/styles.css.ts.vanilla.js +8 -0
  493. package/dist/components/SwitchButton/FocusOverlay.js +16 -9
  494. package/dist/components/SwitchButton/Option.d.ts.map +1 -1
  495. package/dist/components/SwitchButton/Option.js +47 -39
  496. package/dist/components/SwitchButton/SwitchButtonContext.js +12 -8
  497. package/dist/components/SwitchButton/constant.js +8 -0
  498. package/dist/components/SwitchButton/index.js +140 -131
  499. package/dist/components/SwitchButton/styles.css.d.ts +7 -8
  500. package/dist/components/SwitchButton/styles.css.d.ts.map +1 -1
  501. package/dist/components/SwitchButton/styles.css.js +21 -13
  502. package/dist/components/SwitchButton/styles.css.ts.vanilla.js +8 -0
  503. package/dist/components/Table/Body.js +7 -3
  504. package/dist/components/Table/Cell.js +35 -27
  505. package/dist/components/Table/Header.d.ts +2 -1
  506. package/dist/components/Table/Header.d.ts.map +1 -1
  507. package/dist/components/Table/Header.js +11 -6
  508. package/dist/components/Table/HeaderCell.d.ts.map +1 -1
  509. package/dist/components/Table/HeaderCell.js +69 -60
  510. package/dist/components/Table/HeaderRow.js +35 -26
  511. package/dist/components/Table/Row.d.ts.map +1 -1
  512. package/dist/components/Table/Row.js +123 -111
  513. package/dist/components/Table/SelectBar.js +34 -27
  514. package/dist/components/Table/SkeletonRows.d.ts.map +1 -1
  515. package/dist/components/Table/SkeletonRows.js +24 -17
  516. package/dist/components/Table/TableContext.js +56 -49
  517. package/dist/components/Table/constants.js +8 -0
  518. package/dist/components/Table/index.d.ts +2 -0
  519. package/dist/components/Table/index.d.ts.map +1 -1
  520. package/dist/components/Table/index.js +85 -69
  521. package/dist/components/Table/styles.css.d.ts +70 -62
  522. package/dist/components/Table/styles.css.d.ts.map +1 -1
  523. package/dist/components/Table/styles.css.js +61 -47
  524. package/dist/components/Table/styles.css.ts.vanilla.js +8 -0
  525. package/dist/components/Table/variables.css.js +13 -7
  526. package/dist/components/Table/variables.css.ts.vanilla.js +8 -0
  527. package/dist/components/Tabs/Tab.d.ts.map +1 -1
  528. package/dist/components/Tabs/Tab.js +95 -83
  529. package/dist/components/Tabs/TabMenu.js +46 -38
  530. package/dist/components/Tabs/TabMenuItem.js +35 -26
  531. package/dist/components/Tabs/TabsContext.js +8 -4
  532. package/dist/components/Tabs/index.js +85 -77
  533. package/dist/components/Tabs/styles.css.d.ts +11 -9
  534. package/dist/components/Tabs/styles.css.d.ts.map +1 -1
  535. package/dist/components/Tabs/styles.css.js +22 -14
  536. package/dist/components/Tabs/styles.css.ts.vanilla.js +8 -0
  537. package/dist/components/Tag/index.d.ts +21 -8
  538. package/dist/components/Tag/index.d.ts.map +1 -1
  539. package/dist/components/Tag/index.js +114 -72
  540. package/dist/components/Tag/styles.css.d.ts +41 -26
  541. package/dist/components/Tag/styles.css.d.ts.map +1 -1
  542. package/dist/components/Tag/styles.css.js +201 -54
  543. package/dist/components/Tag/styles.css.ts.vanilla.js +8 -0
  544. package/dist/components/TagInput/index.d.ts.map +1 -1
  545. package/dist/components/TagInput/index.js +196 -187
  546. package/dist/components/TagInput/styles.css.d.ts +20 -18
  547. package/dist/components/TagInput/styles.css.d.ts.map +1 -1
  548. package/dist/components/TagInput/styles.css.js +22 -14
  549. package/dist/components/TagInput/styles.css.ts.vanilla.js +8 -0
  550. package/dist/components/TagList/constant.js +7 -2
  551. package/dist/components/TagList/index.d.ts.map +1 -1
  552. package/dist/components/TagList/index.js +170 -164
  553. package/dist/components/TagList/styles.css.d.ts +12 -10
  554. package/dist/components/TagList/styles.css.d.ts.map +1 -1
  555. package/dist/components/TagList/styles.css.js +20 -12
  556. package/dist/components/TagList/styles.css.ts.vanilla.js +8 -0
  557. package/dist/components/Text/index.js +50 -43
  558. package/dist/components/Text/style.css.d.ts +48 -1
  559. package/dist/components/Text/style.css.d.ts.map +1 -1
  560. package/dist/components/Text/style.css.js +450 -442
  561. package/dist/components/Text/style.css.ts.vanilla.js +8 -0
  562. package/dist/components/Text/variables.css.js +10 -6
  563. package/dist/components/Text/variables.css.ts.vanilla.js +8 -0
  564. package/dist/components/TextArea/index.d.ts.map +1 -1
  565. package/dist/components/TextArea/index.js +154 -144
  566. package/dist/components/TextArea/styles.css.d.ts +14 -12
  567. package/dist/components/TextArea/styles.css.d.ts.map +1 -1
  568. package/dist/components/TextArea/styles.css.js +24 -16
  569. package/dist/components/TextArea/styles.css.ts.vanilla.js +8 -0
  570. package/dist/components/TextInput/index.d.ts.map +1 -1
  571. package/dist/components/TextInput/index.js +202 -196
  572. package/dist/components/TextInput/styles.css.d.ts +9 -7
  573. package/dist/components/TextInput/styles.css.d.ts.map +1 -1
  574. package/dist/components/TextInput/styles.css.js +23 -14
  575. package/dist/components/TextInput/styles.css.ts.vanilla.js +8 -0
  576. package/dist/components/TimeInput/constants.js +19 -13
  577. package/dist/components/TimeInput/helpers.js +46 -42
  578. package/dist/components/TimeInput/index.js +304 -296
  579. package/dist/components/TimeInput/styles.css.d.ts +69 -67
  580. package/dist/components/TimeInput/styles.css.d.ts.map +1 -1
  581. package/dist/components/TimeInput/styles.css.js +34 -26
  582. package/dist/components/TimeInput/styles.css.ts.vanilla.js +8 -0
  583. package/dist/components/Toaster/Toaster.js +34 -27
  584. package/dist/components/Toaster/ToasterContainer.js +27 -29
  585. package/dist/components/Toaster/components/CloseButton.js +17 -11
  586. package/dist/components/Toaster/components/Content.js +19 -13
  587. package/dist/components/Toaster/components/Link.d.ts +1 -0
  588. package/dist/components/Toaster/components/Link.d.ts.map +1 -1
  589. package/dist/components/Toaster/constants.js +8 -2
  590. package/dist/components/Toaster/index.d.ts +1 -0
  591. package/dist/components/Toaster/index.d.ts.map +1 -1
  592. package/dist/components/Toaster/index.js +10 -0
  593. package/dist/components/Toaster/styles.css.d.ts +5 -3
  594. package/dist/components/Toaster/styles.css.d.ts.map +1 -1
  595. package/dist/components/Toaster/styles.css.js +13 -4
  596. package/dist/components/Toaster/styles.css.ts.vanilla.js +8 -0
  597. package/dist/components/Toggle/index.js +93 -84
  598. package/dist/components/Toggle/styles.css.d.ts +83 -81
  599. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  600. package/dist/components/Toggle/styles.css.js +54 -46
  601. package/dist/components/Toggle/styles.css.ts.vanilla.js +8 -0
  602. package/dist/components/ToggleGroup/index.d.ts.map +1 -1
  603. package/dist/components/ToggleGroup/index.js +100 -94
  604. package/dist/components/ToggleGroup/styles.css.d.ts +3 -1
  605. package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
  606. package/dist/components/ToggleGroup/styles.css.js +9 -3
  607. package/dist/components/ToggleGroup/styles.css.ts.vanilla.js +8 -0
  608. package/dist/components/Tooltip/index.js +31 -29
  609. package/dist/components/Tooltip/styles.css.d.ts +3 -1
  610. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  611. package/dist/components/Tooltip/styles.css.js +9 -3
  612. package/dist/components/Tooltip/styles.css.ts.vanilla.js +8 -0
  613. package/dist/components/TreeMapChart/Tooltip.js +24 -18
  614. package/dist/components/TreeMapChart/index.js +54 -50
  615. package/dist/components/TreeMapChart/styles.css.d.ts +4 -2
  616. package/dist/components/TreeMapChart/styles.css.d.ts.map +1 -1
  617. package/dist/components/TreeMapChart/styles.css.js +12 -4
  618. package/dist/components/TreeMapChart/styles.css.ts.vanilla.js +8 -0
  619. package/dist/components/UnitInput/index.d.ts.map +1 -1
  620. package/dist/components/UnitInput/index.js +134 -124
  621. package/dist/components/UnitInput/styles.css.d.ts +8 -6
  622. package/dist/components/UnitInput/styles.css.d.ts.map +1 -1
  623. package/dist/components/UnitInput/styles.css.js +31 -23
  624. package/dist/components/UnitInput/styles.css.ts.vanilla.js +8 -0
  625. package/dist/components/VerificationCode/index.d.ts.map +1 -1
  626. package/dist/components/VerificationCode/index.js +153 -149
  627. package/dist/components/VerificationCode/styles.css.d.ts +5 -3
  628. package/dist/components/VerificationCode/styles.css.d.ts.map +1 -1
  629. package/dist/components/VerificationCode/styles.css.js +18 -10
  630. package/dist/components/VerificationCode/styles.css.ts.vanilla.js +8 -0
  631. package/dist/components/compositions/CodeEditor/index.d.ts.map +1 -1
  632. package/dist/components/compositions/CodeEditor/index.js +123 -113
  633. package/dist/components/compositions/CodeEditor/styles.css.d.ts +17 -15
  634. package/dist/components/compositions/CodeEditor/styles.css.d.ts.map +1 -1
  635. package/dist/components/compositions/CodeEditor/styles.css.js +32 -24
  636. package/dist/components/compositions/CodeEditor/styles.css.ts.vanilla.js +8 -0
  637. package/dist/components/compositions/ContentCard/Content.d.ts.map +1 -1
  638. package/dist/components/compositions/ContentCard/Content.js +62 -55
  639. package/dist/components/compositions/ContentCard/Skeleton.d.ts.map +1 -1
  640. package/dist/components/compositions/ContentCard/Skeleton.js +32 -25
  641. package/dist/components/compositions/ContentCard/index.d.ts.map +1 -1
  642. package/dist/components/compositions/ContentCard/index.js +71 -68
  643. package/dist/components/compositions/ContentCard/styles.css.d.ts +22 -17
  644. package/dist/components/compositions/ContentCard/styles.css.d.ts.map +1 -1
  645. package/dist/components/compositions/ContentCard/styles.css.js +41 -30
  646. package/dist/components/compositions/ContentCard/styles.css.ts.vanilla.js +8 -0
  647. package/dist/components/compositions/ContentCardGroup/Card.d.ts.map +1 -1
  648. package/dist/components/compositions/ContentCardGroup/Card.js +57 -50
  649. package/dist/components/compositions/ContentCardGroup/SkeletonCard.d.ts.map +1 -1
  650. package/dist/components/compositions/ContentCardGroup/SkeletonCard.js +30 -23
  651. package/dist/components/compositions/ContentCardGroup/index.js +22 -14
  652. package/dist/components/compositions/ContentCardGroup/styles.css.d.ts +9 -7
  653. package/dist/components/compositions/ContentCardGroup/styles.css.d.ts.map +1 -1
  654. package/dist/components/compositions/ContentCardGroup/styles.css.js +17 -9
  655. package/dist/components/compositions/ContentCardGroup/styles.css.ts.vanilla.js +8 -0
  656. package/dist/components/compositions/Conversation/index.d.ts.map +1 -1
  657. package/dist/components/compositions/Conversation/index.js +54 -46
  658. package/dist/components/compositions/Conversation/styles.css.d.ts +9 -7
  659. package/dist/components/compositions/Conversation/styles.css.d.ts.map +1 -1
  660. package/dist/components/compositions/Conversation/styles.css.js +26 -18
  661. package/dist/components/compositions/Conversation/styles.css.ts.vanilla.js +8 -0
  662. package/dist/components/compositions/CustomerSatisfaction/assets/1-5.js +8 -2
  663. package/dist/components/compositions/CustomerSatisfaction/assets/1-5NB.js +8 -2
  664. package/dist/components/compositions/CustomerSatisfaction/assets/2-5.js +8 -2
  665. package/dist/components/compositions/CustomerSatisfaction/assets/2-5NB.js +8 -2
  666. package/dist/components/compositions/CustomerSatisfaction/assets/3-5.js +8 -2
  667. package/dist/components/compositions/CustomerSatisfaction/assets/3-5NB.js +8 -2
  668. package/dist/components/compositions/CustomerSatisfaction/assets/4-5.js +8 -2
  669. package/dist/components/compositions/CustomerSatisfaction/assets/4-5NB.js +8 -2
  670. package/dist/components/compositions/CustomerSatisfaction/assets/5-5.js +8 -2
  671. package/dist/components/compositions/CustomerSatisfaction/assets/5-5NB.js +8 -2
  672. package/dist/components/compositions/CustomerSatisfaction/index.d.ts.map +1 -1
  673. package/dist/components/compositions/CustomerSatisfaction/index.js +99 -82
  674. package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts +18 -16
  675. package/dist/components/compositions/CustomerSatisfaction/styles.css.d.ts.map +1 -1
  676. package/dist/components/compositions/CustomerSatisfaction/styles.css.js +24 -14
  677. package/dist/components/compositions/CustomerSatisfaction/styles.css.ts.vanilla.js +8 -0
  678. package/dist/components/compositions/EstimateCost/CompactEstimateCost.js +33 -26
  679. package/dist/components/compositions/EstimateCost/Components/ContentComponents.d.ts.map +1 -1
  680. package/dist/components/compositions/EstimateCost/Components/ContentComponents.js +114 -103
  681. package/dist/components/compositions/EstimateCost/Components/CustomUnitInput.js +38 -32
  682. package/dist/components/compositions/EstimateCost/Components/Item.d.ts.map +1 -1
  683. package/dist/components/compositions/EstimateCost/Components/Item.js +159 -148
  684. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.d.ts.map +1 -1
  685. package/dist/components/compositions/EstimateCost/Components/ItemLeftSide.js +80 -67
  686. package/dist/components/compositions/EstimateCost/Components/ItemPrice.js +56 -49
  687. package/dist/components/compositions/EstimateCost/Components/LineThrough.js +19 -12
  688. package/dist/components/compositions/EstimateCost/Components/NumberInput.js +36 -28
  689. package/dist/components/compositions/EstimateCost/Components/Region.js +37 -29
  690. package/dist/components/compositions/EstimateCost/Components/Regular.d.ts.map +1 -1
  691. package/dist/components/compositions/EstimateCost/Components/Regular.js +20 -14
  692. package/dist/components/compositions/EstimateCost/Components/Strong.js +14 -9
  693. package/dist/components/compositions/EstimateCost/Components/Unit.d.ts.map +1 -1
  694. package/dist/components/compositions/EstimateCost/Components/Unit.js +52 -43
  695. package/dist/components/compositions/EstimateCost/Components/Zone.js +36 -28
  696. package/dist/components/compositions/EstimateCost/Components/components.css.d.ts +12 -12
  697. package/dist/components/compositions/EstimateCost/Components/components.css.d.ts.map +1 -1
  698. package/dist/components/compositions/EstimateCost/Components/components.css.js +63 -65
  699. package/dist/components/compositions/EstimateCost/Components/components.css.ts.vanilla.js +8 -0
  700. package/dist/components/compositions/EstimateCost/EstimateCostContent.d.ts.map +1 -1
  701. package/dist/components/compositions/EstimateCost/EstimateCostContent.js +203 -186
  702. package/dist/components/compositions/EstimateCost/EstimateCostProvider.js +31 -25
  703. package/dist/components/compositions/EstimateCost/OverlayComponent.d.ts.map +1 -1
  704. package/dist/components/compositions/EstimateCost/OverlayComponent.js +101 -90
  705. package/dist/components/compositions/EstimateCost/OverlayContext.js +11 -7
  706. package/dist/components/compositions/EstimateCost/constants.js +29 -23
  707. package/dist/components/compositions/EstimateCost/helper.js +12 -7
  708. package/dist/components/compositions/EstimateCost/index.js +106 -86
  709. package/dist/components/compositions/EstimateCost/locales/en.js +28 -22
  710. package/dist/components/compositions/EstimateCost/styles.css.d.ts +150 -71
  711. package/dist/components/compositions/EstimateCost/styles.css.d.ts.map +1 -1
  712. package/dist/components/compositions/EstimateCost/styles.css.js +142 -66
  713. package/dist/components/compositions/EstimateCost/styles.css.ts.vanilla.js +8 -0
  714. package/dist/components/compositions/FAQ/index.d.ts +3 -5
  715. package/dist/components/compositions/FAQ/index.d.ts.map +1 -1
  716. package/dist/components/compositions/FAQ/index.js +20 -15
  717. package/dist/components/compositions/FAQ/styles.css.d.ts +3 -1
  718. package/dist/components/compositions/FAQ/styles.css.d.ts.map +1 -1
  719. package/dist/components/compositions/FAQ/styles.css.js +9 -3
  720. package/dist/components/compositions/FAQ/styles.css.ts.vanilla.js +8 -0
  721. package/dist/components/compositions/InfoTable/Context.js +7 -2
  722. package/dist/components/compositions/InfoTable/components/Cell.d.ts +1 -2
  723. package/dist/components/compositions/InfoTable/components/Cell.d.ts.map +1 -1
  724. package/dist/components/compositions/InfoTable/components/Cell.js +25 -23
  725. package/dist/components/compositions/InfoTable/components/CellWithCopyButton.d.ts +18 -0
  726. package/dist/components/compositions/InfoTable/components/CellWithCopyButton.d.ts.map +1 -0
  727. package/dist/components/compositions/InfoTable/components/CellWithCopyButton.js +42 -0
  728. package/dist/components/compositions/InfoTable/components/Row.js +23 -15
  729. package/dist/components/compositions/InfoTable/index.d.ts +20 -11
  730. package/dist/components/compositions/InfoTable/index.d.ts.map +1 -1
  731. package/dist/components/compositions/InfoTable/index.js +34 -21
  732. package/dist/components/compositions/InfoTable/styles.css.d.ts +8 -6
  733. package/dist/components/compositions/InfoTable/styles.css.d.ts.map +1 -1
  734. package/dist/components/compositions/InfoTable/styles.css.js +17 -9
  735. package/dist/components/compositions/InfoTable/styles.css.ts.vanilla.js +8 -0
  736. package/dist/components/compositions/Navigation/Footer.d.ts.map +1 -1
  737. package/dist/components/compositions/Navigation/Footer.js +62 -54
  738. package/dist/components/compositions/Navigation/Header.js +22 -15
  739. package/dist/components/compositions/Navigation/NavigationContent.d.ts.map +1 -1
  740. package/dist/components/compositions/Navigation/NavigationContent.js +105 -93
  741. package/dist/components/compositions/Navigation/NavigationProvider.js +121 -113
  742. package/dist/components/compositions/Navigation/animations.css.ts.vanilla.js +8 -0
  743. package/dist/components/compositions/Navigation/components/Group.js +42 -33
  744. package/dist/components/compositions/Navigation/components/Item.d.ts.map +1 -1
  745. package/dist/components/compositions/Navigation/components/Item.js +190 -179
  746. package/dist/components/compositions/Navigation/components/ItemExpanded.d.ts.map +1 -1
  747. package/dist/components/compositions/Navigation/components/ItemExpanded.js +207 -196
  748. package/dist/components/compositions/Navigation/components/ItemFragments.d.ts.map +1 -1
  749. package/dist/components/compositions/Navigation/components/ItemFragments.js +61 -53
  750. package/dist/components/compositions/Navigation/components/ItemMenu.d.ts.map +1 -1
  751. package/dist/components/compositions/Navigation/components/ItemMenu.js +135 -122
  752. package/dist/components/compositions/Navigation/components/ItemProvider.js +14 -10
  753. package/dist/components/compositions/Navigation/components/PinnedItems.d.ts.map +1 -1
  754. package/dist/components/compositions/Navigation/components/PinnedItems.js +103 -94
  755. package/dist/components/compositions/Navigation/components/Separator.d.ts.map +1 -1
  756. package/dist/components/compositions/Navigation/components/Separator.js +11 -5
  757. package/dist/components/compositions/Navigation/components/ShowHide.js +50 -42
  758. package/dist/components/compositions/Navigation/components/items.css.d.ts +22 -22
  759. package/dist/components/compositions/Navigation/components/items.css.d.ts.map +1 -1
  760. package/dist/components/compositions/Navigation/components/items.css.ts.vanilla.js +8 -0
  761. package/dist/components/compositions/Navigation/components/styles.css.d.ts +7 -7
  762. package/dist/components/compositions/Navigation/components/styles.css.d.ts.map +1 -1
  763. package/dist/components/compositions/Navigation/components/styles.css.ts.vanilla.js +8 -0
  764. package/dist/components/compositions/Navigation/constants.js +8 -0
  765. package/dist/components/compositions/Navigation/index.js +34 -28
  766. package/dist/components/compositions/Navigation/locales/en.js +16 -10
  767. package/dist/components/compositions/Navigation/styles.css.d.ts +156 -33
  768. package/dist/components/compositions/Navigation/styles.css.d.ts.map +1 -1
  769. package/dist/components/compositions/Navigation/styles.css.js +186 -30
  770. package/dist/components/compositions/Navigation/styles.css.ts.vanilla.js +8 -0
  771. package/dist/components/compositions/Navigation/variables.css.js +8 -2
  772. package/dist/components/compositions/Navigation/variables.css.ts.vanilla.js +8 -0
  773. package/dist/components/compositions/OfferList/OfferListProvider.d.ts.map +1 -1
  774. package/dist/components/compositions/OfferList/OfferListProvider.js +41 -23
  775. package/dist/components/compositions/OfferList/components/Banner.d.ts.map +1 -1
  776. package/dist/components/compositions/OfferList/components/Banner.js +35 -27
  777. package/dist/components/compositions/OfferList/components/Cell.d.ts.map +1 -1
  778. package/dist/components/compositions/OfferList/components/Cell.js +35 -26
  779. package/dist/components/compositions/OfferList/components/OfferListRowProvider.js +10 -6
  780. package/dist/components/compositions/OfferList/components/Row.d.ts.map +1 -1
  781. package/dist/components/compositions/OfferList/components/Row.js +181 -160
  782. package/dist/components/compositions/OfferList/index.d.ts +1 -0
  783. package/dist/components/compositions/OfferList/index.js +54 -45
  784. package/dist/components/compositions/OfferList/styles.css.d.ts +40 -37
  785. package/dist/components/compositions/OfferList/styles.css.d.ts.map +1 -1
  786. package/dist/components/compositions/OfferList/styles.css.js +127 -118
  787. package/dist/components/compositions/OfferList/styles.css.ts.vanilla.js +8 -0
  788. package/dist/components/compositions/OptionSelector/components/ArrowIcon.js +18 -13
  789. package/dist/components/compositions/OptionSelector/components/IconWithContent.js +13 -8
  790. package/dist/components/compositions/OptionSelector/components/RevealOnHover.d.ts.map +1 -1
  791. package/dist/components/compositions/OptionSelector/components/RevealOnHover.js +17 -12
  792. package/dist/components/compositions/OptionSelector/components/Selector.d.ts.map +1 -1
  793. package/dist/components/compositions/OptionSelector/components/Selector.js +33 -27
  794. package/dist/components/compositions/OptionSelector/components/SelectorLabel.d.ts.map +1 -1
  795. package/dist/components/compositions/OptionSelector/components/SelectorLabel.js +17 -11
  796. package/dist/components/compositions/OptionSelector/index.d.ts.map +1 -1
  797. package/dist/components/compositions/OptionSelector/index.js +147 -140
  798. package/dist/components/compositions/OptionSelector/styles.css.d.ts +25 -23
  799. package/dist/components/compositions/OptionSelector/styles.css.d.ts.map +1 -1
  800. package/dist/components/compositions/OptionSelector/styles.css.js +37 -28
  801. package/dist/components/compositions/OptionSelector/styles.css.ts.vanilla.js +8 -0
  802. package/dist/components/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
  803. package/dist/components/compositions/OrderSummary/NonScrollableContent.js +92 -83
  804. package/dist/components/compositions/OrderSummary/Provider.js +20 -14
  805. package/dist/components/compositions/OrderSummary/ScrollableContent.d.ts.map +1 -1
  806. package/dist/components/compositions/OrderSummary/ScrollableContent.js +220 -210
  807. package/dist/components/compositions/OrderSummary/constants.js +21 -15
  808. package/dist/components/compositions/OrderSummary/helpers.js +132 -125
  809. package/dist/components/compositions/OrderSummary/index.d.ts.map +1 -1
  810. package/dist/components/compositions/OrderSummary/index.js +142 -128
  811. package/dist/components/compositions/OrderSummary/locales/en.js +16 -10
  812. package/dist/components/compositions/OrderSummary/styles.css.d.ts +21 -19
  813. package/dist/components/compositions/OrderSummary/styles.css.d.ts.map +1 -1
  814. package/dist/components/compositions/OrderSummary/styles.css.js +34 -26
  815. package/dist/components/compositions/OrderSummary/styles.css.ts.vanilla.js +8 -0
  816. package/dist/components/compositions/Plans/FeatureHint.js +39 -32
  817. package/dist/components/compositions/Plans/PlanHeader.d.ts.map +1 -1
  818. package/dist/components/compositions/Plans/PlanHeader.js +99 -89
  819. package/dist/components/compositions/Plans/index.d.ts.map +1 -1
  820. package/dist/components/compositions/Plans/index.js +159 -148
  821. package/dist/components/compositions/Plans/locales/en.js +12 -6
  822. package/dist/components/compositions/Plans/styles.css.d.ts +53 -51
  823. package/dist/components/compositions/Plans/styles.css.d.ts.map +1 -1
  824. package/dist/components/compositions/Plans/styles.css.js +41 -33
  825. package/dist/components/compositions/Plans/styles.css.ts.vanilla.js +8 -0
  826. package/dist/components/compositions/SteppedListCard/Step.js +47 -39
  827. package/dist/components/compositions/SteppedListCard/SteppedListContent.d.ts.map +1 -1
  828. package/dist/components/compositions/SteppedListCard/SteppedListContent.js +56 -48
  829. package/dist/components/compositions/SteppedListCard/helper.js +27 -27
  830. package/dist/components/compositions/SteppedListCard/index.d.ts.map +1 -1
  831. package/dist/components/compositions/SteppedListCard/index.js +98 -88
  832. package/dist/components/compositions/SteppedListCard/styles.css.d.ts +10 -8
  833. package/dist/components/compositions/SteppedListCard/styles.css.d.ts.map +1 -1
  834. package/dist/components/compositions/SteppedListCard/styles.css.js +20 -10
  835. package/dist/components/compositions/SteppedListCard/styles.css.ts.vanilla.js +8 -0
  836. package/dist/components/compositions/index.js +35 -14
  837. package/dist/components/compositions/styles.d.ts +15 -0
  838. package/dist/components/compositions/styles.d.ts.map +1 -0
  839. package/dist/components/compositions/styles.js +37 -0
  840. package/dist/components/index.js +167 -0
  841. package/dist/components/styles.d.ts +75 -0
  842. package/dist/components/styles.d.ts.map +1 -0
  843. package/dist/components/styles.js +157 -0
  844. package/dist/helpers/isClientSide.js +9 -6
  845. package/dist/helpers/legend.js +13 -9
  846. package/dist/helpers/nivoTheme.js +20 -16
  847. package/dist/helpers/recursivelyGetChildrenString.js +16 -12
  848. package/dist/helpers/treeMap.js +25 -103
  849. package/dist/hooks/useIsOverflowing.js +25 -24
  850. package/dist/index.d.ts +1 -0
  851. package/dist/index.d.ts.map +1 -1
  852. package/dist/index.js +93 -5
  853. package/dist/theme/ThemeProvider.js +46 -49
  854. package/dist/theme/index.js +19 -20
  855. package/dist/themes/dist/vanilla/themes.css.js.vanilla.js +8 -0
  856. package/dist/ui.css +1 -1
  857. package/dist/utils/animations/animations.js +8 -0
  858. package/dist/utils/animations/animations2.js +33 -27
  859. package/dist/utils/animations/{animationsVE.css.d.ts → animationsVanillaExtract.css.d.ts} +1 -1
  860. package/dist/utils/animations/animationsVanillaExtract.css.d.ts.map +1 -0
  861. package/dist/utils/animations/animationsVanillaExtract.css.js +39 -0
  862. package/dist/utils/animations/animationsVanillaExtract.css.ts.vanilla.js +8 -0
  863. package/dist/utils/index.d.ts +1 -1
  864. package/dist/utils/index.d.ts.map +1 -1
  865. package/dist/utils/index.js +10 -2
  866. package/dist/utils/normalize.js +7 -3
  867. package/dist/utils/responsive/utilities.js +15 -10
  868. package/package.json +12 -6
  869. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/asyncToGenerator.js +0 -32
  870. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/defineProperty.js +0 -15
  871. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutProperties.js +0 -18
  872. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/objectWithoutPropertiesLoose.js +0 -15
  873. package/dist/_virtual/_@oxc-project_runtime@0.114.0/helpers/toPropertyKey.js +0 -12
  874. package/dist/components/DateInput/components/styles.css.js +0 -11
  875. package/dist/components/compositions/Navigation/components/items.css.js +0 -123
  876. package/dist/components/compositions/Navigation/components/styles.css.js +0 -29
  877. package/dist/helpers/isJSON.d.ts +0 -3
  878. package/dist/helpers/isJSON.d.ts.map +0 -1
  879. package/dist/utils/animations/animationsVE.css.d.ts.map +0 -1
  880. package/dist/utils/animations/animationsVE.css.js +0 -33
@@ -1,208 +1,216 @@
1
1
  'use client';
2
- import { __name } from "../../_virtual/_rolldown/runtime.js";
3
- import { Stack } from "../Stack/index.js";
4
- import { Tooltip } from "../Tooltip/index.js";
5
- import { Text } from "../Text/index.js";
6
- import { Button } from "../Button/index.js";
7
- import { Label } from "../Label/index.js";
8
- import { Row } from "../Row/index.js";
9
- import { inputContainer, numberinput, numberinputContainer, numberinputSideContainer, unit } from "./styles.css.js";
2
+ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
3
+ import { Stack, init_Stack } from "../Stack/index.js";
4
+ import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
5
+ import { Text, init_Text } from "../Text/index.js";
6
+ import { Button, init_Button } from "../Button/index.js";
7
+ import { Label, init_Label } from "../Label/index.js";
8
+ import { Row, init_Row } from "../Row/index.js";
9
+ import { init_styles_css, numberInputStyle } from "./styles.css.js";
10
10
  import { forwardRef, useCallback, useId, useImperativeHandle, useMemo, useRef } from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
12
  import { MinusIcon } from "@ultraviolet/icons/MinusIcon";
13
13
  import { PlusIcon } from "@ultraviolet/icons/PlusIcon";
14
14
 
15
15
  //#region src/components/NumberInput/index.tsx
16
- /**
17
- * NumberInput component is used to increment / decrement a number value by clicking on + / - buttons or
18
- * by typing into input. If the value is out of the min / max range, the input will automatically be the min / max value on blur.
19
- */
20
- const NumberInput = forwardRef(({ disabled = false, max = Number.MAX_SAFE_INTEGER, min = 0, name, onChange, onFocus, onBlur, size = "large", step, unit: unit$1, value, tooltip, className, label, labelDescription, id, controls = true, placeholder = "", error, success, helper, "aria-label": ariaLabel, "data-testid": dataTestId, required, autoFocus, readOnly, style }, ref) => {
21
- var _localRef$current7;
22
- var _localRef$current11;
23
- const localRef = useRef(null);
24
- useImperativeHandle(ref, () => localRef.current);
25
- const uniqueId = useId();
26
- const localId = id !== null && id !== void 0 ? id : uniqueId;
27
- const computedState = useMemo(() => {
28
- if (disabled) return "disabled";
29
- if (readOnly) return "readOnly";
30
- if (error) return "error";
31
- if (success) return "success";
32
- return "default";
33
- }, [
34
- error,
35
- success,
36
- disabled,
37
- readOnly
38
- ]);
39
- const onClickSideButton = useCallback((direction) => () => {
40
- var _Number$parseFloat;
41
- var _localRef$current$val;
42
- var _localRef$current3;
43
- if (direction === "up") {
44
- var _localRef$current;
45
- (_localRef$current = localRef.current) === null || _localRef$current === void 0 || _localRef$current.stepUp();
46
- } else if (direction === "down") {
47
- var _localRef$current2;
48
- (_localRef$current2 = localRef.current) === null || _localRef$current2 === void 0 || _localRef$current2.stepDown();
16
+ var NumberInput;
17
+ var init_NumberInput = __esmMin(() => {
18
+ init_Button();
19
+ init_Label();
20
+ init_Row();
21
+ init_Stack();
22
+ init_Text();
23
+ init_Tooltip();
24
+ init_styles_css();
25
+ NumberInput = forwardRef(({ disabled = false, max = Number.MAX_SAFE_INTEGER, min = 0, name, onChange, onFocus, onBlur, size = "large", step, unit, value, tooltip, className, label, labelDescription, id, controls = true, placeholder = "", error, success, helper, "aria-label": ariaLabel, "data-testid": dataTestId, required, autoFocus, readOnly, style }, ref) => {
26
+ var _localRef$current7;
27
+ var _localRef$current11;
28
+ const localRef = useRef(null);
29
+ useImperativeHandle(ref, () => localRef.current);
30
+ const uniqueId = useId();
31
+ const localId = id !== null && id !== void 0 ? id : uniqueId;
32
+ const computedState = useMemo(() => {
33
+ if (disabled) return "disabled";
34
+ if (readOnly) return "readOnly";
35
+ if (error) return "error";
36
+ if (success) return "success";
37
+ return "default";
38
+ }, [
39
+ error,
40
+ success,
41
+ disabled,
42
+ readOnly
43
+ ]);
44
+ const onClickSideButton = useCallback((direction) => () => {
45
+ var _Number$parseFloat;
46
+ var _localRef$current$val;
47
+ var _localRef$current3;
48
+ if (direction === "up") {
49
+ var _localRef$current;
50
+ (_localRef$current = localRef.current) === null || _localRef$current === void 0 || _localRef$current.stepUp();
51
+ } else if (direction === "down") {
52
+ var _localRef$current2;
53
+ (_localRef$current2 = localRef.current) === null || _localRef$current2 === void 0 || _localRef$current2.stepDown();
54
+ }
55
+ onChange === null || onChange === void 0 || onChange((_Number$parseFloat = Number.parseFloat((_localRef$current$val = (_localRef$current3 = localRef.current) === null || _localRef$current3 === void 0 ? void 0 : _localRef$current3.value) !== null && _localRef$current$val !== void 0 ? _localRef$current$val : "")) !== null && _Number$parseFloat !== void 0 ? _Number$parseFloat : min);
56
+ }, [
57
+ localRef,
58
+ min,
59
+ onChange
60
+ ]);
61
+ const isMinusDisabled = useCallback(() => {
62
+ var _localRef$current4;
63
+ var _localRef$current5;
64
+ var _localRef$current6;
65
+ if (!(localRef === null || localRef === void 0 || (_localRef$current4 = localRef.current) === null || _localRef$current4 === void 0 ? void 0 : _localRef$current4.value) || (localRef === null || localRef === void 0 || (_localRef$current5 = localRef.current) === null || _localRef$current5 === void 0 ? void 0 : _localRef$current5.value) === "") return false;
66
+ const numericValue = Number(localRef === null || localRef === void 0 || (_localRef$current6 = localRef.current) === null || _localRef$current6 === void 0 ? void 0 : _localRef$current6.value);
67
+ if (Number.isNaN(numericValue)) return false;
68
+ const minValue = typeof min === "number" ? min : Number(min);
69
+ return Number.isNaN(numericValue) || numericValue <= minValue;
70
+ }, [localRef === null || localRef === void 0 || (_localRef$current7 = localRef.current) === null || _localRef$current7 === void 0 ? void 0 : _localRef$current7.value, min]);
71
+ const isPlusDisabled = useCallback(() => {
72
+ var _localRef$current8;
73
+ var _localRef$current9;
74
+ var _localRef$current10;
75
+ if (!(localRef === null || localRef === void 0 || (_localRef$current8 = localRef.current) === null || _localRef$current8 === void 0 ? void 0 : _localRef$current8.value) || (localRef === null || localRef === void 0 || (_localRef$current9 = localRef.current) === null || _localRef$current9 === void 0 ? void 0 : _localRef$current9.value) === "") return false;
76
+ const numericValue = Number(localRef === null || localRef === void 0 || (_localRef$current10 = localRef.current) === null || _localRef$current10 === void 0 ? void 0 : _localRef$current10.value);
77
+ if (Number.isNaN(numericValue)) return false;
78
+ return numericValue >= (typeof max === "number" ? max : Number(max));
79
+ }, [localRef === null || localRef === void 0 || (_localRef$current11 = localRef.current) === null || _localRef$current11 === void 0 ? void 0 : _localRef$current11.value, max]);
80
+ const helperSentiment = useMemo(() => {
81
+ if (error) return "danger";
82
+ if (success) return "success";
83
+ return "neutral";
84
+ }, [error, success]);
85
+ let inputValue;
86
+ if (value !== void 0) {
87
+ inputValue = value !== null && typeof value === "number" ? value.toString() : "";
88
+ if (localRef.current) localRef.current.value = inputValue;
49
89
  }
50
- onChange === null || onChange === void 0 || onChange((_Number$parseFloat = Number.parseFloat((_localRef$current$val = (_localRef$current3 = localRef.current) === null || _localRef$current3 === void 0 ? void 0 : _localRef$current3.value) !== null && _localRef$current$val !== void 0 ? _localRef$current$val : "")) !== null && _Number$parseFloat !== void 0 ? _Number$parseFloat : min);
51
- }, [
52
- localRef,
53
- min,
54
- onChange
55
- ]);
56
- const isMinusDisabled = useCallback(() => {
57
- var _localRef$current4;
58
- var _localRef$current5;
59
- var _localRef$current6;
60
- if (!(localRef === null || localRef === void 0 || (_localRef$current4 = localRef.current) === null || _localRef$current4 === void 0 ? void 0 : _localRef$current4.value) || (localRef === null || localRef === void 0 || (_localRef$current5 = localRef.current) === null || _localRef$current5 === void 0 ? void 0 : _localRef$current5.value) === "") return false;
61
- const numericValue = Number(localRef === null || localRef === void 0 || (_localRef$current6 = localRef.current) === null || _localRef$current6 === void 0 ? void 0 : _localRef$current6.value);
62
- if (Number.isNaN(numericValue)) return false;
63
- const minValue = typeof min === "number" ? min : Number(min);
64
- return Number.isNaN(numericValue) || numericValue <= minValue;
65
- }, [localRef === null || localRef === void 0 || (_localRef$current7 = localRef.current) === null || _localRef$current7 === void 0 ? void 0 : _localRef$current7.value, min]);
66
- const isPlusDisabled = useCallback(() => {
67
- var _localRef$current8;
68
- var _localRef$current9;
69
- var _localRef$current10;
70
- if (!(localRef === null || localRef === void 0 || (_localRef$current8 = localRef.current) === null || _localRef$current8 === void 0 ? void 0 : _localRef$current8.value) || (localRef === null || localRef === void 0 || (_localRef$current9 = localRef.current) === null || _localRef$current9 === void 0 ? void 0 : _localRef$current9.value) === "") return false;
71
- const numericValue = Number(localRef === null || localRef === void 0 || (_localRef$current10 = localRef.current) === null || _localRef$current10 === void 0 ? void 0 : _localRef$current10.value);
72
- if (Number.isNaN(numericValue)) return false;
73
- return numericValue >= (typeof max === "number" ? max : Number(max));
74
- }, [localRef === null || localRef === void 0 || (_localRef$current11 = localRef.current) === null || _localRef$current11 === void 0 ? void 0 : _localRef$current11.value, max]);
75
- const helperSentiment = useMemo(() => {
76
- if (error) return "danger";
77
- if (success) return "success";
78
- return "neutral";
79
- }, [error, success]);
80
- let inputValue;
81
- if (value !== void 0) {
82
- inputValue = value !== null && typeof value === "number" ? value.toString() : "";
83
- if (localRef.current) localRef.current.value = inputValue;
84
- }
85
- return /* @__PURE__ */ jsxs(Stack, {
86
- className,
87
- gap: "0.5",
88
- children: [
89
- label || labelDescription ? /* @__PURE__ */ jsx(Label, {
90
- htmlFor: localId,
91
- labelDescription,
92
- required,
93
- size,
94
- children: label
95
- }) : null,
96
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tooltip, {
97
- text: tooltip,
98
- children: /* @__PURE__ */ jsxs("div", {
99
- className: numberinputContainer({
100
- size,
101
- state: computedState
102
- }),
103
- "data-controls": controls,
104
- "data-disabled": disabled,
105
- "data-error": !!error,
106
- "data-readonly": readOnly,
107
- "data-size": size,
108
- "data-success": !!success,
109
- "data-unit": !!unit$1,
110
- children: [
111
- controls ? /* @__PURE__ */ jsx(Stack, {
112
- alignItems: "center",
113
- className: numberinputSideContainer[size],
114
- "data-size": size,
115
- justifyContent: "center",
116
- children: /* @__PURE__ */ jsx(Button, {
117
- "aria-label": "minus",
118
- disabled: disabled || readOnly || isMinusDisabled(),
119
- onClick: onClickSideButton("down"),
120
- sentiment: "neutral",
121
- size: size === "small" ? "xsmall" : "small",
122
- variant: "ghost",
123
- children: /* @__PURE__ */ jsx(MinusIcon, { size: size === "large" ? "small" : "small" })
124
- })
125
- }) : null,
126
- /* @__PURE__ */ jsxs(Row, {
127
- alignItems: "center",
128
- className: inputContainer({ controls }),
129
- justifyContent: "space-between",
130
- templateColumns: "1fr auto",
131
- children: [/* @__PURE__ */ jsx("input", {
132
- "aria-label": ariaLabel,
133
- autoFocus,
134
- className: numberinput({
135
- controls,
136
- hasUnit: !!unit$1,
137
- size
138
- }),
139
- "data-testid": dataTestId,
140
- disabled,
141
- id: localId,
142
- max,
143
- min,
144
- name,
145
- onBlur: (event) => {
146
- if (value && value > max) onChange === null || onChange === void 0 || onChange(max);
147
- else if (value && value < min) onChange === null || onChange === void 0 || onChange(min);
148
- onBlur === null || onBlur === void 0 || onBlur(event);
149
- },
150
- onChange: onChange ? (event) => {
151
- const newNumber = Number.parseFloat(event.target.value);
152
- onChange(Number.isNaN(newNumber) ? null : newNumber);
153
- } : void 0,
154
- onFocus,
155
- placeholder,
156
- readOnly,
157
- ref: localRef,
158
- required,
159
- step,
160
- style,
161
- type: "number",
162
- value: inputValue
163
- }), unit$1 ? /* @__PURE__ */ jsx(Text, {
164
- as: "span",
165
- className: unit({
90
+ return /* @__PURE__ */ jsxs(Stack, {
91
+ className,
92
+ gap: "0.5",
93
+ children: [
94
+ label || labelDescription ? /* @__PURE__ */ jsx(Label, {
95
+ htmlFor: localId,
96
+ labelDescription,
97
+ required,
98
+ size,
99
+ children: label
100
+ }) : null,
101
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Tooltip, {
102
+ text: tooltip,
103
+ children: /* @__PURE__ */ jsxs("div", {
104
+ className: numberInputStyle.container({
105
+ size,
106
+ state: computedState
107
+ }),
108
+ "data-controls": controls,
109
+ "data-disabled": disabled,
110
+ "data-error": !!error,
111
+ "data-readonly": readOnly,
112
+ "data-size": size,
113
+ "data-success": !!success,
114
+ "data-unit": !!unit,
115
+ children: [
116
+ controls ? /* @__PURE__ */ jsx(Stack, {
117
+ alignItems: "center",
118
+ className: numberInputStyle.sideContainer[size],
119
+ "data-size": size,
120
+ justifyContent: "center",
121
+ children: /* @__PURE__ */ jsx(Button, {
122
+ "aria-label": "minus",
123
+ disabled: disabled || readOnly || isMinusDisabled(),
124
+ onClick: onClickSideButton("down"),
125
+ sentiment: "neutral",
126
+ size: size === "small" ? "xsmall" : "small",
127
+ variant: "ghost",
128
+ children: /* @__PURE__ */ jsx(MinusIcon, { size: size === "large" ? "small" : "small" })
129
+ })
130
+ }) : null,
131
+ /* @__PURE__ */ jsxs(Row, {
132
+ alignItems: "center",
133
+ className: numberInputStyle.inputContainer({ controls }),
134
+ justifyContent: "space-between",
135
+ templateColumns: "1fr auto",
136
+ children: [/* @__PURE__ */ jsx("input", {
137
+ "aria-label": ariaLabel,
138
+ autoFocus,
139
+ className: numberInputStyle.numberinput({
140
+ controls,
141
+ hasUnit: !!unit,
142
+ size
143
+ }),
144
+ "data-testid": dataTestId,
166
145
  disabled,
146
+ id: localId,
147
+ max,
148
+ min,
149
+ name,
150
+ onBlur: (event) => {
151
+ if (value && value > max) onChange === null || onChange === void 0 || onChange(max);
152
+ else if (value && value < min) onChange === null || onChange === void 0 || onChange(min);
153
+ onBlur === null || onBlur === void 0 || onBlur(event);
154
+ },
155
+ onChange: onChange ? (event) => {
156
+ const newNumber = Number.parseFloat(event.target.value);
157
+ onChange(Number.isNaN(newNumber) ? null : newNumber);
158
+ } : void 0,
159
+ onFocus,
160
+ placeholder,
167
161
  readOnly,
168
- size
169
- }),
170
- disabled,
171
- sentiment: "neutral",
172
- variant: "body",
173
- children: unit$1
174
- }) : null]
175
- }),
176
- controls ? /* @__PURE__ */ jsx(Stack, {
177
- alignItems: "center",
178
- className: numberinputSideContainer[size],
179
- "data-size": size,
180
- justifyContent: "center",
181
- children: /* @__PURE__ */ jsx(Button, {
182
- "aria-label": "plus",
183
- disabled: disabled || readOnly || isPlusDisabled(),
184
- onClick: onClickSideButton("up"),
185
- sentiment: "neutral",
186
- size: size === "small" ? "xsmall" : "small",
187
- variant: "ghost",
188
- children: /* @__PURE__ */ jsx(PlusIcon, { size: size === "large" ? "small" : "small" })
189
- })
190
- }) : null
191
- ]
192
- })
193
- }) }),
194
- error || typeof success === "string" || typeof helper === "string" ? /* @__PURE__ */ jsx(Text, {
195
- as: "span",
196
- disabled: disabled || readOnly,
197
- prominence: error || success ? "default" : "weak",
198
- sentiment: helperSentiment,
199
- variant: "caption",
200
- children: error || success || helper
201
- }) : null,
202
- !(error || success) && typeof helper !== "string" && helper ? helper : null
203
- ]
162
+ ref: localRef,
163
+ required,
164
+ step,
165
+ style,
166
+ type: "number",
167
+ value: inputValue
168
+ }), unit ? /* @__PURE__ */ jsx(Text, {
169
+ as: "span",
170
+ className: numberInputStyle.unit({
171
+ disabled,
172
+ readOnly,
173
+ size,
174
+ controls
175
+ }),
176
+ disabled,
177
+ sentiment: "neutral",
178
+ variant: "body",
179
+ children: unit
180
+ }) : null]
181
+ }),
182
+ controls ? /* @__PURE__ */ jsx(Stack, {
183
+ alignItems: "center",
184
+ className: numberInputStyle.sideContainer[size],
185
+ "data-size": size,
186
+ justifyContent: "center",
187
+ children: /* @__PURE__ */ jsx(Button, {
188
+ "aria-label": "plus",
189
+ disabled: disabled || readOnly || isPlusDisabled(),
190
+ onClick: onClickSideButton("up"),
191
+ sentiment: "neutral",
192
+ size: size === "small" ? "xsmall" : "small",
193
+ variant: "ghost",
194
+ children: /* @__PURE__ */ jsx(PlusIcon, { size: size === "large" ? "small" : "small" })
195
+ })
196
+ }) : null
197
+ ]
198
+ })
199
+ }) }),
200
+ error || typeof success === "string" || typeof helper === "string" ? /* @__PURE__ */ jsx(Text, {
201
+ as: "span",
202
+ disabled: disabled || readOnly,
203
+ prominence: error || success ? "default" : "weak",
204
+ sentiment: helperSentiment,
205
+ variant: "caption",
206
+ children: error || success || helper
207
+ }) : null,
208
+ !(error || success) && typeof helper !== "string" && helper ? helper : null
209
+ ]
210
+ });
204
211
  });
205
212
  });
206
213
 
207
214
  //#endregion
208
- export { NumberInput };
215
+ init_NumberInput();
216
+ export { NumberInput, init_NumberInput };
@@ -1,110 +1,120 @@
1
- export declare const numberinputSideContainer: Record<"large" | "medium" | "small", string>;
2
- export declare const inputContainer: import("@vanilla-extract/recipes").RuntimeFn<{
3
- controls: {
4
- false: {
5
- borderWidth: number;
6
- };
7
- };
8
- }>;
9
- export declare const unit: import("@vanilla-extract/recipes").RuntimeFn<{
10
- disabled: {
11
- true: {
12
- background: `var(--${string})`;
13
- cursor: "not-allowed";
14
- userSelect: "none";
15
- };
16
- };
17
- readOnly: {
18
- true: {
19
- background: `var(--${string})`;
20
- };
21
- };
22
- size: {
23
- large: {
24
- fontSize: `var(--${string})`;
25
- height: `var(--${string})`;
26
- };
27
- medium: {
28
- fontSize: `var(--${string})`;
29
- height: `var(--${string})`;
30
- };
31
- small: {
32
- fontSize: `var(--${string})`;
33
- height: `var(--${string})`;
34
- };
35
- };
36
- }>;
37
- export declare const numberinput: import("@vanilla-extract/recipes").RuntimeFn<{
38
- controls: {
39
- false: {
40
- textAlign: "left";
41
- };
42
- };
43
- hasUnit: {
44
- true: {
45
- padding: `var(--${string}) 0 var(--${string}) var(--${string})`;
46
- textAlign: "left";
1
+ export declare const numberInputStyle: {
2
+ sideContainer: Record<"large" | "medium" | "small", string>;
3
+ inputContainer: import("@vanilla-extract/recipes").RuntimeFn<{
4
+ controls: {
5
+ false: {
6
+ borderWidth: number;
7
+ };
47
8
  };
48
- };
49
- size: {
50
- large: {
51
- fontFamily: `var(--${string})`;
52
- fontSize: `var(--${string})`;
53
- fontWeight: `var(--${string})`;
54
- height: `var(--${string})`;
55
- lineHeight: `var(--${string})`;
9
+ }>;
10
+ unit: import("@vanilla-extract/recipes").RuntimeFn<{
11
+ disabled: {
12
+ true: {
13
+ background: `var(--${string})`;
14
+ cursor: "not-allowed";
15
+ userSelect: "none";
16
+ borderBlock: `1px solid var(--${string})`;
17
+ };
56
18
  };
57
- medium: {
58
- height: `var(--${string})`;
19
+ readOnly: {
20
+ true: {
21
+ background: `var(--${string})`;
22
+ borderBlock: `1px solid var(--${string})`;
23
+ };
59
24
  };
60
- small: {
61
- height: `var(--${string})`;
25
+ size: {
26
+ large: {
27
+ fontSize: `var(--${string})`;
28
+ height: `var(--${string})`;
29
+ };
30
+ medium: {
31
+ fontSize: `var(--${string})`;
32
+ height: `var(--${string})`;
33
+ };
34
+ small: {
35
+ fontSize: `var(--${string})`;
36
+ height: `var(--${string})`;
37
+ };
62
38
  };
63
- };
64
- }>;
65
- export declare const numberinputContainer: import("@vanilla-extract/recipes").RuntimeFn<{
66
- size: {
67
- large: {
68
- height: `var(--${string})`;
39
+ controls: {
40
+ false: {
41
+ borderRadius: `0 var(--${string}) var(--${string}) 0`;
42
+ };
69
43
  };
70
- medium: {
71
- height: `var(--${string})`;
44
+ }>;
45
+ numberinput: import("@vanilla-extract/recipes").RuntimeFn<{
46
+ controls: {
47
+ false: {
48
+ textAlign: "left";
49
+ borderRadius: `var(--${string}) 0 0 var(--${string})`;
50
+ };
72
51
  };
73
- small: {
74
- height: `var(--${string})`;
52
+ hasUnit: {
53
+ true: {
54
+ padding: `var(--${string}) 0 var(--${string}) var(--${string})`;
55
+ textAlign: "left";
56
+ };
75
57
  };
76
- };
77
- state: {
78
- default: {};
79
- disabled: {
80
- background: `var(--${string})`;
81
- borderColor: `var(--${string})`;
82
- cursor: "not-allowed";
83
- selectors: {
84
- '&:hover': {
85
- borderColor: `var(--${string})`;
86
- };
58
+ size: {
59
+ large: {
60
+ fontFamily: `var(--${string})`;
61
+ fontSize: `var(--${string})`;
62
+ fontWeight: `var(--${string})`;
63
+ height: `var(--${string})`;
64
+ lineHeight: `var(--${string})`;
65
+ };
66
+ medium: {
67
+ height: `var(--${string})`;
68
+ };
69
+ small: {
70
+ height: `var(--${string})`;
87
71
  };
88
72
  };
89
- error: {
90
- borderColor: `var(--${string})`;
73
+ }>;
74
+ container: import("@vanilla-extract/recipes").RuntimeFn<{
75
+ size: {
76
+ large: {
77
+ height: `var(--${string})`;
78
+ };
79
+ medium: {
80
+ height: `var(--${string})`;
81
+ };
82
+ small: {
83
+ height: `var(--${string})`;
84
+ };
91
85
  };
92
- readOnly: {
93
- background: `var(--${string})`;
94
- borderColor: `var(--${string})`;
95
- cursor: "not-allowed";
96
- selectors: {
97
- '&:focus-within': {
98
- borderColor: `var(--${string})`;
86
+ state: {
87
+ default: {};
88
+ disabled: {
89
+ background: `var(--${string})`;
90
+ borderColor: `var(--${string})`;
91
+ cursor: "not-allowed";
92
+ selectors: {
93
+ '&:hover': {
94
+ borderColor: `var(--${string})`;
95
+ };
99
96
  };
100
- '&:hover': {
101
- borderColor: `var(--${string})`;
97
+ };
98
+ error: {
99
+ borderColor: `var(--${string})`;
100
+ };
101
+ readOnly: {
102
+ background: `var(--${string})`;
103
+ borderColor: `var(--${string})`;
104
+ cursor: "not-allowed";
105
+ selectors: {
106
+ '&:focus-within': {
107
+ borderColor: `var(--${string})`;
108
+ };
109
+ '&:hover': {
110
+ borderColor: `var(--${string})`;
111
+ };
102
112
  };
103
113
  };
114
+ success: {
115
+ borderColor: `var(--${string})`;
116
+ };
104
117
  };
105
- success: {
106
- borderColor: `var(--${string})`;
107
- };
108
- };
109
- }>;
118
+ }>;
119
+ };
110
120
  //# sourceMappingURL=styles.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/styles.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB,8CAanC,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;EAkBzB,CAAA;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCf,CAAA;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EtB,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkE/B,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/styles.css.ts"],"names":[],"mappings":"AA8OA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAA"}