@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
|
@@ -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 SearchIcon = ({ 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="M13.25 25.49a12.25 12.25 0 1 1 12.24-12.24 12.25 12.25 0 0 1-12.24 12.24m0-22.61a10.37 10.37 0 1 0 10.36 10.37A10.38 10.38 0 0 0 13.25 2.88"
|
|
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 SettingsIcon = ({ 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 2a14 14 0 0 1 2.13.16v3.57l1.34.47a10.2 10.2 0 0 1 3.27 1.89l1.08.91 1.23-.71 1.86-1.08a14 14 0 0 1 2.14 3.69L27.18 12l-1.18.7.26 1.39a10.6 10.6 0 0 1 0 3.8L26 19.28l1.23.71 1.88 1.09a14.2 14.2 0 0 1-2.14 3.69l-1.86-1.08-1.28-.69-1.07.92a10.6 10.6 0 0 1-3.3 1.9l-1.33.47v3.57A14 14 0 0 1 16 30a14 14 0 0 1-2.13-.16v-3.57l-1.34-.47a10.2 10.2 0 0 1-3.27-1.9L8.18 23 7 23.69l-1.91 1.08A14.1 14.1 0 0 1 3 21.08L4.82 20l1.23-.71-.26-1.39a10.6 10.6 0 0 1 0-3.8l.26-1.39L4.82 12 3 10.92a14.5 14.5 0 0 1 2.08-3.69l1.86 1.08L8.16 9l1.08-.9a10.6 10.6 0 0 1 3.3-1.9l1.33-.47V2.16A14 14 0 0 1 16 2m0 21a7 7 0 1 0-7-7 7 7 0 0 0 7 7m0-23a16 16 0 0 0-3.53.39.76.76 0 0 0-.6.75v3.18a12.7 12.7 0 0 0-3.93 2.26L5.2 5a.75.75 0 0 0-.38-.1.77.77 0 0 0-.57.25 15.9 15.9 0 0 0-3.53 6.1.78.78 0 0 0 .35.91l2.75 1.59a12.3 12.3 0 0 0 0 4.52l-2.75 1.58a.79.79 0 0 0-.35.9 16 16 0 0 0 3.53 6.11.8.8 0 0 0 .57.25.7.7 0 0 0 .38-.11L8 25.42a12.3 12.3 0 0 0 3.92 2.26v3.18a.77.77 0 0 0 .61.75A16.2 16.2 0 0 0 16 32a16 16 0 0 0 3.53-.39.76.76 0 0 0 .6-.75v-3.18a12.5 12.5 0 0 0 3.92-2.26L26.8 27a.79.79 0 0 0 1-.15 16 16 0 0 0 3.53-6.11.8.8 0 0 0-.36-.9l-2.75-1.59a12.8 12.8 0 0 0 0-4.53l2.75-1.59a.78.78 0 0 0 .35-.9 16.1 16.1 0 0 0-3.53-6.1.76.76 0 0 0-.57-.26.73.73 0 0 0-.42.13l-2.75 1.57a12.3 12.3 0 0 0-3.92-2.26V1.14a.77.77 0 0 0-.61-.75A16.2 16.2 0 0 0 16 0m0 21a5 5 0 1 1 5-5 5 5 0 0 1-5 5"
|
|
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 TickAltIcon = ({ 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="M12.7 22a1 1 0 0 1-.71-.29L8.3 18a1 1 0 0 1 0-1.42 1 1 0 0 1 1.41 0l3 3 9.41-9.38a1 1 0 0 1 1.42 0 1 1 0 0 1 0 1.41L13.4 21.69a1 1 0 0 1-.7.31"
|
|
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 TickIcon = ({ 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="M10.41 26a1 1 0 0 1-.71-.3l-6.42-6.59a1 1 0 0 1 1.44-1.39l5.69 5.85L27.28 6.3a1 1 0 1 1 1.44 1.4l-17.59 18a1 1 0 0 1-.72.3"
|
|
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 VanIcon = ({ 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="M31.05 3H9.8a1 1 0 0 0-1 1v.2H3.06a1 1 0 0 0-1 .86L.89 12.64a1 1 0 0 0-.89 1v10a1 1 0 0 0 1 1h3a5 5 0 0 0 9.9 0H18a5 5 0 0 0 9.89 0h3.21a1 1 0 0 0 .72-.3 1 1 0 0 0 .18-.72V4a1 1 0 0 0-.95-1M3.91 6.24H8.8v6.38H2.93ZM8.92 27A3 3 0 0 1 6 24.71a2.9 2.9 0 0 1-.12-.83 3.1 3.1 0 0 1 .25-1.22 3 3 0 0 1 5.53 0 3.3 3.3 0 0 1 .24 1.22 3.3 3.3 0 0 1-.11.83A3 3 0 0 1 8.92 27M23 27a3 3 0 0 1-2.89-2.24 2.9 2.9 0 0 1-.12-.83 3.1 3.1 0 0 1 .25-1.22 3 3 0 0 1 5.53 0 3.3 3.3 0 0 1 .23 1.17 3.3 3.3 0 0 1-.11.83A3 3 0 0 1 23 27m4.87-4.29a5 5 0 0 0-9.74 0H13.8a5 5 0 0 0-9.75 0H2v-8h7.8a1 1 0 0 0 1-1V5.05H30v17.61Z"
|
|
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 WarningIcon = ({ 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="M2.35 28.08 16.06 4.46l13.71 23.62Zm29.32-.7L17.56 3.07A1.73 1.73 0 0 0 16.06 2a1.94 1.94 0 0 0-1.5 1.1L.35 27.38C-.45 28.77.15 30 1.85 30h28.32a1.6 1.6 0 0 0 1.5-2.62"
|
|
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 WriteIcon = ({ 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="M19.67 10.13 17.9 11.9H7a1 1 0 0 1 0-2h12a1 1 0 0 1 .67.23M14.9 14.9l-2 2H7a1 1 0 0 1 0-2ZM20 15.9a1 1 0 0 1-1 1h-1.87l2-2a1 1 0 0 1 .82.59.85.85 0 0 1 .05.41M19 21.9H7a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2"
|
|
6
22
|
fill="currentColor"
|