@drivy/cobalt 0.22.0 → 0.24.0

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 (362) hide show
  1. package/components/Buttons/ButtonComponent.js +1 -2
  2. package/components/Buttons/ButtonComponent.js.map +1 -1
  3. package/components/Buttons/ButtonsGroup.js +1 -5
  4. package/components/Buttons/ButtonsGroup.js.map +1 -1
  5. package/components/EmptyState/index.js +2 -2
  6. package/components/EmptyState/index.js.map +1 -1
  7. package/components/Form/Stepper.js +3 -3
  8. package/components/Form/Stepper.js.map +1 -1
  9. package/components/Rating/RatingCompact.js +4 -2
  10. package/components/Rating/RatingCompact.js.map +1 -1
  11. package/components/Rating/index.js +1 -4
  12. package/components/Rating/index.js.map +1 -1
  13. package/index.js +3 -3
  14. package/package.json +17 -15
  15. package/styles/components.scss +1 -1
  16. package/styles/core/fonts.scss +7 -0
  17. package/styles/core.scss +1 -0
  18. package/styles/fonts/README.md +14 -0
  19. package/types/components/Accordion/ToggleIcon.d.ts +1 -1
  20. package/types/components/Accordion/index.d.ts +6 -6
  21. package/types/components/Alerter/Alert.d.ts +2 -2
  22. package/types/components/Alerter/index.d.ts +4 -4
  23. package/types/components/Buttons/ButtonComponent.d.ts +2 -2
  24. package/types/components/Buttons/DefaultButton/index.d.ts +3 -3
  25. package/types/components/Buttons/GhostButton/index.d.ts +3 -3
  26. package/types/components/Buttons/InversedButton/index.d.ts +3 -3
  27. package/types/components/Buttons/helpers.d.ts +2 -2
  28. package/types/components/Buttons/index.d.ts +1 -1
  29. package/types/components/Calendar/CalendarRangePicker/CalendarRangePicker.d.ts +1 -1
  30. package/types/components/Calendar/CalendarRangePicker/CalendarRangePickerDay.d.ts +1 -1
  31. package/types/components/Calendar/CalendarRangePicker/CalendarRangePickerMonth.d.ts +1 -1
  32. package/types/components/Calendar/CalendarView/CalendarViewMonth.d.ts +1 -1
  33. package/types/components/Calendar/CalendarView/index.d.ts +1 -1
  34. package/types/components/Calendar/CalendarView/types.d.ts +7 -7
  35. package/types/components/Card/index.d.ts +3 -3
  36. package/types/components/Cell/index.d.ts +4 -4
  37. package/types/components/EmptyState/index.d.ts +3 -3
  38. package/types/components/Flash/index.d.ts +1 -1
  39. package/types/components/Form/Autocomplete/index.d.ts +1 -1
  40. package/types/components/Form/CheckablePill.d.ts +1 -1
  41. package/types/components/Form/Checkmark.d.ts +2 -2
  42. package/types/components/Form/ComposedField.d.ts +1 -1
  43. package/types/components/Form/Fieldset.d.ts +1 -1
  44. package/types/components/Form/RadioWithDetails.d.ts +1 -1
  45. package/types/components/Form/Select.d.ts +1 -1
  46. package/types/components/Form/Slider.d.ts +3 -3
  47. package/types/components/Form/Stepper.d.ts +2 -2
  48. package/types/components/Form/TextArea.d.ts +1 -1
  49. package/types/components/Form/TextInput.d.ts +2 -2
  50. package/types/components/Form/ToggleSwitch.d.ts +2 -2
  51. package/types/components/Form/field.d.ts +1 -1
  52. package/types/components/Form/form.d.ts +1 -1
  53. package/types/components/Helper/index.d.ts +1 -1
  54. package/types/components/HorizontalList/index.d.ts +2 -2
  55. package/types/components/Icon/__generated__/AccountDetailsIcon.d.ts +1 -1
  56. package/types/components/Icon/__generated__/AddPictureIcon.d.ts +1 -1
  57. package/types/components/Icon/__generated__/AirConditioningIcon.d.ts +1 -1
  58. package/types/components/Icon/__generated__/AirportIcon.d.ts +1 -1
  59. package/types/components/Icon/__generated__/AndroidIcon.d.ts +1 -1
  60. package/types/components/Icon/__generated__/AntiqueIcon.d.ts +1 -1
  61. package/types/components/Icon/__generated__/ArrowLeftCircleFilledIcon.d.ts +1 -1
  62. package/types/components/Icon/__generated__/ArrowLeftIcon.d.ts +1 -1
  63. package/types/components/Icon/__generated__/ArrowRightCircleFilledIcon.d.ts +1 -1
  64. package/types/components/Icon/__generated__/ArrowRightCircleIcon.d.ts +1 -1
  65. package/types/components/Icon/__generated__/ArrowRightIcon.d.ts +1 -1
  66. package/types/components/Icon/__generated__/AudioInputIcon.d.ts +1 -1
  67. package/types/components/Icon/__generated__/BabySeatIcon.d.ts +1 -1
  68. package/types/components/Icon/__generated__/BatteryIcon.d.ts +1 -1
  69. package/types/components/Icon/__generated__/BellIcon.d.ts +1 -1
  70. package/types/components/Icon/__generated__/BikeRackIcon.d.ts +1 -1
  71. package/types/components/Icon/__generated__/BinIcon.d.ts +1 -1
  72. package/types/components/Icon/__generated__/BluetoothIcon.d.ts +1 -1
  73. package/types/components/Icon/__generated__/BriefcaseIcon.d.ts +1 -1
  74. package/types/components/Icon/__generated__/BulbIcon.d.ts +1 -1
  75. package/types/components/Icon/__generated__/CableIcon.d.ts +1 -1
  76. package/types/components/Icon/__generated__/CabrioletIcon.d.ts +1 -1
  77. package/types/components/Icon/__generated__/CalendarCheckIcon.d.ts +1 -1
  78. package/types/components/Icon/__generated__/CalendarClockIcon.d.ts +1 -1
  79. package/types/components/Icon/__generated__/CalendarEndIcon.d.ts +1 -1
  80. package/types/components/Icon/__generated__/CalendarIcon.d.ts +1 -1
  81. package/types/components/Icon/__generated__/CalendarStartIcon.d.ts +1 -1
  82. package/types/components/Icon/__generated__/CameraAddIcon.d.ts +1 -1
  83. package/types/components/Icon/__generated__/CameraIcon.d.ts +1 -1
  84. package/types/components/Icon/__generated__/CampervanIcon.d.ts +1 -1
  85. package/types/components/Icon/__generated__/CarAddIcon.d.ts +1 -1
  86. package/types/components/Icon/__generated__/CarCheckIcon.d.ts +1 -1
  87. package/types/components/Icon/__generated__/CarDamagesIcon.d.ts +1 -1
  88. package/types/components/Icon/__generated__/CarDrivyOpenIcon.d.ts +1 -1
  89. package/types/components/Icon/__generated__/CarGroupIcon.d.ts +1 -1
  90. package/types/components/Icon/__generated__/CarIcon.d.ts +1 -1
  91. package/types/components/Icon/__generated__/CarLockIcon.d.ts +1 -1
  92. package/types/components/Icon/__generated__/CarPlayIcon.d.ts +1 -1
  93. package/types/components/Icon/__generated__/CarReturnIcon.d.ts +1 -1
  94. package/types/components/Icon/__generated__/CarSearchIcon.d.ts +1 -1
  95. package/types/components/Icon/__generated__/CarTypeAntiqueIcon.d.ts +1 -1
  96. package/types/components/Icon/__generated__/CarTypeCabrioletIcon.d.ts +1 -1
  97. package/types/components/Icon/__generated__/CarTypeCampervanIcon.d.ts +1 -1
  98. package/types/components/Icon/__generated__/CarTypeCityIcon.d.ts +1 -1
  99. package/types/components/Icon/__generated__/CarTypeConvertibleIcon.d.ts +1 -1
  100. package/types/components/Icon/__generated__/CarTypeCoupeIcon.d.ts +1 -1
  101. package/types/components/Icon/__generated__/CarTypeFamilyIcon.d.ts +1 -1
  102. package/types/components/Icon/__generated__/CarTypeFourFourIcon.d.ts +1 -1
  103. package/types/components/Icon/__generated__/CarTypeMinibusIcon.d.ts +1 -1
  104. package/types/components/Icon/__generated__/CarTypeSedanIcon.d.ts +1 -1
  105. package/types/components/Icon/__generated__/CarTypeUtilityIcon.d.ts +1 -1
  106. package/types/components/Icon/__generated__/CardIcon.d.ts +1 -1
  107. package/types/components/Icon/__generated__/CdPlayerIcon.d.ts +1 -1
  108. package/types/components/Icon/__generated__/CertificateIcon.d.ts +1 -1
  109. package/types/components/Icon/__generated__/ChainsIcon.d.ts +1 -1
  110. package/types/components/Icon/__generated__/CheckCircleFilledIcon.d.ts +1 -1
  111. package/types/components/Icon/__generated__/CheckCircleIcon.d.ts +1 -1
  112. package/types/components/Icon/__generated__/CheckIcon.d.ts +1 -1
  113. package/types/components/Icon/__generated__/ChecklistIcon.d.ts +1 -1
  114. package/types/components/Icon/__generated__/ChevronDownIcon.d.ts +1 -1
  115. package/types/components/Icon/__generated__/ChevronLeftIcon.d.ts +1 -1
  116. package/types/components/Icon/__generated__/ChevronRightIcon.d.ts +1 -1
  117. package/types/components/Icon/__generated__/ChevronUpIcon.d.ts +1 -1
  118. package/types/components/Icon/__generated__/CircledArrowRightIcon.d.ts +1 -1
  119. package/types/components/Icon/__generated__/CityIcon.d.ts +1 -1
  120. package/types/components/Icon/__generated__/CleaningIcon.d.ts +1 -1
  121. package/types/components/Icon/__generated__/ClockAlertIcon.d.ts +1 -1
  122. package/types/components/Icon/__generated__/ClockBackwardsIcon.d.ts +1 -1
  123. package/types/components/Icon/__generated__/ClockForwardsIcon.d.ts +1 -1
  124. package/types/components/Icon/__generated__/ClockIcon.d.ts +1 -1
  125. package/types/components/Icon/__generated__/CloseCircleFilledIcon.d.ts +1 -1
  126. package/types/components/Icon/__generated__/CloseIcon.d.ts +1 -1
  127. package/types/components/Icon/__generated__/ConnectCarIcon.d.ts +1 -1
  128. package/types/components/Icon/__generated__/ContactMailIcon.d.ts +1 -1
  129. package/types/components/Icon/__generated__/ContactPhoneIcon.d.ts +1 -1
  130. package/types/components/Icon/__generated__/ContextualPaperclipIcon.d.ts +1 -1
  131. package/types/components/Icon/__generated__/ContextualQuestionIcon.d.ts +1 -1
  132. package/types/components/Icon/__generated__/ContextualWarningCircleFilledIcon.d.ts +1 -1
  133. package/types/components/Icon/__generated__/ContextualWarningCircleIcon.d.ts +1 -1
  134. package/types/components/Icon/__generated__/ConvertibleIcon.d.ts +1 -1
  135. package/types/components/Icon/__generated__/CopyIcon.d.ts +1 -1
  136. package/types/components/Icon/__generated__/CoupeIcon.d.ts +1 -1
  137. package/types/components/Icon/__generated__/CreditCardAddIcon.d.ts +1 -1
  138. package/types/components/Icon/__generated__/CreditCardErrorIcon.d.ts +1 -1
  139. package/types/components/Icon/__generated__/CreditCardIcon.d.ts +1 -1
  140. package/types/components/Icon/__generated__/CruiseControlIcon.d.ts +1 -1
  141. package/types/components/Icon/__generated__/DashcamIcon.d.ts +1 -1
  142. package/types/components/Icon/__generated__/DirectionsIcon.d.ts +1 -1
  143. package/types/components/Icon/__generated__/DocumentIcon.d.ts +1 -1
  144. package/types/components/Icon/__generated__/DotHorizontalIcon.d.ts +1 -1
  145. package/types/components/Icon/__generated__/DotVerticalIcon.d.ts +1 -1
  146. package/types/components/Icon/__generated__/DotsHorizontalIcon.d.ts +1 -1
  147. package/types/components/Icon/__generated__/DotsVerticalIcon.d.ts +1 -1
  148. package/types/components/Icon/__generated__/DownloadIcon.d.ts +1 -1
  149. package/types/components/Icon/__generated__/EarningIcon.d.ts +1 -1
  150. package/types/components/Icon/__generated__/EarthIcon.d.ts +1 -1
  151. package/types/components/Icon/__generated__/EditIcon.d.ts +1 -1
  152. package/types/components/Icon/__generated__/ElectricIcon.d.ts +1 -1
  153. package/types/components/Icon/__generated__/EvBatteryIcon.d.ts +1 -1
  154. package/types/components/Icon/__generated__/EvCableIcon.d.ts +1 -1
  155. package/types/components/Icon/__generated__/EvChargerIcon.d.ts +1 -1
  156. package/types/components/Icon/__generated__/ExternalLinkIcon.d.ts +1 -1
  157. package/types/components/Icon/__generated__/EyeClosedIcon.d.ts +1 -1
  158. package/types/components/Icon/__generated__/EyeIcon.d.ts +1 -1
  159. package/types/components/Icon/__generated__/EyeOpenedIcon.d.ts +1 -1
  160. package/types/components/Icon/__generated__/FaceRecognitionIcon.d.ts +1 -1
  161. package/types/components/Icon/__generated__/FacebookIcon.d.ts +1 -1
  162. package/types/components/Icon/__generated__/FamilyIcon.d.ts +1 -1
  163. package/types/components/Icon/__generated__/FileFilledIcon.d.ts +1 -1
  164. package/types/components/Icon/__generated__/FilterIcon.d.ts +1 -1
  165. package/types/components/Icon/__generated__/FiltersIcon.d.ts +1 -1
  166. package/types/components/Icon/__generated__/FlagIcon.d.ts +1 -1
  167. package/types/components/Icon/__generated__/FourByFourIcon.d.ts +1 -1
  168. package/types/components/Icon/__generated__/FuelTankIcon.d.ts +1 -1
  169. package/types/components/Icon/__generated__/GeolocationIcon.d.ts +1 -1
  170. package/types/components/Icon/__generated__/GiftIcon.d.ts +1 -1
  171. package/types/components/Icon/__generated__/GpsIcon.d.ts +1 -1
  172. package/types/components/Icon/__generated__/GraphUpIcon.d.ts +1 -1
  173. package/types/components/Icon/__generated__/HealingIcon.d.ts +1 -1
  174. package/types/components/Icon/__generated__/HeartIcon.d.ts +1 -1
  175. package/types/components/Icon/__generated__/HitchIcon.d.ts +1 -1
  176. package/types/components/Icon/__generated__/HomeIcon.d.ts +1 -1
  177. package/types/components/Icon/__generated__/IdCardIcon.d.ts +1 -1
  178. package/types/components/Icon/__generated__/IncidentIcon.d.ts +1 -1
  179. package/types/components/Icon/__generated__/InfoCircleFilledIcon.d.ts +1 -1
  180. package/types/components/Icon/__generated__/InfoCircleIcon.d.ts +1 -1
  181. package/types/components/Icon/__generated__/InfoFilledIcon.d.ts +1 -1
  182. package/types/components/Icon/__generated__/InfoIcon.d.ts +1 -1
  183. package/types/components/Icon/__generated__/InstantIcon.d.ts +1 -1
  184. package/types/components/Icon/__generated__/InvoiceIcon.d.ts +1 -1
  185. package/types/components/Icon/__generated__/KeyConnectIcon.d.ts +1 -1
  186. package/types/components/Icon/__generated__/KeyIcon.d.ts +1 -1
  187. package/types/components/Icon/__generated__/LicenceCheckIcon.d.ts +1 -1
  188. package/types/components/Icon/__generated__/LicenceIcon.d.ts +1 -1
  189. package/types/components/Icon/__generated__/LicencePaperIcon.d.ts +1 -1
  190. package/types/components/Icon/__generated__/LifeBuoyIcon.d.ts +1 -1
  191. package/types/components/Icon/__generated__/LinkedinIcon.d.ts +1 -1
  192. package/types/components/Icon/__generated__/LoadingIcon.d.ts +1 -1
  193. package/types/components/Icon/__generated__/LocalityIcon.d.ts +1 -1
  194. package/types/components/Icon/__generated__/LocationIcon.d.ts +1 -1
  195. package/types/components/Icon/__generated__/LocationMapIcon.d.ts +1 -1
  196. package/types/components/Icon/__generated__/LocationParkingIcon.d.ts +1 -1
  197. package/types/components/Icon/__generated__/LocationPinIcon.d.ts +1 -1
  198. package/types/components/Icon/__generated__/LockCheckIcon.d.ts +1 -1
  199. package/types/components/Icon/__generated__/LockedIcon.d.ts +1 -1
  200. package/types/components/Icon/__generated__/LoginIcon.d.ts +1 -1
  201. package/types/components/Icon/__generated__/LogoutIcon.d.ts +1 -1
  202. package/types/components/Icon/__generated__/MailCheckIcon.d.ts +1 -1
  203. package/types/components/Icon/__generated__/MailIcon.d.ts +1 -1
  204. package/types/components/Icon/__generated__/MapAltIcon.d.ts +1 -1
  205. package/types/components/Icon/__generated__/MapIcon.d.ts +1 -1
  206. package/types/components/Icon/__generated__/MeetDriverIcon.d.ts +1 -1
  207. package/types/components/Icon/__generated__/MeetOwnerIcon.d.ts +1 -1
  208. package/types/components/Icon/__generated__/MenuListIcon.d.ts +1 -1
  209. package/types/components/Icon/__generated__/MessagesIcon.d.ts +1 -1
  210. package/types/components/Icon/__generated__/MileageIcon.d.ts +1 -1
  211. package/types/components/Icon/__generated__/MinibusIcon.d.ts +1 -1
  212. package/types/components/Icon/__generated__/MinusCircleFilledIcon.d.ts +1 -1
  213. package/types/components/Icon/__generated__/MinusIcon.d.ts +1 -1
  214. package/types/components/Icon/__generated__/MiscGiftIcon.d.ts +1 -1
  215. package/types/components/Icon/__generated__/NearbyDeviceIcon.d.ts +1 -1
  216. package/types/components/Icon/__generated__/NotificationIcon.d.ts +1 -1
  217. package/types/components/Icon/__generated__/Number1CircleIcon.d.ts +1 -1
  218. package/types/components/Icon/__generated__/Number2CircleIcon.d.ts +1 -1
  219. package/types/components/Icon/__generated__/Number3CircleIcon.d.ts +1 -1
  220. package/types/components/Icon/__generated__/Number4CircleIcon.d.ts +1 -1
  221. package/types/components/Icon/__generated__/Number5CircleIcon.d.ts +1 -1
  222. package/types/components/Icon/__generated__/OkHandIcon.d.ts +1 -1
  223. package/types/components/Icon/__generated__/OptionAirConditioningIcon.d.ts +1 -1
  224. package/types/components/Icon/__generated__/OptionAndroidAutoIcon.d.ts +1 -1
  225. package/types/components/Icon/__generated__/OptionAppleCarplayIcon.d.ts +1 -1
  226. package/types/components/Icon/__generated__/OptionAudioInputIcon.d.ts +1 -1
  227. package/types/components/Icon/__generated__/OptionBabySeatIcon.d.ts +1 -1
  228. package/types/components/Icon/__generated__/OptionBikeRackIcon.d.ts +1 -1
  229. package/types/components/Icon/__generated__/OptionBluetoothAudioIcon.d.ts +1 -1
  230. package/types/components/Icon/__generated__/OptionCdPlayerIcon.d.ts +1 -1
  231. package/types/components/Icon/__generated__/OptionChainsIcon.d.ts +1 -1
  232. package/types/components/Icon/__generated__/OptionCruiseControlIcon.d.ts +1 -1
  233. package/types/components/Icon/__generated__/OptionDashcamIcon.d.ts +1 -1
  234. package/types/components/Icon/__generated__/OptionGpsIcon.d.ts +1 -1
  235. package/types/components/Icon/__generated__/OptionHasTrailerIcon.d.ts +1 -1
  236. package/types/components/Icon/__generated__/OptionHitchIcon.d.ts +1 -1
  237. package/types/components/Icon/__generated__/OptionRoofBoxIcon.d.ts +1 -1
  238. package/types/components/Icon/__generated__/OptionSkiRackIcon.d.ts +1 -1
  239. package/types/components/Icon/__generated__/OptionSnowTireIcon.d.ts +1 -1
  240. package/types/components/Icon/__generated__/OptionWheelchairAccessibleIcon.d.ts +1 -1
  241. package/types/components/Icon/__generated__/PaperclipIcon.d.ts +1 -1
  242. package/types/components/Icon/__generated__/ParkingIcon.d.ts +1 -1
  243. package/types/components/Icon/__generated__/PassportIcon.d.ts +1 -1
  244. package/types/components/Icon/__generated__/PaymentsIcon.d.ts +1 -1
  245. package/types/components/Icon/__generated__/PencilIcon.d.ts +1 -1
  246. package/types/components/Icon/__generated__/PeopleUserIcon.d.ts +1 -1
  247. package/types/components/Icon/__generated__/PerformanceIcon.d.ts +1 -1
  248. package/types/components/Icon/__generated__/PhoneIcon.d.ts +1 -1
  249. package/types/components/Icon/__generated__/PhoneLinkIcon.d.ts +1 -1
  250. package/types/components/Icon/__generated__/PhotosIcon.d.ts +1 -1
  251. package/types/components/Icon/__generated__/PigIcon.d.ts +1 -1
  252. package/types/components/Icon/__generated__/PinIcon.d.ts +1 -1
  253. package/types/components/Icon/__generated__/PlugIcon.d.ts +1 -1
  254. package/types/components/Icon/__generated__/PlusCircleFilledIcon.d.ts +1 -1
  255. package/types/components/Icon/__generated__/PlusIcon.d.ts +1 -1
  256. package/types/components/Icon/__generated__/PositionIcon.d.ts +1 -1
  257. package/types/components/Icon/__generated__/PricingFlatIcon.d.ts +1 -1
  258. package/types/components/Icon/__generated__/PricingVariableIcon.d.ts +1 -1
  259. package/types/components/Icon/__generated__/ProfilePictureIcon.d.ts +1 -1
  260. package/types/components/Icon/__generated__/QuestionCircleFilledIcon.d.ts +1 -1
  261. package/types/components/Icon/__generated__/QuestionCircleIcon.d.ts +1 -1
  262. package/types/components/Icon/__generated__/QuestionIcon.d.ts +1 -1
  263. package/types/components/Icon/__generated__/RaceFlagIcon.d.ts +1 -1
  264. package/types/components/Icon/__generated__/RefreshIcon.d.ts +1 -1
  265. package/types/components/Icon/__generated__/ReorderIcon.d.ts +1 -1
  266. package/types/components/Icon/__generated__/ReplacementCarIcon.d.ts +1 -1
  267. package/types/components/Icon/__generated__/ReplyIcon.d.ts +1 -1
  268. package/types/components/Icon/__generated__/ResetIcon.d.ts +1 -1
  269. package/types/components/Icon/__generated__/RideIcon.d.ts +1 -1
  270. package/types/components/Icon/__generated__/RoofBoxIcon.d.ts +1 -1
  271. package/types/components/Icon/__generated__/SealCheckIcon.d.ts +1 -1
  272. package/types/components/Icon/__generated__/SearchCarIcon.d.ts +1 -1
  273. package/types/components/Icon/__generated__/SearchIcon.d.ts +1 -1
  274. package/types/components/Icon/__generated__/SearchPeopleIcon.d.ts +1 -1
  275. package/types/components/Icon/__generated__/SedanIcon.d.ts +1 -1
  276. package/types/components/Icon/__generated__/ServiceBatteryIcon.d.ts +1 -1
  277. package/types/components/Icon/__generated__/ServiceCleaningIcon.d.ts +1 -1
  278. package/types/components/Icon/__generated__/ServiceFuelIcon.d.ts +1 -1
  279. package/types/components/Icon/__generated__/ServiceHealingIcon.d.ts +1 -1
  280. package/types/components/Icon/__generated__/ServiceLockedIcon.d.ts +1 -1
  281. package/types/components/Icon/__generated__/ServiceTollsIcon.d.ts +1 -1
  282. package/types/components/Icon/__generated__/ServiceUnlockedIcon.d.ts +1 -1
  283. package/types/components/Icon/__generated__/SettingsIcon.d.ts +1 -1
  284. package/types/components/Icon/__generated__/ShareAndroidIcon.d.ts +1 -1
  285. package/types/components/Icon/__generated__/ShareIcon.d.ts +1 -1
  286. package/types/components/Icon/__generated__/ShareIosIcon.d.ts +1 -1
  287. package/types/components/Icon/__generated__/ShieldCheckIcon.d.ts +1 -1
  288. package/types/components/Icon/__generated__/ShieldIcon.d.ts +1 -1
  289. package/types/components/Icon/__generated__/ShopIcon.d.ts +1 -1
  290. package/types/components/Icon/__generated__/SkiRackIcon.d.ts +1 -1
  291. package/types/components/Icon/__generated__/SliderIcon.d.ts +1 -1
  292. package/types/components/Icon/__generated__/SmartphoneIcon.d.ts +1 -1
  293. package/types/components/Icon/__generated__/SnowTireIcon.d.ts +1 -1
  294. package/types/components/Icon/__generated__/SocialFacebookIcon.d.ts +1 -1
  295. package/types/components/Icon/__generated__/SocialLinkedinIcon.d.ts +1 -1
  296. package/types/components/Icon/__generated__/SocialTwitterIcon.d.ts +1 -1
  297. package/types/components/Icon/__generated__/SocialWhatsappIcon.d.ts +1 -1
  298. package/types/components/Icon/__generated__/StarHalfIcon.d.ts +1 -1
  299. package/types/components/Icon/__generated__/StarIcon.d.ts +1 -1
  300. package/types/components/Icon/__generated__/StarsIcon.d.ts +1 -1
  301. package/types/components/Icon/__generated__/SubwayIcon.d.ts +1 -1
  302. package/types/components/Icon/__generated__/SuitcaseIcon.d.ts +1 -1
  303. package/types/components/Icon/__generated__/SupportIcon.d.ts +1 -1
  304. package/types/components/Icon/__generated__/SuvIcon.d.ts +1 -1
  305. package/types/components/Icon/__generated__/SynchIcon.d.ts +1 -1
  306. package/types/components/Icon/__generated__/TagIcon.d.ts +1 -1
  307. package/types/components/Icon/__generated__/TimeAlertIcon.d.ts +1 -1
  308. package/types/components/Icon/__generated__/TimeBackwardsIcon.d.ts +1 -1
  309. package/types/components/Icon/__generated__/TimeCalendarIcon.d.ts +1 -1
  310. package/types/components/Icon/__generated__/TimeForwardIcon.d.ts +1 -1
  311. package/types/components/Icon/__generated__/TollsIcon.d.ts +1 -1
  312. package/types/components/Icon/__generated__/TrailerIcon.d.ts +1 -1
  313. package/types/components/Icon/__generated__/TrainIcon.d.ts +1 -1
  314. package/types/components/Icon/__generated__/TriangleDownIcon.d.ts +1 -1
  315. package/types/components/Icon/__generated__/TriangleRightIcon.d.ts +1 -1
  316. package/types/components/Icon/__generated__/TriangleUpIcon.d.ts +1 -1
  317. package/types/components/Icon/__generated__/TwitterIcon.d.ts +1 -1
  318. package/types/components/Icon/__generated__/TwoPeopleIcon.d.ts +1 -1
  319. package/types/components/Icon/__generated__/UnfoldIcon.d.ts +1 -1
  320. package/types/components/Icon/__generated__/UnlockedIcon.d.ts +1 -1
  321. package/types/components/Icon/__generated__/UserCheckIcon.d.ts +1 -1
  322. package/types/components/Icon/__generated__/UserIcon.d.ts +1 -1
  323. package/types/components/Icon/__generated__/UserQuestionIcon.d.ts +1 -1
  324. package/types/components/Icon/__generated__/UserShieldIcon.d.ts +1 -1
  325. package/types/components/Icon/__generated__/UserSwitchIcon.d.ts +1 -1
  326. package/types/components/Icon/__generated__/UtilityVanLargeIcon.d.ts +1 -1
  327. package/types/components/Icon/__generated__/UtilityVanMediumIcon.d.ts +1 -1
  328. package/types/components/Icon/__generated__/UtilityVanSmallIcon.d.ts +1 -1
  329. package/types/components/Icon/__generated__/VerifiedSealIcon.d.ts +1 -1
  330. package/types/components/Icon/__generated__/WalkIcon.d.ts +1 -1
  331. package/types/components/Icon/__generated__/WalletIcon.d.ts +1 -1
  332. package/types/components/Icon/__generated__/WarningCircleFilledIcon.d.ts +1 -1
  333. package/types/components/Icon/__generated__/WarningCircleIcon.d.ts +1 -1
  334. package/types/components/Icon/__generated__/WhatsappIcon.d.ts +1 -1
  335. package/types/components/Icon/__generated__/WheelIcon.d.ts +1 -1
  336. package/types/components/Icon/__generated__/WheelchairIcon.d.ts +1 -1
  337. package/types/components/Icon/__generated__/WrenchIcon.d.ts +1 -1
  338. package/types/components/Icon/__generated__/YingyangIcon.d.ts +1 -1
  339. package/types/components/Icon/index.d.ts +2 -2
  340. package/types/components/Modal/ModalFooter.d.ts +1 -1
  341. package/types/components/Modal/index.d.ts +1 -1
  342. package/types/components/PhotoDropzone/index.d.ts +1 -1
  343. package/types/components/Popover/index.d.ts +1 -1
  344. package/types/components/Rating/RatingCompact.d.ts +2 -1
  345. package/types/components/Rating/RatingIcons.d.ts +2 -2
  346. package/types/components/Rating/RatingInput.d.ts +1 -1
  347. package/types/components/Rating/RatingLabel.d.ts +1 -1
  348. package/types/components/Rating/index.d.ts +2 -3
  349. package/types/components/Tabs/index.d.ts +2 -2
  350. package/types/hooks/useBreakpoint.d.ts +1 -1
  351. package/types/index.d.ts +1 -1
  352. package/components/Button/Button.js +0 -33
  353. package/components/Button/Button.js.map +0 -1
  354. package/components/Button/Link.js +0 -33
  355. package/components/Button/Link.js.map +0 -1
  356. package/components/Button/index.js +0 -9
  357. package/components/Button/index.js.map +0 -1
  358. package/styles/components/Button/index.scss +0 -2
  359. package/styles/components/Button/legacy.scss +0 -348
  360. package/types/components/Button/Button.d.ts +0 -28
  361. package/types/components/Button/Link.d.ts +0 -28
  362. package/types/components/Button/index.d.ts +0 -75
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconColorsType } from "../";
3
- export declare type IconProps = {
3
+ export type IconProps = {
4
4
  color?: IconColorsType;
5
5
  size?: 16 | 20 | 24 | 32;
6
6
  contained?: boolean;
@@ -4,9 +4,9 @@ interface IconsMap {
4
4
  [name: string]: string | undefined;
5
5
  }
6
6
  export declare const BUNDLED_ICONS: IconsMap;
7
- export declare type IconSources = keyof typeof iconTokens.icons;
7
+ export type IconSources = keyof typeof iconTokens.icons;
8
8
  export declare const iconColors: ("info" | "amber" | "blue" | "coral" | "graphite" | "graphiteLight" | "green" | "greenDark" | "greenLight" | "grey" | "greyDark" | "greyLight" | "greyLighter" | "indigo" | "indigoDark" | "purple" | "purpleLight" | "red" | "turquoise" | "white" | "accent" | "accentInteractive" | "accentAlt" | "accentAltInteractive" | "base" | "baseInteractive" | "connect" | "driver" | "error" | "errorAlt" | "infoAlt" | "inversed" | "owner" | "subdued" | "subduedInteractive" | "success" | "successAlt" | "warning")[];
9
- export declare type IconColorsType = typeof iconColors[number];
9
+ export type IconColorsType = typeof iconColors[number];
10
10
  export interface IconProps {
11
11
  source: IconSources;
12
12
  /**
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type ModalFooterPropsType = {
2
+ export type ModalFooterPropsType = {
3
3
  children?: React.ReactNode;
4
4
  className?: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ModalFooterPropsType } from "./ModalFooter";
3
- export declare type ModalPropsType = {
3
+ export type ModalPropsType = {
4
4
  /**
5
5
  * mandatory for A11y
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- export declare type PhotoDropzonePropsType = {
2
+ export type PhotoDropzonePropsType = {
3
3
  className?: string;
4
4
  description: string;
5
5
  deletePopoverContent: (onDelete: () => void, close: () => void) => ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { TippyProps } from "@tippyjs/react";
3
- export declare type PopoverPropsType = {
3
+ export type PopoverPropsType = {
4
4
  children?: React.ReactNode;
5
5
  isOpen: boolean;
6
6
  close: () => void;
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { RatingIconsPropsType } from "./RatingIcons";
3
- declare type RatingCompactPropsType = Pick<RatingIconsPropsType, "className" | "value" | "size"> & {
3
+ type RatingCompactPropsType = Pick<RatingIconsPropsType, "className" | "value" | "size"> & {
4
4
  icon?: JSX.Element;
5
5
  count?: number;
6
6
  };
7
+ export declare function formatRatingValue(value: number): string | number;
7
8
  export declare function RatingCompact({ className, value, count, size, icon, }: RatingCompactPropsType): JSX.Element;
8
9
  export {};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IconProps } from "../Icon";
3
- export declare type RatingIconsPropsType = {
3
+ export type RatingIconsPropsType = {
4
4
  className?: string;
5
5
  max?: 5 | 10;
6
6
  value: number;
@@ -10,7 +10,7 @@ export declare type RatingIconsPropsType = {
10
10
  onChange?: (newValue: number) => void;
11
11
  icon?: JSX.Element | JSX.Element[];
12
12
  };
13
- export declare type RatingIconPropsType = {
13
+ export type RatingIconPropsType = {
14
14
  icon: JSX.Element;
15
15
  status?: "full" | "half" | "empty";
16
16
  size?: RatingIconsPropsType["size"];
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { RatingIconsPropsType } from "./RatingIcons";
3
- declare type RatingInputPropsType = Omit<RatingIconsPropsType, "editable">;
3
+ type RatingInputPropsType = Omit<RatingIconsPropsType, "editable">;
4
4
  export declare const RatingInput: ({ disabled, ...props }: RatingInputPropsType) => JSX.Element;
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type RatingLabelPropsType = {
2
+ type RatingLabelPropsType = {
3
3
  children?: React.ReactNode;
4
4
  };
5
5
  declare function RatingLabel({ children }: RatingLabelPropsType): JSX.Element;
@@ -1,12 +1,11 @@
1
1
  import React from "react";
2
2
  import { RatingIcons, RatingIconsPropsType } from "./RatingIcons";
3
3
  import { RatingInput } from "./RatingInput";
4
- import { RatingCompact } from "./RatingCompact";
4
+ import { RatingCompact, formatRatingValue } from "./RatingCompact";
5
5
  import RatingLabel from "./RatingLabel";
6
- declare type RatingPropsType = RatingIconsPropsType & {
6
+ type RatingPropsType = RatingIconsPropsType & {
7
7
  children?: React.ReactNode;
8
8
  iconsClassName?: RatingIconsPropsType["className"];
9
9
  };
10
- declare function formatRatingValue(value: number): string | number;
11
10
  declare function Rating({ className, iconsClassName, children, ...iconsProps }: RatingPropsType): JSX.Element;
12
11
  export { Rating, RatingLabel, RatingInput, RatingCompact, RatingIcons, formatRatingValue, };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type TabsPropsType = {
2
+ export type TabsPropsType = {
3
3
  children?: React.ReactNode;
4
4
  /**
5
5
  * Index of the initial actived tab (first tab by default)
@@ -14,7 +14,7 @@ export declare type TabsPropsType = {
14
14
  */
15
15
  subLevel?: boolean;
16
16
  };
17
- declare type TabPropsType = {
17
+ type TabPropsType = {
18
18
  children?: React.ReactNode;
19
19
  /**
20
20
  * Label/title of the tab
@@ -1,5 +1,5 @@
1
1
  import { breakpoints } from "../tokens";
2
- export declare type CobaltBreakpointType = keyof typeof breakpoints | "over";
2
+ export type CobaltBreakpointType = keyof typeof breakpoints | "over";
3
3
  export declare const cobaltBreakpoints: [CobaltBreakpointType, string][];
4
4
  /**
5
5
  * Hook to get the current Cobalt breakpoint according to the viewport size
package/types/index.d.ts CHANGED
@@ -2,10 +2,10 @@ export { default as Accordion, useAccordionItemContext, } from "./components/Acc
2
2
  export { default as Alerter, useAlerts } from "./components/Alerter";
3
3
  export { BasicCell } from "./components/BasicCell";
4
4
  export { BulletList, BulletListItem } from "./components/BulletList";
5
- export { Button, ButtonGroup } from "./components/Button";
6
5
  export { default as GhostButton } from "./components/Buttons/GhostButton";
7
6
  export { default as InversedButton } from "./components/Buttons/InversedButton";
8
7
  export { default as DefaultButton } from "./components/Buttons/DefaultButton";
8
+ export { default as ButtonsGroup } from "./components/Buttons/ButtonsGroup";
9
9
  export { Callout } from "./components/Callout";
10
10
  export { default as Cell, Cells } from "./components/Cell";
11
11
  export { EmptyState } from "./components/EmptyState";
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import GhostButton from '../Buttons/GhostButton/index.js';
3
- import InversedButton from '../Buttons/InversedButton/index.js';
4
- import DefaultButton from '../Buttons/DefaultButton/index.js';
5
- import { isLinkProps } from '../Buttons/ButtonComponent.js';
6
-
7
- const isInversedButtonProps = (props) => "inversed" in props && props.inversed === true && !isLinkProps(props);
8
- const isGhostButtonProps = (props) => "ghost" in props && props.ghost === true && !isLinkProps(props);
9
- const isDefaultButtonProps = (props) => !isGhostButtonProps(props) && !isInversedButtonProps(props);
10
- const Button = (props) => {
11
- const { forwardedRef, ...restButtonProps } = props;
12
- // We extract here API only props to not passed them and we pass some
13
- // common props directly
14
- if (isInversedButtonProps(restButtonProps)) {
15
- // inversed is a props only used for API here
16
- const { inversed: _inversed, ...restProps } = restButtonProps;
17
- return React.createElement(InversedButton, { ...restProps, ref: forwardedRef });
18
- }
19
- else if (isGhostButtonProps(restButtonProps)) {
20
- // ghost is a props only used for API here
21
- const { ghost: _ghost, ...restProps } = restButtonProps;
22
- return React.createElement(GhostButton, { ...restProps, ref: forwardedRef });
23
- }
24
- else if (isDefaultButtonProps(restButtonProps)) {
25
- return React.createElement(DefaultButton, { ...restButtonProps, ref: forwardedRef });
26
- }
27
- else {
28
- throw new Error("[Cobalt]: Unexpected Button Component props error");
29
- }
30
- };
31
-
32
- export { Button as default };
33
- //# sourceMappingURL=Button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import React, { Ref } from \"react\"\n\nimport Ghost, { GhostButtonPropsType } from \"../Buttons/GhostButton\"\nimport Inversed, { InversedButtonPropsType } from \"../Buttons/InversedButton\"\nimport Default, { DefaultButtonPropsType } from \"../Buttons/DefaultButton\"\nimport { isLinkProps } from \"../Buttons/ButtonComponent\"\n\ntype withButtonRef<Props> = Props & { forwardedRef?: Ref<HTMLButtonElement> }\n\n/**\n * We add API only props here since it's not related to the Buttons subcomponents\n */\ntype InversedButtonAPIPropsType = InversedButtonPropsType & { inversed?: true }\ntype GhostButtonAPIPropsType = GhostButtonPropsType & { ghost?: true }\ntype DefaultButtonAPIPropsType = DefaultButtonPropsType\n\n/**\n * Overloads\n */\ntype ButtonOverload = {\n (props: withButtonRef<InversedButtonAPIPropsType>): JSX.Element\n (props: withButtonRef<GhostButtonAPIPropsType>): JSX.Element\n (props: withButtonRef<DefaultButtonAPIPropsType>): JSX.Element\n}\n\nexport type ButtonPropsType =\n | withButtonRef<InversedButtonAPIPropsType>\n | withButtonRef<GhostButtonAPIPropsType>\n | withButtonRef<DefaultButtonAPIPropsType>\n\nconst isInversedButtonProps = (\n props: ButtonPropsType\n): props is InversedButtonAPIPropsType =>\n \"inversed\" in props && props.inversed === true && !isLinkProps(props)\n\nconst isGhostButtonProps = (\n props: ButtonPropsType\n): props is GhostButtonAPIPropsType =>\n \"ghost\" in props && props.ghost === true && !isLinkProps(props)\n\nconst isDefaultButtonProps = (\n props: ButtonPropsType\n): props is DefaultButtonAPIPropsType =>\n !isGhostButtonProps(props) && !isInversedButtonProps(props)\n\nconst Button: ButtonOverload = (props: ButtonPropsType) => {\n const { forwardedRef, ...restButtonProps } = props\n\n // We extract here API only props to not passed them and we pass some\n // common props directly\n if (isInversedButtonProps(restButtonProps)) {\n // inversed is a props only used for API here\n const { inversed: _inversed, ...restProps } = restButtonProps\n return <Inversed {...restProps} ref={forwardedRef} />\n } else if (isGhostButtonProps(restButtonProps)) {\n // ghost is a props only used for API here\n const { ghost: _ghost, ...restProps } = restButtonProps\n return <Ghost {...restProps} ref={forwardedRef} />\n } else if (isDefaultButtonProps(restButtonProps)) {\n return <Default {...restButtonProps} ref={forwardedRef} />\n } else {\n throw new Error(\"[Cobalt]: Unexpected Button Component props error\")\n }\n}\n\nexport default Button\n"],"names":["Inversed","Ghost","Default"],"mappings":";;;;;;AA8BA,MAAM,qBAAqB,GAAG,CAC5B,KAAsB,KAEtB,UAAU,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;AAEvE,MAAM,kBAAkB,GAAG,CACzB,KAAsB,KAEtB,OAAO,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;AAEjE,MAAM,oBAAoB,GAAG,CAC3B,KAAsB,KAEtB,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,GAAmB,CAAC,KAAsB,KAAI;IACxD,MAAM,EAAE,YAAY,EAAE,GAAG,eAAe,EAAE,GAAG,KAAK,CAAA;;;AAIlD,IAAA,IAAI,qBAAqB,CAAC,eAAe,CAAC,EAAE;;QAE1C,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,eAAe,CAAA;QAC7D,OAAO,KAAA,CAAA,aAAA,CAACA,cAAQ,EAAK,EAAA,GAAA,SAAS,EAAE,GAAG,EAAE,YAAY,EAAA,CAAI,CAAA;AACtD,KAAA;AAAM,SAAA,IAAI,kBAAkB,CAAC,eAAe,CAAC,EAAE;;QAE9C,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,eAAe,CAAA;QACvD,OAAO,KAAA,CAAA,aAAA,CAACC,WAAK,EAAK,EAAA,GAAA,SAAS,EAAE,GAAG,EAAE,YAAY,EAAA,CAAI,CAAA;AACnD,KAAA;AAAM,SAAA,IAAI,oBAAoB,CAAC,eAAe,CAAC,EAAE;QAChD,OAAO,KAAA,CAAA,aAAA,CAACC,aAAO,EAAK,EAAA,GAAA,eAAe,EAAE,GAAG,EAAE,YAAY,EAAA,CAAI,CAAA;AAC3D,KAAA;AAAM,SAAA;AACL,QAAA,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;AACrE,KAAA;AACH;;;;"}
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import GhostButton from '../Buttons/GhostButton/index.js';
3
- import InversedButton from '../Buttons/InversedButton/index.js';
4
- import DefaultButton from '../Buttons/DefaultButton/index.js';
5
- import { isLinkProps } from '../Buttons/ButtonComponent.js';
6
-
7
- const isInversedLinkProps = (props) => "inversed" in props && props.inversed === true && isLinkProps(props);
8
- const isGhostLinkProps = (props) => "ghost" in props && props.ghost === true && isLinkProps(props);
9
- const isDefaultLinkProps = (props) => !isGhostLinkProps(props) && !isInversedLinkProps(props);
10
- const Link = (props) => {
11
- const { forwardedRef, ...restLinkProps } = props;
12
- // We extract here specific button props
13
- // disabled props must be passed to provided a11y related attributes
14
- if (isInversedLinkProps(restLinkProps)) {
15
- // inversed is a props only used for API here
16
- const { inversed: _inversed, ...restProps } = restLinkProps;
17
- return React.createElement(InversedButton.Link, { ...restProps, ref: forwardedRef });
18
- }
19
- else if (isGhostLinkProps(restLinkProps)) {
20
- // ghost is a props only used for API here
21
- const { ghost: _ghost, ...restProps } = restLinkProps;
22
- return React.createElement(GhostButton.Link, { ...restProps, ref: forwardedRef });
23
- }
24
- else if (isDefaultLinkProps(restLinkProps)) {
25
- return React.createElement(DefaultButton.Link, { ...restLinkProps, ref: forwardedRef });
26
- }
27
- else {
28
- throw new Error("[Cobalt]: Unexpected Button.Link Component props error");
29
- }
30
- };
31
-
32
- export { Link as default };
33
- //# sourceMappingURL=Link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Link.js","sources":["../../../src/components/Button/Link.tsx"],"sourcesContent":["import React, { Ref } from \"react\"\n\nimport Ghost, { GhostLinkPropsType } from \"../Buttons/GhostButton\"\nimport Inversed, { InversedLinkPropsType } from \"../Buttons/InversedButton\"\nimport Default, { DefaultLinkPropsType } from \"../Buttons/DefaultButton\"\nimport { isLinkProps } from \"../Buttons/ButtonComponent\"\n\ntype withAnchorRef<Props> = Props & { forwardedRef?: Ref<HTMLAnchorElement> }\n\n/**\n * We add API only props here since it's not related to the Buttons subcomponents\n */\n\ntype InversedLinkAPIPropsType = InversedLinkPropsType & { inversed?: true }\ntype GhostLinkAPIPropsType = GhostLinkPropsType & { ghost?: true }\ntype DefaultLinkAPIPropsType = DefaultLinkPropsType\n\n/**\n * Overloads\n */\ntype LinkOverload = {\n (props: withAnchorRef<InversedLinkAPIPropsType>): JSX.Element\n (props: withAnchorRef<GhostLinkAPIPropsType>): JSX.Element\n (props: withAnchorRef<DefaultLinkAPIPropsType>): JSX.Element\n}\n\nexport type ButtonLinkPropsType =\n | withAnchorRef<InversedLinkAPIPropsType>\n | withAnchorRef<GhostLinkAPIPropsType>\n | withAnchorRef<DefaultLinkAPIPropsType>\n\nconst isInversedLinkProps = (\n props: ButtonLinkPropsType\n): props is InversedLinkAPIPropsType =>\n \"inversed\" in props && props.inversed === true && isLinkProps(props)\n\nconst isGhostLinkProps = (\n props: ButtonLinkPropsType\n): props is GhostLinkAPIPropsType =>\n \"ghost\" in props && props.ghost === true && isLinkProps(props)\n\nconst isDefaultLinkProps = (\n props: ButtonLinkPropsType\n): props is DefaultLinkAPIPropsType =>\n !isGhostLinkProps(props) && !isInversedLinkProps(props)\n\nconst Link: LinkOverload = (props: ButtonLinkPropsType) => {\n const { forwardedRef, ...restLinkProps } = props\n\n // We extract here specific button props\n // disabled props must be passed to provided a11y related attributes\n if (isInversedLinkProps(restLinkProps)) {\n // inversed is a props only used for API here\n const { inversed: _inversed, ...restProps } = restLinkProps\n return <Inversed.Link {...restProps} ref={forwardedRef} />\n } else if (isGhostLinkProps(restLinkProps)) {\n // ghost is a props only used for API here\n const { ghost: _ghost, ...restProps } = restLinkProps\n return <Ghost.Link {...restProps} ref={forwardedRef} />\n } else if (isDefaultLinkProps(restLinkProps)) {\n return <Default.Link {...restLinkProps} ref={forwardedRef} />\n } else {\n throw new Error(\"[Cobalt]: Unexpected Button.Link Component props error\")\n }\n}\n\nexport default Link\n"],"names":["Inversed","Ghost","Default"],"mappings":";;;;;;AA+BA,MAAM,mBAAmB,GAAG,CAC1B,KAA0B,KAE1B,UAAU,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,IAAI,WAAW,CAAC,KAAK,CAAC,CAAA;AAEtE,MAAM,gBAAgB,GAAG,CACvB,KAA0B,KAE1B,OAAO,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,IAAI,WAAW,CAAC,KAAK,CAAC,CAAA;AAEhE,MAAM,kBAAkB,GAAG,CACzB,KAA0B,KAE1B,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAA;AAEzD,MAAM,IAAI,GAAiB,CAAC,KAA0B,KAAI;IACxD,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,GAAG,KAAK,CAAA;;;AAIhD,IAAA,IAAI,mBAAmB,CAAC,aAAa,CAAC,EAAE;;QAEtC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,aAAa,CAAA;QAC3D,OAAO,KAAA,CAAA,aAAA,CAACA,cAAQ,CAAC,IAAI,EAAA,EAAA,GAAK,SAAS,EAAE,GAAG,EAAE,YAAY,EAAA,CAAI,CAAA;AAC3D,KAAA;AAAM,SAAA,IAAI,gBAAgB,CAAC,aAAa,CAAC,EAAE;;QAE1C,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,aAAa,CAAA;QACrD,OAAO,KAAA,CAAA,aAAA,CAACC,WAAK,CAAC,IAAI,EAAA,EAAA,GAAK,SAAS,EAAE,GAAG,EAAE,YAAY,EAAA,CAAI,CAAA;AACxD,KAAA;AAAM,SAAA,IAAI,kBAAkB,CAAC,aAAa,CAAC,EAAE;QAC5C,OAAO,KAAA,CAAA,aAAA,CAACC,aAAO,CAAC,IAAI,EAAA,EAAA,GAAK,aAAa,EAAE,GAAG,EAAE,YAAY,EAAA,CAAI,CAAA;AAC9D,KAAA;AAAM,SAAA;AACL,QAAA,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAA;AAC1E,KAAA;AACH;;;;"}
@@ -1,9 +0,0 @@
1
- import Button$1 from './Button.js';
2
- import Link from './Link.js';
3
- import ButtonsGroup from '../Buttons/ButtonsGroup.js';
4
-
5
- const ButtonGroup = ButtonsGroup;
6
- const Button = Object.assign(Button$1, { Link });
7
-
8
- export { Button, ButtonGroup, Button as default };
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Button/index.tsx"],"sourcesContent":["// We have to import react to avoid TS using reference directives here\nimport _React from \"react\"\nimport _Button from \"./Button\"\nimport Link from \"./Link\"\nimport { ButtonPropsType as _ButtonPropsType } from \"./Button\"\nimport { ButtonLinkPropsType as _ButtonLinkPropsType } from \"./Link\"\nimport _ButtonGroup, {\n ButtonsGroupProps as _ButtonGroupProps,\n} from \"../Buttons/ButtonsGroup\"\n\n// We have to export types differently from modules\n// https://github.com/babel/babel/issues/8361\n// https://github.com/babel/babel-loader/issues/603#issuecomment-601682451\nexport type ButtonPropsType = _ButtonPropsType\nexport type ButtonLinkPropsType = _ButtonLinkPropsType\nexport type ButtonGroupProps = _ButtonGroupProps\n\nexport const ButtonGroup = _ButtonGroup\n\nexport const Button = Object.assign(_Button, { Link })\n\nexport default Button\n"],"names":["_ButtonGroup","_Button"],"mappings":";;;;AAiBO,MAAM,WAAW,GAAGA,aAAY;AAEhC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAACC,QAAO,EAAE,EAAE,IAAI,EAAE;;;;"}
@@ -1,2 +0,0 @@
1
- @import "./legacy.scss";
2
- @import "../Buttons/index.scss";