@drivy/cobalt 1.1.3 → 1.1.4

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 (56) hide show
  1. package/components/Icon/__generated__/StarHalfIcon.js +2 -2
  2. package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
  3. package/components/Icon/__generated__/StarIcon.js +2 -2
  4. package/components/Icon/__generated__/StarIcon.js.map +1 -1
  5. package/icons/star-half.js +1 -1
  6. package/icons/star-half.svg +1 -1
  7. package/icons/star.js +1 -1
  8. package/icons/star.svg +1 -1
  9. package/package.json +15 -15
  10. package/styles/components/BasicCell/index.scss +8 -10
  11. package/styles/components/BulletList/index.scss +3 -3
  12. package/styles/components/Buttons/DefaultButton/index.scss +1 -1
  13. package/styles/components/Buttons/GhostButton/index.scss +2 -4
  14. package/styles/components/Buttons/index.scss +9 -9
  15. package/styles/components/Calendar/CalendarDayPicker/index.scss +10 -11
  16. package/styles/components/Calendar/CalendarRangePicker/index.scss +20 -21
  17. package/styles/components/Calendar/CalendarView/index.scss +11 -13
  18. package/styles/components/Callout/index.scss +5 -16
  19. package/styles/components/Card/index.scss +11 -17
  20. package/styles/components/Cell/index.scss +6 -4
  21. package/styles/components/Chip/index.scss +8 -10
  22. package/styles/components/ContainedIcon/index.scss +11 -11
  23. package/styles/components/EmptyState/index.scss +6 -12
  24. package/styles/components/Flash/index.scss +7 -13
  25. package/styles/components/Form/Autocomplete/index.scss +1 -3
  26. package/styles/components/Form/CheckablePill.scss +9 -19
  27. package/styles/components/Form/Checkmark.scss +14 -23
  28. package/styles/components/Form/ComposedField.scss +2 -2
  29. package/styles/components/Form/Fieldset.scss +6 -9
  30. package/styles/components/Form/Hint.scss +4 -8
  31. package/styles/components/Form/RadioWithDetails.scss +11 -16
  32. package/styles/components/Form/Select.scss +2 -2
  33. package/styles/components/Form/Stepper.scss +7 -8
  34. package/styles/components/Form/TextArea.scss +4 -4
  35. package/styles/components/Form/TextInput.scss +2 -2
  36. package/styles/components/Form/ToggleSwitch.scss +12 -15
  37. package/styles/components/Form/field.scss +8 -6
  38. package/styles/components/Form/form.scss +8 -12
  39. package/styles/components/Helper/index.scss +4 -9
  40. package/styles/components/Icon/index.scss +4 -6
  41. package/styles/components/Pagination/index.scss +1 -1
  42. package/styles/components/PhotoDropzone/index.scss +9 -12
  43. package/styles/components/Pill/index.scss +7 -17
  44. package/styles/components/PlateNumber/index.scss +1 -7
  45. package/styles/components/Popover/index.scss +20 -19
  46. package/styles/components/PriceTable/index.scss +6 -5
  47. package/styles/components/ProgressBanner/index.scss +5 -18
  48. package/styles/components/ProgressBar/index.scss +6 -16
  49. package/styles/components/ProgressCircular/index.scss +5 -5
  50. package/styles/components/Rating/index.scss +4 -5
  51. package/styles/components/Sidepanel/index.scss +4 -4
  52. package/styles/components/TabBar/index.scss +10 -9
  53. package/styles/components/Tabs/index.scss +1 -2
  54. package/styles/components/Tag/index.scss +11 -23
  55. package/styles/core/global-variables.scss +1 -1
  56. package/utils/getCobaltTailwindcssConfig.js.map +1 -1
@@ -13,8 +13,8 @@ const StarHalfIcon = ({ color, size = 24, contained = false, className, }) => {
13
13
  "cobalt-Icon--contained": contained,
14
14
  });
15
15
  const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
16
- return wrap(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
17
- React.createElement("path", { d: "M12 3c-.42 0-.838.228-1.054.684L8.804 8.218l-4.797.731c-.963.147-1.348 1.384-.65 2.094l3.488 3.552-.838 4.967c-.165 1.003.843 1.768 1.705 1.294L12 18.53V3Z" })));
16
+ return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
17
+ React.createElement("path", { d: "M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025" })));
18
18
  };
19
19
 
20
20
  export { StarHalfIcon as default };
@@ -1 +1 @@
1
- {"version":3,"file":"StarHalfIcon.js","sources":["../../../../src/components/Icon/__generated__/StarHalfIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"starHalf\"\nconst StarHalfIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12 3c-.42 0-.838.228-1.054.684L8.804 8.218l-4.797.731c-.963.147-1.348 1.384-.65 2.094l3.488 3.552-.838 4.967c-.165 1.003.843 1.768 1.705 1.294L12 18.53V3Z\" />\n </svg>\n )\n}\nexport default StarHalfIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,UAAU,CAAA;AAC7B,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,6JAA6J,EAAG,CAAA,CACpK,CACP,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"StarHalfIcon.js","sources":["../../../../src/components/Icon/__generated__/StarHalfIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"starHalf\"\nconst StarHalfIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025\" />\n </svg>\n )\n}\nexport default StarHalfIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,UAAU,CAAA;AAC7B,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,qMAAqM,EAAG,CAAA,CAC5M,CACP,CAAA;AACH;;;;"}
@@ -13,8 +13,8 @@ const StarIcon = ({ color, size = 24, contained = false, className, }) => {
13
13
  "cobalt-Icon--contained": contained,
14
14
  });
15
15
  const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
16
- return wrap(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
17
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.712 20.856c-.862.474-1.87-.29-1.705-1.294l.838-4.967-3.489-3.552c-.697-.71-.312-1.947.651-2.094l4.797-.73 2.142-4.535a1.154 1.154 0 0 1 2.108 0l2.177 4.543 4.761.722c.964.147 1.35 1.384.652 2.094l-3.467 3.545.817 4.974c.164 1.003-.843 1.768-1.706 1.294l-4.262-2.34-4.314 2.34Z" })));
16
+ return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
17
+ React.createElement("path", { d: "M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z" })));
18
18
  };
19
19
 
20
20
  export { StarIcon as default };
@@ -1 +1 @@
1
- {"version":3,"file":"StarIcon.js","sources":["../../../../src/components/Icon/__generated__/StarIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"star\"\nconst StarIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.712 20.856c-.862.474-1.87-.29-1.705-1.294l.838-4.967-3.489-3.552c-.697-.71-.312-1.947.651-2.094l4.797-.73 2.142-4.535a1.154 1.154 0 0 1 2.108 0l2.177 4.543 4.761.722c.964.147 1.35 1.384.652 2.094l-3.467 3.545.817 4.974c.164 1.003-.843 1.768-1.706 1.294l-4.262-2.34-4.314 2.34Z\"\n />\n </svg>\n )\n}\nexport default StarIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,MAAM,CAAA;AACzB,MAAM,QAAQ,GAAG,CAAC,EAChB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,yRAAyR,EAC3R,CAAA,CACE,CACP,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"StarIcon.js","sources":["../../../../src/components/Icon/__generated__/StarIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"star\"\nconst StarIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z\" />\n </svg>\n )\n}\nexport default StarIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,MAAM,CAAA;AACzB,MAAM,QAAQ,GAAG,CAAC,EAChB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,kUAAkU,EAAG,CAAA,CACzU,CACP,CAAA;AACH;;;;"}
@@ -1,4 +1,4 @@
1
- var starHalf = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 3c-.42 0-.838.228-1.054.684L8.804 8.218l-4.797.731c-.963.147-1.348 1.384-.65 2.094l3.488 3.552-.838 4.967c-.165 1.003.843 1.768 1.705 1.294L12 18.53V3Z\"/></svg>";
1
+ var starHalf = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025\"/></svg>";
2
2
 
3
3
  export { starHalf as default };
4
4
  //# sourceMappingURL=star-half.js.map
@@ -1 +1 @@
1
- <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 3c-.42 0-.838.228-1.054.684L8.804 8.218l-4.797.731c-.963.147-1.348 1.384-.65 2.094l3.488 3.552-.838 4.967c-.165 1.003.843 1.768 1.705 1.294L12 18.53V3Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025"/></svg>
package/icons/star.js CHANGED
@@ -1,4 +1,4 @@
1
- var star = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7.712 20.856c-.862.474-1.87-.29-1.705-1.294l.838-4.967-3.489-3.552c-.697-.71-.312-1.947.651-2.094l4.797-.73 2.142-4.535a1.154 1.154 0 0 1 2.108 0l2.177 4.543 4.761.722c.964.147 1.35 1.384.652 2.094l-3.467 3.545.817 4.974c.164 1.003-.843 1.768-1.706 1.294l-4.262-2.34-4.314 2.34Z\"/></svg>";
1
+ var star = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z\"/></svg>";
2
2
 
3
3
  export { star as default };
4
4
  //# sourceMappingURL=star.js.map
package/icons/star.svg CHANGED
@@ -1 +1 @@
1
- <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.712 20.856c-.862.474-1.87-.29-1.705-1.294l.838-4.967-3.489-3.552c-.697-.71-.312-1.947.651-2.094l4.797-.73 2.142-4.535a1.154 1.154 0 0 1 2.108 0l2.177 4.543 4.761.722c.964.147 1.35 1.384.652 2.094l-3.467 3.545.817 4.974c.164 1.003-.843 1.768-1.706 1.294l-4.262-2.34-4.314 2.34Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drivy/cobalt",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Opinionated design system for Drivy's projects.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "*.scss"
10
10
  ],
11
11
  "engines": {
12
- "node": ">=18.16.0"
12
+ "node": ">=22.14.0"
13
13
  },
14
14
  "module": "src/index.js",
15
15
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "url": "https://github.com/TimPetricola"
20
20
  },
21
21
  "dependencies": {
22
- "@ark-ui/react": "4.9.1",
22
+ "@ark-ui/react": "4.9.2",
23
23
  "@juggle/resize-observer": "3.4.0",
24
24
  "@lottiefiles/react-lottie-player": "3.5.4",
25
25
  "@react-spring/web": "9.7.5",
@@ -28,8 +28,8 @@
28
28
  "date-fns": "2.30.0",
29
29
  "lodash.throttle": "4.1.1",
30
30
  "media-typer": "1.1.0",
31
- "nanoid": "5.0.9",
32
- "postcss": "8.5.1",
31
+ "nanoid": "5.1.4",
32
+ "postcss": "8.5.3",
33
33
  "tailwindcss": "3.4.17",
34
34
  "tippy.js": "6.3.7"
35
35
  },
@@ -43,9 +43,9 @@
43
43
  "@getaround-eu/prettier-config": "1.2.1",
44
44
  "@getaround-eu/stylelint-config": "3.0.1",
45
45
  "@getaround-eu/ts-config": "2.2.1",
46
- "@rollup/plugin-commonjs": "28.0.2",
46
+ "@rollup/plugin-commonjs": "28.0.3",
47
47
  "@rollup/plugin-json": "6.1.0",
48
- "@rushstack/eslint-patch": "1.10.5",
48
+ "@rushstack/eslint-patch": "1.11.0",
49
49
  "@storybook/addon-essentials": "7.6.20",
50
50
  "@storybook/addons": "7.6.17",
51
51
  "@storybook/blocks": "7.6.20",
@@ -59,14 +59,14 @@
59
59
  "@types/jest": "29.5.14",
60
60
  "@types/lodash.throttle": "4.1.9",
61
61
  "@types/media-typer": "1.1.3",
62
- "@types/node": "20.17.16",
62
+ "@types/node": "22.13.10",
63
63
  "@types/react": "18.3.18",
64
64
  "@types/react-dom": "18.3.5",
65
- "autoprefixer": "10.4.20",
66
- "core-js": "3.40.0",
65
+ "autoprefixer": "10.4.21",
66
+ "core-js": "3.41.0",
67
67
  "css-loader": "7.1.2",
68
68
  "eslint": "8.57.1",
69
- "eslint-plugin-storybook": "^0.11.2",
69
+ "eslint-plugin-storybook": "^0.11.6",
70
70
  "file-loader": "6.2.0",
71
71
  "fs-extra": "11.3.0",
72
72
  "html-entities": "2.5.2",
@@ -82,14 +82,14 @@
82
82
  "react-dom": "18.3.1",
83
83
  "react-syntax-highlighter": "15.6.1",
84
84
  "react-test-renderer": "18.3.1",
85
- "react-textarea-autosize": "8.5.7",
85
+ "react-textarea-autosize": "8.5.8",
86
86
  "regenerator-runtime": "0.14.1",
87
87
  "remark-gfm": "^3.0.1",
88
88
  "rollup": "2.79.2",
89
89
  "rollup-plugin-copy": "3.5.0",
90
90
  "rollup-plugin-svgo": "2.0.0",
91
91
  "rollup-plugin-typescript2": "0.36.0",
92
- "sass": "1.84.0",
92
+ "sass": "1.86.0",
93
93
  "sass-loader": "13.3.3",
94
94
  "sharp": "0.33.5",
95
95
  "sharp-cli": "5.1.0",
@@ -98,8 +98,8 @@
98
98
  "stylelint": "15.11.0",
99
99
  "svg2vectordrawable": "2.9.1",
100
100
  "svgo": "3.3.2",
101
- "ts-jest": "29.2.5",
102
- "tsx": "4.19.2",
101
+ "ts-jest": "29.2.6",
102
+ "tsx": "4.19.3",
103
103
  "typescript": "5.4.5"
104
104
  },
105
105
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  .cobalt- {
2
2
  &BasicCell {
3
- @include text-color(base);
3
+ @apply c-text-base;
4
4
 
5
5
  display: flex;
6
6
  align-items: center;
@@ -14,17 +14,16 @@
14
14
  }
15
15
 
16
16
  &BasicCell__Title {
17
- @include c-text-title-sm;
18
- @include text-color(base);
17
+ @apply c-text-title-sm c-text-base;
19
18
  margin-bottom: 0;
20
19
  }
21
20
 
22
21
  &BasicCell__Content {
23
- @include c-text-body-md;
22
+ @apply c-text-body-md;
24
23
  }
25
24
 
26
25
  &BasicCell__Thumb {
27
- @include bg-color(neutralAlt);
26
+ @apply c-bg-neutralAlt;
28
27
 
29
28
  display: flex;
30
29
  flex-direction: column;
@@ -42,22 +41,21 @@
42
41
  }
43
42
 
44
43
  &BasicCell__Thumb--square {
45
- border-radius: border-radius(lg);
44
+ @apply c-rounded-lg;
46
45
  }
47
46
 
48
47
  &BasicCell__LeftAddon {
49
- padding-right: spacing(sm);
48
+ @apply c-pr-sm;
50
49
  }
51
50
 
52
51
  &BasicCell__RightAddonIcon {
53
- padding-left: spacing(sm);
52
+ @apply c-pl-sm;
54
53
  margin-left: auto;
55
54
  }
56
55
 
57
56
  &BasicCell--large {
58
57
  .cobalt-BasicCell__Title {
59
- @include c-text-title-sm;
60
- margin-bottom: spacing("2xs");
58
+ @apply c-text-title-sm c-mb-2xs;
61
59
  }
62
60
 
63
61
  .cobalt-BasicCell__Thumb {
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
 
6
6
  &:not(:last-child) {
7
- margin-bottom: spacing(sm);
7
+ @apply c-mb-sm;
8
8
  }
9
9
 
10
10
  .cobalt-BulletList--iconPositionTop & {
@@ -13,9 +13,9 @@
13
13
  }
14
14
 
15
15
  &BulletListItem__Icon {
16
+ @apply c-mr-xs;
16
17
  display: flex;
17
18
  flex-shrink: 0;
18
- margin-right: spacing(xs);
19
19
  }
20
20
 
21
21
  &BulletListItem__Content {
@@ -26,7 +26,7 @@
26
26
  svg,
27
27
  use,
28
28
  g {
29
- @include fill-color(subdued);
29
+ fill: theme("semanticFillColor.subdued");
30
30
  }
31
31
  }
32
32
  }
@@ -50,8 +50,8 @@
50
50
  &--selected:focus,
51
51
  &--selected:active,
52
52
  &--selected {
53
+ @apply c-border-accent;
53
54
  @include semantic-color(buttonBackground, selected, background-color);
54
55
  @include semantic-color(buttonLabel, selected, color);
55
- @include border-color(accent);
56
56
  }
57
57
  }
@@ -22,12 +22,10 @@
22
22
  }
23
23
 
24
24
  &.cob-Button__ghost--standalone {
25
- margin-left: #{spacing(md) * -1};
26
- margin-right: #{spacing(md) * -1};
25
+ @apply c--mx-md;
27
26
 
28
27
  &.cob-Button--large {
29
- margin-left: #{spacing(lg) * -1};
30
- margin-right: #{spacing(lg) * -1};
28
+ @apply c--mx-lg;
31
29
  }
32
30
  }
33
31
 
@@ -28,7 +28,7 @@
28
28
  $height: 40px,
29
29
  $line-height: 20px,
30
30
  $font-size: 16px,
31
- $horizontal-padding: spacing(md)
31
+ $horizontal-padding: theme("spacing.md")
32
32
  );
33
33
 
34
34
  position: relative;
@@ -45,7 +45,7 @@
45
45
  text-align: center;
46
46
  white-space: normal;
47
47
 
48
- border-radius: border-radius(md);
48
+ @apply c-rounded-md;
49
49
 
50
50
  cursor: pointer;
51
51
  user-select: none;
@@ -82,11 +82,11 @@
82
82
  margin-bottom: -2px;
83
83
 
84
84
  &--left {
85
- margin-right: spacing(xs);
85
+ @apply c-mr-xs;
86
86
  }
87
87
 
88
88
  &--right {
89
- margin-left: spacing(xs);
89
+ @apply c-ml-xs;
90
90
  }
91
91
  }
92
92
 
@@ -118,7 +118,7 @@
118
118
  }
119
119
 
120
120
  &--rounded {
121
- border-radius: border-radius(full);
121
+ @apply c-rounded-full;
122
122
  }
123
123
 
124
124
  &--fullWidth {
@@ -134,16 +134,16 @@
134
134
  $height: 56px,
135
135
  $line-height: 24px,
136
136
  $font-size: 18px,
137
- $horizontal-padding: spacing(lg)
137
+ $horizontal-padding: theme("spacing.lg")
138
138
  );
139
139
  }
140
140
  }
141
141
 
142
142
  .cobalt-buttons-group {
143
+ @apply c--mt-sm;
143
144
  display: flex;
144
145
  flex-wrap: wrap;
145
146
  align-items: center;
146
- margin-top: -#{spacing(sm)};
147
147
 
148
148
  &--right {
149
149
  justify-content: flex-end;
@@ -154,12 +154,12 @@
154
154
  }
155
155
 
156
156
  &__item {
157
- margin-top: spacing(sm);
157
+ @apply c-mt-sm;
158
158
 
159
159
  &:not(.cobalt-buttons-group__item--fullWidth):not(
160
160
  .cobalt-buttons-group__item--xs\:fullWidth
161
161
  ) {
162
- margin-right: spacing(sm);
162
+ @apply c-mr-sm;
163
163
  }
164
164
 
165
165
  &--fullWidth {
@@ -20,7 +20,7 @@
20
20
 
21
21
  content: "";
22
22
 
23
- border-radius: 50%;
23
+ @apply c-rounded-full;
24
24
  }
25
25
 
26
26
  position: relative;
@@ -29,7 +29,7 @@
29
29
  &__months-container {
30
30
  flex-direction: column;
31
31
 
32
- gap: spacing(sm);
32
+ @apply c-gap-sm;
33
33
  }
34
34
  }
35
35
 
@@ -42,13 +42,12 @@
42
42
  }
43
43
 
44
44
  &__month {
45
- @include bg-color(secondary);
45
+ @apply c-bg-secondary;
46
46
  flex: 1;
47
47
  }
48
48
 
49
49
  &__month-header {
50
- @include c-text-title-sm;
51
- @include text-color(base);
50
+ @apply c-text-title-sm c-text-base;
52
51
  margin-bottom: 12px;
53
52
  padding: 4px;
54
53
 
@@ -74,7 +73,7 @@
74
73
  }
75
74
 
76
75
  &__month__day-header {
77
- @include text-color(subdued);
76
+ @apply c-text-subdued;
78
77
  flex: 1;
79
78
 
80
79
  text-align: center;
@@ -111,7 +110,7 @@
111
110
  }
112
111
 
113
112
  &--today {
114
- @include text-color(accent);
113
+ @apply c-text-accent;
115
114
  font-weight: 600;
116
115
  }
117
116
 
@@ -123,18 +122,18 @@
123
122
  &:not(&--disabled):not(&--selected):hover
124
123
  .cobalt-CalendarDayPicker__day-inner:after {
125
124
  @include disk;
126
- @include bg-color(accentAlt);
125
+ @apply c-bg-accentAlt;
127
126
  }
128
127
 
129
128
  &--selected .cobalt-CalendarDayPicker__day-inner:after {
130
129
  @include disk;
131
- @include bg-color(accent);
130
+ @apply c-bg-accent;
132
131
 
133
132
  box-shadow: var(--c-background-accentAlt) 0 2px 6px 0;
134
133
  }
135
134
 
136
135
  &--selected .cobalt-CalendarDayPicker__day-inner {
137
- @include text-color(inversed);
136
+ @apply c-text-inversed;
138
137
  font-weight: 600;
139
138
  }
140
139
 
@@ -152,7 +151,7 @@
152
151
 
153
152
  margin: 0;
154
153
 
155
- padding: 0 spacing(sm);
154
+ @apply c-py-none c-px-sm;
156
155
 
157
156
  height: 0;
158
157
 
@@ -47,21 +47,20 @@
47
47
  display: flex;
48
48
  flex-direction: column;
49
49
  justify-content: center;
50
- gap: spacing(md);
50
+ @apply c-gap-md;
51
51
 
52
52
  @include breakpoint($from: sm) {
53
53
  flex-direction: row;
54
- gap: spacing(sm);
54
+ @apply c-gap-sm;
55
55
  }
56
56
  }
57
57
 
58
58
  &__month {
59
- @include bg-color(secondary);
59
+ @apply c-bg-secondary;
60
60
  }
61
61
 
62
62
  &__month-header {
63
- @include c-text-title-sm;
64
- @include text-color(base);
63
+ @apply c-text-title-sm c-text-base;
65
64
  margin-bottom: 12px;
66
65
  padding: 4px;
67
66
 
@@ -87,7 +86,7 @@
87
86
  }
88
87
 
89
88
  &__month__day-header {
90
- @include text-color(subdued);
89
+ @apply c-text-subdued;
91
90
  flex: 1;
92
91
 
93
92
  text-align: center;
@@ -97,7 +96,7 @@
97
96
  }
98
97
 
99
98
  &__day {
100
- @include text-color(base);
99
+ @apply c-text-base;
101
100
 
102
101
  position: relative;
103
102
 
@@ -147,22 +146,22 @@
147
146
  }
148
147
 
149
148
  &--today {
150
- @include text-color(accent);
149
+ @apply c-text-accent;
151
150
  font-weight: 600;
152
151
  }
153
152
 
154
153
  &--selected {
155
- @include text-color(accent);
154
+ @apply c-text-accent;
156
155
 
157
156
  background-color: $calendar-range-day-color;
158
157
 
159
158
  .cobalt-CalendarRangePicker__day-notification {
160
- @include bg-color(accent);
159
+ @apply c-bg-accent;
161
160
  }
162
161
  }
163
162
 
164
163
  &--disabled {
165
- @include text-color(disabled);
164
+ @apply c-text-disabled;
166
165
 
167
166
  text-decoration: line-through;
168
167
  }
@@ -199,19 +198,19 @@
199
198
  }
200
199
 
201
200
  &--active:not(&--invalid) {
202
- @include text-color(onAccent);
201
+ @apply c-text-onAccent;
203
202
  }
204
203
 
205
204
  &--active .cobalt-CalendarRangePicker__day-notification {
206
- @include bg-color(primary);
205
+ @apply c-bg-primary;
207
206
  }
208
207
 
209
208
  &--active:not(&--invalid):after {
210
- @include bg-color(accent);
209
+ @apply c-bg-accent;
211
210
  }
212
211
 
213
212
  &--invalid {
214
- @include text-color(error);
213
+ @apply c-text-error;
215
214
 
216
215
  background-color: $calendar-range-day-invalid-color;
217
216
 
@@ -220,7 +219,7 @@
220
219
  }
221
220
 
222
221
  .cobalt-CalendarRangePicker__day-notification {
223
- @include bg-color(error);
222
+ @apply c-bg-error;
224
223
  }
225
224
  }
226
225
 
@@ -228,13 +227,13 @@
228
227
  &--range
229
228
  ):not(&--startDay) {
230
229
  &:after {
231
- @include bg-color(primary);
230
+ @apply c-bg-primary;
232
231
  }
233
232
  }
234
233
 
235
234
  &--endDay.cobalt-CalendarRangePicker__day--active.cobalt-CalendarRangePicker__day--invalid {
236
235
  &:after {
237
- @include border(error);
236
+ @apply c-border-error;
238
237
  border-width: 2px;
239
238
  }
240
239
  }
@@ -242,7 +241,7 @@
242
241
  //Start day = end day
243
242
  &--startDay.cobalt-CalendarRangePicker__day--endDay {
244
243
  &:before {
245
- @include border(onAccent);
244
+ @apply c-border-onAccent;
246
245
 
247
246
  position: absolute;
248
247
 
@@ -283,7 +282,7 @@
283
282
 
284
283
  margin: 0;
285
284
 
286
- padding: 0 spacing(sm);
285
+ @apply c-py-none c-px-sm;
287
286
 
288
287
  height: 0;
289
288
 
@@ -306,7 +305,7 @@
306
305
  }
307
306
 
308
307
  .tippy-box[data-theme~="range-picker"] {
309
- @include border(base);
308
+ @apply c-border-base;
310
309
  }
311
310
 
312
311
  .tippy-box[data-theme~="range-picker"] .tippy-arrow:after {
@@ -1,24 +1,25 @@
1
1
  @use "sass:math";
2
2
 
3
- $daySize: spacing(md);
3
+ // Define $daySize using the Tailwind theme function
4
+ $daySize: theme("spacing.md");
4
5
 
5
6
  .cobalt-CalendarView {
6
7
  display: flex;
7
8
 
8
- gap: spacing(sm);
9
+ @apply c-gap-sm;
9
10
 
10
11
  &__monthName {
11
- @include c-text-section-heading;
12
+ @apply c-text-section-heading;
12
13
  }
13
14
 
14
15
  &__week {
15
16
  display: flex;
16
17
 
17
- gap: spacing(unit);
18
+ @apply c-gap-2xs;
18
19
  }
19
20
 
20
21
  &__day {
21
- @include text-color(base);
22
+ @apply c-text-base;
22
23
 
23
24
  display: flex;
24
25
  align-items: center;
@@ -29,25 +30,22 @@ $daySize: spacing(md);
29
30
 
30
31
  font-size: 12px;
31
32
 
32
- border-radius: math.div($daySize, 2);
33
+ border-radius: calc(#{$daySize} / 2);
33
34
 
34
35
  &--disabled {
35
- @include bg-color(blocker);
36
- @include text-color(subdued);
36
+ @apply c-bg-blocker c-text-subdued;
37
37
  }
38
38
 
39
39
  &--highlighted {
40
- @include text-color(onRental);
41
- @include bg-color(rental);
40
+ @apply c-text-onRental c-bg-rental;
42
41
  }
43
42
 
44
43
  &--semi-highlighted {
45
- @include text-color(onRentalAlt);
46
- @include bg-color(rentalAlt);
44
+ @apply c-text-onRentalAlt c-bg-rentalAlt;
47
45
  }
48
46
 
49
47
  &--past {
50
- @include text-color(subdued);
48
+ @apply c-text-subdued;
51
49
  opacity: 0.4;
52
50
  }
53
51
  }