whitehall-ui 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/{chunk-KWAC6IEK.js → chunk-2KB4IAMZ.js} +9 -22
- package/dist/{chunk-5TI2WXYU.js → chunk-3UX7QPLM.js} +10 -21
- package/dist/{chunk-SK27BMU5.js → chunk-4GQRYMDK.js} +11 -23
- package/dist/{chunk-OP35ZJ4X.js → chunk-4TBXH62Z.js} +6 -7
- package/dist/{chunk-M6CLPMRP.js → chunk-6WLHJ5MN.js} +34 -76
- package/dist/chunk-7IOR7UNU.js +77 -0
- package/dist/chunk-7Q2C5RB7.js +167 -0
- package/dist/{chunk-5PIQJ22R.js → chunk-ASBIQC77.js} +13 -18
- package/dist/{chunk-KD4LPFIZ.js → chunk-C2YQVLZ7.js} +15 -18
- package/dist/chunk-CBT6WCJ7.js +52 -0
- package/dist/{chunk-3YIKJK6M.js → chunk-CYBPAHLZ.js} +48 -52
- package/dist/{chunk-VB6V3PHD.js → chunk-D2T6BUOB.js} +6 -16
- package/dist/chunk-DZ3743JO.js +38 -0
- package/dist/{chunk-AO6HPG4R.js → chunk-EDOSCND4.js} +5 -20
- package/dist/chunk-FJHNUBEM.js +59 -0
- package/dist/chunk-FVBDMMNR.js +143 -0
- package/dist/chunk-GKHD33N6.js +52 -0
- package/dist/{chunk-3INCIYDO.js → chunk-GLDCEDTR.js} +22 -77
- package/dist/{chunk-G6T44BDV.js → chunk-HBLVAX45.js} +7 -11
- package/dist/{chunk-UWQFFFTB.js → chunk-JCERRZV6.js} +13 -13
- package/dist/chunk-KXQGZLMK.js +120 -0
- package/dist/{chunk-CEPBVMFU.js → chunk-MFI5R2TJ.js} +1 -3
- package/dist/{chunk-5XNKIBMP.js → chunk-MYMVHSRJ.js} +3 -4
- package/dist/chunk-N5PY3VZH.js +192 -0
- package/dist/{chunk-P4GCF5FQ.js → chunk-OQILIT3B.js} +26 -15
- package/dist/{chunk-6VXVJERU.js → chunk-QKR7NELW.js} +4 -8
- package/dist/chunk-QPN5J5IU.js +177 -0
- package/dist/chunk-RGXB6M3G.js +87 -0
- package/dist/chunk-TAVSU2XB.js +90 -0
- package/dist/chunk-TGNN5ZP3.js +81 -0
- package/dist/chunk-TICBCBDN.js +18 -0
- package/dist/{chunk-7ZCZQN5N.js → chunk-UK7RLSTJ.js} +15 -22
- package/dist/chunk-UXOJELVU.js +37 -0
- package/dist/{chunk-QTSEOPVX.js → chunk-VCJE5UO2.js} +23 -25
- package/dist/{chunk-N67H5OUQ.js → chunk-VHSAXVCF.js} +7 -5
- package/dist/chunk-VMI2XU5D.js +74 -0
- package/dist/{chunk-TXGBUZB4.js → chunk-VRGDQ3SF.js} +3 -10
- package/dist/chunk-W4CWUYTA.js +44 -0
- package/dist/{chunk-LRNZYPC2.js → chunk-YF6EZ57H.js} +14 -44
- package/dist/chunk-ZAKQHDVD.js +40 -0
- package/dist/chunk-ZJB7BBTN.js +188 -0
- package/dist/index.d.ts +15 -13
- package/dist/index.js +41 -39
- package/dist/lib/utils.d.ts +2 -1
- package/dist/lib/utils.js +1 -1
- package/dist/ui/accordion.d.ts +8 -13
- package/dist/ui/accordion.js +2 -2
- package/dist/ui/back-link.d.ts +4 -4
- package/dist/ui/back-link.js +2 -2
- package/dist/ui/breadcrumbs.d.ts +10 -16
- package/dist/ui/breadcrumbs.js +2 -2
- package/dist/ui/button.d.ts +7 -8
- package/dist/ui/button.js +2 -2
- package/dist/ui/character-count.d.ts +11 -15
- package/dist/ui/character-count.js +3 -3
- package/dist/ui/checkboxes.d.ts +9 -17
- package/dist/ui/checkboxes.js +2 -2
- package/dist/ui/cookie-banner.d.ts +12 -21
- package/dist/ui/cookie-banner.js +2 -2
- package/dist/ui/date-input.d.ts +10 -16
- package/dist/ui/date-input.js +2 -2
- package/dist/ui/details.d.ts +8 -17
- package/dist/ui/details.js +2 -2
- package/dist/ui/error-message.d.ts +4 -4
- package/dist/ui/error-message.js +2 -2
- package/dist/ui/error-summary.d.ts +5 -4
- package/dist/ui/error-summary.js +2 -2
- package/dist/ui/exit-this-page.d.ts +4 -4
- package/dist/ui/exit-this-page.js +3 -3
- package/dist/ui/feedback.d.ts +13 -0
- package/dist/ui/feedback.js +2 -0
- package/dist/ui/fieldset.d.ts +9 -13
- package/dist/ui/fieldset.js +2 -2
- package/dist/ui/file-upload.d.ts +4 -5
- package/dist/ui/file-upload.js +2 -2
- package/dist/ui/footer.d.ts +39 -50
- package/dist/ui/footer.js +2 -2
- package/dist/ui/generic-header.d.ts +10 -15
- package/dist/ui/generic-header.js +2 -2
- package/dist/ui/header.d.ts +14 -32
- package/dist/ui/header.js +2 -2
- package/dist/ui/hint.d.ts +4 -5
- package/dist/ui/hint.js +2 -2
- package/dist/ui/inset-text.d.ts +4 -5
- package/dist/ui/inset-text.js +2 -2
- package/dist/ui/label.d.ts +7 -9
- package/dist/ui/label.js +2 -2
- package/dist/ui/language-navigation.d.ts +20 -0
- package/dist/ui/language-navigation.js +2 -0
- package/dist/ui/link.d.ts +5 -6
- package/dist/ui/link.js +2 -2
- package/dist/ui/notification-banner.d.ts +15 -24
- package/dist/ui/notification-banner.js +2 -2
- package/dist/ui/pagination.d.ts +20 -34
- package/dist/ui/pagination.js +2 -2
- package/dist/ui/panel.d.ts +11 -12
- package/dist/ui/panel.js +2 -2
- package/dist/ui/password-input.d.ts +7 -6
- package/dist/ui/password-input.js +4 -4
- package/dist/ui/phase-banner.d.ts +10 -17
- package/dist/ui/phase-banner.js +2 -2
- package/dist/ui/radios.d.ts +8 -13
- package/dist/ui/radios.js +2 -2
- package/dist/ui/select.d.ts +6 -30
- package/dist/ui/select.js +2 -2
- package/dist/ui/service-navigation.d.ts +15 -23
- package/dist/ui/service-navigation.js +2 -2
- package/dist/ui/skip-link.d.ts +4 -5
- package/dist/ui/skip-link.js +2 -2
- package/dist/ui/summary-list.d.ts +24 -41
- package/dist/ui/summary-list.js +2 -2
- package/dist/ui/table.d.ts +21 -26
- package/dist/ui/table.js +2 -2
- package/dist/ui/tabs.d.ts +7 -9
- package/dist/ui/tabs.js +2 -2
- package/dist/ui/tag.d.ts +4 -6
- package/dist/ui/tag.js +2 -2
- package/dist/ui/task-list.d.ts +14 -23
- package/dist/ui/task-list.js +2 -2
- package/dist/ui/text-input.d.ts +5 -6
- package/dist/ui/text-input.js +2 -2
- package/dist/ui/textarea.d.ts +4 -6
- package/dist/ui/textarea.js +2 -2
- package/dist/ui/warning-text.d.ts +4 -4
- package/dist/ui/warning-text.js +2 -2
- package/package.json +111 -263
- package/registry/default/theme/govuk-tokens.css +207 -40
- package/dist/chunk-2QKZ6DPC.js +0 -27
- package/dist/chunk-4MXR4WNS.js +0 -17
- package/dist/chunk-5AKGRLG2.js +0 -190
- package/dist/chunk-5H55YDJS.js +0 -69
- package/dist/chunk-72PH2FMG.js +0 -180
- package/dist/chunk-GUZIKVAE.js +0 -119
- package/dist/chunk-JESMK3XK.js +0 -105
- package/dist/chunk-JFZN5XP6.js +0 -88
- package/dist/chunk-NRXTKHI2.js +0 -169
- package/dist/chunk-PGZHPAT5.js +0 -183
- package/dist/chunk-RPV43YDC.js +0 -93
- package/dist/chunk-VQOCX44T.js +0 -41
- package/dist/chunk-WONVZ7WK.js +0 -29
- package/dist/chunk-WPPWPEFV.js +0 -150
- package/dist/chunk-XQOYWPKV.js +0 -48
- package/dist/chunk-YAKI4SI7.js +0 -205
- package/dist/chunk-YCLGXX3R.js +0 -68
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
import { cn } from './chunk-
|
|
1
|
+
import { cn } from './chunk-GKHD33N6.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
var TaskList = ({ className,
|
|
4
|
+
var TaskList = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
5
5
|
"ul",
|
|
6
6
|
{
|
|
7
|
-
ref,
|
|
8
7
|
className: cn(
|
|
9
8
|
"font-govuk text-govuk-body text-govuk-black",
|
|
10
|
-
"mt-0 mb-govuk-
|
|
9
|
+
"mt-0 mb-govuk-r6 p-0 list-none",
|
|
11
10
|
className
|
|
12
11
|
),
|
|
13
|
-
...props
|
|
14
|
-
children
|
|
12
|
+
...props
|
|
15
13
|
}
|
|
16
14
|
);
|
|
17
|
-
var TaskListItem = ({
|
|
18
|
-
className,
|
|
19
|
-
hasLink,
|
|
20
|
-
ref,
|
|
21
|
-
children,
|
|
22
|
-
...props
|
|
23
|
-
}) => /* @__PURE__ */ jsx(
|
|
15
|
+
var TaskListItem = ({ className, hasLink, ...props }) => /* @__PURE__ */ jsx(
|
|
24
16
|
"li",
|
|
25
17
|
{
|
|
26
|
-
ref,
|
|
27
18
|
className: cn(
|
|
28
19
|
"table relative w-full mb-0",
|
|
29
20
|
"py-govuk-2",
|
|
@@ -32,75 +23,54 @@ var TaskListItem = ({
|
|
|
32
23
|
hasLink && "hover:bg-govuk-light-grey",
|
|
33
24
|
className
|
|
34
25
|
),
|
|
35
|
-
...props
|
|
36
|
-
children
|
|
26
|
+
...props
|
|
37
27
|
}
|
|
38
28
|
);
|
|
39
29
|
var TaskListNameAndHint = ({
|
|
40
30
|
className,
|
|
41
|
-
ref,
|
|
42
|
-
children,
|
|
43
31
|
...props
|
|
44
32
|
}) => /* @__PURE__ */ jsx(
|
|
45
33
|
"div",
|
|
46
34
|
{
|
|
47
|
-
ref,
|
|
48
35
|
className: cn("table-cell align-top text-govuk-black", className),
|
|
49
|
-
...props
|
|
50
|
-
children
|
|
36
|
+
...props
|
|
51
37
|
}
|
|
52
38
|
);
|
|
53
|
-
var TaskListLink = ({
|
|
54
|
-
className,
|
|
55
|
-
ref,
|
|
56
|
-
children,
|
|
57
|
-
...props
|
|
58
|
-
}) => /* @__PURE__ */ jsx(
|
|
39
|
+
var TaskListLink = ({ className, children, ...props }) => /* @__PURE__ */ jsx(
|
|
59
40
|
"a",
|
|
60
41
|
{
|
|
61
|
-
ref,
|
|
62
42
|
className: cn(
|
|
63
|
-
"text-govuk-
|
|
43
|
+
"text-govuk-link underline govuk-link-underline",
|
|
44
|
+
"visited:text-govuk-visited active:text-govuk-black",
|
|
64
45
|
"hover:text-govuk-brand-hover hover:govuk-link-underline-hover",
|
|
65
46
|
"focus:govuk-link-focus",
|
|
66
|
-
|
|
47
|
+
"after:block after:absolute after:inset-0",
|
|
67
48
|
className
|
|
68
49
|
),
|
|
69
50
|
...props,
|
|
70
51
|
children
|
|
71
52
|
}
|
|
72
53
|
);
|
|
73
|
-
var TaskListHint = ({
|
|
74
|
-
className,
|
|
75
|
-
ref,
|
|
76
|
-
children,
|
|
77
|
-
...props
|
|
78
|
-
}) => /* @__PURE__ */ jsx(
|
|
54
|
+
var TaskListHint = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
79
55
|
"div",
|
|
80
56
|
{
|
|
81
|
-
ref,
|
|
82
57
|
className: cn("mt-govuk-1 text-govuk-dark-grey", className),
|
|
83
|
-
...props
|
|
84
|
-
children
|
|
58
|
+
...props
|
|
85
59
|
}
|
|
86
60
|
);
|
|
87
61
|
var TaskListStatus = ({
|
|
88
62
|
className,
|
|
89
63
|
cannotStartYet,
|
|
90
|
-
ref,
|
|
91
|
-
children,
|
|
92
64
|
...props
|
|
93
65
|
}) => /* @__PURE__ */ jsx(
|
|
94
66
|
"div",
|
|
95
67
|
{
|
|
96
|
-
ref,
|
|
97
68
|
className: cn(
|
|
98
69
|
"table-cell pl-govuk-2 text-right align-top",
|
|
99
70
|
cannotStartYet ? "text-govuk-dark-grey" : "text-govuk-black",
|
|
100
71
|
className
|
|
101
72
|
),
|
|
102
|
-
...props
|
|
103
|
-
children
|
|
73
|
+
...props
|
|
104
74
|
}
|
|
105
75
|
);
|
|
106
76
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { cn } from './chunk-GKHD33N6.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var PhaseBanner = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
5
|
+
"div",
|
|
6
|
+
{
|
|
7
|
+
className: cn(
|
|
8
|
+
"govuk-width-container [.govuk-width-container_&]:mx-0",
|
|
9
|
+
"py-govuk-2 border-b border-govuk-mid-grey",
|
|
10
|
+
className
|
|
11
|
+
),
|
|
12
|
+
...props
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
var PhaseBannerContent = ({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}) => /* @__PURE__ */ jsx(
|
|
19
|
+
"p",
|
|
20
|
+
{
|
|
21
|
+
className: cn(
|
|
22
|
+
"table m-0 font-govuk text-govuk-phase-banner text-govuk-black",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
var PhaseBannerTag = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
29
|
+
"span",
|
|
30
|
+
{
|
|
31
|
+
className: cn(
|
|
32
|
+
"mr-govuk-3 sm:mr-govuk-2 *:text-govuk-body-small",
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
var PhaseBannerText = ({ className, ...props }) => /* @__PURE__ */ jsx("span", { className: cn("table-cell align-middle", className), ...props });
|
|
39
|
+
|
|
40
|
+
export { PhaseBanner, PhaseBannerContent, PhaseBannerTag, PhaseBannerText };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { cn } from './chunk-GKHD33N6.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
var footerSectionWidths = {
|
|
5
|
+
full: "w-full",
|
|
6
|
+
"one-half": "sm:inline-block sm:w-1/2 sm:align-top",
|
|
7
|
+
"one-third": "sm:inline-block sm:w-1/3 sm:align-top",
|
|
8
|
+
"two-thirds": "sm:inline-block sm:w-2/3 sm:align-top"
|
|
9
|
+
};
|
|
10
|
+
var footerLinkStyles = [
|
|
11
|
+
"underline govuk-link-underline",
|
|
12
|
+
"text-govuk-link visited:text-govuk-visited",
|
|
13
|
+
"hover:text-govuk-brand-hover hover:govuk-link-underline-hover",
|
|
14
|
+
"active:text-govuk-black",
|
|
15
|
+
"focus:govuk-link-focus"
|
|
16
|
+
];
|
|
17
|
+
var Footer = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
18
|
+
"footer",
|
|
19
|
+
{
|
|
20
|
+
className: cn(
|
|
21
|
+
"font-govuk text-govuk-body text-govuk-black",
|
|
22
|
+
"border-t-govuk-wide border-t-govuk-brand",
|
|
23
|
+
"pt-govuk-5 sm:pt-govuk-7 pb-govuk-3 sm:pb-govuk-5",
|
|
24
|
+
"bg-govuk-surface",
|
|
25
|
+
"print:border-t-current print:bg-transparent",
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
...props
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
var FooterContainer = ({
|
|
32
|
+
className,
|
|
33
|
+
fullWidth,
|
|
34
|
+
...props
|
|
35
|
+
}) => /* @__PURE__ */ jsx(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: cn(
|
|
39
|
+
fullWidth ? "px-govuk-3" : "govuk-width-container",
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
...props
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
var FooterCrown = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
46
|
+
"svg",
|
|
47
|
+
{
|
|
48
|
+
focusable: "false",
|
|
49
|
+
role: "presentation",
|
|
50
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
51
|
+
viewBox: "0 0 64 60",
|
|
52
|
+
height: "30",
|
|
53
|
+
width: "32",
|
|
54
|
+
fill: "currentcolor",
|
|
55
|
+
className: cn("block mb-govuk-5", className),
|
|
56
|
+
...props,
|
|
57
|
+
children: /* @__PURE__ */ jsxs("g", { children: [
|
|
58
|
+
/* @__PURE__ */ jsx("circle", { cx: "20", cy: "17.6", r: "3.7" }),
|
|
59
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.2", cy: "23.5", r: "3.7" }),
|
|
60
|
+
/* @__PURE__ */ jsx("circle", { cx: "3.7", cy: "33.2", r: "3.7" }),
|
|
61
|
+
/* @__PURE__ */ jsx("circle", { cx: "31.7", cy: "30.6", r: "3.7" }),
|
|
62
|
+
/* @__PURE__ */ jsx("circle", { cx: "43.3", cy: "17.6", r: "3.7" }),
|
|
63
|
+
/* @__PURE__ */ jsx("circle", { cx: "53.2", cy: "23.5", r: "3.7" }),
|
|
64
|
+
/* @__PURE__ */ jsx("circle", { cx: "59.7", cy: "33.2", r: "3.7" }),
|
|
65
|
+
/* @__PURE__ */ jsx("circle", { cx: "31.7", cy: "30.6", r: "3.7" }),
|
|
66
|
+
/* @__PURE__ */ jsx("path", { d: "M33.1,9.8c.2-.1.3-.3.5-.5l4.6,2.4v-6.8l-4.6,1.5c-.1-.2-.3-.3-.5-.5l1.9-5.9h-6.7l1.9,5.9c-.2.1-.3.3-.5.5l-4.6-1.5v6.8l4.6-2.4c.1.2.3.3.5.5l-2.6,8c-.9,2.8,1.2,5.7,4.1,5.7h0c3,0,5.1-2.9,4.1-5.7l-2.6-8ZM37,37.9s-3.4,3.8-4.1,6.1c2.2,0,4.2-.5,6.4-2.8l-.7,8.5c-2-2.8-4.4-4.1-5.7-3.8.1,3.1.5,6.7,5.8,7.2,3.7.3,6.7-1.5,7-3.8.4-2.6-2-4.3-3.7-1.6-1.4-4.5,2.4-6.1,4.9-3.2-1.9-4.5-1.8-7.7,2.4-10.9,3,4,2.6,7.3-1.2,11.1,2.4-1.3,6.2,0,4,4.6-1.2-2.8-3.7-2.2-4.2.2-.3,1.7.7,3.7,3,4.2,1.9.3,4.7-.9,7-5.9-1.3,0-2.4.7-3.9,1.7l2.4-8c.6,2.3,1.4,3.7,2.2,4.5.6-1.6.5-2.8,0-5.3l5,1.8c-2.6,3.6-5.2,8.7-7.3,17.5-7.4-1.1-15.7-1.7-24.5-1.7h0c-8.8,0-17.1.6-24.5,1.7-2.1-8.9-4.7-13.9-7.3-17.5l5-1.8c-.5,2.5-.6,3.7,0,5.3.8-.8,1.6-2.3,2.2-4.5l2.4,8c-1.5-1-2.6-1.7-3.9-1.7,2.3,5,5.2,6.2,7,5.9,2.3-.4,3.3-2.4,3-4.2-.5-2.4-3-3.1-4.2-.2-2.2-4.6,1.6-6,4-4.6-3.7-3.7-4.2-7.1-1.2-11.1,4.2,3.2,4.3,6.4,2.4,10.9,2.5-2.8,6.3-1.3,4.9,3.2-1.8-2.7-4.1-1-3.7,1.6.3,2.3,3.3,4.1,7,3.8,5.4-.5,5.7-4.2,5.8-7.2-1.3-.2-3.7,1-5.7,3.8l-.7-8.5c2.2,2.3,4.2,2.7,6.4,2.8-.7-2.3-4.1-6.1-4.1-6.1h10.6,0Z" })
|
|
67
|
+
] })
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
var FooterNavigation = ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: cn("-mx-govuk-3", className), ...props });
|
|
71
|
+
var FooterSection = ({
|
|
72
|
+
className,
|
|
73
|
+
width = "full",
|
|
74
|
+
...props
|
|
75
|
+
}) => /* @__PURE__ */ jsx(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: cn(
|
|
79
|
+
footerSectionWidths[width],
|
|
80
|
+
"px-govuk-3 mb-govuk-6",
|
|
81
|
+
className
|
|
82
|
+
),
|
|
83
|
+
...props
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
var FooterHeading = ({
|
|
87
|
+
className,
|
|
88
|
+
children,
|
|
89
|
+
...props
|
|
90
|
+
}) => /* @__PURE__ */ jsx(
|
|
91
|
+
"h2",
|
|
92
|
+
{
|
|
93
|
+
className: cn(
|
|
94
|
+
"text-govuk-heading-m font-bold text-govuk-black",
|
|
95
|
+
"mb-govuk-6 pb-govuk-2 sm:pb-govuk-4",
|
|
96
|
+
"border-b border-govuk-surface-border",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
99
|
+
...props,
|
|
100
|
+
children
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
var FooterList = ({ className, columns = 1, ...props }) => /* @__PURE__ */ jsx(
|
|
104
|
+
"ul",
|
|
105
|
+
{
|
|
106
|
+
className: cn(
|
|
107
|
+
"list-none m-0 p-0",
|
|
108
|
+
"gap-x-govuk-6",
|
|
109
|
+
columns === 2 && "md:columns-2",
|
|
110
|
+
columns === 3 && "md:columns-3",
|
|
111
|
+
className
|
|
112
|
+
),
|
|
113
|
+
...props
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
var FooterListItem = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
117
|
+
"li",
|
|
118
|
+
{
|
|
119
|
+
className: cn("mb-govuk-3 sm:mb-govuk-4", "last:mb-0", className),
|
|
120
|
+
...props
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
var FooterLink = ({ className, children, ...props }) => /* @__PURE__ */ jsx("a", { className: cn(footerLinkStyles, className), ...props, children });
|
|
124
|
+
var FooterSectionBreak = () => /* @__PURE__ */ jsx("hr", { className: "m-0 mb-govuk-6 sm:mb-govuk-8 border-0 border-b border-govuk-surface-border" });
|
|
125
|
+
var FooterMeta = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
className: cn(
|
|
129
|
+
"flex flex-wrap items-end justify-center -mx-govuk-3",
|
|
130
|
+
className
|
|
131
|
+
),
|
|
132
|
+
...props
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
var FooterMetaItem = ({ className, grow, ...props }) => /* @__PURE__ */ jsx(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
className: cn(
|
|
139
|
+
"mx-govuk-3 mb-govuk-5",
|
|
140
|
+
grow && "flex-1 max-sm:basis-80",
|
|
141
|
+
className
|
|
142
|
+
),
|
|
143
|
+
...props
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
var FooterInlineList = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
147
|
+
"ul",
|
|
148
|
+
{
|
|
149
|
+
className: cn("list-none m-0 mb-govuk-3 p-0", "last:mb-0", className),
|
|
150
|
+
...props
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
var FooterInlineListItem = ({
|
|
154
|
+
className,
|
|
155
|
+
...props
|
|
156
|
+
}) => /* @__PURE__ */ jsx(
|
|
157
|
+
"li",
|
|
158
|
+
{
|
|
159
|
+
className: cn("inline-block mr-govuk-3 mb-govuk-1", className),
|
|
160
|
+
...props
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
var FooterLicenceLogo = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
164
|
+
"svg",
|
|
165
|
+
{
|
|
166
|
+
"aria-hidden": "true",
|
|
167
|
+
focusable: "false",
|
|
168
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
169
|
+
viewBox: "0 0 483.2 195.7",
|
|
170
|
+
height: "17",
|
|
171
|
+
width: "41",
|
|
172
|
+
className: cn("inline-block align-top mr-govuk-2 max-md:mb-govuk-3", className),
|
|
173
|
+
...props,
|
|
174
|
+
children: /* @__PURE__ */ jsx(
|
|
175
|
+
"path",
|
|
176
|
+
{
|
|
177
|
+
fill: "currentColor",
|
|
178
|
+
d: "M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
var FooterContentLicence = ({
|
|
184
|
+
className,
|
|
185
|
+
...props
|
|
186
|
+
}) => /* @__PURE__ */ jsx("span", { className: cn("inline-block text-balance", className), ...props });
|
|
187
|
+
|
|
188
|
+
export { Footer, FooterContainer, FooterContentLicence, FooterCrown, FooterHeading, FooterInlineList, FooterInlineListItem, FooterLicenceLogo, FooterLink, FooterList, FooterListItem, FooterMeta, FooterMetaItem, FooterNavigation, FooterSection, FooterSectionBreak };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
export { cn } from './lib/utils.js';
|
|
1
|
+
export { cn, mergeRefs } from './lib/utils.js';
|
|
2
2
|
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeading, AccordionHeadingProps, AccordionProps, AccordionSection, AccordionSectionProps } from './ui/accordion.js';
|
|
3
3
|
export { BackLink, BackLinkProps } from './ui/back-link.js';
|
|
4
4
|
export { Breadcrumbs, BreadcrumbsLink, BreadcrumbsLinkProps, BreadcrumbsList, BreadcrumbsListItem, BreadcrumbsListItemProps, BreadcrumbsListProps, BreadcrumbsProps } from './ui/breadcrumbs.js';
|
|
5
5
|
export { Button, ButtonProps, ButtonVariant, buttonVariants } from './ui/button.js';
|
|
6
6
|
export { CharacterCount, CharacterCountMessage, CharacterCountMessageProps, CharacterCountProps } from './ui/character-count.js';
|
|
7
|
-
export { CookieBanner, CookieBannerActions, CookieBannerActionsProps, CookieBannerContent, CookieBannerContentProps, CookieBannerHeading, CookieBannerHeadingProps, CookieBannerMessage, CookieBannerMessageProps, CookieBannerProps } from './ui/cookie-banner.js';
|
|
8
7
|
export { Checkboxes, CheckboxesConditional, CheckboxesConditionalProps, CheckboxesDivider, CheckboxesDividerProps, CheckboxesHint, CheckboxesHintProps, CheckboxesItem, CheckboxesItemProps, CheckboxesProps } from './ui/checkboxes.js';
|
|
9
|
-
export {
|
|
8
|
+
export { CookieBanner, CookieBannerActions, CookieBannerActionsProps, CookieBannerContent, CookieBannerContentProps, CookieBannerHeading, CookieBannerHeadingProps, CookieBannerMessage, CookieBannerMessageProps, CookieBannerProps } from './ui/cookie-banner.js';
|
|
10
9
|
export { DateInput, DateInputInput, DateInputInputProps, DateInputItem, DateInputItemProps, DateInputLabel, DateInputLabelProps, DateInputProps } from './ui/date-input.js';
|
|
11
10
|
export { Details, DetailsProps, DetailsSummary, DetailsSummaryProps, DetailsText, DetailsTextProps } from './ui/details.js';
|
|
11
|
+
export { ErrorMessage, ErrorMessageProps } from './ui/error-message.js';
|
|
12
12
|
export { ErrorSummary, ErrorSummaryItem, ErrorSummaryProps } from './ui/error-summary.js';
|
|
13
13
|
export { ExitThisPage, ExitThisPageProps } from './ui/exit-this-page.js';
|
|
14
|
+
export { Feedback, FeedbackBody, FeedbackBodyProps, FeedbackProps, FeedbackTitle, FeedbackTitleProps } from './ui/feedback.js';
|
|
14
15
|
export { Fieldset, FieldsetHeading, FieldsetHeadingProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, fieldsetLegendVariants } from './ui/fieldset.js';
|
|
15
|
-
export { FileUpload, FileUploadProps } from './ui/file-upload.js';
|
|
16
|
-
export {
|
|
16
|
+
export { FileUpload, FileUploadProps, fileUploadButtonVariants } from './ui/file-upload.js';
|
|
17
|
+
export { Footer, FooterContainer, FooterContainerProps, FooterContentLicence, FooterContentLicenceProps, FooterCrown, FooterCrownProps, FooterHeading, FooterHeadingProps, FooterInlineList, FooterInlineListItem, FooterInlineListItemProps, FooterInlineListProps, FooterLicenceLogo, FooterLicenceLogoProps, FooterLink, FooterLinkProps, FooterList, FooterListItem, FooterListItemProps, FooterListProps, FooterMeta, FooterMetaItem, FooterMetaItemProps, FooterMetaProps, FooterNavigation, FooterNavigationProps, FooterProps, FooterSection, FooterSectionBreak, FooterSectionProps } from './ui/footer.js';
|
|
17
18
|
export { GenericHeader, GenericHeaderContainer, GenericHeaderContainerProps, GenericHeaderLink, GenericHeaderLinkProps, GenericHeaderLogo, GenericHeaderLogoProps, GenericHeaderProps } from './ui/generic-header.js';
|
|
18
|
-
export {
|
|
19
|
+
export { Header, HeaderContainer, HeaderContainerProps, HeaderLink, HeaderLinkProps, HeaderLogo, HeaderLogoProps, HeaderLogotype, HeaderLogotypeProps, HeaderProductName, HeaderProductNameProps, HeaderProps } from './ui/header.js';
|
|
19
20
|
export { Hint, HintProps } from './ui/hint.js';
|
|
20
21
|
export { InsetText, InsetTextProps } from './ui/inset-text.js';
|
|
21
22
|
export { Label, LabelProps, LabelWrapper, LabelWrapperProps, labelVariants } from './ui/label.js';
|
|
23
|
+
export { LanguageNavigation, LanguageNavigationCurrent, LanguageNavigationCurrentProps, LanguageNavigationItem, LanguageNavigationItemProps, LanguageNavigationLink, LanguageNavigationLinkProps, LanguageNavigationProps } from './ui/language-navigation.js';
|
|
22
24
|
export { Link, LinkProps, LinkVariant, linkVariants } from './ui/link.js';
|
|
23
25
|
export { NotificationBanner, NotificationBannerContent, NotificationBannerContentProps, NotificationBannerHeader, NotificationBannerHeaderProps, NotificationBannerHeading, NotificationBannerHeadingProps, NotificationBannerLink, NotificationBannerLinkProps, NotificationBannerProps, NotificationBannerTitle, NotificationBannerTitleProps } from './ui/notification-banner.js';
|
|
24
|
-
export { Panel, PanelBody, PanelBodyProps, PanelProps, PanelTitle, PanelTitleProps } from './ui/panel.js';
|
|
25
|
-
export { PasswordInput, PasswordInputProps } from './ui/password-input.js';
|
|
26
26
|
export { NextArrow, Pagination, PaginationEllipsis, PaginationEllipsisProps, PaginationItem, PaginationItemProps, PaginationLink, PaginationLinkLabel, PaginationLinkLabelProps, PaginationLinkProps, PaginationLinkTitle, PaginationLinkTitleProps, PaginationList, PaginationListProps, PaginationNext, PaginationNextProps, PaginationPrevious, PaginationPreviousProps, PaginationProps, PrevArrow } from './ui/pagination.js';
|
|
27
|
+
export { Panel, PanelActions, PanelActionsProps, PanelBody, PanelBodyProps, PanelProps, PanelTitle, PanelTitleProps } from './ui/panel.js';
|
|
28
|
+
export { PasswordInput, PasswordInputProps } from './ui/password-input.js';
|
|
27
29
|
export { PhaseBanner, PhaseBannerContent, PhaseBannerContentProps, PhaseBannerProps, PhaseBannerTag, PhaseBannerTagProps, PhaseBannerText, PhaseBannerTextProps } from './ui/phase-banner.js';
|
|
28
30
|
export { Radios, RadiosDivider, RadiosDividerProps, RadiosHint, RadiosHintProps, RadiosItem, RadiosItemProps, RadiosProps } from './ui/radios.js';
|
|
29
|
-
export { Select,
|
|
31
|
+
export { Select, SelectProps, selectVariants } from './ui/select.js';
|
|
30
32
|
export { ServiceNavigation, ServiceNavigationContainer, ServiceNavigationContainerProps, ServiceNavigationItem, ServiceNavigationItemProps, ServiceNavigationLink, ServiceNavigationLinkProps, ServiceNavigationNav, ServiceNavigationNavProps, ServiceNavigationProps, ServiceNavigationServiceName, ServiceNavigationServiceNameProps } from './ui/service-navigation.js';
|
|
31
33
|
export { SkipLink, SkipLinkProps } from './ui/skip-link.js';
|
|
32
|
-
export { SummaryList, SummaryListActions, SummaryListActionsProps, SummaryListCard, SummaryListCardAction, SummaryListCardActionProps, SummaryListCardActions, SummaryListCardActionsProps, SummaryListCardContent, SummaryListCardHeader, SummaryListCardProps, SummaryListCardTitle, SummaryListCardTitleProps, SummaryListKey, SummaryListKeyProps, SummaryListProps, SummaryListRow, SummaryListRowProps, SummaryListValue, SummaryListValueProps } from './ui/summary-list.js';
|
|
33
|
-
export {
|
|
34
|
-
export { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCaptionSize, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, tableCaptionVariants } from './ui/table.js';
|
|
34
|
+
export { SummaryList, SummaryListActions, SummaryListActionsProps, SummaryListCard, SummaryListCardAction, SummaryListCardActionProps, SummaryListCardActions, SummaryListCardActionsProps, SummaryListCardContent, SummaryListCardContentProps, SummaryListCardHeader, SummaryListCardHeaderProps, SummaryListCardProps, SummaryListCardTitle, SummaryListCardTitleProps, SummaryListKey, SummaryListKeyProps, SummaryListProps, SummaryListRow, SummaryListRowProps, SummaryListValue, SummaryListValueProps } from './ui/summary-list.js';
|
|
35
|
+
export { Table, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCaptionSize, TableCell, TableCellProps, TableContainer, TableContainerProps, TableHead, TableHeadProps, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, tableCaptionVariants } from './ui/table.js';
|
|
35
36
|
export { Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, TabsTab, TabsTabProps } from './ui/tabs.js';
|
|
37
|
+
export { Tag, TagColour, TagProps, tagVariants } from './ui/tag.js';
|
|
36
38
|
export { TaskList, TaskListHint, TaskListHintProps, TaskListItem, TaskListItemProps, TaskListLink, TaskListLinkProps, TaskListNameAndHint, TaskListNameAndHintProps, TaskListProps, TaskListStatus, TaskListStatusProps } from './ui/task-list.js';
|
|
37
39
|
export { TextInput, TextInputProps, textInputVariants } from './ui/text-input.js';
|
|
38
40
|
export { Textarea, TextareaProps, textareaVariants } from './ui/textarea.js';
|
|
@@ -41,10 +43,10 @@ import 'clsx';
|
|
|
41
43
|
import 'react';
|
|
42
44
|
import '@base-ui/react/accordion';
|
|
43
45
|
import 'class-variance-authority/types';
|
|
46
|
+
import '@base-ui/react/button';
|
|
44
47
|
import 'class-variance-authority';
|
|
45
48
|
import '@base-ui/react/checkbox';
|
|
46
49
|
import '@base-ui/react/checkbox-group';
|
|
47
|
-
import '@base-ui/react/collapsible';
|
|
48
50
|
import '@base-ui/react/radio-group';
|
|
49
51
|
import '@base-ui/react/radio';
|
|
50
52
|
import '@base-ui/react/tabs';
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
1
|
+
export { WarningText } from './chunk-4TBXH62Z.js';
|
|
2
|
+
export { ServiceNavigation, ServiceNavigationContainer, ServiceNavigationItem, ServiceNavigationLink, ServiceNavigationNav, ServiceNavigationServiceName } from './chunk-CYBPAHLZ.js';
|
|
3
|
+
export { SkipLink } from './chunk-W4CWUYTA.js';
|
|
4
|
+
export { SummaryList, SummaryListActions, SummaryListCard, SummaryListCardAction, SummaryListCardActions, SummaryListCardContent, SummaryListCardHeader, SummaryListCardTitle, SummaryListKey, SummaryListRow, SummaryListValue } from './chunk-GLDCEDTR.js';
|
|
5
|
+
export { Table, TableBody, TableCaption, TableCell, TableContainer, TableHead, TableHeader, TableRow, tableCaptionVariants } from './chunk-7IOR7UNU.js';
|
|
6
|
+
export { Tabs, TabsList, TabsPanel, TabsTab } from './chunk-N5PY3VZH.js';
|
|
7
|
+
export { Tag, tagVariants } from './chunk-VRGDQ3SF.js';
|
|
8
|
+
export { TaskList, TaskListHint, TaskListItem, TaskListLink, TaskListNameAndHint, TaskListStatus } from './chunk-YF6EZ57H.js';
|
|
9
|
+
export { Link, linkVariants } from './chunk-HBLVAX45.js';
|
|
10
|
+
export { NotificationBanner, NotificationBannerContent, NotificationBannerHeader, NotificationBannerHeading, NotificationBannerLink, NotificationBannerTitle } from './chunk-KXQGZLMK.js';
|
|
11
|
+
export { NextArrow, Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationLinkLabel, PaginationLinkTitle, PaginationList, PaginationNext, PaginationPrevious, PrevArrow } from './chunk-6WLHJ5MN.js';
|
|
12
|
+
export { Panel, PanelActions, PanelBody, PanelTitle } from './chunk-CBT6WCJ7.js';
|
|
13
|
+
export { PasswordInput } from './chunk-OQILIT3B.js';
|
|
14
|
+
export { TextInput, textInputVariants } from './chunk-VCJE5UO2.js';
|
|
15
|
+
export { PhaseBanner, PhaseBannerContent, PhaseBannerTag, PhaseBannerText } from './chunk-ZAKQHDVD.js';
|
|
16
|
+
export { Radios, RadiosDivider, RadiosHint, RadiosItem } from './chunk-4GQRYMDK.js';
|
|
17
|
+
export { Select, selectVariants } from './chunk-UXOJELVU.js';
|
|
18
|
+
export { FileUpload, fileUploadButtonVariants } from './chunk-7Q2C5RB7.js';
|
|
19
|
+
export { Footer, FooterContainer, FooterContentLicence, FooterCrown, FooterHeading, FooterInlineList, FooterInlineListItem, FooterLicenceLogo, FooterLink, FooterList, FooterListItem, FooterMeta, FooterMetaItem, FooterNavigation, FooterSection, FooterSectionBreak } from './chunk-ZJB7BBTN.js';
|
|
20
|
+
export { GenericHeader, GenericHeaderContainer, GenericHeaderLink, GenericHeaderLogo } from './chunk-UK7RLSTJ.js';
|
|
21
|
+
export { Header, HeaderContainer, HeaderLink, HeaderLogo, HeaderLogotype, HeaderProductName } from './chunk-RGXB6M3G.js';
|
|
22
|
+
export { Hint } from './chunk-TICBCBDN.js';
|
|
23
|
+
export { InsetText } from './chunk-MYMVHSRJ.js';
|
|
24
|
+
export { Label, LabelWrapper, labelVariants } from './chunk-QKR7NELW.js';
|
|
25
|
+
export { LanguageNavigation, LanguageNavigationCurrent, LanguageNavigationItem, LanguageNavigationLink } from './chunk-VMI2XU5D.js';
|
|
26
|
+
export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage } from './chunk-FJHNUBEM.js';
|
|
27
|
+
export { DateInput, DateInputInput, DateInputItem, DateInputLabel } from './chunk-3UX7QPLM.js';
|
|
28
|
+
export { Details, DetailsSummary, DetailsText } from './chunk-C2YQVLZ7.js';
|
|
29
|
+
export { ErrorMessage } from './chunk-MFI5R2TJ.js';
|
|
30
|
+
export { ErrorSummary } from './chunk-TGNN5ZP3.js';
|
|
31
|
+
export { ExitThisPage } from './chunk-QPN5J5IU.js';
|
|
32
|
+
export { Feedback, FeedbackBody, FeedbackTitle } from './chunk-DZ3743JO.js';
|
|
33
|
+
export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants } from './chunk-D2T6BUOB.js';
|
|
34
|
+
export { Accordion, AccordionContent, AccordionHeading, AccordionSection } from './chunk-FVBDMMNR.js';
|
|
35
|
+
export { BackLink } from './chunk-VHSAXVCF.js';
|
|
36
|
+
export { Breadcrumbs, BreadcrumbsLink, BreadcrumbsList, BreadcrumbsListItem } from './chunk-2KB4IAMZ.js';
|
|
37
|
+
export { Button, buttonVariants } from './chunk-ASBIQC77.js';
|
|
38
|
+
export { CharacterCount, CharacterCountMessage } from './chunk-TAVSU2XB.js';
|
|
39
|
+
export { Textarea, textareaVariants } from './chunk-EDOSCND4.js';
|
|
40
|
+
export { Checkboxes, CheckboxesConditional, CheckboxesDivider, CheckboxesHint, CheckboxesItem } from './chunk-JCERRZV6.js';
|
|
41
|
+
export { cn, mergeRefs } from './chunk-GKHD33N6.js';
|
package/dist/lib/utils.d.ts
CHANGED
package/dist/lib/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { cn } from '../chunk-
|
|
1
|
+
export { cn, mergeRefs } from '../chunk-GKHD33N6.js';
|
package/dist/ui/accordion.d.ts
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
3
3
|
|
|
4
|
-
interface AccordionProps extends Omit<React.ComponentProps<typeof Accordion$1.Root>, 'className'> {
|
|
5
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
4
|
+
interface AccordionProps extends Omit<React.ComponentProps<typeof Accordion$1.Root>, 'className' | 'value' | 'onValueChange' | 'multiple' | 'loopFocus' | 'orientation'> {
|
|
6
5
|
className?: string;
|
|
7
6
|
showAllSections?: string[];
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
8
|
+
type AccordionSectionProps = React.ComponentProps<typeof Accordion$1.Item>;
|
|
13
9
|
interface AccordionHeadingProps extends Omit<React.ComponentProps<typeof Accordion$1.Trigger>, 'className'> {
|
|
14
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
15
10
|
className?: string;
|
|
16
11
|
summary?: React.ReactNode;
|
|
17
12
|
}
|
|
18
13
|
interface AccordionContentProps extends Omit<React.ComponentProps<typeof Accordion$1.Panel>, 'className'> {
|
|
19
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
20
14
|
className?: string;
|
|
21
15
|
}
|
|
22
|
-
declare const Accordion: ({ className,
|
|
23
|
-
declare const AccordionSection: (
|
|
24
|
-
declare const AccordionHeading: ({ className,
|
|
25
|
-
declare const AccordionContent: ({ className,
|
|
16
|
+
declare const Accordion: ({ className, children, showAllSections, defaultValue, ...props }: AccordionProps) => react.JSX.Element;
|
|
17
|
+
declare const AccordionSection: (props: AccordionSectionProps) => react.JSX.Element;
|
|
18
|
+
declare const AccordionHeading: ({ className, children, summary, ...props }: AccordionHeadingProps) => react.JSX.Element;
|
|
19
|
+
declare const AccordionContent: ({ className, ...props }: AccordionContentProps) => react.JSX.Element;
|
|
26
20
|
|
|
27
|
-
export { Accordion, AccordionContent,
|
|
21
|
+
export { Accordion, AccordionContent, AccordionHeading, AccordionSection };
|
|
22
|
+
export type { AccordionContentProps, AccordionHeadingProps, AccordionProps, AccordionSectionProps };
|
package/dist/ui/accordion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Accordion, AccordionContent, AccordionHeading, AccordionSection } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Accordion, AccordionContent, AccordionHeading, AccordionSection } from '../chunk-FVBDMMNR.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/back-link.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
interface BackLinkProps extends React.
|
|
4
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
3
|
+
interface BackLinkProps extends React.ComponentProps<'a'> {
|
|
5
4
|
inverse?: boolean;
|
|
6
5
|
}
|
|
7
|
-
declare const BackLink: ({ className, inverse,
|
|
6
|
+
declare const BackLink: ({ className, inverse, children, ...props }: BackLinkProps) => react.JSX.Element;
|
|
8
7
|
|
|
9
|
-
export { BackLink
|
|
8
|
+
export { BackLink };
|
|
9
|
+
export type { BackLinkProps };
|
package/dist/ui/back-link.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BackLink } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { BackLink } from '../chunk-VHSAXVCF.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/breadcrumbs.d.ts
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
interface BreadcrumbsProps extends React.
|
|
4
|
-
ref?: React.Ref<HTMLElement>;
|
|
3
|
+
interface BreadcrumbsProps extends React.ComponentProps<'nav'> {
|
|
5
4
|
collapseOnMobile?: boolean;
|
|
6
5
|
inverse?: boolean;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
16
|
-
}
|
|
17
|
-
declare const Breadcrumbs: ({ className, collapseOnMobile, inverse, ref, children, ...props }: BreadcrumbsProps) => react.JSX.Element;
|
|
18
|
-
declare const BreadcrumbsList: ({ className, ref, children, ...props }: BreadcrumbsListProps) => react.JSX.Element;
|
|
19
|
-
declare const BreadcrumbsListItem: ({ className, ref, children, ...props }: BreadcrumbsListItemProps) => react.JSX.Element;
|
|
20
|
-
declare const BreadcrumbsLink: ({ className, ref, children, ...props }: BreadcrumbsLinkProps) => react.JSX.Element;
|
|
7
|
+
type BreadcrumbsListProps = React.ComponentProps<'ol'>;
|
|
8
|
+
type BreadcrumbsListItemProps = React.ComponentProps<'li'>;
|
|
9
|
+
type BreadcrumbsLinkProps = React.ComponentProps<'a'>;
|
|
10
|
+
declare const Breadcrumbs: ({ className, collapseOnMobile, inverse, ...props }: BreadcrumbsProps) => react.JSX.Element;
|
|
11
|
+
declare const BreadcrumbsList: ({ className, ...props }: BreadcrumbsListProps) => react.JSX.Element;
|
|
12
|
+
declare const BreadcrumbsListItem: ({ className, children, ...props }: BreadcrumbsListItemProps) => react.JSX.Element;
|
|
13
|
+
declare const BreadcrumbsLink: ({ className, children, ...props }: BreadcrumbsLinkProps) => react.JSX.Element;
|
|
21
14
|
|
|
22
|
-
export { Breadcrumbs, BreadcrumbsLink,
|
|
15
|
+
export { Breadcrumbs, BreadcrumbsLink, BreadcrumbsList, BreadcrumbsListItem };
|
|
16
|
+
export type { BreadcrumbsLinkProps, BreadcrumbsListItemProps, BreadcrumbsListProps, BreadcrumbsProps };
|
package/dist/ui/breadcrumbs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Breadcrumbs, BreadcrumbsLink, BreadcrumbsList, BreadcrumbsListItem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Breadcrumbs, BreadcrumbsLink, BreadcrumbsList, BreadcrumbsListItem } from '../chunk-2KB4IAMZ.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|