@ultraviolet/ui 3.21.1 → 3.21.2

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 (703) hide show
  1. package/dist/_virtual/EstimateCost.js +90 -0
  2. package/dist/_virtual/Filters.js +18 -0
  3. package/dist/_virtual/Navigation.js +43 -0
  4. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/asyncToGenerator.js +4 -2
  5. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/defineProperty.js +6 -4
  6. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/extends.js +4 -2
  7. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectDestructuringEmpty.js +4 -2
  8. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectSpread2.js +6 -4
  9. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutProperties.js +6 -4
  10. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/objectWithoutPropertiesLoose.js +4 -2
  11. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPrimitive.js +6 -4
  12. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/toPropertyKey.js +7 -5
  13. package/dist/_virtual/{_@oxc-project_runtime@0.139.0 → _@oxc-project_runtime@0.142.0}/helpers/esm/typeof.js +4 -2
  14. package/dist/components/ActionBar/index.js +20 -18
  15. package/dist/components/ActionBar/styles.css.js +11 -9
  16. package/dist/components/ActionBar/styles.css.ts.vanilla.js +3 -1
  17. package/dist/components/Alert/index.js +79 -77
  18. package/dist/components/Alert/styles.css.js +34 -32
  19. package/dist/components/Alert/styles.css.ts.vanilla.js +3 -1
  20. package/dist/components/Avatar/constants.js +17 -15
  21. package/dist/components/Avatar/index.js +81 -79
  22. package/dist/components/Avatar/styles.css.js +161 -159
  23. package/dist/components/Avatar/styles.css.ts.vanilla.js +3 -1
  24. package/dist/components/Avatar/variables.css.js +7 -5
  25. package/dist/components/Badge/constant.js +10 -8
  26. package/dist/components/Badge/index.js +30 -24
  27. package/dist/components/Badge/styles.css.js +107 -105
  28. package/dist/components/Badge/styles.css.ts.vanilla.js +3 -1
  29. package/dist/components/Banner/assets/default-image-small.js +5 -3
  30. package/dist/components/Banner/assets/default-image.js +5 -3
  31. package/dist/components/Banner/index.js +106 -104
  32. package/dist/components/Banner/styles.css.js +44 -42
  33. package/dist/components/Banner/styles.css.ts.vanilla.js +3 -1
  34. package/dist/components/BarChart/Tooltip.js +23 -21
  35. package/dist/components/BarChart/index.js +63 -61
  36. package/dist/components/BarChart/styles.css.js +10 -8
  37. package/dist/components/BarChart/styles.css.ts.vanilla.js +3 -1
  38. package/dist/components/BarStack/index.js +90 -88
  39. package/dist/components/BarStack/styles.css.js +38 -36
  40. package/dist/components/BarStack/styles.css.ts.vanilla.js +3 -1
  41. package/dist/components/Breadcrumbs/components/Item.js +57 -55
  42. package/dist/components/Breadcrumbs/components/styles.css.js +13 -11
  43. package/dist/components/Breadcrumbs/components/styles.css.ts.vanilla.js +3 -1
  44. package/dist/components/Breadcrumbs/index.js +18 -16
  45. package/dist/components/Breadcrumbs/styles.css.js +19 -17
  46. package/dist/components/Breadcrumbs/styles.css.ts.vanilla.js +3 -1
  47. package/dist/components/Bullet/index.js +22 -20
  48. package/dist/components/Bullet/styles.css.js +105 -103
  49. package/dist/components/Bullet/styles.css.ts.vanilla.js +3 -1
  50. package/dist/components/Button/constants.js +10 -8
  51. package/dist/components/Button/index.js +116 -114
  52. package/dist/components/Button/styles.css.js +154 -152
  53. package/dist/components/Button/styles.css.ts.vanilla.js +3 -1
  54. package/dist/components/Card/index.js +43 -41
  55. package/dist/components/Card/styles.css.js +9 -7
  56. package/dist/components/Card/styles.css.ts.vanilla.js +3 -1
  57. package/dist/components/Carousel/Item.js +14 -12
  58. package/dist/components/Carousel/index.js +90 -88
  59. package/dist/components/Carousel/styles.css.js +13 -11
  60. package/dist/components/Carousel/styles.css.ts.vanilla.js +3 -1
  61. package/dist/components/Checkbox/CheckboxIconContainer.js +34 -32
  62. package/dist/components/Checkbox/index.d.ts +3 -14
  63. package/dist/components/Checkbox/index.d.ts.map +1 -1
  64. package/dist/components/Checkbox/index.js +92 -90
  65. package/dist/components/Checkbox/styles.css.js +26 -24
  66. package/dist/components/Checkbox/styles.css.ts.vanilla.js +3 -1
  67. package/dist/components/CheckboxGroup/Context.js +5 -3
  68. package/dist/components/CheckboxGroup/SingleCheckbox.js +34 -32
  69. package/dist/components/CheckboxGroup/index.js +67 -65
  70. package/dist/components/CheckboxGroup/styles.css.js +9 -7
  71. package/dist/components/CheckboxGroup/styles.css.ts.vanilla.js +3 -1
  72. package/dist/components/Chip/ChipContext.js +5 -3
  73. package/dist/components/Chip/ChipIcon.js +36 -34
  74. package/dist/components/Chip/index.js +66 -64
  75. package/dist/components/Chip/styles.css.js +9 -7
  76. package/dist/components/Chip/styles.css.ts.vanilla.js +3 -1
  77. package/dist/components/CopyButton/index.js +27 -25
  78. package/dist/components/DateInput/Context.js +22 -20
  79. package/dist/components/DateInput/components/CalendarContent.js +69 -67
  80. package/dist/components/DateInput/components/CalendarDaily.js +143 -141
  81. package/dist/components/DateInput/components/CalendarMonthly.js +86 -84
  82. package/dist/components/DateInput/components/Popup.js +37 -35
  83. package/dist/components/DateInput/components/styles.css.ts.vanilla.js +3 -1
  84. package/dist/components/DateInput/constants.js +5 -3
  85. package/dist/components/DateInput/helpers.js +68 -66
  86. package/dist/components/DateInput/helpersLocale.js +54 -52
  87. package/dist/components/DateInput/index.js +233 -231
  88. package/dist/components/DateInput/styles.css.js +19 -17
  89. package/dist/components/DateInput/styles.css.ts.vanilla.js +3 -1
  90. package/dist/components/Description/index.js +39 -37
  91. package/dist/components/Dialog/Context.js +10 -8
  92. package/dist/components/Dialog/components/Button.d.ts.map +1 -1
  93. package/dist/components/Dialog/components/Button.js +23 -15
  94. package/dist/components/Dialog/components/Buttons.js +12 -10
  95. package/dist/components/Dialog/components/CancelButton.js +14 -12
  96. package/dist/components/Dialog/components/Stack.js +11 -9
  97. package/dist/components/Dialog/components/Text.js +13 -11
  98. package/dist/components/Dialog/index.js +59 -57
  99. package/dist/components/Dialog/styles.css.js +9 -7
  100. package/dist/components/Dialog/styles.css.ts.vanilla.js +3 -1
  101. package/dist/components/Drawer/DrawerContent.js +10 -8
  102. package/dist/components/Drawer/index.js +94 -92
  103. package/dist/components/Drawer/styles.css.d.ts +0 -5
  104. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  105. package/dist/components/Drawer/styles.css.js +20 -18
  106. package/dist/components/Drawer/styles.css.ts.vanilla.js +3 -1
  107. package/dist/components/EmptyState/index.js +73 -71
  108. package/dist/components/EmptyState/styles.css.js +29 -27
  109. package/dist/components/EmptyState/styles.css.ts.vanilla.js +3 -1
  110. package/dist/components/Expandable/AnimatedExpandable.js +77 -77
  111. package/dist/components/Expandable/NonAnimatedExpandable.js +15 -13
  112. package/dist/components/Expandable/index.js +26 -26
  113. package/dist/components/Expandable/styles.css.js +7 -5
  114. package/dist/components/Expandable/styles.css.ts.vanilla.js +3 -1
  115. package/dist/components/ExpandableCard/components/Title.js +14 -12
  116. package/dist/components/ExpandableCard/index.js +143 -141
  117. package/dist/components/ExpandableCard/styles.css.js +14 -12
  118. package/dist/components/ExpandableCard/styles.css.ts.vanilla.js +3 -1
  119. package/dist/components/FileInput/DropzoneContent.js +19 -17
  120. package/dist/components/FileInput/FileInputProvider.js +10 -8
  121. package/dist/components/FileInput/components/Button.js +25 -23
  122. package/dist/components/FileInput/components/List.js +136 -134
  123. package/dist/components/FileInput/helpers.js +100 -98
  124. package/dist/components/FileInput/index.js +238 -236
  125. package/dist/components/FileInput/styles.css.js +59 -57
  126. package/dist/components/FileInput/styles.css.ts.vanilla.js +3 -1
  127. package/dist/components/GlobalAlert/GlobalAlertLink.js +24 -22
  128. package/dist/components/GlobalAlert/index.js +49 -47
  129. package/dist/components/GlobalAlert/styles.css.js +13 -11
  130. package/dist/components/GlobalAlert/styles.css.ts.vanilla.js +3 -1
  131. package/dist/components/InfiniteScroll/index.js +62 -60
  132. package/dist/components/Key/constants.js +12 -10
  133. package/dist/components/Key/index.js +39 -37
  134. package/dist/components/Key/styles.css.js +55 -53
  135. package/dist/components/Key/styles.css.ts.vanilla.js +3 -1
  136. package/dist/components/KeyValueInput/index.d.ts +6 -0
  137. package/dist/components/KeyValueInput/index.d.ts.map +1 -0
  138. package/dist/components/KeyValueInput/index.js +146 -0
  139. package/dist/components/KeyValueInput/styles.css.d.ts +5 -0
  140. package/dist/components/KeyValueInput/styles.css.d.ts.map +1 -0
  141. package/dist/components/KeyValueInput/styles.css.js +21 -0
  142. package/dist/components/KeyValueInput/styles.css.ts.vanilla.js +10 -0
  143. package/dist/components/KeyValueInput/types.d.ts +59 -0
  144. package/dist/components/KeyValueInput/types.d.ts.map +1 -0
  145. package/dist/components/Label/LabelContent.js +42 -40
  146. package/dist/components/Label/index.js +31 -29
  147. package/dist/components/Label/styles.css.js +10 -8
  148. package/dist/components/Label/styles.css.ts.vanilla.js +3 -1
  149. package/dist/components/LineChart/CustomLegend.js +87 -85
  150. package/dist/components/LineChart/LegendCell.js +13 -11
  151. package/dist/components/LineChart/Tooltip.js +25 -23
  152. package/dist/components/LineChart/helpers.js +34 -32
  153. package/dist/components/LineChart/index.js +93 -91
  154. package/dist/components/LineChart/styles.css.js +21 -19
  155. package/dist/components/LineChart/styles.css.ts.vanilla.js +3 -1
  156. package/dist/components/Link/index.js +85 -83
  157. package/dist/components/Link/styles.css.js +78 -76
  158. package/dist/components/Link/styles.css.ts.vanilla.js +3 -1
  159. package/dist/components/List/Cell.js +36 -34
  160. package/dist/components/List/ColumnProvider.js +21 -19
  161. package/dist/components/List/ExpandButtonCell.js +28 -26
  162. package/dist/components/List/HeaderCell.js +50 -48
  163. package/dist/components/List/HeaderRow.js +33 -31
  164. package/dist/components/List/ListContext.js +207 -205
  165. package/dist/components/List/Row.js +123 -121
  166. package/dist/components/List/SelectBar.js +30 -28
  167. package/dist/components/List/SelectRowCell.js +32 -30
  168. package/dist/components/List/SkeletonRows.js +27 -25
  169. package/dist/components/List/SortIcon.js +9 -7
  170. package/dist/components/List/TableContainer.js +20 -18
  171. package/dist/components/List/index.js +50 -48
  172. package/dist/components/List/styles.css.js +45 -43
  173. package/dist/components/List/styles.css.ts.vanilla.js +3 -1
  174. package/dist/components/List/variables.css.js +15 -13
  175. package/dist/components/Loader/constants.js +12 -10
  176. package/dist/components/Loader/index.js +53 -51
  177. package/dist/components/Loader/styles.css.js +10 -8
  178. package/dist/components/Loader/styles.css.ts.vanilla.js +3 -1
  179. package/dist/components/Menu/MenuContent.d.ts.map +1 -1
  180. package/dist/components/Menu/MenuContent.js +190 -188
  181. package/dist/components/Menu/MenuProvider.js +43 -41
  182. package/dist/components/Menu/components/Group.js +27 -25
  183. package/dist/components/Menu/components/Item.js +144 -142
  184. package/dist/components/Menu/helpers.js +29 -27
  185. package/dist/components/Menu/index.js +32 -30
  186. package/dist/components/Menu/styles.css.js +76 -74
  187. package/dist/components/Menu/styles.css.ts.vanilla.js +3 -1
  188. package/dist/components/Meter/index.js +49 -47
  189. package/dist/components/Meter/styles.css.js +11 -9
  190. package/dist/components/Meter/styles.css.ts.vanilla.js +3 -1
  191. package/dist/components/Modal/ModalContent.d.ts +1 -2
  192. package/dist/components/Modal/ModalContent.d.ts.map +1 -1
  193. package/dist/components/Modal/ModalContent.js +50 -41
  194. package/dist/components/Modal/ModalProvider.js +40 -38
  195. package/dist/components/Modal/components/Dialog.d.ts +1 -1
  196. package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
  197. package/dist/components/Modal/components/Dialog.js +170 -166
  198. package/dist/components/Modal/components/Disclosure.js +37 -35
  199. package/dist/components/Modal/constants.css.d.ts +11 -0
  200. package/dist/components/Modal/constants.css.d.ts.map +1 -0
  201. package/dist/components/Modal/index.js +65 -64
  202. package/dist/components/Modal/styles.css.d.ts +13 -61
  203. package/dist/components/Modal/styles.css.d.ts.map +1 -1
  204. package/dist/components/Modal/styles.css.js +48 -80
  205. package/dist/components/Modal/styles.css.ts.vanilla.js +3 -1
  206. package/dist/components/Modal/types.d.ts +1 -0
  207. package/dist/components/Modal/types.d.ts.map +1 -1
  208. package/dist/components/Modal/useDelayUnmount.d.ts +2 -0
  209. package/dist/components/Modal/useDelayUnmount.d.ts.map +1 -0
  210. package/dist/components/Modal/useDelayUnmount.js +27 -0
  211. package/dist/components/Notice/index.js +19 -17
  212. package/dist/components/Notice/styles.css.js +6 -4
  213. package/dist/components/Notice/styles.css.ts.vanilla.js +3 -1
  214. package/dist/components/Notification/Notification.js +37 -35
  215. package/dist/components/Notification/NotificationContainer.js +20 -18
  216. package/dist/components/Notification/styles.css.js +6 -4
  217. package/dist/components/Notification/styles.css.ts.vanilla.js +3 -1
  218. package/dist/components/NumberInput/components/Controls.js +61 -59
  219. package/dist/components/NumberInput/components/Unit.js +18 -16
  220. package/dist/components/NumberInput/index.d.ts +19 -5
  221. package/dist/components/NumberInput/index.d.ts.map +1 -1
  222. package/dist/components/NumberInput/index.js +158 -156
  223. package/dist/components/NumberInput/styles.css.js +81 -79
  224. package/dist/components/NumberInput/styles.css.ts.vanilla.js +3 -1
  225. package/dist/components/NumberInput/types.d.ts +3 -6
  226. package/dist/components/NumberInput/types.d.ts.map +1 -1
  227. package/dist/components/Pagination/Ellipsis.js +17 -15
  228. package/dist/components/Pagination/PaginationButton.js +21 -19
  229. package/dist/components/Pagination/PaginationButtons.js +74 -72
  230. package/dist/components/Pagination/PerPage.d.ts.map +1 -1
  231. package/dist/components/Pagination/PerPage.js +71 -65
  232. package/dist/components/Pagination/getPageNumbers.js +20 -18
  233. package/dist/components/Pagination/index.js +46 -44
  234. package/dist/components/Pagination/styles.css.js +16 -14
  235. package/dist/components/Pagination/styles.css.ts.vanilla.js +3 -1
  236. package/dist/components/PasswordCheck/index.js +31 -29
  237. package/dist/components/PasswordCheck/styles.css.js +6 -4
  238. package/dist/components/PasswordCheck/styles.css.ts.vanilla.js +3 -1
  239. package/dist/components/PhoneInput/index.js +131 -129
  240. package/dist/components/PhoneInput/styles.css.js +15 -13
  241. package/dist/components/PhoneInput/styles.css.ts.vanilla.js +3 -1
  242. package/dist/components/PieChart/Legends.js +57 -55
  243. package/dist/components/PieChart/Tooltip.js +39 -37
  244. package/dist/components/PieChart/index.js +86 -84
  245. package/dist/components/PieChart/styles.css.js +29 -27
  246. package/dist/components/PieChart/styles.css.ts.vanilla.js +3 -1
  247. package/dist/components/Popover/ContentWrapper.js +34 -32
  248. package/dist/components/Popover/index.js +53 -51
  249. package/dist/components/Popover/styles.css.js +23 -21
  250. package/dist/components/Popover/styles.css.ts.vanilla.js +3 -1
  251. package/dist/components/Popup/helpers.js +243 -241
  252. package/dist/components/Popup/index.js +321 -319
  253. package/dist/components/Popup/styles.css.js +40 -38
  254. package/dist/components/Popup/styles.css.ts.vanilla.js +3 -1
  255. package/dist/components/Popup/variables.css.js +12 -10
  256. package/dist/components/ProgressBar/index.js +73 -71
  257. package/dist/components/ProgressBar/styles.css.js +21 -19
  258. package/dist/components/ProgressBar/styles.css.ts.vanilla.js +3 -1
  259. package/dist/components/ProgressBar/variables.css.js +5 -3
  260. package/dist/components/Radio/MarkedIcon.js +32 -30
  261. package/dist/components/Radio/index.js +75 -73
  262. package/dist/components/Radio/styles.css.js +27 -25
  263. package/dist/components/Radio/styles.css.ts.vanilla.js +3 -1
  264. package/dist/components/RadioGroup/Context.js +5 -3
  265. package/dist/components/RadioGroup/SingleRadio.js +31 -29
  266. package/dist/components/RadioGroup/index.js +70 -68
  267. package/dist/components/RadioGroup/styles.css.js +6 -4
  268. package/dist/components/RadioGroup/styles.css.ts.vanilla.js +3 -1
  269. package/dist/components/Row/index.js +20 -18
  270. package/dist/components/Row/styles.css.js +487 -485
  271. package/dist/components/Row/styles.css.ts.vanilla.js +3 -1
  272. package/dist/components/Row/variables.css.js +21 -19
  273. package/dist/components/Row/variables.css.ts.vanilla.js +3 -1
  274. package/dist/components/SearchInput/KeyGroup.js +18 -16
  275. package/dist/components/SearchInput/index.d.ts.map +1 -1
  276. package/dist/components/SearchInput/index.js +197 -191
  277. package/dist/components/SearchInput/styles.css.js +10 -8
  278. package/dist/components/SearchInput/styles.css.ts.vanilla.js +3 -1
  279. package/dist/components/SearchInput/types.d.ts +1 -1
  280. package/dist/components/SearchInput/types.d.ts.map +1 -1
  281. package/dist/components/SelectInput/SelectInputProvider.js +114 -112
  282. package/dist/components/SelectInput/components/Dropdown/AddOption.js +36 -34
  283. package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
  284. package/dist/components/SelectInput/components/Dropdown/Content.js +189 -184
  285. package/dist/components/SelectInput/components/Dropdown/Dropdown.js +192 -190
  286. package/dist/components/SelectInput/components/Dropdown/Group.js +61 -59
  287. package/dist/components/SelectInput/components/Dropdown/Item.js +64 -62
  288. package/dist/components/SelectInput/components/Dropdown/Option.js +108 -106
  289. package/dist/components/SelectInput/components/Dropdown/SearchBar.js +94 -93
  290. package/dist/components/SelectInput/components/Dropdown/SelectAll.js +63 -61
  291. package/dist/components/SelectInput/components/Dropdown/dropdown.css.js +33 -31
  292. package/dist/components/SelectInput/components/Dropdown/dropdown.css.ts.vanilla.js +3 -1
  293. package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts +2 -1
  294. package/dist/components/SelectInput/components/SelectBar/SelectBar.d.ts.map +1 -1
  295. package/dist/components/SelectInput/components/SelectBar/SelectBar.js +183 -179
  296. package/dist/components/SelectInput/components/SelectBar/Values.js +73 -71
  297. package/dist/components/SelectInput/components/SelectBar/selectBar.css.js +46 -44
  298. package/dist/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.js +3 -1
  299. package/dist/components/SelectInput/components/helpers.js +61 -59
  300. package/dist/components/SelectInput/constants.js +15 -13
  301. package/dist/components/SelectInput/findOptionInOptions.js +10 -8
  302. package/dist/components/SelectInput/index.d.ts +9 -29
  303. package/dist/components/SelectInput/index.d.ts.map +1 -1
  304. package/dist/components/SelectInput/index.js +99 -96
  305. package/dist/components/SelectInput/reducerFunctions.js +54 -52
  306. package/dist/components/SelectInput/styles.css.js +107 -105
  307. package/dist/components/SelectInput/styles.css.ts.vanilla.js +3 -1
  308. package/dist/components/SelectableCard/IllustrationContainer.js +38 -36
  309. package/dist/components/SelectableCard/MultiStateInput.js +71 -69
  310. package/dist/components/SelectableCard/SelectableCard.js +107 -105
  311. package/dist/components/SelectableCard/styles.css.js +33 -31
  312. package/dist/components/SelectableCard/styles.css.ts.vanilla.js +3 -1
  313. package/dist/components/SelectableCard/variables.css.js +7 -5
  314. package/dist/components/SelectableCardGroup/Context.js +5 -3
  315. package/dist/components/SelectableCardGroup/SingleCard.js +31 -30
  316. package/dist/components/SelectableCardGroup/index.js +61 -59
  317. package/dist/components/SelectableCardGroup/styles.css.js +6 -4
  318. package/dist/components/SelectableCardGroup/styles.css.ts.vanilla.js +3 -1
  319. package/dist/components/SelectableCardOptionGroup/Provider.js +19 -17
  320. package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +67 -65
  321. package/dist/components/SelectableCardOptionGroup/components/Image.js +17 -15
  322. package/dist/components/SelectableCardOptionGroup/components/Option.js +77 -76
  323. package/dist/components/SelectableCardOptionGroup/styles.css.js +15 -13
  324. package/dist/components/SelectableCardOptionGroup/styles.css.ts.vanilla.js +3 -1
  325. package/dist/components/Separator/index.js +44 -42
  326. package/dist/components/Separator/styles.css.js +55 -53
  327. package/dist/components/Separator/styles.css.ts.vanilla.js +3 -1
  328. package/dist/components/Skeleton/Block.js +14 -12
  329. package/dist/components/Skeleton/Blocks.js +16 -14
  330. package/dist/components/Skeleton/BoxWithIcon.js +16 -14
  331. package/dist/components/Skeleton/Donut.js +26 -24
  332. package/dist/components/Skeleton/IconSkeleton.js +6 -4
  333. package/dist/components/Skeleton/Line.js +17 -15
  334. package/dist/components/Skeleton/List.js +16 -14
  335. package/dist/components/Skeleton/Slider.js +14 -12
  336. package/dist/components/Skeleton/Square.js +6 -4
  337. package/dist/components/Skeleton/index.js +40 -38
  338. package/dist/components/Skeleton/styles.css.js +28 -26
  339. package/dist/components/Skeleton/styles.css.ts.vanilla.js +3 -1
  340. package/dist/components/Skeleton/stylesVariants.css.js +9 -7
  341. package/dist/components/Skeleton/stylesVariants.css.ts.vanilla.js +3 -1
  342. package/dist/components/Slider/components/DoubleSlider.js +284 -284
  343. package/dist/components/Slider/components/Options.js +36 -36
  344. package/dist/components/Slider/components/SingleSlider.js +195 -195
  345. package/dist/components/Slider/index.js +101 -99
  346. package/dist/components/Slider/styles.css.js +103 -101
  347. package/dist/components/Slider/styles.css.ts.vanilla.js +3 -1
  348. package/dist/components/Snippet/CodeContent.js +23 -21
  349. package/dist/components/Snippet/index.js +91 -89
  350. package/dist/components/Snippet/styles.css.js +55 -53
  351. package/dist/components/Snippet/styles.css.ts.vanilla.js +3 -1
  352. package/dist/components/Stack/index.js +57 -55
  353. package/dist/components/Stack/styles.css.js +574 -572
  354. package/dist/components/Stack/styles.css.ts.vanilla.js +3 -1
  355. package/dist/components/Stack/variables.css.js +9 -7
  356. package/dist/components/Stack/variables.css.ts.vanilla.js +3 -1
  357. package/dist/components/Status/index.js +16 -14
  358. package/dist/components/Status/styles.css.js +38 -36
  359. package/dist/components/Status/styles.css.ts.vanilla.js +3 -1
  360. package/dist/components/StepList/Item.js +22 -20
  361. package/dist/components/StepList/index.js +14 -12
  362. package/dist/components/StepList/styles.css.js +26 -24
  363. package/dist/components/StepList/styles.css.ts.vanilla.js +3 -1
  364. package/dist/components/Stepper/Bullet.js +31 -29
  365. package/dist/components/Stepper/Step.js +62 -60
  366. package/dist/components/Stepper/StepperProvider.js +38 -35
  367. package/dist/components/Stepper/index.js +46 -44
  368. package/dist/components/Stepper/styles.css.js +131 -129
  369. package/dist/components/Stepper/styles.css.ts.vanilla.js +3 -1
  370. package/dist/components/SwitchButton/FocusOverlay.js +12 -12
  371. package/dist/components/SwitchButton/Option.js +42 -41
  372. package/dist/components/SwitchButton/SwitchButtonContext.js +10 -8
  373. package/dist/components/SwitchButton/index.js +131 -131
  374. package/dist/components/SwitchButton/styles.css.js +18 -16
  375. package/dist/components/SwitchButton/styles.css.ts.vanilla.js +3 -1
  376. package/dist/components/Table/Body.js +6 -4
  377. package/dist/components/Table/Cell.d.ts.map +1 -1
  378. package/dist/components/Table/Cell.js +34 -28
  379. package/dist/components/Table/Header.js +9 -7
  380. package/dist/components/Table/HeaderCell.d.ts.map +1 -1
  381. package/dist/components/Table/HeaderCell.js +61 -55
  382. package/dist/components/Table/HeaderRow.d.ts.map +1 -1
  383. package/dist/components/Table/HeaderRow.js +32 -29
  384. package/dist/components/Table/Row.js +87 -91
  385. package/dist/components/Table/SelectBar.js +30 -28
  386. package/dist/components/Table/SkeletonRows.js +19 -17
  387. package/dist/components/Table/SortIcon.js +9 -7
  388. package/dist/components/Table/TableContainer.js +20 -18
  389. package/dist/components/Table/TableContext.d.ts +2 -0
  390. package/dist/components/Table/TableContext.d.ts.map +1 -1
  391. package/dist/components/Table/TableContext.js +52 -48
  392. package/dist/components/Table/constants.d.ts +10 -2
  393. package/dist/components/Table/constants.d.ts.map +1 -1
  394. package/dist/components/Table/constants.js +11 -2
  395. package/dist/components/Table/index.d.ts +2 -0
  396. package/dist/components/Table/index.d.ts.map +1 -1
  397. package/dist/components/Table/index.js +60 -57
  398. package/dist/components/Table/styles.css.d.ts +22 -6
  399. package/dist/components/Table/styles.css.d.ts.map +1 -1
  400. package/dist/components/Table/styles.css.js +65 -53
  401. package/dist/components/Table/styles.css.ts.vanilla.js +3 -1
  402. package/dist/components/Table/variables.css.js +10 -8
  403. package/dist/components/Tabs/Tab.js +86 -84
  404. package/dist/components/Tabs/TabMenu.js +41 -39
  405. package/dist/components/Tabs/TabMenuItem.js +29 -27
  406. package/dist/components/Tabs/TabsContext.js +6 -4
  407. package/dist/components/Tabs/index.js +77 -75
  408. package/dist/components/Tabs/styles.css.js +19 -17
  409. package/dist/components/Tabs/styles.css.ts.vanilla.js +3 -1
  410. package/dist/components/Tag/index.js +86 -82
  411. package/dist/components/Tag/styles.css.js +143 -141
  412. package/dist/components/Tag/styles.css.ts.vanilla.js +3 -1
  413. package/dist/components/TagInput/index.js +183 -181
  414. package/dist/components/TagInput/styles.css.js +20 -18
  415. package/dist/components/TagInput/styles.css.ts.vanilla.js +3 -1
  416. package/dist/components/TagList/constant.js +6 -4
  417. package/dist/components/TagList/index.js +170 -168
  418. package/dist/components/TagList/styles.css.js +18 -16
  419. package/dist/components/TagList/styles.css.ts.vanilla.js +3 -1
  420. package/dist/components/Text/index.js +44 -42
  421. package/dist/components/Text/style.css.js +449 -447
  422. package/dist/components/Text/style.css.ts.vanilla.js +3 -1
  423. package/dist/components/Text/variables.css.js +8 -6
  424. package/dist/components/TextArea/Icon.js +8 -6
  425. package/dist/components/TextArea/Notice.js +32 -30
  426. package/dist/components/TextArea/index.d.ts +4 -25
  427. package/dist/components/TextArea/index.d.ts.map +1 -1
  428. package/dist/components/TextArea/index.js +132 -132
  429. package/dist/components/TextArea/styles.css.js +28 -26
  430. package/dist/components/TextArea/styles.css.ts.vanilla.js +3 -1
  431. package/dist/components/TextInput/PrefixSuffix.js +20 -18
  432. package/dist/components/TextInput/RightIcon.js +48 -46
  433. package/dist/components/TextInput/ShowHidePassword.js +24 -22
  434. package/dist/components/TextInput/index.d.ts +1 -1
  435. package/dist/components/TextInput/index.js +138 -136
  436. package/dist/components/TextInput/styles.css.js +19 -17
  437. package/dist/components/TextInput/styles.css.ts.vanilla.js +3 -1
  438. package/dist/components/TextInput/type.d.ts +1 -1
  439. package/dist/components/TextInput/type.d.ts.map +1 -1
  440. package/dist/components/TimeInput/RightIcon.js +25 -23
  441. package/dist/components/TimeInput/constants.js +16 -14
  442. package/dist/components/TimeInput/helpers.js +44 -42
  443. package/dist/components/TimeInput/index.d.ts +5 -23
  444. package/dist/components/TimeInput/index.d.ts.map +1 -1
  445. package/dist/components/TimeInput/index.js +292 -288
  446. package/dist/components/TimeInput/styles.css.js +31 -29
  447. package/dist/components/TimeInput/styles.css.ts.vanilla.js +3 -1
  448. package/dist/components/Toaster/Toaster.js +31 -29
  449. package/dist/components/Toaster/ToasterContainer.js +24 -22
  450. package/dist/components/Toaster/components/Button.js +22 -20
  451. package/dist/components/Toaster/components/CloseButton.js +14 -12
  452. package/dist/components/Toaster/components/Content.js +16 -14
  453. package/dist/components/Toaster/components/Link.js +18 -15
  454. package/dist/components/Toaster/constants.js +5 -3
  455. package/dist/components/Toaster/index.js +12 -10
  456. package/dist/components/Toaster/styles.css.js +10 -8
  457. package/dist/components/Toaster/styles.css.ts.vanilla.js +3 -1
  458. package/dist/components/Toggle/index.js +81 -79
  459. package/dist/components/Toggle/styles.css.js +49 -47
  460. package/dist/components/Toggle/styles.css.ts.vanilla.js +3 -1
  461. package/dist/components/ToggleGroup/Context.js +5 -3
  462. package/dist/components/ToggleGroup/SingleToggle.js +27 -25
  463. package/dist/components/ToggleGroup/index.js +65 -63
  464. package/dist/components/ToggleGroup/styles.css.js +6 -4
  465. package/dist/components/ToggleGroup/styles.css.ts.vanilla.js +3 -1
  466. package/dist/components/Tooltip/index.js +27 -25
  467. package/dist/components/Tooltip/styles.css.js +6 -4
  468. package/dist/components/Tooltip/styles.css.ts.vanilla.js +3 -1
  469. package/dist/components/TreeMapChart/Tooltip.js +21 -19
  470. package/dist/components/TreeMapChart/index.js +49 -47
  471. package/dist/components/TreeMapChart/styles.css.js +9 -7
  472. package/dist/components/TreeMapChart/styles.css.ts.vanilla.js +3 -1
  473. package/dist/components/UnitInput/index.d.ts +3 -6
  474. package/dist/components/UnitInput/index.d.ts.map +1 -1
  475. package/dist/components/UnitInput/index.js +123 -121
  476. package/dist/components/UnitInput/styles.css.js +28 -26
  477. package/dist/components/UnitInput/styles.css.ts.vanilla.js +3 -1
  478. package/dist/components/VerificationCode/index.js +143 -142
  479. package/dist/components/VerificationCode/styles.css.js +15 -13
  480. package/dist/components/VerificationCode/styles.css.ts.vanilla.js +3 -1
  481. package/dist/components/index.d.ts +1 -0
  482. package/dist/components/index.d.ts.map +1 -1
  483. package/dist/components/styles.d.ts +1 -0
  484. package/dist/components/styles.d.ts.map +1 -1
  485. package/dist/composition.js +118 -11
  486. package/dist/compositions/CodeEditor/components/CopyButton.js +14 -12
  487. package/dist/compositions/CodeEditor/components/Expandable.js +25 -23
  488. package/dist/compositions/CodeEditor/index.js +89 -87
  489. package/dist/compositions/CodeEditor/styles.css.js +30 -28
  490. package/dist/compositions/CodeEditor/styles.css.ts.vanilla.js +3 -1
  491. package/dist/compositions/ContentCard/Content.js +34 -32
  492. package/dist/compositions/ContentCard/ImageContent.js +14 -12
  493. package/dist/compositions/ContentCard/LinkContent.js +19 -17
  494. package/dist/compositions/ContentCard/Skeleton.js +28 -26
  495. package/dist/compositions/ContentCard/index.js +68 -66
  496. package/dist/compositions/ContentCard/styles.css.js +39 -37
  497. package/dist/compositions/ContentCard/styles.css.ts.vanilla.js +3 -1
  498. package/dist/compositions/ContentCardGroup/Card.js +53 -51
  499. package/dist/compositions/ContentCardGroup/SkeletonCard.js +26 -24
  500. package/dist/compositions/ContentCardGroup/index.js +17 -15
  501. package/dist/compositions/ContentCardGroup/styles.css.js +14 -12
  502. package/dist/compositions/ContentCardGroup/styles.css.ts.vanilla.js +3 -1
  503. package/dist/compositions/Conversation/components/Date.js +15 -13
  504. package/dist/compositions/Conversation/components/Message.js +20 -18
  505. package/dist/compositions/Conversation/components/MessageInfos.js +11 -9
  506. package/dist/compositions/Conversation/components/MessageTag.js +12 -10
  507. package/dist/compositions/Conversation/index.js +18 -16
  508. package/dist/compositions/Conversation/styles.css.js +23 -21
  509. package/dist/compositions/Conversation/styles.css.ts.vanilla.js +3 -1
  510. package/dist/compositions/CustomerSatisfaction/assets/1-5.js +5 -3
  511. package/dist/compositions/CustomerSatisfaction/assets/1-5NB.js +5 -3
  512. package/dist/compositions/CustomerSatisfaction/assets/2-5.js +5 -3
  513. package/dist/compositions/CustomerSatisfaction/assets/2-5NB.js +5 -3
  514. package/dist/compositions/CustomerSatisfaction/assets/3-5.js +5 -3
  515. package/dist/compositions/CustomerSatisfaction/assets/3-5NB.js +5 -3
  516. package/dist/compositions/CustomerSatisfaction/assets/4-5.js +5 -3
  517. package/dist/compositions/CustomerSatisfaction/assets/4-5NB.js +5 -3
  518. package/dist/compositions/CustomerSatisfaction/assets/5-5.js +5 -3
  519. package/dist/compositions/CustomerSatisfaction/assets/5-5NB.js +5 -3
  520. package/dist/compositions/CustomerSatisfaction/index.js +86 -84
  521. package/dist/compositions/CustomerSatisfaction/styles.css.js +21 -19
  522. package/dist/compositions/CustomerSatisfaction/styles.css.ts.vanilla.js +3 -1
  523. package/dist/compositions/EstimateCost/CompactEstimateCost.js +29 -27
  524. package/dist/compositions/EstimateCost/Components/Children.js +38 -36
  525. package/dist/compositions/EstimateCost/Components/CustomUnitInput.js +35 -33
  526. package/dist/compositions/EstimateCost/Components/Description.js +10 -8
  527. package/dist/compositions/EstimateCost/Components/Item.js +151 -149
  528. package/dist/compositions/EstimateCost/Components/ItemLeftSide.js +70 -68
  529. package/dist/compositions/EstimateCost/Components/ItemPrice.js +51 -49
  530. package/dist/compositions/EstimateCost/Components/LineThrough.js +15 -13
  531. package/dist/compositions/EstimateCost/Components/NumberInput.js +31 -29
  532. package/dist/compositions/EstimateCost/Components/Region.js +33 -31
  533. package/dist/compositions/EstimateCost/Components/Regular.js +17 -15
  534. package/dist/compositions/EstimateCost/Components/Strong.js +11 -9
  535. package/dist/compositions/EstimateCost/Components/Title.js +13 -11
  536. package/dist/compositions/EstimateCost/Components/Total.js +61 -59
  537. package/dist/compositions/EstimateCost/Components/Unit.js +47 -45
  538. package/dist/compositions/EstimateCost/Components/Zone.js +32 -30
  539. package/dist/compositions/EstimateCost/Components/components.css.js +59 -57
  540. package/dist/compositions/EstimateCost/Components/components.css.ts.vanilla.js +3 -1
  541. package/dist/compositions/EstimateCost/Ellipsis.js +25 -23
  542. package/dist/compositions/EstimateCost/EstimateCostContent.js +191 -189
  543. package/dist/compositions/EstimateCost/EstimateCostProvider.js +28 -26
  544. package/dist/compositions/EstimateCost/Image.js +13 -11
  545. package/dist/compositions/EstimateCost/OverlayComponent.js +91 -89
  546. package/dist/compositions/EstimateCost/OverlayContext.js +10 -8
  547. package/dist/compositions/EstimateCost/constants.js +26 -24
  548. package/dist/compositions/EstimateCost/helper.js +9 -7
  549. package/dist/compositions/EstimateCost/index.js +2 -86
  550. package/dist/compositions/EstimateCost/locales/en.js +25 -23
  551. package/dist/compositions/EstimateCost/styles.css.js +136 -134
  552. package/dist/compositions/EstimateCost/styles.css.ts.vanilla.js +3 -1
  553. package/dist/compositions/FAQ/index.js +36 -34
  554. package/dist/compositions/FAQ/styles.css.js +6 -4
  555. package/dist/compositions/FAQ/styles.css.ts.vanilla.js +3 -1
  556. package/dist/compositions/Filters/Filters.js +27 -25
  557. package/dist/compositions/Filters/filterTypes/FilterDateRange.js +27 -26
  558. package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/Dropdown.js +117 -115
  559. package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/FilterDatetimeRange.js +58 -56
  560. package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/filterDatetimeRange.styles.css.js +9 -7
  561. package/dist/compositions/Filters/filterTypes/FilterDatetimeRange/filterDatetimeRange.styles.css.ts.vanilla.js +3 -1
  562. package/dist/compositions/Filters/filterTypes/FilterMultiSelect.js +41 -39
  563. package/dist/compositions/Filters/filterTypes/FilterNumber.js +16 -14
  564. package/dist/compositions/Filters/filterTypes/FilterSearch.js +32 -30
  565. package/dist/compositions/Filters/filterTypes/FilterSelect.js +36 -34
  566. package/dist/compositions/Filters/filterTypes/FilterSlider.js +22 -20
  567. package/dist/compositions/Filters/filterTypes/FilterText.js +32 -30
  568. package/dist/compositions/Filters/index.js +4 -13
  569. package/dist/compositions/Filters/parts/AbstractFilter.js +43 -41
  570. package/dist/compositions/Filters/parts/ExpandableFilterGroup.js +43 -41
  571. package/dist/compositions/Filters/parts/FiltersDrawer.js +74 -72
  572. package/dist/compositions/Filters/parts/FiltersMainRow.js +65 -63
  573. package/dist/compositions/Filters/parts/FiltersProvider.js +46 -44
  574. package/dist/compositions/Filters/parts/helpers.js +32 -30
  575. package/dist/compositions/Filters/parts/reducer.js +48 -46
  576. package/dist/compositions/Filters/parts/styles.css.js +6 -4
  577. package/dist/compositions/Filters/parts/styles.css.ts.vanilla.js +3 -1
  578. package/dist/compositions/Filters/parts/useFilters.js +89 -86
  579. package/dist/compositions/InfoTable/Context.js +5 -3
  580. package/dist/compositions/InfoTable/components/Cell.d.ts.map +1 -1
  581. package/dist/compositions/InfoTable/components/Cell.js +36 -32
  582. package/dist/compositions/InfoTable/components/CellWithCopyButton.js +32 -30
  583. package/dist/compositions/InfoTable/components/Row.js +20 -18
  584. package/dist/compositions/InfoTable/index.js +40 -39
  585. package/dist/compositions/InfoTable/styles.css.js +141 -137
  586. package/dist/compositions/InfoTable/styles.css.ts.vanilla.js +3 -1
  587. package/dist/compositions/Navigation/Footer.js +56 -54
  588. package/dist/compositions/Navigation/Header.js +18 -16
  589. package/dist/compositions/Navigation/NavigationContent.js +104 -101
  590. package/dist/compositions/Navigation/NavigationProvider.js +137 -135
  591. package/dist/compositions/Navigation/components/Group.js +36 -34
  592. package/dist/compositions/Navigation/components/Item/Badge.js +14 -12
  593. package/dist/compositions/Navigation/components/Item/Children.js +22 -20
  594. package/dist/compositions/Navigation/components/Item/Content.js +66 -64
  595. package/dist/compositions/Navigation/components/Item/Item.js +201 -199
  596. package/dist/compositions/Navigation/components/Item/ItemExpanded.js +120 -118
  597. package/dist/compositions/Navigation/components/Item/ItemProvider.js +12 -10
  598. package/dist/compositions/Navigation/components/Item/PinnedButton.js +46 -44
  599. package/dist/compositions/Navigation/components/Menu/Menu.js +57 -55
  600. package/dist/compositions/Navigation/components/Menu/MenuItem.js +77 -75
  601. package/dist/compositions/Navigation/components/Menu/NestedMenu.js +40 -38
  602. package/dist/compositions/Navigation/components/PinnedItems.js +97 -95
  603. package/dist/compositions/Navigation/components/Separator.js +14 -12
  604. package/dist/compositions/Navigation/components/ShowHide.js +46 -44
  605. package/dist/compositions/Navigation/components/items.css.d.ts +2 -2
  606. package/dist/compositions/Navigation/components/items.css.ts.vanilla.js +3 -1
  607. package/dist/compositions/Navigation/components/styles.css.d.ts +2 -2
  608. package/dist/compositions/Navigation/components/styles.css.ts.vanilla.js +3 -1
  609. package/dist/compositions/Navigation/constants.d.ts +1 -1
  610. package/dist/compositions/Navigation/constants.js +5 -3
  611. package/dist/compositions/Navigation/index.js +2 -39
  612. package/dist/compositions/Navigation/locales/en.js +13 -11
  613. package/dist/compositions/Navigation/styles.css.d.ts +5 -5
  614. package/dist/compositions/Navigation/styles.css.js +133 -131
  615. package/dist/compositions/Navigation/styles.css.ts.vanilla.js +3 -1
  616. package/dist/compositions/Navigation/variables.css.js +7 -5
  617. package/dist/compositions/OfferList/OfferListProvider.js +39 -37
  618. package/dist/compositions/OfferList/components/Banner.js +30 -28
  619. package/dist/compositions/OfferList/components/Cell.js +28 -26
  620. package/dist/compositions/OfferList/components/OfferListRowProvider.js +9 -7
  621. package/dist/compositions/OfferList/components/Row.js +139 -137
  622. package/dist/compositions/OfferList/components/SelectableCell.js +54 -52
  623. package/dist/compositions/OfferList/index.js +47 -45
  624. package/dist/compositions/OfferList/styles.css.js +123 -121
  625. package/dist/compositions/OfferList/styles.css.ts.vanilla.js +3 -1
  626. package/dist/compositions/OptionSelector/components/ArrowIcon.js +16 -14
  627. package/dist/compositions/OptionSelector/components/IconWithContent.js +11 -9
  628. package/dist/compositions/OptionSelector/components/RevealOnHover.js +14 -12
  629. package/dist/compositions/OptionSelector/components/Selector.js +31 -29
  630. package/dist/compositions/OptionSelector/index.js +147 -145
  631. package/dist/compositions/OptionSelector/styles.css.js +148 -144
  632. package/dist/compositions/OptionSelector/styles.css.ts.vanilla.js +3 -1
  633. package/dist/compositions/OrderSummary/NonScrollableContent.js +101 -99
  634. package/dist/compositions/OrderSummary/Provider.js +18 -16
  635. package/dist/compositions/OrderSummary/ScrollableContent.js +30 -28
  636. package/dist/compositions/OrderSummary/components/Category.js +96 -94
  637. package/dist/compositions/OrderSummary/components/SubCategory.js +90 -88
  638. package/dist/compositions/OrderSummary/components/SubCategoryPrice.js +36 -34
  639. package/dist/compositions/OrderSummary/constants.js +18 -16
  640. package/dist/compositions/OrderSummary/helpers.js +128 -126
  641. package/dist/compositions/OrderSummary/index.js +132 -130
  642. package/dist/compositions/OrderSummary/locales/en.js +13 -11
  643. package/dist/compositions/OrderSummary/styles.css.js +50 -48
  644. package/dist/compositions/OrderSummary/styles.css.ts.vanilla.js +3 -1
  645. package/dist/compositions/Plans/FeatureHint.js +34 -32
  646. package/dist/compositions/Plans/PlanHeader.js +90 -88
  647. package/dist/compositions/Plans/index.js +148 -146
  648. package/dist/compositions/Plans/locales/en.js +9 -7
  649. package/dist/compositions/Plans/styles.css.js +39 -37
  650. package/dist/compositions/Plans/styles.css.ts.vanilla.js +3 -1
  651. package/dist/compositions/RichTextInput/Toolbar.js +110 -108
  652. package/dist/compositions/RichTextInput/editorCore.js +50 -48
  653. package/dist/compositions/RichTextInput/helpers.js +14 -12
  654. package/dist/compositions/RichTextInput/index.js +113 -111
  655. package/dist/compositions/RichTextInput/styles.css.js +38 -36
  656. package/dist/compositions/RichTextInput/styles.css.ts.vanilla.js +3 -1
  657. package/dist/compositions/SteppedListCard/Step.js +41 -39
  658. package/dist/compositions/SteppedListCard/SteppedListContent.js +51 -49
  659. package/dist/compositions/SteppedListCard/helper.js +26 -24
  660. package/dist/compositions/SteppedListCard/index.js +87 -85
  661. package/dist/compositions/SteppedListCard/styles.css.js +15 -13
  662. package/dist/compositions/SteppedListCard/styles.css.ts.vanilla.js +3 -1
  663. package/dist/helpers/hasHelperText.js +6 -4
  664. package/dist/helpers/isClientSide.js +6 -4
  665. package/dist/helpers/isStringOrNumberArray.d.ts +2 -0
  666. package/dist/helpers/isStringOrNumberArray.d.ts.map +1 -0
  667. package/dist/helpers/isStringOrNumberArray.js +13 -0
  668. package/dist/helpers/legend.js +11 -9
  669. package/dist/helpers/nivoTheme.js +20 -18
  670. package/dist/helpers/recursivelyGetChildrenString.d.ts.map +1 -1
  671. package/dist/helpers/recursivelyGetChildrenString.js +17 -12
  672. package/dist/helpers/treeMap.js +23 -21
  673. package/dist/hooks/useIsOverflowing.js +23 -21
  674. package/dist/index.d.ts +1 -0
  675. package/dist/index.d.ts.map +1 -1
  676. package/dist/index.js +200 -46
  677. package/dist/theme/ThemeProvider.js +39 -37
  678. package/dist/theme/index.js +18 -16
  679. package/dist/types.d.ts +35 -3
  680. package/dist/types.d.ts.map +1 -1
  681. package/dist/ui.css +1 -1
  682. package/dist/utils/animations/animations.js +3 -1
  683. package/dist/utils/animations/animations2.js +31 -29
  684. package/dist/utils/animations/animationsVanillaExtract.css.js +32 -30
  685. package/dist/utils/animations/animationsVanillaExtract.css.ts.vanilla.js +3 -1
  686. package/dist/utils/index.js +8 -7
  687. package/dist/utils/normalize.js +6 -4
  688. package/dist/utils/responsive/utilities.js +13 -11
  689. package/package.json +12 -12
  690. package/dist/components/Expandable/constant.js +0 -8
  691. package/dist/components/Modal/constants.d.ts +0 -44
  692. package/dist/components/Modal/constants.d.ts.map +0 -1
  693. package/dist/components/Notification/index.js +0 -13
  694. package/dist/components/SelectableCard/index.js +0 -11
  695. package/dist/components/SelectableCardOptionGroup/index.js +0 -11
  696. package/dist/components/Slider/constant.js +0 -8
  697. package/dist/components/SwitchButton/constant.js +0 -8
  698. package/dist/components/TextArea/constant.js +0 -8
  699. package/dist/components/index.js +0 -170
  700. package/dist/components/styles.js +0 -157
  701. package/dist/compositions/index.js +0 -47
  702. package/dist/compositions/styles.js +0 -37
  703. package/dist/utils/responsive/index.js +0 -11
@@ -14,79 +14,81 @@ import { PlusIcon } from "@ultraviolet/icons/PlusIcon";
14
14
 
15
15
  //#region src/components/SelectInput/components/SelectBar/Values.tsx
16
16
  var DisplayValues;
17
- var init_Values = __esmMin(() => {
18
- init_Stack();
19
- init_Tag();
20
- init_Text();
21
- init_findOptionInOptions();
22
- init_SelectInputProvider();
23
- init_styles_css();
24
- init_selectBar_css();
25
- DisplayValues = ({ refTag, nonOverflowedValues, potentiallyNonOverflowedValues, disabled, readOnly, overflowed, overflowAmount, measureRef, lastElementMaxWidth, overflow, refPlusTag, displayShadowCopy, textVariant }) => {
26
- var _findOptionInOptions;
27
- const { multiselect, selectedData, setSelectedData, options, onChange } = useSelectInput();
28
- return multiselect ? /* @__PURE__ */ jsxs(Stack, {
29
- alignItems: "center",
30
- className: selectInputStyle.multiselectStack,
31
- direction: "row",
32
- gap: "1",
33
- ref: refTag,
34
- wrap: "nowrap",
35
- children: [
36
- displayShadowCopy ? /* @__PURE__ */ jsx("div", {
37
- ref: measureRef,
38
- style: { position: "absolute" },
39
- children: potentiallyNonOverflowedValues.map((option) => /* @__PURE__ */ jsx(Tag, {
40
- className: cn(option.value, selectInputStyle.selectBarTags.hidden),
41
- onClose: () => {},
42
- children: option === null || option === void 0 ? void 0 : option.label
43
- }, option.value))
44
- }) : null,
45
- nonOverflowedValues.map((option, index) => /* @__PURE__ */ jsx(Tag, {
46
- className: selectInputStyle.selectBarTags.visible,
47
- "data-testid": "selected-options-tags",
48
- disabled,
49
- onClose: readOnly ? void 0 : (event) => {
50
- var _selectedData$selecte;
51
- event.stopPropagation();
52
- setSelectedData({
53
- clickedOption: option,
54
- type: "selectOption"
55
- });
56
- const newSelectedValues = (_selectedData$selecte = selectedData.selectedValues) === null || _selectedData$selecte === void 0 ? void 0 : _selectedData$selecte.filter((val) => val !== option.value);
57
- onChange === null || onChange === void 0 || onChange(newSelectedValues);
58
- },
59
- sentiment: "neutral",
60
- style: index === nonOverflowedValues.length - 1 && overflow ? assignInlineVars({
61
- [minWidthTag]: "auto",
62
- [maxWidthTag]: `${lastElementMaxWidth}px`
63
- }) : void 0,
64
- children: option === null || option === void 0 ? void 0 : option.label
65
- }, option === null || option === void 0 ? void 0 : option.value)),
66
- overflowed ? /* @__PURE__ */ jsx(Stack, {
67
- justifyContent: "center",
68
- ref: refPlusTag,
69
- children: /* @__PURE__ */ jsxs(Tag, {
70
- "aria-label": "Plus tag",
71
- className: selectInputStyle.plusTag,
72
- "data-testid": "plus-tag",
17
+ function init_Values() {
18
+ return (init_Values = __esmMin(() => {
19
+ init_Stack();
20
+ init_Tag();
21
+ init_Text();
22
+ init_findOptionInOptions();
23
+ init_SelectInputProvider();
24
+ init_styles_css();
25
+ init_selectBar_css();
26
+ DisplayValues = ({ refTag, nonOverflowedValues, potentiallyNonOverflowedValues, disabled, readOnly, overflowed, overflowAmount, measureRef, lastElementMaxWidth, overflow, refPlusTag, displayShadowCopy, textVariant }) => {
27
+ var _findOptionInOptions;
28
+ const { multiselect, selectedData, setSelectedData, options, onChange } = useSelectInput();
29
+ return multiselect ? /* @__PURE__ */ jsxs(Stack, {
30
+ alignItems: "center",
31
+ className: selectInputStyle.multiselectStack,
32
+ direction: "row",
33
+ gap: "1",
34
+ ref: refTag,
35
+ wrap: "nowrap",
36
+ children: [
37
+ displayShadowCopy ? /* @__PURE__ */ jsx("div", {
38
+ ref: measureRef,
39
+ style: { position: "absolute" },
40
+ children: potentiallyNonOverflowedValues.map((option) => /* @__PURE__ */ jsx(Tag, {
41
+ className: cn(option.value, selectInputStyle.selectBarTags.hidden),
42
+ onClose: () => {},
43
+ children: option === null || option === void 0 ? void 0 : option.label
44
+ }, option.value))
45
+ }) : null,
46
+ nonOverflowedValues.map((option, index) => /* @__PURE__ */ jsx(Tag, {
47
+ className: selectInputStyle.selectBarTags.visible,
48
+ "data-testid": "selected-options-tags",
73
49
  disabled,
50
+ onClose: readOnly ? void 0 : (event) => {
51
+ var _selectedData$selecte;
52
+ event.stopPropagation();
53
+ setSelectedData({
54
+ clickedOption: option,
55
+ type: "selectOption"
56
+ });
57
+ const newSelectedValues = (_selectedData$selecte = selectedData.selectedValues) === null || _selectedData$selecte === void 0 ? void 0 : _selectedData$selecte.filter((val) => val !== option.value);
58
+ onChange === null || onChange === void 0 || onChange(newSelectedValues);
59
+ },
74
60
  sentiment: "neutral",
75
- children: [/* @__PURE__ */ jsx(PlusIcon, { size: "xsmall" }), overflowAmount]
76
- }, "+")
77
- }) : null
78
- ]
79
- }) : /* @__PURE__ */ jsx(Text, {
80
- as: "span",
81
- className: selectInputStyle.selectedValues,
82
- disabled,
83
- prominence: "default",
84
- sentiment: "neutral",
85
- variant: textVariant,
86
- children: selectedData.selectedValues[0] ? (_findOptionInOptions = findOptionInOptions(options, selectedData.selectedValues[0])) === null || _findOptionInOptions === void 0 ? void 0 : _findOptionInOptions.label : null
87
- });
88
- };
89
- });
61
+ style: index === nonOverflowedValues.length - 1 && overflow ? assignInlineVars({
62
+ [minWidthTag]: "auto",
63
+ [maxWidthTag]: `${lastElementMaxWidth}px`
64
+ }) : void 0,
65
+ children: option === null || option === void 0 ? void 0 : option.label
66
+ }, option === null || option === void 0 ? void 0 : option.value)),
67
+ overflowed ? /* @__PURE__ */ jsx(Stack, {
68
+ justifyContent: "center",
69
+ ref: refPlusTag,
70
+ children: /* @__PURE__ */ jsxs(Tag, {
71
+ "aria-label": "Plus tag",
72
+ className: selectInputStyle.plusTag,
73
+ "data-testid": "plus-tag",
74
+ disabled,
75
+ sentiment: "neutral",
76
+ children: [/* @__PURE__ */ jsx(PlusIcon, { size: "xsmall" }), overflowAmount]
77
+ }, "+")
78
+ }) : null
79
+ ]
80
+ }) : /* @__PURE__ */ jsx(Text, {
81
+ as: "span",
82
+ className: selectInputStyle.selectedValues,
83
+ disabled,
84
+ prominence: "default",
85
+ sentiment: "neutral",
86
+ variant: textVariant,
87
+ children: selectedData.selectedValues[0] ? (_findOptionInOptions = findOptionInOptions(options, selectedData.selectedValues[0])) === null || _findOptionInOptions === void 0 ? void 0 : _findOptionInOptions.label : null
88
+ });
89
+ };
90
+ }))();
91
+ }
90
92
 
91
93
  //#endregion
92
94
  init_Values();
@@ -6,52 +6,54 @@ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
6
6
 
7
7
  //#region src/components/SelectInput/components/SelectBar/selectBar.css.ts
8
8
  var maxWidthTag, minWidthTag, selectBar;
9
- var init_selectBar_css = __esmMin(() => {
10
- init_styles_css_ts_vanilla();
11
- init_styles_css_ts_vanilla$1();
12
- init_selectBar_css_ts_vanilla();
13
- maxWidthTag = "var(--uv_r8qe40)";
14
- minWidthTag = "var(--uv_r8qe41)";
15
- selectBar = createRuntimeFn({
16
- defaultClassName: "uv_r8qe46 uv_r8qe45",
17
- variantClassNames: {
18
- disabled: { true: "uv_r8qe47" },
19
- dropdownVisible: { true: "uv_r8qe48" },
20
- readOnly: { true: "uv_r8qe49" },
21
- size: {
22
- large: "uv_r8qe4a",
23
- medium: "uv_r8qe4b",
24
- small: "uv_r8qe4c"
9
+ function init_selectBar_css() {
10
+ return (init_selectBar_css = __esmMin(() => {
11
+ /* @__PURE__ */ init_styles_css_ts_vanilla();
12
+ /* @__PURE__ */ init_styles_css_ts_vanilla$1();
13
+ /* @__PURE__ */ init_selectBar_css_ts_vanilla();
14
+ maxWidthTag = "var(--uv_r8qe40)";
15
+ minWidthTag = "var(--uv_r8qe41)";
16
+ selectBar = createRuntimeFn({
17
+ defaultClassName: "uv_r8qe46 uv_r8qe45",
18
+ variantClassNames: {
19
+ disabled: { true: "uv_r8qe47" },
20
+ dropdownVisible: { true: "uv_r8qe48" },
21
+ readOnly: { true: "uv_r8qe49" },
22
+ size: {
23
+ large: "uv_r8qe4a",
24
+ medium: "uv_r8qe4b",
25
+ small: "uv_r8qe4c"
26
+ },
27
+ state: {
28
+ danger: "uv_r8qe4d",
29
+ neutral: "uv_r8qe4e",
30
+ success: "uv_r8qe4f"
31
+ }
25
32
  },
26
- state: {
27
- danger: "uv_r8qe4d",
28
- neutral: "uv_r8qe4e",
29
- success: "uv_r8qe4f"
30
- }
31
- },
32
- defaultVariants: {
33
- disabled: false,
34
- dropdownVisible: false,
35
- readOnly: false,
36
- size: "large",
37
- state: "neutral"
38
- },
39
- compoundVariants: [
40
- [{
41
- dropdownVisible: true,
33
+ defaultVariants: {
34
+ disabled: false,
35
+ dropdownVisible: false,
36
+ readOnly: false,
37
+ size: "large",
42
38
  state: "neutral"
43
- }, "uv_r8qe4g"],
44
- [{
45
- dropdownVisible: true,
46
- state: "success"
47
- }, "uv_r8qe4h"],
48
- [{
49
- dropdownVisible: true,
50
- state: "danger"
51
- }, "uv_r8qe4i"]
52
- ]
53
- });
54
- });
39
+ },
40
+ compoundVariants: [
41
+ [{
42
+ dropdownVisible: true,
43
+ state: "neutral"
44
+ }, "uv_r8qe4g"],
45
+ [{
46
+ dropdownVisible: true,
47
+ state: "success"
48
+ }, "uv_r8qe4h"],
49
+ [{
50
+ dropdownVisible: true,
51
+ state: "danger"
52
+ }, "uv_r8qe4i"]
53
+ ]
54
+ });
55
+ }))();
56
+ }
55
57
 
56
58
  //#endregion
57
59
  init_selectBar_css();
@@ -1,7 +1,9 @@
1
1
  import { __esmMin } from "../../../../_virtual/_rolldown/runtime.js";
2
2
 
3
3
  //#region src/components/SelectInput/components/SelectBar/selectBar.css.ts.vanilla.css
4
- var init_selectBar_css_ts_vanilla = __esmMin(() => {});
4
+ function init_selectBar_css_ts_vanilla() {
5
+ return (init_selectBar_css_ts_vanilla = __esmMin(() => {}))();
6
+ }
5
7
 
6
8
  //#endregion
7
9
  init_selectBar_css_ts_vanilla();
@@ -3,74 +3,76 @@ import { SIZES_TAG, init_constants } from "../constants.js";
3
3
 
4
4
  //#region src/components/SelectInput/components/helpers.ts
5
5
  var getTagsWidth, computeOverflowVars, computeSelectedDataMultiselect, computeSelectedDataSingleSelect;
6
- var init_helpers = __esmMin(() => {
7
- init_constants();
8
- getTagsWidth = (toMeasureElementsArray, innerWidth, potentiallyNonOverflowedValues) => toMeasureElementsArray.reduce((accumulator, currentValue, index) => {
9
- const elementWidth = currentValue.offsetWidth;
10
- const newAccumulatedWidth = accumulator.accumulatedWidth + elementWidth + SIZES_TAG.gap;
11
- const canBeVisible = newAccumulatedWidth <= innerWidth;
12
- return {
13
- accumulatedWidth: canBeVisible ? newAccumulatedWidth : accumulator.accumulatedWidth,
14
- lastVisibleElementWidth: canBeVisible ? elementWidth : accumulator.lastVisibleElementWidth,
15
- lastVisibleLabel: canBeVisible ? potentiallyNonOverflowedValues[index].label : accumulator.lastVisibleLabel,
16
- measuredHiddenTags: accumulator.measuredHiddenTags + (canBeVisible ? 0 : 1),
17
- measuredVisibleTags: [...accumulator.measuredVisibleTags, ...canBeVisible ? [potentiallyNonOverflowedValues[index]] : []]
18
- };
19
- }, {
20
- accumulatedWidth: 0,
21
- lastVisibleElementWidth: 0,
22
- lastVisibleLabel: "",
23
- measuredHiddenTags: 0,
24
- measuredVisibleTags: []
25
- });
26
- computeOverflowVars = (tagsWidth, hasOverflow, lastVisibleElementMaxSize, hasHiddenTags, potentiallyNonOverflowedValues, additionnalElementsWidth) => {
27
- if (tagsWidth.measuredHiddenTags === 1 && tagsWidth.measuredVisibleTags.length === 0) {
28
- const newOverflowPx = tagsWidth.lastVisibleElementWidth + (tagsWidth.measuredHiddenTags > 1 ? additionnalElementsWidth : 0) - innerWidth;
6
+ function init_helpers() {
7
+ return (init_helpers = __esmMin(() => {
8
+ init_constants();
9
+ getTagsWidth = (toMeasureElementsArray, innerWidth, potentiallyNonOverflowedValues) => toMeasureElementsArray.reduce((accumulator, currentValue, index) => {
10
+ const elementWidth = currentValue.offsetWidth;
11
+ const newAccumulatedWidth = accumulator.accumulatedWidth + elementWidth + SIZES_TAG.gap;
12
+ const canBeVisible = newAccumulatedWidth <= innerWidth;
29
13
  return {
30
- overflowAmount: 0,
31
- nonOverflowedValues: [potentiallyNonOverflowedValues[0]],
32
- lastElementMaxWidth: tagsWidth.lastVisibleElementWidth - newOverflowPx,
14
+ accumulatedWidth: canBeVisible ? newAccumulatedWidth : accumulator.accumulatedWidth,
15
+ lastVisibleElementWidth: canBeVisible ? elementWidth : accumulator.lastVisibleElementWidth,
16
+ lastVisibleLabel: canBeVisible ? potentiallyNonOverflowedValues[index].label : accumulator.lastVisibleLabel,
17
+ measuredHiddenTags: accumulator.measuredHiddenTags + (canBeVisible ? 0 : 1),
18
+ measuredVisibleTags: [...accumulator.measuredVisibleTags, ...canBeVisible ? [potentiallyNonOverflowedValues[index]] : []]
19
+ };
20
+ }, {
21
+ accumulatedWidth: 0,
22
+ lastVisibleElementWidth: 0,
23
+ lastVisibleLabel: "",
24
+ measuredHiddenTags: 0,
25
+ measuredVisibleTags: []
26
+ });
27
+ computeOverflowVars = (tagsWidth, hasOverflow, lastVisibleElementMaxSize, hasHiddenTags, potentiallyNonOverflowedValues, additionnalElementsWidth) => {
28
+ if (tagsWidth.measuredHiddenTags === 1 && tagsWidth.measuredVisibleTags.length === 0) {
29
+ const newOverflowPx = tagsWidth.lastVisibleElementWidth + (tagsWidth.measuredHiddenTags > 1 ? additionnalElementsWidth : 0) - innerWidth;
30
+ return {
31
+ overflowAmount: 0,
32
+ nonOverflowedValues: [potentiallyNonOverflowedValues[0]],
33
+ lastElementMaxWidth: tagsWidth.lastVisibleElementWidth - newOverflowPx,
34
+ hasOverflow: true
35
+ };
36
+ }
37
+ if (hasOverflow && hasHiddenTags && (lastVisibleElementMaxSize > 65 || tagsWidth.measuredVisibleTags.length === 1 && lastVisibleElementMaxSize > 65) && typeof tagsWidth.lastVisibleLabel === "string") return {
38
+ overflowAmount: tagsWidth.measuredHiddenTags,
39
+ nonOverflowedValues: tagsWidth.measuredVisibleTags,
40
+ lastElementMaxWidth: lastVisibleElementMaxSize,
33
41
  hasOverflow: true
34
42
  };
35
- }
36
- if (hasOverflow && hasHiddenTags && (lastVisibleElementMaxSize > 65 || tagsWidth.measuredVisibleTags.length === 1 && lastVisibleElementMaxSize > 65) && typeof tagsWidth.lastVisibleLabel === "string") return {
37
- overflowAmount: tagsWidth.measuredHiddenTags,
38
- nonOverflowedValues: tagsWidth.measuredVisibleTags,
39
- lastElementMaxWidth: lastVisibleElementMaxSize,
40
- hasOverflow: true
41
- };
42
- if (hasOverflow && hasHiddenTags) return {
43
- overflowAmount: tagsWidth.measuredHiddenTags + 1,
44
- nonOverflowedValues: tagsWidth.measuredVisibleTags.slice(0, -1),
45
- lastElementMaxWidth: 0,
46
- hasOverflow: false
47
- };
48
- return {
49
- overflowAmount: tagsWidth.measuredHiddenTags,
50
- nonOverflowedValues: tagsWidth.measuredVisibleTags,
51
- lastElementMaxWidth: lastVisibleElementMaxSize,
52
- hasOverflow: false
43
+ if (hasOverflow && hasHiddenTags) return {
44
+ overflowAmount: tagsWidth.measuredHiddenTags + 1,
45
+ nonOverflowedValues: tagsWidth.measuredVisibleTags.slice(0, -1),
46
+ lastElementMaxWidth: 0,
47
+ hasOverflow: false
48
+ };
49
+ return {
50
+ overflowAmount: tagsWidth.measuredHiddenTags,
51
+ nonOverflowedValues: tagsWidth.measuredVisibleTags,
52
+ lastElementMaxWidth: lastVisibleElementMaxSize,
53
+ hasOverflow: false
54
+ };
53
55
  };
54
- };
55
- computeSelectedDataMultiselect = (closestOption, options, selectedData) => ({
56
- computedData: {
57
- clickedOption: closestOption,
58
- group: Array.isArray(options) ? void 0 : Object.keys(options).find((group) => options[group].includes(closestOption)),
59
- type: "selectOption"
60
- },
61
- onChangeData: selectedData.selectedValues.includes(closestOption.value) ? selectedData.selectedValues : [...selectedData.selectedValues, closestOption.value]
62
- });
63
- computeSelectedDataSingleSelect = (closestOption, selectedData) => {
64
- var _selectedData$selecte;
65
- return {
56
+ computeSelectedDataMultiselect = (closestOption, options, selectedData) => ({
66
57
  computedData: {
67
58
  clickedOption: closestOption,
59
+ group: Array.isArray(options) ? void 0 : Object.keys(options).find((group) => options[group].includes(closestOption)),
68
60
  type: "selectOption"
69
61
  },
70
- onChangeData: (_selectedData$selecte = selectedData.selectedValues[0]) !== null && _selectedData$selecte !== void 0 ? _selectedData$selecte : ""
62
+ onChangeData: selectedData.selectedValues.includes(closestOption.value) ? selectedData.selectedValues : [...selectedData.selectedValues, closestOption.value]
63
+ });
64
+ computeSelectedDataSingleSelect = (closestOption, selectedData) => {
65
+ var _selectedData$selecte;
66
+ return {
67
+ computedData: {
68
+ clickedOption: closestOption,
69
+ type: "selectOption"
70
+ },
71
+ onChangeData: (_selectedData$selecte = selectedData.selectedValues[0]) !== null && _selectedData$selecte !== void 0 ? _selectedData$selecte : ""
72
+ };
71
73
  };
72
- };
73
- });
74
+ }))();
75
+ }
74
76
 
75
77
  //#endregion
76
78
  init_helpers();
@@ -2,19 +2,21 @@ import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
2
 
3
3
  //#region src/components/SelectInput/constants.ts
4
4
  var OPTION_SELECTOR, SIZES_TAG, INPUT_SIZE_HEIGHT;
5
- var init_constants = __esmMin(() => {
6
- OPTION_SELECTOR = "#items > div[role=\"option\"]:not([aria-disabled=\"true\"]), #add-option";
7
- SIZES_TAG = {
8
- gap: 8,
9
- paddings: 16,
10
- plusTag: 48
11
- };
12
- INPUT_SIZE_HEIGHT = {
13
- large: "600",
14
- medium: "500",
15
- small: "400"
16
- };
17
- });
5
+ function init_constants() {
6
+ return (init_constants = __esmMin(() => {
7
+ OPTION_SELECTOR = "#items > div[role=\"option\"]:not([aria-disabled=\"true\"]), #add-option";
8
+ SIZES_TAG = {
9
+ gap: 8,
10
+ paddings: 16,
11
+ plusTag: 48
12
+ };
13
+ INPUT_SIZE_HEIGHT = {
14
+ large: "600",
15
+ medium: "500",
16
+ small: "400"
17
+ };
18
+ }))();
19
+ }
18
20
 
19
21
  //#endregion
20
22
  init_constants();
@@ -2,14 +2,16 @@ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
2
2
 
3
3
  //#region src/components/SelectInput/findOptionInOptions.ts
4
4
  var findOptionInOptions;
5
- var init_findOptionInOptions = __esmMin(() => {
6
- findOptionInOptions = (options, optionValue) => {
7
- let flatOptions = [];
8
- if (Array.isArray(options)) flatOptions = options;
9
- else flatOptions = Object.keys(options).flatMap((group) => options[group]);
10
- return flatOptions.find((option) => option.value === optionValue);
11
- };
12
- });
5
+ function init_findOptionInOptions() {
6
+ return (init_findOptionInOptions = __esmMin(() => {
7
+ findOptionInOptions = (options, optionValue) => {
8
+ let flatOptions = [];
9
+ if (Array.isArray(options)) flatOptions = options;
10
+ else flatOptions = Object.keys(options).flatMap((group) => options[group]);
11
+ return flatOptions.find((option) => option.value === optionValue);
12
+ };
13
+ }))();
14
+ }
13
15
 
14
16
  //#endregion
15
17
  init_findOptionInOptions();
@@ -1,27 +1,20 @@
1
- import type { ComponentProps, HTMLAttributes, ReactNode } from 'react';
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import type { BaseFormComponentProps } from '../../types';
2
3
  import type { Popup } from '../Popup';
3
4
  import type { DataType } from './types';
4
- type SelectInputProps<IsMulti extends undefined | boolean = false> = {
5
- /**
6
- * Input name
7
- */
8
- name?: string;
5
+ type SelectInputProps<IsMulti extends undefined | boolean = false> = BaseFormComponentProps<HTMLDivElement> & {
9
6
  /**
10
7
  * Place holder when no value defined
11
8
  */
12
9
  placeholder?: string;
13
10
  /**
14
- * When searchable, placeholder when no value is searched
15
- */
16
- placeholderSearch?: string;
17
- /**
18
- * Label of the component
11
+ * Whether the component in readOnly
19
12
  */
20
- label?: string;
13
+ readOnly?: boolean;
21
14
  /**
22
- * Description text to give more information to the user
15
+ * When searchable, placeholder when no value is searched
23
16
  */
24
- helper?: ReactNode;
17
+ placeholderSearch?: string;
25
18
  /**
26
19
  * Selectable options
27
20
  */
@@ -30,14 +23,6 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
30
23
  * Message to show when no option available
31
24
  */
32
25
  emptyState?: ReactNode;
33
- /**
34
- * Whether the component in disabled
35
- */
36
- disabled?: boolean;
37
- /**
38
- * Whether the component in readOnly
39
- */
40
- readOnly?: boolean;
41
26
  /**
42
27
  * Whether it is possible to clear the search input
43
28
  */
@@ -46,10 +31,6 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
46
31
  * Size of the input
47
32
  */
48
33
  size?: 'small' | 'medium' | 'large';
49
- /**
50
- * Whether field is required
51
- */
52
- required?: boolean;
53
34
  /**
54
35
  * More information regarding/description ofs the selectInput
55
36
  */
@@ -120,7 +101,6 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
120
101
  */
121
102
  value?: IsMulti extends true ? string[] : string;
122
103
  onChange?: IsMulti extends true ? (value: string[]) => void : (value: string) => void;
123
- 'data-testid'?: string;
124
104
  /**
125
105
  * In some cases, when the space is limited, you will need to change the `portalTarget` of the dropdown for a higher parent element.
126
106
  * If you don't know which element to target, you can use `document.body`.
@@ -133,8 +113,8 @@ type SelectInputProps<IsMulti extends undefined | boolean = false> = {
133
113
  onOpen?: () => void;
134
114
  groupError?: Record<string, ReactNode>;
135
115
  groupEmptyState?: Record<string, ReactNode>;
136
- } & Pick<HTMLAttributes<HTMLDivElement>, 'id' | 'onBlur' | 'onFocus' | 'aria-label' | 'className' | 'style' | 'aria-describedby'>;
137
- export declare function SelectInput<IsMulti extends undefined | boolean>({ name, id, onBlur, onFocus, onChange, 'aria-label': ariaLabel, value, label, helper, options, size, emptyState, descriptionDirection, success, error, 'data-testid': dataTestId, className, tooltip, footer, placeholderSearch, placeholder, disabled, readOnly, clearable, multiselect, required, labelDescription, autofocus, loadMore, optionalInfoPlacement, isLoading, selectAll, selectAllGroup, dropdownAlign, portalTarget, onOpen, groupEmptyState, groupError, style, addOption, 'aria-describedby': ariaDescribedBy, }: SelectInputProps<IsMulti>): import("react").JSX.Element;
116
+ };
117
+ export declare function SelectInput<IsMulti extends undefined | boolean>({ 'aria-describedby': ariaDescribedBy, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'data-testid': dataTestId, addOption, autofocus, className, clearable, descriptionDirection, disabled, dropdownAlign, emptyState, error, footer, groupEmptyState, groupError, helper, id, isLoading, label, labelDescription, loadMore, multiselect, name, onBlur, onChange, onFocus, onOpen, optionalInfoPlacement, options, placeholder, placeholderSearch, portalTarget, readOnly, required, selectAll, selectAllGroup, size, style, success, tooltip, value, }: SelectInputProps<IsMulti>): import("react").JSX.Element;
138
118
  export declare namespace SelectInput {
139
119
  var displayName: string;
140
120
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/index.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SelectInput/index.tsx"],"names":[],"mappings":"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"}