@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
|
@@ -2,11 +2,11 @@ import type { HTMLAttributes, JSX, ReactNode } from "react";
|
|
|
2
2
|
export interface AlertBannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
/** **(Optional)** Main content inside the banner. It can be any valid JSX or string. */
|
|
4
4
|
children?: string | ReactNode;
|
|
5
|
-
/** **(Optional)**
|
|
5
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
6
6
|
className?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Specify the main title of the banner, rendered as a `h2`. */
|
|
8
8
|
heading: string;
|
|
9
|
-
/** **(Optional)** Specify
|
|
9
|
+
/** **(Optional)** Specify the AlertBanner variant. */
|
|
10
10
|
variant?: "black" | "default";
|
|
11
11
|
}
|
|
12
12
|
export declare const AlertBanner: ({ children, className, heading, variant, ...props }: AlertBannerProps) => JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
|
|
4
5
|
const AlertBanner = (_a) => {
|
|
5
|
-
var { children, className
|
|
6
|
-
const componentProps = Object.assign({ className:
|
|
6
|
+
var { children, className, heading, variant = "default" } = _a, props = __rest(_a, ["children", "className", "heading", "variant"]);
|
|
7
|
+
const componentProps = Object.assign({ className: clsx("coop-alert-banner", className), "data-variant": variant }, props);
|
|
7
8
|
return (jsx("aside", Object.assign({}, componentProps, { children: jsxs("div", { className: "coop-alert-banner--inner", children: [jsx("h2", { id: "coop-alert-banner--headline", children: heading }), children] }) })));
|
|
8
9
|
};
|
|
9
10
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { HTMLAttributes, JSX } from "react";
|
|
2
2
|
import { ImageProps } from "../Image";
|
|
3
3
|
export interface AuthorProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/** **(Optional)** Specify the
|
|
4
|
+
/** **(Optional)** Specify the Author name. */
|
|
5
5
|
author?: string;
|
|
6
|
-
/** **(Optional)**
|
|
6
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
7
7
|
className?: string;
|
|
8
|
-
/** **(Optional)** Specify the date. Refer to Experience Library guidance on date formats. We advise using the following format (dd mmmm yyyy) eg: 1 January 2000.
|
|
8
|
+
/** **(Optional)** Specify the date. Refer to Experience Library guidance on date formats. We advise using the following format (dd mmmm yyyy) eg: 1 January 2000. */
|
|
9
9
|
date?: string;
|
|
10
10
|
/** **(Optional)** Specify the text that will prefix the date, e.g. "Published". */
|
|
11
11
|
datePrefix?: string;
|
|
12
|
-
/** **(Optional)** Specify
|
|
12
|
+
/** **(Optional)** Specify properties of the Author Image. */
|
|
13
13
|
image?: ImageProps;
|
|
14
14
|
}
|
|
15
15
|
export declare const Author: ({ author, className, date, datePrefix, image, ...props }: AuthorProps) => JSX.Element;
|
|
@@ -1,14 +1,15 @@
|
|
|
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 { Image } from '../Image/Image.js';
|
|
4
5
|
|
|
5
6
|
const Author = (_a) => {
|
|
6
|
-
var { author = "Co-op team", className
|
|
7
|
+
var { author = "Co-op team", className, date, datePrefix = "", image = {
|
|
7
8
|
alt: "",
|
|
8
9
|
src: "https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/coop-logo-inverted.svg",
|
|
9
10
|
} } = _a, props = __rest(_a, ["author", "className", "date", "datePrefix", "image"]);
|
|
10
11
|
const imageProps = Object.assign({ width: "56px" }, image);
|
|
11
|
-
const componentProps = Object.assign({ className:
|
|
12
|
+
const componentProps = Object.assign({ className: clsx("coop-author", className) }, props);
|
|
12
13
|
return (jsxs("div", Object.assign({}, componentProps, { children: [image && jsx(Image, Object.assign({}, imageProps)), jsxs("div", { className: "coop-author--content", children: [jsxs("span", { children: [datePrefix ? datePrefix + " " : "", date] }), jsxs("span", { children: ["by ", author] })] })] })));
|
|
13
14
|
};
|
|
14
15
|
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ForwardRefExoticComponent, JSX } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
/** **(Optional)**
|
|
4
|
+
/** **(Optional)** Specify a custom element to override default `a` or `button`. */
|
|
5
5
|
as?: React.FC<AnchorHTMLAttributes<HTMLElement>> | ForwardRefExoticComponent<any> | string;
|
|
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 URL that the Button component will link to when clicked. */
|
|
11
11
|
href?: string;
|
|
12
|
-
/** **(Optional)**
|
|
12
|
+
/** **(Optional)** Specify whether the Button should be disabled. This will not actually disable the button, just make it look disabled. Refer to Experience Library guidance on disabled buttons and accessibility. */
|
|
13
13
|
isDisabled?: boolean;
|
|
14
|
-
/** **(Optional)**
|
|
14
|
+
/** **(Optional)** Specify whether the Button should be full width. Refer to Experience Library guidance on full width buttons. */
|
|
15
15
|
isFullWidth?: boolean;
|
|
16
|
-
/** **(Optional)**
|
|
16
|
+
/** **(Optional)** Force the Button into a loading state. */
|
|
17
17
|
isLoading?: boolean;
|
|
18
|
-
/** **(Optional)**
|
|
18
|
+
/** **(Optional)** Specify text to show when the Button is in a loading state. */
|
|
19
19
|
loadingText?: string;
|
|
20
20
|
/** **(Optional)** Callback to run when the button is pressed. If this is an async function, it will be awaited and the button will be in a pending state until the promise is resolved. */
|
|
21
21
|
onClick?: (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
22
|
-
/** **(Optional)**
|
|
23
|
-
size?: "sm" | "md" | "lg"
|
|
24
|
-
/** **(Optional)**
|
|
22
|
+
/** **(Optional)** Specify the Button size. */
|
|
23
|
+
size?: "sm" | "md" | "lg";
|
|
24
|
+
/** **(Optional)** Specify the Button variant. */
|
|
25
25
|
variant?: "green" | "blue" | "white" | "grey" | "green-ghost" | "blue-ghost" | "white-ghost" | "grey-ghost" | "text";
|
|
26
26
|
}
|
|
27
27
|
export declare const Button: ({ as, children, className, href, isDisabled, isFullWidth, isLoading, loadingText, onClick, size, variant, ...props }: ButtonProps) => JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { __rest, __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
3
4
|
import React, { useState, useCallback } from 'react';
|
|
4
5
|
import { LoadingIcon } from '../Icon/LoadingIcon.js';
|
|
5
6
|
|
|
6
7
|
const Button = (_a) => {
|
|
7
|
-
var { as, children, className
|
|
8
|
+
var { as, children, className, href, isDisabled = false, isFullWidth = false, isLoading = false, loadingText = "Loading", onClick, size = "md", variant = "green" } = _a, props = __rest(_a, ["as", "children", "className", "href", "isDisabled", "isFullWidth", "isLoading", "loadingText", "onClick", "size", "variant"]);
|
|
8
9
|
let element = href ? "a" : "button";
|
|
9
10
|
if (as) {
|
|
10
11
|
element = as;
|
|
@@ -21,7 +22,7 @@ const Button = (_a) => {
|
|
|
21
22
|
setIsPending(false);
|
|
22
23
|
}
|
|
23
24
|
}), [onClick, isPending]);
|
|
24
|
-
const componentProps = Object.assign({ "aria-disabled": isDisabled ? true : undefined, "aria-live": "assertive", className:
|
|
25
|
+
const componentProps = Object.assign({ "aria-disabled": isDisabled ? true : undefined, "aria-live": "assertive", className: clsx(variant == "text" ? "coop-link" : "coop-button", className), "data-loading": isLoading || isPending ? true : undefined, "data-size": size.length && size !== "md" ? size : undefined, "data-variant": variant !== "text" ? variant : undefined, "data-width": isFullWidth ? "full" : undefined, href, onClick: handleClick }, props);
|
|
25
26
|
const finalChildren = isPending || isLoading ? (jsxs(Fragment, { children: [loadingText, jsx(LoadingIcon, {})] })) : (children);
|
|
26
27
|
return React.createElement(element, Object.assign({}, componentProps), finalChildren);
|
|
27
28
|
};
|
|
@@ -3,35 +3,35 @@ import React from "react";
|
|
|
3
3
|
import { Lights, Tints } from "../../types/colors";
|
|
4
4
|
import { ImageProps } from "../Image";
|
|
5
5
|
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
/** **(Optional)**
|
|
6
|
+
/** **(Optional)** Specify a custom element to override default `a`. */
|
|
7
7
|
as?: React.FC<AnchorHTMLAttributes<HTMLElement>> | ForwardRefExoticComponent<any> | string;
|
|
8
|
-
/** **(Optional)**
|
|
8
|
+
/** **(Optional)** Specify the Card background color. */
|
|
9
9
|
background?: Tints;
|
|
10
|
-
/** **(Optional)**
|
|
10
|
+
/** **(Optional)** Specify text to display inside the badge. */
|
|
11
11
|
badge?: React.ReactNode;
|
|
12
12
|
/** **(Optional)** Specify badge position relative to top right corner. */
|
|
13
13
|
badgePosition?: "inset" | "popout";
|
|
14
|
-
/** **(Optional)**
|
|
14
|
+
/** **(Optional)** Specify whether chevron is visible. */
|
|
15
15
|
chevron?: boolean;
|
|
16
|
-
/** **(Optional)**
|
|
16
|
+
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
17
17
|
children?: React.ReactNode;
|
|
18
|
-
/** **(Optional)**
|
|
18
|
+
/** **(Optional)** Specify additional CSS classes to be applied to the component. */
|
|
19
19
|
className?: string;
|
|
20
|
-
/**
|
|
20
|
+
/** Specify the Card heading. */
|
|
21
21
|
heading: string;
|
|
22
|
-
/** **(Optional)**
|
|
22
|
+
/** **(Optional)** Specify the level of the Card heading. */
|
|
23
23
|
headingLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
24
|
-
/** **(Optional)**
|
|
24
|
+
/** **(Optional)** Specify the URL that the Card component will link to when clicked. */
|
|
25
25
|
href?: string;
|
|
26
|
-
/**
|
|
26
|
+
/** Specify properties of the Card Image. */
|
|
27
27
|
image: ImageProps;
|
|
28
|
-
/** **(Optional)**
|
|
28
|
+
/** **(Optional)** Specify the position of the image in the Card. */
|
|
29
29
|
imagePosition?: "left" | "right";
|
|
30
|
-
/** **(Optional)**
|
|
30
|
+
/** **(Optional)** Specify the Card label. */
|
|
31
31
|
label?: string;
|
|
32
|
-
/** **(Optional)**
|
|
32
|
+
/** **(Optional)** Specify the background color of the Card label. */
|
|
33
33
|
labelBackground?: Lights;
|
|
34
|
-
/** **(Optional)**
|
|
34
|
+
/** **(Optional)** Specify the layout of the Card. */
|
|
35
35
|
layout?: "vertical" | "horizontal";
|
|
36
36
|
}
|
|
37
37
|
export declare const Card: ({ as, background, badge, badgePosition, chevron, children, className, heading, headingLevel, href, image, imagePosition, label, labelBackground, layout, ...props }: CardProps) => JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { bgPropToClass } from '../../utils/index.js';
|
|
6
|
+
import { ChevronRightIcon } from '../Icon/ChevronRightIcon.js';
|
|
6
7
|
import { Image } from '../Image/Image.js';
|
|
7
8
|
|
|
8
9
|
function getCardLinkElement(as, href) {
|
|
@@ -19,11 +20,11 @@ function getCardLinkElement(as, href) {
|
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
const Card = (_a) => {
|
|
22
|
-
var { as, background, badge, badgePosition = "inset", chevron = false, children, className
|
|
23
|
+
var { as, background, badge, badgePosition = "inset", chevron = false, children, className, heading, headingLevel = "h3", href, image, imagePosition = "left", label = "", labelBackground, layout = "vertical" } = _a, props = __rest(_a, ["as", "background", "badge", "badgePosition", "chevron", "children", "className", "heading", "headingLevel", "href", "image", "imagePosition", "label", "labelBackground", "layout"]);
|
|
23
24
|
const linkElement = getCardLinkElement(as, href);
|
|
24
25
|
const imageProps = Object.assign({ crop: "wide" }, image);
|
|
25
26
|
const componentProps = Object.assign({ className: clsx("coop-card", background && bgPropToClass(background, className), className), "data-badge-pos": badgePosition, "data-image-pos": imagePosition, "data-layout": layout !== "vertical" ? layout : undefined }, props);
|
|
26
|
-
return (jsxs("article", Object.assign({}, componentProps, { children: [image && jsx(Image, Object.assign({}, imageProps)), badge && jsx("div", { className: "coop-card--badge", children: badge }), jsxs("div", { className: "coop-card--inner", children: [jsxs("div", { className: "coop-card--content", children: [label && (jsx("span", { className: clsx("coop-card--label", labelBackground && bgPropToClass(labelBackground, className)), children: label })), React.createElement(linkElement.element, linkElement.props, React.createElement(headingLevel, { className: "coop-card--heading" }, heading)), children] }), chevron && (jsx("span", { "aria-hidden": "true", className: "coop-card--icon", role: "presentation", children: jsx(
|
|
27
|
+
return (jsxs("article", Object.assign({}, componentProps, { children: [image && jsx(Image, Object.assign({}, imageProps)), badge && jsx("div", { className: "coop-card--badge", children: badge }), jsxs("div", { className: "coop-card--inner", children: [jsxs("div", { className: "coop-card--content", children: [label && (jsx("span", { className: clsx("coop-card--label", labelBackground && bgPropToClass(labelBackground, className)), children: label })), React.createElement(linkElement.element, linkElement.props, React.createElement(headingLevel, { className: "coop-card--heading" }, heading)), children] }), chevron && (jsx("span", { "aria-hidden": "true", className: "coop-card--icon", role: "presentation", children: jsx(ChevronRightIcon, {}) }))] })] })));
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
export { Card, Card as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { DetailsHTMLAttributes, JSX } from "react";
|
|
2
2
|
import { None, Tints, White } from "../../types/colors";
|
|
3
3
|
export interface ExpandableProps extends DetailsHTMLAttributes<HTMLDetailsElement> {
|
|
4
|
-
/** **(Optional)**
|
|
4
|
+
/** **(Optional)** Specify the Expandable background color. */
|
|
5
5
|
background?: Tints | White | None;
|
|
6
|
-
/**
|
|
6
|
+
/** Main content inside the component, only visible when it is open. 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
|
-
/**
|
|
10
|
+
/** Specify the summary text to show when the Expandable is not open. */
|
|
11
11
|
summary: React.ReactNode;
|
|
12
12
|
}
|
|
13
13
|
export declare const Expandable: ({ background, children, className, summary, ...props }: ExpandableProps) => JSX.Element;
|
|
@@ -2,11 +2,13 @@ import { __rest } from '../../node_modules/tslib/tslib.es6.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { clsx } from '../../node_modules/clsx/dist/clsx.js';
|
|
4
4
|
import { bgPropToClass } from '../../utils/index.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
import { ChevronDownIcon } from '../Icon/ChevronDownIcon.js';
|
|
5
7
|
|
|
6
8
|
const Expandable = (_a) => {
|
|
7
|
-
var { background = "tint-grey", children, className
|
|
9
|
+
var { background = "tint-grey", children, className, summary } = _a, props = __rest(_a, ["background", "children", "className", "summary"]);
|
|
8
10
|
const componentProps = Object.assign({ className: clsx("coop-expandable", bgPropToClass(background, className), className) }, props);
|
|
9
|
-
return (jsxs("details", Object.assign({}, componentProps, { style: { "--background-color": `var(--color-${background})` }, children: [jsxs("summary", { children: [summary, jsx(
|
|
11
|
+
return (jsxs("details", Object.assign({}, componentProps, { style: { "--background-color": `var(--color-${background})` }, children: [jsxs("summary", { children: [summary, jsx(ChevronDownIcon, { className: "coop-expandable--icon", stroke: "currentColor", strokeWidth: 2, width: "12" })] }), jsx("div", { className: "coop-expandable--content", children: children })] })));
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
export { Expandable, Expandable as default };
|
|
@@ -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 AddIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const AddIcon: ({ 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 AddIcon = (_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: "M24.7 16.72a1 1 0 0 1-.7.28H8a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1 1 1 0 0 1-.3.72", fill: "currentColor" }), jsx("path", { d: "M16.72 24.7a1 1 0 0 1-.72.3 1 1 0 0 1-1-1V8a1 1 0 0 1 2 0v16a1 1 0 0 1-.28.7", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "add", 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: "M24.7 16.72a1 1 0 0 1-.7.28H8a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1 1 1 0 0 1-.3.72", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M16.72 24.7a1 1 0 0 1-.72.3 1 1 0 0 1-1-1V8a1 1 0 0 1 2 0v16a1 1 0 0 1-.28.7", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { AddIcon };
|
|
@@ -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 ArrowDownIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ArrowDownIcon: ({ 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 ArrowDownIcon = (_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: "M15 28.66V3a1 1 0 0 1 2 0v25.66a1 1 0 0 1-2 0", fill: "currentColor" }), jsx("path", { d: "M3 17a1 1 0 0 1 .29-.71 1 1 0 0 1 1.42 0L16 27.58l11.29-11.29a1 1 0 0 1 1.42 0 1 1 0 0 1 0 1.41l-12 12a1 1 0 0 1-1.41 0l-12-12A1 1 0 0 1 3 17", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "arrow-down", 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: "M15 28.66V3a1 1 0 0 1 2 0v25.66a1 1 0 0 1-2 0", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M3 17a1 1 0 0 1 .29-.71 1 1 0 0 1 1.42 0L16 27.58l11.29-11.29a1 1 0 0 1 1.42 0 1 1 0 0 1 0 1.41l-12 12a1 1 0 0 1-1.41 0l-12-12A1 1 0 0 1 3 17", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ArrowDownIcon };
|
|
@@ -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 ArrowLeftIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ArrowLeftIcon: ({ 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 ArrowLeftIcon = (_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: "M3.34 17H29a1 1 0 0 0 0-2H3.34a1 1 0 0 0 0 2", fill: "currentColor" }), jsx("path", { d: "M15 29a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.12 16.71a1 1 0 0 1 0-1.42L15.71 4.71a1 1 0 0 0 0-1.42 1 1 0 0 0-1.41 0l-12 12a1 1 0 0 0 0 1.42l12 12a1 1 0 0 0 .7.29", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "arrow-left", 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: "M3.34 17H29a1 1 0 0 0 0-2H3.34a1 1 0 0 0 0 2", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M15 29a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.12 16.71a1 1 0 0 1 0-1.42L15.71 4.71a1 1 0 0 0 0-1.42 1 1 0 0 0-1.41 0l-12 12a1 1 0 0 0 0 1.42l12 12a1 1 0 0 0 .7.29", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ArrowLeftIcon };
|
|
@@ -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 ArrowRightIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ArrowRightIcon: ({ 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 ArrowRightIcon = (_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.7 15H3a1 1 0 0 0 0 2h25.7a1 1 0 0 0 0-2", fill: "currentColor" }), jsx("path", { d: "M17 3a1 1 0 0 0-.7.3 1 1 0 0 0 0 1.4l10.6 10.6a1 1 0 0 1 0 1.4L16.3 27.3a1 1 0 0 0 0 1.4 1 1 0 0 0 1.4 0l12-12a1 1 0 0 0 0-1.4l-12-12A1 1 0 0 0 17 3", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "arrow-right", 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.7 15H3a1 1 0 0 0 0 2h25.7a1 1 0 0 0 0-2", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M17 3a1 1 0 0 0-.7.3 1 1 0 0 0 0 1.4l10.6 10.6a1 1 0 0 1 0 1.4L16.3 27.3a1 1 0 0 0 0 1.4 1 1 0 0 0 1.4 0l12-12a1 1 0 0 0 0-1.4l-12-12A1 1 0 0 0 17 3", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ArrowRightIcon };
|
|
@@ -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 ArrowUpIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ArrowUpIcon: ({ 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 ArrowUpIcon = (_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: "M17 3.34V29a1 1 0 0 1-2 0V3.34a1 1 0 0 1 2 0", fill: "currentColor" }), jsx("path", { d: "M29 15a1 1 0 0 1-.29.71 1 1 0 0 1-1.42 0L16 4.42 4.71 15.71a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.41l12-12a1 1 0 0 1 1.41 0l12 12a1 1 0 0 1 .3.7", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "arrow-up", 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: "M17 3.34V29a1 1 0 0 1-2 0V3.34a1 1 0 0 1 2 0", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M29 15a1 1 0 0 1-.29.71 1 1 0 0 1-1.42 0L16 4.42 4.71 15.71a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.41l12-12a1 1 0 0 1 1.41 0l12 12a1 1 0 0 1 .3.7", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ArrowUpIcon };
|
|
@@ -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 AvatarAltIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const AvatarAltIcon: ({ 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 AvatarAltIcon = (_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 32a16 16 0 1 1 16-16 16 16 0 0 1-16 16m0-30a14 14 0 1 0 14 14A14 14 0 0 0 16 2", fill: "currentColor" }), jsx("path", { d: "M16 8a5 5 0 1 1-5 5 5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7 7 7 0 0 0-7-7", fill: "currentColor" }), jsx("path", { d: "M5.64 27.85a.7.7 0 0 1-.19 0 1 1 0 0 1-.79-1.17A10.7 10.7 0 0 1 15.16 18h1.68a10.7 10.7 0 0 1 10.5 8.67 1 1 0 0 1-.79 1.17 1 1 0 0 1-1.17-.84 8.72 8.72 0 0 0-8.54-7h-1.68a8.72 8.72 0 0 0-8.54 7 1 1 0 0 1-.98.85", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "avatar-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: "M16 32a16 16 0 1 1 16-16 16 16 0 0 1-16 16m0-30a14 14 0 1 0 14 14A14 14 0 0 0 16 2", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M16 8a5 5 0 1 1-5 5 5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7 7 7 0 0 0-7-7", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M5.64 27.85a.7.7 0 0 1-.19 0 1 1 0 0 1-.79-1.17A10.7 10.7 0 0 1 15.16 18h1.68a10.7 10.7 0 0 1 10.5 8.67 1 1 0 0 1-.79 1.17 1 1 0 0 1-1.17-.84 8.72 8.72 0 0 0-8.54-7h-1.68a8.72 8.72 0 0 0-8.54 7 1 1 0 0 1-.98.85", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { AvatarAltIcon };
|
|
@@ -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 AvatarIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const AvatarIcon: ({ 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 AvatarIcon = (_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 31a18.24 18.24 0 0 1-12.64-5.1A1.19 1.19 0 0 1 3 24.86a12.31 12.31 0 0 1 12-10h2a12.31 12.31 0 0 1 12 10 1.19 1.19 0 0 1-.34 1.06A18.24 18.24 0 0 1 16 31M5.42 24.68a15.9 15.9 0 0 0 21.16 0A10 10 0 0 0 17 17.17h-2a10 10 0 0 0-9.58 7.51", fill: "currentColor" }), jsx("path", { d: "M15.94 3.33a5.77 5.77 0 1 1-5.72 5.77 5.75 5.75 0 0 1 5.72-5.77m0-2.31a8.08 8.08 0 1 0 8 8.08 8 8 0 0 0-8-8.08", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "avatar", 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 31a18.24 18.24 0 0 1-12.64-5.1A1.19 1.19 0 0 1 3 24.86a12.31 12.31 0 0 1 12-10h2a12.31 12.31 0 0 1 12 10 1.19 1.19 0 0 1-.34 1.06A18.24 18.24 0 0 1 16 31M5.42 24.68a15.9 15.9 0 0 0 21.16 0A10 10 0 0 0 17 17.17h-2a10 10 0 0 0-9.58 7.51", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M15.94 3.33a5.77 5.77 0 1 1-5.72 5.77 5.75 5.75 0 0 1 5.72-5.77m0-2.31a8.08 8.08 0 1 0 8 8.08 8 8 0 0 0-8-8.08", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { AvatarIcon };
|
|
@@ -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 BasketIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const BasketIcon: ({ 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 BasketIcon = (_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.07 26a1 1 0 0 0 1-1v-4.08a1 1 0 1 0-2 0V25a1 1 0 0 0 1 1M21.5 26h.17a1 1 0 0 0 1-.85l.68-4.07a1 1 0 0 0-.82-1.18 1 1 0 0 0-1.16.84l-.67 4.07a1 1 0 0 0 .8 1.19M10.43 26h.17a1 1 0 0 0 .82-1.18l-.68-4.07a1 1 0 0 0-1.15-.84 1 1 0 0 0-.82 1.18l.67 4.07a1 1 0 0 0 .99.84", fill: "currentColor" }), jsx("path", { d: "M31 10.7h-3.11l-8.25-8.4a1 1 0 0 0-1.41 0 1 1 0 0 0 0 1.44l6.83 7H6.85l6.8-6.93a1 1 0 0 0 0-1.44 1 1 0 0 0-1.42 0l-8.14 8.25a1 1 0 0 0 0 .08H1a1 1 0 0 0-1 1v5.1a1 1 0 0 0 1 1h1.23l1.88 11.36a1 1 0 0 0 1 .84H27a1 1 0 0 0 1-.84l1.88-11.34H31a1 1 0 0 0 1-1v-5.1a1 1 0 0 0-1-1.02M26.15 28H5.94L4.28 18h23.53ZM30 15.79H2v-3.06h28Z", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "basket", 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.07 26a1 1 0 0 0 1-1v-4.08a1 1 0 1 0-2 0V25a1 1 0 0 0 1 1M21.5 26h.17a1 1 0 0 0 1-.85l.68-4.07a1 1 0 0 0-.82-1.18 1 1 0 0 0-1.16.84l-.67 4.07a1 1 0 0 0 .8 1.19M10.43 26h.17a1 1 0 0 0 .82-1.18l-.68-4.07a1 1 0 0 0-1.15-.84 1 1 0 0 0-.82 1.18l.67 4.07a1 1 0 0 0 .99.84", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M31 10.7h-3.11l-8.25-8.4a1 1 0 0 0-1.41 0 1 1 0 0 0 0 1.44l6.83 7H6.85l6.8-6.93a1 1 0 0 0 0-1.44 1 1 0 0 0-1.42 0l-8.14 8.25a1 1 0 0 0 0 .08H1a1 1 0 0 0-1 1v5.1a1 1 0 0 0 1 1h1.23l1.88 11.36a1 1 0 0 0 1 .84H27a1 1 0 0 0 1-.84l1.88-11.34H31a1 1 0 0 0 1-1v-5.1a1 1 0 0 0-1-1.02M26.15 28H5.94L4.28 18h23.53ZM30 15.79H2v-3.06h28Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { BasketIcon };
|
|
@@ -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 CalendarIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const CalendarIcon: ({ 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 CalendarIcon = (_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 2h-4V1a1 1 0 0 0-2 0v1H7V1a1 1 0 0 0-2 0v1H1a1 1 0 0 0-1 1v28a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m-1 28H2V10h28Zm0-22H2V4h3v1a1 1 0 0 0 2 0V4h18v1a1 1 0 0 0 2 0V4h3Z", fill: "currentColor" }), jsx("path", { d: "M6 23v2a1 1 0 0 0 2 0v-1h7v1a1 1 0 0 0 2 0v-1h7v1a1 1 0 0 0 2 0V15a1 1 0 0 0-2 0v1h-7v-1a1 1 0 0 0-2 0v1H8v-1a1 1 0 0 0-2 0v8m18-1h-7v-4h7Zm-9-4v4H8v-4Z", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "calendar", 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 2h-4V1a1 1 0 0 0-2 0v1H7V1a1 1 0 0 0-2 0v1H1a1 1 0 0 0-1 1v28a1 1 0 0 0 1 1h30a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1m-1 28H2V10h28Zm0-22H2V4h3v1a1 1 0 0 0 2 0V4h18v1a1 1 0 0 0 2 0V4h3Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M6 23v2a1 1 0 0 0 2 0v-1h7v1a1 1 0 0 0 2 0v-1h7v1a1 1 0 0 0 2 0V15a1 1 0 0 0-2 0v1h-7v-1a1 1 0 0 0-2 0v1H8v-1a1 1 0 0 0-2 0v8m18-1h-7v-4h7Zm-9-4v4H8v-4Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { CalendarIcon };
|
|
@@ -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 ChevronDownIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ChevronDownIcon: ({ 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 ChevronDownIcon = (_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 9a1 1 0 0 0-.29-.71 1 1 0 0 0-1.42 0L16 21.59 2.71 8.3a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.41l14 14a1 1 0 0 0 1.41 0l14-14A1 1 0 0 0 31 9", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "chevron-down", 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 9a1 1 0 0 0-.29-.71 1 1 0 0 0-1.42 0L16 21.59 2.71 8.3a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.41l14 14a1 1 0 0 0 1.41 0l14-14A1 1 0 0 0 31 9", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ChevronDownIcon };
|
|
@@ -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 ChevronLeftIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ChevronLeftIcon: ({ 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 ChevronLeftIcon = (_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: "M22.5 30a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L10.91 16 23.2 3.71a1 1 0 0 0 0-1.41 1 1 0 0 0-1.41 0l-13 13a1 1 0 0 0 0 1.41l13 13a1 1 0 0 0 .71.29", fill: "currentColor" })] })));
|
|
9
|
+
const componentProps = Object.assign({ "aria-labelledby": alt ? id : undefined, className: clsx("coop-icon", className), "data-icon": "chevron-left", 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: "M22.5 30a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L10.91 16 23.2 3.71a1 1 0 0 0 0-1.41 1 1 0 0 0-1.41 0l-13 13a1 1 0 0 0 0 1.41l13 13a1 1 0 0 0 .71.29", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] })));
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ChevronLeftIcon };
|
|
@@ -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 ChevronRightIcon: ({ alt, className, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ChevronRightIcon: ({ alt, className, fill, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|