@coopdigital/react 1.4.1 → 1.5.1
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 +12 -2
- package/dist/components/AlertBanner/AlertBanner.js +3 -2
- package/dist/components/Author/Author.d.ts +7 -1
- package/dist/components/Author/Author.js +1 -0
- package/dist/components/Button/Button.d.ts +7 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Card/Card.d.ts +41 -7
- package/dist/components/Card/Card.js +7 -6
- package/dist/components/Checkbox/Checkbox.d.ts +6 -4
- package/dist/components/Checkbox/Checkbox.js +8 -6
- package/dist/components/DatePicker/DatePicker.d.ts +8 -3
- package/dist/components/DatePicker/DatePicker.js +11 -12
- package/dist/components/Expandable/Expandable.d.ts +21 -5
- package/dist/components/Expandable/Expandable.js +4 -3
- package/dist/components/Field/Field.context.d.ts +14 -0
- package/dist/components/Field/Field.context.js +13 -0
- package/dist/components/Field/Field.d.ts +30 -8
- package/dist/components/Field/Field.js +32 -34
- package/dist/components/Field/index.js +1 -0
- package/dist/components/FieldMarkers/Label.d.ts +1 -1
- package/dist/components/FieldMarkers/Label.js +4 -0
- package/dist/components/FieldMarkers/Legend.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +36 -8
- package/dist/components/Fieldset/Fieldset.js +6 -5
- package/dist/components/Flourish/Flourish.d.ts +7 -1
- package/dist/components/Flourish/Flourish.js +1 -0
- package/dist/components/Form/Form.d.ts +7 -1
- package/dist/components/Form/Form.js +1 -0
- package/dist/components/Image/Image.d.ts +7 -1
- package/dist/components/Image/Image.js +1 -0
- package/dist/components/Pill/Pill.d.ts +13 -3
- package/dist/components/Pill/Pill.js +3 -2
- package/dist/components/Popover/Popover.d.ts +33 -5
- package/dist/components/Popover/Popover.js +6 -5
- package/dist/components/Popover/index.js +1 -0
- package/dist/components/Radio/Radio.d.ts +6 -4
- package/dist/components/Radio/Radio.js +8 -6
- package/dist/components/RootSVG/RootSVG.d.ts +7 -1
- package/dist/components/RootSVG/RootSVG.js +1 -0
- package/dist/components/Searchbox/Searchbox.context.d.ts +13 -0
- package/dist/components/Searchbox/Searchbox.context.js +11 -0
- package/dist/components/Searchbox/Searchbox.d.ts +16 -12
- package/dist/components/Searchbox/Searchbox.js +25 -29
- package/dist/components/Select/Select.d.ts +18 -5
- package/dist/components/Select/Select.js +8 -9
- package/dist/components/Signpost/Signpost.d.ts +7 -1
- package/dist/components/Signpost/Signpost.js +1 -0
- package/dist/components/SkipNav/SkipNav.d.ts +7 -1
- package/dist/components/SkipNav/SkipNav.js +1 -0
- package/dist/components/Squircle/Squircle.d.ts +7 -1
- package/dist/components/Squircle/Squircle.js +1 -0
- package/dist/components/Tag/Tag.d.ts +7 -1
- package/dist/components/Tag/Tag.js +1 -0
- package/dist/components/TextInput/TextInput.d.ts +4 -3
- package/dist/components/TextInput/TextInput.js +5 -6
- package/dist/components/Textarea/Textarea.d.ts +4 -3
- package/dist/components/Textarea/Textarea.js +4 -7
- package/dist/components/ValidationSummary/ValidationSummary.d.ts +26 -4
- package/dist/components/ValidationSummary/ValidationSummary.js +7 -6
- package/dist/components/icons/AccountCircleFilledIcon.d.ts +1 -1
- package/dist/components/icons/AccountCircleIcon.d.ts +1 -1
- package/dist/components/icons/AccountFilledIcon.d.ts +1 -1
- package/dist/components/icons/AccountIcon.d.ts +1 -1
- package/dist/components/icons/AddIcon.d.ts +1 -1
- package/dist/components/icons/AppsFilledIcon.d.ts +1 -1
- package/dist/components/icons/AppsIcon.d.ts +1 -1
- package/dist/components/icons/ArrowDownIcon.d.ts +1 -1
- package/dist/components/icons/ArrowLeftIcon.d.ts +1 -1
- package/dist/components/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/components/icons/ArrowUpIcon.d.ts +1 -1
- package/dist/components/icons/BackspaceFilledIcon.d.ts +1 -1
- package/dist/components/icons/BackspaceIcon.d.ts +1 -1
- package/dist/components/icons/BasketFilledIcon.d.ts +1 -1
- package/dist/components/icons/BasketIcon.d.ts +1 -1
- package/dist/components/icons/BellFilledIcon.d.ts +1 -1
- package/dist/components/icons/BellIcon.d.ts +1 -1
- package/dist/components/icons/BroomIcon.d.ts +1 -1
- package/dist/components/icons/CalendarFilledIcon.d.ts +1 -1
- package/dist/components/icons/CalendarIcon.d.ts +1 -1
- package/dist/components/icons/CashFilledIcon.d.ts +1 -1
- package/dist/components/icons/CashIcon.d.ts +1 -1
- package/dist/components/icons/ChevronDownIcon.d.ts +1 -1
- package/dist/components/icons/ChevronLeftIcon.d.ts +1 -1
- package/dist/components/icons/ChevronRightIcon.d.ts +1 -1
- package/dist/components/icons/ChevronUpIcon.d.ts +1 -1
- package/dist/components/icons/CircleBurgerFilledIcon.d.ts +1 -1
- package/dist/components/icons/CircleBurgerIcon.d.ts +1 -1
- package/dist/components/icons/ClipboardFilledIcon.d.ts +1 -1
- package/dist/components/icons/ClipboardIcon.d.ts +1 -1
- package/dist/components/icons/ClockFilledIcon.d.ts +1 -1
- package/dist/components/icons/ClockIcon.d.ts +1 -1
- package/dist/components/icons/CloseAltFilledIcon.d.ts +1 -1
- package/dist/components/icons/CloseAltIcon.d.ts +1 -1
- package/dist/components/icons/CogIcon.d.ts +1 -1
- package/dist/components/icons/CommunityFilledIcon.d.ts +1 -1
- package/dist/components/icons/CommunityIcon.d.ts +1 -1
- package/dist/components/icons/ComputerIcon.d.ts +1 -1
- package/dist/components/icons/ContactFilledIcon.d.ts +1 -1
- package/dist/components/icons/ContactIcon.d.ts +1 -1
- package/dist/components/icons/ContactlessFilledIcon.d.ts +1 -1
- package/dist/components/icons/ContactlessIcon.d.ts +1 -1
- package/dist/components/icons/CoopLiveIcon.d.ts +1 -1
- package/dist/components/icons/CoopLocationFilledIcon.d.ts +1 -1
- package/dist/components/icons/CoopLogoIcon.d.ts +1 -1
- package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +1 -1
- package/dist/components/icons/CreditCardFilledIcon.d.ts +1 -1
- package/dist/components/icons/CreditCardIcon.d.ts +1 -1
- package/dist/components/icons/CrossIcon.d.ts +1 -1
- package/dist/components/icons/DocumentIcon.d.ts +1 -1
- package/dist/components/icons/DownloadIcon.d.ts +1 -1
- package/dist/components/icons/EnterStoreIcon.d.ts +1 -1
- package/dist/components/icons/ExitStoreIcon.d.ts +1 -1
- package/dist/components/icons/EyeFilledIcon.d.ts +1 -1
- package/dist/components/icons/EyeIcon.d.ts +1 -1
- package/dist/components/icons/EyeStrikeFilledIcon.d.ts +1 -1
- package/dist/components/icons/EyeStrikeIcon.d.ts +1 -1
- package/dist/components/icons/FeedbackFilledIcon.d.ts +1 -1
- package/dist/components/icons/FeedbackIcon.d.ts +1 -1
- package/dist/components/icons/FilterIcon.d.ts +1 -1
- package/dist/components/icons/GiftCardFilledIcon.d.ts +1 -1
- package/dist/components/icons/GiftCardIcon.d.ts +1 -1
- package/dist/components/icons/GiftFilledIcon.d.ts +1 -1
- package/dist/components/icons/GiftIcon.d.ts +1 -1
- package/dist/components/icons/HelpFilledIcon.d.ts +1 -1
- package/dist/components/icons/HelpIcon.d.ts +1 -1
- package/dist/components/icons/HomeFilledIcon.d.ts +1 -1
- package/dist/components/icons/HomeIcon.d.ts +1 -1
- package/dist/components/icons/HowDoIAssistantIcon.d.ts +1 -1
- package/dist/components/icons/InfoIcon.d.ts +1 -1
- package/dist/components/icons/KebabIcon.d.ts +1 -1
- package/dist/components/icons/LoadingIcon.d.ts +1 -1
- package/dist/components/icons/LocationFilledIcon.d.ts +1 -1
- package/dist/components/icons/LocationIcon.d.ts +1 -1
- package/dist/components/icons/LogoutIcon.d.ts +1 -1
- package/dist/components/icons/MailIcon.d.ts +1 -1
- package/dist/components/icons/MenuIcon.d.ts +1 -1
- package/dist/components/icons/MessageIcon.d.ts +1 -1
- package/dist/components/icons/MinusIcon.d.ts +1 -1
- package/dist/components/icons/NotesFilledIcon.d.ts +1 -1
- package/dist/components/icons/NotesIcon.d.ts +1 -1
- package/dist/components/icons/OpenNewIcon.d.ts +1 -1
- package/dist/components/icons/OwnBagIcon.d.ts +1 -1
- package/dist/components/icons/PadlockIcon.d.ts +1 -1
- package/dist/components/icons/PencilIcon.d.ts +1 -1
- package/dist/components/icons/PhoneIcon.d.ts +1 -1
- package/dist/components/icons/PowerIcon.d.ts +1 -1
- package/dist/components/icons/SaveFilledIcon.d.ts +1 -1
- package/dist/components/icons/SaveIcon.d.ts +1 -1
- package/dist/components/icons/ScooterIcon.d.ts +1 -1
- package/dist/components/icons/SearchFilledIcon.d.ts +1 -1
- package/dist/components/icons/SearchIcon.d.ts +1 -1
- package/dist/components/icons/SendIcon.d.ts +1 -1
- package/dist/components/icons/SpannerIcon.d.ts +1 -1
- package/dist/components/icons/StarFilledIcon.d.ts +1 -1
- package/dist/components/icons/StarIcon.d.ts +1 -1
- package/dist/components/icons/TickAltFilledIcon.d.ts +1 -1
- package/dist/components/icons/TickAltIcon.d.ts +1 -1
- package/dist/components/icons/TickIcon.d.ts +1 -1
- package/dist/components/icons/TruckIcon.d.ts +1 -1
- package/dist/components/icons/UserWipeIcon.d.ts +1 -1
- package/dist/components/icons/VoucherFilledIcon.d.ts +1 -1
- package/dist/components/icons/VoucherIcon.d.ts +1 -1
- package/dist/components/icons/WarningFilledIcon.d.ts +1 -1
- package/dist/components/icons/WarningIcon.d.ts +1 -1
- package/dist/components/icons/WifiIcon.d.ts +1 -1
- package/dist/components/icons/WriteIcon.d.ts +1 -1
- package/dist/hooks/useSlots.d.ts +4 -2
- package/dist/hooks/useSlots.js +33 -7
- package/dist/index.js +10 -10
- package/dist/types/index.d.ts +14 -14
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +9 -7
- package/package.json +12 -11
- package/src/components/AlertBanner/AlertBanner.tsx +5 -2
- package/src/components/Author/Author.tsx +4 -1
- package/src/components/Button/Button.tsx +5 -1
- package/src/components/Card/Card.tsx +8 -6
- package/src/components/Checkbox/Checkbox.tsx +13 -9
- package/src/components/DatePicker/DatePicker.tsx +15 -15
- package/src/components/Expandable/Expandable.tsx +5 -8
- package/src/components/Field/Field.context.ts +29 -0
- package/src/components/Field/Field.tsx +61 -56
- package/src/components/FieldMarkers/Label.tsx +4 -0
- package/src/components/Fieldset/Fieldset.tsx +7 -5
- package/src/components/Flourish/Flourish.tsx +4 -1
- package/src/components/Form/Form.tsx +4 -1
- package/src/components/Image/Image.tsx +4 -1
- package/src/components/Pill/Pill.tsx +4 -2
- package/src/components/Popover/Popover.tsx +7 -5
- package/src/components/Radio/Radio.tsx +12 -9
- package/src/components/RootSVG/RootSVG.tsx +4 -1
- package/src/components/Searchbox/Searchbox.context.tsx +20 -0
- package/src/components/Searchbox/Searchbox.tsx +55 -44
- package/src/components/Select/Select.tsx +11 -11
- package/src/components/Signpost/Signpost.tsx +4 -1
- package/src/components/SkipNav/SkipNav.tsx +4 -1
- package/src/components/Squircle/Squircle.tsx +4 -1
- package/src/components/Tag/Tag.tsx +4 -1
- package/src/components/TextInput/TextInput.tsx +8 -8
- package/src/components/Textarea/Textarea.tsx +7 -8
- package/src/components/ValidationSummary/ValidationSummary.tsx +12 -5
- package/src/hooks/useSlots.ts +37 -9
- package/src/types/index.ts +18 -14
- package/src/utils/index.ts +8 -6
- package/dist/node_modules/merge-refs/dist/index.js +0 -36
|
@@ -21,29 +21,32 @@ export interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElemen
|
|
|
21
21
|
/** **(Optional)** Specify the size of the Fieldset and all its descendents. */
|
|
22
22
|
size?: StandardSizes;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
declare const Fieldset: {
|
|
25
25
|
({ children, className, disabled, error, hideErrorBar, ref, size, ...props }: FieldsetProps): JSX.Element;
|
|
26
|
+
slot: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
26
29
|
Error: {
|
|
27
|
-
(props: ErrorProps):
|
|
28
|
-
|
|
30
|
+
(props: ErrorProps): JSX.Element;
|
|
31
|
+
slot: {
|
|
29
32
|
name: string;
|
|
30
33
|
};
|
|
31
34
|
};
|
|
32
35
|
Fields: {
|
|
33
36
|
({ boxed, children, className, orientation, ...props }: FieldsetFieldsProps): JSX.Element;
|
|
34
|
-
|
|
37
|
+
slot: {
|
|
35
38
|
name: string;
|
|
36
39
|
};
|
|
37
40
|
};
|
|
38
41
|
Hint: {
|
|
39
|
-
(props: HintProps):
|
|
40
|
-
|
|
42
|
+
(props: HintProps): JSX.Element;
|
|
43
|
+
slot: {
|
|
41
44
|
name: string;
|
|
42
45
|
};
|
|
43
46
|
};
|
|
44
47
|
Legend: {
|
|
45
|
-
(props: LegendProps):
|
|
46
|
-
|
|
48
|
+
(props: LegendProps): JSX.Element;
|
|
49
|
+
slot: {
|
|
47
50
|
name: string;
|
|
48
51
|
};
|
|
49
52
|
};
|
|
@@ -58,4 +61,29 @@ interface FieldsetFieldsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
58
61
|
/** **(Optional)** Specify the CheckboxGroup orientation. */
|
|
59
62
|
orientation?: "horizontal" | "vertical";
|
|
60
63
|
}
|
|
64
|
+
declare const FieldsetFields: {
|
|
65
|
+
({ boxed, children, className, orientation, ...props }: FieldsetFieldsProps): JSX.Element;
|
|
66
|
+
slot: {
|
|
67
|
+
name: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
declare const FieldsetLegend: {
|
|
71
|
+
(props: LegendProps): JSX.Element;
|
|
72
|
+
slot: {
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
declare const FieldsetHint: {
|
|
77
|
+
(props: HintProps): JSX.Element;
|
|
78
|
+
slot: {
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
declare const FieldsetError: {
|
|
83
|
+
(props: ErrorProps): JSX.Element;
|
|
84
|
+
slot: {
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
61
88
|
export default Fieldset;
|
|
89
|
+
export { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend };
|
|
@@ -28,13 +28,14 @@ const FieldsetFields = ({ boxed = false, children, className, orientation = "ver
|
|
|
28
28
|
const FieldsetLegend = (props) => jsx(Legend, { ...props });
|
|
29
29
|
const FieldsetHint = (props) => jsx(Hint, { ...props });
|
|
30
30
|
const FieldsetError = (props) => jsx(Error, { ...props });
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
Fieldset.slot = { name: "Fieldset" };
|
|
32
|
+
FieldsetFields.slot = { name: "FieldsetField" };
|
|
33
|
+
FieldsetLegend.slot = { name: "FieldsetLegend" };
|
|
34
|
+
FieldsetHint.slot = { name: "FieldsetHint" };
|
|
35
|
+
FieldsetError.slot = { name: "FieldsetError" };
|
|
35
36
|
Fieldset.Error = FieldsetError;
|
|
36
37
|
Fieldset.Fields = FieldsetFields;
|
|
37
38
|
Fieldset.Hint = FieldsetHint;
|
|
38
39
|
Fieldset.Legend = FieldsetLegend;
|
|
39
40
|
|
|
40
|
-
export { Fieldset, Fieldset as default };
|
|
41
|
+
export { Fieldset, FieldsetError, FieldsetFields, FieldsetHint, FieldsetLegend, Fieldset as default };
|
|
@@ -10,5 +10,11 @@ export interface FlourishProps extends SVGProps<SVGSVGElement> {
|
|
|
10
10
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
11
11
|
ref?: Ref<SVGSVGElement>;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
declare const Flourish: {
|
|
14
|
+
({ children, className, fill, ref, ...props }: FlourishProps): JSX.Element;
|
|
15
|
+
slot: {
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
14
19
|
export default Flourish;
|
|
20
|
+
export { Flourish };
|
|
@@ -9,5 +9,6 @@ const Flourish = ({ children, className, fill = "brand-blue", ref, ...props }) =
|
|
|
9
9
|
};
|
|
10
10
|
return (jsxs("span", { style: { position: "relative" }, children: [children, jsx("svg", { ...componentProps, ref: ref, viewBox: "0 0 276 10", children: jsx("path", { d: "M275.9 8.6c.1-1.6.2-1.8-.4-2.9.3-1-.3-1.2-1.8-1.1v-.3c.6-.4.2-.2 1.4-.1-.9-2.3-5.6-1.8-8.5-2.3C259 .5 246.3.7 237.4.5L185 .4l-33-.2-26.1-.2-67.4 1.2-44.3.5C10.7 2.1 1.5.4 0 3.3l1 .2L0 4v.5C8.2 7.9 26.6 7.2 35.6 7c5 0 13.5 1.6 16.5-.6C53.4 8 59.5 8 62 7.7l45 .1 42.8.3 30.7.3 44.2.6 27.8-.5 23 .8c.1-.8-.3-.5.5-.7ZM219 2.8v-.2l.8-.2h.4l.3.4H219Zm30-.1h1.2c-.8.4-.5.3-1.2 0Zm6.2.6.2-.4h.3l-.5.4Z" }) })] }));
|
|
11
11
|
};
|
|
12
|
+
Flourish.slot = { name: "Flourish" };
|
|
12
13
|
|
|
13
14
|
export { Flourish, Flourish as default };
|
|
@@ -7,5 +7,11 @@ export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
7
7
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
8
8
|
ref?: Ref<HTMLFormElement>;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
declare const Form: {
|
|
11
|
+
({ children, className, ref, ...props }: FormProps): JSX.Element;
|
|
12
|
+
slot: {
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
11
16
|
export default Form;
|
|
17
|
+
export { Form };
|
|
@@ -13,5 +13,11 @@ export interface ImageProps extends HTMLAttributes<HTMLImageElement> {
|
|
|
13
13
|
/** **(Optional)** Specify the width of the image. */
|
|
14
14
|
width?: string;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
declare const Image: {
|
|
17
|
+
({ alt, crop, height, ref, src, width, ...props }: ImageProps): JSX.Element;
|
|
18
|
+
slot: {
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
17
22
|
export default Image;
|
|
23
|
+
export { Image };
|
|
@@ -32,5 +32,6 @@ const Image = ({ alt, crop, height, ref, src, width = "640", ...props }) => {
|
|
|
32
32
|
};
|
|
33
33
|
return (jsx("picture", { children: jsx("img", { alt: alt, loading: "lazy", src: params.src, ...dimensions, ...props, ref: ref }) }));
|
|
34
34
|
};
|
|
35
|
+
Image.slot = { name: "Image" };
|
|
35
36
|
|
|
36
37
|
export { Image, Image as default };
|
|
@@ -21,13 +21,23 @@ interface PillBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
21
21
|
/** **(Optional)** Specify additional CSS classes to be applied to the Badge. */
|
|
22
22
|
className?: string;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
declare const Pill: {
|
|
25
25
|
({ as, children, className, href, ref, size, ...props }: PillProps): JSX.Element;
|
|
26
|
+
slot: {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
26
29
|
Badge: {
|
|
27
|
-
({ children, className }: PillBadgeProps):
|
|
28
|
-
|
|
30
|
+
({ children, className }: PillBadgeProps): JSX.Element;
|
|
31
|
+
slot: {
|
|
29
32
|
name: string;
|
|
30
33
|
};
|
|
31
34
|
};
|
|
32
35
|
};
|
|
36
|
+
declare const PillBadge: {
|
|
37
|
+
({ children, className }: PillBadgeProps): JSX.Element;
|
|
38
|
+
slot: {
|
|
39
|
+
name: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
33
42
|
export default Pill;
|
|
43
|
+
export { Pill, PillBadge };
|
|
@@ -22,7 +22,8 @@ const Pill = ({ as, children, className, href, ref, size = "md", ...props }) =>
|
|
|
22
22
|
const PillBadge = ({ children, className }) => {
|
|
23
23
|
return (jsx("span", { className: clsx("coop-pill--badge", !hasUserBg(className) && "bg-red", className), children: children }));
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
Pill.slot = { name: "Pill" };
|
|
26
|
+
PillBadge.slot = { name: "PillBadge" };
|
|
26
27
|
Pill.Badge = PillBadge;
|
|
27
28
|
|
|
28
|
-
export { Pill, Pill as default };
|
|
29
|
+
export { Pill, PillBadge, Pill as default };
|
|
@@ -52,31 +52,59 @@ interface PopoverAnchorProps extends RadixPopoverAnchorProps {
|
|
|
52
52
|
/** **(Optional)** Content inside the Popover Anchor element. */
|
|
53
53
|
children?: React.ReactNode;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
declare const Popover: {
|
|
56
56
|
({ children, ...props }: PopoverProps): JSX.Element;
|
|
57
|
+
slot: {
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
57
60
|
Trigger: {
|
|
58
61
|
({ asChild, children, className, ...props }: PopoverTriggerProps): JSX.Element;
|
|
59
|
-
|
|
62
|
+
slot: {
|
|
60
63
|
name: string;
|
|
61
64
|
};
|
|
62
65
|
};
|
|
63
66
|
Content: {
|
|
64
67
|
({ align, alignOffset, asChild, avoidCollisions, children, className, collisionPadding, ref, side, sideOffset, style, ...props }: PopoverContentProps): JSX.Element;
|
|
65
|
-
|
|
68
|
+
slot: {
|
|
66
69
|
name: string;
|
|
67
70
|
};
|
|
68
71
|
};
|
|
69
72
|
Close: {
|
|
70
73
|
({ asChild, children, className, ...props }: PopoverCloseProps): JSX.Element;
|
|
71
|
-
|
|
74
|
+
slot: {
|
|
72
75
|
name: string;
|
|
73
76
|
};
|
|
74
77
|
};
|
|
75
78
|
Anchor: {
|
|
76
79
|
({ asChild, children, ...props }: PopoverAnchorProps): JSX.Element;
|
|
77
|
-
|
|
80
|
+
slot: {
|
|
78
81
|
name: string;
|
|
79
82
|
};
|
|
80
83
|
};
|
|
81
84
|
};
|
|
85
|
+
declare const PopoverContent: {
|
|
86
|
+
({ align, alignOffset, asChild, avoidCollisions, children, className, collisionPadding, ref, side, sideOffset, style, ...props }: PopoverContentProps): JSX.Element;
|
|
87
|
+
slot: {
|
|
88
|
+
name: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
declare const PopoverTrigger: {
|
|
92
|
+
({ asChild, children, className, ...props }: PopoverTriggerProps): JSX.Element;
|
|
93
|
+
slot: {
|
|
94
|
+
name: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
declare const PopoverClose: {
|
|
98
|
+
({ asChild, children, className, ...props }: PopoverCloseProps): JSX.Element;
|
|
99
|
+
slot: {
|
|
100
|
+
name: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
declare const PopoverAnchor: {
|
|
104
|
+
({ asChild, children, ...props }: PopoverAnchorProps): JSX.Element;
|
|
105
|
+
slot: {
|
|
106
|
+
name: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
82
109
|
export default Popover;
|
|
110
|
+
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
|
|
@@ -63,13 +63,14 @@ const PopoverAnchor = ({ asChild = false, children, ...props }) => {
|
|
|
63
63
|
};
|
|
64
64
|
return jsx(RadixPopover.Anchor, { ...componentProps, children: children });
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
Popover.slot = { name: "Popover" };
|
|
67
|
+
PopoverTrigger.slot = { name: "PopoverTrigger" };
|
|
68
|
+
PopoverContent.slot = { name: "PopoverContent" };
|
|
69
|
+
PopoverClose.slot = { name: "PopoverClose" };
|
|
70
|
+
PopoverAnchor.slot = { name: "PopoverAnchor" };
|
|
70
71
|
Popover.Trigger = PopoverTrigger;
|
|
71
72
|
Popover.Content = PopoverContent;
|
|
72
73
|
Popover.Close = PopoverClose;
|
|
73
74
|
Popover.Anchor = PopoverAnchor;
|
|
74
75
|
|
|
75
|
-
export { Popover, Popover as default };
|
|
76
|
+
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, Popover as default };
|
|
@@ -16,11 +16,13 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
16
16
|
/** **(Optional)** Specify the Radio size. */
|
|
17
17
|
size?: StandardSizes;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
declare const Radio: {
|
|
20
20
|
({ className, disabled, error, id, name, ref, size, ...props }: RadioProps): JSX.Element;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
slot: {
|
|
22
|
+
field: boolean;
|
|
23
|
+
inline: boolean;
|
|
24
|
+
name: string;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
export default Radio;
|
|
28
|
+
export { Radio };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
|
-
import {
|
|
4
|
+
import { useField } from '../Field/Field.context.js';
|
|
4
5
|
|
|
5
6
|
const Radio = ({ className, disabled, error = false, id, name, ref, size, ...props }) => {
|
|
6
|
-
const
|
|
7
|
+
const field = useField();
|
|
7
8
|
const componentProps = {
|
|
8
9
|
className: clsx("coop-radio", "coop-field-element", className),
|
|
9
10
|
"data-error": error || undefined,
|
|
10
11
|
"data-size": size !== null && size !== void 0 ? size : undefined,
|
|
11
12
|
disabled,
|
|
12
|
-
id:
|
|
13
|
+
id: id !== null && id !== void 0 ? id : field === null || field === void 0 ? void 0 : field.id,
|
|
13
14
|
name,
|
|
14
15
|
type: "radio",
|
|
15
16
|
...props,
|
|
@@ -17,9 +18,10 @@ const Radio = ({ className, disabled, error = false, id, name, ref, size, ...pro
|
|
|
17
18
|
//const formItemProps = { "aria-disabled": disabled ? true : undefined }
|
|
18
19
|
return jsx("input", { ...componentProps, ref: ref });
|
|
19
20
|
};
|
|
20
|
-
Radio.
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
Radio.slot = {
|
|
22
|
+
field: true,
|
|
23
|
+
inline: true,
|
|
24
|
+
name: "Radio",
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
export { Radio, Radio as default };
|
|
@@ -8,5 +8,6 @@ const RootSVG = () => {
|
|
|
8
8
|
position: "absolute",
|
|
9
9
|
}, 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" }) }) }) }));
|
|
10
10
|
};
|
|
11
|
+
RootSVG.slot = { name: "RootSVG" };
|
|
11
12
|
|
|
12
13
|
export { RootSVG, RootSVG as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
import { StandardSizes } from "../../types";
|
|
3
|
+
interface SearchboxContextValue {
|
|
4
|
+
buttonId?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
inputId?: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
ref?: RefObject<HTMLFormElement | null> | null;
|
|
9
|
+
size?: StandardSizes;
|
|
10
|
+
}
|
|
11
|
+
export declare const SearchboxContext: import("react").Context<SearchboxContextValue>;
|
|
12
|
+
export declare const useSearchbox: () => SearchboxContextValue;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
const SearchboxContext = createContext({});
|
|
4
|
+
const useSearchbox = () => {
|
|
5
|
+
const context = useContext(SearchboxContext);
|
|
6
|
+
if (!context)
|
|
7
|
+
throw new Error("Searchbox components must be used inside <Searchbox>");
|
|
8
|
+
return context;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { SearchboxContext, useSearchbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormHTMLAttributes, JSX,
|
|
1
|
+
import type { FormHTMLAttributes, JSX, RefObject } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { StandardSizes } from "../../types";
|
|
4
4
|
import { type ButtonProps } from "../Button";
|
|
@@ -25,26 +25,30 @@ export interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
25
25
|
/** **(Optional)** Specify the TextInput placeholder text Do not use in place of a form label. */
|
|
26
26
|
placeholder?: string;
|
|
27
27
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
28
|
-
ref?:
|
|
28
|
+
ref?: RefObject<HTMLFormElement | null>;
|
|
29
29
|
/** **(Optional)** Specify the Searchbox size. */
|
|
30
30
|
size?: StandardSizes;
|
|
31
31
|
/** **(Optional)** Specify the Searchbox variant. */
|
|
32
32
|
variant?: "solid" | "ghost";
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
declare const Searchbox: {
|
|
35
35
|
({ action, children, className, id, label, labelVisible, onSubmit, ref, size, variant, ...props }: SearchboxProps): JSX.Element;
|
|
36
36
|
Button: {
|
|
37
|
-
({ children,
|
|
38
|
-
|
|
39
|
-
name: string;
|
|
40
|
-
};
|
|
37
|
+
({ children, ...props }: ButtonProps): JSX.Element;
|
|
38
|
+
displayName: string;
|
|
41
39
|
};
|
|
42
40
|
Input: {
|
|
43
|
-
(props: TextInputProps):
|
|
44
|
-
|
|
45
|
-
isField: boolean;
|
|
46
|
-
name: string;
|
|
47
|
-
};
|
|
41
|
+
(props: TextInputProps): JSX.Element;
|
|
42
|
+
displayName: string;
|
|
48
43
|
};
|
|
49
44
|
};
|
|
45
|
+
declare const SearchboxButton: {
|
|
46
|
+
({ children, ...props }: ButtonProps): JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
declare const SearchboxInput: {
|
|
50
|
+
(props: TextInputProps): JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
50
53
|
export default Searchbox;
|
|
54
|
+
export { Searchbox, SearchboxButton, SearchboxInput };
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
1
|
"use client";
|
|
3
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
|
-
import
|
|
4
|
+
import { useState, useCallback } from 'react';
|
|
6
5
|
import { useId } from '../../hooks/useId.js';
|
|
7
6
|
import { useSlots } from '../../hooks/useSlots.js';
|
|
8
|
-
import { hasUserBorder } from '../../utils/index.js';
|
|
7
|
+
import { getSlotProp, hasUserBorder } from '../../utils/index.js';
|
|
9
8
|
import { Button } from '../Button/Button.js';
|
|
10
|
-
import { Field } from '../Field/Field.js';
|
|
9
|
+
import { FieldLabel, Field } from '../Field/Field.js';
|
|
11
10
|
import { SearchIcon } from '../icons/SearchIcon.js';
|
|
12
11
|
import { TextInput } from '../TextInput/TextInput.js';
|
|
12
|
+
import { SearchboxContext, useSearchbox } from './Searchbox.context.js';
|
|
13
13
|
|
|
14
14
|
const componentSlots = {
|
|
15
15
|
SearchboxButton: null,
|
|
16
16
|
SearchboxInput: null,
|
|
17
17
|
};
|
|
18
18
|
const Searchbox = ({ action, children, className, id, label, labelVisible = false, onSubmit, ref, size, variant = "solid", ...props }) => {
|
|
19
|
-
|
|
20
|
-
const
|
|
19
|
+
var _a, _b;
|
|
20
|
+
const slots = useSlots(componentSlots, children);
|
|
21
21
|
const uid = useId(id);
|
|
22
|
+
const [isPending, setIsPending] = useState(false);
|
|
23
|
+
const inputId = (_a = getSlotProp(slots.SearchboxInput, "id")) !== null && _a !== void 0 ? _a : uid + "__input";
|
|
24
|
+
const buttonId = (_b = getSlotProp(slots.SearchboxButton, "id")) !== null && _b !== void 0 ? _b : uid + "__button";
|
|
22
25
|
const handleSubmit = useCallback(async (event) => {
|
|
23
26
|
event.preventDefault();
|
|
24
27
|
if (isPending || !onSubmit)
|
|
@@ -40,38 +43,31 @@ const Searchbox = ({ action, children, className, id, label, labelVisible = fals
|
|
|
40
43
|
className: clsx("coop-searchbox", borderClass, className),
|
|
41
44
|
"data-size": size !== null && size !== void 0 ? size : undefined,
|
|
42
45
|
"data-variant": variant.length && variant !== "solid" ? variant : undefined,
|
|
43
|
-
id:
|
|
46
|
+
id: id !== null && id !== void 0 ? id : undefined,
|
|
44
47
|
onSubmit: onSubmit ? handleSubmit : undefined,
|
|
45
48
|
...props,
|
|
46
49
|
};
|
|
47
|
-
|
|
48
|
-
isLoading: isPending,
|
|
49
|
-
size,
|
|
50
|
-
});
|
|
51
|
-
slots.SearchboxInput = React.cloneElement(slots.SearchboxInput, {
|
|
52
|
-
autoCapitalize: "off",
|
|
53
|
-
id: uid,
|
|
54
|
-
size,
|
|
55
|
-
type: "search",
|
|
56
|
-
});
|
|
57
|
-
const labelProps = {
|
|
58
|
-
htmlFor: uid,
|
|
59
|
-
isVisible: labelVisible,
|
|
60
|
-
};
|
|
61
|
-
return (jsxs("form", { ...formProps, ref: ref, children: [label && jsx(Field.Label, { ...labelProps, children: label }), jsxs("div", { className: clsx("coop-searchbox--inner"), children: [jsx(Field, { children: slots.SearchboxInput }), slots.SearchboxButton] })] }));
|
|
50
|
+
return (jsx(SearchboxContext.Provider, { value: { buttonId, inputId, isLoading: isPending, ref, size }, children: jsxs("form", { ...formProps, ref: ref, children: [label && (jsx(FieldLabel, { htmlFor: inputId !== null && inputId !== void 0 ? inputId : uid, isVisible: labelVisible, children: label })), jsxs("div", { className: clsx("coop-searchbox--inner"), children: [jsx(Field, { children: slots.SearchboxInput }), slots.SearchboxButton] })] }) }));
|
|
62
51
|
};
|
|
63
|
-
const SearchboxButton = ({ children,
|
|
64
|
-
const uid = useId(id)
|
|
52
|
+
const SearchboxButton = ({ children, ...props }) => {
|
|
53
|
+
// const uid = useId(id)
|
|
54
|
+
const searchbox = useSearchbox();
|
|
65
55
|
const buttonProps = {
|
|
66
|
-
children: children !== null && children !== void 0 ? children : (jsx(SearchIcon, { alt: "Search", id:
|
|
56
|
+
children: children !== null && children !== void 0 ? children : (jsx(SearchIcon, { alt: "Search", id: searchbox.buttonId + "__icon", stroke: "currentColor", width: "24" })),
|
|
57
|
+
id: searchbox.buttonId,
|
|
58
|
+
isLoading: searchbox.isLoading,
|
|
59
|
+
size: searchbox.size,
|
|
67
60
|
...props,
|
|
68
61
|
};
|
|
69
62
|
return jsx(Button, { ...buttonProps });
|
|
70
63
|
};
|
|
71
|
-
|
|
64
|
+
SearchboxButton.displayName = "Searchbox.Button";
|
|
65
|
+
const SearchboxInput = (props) => {
|
|
66
|
+
const searchbox = useSearchbox();
|
|
67
|
+
return (jsx(TextInput, { autoCapitalize: "off", id: searchbox.inputId, size: searchbox.size, type: "search", ...props }));
|
|
68
|
+
};
|
|
69
|
+
SearchboxInput.displayName = "Searchbox.Input";
|
|
72
70
|
Searchbox.Button = SearchboxButton;
|
|
73
71
|
Searchbox.Input = SearchboxInput;
|
|
74
|
-
SearchboxButton.config = { name: "SearchboxButton" };
|
|
75
|
-
SearchboxInput.config = { isField: true, name: "SearchboxInput" };
|
|
76
72
|
|
|
77
|
-
export { Searchbox, Searchbox as default };
|
|
73
|
+
export { Searchbox, SearchboxButton, SearchboxInput, Searchbox as default };
|
|
@@ -32,22 +32,35 @@ interface SelectOptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
|
|
|
32
32
|
/** Value of Select option. */
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
declare const Select: {
|
|
36
36
|
({ children, className, disabled, error, id, name, ref, size, ...props }: SelectProps): JSX.Element;
|
|
37
|
+
slot: {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
37
40
|
OptionGroup: {
|
|
38
41
|
({ children, ...props }: SelectOptionGroupProps): JSX.Element;
|
|
39
|
-
|
|
42
|
+
slot: {
|
|
40
43
|
name: string;
|
|
41
44
|
};
|
|
42
45
|
};
|
|
43
46
|
Option: {
|
|
44
47
|
({ children, className, ...props }: SelectOptionProps): JSX.Element;
|
|
45
|
-
|
|
48
|
+
slot: {
|
|
46
49
|
name: string;
|
|
47
50
|
};
|
|
48
51
|
};
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
};
|
|
53
|
+
declare const SelectOptionGroup: {
|
|
54
|
+
({ children, ...props }: SelectOptionGroupProps): JSX.Element;
|
|
55
|
+
slot: {
|
|
56
|
+
name: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
declare const SelectOption: {
|
|
60
|
+
({ children, className, ...props }: SelectOptionProps): JSX.Element;
|
|
61
|
+
slot: {
|
|
62
|
+
name: string;
|
|
51
63
|
};
|
|
52
64
|
};
|
|
53
65
|
export default Select;
|
|
66
|
+
export { Select, SelectOption, SelectOptionGroup };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from 'react/jsx-runtime';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
|
-
import {
|
|
4
|
+
import { useField } from '../Field/Field.context.js';
|
|
4
5
|
|
|
5
6
|
const Select = ({ children, className, disabled, error, id, name, ref, size, ...props }) => {
|
|
6
|
-
const
|
|
7
|
+
const field = useField();
|
|
7
8
|
const componentProps = {
|
|
8
9
|
className: clsx("coop-select", "coop-field-element", className),
|
|
9
10
|
"data-error": error !== null && error !== void 0 ? error : undefined,
|
|
10
11
|
"data-size": size !== null && size !== void 0 ? size : undefined,
|
|
11
12
|
disabled,
|
|
12
|
-
id:
|
|
13
|
+
id: id !== null && id !== void 0 ? id : field === null || field === void 0 ? void 0 : field.id,
|
|
13
14
|
name,
|
|
14
15
|
...props,
|
|
15
16
|
};
|
|
@@ -21,12 +22,10 @@ const SelectOptionGroup = ({ children, ...props }) => {
|
|
|
21
22
|
const SelectOption = ({ children, className, ...props }) => {
|
|
22
23
|
return (jsx("option", { className: clsx("coop-select--option", className), ...props, children: children }));
|
|
23
24
|
};
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
Select.slot = { name: "Select" };
|
|
26
|
+
SelectOption.slot = { name: "SelectOption" };
|
|
27
|
+
SelectOptionGroup.slot = { name: "SelectOptionGroup" };
|
|
26
28
|
Select.OptionGroup = SelectOptionGroup;
|
|
27
29
|
Select.Option = SelectOption;
|
|
28
|
-
Select.config = {
|
|
29
|
-
isField: true,
|
|
30
|
-
};
|
|
31
30
|
|
|
32
|
-
export { Select, Select as default };
|
|
31
|
+
export { Select, SelectOption, SelectOptionGroup, Select as default };
|
|
@@ -17,5 +17,11 @@ export interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
18
18
|
ref?: Ref<HTMLDivElement>;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
declare const Signpost: {
|
|
21
|
+
({ as, children, className, headingLevel, href, image, ref, ...props }: SignpostProps): JSX.Element;
|
|
22
|
+
slot: {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
21
26
|
export default Signpost;
|
|
27
|
+
export { Signpost };
|
|
@@ -12,5 +12,6 @@ const Signpost = ({ as, children, className, headingLevel = "h3", href, image, r
|
|
|
12
12
|
};
|
|
13
13
|
return (jsxs("div", { ...componentProps, ref: ref, children: [image && jsx(Image, { 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
14
|
};
|
|
15
|
+
Signpost.slot = { name: "Signpost" };
|
|
15
16
|
|
|
16
17
|
export { Signpost, Signpost as default };
|
|
@@ -14,5 +14,11 @@ export interface SkipNavProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
14
14
|
/** **(Optional)** Specify a custom React ref for this component. */
|
|
15
15
|
ref?: Ref<HTMLDivElement>;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
declare const SkipNav: {
|
|
18
|
+
({ className, isVisible, links, ref, ...props }: SkipNavProps): JSX.Element;
|
|
19
|
+
slot: {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
18
23
|
export default SkipNav;
|
|
24
|
+
export { SkipNav };
|
|
@@ -17,5 +17,6 @@ const SkipNav = ({ className, isVisible = false, links = defaultLinks, ref, ...p
|
|
|
17
17
|
return (jsx("li", { children: jsx("a", { ...linkProps, children: link.label }) }, link.href));
|
|
18
18
|
}) }) }));
|
|
19
19
|
};
|
|
20
|
+
SkipNav.slot = { name: "SkipNav" };
|
|
20
21
|
|
|
21
22
|
export { SkipNav, SkipNav as default };
|