@coopdigital/react 1.19.0 → 1.20.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/AlertBanner/AlertBanner.js +5 -2
- package/dist/components/Author/Author.js +5 -2
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.d.ts +96 -49
- package/dist/components/Card/Card.js +61 -60
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Checkbox/Checkbox.js +5 -2
- package/dist/components/DatePicker/DatePicker.js +5 -4
- package/dist/components/DatePicker/datepicker-utils.js +12 -11
- package/dist/components/Dialog/Dialog.js +6 -3
- package/dist/components/Expandable/Expandable.js +6 -3
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/FieldMarkers/Error.js +5 -2
- package/dist/components/FieldMarkers/Hint.js +5 -2
- package/dist/components/FieldMarkers/Label.js +5 -2
- package/dist/components/Fieldset/Fieldset.js +10 -4
- package/dist/components/Flourish/Flourish.js +6 -3
- package/dist/components/Form/Form.js +5 -2
- package/dist/components/Image/Image.d.ts +3 -5
- package/dist/components/Image/Image.js +10 -7
- package/dist/components/LoadingSpinner/LoadingSpinner.js +5 -2
- package/dist/components/Logo/Logo.js +5 -2
- package/dist/components/Picture/Picture.d.ts +15 -0
- package/dist/components/Picture/Picture.js +17 -0
- package/dist/components/Picture/index.d.ts +2 -0
- package/dist/components/Picture/index.js +5 -0
- package/dist/components/Prose/Prose.js +5 -2
- package/dist/components/Radio/Radio.js +5 -2
- package/dist/components/Searchbox/Searchbox.js +6 -6
- package/dist/components/Select/Select.js +5 -2
- package/dist/components/Signpost/Signpost.js +6 -6
- package/dist/components/SkipNav/SkipNav.js +5 -2
- package/dist/components/Squircle/Squircle.js +5 -2
- package/dist/components/ValidationSummary/ValidationSummary.js +5 -2
- package/dist/components/icons/AccountCircleFilledIcon.js +5 -2
- package/dist/components/icons/AccountCircleIcon.js +5 -2
- package/dist/components/icons/AccountFilledIcon.js +5 -2
- package/dist/components/icons/AccountIcon.js +5 -2
- package/dist/components/icons/AddIcon.js +5 -2
- package/dist/components/icons/AppsFilledIcon.js +5 -2
- package/dist/components/icons/AppsIcon.js +5 -2
- package/dist/components/icons/ArrowDownIcon.js +5 -2
- package/dist/components/icons/ArrowLeftIcon.js +5 -2
- package/dist/components/icons/ArrowRightIcon.js +5 -2
- package/dist/components/icons/ArrowUpIcon.js +5 -2
- package/dist/components/icons/BackspaceFilledIcon.js +5 -2
- package/dist/components/icons/BackspaceIcon.js +5 -2
- package/dist/components/icons/BasketFilledIcon.js +5 -2
- package/dist/components/icons/BasketIcon.js +5 -2
- package/dist/components/icons/BellFilledIcon.js +5 -2
- package/dist/components/icons/BellIcon.js +5 -2
- package/dist/components/icons/BroomIcon.js +5 -2
- package/dist/components/icons/CalendarFilledIcon.js +5 -2
- package/dist/components/icons/CalendarIcon.js +5 -2
- package/dist/components/icons/CashFilledIcon.js +5 -2
- package/dist/components/icons/CashIcon.js +5 -2
- package/dist/components/icons/ChevronDownIcon.js +5 -2
- package/dist/components/icons/ChevronLeftIcon.js +5 -2
- package/dist/components/icons/ChevronRightIcon.js +5 -2
- package/dist/components/icons/ChevronUpIcon.js +5 -2
- package/dist/components/icons/CircleBurgerFilledIcon.js +5 -2
- package/dist/components/icons/CircleBurgerIcon.js +5 -2
- package/dist/components/icons/ClipboardFilledIcon.js +5 -2
- package/dist/components/icons/ClipboardIcon.js +5 -2
- package/dist/components/icons/ClockFilledIcon.js +5 -2
- package/dist/components/icons/ClockIcon.js +5 -2
- package/dist/components/icons/CloseAltFilledIcon.js +5 -2
- package/dist/components/icons/CloseAltIcon.js +5 -2
- package/dist/components/icons/CogIcon.js +5 -2
- package/dist/components/icons/CommunityFilledIcon.js +5 -2
- package/dist/components/icons/CommunityIcon.js +5 -2
- package/dist/components/icons/ComputerIcon.js +5 -2
- package/dist/components/icons/ContactFilledIcon.js +5 -2
- package/dist/components/icons/ContactIcon.js +5 -2
- package/dist/components/icons/ContactlessFilledIcon.js +5 -2
- package/dist/components/icons/ContactlessIcon.js +5 -2
- package/dist/components/icons/CoopLiveIcon.js +5 -2
- package/dist/components/icons/CoopLocationFilledIcon.js +5 -2
- package/dist/components/icons/CoopLogoIcon.js +5 -2
- package/dist/components/icons/CoopMembershipCardFilledIcon.js +5 -2
- package/dist/components/icons/CreditCardFilledIcon.js +5 -2
- package/dist/components/icons/CreditCardIcon.js +5 -2
- package/dist/components/icons/CrossIcon.js +5 -2
- package/dist/components/icons/DocumentIcon.js +5 -2
- package/dist/components/icons/DownloadIcon.js +5 -2
- package/dist/components/icons/EnterStoreIcon.js +5 -2
- package/dist/components/icons/ExitStoreIcon.js +5 -2
- package/dist/components/icons/EyeFilledIcon.js +5 -2
- package/dist/components/icons/EyeIcon.js +5 -2
- package/dist/components/icons/EyeStrikeFilledIcon.js +5 -2
- package/dist/components/icons/EyeStrikeIcon.js +5 -2
- package/dist/components/icons/FeedbackFilledIcon.js +5 -2
- package/dist/components/icons/FeedbackIcon.js +5 -2
- package/dist/components/icons/FilterIcon.js +5 -2
- package/dist/components/icons/GiftCardFilledIcon.js +5 -2
- package/dist/components/icons/GiftCardIcon.js +5 -2
- package/dist/components/icons/GiftFilledIcon.js +5 -2
- package/dist/components/icons/GiftIcon.js +5 -2
- package/dist/components/icons/HelpFilledIcon.js +5 -2
- package/dist/components/icons/HelpIcon.js +5 -2
- package/dist/components/icons/HomeFilledIcon.js +5 -2
- package/dist/components/icons/HomeIcon.js +5 -2
- package/dist/components/icons/HowDoIAssistantIcon.js +5 -2
- package/dist/components/icons/InfoIcon.js +5 -2
- package/dist/components/icons/KebabIcon.js +5 -2
- package/dist/components/icons/LoadingIcon.js +5 -2
- package/dist/components/icons/LocationFilledIcon.js +5 -2
- package/dist/components/icons/LocationIcon.js +5 -2
- package/dist/components/icons/LogoutIcon.js +5 -2
- package/dist/components/icons/MailIcon.js +5 -2
- package/dist/components/icons/MenuIcon.js +5 -2
- package/dist/components/icons/MessageIcon.js +5 -2
- package/dist/components/icons/MinusIcon.js +5 -2
- package/dist/components/icons/NotesFilledIcon.js +5 -2
- package/dist/components/icons/NotesIcon.js +5 -2
- package/dist/components/icons/OpenNewIcon.js +5 -2
- package/dist/components/icons/OwnBagIcon.js +5 -2
- package/dist/components/icons/PadlockIcon.js +5 -2
- package/dist/components/icons/PencilIcon.js +5 -2
- package/dist/components/icons/PhoneIcon.js +5 -2
- package/dist/components/icons/PowerIcon.js +5 -2
- package/dist/components/icons/SaveFilledIcon.js +5 -2
- package/dist/components/icons/SaveIcon.js +5 -2
- package/dist/components/icons/ScooterIcon.js +5 -2
- package/dist/components/icons/SearchFilledIcon.js +5 -2
- package/dist/components/icons/SearchIcon.js +5 -2
- package/dist/components/icons/SendIcon.js +5 -2
- package/dist/components/icons/SpannerIcon.js +5 -2
- package/dist/components/icons/StarFilledIcon.js +5 -2
- package/dist/components/icons/StarIcon.js +5 -2
- package/dist/components/icons/TickAltFilledIcon.js +5 -2
- package/dist/components/icons/TickAltIcon.js +5 -2
- package/dist/components/icons/TickIcon.js +5 -2
- package/dist/components/icons/TruckIcon.js +5 -2
- package/dist/components/icons/UserWipeIcon.js +5 -2
- package/dist/components/icons/VoucherFilledIcon.js +5 -2
- package/dist/components/icons/VoucherIcon.js +5 -2
- package/dist/components/icons/WarningCircleFilledIcon.js +5 -2
- package/dist/components/icons/WarningCircleIcon.js +5 -2
- package/dist/components/icons/WarningFilledIcon.js +5 -2
- package/dist/components/icons/WarningIcon.js +5 -2
- package/dist/components/icons/WifiIcon.js +5 -2
- package/dist/components/icons/WriteIcon.js +5 -2
- package/dist/hooks/useSlots.js +4 -3
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -2
- package/package.json +11 -10
- package/src/components/Author/Author.tsx +1 -1
- package/src/components/Button/Button.tsx +2 -2
- package/src/components/Card/Card.tsx +149 -105
- package/src/components/Checkbox/Checkbox.tsx +2 -2
- package/src/components/DatePicker/DatePicker.tsx +8 -6
- package/src/components/Dialog/Dialog.tsx +2 -2
- package/src/components/Expandable/Expandable.tsx +3 -3
- package/src/components/Field/Field.tsx +7 -6
- package/src/components/FieldMarkers/Label.tsx +1 -1
- package/src/components/Fieldset/Fieldset.tsx +4 -4
- package/src/components/Flourish/Flourish.tsx +1 -1
- package/src/components/Image/Image.tsx +15 -22
- package/src/components/LoadingSpinner/LoadingSpinner.tsx +1 -1
- package/src/components/PasswordInput/PasswordInput.tsx +3 -3
- package/src/components/Picture/Picture.tsx +36 -0
- package/src/components/Picture/index.ts +5 -0
- package/src/components/Pill/Pill.tsx +3 -3
- package/src/components/Popover/Popover.tsx +2 -2
- package/src/components/Prose/Prose.tsx +1 -1
- package/src/components/Radio/Radio.tsx +2 -2
- package/src/components/Searchbox/Searchbox.context.tsx +1 -1
- package/src/components/Searchbox/Searchbox.tsx +9 -10
- package/src/components/Select/Select.tsx +2 -2
- package/src/components/Signpost/Signpost.tsx +3 -3
- package/src/components/Squircle/Squircle.tsx +2 -1
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/TextInput/TextInput.tsx +2 -2
- package/src/components/Textarea/Textarea.tsx +3 -3
- package/src/components/ValidationSummary/ValidationSummary.tsx +5 -2
- package/src/components/icons/AccountCircleFilledIcon.tsx +1 -1
- package/src/components/icons/AccountCircleIcon.tsx +1 -1
- package/src/components/icons/AccountFilledIcon.tsx +1 -1
- package/src/components/icons/AccountIcon.tsx +1 -1
- package/src/components/icons/AddIcon.tsx +1 -1
- package/src/components/icons/AppsFilledIcon.tsx +1 -1
- package/src/components/icons/AppsIcon.tsx +1 -1
- package/src/components/icons/ArrowDownIcon.tsx +1 -1
- package/src/components/icons/ArrowLeftIcon.tsx +1 -1
- package/src/components/icons/ArrowRightIcon.tsx +1 -1
- package/src/components/icons/ArrowUpIcon.tsx +1 -1
- package/src/components/icons/BackspaceFilledIcon.tsx +1 -1
- package/src/components/icons/BackspaceIcon.tsx +1 -1
- package/src/components/icons/BasketFilledIcon.tsx +1 -1
- package/src/components/icons/BasketIcon.tsx +1 -1
- package/src/components/icons/BellFilledIcon.tsx +1 -1
- package/src/components/icons/BellIcon.tsx +1 -1
- package/src/components/icons/BroomIcon.tsx +1 -1
- package/src/components/icons/CalendarFilledIcon.tsx +1 -1
- package/src/components/icons/CalendarIcon.tsx +1 -1
- package/src/components/icons/CashFilledIcon.tsx +1 -1
- package/src/components/icons/CashIcon.tsx +1 -1
- package/src/components/icons/ChevronDownIcon.tsx +1 -1
- package/src/components/icons/ChevronLeftIcon.tsx +1 -1
- package/src/components/icons/ChevronRightIcon.tsx +1 -1
- package/src/components/icons/ChevronUpIcon.tsx +1 -1
- package/src/components/icons/CircleBurgerFilledIcon.tsx +1 -1
- package/src/components/icons/CircleBurgerIcon.tsx +1 -1
- package/src/components/icons/ClipboardFilledIcon.tsx +1 -1
- package/src/components/icons/ClipboardIcon.tsx +1 -1
- package/src/components/icons/ClockFilledIcon.tsx +1 -1
- package/src/components/icons/ClockIcon.tsx +1 -1
- package/src/components/icons/CloseAltFilledIcon.tsx +1 -1
- package/src/components/icons/CloseAltIcon.tsx +1 -1
- package/src/components/icons/CogIcon.tsx +1 -1
- package/src/components/icons/CommunityFilledIcon.tsx +1 -1
- package/src/components/icons/CommunityIcon.tsx +1 -1
- package/src/components/icons/ComputerIcon.tsx +1 -1
- package/src/components/icons/ContactFilledIcon.tsx +1 -1
- package/src/components/icons/ContactIcon.tsx +1 -1
- package/src/components/icons/ContactlessFilledIcon.tsx +1 -1
- package/src/components/icons/ContactlessIcon.tsx +1 -1
- package/src/components/icons/CoopLiveIcon.tsx +1 -1
- package/src/components/icons/CoopLocationFilledIcon.tsx +1 -1
- package/src/components/icons/CoopLogoIcon.tsx +1 -1
- package/src/components/icons/CoopMembershipCardFilledIcon.tsx +1 -1
- package/src/components/icons/CreditCardFilledIcon.tsx +1 -1
- package/src/components/icons/CreditCardIcon.tsx +1 -1
- package/src/components/icons/CrossIcon.tsx +1 -1
- package/src/components/icons/DocumentIcon.tsx +1 -1
- package/src/components/icons/DownloadIcon.tsx +1 -1
- package/src/components/icons/EnterStoreIcon.tsx +1 -1
- package/src/components/icons/ExitStoreIcon.tsx +1 -1
- package/src/components/icons/EyeFilledIcon.tsx +1 -1
- package/src/components/icons/EyeIcon.tsx +1 -1
- package/src/components/icons/EyeStrikeFilledIcon.tsx +1 -1
- package/src/components/icons/EyeStrikeIcon.tsx +1 -1
- package/src/components/icons/FeedbackFilledIcon.tsx +1 -1
- package/src/components/icons/FeedbackIcon.tsx +1 -1
- package/src/components/icons/FilterIcon.tsx +1 -1
- package/src/components/icons/GiftCardFilledIcon.tsx +1 -1
- package/src/components/icons/GiftCardIcon.tsx +1 -1
- package/src/components/icons/GiftFilledIcon.tsx +1 -1
- package/src/components/icons/GiftIcon.tsx +1 -1
- package/src/components/icons/HelpFilledIcon.tsx +1 -1
- package/src/components/icons/HelpIcon.tsx +1 -1
- package/src/components/icons/HomeFilledIcon.tsx +1 -1
- package/src/components/icons/HomeIcon.tsx +1 -1
- package/src/components/icons/HowDoIAssistantIcon.tsx +1 -1
- package/src/components/icons/InfoIcon.tsx +1 -1
- package/src/components/icons/KebabIcon.tsx +1 -1
- package/src/components/icons/LoadingIcon.tsx +1 -1
- package/src/components/icons/LocationFilledIcon.tsx +1 -1
- package/src/components/icons/LocationIcon.tsx +1 -1
- package/src/components/icons/LogoutIcon.tsx +1 -1
- package/src/components/icons/MailIcon.tsx +1 -1
- package/src/components/icons/MenuIcon.tsx +1 -1
- package/src/components/icons/MessageIcon.tsx +1 -1
- package/src/components/icons/MinusIcon.tsx +1 -1
- package/src/components/icons/NotesFilledIcon.tsx +1 -1
- package/src/components/icons/NotesIcon.tsx +1 -1
- package/src/components/icons/OpenNewIcon.tsx +1 -1
- package/src/components/icons/OwnBagIcon.tsx +1 -1
- package/src/components/icons/PadlockIcon.tsx +1 -1
- package/src/components/icons/PencilIcon.tsx +1 -1
- package/src/components/icons/PhoneIcon.tsx +1 -1
- package/src/components/icons/PowerIcon.tsx +1 -1
- package/src/components/icons/SaveFilledIcon.tsx +1 -1
- package/src/components/icons/SaveIcon.tsx +1 -1
- package/src/components/icons/ScooterIcon.tsx +1 -1
- package/src/components/icons/SearchFilledIcon.tsx +1 -1
- package/src/components/icons/SearchIcon.tsx +1 -1
- package/src/components/icons/SendIcon.tsx +1 -1
- package/src/components/icons/SpannerIcon.tsx +1 -1
- package/src/components/icons/StarFilledIcon.tsx +1 -1
- package/src/components/icons/StarIcon.tsx +1 -1
- package/src/components/icons/TickAltFilledIcon.tsx +1 -1
- package/src/components/icons/TickAltIcon.tsx +1 -1
- package/src/components/icons/TickIcon.tsx +1 -1
- package/src/components/icons/TruckIcon.tsx +1 -1
- package/src/components/icons/UserWipeIcon.tsx +1 -1
- package/src/components/icons/VoucherFilledIcon.tsx +1 -1
- package/src/components/icons/VoucherIcon.tsx +1 -1
- package/src/components/icons/WarningCircleFilledIcon.tsx +1 -1
- package/src/components/icons/WarningCircleIcon.tsx +1 -1
- package/src/components/icons/WarningFilledIcon.tsx +1 -1
- package/src/components/icons/WarningIcon.tsx +1 -1
- package/src/components/icons/WifiIcon.tsx +1 -1
- package/src/components/icons/WriteIcon.tsx +1 -1
- package/src/hooks/useSlots.ts +1 -1
- package/src/index.ts +1 -0
|
@@ -5,24 +5,30 @@ import clsx from "clsx";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/Fieldset/Fieldset.tsx
|
|
7
7
|
const Fieldset = ({ children, className, disabled, error = false, hideErrorBar = false, ref, size, ...props }) => {
|
|
8
|
-
|
|
8
|
+
const componentProps = {
|
|
9
9
|
"aria-disabled": disabled,
|
|
10
10
|
className: clsx("coop-fieldset", className),
|
|
11
11
|
"data-error": error || void 0,
|
|
12
12
|
"data-hide-error": hideErrorBar || void 0,
|
|
13
13
|
"data-size": size ?? void 0,
|
|
14
14
|
disabled,
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children
|
|
18
21
|
});
|
|
19
22
|
};
|
|
20
23
|
const FieldsetFields = ({ boxed = false, children, className, orientation = "vertical", ...props }) => {
|
|
21
|
-
|
|
24
|
+
const componentProps = {
|
|
22
25
|
className: clsx("coop-fieldset-fields", className),
|
|
23
26
|
"data-boxed": boxed || void 0,
|
|
24
27
|
"data-orientation": orientation !== "vertical" ? orientation : void 0,
|
|
25
|
-
...props
|
|
28
|
+
...props
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ jsx("div", {
|
|
31
|
+
...componentProps,
|
|
26
32
|
children
|
|
27
33
|
});
|
|
28
34
|
};
|
|
@@ -2,12 +2,15 @@ import clsx from "clsx";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Flourish/Flourish.tsx
|
|
4
4
|
const Flourish = ({ children, className, fill = "brand-blue", ref, ...props }) => {
|
|
5
|
+
const componentProps = {
|
|
6
|
+
className: clsx("coop-flourish ", className),
|
|
7
|
+
fill: `var(--color-${fill})`,
|
|
8
|
+
...props
|
|
9
|
+
};
|
|
5
10
|
return /* @__PURE__ */ jsxs("span", {
|
|
6
11
|
style: { position: "relative" },
|
|
7
12
|
children: [children, /* @__PURE__ */ jsx("svg", {
|
|
8
|
-
|
|
9
|
-
fill: `var(--color-${fill})`,
|
|
10
|
-
...props,
|
|
13
|
+
...componentProps,
|
|
11
14
|
ref,
|
|
12
15
|
viewBox: "0 0 276 10",
|
|
13
16
|
children: /* @__PURE__ */ jsx("path", { d: "M275.9 8.6c.1-1.6.2-1.8-.4-2.9.3-1-.3-1.2-1.8-1.1v-.3c.6-.4.2-.2 1.4-.1-.9-2.3-5.6-1.8-8.5-2.3C259 .5 246.3.7 237.4.5L185 .4l-33-.2-26.1-.2-67.4 1.2-44.3.5C10.7 2.1 1.5.4 0 3.3l1 .2L0 4v.5C8.2 7.9 26.6 7.2 35.6 7c5 0 13.5 1.6 16.5-.6C53.4 8 59.5 8 62 7.7l45 .1 42.8.3 30.7.3 44.2.6 27.8-.5 23 .8c.1-.8-.3-.5.5-.7ZM219 2.8v-.2l.8-.2h.4l.3.4H219Zm30-.1h1.2c-.8.4-.5.3-1.2 0Zm6.2.6.2-.4h.3l-.5.4Z" })
|
|
@@ -2,9 +2,12 @@ import clsx from "clsx";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Form/Form.tsx
|
|
4
4
|
const Form = ({ children, className, ref, ...props }) => {
|
|
5
|
-
|
|
5
|
+
const componentProps = {
|
|
6
6
|
className: clsx("coop-form ", className),
|
|
7
|
-
...props
|
|
7
|
+
...props
|
|
8
|
+
};
|
|
9
|
+
return /* @__PURE__ */ jsx("form", {
|
|
10
|
+
...componentProps,
|
|
8
11
|
ref,
|
|
9
12
|
children
|
|
10
13
|
});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImgHTMLAttributes, JSX, Ref } from "react";
|
|
2
2
|
//#region src/components/Image/Image.d.ts
|
|
3
|
-
interface ImageProps extends
|
|
3
|
+
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
4
4
|
/** Specify text to describe the image. Refer to Experience Library guidelines on writing good alt text. */
|
|
5
5
|
alt: string;
|
|
6
|
-
/** **(Optional)** Specify the image crop mode. */
|
|
7
|
-
crop?: "square" | "wide" | "none";
|
|
8
6
|
/** **(Optional)** Specify the height of the image. */
|
|
9
7
|
height?: string;
|
|
10
8
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
@@ -15,7 +13,7 @@ interface ImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
|
15
13
|
width?: string;
|
|
16
14
|
}
|
|
17
15
|
declare const Image: {
|
|
18
|
-
({ alt,
|
|
16
|
+
({ alt, height, ref, src, width, ...props }: ImageProps): JSX.Element;
|
|
19
17
|
slot: {
|
|
20
18
|
name: string;
|
|
21
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
//#region src/components/Image/Image.tsx
|
|
3
|
-
const getContentfulParams = (src, width
|
|
3
|
+
const getContentfulParams = ({ height, src, width }) => {
|
|
4
4
|
const url = !src.startsWith("http") ? new URL("https://" + src) : new URL(src);
|
|
5
5
|
[
|
|
6
6
|
["fm", "webp"],
|
|
@@ -9,7 +9,7 @@ const getContentfulParams = (src, width, height) => {
|
|
|
9
9
|
["w", width],
|
|
10
10
|
...height ? [["h", height]] : []
|
|
11
11
|
].forEach(([k, v]) => {
|
|
12
|
-
if (!url.searchParams.has(k)) url.searchParams.set(k, v);
|
|
12
|
+
if (k && v && !url.searchParams.has(k)) url.searchParams.set(k, v);
|
|
13
13
|
});
|
|
14
14
|
return {
|
|
15
15
|
height: url.searchParams.get("h") ?? height,
|
|
@@ -17,26 +17,29 @@ const getContentfulParams = (src, width, height) => {
|
|
|
17
17
|
width: url.searchParams.get("w") ?? width
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
const Image = ({ alt,
|
|
20
|
+
const Image = ({ alt, height, ref, src, width = "640", ...props }) => {
|
|
21
21
|
let params = {
|
|
22
22
|
height,
|
|
23
23
|
src,
|
|
24
24
|
width
|
|
25
25
|
};
|
|
26
|
-
if (src.includes("images.ctfassets.net")) params = getContentfulParams(
|
|
26
|
+
if (src.includes("images.ctfassets.net")) params = getContentfulParams({
|
|
27
|
+
height,
|
|
28
|
+
src,
|
|
29
|
+
width
|
|
30
|
+
});
|
|
27
31
|
const dimensions = {
|
|
28
|
-
"data-crop": crop,
|
|
29
32
|
height: params.height,
|
|
30
33
|
width: params.width
|
|
31
34
|
};
|
|
32
|
-
return /* @__PURE__ */ jsx("
|
|
35
|
+
return /* @__PURE__ */ jsx("img", {
|
|
33
36
|
alt,
|
|
34
37
|
loading: "lazy",
|
|
35
38
|
src: params.src,
|
|
36
39
|
...dimensions,
|
|
37
40
|
...props,
|
|
38
41
|
ref
|
|
39
|
-
})
|
|
42
|
+
});
|
|
40
43
|
};
|
|
41
44
|
Image.slot = { name: "Image" };
|
|
42
45
|
//#endregion
|
|
@@ -3,11 +3,14 @@ import clsx from "clsx";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/LoadingSpinner/LoadingSpinner.tsx
|
|
5
5
|
const LoadingSpinner = ({ className, ref, stroke = "currentColor", strokeWidth = "1px", ...props }) => {
|
|
6
|
-
|
|
6
|
+
const componentProps = {
|
|
7
7
|
className: clsx("coop-loading-spinner ", className),
|
|
8
8
|
stroke,
|
|
9
9
|
strokeWidth,
|
|
10
|
-
...props
|
|
10
|
+
...props
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ jsx(LoadingIcon, {
|
|
13
|
+
...componentProps,
|
|
11
14
|
ref
|
|
12
15
|
});
|
|
13
16
|
};
|
|
@@ -2,7 +2,7 @@ import clsx from "clsx";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Logo/Logo.tsx
|
|
4
4
|
const Logo = ({ alt = "Co-op", className, fill = "brand-blue", height, id, ref, width, ...props }) => {
|
|
5
|
-
|
|
5
|
+
const componentProps = {
|
|
6
6
|
alt,
|
|
7
7
|
className: clsx("coop-logo", className),
|
|
8
8
|
fill: fill === "brand-blue" ? void 0 : `var(--color-${fill})`,
|
|
@@ -11,7 +11,10 @@ const Logo = ({ alt = "Co-op", className, fill = "brand-blue", height, id, ref,
|
|
|
11
11
|
role: "img",
|
|
12
12
|
viewBox: "0 0 38 40",
|
|
13
13
|
width,
|
|
14
|
-
...props
|
|
14
|
+
...props
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
17
|
+
...componentProps,
|
|
15
18
|
ref,
|
|
16
19
|
children: [/* @__PURE__ */ jsx("title", { children: alt }), /* @__PURE__ */ jsx("path", { d: "M37.8 8.8c0-1.4-.2-2.8-.6-4.2-.5-1.7-1.8-3-3.4-3.7a14.9 14.9 0 0 0-10.2 0c-1.7.6-2.9 2-3.4 3.7-.8 2.8-.8 5.7 0 8.5.5 1.7 1.8 3 3.4 3.7 1.6.6 3.4.9 5.1.8 1.7 0 3.5-.3 5.1-.8 1.7-.6 2.9-2 3.4-3.7.4-1.5.6-2.9.6-4.3zm-5.5 0c0 .7-.1 1.4-.3 2-.3.9-1 1.6-2 1.8-.9.2-1.8.2-2.6 0-.9-.2-1.7-.8-2-1.8-.4-1.3-.4-2.8 0-4.1.3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.2.7.3 1.4.3 2.1m-14.6 23c.8-2.8.8-5.7 0-8.5-.5-1.7-1.8-3-3.4-3.7a14.9 14.9 0 0 0-10.2 0c-1.7.6-2.9 2-3.4 3.7-.8 2.8-.8 5.7 0 8.5.5 1.7 1.8 3 3.4 3.7 3.3 1.2 6.9 1.2 10.2 0 1.6-.6 2.9-2 3.4-3.7m-4.9-4.2c0 .7-.1 1.4-.3 2-.3.9-1 1.6-2 1.8-.9.2-1.8.2-2.6 0-.9-.2-1.7-.8-2-1.8-.4-1.4-.4-2.8 0-4.1.3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.2.7.3 1.4.3 2.1m0-18.9h5.5c0-1.4-.2-2.8-.6-4.2-.5-1.7-1.8-3-3.4-3.7C11-.3 7.4-.3 4.1.9c-1.7.6-2.9 2-3.4 3.7-.8 2.8-.8 5.7 0 8.5.5 1.7 1.8 3 3.4 3.7 1.6.6 3.4.8 5.1.8s3.5-.3 5.1-.8c1.7-.6 2.9-2 3.4-3.7.1-.2.1-.5.2-.7L12.7 10c-.1.3-.1.6-.2.9-.3.9-1 1.6-2 1.8-.9.2-1.8.2-2.6 0-.9-.2-1.7-.8-2-1.8-.4-1.4-.4-2.9 0-4.2.3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.2.7.3 1.3.3 2m7.4 14.6c-.4 1.4-.6 2.8-.6 4.2V40h5.5V27.6c0-.7.1-1.4.3-2 .3-.9 1-1.6 2-1.8.9-.2 1.8-.2 2.6 0 .9.2 1.7.8 2 1.8.4 1.4.4 2.8 0 4.1-.3.9-1 1.6-1.9 1.8-.9.2-1.8.2-2.6 0-.2-.1-.4-.1-.5-.2l1.9 5.1c1.7 0 3.5-.3 5.1-.8 1.7-.6 2.9-2 3.4-3.7.8-2.8.8-5.7 0-8.5-.5-1.7-1.8-3-3.4-3.7a14.9 14.9 0 0 0-10.2 0c-1.9.6-3.1 2-3.6 3.6" })]
|
|
17
20
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, JSX, ReactNode, Ref } from "react";
|
|
2
|
+
//#region src/components/Picture/Picture.d.ts
|
|
3
|
+
interface PictureProps extends HTMLAttributes<HTMLPictureElement> {
|
|
4
|
+
/** **(Optional)** Content inside the component. */
|
|
5
|
+
children?: string | ReactNode;
|
|
6
|
+
/** **(Optional)** Specify additional CSS classes. */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** **(Optional)** Specify the image crop mode. */
|
|
9
|
+
crop?: "square" | "wide" | "thin" | "squircle" | "none";
|
|
10
|
+
/** **(Optional)** Specify a custom React ref for this component. */
|
|
11
|
+
ref?: Ref<HTMLPictureElement>;
|
|
12
|
+
}
|
|
13
|
+
declare const Picture: ({ children, className, crop, ref, ...props }: PictureProps) => JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Picture, Picture as default, PictureProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/Picture/Picture.tsx
|
|
4
|
+
const Picture = ({ children, className, crop, ref, ...props }) => {
|
|
5
|
+
const componentProps = {
|
|
6
|
+
className: clsx("coop-picture", className),
|
|
7
|
+
"data-crop": crop ?? void 0,
|
|
8
|
+
...props
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ jsx("picture", {
|
|
11
|
+
...componentProps,
|
|
12
|
+
ref,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { Picture, Picture as default };
|
|
@@ -2,12 +2,15 @@ import clsx from "clsx";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Prose/Prose.tsx
|
|
4
4
|
const Prose = ({ children, className, full, ref, size, spacing, ...props }) => {
|
|
5
|
-
|
|
5
|
+
const componentProps = {
|
|
6
6
|
className: clsx("coop-prose ", className),
|
|
7
7
|
"data-full": full ?? void 0,
|
|
8
8
|
"data-size": size ?? void 0,
|
|
9
9
|
"data-spacing": spacing ?? void 0,
|
|
10
|
-
...props
|
|
10
|
+
...props
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ jsx("div", {
|
|
13
|
+
...componentProps,
|
|
11
14
|
ref,
|
|
12
15
|
children
|
|
13
16
|
});
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/components/Radio/Radio.tsx
|
|
6
6
|
const Radio = ({ className, disabled, error = false, id, name, ref, size, ...props }) => {
|
|
7
7
|
const field = useField();
|
|
8
|
-
|
|
8
|
+
const componentProps = {
|
|
9
9
|
className: clsx("coop-radio", className),
|
|
10
10
|
"data-error": error || void 0,
|
|
11
11
|
"data-size": size ?? void 0,
|
|
@@ -13,7 +13,10 @@ const Radio = ({ className, disabled, error = false, id, name, ref, size, ...pro
|
|
|
13
13
|
id: id ?? field?.id,
|
|
14
14
|
name,
|
|
15
15
|
type: "radio",
|
|
16
|
-
...props
|
|
16
|
+
...props
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ jsx("input", {
|
|
19
|
+
...componentProps,
|
|
17
20
|
ref
|
|
18
21
|
});
|
|
19
22
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getSlotProp, hasUserBorder } from "../../utils/index.js";
|
|
3
2
|
import { useId as useId$1 } from "../../hooks/useId.js";
|
|
4
3
|
import { SearchIcon } from "../icons/SearchIcon.js";
|
|
4
|
+
import { getSlotProp, hasUserBorder } from "../../utils/index.js";
|
|
5
5
|
import { Button } from "../Button/Button.js";
|
|
6
6
|
import { useSlots } from "../../hooks/useSlots.js";
|
|
7
7
|
import TextInput_default from "../TextInput/index.js";
|
|
8
|
-
import { FieldLabel } from "../Field/Field.js";
|
|
9
|
-
import Field_default from "../Field/index.js";
|
|
8
|
+
import { Field, FieldLabel } from "../Field/Field.js";
|
|
10
9
|
import { SearchboxContext, useSearchbox } from "./Searchbox.context.js";
|
|
11
10
|
import clsx from "clsx";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -60,14 +59,14 @@ const Searchbox = ({ action, children, className, id, label, labelVisible = fals
|
|
|
60
59
|
children: label
|
|
61
60
|
}), /* @__PURE__ */ jsxs("div", {
|
|
62
61
|
className: clsx("coop-searchbox--inner"),
|
|
63
|
-
children: [/* @__PURE__ */ jsx(
|
|
62
|
+
children: [/* @__PURE__ */ jsx(Field, { children: slots.SearchboxInput }), slots.SearchboxButton]
|
|
64
63
|
})]
|
|
65
64
|
})
|
|
66
65
|
});
|
|
67
66
|
};
|
|
68
67
|
const SearchboxButton = ({ children, ...props }) => {
|
|
69
68
|
const searchbox = useSearchbox();
|
|
70
|
-
|
|
69
|
+
const buttonProps = {
|
|
71
70
|
children: children ?? /* @__PURE__ */ jsx(SearchIcon, {
|
|
72
71
|
alt: "Search",
|
|
73
72
|
id: searchbox.buttonId + "__icon",
|
|
@@ -78,7 +77,8 @@ const SearchboxButton = ({ children, ...props }) => {
|
|
|
78
77
|
isLoading: searchbox.isLoading,
|
|
79
78
|
size: searchbox.size,
|
|
80
79
|
...props
|
|
81
|
-
}
|
|
80
|
+
};
|
|
81
|
+
return /* @__PURE__ */ jsx(Button, { ...buttonProps });
|
|
82
82
|
};
|
|
83
83
|
SearchboxButton.displayName = "Searchbox.Button";
|
|
84
84
|
const SearchboxInput = (props) => {
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/components/Select/Select.tsx
|
|
6
6
|
const Select = ({ children, className, disabled, error, fit = false, id, name, ref, size, ...props }) => {
|
|
7
7
|
const field = useField();
|
|
8
|
-
|
|
8
|
+
const componentProps = {
|
|
9
9
|
className: clsx("coop-select", className),
|
|
10
10
|
"data-error": error ?? void 0,
|
|
11
11
|
"data-fit": fit || void 0,
|
|
@@ -13,7 +13,10 @@ const Select = ({ children, className, disabled, error, fit = false, id, name, r
|
|
|
13
13
|
disabled,
|
|
14
14
|
id: id ?? field?.id,
|
|
15
15
|
name,
|
|
16
|
-
...props
|
|
16
|
+
...props
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ jsx("select", {
|
|
19
|
+
...componentProps,
|
|
17
20
|
ref,
|
|
18
21
|
children
|
|
19
22
|
});
|
|
@@ -9,14 +9,14 @@ import React from "react";
|
|
|
9
9
|
*/
|
|
10
10
|
const Signpost = ({ as, children, className, headingLevel = "h3", href, image, ref, ...props }) => {
|
|
11
11
|
const element = as ?? "a";
|
|
12
|
-
|
|
12
|
+
const componentProps = {
|
|
13
13
|
className: clsx("coop-signpost", className),
|
|
14
|
-
...props
|
|
14
|
+
...props
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
17
|
+
...componentProps,
|
|
15
18
|
ref,
|
|
16
|
-
children: [image && /* @__PURE__ */ jsx(Image, {
|
|
17
|
-
crop: "wide",
|
|
18
|
-
...image
|
|
19
|
-
}), React.createElement(element, { href }, /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
children: [image && /* @__PURE__ */ jsx(Image, { ...image }), React.createElement(element, { href }, /* @__PURE__ */ jsxs("div", {
|
|
20
20
|
className: "coop-signpost--content",
|
|
21
21
|
children: [React.createElement(headingLevel, { className: "coop-signpost--heading" }, children), /* @__PURE__ */ jsx("span", {
|
|
22
22
|
"aria-hidden": "true",
|
|
@@ -15,10 +15,13 @@ const SkipNav = ({ className, isVisible = false, links = defaultLinks, ref, ...p
|
|
|
15
15
|
...componentProps,
|
|
16
16
|
ref,
|
|
17
17
|
children: /* @__PURE__ */ jsx("ul", { children: navLinks.map((link) => {
|
|
18
|
-
|
|
18
|
+
const linkProps = {
|
|
19
19
|
"data-visible": isVisible,
|
|
20
20
|
href: link.href,
|
|
21
|
-
label: link.label
|
|
21
|
+
label: link.label
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", {
|
|
24
|
+
...linkProps,
|
|
22
25
|
children: link.label
|
|
23
26
|
}) }, link.href);
|
|
24
27
|
}) })
|
|
@@ -3,10 +3,13 @@ import clsx from "clsx";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/Squircle/Squircle.tsx
|
|
5
5
|
const Squircle = ({ children, className, ref, size = "md", ...props }) => {
|
|
6
|
-
|
|
6
|
+
const componentProps = {
|
|
7
7
|
className: clsx("coop-squircle", !hasUserBg(className) && "bg-offer", className),
|
|
8
8
|
"data-size": size.length && size !== "md" ? size : void 0,
|
|
9
|
-
...props
|
|
9
|
+
...props
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ jsx("figure", {
|
|
12
|
+
...componentProps,
|
|
10
13
|
ref,
|
|
11
14
|
children: /* @__PURE__ */ jsx("figcaption", { children })
|
|
12
15
|
});
|
|
@@ -29,9 +29,12 @@ const ValidationSummary = ({ autoScroll = true, children, className, forceMount
|
|
|
29
29
|
hasErrors
|
|
30
30
|
]);
|
|
31
31
|
if (!hasErrors && !forceMount) return null;
|
|
32
|
-
|
|
32
|
+
const componentProps = {
|
|
33
33
|
className: clsx("coop-validation-summary", className),
|
|
34
|
-
...props
|
|
34
|
+
...props
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
37
|
+
...componentProps,
|
|
35
38
|
"aria-live": "assertive",
|
|
36
39
|
ref: mergeRefs(internalRef, ref),
|
|
37
40
|
role: "alert",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AccountCircleFilledIcon.tsx
|
|
5
5
|
const AccountCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "account-circle-filled",
|
|
@@ -12,7 +12,10 @@ const AccountCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }) =>
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AccountCircleIcon.tsx
|
|
5
5
|
const AccountCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "account-circle",
|
|
@@ -12,7 +12,10 @@ const AccountCircleIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AccountFilledIcon.tsx
|
|
5
5
|
const AccountFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "account-filled",
|
|
@@ -12,7 +12,10 @@ const AccountFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AccountIcon.tsx
|
|
5
5
|
const AccountIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "account",
|
|
@@ -12,7 +12,10 @@ const AccountIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AddIcon.tsx
|
|
5
5
|
const AddIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "add",
|
|
@@ -12,7 +12,10 @@ const AddIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AppsFilledIcon.tsx
|
|
5
5
|
const AppsFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "apps-filled",
|
|
@@ -12,7 +12,10 @@ const AppsFilledIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/AppsIcon.tsx
|
|
5
5
|
const AppsIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "apps",
|
|
@@ -12,7 +12,10 @@ const AppsIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/ArrowDownIcon.tsx
|
|
5
5
|
const ArrowDownIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-down",
|
|
@@ -12,7 +12,10 @@ const ArrowDownIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/ArrowLeftIcon.tsx
|
|
5
5
|
const ArrowLeftIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-left",
|
|
@@ -12,7 +12,10 @@ const ArrowLeftIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/ArrowRightIcon.tsx
|
|
5
5
|
const ArrowRightIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-right",
|
|
@@ -12,7 +12,10 @@ const ArrowRightIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/icons/ArrowUpIcon.tsx
|
|
5
5
|
const ArrowUpIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
6
6
|
const uid = useId(id);
|
|
7
|
-
|
|
7
|
+
const componentProps = {
|
|
8
8
|
"aria-labelledby": alt ? uid + "__title" : void 0,
|
|
9
9
|
className: clsx("coop-icon", className),
|
|
10
10
|
"data-icon": "arrow-up",
|
|
@@ -12,7 +12,10 @@ const ArrowUpIcon = ({ alt, className, fill, id, ref, ...props }) => {
|
|
|
12
12
|
id: uid,
|
|
13
13
|
role: alt ? "img" : void 0,
|
|
14
14
|
viewBox: "0 0 32 32",
|
|
15
|
-
...props
|
|
15
|
+
...props
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
18
|
+
...componentProps,
|
|
16
19
|
ref,
|
|
17
20
|
children: [alt ? /* @__PURE__ */ jsx("title", {
|
|
18
21
|
id: uid + "__title",
|