@coopdigital/react 1.10.1 → 1.11.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/DatePicker/DatePicker.js +2 -2
- package/dist/components/Expandable/Expandable.js +1 -1
- package/dist/components/Field/Field.d.ts +8 -8
- package/dist/components/FieldMarkers/Label.d.ts +2 -2
- package/dist/components/FieldMarkers/Legend.d.ts +2 -2
- package/dist/components/Logo/Logo.d.ts +2 -2
- package/dist/components/RootSVG/RootSVG.d.ts +2 -1
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +2 -2
- package/dist/components/icons/AccountCircleIcon.d.ts +2 -2
- package/dist/components/icons/AccountFilledIcon.d.ts +2 -2
- package/dist/components/icons/AccountIcon.d.ts +2 -2
- package/dist/components/icons/AddIcon.d.ts +2 -2
- package/dist/components/icons/AppsFilledIcon.d.ts +2 -2
- package/dist/components/icons/AppsIcon.d.ts +2 -2
- package/dist/components/icons/ArrowDownIcon.d.ts +2 -2
- package/dist/components/icons/ArrowLeftIcon.d.ts +2 -2
- package/dist/components/icons/ArrowRightIcon.d.ts +2 -2
- package/dist/components/icons/ArrowUpIcon.d.ts +2 -2
- package/dist/components/icons/BackspaceFilledIcon.d.ts +2 -2
- package/dist/components/icons/BackspaceIcon.d.ts +2 -2
- package/dist/components/icons/BasketFilledIcon.d.ts +2 -2
- package/dist/components/icons/BasketIcon.d.ts +2 -2
- package/dist/components/icons/BellFilledIcon.d.ts +2 -2
- package/dist/components/icons/BellFilledIcon.js +1 -1
- package/dist/components/icons/BellIcon.d.ts +2 -2
- package/dist/components/icons/BroomIcon.d.ts +2 -2
- package/dist/components/icons/CalendarFilledIcon.d.ts +2 -2
- package/dist/components/icons/CalendarIcon.d.ts +2 -2
- package/dist/components/icons/CashFilledIcon.d.ts +2 -2
- package/dist/components/icons/CashIcon.d.ts +2 -2
- package/dist/components/icons/CashIcon.js +1 -1
- package/dist/components/icons/ChevronDownIcon.d.ts +2 -2
- package/dist/components/icons/ChevronLeftIcon.d.ts +2 -2
- package/dist/components/icons/ChevronRightIcon.d.ts +2 -2
- package/dist/components/icons/ChevronUpIcon.d.ts +2 -2
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +2 -2
- package/dist/components/icons/CircleBurgerIcon.d.ts +2 -2
- package/dist/components/icons/ClipboardFilledIcon.d.ts +2 -2
- package/dist/components/icons/ClipboardIcon.d.ts +2 -2
- package/dist/components/icons/ClockFilledIcon.d.ts +2 -2
- package/dist/components/icons/ClockFilledIcon.js +1 -1
- package/dist/components/icons/ClockIcon.d.ts +2 -2
- package/dist/components/icons/CloseAltFilledIcon.d.ts +2 -2
- package/dist/components/icons/CloseAltFilledIcon.js +1 -1
- package/dist/components/icons/CloseAltIcon.d.ts +2 -2
- package/dist/components/icons/CogIcon.d.ts +2 -2
- package/dist/components/icons/CommunityFilledIcon.d.ts +2 -2
- package/dist/components/icons/CommunityIcon.d.ts +2 -2
- package/dist/components/icons/ComputerIcon.d.ts +2 -2
- package/dist/components/icons/ContactFilledIcon.d.ts +2 -2
- package/dist/components/icons/ContactIcon.d.ts +2 -2
- package/dist/components/icons/ContactlessFilledIcon.d.ts +2 -2
- package/dist/components/icons/ContactlessIcon.d.ts +2 -2
- package/dist/components/icons/CoopLiveIcon.d.ts +2 -2
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +2 -2
- package/dist/components/icons/CoopLogoIcon.d.ts +2 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +2 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.js +1 -1
- package/dist/components/icons/CreditCardFilledIcon.d.ts +2 -2
- package/dist/components/icons/CreditCardFilledIcon.js +1 -1
- package/dist/components/icons/CreditCardIcon.d.ts +2 -2
- package/dist/components/icons/CrossIcon.d.ts +2 -2
- package/dist/components/icons/DocumentIcon.d.ts +2 -2
- package/dist/components/icons/DownloadIcon.d.ts +2 -2
- package/dist/components/icons/EnterStoreIcon.d.ts +2 -2
- package/dist/components/icons/ExitStoreIcon.d.ts +2 -2
- package/dist/components/icons/EyeFilledIcon.d.ts +2 -2
- package/dist/components/icons/EyeIcon.d.ts +2 -2
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +2 -2
- package/dist/components/icons/EyeStrikeIcon.d.ts +2 -2
- package/dist/components/icons/FeedbackFilledIcon.d.ts +2 -2
- package/dist/components/icons/FeedbackIcon.d.ts +2 -2
- package/dist/components/icons/FilterIcon.d.ts +2 -2
- package/dist/components/icons/GiftCardFilledIcon.d.ts +2 -2
- package/dist/components/icons/GiftCardIcon.d.ts +2 -2
- package/dist/components/icons/GiftFilledIcon.d.ts +2 -2
- package/dist/components/icons/GiftIcon.d.ts +2 -2
- package/dist/components/icons/HelpFilledIcon.d.ts +2 -2
- package/dist/components/icons/HelpIcon.d.ts +2 -2
- package/dist/components/icons/HomeFilledIcon.d.ts +2 -2
- package/dist/components/icons/HomeIcon.d.ts +2 -2
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +2 -2
- package/dist/components/icons/InfoIcon.d.ts +2 -2
- package/dist/components/icons/KebabIcon.d.ts +2 -2
- package/dist/components/icons/LoadingIcon.d.ts +2 -2
- package/dist/components/icons/LocationFilledIcon.d.ts +2 -2
- package/dist/components/icons/LocationIcon.d.ts +2 -2
- package/dist/components/icons/LogoutIcon.d.ts +2 -2
- package/dist/components/icons/MailIcon.d.ts +2 -2
- package/dist/components/icons/MenuIcon.d.ts +2 -2
- package/dist/components/icons/MessageIcon.d.ts +2 -2
- package/dist/components/icons/MinusIcon.d.ts +2 -2
- package/dist/components/icons/NotesFilledIcon.d.ts +2 -2
- package/dist/components/icons/NotesIcon.d.ts +2 -2
- package/dist/components/icons/OpenNewIcon.d.ts +2 -2
- package/dist/components/icons/OwnBagIcon.d.ts +2 -2
- package/dist/components/icons/PadlockIcon.d.ts +2 -2
- package/dist/components/icons/PencilIcon.d.ts +2 -2
- package/dist/components/icons/PhoneIcon.d.ts +2 -2
- package/dist/components/icons/PowerIcon.d.ts +2 -2
- package/dist/components/icons/SaveFilledIcon.d.ts +2 -2
- package/dist/components/icons/SaveIcon.d.ts +2 -2
- package/dist/components/icons/ScooterIcon.d.ts +2 -2
- package/dist/components/icons/SearchFilledIcon.d.ts +2 -2
- package/dist/components/icons/SearchIcon.d.ts +2 -2
- package/dist/components/icons/SendIcon.d.ts +2 -2
- package/dist/components/icons/SpannerIcon.d.ts +2 -2
- package/dist/components/icons/StarFilledIcon.d.ts +2 -2
- package/dist/components/icons/StarFilledIcon.js +1 -1
- package/dist/components/icons/StarIcon.d.ts +2 -2
- package/dist/components/icons/TickAltFilledIcon.d.ts +2 -2
- package/dist/components/icons/TickAltFilledIcon.js +1 -1
- package/dist/components/icons/TickAltIcon.d.ts +2 -2
- package/dist/components/icons/TickIcon.d.ts +2 -2
- package/dist/components/icons/TruckIcon.d.ts +2 -2
- package/dist/components/icons/UserWipeIcon.d.ts +2 -2
- package/dist/components/icons/VoucherFilledIcon.d.ts +2 -2
- package/dist/components/icons/VoucherIcon.d.ts +2 -2
- package/dist/components/icons/WarningCircleFilledIcon.d.ts +2 -2
- package/dist/components/icons/WarningCircleFilledIcon.js +1 -1
- package/dist/components/icons/WarningCircleIcon.d.ts +2 -2
- package/dist/components/icons/WarningCircleIcon.js +1 -1
- package/dist/components/icons/WarningFilledIcon.d.ts +2 -2
- package/dist/components/icons/WarningIcon.d.ts +2 -2
- package/dist/components/icons/WifiIcon.d.ts +2 -2
- package/dist/components/icons/WriteIcon.d.ts +2 -2
- package/dist/hooks/useSlots.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +4 -4
- package/src/components/DatePicker/datepicker-utils.ts +6 -1
- package/src/components/Expandable/Expandable.tsx +11 -3
- package/src/components/Field/Field.tsx +5 -5
- package/src/components/FieldMarkers/Label.tsx +8 -2
- package/src/components/FieldMarkers/Legend.tsx +8 -2
- package/src/components/Fieldset/Fieldset.tsx +3 -3
- package/src/components/Logo/Logo.tsx +2 -2
- package/src/components/Pill/Pill.tsx +1 -1
- package/src/components/RootSVG/RootSVG.tsx +2 -1
- package/src/components/Searchbox/Searchbox.tsx +2 -2
- package/src/components/Signpost/Signpost.tsx +1 -1
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/icons/AccountCircleFilledIcon.tsx +10 -2
- package/src/components/icons/AccountCircleIcon.tsx +10 -2
- package/src/components/icons/AccountFilledIcon.tsx +10 -2
- package/src/components/icons/AccountIcon.tsx +10 -2
- package/src/components/icons/AddIcon.tsx +3 -2
- package/src/components/icons/AppsFilledIcon.tsx +10 -2
- package/src/components/icons/AppsIcon.tsx +3 -2
- package/src/components/icons/ArrowDownIcon.tsx +10 -2
- package/src/components/icons/ArrowLeftIcon.tsx +10 -2
- package/src/components/icons/ArrowRightIcon.tsx +10 -2
- package/src/components/icons/ArrowUpIcon.tsx +10 -2
- package/src/components/icons/BackspaceFilledIcon.tsx +10 -2
- package/src/components/icons/BackspaceIcon.tsx +10 -2
- package/src/components/icons/BasketFilledIcon.tsx +10 -2
- package/src/components/icons/BasketIcon.tsx +3 -2
- package/src/components/icons/BellFilledIcon.tsx +11 -3
- package/src/components/icons/BellIcon.tsx +3 -2
- package/src/components/icons/BroomIcon.tsx +3 -2
- package/src/components/icons/CalendarFilledIcon.tsx +10 -2
- package/src/components/icons/CalendarIcon.tsx +10 -2
- package/src/components/icons/CashFilledIcon.tsx +10 -2
- package/src/components/icons/CashIcon.tsx +5 -4
- package/src/components/icons/ChevronDownIcon.tsx +10 -2
- package/src/components/icons/ChevronLeftIcon.tsx +10 -2
- package/src/components/icons/ChevronRightIcon.tsx +10 -2
- package/src/components/icons/ChevronUpIcon.tsx +10 -2
- package/src/components/icons/CircleBurgerFilledIcon.tsx +10 -2
- package/src/components/icons/CircleBurgerIcon.tsx +10 -2
- package/src/components/icons/ClipboardFilledIcon.tsx +10 -2
- package/src/components/icons/ClipboardIcon.tsx +10 -2
- package/src/components/icons/ClockFilledIcon.tsx +12 -4
- package/src/components/icons/ClockIcon.tsx +3 -2
- package/src/components/icons/CloseAltFilledIcon.tsx +12 -4
- package/src/components/icons/CloseAltIcon.tsx +10 -2
- package/src/components/icons/CogIcon.tsx +3 -2
- package/src/components/icons/CommunityFilledIcon.tsx +10 -2
- package/src/components/icons/CommunityIcon.tsx +10 -2
- package/src/components/icons/ComputerIcon.tsx +10 -2
- package/src/components/icons/ContactFilledIcon.tsx +10 -2
- package/src/components/icons/ContactIcon.tsx +10 -2
- package/src/components/icons/ContactlessFilledIcon.tsx +10 -2
- package/src/components/icons/ContactlessIcon.tsx +10 -2
- package/src/components/icons/CoopLiveIcon.tsx +10 -2
- package/src/components/icons/CoopLocationFilledIcon.tsx +10 -2
- package/src/components/icons/CoopLogoIcon.tsx +10 -2
- package/src/components/icons/CoopMembershipCardFilledIcon.tsx +5 -4
- package/src/components/icons/CreditCardFilledIcon.tsx +11 -3
- package/src/components/icons/CreditCardIcon.tsx +10 -2
- package/src/components/icons/CrossIcon.tsx +3 -2
- package/src/components/icons/DocumentIcon.tsx +10 -2
- package/src/components/icons/DownloadIcon.tsx +10 -2
- package/src/components/icons/EnterStoreIcon.tsx +10 -2
- package/src/components/icons/ExitStoreIcon.tsx +10 -2
- package/src/components/icons/EyeFilledIcon.tsx +10 -2
- package/src/components/icons/EyeIcon.tsx +3 -2
- package/src/components/icons/EyeStrikeFilledIcon.tsx +10 -2
- package/src/components/icons/EyeStrikeIcon.tsx +10 -2
- package/src/components/icons/FeedbackFilledIcon.tsx +10 -2
- package/src/components/icons/FeedbackIcon.tsx +10 -2
- package/src/components/icons/FilterIcon.tsx +3 -2
- package/src/components/icons/GiftCardFilledIcon.tsx +10 -2
- package/src/components/icons/GiftCardIcon.tsx +10 -2
- package/src/components/icons/GiftFilledIcon.tsx +10 -2
- package/src/components/icons/GiftIcon.tsx +3 -2
- package/src/components/icons/HelpFilledIcon.tsx +10 -2
- package/src/components/icons/HelpIcon.tsx +3 -2
- package/src/components/icons/HomeFilledIcon.tsx +10 -2
- package/src/components/icons/HomeIcon.tsx +3 -2
- package/src/components/icons/HowDoIAssistantIcon.tsx +10 -2
- package/src/components/icons/InfoIcon.tsx +3 -2
- package/src/components/icons/KebabIcon.tsx +3 -2
- package/src/components/icons/LoadingIcon.tsx +10 -2
- package/src/components/icons/LocationFilledIcon.tsx +10 -2
- package/src/components/icons/LocationIcon.tsx +10 -2
- package/src/components/icons/LogoutIcon.tsx +3 -2
- package/src/components/icons/MailIcon.tsx +3 -2
- package/src/components/icons/MenuIcon.tsx +3 -2
- package/src/components/icons/MessageIcon.tsx +10 -2
- package/src/components/icons/MinusIcon.tsx +3 -2
- package/src/components/icons/NotesFilledIcon.tsx +10 -2
- package/src/components/icons/NotesIcon.tsx +3 -2
- package/src/components/icons/OpenNewIcon.tsx +10 -2
- package/src/components/icons/OwnBagIcon.tsx +3 -2
- package/src/components/icons/PadlockIcon.tsx +10 -2
- package/src/components/icons/PencilIcon.tsx +3 -2
- package/src/components/icons/PhoneIcon.tsx +3 -2
- package/src/components/icons/PowerIcon.tsx +3 -2
- package/src/components/icons/SaveFilledIcon.tsx +10 -2
- package/src/components/icons/SaveIcon.tsx +3 -2
- package/src/components/icons/ScooterIcon.tsx +10 -2
- package/src/components/icons/SearchFilledIcon.tsx +10 -2
- package/src/components/icons/SearchIcon.tsx +3 -2
- package/src/components/icons/SendIcon.tsx +3 -2
- package/src/components/icons/SpannerIcon.tsx +10 -2
- package/src/components/icons/StarFilledIcon.tsx +11 -3
- package/src/components/icons/StarIcon.tsx +3 -2
- package/src/components/icons/TickAltFilledIcon.tsx +12 -4
- package/src/components/icons/TickAltIcon.tsx +10 -2
- package/src/components/icons/TickIcon.tsx +3 -2
- package/src/components/icons/TruckIcon.tsx +3 -2
- package/src/components/icons/UserWipeIcon.tsx +10 -2
- package/src/components/icons/VoucherFilledIcon.tsx +10 -2
- package/src/components/icons/VoucherIcon.tsx +10 -2
- package/src/components/icons/WarningCircleFilledIcon.tsx +12 -4
- package/src/components/icons/WarningCircleIcon.tsx +12 -4
- package/src/components/icons/WarningFilledIcon.tsx +10 -2
- package/src/components/icons/WarningIcon.tsx +10 -2
- package/src/components/icons/WifiIcon.tsx +3 -2
- package/src/components/icons/WriteIcon.tsx +3 -2
- package/src/hooks/useSlots.ts +1 -1
- package/src/types/index.ts +3 -2
- package/dist/components/Button/index.js +0 -5
- package/dist/components/Popover/index.js +0 -6
|
@@ -14,7 +14,7 @@ const TickAltFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "__title", children: alt }) : null, jsx("path", {
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "__title", children: alt }) : null, jsx("path", { "clip-rule": "evenodd", d: "M16 30c7.732 0 14-6.268 14-14S23.732 2 16 2 2 8.268 2 16s6.268 14 14 14m5.707-17.707a1 1 0 0 0-1.414 0L14 18.586l-2.293-2.293a1 1 0 1 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l7-7a1 1 0 0 0 0-1.414", "fill-rule": "evenodd" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { TickAltFilledIcon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const TickAltIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const TickAltIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const TickIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const TickIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const TruckIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const TruckIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const UserWipeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const UserWipeIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const VoucherFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const VoucherFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const VoucherIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const VoucherIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const WarningCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const WarningCircleFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -14,7 +14,7 @@ const WarningCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) =>
|
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
16
|
};
|
|
17
|
-
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "__title", children: alt }) : null, jsx("path", {
|
|
17
|
+
return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "__title", children: alt }) : null, jsx("path", { "clip-rule": "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", "fill-rule": "evenodd" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { WarningCircleFilledIcon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const WarningCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const WarningCircleIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -14,7 +14,7 @@ const WarningCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
15
|
...props,
|
|
16
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", {
|
|
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", { "clip-rule": "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", "fill-rule": "evenodd" })] }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { WarningCircleIcon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const WarningFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const WarningFilledIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, SVGProps } from "react";
|
|
2
2
|
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
3
3
|
alt?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const WarningIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) =>
|
|
5
|
+
export declare const WarningIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, 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) =>
|
|
5
|
+
export declare const WifiIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSX, 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) =>
|
|
5
|
+
export declare const WriteIcon: ({ alt, className, fill, id, ref, ...props }: IconProps) => JSX.Element;
|
|
6
6
|
export {};
|
package/dist/hooks/useSlots.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
function isKey(x, k) {
|
|
4
4
|
return k in x;
|
|
5
5
|
}
|
|
6
|
-
// oxlint-disable-next-line
|
|
6
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
7
7
|
function isLazy(type) {
|
|
8
8
|
return typeof type === "object" && type !== null && "_payload" in type && "_init" in type;
|
|
9
9
|
}
|
package/dist/types/index.d.ts
CHANGED
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.11.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@axe-core/playwright": "^4.12.1",
|
|
66
66
|
"@playwright/test": "^1.61.1",
|
|
67
|
-
"@storybook/addon-a11y": "^10.
|
|
68
|
-
"@storybook/addon-docs": "^10.
|
|
69
|
-
"@storybook/addon-onboarding": "^10.
|
|
70
|
-
"@storybook/react-vite": "^10.
|
|
67
|
+
"@storybook/addon-a11y": "^10.5.2",
|
|
68
|
+
"@storybook/addon-docs": "^10.5.2",
|
|
69
|
+
"@storybook/addon-onboarding": "^10.5.2",
|
|
70
|
+
"@storybook/react-vite": "^10.5.2",
|
|
71
71
|
"@testing-library/jest-dom": "^6.9.1",
|
|
72
72
|
"@testing-library/react": "^16.3.2",
|
|
73
73
|
"@types/react": "^19.2.17",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"react-dom": "^19.2.7",
|
|
77
77
|
"resize-observer-polyfill": "^1.5.1",
|
|
78
78
|
"serve": "^14.2.6",
|
|
79
|
-
"storybook": "^10.
|
|
79
|
+
"storybook": "^10.5.2",
|
|
80
80
|
"storybook-addon-tag-badges": "^3.1.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
"storybook": "$storybook"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@coopdigital/styles": "^1.
|
|
103
|
+
"@coopdigital/styles": "^1.8.0",
|
|
104
104
|
"@radix-ui/react-popover": "^1.1.17",
|
|
105
105
|
"clsx": "^2.1.1",
|
|
106
106
|
"date-fns": "^4.4.0",
|
|
107
107
|
"merge-refs": "^2.0.0",
|
|
108
108
|
"react-day-picker": "^10.0.1"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "ab83f9ddaad7b9c225b945afa6f728ad403f8818"
|
|
111
111
|
}
|
|
@@ -157,7 +157,7 @@ const CardBody = ({ children }: CardBodyProps): JSX.Element => {
|
|
|
157
157
|
return <>{children}</>
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
const CardImage = (props: CardImageProps) => {
|
|
160
|
+
const CardImage = (props: CardImageProps): JSX.Element => {
|
|
161
161
|
return <Image {...{ ...props, crop: props.crop ?? "wide" }} />
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -23,11 +23,11 @@ import type {
|
|
|
23
23
|
TDateSingle,
|
|
24
24
|
} from "./datepicker-utils"
|
|
25
25
|
|
|
26
|
-
import Button from "../Button"
|
|
26
|
+
import { Button } from "../Button"
|
|
27
27
|
import { useField } from "../Field/Field.context"
|
|
28
28
|
import { CalendarIcon, CrossIcon, TickIcon } from "../icons"
|
|
29
|
-
import Popover from "../Popover"
|
|
30
|
-
import TextInput from "../TextInput"
|
|
29
|
+
import { Popover } from "../Popover"
|
|
30
|
+
import { TextInput } from "../TextInput"
|
|
31
31
|
import {
|
|
32
32
|
getDateValues,
|
|
33
33
|
getDefaultMonth,
|
|
@@ -338,7 +338,7 @@ const DatePicker = ({
|
|
|
338
338
|
// jsx-ally throws here because we set autoFocus, but this
|
|
339
339
|
// is not a standard element. Daypicker uses this value to
|
|
340
340
|
// focus the day rather than the nav when it renders.
|
|
341
|
-
//
|
|
341
|
+
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
342
342
|
autoFocus
|
|
343
343
|
captionLayout="dropdown"
|
|
344
344
|
//defaultMonth={defaultMonth}
|
|
@@ -247,7 +247,12 @@ export function getRangeDate(date: DateRange | DateBase, df: string, now: Date):
|
|
|
247
247
|
return { state: { input }, validated: false }
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
export const getDateValues = (
|
|
250
|
+
export const getDateValues = (
|
|
251
|
+
mode: Mode,
|
|
252
|
+
selected: DateType,
|
|
253
|
+
dateFormat: string,
|
|
254
|
+
now: Date
|
|
255
|
+
): RDateSingle | RDateMultiple | RDateRange | undefined => {
|
|
251
256
|
if (isSingle(mode, selected)) return getSingleDate(selected, dateFormat, now)
|
|
252
257
|
else if (isMultiple(mode, selected)) return getMultipleDate(selected, dateFormat, now)
|
|
253
258
|
else if (isRange(mode, selected)) return getRangeDate(selected, dateFormat, now)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DetailsHTMLAttributes, HTMLAttributes, JSX, Ref } from "react"
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx"
|
|
4
4
|
|
|
5
5
|
import { useSlots } from "../../hooks/useSlots"
|
|
6
6
|
import { hasUserBg } from "../../utils"
|
|
@@ -54,7 +54,11 @@ const Expandable = ({ children, className, ref, ...props }: ExpandableProps): JS
|
|
|
54
54
|
)
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const ExpandableSummary = ({
|
|
57
|
+
const ExpandableSummary = ({
|
|
58
|
+
children,
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}: ExpandableSummaryProps): JSX.Element => {
|
|
58
62
|
return (
|
|
59
63
|
<summary {...props} className={className}>
|
|
60
64
|
{children}
|
|
@@ -63,7 +67,11 @@ const ExpandableSummary = ({ children, className, ...props }: ExpandableSummaryP
|
|
|
63
67
|
)
|
|
64
68
|
}
|
|
65
69
|
|
|
66
|
-
const ExpandableContent = ({
|
|
70
|
+
const ExpandableContent = ({
|
|
71
|
+
children,
|
|
72
|
+
className,
|
|
73
|
+
...props
|
|
74
|
+
}: ExpandableContentProps): JSX.Element => {
|
|
67
75
|
return (
|
|
68
76
|
<div className={clsx("coop-expandable--content", className)} {...props}>
|
|
69
77
|
{children}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import type { HTMLAttributes, Ref } from "react"
|
|
2
|
+
import type { HTMLAttributes, JSX, Ref } from "react"
|
|
3
3
|
|
|
4
4
|
import clsx from "clsx"
|
|
5
5
|
import React from "react"
|
|
@@ -46,7 +46,7 @@ const Field = ({
|
|
|
46
46
|
hideErrorBar = false,
|
|
47
47
|
ref,
|
|
48
48
|
...props
|
|
49
|
-
}: FieldProps) => {
|
|
49
|
+
}: FieldProps): JSX.Element => {
|
|
50
50
|
const slots = { ...useSlots(componentSlots, children) }
|
|
51
51
|
const hasMarkers = !!(slots.FieldLabel ?? slots.FieldError ?? slots.FieldHint)
|
|
52
52
|
|
|
@@ -119,9 +119,9 @@ const Field = ({
|
|
|
119
119
|
)
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
const FieldLabel = (props: LabelProps) => <BaseLabel {...props} />
|
|
123
|
-
const FieldHint = (props: HintProps) => <BaseHint {...props} />
|
|
124
|
-
const FieldError = (props: ErrorProps) => <BaseError {...props} />
|
|
122
|
+
const FieldLabel = (props: LabelProps): JSX.Element => <BaseLabel {...props} />
|
|
123
|
+
const FieldHint = (props: HintProps): JSX.Element => <BaseHint {...props} />
|
|
124
|
+
const FieldError = (props: ErrorProps): JSX.Element => <BaseError {...props} />
|
|
125
125
|
|
|
126
126
|
Field.slot = { name: "Field" }
|
|
127
127
|
FieldLabel.slot = { name: "FieldLabel" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from "clsx"
|
|
2
|
-
import { LabelHTMLAttributes, Ref } from "react"
|
|
2
|
+
import { JSX, LabelHTMLAttributes, Ref } from "react"
|
|
3
3
|
|
|
4
4
|
import { useField } from "../Field/Field.context"
|
|
5
5
|
|
|
@@ -14,7 +14,13 @@ export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
14
14
|
ref?: Ref<HTMLLabelElement>
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export const Label = ({
|
|
17
|
+
export const Label = ({
|
|
18
|
+
children,
|
|
19
|
+
className,
|
|
20
|
+
isVisible = true,
|
|
21
|
+
ref,
|
|
22
|
+
...props
|
|
23
|
+
}: LabelProps): JSX.Element => {
|
|
18
24
|
const field = useField()
|
|
19
25
|
const componentProps = {
|
|
20
26
|
className: clsx("coop-field-label", !isVisible && "sr-only", className),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import clsx from "clsx"
|
|
2
|
-
import { HTMLAttributes, Ref } from "react"
|
|
2
|
+
import { HTMLAttributes, JSX, Ref } from "react"
|
|
3
3
|
|
|
4
4
|
export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
|
|
5
5
|
/** **(Optional)** Main legend for the fieldset. Accepts any valid JSX or string. */
|
|
@@ -12,7 +12,13 @@ export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
|
|
|
12
12
|
ref?: Ref<HTMLLegendElement>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export const Legend = ({
|
|
15
|
+
export const Legend = ({
|
|
16
|
+
children,
|
|
17
|
+
className,
|
|
18
|
+
isVisible = true,
|
|
19
|
+
ref,
|
|
20
|
+
...props
|
|
21
|
+
}: LegendProps): JSX.Element => {
|
|
16
22
|
const componentProps = {
|
|
17
23
|
"aria-hidden": true,
|
|
18
24
|
className: clsx("coop-field-label", !isVisible && "sr-only", className),
|
|
@@ -79,9 +79,9 @@ const FieldsetFields = ({
|
|
|
79
79
|
return <div {...componentProps}>{children}</div>
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
const FieldsetLegend = (props: LegendProps) => <BaseLegend {...props} />
|
|
83
|
-
const FieldsetHint = (props: HintProps) => <BaseHint {...props} />
|
|
84
|
-
const FieldsetError = (props: ErrorProps) => <BaseError {...props} />
|
|
82
|
+
const FieldsetLegend = (props: LegendProps): JSX.Element => <BaseLegend {...props} />
|
|
83
|
+
const FieldsetHint = (props: HintProps): JSX.Element => <BaseHint {...props} />
|
|
84
|
+
const FieldsetError = (props: ErrorProps): JSX.Element => <BaseError {...props} />
|
|
85
85
|
|
|
86
86
|
Fieldset.slot = { name: "Fieldset" }
|
|
87
87
|
FieldsetFields.slot = { name: "FieldsetField" }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SVGProps } from "react"
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
2
|
|
|
3
3
|
import clsx from "clsx"
|
|
4
4
|
export interface LogoProps extends SVGProps<SVGSVGElement> {
|
|
@@ -25,7 +25,7 @@ export const Logo = ({
|
|
|
25
25
|
ref,
|
|
26
26
|
width,
|
|
27
27
|
...props
|
|
28
|
-
}: LogoProps) => {
|
|
28
|
+
}: LogoProps): JSX.Element => {
|
|
29
29
|
const componentProps = {
|
|
30
30
|
alt,
|
|
31
31
|
className: clsx("coop-logo", className),
|
|
@@ -50,7 +50,7 @@ const Pill = ({ as, children, className, href, ref, size, ...props }: PillProps)
|
|
|
50
50
|
return React.createElement(element, { ...componentProps, ref }, slots.PillBadge, slots.Children)
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const PillBadge = ({ children, className }: PillBadgeProps) => {
|
|
53
|
+
const PillBadge = ({ children, className }: PillBadgeProps): JSX.Element => {
|
|
54
54
|
return (
|
|
55
55
|
<span className={clsx("coop-pill--badge", !hasUserBg(className) && "bg-red", className)}>
|
|
56
56
|
{children}
|
|
@@ -118,7 +118,7 @@ const Searchbox = ({
|
|
|
118
118
|
)
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
const SearchboxButton = ({ children, ...props }: ButtonProps) => {
|
|
121
|
+
const SearchboxButton = ({ children, ...props }: ButtonProps): JSX.Element => {
|
|
122
122
|
// const uid = useId(id)
|
|
123
123
|
const searchbox = useSearchbox()
|
|
124
124
|
const buttonProps = {
|
|
@@ -141,7 +141,7 @@ const SearchboxButton = ({ children, ...props }: ButtonProps) => {
|
|
|
141
141
|
|
|
142
142
|
SearchboxButton.displayName = "Searchbox.Button"
|
|
143
143
|
|
|
144
|
-
const SearchboxInput = (props: TextInputProps) => {
|
|
144
|
+
const SearchboxInput = (props: TextInputProps): JSX.Element => {
|
|
145
145
|
const searchbox = useSearchbox()
|
|
146
146
|
|
|
147
147
|
return (
|
|
@@ -8,7 +8,7 @@ import { Image, ImageProps } from "../Image"
|
|
|
8
8
|
|
|
9
9
|
export interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
10
|
/** **(Optional)** Specify a custom element to override default `a`. */
|
|
11
|
-
// oxlint-disable-next-line
|
|
11
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
12
12
|
as?: React.FC<any> | ForwardRefExoticComponent<any> | string
|
|
13
13
|
/** Main content inside the component. It can be any valid JSX or string. */
|
|
14
14
|
children: React.ReactNode
|
|
@@ -7,7 +7,7 @@ import { hasUserBg } from "../../../src/utils"
|
|
|
7
7
|
|
|
8
8
|
export interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
9
9
|
/** **(Optional)** Specify a custom element to override default `a` or `span`. */
|
|
10
|
-
// oxlint-disable-next-line
|
|
10
|
+
// oxlint-disable-next-line typescript/no-explicit-any
|
|
11
11
|
as?: React.FC<any> | ForwardRefExoticComponent<any> | string
|
|
12
12
|
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
13
13
|
children?: React.ReactNode
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AccountCircleFilledIcon = ({
|
|
11
|
+
export const AccountCircleFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AccountCircleIcon = ({
|
|
11
|
+
export const AccountCircleIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AccountFilledIcon = ({
|
|
11
|
+
export const AccountFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AccountIcon = ({
|
|
11
|
+
export const AccountIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AddIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const AddIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,14 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AppsFilledIcon = ({
|
|
11
|
+
export const AppsFilledIcon = ({
|
|
12
|
+
alt,
|
|
13
|
+
className,
|
|
14
|
+
fill,
|
|
15
|
+
id,
|
|
16
|
+
ref,
|
|
17
|
+
...props
|
|
18
|
+
}: IconProps): JSX.Element => {
|
|
11
19
|
const uid = useId(id)
|
|
12
20
|
const componentProps = {
|
|
13
21
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JSX, SVGProps } from "react"
|
|
2
|
+
|
|
1
3
|
import clsx from "clsx"
|
|
2
|
-
import { type SVGProps } from "react"
|
|
3
4
|
|
|
4
5
|
import { useId } from "../../hooks/useId"
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
7
8
|
alt?: string
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
export const AppsIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
|
|
11
|
+
export const AppsIcon = ({ alt, className, fill, id, ref, ...props }: IconProps): JSX.Element => {
|
|
11
12
|
const uid = useId(id)
|
|
12
13
|
const componentProps = {
|
|
13
14
|
"aria-labelledby": alt ? uid + "__title" : undefined,
|