@coopdigital/react 0.19.5 → 0.19.7
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.d.ts +3 -3
- package/dist/components/AlertBanner/AlertBanner.js +3 -2
- package/dist/components/Author/Author.d.ts +4 -4
- package/dist/components/Author/Author.js +3 -2
- package/dist/components/Button/Button.d.ts +11 -11
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Card/Card.d.ts +14 -14
- package/dist/components/Card/Card.js +3 -2
- package/dist/components/Expandable/Expandable.d.ts +4 -4
- package/dist/components/Expandable/Expandable.js +4 -2
- package/dist/components/Icon/AddIcon.d.ts +1 -1
- package/dist/components/Icon/AddIcon.js +4 -3
- package/dist/components/Icon/ArrowDownIcon.d.ts +1 -1
- package/dist/components/Icon/ArrowDownIcon.js +4 -3
- package/dist/components/Icon/ArrowLeftIcon.d.ts +1 -1
- package/dist/components/Icon/ArrowLeftIcon.js +4 -3
- package/dist/components/Icon/ArrowRightIcon.d.ts +1 -1
- package/dist/components/Icon/ArrowRightIcon.js +4 -3
- package/dist/components/Icon/ArrowUpIcon.d.ts +1 -1
- package/dist/components/Icon/ArrowUpIcon.js +4 -3
- package/dist/components/Icon/AvatarAltIcon.d.ts +1 -1
- package/dist/components/Icon/AvatarAltIcon.js +4 -3
- package/dist/components/Icon/AvatarIcon.d.ts +1 -1
- package/dist/components/Icon/AvatarIcon.js +4 -3
- package/dist/components/Icon/BasketIcon.d.ts +1 -1
- package/dist/components/Icon/BasketIcon.js +4 -3
- package/dist/components/Icon/CalendarIcon.d.ts +1 -1
- package/dist/components/Icon/CalendarIcon.js +4 -3
- package/dist/components/Icon/ChevronDownIcon.d.ts +1 -1
- package/dist/components/Icon/ChevronDownIcon.js +4 -3
- package/dist/components/Icon/ChevronLeftIcon.d.ts +1 -1
- package/dist/components/Icon/ChevronLeftIcon.js +4 -3
- package/dist/components/Icon/ChevronRightIcon.d.ts +1 -1
- package/dist/components/Icon/ChevronRightIcon.js +4 -3
- package/dist/components/Icon/ChevronUpIcon.d.ts +1 -1
- package/dist/components/Icon/ChevronUpIcon.js +4 -3
- package/dist/components/Icon/ClockIcon.d.ts +1 -1
- package/dist/components/Icon/ClockIcon.js +4 -3
- package/dist/components/Icon/CloseAltIcon.d.ts +1 -1
- package/dist/components/Icon/CloseAltIcon.js +4 -3
- package/dist/components/Icon/CloseIcon.d.ts +1 -1
- package/dist/components/Icon/CloseIcon.js +4 -3
- package/dist/components/Icon/CoopCardIcon.d.ts +1 -1
- package/dist/components/Icon/CoopCardIcon.js +4 -3
- package/dist/components/Icon/CoopIcon.d.ts +1 -1
- package/dist/components/Icon/CoopIcon.js +4 -3
- package/dist/components/Icon/CoopLocationIcon.d.ts +1 -1
- package/dist/components/Icon/CoopLocationIcon.js +4 -3
- package/dist/components/Icon/DownloadIcon.d.ts +1 -1
- package/dist/components/Icon/DownloadIcon.js +4 -3
- package/dist/components/Icon/HomeIcon.d.ts +1 -1
- package/dist/components/Icon/HomeIcon.js +4 -3
- package/dist/components/Icon/InformationIcon.d.ts +1 -1
- package/dist/components/Icon/InformationIcon.js +4 -3
- package/dist/components/Icon/LoadingIcon.d.ts +1 -1
- package/dist/components/Icon/LoadingIcon.js +4 -3
- package/dist/components/Icon/LocationIcon.d.ts +1 -1
- package/dist/components/Icon/LocationIcon.js +4 -3
- package/dist/components/Icon/MailIcon.d.ts +1 -1
- package/dist/components/Icon/MailIcon.js +4 -3
- package/dist/components/Icon/MenuIcon.d.ts +1 -1
- package/dist/components/Icon/MenuIcon.js +4 -3
- package/dist/components/Icon/MessageIcon.d.ts +1 -1
- package/dist/components/Icon/MessageIcon.js +4 -3
- package/dist/components/Icon/MinusIcon.d.ts +1 -1
- package/dist/components/Icon/MinusIcon.js +4 -3
- package/dist/components/Icon/OpenNewIcon.d.ts +1 -1
- package/dist/components/Icon/OpenNewIcon.js +4 -3
- package/dist/components/Icon/PencilIcon.d.ts +1 -1
- package/dist/components/Icon/PencilIcon.js +4 -3
- package/dist/components/Icon/PhoneIcon.d.ts +1 -1
- package/dist/components/Icon/PhoneIcon.js +4 -3
- package/dist/components/Icon/QuestionIcon.d.ts +1 -1
- package/dist/components/Icon/QuestionIcon.js +4 -3
- package/dist/components/Icon/ScooterIcon.d.ts +1 -1
- package/dist/components/Icon/ScooterIcon.js +4 -3
- package/dist/components/Icon/SearchIcon.d.ts +1 -1
- package/dist/components/Icon/SearchIcon.js +4 -3
- package/dist/components/Icon/SettingsIcon.d.ts +1 -1
- package/dist/components/Icon/SettingsIcon.js +4 -3
- package/dist/components/Icon/TickAltIcon.d.ts +1 -1
- package/dist/components/Icon/TickAltIcon.js +4 -3
- package/dist/components/Icon/TickIcon.d.ts +1 -1
- package/dist/components/Icon/TickIcon.js +4 -3
- package/dist/components/Icon/VanIcon.d.ts +1 -1
- package/dist/components/Icon/VanIcon.js +4 -3
- package/dist/components/Icon/WarningIcon.d.ts +1 -1
- package/dist/components/Icon/WarningIcon.js +4 -3
- package/dist/components/Icon/WriteIcon.d.ts +1 -1
- package/dist/components/Icon/WriteIcon.js +4 -3
- package/dist/components/Image/Image.d.ts +5 -5
- package/dist/components/Pill/Pill.d.ts +10 -9
- package/dist/components/Pill/Pill.js +1 -1
- package/dist/components/RootSVG/RootSVG.js +1 -1
- package/dist/components/SearchBox/SearchBox.d.ts +12 -11
- package/dist/components/SearchBox/SearchBox.js +2 -1
- package/dist/components/Signpost/Signpost.d.ts +6 -6
- package/dist/components/Signpost/Signpost.js +5 -3
- package/dist/components/SkipNav/SkipNav.d.ts +4 -6
- package/dist/components/SkipNav/SkipNav.js +3 -2
- package/dist/components/Squircle/Squircle.d.ts +4 -4
- package/dist/components/Squircle/Squircle.js +2 -1
- package/dist/components/Tag/Tag.d.ts +5 -5
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -3
- package/src/components/AlertBanner/AlertBanner.tsx +7 -5
- package/src/components/Author/Author.tsx +8 -6
- package/src/components/Button/Button.tsx +14 -13
- package/src/components/Card/Card.tsx +17 -18
- package/src/components/Expandable/Expandable.tsx +12 -14
- package/src/components/Icon/AddIcon.tsx +6 -5
- package/src/components/Icon/ArrowDownIcon.tsx +6 -5
- package/src/components/Icon/ArrowLeftIcon.tsx +6 -5
- package/src/components/Icon/ArrowRightIcon.tsx +6 -5
- package/src/components/Icon/ArrowUpIcon.tsx +6 -5
- package/src/components/Icon/AvatarAltIcon.tsx +7 -6
- package/src/components/Icon/AvatarIcon.tsx +6 -5
- package/src/components/Icon/BasketIcon.tsx +6 -5
- package/src/components/Icon/CalendarIcon.tsx +6 -5
- package/src/components/Icon/ChevronDownIcon.tsx +5 -4
- package/src/components/Icon/ChevronLeftIcon.tsx +5 -4
- package/src/components/Icon/ChevronRightIcon.tsx +5 -4
- package/src/components/Icon/ChevronUpIcon.tsx +5 -4
- package/src/components/Icon/ClockIcon.tsx +6 -5
- package/src/components/Icon/CloseAltIcon.tsx +7 -6
- package/src/components/Icon/CloseIcon.tsx +6 -5
- package/src/components/Icon/CoopCardIcon.tsx +5 -4
- package/src/components/Icon/CoopIcon.tsx +5 -4
- package/src/components/Icon/CoopLocationIcon.tsx +7 -6
- package/src/components/Icon/DownloadIcon.tsx +10 -6
- package/src/components/Icon/HomeIcon.tsx +7 -6
- package/src/components/Icon/InformationIcon.tsx +6 -5
- package/src/components/Icon/LoadingIcon.tsx +5 -4
- package/src/components/Icon/LocationIcon.tsx +6 -5
- package/src/components/Icon/MailIcon.tsx +5 -4
- package/src/components/Icon/MenuIcon.tsx +5 -4
- package/src/components/Icon/MessageIcon.tsx +5 -4
- package/src/components/Icon/MinusIcon.tsx +5 -4
- package/src/components/Icon/OpenNewIcon.tsx +6 -5
- package/src/components/Icon/PencilIcon.tsx +5 -4
- package/src/components/Icon/PhoneIcon.tsx +5 -4
- package/src/components/Icon/QuestionIcon.tsx +6 -5
- package/src/components/Icon/ScooterIcon.tsx +7 -6
- package/src/components/Icon/SearchIcon.tsx +6 -5
- package/src/components/Icon/SettingsIcon.tsx +5 -4
- package/src/components/Icon/TickAltIcon.tsx +6 -5
- package/src/components/Icon/TickIcon.tsx +5 -4
- package/src/components/Icon/VanIcon.tsx +5 -4
- package/src/components/Icon/WarningIcon.tsx +6 -5
- package/src/components/Icon/WriteIcon.tsx +8 -7
- package/src/components/Image/Image.tsx +5 -5
- package/src/components/Pill/Pill.tsx +11 -10
- package/src/components/RootSVG/RootSVG.tsx +1 -1
- package/src/components/SearchBox/SearchBox.tsx +14 -12
- package/src/components/Signpost/Signpost.tsx +11 -11
- package/src/components/SkipNav/SkipNav.tsx +8 -8
- package/src/components/Squircle/Squircle.tsx +7 -5
- package/src/components/Tag/Tag.tsx +6 -6
- package/src/types/index.ts +1 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const PhoneIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M28.88 21.26c-2.26-1.72-5.46-2.84-7-1.42-.51.51-1.65 1.52-5.15-1.42-5.73-5.37-5.47-7.29-4.44-8.42 1.44-1.52.41-4.66-1.34-6.89C8.78.38 6.21-.63 4.14.38a6.53 6.53 0 0 0-4 4.67c-.94 4.66 3.49 10.64 7.3 14.89.72.81 1.45 1.52 2.17 2.33l.41.41C14.45 27 20.53 32 25.58 32a4.4 4.4 0 0 0 1.14-.1 6.64 6.64 0 0 0 5-3.95c.87-2.03-.16-4.56-2.84-6.69m-13.6-1.32c2.06 1.72 5.25 3.75 7.93 1.42.42-.3 2.37 0 4.44 1.52 1.44 1.12 2.78 2.84 2.06 4.12a4.45 4.45 0 0 1-3.4 2.84c-3.3.51-8.77-2.63-14.85-8.71l-.31-.31c-.72-.71-1.44-1.41-2.16-2.23H9C4 13.15 1.57 8.49 2.19 5.45a4.69 4.69 0 0 1 2.88-3.24c1.34-.71 3.09.71 4.13 2.13 1.54 2 1.85 3.95 1.44 4.35-2.89 3 .1 6.89 3.92 10.64", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "phone", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M28.88 21.26c-2.26-1.72-5.46-2.84-7-1.42-.51.51-1.65 1.52-5.15-1.42-5.73-5.37-5.47-7.29-4.44-8.42 1.44-1.52.41-4.66-1.34-6.89C8.78.38 6.21-.63 4.14.38a6.53 6.53 0 0 0-4 4.67c-.94 4.66 3.49 10.64 7.3 14.89.72.81 1.45 1.52 2.17 2.33l.41.41C14.45 27 20.53 32 25.58 32a4.4 4.4 0 0 0 1.14-.1 6.64 6.64 0 0 0 5-3.95c.87-2.03-.16-4.56-2.84-6.69m-13.6-1.32c2.06 1.72 5.25 3.75 7.93 1.42.42-.3 2.37 0 4.44 1.52 1.44 1.12 2.78 2.84 2.06 4.12a4.45 4.45 0 0 1-3.4 2.84c-3.3.51-8.77-2.63-14.85-8.71l-.31-.31c-.72-.71-1.44-1.41-2.16-2.23H9C4 13.15 1.57 8.49 2.19 5.45a4.69 4.69 0 0 1 2.88-3.24c1.34-.71 3.09.71 4.13 2.13 1.54 2 1.85 3.95 1.44 4.35-2.89 3 .1 6.89 3.92 10.64", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { PhoneIcon };
|
|
@@ -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 QuestionIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const QuestionIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const QuestionIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M16 0a16 16 0 1 0 16 16A16 16 0 0 0 16 0m0 30a14 14 0 1 1 14-14 14 14 0 0 1-14 14", fill: "currentColor" }), jsx("path", { d: "M15.89 20.32a1.58 1.58 0 0 0-1.14.46 1.5 1.5 0 0 0-.47 1.1 1.3 1.3 0 0 0 .13.6 1.6 1.6 0 0 0 .35.48 1.7 1.7 0 0 0 .51.33 1.6 1.6 0 0 0 .62.12 1.55 1.55 0 0 0 1.11-.47 1.48 1.48 0 0 0 .47-1.1 1.4 1.4 0 0 0-.47-1.08 1.6 1.6 0 0 0-1.11-.44M19.11 9.71A4.3 4.3 0 0 0 17.74 9a5.2 5.2 0 0 0-1.63-.25 5.4 5.4 0 0 0-1.73.25 4.5 4.5 0 0 0-1.38.78 4.3 4.3 0 0 0-1 1.28 5 5 0 0 0-.51 1.71l2.41.23a2.7 2.7 0 0 1 .16-.78 1.9 1.9 0 0 1 .41-.67 2.1 2.1 0 0 1 .64-.46 1.9 1.9 0 0 1 .84-.17 1.78 1.78 0 0 1 1.39.53 1.84 1.84 0 0 1 .49 1.31 1.9 1.9 0 0 1-.27 1 4 4 0 0 1-.65.76l-.9.86a5.4 5.4 0 0 0-.63.68 3.05 3.05 0 0 0-.63 1.39 5.4 5.4 0 0 0-.07.86v.76h2.37v-.52a4 4 0 0 1 .06-.74 1.8 1.8 0 0 1 .21-.56 2.7 2.7 0 0 1 .4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 0 0 .63-.77 3.4 3.4 0 0 0 .4-.88 4.2 4.2 0 0 0 .14-1.13 3.8 3.8 0 0 0-.38-1.64 3.6 3.6 0 0 0-.89-1.22", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "question", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M16 0a16 16 0 1 0 16 16A16 16 0 0 0 16 0m0 30a14 14 0 1 1 14-14 14 14 0 0 1-14 14", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M15.89 20.32a1.58 1.58 0 0 0-1.14.46 1.5 1.5 0 0 0-.47 1.1 1.3 1.3 0 0 0 .13.6 1.6 1.6 0 0 0 .35.48 1.7 1.7 0 0 0 .51.33 1.6 1.6 0 0 0 .62.12 1.55 1.55 0 0 0 1.11-.47 1.48 1.48 0 0 0 .47-1.1 1.4 1.4 0 0 0-.47-1.08 1.6 1.6 0 0 0-1.11-.44M19.11 9.71A4.3 4.3 0 0 0 17.74 9a5.2 5.2 0 0 0-1.63-.25 5.4 5.4 0 0 0-1.73.25 4.5 4.5 0 0 0-1.38.78 4.3 4.3 0 0 0-1 1.28 5 5 0 0 0-.51 1.71l2.41.23a2.7 2.7 0 0 1 .16-.78 1.9 1.9 0 0 1 .41-.67 2.1 2.1 0 0 1 .64-.46 1.9 1.9 0 0 1 .84-.17 1.78 1.78 0 0 1 1.39.53 1.84 1.84 0 0 1 .49 1.31 1.9 1.9 0 0 1-.27 1 4 4 0 0 1-.65.76l-.9.86a5.4 5.4 0 0 0-.63.68 3.05 3.05 0 0 0-.63 1.39 5.4 5.4 0 0 0-.07.86v.76h2.37v-.52a4 4 0 0 1 .06-.74 1.8 1.8 0 0 1 .21-.56 2.7 2.7 0 0 1 .4-.52c.17-.18.39-.38.65-.61s.59-.52.84-.77a5 5 0 0 0 .63-.77 3.4 3.4 0 0 0 .4-.88 4.2 4.2 0 0 0 .14-1.13 3.8 3.8 0 0 0-.38-1.64 3.6 3.6 0 0 0-.89-1.22", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { QuestionIcon };
|
|
@@ -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 ScooterIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ScooterIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const ScooterIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsxs("g", { clipPath: "url(#a)", clipRule: "evenodd", fill: "currentColor", fillRule: "evenodd", children: [jsx("path", { d: "M41.292 18.293a1 1 0 0 1 1.414 0C43.88 19.465 44.6 21.014 44.6 22.8c0 3.452-2.747 6.2-6.2 6.2-3.333 0-6.08-2.622-6.2-5.964a1 1 0 1 1 2-.072 4.19 4.19 0 0 0 4.2 4.036c2.348 0 4.2-1.852 4.2-4.2 0-1.214-.48-2.265-1.307-3.093a1 1 0 0 1 0-1.414M1.1 23a9.28 9.28 0 0 1 9.3-9.3 9.28 9.28 0 0 1 9.3 9.3 1 1 0 0 1-1 1H2.1a1 1 0 0 1-1-1m2.067-1h14.466a7.28 7.28 0 0 0-7.233-6.3A7.28 7.28 0 0 0 3.167 22" }), jsx("path", { d: "M34.754 13.161c3.98-1.476 8.72.438 10.545 4.203a1 1 0 1 1-1.8.872c-1.374-2.834-5.032-4.32-8.052-3.199l-.006.003c-.933.339-1.796.939-2.494 1.724a1 1 0 0 1-1.495-1.328c.9-1.014 2.036-1.813 3.302-2.275M10.4 29.3a6.164 6.164 0 0 1-6.2-6.2h2c0 2.348 1.852 4.2 4.2 4.2s4.2-1.852 4.2-4.2h2c0 3.452-2.749 6.2-6.2 6.2", fill: "currentColor" }), jsx("path", { d: "M21.3 1a1 1 0 0 1 1-1h5.1a1 1 0 0 1 .869.503l7.1 12.4a1 1 0 1 1-1.736.994L26.821 2h-4.52a1 1 0 0 1-1-1M8.585 9.2c3.42-.1 6.556-.012 9.806 1.829 2.713 1.52 4.878 4.116 5.858 7.055a1 1 0 0 1-1.898.632c-.82-2.46-2.654-4.663-4.94-5.943l-.004-.003c-2.745-1.555-5.404-1.67-8.778-1.57H8a1 1 0 1 1 0-2z", fill: "currentColor" }), jsx("path", { d: "M45.33 17.434a1 1 0 0 1-.564 1.297l-12.2 4.8-.05.018c-.966.322-1.976.551-3.116.551H2.1a1 1 0 1 1 0-2h27.3c.851 0 1.634-.167 2.459-.44l12.174-4.79a1 1 0 0 1 1.297.564M0 5.7a1 1 0 0 1 1-1h9.9a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1M1.8 10.2a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2h-2a1 1 0 0 1-1-1M3.2 1a1 1 0 0 1 1-1h7.1a1 1 0 1 1 0 2H4.2a1 1 0 0 1-1-1", fill: "currentColor" })] }), jsx("defs", { children: jsx("clipPath", { id: "a", children: jsx("path", { d: "M0 0h45.4v29.3H0z", fill: "currentColor" }) }) })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "scooter", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsxs("g", { clipPath: "url(#a)", clipRule: "evenodd", fill: "currentColor", fillRule: "evenodd", children: [jsx("path", { d: "M41.292 18.293a1 1 0 0 1 1.414 0C43.88 19.465 44.6 21.014 44.6 22.8c0 3.452-2.747 6.2-6.2 6.2-3.333 0-6.08-2.622-6.2-5.964a1 1 0 1 1 2-.072 4.19 4.19 0 0 0 4.2 4.036c2.348 0 4.2-1.852 4.2-4.2 0-1.214-.48-2.265-1.307-3.093a1 1 0 0 1 0-1.414M1.1 23a9.28 9.28 0 0 1 9.3-9.3 9.28 9.28 0 0 1 9.3 9.3 1 1 0 0 1-1 1H2.1a1 1 0 0 1-1-1m2.067-1h14.466a7.28 7.28 0 0 0-7.233-6.3A7.28 7.28 0 0 0 3.167 22" }), jsx("path", { d: "M34.754 13.161c3.98-1.476 8.72.438 10.545 4.203a1 1 0 1 1-1.8.872c-1.374-2.834-5.032-4.32-8.052-3.199l-.006.003c-.933.339-1.796.939-2.494 1.724a1 1 0 0 1-1.495-1.328c.9-1.014 2.036-1.813 3.302-2.275M10.4 29.3a6.164 6.164 0 0 1-6.2-6.2h2c0 2.348 1.852 4.2 4.2 4.2s4.2-1.852 4.2-4.2h2c0 3.452-2.749 6.2-6.2 6.2", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M21.3 1a1 1 0 0 1 1-1h5.1a1 1 0 0 1 .869.503l7.1 12.4a1 1 0 1 1-1.736.994L26.821 2h-4.52a1 1 0 0 1-1-1M8.585 9.2c3.42-.1 6.556-.012 9.806 1.829 2.713 1.52 4.878 4.116 5.858 7.055a1 1 0 0 1-1.898.632c-.82-2.46-2.654-4.663-4.94-5.943l-.004-.003c-2.745-1.555-5.404-1.67-8.778-1.57H8a1 1 0 1 1 0-2z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M45.33 17.434a1 1 0 0 1-.564 1.297l-12.2 4.8-.05.018c-.966.322-1.976.551-3.116.551H2.1a1 1 0 1 1 0-2h27.3c.851 0 1.634-.167 2.459-.44l12.174-4.79a1 1 0 0 1 1.297.564M0 5.7a1 1 0 0 1 1-1h9.9a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1M1.8 10.2a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2h-2a1 1 0 0 1-1-1M3.2 1a1 1 0 0 1 1-1h7.1a1 1 0 1 1 0 2H4.2a1 1 0 0 1-1-1", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] }), jsx("defs", { children: jsx("clipPath", { id: "a", children: jsx("path", { d: "M0 0h45.4v29.3H0z", fill: "currentColor" }) }) })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ScooterIcon };
|
|
@@ -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 SearchIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const SearchIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const SearchIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M13.25 25.49a12.25 12.25 0 1 1 12.24-12.24 12.25 12.25 0 0 1-12.24 12.24m0-22.61a10.37 10.37 0 1 0 10.36 10.37A10.38 10.38 0 0 0 13.25 2.88", fill: "currentColor" }), jsx("path", { d: "M30.06 31a.94.94 0 0 1-.67-.28l-8.81-8.81a.94.94 0 1 1 1.33-1.33l8.81 8.81a.94.94 0 0 1 0 1.33.9.9 0 0 1-.66.28", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "search", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M13.25 25.49a12.25 12.25 0 1 1 12.24-12.24 12.25 12.25 0 0 1-12.24 12.24m0-22.61a10.37 10.37 0 1 0 10.36 10.37A10.38 10.38 0 0 0 13.25 2.88", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M30.06 31a.94.94 0 0 1-.67-.28l-8.81-8.81a.94.94 0 1 1 1.33-1.33l8.81 8.81a.94.94 0 0 1 0 1.33.9.9 0 0 1-.66.28", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { SearchIcon };
|
|
@@ -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 SettingsIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const SettingsIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const SettingsIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M16 2a14 14 0 0 1 2.13.16v3.57l1.34.47a10.2 10.2 0 0 1 3.27 1.89l1.08.91 1.23-.71 1.86-1.08a14 14 0 0 1 2.14 3.69L27.18 12l-1.18.7.26 1.39a10.6 10.6 0 0 1 0 3.8L26 19.28l1.23.71 1.88 1.09a14.2 14.2 0 0 1-2.14 3.69l-1.86-1.08-1.28-.69-1.07.92a10.6 10.6 0 0 1-3.3 1.9l-1.33.47v3.57A14 14 0 0 1 16 30a14 14 0 0 1-2.13-.16v-3.57l-1.34-.47a10.2 10.2 0 0 1-3.27-1.9L8.18 23 7 23.69l-1.91 1.08A14.1 14.1 0 0 1 3 21.08L4.82 20l1.23-.71-.26-1.39a10.6 10.6 0 0 1 0-3.8l.26-1.39L4.82 12 3 10.92a14.5 14.5 0 0 1 2.08-3.69l1.86 1.08L8.16 9l1.08-.9a10.6 10.6 0 0 1 3.3-1.9l1.33-.47V2.16A14 14 0 0 1 16 2m0 21a7 7 0 1 0-7-7 7 7 0 0 0 7 7m0-23a16 16 0 0 0-3.53.39.76.76 0 0 0-.6.75v3.18a12.7 12.7 0 0 0-3.93 2.26L5.2 5a.75.75 0 0 0-.38-.1.77.77 0 0 0-.57.25 15.9 15.9 0 0 0-3.53 6.1.78.78 0 0 0 .35.91l2.75 1.59a12.3 12.3 0 0 0 0 4.52l-2.75 1.58a.79.79 0 0 0-.35.9 16 16 0 0 0 3.53 6.11.8.8 0 0 0 .57.25.7.7 0 0 0 .38-.11L8 25.42a12.3 12.3 0 0 0 3.92 2.26v3.18a.77.77 0 0 0 .61.75A16.2 16.2 0 0 0 16 32a16 16 0 0 0 3.53-.39.76.76 0 0 0 .6-.75v-3.18a12.5 12.5 0 0 0 3.92-2.26L26.8 27a.79.79 0 0 0 1-.15 16 16 0 0 0 3.53-6.11.8.8 0 0 0-.36-.9l-2.75-1.59a12.8 12.8 0 0 0 0-4.53l2.75-1.59a.78.78 0 0 0 .35-.9 16.1 16.1 0 0 0-3.53-6.1.76.76 0 0 0-.57-.26.73.73 0 0 0-.42.13l-2.75 1.57a12.3 12.3 0 0 0-3.92-2.26V1.14a.77.77 0 0 0-.61-.75A16.2 16.2 0 0 0 16 0m0 21a5 5 0 1 1 5-5 5 5 0 0 1-5 5", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "settings", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M16 2a14 14 0 0 1 2.13.16v3.57l1.34.47a10.2 10.2 0 0 1 3.27 1.89l1.08.91 1.23-.71 1.86-1.08a14 14 0 0 1 2.14 3.69L27.18 12l-1.18.7.26 1.39a10.6 10.6 0 0 1 0 3.8L26 19.28l1.23.71 1.88 1.09a14.2 14.2 0 0 1-2.14 3.69l-1.86-1.08-1.28-.69-1.07.92a10.6 10.6 0 0 1-3.3 1.9l-1.33.47v3.57A14 14 0 0 1 16 30a14 14 0 0 1-2.13-.16v-3.57l-1.34-.47a10.2 10.2 0 0 1-3.27-1.9L8.18 23 7 23.69l-1.91 1.08A14.1 14.1 0 0 1 3 21.08L4.82 20l1.23-.71-.26-1.39a10.6 10.6 0 0 1 0-3.8l.26-1.39L4.82 12 3 10.92a14.5 14.5 0 0 1 2.08-3.69l1.86 1.08L8.16 9l1.08-.9a10.6 10.6 0 0 1 3.3-1.9l1.33-.47V2.16A14 14 0 0 1 16 2m0 21a7 7 0 1 0-7-7 7 7 0 0 0 7 7m0-23a16 16 0 0 0-3.53.39.76.76 0 0 0-.6.75v3.18a12.7 12.7 0 0 0-3.93 2.26L5.2 5a.75.75 0 0 0-.38-.1.77.77 0 0 0-.57.25 15.9 15.9 0 0 0-3.53 6.1.78.78 0 0 0 .35.91l2.75 1.59a12.3 12.3 0 0 0 0 4.52l-2.75 1.58a.79.79 0 0 0-.35.9 16 16 0 0 0 3.53 6.11.8.8 0 0 0 .57.25.7.7 0 0 0 .38-.11L8 25.42a12.3 12.3 0 0 0 3.92 2.26v3.18a.77.77 0 0 0 .61.75A16.2 16.2 0 0 0 16 32a16 16 0 0 0 3.53-.39.76.76 0 0 0 .6-.75v-3.18a12.5 12.5 0 0 0 3.92-2.26L26.8 27a.79.79 0 0 0 1-.15 16 16 0 0 0 3.53-6.11.8.8 0 0 0-.36-.9l-2.75-1.59a12.8 12.8 0 0 0 0-4.53l2.75-1.59a.78.78 0 0 0 .35-.9 16.1 16.1 0 0 0-3.53-6.1.76.76 0 0 0-.57-.26.73.73 0 0 0-.42.13l-2.75 1.57a12.3 12.3 0 0 0-3.92-2.26V1.14a.77.77 0 0 0-.61-.75A16.2 16.2 0 0 0 16 0m0 21a5 5 0 1 1 5-5 5 5 0 0 1-5 5", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { SettingsIcon };
|
|
@@ -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 TickAltIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const TickAltIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const TickAltIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M12.7 22a1 1 0 0 1-.71-.29L8.3 18a1 1 0 0 1 0-1.42 1 1 0 0 1 1.41 0l3 3 9.41-9.38a1 1 0 0 1 1.42 0 1 1 0 0 1 0 1.41L13.4 21.69a1 1 0 0 1-.7.31", fill: "currentColor" }), jsx("path", { d: "M16 2A14 14 0 1 1 2 16 14 14 0 0 1 16 2m0-2a16 16 0 1 0 16 16A16 16 0 0 0 16 0", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "tick-alt", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M12.7 22a1 1 0 0 1-.71-.29L8.3 18a1 1 0 0 1 0-1.42 1 1 0 0 1 1.41 0l3 3 9.41-9.38a1 1 0 0 1 1.42 0 1 1 0 0 1 0 1.41L13.4 21.69a1 1 0 0 1-.7.31", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M16 2A14 14 0 1 1 2 16 14 14 0 0 1 16 2m0-2a16 16 0 1 0 16 16A16 16 0 0 0 16 0", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { TickAltIcon };
|
|
@@ -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 TickIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const TickIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const TickIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M10.41 26a1 1 0 0 1-.71-.3l-6.42-6.59a1 1 0 0 1 1.44-1.39l5.69 5.85L27.28 6.3a1 1 0 1 1 1.44 1.4l-17.59 18a1 1 0 0 1-.72.3", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "tick", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M10.41 26a1 1 0 0 1-.71-.3l-6.42-6.59a1 1 0 0 1 1.44-1.39l5.69 5.85L27.28 6.3a1 1 0 1 1 1.44 1.4l-17.59 18a1 1 0 0 1-.72.3", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { TickIcon };
|
|
@@ -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 VanIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const VanIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const VanIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M31.05 3H9.8a1 1 0 0 0-1 1v.2H3.06a1 1 0 0 0-1 .86L.89 12.64a1 1 0 0 0-.89 1v10a1 1 0 0 0 1 1h3a5 5 0 0 0 9.9 0H18a5 5 0 0 0 9.89 0h3.21a1 1 0 0 0 .72-.3 1 1 0 0 0 .18-.72V4a1 1 0 0 0-.95-1M3.91 6.24H8.8v6.38H2.93ZM8.92 27A3 3 0 0 1 6 24.71a2.9 2.9 0 0 1-.12-.83 3.1 3.1 0 0 1 .25-1.22 3 3 0 0 1 5.53 0 3.3 3.3 0 0 1 .24 1.22 3.3 3.3 0 0 1-.11.83A3 3 0 0 1 8.92 27M23 27a3 3 0 0 1-2.89-2.24 2.9 2.9 0 0 1-.12-.83 3.1 3.1 0 0 1 .25-1.22 3 3 0 0 1 5.53 0 3.3 3.3 0 0 1 .23 1.17 3.3 3.3 0 0 1-.11.83A3 3 0 0 1 23 27m4.87-4.29a5 5 0 0 0-9.74 0H13.8a5 5 0 0 0-9.75 0H2v-8h7.8a1 1 0 0 0 1-1V5.05H30v17.61Z", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "van", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M31.05 3H9.8a1 1 0 0 0-1 1v.2H3.06a1 1 0 0 0-1 .86L.89 12.64a1 1 0 0 0-.89 1v10a1 1 0 0 0 1 1h3a5 5 0 0 0 9.9 0H18a5 5 0 0 0 9.89 0h3.21a1 1 0 0 0 .72-.3 1 1 0 0 0 .18-.72V4a1 1 0 0 0-.95-1M3.91 6.24H8.8v6.38H2.93ZM8.92 27A3 3 0 0 1 6 24.71a2.9 2.9 0 0 1-.12-.83 3.1 3.1 0 0 1 .25-1.22 3 3 0 0 1 5.53 0 3.3 3.3 0 0 1 .24 1.22 3.3 3.3 0 0 1-.11.83A3 3 0 0 1 8.92 27M23 27a3 3 0 0 1-2.89-2.24 2.9 2.9 0 0 1-.12-.83 3.1 3.1 0 0 1 .25-1.22 3 3 0 0 1 5.53 0 3.3 3.3 0 0 1 .23 1.17 3.3 3.3 0 0 1-.11.83A3 3 0 0 1 23 27m4.87-4.29a5 5 0 0 0-9.74 0H13.8a5 5 0 0 0-9.75 0H2v-8h7.8a1 1 0 0 0 1-1V5.05H30v17.61Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { VanIcon };
|
|
@@ -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 WarningIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const WarningIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const WarningIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M2.35 28.08 16.06 4.46l13.71 23.62Zm29.32-.7L17.56 3.07A1.73 1.73 0 0 0 16.06 2a1.94 1.94 0 0 0-1.5 1.1L.35 27.38C-.45 28.77.15 30 1.85 30h28.32a1.6 1.6 0 0 0 1.5-2.62", fill: "currentColor" }), jsx("path", { d: "M14.52 24.19A1.44 1.44 0 0 1 15 23.1a1.54 1.54 0 0 1 1.13-.46 1.63 1.63 0 0 1 1.12.44 1.39 1.39 0 0 1 .48 1.07 1.48 1.48 0 0 1-.47 1.1 1.62 1.62 0 0 1-1.74.34 1.6 1.6 0 0 1-.51-.32 1.3 1.3 0 0 1-.35-.48 1.3 1.3 0 0 1-.14-.6m2.8-3h-2.4v-9.71h2.4Z", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "warning", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M2.35 28.08 16.06 4.46l13.71 23.62Zm29.32-.7L17.56 3.07A1.73 1.73 0 0 0 16.06 2a1.94 1.94 0 0 0-1.5 1.1L.35 27.38C-.45 28.77.15 30 1.85 30h28.32a1.6 1.6 0 0 0 1.5-2.62", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M14.52 24.19A1.44 1.44 0 0 1 15 23.1a1.54 1.54 0 0 1 1.13-.46 1.63 1.63 0 0 1 1.12.44 1.39 1.39 0 0 1 .48 1.07 1.48 1.48 0 0 1-.47 1.1 1.62 1.62 0 0 1-1.74.34 1.6 1.6 0 0 1-.51-.32 1.3 1.3 0 0 1-.35-.48 1.3 1.3 0 0 1-.14-.6m2.8-3h-2.4v-9.71h2.4Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { WarningIcon };
|
|
@@ -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, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const WriteIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { useId } from 'react';
|
|
4
5
|
|
|
5
6
|
const WriteIcon = (_a) => {
|
|
6
|
-
var { alt, className } = _a, props = __rest(_a, ["alt", "className"]);
|
|
7
|
+
var { alt, className, fill } = _a, props = __rest(_a, ["alt", "className", "fill"]);
|
|
7
8
|
const id = useId();
|
|
8
|
-
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className:
|
|
9
|
-
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M19.67 10.13 17.9 11.9H7a1 1 0 0 1 0-2h12a1 1 0 0 1 .67.23M14.9 14.9l-2 2H7a1 1 0 0 1 0-2ZM20 15.9a1 1 0 0 1-1 1h-1.87l2-2a1 1 0 0 1 .82.59.85.85 0 0 1 .05.41M19 21.9H7a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2", fill: "currentColor" }), jsx("path", { d: "M24.08 10v20h-22V6h21.73l1.54-1.54a1.9 1.9 0 0 0-1-.44H2.07a2 2 0 0 0-2 2V30a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V8Z", fill: "currentColor" }), jsx("path", { d: "M30.62 3.41 28.5 1.29a1 1 0 0 0-1.42 0L22.38 6l-3.9 3.9-5 5-1.33 1.33a1 1 0 0 0-.27.48v.19l-.6 2.57a.8.8 0 0 0 0 .43 1 1 0 0 0 1.19.77l2.74-.67a.64.64 0 0 0 .29-.13.6.6 0 0 0 .19-.14l2.85-2.86 1.4-1.39L30.62 4.82a1 1 0 0 0 0-1.41M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z", fill: "currentColor" }), jsx("path", { d: "M31.33 2.7 29.21.58a2.06 2.06 0 0 0-2.83 0L11.44 15.52a2.1 2.1 0 0 0-.54 1l-.09.41-.54 2.34a2.18 2.18 0 0 0 .54 1.87 2 2 0 0 0 1.4.58 1.8 1.8 0 0 0 .46-.05l2.75-.67a2.1 2.1 0 0 0 1-.54L31.33 5.53a2 2 0 0 0 0-2.83M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "write", fill: fill !== null && fill !== void 0 ? fill : "none", role: alt ? "img" : undefined, viewBox: "0 0 32 32" }, props);
|
|
10
|
+
return (jsxs("svg", Object.assign({}, componentProps, { children: [alt ? jsx("title", { id: id, children: alt }) : null, jsx("path", { d: "M19.67 10.13 17.9 11.9H7a1 1 0 0 1 0-2h12a1 1 0 0 1 .67.23M14.9 14.9l-2 2H7a1 1 0 0 1 0-2ZM20 15.9a1 1 0 0 1-1 1h-1.87l2-2a1 1 0 0 1 .82.59.85.85 0 0 1 .05.41M19 21.9H7a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M24.08 10v20h-22V6h21.73l1.54-1.54a1.9 1.9 0 0 0-1-.44H2.07a2 2 0 0 0-2 2V30a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V8Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M30.62 3.41 28.5 1.29a1 1 0 0 0-1.42 0L22.38 6l-3.9 3.9-5 5-1.33 1.33a1 1 0 0 0-.27.48v.19l-.6 2.57a.8.8 0 0 0 0 .43 1 1 0 0 0 1.19.77l2.74-.67a.64.64 0 0 0 .29-.13.6.6 0 0 0 .19-.14l2.85-2.86 1.4-1.39L30.62 4.82a1 1 0 0 0 0-1.41M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M31.33 2.7 29.21.58a2.06 2.06 0 0 0-2.83 0L11.44 15.52a2.1 2.1 0 0 0-.54 1l-.09.41-.54 2.34a2.18 2.18 0 0 0 .54 1.87 2 2 0 0 0 1.4.58 1.8 1.8 0 0 0 .46-.05l2.75-.67a2.1 2.1 0 0 0 1-.54L31.33 5.53a2 2 0 0 0 0-2.83M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { WriteIcon };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes, JSX } from "react";
|
|
2
2
|
export interface ImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
3
|
-
/**
|
|
3
|
+
/** Specify text to describe the image. Refer to Experience Library guidelines on writing good alt text. */
|
|
4
4
|
alt: string;
|
|
5
|
-
/** **(Optional)**
|
|
5
|
+
/** **(Optional)** Specify the image crop mode. */
|
|
6
6
|
crop?: "square" | "wide" | "none";
|
|
7
|
-
/** **(Optional)**
|
|
7
|
+
/** **(Optional)** Specify the height of the image. */
|
|
8
8
|
height?: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Specify the Image source URL. */
|
|
10
10
|
src: string;
|
|
11
|
-
/** **(Optional)**
|
|
11
|
+
/** **(Optional)** Specify the width of the image. */
|
|
12
12
|
width?: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const Image: ({ alt, crop, height, src, width, ...props }: ImageProps) => JSX.Element;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import type { AnchorHTMLAttributes, ForwardRefExoticComponent, HTMLAttributes, JSX } from "react";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { StandardSizes } from "src/types";
|
|
3
4
|
import { Darks, OfferRed, Tints } from "../../types/colors";
|
|
4
5
|
export interface PillProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
5
|
-
/** **(Optional)**
|
|
6
|
+
/** **(Optional)** Specify a custom element to override default `a` or `span`. */
|
|
6
7
|
as?: React.FC<AnchorHTMLAttributes<HTMLElement>> | ForwardRefExoticComponent<any> | string;
|
|
7
|
-
/** **(Optional)**
|
|
8
|
+
/** **(Optional)** Specify the Pill background color. */
|
|
8
9
|
background?: Tints;
|
|
9
|
-
/** **(Optional)**
|
|
10
|
+
/** **(Optional)** Specify text to display inside the badge. */
|
|
10
11
|
badge?: string;
|
|
11
|
-
/** **(Optional)**
|
|
12
|
+
/** **(Optional)** Specify the badge background color. */
|
|
12
13
|
badgeBackground?: Darks | OfferRed;
|
|
13
|
-
/** **(Optional)**
|
|
14
|
+
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
14
15
|
children?: React.ReactNode;
|
|
15
|
-
/** **(Optional)**
|
|
16
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
16
17
|
className?: string;
|
|
17
|
-
/** **(Optional)**
|
|
18
|
+
/** **(Optional)** Specify the URL that the Pill component will link to when clicked. */
|
|
18
19
|
href?: string;
|
|
19
|
-
/** **(Optional)**
|
|
20
|
-
size?:
|
|
20
|
+
/** **(Optional)** Specify the Pill size. */
|
|
21
|
+
size?: StandardSizes;
|
|
21
22
|
}
|
|
22
23
|
export declare const Pill: ({ as, background, badge, badgeBackground, children, className, href, size, ...props }: PillProps) => JSX.Element;
|
|
23
24
|
export default Pill;
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { bgPropToClass } from '../../utils/index.js';
|
|
6
6
|
|
|
7
7
|
const Pill = (_a) => {
|
|
8
|
-
var { as, background = "tint-grey", badge, badgeBackground = "offer-red", children, className
|
|
8
|
+
var { as, background = "tint-grey", badge, badgeBackground = "offer-red", children, className, href, size = "md" } = _a, props = __rest(_a, ["as", "background", "badge", "badgeBackground", "children", "className", "href", "size"]);
|
|
9
9
|
let element = href ? "a" : "span";
|
|
10
10
|
if (as) {
|
|
11
11
|
element = as;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
const RootSVG = () => {
|
|
4
|
-
return (jsx("svg", { height: "0", width: "0", xmlns: "http://www.w3.org/2000/svg", children: jsx("defs", { children: jsx("clipPath", { clipPathUnits: "objectBoundingBox", id: "squircle", children: jsx("path", { d: "M0,0.5 C0,0.165,0.165,0,0.5,0 S1,0.165,1,0.5 S0.835,1,0.5,1 S0,0.835,0,0.5" }) }) }) }));
|
|
4
|
+
return (jsx("svg", { height: "0", width: "0", xmlns: "http://www.w3.org/2000/svg", children: jsx("defs", { children: jsx("clipPath", { clipPathUnits: "objectBoundingBox", id: "coop-squircle", children: jsx("path", { d: "M0,0.5 C0,0.165,0.165,0,0.5,0 S1,0.165,1,0.5 S0.835,1,0.5,1 S0,0.835,0,0.5" }) }) }) }));
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { RootSVG, RootSVG as default };
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from "react";
|
|
2
2
|
import { type JSX } from "react";
|
|
3
|
+
import { StandardSizes } from "src/types";
|
|
3
4
|
import { type ButtonProps } from "../Button";
|
|
4
5
|
export interface SearchBoxProps extends HTMLAttributes<HTMLInputElement> {
|
|
5
|
-
/** **(Optional)**
|
|
6
|
+
/** **(Optional)** Specify a server endpoint to submit the form. Will be ignored if onSubmit is also set. */
|
|
6
7
|
action?: string;
|
|
7
|
-
/** **(Optional)**
|
|
8
|
+
/** **(Optional)** Specify whether or not to enable autocomplete on the input field. Default: `off`. */
|
|
8
9
|
autoComplete?: "off" | "on";
|
|
9
|
-
/** **(Optional)**
|
|
10
|
+
/** **(Optional)** Specify props to forward to the Button element. Use `label` to set Button text. */
|
|
10
11
|
button?: Pick<ButtonProps, "className" | "loadingText"> & {
|
|
11
12
|
label?: React.ReactNode;
|
|
12
13
|
};
|
|
13
|
-
/** **(Optional)**
|
|
14
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
14
15
|
className?: string;
|
|
15
|
-
/**
|
|
16
|
+
/** Specify the label displayed above the search field. Hidden by default, but visible to screen readers. */
|
|
16
17
|
label: string;
|
|
17
|
-
/** **(Optional)**
|
|
18
|
+
/** **(Optional)** Specify whether the label should be visible to humans or screenreaders. */
|
|
18
19
|
labelVisible?: boolean;
|
|
19
|
-
/** **(Optional)**
|
|
20
|
+
/** **(Optional)** Specify the name of the input element, also used as the URL search parameter. Defaults to `query`. */
|
|
20
21
|
name?: string;
|
|
21
22
|
/** **(Optional)** Callback to run when the form is submitted. If this is an async function, it will be awaited and the SearchBox will be in a pending state until the promise is resolved. */
|
|
22
23
|
onSubmit?: React.FormEventHandler<HTMLElement> | undefined;
|
|
23
|
-
/** **(Optional)**
|
|
24
|
+
/** **(Optional)** Specify placeholder text for the search field. Do not in place of a form label. */
|
|
24
25
|
placeholder?: string;
|
|
25
|
-
/** **(Optional)**
|
|
26
|
-
size?:
|
|
27
|
-
/** **(Optional)**
|
|
26
|
+
/** **(Optional)** Specify the SearchBox size. */
|
|
27
|
+
size?: StandardSizes;
|
|
28
|
+
/** **(Optional)** Specify the SearchBox variant. */
|
|
28
29
|
variant?: "green" | "blue" | "white" | "grey" | "green-ghost" | "blue-ghost" | "white-ghost" | "grey-ghost";
|
|
29
30
|
}
|
|
30
31
|
export declare const SearchBox: ({ action, "aria-placeholder": ariaPlaceholder, autoCapitalize, autoComplete, button, className, label, labelVisible, name, onSubmit, placeholder, size, variant, ...props }: SearchBoxProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest, __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import React, { useState, useCallback, useId } from 'react';
|
|
4
5
|
import { Button } from '../Button/Button.js';
|
|
5
6
|
import { SearchIcon } from '../Icon/SearchIcon.js';
|
|
@@ -27,7 +28,7 @@ const SearchBox = (_a) => {
|
|
|
27
28
|
const id = useId();
|
|
28
29
|
const formProps = {
|
|
29
30
|
action: action !== null && action !== void 0 ? action : undefined,
|
|
30
|
-
className:
|
|
31
|
+
className: clsx("coop-search-box", className),
|
|
31
32
|
"data-size": size.length && size !== "md" ? size : undefined,
|
|
32
33
|
"data-variant": variant.length && variant !== "green" ? variant : undefined,
|
|
33
34
|
onSubmit: onSubmit ? handleSubmit : undefined,
|
|
@@ -2,17 +2,17 @@ import type { AnchorHTMLAttributes, ForwardRefExoticComponent, HTMLAttributes, J
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ImageProps } from "../Image";
|
|
4
4
|
export interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
/** **(Optional)**
|
|
5
|
+
/** **(Optional)** Specify a custom element to override default `a`. */
|
|
6
6
|
as?: React.FC<AnchorHTMLAttributes<HTMLElement>> | ForwardRefExoticComponent<any> | string;
|
|
7
|
-
/**
|
|
7
|
+
/** Main content inside the component. It can be any valid JSX or string. */
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
/** **(Optional)**
|
|
9
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
10
10
|
className?: string;
|
|
11
|
-
/** **(Optional)**
|
|
11
|
+
/** **(Optional)** Specify the level of the Signpost heading. */
|
|
12
12
|
headingLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
13
|
-
/**
|
|
13
|
+
/** Specify the URL that the Signpost component will link to when clicked. */
|
|
14
14
|
href: string;
|
|
15
|
-
/** **(Optional)**
|
|
15
|
+
/** **(Optional)** Specify properties of the Signpost Image. */
|
|
16
16
|
image?: ImageProps;
|
|
17
17
|
}
|
|
18
18
|
export declare const Signpost: ({ as, children, className, headingLevel, href, image, ...props }: SignpostProps) => JSX.Element;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import React from 'react';
|
|
5
|
+
import { ChevronRightIcon } from '../Icon/ChevronRightIcon.js';
|
|
4
6
|
import { Image } from '../Image/Image.js';
|
|
5
7
|
|
|
6
8
|
const Signpost = (_a) => {
|
|
7
|
-
var { as, children, className
|
|
9
|
+
var { as, children, className, headingLevel = "h3", href, image } = _a, props = __rest(_a, ["as", "children", "className", "headingLevel", "href", "image"]);
|
|
8
10
|
let element = "a";
|
|
9
11
|
if (as) {
|
|
10
12
|
element = as;
|
|
11
13
|
}
|
|
12
|
-
const componentProps = Object.assign({ className:
|
|
13
|
-
return (jsxs("div", Object.assign({}, componentProps, { children: [image && jsx(Image, Object.assign({ crop: "wide" }, image)), React.createElement(element, { href }, jsxs("div", { className: "coop-signpost--content", children: [React.createElement(headingLevel, { className: "coop-signpost--heading" }, children), jsx("span", { "aria-hidden": "true", className: "coop-signpost--icon", role: "presentation", children: jsx(
|
|
14
|
+
const componentProps = Object.assign({ className: clsx("coop-signpost", className) }, props);
|
|
15
|
+
return (jsxs("div", Object.assign({}, componentProps, { children: [image && jsx(Image, Object.assign({ crop: "wide" }, image)), React.createElement(element, { href }, jsxs("div", { className: "coop-signpost--content", children: [React.createElement(headingLevel, { className: "coop-signpost--heading" }, children), jsx("span", { "aria-hidden": "true", className: "coop-signpost--icon", role: "presentation", children: jsx(ChevronRightIcon, {}) })] }))] })));
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
export { Signpost, Signpost as default };
|
|
@@ -4,14 +4,12 @@ interface SkipNavLink {
|
|
|
4
4
|
label: string;
|
|
5
5
|
}
|
|
6
6
|
export interface SkipNavProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
/** **(Optional)**
|
|
7
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
8
8
|
className?: string;
|
|
9
|
-
/** **(Optional)**
|
|
9
|
+
/** **(Optional)** Specify whether the SkipNav is visible immediately or only when tabbing. Useful for testing purposes only. */
|
|
10
10
|
isVisible?: boolean;
|
|
11
|
-
/** **(Optional)**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Defaults to a single link anchored to `#main` */
|
|
11
|
+
/** **(Optional)** Specify links to show in the SkipNav.
|
|
12
|
+
* Each item needs a `href` and `label`. Defaults to a single link anchored to `#main`. */
|
|
15
13
|
links?: SkipNavLink[];
|
|
16
14
|
}
|
|
17
15
|
export declare const SkipNav: ({ className, isVisible, links, ...props }: SkipNavProps) => JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
|
|
4
5
|
const defaultLinks = [{ href: "#main", label: "Skip to main content" }];
|
|
5
6
|
const SkipNav = (_a) => {
|
|
6
|
-
var { className
|
|
7
|
-
const componentProps = Object.assign({ className:
|
|
7
|
+
var { className, isVisible = false, links = defaultLinks } = _a, props = __rest(_a, ["className", "isVisible", "links"]);
|
|
8
|
+
const componentProps = Object.assign({ className: clsx("coop-skip-nav", className) }, props);
|
|
8
9
|
const navLinks = links.length > 0 ? links : defaultLinks;
|
|
9
10
|
return (jsx("nav", Object.assign({}, componentProps, { children: jsx("ul", { children: navLinks.map((link) => {
|
|
10
11
|
const linkProps = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { HTMLAttributes, JSX } from "react";
|
|
2
2
|
import { BrandBlue, Green, OfferRed } from "../../types/colors";
|
|
3
3
|
export interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/** **(Optional)**
|
|
4
|
+
/** **(Optional)** Specify the Squircle background color. */
|
|
5
5
|
background?: OfferRed | BrandBlue | Green;
|
|
6
|
-
/** **(Optional)**
|
|
6
|
+
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
/** **(Optional)**
|
|
8
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
9
9
|
className?: string;
|
|
10
|
-
/** **(Optional)**
|
|
10
|
+
/** **(Optional)** Specify the Squircle size. */
|
|
11
11
|
size?: "sm" | "md" | "lg";
|
|
12
12
|
}
|
|
13
13
|
export declare const Squircle: ({ background, children, className, size, ...props }: SquircleProps) => JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import { bgPropToClass } from '../../utils/index.js';
|
|
4
5
|
|
|
5
6
|
const Squircle = (_a) => {
|
|
6
7
|
var { background = "offer-red", children, className, size = "lg" } = _a, props = __rest(_a, ["background", "children", "className", "size"]);
|
|
7
|
-
const componentProps = Object.assign({ className:
|
|
8
|
+
const componentProps = Object.assign({ className: clsx("coop-squircle", bgPropToClass(background, className), className), "data-size": size.length && size !== "lg" ? size : undefined }, props);
|
|
8
9
|
return (jsx("figure", Object.assign({}, componentProps, { children: jsx("figcaption", { children: children }) })));
|
|
9
10
|
};
|
|
10
11
|
|
|
@@ -2,15 +2,15 @@ import type { AnchorHTMLAttributes, ForwardRefExoticComponent, HTMLAttributes, J
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import type { Black, Darks, Greys, Lights, Tints, White } from "../../types/colors";
|
|
4
4
|
export interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
5
|
-
/** **(Optional)**
|
|
5
|
+
/** **(Optional)** Specify a custom element to override default `a` or `span`. */
|
|
6
6
|
as?: React.FC<AnchorHTMLAttributes<HTMLElement>> | ForwardRefExoticComponent<any> | string;
|
|
7
|
-
/** **(Optional)**
|
|
7
|
+
/** **(Optional)** Specify the Tag background color. */
|
|
8
8
|
background?: Lights | Darks | Tints | Greys | White | Black;
|
|
9
|
-
/** **(Optional)**
|
|
9
|
+
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
10
10
|
children?: React.ReactNode;
|
|
11
|
-
/** **(Optional)**
|
|
11
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
12
12
|
className?: string;
|
|
13
|
-
/** **(Optional)**
|
|
13
|
+
/** **(Optional)** Specify the URL that the Tag component will link to when clicked. */
|
|
14
14
|
href?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const Tag: ({ as, background, children, className, href, ...props }: TagProps) => JSX.Element;
|