@laerdal/life-react-components 6.0.0-dev.19.full → 6.0.0-dev.2.full

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 (421) hide show
  1. package/dist/Accordion/ContentAccordion.cjs +11 -40
  2. package/dist/Accordion/ContentAccordion.cjs.map +1 -1
  3. package/dist/Accordion/ContentAccordion.js +11 -40
  4. package/dist/Accordion/ContentAccordion.js.map +1 -1
  5. package/dist/Accordion/styles.cjs +13 -51
  6. package/dist/Accordion/styles.cjs.map +1 -1
  7. package/dist/Accordion/styles.js +13 -51
  8. package/dist/Accordion/styles.js.map +1 -1
  9. package/dist/Banners/Banner.cjs +34 -38
  10. package/dist/Banners/Banner.cjs.map +1 -1
  11. package/dist/Banners/Banner.d.ts +3 -2
  12. package/dist/Banners/Banner.js +34 -38
  13. package/dist/Banners/Banner.js.map +1 -1
  14. package/dist/Banners/styles.cjs +16 -8
  15. package/dist/Banners/styles.cjs.map +1 -1
  16. package/dist/Banners/styles.js +16 -8
  17. package/dist/Banners/styles.js.map +1 -1
  18. package/dist/Breadcrumb/Breadcrumb.cjs +2 -8
  19. package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -1
  20. package/dist/Breadcrumb/Breadcrumb.js +2 -8
  21. package/dist/Breadcrumb/Breadcrumb.js.map +1 -1
  22. package/dist/Breadcrumb/styles.cjs +4 -15
  23. package/dist/Breadcrumb/styles.cjs.map +1 -1
  24. package/dist/Breadcrumb/styles.js +4 -15
  25. package/dist/Breadcrumb/styles.js.map +1 -1
  26. package/dist/Button/BackButton.cjs +6 -27
  27. package/dist/Button/BackButton.cjs.map +1 -1
  28. package/dist/Button/BackButton.js +6 -27
  29. package/dist/Button/BackButton.js.map +1 -1
  30. package/dist/Button/Button.cjs +47 -179
  31. package/dist/Button/Button.cjs.map +1 -1
  32. package/dist/Button/Button.d.ts +0 -2
  33. package/dist/Button/Button.js +47 -179
  34. package/dist/Button/Button.js.map +1 -1
  35. package/dist/Button/Iconbutton.cjs +21 -83
  36. package/dist/Button/Iconbutton.cjs.map +1 -1
  37. package/dist/Button/Iconbutton.js +21 -83
  38. package/dist/Button/Iconbutton.js.map +1 -1
  39. package/dist/Card/HorizontalCard/HorizontalCard.cjs +5 -20
  40. package/dist/Card/HorizontalCard/HorizontalCard.cjs.map +1 -1
  41. package/dist/Card/HorizontalCard/HorizontalCard.js +5 -20
  42. package/dist/Card/HorizontalCard/HorizontalCard.js.map +1 -1
  43. package/dist/Card/HorizontalCard/HorizontalCardBody.cjs +3 -12
  44. package/dist/Card/HorizontalCard/HorizontalCardBody.cjs.map +1 -1
  45. package/dist/Card/HorizontalCard/HorizontalCardBody.js +3 -12
  46. package/dist/Card/HorizontalCard/HorizontalCardBody.js.map +1 -1
  47. package/dist/Card/HorizontalCard/HorizontalCardThumbnail.cjs +2 -8
  48. package/dist/Card/HorizontalCard/HorizontalCardThumbnail.cjs.map +1 -1
  49. package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js +2 -8
  50. package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js.map +1 -1
  51. package/dist/Card/VerticalCard/Card.cjs +5 -20
  52. package/dist/Card/VerticalCard/Card.cjs.map +1 -1
  53. package/dist/Card/VerticalCard/Card.js +5 -20
  54. package/dist/Card/VerticalCard/Card.js.map +1 -1
  55. package/dist/Card/VerticalCard/CardBottomSection.cjs +7 -28
  56. package/dist/Card/VerticalCard/CardBottomSection.cjs.map +1 -1
  57. package/dist/Card/VerticalCard/CardBottomSection.js +7 -28
  58. package/dist/Card/VerticalCard/CardBottomSection.js.map +1 -1
  59. package/dist/Card/VerticalCard/CardMiddleSection.cjs +4 -19
  60. package/dist/Card/VerticalCard/CardMiddleSection.cjs.map +1 -1
  61. package/dist/Card/VerticalCard/CardMiddleSection.js +4 -19
  62. package/dist/Card/VerticalCard/CardMiddleSection.js.map +1 -1
  63. package/dist/Card/VerticalCard/CardTopSection.cjs +2 -9
  64. package/dist/Card/VerticalCard/CardTopSection.cjs.map +1 -1
  65. package/dist/Card/VerticalCard/CardTopSection.js +2 -9
  66. package/dist/Card/VerticalCard/CardTopSection.js.map +1 -1
  67. package/dist/Chips/ChipStyles.cjs +1 -4
  68. package/dist/Chips/ChipStyles.cjs.map +1 -1
  69. package/dist/Chips/ChipStyles.js +1 -4
  70. package/dist/Chips/ChipStyles.js.map +1 -1
  71. package/dist/ChipsInput/ChipInputField.cjs +4 -16
  72. package/dist/ChipsInput/ChipInputField.cjs.map +1 -1
  73. package/dist/ChipsInput/ChipInputField.js +4 -16
  74. package/dist/ChipsInput/ChipInputField.js.map +1 -1
  75. package/dist/Dropdown/BasicDropdown.cjs +3 -12
  76. package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
  77. package/dist/Dropdown/BasicDropdown.js +3 -12
  78. package/dist/Dropdown/BasicDropdown.js.map +1 -1
  79. package/dist/Dropdown/CommonStyling.cjs +42 -172
  80. package/dist/Dropdown/CommonStyling.cjs.map +1 -1
  81. package/dist/Dropdown/CommonStyling.js +42 -172
  82. package/dist/Dropdown/CommonStyling.js.map +1 -1
  83. package/dist/Dropdown/DropdownContent.cjs +10 -36
  84. package/dist/Dropdown/DropdownContent.cjs.map +1 -1
  85. package/dist/Dropdown/DropdownContent.js +10 -36
  86. package/dist/Dropdown/DropdownContent.js.map +1 -1
  87. package/dist/Dropdown/DropdownFilter.cjs +3 -12
  88. package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
  89. package/dist/Dropdown/DropdownFilter.js +3 -12
  90. package/dist/Dropdown/DropdownFilter.js.map +1 -1
  91. package/dist/Footer/Components/FooterNewsletterAndSocialSection.cjs +1 -4
  92. package/dist/Footer/Components/FooterNewsletterAndSocialSection.cjs.map +1 -1
  93. package/dist/Footer/Components/FooterNewsletterAndSocialSection.js +1 -4
  94. package/dist/Footer/Components/FooterNewsletterAndSocialSection.js.map +1 -1
  95. package/dist/GlobalNavigationBar/Logo.cjs +1 -2
  96. package/dist/GlobalNavigationBar/Logo.cjs.map +1 -1
  97. package/dist/GlobalNavigationBar/Logo.js +1 -2
  98. package/dist/GlobalNavigationBar/Logo.js.map +1 -1
  99. package/dist/GlobalNavigationBar/desktop/MainMenu.cjs +1 -8
  100. package/dist/GlobalNavigationBar/desktop/MainMenu.cjs.map +1 -1
  101. package/dist/GlobalNavigationBar/desktop/MainMenu.js +1 -8
  102. package/dist/GlobalNavigationBar/desktop/MainMenu.js.map +1 -1
  103. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs +2 -3
  104. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +1 -1
  105. package/dist/GlobalNavigationBar/desktop/RightSideNav.js +2 -3
  106. package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +1 -1
  107. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +1 -4
  108. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +1 -1
  109. package/dist/GlobalNavigationBar/desktop/UserMenu.js +1 -4
  110. package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +1 -1
  111. package/dist/GlobalNavigationBar/mobile/CommonStyles.cjs.map +1 -1
  112. package/dist/GlobalNavigationBar/mobile/CommonStyles.js.map +1 -1
  113. package/dist/HyperLink/HyperLink.cjs +2 -14
  114. package/dist/HyperLink/HyperLink.cjs.map +1 -1
  115. package/dist/HyperLink/HyperLink.d.ts +0 -2
  116. package/dist/HyperLink/HyperLink.js +2 -14
  117. package/dist/HyperLink/HyperLink.js.map +1 -1
  118. package/dist/HyperLink/styling.cjs +8 -38
  119. package/dist/HyperLink/styling.cjs.map +1 -1
  120. package/dist/HyperLink/styling.js +8 -38
  121. package/dist/HyperLink/styling.js.map +1 -1
  122. package/dist/InputFields/Checkbox.cjs +14 -54
  123. package/dist/InputFields/Checkbox.cjs.map +1 -1
  124. package/dist/InputFields/Checkbox.js +14 -54
  125. package/dist/InputFields/Checkbox.js.map +1 -1
  126. package/dist/InputFields/DatepickerField.cjs +43 -149
  127. package/dist/InputFields/DatepickerField.cjs.map +1 -1
  128. package/dist/InputFields/DatepickerField.d.ts +1 -1
  129. package/dist/InputFields/DatepickerField.js +44 -150
  130. package/dist/InputFields/DatepickerField.js.map +1 -1
  131. package/dist/InputFields/DatepickerFieldHeader.cjs +5 -20
  132. package/dist/InputFields/DatepickerFieldHeader.cjs.map +1 -1
  133. package/dist/InputFields/DatepickerFieldHeader.js +5 -20
  134. package/dist/InputFields/DatepickerFieldHeader.js.map +1 -1
  135. package/dist/InputFields/Label.cjs +11 -38
  136. package/dist/InputFields/Label.cjs.map +1 -1
  137. package/dist/InputFields/Label.js +11 -38
  138. package/dist/InputFields/Label.js.map +1 -1
  139. package/dist/InputFields/NumberField.cjs +16 -66
  140. package/dist/InputFields/NumberField.cjs.map +1 -1
  141. package/dist/InputFields/NumberField.js +16 -66
  142. package/dist/InputFields/NumberField.js.map +1 -1
  143. package/dist/InputFields/PasswordField.cjs +1 -4
  144. package/dist/InputFields/PasswordField.cjs.map +1 -1
  145. package/dist/InputFields/PasswordField.d.ts +1 -1
  146. package/dist/InputFields/PasswordField.js +1 -4
  147. package/dist/InputFields/PasswordField.js.map +1 -1
  148. package/dist/InputFields/QuickSearch.cjs +6 -30
  149. package/dist/InputFields/QuickSearch.cjs.map +1 -1
  150. package/dist/InputFields/QuickSearch.js +6 -30
  151. package/dist/InputFields/QuickSearch.js.map +1 -1
  152. package/dist/InputFields/RadioButton.cjs +15 -63
  153. package/dist/InputFields/RadioButton.cjs.map +1 -1
  154. package/dist/InputFields/RadioButton.js +15 -63
  155. package/dist/InputFields/RadioButton.js.map +1 -1
  156. package/dist/InputFields/RichTextField.cjs +15 -60
  157. package/dist/InputFields/RichTextField.cjs.map +1 -1
  158. package/dist/InputFields/RichTextField.js +15 -60
  159. package/dist/InputFields/RichTextField.js.map +1 -1
  160. package/dist/InputFields/SearchBar.cjs +1 -4
  161. package/dist/InputFields/SearchBar.cjs.map +1 -1
  162. package/dist/InputFields/SearchBar.js +1 -4
  163. package/dist/InputFields/SearchBar.js.map +1 -1
  164. package/dist/InputFields/TextField.cjs +3 -9
  165. package/dist/InputFields/TextField.cjs.map +1 -1
  166. package/dist/InputFields/TextField.d.ts +1 -1
  167. package/dist/InputFields/TextField.js +3 -9
  168. package/dist/InputFields/TextField.js.map +1 -1
  169. package/dist/InputFields/Textarea.cjs +17 -68
  170. package/dist/InputFields/Textarea.cjs.map +1 -1
  171. package/dist/InputFields/Textarea.js +17 -68
  172. package/dist/InputFields/Textarea.js.map +1 -1
  173. package/dist/InputFields/components/SearchBarInput.cjs +7 -28
  174. package/dist/InputFields/components/SearchBarInput.cjs.map +1 -1
  175. package/dist/InputFields/components/SearchBarInput.js +7 -28
  176. package/dist/InputFields/components/SearchBarInput.js.map +1 -1
  177. package/dist/InputFields/components/SearchField.cjs +15 -60
  178. package/dist/InputFields/components/SearchField.cjs.map +1 -1
  179. package/dist/InputFields/components/SearchField.js +15 -60
  180. package/dist/InputFields/components/SearchField.js.map +1 -1
  181. package/dist/InputFields/styling.cjs +39 -95
  182. package/dist/InputFields/styling.cjs.map +1 -1
  183. package/dist/InputFields/styling.d.ts +2 -1
  184. package/dist/InputFields/styling.js +39 -95
  185. package/dist/InputFields/styling.js.map +1 -1
  186. package/dist/LinearProgress/LinearProgress.cjs +53 -161
  187. package/dist/LinearProgress/LinearProgress.cjs.map +1 -1
  188. package/dist/LinearProgress/LinearProgress.js +53 -161
  189. package/dist/LinearProgress/LinearProgress.js.map +1 -1
  190. package/dist/List/ListRow.cjs +9 -36
  191. package/dist/List/ListRow.cjs.map +1 -1
  192. package/dist/List/ListRow.js +9 -36
  193. package/dist/List/ListRow.js.map +1 -1
  194. package/dist/LoadingIndicator/LoadingIndicator.cjs +1 -4
  195. package/dist/LoadingIndicator/LoadingIndicator.cjs.map +1 -1
  196. package/dist/LoadingIndicator/LoadingIndicator.js +1 -4
  197. package/dist/LoadingIndicator/LoadingIndicator.js.map +1 -1
  198. package/dist/LoadingPage/GlobalLoadingPage.cjs +1 -4
  199. package/dist/LoadingPage/GlobalLoadingPage.cjs.map +1 -1
  200. package/dist/LoadingPage/GlobalLoadingPage.js +1 -4
  201. package/dist/LoadingPage/GlobalLoadingPage.js.map +1 -1
  202. package/dist/MenuItem/MenuItem.cjs +26 -101
  203. package/dist/MenuItem/MenuItem.cjs.map +1 -1
  204. package/dist/MenuItem/MenuItem.js +26 -101
  205. package/dist/MenuItem/MenuItem.js.map +1 -1
  206. package/dist/MiniProductCard/MiniProductCard.cjs +1 -15
  207. package/dist/MiniProductCard/MiniProductCard.cjs.map +1 -1
  208. package/dist/MiniProductCard/MiniProductCard.d.ts +0 -1
  209. package/dist/MiniProductCard/MiniProductCard.js +1 -15
  210. package/dist/MiniProductCard/MiniProductCard.js.map +1 -1
  211. package/dist/Modals/Modal.cjs +1 -4
  212. package/dist/Modals/Modal.cjs.map +1 -1
  213. package/dist/Modals/Modal.js +1 -4
  214. package/dist/Modals/Modal.js.map +1 -1
  215. package/dist/Modals/ModalContent.cjs +6 -24
  216. package/dist/Modals/ModalContent.cjs.map +1 -1
  217. package/dist/Modals/ModalContent.js +6 -24
  218. package/dist/Modals/ModalContent.js.map +1 -1
  219. package/dist/Modals/ModalDialog.cjs +3 -12
  220. package/dist/Modals/ModalDialog.cjs.map +1 -1
  221. package/dist/Modals/ModalDialog.js +3 -12
  222. package/dist/Modals/ModalDialog.js.map +1 -1
  223. package/dist/Modals/ModalNote.cjs +4 -16
  224. package/dist/Modals/ModalNote.cjs.map +1 -1
  225. package/dist/Modals/ModalNote.js +4 -16
  226. package/dist/Modals/ModalNote.js.map +1 -1
  227. package/dist/Modals/ModalStyles.cjs +11 -44
  228. package/dist/Modals/ModalStyles.cjs.map +1 -1
  229. package/dist/Modals/ModalStyles.js +11 -44
  230. package/dist/Modals/ModalStyles.js.map +1 -1
  231. package/dist/NavItem/NavItem.cjs +2 -11
  232. package/dist/NavItem/NavItem.cjs.map +1 -1
  233. package/dist/NavItem/NavItem.js +2 -11
  234. package/dist/NavItem/NavItem.js.map +1 -1
  235. package/dist/NotificationDot/NotificationDot.cjs +2 -17
  236. package/dist/NotificationDot/NotificationDot.cjs.map +1 -1
  237. package/dist/NotificationDot/NotificationDot.js +2 -17
  238. package/dist/NotificationDot/NotificationDot.js.map +1 -1
  239. package/dist/Paginator/Paginator.cjs +29 -76
  240. package/dist/Paginator/Paginator.cjs.map +1 -1
  241. package/dist/Paginator/Paginator.js +29 -76
  242. package/dist/Paginator/Paginator.js.map +1 -1
  243. package/dist/Panel/Panel.cjs +1 -4
  244. package/dist/Panel/Panel.cjs.map +1 -1
  245. package/dist/Panel/Panel.js +1 -4
  246. package/dist/Panel/Panel.js.map +1 -1
  247. package/dist/Popover/Popover.cjs +3 -22
  248. package/dist/Popover/Popover.cjs.map +1 -1
  249. package/dist/Popover/Popover.js +3 -22
  250. package/dist/Popover/Popover.js.map +1 -1
  251. package/dist/ProfileButton/ProfileButton.cjs +2 -9
  252. package/dist/ProfileButton/ProfileButton.cjs.map +1 -1
  253. package/dist/ProfileButton/ProfileButton.js +2 -9
  254. package/dist/ProfileButton/ProfileButton.js.map +1 -1
  255. package/dist/SegmentControl/SegmentControl.cjs +11 -46
  256. package/dist/SegmentControl/SegmentControl.cjs.map +1 -1
  257. package/dist/SegmentControl/SegmentControl.js +11 -46
  258. package/dist/SegmentControl/SegmentControl.js.map +1 -1
  259. package/dist/SideMenu/SideMenuHeader.cjs +3 -12
  260. package/dist/SideMenu/SideMenuHeader.cjs.map +1 -1
  261. package/dist/SideMenu/SideMenuHeader.js +3 -12
  262. package/dist/SideMenu/SideMenuHeader.js.map +1 -1
  263. package/dist/Switcher/SwitcherMenuItem.cjs +1 -4
  264. package/dist/Switcher/SwitcherMenuItem.cjs.map +1 -1
  265. package/dist/Switcher/SwitcherMenuItem.js +1 -4
  266. package/dist/Switcher/SwitcherMenuItem.js.map +1 -1
  267. package/dist/Table/TableFooter.cjs +2 -8
  268. package/dist/Table/TableFooter.cjs.map +1 -1
  269. package/dist/Table/TableFooter.js +2 -8
  270. package/dist/Table/TableFooter.js.map +1 -1
  271. package/dist/Table/TableStyles.cjs +33 -132
  272. package/dist/Table/TableStyles.cjs.map +1 -1
  273. package/dist/Table/TableStyles.js +33 -132
  274. package/dist/Table/TableStyles.js.map +1 -1
  275. package/dist/Tabs/HorizontalTabs.cjs +18 -68
  276. package/dist/Tabs/HorizontalTabs.cjs.map +1 -1
  277. package/dist/Tabs/HorizontalTabs.js +18 -68
  278. package/dist/Tabs/HorizontalTabs.js.map +1 -1
  279. package/dist/Tabs/TabLink.cjs +1 -4
  280. package/dist/Tabs/TabLink.cjs.map +1 -1
  281. package/dist/Tabs/TabLink.js +1 -4
  282. package/dist/Tabs/TabLink.js.map +1 -1
  283. package/dist/Tabs/VerticalTabs.cjs +0 -1
  284. package/dist/Tabs/VerticalTabs.cjs.map +1 -1
  285. package/dist/Tabs/VerticalTabs.js +0 -1
  286. package/dist/Tabs/VerticalTabs.js.map +1 -1
  287. package/dist/Tag/Tag.cjs +2 -2
  288. package/dist/Tag/Tag.cjs.map +1 -1
  289. package/dist/Tag/Tag.js +2 -2
  290. package/dist/Tag/Tag.js.map +1 -1
  291. package/dist/Tile/Tile.cjs +2 -8
  292. package/dist/Tile/Tile.cjs.map +1 -1
  293. package/dist/Tile/Tile.js +2 -8
  294. package/dist/Tile/Tile.js.map +1 -1
  295. package/dist/Tile/TileCommonItems.cjs +2 -8
  296. package/dist/Tile/TileCommonItems.cjs.map +1 -1
  297. package/dist/Tile/TileCommonItems.js +2 -8
  298. package/dist/Tile/TileCommonItems.js.map +1 -1
  299. package/dist/Tile/TileFooter.cjs +1 -4
  300. package/dist/Tile/TileFooter.cjs.map +1 -1
  301. package/dist/Tile/TileFooter.js +1 -4
  302. package/dist/Tile/TileFooter.js.map +1 -1
  303. package/dist/Tile/TileHeader.cjs +3 -12
  304. package/dist/Tile/TileHeader.cjs.map +1 -1
  305. package/dist/Tile/TileHeader.js +3 -12
  306. package/dist/Tile/TileHeader.js.map +1 -1
  307. package/dist/Toasters/Toast.cjs +13 -62
  308. package/dist/Toasters/Toast.cjs.map +1 -1
  309. package/dist/Toasters/Toast.js +13 -62
  310. package/dist/Toasters/Toast.js.map +1 -1
  311. package/dist/Toggles/ToggleButton.cjs +3 -9
  312. package/dist/Toggles/ToggleButton.cjs.map +1 -1
  313. package/dist/Toggles/ToggleButton.d.ts +1 -1
  314. package/dist/Toggles/ToggleButton.js +3 -9
  315. package/dist/Toggles/ToggleButton.js.map +1 -1
  316. package/dist/Toggles/TogglerStyles.cjs +8 -22
  317. package/dist/Toggles/TogglerStyles.cjs.map +1 -1
  318. package/dist/Toggles/TogglerStyles.js +8 -22
  319. package/dist/Toggles/TogglerStyles.js.map +1 -1
  320. package/dist/Tooltips/TooltipStyles.cjs +6 -28
  321. package/dist/Tooltips/TooltipStyles.cjs.map +1 -1
  322. package/dist/Tooltips/TooltipStyles.js +6 -28
  323. package/dist/Tooltips/TooltipStyles.js.map +1 -1
  324. package/dist/common/InputStyling.cjs +7 -30
  325. package/dist/common/InputStyling.cjs.map +1 -1
  326. package/dist/common/InputStyling.js +7 -30
  327. package/dist/common/InputStyling.js.map +1 -1
  328. package/dist/custom.d.ts +0 -2
  329. package/dist/styles/colors.cjs +84 -439
  330. package/dist/styles/colors.cjs.map +1 -1
  331. package/dist/styles/colors.d.ts +11 -200
  332. package/dist/styles/colors.js +84 -439
  333. package/dist/styles/colors.js.map +1 -1
  334. package/dist/styles/global.cjs +2 -19
  335. package/dist/styles/global.cjs.map +1 -1
  336. package/dist/styles/global.d.ts +2 -3
  337. package/dist/styles/global.js +3 -18
  338. package/dist/styles/global.js.map +1 -1
  339. package/dist/styles/index.cjs +9 -21
  340. package/dist/styles/index.cjs.map +1 -1
  341. package/dist/styles/index.d.ts +2 -2
  342. package/dist/styles/index.js +6 -18
  343. package/dist/styles/index.js.map +1 -1
  344. package/package.json +141 -144
  345. package/dist/Accordion/__tests__/AccordionMenu.test.tsx +0 -42
  346. package/dist/Accordion/__tests__/ContentAccordion.test.tsx +0 -150
  347. package/dist/AuthPage/__tests__/AuthPage.test.tsx +0 -27
  348. package/dist/Banners/__tests__/Banner.test.tsx +0 -47
  349. package/dist/Banners/__tests__/OverviewBanner.test.tsx +0 -20
  350. package/dist/Breadcrumb/__tests__/Breadcrumb.test.tsx +0 -78
  351. package/dist/Button/__tests__/BackButton.test.tsx +0 -32
  352. package/dist/Button/__tests__/Button.test.tsx +0 -45
  353. package/dist/Button/__tests__/DualButton.test.tsx +0 -119
  354. package/dist/Card/HorizontalCard/__tests__/HorizontalCard.test.tsx +0 -71
  355. package/dist/Card/HorizontalCard/__tests__/VerticalCard.test.tsx +0 -124
  356. package/dist/Card/__tests__/Card.test.tsx +0 -146
  357. package/dist/Chips/__tests__/ActionChip.test.tsx +0 -94
  358. package/dist/Chips/__tests__/ChoiceChips.test.tsx +0 -79
  359. package/dist/Chips/__tests__/FilterChip.test.tsx +0 -95
  360. package/dist/Chips/__tests__/InputChip.test.tsx +0 -155
  361. package/dist/ChipsInput/__tests__/ChipDropdownInput.test.tsx +0 -100
  362. package/dist/ChipsInput/__tests__/ChipInputFields.test.tsx +0 -155
  363. package/dist/Dropdown/__tests__/DropdownFilter.test.tsx +0 -39
  364. package/dist/Footer/__tests__/Footer.test.tsx +0 -182
  365. package/dist/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.d.ts +0 -1
  366. package/dist/GlobalNavigationBar/__tests__/Logo.test.tsx +0 -39
  367. package/dist/GlobalNavigationBar/__tests__/Logo.tests.d.ts +0 -1
  368. package/dist/GlobalNavigationBar/desktop/__tests__/DesktopActions.test.tsx +0 -108
  369. package/dist/GlobalNavigationBar/desktop/__tests__/ExtendedMainMenu.test.tsx +0 -28
  370. package/dist/GlobalNavigationBar/desktop/__tests__/MainMenu.test.tsx +0 -55
  371. package/dist/GlobalNavigationBar/desktop/__tests__/RightSideNav.test.tsx +0 -45
  372. package/dist/GlobalNavigationBar/desktop/__tests__/UserMenu.test.tsx +0 -125
  373. package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenu.test.tsx +0 -317
  374. package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuContent.test.tsx +0 -294
  375. package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuHeader.test.tsx +0 -195
  376. package/dist/InputFields/__tests__/NumberField.test.tsx +0 -67
  377. package/dist/InputFields/__tests__/NumberInput.test.tsx +0 -68
  378. package/dist/InputFields/__tests__/QuickSearch.test.tsx +0 -42
  379. package/dist/LinearProgress/__tests__/LinearProgress.test.tsx +0 -25
  380. package/dist/List/__tests__/ListRow.test.tsx +0 -18
  381. package/dist/List/__tests__/ListRow.tests.d.ts +0 -1
  382. package/dist/LoadingPage/__tests__/GlobalLoadingPage.test.tsx +0 -23
  383. package/dist/Modals/__tests__/Modal.test.tsx +0 -169
  384. package/dist/Modals/__tests__/ModalContainer.test.tsx +0 -77
  385. package/dist/Modals/__tests__/ModalContent.test.tsx +0 -126
  386. package/dist/NavItem/__tests__/NavItem.test.ts +0 -6
  387. package/dist/NotificationDot/__tests__/NotificationDot.test.tsx +0 -33
  388. package/dist/Paginator/__tests__/Paginator.test.tsx +0 -39
  389. package/dist/Popover/__tests__/Popover.test.tsx +0 -64
  390. package/dist/ProfileButton/__tests__/ProfileButton.test.tsx +0 -31
  391. package/dist/QuizButton/__tests__/QuizButton.test.tsx +0 -53
  392. package/dist/SegmentControl/__tests__/SegmentControl.test.tsx +0 -145
  393. package/dist/SideMenu/__tests__/SideMenu.test.tsx +0 -99
  394. package/dist/Switcher/__tests__/SwitcherMenuItem.tsx +0 -14
  395. package/dist/Table/__tests__/Table.test.tsx +0 -499
  396. package/dist/Tabs/__tests__/HorizontalTabs.test.tsx +0 -95
  397. package/dist/Tabs/__tests__/TabLink.test.tsx +0 -40
  398. package/dist/Tabs/__tests__/TabLink.tests.d.ts +0 -1
  399. package/dist/Tabs/__tests__/Tablist.test.tsx +0 -37
  400. package/dist/Tabs/__tests__/Tablist.tests.d.ts +0 -2
  401. package/dist/Tag/__tests__/Tag.test.tsx +0 -86
  402. package/dist/Toasters/__tests__/Toast.test.tsx +0 -74
  403. package/dist/Toggles/__tests__/ToggleButton.test.tsx +0 -53
  404. package/dist/Toggles/__tests__/ToggleSwitch.test.tsx +0 -87
  405. package/dist/Tooltips/__tests__/TooltipWrapper.test.tsx +0 -16
  406. package/dist/common/Link.cjs +0 -45
  407. package/dist/common/Link.cjs.map +0 -1
  408. package/dist/common/Link.d.ts +0 -9
  409. package/dist/common/Link.js +0 -37
  410. package/dist/common/Link.js.map +0 -1
  411. package/dist/common/NavigationHelper.cjs +0 -30
  412. package/dist/common/NavigationHelper.cjs.map +0 -1
  413. package/dist/common/NavigationHelper.d.ts +0 -4
  414. package/dist/common/NavigationHelper.js +0 -23
  415. package/dist/common/NavigationHelper.js.map +0 -1
  416. package/dist/styles/react-datepicker.css +0 -766
  417. package/dist/utils/color-tokens.cjs +0 -91
  418. package/dist/utils/color-tokens.cjs.map +0 -1
  419. package/dist/utils/color-tokens.d.ts +0 -19
  420. package/dist/utils/color-tokens.js +0 -82
  421. package/dist/utils/color-tokens.js.map +0 -1
@@ -42,10 +42,7 @@ export const CardMiddleSectionCategoryStyles = styled.div`
42
42
  gap: 6px;
43
43
 
44
44
  svg {
45
- color: ${props => COLORS.generateToken({
46
- componentType: 'text',
47
- defaultVariant: 'subtle'
48
- }, props.theme)};
45
+ color: ${props => COLORS.getColor('neutral_500', props.theme)};
49
46
  flex-grow: 0;
50
47
  flex-shrink: 0;
51
48
  }
@@ -71,29 +68,17 @@ const CardMiddleSection = _ref => {
71
68
  $bottomMargin: Boolean(categoryIcon || categoryLabel),
72
69
  children: [categoryIcon, /*#__PURE__*/_jsx(ComponentS, {
73
70
  textStyle: ComponentTextStyle.Bold,
74
- color: COLORS.generateToken({
75
- componentType: 'text',
76
- defaultVariant: 'subtle'
77
- }, theme),
71
+ color: COLORS.getColor('neutral_500', theme),
78
72
  children: categoryLabel
79
73
  })]
80
74
  }), /*#__PURE__*/_jsx(ComponentXL, {
81
75
  className: "titleBlock",
82
76
  textStyle: ComponentTextStyle.Bold,
83
- color: disabled ? COLORS.generateToken({
84
- componentType: 'text',
85
- defaultVariant: 'subtle'
86
- }, theme) : COLORS.generateToken({
87
- componentType: 'text',
88
- defaultVariant: 'default'
89
- }, theme),
77
+ color: disabled ? COLORS.getColor('neutral_500', theme) : COLORS.getColor('black', theme),
90
78
  children: title
91
79
  }), description && /*#__PURE__*/_jsx(ComponentS, {
92
80
  className: "descriptionBlock",
93
- color: COLORS.generateToken({
94
- componentType: 'text',
95
- defaultVariant: 'subtle'
96
- }, theme),
81
+ color: COLORS.getColor('neutral_600', theme),
97
82
  children: description
98
83
  }), tags && /*#__PURE__*/_jsx(CardMiddleSectionTagsStyles, {
99
84
  children: tags.map((x, index) => /*#__PURE__*/_jsx(Tag, {
@@ -1 +1 @@
1
- {"version":3,"file":"CardMiddleSection.js","names":["React","styled","useTheme","COLORS","ComponentS","ComponentTextStyle","ComponentXL","Tag","jsx","_jsx","jsxs","_jsxs","CardMiddleSectionContainer","div","CardMiddleSectionColorBandStyles","props","$color","CardMiddleSectionTagsStyles","CardMiddleSectionCategoryStyles","generateToken","componentType","defaultVariant","theme","CardMiddleSection","_ref","colorBandColor","categoryIcon","categoryLabel","title","description","tags","row2Tags","disabled","children","$extraTopMargin","Boolean","$bottomMargin","textStyle","Bold","color","className","map","x","index","label","variant","icon"],"sources":["../../../src/Card/VerticalCard/CardMiddleSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, Tag, TagVariants } from '../../index';\r\nimport { ReactNode } from 'react';\r\n\r\nexport interface CardMiddleSectionProps {\r\n /** Color of the band to be shown on the top of middle section. */\r\n colorBandColor?: string;\r\n /** Icon to be shown on the left side of the categoryLabel. */\r\n categoryIcon?: React.ReactNode;\r\n /** Label to be shown at the top part of the middle section. */\r\n categoryLabel?: string;\r\n /** Main title of the Card component. */\r\n title: string;\r\n /** Description of the Card. */\r\n description?: string;\r\n /** Tags to be shown under the description. */\r\n tags?: CardTag[];\r\n /** Second row of tags if needed. */\r\n row2Tags?: CardTag[];\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport interface CardTag {\r\n label: string;\r\n variant?: TagVariants;\r\n icon?: ReactNode\r\n}\r\n\r\nexport const CardMiddleSectionContainer = styled.div`\r\n display: flex;\r\n flex-grow: 1;\r\n width: calc(100% - 32px);\r\n position: relative;\r\n flex-direction: column;\r\n padding: 16px;\r\n gap: 8px;\r\n\r\n .descriptionBlock {\r\n padding: 2px 0;\r\n }\r\n\r\n .titleBlock {\r\n padding: 2px 0;\r\n }\r\n`;\r\n\r\nexport const CardMiddleSectionColorBandStyles = styled.div<{ $color: string }>`\r\n position: absolute;\r\n width: 100%;\r\n top: 0px;\r\n left: 0px;\r\n height: 8px;\r\n background-color: ${(props) => props.$color};\r\n`;\r\n\r\nexport const CardMiddleSectionTagsStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding: 4px 0;\r\n gap: 4px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const CardMiddleSectionCategoryStyles = styled.div<{ $extraTopMargin: boolean; $bottomMargin: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: none;\r\n gap: 6px;\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({ componentType: 'text', defaultVariant: 'subtle' }, props.theme)};\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nconst CardMiddleSection: React.FunctionComponent<CardMiddleSectionProps> = ({\r\n colorBandColor,\r\n categoryIcon,\r\n categoryLabel,\r\n title,\r\n description,\r\n tags,\r\n row2Tags,\r\n disabled,\r\n}: CardMiddleSectionProps) => {\r\n const theme = useTheme();\r\n return (\r\n <CardMiddleSectionContainer data-testid={'card-middleSection'} >\r\n {colorBandColor && <CardMiddleSectionColorBandStyles $color={colorBandColor} />}\r\n {\r\n (categoryIcon || categoryLabel) &&\r\n <CardMiddleSectionCategoryStyles $extraTopMargin={Boolean(colorBandColor)} $bottomMargin={Boolean(categoryIcon || categoryLabel)}>\r\n {categoryIcon}\r\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {categoryLabel}\r\n </ComponentS>\r\n </CardMiddleSectionCategoryStyles>\r\n }\r\n <ComponentXL className=\"titleBlock\" textStyle={ComponentTextStyle.Bold} color={disabled ? COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme) \r\n : COLORS.generateToken({componentType:'text',defaultVariant:'default'}, theme)}>\r\n {title}\r\n </ComponentXL>\r\n {description && (\r\n <ComponentS className=\"descriptionBlock\" color={COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, theme)}>\r\n {description}\r\n </ComponentS>\r\n )}\r\n {tags && (\r\n <CardMiddleSectionTagsStyles>\r\n {tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </CardMiddleSectionTagsStyles>\r\n )}\r\n {row2Tags && (\r\n <CardMiddleSectionTagsStyles>\r\n {row2Tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </CardMiddleSectionTagsStyles>\r\n )}\r\n </CardMiddleSectionContainer>\r\n );\r\n};\r\n\r\nexport default CardMiddleSection;\r\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SAASC,MAAM,EAAEC,UAAU,EAAEC,kBAAkB,EAAEC,WAAW,EAAEC,GAAG,QAAqB,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA4BpG,OAAO,MAAMC,0BAA0B,GAAGX,M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AA,CAACF,GAAG;QAA6BqC,KAAK,EAAEF,CAAC,CAACE,KAAM;QAACC,OAAO,EAAEH,CAAC,CAACG,OAAO,IAAI,SAAU;QAACC,IAAI,EAAEJ,CAAC,CAACI;MAAK,GAArF,GAAGJ,CAAC,CAACE,KAAK,IAAID,KAAK,EAAoE,CAClG;IAAC,CACyB,CAC9B;EAAA,CACyB,CAAC;AAEjC,CAAC;AAED,eAAepB,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"CardMiddleSection.js","names":["React","styled","useTheme","COLORS","ComponentS","ComponentTextStyle","ComponentXL","Tag","jsx","_jsx","jsxs","_jsxs","CardMiddleSectionContainer","div","CardMiddleSectionColorBandStyles","props","$color","CardMiddleSectionTagsStyles","CardMiddleSectionCategoryStyles","getColor","theme","CardMiddleSection","_ref","colorBandColor","categoryIcon","categoryLabel","title","description","tags","row2Tags","disabled","children","$extraTopMargin","Boolean","$bottomMargin","textStyle","Bold","color","className","map","x","index","label","variant","icon"],"sources":["../../../src/Card/VerticalCard/CardMiddleSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport { COLORS, ComponentS, ComponentTextStyle, ComponentXL, Tag, TagVariants } from '../../index';\r\nimport { ReactNode } from 'react';\r\n\r\nexport interface CardMiddleSectionProps {\r\n /** Color of the band to be shown on the top of middle section. */\r\n colorBandColor?: string;\r\n /** Icon to be shown on the left side of the categoryLabel. */\r\n categoryIcon?: React.ReactNode;\r\n /** Label to be shown at the top part of the middle section. */\r\n categoryLabel?: string;\r\n /** Main title of the Card component. */\r\n title: string;\r\n /** Description of the Card. */\r\n description?: string;\r\n /** Tags to be shown under the description. */\r\n tags?: CardTag[];\r\n /** Second row of tags if needed. */\r\n row2Tags?: CardTag[];\r\n /** This property is set by Card component itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport interface CardTag {\r\n label: string;\r\n variant?: TagVariants;\r\n icon?: ReactNode\r\n}\r\n\r\nexport const CardMiddleSectionContainer = styled.div`\r\n display: flex;\r\n flex-grow: 1;\r\n width: calc(100% - 32px);\r\n position: relative;\r\n flex-direction: column;\r\n padding: 16px;\r\n gap: 8px;\r\n\r\n .descriptionBlock {\r\n padding: 2px 0;\r\n }\r\n\r\n .titleBlock {\r\n padding: 2px 0;\r\n }\r\n`;\r\n\r\nexport const CardMiddleSectionColorBandStyles = styled.div<{ $color: string }>`\r\n position: absolute;\r\n width: 100%;\r\n top: 0px;\r\n left: 0px;\r\n height: 8px;\r\n background-color: ${(props) => props.$color};\r\n`;\r\n\r\nexport const CardMiddleSectionTagsStyles = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding: 4px 0;\r\n gap: 4px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const CardMiddleSectionCategoryStyles = styled.div<{ $extraTopMargin: boolean; $bottomMargin: boolean }>`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n padding: none;\r\n gap: 6px;\r\n\r\n svg {\r\n color: ${props => COLORS.getColor('neutral_500', props.theme)};\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nconst CardMiddleSection: React.FunctionComponent<CardMiddleSectionProps> = ({\r\n colorBandColor,\r\n categoryIcon,\r\n categoryLabel,\r\n title,\r\n description,\r\n tags,\r\n row2Tags,\r\n disabled,\r\n}: CardMiddleSectionProps) => {\r\n const theme = useTheme();\r\n return (\r\n <CardMiddleSectionContainer data-testid={'card-middleSection'} >\r\n {colorBandColor && <CardMiddleSectionColorBandStyles $color={colorBandColor} />}\r\n {\r\n (categoryIcon || categoryLabel) &&\r\n <CardMiddleSectionCategoryStyles $extraTopMargin={Boolean(colorBandColor)} $bottomMargin={Boolean(categoryIcon || categoryLabel)}>\r\n {categoryIcon}\r\n <ComponentS textStyle={ComponentTextStyle.Bold} color={COLORS.getColor('neutral_500', theme)}>\r\n {categoryLabel}\r\n </ComponentS>\r\n </CardMiddleSectionCategoryStyles>\r\n }\r\n <ComponentXL className=\"titleBlock\" textStyle={ComponentTextStyle.Bold} color={disabled ? COLORS.getColor('neutral_500', theme) : COLORS.getColor('black', theme)}>\r\n {title}\r\n </ComponentXL>\r\n {description && (\r\n <ComponentS className=\"descriptionBlock\" color={COLORS.getColor('neutral_600', theme)}>\r\n {description}\r\n </ComponentS>\r\n )}\r\n {tags && (\r\n <CardMiddleSectionTagsStyles>\r\n {tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </CardMiddleSectionTagsStyles>\r\n )}\r\n {row2Tags && (\r\n <CardMiddleSectionTagsStyles>\r\n {row2Tags.map((x, index) => (\r\n <Tag key={`${x.label}_${index}`} label={x.label} variant={x.variant ?? 'neutral'} icon={x.icon} />\r\n ))}\r\n </CardMiddleSectionTagsStyles>\r\n )}\r\n </CardMiddleSectionContainer>\r\n );\r\n};\r\n\r\nexport default CardMiddleSection;\r\n"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SAASC,MAAM,EAAEC,UAAU,EAAEC,kBAAkB,EAAEC,WAAW,EAAEC,GAAG,QAAqB,aAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA4BpG,OAAO,MAAMC,0BAA0B,GAAGX,MAAM,CAACY,GAAG;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,gCAAgC,GAAGb,MAAM,CAACY,GAAuB;AAC9E;AACA;AACA;AACA;AACA;AACA,sBAAuBE,KAAK,IAAKA,KAAK,CAACC,MAAM;AAC7C,CAAC;AAED,OAAO,MAAMC,2BAA2B,GAAGhB,MAAM,CAACY,GAAG;AACrD;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MA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ACbC,WAAW,iBACVlB,IAAA,CAACL,UAAU;MAACkC,SAAS,EAAC,kBAAkB;MAACD,KAAK,EAAElC,MAAM,CAACgB,QAAQ,CAAC,aAAa,EAAEC,KAAK,CAAE;MAAAW,QAAA,EACnFJ;IAAW,CACF,CACb,EACAC,IAAI,iBACHnB,IAAA,CAACQ,2BAA2B;MAAAc,QAAA,EACzBH,IAAI,CAACW,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,kBACjBhC,IAAA,CAACF,GAAG;QAA6BmC,KAAK,EAAEF,CAAC,CAACE,KAAM;QAACC,OAAO,EAAEH,CAAC,CAACG,OAAO,IAAI,SAAU;QAACC,IAAI,EAAEJ,CAAC,CAACI;MAAK,GAArF,GAAGJ,CAAC,CAACE,KAAK,IAAID,KAAK,EAAoE,CAClG;IAAC,CACyB,CAC9B,EACAZ,QAAQ,iBACPpB,IAAA,CAACQ,2BAA2B;MAAAc,QAAA,EACzBF,QAAQ,CAACU,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,kBACrBhC,IAAA,CAACF,GAAG;QAA6BmC,KAAK,EAAEF,CAAC,CAACE,KAAM;QAACC,OAAO,EAAEH,CAAC,CAACG,OAAO,IAAI,SAAU;QAACC,IAAI,EAAEJ,CAAC,CAACI;MAAK,GAArF,GAAGJ,CAAC,CAACE,KAAK,IAAID,KAAK,EAAoE,CAClG;IAAC,CACyB,CAC9B;EAAA,CACyB,CAAC;AAEjC,CAAC;AAED,eAAepB,iBAAiB","ignoreList":[]}
@@ -124,16 +124,9 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
124
124
  }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(CardTopSectionRibbonContainer, {
125
125
  "data-testid": 'card-topSection-ribbon',
126
126
  $color: highlightRibbonContentColor ?? '',
127
- $backgroundColor: disabled ? _index.COLORS.generateToken({
128
- componentType: 'bg-fill',
129
- state: 'disabled'
130
- }, theme) : highlightRibbonBgColor ?? '',
127
+ $backgroundColor: disabled ? _index.COLORS.getColor('neutral_300', theme) : highlightRibbonBgColor ?? '',
131
128
  children: [highlightRibbonIcon, highlightRibbonText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.ComponentS, {
132
- color: disabled ? _index.COLORS.generateToken({
133
- componentType: 'text',
134
- isOnFill: true,
135
- state: 'disabled'
136
- }, theme) : highlightRibbonContentColor ?? '',
129
+ color: highlightRibbonContentColor ?? '',
137
130
  textStyle: _typography.ComponentTextStyle.Regular,
138
131
  children: highlightRibbonText
139
132
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"CardTopSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_typography","_Checkbox","_interopRequireDefault","_Tag","_index","_Image","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CardTopSectionImageContainer","exports","styled","div","CardTopSectionTagContainer","CardTopSectionContainer","props","disabled","CardTopSectionRibbonContainer","$backgroundColor","$color","CardTopSectionCheckboxContainer","COLORS","getColor","theme","CardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","useTheme","jsxs","style","height","children","jsx","ImageWithFallbacks","fallbacks","fallbackSrc","src","alt","loader","width","select","Tag","label","variant","icon","generateToken","componentType","state","ComponentS","color","isOnFill","textStyle","ComponentTextStyle","Regular","propTypes","_propTypes","bool","func","string","node","shape","isRequired","_default"],"sources":["../../../src/Card/VerticalCard/CardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface CardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const CardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const CardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const CardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst CardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: CardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <CardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <CardTopSectionImageContainer>\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt={image.alt} loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </CardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <CardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </CardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <CardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </CardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <CardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.generateToken({componentType:'bg-fill', state:'disabled'}, theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={disabled ? COLORS.generateToken({componentType:'text', isOnFill: true, state:'disabled'}, theme) : highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </CardTopSectionRibbonContainer>\r\n )}\r\n </CardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default CardTopSection;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAEA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AAA+C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,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c","ignoreList":[]}
1
+ {"version":3,"file":"CardTopSection.cjs","names":["React","_interopRequireWildcard","require","_styledComponents","_typography","_Checkbox","_interopRequireDefault","_Tag","_index","_Image","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CardTopSectionImageContainer","exports","styled","div","CardTopSectionTagContainer","CardTopSectionContainer","props","disabled","CardTopSectionRibbonContainer","$backgroundColor","$color","CardTopSectionCheckboxContainer","COLORS","getColor","theme","CardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","useTheme","jsxs","style","height","children","jsx","ImageWithFallbacks","fallbacks","fallbackSrc","src","alt","loader","width","select","Tag","label","variant","icon","ComponentS","color","textStyle","ComponentTextStyle","Regular","propTypes","_propTypes","bool","func","string","node","shape","isRequired","_default"],"sources":["../../../src/Card/VerticalCard/CardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface CardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const CardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const CardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const CardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst CardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: CardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <CardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <CardTopSectionImageContainer>\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt={image.alt} loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </CardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <CardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </CardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <CardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </CardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <CardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.getColor('neutral_300', theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </CardTopSectionRibbonContainer>\r\n )}\r\n </CardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default CardTopSection;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAA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AA,CAAAnE,OAAA,CAAAsE,MAAA;EAEtBnC,KAAK,EAAAgC,UAAA,CAAAnE,OAAA,CAAAwE,KAAA;IAAKpB,GAAG,EAAAe,UAAA,CAAAnE,OAAA,CAAAsE,MAAA,CAAAG,UAAA;IAAUtB,WAAW,EAAAgB,UAAA,CAAAnE,OAAA,CAAAsE,MAAA;IAAWjB,GAAG,EAAAc,UAAA,CAAAnE,OAAA,CAAAsE,MAAA,CAAAG,UAAA;IAAU3B,MAAM,EAAAqB,UAAA,CAAAnE,OAAA,CAAAsE,MAAA;IAAWf,KAAK,EAAAY,UAAA,CAAAnE,OAAA,CAAAsE,MAAA;IAAWhB,MAAM,EAAAa,UAAA,CAAAnE,OAAA,CAAAoE;EAAA;EAEjG/C,QAAQ,EAAA8C,UAAA,CAAAnE,OAAA,CAAAoE;AAAA;AAAA,IAAAM,QAAA,GAAA3D,OAAA,CAAAf,OAAA,GAwHK6B,cAAc","ignoreList":[]}
@@ -115,16 +115,9 @@ const CardTopSection = /*#__PURE__*/React.forwardRef((_ref, ref) => {
115
115
  }), (highlightRibbonIcon || highlightRibbonText) && /*#__PURE__*/_jsxs(CardTopSectionRibbonContainer, {
116
116
  "data-testid": 'card-topSection-ribbon',
117
117
  $color: highlightRibbonContentColor ?? '',
118
- $backgroundColor: disabled ? COLORS.generateToken({
119
- componentType: 'bg-fill',
120
- state: 'disabled'
121
- }, theme) : highlightRibbonBgColor ?? '',
118
+ $backgroundColor: disabled ? COLORS.getColor('neutral_300', theme) : highlightRibbonBgColor ?? '',
122
119
  children: [highlightRibbonIcon, highlightRibbonText && /*#__PURE__*/_jsx(ComponentS, {
123
- color: disabled ? COLORS.generateToken({
124
- componentType: 'text',
125
- isOnFill: true,
126
- state: 'disabled'
127
- }, theme) : highlightRibbonContentColor ?? '',
120
+ color: highlightRibbonContentColor ?? '',
128
121
  textStyle: ComponentTextStyle.Regular,
129
122
  children: highlightRibbonText
130
123
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"CardTopSection.js","names":["React","styled","useTheme","ComponentS","ComponentTextStyle","Checkbox","Tag","COLORS","ImageWithFallbacks","jsx","_jsx","jsxs","_jsxs","CardTopSectionImageContainer","div","CardTopSectionTagContainer","CardTopSectionContainer","props","disabled","CardTopSectionRibbonContainer","$backgroundColor","$color","CardTopSectionCheckboxContainer","getColor","theme","CardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","style","height","children","fallbacks","fallbackSrc","src","alt","loader","width","select","label","variant","icon","generateToken","componentType","state","color","isOnFill","textStyle","Regular","propTypes","_pt","bool","func","string","node","shape","isRequired"],"sources":["../../../src/Card/VerticalCard/CardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface CardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const CardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const CardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const CardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst CardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: CardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <CardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <CardTopSectionImageContainer>\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt={image.alt} loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </CardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <CardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </CardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <CardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </CardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <CardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.generateToken({componentType:'bg-fill', state:'disabled'}, theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={disabled ? COLORS.generateToken({componentType:'text', isOnFill: true, state:'disabled'}, theme) : highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </CardTopSectionRibbonContainer>\r\n )}\r\n </CardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default CardTopSection;\r\n"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,mBAAmB;AACpD,SAAQC,UAAU,EAAEC,kBAAkB,QAAO,yBAAyB;AACtE,OAAOC,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,EAAAoB,GAAA,CAAAG,MAAA;IAAWhB,KAAK,EAAAa,GAAA,CAAAG,MAAA;IAAWjB,MAAM,EAAAc,GAAA,CAAAC;EAAA;EAEjG3C,QAAQ,EAAA0C,GAAA,CAAAC;AAAA;AAwHV,eAAepC,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"CardTopSection.js","names":["React","styled","useTheme","ComponentS","ComponentTextStyle","Checkbox","Tag","COLORS","ImageWithFallbacks","jsx","_jsx","jsxs","_jsxs","CardTopSectionImageContainer","div","CardTopSectionTagContainer","CardTopSectionContainer","props","disabled","CardTopSectionRibbonContainer","$backgroundColor","$color","CardTopSectionCheckboxContainer","getColor","theme","CardTopSection","forwardRef","_ref","ref","selected","setSelected","image","tagLabel","tagIcon","tagVariant","highlightRibbonIcon","highlightRibbonText","highlightRibbonContentColor","highlightRibbonBgColor","style","height","children","fallbacks","fallbackSrc","src","alt","loader","width","select","label","variant","icon","color","textStyle","Regular","propTypes","_pt","bool","func","string","node","shape","isRequired"],"sources":["../../../src/Card/VerticalCard/CardTopSection.tsx"],"sourcesContent":["import * as React from 'react';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {ComponentS, ComponentTextStyle} from '../../styles/typography';\r\nimport Checkbox from '../../InputFields/Checkbox';\r\nimport {Tag, TagVariants} from '../../Tag';\r\n\r\nimport {COLORS} from '../../index';\r\nimport {ImageWithFallbacks} from \"../../Image\";\r\n\r\nexport interface CardTopSectionProps {\r\n /** Sets initial state of select Checkbox. */\r\n selected?: boolean;\r\n /** If this action is provided, then Checkbox will be shown on the top-right corner of the Card. */\r\n setSelected?: (arg0: boolean) => void;\r\n /** Label shown in the tag in the top-left corner of the Card. */\r\n tagLabel?: string;\r\n /** Icon shown in the tag in the top-left corner of the Card. */\r\n tagIcon?: React.ReactNode;\r\n /** Tag variant shown in the tag in the top-left corner of the Card. */\r\n tagVariant?: TagVariants;\r\n /** Text shown in the Ribbon, under the Image. */\r\n highlightRibbonText?: string;\r\n /** Icon shown in the Ribbon, under the Image. */\r\n highlightRibbonIcon?: React.ReactNode;\r\n /** Content color (text and image) of the Ribbon, under the Image. */\r\n highlightRibbonContentColor?: string;\r\n /** Background color of the Ribbon, shown under the Image. */\r\n highlightRibbonBgColor?: string;\r\n /** Details of the Image shown in the section. */\r\n image?: { src: string; fallbackSrc?: string; alt: string, height?: string; width?: string; loader?: boolean };\r\n /** This property is automatically set in the Card itself and is based on 'disabled' flag of CardProps. */\r\n disabled?: boolean;\r\n}\r\n\r\nexport const CardTopSectionImageContainer = styled.div`\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n height: 100%;\r\n width: 100%;\r\n img{\r\n object-fit: cover;\r\n width: 100%;\r\n height: 100%;\r\n border-top-right-radius: 8px;\r\n border-top-left-radius: 8px;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionTagContainer = styled.div`\r\n position: absolute;\r\n\r\n top: 16px;\r\n left: 16px;\r\n width: calc(100% - 32px);\r\n`;\r\n\r\nexport const CardTopSectionContainer = styled.div<{ disabled?: boolean }>`\r\n position: relative;\r\n width: 100%;\r\n overflow: visible;\r\n\r\n ${props => props.disabled ? `\r\n img, svg {\r\n filter: grayscale(100%);\r\n }` : ''}\r\n`;\r\n\r\nexport const CardTopSectionRibbonContainer = styled.div<{ $color: string; $backgroundColor: string }>`\r\n min-height: calc(40px - 16px);\r\n background-color: ${props => props.$backgroundColor};\r\n width: calc(100% - 32px);\r\n position: absolute;\r\n bottom: 0px;\r\n left: 0px;\r\n padding: 8px 16px 8px 16px;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n svg {\r\n color: ${props => props.$color};\r\n width: 24px;\r\n height: 24px;\r\n flex-grow: 0;\r\n flex-shrink: 0;\r\n }\r\n`;\r\n\r\nexport const CardTopSectionCheckboxContainer = styled.div`\r\n position: absolute;\r\n top: 0;\r\n right: 0;\r\n z-index: 1;\r\n\r\n .checkbox-icon {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst CardTopSection = React.forwardRef(({\r\n selected,\r\n setSelected,\r\n image,\r\n tagLabel,\r\n tagIcon,\r\n tagVariant = 'positive',\r\n highlightRibbonIcon,\r\n highlightRibbonText,\r\n highlightRibbonContentColor,\r\n highlightRibbonBgColor,\r\n disabled\r\n }: CardTopSectionProps, ref: React.Ref<HTMLDivElement>) => {\r\n\r\n const theme = useTheme();\r\n return (\r\n <CardTopSectionContainer disabled={disabled} data-testid={'card-topSection'} style={{height: image?.height ?? 200}}>\r\n {\r\n image &&\r\n <CardTopSectionImageContainer>\r\n <ImageWithFallbacks fallbacks={image.fallbackSrc ?? ''} src={image.src} alt={image.alt} loader={image.loader ?? false} width={image.width} height={image.height}/>\r\n </CardTopSectionImageContainer>\r\n }\r\n {(!!selected || !!setSelected) && (\r\n <CardTopSectionCheckboxContainer data-testid={'card-topSection-checkbox'}>\r\n <Checkbox ref={ref}\r\n disabled={disabled}\r\n select={(selected: boolean) => setSelected && setSelected(selected)}\r\n selected={selected || false}/>\r\n </CardTopSectionCheckboxContainer>\r\n )}\r\n {(tagLabel || tagIcon) && (\r\n <CardTopSectionTagContainer>\r\n <Tag label={tagLabel} variant={tagVariant} icon={tagIcon}/>\r\n </CardTopSectionTagContainer>\r\n )}\r\n {(highlightRibbonIcon || highlightRibbonText) && (\r\n <CardTopSectionRibbonContainer data-testid={'card-topSection-ribbon'} $color={highlightRibbonContentColor ?? ''}\r\n $backgroundColor={disabled ? COLORS.getColor('neutral_300', theme) : highlightRibbonBgColor ?? ''}>\r\n {highlightRibbonIcon}\r\n {highlightRibbonText && (\r\n <ComponentS color={highlightRibbonContentColor ?? ''} textStyle={ComponentTextStyle.Regular}>\r\n {highlightRibbonText}\r\n </ComponentS>\r\n )}\r\n </CardTopSectionRibbonContainer>\r\n )}\r\n </CardTopSectionContainer>\r\n );\r\n});\r\n\r\nexport default CardTopSection;\r\n"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OA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,GAAA,CAAAC;EAAA;EAEjGvC,QAAQ,EAAAsC,GAAA,CAAAC;AAAA;AAwHV,eAAehC,cAAc","ignoreList":[]}
@@ -149,10 +149,7 @@ const ChipContainer = exports.ChipContainer = _styledComponents.default.div`
149
149
  }
150
150
 
151
151
  &.outline {
152
- color: ${props => _styles.COLORS.generateToken({
153
- componentType: 'text',
154
- defaultVariant: 'subtle'
155
- }, props.theme)};
152
+ color: ${props => _styles.COLORS.getColor('neutral_600', props.theme)};
156
153
 
157
154
  ${ChipContent} {
158
155
  background-color: ${props => _styles.COLORS.getColor('white', props.theme)};
@@ -1 +1 @@
1
- {"version":3,"file":"ChipStyles.cjs","names":["_styledComponents","_interopRequireDefault","require","_styles","ChipContentContainer","exports","styled","div","ChipContent","ComponentXSStyling","ComponentTextStyle","Bold","ChipContainer","ComponentSStyling","ComponentMStyling","focusStyles","props","COLORS","getColor","theme","generateToken","componentType","defaultVariant"],"sources":["../../src/Chips/ChipStyles.ts"],"sourcesContent":["/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\n\r\n/**\r\n * Import custom style properties.\r\n */\r\nimport { COLORS, ComponentMStyling, ComponentSStyling, ComponentTextStyle, ComponentXSStyling, focusStyles } from '../styles';\r\n\r\nexport const ChipContentContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n min-height: 48px;\r\n width: max-content;\r\n`;\r\n\r\nexport const ChipContent = styled.div`\r\n ${ComponentXSStyling(ComponentTextStyle.Bold, null)}\r\n\r\n position: relative;\r\n display: flex;\r\n gap: 4px;\r\n align-items: center;\r\n min-height: 24px;\r\n box-sizing: border-box;\r\n border-radius: 24px;\r\n padding: 4px 12px;\r\n\r\n .chip-icon {\r\n height: 16px;\r\n width: 16px;\r\n border-radius: 50%;\r\n\r\n svg {\r\n height: 16px;\r\n width: 16px;\r\n }\r\n }\r\n\r\n .icon-left {\r\n margin-left: -4px;\r\n }\r\n\r\n .icon-right {\r\n margin-right: -4px;\r\n }\r\n\r\n .action-right {\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 48px;\r\n width: 48px;\r\n right: -8px;\r\n }\r\n\r\n &.with-action-right {\r\n position: relative;\r\n padding-right: 28px;\r\n }\r\n`;\r\n\r\nexport const ChipContainer = styled.div`\r\n display: inline-block;\r\n cursor: pointer;\r\n position: relative;\r\n\r\n &.medium {\r\n ${ChipContent} {\r\n gap: 6px;\r\n padding: 10px 16px;\r\n\r\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 20px;\r\n width: 20px;\r\n\r\n svg {\r\n height: 20px;\r\n width: 20px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 38px;\r\n\r\n .action-right {\r\n right: -2px;\r\n }\r\n }\r\n }\r\n\r\n &.large {\r\n ${ChipContent} {\r\n gap: 8px;\r\n padding: 12px 20px;\r\n\r\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 24px;\r\n width: 24px;\r\n\r\n svg {\r\n height: 24px;\r\n width: 24px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 48px;\r\n\r\n .action-right {\r\n right: 4px;\r\n }\r\n }\r\n }\r\n\r\n &.interactive:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &.default {\r\n color: ${props => COLORS.getColor('white', props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_500', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n }\r\n\r\n &.outline {\r\n color: ${props => COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_20', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_200', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_300', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n box-shadow: none;\r\n }\r\n }\r\n\r\n //account for border\r\n &.small.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 2px 10px;\r\n }\r\n }\r\n\r\n &.medium.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 8px 14px;\r\n }\r\n }\r\n\r\n &.large.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 10px 18px;\r\n }\r\n }\r\n\r\n &.invalid {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('critical_100', props.theme)};\r\n color: ${props => COLORS.getColor('critical_600', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:active:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n }\r\n\r\n .action-right:focus {\r\n ${focusStyles}\r\n }\r\n\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n\r\n &.invalid {\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n }\r\n\r\n &.disabled {\r\n cursor: not-allowed;\r\n\r\n ${ChipContentContainer} {\r\n pointer-events: none;\r\n }\r\n\r\n ${ChipContent} {\r\n border: none !important;\r\n background-color: ${props => COLORS.getColor('neutral_100', props.theme)} !important;\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)} !important;\r\n }\r\n }\r\n`;\r\n"],"mappings":";;;;;;;AAGA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAGO,MAAME,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,yBAAM,CAACC,GAAG;AAC9C;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAGF,yBAAM,CAACC,GAAG;AACrC,IAAI,IAAAE,0BAAkB,EAACC,0BAAkB,CAACC,IAAI,EAAE,IAAI,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AA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A;AACA;AACA;AACA;AACA,MAAMf,oBAAoB;AAC1B;AACA;AACA;AACA,MAAMI,WAAW;AACjB;AACA,0BAA0BQ,KAAK,IAAIC,cAAM,CAACC,QAAQ,CAAC,aAAa,EAAEF,KAAK,CAACG,KAAK,CAAC;AAC9E,eAAeH,KAAK,IAAIC,cAAM,CAACC,QAAQ,CAAC,aAAa,EAAEF,KAAK,CAACG,KAAK,CAAC;AACnE;AACA;AACA,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"ChipStyles.cjs","names":["_styledComponents","_interopRequireDefault","require","_styles","ChipContentContainer","exports","styled","div","ChipContent","ComponentXSStyling","ComponentTextStyle","Bold","ChipContainer","ComponentSStyling","ComponentMStyling","focusStyles","props","COLORS","getColor","theme"],"sources":["../../src/Chips/ChipStyles.ts"],"sourcesContent":["/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\n\r\n/**\r\n * Import custom style properties.\r\n */\r\nimport { COLORS, ComponentMStyling, ComponentSStyling, ComponentTextStyle, ComponentXSStyling, focusStyles } from '../styles';\r\n\r\nexport const ChipContentContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n min-height: 48px;\r\n width: max-content;\r\n`;\r\n\r\nexport const ChipContent = styled.div`\r\n ${ComponentXSStyling(ComponentTextStyle.Bold, null)}\r\n\r\n position: relative;\r\n display: flex;\r\n gap: 4px;\r\n align-items: center;\r\n min-height: 24px;\r\n box-sizing: border-box;\r\n border-radius: 24px;\r\n padding: 4px 12px;\r\n\r\n .chip-icon {\r\n height: 16px;\r\n width: 16px;\r\n border-radius: 50%;\r\n\r\n svg {\r\n height: 16px;\r\n width: 16px;\r\n }\r\n }\r\n\r\n .icon-left {\r\n margin-left: -4px;\r\n }\r\n\r\n .icon-right {\r\n margin-right: -4px;\r\n }\r\n\r\n .action-right {\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 48px;\r\n width: 48px;\r\n right: -8px;\r\n }\r\n\r\n &.with-action-right {\r\n position: relative;\r\n padding-right: 28px;\r\n }\r\n`;\r\n\r\nexport const ChipContainer = styled.div`\r\n display: inline-block;\r\n cursor: pointer;\r\n position: relative;\r\n\r\n &.medium {\r\n ${ChipContent} {\r\n gap: 6px;\r\n padding: 10px 16px;\r\n\r\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 20px;\r\n width: 20px;\r\n\r\n svg {\r\n height: 20px;\r\n width: 20px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 38px;\r\n\r\n .action-right {\r\n right: -2px;\r\n }\r\n }\r\n }\r\n\r\n &.large {\r\n ${ChipContent} {\r\n gap: 8px;\r\n padding: 12px 20px;\r\n\r\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 24px;\r\n width: 24px;\r\n\r\n svg {\r\n height: 24px;\r\n width: 24px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 48px;\r\n\r\n .action-right {\r\n right: 4px;\r\n }\r\n }\r\n }\r\n\r\n &.interactive:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &.default {\r\n color: ${props => COLORS.getColor('white', props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_500', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n }\r\n\r\n &.outline {\r\n color: ${props => COLORS.getColor('neutral_600', props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_20', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_200', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_300', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n box-shadow: none;\r\n }\r\n }\r\n\r\n //account for border\r\n &.small.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 2px 10px;\r\n }\r\n }\r\n\r\n &.medium.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 8px 14px;\r\n }\r\n }\r\n\r\n &.large.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 10px 18px;\r\n }\r\n }\r\n\r\n &.invalid {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('critical_100', props.theme)};\r\n color: ${props => COLORS.getColor('critical_600', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:active:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n }\r\n\r\n .action-right:focus {\r\n ${focusStyles}\r\n }\r\n\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n\r\n &.invalid {\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n }\r\n\r\n &.disabled {\r\n cursor: not-allowed;\r\n\r\n ${ChipContentContainer} {\r\n pointer-events: none;\r\n }\r\n\r\n ${ChipContent} {\r\n border: none !important;\r\n background-color: ${props => COLORS.getColor('neutral_100', props.theme)} !important;\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)} !important;\r\n }\r\n }\r\n`;\r\n"],"mappings":";;;;;;;AAGA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AARA;AACA;AACA;;AAGA;AACA;AACA;;AAGO,MAAME,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,yBAAM,CAACC,GAAG;AAC9C;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAGF,yBAAM,CAACC,GAAG;AACrC,IAAI,IAAAE,0BAAkB,EAACC,0BAAkB,CAACC,IAAI,EAAE,IAAI,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAEM,MAAMC,aAAa,GAAAP,OAAA,CAAAO,aAAA,GAAGN,yBAAM,CAACC,GAAG;AACvC;AACA;AACA;AACA;AACA;AACA,MAAMC,WAAW;AACjB;AACA;AACA;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eAAeH,KAAK,IAAIC,cAAM,CAACC,QAAQ,CAAC,aAAa,EAAEF,KAAK,CAACG,KAAK,CAAC;AACnE;AACA;AACA,CAAC","ignoreList":[]}
@@ -141,10 +141,7 @@ export const ChipContainer = styled.div`
141
141
  }
142
142
 
143
143
  &.outline {
144
- color: ${props => COLORS.generateToken({
145
- componentType: 'text',
146
- defaultVariant: 'subtle'
147
- }, props.theme)};
144
+ color: ${props => COLORS.getColor('neutral_600', props.theme)};
148
145
 
149
146
  ${ChipContent} {
150
147
  background-color: ${props => COLORS.getColor('white', props.theme)};
@@ -1 +1 @@
1
- {"version":3,"file":"ChipStyles.js","names":["styled","COLORS","ComponentMStyling","ComponentSStyling","ComponentTextStyle","ComponentXSStyling","focusStyles","ChipContentContainer","div","ChipContent","Bold","ChipContainer","props","getColor","theme","generateToken","componentType","defaultVariant"],"sources":["../../src/Chips/ChipStyles.ts"],"sourcesContent":["/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\n\r\n/**\r\n * Import custom style properties.\r\n */\r\nimport { COLORS, ComponentMStyling, ComponentSStyling, ComponentTextStyle, ComponentXSStyling, focusStyles } from '../styles';\r\n\r\nexport const ChipContentContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n min-height: 48px;\r\n width: max-content;\r\n`;\r\n\r\nexport const ChipContent = styled.div`\r\n ${ComponentXSStyling(ComponentTextStyle.Bold, null)}\r\n\r\n position: relative;\r\n display: flex;\r\n gap: 4px;\r\n align-items: center;\r\n min-height: 24px;\r\n box-sizing: border-box;\r\n border-radius: 24px;\r\n padding: 4px 12px;\r\n\r\n .chip-icon {\r\n height: 16px;\r\n width: 16px;\r\n border-radius: 50%;\r\n\r\n svg {\r\n height: 16px;\r\n width: 16px;\r\n }\r\n }\r\n\r\n .icon-left {\r\n margin-left: -4px;\r\n }\r\n\r\n .icon-right {\r\n margin-right: -4px;\r\n }\r\n\r\n .action-right {\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 48px;\r\n width: 48px;\r\n right: -8px;\r\n }\r\n\r\n &.with-action-right {\r\n position: relative;\r\n padding-right: 28px;\r\n }\r\n`;\r\n\r\nexport const ChipContainer = styled.div`\r\n display: inline-block;\r\n cursor: pointer;\r\n position: relative;\r\n\r\n &.medium {\r\n ${ChipContent} {\r\n gap: 6px;\r\n padding: 10px 16px;\r\n\r\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 20px;\r\n width: 20px;\r\n\r\n svg {\r\n height: 20px;\r\n width: 20px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 38px;\r\n\r\n .action-right {\r\n right: -2px;\r\n }\r\n }\r\n }\r\n\r\n &.large {\r\n ${ChipContent} {\r\n gap: 8px;\r\n padding: 12px 20px;\r\n\r\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 24px;\r\n width: 24px;\r\n\r\n svg {\r\n height: 24px;\r\n width: 24px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 48px;\r\n\r\n .action-right {\r\n right: 4px;\r\n }\r\n }\r\n }\r\n\r\n &.interactive:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &.default {\r\n color: ${props => COLORS.getColor('white', props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_500', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n }\r\n\r\n &.outline {\r\n color: ${props => COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_20', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_200', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_300', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n box-shadow: none;\r\n }\r\n }\r\n\r\n //account for border\r\n &.small.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 2px 10px;\r\n }\r\n }\r\n\r\n &.medium.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 8px 14px;\r\n }\r\n }\r\n\r\n &.large.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 10px 18px;\r\n }\r\n }\r\n\r\n &.invalid {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('critical_100', props.theme)};\r\n color: ${props => COLORS.getColor('critical_600', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:active:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n }\r\n\r\n .action-right:focus {\r\n ${focusStyles}\r\n }\r\n\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n\r\n &.invalid {\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n }\r\n\r\n &.disabled {\r\n cursor: not-allowed;\r\n\r\n ${ChipContentContainer} {\r\n pointer-events: none;\r\n }\r\n\r\n ${ChipContent} {\r\n border: none !important;\r\n background-color: ${props => COLORS.getColor('neutral_100', props.theme)} !important;\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)} !important;\r\n }\r\n }\r\n`;\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,MAAM,MAAM,mBAAmB;;AAEtC;AACA;AACA;AACA,SAASC,MAAM,EAAEC,iBAAiB,EAAEC,iBAAiB,EAAEC,kBAAkB,EAAEC,kBAAkB,EAAEC,WAAW,QAAQ,WAAW;AAE7H,OAAO,MAAMC,oBAAoB,GAAGP,MAAM,CAACQ,GAAG;AAC9C;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,WAAW,GAAGT,MAAM,CAACQ,GAAG;AACrC,IAAIH,kBAAkB,CAACD,kBAAkB,CAACM,IAAI,EAAE,IAAI,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,aAAa,GAAGX,MAAM,CAACQ,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,EAAED,KAAK,CAACE,KAAK,CAAC;AAC9E,eAAeF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACnE;AACA;AACA,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"ChipStyles.js","names":["styled","COLORS","ComponentMStyling","ComponentSStyling","ComponentTextStyle","ComponentXSStyling","focusStyles","ChipContentContainer","div","ChipContent","Bold","ChipContainer","props","getColor","theme"],"sources":["../../src/Chips/ChipStyles.ts"],"sourcesContent":["/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\n\r\n/**\r\n * Import custom style properties.\r\n */\r\nimport { COLORS, ComponentMStyling, ComponentSStyling, ComponentTextStyle, ComponentXSStyling, focusStyles } from '../styles';\r\n\r\nexport const ChipContentContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n min-height: 48px;\r\n width: max-content;\r\n`;\r\n\r\nexport const ChipContent = styled.div`\r\n ${ComponentXSStyling(ComponentTextStyle.Bold, null)}\r\n\r\n position: relative;\r\n display: flex;\r\n gap: 4px;\r\n align-items: center;\r\n min-height: 24px;\r\n box-sizing: border-box;\r\n border-radius: 24px;\r\n padding: 4px 12px;\r\n\r\n .chip-icon {\r\n height: 16px;\r\n width: 16px;\r\n border-radius: 50%;\r\n\r\n svg {\r\n height: 16px;\r\n width: 16px;\r\n }\r\n }\r\n\r\n .icon-left {\r\n margin-left: -4px;\r\n }\r\n\r\n .icon-right {\r\n margin-right: -4px;\r\n }\r\n\r\n .action-right {\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 48px;\r\n width: 48px;\r\n right: -8px;\r\n }\r\n\r\n &.with-action-right {\r\n position: relative;\r\n padding-right: 28px;\r\n }\r\n`;\r\n\r\nexport const ChipContainer = styled.div`\r\n display: inline-block;\r\n cursor: pointer;\r\n position: relative;\r\n\r\n &.medium {\r\n ${ChipContent} {\r\n gap: 6px;\r\n padding: 10px 16px;\r\n\r\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 20px;\r\n width: 20px;\r\n\r\n svg {\r\n height: 20px;\r\n width: 20px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 38px;\r\n\r\n .action-right {\r\n right: -2px;\r\n }\r\n }\r\n }\r\n\r\n &.large {\r\n ${ChipContent} {\r\n gap: 8px;\r\n padding: 12px 20px;\r\n\r\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\r\n .chip-icon {\r\n height: 24px;\r\n width: 24px;\r\n\r\n svg {\r\n height: 24px;\r\n width: 24px;\r\n }\r\n }\r\n }\r\n\r\n .with-action-right {\r\n padding-right: 48px;\r\n\r\n .action-right {\r\n right: 4px;\r\n }\r\n }\r\n }\r\n\r\n &.interactive:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &.default {\r\n color: ${props => COLORS.getColor('white', props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_500', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.default:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n }\r\n\r\n &.outline {\r\n color: ${props => COLORS.getColor('neutral_600', props.theme)};\r\n\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_20', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_200', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.outline:active:not(.action-within) {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n border: 2px solid ${props => COLORS.getColor('primary_300', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n box-shadow: none;\r\n }\r\n }\r\n\r\n //account for border\r\n &.small.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 2px 10px;\r\n }\r\n }\r\n\r\n &.medium.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 8px 14px;\r\n }\r\n }\r\n\r\n &.large.outline:not(.disabled) {\r\n ${ChipContent} {\r\n padding: 10px 18px;\r\n }\r\n }\r\n\r\n &.invalid {\r\n ${ChipContent} {\r\n background-color: ${props => COLORS.getColor('critical_100', props.theme)};\r\n color: ${props => COLORS.getColor('critical_600', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:hover:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n }\r\n\r\n &.interactive.invalid:active:not(.action-within) {\r\n ${ChipContent} {\r\n background: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n }\r\n\r\n .action-right:focus {\r\n ${focusStyles}\r\n }\r\n\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n\r\n &.invalid {\r\n .action-right:hover .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_200', props.theme)};\r\n color: ${props => COLORS.getColor('critical_700', props.theme)};\r\n }\r\n\r\n .action-right:active .chip-icon {\r\n background-color: ${props => COLORS.getColor('critical_300', props.theme)};\r\n color: ${props => COLORS.getColor('critical_800', props.theme)};\r\n }\r\n\r\n .action-right.disabled .chip-icon {\r\n background-color: transparent;\r\n color: ${props => COLORS.getColor('primary_300', props.theme)};\r\n }\r\n }\r\n\r\n &.disabled {\r\n cursor: not-allowed;\r\n\r\n ${ChipContentContainer} {\r\n pointer-events: none;\r\n }\r\n\r\n ${ChipContent} {\r\n border: none !important;\r\n background-color: ${props => COLORS.getColor('neutral_100', props.theme)} !important;\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)} !important;\r\n }\r\n }\r\n`;\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,MAAM,MAAM,mBAAmB;;AAEtC;AACA;AACA;AACA,SAASC,MAAM,EAAEC,iBAAiB,EAAEC,iBAAiB,EAAEC,kBAAkB,EAAEC,kBAAkB,EAAEC,WAAW,QAAQ,WAAW;AAE7H,OAAO,MAAMC,oBAAoB,GAAGP,MAAM,CAACQ,GAAG;AAC9C;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,WAAW,GAAGT,MAAM,CAACQ,GAAG;AACrC,IAAIH,kBAAkB,CAACD,kBAAkB,CAACM,IAAI,EAAE,IAAI,CAAC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAED,OAAO,MAAMC,aAAa,GAAGX,MAAM,CAACQ,GAAG;AACvC;AACA;AACA;AACA;AACA;AACA,MAAMC,WAAW;AACjB;AACA;AACA;AACA,QAAQN,iBAAiB,CAACC,kBAAkB,CAACM,IAAI,EAAE,IAAI,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMD,WAAW;AACjB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AIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AAC5E;AACA;AACA;AACA,wBAAwBF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AAC5E;AACA;AACA;AACA;AACA,aAAaF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACjE;AACA;AACA;AACA;AACA,0BAA0BF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,cAAc,EAAED,KAAK,CAACE,KAAK,CAAC;AAC/E,eAAeF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,cAAc,EAAED,KAAK,CAACE,KAAK,CAAC;AACpE;AACA;AACA;AACA,0BAA0BF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,cAAc,EAAED,KAAK,CAACE,KAAK,CAAC;AAC/E,eAAeF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,cAAc,EAAED,KAAK,CAACE,KAAK,CAAC;AACpE;AACA;AACA;AACA;AACA,eAAeF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA,MAAMP,oBAAoB;AAC1B;AACA;AACA;AACA,MAAME,WAAW;AACjB;AACA,0BAA0BG,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AAC9E,eAAeF,KAAK,IAAIX,MAAM,CAACY,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACnE;AACA;AACA,CAAC","ignoreList":[]}
@@ -77,10 +77,7 @@ const ChipInputEl = exports.ChipInputEl = _styledComponents.default.input`
77
77
  color: ${props => _styles.COLORS.getColor('black', props.theme)} !important;
78
78
 
79
79
  &::placeholder {
80
- ${props => (0, _styles.ComponentMStyling)(_styles.ComponentTextStyle.Italic, _styles.COLORS.generateToken({
81
- componentType: 'text',
82
- defaultVariant: 'subtle'
83
- }, props.theme))}
80
+ ${props => (0, _styles.ComponentMStyling)(_styles.ComponentTextStyle.Italic, _styles.COLORS.getColor('neutral_600', props.theme))}
84
81
  }
85
82
  `;
86
83
  const ChipInputContainer = exports.ChipInputContainer = _styledComponents.default.div`
@@ -102,10 +99,7 @@ const ChipInputContainer = exports.ChipInputContainer = _styledComponents.defaul
102
99
  min-height: 48px;
103
100
 
104
101
  ${ChipInputEl}::placeholder {
105
- ${props => (0, _styles.ComponentSStyling)(_styles.ComponentTextStyle.Italic, _styles.COLORS.generateToken({
106
- componentType: 'text',
107
- defaultVariant: 'subtle'
108
- }, props.theme))}
102
+ ${props => (0, _styles.ComponentSStyling)(_styles.ComponentTextStyle.Italic, _styles.COLORS.getColor('neutral_600', props.theme))}
109
103
  }
110
104
  }
111
105
 
@@ -114,10 +108,7 @@ const ChipInputContainer = exports.ChipInputContainer = _styledComponents.defaul
114
108
  min-height: 56px;
115
109
 
116
110
  ${ChipInputEl}::placeholder {
117
- ${props => (0, _styles.ComponentMStyling)(_styles.ComponentTextStyle.Italic, _styles.COLORS.generateToken({
118
- componentType: 'text',
119
- defaultVariant: 'subtle'
120
- }, props.theme))}
111
+ ${props => (0, _styles.ComponentMStyling)(_styles.ComponentTextStyle.Italic, _styles.COLORS.getColor('neutral_600', props.theme))}
121
112
  }
122
113
  }
123
114
 
@@ -284,10 +275,7 @@ const ChipInputField = exports.ChipInputField = /*#__PURE__*/_react.default.forw
284
275
  className: size,
285
276
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LoadingIndicator.LoadingIndicator, {
286
277
  size: _types.Size.Small,
287
- color: _styles.COLORS.generateToken({
288
- componentType: 'icon',
289
- defaultVariant: 'subtle'
290
- }, theme)
278
+ color: _styles.COLORS.getColor('neutral_600', theme)
291
279
  })
292
280
  })]
293
281
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"ChipInputField.cjs","names":["_react","_interopRequireDefault","require","_types","_Chips","_InputFields","_styles","_styledComponents","_interopRequireWildcard","_LoadingIndicator","_common","_Button","_icons","_jsxRuntime","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","Wrapper","styled","div","Loading","ChipInputBoundItems","exports","ChipInputContentContainer","scrollBarStyling","Size","Small","ChipInputEl","input","ComponentMStyling","ComponentTextStyle","Regular","props","COLORS","getColor","theme","Italic","generateToken","componentType","defaultVariant","ChipInputContainer","ComponentSStyling","focusStyles","ChipInputField","React","forwardRef","_ref","ref","inputId","items","disabled","placeholder","altPlaceholder","multiLine","size","Medium","validationMessage","loading","onRemoveItem","onInputValueChange","onInputKeyDown","onActivationChange","inputValue","required","onBlur","rest","_objectWithoutProperties2","useTheme","containerRef","useRef","inputRef","useFocusVisibleRef","useImperativeHandle","current","useEffect","document","activeElement","scrollIntoView","block","inline","handleInputKeyDown","key","value","repeat","handleItemRemove","event","item","index","focus","focusVisible","detail","handleInputClear","handleContainerKeyDown","querySelectorAll","currentIndex","Array","from","indexOf","target","direction","cls","jsxs","children","jsx","onKeyDown","onClick","className","map","chip","InputChip","icon","variant","States","Default","text","label","onRemove","type","id","tabIndex","onChange","stopPropagation","IconButton","dataTestId","action","useTransparentBackground","shape","style","marginLeft","focusOnClick","SystemIcons","Clear","LoadingIndicator","color","ErrorMessage","TechnicalWarning","propTypes","_propTypes","string","isRequired","array","bool","func"],"sources":["../../src/ChipsInput/ChipInputField.tsx"],"sourcesContent":["import React from 'react';\r\nimport {ChipItem} from './ChipInputTypes';\r\nimport {Size, States} from '../types';\r\nimport {InputChip} from '../Chips';\r\nimport {ErrorMessage} from '../InputFields';\r\nimport {\r\n COLORS,\r\n ComponentMStyling,\r\n ComponentSStyling,\r\n ComponentTextStyle,\r\n focusStyles,\r\n scrollBarStyling\r\n} from '../styles';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {LoadingIndicator} from '../LoadingIndicator';\r\nimport {useFocusVisibleRef} from '../common';\r\nimport {IconButton} from '../Button';\r\nimport {SystemIcons} from '../icons';\r\n\r\nconst Wrapper = styled.div`\r\n position: relative;\r\n`;\r\n\r\nconst Loading = styled.div`\r\n height: 20px;\r\n width: 20px;\r\n`;\r\n\r\nexport const ChipInputBoundItems = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n flex: 1;\r\n min-width: 40px;\r\n`;\r\n\r\nexport const ChipInputContentContainer = styled.div`\r\n width: 100%;\r\n background: transparent;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n column-gap: 8px;\r\n margin-right: 6px;\r\n padding-right: 10px;\r\n padding-left: 16px;\r\n flex-wrap: nowrap;\r\n overflow-x: scroll;\r\n min-height: 48px;\r\n\r\n ${scrollBarStyling(Size.Small)}\r\n ::-webkit-scrollbar:horizontal {\r\n display: none;\r\n }\r\n\r\n .action-right:focus,\r\n button:focus {\r\n outline-offset: -4px !important;\r\n }\r\n`;\r\n\r\nexport const ChipInputEl = styled.input`\r\n border: none;\r\n outline: none;\r\n\r\n height: 40px;\r\n min-width: 40px;\r\n display: inline-flex;\r\n flex: 1;\r\n background: transparent;\r\n\r\n ${ComponentMStyling(ComponentTextStyle.Regular, null)}\r\n color: ${props => COLORS.getColor('black', props.theme)} !important;\r\n\r\n &::placeholder {\r\n ${props => ComponentMStyling(ComponentTextStyle.Italic, COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme))}\r\n }\r\n`;\r\n\r\nexport const ChipInputContainer = styled.div`\r\n width: 100%;\r\n height: auto;\r\n border-radius: 4px;\r\n margin-bottom: 4px;\r\n box-shadow: inset 0 0 0 1px ${props => COLORS.getColor('neutral_400', props.theme)};\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n box-sizing: border-box;\r\n cursor: text;\r\n outline: none;\r\n display: flex;\r\n align-items: center;\r\n\r\n ${props => ComponentMStyling(ComponentTextStyle.Regular, COLORS.getColor('black', props.theme))}\r\n &.small {\r\n padding: 0;\r\n min-height: 48px;\r\n\r\n ${ChipInputEl}::placeholder {\r\n ${props => ComponentSStyling(ComponentTextStyle.Italic, COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme))}\r\n }\r\n }\r\n\r\n &.medium {\r\n padding: 4px 0;\r\n min-height: 56px;\r\n\r\n ${ChipInputEl}::placeholder {\r\n ${props => ComponentMStyling(ComponentTextStyle.Italic, COLORS.generateToken({componentType:'text',defaultVariant:'subtle'}, props.theme))}\r\n }\r\n }\r\n\r\n &.multiline.medium {\r\n ${ChipInputContentContainer} {\r\n max-height: calc(48px * 3);\r\n flex-wrap: wrap;\r\n overflow-y: auto;\r\n overflow-x: unset;\r\n }\r\n }\r\n\r\n &.focus-visible-within,\r\n &:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &:hover {\r\n box-shadow: inset 0 0 0 2px ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n &:focus-within {\r\n box-shadow: inset 0 0 0 2px ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n &.invalid,\r\n &.invalid:hover,\r\n &.invalid:focus {\r\n box-shadow: inset 0 0 0 2px ${props => COLORS.getColor('critical_500', props.theme)};\r\n }\r\n\r\n &.disabled {\r\n ${ChipInputContentContainer} {\r\n pointer-events: none;\r\n }\r\n\r\n cursor: not-allowed;\r\n box-shadow: inset 0 0 0 1px ${props => COLORS.getColor('neutral_100', props.theme)};\r\n outline: none;\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)} !important;\r\n }\r\n`;\r\n\r\nexport interface ChipInputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'id' | 'required' | 'tabIndex' | 'value' | 'onChange' | 'onKeyDown' | 'placeholder' | 'onClick' | 'disabled' | 'size'> {\r\n inputId: string;\r\n items: ChipItem[];\r\n disabled?: boolean;\r\n placeholder?: string;\r\n altPlaceholder?: string;\r\n multiLine?: boolean;\r\n size?: Size.Large | Size.Medium | Size.Small;\r\n loading?: boolean;\r\n required?: boolean;\r\n\r\n validationMessage?: string;\r\n\r\n onRemoveItem: (item: ChipItem, index: number) => void;\r\n inputValue: string;\r\n onInputValueChange: (value: string) => void;\r\n onInputKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;\r\n onActivationChange?: (active: boolean) => void;\r\n}\r\n\r\nexport const ChipInputField = React.forwardRef<HTMLInputElement, ChipInputFieldProps>(\r\n (\r\n {\r\n inputId,\r\n items,\r\n disabled = false,\r\n placeholder,\r\n altPlaceholder,\r\n multiLine = true,\r\n size = Size.Medium,\r\n validationMessage,\r\n loading,\r\n onRemoveItem,\r\n onInputValueChange,\r\n onInputKeyDown,\r\n onActivationChange,\r\n inputValue,\r\n required,\r\n onBlur,\r\n ...rest\r\n },\r\n ref,\r\n ) => {\r\n const theme = useTheme();\r\n const containerRef = React.useRef<HTMLDivElement>(null);\r\n const inputRef = useFocusVisibleRef([containerRef]);\r\n \r\n React.useImperativeHandle(ref, () => inputRef.current, [inputRef])\r\n\r\n /**\r\n * Scroll container to last item on change\r\n * */\r\n React.useEffect(() => {\r\n if (inputRef.current && document.activeElement === inputRef.current) {\r\n inputRef.current.scrollIntoView({\r\n block: 'nearest',\r\n inline: 'nearest',\r\n });\r\n }\r\n }, [containerRef, inputRef, items]);\r\n\r\n /**\r\n * Remove last cheap on backspace\r\n * */\r\n const handleInputKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n if (e.key === 'Backspace' && !inputRef.current?.value && !e.repeat && items.length > 0) {\r\n onRemoveItem(items[items.length - 1], items.length - 1);\r\n } else {\r\n onInputKeyDown(e);\r\n }\r\n };\r\n\r\n const handleItemRemove = (event: any, item: ChipItem, index: number) => {\r\n onRemoveItem(item, index);\r\n inputRef.current?.focus({focusVisible: event.detail !== 1} as any);\r\n };\r\n\r\n const handleInputClear = (e: any) => {\r\n onInputValueChange('');\r\n inputRef.current?.focus({focusVisible: e?.detail !== 1} as any);\r\n };\r\n\r\n const handleContainerKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\r\n if (!containerRef.current || (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight')) return;\r\n\r\n const items = containerRef.current.querySelectorAll('[tabindex=\"0\"]') as NodeListOf<HTMLElement>;\r\n const currentIndex = Array.from(items).indexOf(e.target as any);\r\n const direction = e.key === 'ArrowLeft' ? -1 : 1;\r\n const item = items[currentIndex + direction];\r\n item?.focus({focusVisible: true} as any);\r\n\r\n onActivationChange && onActivationChange(false);\r\n };\r\n\r\n const cls = `${multiLine ? 'multiline' : ''} ${validationMessage ? 'invalid' : ''} ${size} ${loading ? 'loading' : ''} ${disabled ? 'disabled' : ''}`;\r\n\r\n return (\r\n <Wrapper onBlur={onBlur}>\r\n <ChipInputContainer\r\n data-testid=\"chip-input-container\"\r\n ref={containerRef}\r\n onKeyDown={handleContainerKeyDown}\r\n onClick={() => !disabled && inputRef.current?.focus()}\r\n className={cls}>\r\n <ChipInputContentContainer>\r\n {items?.map((chip: ChipItem, index: number) => (\r\n <InputChip\r\n key={`chip_${index}`}\r\n icon={chip?.icon}\r\n size={size}\r\n disabled={chip.disabled || disabled}\r\n variant={chip.variant || States.Default}\r\n text={chip.label}\r\n onRemove={(e) => handleItemRemove(e, chip, index)}\r\n />\r\n ))}\r\n <ChipInputBoundItems>\r\n <ChipInputEl\r\n ref={inputRef}\r\n type=\"text\"\r\n id={inputId}\r\n required={required}\r\n tabIndex={disabled ? -1 : 0}\r\n value={inputValue}\r\n onChange={(e) => onInputValueChange(e.target.value)}\r\n onKeyDown={handleInputKeyDown}\r\n placeholder={items?.length === 0 ? placeholder : altPlaceholder || ''}\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n onActivationChange && onActivationChange(true);\r\n }}\r\n {...rest}\r\n />\r\n {inputValue && !disabled && (\r\n <IconButton\r\n id={`clear-btn-${inputId}`}\r\n dataTestId={`clear-btn-${inputId}`}\r\n action={handleInputClear}\r\n ref={(ref) => {\r\n ref?.scrollIntoView({\r\n block: 'nearest',\r\n inline: 'nearest',\r\n });\r\n }}\r\n useTransparentBackground={true}\r\n shape={'circular'}\r\n style={{marginLeft: '-8px'}}\r\n focusOnClick={true}\r\n variant={'secondary'}>\r\n <SystemIcons.Clear/>\r\n </IconButton>\r\n )}\r\n\r\n {loading && (\r\n <Loading className={size}>\r\n <LoadingIndicator size={Size.Small} color={COLORS.generateToken({componentType:'icon',defaultVariant:'subtle'}, theme)}/>\r\n </Loading>\r\n )}\r\n </ChipInputBoundItems>\r\n </ChipInputContentContainer>\r\n </ChipInputContainer>\r\n {validationMessage && (\r\n <ErrorMessage>\r\n <SystemIcons.TechnicalWarning color={COLORS.getColor('critical_400', theme)}/>\r\n <span>{validationMessage}</span>\r\n </ErrorMessage>\r\n )}\r\n </Wrapper>\r\n );\r\n },\r\n);\r\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAQA,IAAAK,iBAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AAAqC,IAAAW,WAAA,GAAAX,OAAA;AAAA,MAAAY,SAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,C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A,CAAAH,UAAA;EACZ7E,UAAU,EAAA2E,UAAA,CAAArJ,OAAA,CAAAsJ,MAAA,CAAAC,UAAA;EACVhF,kBAAkB,EAAA8E,UAAA,CAAArJ,OAAA,CAAA0J,IAAA,CAAAH,UAAA;EAClB/E,cAAc,EAAA6E,UAAA,CAAArJ,OAAA,CAAA0J,IAAA,CAAAH,UAAA;EACd9E,kBAAkB,EAAA4E,UAAA,CAAArJ,OAAA,CAAA0J;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"ChipInputField.cjs","names":["_react","_interopRequireDefault","require","_types","_Chips","_InputFields","_styles","_styledComponents","_interopRequireWildcard","_LoadingIndicator","_common","_Button","_icons","_jsxRuntime","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","Wrapper","styled","div","Loading","ChipInputBoundItems","exports","ChipInputContentContainer","scrollBarStyling","Size","Small","ChipInputEl","input","ComponentMStyling","ComponentTextStyle","Regular","props","COLORS","getColor","theme","Italic","ChipInputContainer","ComponentSStyling","focusStyles","ChipInputField","React","forwardRef","_ref","ref","inputId","items","disabled","placeholder","altPlaceholder","multiLine","size","Medium","validationMessage","loading","onRemoveItem","onInputValueChange","onInputKeyDown","onActivationChange","inputValue","required","onBlur","rest","_objectWithoutProperties2","useTheme","containerRef","useRef","inputRef","useFocusVisibleRef","useImperativeHandle","current","useEffect","document","activeElement","scrollIntoView","block","inline","handleInputKeyDown","key","value","repeat","handleItemRemove","event","item","index","focus","focusVisible","detail","handleInputClear","handleContainerKeyDown","querySelectorAll","currentIndex","Array","from","indexOf","target","direction","cls","jsxs","children","jsx","onKeyDown","onClick","className","map","chip","InputChip","icon","variant","States","Default","text","label","onRemove","type","id","tabIndex","onChange","stopPropagation","IconButton","dataTestId","action","useTransparentBackground","shape","style","marginLeft","focusOnClick","SystemIcons","Clear","LoadingIndicator","color","ErrorMessage","TechnicalWarning","propTypes","_propTypes","string","isRequired","array","bool","func"],"sources":["../../src/ChipsInput/ChipInputField.tsx"],"sourcesContent":["import React from 'react';\r\nimport {ChipItem} from './ChipInputTypes';\r\nimport {Size, States} from '../types';\r\nimport {InputChip} from '../Chips';\r\nimport {ErrorMessage} from '../InputFields';\r\nimport {\r\n COLORS,\r\n ComponentMStyling,\r\n ComponentSStyling,\r\n ComponentTextStyle,\r\n focusStyles,\r\n scrollBarStyling\r\n} from '../styles';\r\nimport styled, { useTheme } from 'styled-components';\r\nimport {LoadingIndicator} from '../LoadingIndicator';\r\nimport {useFocusVisibleRef} from '../common';\r\nimport {IconButton} from '../Button';\r\nimport {SystemIcons} from '../icons';\r\n\r\nconst Wrapper = styled.div`\r\n position: relative;\r\n`;\r\n\r\nconst Loading = styled.div`\r\n height: 20px;\r\n width: 20px;\r\n`;\r\n\r\nexport const ChipInputBoundItems = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n gap: 8px;\r\n flex: 1;\r\n min-width: 40px;\r\n`;\r\n\r\nexport const ChipInputContentContainer = styled.div`\r\n width: 100%;\r\n background: transparent;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n column-gap: 8px;\r\n margin-right: 6px;\r\n padding-right: 10px;\r\n padding-left: 16px;\r\n flex-wrap: nowrap;\r\n overflow-x: scroll;\r\n min-height: 48px;\r\n\r\n ${scrollBarStyling(Size.Small)}\r\n ::-webkit-scrollbar:horizontal {\r\n display: none;\r\n }\r\n\r\n .action-right:focus,\r\n button:focus {\r\n outline-offset: -4px !important;\r\n }\r\n`;\r\n\r\nexport const ChipInputEl = styled.input`\r\n border: none;\r\n outline: none;\r\n\r\n height: 40px;\r\n min-width: 40px;\r\n display: inline-flex;\r\n flex: 1;\r\n background: transparent;\r\n\r\n ${ComponentMStyling(ComponentTextStyle.Regular, null)}\r\n color: ${props => COLORS.getColor('black', props.theme)} !important;\r\n\r\n &::placeholder {\r\n ${props => ComponentMStyling(ComponentTextStyle.Italic, COLORS.getColor('neutral_600', props.theme))}\r\n }\r\n`;\r\n\r\nexport const ChipInputContainer = styled.div`\r\n width: 100%;\r\n height: auto;\r\n border-radius: 4px;\r\n margin-bottom: 4px;\r\n box-shadow: inset 0 0 0 1px ${props => COLORS.getColor('neutral_400', props.theme)};\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n box-sizing: border-box;\r\n cursor: text;\r\n outline: none;\r\n display: flex;\r\n align-items: center;\r\n\r\n ${props => ComponentMStyling(ComponentTextStyle.Regular, COLORS.getColor('black', props.theme))}\r\n &.small {\r\n padding: 0;\r\n min-height: 48px;\r\n\r\n ${ChipInputEl}::placeholder {\r\n ${props => ComponentSStyling(ComponentTextStyle.Italic, COLORS.getColor('neutral_600', props.theme))}\r\n }\r\n }\r\n\r\n &.medium {\r\n padding: 4px 0;\r\n min-height: 56px;\r\n\r\n ${ChipInputEl}::placeholder {\r\n ${props => ComponentMStyling(ComponentTextStyle.Italic, COLORS.getColor('neutral_600', props.theme))}\r\n }\r\n }\r\n\r\n &.multiline.medium {\r\n ${ChipInputContentContainer} {\r\n max-height: calc(48px * 3);\r\n flex-wrap: wrap;\r\n overflow-y: auto;\r\n overflow-x: unset;\r\n }\r\n }\r\n\r\n &.focus-visible-within,\r\n &:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &:hover {\r\n box-shadow: inset 0 0 0 2px ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n &:focus-within {\r\n box-shadow: inset 0 0 0 2px ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n &.invalid,\r\n &.invalid:hover,\r\n &.invalid:focus {\r\n box-shadow: inset 0 0 0 2px ${props => COLORS.getColor('critical_500', props.theme)};\r\n }\r\n\r\n &.disabled {\r\n ${ChipInputContentContainer} {\r\n pointer-events: none;\r\n }\r\n\r\n cursor: not-allowed;\r\n box-shadow: inset 0 0 0 1px ${props => COLORS.getColor('neutral_100', props.theme)};\r\n outline: none;\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)} !important;\r\n }\r\n`;\r\n\r\nexport interface ChipInputFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'id' | 'required' | 'tabIndex' | 'value' | 'onChange' | 'onKeyDown' | 'placeholder' | 'onClick' | 'disabled' | 'size'> {\r\n inputId: string;\r\n items: ChipItem[];\r\n disabled?: boolean;\r\n placeholder?: string;\r\n altPlaceholder?: string;\r\n multiLine?: boolean;\r\n size?: Size.Large | Size.Medium | Size.Small;\r\n loading?: boolean;\r\n required?: boolean;\r\n\r\n validationMessage?: string;\r\n\r\n onRemoveItem: (item: ChipItem, index: number) => void;\r\n inputValue: string;\r\n onInputValueChange: (value: string) => void;\r\n onInputKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;\r\n onActivationChange?: (active: boolean) => void;\r\n}\r\n\r\nexport const ChipInputField = React.forwardRef<HTMLInputElement, ChipInputFieldProps>(\r\n (\r\n {\r\n inputId,\r\n items,\r\n disabled = false,\r\n placeholder,\r\n altPlaceholder,\r\n multiLine = true,\r\n size = Size.Medium,\r\n validationMessage,\r\n loading,\r\n onRemoveItem,\r\n onInputValueChange,\r\n onInputKeyDown,\r\n onActivationChange,\r\n inputValue,\r\n required,\r\n onBlur,\r\n ...rest\r\n },\r\n ref,\r\n ) => {\r\n const theme = useTheme();\r\n const containerRef = React.useRef<HTMLDivElement>(null);\r\n const inputRef = useFocusVisibleRef([containerRef]);\r\n \r\n React.useImperativeHandle(ref, () => inputRef.current, [inputRef])\r\n\r\n /**\r\n * Scroll container to last item on change\r\n * */\r\n React.useEffect(() => {\r\n if (inputRef.current && document.activeElement === inputRef.current) {\r\n inputRef.current.scrollIntoView({\r\n block: 'nearest',\r\n inline: 'nearest',\r\n });\r\n }\r\n }, [containerRef, inputRef, items]);\r\n\r\n /**\r\n * Remove last cheap on backspace\r\n * */\r\n const handleInputKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n if (e.key === 'Backspace' && !inputRef.current?.value && !e.repeat && items.length > 0) {\r\n onRemoveItem(items[items.length - 1], items.length - 1);\r\n } else {\r\n onInputKeyDown(e);\r\n }\r\n };\r\n\r\n const handleItemRemove = (event: any, item: ChipItem, index: number) => {\r\n onRemoveItem(item, index);\r\n inputRef.current?.focus({focusVisible: event.detail !== 1} as any);\r\n };\r\n\r\n const handleInputClear = (e: any) => {\r\n onInputValueChange('');\r\n inputRef.current?.focus({focusVisible: e?.detail !== 1} as any);\r\n };\r\n\r\n const handleContainerKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\r\n if (!containerRef.current || (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight')) return;\r\n\r\n const items = containerRef.current.querySelectorAll('[tabindex=\"0\"]') as NodeListOf<HTMLElement>;\r\n const currentIndex = Array.from(items).indexOf(e.target as any);\r\n const direction = e.key === 'ArrowLeft' ? -1 : 1;\r\n const item = items[currentIndex + direction];\r\n item?.focus({focusVisible: true} as any);\r\n\r\n onActivationChange && onActivationChange(false);\r\n };\r\n\r\n const cls = `${multiLine ? 'multiline' : ''} ${validationMessage ? 'invalid' : ''} ${size} ${loading ? 'loading' : ''} ${disabled ? 'disabled' : ''}`;\r\n\r\n return (\r\n <Wrapper onBlur={onBlur}>\r\n <ChipInputContainer\r\n data-testid=\"chip-input-container\"\r\n ref={containerRef}\r\n onKeyDown={handleContainerKeyDown}\r\n onClick={() => !disabled && inputRef.current?.focus()}\r\n className={cls}>\r\n <ChipInputContentContainer>\r\n {items?.map((chip: ChipItem, index: number) => (\r\n <InputChip\r\n key={`chip_${index}`}\r\n icon={chip?.icon}\r\n size={size}\r\n disabled={chip.disabled || disabled}\r\n variant={chip.variant || States.Default}\r\n text={chip.label}\r\n onRemove={(e) => handleItemRemove(e, chip, index)}\r\n />\r\n ))}\r\n <ChipInputBoundItems>\r\n <ChipInputEl\r\n ref={inputRef}\r\n type=\"text\"\r\n id={inputId}\r\n required={required}\r\n tabIndex={disabled ? -1 : 0}\r\n value={inputValue}\r\n onChange={(e) => onInputValueChange(e.target.value)}\r\n onKeyDown={handleInputKeyDown}\r\n placeholder={items?.length === 0 ? placeholder : altPlaceholder || ''}\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n onActivationChange && onActivationChange(true);\r\n }}\r\n {...rest}\r\n />\r\n {inputValue && !disabled && (\r\n <IconButton\r\n id={`clear-btn-${inputId}`}\r\n dataTestId={`clear-btn-${inputId}`}\r\n action={handleInputClear}\r\n ref={(ref) => {\r\n ref?.scrollIntoView({\r\n block: 'nearest',\r\n inline: 'nearest',\r\n });\r\n }}\r\n useTransparentBackground={true}\r\n shape={'circular'}\r\n style={{marginLeft: '-8px'}}\r\n focusOnClick={true}\r\n variant={'secondary'}>\r\n <SystemIcons.Clear/>\r\n </IconButton>\r\n )}\r\n\r\n {loading && (\r\n <Loading className={size}>\r\n <LoadingIndicator size={Size.Small} color={COLORS.getColor('neutral_600', theme)}/>\r\n </Loading>\r\n )}\r\n </ChipInputBoundItems>\r\n </ChipInputContentContainer>\r\n </ChipInputContainer>\r\n {validationMessage && (\r\n <ErrorMessage>\r\n <SystemIcons.TechnicalWarning color={COLORS.getColor('critical_400', theme)}/>\r\n <span>{validationMessage}</span>\r\n </ErrorMessage>\r\n )}\r\n </Wrapper>\r\n );\r\n },\r\n);\r\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAQA,IAAAK,iBAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA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