@coopdigital/react 0.17.0 → 0.18.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 (80) hide show
  1. package/README.md +2 -2
  2. package/dist/components/Icon/AddIcon.d.ts +6 -1
  3. package/dist/components/Icon/ArrowDownIcon.d.ts +6 -1
  4. package/dist/components/Icon/ArrowLeftIcon.d.ts +6 -1
  5. package/dist/components/Icon/ArrowRightIcon.d.ts +6 -1
  6. package/dist/components/Icon/ArrowUpIcon.d.ts +6 -1
  7. package/dist/components/Icon/AvatarAltIcon.d.ts +6 -1
  8. package/dist/components/Icon/AvatarIcon.d.ts +6 -1
  9. package/dist/components/Icon/BasketIcon.d.ts +6 -1
  10. package/dist/components/Icon/CalendarIcon.d.ts +6 -1
  11. package/dist/components/Icon/ChevronDownIcon.d.ts +6 -1
  12. package/dist/components/Icon/ChevronLeftIcon.d.ts +6 -1
  13. package/dist/components/Icon/ChevronRightIcon.d.ts +6 -1
  14. package/dist/components/Icon/ChevronUpIcon.d.ts +6 -1
  15. package/dist/components/Icon/ClockIcon.d.ts +6 -1
  16. package/dist/components/Icon/CloseAltIcon.d.ts +6 -1
  17. package/dist/components/Icon/CloseIcon.d.ts +6 -1
  18. package/dist/components/Icon/CoopCardIcon.d.ts +6 -1
  19. package/dist/components/Icon/CoopIcon.d.ts +6 -1
  20. package/dist/components/Icon/CoopLocationIcon.d.ts +6 -1
  21. package/dist/components/Icon/DownloadIcon.d.ts +6 -1
  22. package/dist/components/Icon/HomeIcon.d.ts +6 -1
  23. package/dist/components/Icon/InformationIcon.d.ts +6 -1
  24. package/dist/components/Icon/LocationIcon.d.ts +6 -1
  25. package/dist/components/Icon/MailIcon.d.ts +6 -1
  26. package/dist/components/Icon/MenuIcon.d.ts +6 -1
  27. package/dist/components/Icon/MessageIcon.d.ts +6 -1
  28. package/dist/components/Icon/MinusIcon.d.ts +6 -1
  29. package/dist/components/Icon/OpenNewIcon.d.ts +6 -1
  30. package/dist/components/Icon/PencilIcon.d.ts +6 -1
  31. package/dist/components/Icon/PhoneIcon.d.ts +6 -1
  32. package/dist/components/Icon/QuestionIcon.d.ts +6 -1
  33. package/dist/components/Icon/ScooterIcon.d.ts +6 -1
  34. package/dist/components/Icon/SearchIcon.d.ts +6 -1
  35. package/dist/components/Icon/SettingsIcon.d.ts +6 -1
  36. package/dist/components/Icon/TickAltIcon.d.ts +6 -1
  37. package/dist/components/Icon/TickIcon.d.ts +6 -1
  38. package/dist/components/Icon/VanIcon.d.ts +6 -1
  39. package/dist/components/Icon/WarningIcon.d.ts +6 -1
  40. package/dist/components/Icon/WriteIcon.d.ts +6 -1
  41. package/package.json +4 -3
  42. package/src/components/Icon/AddIcon.tsx +18 -2
  43. package/src/components/Icon/ArrowDownIcon.tsx +18 -2
  44. package/src/components/Icon/ArrowLeftIcon.tsx +18 -2
  45. package/src/components/Icon/ArrowRightIcon.tsx +18 -2
  46. package/src/components/Icon/ArrowUpIcon.tsx +18 -2
  47. package/src/components/Icon/AvatarAltIcon.tsx +18 -2
  48. package/src/components/Icon/AvatarIcon.tsx +18 -2
  49. package/src/components/Icon/BasketIcon.tsx +18 -2
  50. package/src/components/Icon/CalendarIcon.tsx +18 -2
  51. package/src/components/Icon/ChevronDownIcon.tsx +18 -2
  52. package/src/components/Icon/ChevronLeftIcon.tsx +18 -2
  53. package/src/components/Icon/ChevronRightIcon.tsx +18 -2
  54. package/src/components/Icon/ChevronUpIcon.tsx +18 -2
  55. package/src/components/Icon/ClockIcon.tsx +18 -2
  56. package/src/components/Icon/CloseAltIcon.tsx +18 -2
  57. package/src/components/Icon/CloseIcon.tsx +18 -2
  58. package/src/components/Icon/CoopCardIcon.tsx +19 -2
  59. package/src/components/Icon/CoopIcon.tsx +19 -2
  60. package/src/components/Icon/CoopLocationIcon.tsx +18 -2
  61. package/src/components/Icon/DownloadIcon.tsx +18 -2
  62. package/src/components/Icon/HomeIcon.tsx +18 -2
  63. package/src/components/Icon/InformationIcon.tsx +18 -2
  64. package/src/components/Icon/LocationIcon.tsx +18 -2
  65. package/src/components/Icon/MailIcon.tsx +18 -2
  66. package/src/components/Icon/MenuIcon.tsx +18 -2
  67. package/src/components/Icon/MessageIcon.tsx +18 -2
  68. package/src/components/Icon/MinusIcon.tsx +18 -2
  69. package/src/components/Icon/OpenNewIcon.tsx +18 -2
  70. package/src/components/Icon/PencilIcon.tsx +18 -2
  71. package/src/components/Icon/PhoneIcon.tsx +18 -2
  72. package/src/components/Icon/QuestionIcon.tsx +18 -2
  73. package/src/components/Icon/ScooterIcon.tsx +18 -2
  74. package/src/components/Icon/SearchIcon.tsx +18 -2
  75. package/src/components/Icon/SettingsIcon.tsx +18 -2
  76. package/src/components/Icon/TickAltIcon.tsx +18 -2
  77. package/src/components/Icon/TickIcon.tsx +18 -2
  78. package/src/components/Icon/VanIcon.tsx +18 -2
  79. package/src/components/Icon/WarningIcon.tsx +18 -2
  80. package/src/components/Icon/WriteIcon.tsx +18 -2
package/README.md CHANGED
@@ -33,8 +33,8 @@ npm install @coopdigital/react @coopdigital/styles
33
33
  Import the components that you need, along with the main stylesheet and the corresponding component styles:
34
34
  ```
35
35
  import { Pill } from "@coopdigital/react"
36
- import "@coopdigital/styles/dist/main.css"
37
- import "@coopdigital/styles/dist/components/Pill.css"
36
+ import "@coopdigital/styles/main.css"
37
+ import "@coopdigital/styles/components/Pill.css"
38
38
  ```
39
39
 
40
40
  Alternatively if your project uses SASS you can import the source stylesheets:
@@ -1 +1,6 @@
1
- export declare const AddIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const AddIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ArrowDownIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ArrowDownIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ArrowLeftIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ArrowLeftIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ArrowRightIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ArrowRightIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ArrowUpIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ArrowUpIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const AvatarAltIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const AvatarAltIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const AvatarIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const AvatarIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const BasketIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const BasketIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const CalendarIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const CalendarIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ChevronDownIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ChevronDownIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ChevronLeftIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ChevronLeftIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ChevronRightIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ChevronRightIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ChevronUpIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ChevronUpIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ClockIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ClockIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const CloseAltIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const CloseAltIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const CloseIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const CloseIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const CoopCardIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const CoopCardIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const CoopIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const CoopIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const CoopLocationIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const CoopLocationIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const DownloadIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const DownloadIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const HomeIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const HomeIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const InformationIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const InformationIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const LocationIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const LocationIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const MailIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const MailIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const MenuIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const MenuIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const MessageIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const MessageIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const MinusIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const MinusIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const OpenNewIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const OpenNewIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const PencilIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const PencilIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const PhoneIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const PhoneIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const QuestionIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const QuestionIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const ScooterIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const ScooterIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const SearchIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const SearchIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const SettingsIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const SettingsIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const TickAltIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const TickAltIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const TickIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const TickIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const VanIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const VanIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const WarningIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const WarningIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export declare const WriteIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type SVGProps } from "react";
2
+ interface IconProps extends SVGProps<SVGSVGElement> {
3
+ alt?: string;
4
+ }
5
+ export declare const WriteIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopdigital/react",
3
3
  "type": "module",
4
- "version": "0.17.0",
4
+ "version": "0.18.0",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -34,6 +34,7 @@
34
34
  "test:e2e:ui": "npx playwright test --ui",
35
35
  "test:e2e:ci": "npx playwright test --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL",
36
36
  "build": "tsx scripts build",
37
+ "build:icons": "tsx scripts build-icons",
37
38
  "build:storybook": "storybook build --disable-telemetry && npm run storybook:fix-paths",
38
39
  "storybook": "storybook dev -p 6006",
39
40
  "storybook:playwright": "storybook dev -p 9000",
@@ -44,7 +45,7 @@
44
45
  "description": "",
45
46
  "devDependencies": {
46
47
  "@axe-core/playwright": "^4.10.1",
47
- "@coopdigital/styles": "^0.15.1",
48
+ "@coopdigital/styles": "^0.15.2",
48
49
  "@playwright/test": "^1.51.1",
49
50
  "@storybook/addon-a11y": "^8.6.12",
50
51
  "@storybook/addon-essentials": "^8.6.12",
@@ -66,5 +67,5 @@
66
67
  "react": "^19.0.0",
67
68
  "react-dom": "^19.0.0"
68
69
  },
69
- "gitHead": "4a24650f72c010d21c1fccac53e6de59ec7c3e6e"
70
+ "gitHead": "0fa78c25e19ac1c1dc6af564c570e94646e71bc4"
70
71
  }
@@ -1,6 +1,22 @@
1
- export const AddIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const AddIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path
5
21
  d="M24.7 16.72a1 1 0 0 1-.7.28H8a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1 1 1 0 0 1-.3.72"
6
22
  fill="currentColor"
@@ -1,6 +1,22 @@
1
- export const ArrowDownIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const ArrowDownIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path d="M15 28.66V3a1 1 0 0 1 2 0v25.66a1 1 0 0 1-2 0" fill="currentColor" />
5
21
  <path
6
22
  d="M3 17a1 1 0 0 1 .29-.71 1 1 0 0 1 1.42 0L16 27.58l11.29-11.29a1 1 0 0 1 1.42 0 1 1 0 0 1 0 1.41l-12 12a1 1 0 0 1-1.41 0l-12-12A1 1 0 0 1 3 17"
@@ -1,6 +1,22 @@
1
- export const ArrowLeftIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const ArrowLeftIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path d="M3.34 17H29a1 1 0 0 0 0-2H3.34a1 1 0 0 0 0 2" fill="currentColor" />
5
21
  <path
6
22
  d="M15 29a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.12 16.71a1 1 0 0 1 0-1.42L15.71 4.71a1 1 0 0 0 0-1.42 1 1 0 0 0-1.41 0l-12 12a1 1 0 0 0 0 1.42l12 12a1 1 0 0 0 .7.29"
@@ -1,6 +1,22 @@
1
- export const ArrowRightIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const ArrowRightIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path d="M28.7 15H3a1 1 0 0 0 0 2h25.7a1 1 0 0 0 0-2" fill="currentColor" />
5
21
  <path
6
22
  d="M17 3a1 1 0 0 0-.7.3 1 1 0 0 0 0 1.4l10.6 10.6a1 1 0 0 1 0 1.4L16.3 27.3a1 1 0 0 0 0 1.4 1 1 0 0 0 1.4 0l12-12a1 1 0 0 0 0-1.4l-12-12A1 1 0 0 0 17 3"
@@ -1,6 +1,22 @@
1
- export const ArrowUpIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const ArrowUpIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path d="M17 3.34V29a1 1 0 0 1-2 0V3.34a1 1 0 0 1 2 0" fill="currentColor" />
5
21
  <path
6
22
  d="M29 15a1 1 0 0 1-.29.71 1 1 0 0 1-1.42 0L16 4.42 4.71 15.71a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.41l12-12a1 1 0 0 1 1.41 0l12 12a1 1 0 0 1 .3.7"
@@ -1,6 +1,22 @@
1
- export const AvatarAltIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const AvatarAltIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path
5
21
  d="M16 32a16 16 0 1 1 16-16 16 16 0 0 1-16 16m0-30a14 14 0 1 0 14 14A14 14 0 0 0 16 2"
6
22
  fill="currentColor"
@@ -1,6 +1,22 @@
1
- export const AvatarIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const AvatarIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path
5
21
  d="M16 31a18.24 18.24 0 0 1-12.64-5.1A1.19 1.19 0 0 1 3 24.86a12.31 12.31 0 0 1 12-10h2a12.31 12.31 0 0 1 12 10 1.19 1.19 0 0 1-.34 1.06A18.24 18.24 0 0 1 16 31M5.42 24.68a15.9 15.9 0 0 0 21.16 0A10 10 0 0 0 17 17.17h-2a10 10 0 0 0-9.58 7.51"
6
22
  fill="currentColor"
@@ -1,6 +1,22 @@
1
- export const BasketIcon = () => {
1
+ import { type SVGProps, useId } from "react"
2
+
3
+ interface IconProps extends SVGProps<SVGSVGElement> {
4
+ alt?: string
5
+ }
6
+
7
+ export const BasketIcon = ({ alt, className, ...props }: IconProps) => {
8
+ const id = useId()
9
+ const componentProps = {
10
+ "aria-labelledby": alt ? id : undefined,
11
+ className: `coop-icon ${className ?? ""}`.trim(),
12
+ fill: "none",
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ }
2
17
  return (
3
- <svg className="coop-icon" fill="none" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
18
+ <svg {...componentProps}>
19
+ {alt ? <title id={id}>{alt}</title> : null}
4
20
  <path
5
21
  d="M16.07 26a1 1 0 0 0 1-1v-4.08a1 1 0 1 0-2 0V25a1 1 0 0 0 1 1M21.5 26h.17a1 1 0 0 0 1-.85l.68-4.07a1 1 0 0 0-.82-1.18 1 1 0 0 0-1.16.84l-.67 4.07a1 1 0 0 0 .8 1.19M10.43 26h.17a1 1 0 0 0 .82-1.18l-.68-4.07a1 1 0 0 0-1.15-.84 1 1 0 0 0-.82 1.18l.67 4.07a1 1 0 0 0 .99.84"
6
22
  fill="currentColor"