@orfium/ictinus 4.55.0-next.1 → 4.55.0-next.3

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 (920) hide show
  1. package/dist/bundle.css +1 -0
  2. package/dist/components/Avatar/Avatar.js +1 -63
  3. package/dist/components/Avatar/Avatar.style.js +25 -27
  4. package/dist/components/Avatar/Avatar.tokens.js +1 -68
  5. package/dist/components/Avatar/AvatarStack/AvatarStack.js +1 -71
  6. package/dist/components/Avatar/AvatarStack/AvatarStack.style.js +10 -41
  7. package/dist/components/Avatar/AvatarStack/utils.js +1 -16
  8. package/dist/components/Breadcrumb/Breadcrumb.js +1 -65
  9. package/dist/components/Breadcrumb/Breadcrumb.style.js +13 -34
  10. package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.js +1 -30
  11. package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.js +7 -22
  12. package/dist/components/Breadcrumb/Separator/Separator.js +1 -35
  13. package/dist/components/Breadcrumb/Separator/Separator.style.js +4 -19
  14. package/dist/components/Button/Button.js +1 -87
  15. package/dist/components/Button/Button.style.js +1 -42
  16. package/dist/components/Button/ButtonLoader/ButtonLoader.js +1 -43
  17. package/dist/components/Button/ButtonLoader/ButtonLoader.style.js +5 -21
  18. package/dist/components/Button/utils.js +1 -58
  19. package/dist/components/ButtonBase/ButtonBase.js +1 -87
  20. package/dist/components/ButtonBase/ButtonBase.style.js +1 -121
  21. package/dist/components/ButtonBase/config.js +1 -38
  22. package/dist/components/ButtonBase/utils.js +1 -63
  23. package/dist/components/Card/Card.js +1 -30
  24. package/dist/components/Card/Card.style.js +7 -33
  25. package/dist/components/Chart/BarChart/BarChart.js +1 -148
  26. package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.js +1 -40
  27. package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.js +1 -51
  28. package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.js +28 -47
  29. package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.js +1 -36
  30. package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.js +1 -71
  31. package/dist/components/Chart/BarChart/utils.js +1 -87
  32. package/dist/components/Chart/DonutChart/DonutChart.js +1 -57
  33. package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.js +1 -48
  34. package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.js +10 -39
  35. package/dist/components/Chart/LineChart/LineChart.js +1 -131
  36. package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.js +1 -40
  37. package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.js +1 -64
  38. package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.js +1 -34
  39. package/dist/components/Chart/LineChart/utils.js +1 -30
  40. package/dist/components/Chart/Wrapper.js +1 -41
  41. package/dist/components/CheckBox/CheckBox.js +1 -121
  42. package/dist/components/CheckBox/CheckBox.style.js +73 -99
  43. package/dist/components/Chip/Chip.js +1 -119
  44. package/dist/components/Chip/Chip.style.js +38 -70
  45. package/dist/components/Chip/Chip.types.js +1 -10
  46. package/dist/components/Chip/components/Badge/Badge.js +1 -31
  47. package/dist/components/Chip/components/Badge/Badge.style.js +14 -24
  48. package/dist/components/Chip/utils.js +1 -34
  49. package/dist/components/DatePicker/DatePickInput/DatePickInput.js +1 -125
  50. package/dist/components/DatePicker/DatePickInput/DatePickInput.style.js +3 -21
  51. package/dist/components/DatePicker/DatePicker.js +1 -239
  52. package/dist/components/DatePicker/DatePicker.style.js +7 -19
  53. package/dist/components/DatePicker/Day/Day.js +1 -93
  54. package/dist/components/DatePicker/Day/Day.style.js +35 -68
  55. package/dist/components/DatePicker/Month/Month.js +1 -102
  56. package/dist/components/DatePicker/Month/Month.style.js +17 -47
  57. package/dist/components/DatePicker/Month/Month.utils.js +1 -79
  58. package/dist/components/DatePicker/OverlayComponent/OverlayComponent.js +1 -117
  59. package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.js +47 -89
  60. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.js +1 -133
  61. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.js +36 -89
  62. package/dist/components/DatePicker/utils.js +1 -25
  63. package/dist/components/Drawer/Drawer.js +1 -36
  64. package/dist/components/Drawer/Drawer.style.js +13 -23
  65. package/dist/components/Drawer/Navigation/MenuItem/MenuItem.js +1 -119
  66. package/dist/components/Drawer/Navigation/Navigation.js +1 -54
  67. package/dist/components/Drawer/Navigation/Navigation.style.js +99 -149
  68. package/dist/components/ExpandCollapse/ExpandCollapse.js +1 -66
  69. package/dist/components/ExpandCollapse/ExpandCollapse.style.js +6 -19
  70. package/dist/components/ExpandCollapse/useManageContentRef.js +1 -56
  71. package/dist/components/ExpandCollapse/utils.js +1 -23
  72. package/dist/components/Filter/Filter.js +1 -152
  73. package/dist/components/Filter/Filter.style.js +19 -295
  74. package/dist/components/Filter/components/FilterBase/FilterBase.js +1 -126
  75. package/dist/components/Filter/components/Options/Options.js +1 -52
  76. package/dist/components/Filter/components/Options/Options.style.js +7 -23
  77. package/dist/components/Filter/components/SearchInput/SearchInput.js +1 -58
  78. package/dist/components/Filter/components/SearchInput/SearchInput.style.js +23 -34
  79. package/dist/components/Filter/utils.js +1 -116
  80. package/dist/components/Icon/Icon.js +1 -46
  81. package/dist/components/Icon/Icon.style.js +1 -37
  82. package/dist/components/Icon/assets/TVCinema.svg.js +1 -0
  83. package/dist/components/Icon/assets/TVRadio.svg.js +1 -0
  84. package/dist/components/Icon/assets/account.svg.js +1 -0
  85. package/dist/components/Icon/assets/actions.svg.js +1 -0
  86. package/dist/components/Icon/assets/add.svg.js +1 -0
  87. package/dist/components/Icon/assets/alert.svg.js +1 -0
  88. package/dist/components/Icon/assets/analytics.svg.js +1 -0
  89. package/dist/components/Icon/assets/analyticsVideos.svg.js +1 -0
  90. package/dist/components/Icon/assets/ancient-building.svg.js +1 -0
  91. package/dist/components/Icon/assets/arrow-left.svg.js +1 -0
  92. package/dist/components/Icon/assets/arrow-right.svg.js +1 -0
  93. package/dist/components/Icon/assets/artist.svg.js +1 -0
  94. package/dist/components/Icon/assets/asset-matching.svg.js +1 -0
  95. package/dist/components/Icon/assets/asset.svg.js +1 -0
  96. package/dist/components/Icon/assets/auto.svg.js +1 -0
  97. package/dist/components/Icon/assets/broadcast.svg.js +1 -0
  98. package/dist/components/Icon/assets/calendar-empty.svg.js +1 -0
  99. package/dist/components/Icon/assets/calendar-filled.svg.js +1 -0
  100. package/dist/components/Icon/assets/catalog-files.svg.js +1 -0
  101. package/dist/components/Icon/assets/catalog-overview.svg.js +1 -0
  102. package/dist/components/Icon/assets/catalog.svg.js +1 -0
  103. package/dist/components/Icon/assets/chat-bubble.svg.js +1 -0
  104. package/dist/components/Icon/assets/check.svg.js +1 -0
  105. package/dist/components/Icon/assets/checked-list.svg.js +1 -0
  106. package/dist/components/Icon/assets/checkmark.svg.js +1 -0
  107. package/dist/components/Icon/assets/chevron-extra-small-down.svg.js +1 -0
  108. package/dist/components/Icon/assets/chevron-extra-small-left.svg.js +1 -0
  109. package/dist/components/Icon/assets/chevron-extra-small-right.svg.js +1 -0
  110. package/dist/components/Icon/assets/chevron-extra-small-up.svg.js +1 -0
  111. package/dist/components/Icon/assets/chevron-large-down.svg.js +1 -0
  112. package/dist/components/Icon/assets/chevron-large-left.svg.js +1 -0
  113. package/dist/components/Icon/assets/chevron-large-right.svg.js +1 -0
  114. package/dist/components/Icon/assets/chevron-large-up.svg.js +1 -0
  115. package/dist/components/Icon/assets/chevron-small-down.svg.js +1 -0
  116. package/dist/components/Icon/assets/chevron-small-left.svg.js +1 -0
  117. package/dist/components/Icon/assets/chevron-small-right.svg.js +1 -0
  118. package/dist/components/Icon/assets/chevron-small-up.svg.js +1 -0
  119. package/dist/components/Icon/assets/claimList.svg.js +1 -0
  120. package/dist/components/Icon/assets/clock-outlined.svg.js +1 -0
  121. package/dist/components/Icon/assets/clock.svg.js +1 -0
  122. package/dist/components/Icon/assets/close-tag.svg.js +1 -0
  123. package/dist/components/Icon/assets/close.svg.js +1 -0
  124. package/dist/components/Icon/assets/cms-process.svg.js +1 -0
  125. package/dist/components/Icon/assets/composition-v2.svg.js +1 -0
  126. package/dist/components/Icon/assets/composition.svg.js +1 -0
  127. package/dist/components/Icon/assets/concert.svg.js +1 -0
  128. package/dist/components/Icon/assets/confirmed-matches.svg.js +1 -0
  129. package/dist/components/Icon/assets/conflicts.svg.js +1 -0
  130. package/dist/components/Icon/assets/dashboard.svg.js +1 -0
  131. package/dist/components/Icon/assets/dataset.svg.js +1 -0
  132. package/dist/components/Icon/assets/dd-arrow.svg.js +1 -0
  133. package/dist/components/Icon/assets/delete.svg.js +1 -0
  134. package/dist/components/Icon/assets/delivery.svg.js +1 -0
  135. package/dist/components/Icon/assets/details.svg.js +1 -0
  136. package/dist/components/Icon/assets/digitalUse.svg.js +1 -0
  137. package/dist/components/Icon/assets/distribution.svg.js +1 -0
  138. package/dist/components/Icon/assets/dots-vertical.svg.js +1 -0
  139. package/dist/components/Icon/assets/download.svg.js +1 -0
  140. package/dist/components/Icon/assets/duplicate.svg.js +1 -0
  141. package/dist/components/Icon/assets/duplicate2.svg.js +1 -0
  142. package/dist/components/Icon/assets/earnings.svg.js +1 -0
  143. package/dist/components/Icon/assets/earnings2.svg.js +1 -0
  144. package/dist/components/Icon/assets/edit.svg.js +1 -0
  145. package/dist/components/Icon/assets/entities.svg.js +1 -0
  146. package/dist/components/Icon/assets/entity.svg.js +1 -0
  147. package/dist/components/Icon/assets/error.svg.js +1 -0
  148. package/dist/components/Icon/assets/expenses.svg.js +1 -0
  149. package/dist/components/Icon/assets/external-link-v2.svg.js +1 -0
  150. package/dist/components/Icon/assets/external-link.svg.js +1 -0
  151. package/dist/components/Icon/assets/fat-arrow-down.svg.js +1 -0
  152. package/dist/components/Icon/assets/fat-arrow-left.svg.js +1 -0
  153. package/dist/components/Icon/assets/fat-arrow-right.svg.js +1 -0
  154. package/dist/components/Icon/assets/fat-arrow-up.svg.js +1 -0
  155. package/dist/components/Icon/assets/file.svg.js +1 -0
  156. package/dist/components/Icon/assets/financial-chart.svg.js +1 -0
  157. package/dist/components/Icon/assets/generatedReports.svg.js +1 -0
  158. package/dist/components/Icon/assets/generic-file.svg.js +1 -0
  159. package/dist/components/Icon/assets/generic-ordering.svg.js +1 -0
  160. package/dist/components/Icon/assets/global-item.svg.js +1 -0
  161. package/dist/components/Icon/assets/heart-fill.svg.js +1 -0
  162. package/dist/components/Icon/assets/heart-stroke.svg.js +1 -0
  163. package/dist/components/Icon/assets/help.svg.js +1 -0
  164. package/dist/components/Icon/assets/hourglass.svg.js +1 -0
  165. package/dist/components/Icon/assets/iconSelector.js +1 -2479
  166. package/dist/components/Icon/assets/income.svg.js +1 -0
  167. package/dist/components/Icon/assets/info-filled.svg.js +1 -0
  168. package/dist/components/Icon/assets/info.svg.js +1 -0
  169. package/dist/components/Icon/assets/issues.svg.js +1 -0
  170. package/dist/components/Icon/assets/keyword.svg.js +1 -0
  171. package/dist/components/Icon/assets/legal-files.svg.js +1 -0
  172. package/dist/components/Icon/assets/linked.svg.js +1 -0
  173. package/dist/components/Icon/assets/lock.svg.js +1 -0
  174. package/dist/components/Icon/assets/mail.svg.js +1 -0
  175. package/dist/components/Icon/assets/manual.svg.js +1 -0
  176. package/dist/components/Icon/assets/menu.svg.js +1 -0
  177. package/dist/components/Icon/assets/microphone.svg.js +1 -0
  178. package/dist/components/Icon/assets/minus.svg.js +1 -0
  179. package/dist/components/Icon/assets/more-options-horizontal.svg.js +1 -0
  180. package/dist/components/Icon/assets/more-options-vertical.svg.js +1 -0
  181. package/dist/components/Icon/assets/music-note.svg.js +1 -0
  182. package/dist/components/Icon/assets/myEarnings.svg.js +1 -0
  183. package/dist/components/Icon/assets/notifications.svg.js +1 -0
  184. package/dist/components/Icon/assets/notifications2.svg.js +1 -0
  185. package/dist/components/Icon/assets/one-way.svg.js +1 -0
  186. package/dist/components/Icon/assets/others.svg.js +1 -0
  187. package/dist/components/Icon/assets/ownership-validation.svg.js +1 -0
  188. package/dist/components/Icon/assets/page-first.svg.js +1 -0
  189. package/dist/components/Icon/assets/page-last.svg.js +1 -0
  190. package/dist/components/Icon/assets/pagination-end.svg.js +1 -0
  191. package/dist/components/Icon/assets/pagination-start.svg.js +1 -0
  192. package/dist/components/Icon/assets/pause.svg.js +1 -0
  193. package/dist/components/Icon/assets/percentage.svg.js +1 -0
  194. package/dist/components/Icon/assets/play-count.svg.js +1 -0
  195. package/dist/components/Icon/assets/plus.svg.js +1 -0
  196. package/dist/components/Icon/assets/policies.svg.js +1 -0
  197. package/dist/components/Icon/assets/process-management.svg.js +1 -0
  198. package/dist/components/Icon/assets/process.svg.js +1 -0
  199. package/dist/components/Icon/assets/processed-logs.svg.js +1 -0
  200. package/dist/components/Icon/assets/proposed.svg.js +1 -0
  201. package/dist/components/Icon/assets/publicPerformance.svg.js +1 -0
  202. package/dist/components/Icon/assets/publisher.svg.js +1 -0
  203. package/dist/components/Icon/assets/record-label-v2.svg.js +1 -0
  204. package/dist/components/Icon/assets/record-label.svg.js +1 -0
  205. package/dist/components/Icon/assets/recording.svg.js +1 -0
  206. package/dist/components/Icon/assets/reference-file.svg.js +1 -0
  207. package/dist/components/Icon/assets/refresh.svg.js +1 -0
  208. package/dist/components/Icon/assets/relations.svg.js +1 -0
  209. package/dist/components/Icon/assets/restart.svg.js +1 -0
  210. package/dist/components/Icon/assets/restore.svg.js +1 -0
  211. package/dist/components/Icon/assets/result.svg.js +1 -0
  212. package/dist/components/Icon/assets/resume.svg.js +1 -0
  213. package/dist/components/Icon/assets/royaltyShares.svg.js +1 -0
  214. package/dist/components/Icon/assets/search-music.svg.js +1 -0
  215. package/dist/components/Icon/assets/search-thunder.svg.js +1 -0
  216. package/dist/components/Icon/assets/search.svg.js +1 -0
  217. package/dist/components/Icon/assets/settings.svg.js +1 -0
  218. package/dist/components/Icon/assets/sight.svg.js +1 -0
  219. package/dist/components/Icon/assets/sort-ascending.svg.js +1 -0
  220. package/dist/components/Icon/assets/sort-descending.svg.js +1 -0
  221. package/dist/components/Icon/assets/stamp.svg.js +1 -0
  222. package/dist/components/Icon/assets/star.svg.js +1 -0
  223. package/dist/components/Icon/assets/statements.svg.js +1 -0
  224. package/dist/components/Icon/assets/success.svg.js +1 -0
  225. package/dist/components/Icon/assets/television.svg.js +1 -0
  226. package/dist/components/Icon/assets/thunder.svg.js +1 -0
  227. package/dist/components/Icon/assets/tic-tac-toe-arrow.svg.js +1 -0
  228. package/dist/components/Icon/assets/time-out.svg.js +1 -0
  229. package/dist/components/Icon/assets/training.svg.js +1 -0
  230. package/dist/components/Icon/assets/triangle-down.svg.js +1 -0
  231. package/dist/components/Icon/assets/triangle-left.svg.js +1 -0
  232. package/dist/components/Icon/assets/triangle-right.svg.js +1 -0
  233. package/dist/components/Icon/assets/triangle-up.svg.js +1 -0
  234. package/dist/components/Icon/assets/trophy.svg.js +1 -0
  235. package/dist/components/Icon/assets/unpaired-v2.svg.js +1 -0
  236. package/dist/components/Icon/assets/unpaired.svg.js +1 -0
  237. package/dist/components/Icon/assets/update.svg.js +1 -0
  238. package/dist/components/Icon/assets/upload.svg.js +1 -0
  239. package/dist/components/Icon/assets/user-avatar.svg.js +1 -0
  240. package/dist/components/Icon/assets/user.svg.js +1 -0
  241. package/dist/components/Icon/assets/userCheck.svg.js +1 -0
  242. package/dist/components/Icon/assets/users.svg.js +1 -0
  243. package/dist/components/Icon/assets/users2.svg.js +1 -0
  244. package/dist/components/Icon/assets/videoConfirmation.svg.js +1 -0
  245. package/dist/components/Icon/assets/view.svg.js +1 -0
  246. package/dist/components/Icon/assets/warning.svg.js +1 -0
  247. package/dist/components/Icon/assets/works.svg.js +1 -0
  248. package/dist/components/Icon/assets/writer.svg.js +1 -0
  249. package/dist/components/Icon/assets/youtube.svg.js +1 -0
  250. package/dist/components/IconButton/IconButton.js +1 -59
  251. package/dist/components/IconButton/IconButton.style.js +1 -22
  252. package/dist/components/Label/Label.js +1 -35
  253. package/dist/components/Label/Label.style.js +17 -28
  254. package/dist/components/List/List.js +1 -72
  255. package/dist/components/List/List.style.js +14 -39
  256. package/dist/components/List/ListItem/ListItem.js +1 -60
  257. package/dist/components/List/ListItem/ListItem.style.js +30 -44
  258. package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.js +1 -35
  259. package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.js +16 -41
  260. package/dist/components/List/ListItemGroup/ListItemGroup.js +1 -63
  261. package/dist/components/List/NormalList/NormalList.js +1 -80
  262. package/dist/components/List/VirtualizedList/VirtualizedList.js +1 -114
  263. package/dist/components/List/utils.js +1 -74
  264. package/dist/components/Loader/Loader.js +1 -27
  265. package/dist/components/Loader/Loader.style.js +3 -26
  266. package/dist/components/Loader/Loader.utils.js +1 -46
  267. package/dist/components/Loader/components/DotsLoader/DotsLoader.js +1 -28
  268. package/dist/components/Loader/components/DotsLoader/DotsLoader.style.js +42 -46
  269. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.js +1 -32
  270. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.js +45 -73
  271. package/dist/components/Loader/components/Spinner/Spinner.js +1 -26
  272. package/dist/components/Loader/components/Spinner/Spinner.style.js +23 -27
  273. package/dist/components/Menu/Menu.js +1 -118
  274. package/dist/components/Menu/Menu.style.js +4 -67
  275. package/dist/components/Modal/Modal.js +1 -80
  276. package/dist/components/Modal/Modal.style.js +32 -52
  277. package/dist/components/Modal/ModalContent/ModalContent.js +1 -61
  278. package/dist/components/Modal/ModalContent/ModalContent.style.js +35 -63
  279. package/dist/components/Notification/Banner/Banner.js +1 -47
  280. package/dist/components/Notification/InlineNotification/InlineNotification.js +1 -45
  281. package/dist/components/Notification/Notification.style.js +24 -80
  282. package/dist/components/Notification/NotificationVisual/NotificationVisual.js +1 -62
  283. package/dist/components/Notification/NotificationVisual/NotificationVisual.style.js +8 -34
  284. package/dist/components/Notification/NotificationsContainer/NotificationsContainer.js +1 -32
  285. package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.js +36 -37
  286. package/dist/components/Notification/Snackbar/Snackbar.js +1 -95
  287. package/dist/components/Notification/Snackbar/Snackbar.style.js +26 -73
  288. package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.js +1 -92
  289. package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.js +28 -95
  290. package/dist/components/Overlay/Overlay.js +1 -84
  291. package/dist/components/Overlay/Overlay.style.js +37 -138
  292. package/dist/components/Pagination/Pagination.js +1 -94
  293. package/dist/components/Radio/Radio.js +1 -111
  294. package/dist/components/Radio/Radio.style.js +88 -113
  295. package/dist/components/RadioGroup/RadioGroup.js +1 -56
  296. package/dist/components/RadioGroup/RadioGroupContext.js +1 -14
  297. package/dist/components/RadioGroup/useRadioGroup.js +1 -18
  298. package/dist/components/SearchField/SearchField.js +1 -105
  299. package/dist/components/Select/Select.js +1 -252
  300. package/dist/components/Select/Select.style.js +13 -37
  301. package/dist/components/Select/components/SelectMenu/SelectMenu.js +1 -76
  302. package/dist/components/Select/components/SelectMenu/SelectMenu.style.js +27 -47
  303. package/dist/components/Slider/Slider.js +1 -180
  304. package/dist/components/Slider/Slider.style.js +14 -34
  305. package/dist/components/Slider/components/SliderMark/SliderMark.js +1 -56
  306. package/dist/components/Slider/components/SliderMark/SliderMark.style.js +57 -48
  307. package/dist/components/Slider/components/SliderThumb/SliderThumb.js +1 -37
  308. package/dist/components/Slider/components/SliderThumb/SliderThumb.style.js +27 -33
  309. package/dist/components/Slider/components/SliderTrack/SliderTrack.js +1 -55
  310. package/dist/components/Slider/components/SliderTrack/SliderTrack.style.js +6 -24
  311. package/dist/components/Switch/Switch.js +1 -65
  312. package/dist/components/Switch/Switch.style.js +30 -68
  313. package/dist/components/Table/Table.js +1 -274
  314. package/dist/components/Table/Table.style.js +1 -76
  315. package/dist/components/Table/TableRowContext.js +1 -28
  316. package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.js +1 -114
  317. package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.js +8 -36
  318. package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.js +1 -183
  319. package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.js +1 -57
  320. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.js +1 -59
  321. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.js +1 -24
  322. package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.js +1 -64
  323. package/dist/components/Table/components/TableCell/TableCell.js +1 -85
  324. package/dist/components/Table/components/TableCell/TableCell.style.js +17 -38
  325. package/dist/components/Table/components/TableCell/utils.js +1 -22
  326. package/dist/components/Table/components/TableRow/TableRow.js +1 -53
  327. package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.js +1 -62
  328. package/dist/components/Table/utils/utils.js +1 -16
  329. package/dist/components/TextArea/TextArea.js +1 -77
  330. package/dist/components/TextArea/TextArea.style.js +1 -27
  331. package/dist/components/TextField/TextField.js +1 -127
  332. package/dist/components/TextField/TextField.style.js +9 -23
  333. package/dist/components/TextField/components/commons.js +1 -27
  334. package/dist/components/TextInputBase/TextInputBase.js +1 -77
  335. package/dist/components/TextInputBase/TextInputBase.style.js +1 -211
  336. package/dist/components/TextInputBase/config.js +1 -65
  337. package/dist/components/ThemeProvider/ThemeProvider.js +21 -68
  338. package/dist/components/Toast/Toast.js +1 -91
  339. package/dist/components/Toast/Toast.style.js +35 -112
  340. package/dist/components/Tooltip/Tooltip.js +1 -42
  341. package/dist/components/Tooltip/Tooltip.style.js +19 -37
  342. package/dist/components/TopAppBar/TopAppBar.js +1 -65
  343. package/dist/components/TopAppBar/TopAppBar.style.js +23 -57
  344. package/dist/components/TopAppBar/components/Logo/Logo.style.js +15 -37
  345. package/dist/components/TopAppBar/components/Logo/Logo.wrapper.js +1 -28
  346. package/dist/components/TopAppBar/components/Search/Search.js +1 -57
  347. package/dist/components/TopAppBar/components/Search/Search.style.js +26 -51
  348. package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.js +1 -30
  349. package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.js +4 -20
  350. package/dist/components/TopAppBar/components/UserMenu/UserMenu.js +1 -39
  351. package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.js +3 -20
  352. package/dist/components/TruncatedContent/TruncatedContent.js +1 -69
  353. package/dist/components/TruncatedContent/TruncatedContent.style.js +5 -26
  354. package/dist/components/utils/ClickAwayListener/ClickAwayListener.js +1 -52
  355. package/dist/components/utils/DropdownOptions/index.js +15 -22
  356. package/dist/components/utils/PositionInScreen/PositionInScreen.js +1 -98
  357. package/dist/components/utils/PositionInScreen/PositionInScreen.style.js +18 -32
  358. package/dist/components/utils/handleSearch.js +1 -33
  359. package/dist/hooks/useBreakpoints.js +1 -38
  360. package/dist/hooks/useCombinedRefs.js +1 -35
  361. package/dist/hooks/useEscape.js +1 -24
  362. package/dist/hooks/useLoading.js +1 -31
  363. package/dist/hooks/useLocationToGetCurrentMenuItem.js +1 -36
  364. package/dist/hooks/usePagination.js +1 -71
  365. package/dist/hooks/useTheme.js +1 -13
  366. package/dist/hooks/useThemeSwitch.js +1 -49
  367. package/dist/hooks/useToggle.js +1 -30
  368. package/dist/hooks/useTypeColorToColorMatch.js +1 -95
  369. package/dist/index.d.ts +2118 -107
  370. package/dist/index.js +1 -553
  371. package/dist/theme/functions.js +52 -103
  372. package/dist/theme/globals/borderRadius.js +1 -16
  373. package/dist/theme/globals/borderWidth.js +1 -16
  374. package/dist/theme/globals/boxShadow.js +1 -16
  375. package/dist/theme/globals/colors.js +1 -12
  376. package/dist/theme/globals/constants/borderRadius.js +1 -48
  377. package/dist/theme/globals/constants/borderWidth.js +1 -17
  378. package/dist/theme/globals/constants/boxShadow.js +1 -63
  379. package/dist/theme/globals/constants/fontFamily.js +1 -12
  380. package/dist/theme/globals/constants/fontSize.js +1 -49
  381. package/dist/theme/globals/constants/fontWeight.js +1 -24
  382. package/dist/theme/globals/constants/letterSpacing.js +1 -24
  383. package/dist/theme/globals/constants/lineHeight.js +1 -54
  384. package/dist/theme/globals/constants/opacity.js +1 -34
  385. package/dist/theme/globals/constants/sizing.js +1 -88
  386. package/dist/theme/globals/constants/spacing.js +1 -60
  387. package/dist/theme/globals/constants/textCase.js +1 -16
  388. package/dist/theme/globals/constants/textDecoration.js +1 -17
  389. package/dist/theme/globals/elevation.js +1 -12
  390. package/dist/theme/globals/index.js +1 -38
  391. package/dist/theme/globals/opacity.js +1 -16
  392. package/dist/theme/globals/sizing.js +1 -16
  393. package/dist/theme/globals/spacing.js +1 -16
  394. package/dist/theme/globals/typography.js +1 -67
  395. package/dist/theme/index.js +1 -41
  396. package/dist/theme/overrides.js +1 -7
  397. package/dist/theme/palette.config.js +1 -87
  398. package/dist/theme/palette.js +1 -106
  399. package/dist/theme/states/disabled.js +1 -25
  400. package/dist/theme/states/focus.js +1 -31
  401. package/dist/theme/states/hover.js +1 -31
  402. package/dist/theme/states/pressed.js +1 -31
  403. package/dist/theme/states/statesConfig.js +1 -73
  404. package/dist/theme/states/utils.js +1 -26
  405. package/dist/theme/tokens/index.js +1 -14
  406. package/dist/theme/tokens/semantic/backdrop.js +1 -16
  407. package/dist/theme/tokens/semantic/backgroundColor.js +1 -16
  408. package/dist/theme/tokens/semantic/borderColor.js +1 -16
  409. package/dist/theme/tokens/semantic/disabledState.js +1 -16
  410. package/dist/theme/tokens/semantic/index.js +1 -29
  411. package/dist/theme/tokens/semantic/palette.js +1 -16
  412. package/dist/theme/tokens/semantic/textColor.js +1 -16
  413. package/dist/theme/tokens/semantic/variables/backdrop.js +1 -18
  414. package/dist/theme/tokens/semantic/variables/backgroundColor.js +1 -51
  415. package/dist/theme/tokens/semantic/variables/borderColor.js +1 -68
  416. package/dist/theme/tokens/semantic/variables/disabledState.js +1 -10
  417. package/dist/theme/tokens/semantic/variables/palette.js +1 -335
  418. package/dist/theme/tokens/semantic/variables/textColor.js +1 -77
  419. package/dist/theme/tokens/utils.js +1 -76
  420. package/dist/theme/utils.js +1 -164
  421. package/dist/utils/date.js +1 -0
  422. package/dist/utils/errors.js +1 -50
  423. package/dist/utils/helpers.js +1 -75
  424. package/dist/utils/size-utils.js +1 -62
  425. package/dist/utils/themeFunctions.js +1 -133
  426. package/package.json +31 -18
  427. package/dist/components/Avatar/Avatar.d.ts +0 -4
  428. package/dist/components/Avatar/Avatar.style.d.ts +0 -7
  429. package/dist/components/Avatar/Avatar.tokens.d.ts +0 -13
  430. package/dist/components/Avatar/Avatar.types.d.ts +0 -21
  431. package/dist/components/Avatar/Avatar.types.js +0 -3
  432. package/dist/components/Avatar/AvatarStack/AvatarStack.d.ts +0 -5
  433. package/dist/components/Avatar/AvatarStack/AvatarStack.style.d.ts +0 -9
  434. package/dist/components/Avatar/AvatarStack/AvatarStack.types.d.ts +0 -9
  435. package/dist/components/Avatar/AvatarStack/AvatarStack.types.js +0 -3
  436. package/dist/components/Avatar/AvatarStack/index.d.ts +0 -2
  437. package/dist/components/Avatar/AvatarStack/index.js +0 -19
  438. package/dist/components/Avatar/AvatarStack/utils.d.ts +0 -6
  439. package/dist/components/Avatar/index.d.ts +0 -3
  440. package/dist/components/Avatar/index.js +0 -28
  441. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -8
  442. package/dist/components/Breadcrumb/Breadcrumb.style.d.ts +0 -4
  443. package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.d.ts +0 -9
  444. package/dist/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.d.ts +0 -8
  445. package/dist/components/Breadcrumb/Separator/Separator.d.ts +0 -7
  446. package/dist/components/Breadcrumb/Separator/Separator.style.d.ts +0 -3
  447. package/dist/components/Breadcrumb/index.d.ts +0 -2
  448. package/dist/components/Breadcrumb/index.js +0 -19
  449. package/dist/components/Breadcrumb/types.d.ts +0 -6
  450. package/dist/components/Breadcrumb/types.js +0 -3
  451. package/dist/components/Button/Button.d.ts +0 -11
  452. package/dist/components/Button/Button.style.d.ts +0 -16
  453. package/dist/components/Button/ButtonLoader/ButtonLoader.d.ts +0 -7
  454. package/dist/components/Button/ButtonLoader/ButtonLoader.style.d.ts +0 -2
  455. package/dist/components/Button/ButtonLoader/index.d.ts +0 -2
  456. package/dist/components/Button/ButtonLoader/index.js +0 -19
  457. package/dist/components/Button/index.d.ts +0 -2
  458. package/dist/components/Button/index.js +0 -19
  459. package/dist/components/Button/utils.d.ts +0 -15
  460. package/dist/components/ButtonBase/ButtonBase.d.ts +0 -72
  461. package/dist/components/ButtonBase/ButtonBase.style.d.ts +0 -18
  462. package/dist/components/ButtonBase/config.d.ts +0 -28
  463. package/dist/components/ButtonBase/index.d.ts +0 -2
  464. package/dist/components/ButtonBase/index.js +0 -19
  465. package/dist/components/ButtonBase/utils.d.ts +0 -21
  466. package/dist/components/Card/Card.d.ts +0 -13
  467. package/dist/components/Card/Card.style.d.ts +0 -7
  468. package/dist/components/Card/index.d.ts +0 -2
  469. package/dist/components/Card/index.js +0 -19
  470. package/dist/components/Chart/BarChart/BarChart.d.ts +0 -25
  471. package/dist/components/Chart/BarChart/components/CustomLabel/CustomLabel.d.ts +0 -8
  472. package/dist/components/Chart/BarChart/components/CustomLabel/index.d.ts +0 -1
  473. package/dist/components/Chart/BarChart/components/CustomLabel/index.js +0 -10
  474. package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.d.ts +0 -7
  475. package/dist/components/Chart/BarChart/components/CustomTooltip/CustomTooltip.style.d.ts +0 -5
  476. package/dist/components/Chart/BarChart/components/CustomTooltip/index.d.ts +0 -1
  477. package/dist/components/Chart/BarChart/components/CustomTooltip/index.js +0 -10
  478. package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.d.ts +0 -4
  479. package/dist/components/Chart/BarChart/components/CustomTooltipContent/CustomTooltipContent.style.d.ts +0 -38
  480. package/dist/components/Chart/BarChart/components/CustomTooltipContent/index.d.ts +0 -1
  481. package/dist/components/Chart/BarChart/components/CustomTooltipContent/index.js +0 -10
  482. package/dist/components/Chart/BarChart/index.d.ts +0 -1
  483. package/dist/components/Chart/BarChart/index.js +0 -10
  484. package/dist/components/Chart/BarChart/utils.d.ts +0 -10
  485. package/dist/components/Chart/DonutChart/DonutChart.d.ts +0 -16
  486. package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.d.ts +0 -8
  487. package/dist/components/Chart/DonutChart/components/CustomLabel/CustomLabel.style.d.ts +0 -4
  488. package/dist/components/Chart/DonutChart/components/CustomLabel/index.d.ts +0 -1
  489. package/dist/components/Chart/DonutChart/components/CustomLabel/index.js +0 -10
  490. package/dist/components/Chart/DonutChart/index.d.ts +0 -1
  491. package/dist/components/Chart/DonutChart/index.js +0 -10
  492. package/dist/components/Chart/LineChart/LineChart.d.ts +0 -16
  493. package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.d.ts +0 -4
  494. package/dist/components/Chart/LineChart/components/CustomTooltip/CustomTooltip.style.d.ts +0 -31
  495. package/dist/components/Chart/LineChart/components/CustomTooltip/index.d.ts +0 -1
  496. package/dist/components/Chart/LineChart/components/CustomTooltip/index.js +0 -10
  497. package/dist/components/Chart/LineChart/components/GradientLine/GradientLine.d.ts +0 -7
  498. package/dist/components/Chart/LineChart/components/GradientLine/index.d.ts +0 -1
  499. package/dist/components/Chart/LineChart/components/GradientLine/index.js +0 -10
  500. package/dist/components/Chart/LineChart/index.d.ts +0 -1
  501. package/dist/components/Chart/LineChart/index.js +0 -10
  502. package/dist/components/Chart/LineChart/mockedData.d.ts +0 -11
  503. package/dist/components/Chart/LineChart/mockedData.js +0 -40
  504. package/dist/components/Chart/LineChart/story.utils.d.ts +0 -1
  505. package/dist/components/Chart/LineChart/story.utils.js +0 -22
  506. package/dist/components/Chart/LineChart/utils.d.ts +0 -13
  507. package/dist/components/Chart/Wrapper.d.ts +0 -7
  508. package/dist/components/CheckBox/CheckBox.d.ts +0 -26
  509. package/dist/components/CheckBox/CheckBox.style.d.ts +0 -8
  510. package/dist/components/CheckBox/index.d.ts +0 -2
  511. package/dist/components/CheckBox/index.js +0 -19
  512. package/dist/components/Chip/Chip.d.ts +0 -3
  513. package/dist/components/Chip/Chip.style.d.ts +0 -6
  514. package/dist/components/Chip/Chip.types.d.ts +0 -34
  515. package/dist/components/Chip/components/Badge/Badge.d.ts +0 -9
  516. package/dist/components/Chip/components/Badge/Badge.style.d.ts +0 -4
  517. package/dist/components/Chip/components/Badge/index.d.ts +0 -2
  518. package/dist/components/Chip/components/Badge/index.js +0 -19
  519. package/dist/components/Chip/index.d.ts +0 -3
  520. package/dist/components/Chip/index.js +0 -28
  521. package/dist/components/Chip/utils.d.ts +0 -9
  522. package/dist/components/DatePicker/DatePickInput/DatePickInput.d.ts +0 -52
  523. package/dist/components/DatePicker/DatePickInput/DatePickInput.style.d.ts +0 -3
  524. package/dist/components/DatePicker/DatePickInput/index.d.ts +0 -2
  525. package/dist/components/DatePicker/DatePickInput/index.js +0 -19
  526. package/dist/components/DatePicker/DatePicker.d.ts +0 -51
  527. package/dist/components/DatePicker/DatePicker.style.d.ts +0 -3
  528. package/dist/components/DatePicker/Day/Day.d.ts +0 -15
  529. package/dist/components/DatePicker/Day/Day.style.d.ts +0 -22
  530. package/dist/components/DatePicker/Day/index.d.ts +0 -2
  531. package/dist/components/DatePicker/Day/index.js +0 -19
  532. package/dist/components/DatePicker/Month/Month.d.ts +0 -14
  533. package/dist/components/DatePicker/Month/Month.style.d.ts +0 -5
  534. package/dist/components/DatePicker/Month/Month.utils.d.ts +0 -6
  535. package/dist/components/DatePicker/Month/index.d.ts +0 -2
  536. package/dist/components/DatePicker/Month/index.js +0 -19
  537. package/dist/components/DatePicker/OverlayComponent/OverlayComponent.d.ts +0 -20
  538. package/dist/components/DatePicker/OverlayComponent/OverlayComponent.style.d.ts +0 -14
  539. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.d.ts +0 -16
  540. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.d.ts +0 -13
  541. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/index.d.ts +0 -0
  542. package/dist/components/DatePicker/OverlayComponent/components/MonthWrapper/index.js +0 -1
  543. package/dist/components/DatePicker/OverlayComponent/index.d.ts +0 -2
  544. package/dist/components/DatePicker/OverlayComponent/index.js +0 -19
  545. package/dist/components/DatePicker/index.d.ts +0 -2
  546. package/dist/components/DatePicker/index.js +0 -19
  547. package/dist/components/DatePicker/utils.d.ts +0 -8
  548. package/dist/components/Drawer/Drawer.d.ts +0 -14
  549. package/dist/components/Drawer/Drawer.style.d.ts +0 -3
  550. package/dist/components/Drawer/Navigation/MenuItem/MenuItem.d.ts +0 -11
  551. package/dist/components/Drawer/Navigation/Navigation.d.ts +0 -5
  552. package/dist/components/Drawer/Navigation/Navigation.style.d.ts +0 -10
  553. package/dist/components/Drawer/index.d.ts +0 -3
  554. package/dist/components/Drawer/index.js +0 -28
  555. package/dist/components/Drawer/types.d.ts +0 -14
  556. package/dist/components/Drawer/types.js +0 -3
  557. package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +0 -3
  558. package/dist/components/ExpandCollapse/ExpandCollapse.style.d.ts +0 -1
  559. package/dist/components/ExpandCollapse/ExpandCollapse.types.d.ts +0 -64
  560. package/dist/components/ExpandCollapse/ExpandCollapse.types.js +0 -3
  561. package/dist/components/ExpandCollapse/index.d.ts +0 -3
  562. package/dist/components/ExpandCollapse/index.js +0 -28
  563. package/dist/components/ExpandCollapse/useManageContentRef.d.ts +0 -2
  564. package/dist/components/ExpandCollapse/utils.d.ts +0 -6
  565. package/dist/components/Filter/Filter.d.ts +0 -4
  566. package/dist/components/Filter/Filter.style.d.ts +0 -121
  567. package/dist/components/Filter/components/FilterBase/FilterBase.d.ts +0 -24
  568. package/dist/components/Filter/components/FilterBase/index.d.ts +0 -2
  569. package/dist/components/Filter/components/FilterBase/index.js +0 -19
  570. package/dist/components/Filter/components/Options/Options.d.ts +0 -14
  571. package/dist/components/Filter/components/Options/Options.style.d.ts +0 -2
  572. package/dist/components/Filter/components/SearchInput/SearchInput.d.ts +0 -9
  573. package/dist/components/Filter/components/SearchInput/SearchInput.style.d.ts +0 -3
  574. package/dist/components/Filter/index.d.ts +0 -3
  575. package/dist/components/Filter/index.js +0 -28
  576. package/dist/components/Filter/types.d.ts +0 -66
  577. package/dist/components/Filter/types.js +0 -3
  578. package/dist/components/Filter/utils.d.ts +0 -18
  579. package/dist/components/Icon/Icon.d.ts +0 -20
  580. package/dist/components/Icon/Icon.style.d.ts +0 -26
  581. package/dist/components/Icon/assets/iconSelector.d.ts +0 -5
  582. package/dist/components/Icon/index.d.ts +0 -3
  583. package/dist/components/Icon/index.js +0 -28
  584. package/dist/components/Icon/types.d.ts +0 -1
  585. package/dist/components/Icon/types.js +0 -3
  586. package/dist/components/IconButton/IconButton.d.ts +0 -18
  587. package/dist/components/IconButton/IconButton.style.d.ts +0 -11
  588. package/dist/components/IconButton/index.d.ts +0 -2
  589. package/dist/components/IconButton/index.js +0 -19
  590. package/dist/components/Label/Label.d.ts +0 -15
  591. package/dist/components/Label/Label.style.d.ts +0 -5
  592. package/dist/components/Label/index.d.ts +0 -2
  593. package/dist/components/Label/index.js +0 -19
  594. package/dist/components/List/List.d.ts +0 -48
  595. package/dist/components/List/List.style.d.ts +0 -11
  596. package/dist/components/List/ListItem/ListItem.d.ts +0 -44
  597. package/dist/components/List/ListItem/ListItem.style.d.ts +0 -11
  598. package/dist/components/List/ListItem/index.d.ts +0 -2
  599. package/dist/components/List/ListItem/index.js +0 -19
  600. package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.d.ts +0 -15
  601. package/dist/components/List/ListItemGroup/ListGroupTitle/ListGroupTitle.style.d.ts +0 -8
  602. package/dist/components/List/ListItemGroup/ListGroupTitle/index.d.ts +0 -2
  603. package/dist/components/List/ListItemGroup/ListGroupTitle/index.js +0 -19
  604. package/dist/components/List/ListItemGroup/ListItemGroup.d.ts +0 -32
  605. package/dist/components/List/ListItemGroup/index.d.ts +0 -2
  606. package/dist/components/List/ListItemGroup/index.js +0 -19
  607. package/dist/components/List/NormalList/NormalList.d.ts +0 -23
  608. package/dist/components/List/NormalList/NormalList.style.d.ts +0 -0
  609. package/dist/components/List/NormalList/NormalList.style.js +0 -1
  610. package/dist/components/List/NormalList/index.d.ts +0 -2
  611. package/dist/components/List/NormalList/index.js +0 -19
  612. package/dist/components/List/VirtualizedList/VirtualizedList.d.ts +0 -21
  613. package/dist/components/List/VirtualizedList/VirtualizedList.style.d.ts +0 -0
  614. package/dist/components/List/VirtualizedList/VirtualizedList.style.js +0 -1
  615. package/dist/components/List/VirtualizedList/index.d.ts +0 -2
  616. package/dist/components/List/VirtualizedList/index.js +0 -19
  617. package/dist/components/List/index.d.ts +0 -3
  618. package/dist/components/List/index.js +0 -28
  619. package/dist/components/List/types.d.ts +0 -6
  620. package/dist/components/List/types.js +0 -3
  621. package/dist/components/List/utils.d.ts +0 -12
  622. package/dist/components/Loader/Loader.d.ts +0 -13
  623. package/dist/components/Loader/Loader.style.d.ts +0 -2
  624. package/dist/components/Loader/Loader.utils.d.ts +0 -3
  625. package/dist/components/Loader/components/DotsLoader/DotsLoader.d.ts +0 -7
  626. package/dist/components/Loader/components/DotsLoader/DotsLoader.style.d.ts +0 -6
  627. package/dist/components/Loader/components/DotsLoader/index.d.ts +0 -2
  628. package/dist/components/Loader/components/DotsLoader/index.js +0 -19
  629. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.d.ts +0 -7
  630. package/dist/components/Loader/components/IndeterminateLoader/IndeterminateLoader.style.d.ts +0 -7
  631. package/dist/components/Loader/components/IndeterminateLoader/index.d.ts +0 -2
  632. package/dist/components/Loader/components/IndeterminateLoader/index.js +0 -19
  633. package/dist/components/Loader/components/Spinner/Spinner.d.ts +0 -8
  634. package/dist/components/Loader/components/Spinner/Spinner.style.d.ts +0 -3
  635. package/dist/components/Loader/components/Spinner/index.d.ts +0 -2
  636. package/dist/components/Loader/components/Spinner/index.js +0 -19
  637. package/dist/components/Loader/index.d.ts +0 -2
  638. package/dist/components/Loader/index.js +0 -19
  639. package/dist/components/Menu/Menu.d.ts +0 -43
  640. package/dist/components/Menu/Menu.style.d.ts +0 -16
  641. package/dist/components/Menu/index.d.ts +0 -2
  642. package/dist/components/Menu/index.js +0 -19
  643. package/dist/components/Modal/Modal.d.ts +0 -17
  644. package/dist/components/Modal/Modal.style.d.ts +0 -7
  645. package/dist/components/Modal/ModalContent/ModalContent.d.ts +0 -22
  646. package/dist/components/Modal/ModalContent/ModalContent.style.d.ts +0 -7
  647. package/dist/components/Modal/ModalContent/index.d.ts +0 -1
  648. package/dist/components/Modal/ModalContent/index.js +0 -10
  649. package/dist/components/Modal/index.d.ts +0 -1
  650. package/dist/components/Modal/index.js +0 -10
  651. package/dist/components/Notification/Banner/Banner.d.ts +0 -25
  652. package/dist/components/Notification/Banner/index.d.ts +0 -2
  653. package/dist/components/Notification/Banner/index.js +0 -19
  654. package/dist/components/Notification/InlineNotification/InlineNotification.d.ts +0 -23
  655. package/dist/components/Notification/InlineNotification/index.d.ts +0 -2
  656. package/dist/components/Notification/InlineNotification/index.js +0 -19
  657. package/dist/components/Notification/Notification.d.ts +0 -3
  658. package/dist/components/Notification/Notification.js +0 -3
  659. package/dist/components/Notification/Notification.style.d.ts +0 -9
  660. package/dist/components/Notification/NotificationVisual/NotificationVisual.d.ts +0 -20
  661. package/dist/components/Notification/NotificationVisual/NotificationVisual.style.d.ts +0 -4
  662. package/dist/components/Notification/NotificationVisual/index.d.ts +0 -2
  663. package/dist/components/Notification/NotificationVisual/index.js +0 -19
  664. package/dist/components/Notification/NotificationsContainer/NotificationsContainer.d.ts +0 -11
  665. package/dist/components/Notification/NotificationsContainer/NotificationsContainer.style.d.ts +0 -3
  666. package/dist/components/Notification/NotificationsContainer/index.d.ts +0 -2
  667. package/dist/components/Notification/NotificationsContainer/index.js +0 -19
  668. package/dist/components/Notification/Snackbar/Snackbar.d.ts +0 -27
  669. package/dist/components/Notification/Snackbar/Snackbar.style.d.ts +0 -7
  670. package/dist/components/Notification/Snackbar/index.d.ts +0 -2
  671. package/dist/components/Notification/Snackbar/index.js +0 -19
  672. package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.d.ts +0 -36
  673. package/dist/components/Notification/subcomponents/CompactNotification/CompactNotification.style.d.ts +0 -9
  674. package/dist/components/Notification/subcomponents/CompactNotification/index.d.ts +0 -2
  675. package/dist/components/Notification/subcomponents/CompactNotification/index.js +0 -19
  676. package/dist/components/Overlay/Overlay.d.ts +0 -17
  677. package/dist/components/Overlay/Overlay.style.d.ts +0 -13
  678. package/dist/components/Overlay/index.d.ts +0 -2
  679. package/dist/components/Overlay/index.js +0 -19
  680. package/dist/components/Pagination/Pagination.d.ts +0 -16
  681. package/dist/components/Pagination/index.d.ts +0 -2
  682. package/dist/components/Pagination/index.js +0 -19
  683. package/dist/components/Radio/Radio.d.ts +0 -36
  684. package/dist/components/Radio/Radio.style.d.ts +0 -8
  685. package/dist/components/Radio/index.d.ts +0 -2
  686. package/dist/components/Radio/index.js +0 -19
  687. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -15
  688. package/dist/components/RadioGroup/RadioGroupContext.d.ts +0 -8
  689. package/dist/components/RadioGroup/index.d.ts +0 -2
  690. package/dist/components/RadioGroup/index.js +0 -19
  691. package/dist/components/RadioGroup/useRadioGroup.d.ts +0 -6
  692. package/dist/components/SearchField/SearchField.d.ts +0 -42
  693. package/dist/components/SearchField/SearchField.style.d.ts +0 -0
  694. package/dist/components/SearchField/SearchField.style.js +0 -1
  695. package/dist/components/SearchField/SearchFieldShowcase.d.ts +0 -39
  696. package/dist/components/SearchField/SearchFieldShowcase.js +0 -55
  697. package/dist/components/SearchField/index.d.ts +0 -2
  698. package/dist/components/SearchField/index.js +0 -19
  699. package/dist/components/Select/Select.d.ts +0 -108
  700. package/dist/components/Select/Select.style.d.ts +0 -5
  701. package/dist/components/Select/components/SelectMenu/SelectMenu.d.ts +0 -16
  702. package/dist/components/Select/components/SelectMenu/SelectMenu.style.d.ts +0 -11
  703. package/dist/components/Select/components/SelectMenu/index.d.ts +0 -2
  704. package/dist/components/Select/components/SelectMenu/index.js +0 -19
  705. package/dist/components/Select/index.d.ts +0 -2
  706. package/dist/components/Select/index.js +0 -19
  707. package/dist/components/Slider/Slider.d.ts +0 -21
  708. package/dist/components/Slider/Slider.style.d.ts +0 -13
  709. package/dist/components/Slider/components/SliderMark/SliderMark.d.ts +0 -12
  710. package/dist/components/Slider/components/SliderMark/SliderMark.style.d.ts +0 -16
  711. package/dist/components/Slider/components/SliderMark/index.d.ts +0 -2
  712. package/dist/components/Slider/components/SliderMark/index.js +0 -19
  713. package/dist/components/Slider/components/SliderThumb/SliderThumb.d.ts +0 -11
  714. package/dist/components/Slider/components/SliderThumb/SliderThumb.style.d.ts +0 -9
  715. package/dist/components/Slider/components/SliderThumb/index.d.ts +0 -2
  716. package/dist/components/Slider/components/SliderThumb/index.js +0 -19
  717. package/dist/components/Slider/components/SliderTrack/SliderTrack.d.ts +0 -11
  718. package/dist/components/Slider/components/SliderTrack/SliderTrack.style.d.ts +0 -9
  719. package/dist/components/Slider/components/SliderTrack/index.d.ts +0 -2
  720. package/dist/components/Slider/components/SliderTrack/index.js +0 -19
  721. package/dist/components/Slider/index.d.ts +0 -2
  722. package/dist/components/Slider/index.js +0 -19
  723. package/dist/components/Switch/Switch.d.ts +0 -11
  724. package/dist/components/Switch/Switch.style.d.ts +0 -16
  725. package/dist/components/Switch/index.d.ts +0 -2
  726. package/dist/components/Switch/index.js +0 -19
  727. package/dist/components/Table/Table.d.ts +0 -59
  728. package/dist/components/Table/Table.style.d.ts +0 -5
  729. package/dist/components/Table/TableRowContext.d.ts +0 -21
  730. package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.d.ts +0 -9
  731. package/dist/components/Table/components/ExtendedColumnItem/ExtendedColumnItem.style.d.ts +0 -4
  732. package/dist/components/Table/components/ExtendedColumnItem/index.d.ts +0 -2
  733. package/dist/components/Table/components/ExtendedColumnItem/index.js +0 -19
  734. package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.d.ts +0 -13
  735. package/dist/components/Table/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.d.ts +0 -10
  736. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.d.ts +0 -19
  737. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.d.ts +0 -3
  738. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.d.ts +0 -1
  739. package/dist/components/Table/components/RenderRowOrNestedRow/components/ContentCell/index.js +0 -10
  740. package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.d.ts +0 -12
  741. package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.d.ts +0 -1
  742. package/dist/components/Table/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.js +0 -10
  743. package/dist/components/Table/components/RenderRowOrNestedRow/index.d.ts +0 -1
  744. package/dist/components/Table/components/RenderRowOrNestedRow/index.js +0 -10
  745. package/dist/components/Table/components/TableCell/TableCell.d.ts +0 -19
  746. package/dist/components/Table/components/TableCell/TableCell.style.d.ts +0 -5
  747. package/dist/components/Table/components/TableCell/index.d.ts +0 -2
  748. package/dist/components/Table/components/TableCell/index.js +0 -19
  749. package/dist/components/Table/components/TableCell/utils.d.ts +0 -2
  750. package/dist/components/Table/components/TableRow/TableRow.d.ts +0 -8
  751. package/dist/components/Table/components/TableRow/index.d.ts +0 -2
  752. package/dist/components/Table/components/TableRow/index.js +0 -19
  753. package/dist/components/Table/components/TableRowWrapper/TableRowWrapper.d.ts +0 -20
  754. package/dist/components/Table/components/TableRowWrapper/index.d.ts +0 -2
  755. package/dist/components/Table/components/TableRowWrapper/index.js +0 -19
  756. package/dist/components/Table/index.d.ts +0 -3
  757. package/dist/components/Table/index.js +0 -28
  758. package/dist/components/Table/types.d.ts +0 -17
  759. package/dist/components/Table/types.js +0 -3
  760. package/dist/components/Table/utils/index.d.ts +0 -1
  761. package/dist/components/Table/utils/index.js +0 -11
  762. package/dist/components/Table/utils/utils.d.ts +0 -4
  763. package/dist/components/TextArea/TextArea.d.ts +0 -60
  764. package/dist/components/TextArea/TextArea.style.d.ts +0 -7
  765. package/dist/components/TextArea/index.d.ts +0 -2
  766. package/dist/components/TextArea/index.js +0 -19
  767. package/dist/components/TextField/TextField.d.ts +0 -65
  768. package/dist/components/TextField/TextField.style.d.ts +0 -6
  769. package/dist/components/TextField/components/commons.d.ts +0 -5
  770. package/dist/components/TextField/index.d.ts +0 -2
  771. package/dist/components/TextField/index.js +0 -19
  772. package/dist/components/TextInputBase/TextInputBase.d.ts +0 -51
  773. package/dist/components/TextInputBase/TextInputBase.style.d.ts +0 -11
  774. package/dist/components/TextInputBase/config.d.ts +0 -29
  775. package/dist/components/TextInputBase/index.d.ts +0 -2
  776. package/dist/components/TextInputBase/index.js +0 -19
  777. package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -11
  778. package/dist/components/ThemeProvider/index.d.ts +0 -2
  779. package/dist/components/ThemeProvider/index.js +0 -19
  780. package/dist/components/Toast/Toast.d.ts +0 -21
  781. package/dist/components/Toast/Toast.style.d.ts +0 -11
  782. package/dist/components/Toast/index.d.ts +0 -2
  783. package/dist/components/Toast/index.js +0 -19
  784. package/dist/components/Tooltip/Tooltip.d.ts +0 -32
  785. package/dist/components/Tooltip/Tooltip.style.d.ts +0 -8
  786. package/dist/components/Tooltip/index.d.ts +0 -2
  787. package/dist/components/Tooltip/index.js +0 -19
  788. package/dist/components/TopAppBar/TopAppBar.d.ts +0 -4
  789. package/dist/components/TopAppBar/TopAppBar.style.d.ts +0 -9
  790. package/dist/components/TopAppBar/TopAppBar.types.d.ts +0 -24
  791. package/dist/components/TopAppBar/TopAppBar.types.js +0 -3
  792. package/dist/components/TopAppBar/components/Logo/Logo.style.d.ts +0 -8
  793. package/dist/components/TopAppBar/components/Logo/Logo.wrapper.d.ts +0 -6
  794. package/dist/components/TopAppBar/components/Logo/index.d.ts +0 -2
  795. package/dist/components/TopAppBar/components/Logo/index.js +0 -19
  796. package/dist/components/TopAppBar/components/Search/Search.d.ts +0 -12
  797. package/dist/components/TopAppBar/components/Search/Search.style.d.ts +0 -4
  798. package/dist/components/TopAppBar/components/Search/index.d.ts +0 -2
  799. package/dist/components/TopAppBar/components/Search/index.js +0 -19
  800. package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.d.ts +0 -5
  801. package/dist/components/TopAppBar/components/SidebarMenuIcon/SidebarMenuIcon.style.d.ts +0 -6
  802. package/dist/components/TopAppBar/components/SidebarMenuIcon/index.d.ts +0 -2
  803. package/dist/components/TopAppBar/components/SidebarMenuIcon/index.js +0 -19
  804. package/dist/components/TopAppBar/components/UserMenu/UserMenu.d.ts +0 -16
  805. package/dist/components/TopAppBar/components/UserMenu/UserMenu.style.d.ts +0 -6
  806. package/dist/components/TopAppBar/components/UserMenu/index.d.ts +0 -2
  807. package/dist/components/TopAppBar/components/UserMenu/index.js +0 -19
  808. package/dist/components/TopAppBar/components/index.d.ts +0 -6
  809. package/dist/components/TopAppBar/components/index.js +0 -43
  810. package/dist/components/TopAppBar/index.d.ts +0 -3
  811. package/dist/components/TopAppBar/index.js +0 -28
  812. package/dist/components/TruncatedContent/TruncatedContent.d.ts +0 -11
  813. package/dist/components/TruncatedContent/TruncatedContent.style.d.ts +0 -5
  814. package/dist/components/TruncatedContent/index.d.ts +0 -2
  815. package/dist/components/TruncatedContent/index.js +0 -19
  816. package/dist/components/Typography/Typography.d.ts +0 -10
  817. package/dist/components/Typography/Typography.js +0 -42
  818. package/dist/components/Typography/Typography.style.d.ts +0 -6
  819. package/dist/components/Typography/Typography.style.js +0 -105
  820. package/dist/components/Typography/index.d.ts +0 -2
  821. package/dist/components/Typography/index.js +0 -19
  822. package/dist/components/storyUtils/Stack/Stack.d.ts +0 -6
  823. package/dist/components/storyUtils/Stack/index.d.ts +0 -1
  824. package/dist/components/utils/ClickAwayListener/ClickAwayListener.d.ts +0 -12
  825. package/dist/components/utils/ClickAwayListener/index.d.ts +0 -1
  826. package/dist/components/utils/ClickAwayListener/index.js +0 -10
  827. package/dist/components/utils/DropdownOptions/index.d.ts +0 -6
  828. package/dist/components/utils/PositionInScreen/PositionInScreen.d.ts +0 -10
  829. package/dist/components/utils/PositionInScreen/PositionInScreen.style.d.ts +0 -4
  830. package/dist/components/utils/PositionInScreen/index.d.ts +0 -1
  831. package/dist/components/utils/PositionInScreen/index.js +0 -10
  832. package/dist/components/utils/handleSearch.d.ts +0 -11
  833. package/dist/hooks/useBreakpoints.d.ts +0 -4
  834. package/dist/hooks/useCheck.d.ts +0 -6
  835. package/dist/hooks/useCheck.js +0 -31
  836. package/dist/hooks/useCombinedRefs.d.ts +0 -3
  837. package/dist/hooks/useEscape.d.ts +0 -2
  838. package/dist/hooks/useLoading.d.ts +0 -7
  839. package/dist/hooks/useLocationToGetCurrentMenuItem.d.ts +0 -3
  840. package/dist/hooks/usePagination.d.ts +0 -15
  841. package/dist/hooks/useTheme.d.ts +0 -2
  842. package/dist/hooks/useThemeSwitch.d.ts +0 -9
  843. package/dist/hooks/useToggle.d.ts +0 -2
  844. package/dist/hooks/useTypeColorToColorMatch.d.ts +0 -16
  845. package/dist/test/index.d.ts +0 -1
  846. package/dist/test/index.js +0 -11
  847. package/dist/test/setup.d.ts +0 -1
  848. package/dist/test/setup.js +0 -47
  849. package/dist/test/utils.d.ts +0 -6
  850. package/dist/test/utils.js +0 -69
  851. package/dist/theme/emotion.d.js +0 -3
  852. package/dist/theme/functions.d.ts +0 -9
  853. package/dist/theme/globals/borderRadius.d.ts +0 -7
  854. package/dist/theme/globals/borderWidth.d.ts +0 -7
  855. package/dist/theme/globals/boxShadow.d.ts +0 -7
  856. package/dist/theme/globals/colors.d.ts +0 -2
  857. package/dist/theme/globals/constants/borderRadius.d.ts +0 -43
  858. package/dist/theme/globals/constants/borderWidth.d.ts +0 -12
  859. package/dist/theme/globals/constants/boxShadow.d.ts +0 -58
  860. package/dist/theme/globals/constants/fontFamily.d.ts +0 -7
  861. package/dist/theme/globals/constants/fontSize.d.ts +0 -44
  862. package/dist/theme/globals/constants/fontWeight.d.ts +0 -19
  863. package/dist/theme/globals/constants/letterSpacing.d.ts +0 -19
  864. package/dist/theme/globals/constants/lineHeight.d.ts +0 -49
  865. package/dist/theme/globals/constants/opacity.d.ts +0 -29
  866. package/dist/theme/globals/constants/sizing.d.ts +0 -83
  867. package/dist/theme/globals/constants/spacing.d.ts +0 -55
  868. package/dist/theme/globals/constants/textCase.d.ts +0 -11
  869. package/dist/theme/globals/constants/textDecoration.d.ts +0 -12
  870. package/dist/theme/globals/elevation.d.ts +0 -8
  871. package/dist/theme/globals/index.d.ts +0 -12
  872. package/dist/theme/globals/opacity.d.ts +0 -7
  873. package/dist/theme/globals/sizing.d.ts +0 -7
  874. package/dist/theme/globals/spacing.d.ts +0 -7
  875. package/dist/theme/globals/typography.d.ts +0 -53
  876. package/dist/theme/index.d.ts +0 -4
  877. package/dist/theme/overrides.d.ts +0 -3
  878. package/dist/theme/palette.config.d.ts +0 -45
  879. package/dist/theme/palette.d.ts +0 -73
  880. package/dist/theme/states/disabled.d.ts +0 -12
  881. package/dist/theme/states/focus.d.ts +0 -16
  882. package/dist/theme/states/hover.d.ts +0 -15
  883. package/dist/theme/states/index.d.ts +0 -5
  884. package/dist/theme/states/index.js +0 -19
  885. package/dist/theme/states/pressed.d.ts +0 -15
  886. package/dist/theme/states/statesConfig.d.ts +0 -36
  887. package/dist/theme/states/utils.d.ts +0 -9
  888. package/dist/theme/tests/const.d.ts +0 -21
  889. package/dist/theme/tokens/index.d.ts +0 -11
  890. package/dist/theme/tokens/semantic/backdrop.d.ts +0 -5
  891. package/dist/theme/tokens/semantic/backgroundColor.d.ts +0 -5
  892. package/dist/theme/tokens/semantic/borderColor.d.ts +0 -5
  893. package/dist/theme/tokens/semantic/disabledState.d.ts +0 -5
  894. package/dist/theme/tokens/semantic/index.d.ts +0 -9
  895. package/dist/theme/tokens/semantic/palette.d.ts +0 -5
  896. package/dist/theme/tokens/semantic/tests/constants.d.ts +0 -22
  897. package/dist/theme/tokens/semantic/tests/constants.js +0 -28
  898. package/dist/theme/tokens/semantic/textColor.d.ts +0 -5
  899. package/dist/theme/tokens/semantic/variables/backdrop.d.ts +0 -13
  900. package/dist/theme/tokens/semantic/variables/backgroundColor.d.ts +0 -46
  901. package/dist/theme/tokens/semantic/variables/borderColor.d.ts +0 -63
  902. package/dist/theme/tokens/semantic/variables/disabledState.d.ts +0 -5
  903. package/dist/theme/tokens/semantic/variables/palette.d.ts +0 -330
  904. package/dist/theme/tokens/semantic/variables/textColor.d.ts +0 -72
  905. package/dist/theme/tokens/utils.d.ts +0 -15
  906. package/dist/theme/types.d.ts +0 -57
  907. package/dist/theme/types.js +0 -3
  908. package/dist/theme/utils.d.ts +0 -49
  909. package/dist/utils/common.d.ts +0 -17
  910. package/dist/utils/common.js +0 -14
  911. package/dist/utils/errors.d.ts +0 -6
  912. package/dist/utils/helpers.d.ts +0 -18
  913. package/dist/utils/initLocaleFormat.d.ts +0 -2
  914. package/dist/utils/initLocaleFormat.js +0 -22
  915. package/dist/utils/size-utils.d.ts +0 -10
  916. package/dist/utils/storyshots.d.ts +0 -5
  917. package/dist/utils/storyshots.js +0 -60
  918. package/dist/utils/themeFunctions.d.ts +0 -34
  919. package/dist/utils/types.d.ts +0 -10
  920. package/dist/utils/types.js +0 -3
@@ -1,87 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _useLoading2 = require("../../hooks/useLoading");
7
-
8
- var _react = _interopRequireWildcard(require("react"));
9
-
10
- var _ButtonBase = _interopRequireDefault(require("../ButtonBase/ButtonBase"));
11
-
12
- var _Button = require("./Button.style");
13
-
14
- var _ButtonLoader = _interopRequireDefault(require("./ButtonLoader"));
15
-
16
- var _react2 = require("@emotion/react");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
24
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25
-
26
- var Button = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
27
- var _childrenWrapperRef$c;
28
-
29
- var _props$size = props.size,
30
- size = _props$size === void 0 ? 'md' : _props$size,
31
- _props$type = props.type,
32
- type = _props$type === void 0 ? 'primary' : _props$type,
33
- _props$color = props.color,
34
- color = _props$color === void 0 ? '' : _props$color,
35
- _props$isFilled = props.isFilled,
36
- isFilled = _props$isFilled === void 0 ? true : _props$isFilled,
37
- _props$isTransparent = props.isTransparent,
38
- isTransparent = _props$isTransparent === void 0 ? false : _props$isTransparent,
39
- _props$iconLeft = props.iconLeft,
40
- iconLeft = _props$iconLeft === void 0 ? null : _props$iconLeft,
41
- _props$iconRight = props.iconRight,
42
- iconRight = _props$iconRight === void 0 ? null : _props$iconRight,
43
- _props$isDisabled = props.isDisabled,
44
- isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
45
- children = props.children,
46
- onClick = props.onClick;
47
-
48
- var _useLoading = (0, _useLoading2.useLoading)(onClick),
49
- isLoading = _useLoading.isLoading,
50
- handleAsyncOperation = _useLoading.handleAsyncOperation;
51
-
52
- var childrenWrapperRef = (0, _react.useRef)(null);
53
- var innerButtonWidth = childrenWrapperRef == null ? void 0 : (_childrenWrapperRef$c = childrenWrapperRef.current) == null ? void 0 : _childrenWrapperRef$c.clientWidth;
54
- return (0, _react2.jsx)(_ButtonBase["default"], _extends({}, props, {
55
- ref: ref,
56
- isLoading: isLoading,
57
- onClick: handleAsyncOperation
58
- }), (0, _react2.jsx)("span", {
59
- css: (0, _Button.buttonSpanStyle)()
60
- }, iconLeft && (0, _react2.jsx)("span", {
61
- css: (0, _Button.iconStyle)()
62
- }, iconLeft), (0, _react2.jsx)("span", {
63
- ref: childrenWrapperRef,
64
- css: (0, _Button.childrenWrapperStyle)({
65
- type: type,
66
- isLoading: isLoading,
67
- isFilled: isFilled,
68
- size: size,
69
- color: color,
70
- isTransparent: isTransparent,
71
- iconLeft: iconLeft,
72
- iconRight: iconRight,
73
- isDisabled: isDisabled,
74
- hasChildren: Boolean(_react["default"].Children.count(children))
75
- })
76
- }, isLoading ? (0, _react2.jsx)(_ButtonLoader["default"], {
77
- innerButtonWidth: innerButtonWidth,
78
- color: color,
79
- type: type
80
- }) : children), iconRight && (0, _react2.jsx)("span", {
81
- css: (0, _Button.iconStyle)()
82
- }, iconRight)));
83
- });
84
-
85
- Button.displayName = 'Button';
86
- var _default = Button;
87
- exports["default"] = _default;
1
+ import{jsx as i,jsxs as o}from"@emotion/react/jsx-runtime";import{useLoading as n}from"../../hooks/useLoading.js";import s,{useRef as t}from"react";import e from"../ButtonBase/ButtonBase.js";import{buttonSpanStyle as r,iconStyle as a,childrenWrapperStyle as l}from"./Button.style.js";import d from"./ButtonLoader/ButtonLoader.js";const c=s.forwardRef(((c,p)=>{var u;const{size:m="md",type:h="primary",color:f="",isFilled:g=!0,isTransparent:j=!1,iconLeft:v=null,iconRight:B=null,isDisabled:L=!1,children:b,onClick:y}=c,{isLoading:O,handleAsyncOperation:C}=n(y),k=t(null),R=null===(u=null==k?void 0:k.current)||void 0===u?void 0:u.clientWidth;return i(e,Object.assign({},c,{ref:p,isLoading:O,onClick:C},{children:o("span",Object.assign({css:r()},{children:[v&&i("span",Object.assign({css:a()},{children:v}),void 0),i("span",Object.assign({ref:k,css:l({type:h,isLoading:O,isFilled:g,size:m,color:f,isTransparent:j,iconLeft:v,iconRight:B,isDisabled:L,hasChildren:Boolean(s.Children.count(b))})},{children:O?i(d,{innerButtonWidth:R,color:f,type:h},void 0):b}),void 0),B&&i("span",Object.assign({css:a()},{children:B}),void 0)]}),void 0)}),void 0)}));c.displayName="Button";export{c as default};
@@ -1,42 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.childrenWrapperStyle = exports.iconStyle = exports.buttonSpanStyle = void 0;
5
-
6
- var buttonSpanStyle = function buttonSpanStyle() {
7
- return function () {
8
- return {
9
- display: 'flex',
10
- alignItems: 'center',
11
- justifyContent: 'center'
12
- };
13
- };
14
- };
15
-
16
- exports.buttonSpanStyle = buttonSpanStyle;
17
-
18
- var iconStyle = function iconStyle() {
19
- return function () {
20
- return {
21
- display: 'inline-flex'
22
- };
23
- };
24
- };
25
-
26
- exports.iconStyle = iconStyle;
27
-
28
- var childrenWrapperStyle = function childrenWrapperStyle(_ref) {
29
- var iconLeft = _ref.iconLeft,
30
- iconRight = _ref.iconRight,
31
- hasChildren = _ref.hasChildren;
32
- return function (theme) {
33
- var rightIconExists = hasChildren && iconRight;
34
- var leftIconExists = hasChildren && iconLeft;
35
- return {
36
- marginLeft: leftIconExists ? theme.globals.spacing.get('4') : 0,
37
- marginRight: rightIconExists ? theme.globals.spacing.get('4') : 0
38
- };
39
- };
40
- };
41
-
42
- exports.childrenWrapperStyle = childrenWrapperStyle;
1
+ const n=()=>()=>({display:"flex",alignItems:"center",justifyContent:"center"}),e=()=>()=>({display:"inline-flex"}),t=({iconLeft:n,iconRight:e,hasChildren:t})=>i=>{const g=t&&e;return{marginLeft:t&&n?i.globals.spacing.get("4"):0,marginRight:g?i.globals.spacing.get("4"):0}};export{n as buttonSpanStyle,t as childrenWrapperStyle,e as iconStyle};
@@ -1,43 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _useTypeColorToColorMatch = require("../../../hooks/useTypeColorToColorMatch");
9
-
10
- var _index = require("../../../index");
11
-
12
- var _ButtonLoader = require("./ButtonLoader.style");
13
-
14
- var _Loader = _interopRequireDefault(require("../../Loader"));
15
-
16
- var _react2 = require("@emotion/react");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- var ButtonLoader = function ButtonLoader(_ref) {
21
- var innerButtonWidth = _ref.innerButtonWidth,
22
- _ref$type = _ref.type,
23
- type = _ref$type === void 0 ? 'primary' : _ref$type,
24
- _ref$color = _ref.color,
25
- color = _ref$color === void 0 ? '' : _ref$color;
26
- var theme = (0, _index.useTheme)();
27
-
28
- var _useTypeColorToColorM = (0, _useTypeColorToColorMatch.useTypeColorToColorMatch)(),
29
- calculateColorBetweenColorAndType = _useTypeColorToColorM.calculateColorBetweenColorAndType;
30
-
31
- var calculatedColor = calculateColorBetweenColorAndType(color, type);
32
- var spinnerColor = theme.utils.getAAColorFromSwatches(calculatedColor.color, calculatedColor.shade);
33
- return (0, _react2.jsx)("div", {
34
- css: (0, _ButtonLoader.centralizedLoader)(innerButtonWidth)
35
- }, (0, _react2.jsx)(_Loader["default"], {
36
- type: 'spinner',
37
- color: spinnerColor
38
- }));
39
- };
40
-
41
- ButtonLoader.displayName = 'Button';
42
- var _default = ButtonLoader;
43
- exports["default"] = _default;
1
+ import{jsx as o}from"@emotion/react/jsx-runtime";import{useTypeColorToColorMatch as r}from"../../../hooks/useTypeColorToColorMatch.js";import{centralizedLoader as e}from"./ButtonLoader.style.js";import t from"../../Loader/Loader.js";import s from"../../../hooks/useTheme.js";const i=({innerButtonWidth:i,type:m="primary",color:n=""})=>{const a=s(),{calculateColorBetweenColorAndType:l}=r(),c=l(n,m),p=a.utils.getAAColorFromSwatches(c.color,c.shade);return o("div",Object.assign({css:e(i)},{children:o(t,{type:"spinner",color:p},void 0)}),void 0)};i.displayName="Button";export{i as default};
@@ -1,21 +1,5 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.centralizedLoader = void 0;
5
-
6
- var _react = require("@emotion/react");
7
-
8
- var _functions = require("../../../theme/functions");
9
-
10
- var _utils = require("../../../theme/utils");
11
-
12
- var centralizedLoader = function centralizedLoader(clientWidth) {
13
- return (
14
- /*#__PURE__*/
15
-
16
- /*#__PURE__*/
17
- (0, _react.css)("width:", clientWidth ? (0, _utils.rem)(clientWidth) : 'auto', ";", _functions.flex, ";justify-content:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b25Mb2FkZXIvQnV0dG9uTG9hZGVyLnN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUkrRiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9CdXR0b24vQnV0dG9uTG9hZGVyL0J1dHRvbkxvYWRlci5zdHlsZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IGZsZXggfSBmcm9tICd0aGVtZS9mdW5jdGlvbnMnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAndGhlbWUvdXRpbHMnO1xuXG5leHBvcnQgY29uc3QgY2VudHJhbGl6ZWRMb2FkZXI6IChjbGllbnRXaWR0aD86IG51bWJlcikgPT4gU2VyaWFsaXplZFN0eWxlcyA9IGNsaWVudFdpZHRoID0+IGNzc2BcbiAgd2lkdGg6ICR7Y2xpZW50V2lkdGggPyByZW0oY2xpZW50V2lkdGgpIDogJ2F1dG8nfTtcbiAgJHtmbGV4fTtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;")
18
- );
19
- };
20
-
21
- exports.centralizedLoader = centralizedLoader;
1
+ import{css as t}from"@emotion/react";import{flex as o}from"../../../theme/functions.js";import{rem as e}from"../../../theme/utils.js";const m=m=>t`
2
+ width: ${m?e(m):"auto"};
3
+ ${o};
4
+ justify-content: center;
5
+ `;export{m as centralizedLoader};
@@ -1,58 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.stateBackgroundColor = exports.defineBackgroundColor = void 0;
5
-
6
- var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
7
-
8
- var _polished = require("polished");
9
-
10
- var _palette = require("../../theme/palette");
11
-
12
- var _themeFunctions = require("../../utils/themeFunctions");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- /**
17
- * This function defines what background-color to show based on type or color passed
18
- * if color it retrieves the color directly from the palette
19
- * if type it gets the specific type color from the palette
20
- */
21
- var defineBackgroundColor = function defineBackgroundColor(theme, color, type, hasIcon, hasChildren) {
22
- if (!hasChildren && hasIcon) {
23
- return 'transparent';
24
- }
25
-
26
- if (color && !(0, _isEmpty["default"])(color)) {
27
- return theme.utils.getColor(color.color, color.shade);
28
- }
29
-
30
- if (hasChildren && type) {
31
- return (0, _themeFunctions.getColorFromType)(type, theme);
32
- }
33
-
34
- return 'transparent';
35
- };
36
- /**
37
- * return the correct color to show based on the state that is passed
38
- * The state must be 'hover' or 'active' for now
39
- * It is being defined by the team that the values will always be 10% and 20%
40
- * for transparentize there is a revert to these values to match 90% and 80% accordingly
41
- */
42
-
43
-
44
- exports.defineBackgroundColor = defineBackgroundColor;
45
-
46
- var stateBackgroundColor = function stateBackgroundColor(theme, state, calculatedColor, isFilled) {
47
- var value = state === 'hover' ? 0.1 : 0.2;
48
- var color = defineBackgroundColor(theme, calculatedColor);
49
-
50
- if (!isFilled) {
51
- // value here is reverted to follow tranparentize e.g (1 - 0.1 = 0.9)
52
- return (0, _polished.transparentize)(1 - value, color);
53
- }
54
-
55
- return calculatedColor.shade > _palette.BASE_SHADE ? (0, _polished.lighten)(value, color) : (0, _polished.darken)(value, color);
56
- };
57
-
58
- exports.stateBackgroundColor = stateBackgroundColor;
1
+ import t from"lodash/isEmpty.js";import"polished";import"../../theme/palette.js";import{getColorFromType as o}from"../../utils/themeFunctions.js";const r=(r,s,e,p,i)=>!i&&p?"transparent":s&&!t(s)?r.utils.getColor(s.color,s.shade):i&&e?o(e,r):"transparent";export{r as defineBackgroundColor};
@@ -1,87 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _useTypeColorToColorMatch = require("../../hooks/useTypeColorToColorMatch");
9
-
10
- var _helpers = require("../../utils/helpers");
11
-
12
- var _ButtonBase = require("./ButtonBase.style");
13
-
14
- var _react2 = require("@emotion/react");
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- //@TODO fix props to not overwrite button props
19
- var ButtonBase = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
20
- var _props$size = props.size,
21
- size = _props$size === void 0 ? 'md' : _props$size,
22
- _props$type = props.type,
23
- type = _props$type === void 0 ? 'primary' : _props$type,
24
- _props$color = props.color,
25
- color = _props$color === void 0 ? '' : _props$color,
26
- _props$isBlock = props.isBlock,
27
- isBlock = _props$isBlock === void 0 ? false : _props$isBlock,
28
- _props$isFilled = props.isFilled,
29
- isFilled = _props$isFilled === void 0 ? true : _props$isFilled,
30
- _props$isTransparent = props.isTransparent,
31
- isTransparent = _props$isTransparent === void 0 ? false : _props$isTransparent,
32
- _props$iconLeft = props.iconLeft,
33
- iconLeft = _props$iconLeft === void 0 ? null : _props$iconLeft,
34
- _props$iconRight = props.iconRight,
35
- iconRight = _props$iconRight === void 0 ? null : _props$iconRight,
36
- _props$isDisabled = props.isDisabled,
37
- isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
38
- _props$isLoading = props.isLoading,
39
- isLoading = _props$isLoading === void 0 ? false : _props$isLoading,
40
- children = props.children,
41
- _props$dataTestId = props.dataTestId,
42
- dataTestId = _props$dataTestId === void 0 ? '' : _props$dataTestId,
43
- _props$dataTestPrefix = props.dataTestPrefixId,
44
- dataTestPrefixId = _props$dataTestPrefix === void 0 ? '' : _props$dataTestPrefix,
45
- _props$buttonType = props.buttonType,
46
- buttonType = _props$buttonType === void 0 ? 'button' : _props$buttonType,
47
- _onClick = props.onClick,
48
- onBlur = props.onBlur,
49
- sx = props.sx;
50
-
51
- var _useTypeColorToColorM = (0, _useTypeColorToColorMatch.useTypeColorToColorMatch)(),
52
- calculateColorBetweenColorAndType = _useTypeColorToColorM.calculateColorBetweenColorAndType;
53
-
54
- var calculatedColor = calculateColorBetweenColorAndType(color, type);
55
- var testIdName = dataTestPrefixId + "button";
56
- return (0, _react2.jsx)("button", {
57
- ref: ref,
58
- type: buttonType,
59
- "data-testid": (0, _helpers.generateTestDataId)(testIdName, dataTestId),
60
- css: (0, _ButtonBase.buttonBaseStyle)({
61
- type: type,
62
- isLoading: isLoading,
63
- isFilled: isFilled,
64
- size: size,
65
- isBlock: isBlock,
66
- color: color,
67
- isTransparent: isTransparent,
68
- calculatedColor: calculatedColor,
69
- isDisabled: isDisabled,
70
- iconLeft: iconLeft,
71
- iconRight: iconRight,
72
- sx: sx,
73
- childrenCount: _react["default"].Children.count(children)
74
- }),
75
- onClick: function onClick(event) {
76
- if (_onClick) {
77
- _onClick(event);
78
- }
79
- },
80
- onBlur: onBlur,
81
- disabled: isDisabled || isLoading
82
- }, children);
83
- });
84
-
85
- ButtonBase.displayName = 'ButtonBase';
86
- var _default = ButtonBase;
87
- exports["default"] = _default;
1
+ import{jsx as o}from"@emotion/react/jsx-runtime";import t from"react";import{useTypeColorToColorMatch as e}from"../../hooks/useTypeColorToColorMatch.js";import{generateTestDataId as i}from"../../utils/helpers.js";import{buttonBaseStyle as s}from"./ButtonBase.style.js";const r=t.forwardRef(((r,l)=>{const{size:n="md",type:a="primary",color:c="",isBlock:d=!1,isFilled:u=!0,isTransparent:p=!1,iconLeft:m=null,iconRight:f=null,isDisabled:h=!1,isLoading:y=!1,children:B,dataTestId:C="",dataTestPrefixId:b="",buttonType:T="button",onClick:g,onBlur:j,sx:k}=r,{calculateColorBetweenColorAndType:x}=e(),L=x(c,a),R=`${b}button`;return o("button",Object.assign({ref:l,type:T,"data-testid":i(R,C),css:s({type:a,isLoading:y,isFilled:u,size:n,isBlock:d,color:c,isTransparent:p,calculatedColor:L,isDisabled:h,iconLeft:m,iconRight:f,sx:k,childrenCount:t.Children.count(B)}),onClick:o=>{g&&g(o)},onBlur:j,disabled:h||y},{children:B}),void 0)}));r.displayName="ButtonBase";export{r as default};
@@ -1,121 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.iconStyle = exports.buttonSpanStyle = exports.buttonBaseStyle = exports.heightBasedOnSize = void 0;
5
-
6
- var _react = require("@emotion/react");
7
-
8
- var _utils = require("../../theme/utils");
9
-
10
- var _states = require("../../theme/states");
11
-
12
- var _config = require("./config");
13
-
14
- var _utils2 = require("./utils");
15
-
16
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
-
18
- /** Calculates the button specific height based on the size passed to it **/
19
- var heightBasedOnSize = function heightBasedOnSize(size) {
20
- var _buttonConfig$sizes$s;
21
-
22
- return (0, _utils.rem)((_buttonConfig$sizes$s = _config.buttonConfig.sizes[size]) != null ? _buttonConfig$sizes$s : _config.buttonConfig.sizes["default"]);
23
- };
24
- /** Calculates the button specific font size based on the size passed to it **/
25
-
26
-
27
- exports.heightBasedOnSize = heightBasedOnSize;
28
-
29
- var fontSizeBasedOnSize = function fontSizeBasedOnSize(theme, size) {
30
- return (
31
- /** @TODO revisit this when all custom fontSizes are gone and we can use only
32
- * the fontSizes.get() function. Refactor buttonConfig logic */
33
- _config.buttonConfig.fontSize[size] ? theme.globals.typography.fontSizes[_config.buttonConfig.fontSize[size]] : theme.globals.typography.fontSizes.get(_config.buttonConfig.fontSize["default"])
34
- );
35
- };
36
-
37
- var buttonBaseStyle = function buttonBaseStyle(_ref) {
38
- var type = _ref.type,
39
- isFilled = _ref.isFilled,
40
- calculatedColor = _ref.calculatedColor,
41
- size = _ref.size,
42
- isBlock = _ref.isBlock,
43
- isTransparent = _ref.isTransparent,
44
- childrenCount = _ref.childrenCount,
45
- sx = _ref.sx;
46
- return function (theme) {
47
- var backGroundColor = (0, _utils2.defineBackgroundColor)(theme, calculatedColor, type, childrenCount > 0);
48
- var isOutlined = !isFilled && !isTransparent;
49
- var isBackgroundTransparent = isOutlined || isTransparent;
50
- var borderWidth = isOutlined ? _config.buttonConfig.types.outlined.border.width : 0;
51
- var baseButtonStyles = {
52
- fontSize: fontSizeBasedOnSize(theme, size || 'default'),
53
- fontWeight: theme.globals.typography.weights.get('medium'),
54
- color: (0, _utils2.calculateButtonColor)({
55
- type: type,
56
- isBackgroundTransparent: Boolean(isBackgroundTransparent),
57
- backGroundColor: backGroundColor,
58
- calculatedColor: calculatedColor,
59
- theme: theme
60
- }),
61
- width: isBlock ? '100%' : undefined,
62
- backgroundColor: isBackgroundTransparent ? 'transparent' : backGroundColor,
63
- padding: size === 'lg' ? theme.globals.spacing.get('6') : "0 " + theme.globals.spacing.get('6'),
64
- height: heightBasedOnSize(size || 'default'),
65
- borderRadius: theme.globals.spacing.get('3'),
66
- border: isOutlined ? "solid " + (0, _utils.rem)(borderWidth) + " " + backGroundColor : 'none',
67
- cursor: 'pointer',
68
- transition: 'background-color,border 150ms linear',
69
- ':focus-visible:not(:disabled)': {
70
- outline: (0, _states.getFocus)({
71
- theme: theme,
72
- borderWidth: borderWidth
73
- }).styleOutline
74
- },
75
- ':hover:not(:disabled)': {
76
- backgroundColor: (0, _states.getHover)({
77
- theme: theme,
78
- color: calculatedColor.color,
79
- shade: isBackgroundTransparent ? 0 : calculatedColor.shade
80
- }).backgroundColor
81
- },
82
- ':active:not(:disabled)': {
83
- backgroundColor: (0, _states.getPressed)({
84
- theme: theme,
85
- color: calculatedColor.color,
86
- shade: isBackgroundTransparent ? 0 : calculatedColor.shade
87
- }).backgroundColor
88
- },
89
- ':disabled': (0, _states.getDisabled)()
90
- };
91
- return (
92
- /*#__PURE__*/
93
-
94
- /*#__PURE__*/
95
- (0, _react.css)(_extends({}, baseButtonStyles, sx == null ? void 0 : sx.container), process.env.NODE_ENV === "production" ? "" : ";label:buttonBaseStyle;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbkJhc2UvQnV0dG9uQmFzZS5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRlciLCJmaWxlIjoiLi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AnOmFjdGl2ZTpub3QoOmRpc2FibGVkKSc6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBnZXRQcmVzc2VkKHtcbiAgICAgICAgICB0aGVtZSxcbiAgICAgICAgICBjb2xvcjogY2FsY3VsYXRlZENvbG9yLmNvbG9yLFxuICAgICAgICAgIHNoYWRlOiBpc0JhY2tncm91bmRUcmFuc3BhcmVudCA/IDAgOiBjYWxjdWxhdGVkQ29sb3Iuc2hhZGUsXG4gICAgICAgIH0pLmJhY2tncm91bmRDb2xvcixcbiAgICAgIH0sXG4gICAgICAnOmRpc2FibGVkJzogZ2V0RGlzYWJsZWQoKSxcbiAgICB9O1xuXG4gICAgcmV0dXJuIGNzcyh7IC4uLmJhc2VCdXR0b25TdHlsZXMsIC4uLnN4Py5jb250YWluZXIgfSk7XG4gIH07XG5cbmV4cG9ydCBjb25zdCBidXR0b25TcGFuU3R5bGUgPSAoKSA9PiAoKSA9PiB7XG4gIHJldHVybiB7XG4gICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgIGFsaWduSXRlbXM6ICdjZW50ZXInLFxuICB9O1xufTtcblxuZXhwb3J0IGNvbnN0IGljb25TdHlsZSA9ICgpID0+ICgpID0+ICh7XG4gIGRpc3BsYXk6ICdpbmxpbmUtZmxleCcsXG59KTtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:buttonBaseStyle;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbkJhc2UvQnV0dG9uQmFzZS5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRlciLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvQnV0dG9uQmFzZS9CdXR0b25CYXNlLnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0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tZSxcbiAgICAgICAgICBjb2xvcjogY2FsY3VsYXRlZENvbG9yLmNvbG9yLFxuICAgICAgICAgIHNoYWRlOiBpc0JhY2tncm91bmRUcmFuc3BhcmVudCA/IDAgOiBjYWxjdWxhdGVkQ29sb3Iuc2hhZGUsXG4gICAgICAgIH0pLmJhY2tncm91bmRDb2xvcixcbiAgICAgIH0sXG4gICAgICAnOmRpc2FibGVkJzogZ2V0RGlzYWJsZWQoKSxcbiAgICB9O1xuXG4gICAgcmV0dXJuIGNzcyh7IC4uLmJhc2VCdXR0b25TdHlsZXMsIC4uLnN4Py5jb250YWluZXIgfSk7XG4gIH07XG5cbmV4cG9ydCBjb25zdCBidXR0b25TcGFuU3R5bGUgPSAoKSA9PiAoKSA9PiB7XG4gIHJldHVybiB7XG4gICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgIGFsaWduSXRlbXM6ICdjZW50ZXInLFxuICB9O1xufTtcblxuZXhwb3J0IGNvbnN0IGljb25TdHlsZSA9ICgpID0+ICgpID0+ICh7XG4gIGRpc3BsYXk6ICdpbmxpbmUtZmxleCcsXG59KTtcbiJdfQ== */")
96
- );
97
- };
98
- };
99
-
100
- exports.buttonBaseStyle = buttonBaseStyle;
101
-
102
- var buttonSpanStyle = function buttonSpanStyle() {
103
- return function () {
104
- return {
105
- display: 'flex',
106
- alignItems: 'center'
107
- };
108
- };
109
- };
110
-
111
- exports.buttonSpanStyle = buttonSpanStyle;
112
-
113
- var iconStyle = function iconStyle() {
114
- return function () {
115
- return {
116
- display: 'inline-flex'
117
- };
118
- };
119
- };
120
-
121
- exports.iconStyle = iconStyle;
1
+ import{css as o}from"@emotion/react";import{rem as e}from"../../theme/utils.js";import{getDisabled as t}from"../../theme/states/disabled.js";import{getFocus as r}from"../../theme/states/focus.js";import{getHover as s}from"../../theme/states/hover.js";import{getPressed as i}from"../../theme/states/pressed.js";import{buttonConfig as a}from"./config.js";import{defineBackgroundColor as l,calculateButtonColor as n}from"./utils.js";const d=o=>{var t;return e(null!==(t=a.sizes[o])&&void 0!==t?t:a.sizes.default)},c=(o,e)=>a.fontSize[e]?o.globals.typography.fontSizes[a.fontSize[e]]:o.globals.typography.fontSizes.get(a.fontSize.default),g=({type:g,isFilled:m,calculatedColor:u,size:p,isBlock:b,isTransparent:h,childrenCount:f,sx:y})=>j=>{const k=l(j,u,g,f>0),z=!m&&!h,C=z||h,v=z?a.types.outlined.border.width:0,S={fontSize:c(j,p||"default"),fontWeight:j.globals.typography.weights.get("medium"),color:n({type:g,isBackgroundTransparent:Boolean(C),backGroundColor:k,calculatedColor:u,theme:j}),width:b?"100%":void 0,backgroundColor:C?"transparent":k,padding:"lg"===p?j.globals.spacing.get("6"):`0 ${j.globals.spacing.get("6")}`,height:d(p||"default"),borderRadius:j.globals.spacing.get("3"),border:z?`solid ${e(v)} ${k}`:"none",cursor:"pointer",transition:"background-color,border 150ms linear",":focus-visible:not(:disabled)":{outline:r({theme:j,borderWidth:v}).styleOutline},":hover:not(:disabled)":{backgroundColor:s({theme:j,color:u.color,shade:C?0:u.shade}).backgroundColor},":active:not(:disabled)":{backgroundColor:i({theme:j,color:u.color,shade:C?0:u.shade}).backgroundColor},":disabled":t()};return o(Object.assign(Object.assign({},S),null==y?void 0:y.container))};export{g as buttonBaseStyle,d as heightBasedOnSize};
@@ -1,38 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.buttonConfig = exports.buttonSizes = exports.SM = exports.MD = exports.LG = void 0;
5
- var LG = 'lg';
6
- exports.LG = LG;
7
- var MD = 'md';
8
- exports.MD = MD;
9
- var SM = 'sm';
10
- exports.SM = SM;
11
- var buttonSizes = [LG, MD, SM];
12
- exports.buttonSizes = buttonSizes;
13
- var buttonConfig = {
14
- sizes: {
15
- lg: 56,
16
- md: 46,
17
- sm: 36,
18
- "default": 46
19
- },
20
- fontSize: {
21
- sm: 13,
22
- "default": '4'
23
- },
24
- types: {
25
- link: {
26
- color: {
27
- name: 'blue',
28
- shade: 550
29
- }
30
- },
31
- outlined: {
32
- border: {
33
- width: 1
34
- }
35
- }
36
- }
37
- };
38
- exports.buttonConfig = buttonConfig;
1
+ const e={sizes:{lg:56,md:46,sm:36,default:46},fontSize:{sm:13,default:"4"},types:{link:{color:{name:"blue",shade:550}},outlined:{border:{width:1}}}};export{e as buttonConfig};
@@ -1,63 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.calculateButtonColor = exports.defineBackgroundColor = void 0;
5
-
6
- var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
7
-
8
- var _themeFunctions = require("../../utils/themeFunctions");
9
-
10
- var _config = require("./config");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- /**
15
- * This function defines what background-color to show based on type or color passed
16
- * if color it retrieves the color directly from the palette
17
- * if type it gets the specific type color from the palette
18
- */
19
- var defineBackgroundColor = function defineBackgroundColor(theme, color, type, hasChildren) {
20
- if (type === 'link') {
21
- return 'transparent';
22
- }
23
-
24
- if (color && !(0, _isEmpty["default"])(color)) {
25
- return theme.utils.getColor(color.color, color.shade);
26
- }
27
-
28
- if (hasChildren && type) {
29
- return (0, _themeFunctions.getColorFromType)(type, theme);
30
- }
31
-
32
- return 'transparent';
33
- };
34
- /**
35
- * This function defines what color to show based on type or color passed
36
- * if type is link uses the link color
37
- * if it's background is transparent ( transparent or Outlined ) then it uses the background color
38
- * else it uses the calculated color
39
- */
40
-
41
-
42
- exports.defineBackgroundColor = defineBackgroundColor;
43
-
44
- var calculateButtonColor = function calculateButtonColor(_ref) {
45
- var type = _ref.type,
46
- isBackgroundTransparent = _ref.isBackgroundTransparent,
47
- backGroundColor = _ref.backGroundColor,
48
- calculatedColor = _ref.calculatedColor,
49
- theme = _ref.theme;
50
-
51
- if (type === 'link') {
52
- var color = _config.buttonConfig.types.link.color;
53
- return theme.utils.getColor(color.name, color.shade);
54
- }
55
-
56
- if (isBackgroundTransparent) {
57
- return backGroundColor;
58
- }
59
-
60
- return theme.utils.getAAColorFromSwatches(calculatedColor.color, calculatedColor.shade);
61
- };
62
-
63
- exports.calculateButtonColor = calculateButtonColor;
1
+ import o from"lodash/isEmpty.js";import{getColorFromType as r}from"../../utils/themeFunctions.js";import{buttonConfig as t}from"./config.js";const e=(t,e,s,n)=>"link"===s?"transparent":e&&!o(e)?t.utils.getColor(e.color,e.shade):n&&s?r(s,t):"transparent",s=({type:o,isBackgroundTransparent:r,backGroundColor:e,calculatedColor:s,theme:n})=>{if("link"===o){const o=t.types.link.color;return n.utils.getColor(o.name,o.shade)}return r?e:n.utils.getAAColorFromSwatches(s.color,s.shade)};export{s as calculateButtonColor,e as defineBackgroundColor};
@@ -1,30 +1 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
-
6
- var _react = _interopRequireDefault(require("react"));
7
-
8
- var _Card = require("./Card.style");
9
-
10
- var _react2 = require("@emotion/react");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
- var Card = function Card(_ref) {
15
- var elevated = _ref.elevated,
16
- _ref$isTransparent = _ref.isTransparent,
17
- isTransparent = _ref$isTransparent === void 0 ? false : _ref$isTransparent,
18
- radius = _ref.radius,
19
- children = _ref.children;
20
- return (0, _react2.jsx)("div", {
21
- css: (0, _Card.cardStyle)({
22
- elevated: elevated,
23
- isTransparent: isTransparent,
24
- radius: radius
25
- })
26
- }, children);
27
- };
28
-
29
- var _default = Card;
30
- exports["default"] = _default;
1
+ import{jsx as e}from"@emotion/react/jsx-runtime";import{cardStyle as r}from"./Card.style.js";const s=({elevated:s,isTransparent:t=!1,radius:a,children:i})=>e("div",Object.assign({css:r({elevated:s,isTransparent:t,radius:a})},{children:i}),void 0);export{s as default};