@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.
- package/README.md +2 -2
- package/dist/components/Icon/AddIcon.d.ts +6 -1
- package/dist/components/Icon/ArrowDownIcon.d.ts +6 -1
- package/dist/components/Icon/ArrowLeftIcon.d.ts +6 -1
- package/dist/components/Icon/ArrowRightIcon.d.ts +6 -1
- package/dist/components/Icon/ArrowUpIcon.d.ts +6 -1
- package/dist/components/Icon/AvatarAltIcon.d.ts +6 -1
- package/dist/components/Icon/AvatarIcon.d.ts +6 -1
- package/dist/components/Icon/BasketIcon.d.ts +6 -1
- package/dist/components/Icon/CalendarIcon.d.ts +6 -1
- package/dist/components/Icon/ChevronDownIcon.d.ts +6 -1
- package/dist/components/Icon/ChevronLeftIcon.d.ts +6 -1
- package/dist/components/Icon/ChevronRightIcon.d.ts +6 -1
- package/dist/components/Icon/ChevronUpIcon.d.ts +6 -1
- package/dist/components/Icon/ClockIcon.d.ts +6 -1
- package/dist/components/Icon/CloseAltIcon.d.ts +6 -1
- package/dist/components/Icon/CloseIcon.d.ts +6 -1
- package/dist/components/Icon/CoopCardIcon.d.ts +6 -1
- package/dist/components/Icon/CoopIcon.d.ts +6 -1
- package/dist/components/Icon/CoopLocationIcon.d.ts +6 -1
- package/dist/components/Icon/DownloadIcon.d.ts +6 -1
- package/dist/components/Icon/HomeIcon.d.ts +6 -1
- package/dist/components/Icon/InformationIcon.d.ts +6 -1
- package/dist/components/Icon/LocationIcon.d.ts +6 -1
- package/dist/components/Icon/MailIcon.d.ts +6 -1
- package/dist/components/Icon/MenuIcon.d.ts +6 -1
- package/dist/components/Icon/MessageIcon.d.ts +6 -1
- package/dist/components/Icon/MinusIcon.d.ts +6 -1
- package/dist/components/Icon/OpenNewIcon.d.ts +6 -1
- package/dist/components/Icon/PencilIcon.d.ts +6 -1
- package/dist/components/Icon/PhoneIcon.d.ts +6 -1
- package/dist/components/Icon/QuestionIcon.d.ts +6 -1
- package/dist/components/Icon/ScooterIcon.d.ts +6 -1
- package/dist/components/Icon/SearchIcon.d.ts +6 -1
- package/dist/components/Icon/SettingsIcon.d.ts +6 -1
- package/dist/components/Icon/TickAltIcon.d.ts +6 -1
- package/dist/components/Icon/TickIcon.d.ts +6 -1
- package/dist/components/Icon/VanIcon.d.ts +6 -1
- package/dist/components/Icon/WarningIcon.d.ts +6 -1
- package/dist/components/Icon/WriteIcon.d.ts +6 -1
- package/package.json +4 -3
- package/src/components/Icon/AddIcon.tsx +18 -2
- package/src/components/Icon/ArrowDownIcon.tsx +18 -2
- package/src/components/Icon/ArrowLeftIcon.tsx +18 -2
- package/src/components/Icon/ArrowRightIcon.tsx +18 -2
- package/src/components/Icon/ArrowUpIcon.tsx +18 -2
- package/src/components/Icon/AvatarAltIcon.tsx +18 -2
- package/src/components/Icon/AvatarIcon.tsx +18 -2
- package/src/components/Icon/BasketIcon.tsx +18 -2
- package/src/components/Icon/CalendarIcon.tsx +18 -2
- package/src/components/Icon/ChevronDownIcon.tsx +18 -2
- package/src/components/Icon/ChevronLeftIcon.tsx +18 -2
- package/src/components/Icon/ChevronRightIcon.tsx +18 -2
- package/src/components/Icon/ChevronUpIcon.tsx +18 -2
- package/src/components/Icon/ClockIcon.tsx +18 -2
- package/src/components/Icon/CloseAltIcon.tsx +18 -2
- package/src/components/Icon/CloseIcon.tsx +18 -2
- package/src/components/Icon/CoopCardIcon.tsx +19 -2
- package/src/components/Icon/CoopIcon.tsx +19 -2
- package/src/components/Icon/CoopLocationIcon.tsx +18 -2
- package/src/components/Icon/DownloadIcon.tsx +18 -2
- package/src/components/Icon/HomeIcon.tsx +18 -2
- package/src/components/Icon/InformationIcon.tsx +18 -2
- package/src/components/Icon/LocationIcon.tsx +18 -2
- package/src/components/Icon/MailIcon.tsx +18 -2
- package/src/components/Icon/MenuIcon.tsx +18 -2
- package/src/components/Icon/MessageIcon.tsx +18 -2
- package/src/components/Icon/MinusIcon.tsx +18 -2
- package/src/components/Icon/OpenNewIcon.tsx +18 -2
- package/src/components/Icon/PencilIcon.tsx +18 -2
- package/src/components/Icon/PhoneIcon.tsx +18 -2
- package/src/components/Icon/QuestionIcon.tsx +18 -2
- package/src/components/Icon/ScooterIcon.tsx +18 -2
- package/src/components/Icon/SearchIcon.tsx +18 -2
- package/src/components/Icon/SettingsIcon.tsx +18 -2
- package/src/components/Icon/TickAltIcon.tsx +18 -2
- package/src/components/Icon/TickIcon.tsx +18 -2
- package/src/components/Icon/VanIcon.tsx +18 -2
- package/src/components/Icon/WarningIcon.tsx +18 -2
- 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/
|
|
37
|
-
import "@coopdigital/styles/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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": "
|
|
70
|
+
"gitHead": "0fa78c25e19ac1c1dc6af564c570e94646e71bc4"
|
|
70
71
|
}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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"
|