@coopdigital/react 1.5.0 → 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/Button/Button.js +0 -1
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.js +0 -1
- package/dist/components/DatePicker/DatePicker.js +0 -1
- package/dist/components/Expandable/Expandable.d.ts +4 -4
- package/dist/components/Field/Field.context.js +0 -1
- package/dist/components/Field/Field.d.ts +7 -7
- package/dist/components/Field/Field.js +0 -1
- package/dist/components/FieldMarkers/Label.d.ts +1 -1
- package/dist/components/FieldMarkers/Legend.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +6 -6
- package/dist/components/Pill/Pill.d.ts +2 -2
- package/dist/components/Radio/Radio.js +0 -1
- package/dist/components/RootSVG/RootSVG.d.ts +1 -1
- package/dist/components/Searchbox/Searchbox.d.ts +4 -4
- package/dist/components/Searchbox/Searchbox.js +0 -1
- package/dist/components/Select/Select.js +0 -1
- package/dist/components/TextInput/TextInput.js +0 -1
- package/dist/components/Textarea/Textarea.js +0 -1
- package/dist/components/ValidationSummary/ValidationSummary.js +0 -1
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +1 -1
- package/dist/components/icons/AccountCircleIcon.d.ts +1 -1
- package/dist/components/icons/AccountFilledIcon.d.ts +1 -1
- package/dist/components/icons/AccountIcon.d.ts +1 -1
- package/dist/components/icons/AddIcon.d.ts +1 -1
- package/dist/components/icons/AppsFilledIcon.d.ts +1 -1
- package/dist/components/icons/AppsIcon.d.ts +1 -1
- package/dist/components/icons/ArrowDownIcon.d.ts +1 -1
- package/dist/components/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/components/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/components/icons/ArrowUpIcon.d.ts +1 -1
- package/dist/components/icons/BackspaceFilledIcon.d.ts +1 -1
- package/dist/components/icons/BackspaceIcon.d.ts +1 -1
- package/dist/components/icons/BasketFilledIcon.d.ts +1 -1
- package/dist/components/icons/BasketIcon.d.ts +1 -1
- package/dist/components/icons/BellFilledIcon.d.ts +1 -1
- package/dist/components/icons/BellIcon.d.ts +1 -1
- package/dist/components/icons/BroomIcon.d.ts +1 -1
- package/dist/components/icons/CalendarFilledIcon.d.ts +1 -1
- package/dist/components/icons/CalendarIcon.d.ts +1 -1
- package/dist/components/icons/CashFilledIcon.d.ts +1 -1
- package/dist/components/icons/CashIcon.d.ts +1 -1
- package/dist/components/icons/ChevronDownIcon.d.ts +1 -1
- package/dist/components/icons/ChevronLeftIcon.d.ts +1 -1
- package/dist/components/icons/ChevronRightIcon.d.ts +1 -1
- package/dist/components/icons/ChevronUpIcon.d.ts +1 -1
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +1 -1
- package/dist/components/icons/CircleBurgerIcon.d.ts +1 -1
- package/dist/components/icons/ClipboardFilledIcon.d.ts +1 -1
- package/dist/components/icons/ClipboardIcon.d.ts +1 -1
- package/dist/components/icons/ClockFilledIcon.d.ts +1 -1
- package/dist/components/icons/ClockIcon.d.ts +1 -1
- package/dist/components/icons/CloseAltFilledIcon.d.ts +1 -1
- package/dist/components/icons/CloseAltIcon.d.ts +1 -1
- package/dist/components/icons/CogIcon.d.ts +1 -1
- package/dist/components/icons/CommunityFilledIcon.d.ts +1 -1
- package/dist/components/icons/CommunityIcon.d.ts +1 -1
- package/dist/components/icons/ComputerIcon.d.ts +1 -1
- package/dist/components/icons/ContactFilledIcon.d.ts +1 -1
- package/dist/components/icons/ContactIcon.d.ts +1 -1
- package/dist/components/icons/ContactlessFilledIcon.d.ts +1 -1
- package/dist/components/icons/ContactlessIcon.d.ts +1 -1
- package/dist/components/icons/CoopLiveIcon.d.ts +1 -1
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +1 -1
- package/dist/components/icons/CoopLogoIcon.d.ts +1 -1
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +1 -1
- package/dist/components/icons/CreditCardFilledIcon.d.ts +1 -1
- package/dist/components/icons/CreditCardIcon.d.ts +1 -1
- package/dist/components/icons/CrossIcon.d.ts +1 -1
- package/dist/components/icons/DocumentIcon.d.ts +1 -1
- package/dist/components/icons/DownloadIcon.d.ts +1 -1
- package/dist/components/icons/EnterStoreIcon.d.ts +1 -1
- package/dist/components/icons/ExitStoreIcon.d.ts +1 -1
- package/dist/components/icons/EyeFilledIcon.d.ts +1 -1
- package/dist/components/icons/EyeIcon.d.ts +1 -1
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +1 -1
- package/dist/components/icons/EyeStrikeIcon.d.ts +1 -1
- package/dist/components/icons/FeedbackFilledIcon.d.ts +1 -1
- package/dist/components/icons/FeedbackIcon.d.ts +1 -1
- package/dist/components/icons/FilterIcon.d.ts +1 -1
- package/dist/components/icons/GiftCardFilledIcon.d.ts +1 -1
- package/dist/components/icons/GiftCardIcon.d.ts +1 -1
- package/dist/components/icons/GiftFilledIcon.d.ts +1 -1
- package/dist/components/icons/GiftIcon.d.ts +1 -1
- package/dist/components/icons/HelpFilledIcon.d.ts +1 -1
- package/dist/components/icons/HelpIcon.d.ts +1 -1
- package/dist/components/icons/HomeFilledIcon.d.ts +1 -1
- package/dist/components/icons/HomeIcon.d.ts +1 -1
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +1 -1
- package/dist/components/icons/InfoIcon.d.ts +1 -1
- package/dist/components/icons/KebabIcon.d.ts +1 -1
- package/dist/components/icons/LoadingIcon.d.ts +1 -1
- package/dist/components/icons/LocationFilledIcon.d.ts +1 -1
- package/dist/components/icons/LocationIcon.d.ts +1 -1
- package/dist/components/icons/LogoutIcon.d.ts +1 -1
- package/dist/components/icons/MailIcon.d.ts +1 -1
- package/dist/components/icons/MenuIcon.d.ts +1 -1
- package/dist/components/icons/MessageIcon.d.ts +1 -1
- package/dist/components/icons/MinusIcon.d.ts +1 -1
- package/dist/components/icons/NotesFilledIcon.d.ts +1 -1
- package/dist/components/icons/NotesIcon.d.ts +1 -1
- package/dist/components/icons/OpenNewIcon.d.ts +1 -1
- package/dist/components/icons/OwnBagIcon.d.ts +1 -1
- package/dist/components/icons/PadlockIcon.d.ts +1 -1
- package/dist/components/icons/PencilIcon.d.ts +1 -1
- package/dist/components/icons/PhoneIcon.d.ts +1 -1
- package/dist/components/icons/PowerIcon.d.ts +1 -1
- package/dist/components/icons/SaveFilledIcon.d.ts +1 -1
- package/dist/components/icons/SaveIcon.d.ts +1 -1
- package/dist/components/icons/ScooterIcon.d.ts +1 -1
- package/dist/components/icons/SearchFilledIcon.d.ts +1 -1
- package/dist/components/icons/SearchIcon.d.ts +1 -1
- package/dist/components/icons/SendIcon.d.ts +1 -1
- package/dist/components/icons/SpannerIcon.d.ts +1 -1
- package/dist/components/icons/StarFilledIcon.d.ts +1 -1
- package/dist/components/icons/StarIcon.d.ts +1 -1
- package/dist/components/icons/TickAltFilledIcon.d.ts +1 -1
- package/dist/components/icons/TickAltIcon.d.ts +1 -1
- package/dist/components/icons/TickIcon.d.ts +1 -1
- package/dist/components/icons/TruckIcon.d.ts +1 -1
- package/dist/components/icons/UserWipeIcon.d.ts +1 -1
- package/dist/components/icons/VoucherFilledIcon.d.ts +1 -1
- package/dist/components/icons/VoucherIcon.d.ts +1 -1
- 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/WarningFilledIcon.d.ts +1 -1
- package/dist/components/icons/WarningIcon.d.ts +1 -1
- package/dist/components/icons/WifiIcon.d.ts +1 -1
- package/dist/components/icons/WriteIcon.d.ts +1 -1
- package/dist/components/icons/index.d.ts +2 -0
- package/dist/components/icons/index.js +2 -0
- package/package.json +11 -11
- package/src/components/icons/WarningCircleFilledIcon.tsx +32 -0
- package/src/components/icons/WarningCircleIcon.tsx +33 -0
- package/src/components/icons/index.ts +2 -0
|
@@ -2,5 +2,5 @@ import { type SVGProps } from "react";
|
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const WifiIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react
|
|
5
|
+
export declare const WifiIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -2,5 +2,5 @@ import { type SVGProps } from "react";
|
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const WriteIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react
|
|
5
|
+
export declare const WriteIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -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"
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@axe-core/playwright": "^4.11.3",
|
|
64
64
|
"@playwright/test": "^1.60.0",
|
|
65
|
-
"@storybook/addon-a11y": "^10.4.
|
|
66
|
-
"@storybook/addon-docs": "^10.4.
|
|
67
|
-
"@storybook/addon-onboarding": "^10.4.
|
|
68
|
-
"@storybook/react-vite": "^10.4.
|
|
65
|
+
"@storybook/addon-a11y": "^10.4.4",
|
|
66
|
+
"@storybook/addon-docs": "^10.4.4",
|
|
67
|
+
"@storybook/addon-onboarding": "^10.4.4",
|
|
68
|
+
"@storybook/react-vite": "^10.4.4",
|
|
69
69
|
"@testing-library/jest-dom": "^6.9.1",
|
|
70
70
|
"@testing-library/react": "^16.3.2",
|
|
71
|
-
"@types/react": "^19.2.
|
|
71
|
+
"@types/react": "^19.2.17",
|
|
72
72
|
"@types/react-dom": "^19.2.3",
|
|
73
|
-
"react": "^19.2.
|
|
74
|
-
"react-dom": "^19.2.
|
|
73
|
+
"react": "^19.2.7",
|
|
74
|
+
"react-dom": "^19.2.7",
|
|
75
75
|
"resize-observer-polyfill": "^1.5.1",
|
|
76
76
|
"serve": "^14.2.6",
|
|
77
|
-
"storybook": "^10.4.
|
|
77
|
+
"storybook": "^10.4.4",
|
|
78
78
|
"storybook-addon-tag-badges": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"storybook": "$storybook"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@coopdigital/styles": "^1.3.
|
|
88
|
+
"@coopdigital/styles": "^1.3.3",
|
|
89
89
|
"@radix-ui/react-popover": "^1.1.15",
|
|
90
90
|
"clsx": "^2.1.1",
|
|
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"
|