@coopdigital/react 1.5.1 → 1.6.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/dist/components/icons/WarningCircleFilledIcon.d.ts +6 -0
- package/dist/components/icons/WarningCircleFilledIcon.js +20 -0
- package/dist/components/icons/WarningCircleIcon.d.ts +6 -0
- package/dist/components/icons/WarningCircleIcon.js +20 -0
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/components/icons/index.js +2 -0
- package/package.json +2 -2
- package/src/components/icons/WarningCircleFilledIcon.tsx +32 -0
- package/src/components/icons/WarningCircleIcon.tsx +33 -0
- package/src/components/icons/index.ts +2 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const WarningCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "warning-circle-filled",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "__title", children: alt }) : null, jsx("path", { clipRule: "evenodd", d: "M16 2c7.732 0 14 6.268 14 14s-6.268 14-14 14S2 23.732 2 16 8.268 2 16 2m0 18a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m0-11.5a1.5 1.5 0 0 0-1.5 1.5v6a1.5 1.5 0 0 0 3 0v-6A1.5 1.5 0 0 0 16 8.5", fillRule: "evenodd" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { WarningCircleFilledIcon };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { useId } from '../../hooks/useId.js';
|
|
4
|
+
|
|
5
|
+
const WarningCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
|
+
const uid = useId(id);
|
|
7
|
+
const componentProps = {
|
|
8
|
+
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
9
|
+
className: clsx("coop-icon", className),
|
|
10
|
+
"data-icon": "warning-circle",
|
|
11
|
+
fill: fill !== null && fill !== void 0 ? fill : "currentColor",
|
|
12
|
+
id: uid,
|
|
13
|
+
role: alt ? "img" : undefined,
|
|
14
|
+
viewBox: "0 0 32 32",
|
|
15
|
+
...props,
|
|
16
|
+
};
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "__title", children: alt }) : null, jsx("path", { d: "M16 17.5a1.5 1.5 0 0 1-1.5-1.5v-6a1.5 1.5 0 0 1 3 0v6a1.5 1.5 0 0 1-1.5 1.5M16 23a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" }), jsx("path", { clipRule: "evenodd", d: "M16 30C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14m0-2c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12", fillRule: "evenodd" })] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { WarningCircleIcon };
|
|
@@ -101,6 +101,8 @@ export { TruckIcon } from "./TruckIcon";
|
|
|
101
101
|
export { UserWipeIcon } from "./UserWipeIcon";
|
|
102
102
|
export { VoucherFilledIcon } from "./VoucherFilledIcon";
|
|
103
103
|
export { VoucherIcon } from "./VoucherIcon";
|
|
104
|
+
export { WarningCircleFilledIcon } from "./WarningCircleFilledIcon";
|
|
105
|
+
export { WarningCircleIcon } from "./WarningCircleIcon";
|
|
104
106
|
export { WarningFilledIcon } from "./WarningFilledIcon";
|
|
105
107
|
export { WarningIcon } from "./WarningIcon";
|
|
106
108
|
export { WifiIcon } from "./WifiIcon";
|
|
@@ -101,6 +101,8 @@ export { TruckIcon } from './TruckIcon.js';
|
|
|
101
101
|
export { UserWipeIcon } from './UserWipeIcon.js';
|
|
102
102
|
export { VoucherFilledIcon } from './VoucherFilledIcon.js';
|
|
103
103
|
export { VoucherIcon } from './VoucherIcon.js';
|
|
104
|
+
export { WarningCircleFilledIcon } from './WarningCircleFilledIcon.js';
|
|
105
|
+
export { WarningCircleIcon } from './WarningCircleIcon.js';
|
|
104
106
|
export { WarningFilledIcon } from './WarningFilledIcon.js';
|
|
105
107
|
export { WarningIcon } from './WarningIcon.js';
|
|
106
108
|
export { WifiIcon } from './WifiIcon.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopdigital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"merge-refs": "^2.0.0",
|
|
92
92
|
"react-day-picker": "^10.0.0"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "b4a030edd096225e6115ad784285b1a3003ba31b"
|
|
95
95
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import clsx from "clsx"
|
|
2
|
+
import { type SVGProps } from "react"
|
|
3
|
+
|
|
4
|
+
import { useId } from "../../hooks/useId"
|
|
5
|
+
|
|
6
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
7
|
+
alt?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const WarningCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
const uid = useId(id)
|
|
12
|
+
const componentProps = {
|
|
13
|
+
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
14
|
+
className: clsx("coop-icon", className),
|
|
15
|
+
"data-icon": "warning-circle-filled",
|
|
16
|
+
fill: fill ?? "currentColor",
|
|
17
|
+
id: uid,
|
|
18
|
+
role: alt ? "img" : undefined,
|
|
19
|
+
viewBox: "0 0 32 32",
|
|
20
|
+
...props,
|
|
21
|
+
}
|
|
22
|
+
return (
|
|
23
|
+
<svg {...componentProps} ref={ref}>
|
|
24
|
+
{alt ? <title id={uid + "__title"}>{alt}</title> : null}
|
|
25
|
+
<path
|
|
26
|
+
clipRule="evenodd"
|
|
27
|
+
d="M16 2c7.732 0 14 6.268 14 14s-6.268 14-14 14S2 23.732 2 16 8.268 2 16 2m0 18a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m0-11.5a1.5 1.5 0 0 0-1.5 1.5v6a1.5 1.5 0 0 0 3 0v-6A1.5 1.5 0 0 0 16 8.5"
|
|
28
|
+
fillRule="evenodd"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import clsx from "clsx"
|
|
2
|
+
import { type SVGProps } from "react"
|
|
3
|
+
|
|
4
|
+
import { useId } from "../../hooks/useId"
|
|
5
|
+
|
|
6
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
7
|
+
alt?: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const WarningCircleIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
const uid = useId(id)
|
|
12
|
+
const componentProps = {
|
|
13
|
+
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
14
|
+
className: clsx("coop-icon", className),
|
|
15
|
+
"data-icon": "warning-circle",
|
|
16
|
+
fill: fill ?? "currentColor",
|
|
17
|
+
id: uid,
|
|
18
|
+
role: alt ? "img" : undefined,
|
|
19
|
+
viewBox: "0 0 32 32",
|
|
20
|
+
...props,
|
|
21
|
+
}
|
|
22
|
+
return (
|
|
23
|
+
<svg {...componentProps} ref={ref}>
|
|
24
|
+
{alt ? <title id={uid + "__title"}>{alt}</title> : null}
|
|
25
|
+
<path d="M16 17.5a1.5 1.5 0 0 1-1.5-1.5v-6a1.5 1.5 0 0 1 3 0v6a1.5 1.5 0 0 1-1.5 1.5M16 23a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" />
|
|
26
|
+
<path
|
|
27
|
+
clipRule="evenodd"
|
|
28
|
+
d="M16 30C8.268 30 2 23.732 2 16S8.268 2 16 2s14 6.268 14 14-6.268 14-14 14m0-2c6.627 0 12-5.373 12-12S22.627 4 16 4 4 9.373 4 16s5.373 12 12 12"
|
|
29
|
+
fillRule="evenodd"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
@@ -101,6 +101,8 @@ export { TruckIcon } from "./TruckIcon"
|
|
|
101
101
|
export { UserWipeIcon } from "./UserWipeIcon"
|
|
102
102
|
export { VoucherFilledIcon } from "./VoucherFilledIcon"
|
|
103
103
|
export { VoucherIcon } from "./VoucherIcon"
|
|
104
|
+
export { WarningCircleFilledIcon } from "./WarningCircleFilledIcon"
|
|
105
|
+
export { WarningCircleIcon } from "./WarningCircleIcon"
|
|
104
106
|
export { WarningFilledIcon } from "./WarningFilledIcon"
|
|
105
107
|
export { WarningIcon } from "./WarningIcon"
|
|
106
108
|
export { WifiIcon } from "./WifiIcon"
|