@drivy/cobalt 1.5.0 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (733) hide show
  1. package/cjs/tokens/index.js +0 -3
  2. package/cjs/tokens/index.js.map +1 -1
  3. package/cjs/tokens/palette.js +279 -148
  4. package/cjs/tokens/palette.js.map +1 -1
  5. package/cjs/tokens/theme.js +186 -336
  6. package/cjs/tokens/theme.js.map +1 -1
  7. package/components/Accordion/ToggleIcon.js +1 -1
  8. package/components/Accordion/ToggleIcon.js.map +1 -1
  9. package/components/Alerter/index.js +1 -1
  10. package/components/Alerter/index.js.map +1 -1
  11. package/components/Calendar/CalendarRangePicker/DayTooltip.js +1 -1
  12. package/components/Calendar/CalendarRangePicker/DayTooltip.js.map +1 -1
  13. package/components/Callout/index.js +1 -1
  14. package/components/Callout/index.js.map +1 -1
  15. package/components/ContainedIcon/index.js +1 -1
  16. package/components/ContainedIcon/index.js.map +1 -1
  17. package/components/Form/Autocomplete/index.js +2 -2
  18. package/components/Form/Autocomplete/index.js.map +1 -1
  19. package/components/Form/Hint.js +6 -9
  20. package/components/Form/Hint.js.map +1 -1
  21. package/components/Form/Slider.js +40 -3
  22. package/components/Form/Slider.js.map +1 -1
  23. package/components/Icon/__generated__/AccountDetailsIcon.js +2 -2
  24. package/components/Icon/__generated__/AccountDetailsIcon.js.map +1 -1
  25. package/components/Icon/__generated__/AddPictureIcon.js +2 -2
  26. package/components/Icon/__generated__/AddPictureIcon.js.map +1 -1
  27. package/components/Icon/__generated__/AirConditioningIcon.js +2 -2
  28. package/components/Icon/__generated__/AirConditioningIcon.js.map +1 -1
  29. package/components/Icon/__generated__/AirportIcon.js +2 -2
  30. package/components/Icon/__generated__/AirportIcon.js.map +1 -1
  31. package/components/Icon/__generated__/AndroidIcon.js +2 -2
  32. package/components/Icon/__generated__/AndroidIcon.js.map +1 -1
  33. package/components/Icon/__generated__/AntiqueIcon.js +2 -2
  34. package/components/Icon/__generated__/AntiqueIcon.js.map +1 -1
  35. package/components/Icon/__generated__/ArrowLeftCircleFilledIcon.js +2 -2
  36. package/components/Icon/__generated__/ArrowLeftCircleFilledIcon.js.map +1 -1
  37. package/components/Icon/__generated__/ArrowLeftIcon.js +2 -2
  38. package/components/Icon/__generated__/ArrowLeftIcon.js.map +1 -1
  39. package/components/Icon/__generated__/ArrowRightCircleFilledIcon.js +2 -2
  40. package/components/Icon/__generated__/ArrowRightCircleFilledIcon.js.map +1 -1
  41. package/components/Icon/__generated__/ArrowRightCircleIcon.js +2 -2
  42. package/components/Icon/__generated__/ArrowRightCircleIcon.js.map +1 -1
  43. package/components/Icon/__generated__/ArrowRightIcon.js +2 -2
  44. package/components/Icon/__generated__/ArrowRightIcon.js.map +1 -1
  45. package/components/Icon/__generated__/AudioInputIcon.js +2 -2
  46. package/components/Icon/__generated__/AudioInputIcon.js.map +1 -1
  47. package/components/Icon/__generated__/BabySeatIcon.js +2 -2
  48. package/components/Icon/__generated__/BabySeatIcon.js.map +1 -1
  49. package/components/Icon/__generated__/BankIcon.js +2 -2
  50. package/components/Icon/__generated__/BankIcon.js.map +1 -1
  51. package/components/Icon/__generated__/BatteryIcon.js +2 -2
  52. package/components/Icon/__generated__/BatteryIcon.js.map +1 -1
  53. package/components/Icon/__generated__/BellIcon.js +2 -2
  54. package/components/Icon/__generated__/BellIcon.js.map +1 -1
  55. package/components/Icon/__generated__/BikeRackIcon.js +2 -2
  56. package/components/Icon/__generated__/BikeRackIcon.js.map +1 -1
  57. package/components/Icon/__generated__/BinIcon.js +2 -2
  58. package/components/Icon/__generated__/BinIcon.js.map +1 -1
  59. package/components/Icon/__generated__/BluetoothIcon.js +2 -2
  60. package/components/Icon/__generated__/BluetoothIcon.js.map +1 -1
  61. package/components/Icon/__generated__/BriefcaseIcon.js +2 -2
  62. package/components/Icon/__generated__/BriefcaseIcon.js.map +1 -1
  63. package/components/Icon/__generated__/BulbIcon.js +2 -2
  64. package/components/Icon/__generated__/BulbIcon.js.map +1 -1
  65. package/components/Icon/__generated__/CableIcon.js +2 -2
  66. package/components/Icon/__generated__/CableIcon.js.map +1 -1
  67. package/components/Icon/__generated__/CabrioletIcon.js +2 -2
  68. package/components/Icon/__generated__/CabrioletIcon.js.map +1 -1
  69. package/components/Icon/__generated__/CalendarCheckIcon.js +2 -2
  70. package/components/Icon/__generated__/CalendarCheckIcon.js.map +1 -1
  71. package/components/Icon/__generated__/CalendarClockIcon.js +2 -2
  72. package/components/Icon/__generated__/CalendarClockIcon.js.map +1 -1
  73. package/components/Icon/__generated__/CalendarEndIcon.js +2 -2
  74. package/components/Icon/__generated__/CalendarEndIcon.js.map +1 -1
  75. package/components/Icon/__generated__/CalendarIcon.js +2 -2
  76. package/components/Icon/__generated__/CalendarIcon.js.map +1 -1
  77. package/components/Icon/__generated__/CalendarStartIcon.js +2 -2
  78. package/components/Icon/__generated__/CalendarStartIcon.js.map +1 -1
  79. package/components/Icon/__generated__/CameraAddIcon.js +2 -2
  80. package/components/Icon/__generated__/CameraAddIcon.js.map +1 -1
  81. package/components/Icon/__generated__/CameraIcon.js +2 -2
  82. package/components/Icon/__generated__/CameraIcon.js.map +1 -1
  83. package/components/Icon/__generated__/CampervanIcon.js +2 -2
  84. package/components/Icon/__generated__/CampervanIcon.js.map +1 -1
  85. package/components/Icon/__generated__/CarAddIcon.js +2 -2
  86. package/components/Icon/__generated__/CarAddIcon.js.map +1 -1
  87. package/components/Icon/__generated__/CarCheckIcon.js +2 -2
  88. package/components/Icon/__generated__/CarCheckIcon.js.map +1 -1
  89. package/components/Icon/__generated__/CarDamagesIcon.js +2 -2
  90. package/components/Icon/__generated__/CarDamagesIcon.js.map +1 -1
  91. package/components/Icon/__generated__/CarDrivyOpenIcon.js +2 -2
  92. package/components/Icon/__generated__/CarDrivyOpenIcon.js.map +1 -1
  93. package/components/Icon/__generated__/CarGroupIcon.js +2 -2
  94. package/components/Icon/__generated__/CarGroupIcon.js.map +1 -1
  95. package/components/Icon/__generated__/CarIcon.js +2 -2
  96. package/components/Icon/__generated__/CarIcon.js.map +1 -1
  97. package/components/Icon/__generated__/CarLockIcon.js +2 -2
  98. package/components/Icon/__generated__/CarLockIcon.js.map +1 -1
  99. package/components/Icon/__generated__/CarPlayIcon.js +2 -2
  100. package/components/Icon/__generated__/CarPlayIcon.js.map +1 -1
  101. package/components/Icon/__generated__/CarReturnIcon.js +2 -2
  102. package/components/Icon/__generated__/CarReturnIcon.js.map +1 -1
  103. package/components/Icon/__generated__/CarSearchIcon.js +2 -2
  104. package/components/Icon/__generated__/CarSearchIcon.js.map +1 -1
  105. package/components/Icon/__generated__/CarTypeAntiqueIcon.js +2 -2
  106. package/components/Icon/__generated__/CarTypeAntiqueIcon.js.map +1 -1
  107. package/components/Icon/__generated__/CarTypeCabrioletIcon.js +2 -2
  108. package/components/Icon/__generated__/CarTypeCabrioletIcon.js.map +1 -1
  109. package/components/Icon/__generated__/CarTypeCampervanIcon.js +2 -2
  110. package/components/Icon/__generated__/CarTypeCampervanIcon.js.map +1 -1
  111. package/components/Icon/__generated__/CarTypeCityIcon.js +2 -2
  112. package/components/Icon/__generated__/CarTypeCityIcon.js.map +1 -1
  113. package/components/Icon/__generated__/CarTypeConvertibleIcon.js +2 -2
  114. package/components/Icon/__generated__/CarTypeConvertibleIcon.js.map +1 -1
  115. package/components/Icon/__generated__/CarTypeCoupeIcon.js +2 -2
  116. package/components/Icon/__generated__/CarTypeCoupeIcon.js.map +1 -1
  117. package/components/Icon/__generated__/CarTypeFamilyIcon.js +2 -2
  118. package/components/Icon/__generated__/CarTypeFamilyIcon.js.map +1 -1
  119. package/components/Icon/__generated__/CarTypeFourFourIcon.js +2 -2
  120. package/components/Icon/__generated__/CarTypeFourFourIcon.js.map +1 -1
  121. package/components/Icon/__generated__/CarTypeMinibusIcon.js +2 -2
  122. package/components/Icon/__generated__/CarTypeMinibusIcon.js.map +1 -1
  123. package/components/Icon/__generated__/CarTypeSedanIcon.js +2 -2
  124. package/components/Icon/__generated__/CarTypeSedanIcon.js.map +1 -1
  125. package/components/Icon/__generated__/CarTypeUtilityIcon.js +2 -2
  126. package/components/Icon/__generated__/CarTypeUtilityIcon.js.map +1 -1
  127. package/components/Icon/__generated__/CardIcon.js +2 -2
  128. package/components/Icon/__generated__/CardIcon.js.map +1 -1
  129. package/components/Icon/__generated__/CdPlayerIcon.js +2 -2
  130. package/components/Icon/__generated__/CdPlayerIcon.js.map +1 -1
  131. package/components/Icon/__generated__/CertificateIcon.js +2 -2
  132. package/components/Icon/__generated__/CertificateIcon.js.map +1 -1
  133. package/components/Icon/__generated__/ChainsIcon.js +2 -2
  134. package/components/Icon/__generated__/ChainsIcon.js.map +1 -1
  135. package/components/Icon/__generated__/CheckCircleFilledIcon.js +2 -2
  136. package/components/Icon/__generated__/CheckCircleFilledIcon.js.map +1 -1
  137. package/components/Icon/__generated__/CheckCircleIcon.js +2 -2
  138. package/components/Icon/__generated__/CheckCircleIcon.js.map +1 -1
  139. package/components/Icon/__generated__/CheckIcon.js +2 -2
  140. package/components/Icon/__generated__/CheckIcon.js.map +1 -1
  141. package/components/Icon/__generated__/ChecklistIcon.js +2 -2
  142. package/components/Icon/__generated__/ChecklistIcon.js.map +1 -1
  143. package/components/Icon/__generated__/ChevronDownIcon.js +2 -2
  144. package/components/Icon/__generated__/ChevronDownIcon.js.map +1 -1
  145. package/components/Icon/__generated__/ChevronLeftIcon.js +2 -2
  146. package/components/Icon/__generated__/ChevronLeftIcon.js.map +1 -1
  147. package/components/Icon/__generated__/ChevronRightIcon.js +2 -2
  148. package/components/Icon/__generated__/ChevronRightIcon.js.map +1 -1
  149. package/components/Icon/__generated__/ChevronUpIcon.js +2 -2
  150. package/components/Icon/__generated__/ChevronUpIcon.js.map +1 -1
  151. package/components/Icon/__generated__/CircledArrowLeftIcon.js +2 -2
  152. package/components/Icon/__generated__/CircledArrowLeftIcon.js.map +1 -1
  153. package/components/Icon/__generated__/CircledArrowRightIcon.js +2 -2
  154. package/components/Icon/__generated__/CircledArrowRightIcon.js.map +1 -1
  155. package/components/Icon/__generated__/CityIcon.js +2 -2
  156. package/components/Icon/__generated__/CityIcon.js.map +1 -1
  157. package/components/Icon/__generated__/CleaningIcon.js +2 -2
  158. package/components/Icon/__generated__/CleaningIcon.js.map +1 -1
  159. package/components/Icon/__generated__/ClockAlertIcon.js +2 -2
  160. package/components/Icon/__generated__/ClockAlertIcon.js.map +1 -1
  161. package/components/Icon/__generated__/ClockBackwardsIcon.js +2 -2
  162. package/components/Icon/__generated__/ClockBackwardsIcon.js.map +1 -1
  163. package/components/Icon/__generated__/ClockForwardsIcon.js +2 -2
  164. package/components/Icon/__generated__/ClockForwardsIcon.js.map +1 -1
  165. package/components/Icon/__generated__/ClockIcon.js +2 -2
  166. package/components/Icon/__generated__/ClockIcon.js.map +1 -1
  167. package/components/Icon/__generated__/CloseCircleFilledIcon.js +2 -2
  168. package/components/Icon/__generated__/CloseCircleFilledIcon.js.map +1 -1
  169. package/components/Icon/__generated__/CloseIcon.js +2 -2
  170. package/components/Icon/__generated__/CloseIcon.js.map +1 -1
  171. package/components/Icon/__generated__/CollapseIcon.js +2 -2
  172. package/components/Icon/__generated__/CollapseIcon.js.map +1 -1
  173. package/components/Icon/__generated__/ConnectCarIcon.js +2 -2
  174. package/components/Icon/__generated__/ConnectCarIcon.js.map +1 -1
  175. package/components/Icon/__generated__/ContactMailIcon.js +2 -2
  176. package/components/Icon/__generated__/ContactMailIcon.js.map +1 -1
  177. package/components/Icon/__generated__/ContactPhoneIcon.js +2 -2
  178. package/components/Icon/__generated__/ContactPhoneIcon.js.map +1 -1
  179. package/components/Icon/__generated__/ContextualPaperclipIcon.js +2 -2
  180. package/components/Icon/__generated__/ContextualPaperclipIcon.js.map +1 -1
  181. package/components/Icon/__generated__/ContextualQuestionIcon.js +2 -2
  182. package/components/Icon/__generated__/ContextualQuestionIcon.js.map +1 -1
  183. package/components/Icon/__generated__/ContextualWarningCircleFilledIcon.js +2 -2
  184. package/components/Icon/__generated__/ContextualWarningCircleFilledIcon.js.map +1 -1
  185. package/components/Icon/__generated__/ContextualWarningCircleIcon.js +2 -2
  186. package/components/Icon/__generated__/ContextualWarningCircleIcon.js.map +1 -1
  187. package/components/Icon/__generated__/ContractIcon.js +2 -2
  188. package/components/Icon/__generated__/ContractIcon.js.map +1 -1
  189. package/components/Icon/__generated__/ConvertibleIcon.js +2 -2
  190. package/components/Icon/__generated__/ConvertibleIcon.js.map +1 -1
  191. package/components/Icon/__generated__/CopyIcon.js +2 -2
  192. package/components/Icon/__generated__/CopyIcon.js.map +1 -1
  193. package/components/Icon/__generated__/CoupeIcon.js +2 -2
  194. package/components/Icon/__generated__/CoupeIcon.js.map +1 -1
  195. package/components/Icon/__generated__/CreditCardAddIcon.js +2 -2
  196. package/components/Icon/__generated__/CreditCardAddIcon.js.map +1 -1
  197. package/components/Icon/__generated__/CreditCardErrorIcon.js +2 -2
  198. package/components/Icon/__generated__/CreditCardErrorIcon.js.map +1 -1
  199. package/components/Icon/__generated__/CreditCardIcon.js +2 -2
  200. package/components/Icon/__generated__/CreditCardIcon.js.map +1 -1
  201. package/components/Icon/__generated__/CruiseControlIcon.js +2 -2
  202. package/components/Icon/__generated__/CruiseControlIcon.js.map +1 -1
  203. package/components/Icon/__generated__/DashcamIcon.js +2 -2
  204. package/components/Icon/__generated__/DashcamIcon.js.map +1 -1
  205. package/components/Icon/__generated__/DirectionsIcon.js +2 -2
  206. package/components/Icon/__generated__/DirectionsIcon.js.map +1 -1
  207. package/components/Icon/__generated__/DocumentIcon.js +2 -2
  208. package/components/Icon/__generated__/DocumentIcon.js.map +1 -1
  209. package/components/Icon/__generated__/DotHorizontalIcon.js +2 -2
  210. package/components/Icon/__generated__/DotHorizontalIcon.js.map +1 -1
  211. package/components/Icon/__generated__/DotVerticalIcon.js +2 -2
  212. package/components/Icon/__generated__/DotVerticalIcon.js.map +1 -1
  213. package/components/Icon/__generated__/DotsHorizontalIcon.js +2 -2
  214. package/components/Icon/__generated__/DotsHorizontalIcon.js.map +1 -1
  215. package/components/Icon/__generated__/DotsVerticalIcon.js +2 -2
  216. package/components/Icon/__generated__/DotsVerticalIcon.js.map +1 -1
  217. package/components/Icon/__generated__/DownloadIcon.js +2 -2
  218. package/components/Icon/__generated__/DownloadIcon.js.map +1 -1
  219. package/components/Icon/__generated__/EarningIcon.js +2 -2
  220. package/components/Icon/__generated__/EarningIcon.js.map +1 -1
  221. package/components/Icon/__generated__/EarthIcon.js +2 -2
  222. package/components/Icon/__generated__/EarthIcon.js.map +1 -1
  223. package/components/Icon/__generated__/EditIcon.js +2 -2
  224. package/components/Icon/__generated__/EditIcon.js.map +1 -1
  225. package/components/Icon/__generated__/ElectricIcon.js +2 -2
  226. package/components/Icon/__generated__/ElectricIcon.js.map +1 -1
  227. package/components/Icon/__generated__/EvBatteryIcon.js +2 -2
  228. package/components/Icon/__generated__/EvBatteryIcon.js.map +1 -1
  229. package/components/Icon/__generated__/EvCableIcon.js +2 -2
  230. package/components/Icon/__generated__/EvCableIcon.js.map +1 -1
  231. package/components/Icon/__generated__/EvChargerIcon.js +2 -2
  232. package/components/Icon/__generated__/EvChargerIcon.js.map +1 -1
  233. package/components/Icon/__generated__/ExpandIcon.js +2 -2
  234. package/components/Icon/__generated__/ExpandIcon.js.map +1 -1
  235. package/components/Icon/__generated__/ExternalLinkIcon.js +2 -2
  236. package/components/Icon/__generated__/ExternalLinkIcon.js.map +1 -1
  237. package/components/Icon/__generated__/EyeClosedIcon.js +2 -2
  238. package/components/Icon/__generated__/EyeClosedIcon.js.map +1 -1
  239. package/components/Icon/__generated__/EyeIcon.js +2 -2
  240. package/components/Icon/__generated__/EyeIcon.js.map +1 -1
  241. package/components/Icon/__generated__/EyeOpenedIcon.js +2 -2
  242. package/components/Icon/__generated__/EyeOpenedIcon.js.map +1 -1
  243. package/components/Icon/__generated__/FaceRecognitionIcon.js +2 -2
  244. package/components/Icon/__generated__/FaceRecognitionIcon.js.map +1 -1
  245. package/components/Icon/__generated__/FacebookIcon.js +2 -2
  246. package/components/Icon/__generated__/FacebookIcon.js.map +1 -1
  247. package/components/Icon/__generated__/FamilyIcon.js +2 -2
  248. package/components/Icon/__generated__/FamilyIcon.js.map +1 -1
  249. package/components/Icon/__generated__/FileFilledIcon.js +2 -2
  250. package/components/Icon/__generated__/FileFilledIcon.js.map +1 -1
  251. package/components/Icon/__generated__/FilepdfIcon.js +2 -2
  252. package/components/Icon/__generated__/FilepdfIcon.js.map +1 -1
  253. package/components/Icon/__generated__/FilexlsIcon.js +2 -2
  254. package/components/Icon/__generated__/FilexlsIcon.js.map +1 -1
  255. package/components/Icon/__generated__/FilterIcon.js +2 -2
  256. package/components/Icon/__generated__/FilterIcon.js.map +1 -1
  257. package/components/Icon/__generated__/FiltersIcon.js +2 -2
  258. package/components/Icon/__generated__/FiltersIcon.js.map +1 -1
  259. package/components/Icon/__generated__/FlagIcon.js +2 -2
  260. package/components/Icon/__generated__/FlagIcon.js.map +1 -1
  261. package/components/Icon/__generated__/FourByFourIcon.js +2 -2
  262. package/components/Icon/__generated__/FourByFourIcon.js.map +1 -1
  263. package/components/Icon/__generated__/FourWheelDriveIcon.js +2 -2
  264. package/components/Icon/__generated__/FourWheelDriveIcon.js.map +1 -1
  265. package/components/Icon/__generated__/FuelTankIcon.js +2 -2
  266. package/components/Icon/__generated__/FuelTankIcon.js.map +1 -1
  267. package/components/Icon/__generated__/GeolocationIcon.js +2 -2
  268. package/components/Icon/__generated__/GeolocationIcon.js.map +1 -1
  269. package/components/Icon/__generated__/GiftIcon.js +2 -2
  270. package/components/Icon/__generated__/GiftIcon.js.map +1 -1
  271. package/components/Icon/__generated__/GpsIcon.js +2 -2
  272. package/components/Icon/__generated__/GpsIcon.js.map +1 -1
  273. package/components/Icon/__generated__/GraphUpIcon.js +2 -2
  274. package/components/Icon/__generated__/GraphUpIcon.js.map +1 -1
  275. package/components/Icon/__generated__/HealingIcon.js +2 -2
  276. package/components/Icon/__generated__/HealingIcon.js.map +1 -1
  277. package/components/Icon/__generated__/HeartIcon.js +2 -2
  278. package/components/Icon/__generated__/HeartIcon.js.map +1 -1
  279. package/components/Icon/__generated__/HitchIcon.js +2 -2
  280. package/components/Icon/__generated__/HitchIcon.js.map +1 -1
  281. package/components/Icon/__generated__/HomeIcon.js +2 -2
  282. package/components/Icon/__generated__/HomeIcon.js.map +1 -1
  283. package/components/Icon/__generated__/IdCardIcon.js +2 -2
  284. package/components/Icon/__generated__/IdCardIcon.js.map +1 -1
  285. package/components/Icon/__generated__/IncidentIcon.js +2 -2
  286. package/components/Icon/__generated__/IncidentIcon.js.map +1 -1
  287. package/components/Icon/__generated__/InfoCircleFilledIcon.js +2 -2
  288. package/components/Icon/__generated__/InfoCircleFilledIcon.js.map +1 -1
  289. package/components/Icon/__generated__/InfoCircleIcon.js +2 -2
  290. package/components/Icon/__generated__/InfoCircleIcon.js.map +1 -1
  291. package/components/Icon/__generated__/InfoFilledIcon.js +2 -2
  292. package/components/Icon/__generated__/InfoFilledIcon.js.map +1 -1
  293. package/components/Icon/__generated__/InfoIcon.js +2 -2
  294. package/components/Icon/__generated__/InfoIcon.js.map +1 -1
  295. package/components/Icon/__generated__/InstantIcon.js +2 -2
  296. package/components/Icon/__generated__/InstantIcon.js.map +1 -1
  297. package/components/Icon/__generated__/InvoiceIcon.js +2 -2
  298. package/components/Icon/__generated__/InvoiceIcon.js.map +1 -1
  299. package/components/Icon/__generated__/KeyConnectIcon.js +2 -2
  300. package/components/Icon/__generated__/KeyConnectIcon.js.map +1 -1
  301. package/components/Icon/__generated__/KeyIcon.js +2 -2
  302. package/components/Icon/__generated__/KeyIcon.js.map +1 -1
  303. package/components/Icon/__generated__/LicenceCheckIcon.js +2 -2
  304. package/components/Icon/__generated__/LicenceCheckIcon.js.map +1 -1
  305. package/components/Icon/__generated__/LicenceIcon.js +2 -2
  306. package/components/Icon/__generated__/LicenceIcon.js.map +1 -1
  307. package/components/Icon/__generated__/LicencePaperIcon.js +2 -2
  308. package/components/Icon/__generated__/LicencePaperIcon.js.map +1 -1
  309. package/components/Icon/__generated__/LifeBuoyIcon.js +2 -2
  310. package/components/Icon/__generated__/LifeBuoyIcon.js.map +1 -1
  311. package/components/Icon/__generated__/LinkedinIcon.js +2 -2
  312. package/components/Icon/__generated__/LinkedinIcon.js.map +1 -1
  313. package/components/Icon/__generated__/LoadingIcon.js +2 -2
  314. package/components/Icon/__generated__/LoadingIcon.js.map +1 -1
  315. package/components/Icon/__generated__/LocalityIcon.js +2 -2
  316. package/components/Icon/__generated__/LocalityIcon.js.map +1 -1
  317. package/components/Icon/__generated__/LocationIcon.js +2 -2
  318. package/components/Icon/__generated__/LocationIcon.js.map +1 -1
  319. package/components/Icon/__generated__/LocationMapIcon.js +2 -2
  320. package/components/Icon/__generated__/LocationMapIcon.js.map +1 -1
  321. package/components/Icon/__generated__/LocationParkingIcon.js +2 -2
  322. package/components/Icon/__generated__/LocationParkingIcon.js.map +1 -1
  323. package/components/Icon/__generated__/LocationPinIcon.js +2 -2
  324. package/components/Icon/__generated__/LocationPinIcon.js.map +1 -1
  325. package/components/Icon/__generated__/LockCheckIcon.js +2 -2
  326. package/components/Icon/__generated__/LockCheckIcon.js.map +1 -1
  327. package/components/Icon/__generated__/LockedIcon.js +2 -2
  328. package/components/Icon/__generated__/LockedIcon.js.map +1 -1
  329. package/components/Icon/__generated__/LoginIcon.js +2 -2
  330. package/components/Icon/__generated__/LoginIcon.js.map +1 -1
  331. package/components/Icon/__generated__/LogoutIcon.js +2 -2
  332. package/components/Icon/__generated__/LogoutIcon.js.map +1 -1
  333. package/components/Icon/__generated__/MailCheckIcon.js +2 -2
  334. package/components/Icon/__generated__/MailCheckIcon.js.map +1 -1
  335. package/components/Icon/__generated__/MailIcon.js +2 -2
  336. package/components/Icon/__generated__/MailIcon.js.map +1 -1
  337. package/components/Icon/__generated__/MapAltIcon.js +2 -2
  338. package/components/Icon/__generated__/MapAltIcon.js.map +1 -1
  339. package/components/Icon/__generated__/MapIcon.js +2 -2
  340. package/components/Icon/__generated__/MapIcon.js.map +1 -1
  341. package/components/Icon/__generated__/MeetDriverIcon.js +2 -2
  342. package/components/Icon/__generated__/MeetDriverIcon.js.map +1 -1
  343. package/components/Icon/__generated__/MeetOwnerIcon.js +2 -2
  344. package/components/Icon/__generated__/MeetOwnerIcon.js.map +1 -1
  345. package/components/Icon/__generated__/MenuListIcon.js +2 -2
  346. package/components/Icon/__generated__/MenuListIcon.js.map +1 -1
  347. package/components/Icon/__generated__/MessagesIcon.js +2 -2
  348. package/components/Icon/__generated__/MessagesIcon.js.map +1 -1
  349. package/components/Icon/__generated__/MileageIcon.js +2 -2
  350. package/components/Icon/__generated__/MileageIcon.js.map +1 -1
  351. package/components/Icon/__generated__/MinibusIcon.js +2 -2
  352. package/components/Icon/__generated__/MinibusIcon.js.map +1 -1
  353. package/components/Icon/__generated__/MinusCircleFilledIcon.js +2 -2
  354. package/components/Icon/__generated__/MinusCircleFilledIcon.js.map +1 -1
  355. package/components/Icon/__generated__/MinusIcon.js +2 -2
  356. package/components/Icon/__generated__/MinusIcon.js.map +1 -1
  357. package/components/Icon/__generated__/MiscGiftIcon.js +2 -2
  358. package/components/Icon/__generated__/MiscGiftIcon.js.map +1 -1
  359. package/components/Icon/__generated__/NearbyDeviceIcon.js +2 -2
  360. package/components/Icon/__generated__/NearbyDeviceIcon.js.map +1 -1
  361. package/components/Icon/__generated__/NotificationIcon.js +2 -2
  362. package/components/Icon/__generated__/NotificationIcon.js.map +1 -1
  363. package/components/Icon/__generated__/Number1CircleIcon.js +2 -2
  364. package/components/Icon/__generated__/Number1CircleIcon.js.map +1 -1
  365. package/components/Icon/__generated__/Number2CircleIcon.js +2 -2
  366. package/components/Icon/__generated__/Number2CircleIcon.js.map +1 -1
  367. package/components/Icon/__generated__/Number3CircleIcon.js +2 -2
  368. package/components/Icon/__generated__/Number3CircleIcon.js.map +1 -1
  369. package/components/Icon/__generated__/Number4CircleIcon.js +2 -2
  370. package/components/Icon/__generated__/Number4CircleIcon.js.map +1 -1
  371. package/components/Icon/__generated__/Number5CircleIcon.js +2 -2
  372. package/components/Icon/__generated__/Number5CircleIcon.js.map +1 -1
  373. package/components/Icon/__generated__/OkHandIcon.js +2 -2
  374. package/components/Icon/__generated__/OkHandIcon.js.map +1 -1
  375. package/components/Icon/__generated__/OptionAirConditioningIcon.js +2 -2
  376. package/components/Icon/__generated__/OptionAirConditioningIcon.js.map +1 -1
  377. package/components/Icon/__generated__/OptionAndroidAutoIcon.js +2 -2
  378. package/components/Icon/__generated__/OptionAndroidAutoIcon.js.map +1 -1
  379. package/components/Icon/__generated__/OptionAppleCarplayIcon.js +2 -2
  380. package/components/Icon/__generated__/OptionAppleCarplayIcon.js.map +1 -1
  381. package/components/Icon/__generated__/OptionAudioInputIcon.js +2 -2
  382. package/components/Icon/__generated__/OptionAudioInputIcon.js.map +1 -1
  383. package/components/Icon/__generated__/OptionBabySeatIcon.js +2 -2
  384. package/components/Icon/__generated__/OptionBabySeatIcon.js.map +1 -1
  385. package/components/Icon/__generated__/OptionBikeRackIcon.js +2 -2
  386. package/components/Icon/__generated__/OptionBikeRackIcon.js.map +1 -1
  387. package/components/Icon/__generated__/OptionBluetoothAudioIcon.js +2 -2
  388. package/components/Icon/__generated__/OptionBluetoothAudioIcon.js.map +1 -1
  389. package/components/Icon/__generated__/OptionCdPlayerIcon.js +2 -2
  390. package/components/Icon/__generated__/OptionCdPlayerIcon.js.map +1 -1
  391. package/components/Icon/__generated__/OptionChainsIcon.js +2 -2
  392. package/components/Icon/__generated__/OptionChainsIcon.js.map +1 -1
  393. package/components/Icon/__generated__/OptionCruiseControlIcon.js +2 -2
  394. package/components/Icon/__generated__/OptionCruiseControlIcon.js.map +1 -1
  395. package/components/Icon/__generated__/OptionDashcamIcon.js +2 -2
  396. package/components/Icon/__generated__/OptionDashcamIcon.js.map +1 -1
  397. package/components/Icon/__generated__/OptionGpsIcon.js +2 -2
  398. package/components/Icon/__generated__/OptionGpsIcon.js.map +1 -1
  399. package/components/Icon/__generated__/OptionHasTrailerIcon.js +2 -2
  400. package/components/Icon/__generated__/OptionHasTrailerIcon.js.map +1 -1
  401. package/components/Icon/__generated__/OptionHitchIcon.js +2 -2
  402. package/components/Icon/__generated__/OptionHitchIcon.js.map +1 -1
  403. package/components/Icon/__generated__/OptionRoofBoxIcon.js +2 -2
  404. package/components/Icon/__generated__/OptionRoofBoxIcon.js.map +1 -1
  405. package/components/Icon/__generated__/OptionSkiRackIcon.js +2 -2
  406. package/components/Icon/__generated__/OptionSkiRackIcon.js.map +1 -1
  407. package/components/Icon/__generated__/OptionSnowTireIcon.js +2 -2
  408. package/components/Icon/__generated__/OptionSnowTireIcon.js.map +1 -1
  409. package/components/Icon/__generated__/OptionWheelchairAccessibleIcon.js +2 -2
  410. package/components/Icon/__generated__/OptionWheelchairAccessibleIcon.js.map +1 -1
  411. package/components/Icon/__generated__/PaperclipIcon.js +2 -2
  412. package/components/Icon/__generated__/PaperclipIcon.js.map +1 -1
  413. package/components/Icon/__generated__/ParkingIcon.js +2 -2
  414. package/components/Icon/__generated__/ParkingIcon.js.map +1 -1
  415. package/components/Icon/__generated__/PassportIcon.js +2 -2
  416. package/components/Icon/__generated__/PassportIcon.js.map +1 -1
  417. package/components/Icon/__generated__/PaymentsIcon.js +2 -2
  418. package/components/Icon/__generated__/PaymentsIcon.js.map +1 -1
  419. package/components/Icon/__generated__/PencilIcon.js +2 -2
  420. package/components/Icon/__generated__/PencilIcon.js.map +1 -1
  421. package/components/Icon/__generated__/PeopleUserIcon.js +2 -2
  422. package/components/Icon/__generated__/PeopleUserIcon.js.map +1 -1
  423. package/components/Icon/__generated__/PercentageIcon.js +2 -2
  424. package/components/Icon/__generated__/PercentageIcon.js.map +1 -1
  425. package/components/Icon/__generated__/PerformanceIcon.js +2 -2
  426. package/components/Icon/__generated__/PerformanceIcon.js.map +1 -1
  427. package/components/Icon/__generated__/PhoneIcon.js +2 -2
  428. package/components/Icon/__generated__/PhoneIcon.js.map +1 -1
  429. package/components/Icon/__generated__/PhoneLinkIcon.js +2 -2
  430. package/components/Icon/__generated__/PhoneLinkIcon.js.map +1 -1
  431. package/components/Icon/__generated__/PhotosIcon.js +2 -2
  432. package/components/Icon/__generated__/PhotosIcon.js.map +1 -1
  433. package/components/Icon/__generated__/PickupTruckIcon.js +2 -2
  434. package/components/Icon/__generated__/PickupTruckIcon.js.map +1 -1
  435. package/components/Icon/__generated__/PigIcon.js +2 -2
  436. package/components/Icon/__generated__/PigIcon.js.map +1 -1
  437. package/components/Icon/__generated__/PinIcon.js +2 -2
  438. package/components/Icon/__generated__/PinIcon.js.map +1 -1
  439. package/components/Icon/__generated__/PlugIcon.js +2 -2
  440. package/components/Icon/__generated__/PlugIcon.js.map +1 -1
  441. package/components/Icon/__generated__/PlusCircleFilledIcon.js +2 -2
  442. package/components/Icon/__generated__/PlusCircleFilledIcon.js.map +1 -1
  443. package/components/Icon/__generated__/PlusIcon.js +2 -2
  444. package/components/Icon/__generated__/PlusIcon.js.map +1 -1
  445. package/components/Icon/__generated__/PositionIcon.js +2 -2
  446. package/components/Icon/__generated__/PositionIcon.js.map +1 -1
  447. package/components/Icon/__generated__/PricingFlatIcon.js +2 -2
  448. package/components/Icon/__generated__/PricingFlatIcon.js.map +1 -1
  449. package/components/Icon/__generated__/PricingVariableIcon.js +2 -2
  450. package/components/Icon/__generated__/PricingVariableIcon.js.map +1 -1
  451. package/components/Icon/__generated__/ProfilePictureIcon.js +2 -2
  452. package/components/Icon/__generated__/ProfilePictureIcon.js.map +1 -1
  453. package/components/Icon/__generated__/QuestionCircleFilledIcon.js +2 -2
  454. package/components/Icon/__generated__/QuestionCircleFilledIcon.js.map +1 -1
  455. package/components/Icon/__generated__/QuestionCircleIcon.js +2 -2
  456. package/components/Icon/__generated__/QuestionCircleIcon.js.map +1 -1
  457. package/components/Icon/__generated__/QuestionIcon.js +2 -2
  458. package/components/Icon/__generated__/QuestionIcon.js.map +1 -1
  459. package/components/Icon/__generated__/RaceFlagIcon.js +2 -2
  460. package/components/Icon/__generated__/RaceFlagIcon.js.map +1 -1
  461. package/components/Icon/__generated__/RecenterIcon.js +2 -2
  462. package/components/Icon/__generated__/RecenterIcon.js.map +1 -1
  463. package/components/Icon/__generated__/RefreshIcon.js +2 -2
  464. package/components/Icon/__generated__/RefreshIcon.js.map +1 -1
  465. package/components/Icon/__generated__/ReorderIcon.js +2 -2
  466. package/components/Icon/__generated__/ReorderIcon.js.map +1 -1
  467. package/components/Icon/__generated__/ReplacementCarIcon.js +2 -2
  468. package/components/Icon/__generated__/ReplacementCarIcon.js.map +1 -1
  469. package/components/Icon/__generated__/ReplyIcon.js +2 -2
  470. package/components/Icon/__generated__/ReplyIcon.js.map +1 -1
  471. package/components/Icon/__generated__/ResetIcon.js +2 -2
  472. package/components/Icon/__generated__/ResetIcon.js.map +1 -1
  473. package/components/Icon/__generated__/RideIcon.js +2 -2
  474. package/components/Icon/__generated__/RideIcon.js.map +1 -1
  475. package/components/Icon/__generated__/RoofBoxIcon.js +2 -2
  476. package/components/Icon/__generated__/RoofBoxIcon.js.map +1 -1
  477. package/components/Icon/__generated__/RotateIcon.js +2 -2
  478. package/components/Icon/__generated__/RotateIcon.js.map +1 -1
  479. package/components/Icon/__generated__/SealCheckIcon.js +2 -2
  480. package/components/Icon/__generated__/SealCheckIcon.js.map +1 -1
  481. package/components/Icon/__generated__/SearchCarIcon.js +2 -2
  482. package/components/Icon/__generated__/SearchCarIcon.js.map +1 -1
  483. package/components/Icon/__generated__/SearchIcon.js +2 -2
  484. package/components/Icon/__generated__/SearchIcon.js.map +1 -1
  485. package/components/Icon/__generated__/SearchPeopleIcon.js +2 -2
  486. package/components/Icon/__generated__/SearchPeopleIcon.js.map +1 -1
  487. package/components/Icon/__generated__/SedanIcon.js +2 -2
  488. package/components/Icon/__generated__/SedanIcon.js.map +1 -1
  489. package/components/Icon/__generated__/ServiceBatteryIcon.js +2 -2
  490. package/components/Icon/__generated__/ServiceBatteryIcon.js.map +1 -1
  491. package/components/Icon/__generated__/ServiceCleaningIcon.js +2 -2
  492. package/components/Icon/__generated__/ServiceCleaningIcon.js.map +1 -1
  493. package/components/Icon/__generated__/ServiceFuelIcon.js +2 -2
  494. package/components/Icon/__generated__/ServiceFuelIcon.js.map +1 -1
  495. package/components/Icon/__generated__/ServiceHealingIcon.js +2 -2
  496. package/components/Icon/__generated__/ServiceHealingIcon.js.map +1 -1
  497. package/components/Icon/__generated__/ServiceLockedIcon.js +2 -2
  498. package/components/Icon/__generated__/ServiceLockedIcon.js.map +1 -1
  499. package/components/Icon/__generated__/ServiceTollsIcon.js +2 -2
  500. package/components/Icon/__generated__/ServiceTollsIcon.js.map +1 -1
  501. package/components/Icon/__generated__/ServiceUnlockedIcon.js +2 -2
  502. package/components/Icon/__generated__/ServiceUnlockedIcon.js.map +1 -1
  503. package/components/Icon/__generated__/SettingsIcon.js +2 -2
  504. package/components/Icon/__generated__/SettingsIcon.js.map +1 -1
  505. package/components/Icon/__generated__/ShareAndroidIcon.js +2 -2
  506. package/components/Icon/__generated__/ShareAndroidIcon.js.map +1 -1
  507. package/components/Icon/__generated__/ShareIcon.js +2 -2
  508. package/components/Icon/__generated__/ShareIcon.js.map +1 -1
  509. package/components/Icon/__generated__/ShareIosIcon.js +2 -2
  510. package/components/Icon/__generated__/ShareIosIcon.js.map +1 -1
  511. package/components/Icon/__generated__/ShieldCheckIcon.js +2 -2
  512. package/components/Icon/__generated__/ShieldCheckIcon.js.map +1 -1
  513. package/components/Icon/__generated__/ShieldIcon.js +2 -2
  514. package/components/Icon/__generated__/ShieldIcon.js.map +1 -1
  515. package/components/Icon/__generated__/ShopIcon.js +2 -2
  516. package/components/Icon/__generated__/ShopIcon.js.map +1 -1
  517. package/components/Icon/__generated__/SkiRackIcon.js +2 -2
  518. package/components/Icon/__generated__/SkiRackIcon.js.map +1 -1
  519. package/components/Icon/__generated__/SliderIcon.js +2 -2
  520. package/components/Icon/__generated__/SliderIcon.js.map +1 -1
  521. package/components/Icon/__generated__/SmartphoneIcon.js +2 -2
  522. package/components/Icon/__generated__/SmartphoneIcon.js.map +1 -1
  523. package/components/Icon/__generated__/SmilingFaceIcon.js +2 -2
  524. package/components/Icon/__generated__/SmilingFaceIcon.js.map +1 -1
  525. package/components/Icon/__generated__/SnowTireIcon.js +2 -2
  526. package/components/Icon/__generated__/SnowTireIcon.js.map +1 -1
  527. package/components/Icon/__generated__/SocialFacebookIcon.js +2 -2
  528. package/components/Icon/__generated__/SocialFacebookIcon.js.map +1 -1
  529. package/components/Icon/__generated__/SocialLinkedinIcon.js +2 -2
  530. package/components/Icon/__generated__/SocialLinkedinIcon.js.map +1 -1
  531. package/components/Icon/__generated__/SocialTwitterIcon.js +2 -2
  532. package/components/Icon/__generated__/SocialTwitterIcon.js.map +1 -1
  533. package/components/Icon/__generated__/SocialWhatsappIcon.js +2 -2
  534. package/components/Icon/__generated__/SocialWhatsappIcon.js.map +1 -1
  535. package/components/Icon/__generated__/StarHalfIcon.js +2 -2
  536. package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
  537. package/components/Icon/__generated__/StarIcon.js +2 -2
  538. package/components/Icon/__generated__/StarIcon.js.map +1 -1
  539. package/components/Icon/__generated__/StarsIcon.js +2 -2
  540. package/components/Icon/__generated__/StarsIcon.js.map +1 -1
  541. package/components/Icon/__generated__/SubwayIcon.js +2 -2
  542. package/components/Icon/__generated__/SubwayIcon.js.map +1 -1
  543. package/components/Icon/__generated__/SuitcaseIcon.js +2 -2
  544. package/components/Icon/__generated__/SuitcaseIcon.js.map +1 -1
  545. package/components/Icon/__generated__/SupportIcon.js +2 -2
  546. package/components/Icon/__generated__/SupportIcon.js.map +1 -1
  547. package/components/Icon/__generated__/SuvIcon.js +2 -2
  548. package/components/Icon/__generated__/SuvIcon.js.map +1 -1
  549. package/components/Icon/__generated__/SynchIcon.js +2 -2
  550. package/components/Icon/__generated__/SynchIcon.js.map +1 -1
  551. package/components/Icon/__generated__/TagIcon.js +2 -2
  552. package/components/Icon/__generated__/TagIcon.js.map +1 -1
  553. package/components/Icon/__generated__/TimeAlertIcon.js +2 -2
  554. package/components/Icon/__generated__/TimeAlertIcon.js.map +1 -1
  555. package/components/Icon/__generated__/TimeBackwardsIcon.js +2 -2
  556. package/components/Icon/__generated__/TimeBackwardsIcon.js.map +1 -1
  557. package/components/Icon/__generated__/TimeCalendarIcon.js +2 -2
  558. package/components/Icon/__generated__/TimeCalendarIcon.js.map +1 -1
  559. package/components/Icon/__generated__/TimeForwardIcon.js +2 -2
  560. package/components/Icon/__generated__/TimeForwardIcon.js.map +1 -1
  561. package/components/Icon/__generated__/TollsIcon.js +2 -2
  562. package/components/Icon/__generated__/TollsIcon.js.map +1 -1
  563. package/components/Icon/__generated__/TrailerIcon.js +2 -2
  564. package/components/Icon/__generated__/TrailerIcon.js.map +1 -1
  565. package/components/Icon/__generated__/TrainIcon.js +2 -2
  566. package/components/Icon/__generated__/TrainIcon.js.map +1 -1
  567. package/components/Icon/__generated__/TriangleDownIcon.js +2 -2
  568. package/components/Icon/__generated__/TriangleDownIcon.js.map +1 -1
  569. package/components/Icon/__generated__/TriangleRightIcon.js +2 -2
  570. package/components/Icon/__generated__/TriangleRightIcon.js.map +1 -1
  571. package/components/Icon/__generated__/TriangleUpIcon.js +2 -2
  572. package/components/Icon/__generated__/TriangleUpIcon.js.map +1 -1
  573. package/components/Icon/__generated__/TwitterIcon.js +2 -2
  574. package/components/Icon/__generated__/TwitterIcon.js.map +1 -1
  575. package/components/Icon/__generated__/TwoPeopleIcon.js +2 -2
  576. package/components/Icon/__generated__/TwoPeopleIcon.js.map +1 -1
  577. package/components/Icon/__generated__/UberIcon.js +2 -2
  578. package/components/Icon/__generated__/UberIcon.js.map +1 -1
  579. package/components/Icon/__generated__/UnfoldIcon.js +2 -2
  580. package/components/Icon/__generated__/UnfoldIcon.js.map +1 -1
  581. package/components/Icon/__generated__/UnlockedIcon.js +2 -2
  582. package/components/Icon/__generated__/UnlockedIcon.js.map +1 -1
  583. package/components/Icon/__generated__/UserCheckIcon.js +2 -2
  584. package/components/Icon/__generated__/UserCheckIcon.js.map +1 -1
  585. package/components/Icon/__generated__/UserIcon.js +2 -2
  586. package/components/Icon/__generated__/UserIcon.js.map +1 -1
  587. package/components/Icon/__generated__/UserQuestionIcon.js +2 -2
  588. package/components/Icon/__generated__/UserQuestionIcon.js.map +1 -1
  589. package/components/Icon/__generated__/UserShieldIcon.js +2 -2
  590. package/components/Icon/__generated__/UserShieldIcon.js.map +1 -1
  591. package/components/Icon/__generated__/UserSwitchIcon.js +2 -2
  592. package/components/Icon/__generated__/UserSwitchIcon.js.map +1 -1
  593. package/components/Icon/__generated__/UtilityVanLargeIcon.js +2 -2
  594. package/components/Icon/__generated__/UtilityVanLargeIcon.js.map +1 -1
  595. package/components/Icon/__generated__/UtilityVanMediumIcon.js +2 -2
  596. package/components/Icon/__generated__/UtilityVanMediumIcon.js.map +1 -1
  597. package/components/Icon/__generated__/UtilityVanSmallIcon.js +2 -2
  598. package/components/Icon/__generated__/UtilityVanSmallIcon.js.map +1 -1
  599. package/components/Icon/__generated__/VerifiedSealIcon.js +2 -2
  600. package/components/Icon/__generated__/VerifiedSealIcon.js.map +1 -1
  601. package/components/Icon/__generated__/VideoIcon.js +2 -2
  602. package/components/Icon/__generated__/VideoIcon.js.map +1 -1
  603. package/components/Icon/__generated__/WalkIcon.js +2 -2
  604. package/components/Icon/__generated__/WalkIcon.js.map +1 -1
  605. package/components/Icon/__generated__/WalletIcon.js +2 -2
  606. package/components/Icon/__generated__/WalletIcon.js.map +1 -1
  607. package/components/Icon/__generated__/WarningCircleFilledIcon.js +2 -2
  608. package/components/Icon/__generated__/WarningCircleFilledIcon.js.map +1 -1
  609. package/components/Icon/__generated__/WarningCircleIcon.js +2 -2
  610. package/components/Icon/__generated__/WarningCircleIcon.js.map +1 -1
  611. package/components/Icon/__generated__/WarningIcon.js +2 -2
  612. package/components/Icon/__generated__/WarningIcon.js.map +1 -1
  613. package/components/Icon/__generated__/WhatsappIcon.js +2 -2
  614. package/components/Icon/__generated__/WhatsappIcon.js.map +1 -1
  615. package/components/Icon/__generated__/WheelIcon.js +2 -2
  616. package/components/Icon/__generated__/WheelIcon.js.map +1 -1
  617. package/components/Icon/__generated__/WheelchairIcon.js +2 -2
  618. package/components/Icon/__generated__/WheelchairIcon.js.map +1 -1
  619. package/components/Icon/__generated__/WrenchIcon.js +2 -2
  620. package/components/Icon/__generated__/WrenchIcon.js.map +1 -1
  621. package/components/Icon/__generated__/YingyangIcon.js +2 -2
  622. package/components/Icon/__generated__/YingyangIcon.js.map +1 -1
  623. package/components/Icon/index.js +3 -27
  624. package/components/Icon/index.js.map +1 -1
  625. package/components/Modal/ModalHeader.js +3 -2
  626. package/components/Modal/ModalHeader.js.map +1 -1
  627. package/components/Pagination/index.js +1 -1
  628. package/components/Pagination/index.js.map +1 -1
  629. package/components/PhotoDropzone/index.js +2 -2
  630. package/components/PhotoDropzone/index.js.map +1 -1
  631. package/components/Pill/index.js +2 -2
  632. package/components/Pill/index.js.map +1 -1
  633. package/components/Rating/RatingIcons.js +2 -2
  634. package/components/Rating/RatingIcons.js.map +1 -1
  635. package/components/Sidepanel/index.js +2 -2
  636. package/components/Sidepanel/index.js.map +1 -1
  637. package/components/utils/camelize.js +13 -0
  638. package/components/utils/camelize.js.map +1 -0
  639. package/helpers/index.js +14 -0
  640. package/helpers/index.js.map +1 -0
  641. package/index.js +1 -0
  642. package/index.js.map +1 -1
  643. package/package.json +1 -1
  644. package/src/tokens/palette.js +274 -145
  645. package/src/tokens/palette.js.map +1 -1
  646. package/src/tokens/theme.js +125 -328
  647. package/src/tokens/theme.js.map +1 -1
  648. package/src/tokens/zIndexes.js +2 -2
  649. package/styles/components/Accordion/index.scss +4 -4
  650. package/styles/components/Alerter/index.scss +3 -3
  651. package/styles/components/BasicCell/index.scss +3 -3
  652. package/styles/components/BulletList/index.scss +1 -1
  653. package/styles/components/Buttons/DefaultButton/index.scss +7 -18
  654. package/styles/components/Buttons/GhostButton/index.scss +4 -9
  655. package/styles/components/Buttons/InversedButton/index.scss +1 -2
  656. package/styles/components/Buttons/index.scss +2 -7
  657. package/styles/components/Calendar/CalendarDayPicker/index.scss +8 -8
  658. package/styles/components/Calendar/CalendarRangePicker/index.scss +18 -47
  659. package/styles/components/Calendar/CalendarView/index.scss +5 -5
  660. package/styles/components/Callout/index.scss +4 -4
  661. package/styles/components/Card/index.scss +5 -5
  662. package/styles/components/Cell/index.scss +2 -2
  663. package/styles/components/Chip/index.scss +3 -3
  664. package/styles/components/ContainedIcon/index.scss +30 -38
  665. package/styles/components/EmptyState/index.scss +1 -1
  666. package/styles/components/Form/Autocomplete/index.scss +10 -10
  667. package/styles/components/Form/CheckablePill.scss +10 -10
  668. package/styles/components/Form/Checkmark.scss +9 -9
  669. package/styles/components/Form/Fieldset.scss +1 -1
  670. package/styles/components/Form/Hint.scss +1 -1
  671. package/styles/components/Form/RadioWithDetails.scss +11 -13
  672. package/styles/components/Form/Select.scss +1 -1
  673. package/styles/components/Form/Slider.scss +55 -14
  674. package/styles/components/Form/Stepper.scss +3 -3
  675. package/styles/components/Form/TagsInput.scss +16 -11
  676. package/styles/components/Form/TextArea.scss +2 -2
  677. package/styles/components/Form/TextInput.scss +6 -6
  678. package/styles/components/Form/ToggleSwitch.scss +8 -8
  679. package/styles/components/Form/field.scss +1 -1
  680. package/styles/components/Form/form.scss +5 -5
  681. package/styles/components/Helper/index.scss +2 -2
  682. package/styles/components/Icon/index.scss +2 -35
  683. package/styles/components/Layout/Components/index.scss +7 -7
  684. package/styles/components/Modal/index.scss +4 -4
  685. package/styles/components/Note/index.scss +2 -2
  686. package/styles/components/PhotoDropzone/index.scss +9 -9
  687. package/styles/components/Pill/index.scss +3 -3
  688. package/styles/components/PlateNumber/index.scss +1 -1
  689. package/styles/components/Popover/index.scss +10 -10
  690. package/styles/components/PriceTable/index.scss +1 -1
  691. package/styles/components/ProgressBanner/index.scss +3 -3
  692. package/styles/components/ProgressBar/index.scss +6 -6
  693. package/styles/components/ProgressCircular/index.scss +8 -9
  694. package/styles/components/Rating/index.scss +2 -2
  695. package/styles/components/Sidepanel/index.scss +1 -1
  696. package/styles/components/TabBar/index.scss +4 -4
  697. package/styles/components/Tabs/index.scss +4 -4
  698. package/styles/components/Tag/index.scss +7 -7
  699. package/styles/core/border.scss +0 -47
  700. package/styles/core/palette.css +239 -116
  701. package/styles/core/text.scss +2 -2
  702. package/styles/core/theme.css +189 -476
  703. package/styles/core.scss +1 -2
  704. package/tokens/index.js +1 -3
  705. package/tokens/index.js.map +1 -1
  706. package/tokens/palette.js +274 -145
  707. package/tokens/palette.js.map +1 -1
  708. package/tokens/theme.js +125 -328
  709. package/tokens/theme.js.map +1 -1
  710. package/types/src/components/ContainedIcon/index.d.ts +1 -4
  711. package/types/src/components/Form/Slider.d.ts +5 -1
  712. package/types/src/components/Icon/index.d.ts +2 -2
  713. package/types/src/components/utils/index.d.ts +0 -1
  714. package/types/src/helpers/index.d.ts +4 -0
  715. package/types/src/index.d.ts +1 -0
  716. package/types/src/tokens/index.d.ts +215 -381
  717. package/utilities.css +1 -1
  718. package/utils/getCobaltTailwindcssConfig2.js +13 -125
  719. package/utils/getCobaltTailwindcssConfig2.js.map +1 -1
  720. package/utils/helpers.js +40 -69
  721. package/utils/helpers.js.map +1 -1
  722. package/cjs/tokens/colors.js +0 -78
  723. package/cjs/tokens/colors.js.map +0 -1
  724. package/src/tokens/colors.js +0 -57
  725. package/src/tokens/colors.js.map +0 -1
  726. package/styles/components/Icon/iconColors.scss +0 -167
  727. package/styles/core/_colors-map.scss +0 -324
  728. package/styles/core/color.scss +0 -124
  729. package/styles/core/default-theme.css +0 -244
  730. package/tokens/colors.js +0 -57
  731. package/tokens/colors.js.map +0 -1
  732. package/types/src/components/utils/getThemeColors.d.ts +0 -2
  733. package/types/src/components/utils/getThemeColors.spec.d.ts +0 -1
@@ -1,7 +1,6 @@
1
1
  import require$$0 from 'tailwindcss/defaultTheme';
2
2
  import require$$1 from '../src/tokens/breakpoints.js';
3
- import require$$2 from '../src/tokens/colors.js';
4
- import require$$3 from '../src/tokens/zIndexes.js';
3
+ import require$$2 from '../src/tokens/zIndexes.js';
5
4
  import { __require as requireHelpers } from './helpers.js';
6
5
  import { __require as requireTailwindcssGenerators } from './tailwindcssGenerators.js';
7
6
 
@@ -26,8 +25,7 @@ function requireGetCobaltTailwindcssConfig () {
26
25
  hasRequiredGetCobaltTailwindcssConfig = 1;
27
26
  const defaultTheme = require$$0;
28
27
  const breakpoints = require$$1;
29
- const legacyColors = require$$2;
30
- const zIndexes = require$$3;
28
+ const zIndexes = require$$2;
31
29
  const { getColorsUsingCSSVariables } = requireHelpers();
32
30
  const generators = requireTailwindcssGenerators();
33
31
 
@@ -53,13 +51,8 @@ function requireGetCobaltTailwindcssConfig () {
53
51
  _64px: 4,
54
52
  };
55
53
 
56
- const {
57
- stroke: borderColors,
58
- background: bgColors,
59
- fill: fillColors,
60
- text: textColors,
61
- } = getColorsUsingCSSVariables({
62
- additionalColors: { transparent: "transparent" },
54
+ const { themeColors, stateColors } = getColorsUsingCSSVariables({
55
+ additionalColors: { transparent: "transparent", current: "currentColor" },
63
56
  });
64
57
 
65
58
  const baseFont =
@@ -88,9 +81,6 @@ function requireGetCobaltTailwindcssConfig () {
88
81
  gradientColorStops: false,
89
82
  gradientColorStopPositions: false,
90
83
  textDecorationColor: false,
91
- // SVG color
92
- stroke: false,
93
- fill: false,
94
84
  },
95
85
  theme: {
96
86
  extend: {
@@ -100,29 +90,20 @@ function requireGetCobaltTailwindcssConfig () {
100
90
  colors: `${CSS_VAR_STATE_INTERACTIVE_COLOR}, ${defaultTheme.transitionProperty.colors}`,
101
91
  },
102
92
  },
103
- colors: {
104
- ...legacyColors, // deprecated
105
- current: "currentColor",
106
- },
93
+ colors: themeColors,
107
94
  semanticStateColor: {
108
95
  interactive: {
109
- DEFAULT: "#00000000",
110
- hover: "#00000005",
111
- press: "#0000000F",
96
+ DEFAULT: themeColors.transparent,
97
+ hover: stateColors.hover,
98
+ press: stateColors.press,
112
99
  },
113
- onDrag: "#00000029",
100
+ onDrag: stateColors.drag,
114
101
  none: {
115
- DEFAULT: "transparent",
116
- hover: "transparent",
117
- press: "transparent",
102
+ DEFAULT: themeColors.transparent,
103
+ hover: themeColors.transparent,
104
+ press: themeColors.transparent,
118
105
  },
119
106
  },
120
- semanticBorderColor: borderColors,
121
- semanticBackgroundColor: {
122
- ...bgColors,
123
- ...{ fill: fillColors },
124
- },
125
- semanticFillColor: fillColors,
126
107
  borderStyle: {
127
108
  solid: "solid",
128
109
  dashed: "dashed",
@@ -149,7 +130,6 @@ function requireGetCobaltTailwindcssConfig () {
149
130
  md: "0 0.25rem 1.5rem rgba(0, 0, 0, 0.15)",
150
131
  lg: "0 0.375rem 2.25rem rgba(0, 0, 0, 0.2)",
151
132
  },
152
- semanticTextColor: textColors,
153
133
  fontFamily: {
154
134
  base: baseFont,
155
135
  brand: `BrownPro,${baseFont}`,
@@ -305,7 +285,7 @@ function requireGetCobaltTailwindcssConfig () {
305
285
  fontWeight: 700,
306
286
  textTransform: "uppercase",
307
287
  letterSpacing: "-0.2px",
308
- color: theme("semanticTextColor").subdued,
288
+ color: themeColors.onSurfaceVariant,
309
289
  },
310
290
  }),
311
291
  },
@@ -317,30 +297,6 @@ function requireGetCobaltTailwindcssConfig () {
317
297
  // custom border style classes, must be after border width plugin
318
298
  generators.borderStyle,
319
299
  // Semantic colors (handling hover/press color states)
320
- generators.getSemanticColorGenerator({
321
- type: "semanticTextColor",
322
- classPrefix: "text",
323
- cssProperty: "color",
324
- }),
325
- generators.getSemanticColorGenerator({
326
- type: "semanticTextColor",
327
- classPrefix: "placeholder",
328
- selectorSuffix: "::placeholder",
329
- cssProperty: "color",
330
- enableInteractiveColors: false,
331
- }),
332
- generators.getSemanticColorGenerator({
333
- type: "semanticTextColor",
334
- classPrefix: "placeholder",
335
- selectorSuffix: "::-moz-placeholder",
336
- cssProperty: "color",
337
- enableInteractiveColors: false,
338
- }),
339
- generators.getSemanticColorGenerator({
340
- type: "semanticBackgroundColor",
341
- classPrefix: "bg",
342
- cssProperty: "background-color",
343
- }),
344
300
  generators.getSemanticColorGenerator({
345
301
  type: "semanticStateColor",
346
302
  classPrefix: "state",
@@ -351,74 +307,6 @@ function requireGetCobaltTailwindcssConfig () {
351
307
  },
352
308
  },
353
309
  }),
354
- generators.getSemanticColorGenerator({
355
- type: "semanticFillColor",
356
- classPrefix: "accent",
357
- cssProperty: "accent-color",
358
- }),
359
- generators.getSemanticColorGenerator({
360
- type: "semanticBorderColor",
361
- classPrefix: "border",
362
- cssProperty: "border-color",
363
- }),
364
- generators.getSemanticColorGenerator({
365
- type: "semanticBorderColor",
366
- classPrefix: "border-t",
367
- cssProperty: "border-top-color",
368
- }),
369
- generators.getSemanticColorGenerator({
370
- type: "semanticBorderColor",
371
- classPrefix: "border-b",
372
- cssProperty: "border-bottom-color",
373
- }),
374
- generators.getSemanticColorGenerator({
375
- type: "semanticBorderColor",
376
- classPrefix: "border-l",
377
- cssProperty: "border-left-color",
378
- }),
379
- generators.getSemanticColorGenerator({
380
- type: "semanticBorderColor",
381
- classPrefix: "border-r",
382
- cssProperty: "border-right-color",
383
- }),
384
- generators.getSemanticColorGenerator({
385
- type: "semanticBorderColor",
386
- classPrefix: "border-e",
387
- cssProperty: "border-inline-end-color",
388
- }),
389
- generators.getSemanticColorGenerator({
390
- type: "semanticBorderColor",
391
- classPrefix: "border-s",
392
- cssProperty: "border-inline-start-color",
393
- }),
394
- generators.getSemanticColorGenerator({
395
- type: "semanticBorderColor",
396
- classPrefix: "border-y",
397
- cssProperty: "border-top",
398
- cssProperty2: "border-bottom",
399
- }),
400
- generators.getSemanticColorGenerator({
401
- type: "semanticBorderColor",
402
- classPrefix: "border-x",
403
- cssProperty: "border-left",
404
- cssProperty2: "border-right",
405
- }),
406
- generators.getSemanticColorGenerator({
407
- type: "semanticBorderColor",
408
- classPrefix: "divide",
409
- cssProperty: "border-color",
410
- selectorSuffix: " > :not([hidden]) ~ :not([hidden])",
411
- }),
412
- generators.getSemanticColorGenerator({
413
- type: "semanticBorderColor",
414
- classPrefix: "outline",
415
- cssProperty: "outline-color",
416
- }),
417
- generators.getSemanticColorGenerator({
418
- type: "semanticBorderColor",
419
- classPrefix: "ring",
420
- cssProperty: "--tw-ring-color",
421
- }),
422
310
  ],
423
311
  });
424
312
 
@@ -1 +1 @@
1
- {"version":3,"file":"getCobaltTailwindcssConfig2.js","sources":["../../utils/getCobaltTailwindcssConfig.js"],"sourcesContent":["/*\n FOR NODE ENVIRONMENT ONLY\n Do never import tailwind file config (or helpers importing it) into Cobalt\n components/stories on src/ side, it will result to have tailwindcss unecessary\n dependencies into build files.\n See https://github.com/tailwindcss/tailwindcss/issues/634#issuecomment-459740859\n If you need data from the theme configuration, you can do the same as we did\n for colors:\n - create a json token file with the data needed (will be the single source of data)\n - In the tailwindcss config file: import and use this json file\n - In the src/ side: import and use this json file also\n*/\nconst defaultTheme = require(\"tailwindcss/defaultTheme\")\nconst breakpoints = require(\"../src/tokens/breakpoints.json\")\nconst legacyColors = require(\"../src/tokens/colors.json\")\nconst zIndexes = require(\"../src/tokens/zIndexes.json\")\nconst { getColorsUsingCSSVariables } = require(\"./helpers\")\nconst generators = require(\"./tailwindcssGenerators\")\n\nconst CSS_VAR_STATE_INTERACTIVE_COLOR = \"--c-state-interactive-color\"\n\nconst rem = (value) => `${value}rem`\n\nconst REM = {\n _12px: 0.75,\n _14px: 0.875,\n _15px: 0.9375,\n _16px: 1,\n _18px: 1.125,\n _20px: 1.25,\n _24px: 1.5,\n _28px: 1.75,\n _32px: 2,\n _36px: 2.25,\n _40px: 2.5,\n _44px: 2.75,\n _56px: 3.5,\n _60px: 3.75,\n _64px: 4,\n}\n\nconst {\n stroke: borderColors,\n background: bgColors,\n fill: fillColors,\n text: textColors,\n} = getColorsUsingCSSVariables({\n additionalColors: { transparent: \"transparent\" },\n})\n\nconst baseFont =\n \"BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif\"\n\nconst getCobaltTailwindcssConfig = ({ content, safelist = undefined }) => ({\n content,\n safelist: safelist,\n prefix: \"c-\",\n // utilities to disable\n corePlugins: {\n // Don't use Tailwindcss reset and default styles\n preflight: false,\n // Handle by custom classes via generators\n letterSpacing: false,\n lineHeight: false,\n borderStyle: false,\n borderWidth: false,\n fontSize: false,\n // Not needed, at least for now\n textOpacity: false,\n backgroundOpacity: false,\n caretColor: false,\n boxShadowColor: false,\n ringOffsetColor: false,\n gradientColorStops: false,\n gradientColorStopPositions: false,\n textDecorationColor: false,\n // SVG color\n stroke: false,\n fill: false,\n },\n theme: {\n extend: {\n transitionProperty: {\n interactive: `${CSS_VAR_STATE_INTERACTIVE_COLOR}`,\n DEFAULT: `${CSS_VAR_STATE_INTERACTIVE_COLOR}, ${defaultTheme.transitionProperty.DEFAULT}`,\n colors: `${CSS_VAR_STATE_INTERACTIVE_COLOR}, ${defaultTheme.transitionProperty.colors}`,\n },\n },\n colors: {\n ...legacyColors, // deprecated\n current: \"currentColor\",\n },\n semanticStateColor: {\n interactive: {\n DEFAULT: \"#00000000\",\n hover: \"#00000005\",\n press: \"#0000000F\",\n },\n onDrag: \"#00000029\",\n none: {\n DEFAULT: \"transparent\",\n hover: \"transparent\",\n press: \"transparent\",\n },\n },\n semanticBorderColor: borderColors,\n semanticBackgroundColor: {\n ...bgColors,\n ...{ fill: fillColors },\n },\n semanticFillColor: fillColors,\n borderStyle: {\n solid: \"solid\",\n dashed: \"dashed\",\n none: \"none\",\n },\n borderWidth: {\n 0: \"0\",\n \"0_5\": \"0.5px\",\n DEFAULT: \"1px\",\n 2: \"0.125rem\",\n 4: \".25rem\",\n },\n borderRadius: {\n none: \"0\",\n DEFAULT: \".25rem\", // c-rounded\n md: \".375rem\",\n lg: \".5rem\",\n xl: \".75rem\",\n \"2xl\": \"1rem\",\n full: \"9999px\", // full rounded\n },\n boxShadow: {\n DEFAULT: \"0 0.125rem 0.75rem rgba(0, 0, 0, 0.1)\", // c-shadow\n md: \"0 0.25rem 1.5rem rgba(0, 0, 0, 0.15)\",\n lg: \"0 0.375rem 2.25rem rgba(0, 0, 0, 0.2)\",\n },\n semanticTextColor: textColors,\n fontFamily: {\n base: baseFont,\n brand: `BrownPro,${baseFont}`,\n mono: \"Consolas,'Liberation Mono',Menlo,Courier,monospace\",\n },\n fontWeight: {\n regular: \"400\",\n bold: \"600\",\n },\n spacing: {\n none: \"0\",\n \"2xs\": \".25rem\",\n xs: \".5rem\",\n sm: \"1rem\",\n md: \"1.5rem\",\n lg: \"2rem\",\n xl: \"3rem\",\n \"2xl\": \"4rem\",\n },\n screens: { ...breakpoints },\n zIndex: Object.fromEntries(\n Object.entries(zIndexes).map(([key, value]) => [key, value.toString()])\n ),\n // custom properties, not processed by Tailwindcss itself\n customText: ({ theme }) => ({\n link: {\n cursor: \"pointer\",\n textDecoration: \"underline\",\n fontWeight: 500,\n textUnderlineOffset: \"2px\",\n hover: {\n textDecoration: \"none\",\n },\n focus: {\n textDecoration: \"none\",\n },\n },\n linkVariant: {\n cursor: \"pointer\",\n textDecoration: \"none\",\n fontWeight: 500,\n textUnderlineOffset: \"2px\",\n hover: {\n textDecoration: \"underline\",\n },\n focus: {\n textDecoration: \"underline\",\n },\n },\n heading: {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._36px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: \"-0.5px\",\n from: {\n sm: {\n fontSize: rem(REM._56px),\n },\n },\n },\n subheading: {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._20px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: \"-0.5px\",\n from: {\n sm: {\n fontSize: rem(REM._28px),\n },\n },\n },\n \"title-xl\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._32px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._32px),\n from: {\n sm: {\n fontSize: rem(REM._40px),\n letterSpacing: rem((-2 / 100) * REM._40px),\n },\n },\n },\n \"title-lg\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._24px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._24px),\n from: {\n sm: {\n fontSize: rem(REM._32px),\n letterSpacing: rem((-2 / 100) * REM._32px),\n },\n },\n },\n \"title-md\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._20px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._20px),\n from: {\n sm: {\n fontSize: rem(REM._24px),\n letterSpacing: rem((-2 / 100) * REM._24px),\n },\n },\n },\n \"title-sm\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._16px),\n lineHeight: \"125%\",\n fontWeight: 600,\n letterSpacing: rem((-2 / 100) * REM._16px),\n from: {\n sm: {\n fontSize: rem(REM._20px),\n letterSpacing: rem((-2 / 100) * REM._20px),\n },\n },\n },\n \"title-xs\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._16px),\n lineHeight: \"125%\",\n fontWeight: 600,\n letterSpacing: rem((-2 / 100) * REM._16px),\n },\n //\n \"body-lg\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._18px),\n lineHeight: rem(REM._24px),\n },\n \"body-md\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._16px),\n lineHeight: rem(REM._24px),\n },\n \"body-sm\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._12px),\n lineHeight: rem(REM._16px),\n },\n \"section-heading\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._14px),\n lineHeight: \"175%\",\n fontWeight: 700,\n textTransform: \"uppercase\",\n letterSpacing: \"-0.2px\",\n color: theme(\"semanticTextColor\").subdued,\n },\n }),\n },\n plugins: [\n // custom typography classes\n generators.text,\n // custom border width classes (width default solid style)\n generators.borderWidth,\n // custom border style classes, must be after border width plugin\n generators.borderStyle,\n // Semantic colors (handling hover/press color states)\n generators.getSemanticColorGenerator({\n type: \"semanticTextColor\",\n classPrefix: \"text\",\n cssProperty: \"color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticTextColor\",\n classPrefix: \"placeholder\",\n selectorSuffix: \"::placeholder\",\n cssProperty: \"color\",\n enableInteractiveColors: false,\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticTextColor\",\n classPrefix: \"placeholder\",\n selectorSuffix: \"::-moz-placeholder\",\n cssProperty: \"color\",\n enableInteractiveColors: false,\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBackgroundColor\",\n classPrefix: \"bg\",\n cssProperty: \"background-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticStateColor\",\n classPrefix: \"state\",\n cssProperty: CSS_VAR_STATE_INTERACTIVE_COLOR,\n additionalRules: {\n interactive: {\n \"background-image\": `linear-gradient(var(${CSS_VAR_STATE_INTERACTIVE_COLOR}), var(${CSS_VAR_STATE_INTERACTIVE_COLOR}))`,\n },\n },\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticFillColor\",\n classPrefix: \"accent\",\n cssProperty: \"accent-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border\",\n cssProperty: \"border-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-t\",\n cssProperty: \"border-top-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-b\",\n cssProperty: \"border-bottom-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-l\",\n cssProperty: \"border-left-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-r\",\n cssProperty: \"border-right-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-e\",\n cssProperty: \"border-inline-end-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-s\",\n cssProperty: \"border-inline-start-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-y\",\n cssProperty: \"border-top\",\n cssProperty2: \"border-bottom\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-x\",\n cssProperty: \"border-left\",\n cssProperty2: \"border-right\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"divide\",\n cssProperty: \"border-color\",\n selectorSuffix: \" > :not([hidden]) ~ :not([hidden])\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"outline\",\n cssProperty: \"outline-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"ring\",\n cssProperty: \"--tw-ring-color\",\n }),\n ],\n})\n\nmodule.exports = getCobaltTailwindcssConfig\n"],"names":["require$$4","require$$5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,CAAA,MAAM,YAAY,GAAG,WAAA;AACrB,CAAA,MAAM,WAAW,GAAG,WAAA;AACpB,CAAA,MAAM,YAAY,GAAG,WAAA;AACrB,CAAA,MAAM,QAAQ,GAAG,WAAA;CACjB,MAAM,EAAE,0BAA0B,EAAE,GAAGA,cAAA,GAAA;AACvC,CAAA,MAAM,UAAU,GAAGC,4BAAA,GAAA;;AAEnB,CAAA,MAAM,+BAA+B,GAAG,8BAAA;;CAExC,MAAM,GAAG,GAAG,CAAC,KAAK,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAA;;AAEnC,CAAA,MAAM,GAAG,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,KAAK;GACZ,KAAK,EAAE,MAAM;GACb,KAAK,EAAE,CAAC;GACR,KAAK,EAAE,KAAK;GACZ,K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AAW,EAAE,UAAU;OACvB,WAAW,EAAE,YAAY;OACzB,YAAY,EAAE,eAAe;AACnC,MAAK,CAAC;KACF,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,qBAAqB;OAC3B,WAAW,EAAE,UAAU;OACvB,WAAW,EAAE,aAAa;OAC1B,YAAY,EAAE,cAAc;AAClC,MAAK,CAAC;KACF,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,qBAAqB;OAC3B,WAAW,EAAE,QAAQ;OACrB,WAAW,EAAE,cAAc;OAC3B,cAAc,EAAE,oCAAoC;AAC1D,MAAK,CAAC;KACF,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,qBAAqB;OAC3B,WAAW,EAAE,SAAS;OACtB,WAAW,EAAE,eAAe;AAClC,MAAK,CAAC;KACF,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,qBAAqB;OAC3B,WAAW,EAAE,MAAM;OACnB,WAAW,EAAE,iBAAiB;AACpC,MAAK,CAAC;IACH;EACF,EAAA;;AAED,CAAA,4BAAc,GAAG,2BAAA;;;;;;"}
1
+ {"version":3,"file":"getCobaltTailwindcssConfig2.js","sources":["../../utils/getCobaltTailwindcssConfig.js"],"sourcesContent":["/*\n FOR NODE ENVIRONMENT ONLY\n Do never import tailwind file config (or helpers importing it) into Cobalt\n components/stories on src/ side, it will result to have tailwindcss unecessary\n dependencies into build files.\n See https://github.com/tailwindcss/tailwindcss/issues/634#issuecomment-459740859\n If you need data from the theme configuration, you can do the same as we did\n for colors:\n - create a json token file with the data needed (will be the single source of data)\n - In the tailwindcss config file: import and use this json file\n - In the src/ side: import and use this json file also\n*/\nconst defaultTheme = require(\"tailwindcss/defaultTheme\")\nconst breakpoints = require(\"../src/tokens/breakpoints.json\")\nconst zIndexes = require(\"../src/tokens/zIndexes.json\")\nconst { getColorsUsingCSSVariables } = require(\"./helpers\")\nconst generators = require(\"./tailwindcssGenerators\")\n\nconst CSS_VAR_STATE_INTERACTIVE_COLOR = \"--c-state-interactive-color\"\n\nconst rem = (value) => `${value}rem`\n\nconst REM = {\n _12px: 0.75,\n _14px: 0.875,\n _15px: 0.9375,\n _16px: 1,\n _18px: 1.125,\n _20px: 1.25,\n _24px: 1.5,\n _28px: 1.75,\n _32px: 2,\n _36px: 2.25,\n _40px: 2.5,\n _44px: 2.75,\n _56px: 3.5,\n _60px: 3.75,\n _64px: 4,\n}\n\nconst { themeColors, stateColors } = getColorsUsingCSSVariables({\n additionalColors: { transparent: \"transparent\", current: \"currentColor\" },\n})\n\nconst baseFont =\n \"BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif\"\n\nconst getCobaltTailwindcssConfig = ({ content, safelist = undefined }) => ({\n content,\n safelist: safelist,\n prefix: \"c-\",\n // utilities to disable\n corePlugins: {\n // Don't use Tailwindcss reset and default styles\n preflight: false,\n // Handle by custom classes via generators\n letterSpacing: false,\n lineHeight: false,\n borderStyle: false,\n borderWidth: false,\n fontSize: false,\n // Not needed, at least for now\n textOpacity: false,\n backgroundOpacity: false,\n caretColor: false,\n boxShadowColor: false,\n ringOffsetColor: false,\n gradientColorStops: false,\n gradientColorStopPositions: false,\n textDecorationColor: false,\n },\n theme: {\n extend: {\n transitionProperty: {\n interactive: `${CSS_VAR_STATE_INTERACTIVE_COLOR}`,\n DEFAULT: `${CSS_VAR_STATE_INTERACTIVE_COLOR}, ${defaultTheme.transitionProperty.DEFAULT}`,\n colors: `${CSS_VAR_STATE_INTERACTIVE_COLOR}, ${defaultTheme.transitionProperty.colors}`,\n },\n },\n colors: themeColors,\n semanticStateColor: {\n interactive: {\n DEFAULT: themeColors.transparent,\n hover: stateColors.hover,\n press: stateColors.press,\n },\n onDrag: stateColors.drag,\n none: {\n DEFAULT: themeColors.transparent,\n hover: themeColors.transparent,\n press: themeColors.transparent,\n },\n },\n borderStyle: {\n solid: \"solid\",\n dashed: \"dashed\",\n none: \"none\",\n },\n borderWidth: {\n 0: \"0\",\n \"0_5\": \"0.5px\",\n DEFAULT: \"1px\",\n 2: \"0.125rem\",\n 4: \".25rem\",\n },\n borderRadius: {\n none: \"0\",\n DEFAULT: \".25rem\", // c-rounded\n md: \".375rem\",\n lg: \".5rem\",\n xl: \".75rem\",\n \"2xl\": \"1rem\",\n full: \"9999px\", // full rounded\n },\n boxShadow: {\n DEFAULT: \"0 0.125rem 0.75rem rgba(0, 0, 0, 0.1)\", // c-shadow\n md: \"0 0.25rem 1.5rem rgba(0, 0, 0, 0.15)\",\n lg: \"0 0.375rem 2.25rem rgba(0, 0, 0, 0.2)\",\n },\n fontFamily: {\n base: baseFont,\n brand: `BrownPro,${baseFont}`,\n mono: \"Consolas,'Liberation Mono',Menlo,Courier,monospace\",\n },\n fontWeight: {\n regular: \"400\",\n bold: \"600\",\n },\n spacing: {\n none: \"0\",\n \"2xs\": \".25rem\",\n xs: \".5rem\",\n sm: \"1rem\",\n md: \"1.5rem\",\n lg: \"2rem\",\n xl: \"3rem\",\n \"2xl\": \"4rem\",\n },\n screens: { ...breakpoints },\n zIndex: Object.fromEntries(\n Object.entries(zIndexes).map(([key, value]) => [key, value.toString()])\n ),\n // custom properties, not processed by Tailwindcss itself\n customText: ({ theme }) => ({\n link: {\n cursor: \"pointer\",\n textDecoration: \"underline\",\n fontWeight: 500,\n textUnderlineOffset: \"2px\",\n hover: {\n textDecoration: \"none\",\n },\n focus: {\n textDecoration: \"none\",\n },\n },\n linkVariant: {\n cursor: \"pointer\",\n textDecoration: \"none\",\n fontWeight: 500,\n textUnderlineOffset: \"2px\",\n hover: {\n textDecoration: \"underline\",\n },\n focus: {\n textDecoration: \"underline\",\n },\n },\n heading: {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._36px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: \"-0.5px\",\n from: {\n sm: {\n fontSize: rem(REM._56px),\n },\n },\n },\n subheading: {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._20px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: \"-0.5px\",\n from: {\n sm: {\n fontSize: rem(REM._28px),\n },\n },\n },\n \"title-xl\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._32px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._32px),\n from: {\n sm: {\n fontSize: rem(REM._40px),\n letterSpacing: rem((-2 / 100) * REM._40px),\n },\n },\n },\n \"title-lg\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._24px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._24px),\n from: {\n sm: {\n fontSize: rem(REM._32px),\n letterSpacing: rem((-2 / 100) * REM._32px),\n },\n },\n },\n \"title-md\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._20px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._20px),\n from: {\n sm: {\n fontSize: rem(REM._24px),\n letterSpacing: rem((-2 / 100) * REM._24px),\n },\n },\n },\n \"title-sm\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._16px),\n lineHeight: \"125%\",\n fontWeight: 600,\n letterSpacing: rem((-2 / 100) * REM._16px),\n from: {\n sm: {\n fontSize: rem(REM._20px),\n letterSpacing: rem((-2 / 100) * REM._20px),\n },\n },\n },\n \"title-xs\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._16px),\n lineHeight: \"125%\",\n fontWeight: 600,\n letterSpacing: rem((-2 / 100) * REM._16px),\n },\n //\n \"body-lg\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._18px),\n lineHeight: rem(REM._24px),\n },\n \"body-md\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._16px),\n lineHeight: rem(REM._24px),\n },\n \"body-sm\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._12px),\n lineHeight: rem(REM._16px),\n },\n \"section-heading\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._14px),\n lineHeight: \"175%\",\n fontWeight: 700,\n textTransform: \"uppercase\",\n letterSpacing: \"-0.2px\",\n color: themeColors.onSurfaceVariant,\n },\n }),\n },\n plugins: [\n // custom typography classes\n generators.text,\n // custom border width classes (width default solid style)\n generators.borderWidth,\n // custom border style classes, must be after border width plugin\n generators.borderStyle,\n // Semantic colors (handling hover/press color states)\n generators.getSemanticColorGenerator({\n type: \"semanticStateColor\",\n classPrefix: \"state\",\n cssProperty: CSS_VAR_STATE_INTERACTIVE_COLOR,\n additionalRules: {\n interactive: {\n \"background-image\": `linear-gradient(var(${CSS_VAR_STATE_INTERACTIVE_COLOR}), var(${CSS_VAR_STATE_INTERACTIVE_COLOR}))`,\n },\n },\n }),\n ],\n})\n\nmodule.exports = getCobaltTailwindcssConfig\n"],"names":["require$$3","require$$4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,CAAA,MAAM,YAAY,GAAG,WAAA;AACrB,CAAA,MAAM,WAAW,GAAG,WAAA;AACpB,CAAA,MAAM,QAAQ,GAAG,WAAA;CACjB,MAAM,EAAE,0BAA0B,EAAE,GAAGA,cAAA,GAAA;AACvC,CAAA,MAAM,UAAU,GAAGC,4BAAA,GAAA;;AAEnB,CAAA,MAAM,+BAA+B,GAAG,8BAAA;;CAExC,MAAM,GAAG,GAAG,CAAC,KAAK,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAA;;AAEnC,CAAA,MAAM,GAAG,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,KAAK;GACZ,KAAK,EAAE,MAAM;GACb,KAAK,EAAE,CAAC;GACR,KAAK,EAAE,KAAK;GACZ,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK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;AAC/B,SAAQ,KAAK,EAAE,WAAW,CAAC,gBAAgB;QACpC;AACP,MAAK,CAAC;IACH;AACH,GAAE,OAAO,EAAE;AACX;KACI,UAAU,CAAC,IAAI;AACnB;KACI,UAAU,CAAC,WAAW;AAC1B;KACI,UAAU,CAAC,WAAW;AAC1B;KACI,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,oBAAoB;OAC1B,WAAW,EAAE,OAAO;OACpB,WAAW,EAAE,+BAA+B;AAClD,OAAM,eAAe,EAAE;AACvB,SAAQ,WAAW,EAAE;AACrB,WAAU,kBAAkB,EAAE,CAAC,oBAAoB,EAAE,+BAA+B,CAAC,OAAO,EAAE,+BAA+B,CAAC,EAAE,CAAC;UACxH;QACF;AACP,MAAK,CAAC;IACH;EACF,EAAA;;AAED,CAAA,4BAAc,GAAG,2BAAA;;;;;;"}
package/utils/helpers.js CHANGED
@@ -18,47 +18,22 @@ function requireHelpers () {
18
18
  DARK: "dark",
19
19
  };
20
20
  const DEFAULT_THEME_MODE = THEME_MODES.LIGHT;
21
- const MODIFIERS = {
22
- HOVER: "hover",
23
- PRESS: "press",
24
- };
21
+
22
+ const STATES_COLORS = ["hover", "press", "drag", "focus"];
25
23
 
26
24
  const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
27
25
 
28
26
  // Get the CSS Variable name from a palette/colors name
29
27
  // ex: (green, 900) => --c-green-900
30
- // ex: (turquoise, "", true) => --c-l-turquoise
31
- const getCSSVariableNameFromColorName = ({ color, modifier = "" }) => {
32
- return `${COLOR_PREFIX}-${color}${modifier ? `-${modifier}` : modifier}`
28
+ // ex: (white) => --c-white
29
+ const getCSSVariableNameFromColorName = ({ color, scale = "" }) => {
30
+ return `${COLOR_PREFIX}-${color}${scale ? `-${scale}` : scale}`
33
31
  };
34
32
 
35
- // Get the CSS Variable name from a theme color name and category
36
- // ex: (background, connect) => --c-background-connect
37
- // ex: (background, accentInteractive, hover) => --c-background-connect--hover
38
- const getCSSVariableNameFromThemeName = ({
39
- category,
40
- color,
41
- modifier = "",
42
- }) => {
43
- return `${COLOR_PREFIX}-${category}-${color}${
44
- modifier && modifier !== DEFAULT_KEY ? `--${modifier}` : ""
45
- }`
46
- };
47
-
48
- // Get theme value from theme color name and category
49
- // ex: (background, connect) => "turquoise.500/turquoise.500"
50
- // ex: (background, accentInteractive, hover) => "purple.700/purpleDeep.400"
51
- const getThemeValueFromThemeColor = ({ category, color, modifier = "" }) => {
52
- const colorProp = themeTokens[category][color];
53
- if (typeof colorProp !== "object") return colorProp
54
- if (modifier && modifier in colorProp) {
55
- return colorProp[modifier]
56
- }
57
- if (!modifier && "DEFAULT" in colorProp) {
58
- return colorProp.DEFAULT
59
- } else {
60
- return colorProp
61
- }
33
+ // Get the CSS Variable name from a theme color name
34
+ // ex: (surface) => --c-surface
35
+ const getCSSVariableNameFromThemeName = (themeName) => {
36
+ return `${COLOR_PREFIX}-${themeName}`
62
37
  };
63
38
 
64
39
  // Get the theme final color from the theme color value
@@ -98,61 +73,57 @@ function requireHelpers () {
98
73
  };
99
74
 
100
75
  // Get color CSS Variable from theme value
101
- // ex: ("red/red.500/red.200", THEME_MODES.LEGACY) => --c-l-red
76
+ // ex: ("red/red.500/red.200", THEME_MODES.DARK) => --c-l-red
102
77
  // ex: ("red/red.500/red.200", THEME_MODES.LIGHT) => --c-red-500
103
78
  const getColorCSSVariableFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>
104
79
  getColorCSSVariableFromThemeColor(getThemeColorFromThemeValue(value, mode));
105
80
 
106
81
  // Get color value from the theme value
107
- // ex: ("red/red.500/red.200", THEME_MODES.LEGACY) => #ff7378
82
+ // ex: ("red/red.500/red.200", THEME_MODES.DARK) => #ff7378
108
83
  // ex: ("red/red.500/red.200", THEME_MODES.LIGHT) => #c71414
109
84
  const getColorFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>
110
85
  getColorFromThemeColor(getThemeColorFromThemeValue(value, mode));
111
86
 
87
+ const getColorsUsingCSSVariables = ({ additionalColors } = {}) => {
88
+ const colorsUsingCSSVariables = {};
89
+ const stateColorsUsingCSSVariables = {};
90
+ // eslint-disable-next-line guard-for-in
91
+ for (const themeProp in themeTokens) {
92
+ if (STATES_COLORS.includes(themeProp)) {
93
+ stateColorsUsingCSSVariables[themeProp] =
94
+ `var(${getCSSVariableNameFromThemeName(themeProp)})`;
95
+ } else {
96
+ colorsUsingCSSVariables[themeProp] =
97
+ `var(${getCSSVariableNameFromThemeName(themeProp)})`;
98
+ }
99
+ }
100
+
101
+ if (additionalColors) {
102
+ for (const color in additionalColors) {
103
+ if (hasProp(additionalColors, color)) {
104
+ colorsUsingCSSVariables[color] = additionalColors[color];
105
+ }
106
+ }
107
+ }
108
+
109
+ return {
110
+ stateColors: stateColorsUsingCSSVariables,
111
+ themeColors: colorsUsingCSSVariables,
112
+ }
113
+ };
114
+
112
115
  helpers = {
113
116
  DEFAULT_THEME_MODE,
114
117
  DEFAULT_KEY,
115
- COLOR_PREFIX,
116
- MODIFIERS,
117
118
  THEME_MODES,
118
119
  // Following rule https://eslint.org/docs/rules/no-prototype-builtins
119
120
  hasProp,
120
121
  getColorCSSVariableFromThemeValue,
121
122
  getCSSVariableNameFromThemeName,
122
123
  getCSSVariableNameFromColorName,
123
- getThemeValueFromThemeColor,
124
124
  getThemeColorFromThemeValue,
125
125
  getColorFromThemeValue,
126
- getColorsUsingCSSVariables: ({ additionalColors } = {}) => {
127
- const colorsUsingCSSVariables = JSON.parse(JSON.stringify(themeTokens));
128
- // eslint-disable-next-line guard-for-in
129
- for (const category in themeTokens) {
130
- for (const color in themeTokens[category]) {
131
- if (typeof themeTokens[category][color] === "string") {
132
- colorsUsingCSSVariables[category][color] =
133
- `var(${getCSSVariableNameFromThemeName({ category, color })})`;
134
- } else {
135
- // eslint-disable-next-line guard-for-in
136
- for (const modifier in themeTokens[category][color]) {
137
- colorsUsingCSSVariables[category][color][modifier] =
138
- `var(${getCSSVariableNameFromThemeName({
139
- category,
140
- color,
141
- modifier,
142
- })})`;
143
- }
144
- }
145
- }
146
- if (additionalColors) {
147
- for (const color in additionalColors) {
148
- if (hasProp(additionalColors, color)) {
149
- colorsUsingCSSVariables[category][color] = additionalColors[color];
150
- }
151
- }
152
- }
153
- }
154
- return colorsUsingCSSVariables
155
- },
126
+ getColorsUsingCSSVariables,
156
127
  };
157
128
  return helpers;
158
129
  }
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sources":["../../utils/helpers.js"],"sourcesContent":["const themeTokens = require(\"../src/tokens/theme.json\")\nconst palette = require(\"../src/tokens/palette.json\")\n\nconst DEFAULT_KEY = \"DEFAULT\"\nconst COLOR_PREFIX = \"--c\"\n\nconst THEME_MODES = {\n LIGHT: \"light\",\n DARK: \"dark\",\n}\nconst DEFAULT_THEME_MODE = THEME_MODES.LIGHT\nconst MODIFIERS = {\n HOVER: \"hover\",\n PRESS: \"press\",\n}\n\nconst hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)\n\n// Get the CSS Variable name from a palette/colors name\n// ex: (green, 900) => --c-green-900\n// ex: (turquoise, \"\", true) => --c-l-turquoise\nconst getCSSVariableNameFromColorName = ({ color, modifier = \"\" }) => {\n return `${COLOR_PREFIX}-${color}${modifier ? `-${modifier}` : modifier}`\n}\n\n// Get the CSS Variable name from a theme color name and category\n// ex: (background, connect) => --c-background-connect\n// ex: (background, accentInteractive, hover) => --c-background-connect--hover\nconst getCSSVariableNameFromThemeName = ({\n category,\n color,\n modifier = \"\",\n}) => {\n return `${COLOR_PREFIX}-${category}-${color}${\n modifier && modifier !== DEFAULT_KEY ? `--${modifier}` : \"\"\n }`\n}\n\n// Get theme value from theme color name and category\n// ex: (background, connect) => \"turquoise.500/turquoise.500\"\n// ex: (background, accentInteractive, hover) => \"purple.700/purpleDeep.400\"\nconst getThemeValueFromThemeColor = ({ category, color, modifier = \"\" }) => {\n const colorProp = themeTokens[category][color]\n if (typeof colorProp !== \"object\") return colorProp\n if (modifier && modifier in colorProp) {\n return colorProp[modifier]\n }\n if (!modifier && \"DEFAULT\" in colorProp) {\n return colorProp.DEFAULT\n } else {\n return colorProp\n }\n}\n\n// Get the theme final color from the theme color value\n// ex: (\"red.500/red.200\", THEME_MODES.LIGHT) => red.500\n// ex: (\"red.500/red.200\", THEME_MODES.DARK) => red.200\nconst getThemeColorFromThemeValue = (themeValue, mode = DEFAULT_THEME_MODE) => {\n const splitPosition = mode === THEME_MODES.LIGHT ? 0 : 1\n\n return themeValue.split(\"/\")[splitPosition]\n}\n\n// Get the CSS Variable from the theme final color\n// ex: (green.900) => --c-green-900\nconst getColorCSSVariableFromThemeColor = (value) => {\n const [colorName, colorVariant] = value.split(\".\")\n if (colorVariant) {\n return `${COLOR_PREFIX}-${colorName}-${colorVariant}`\n } else {\n return `${COLOR_PREFIX}-${value}`\n }\n}\n\n// Get the color value from the theme final color\n// (red) => #ff7378\n// (red.500) => #c71414\nconst getColorFromThemeColor = (name) => {\n const [colorName, colorVariant] = name.split(\".\")\n if (hasProp(palette, colorName)) {\n if (colorVariant) {\n return palette[colorName][colorVariant]\n } else if (typeof palette[colorName] === \"string\") {\n return palette[colorName]\n } else {\n return palette[colorName][DEFAULT_KEY]\n }\n }\n}\n\n// Get color CSS Variable from theme value\n// ex: (\"red/red.500/red.200\", THEME_MODES.LEGACY) => --c-l-red\n// ex: (\"red/red.500/red.200\", THEME_MODES.LIGHT) => --c-red-500\nconst getColorCSSVariableFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>\n getColorCSSVariableFromThemeColor(getThemeColorFromThemeValue(value, mode))\n\n// Get color value from the theme value\n// ex: (\"red/red.500/red.200\", THEME_MODES.LEGACY) => #ff7378\n// ex: (\"red/red.500/red.200\", THEME_MODES.LIGHT) => #c71414\nconst getColorFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>\n getColorFromThemeColor(getThemeColorFromThemeValue(value, mode))\n\nmodule.exports = {\n DEFAULT_THEME_MODE,\n DEFAULT_KEY,\n COLOR_PREFIX,\n MODIFIERS,\n THEME_MODES,\n // Following rule https://eslint.org/docs/rules/no-prototype-builtins\n hasProp,\n getColorCSSVariableFromThemeValue,\n getCSSVariableNameFromThemeName,\n getCSSVariableNameFromColorName,\n getThemeValueFromThemeColor,\n getThemeColorFromThemeValue,\n getColorFromThemeValue,\n getColorsUsingCSSVariables: ({ additionalColors } = {}) => {\n const colorsUsingCSSVariables = JSON.parse(JSON.stringify(themeTokens))\n // eslint-disable-next-line guard-for-in\n for (const category in themeTokens) {\n for (const color in themeTokens[category]) {\n if (typeof themeTokens[category][color] === \"string\") {\n colorsUsingCSSVariables[category][color] =\n `var(${getCSSVariableNameFromThemeName({ category, color })})`\n } else {\n // eslint-disable-next-line guard-for-in\n for (const modifier in themeTokens[category][color]) {\n colorsUsingCSSVariables[category][color][modifier] =\n `var(${getCSSVariableNameFromThemeName({\n category,\n color,\n modifier,\n })})`\n }\n }\n }\n if (additionalColors) {\n for (const color in additionalColors) {\n if (hasProp(additionalColors, color)) {\n colorsUsingCSSVariables[category][color] = additionalColors[color]\n }\n }\n }\n }\n return colorsUsingCSSVariables\n },\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA,CAAA,MAAM,WAAW,GAAG,WAAA;AACpB,CAAA,MAAM,OAAO,GAAG,WAAA;;AAEhB,CAAA,MAAM,WAAW,GAAG,UAAA;AACpB,CAAA,MAAM,YAAY,GAAG,MAAA;;AAErB,CAAA,MAAM,WAAW,GAAG;GAClB,KAAK,EAAE,OAAO;GACd,IAAI,EAAE,MAAM;AACd,GAAA;CACA,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAA;AACvC,CAAA,MAAM,SAAS,GAAG;GAChB,KAAK,EAAE,OAAO;GACd,KAAK,EAAE,OAAO;AAChB,GAAA;;AAEA,CAAA,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAA;;AAE7E;AACA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C5B,SAAQ,KAAK,MAAM,KAAK,IAAI,gBAAgB,EAAE;AAC9C,WAAU,IAAI,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,EAAE;aACpC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,KAAK,EAAA;AAC7E,YAAA;AACA,UAAA;AACA,QAAA;AACA,MAAA;AACA,KAAI,OAAO,uBAAA;IACR;AACH,GAAA;;;;;;"}
1
+ {"version":3,"file":"helpers.js","sources":["../../utils/helpers.js"],"sourcesContent":["const themeTokens = require(\"../src/tokens/theme.json\")\nconst palette = require(\"../src/tokens/palette.json\")\n\nconst DEFAULT_KEY = \"DEFAULT\"\nconst COLOR_PREFIX = \"--c\"\n\nconst THEME_MODES = {\n LIGHT: \"light\",\n DARK: \"dark\",\n}\nconst DEFAULT_THEME_MODE = THEME_MODES.LIGHT\n\nconst STATES_COLORS = [\"hover\", \"press\", \"drag\", \"focus\"]\n\nconst hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)\n\n// Get the CSS Variable name from a palette/colors name\n// ex: (green, 900) => --c-green-900\n// ex: (white) => --c-white\nconst getCSSVariableNameFromColorName = ({ color, scale = \"\" }) => {\n return `${COLOR_PREFIX}-${color}${scale ? `-${scale}` : scale}`\n}\n\n// Get the CSS Variable name from a theme color name\n// ex: (surface) => --c-surface\nconst getCSSVariableNameFromThemeName = (themeName) => {\n return `${COLOR_PREFIX}-${themeName}`\n}\n\n// Get the theme final color from the theme color value\n// ex: (\"red.500/red.200\", THEME_MODES.LIGHT) => red.500\n// ex: (\"red.500/red.200\", THEME_MODES.DARK) => red.200\nconst getThemeColorFromThemeValue = (themeValue, mode = DEFAULT_THEME_MODE) => {\n const splitPosition = mode === THEME_MODES.LIGHT ? 0 : 1\n\n return themeValue.split(\"/\")[splitPosition]\n}\n\n// Get the CSS Variable from the theme final color\n// ex: (green.900) => --c-green-900\nconst getColorCSSVariableFromThemeColor = (value) => {\n const [colorName, colorVariant] = value.split(\".\")\n if (colorVariant) {\n return `${COLOR_PREFIX}-${colorName}-${colorVariant}`\n } else {\n return `${COLOR_PREFIX}-${value}`\n }\n}\n\n// Get the color value from the theme final color\n// (red) => #ff7378\n// (red.500) => #c71414\nconst getColorFromThemeColor = (name) => {\n const [colorName, colorVariant] = name.split(\".\")\n if (hasProp(palette, colorName)) {\n if (colorVariant) {\n return palette[colorName][colorVariant]\n } else if (typeof palette[colorName] === \"string\") {\n return palette[colorName]\n } else {\n return palette[colorName][DEFAULT_KEY]\n }\n }\n}\n\n// Get color CSS Variable from theme value\n// ex: (\"red/red.500/red.200\", THEME_MODES.DARK) => --c-l-red\n// ex: (\"red/red.500/red.200\", THEME_MODES.LIGHT) => --c-red-500\nconst getColorCSSVariableFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>\n getColorCSSVariableFromThemeColor(getThemeColorFromThemeValue(value, mode))\n\n// Get color value from the theme value\n// ex: (\"red/red.500/red.200\", THEME_MODES.DARK) => #ff7378\n// ex: (\"red/red.500/red.200\", THEME_MODES.LIGHT) => #c71414\nconst getColorFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>\n getColorFromThemeColor(getThemeColorFromThemeValue(value, mode))\n\nconst getColorsUsingCSSVariables = ({ additionalColors } = {}) => {\n const colorsUsingCSSVariables = {}\n const stateColorsUsingCSSVariables = {}\n // eslint-disable-next-line guard-for-in\n for (const themeProp in themeTokens) {\n if (STATES_COLORS.includes(themeProp)) {\n stateColorsUsingCSSVariables[themeProp] =\n `var(${getCSSVariableNameFromThemeName(themeProp)})`\n } else {\n colorsUsingCSSVariables[themeProp] =\n `var(${getCSSVariableNameFromThemeName(themeProp)})`\n }\n }\n\n if (additionalColors) {\n for (const color in additionalColors) {\n if (hasProp(additionalColors, color)) {\n colorsUsingCSSVariables[color] = additionalColors[color]\n }\n }\n }\n\n return {\n stateColors: stateColorsUsingCSSVariables,\n themeColors: colorsUsingCSSVariables,\n }\n}\n\nmodule.exports = {\n DEFAULT_THEME_MODE,\n DEFAULT_KEY,\n THEME_MODES,\n // Following rule https://eslint.org/docs/rules/no-prototype-builtins\n hasProp,\n getColorCSSVariableFromThemeValue,\n getCSSVariableNameFromThemeName,\n getCSSVariableNameFromColorName,\n getThemeColorFromThemeValue,\n getColorFromThemeValue,\n getColorsUsingCSSVariables,\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA,CAAA,MAAM,WAAW,GAAG,WAAA;AACpB,CAAA,MAAM,OAAO,GAAG,WAAA;;AAEhB,CAAA,MAAM,WAAW,GAAG,UAAA;AACpB,CAAA,MAAM,YAAY,GAAG,MAAA;;AAErB,CAAA,MAAM,WAAW,GAAG;GAClB,KAAK,EAAE,OAAO;GACd,IAAI,EAAE,MAAM;AACd,GAAA;CACA,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAA;;CAEvC,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAA;;AAExD,CAAA,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAA;;AAE7E;AACA;AACA;CACA,MAAM,+BAA+B,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK;GACjE,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAA;AAChE,GAAA;;AAEA;AACA;AACA,CAAA,MAAM,+BAA+B,GAAG,CAAC,SAAS,KAAK;GACrD,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC,CAAA;AACtC,GAAA;;AAEA;AACA;AACA;CACA,MAAM,2BAA2B,GAAG,CAAC,UAAU,EAAE,IAAI,GAAG,kBAAkB,KAAK;GAC7E,MAAM,aAAa,GAA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
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const white = "#fff";
6
- const grey = {
7
- lighter: "#f8f7f8",
8
- light: "#edebed",
9
- DEFAULT: "#dbd8dc",
10
- dark: "#a49da7"
11
- };
12
- const indigo = {
13
- DEFAULT: "#61366b",
14
- dark: "#390446"
15
- };
16
- const purple = {
17
- light: "#d076ca",
18
- DEFAULT: "#b01aa7"
19
- };
20
- const graphite = {
21
- light: "#757575",
22
- DEFAULT: "#333"
23
- };
24
- const turquoise = "#5ecbdd";
25
- const coral = "#ffa484";
26
- const amber = "#ffc25a";
27
- const red = "#ff7378";
28
- const green = {
29
- light: "#0fffb3",
30
- DEFAULT: "#00da94",
31
- dark: "#00a873"
32
- };
33
- const blue = "#2ea2ea";
34
- const deprecatedBlueGhost = "#2ea2ea0f";
35
- const deprecatedDriver = "#ffd988";
36
- const deprecatedSeasonLow = "#BDFFAC";
37
- const deprecatedSeasonMedium = "#94EA84";
38
- const deprecatedSeasonHigh = "#73C865";
39
- const deprecatedSeasonVeryHigh = "#54A949";
40
- var _colors = {
41
- white: white,
42
- grey: grey,
43
- indigo: indigo,
44
- purple: purple,
45
- graphite: graphite,
46
- turquoise: turquoise,
47
- coral: coral,
48
- amber: amber,
49
- red: red,
50
- green: green,
51
- blue: blue,
52
- deprecatedBlueGhost: deprecatedBlueGhost,
53
- deprecatedDriver: deprecatedDriver,
54
- deprecatedSeasonLow: deprecatedSeasonLow,
55
- deprecatedSeasonMedium: deprecatedSeasonMedium,
56
- deprecatedSeasonHigh: deprecatedSeasonHigh,
57
- deprecatedSeasonVeryHigh: deprecatedSeasonVeryHigh
58
- };
59
-
60
- exports.amber = amber;
61
- exports.blue = blue;
62
- exports.coral = coral;
63
- exports["default"] = _colors;
64
- exports.deprecatedBlueGhost = deprecatedBlueGhost;
65
- exports.deprecatedDriver = deprecatedDriver;
66
- exports.deprecatedSeasonHigh = deprecatedSeasonHigh;
67
- exports.deprecatedSeasonLow = deprecatedSeasonLow;
68
- exports.deprecatedSeasonMedium = deprecatedSeasonMedium;
69
- exports.deprecatedSeasonVeryHigh = deprecatedSeasonVeryHigh;
70
- exports.graphite = graphite;
71
- exports.green = green;
72
- exports.grey = grey;
73
- exports.indigo = indigo;
74
- exports.purple = purple;
75
- exports.red = red;
76
- exports.turquoise = turquoise;
77
- exports.white = white;
78
- //# sourceMappingURL=colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,57 +0,0 @@
1
- const white = "#fff";
2
- const grey = {
3
- lighter: "#f8f7f8",
4
- light: "#edebed",
5
- DEFAULT: "#dbd8dc",
6
- dark: "#a49da7"
7
- };
8
- const indigo = {
9
- DEFAULT: "#61366b",
10
- dark: "#390446"
11
- };
12
- const purple = {
13
- light: "#d076ca",
14
- DEFAULT: "#b01aa7"
15
- };
16
- const graphite = {
17
- light: "#757575",
18
- DEFAULT: "#333"
19
- };
20
- const turquoise = "#5ecbdd";
21
- const coral = "#ffa484";
22
- const amber = "#ffc25a";
23
- const red = "#ff7378";
24
- const green = {
25
- light: "#0fffb3",
26
- DEFAULT: "#00da94",
27
- dark: "#00a873"
28
- };
29
- const blue = "#2ea2ea";
30
- const deprecatedBlueGhost = "#2ea2ea0f";
31
- const deprecatedDriver = "#ffd988";
32
- const deprecatedSeasonLow = "#BDFFAC";
33
- const deprecatedSeasonMedium = "#94EA84";
34
- const deprecatedSeasonHigh = "#73C865";
35
- const deprecatedSeasonVeryHigh = "#54A949";
36
- var require$$2 = {
37
- white: white,
38
- grey: grey,
39
- indigo: indigo,
40
- purple: purple,
41
- graphite: graphite,
42
- turquoise: turquoise,
43
- coral: coral,
44
- amber: amber,
45
- red: red,
46
- green: green,
47
- blue: blue,
48
- deprecatedBlueGhost: deprecatedBlueGhost,
49
- deprecatedDriver: deprecatedDriver,
50
- deprecatedSeasonLow: deprecatedSeasonLow,
51
- deprecatedSeasonMedium: deprecatedSeasonMedium,
52
- deprecatedSeasonHigh: deprecatedSeasonHigh,
53
- deprecatedSeasonVeryHigh: deprecatedSeasonVeryHigh
54
- };
55
-
56
- export { amber, blue, coral, require$$2 as default, deprecatedBlueGhost, deprecatedDriver, deprecatedSeasonHigh, deprecatedSeasonLow, deprecatedSeasonMedium, deprecatedSeasonVeryHigh, graphite, green, grey, indigo, purple, red, turquoise, white };
57
- //# sourceMappingURL=colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}