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
package/dist/ui/button.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { Button as Button$1 } from '@base-ui/react/button';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
|
|
5
6
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
+
variant?: "inverse" | "start" | "default" | "secondary" | "warning" | null | undefined;
|
|
7
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
9
|
type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;
|
|
9
|
-
interface ButtonProps extends React.
|
|
10
|
-
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
focusableWhenDisabled?: boolean;
|
|
13
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
10
|
+
interface ButtonProps extends Omit<React.ComponentProps<typeof Button$1>, 'className'>, VariantProps<typeof buttonVariants> {
|
|
11
|
+
className?: string;
|
|
14
12
|
}
|
|
15
|
-
declare const Button: ({ className, variant,
|
|
13
|
+
declare const Button: ({ className, variant, children, ...props }: ButtonProps) => react.JSX.Element;
|
|
16
14
|
|
|
17
|
-
export { Button,
|
|
15
|
+
export { Button, buttonVariants };
|
|
16
|
+
export type { ButtonProps, ButtonVariant };
|
package/dist/ui/button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Button, buttonVariants } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Button, buttonVariants } from '../chunk-ASBIQC77.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
+
import { TextareaProps } from './textarea.js';
|
|
3
|
+
import 'class-variance-authority/types';
|
|
4
|
+
import 'class-variance-authority';
|
|
2
5
|
|
|
3
6
|
type CountMode = 'characters' | 'words';
|
|
4
|
-
interface CharacterCountProps {
|
|
7
|
+
interface CharacterCountProps extends Omit<TextareaProps, 'value' | 'defaultValue'> {
|
|
5
8
|
id: string;
|
|
6
9
|
maxCount: number;
|
|
7
10
|
mode?: CountMode;
|
|
8
11
|
threshold?: number;
|
|
9
|
-
rows?: number;
|
|
10
|
-
defaultValue?: string;
|
|
11
12
|
value?: string;
|
|
12
|
-
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
className?: string;
|
|
13
|
+
defaultValue?: string;
|
|
15
14
|
textareaClassName?: string;
|
|
16
|
-
|
|
17
|
-
name?: string;
|
|
18
|
-
ref?: React.Ref<HTMLTextAreaElement>;
|
|
15
|
+
descriptionText?: string;
|
|
19
16
|
formatMessage?: (remaining: number, mode: CountMode) => string;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
declare const CharacterCount: ({ id, maxCount, mode, threshold, rows, defaultValue, value, error, disabled, className, textareaClassName, onChange, name, ref, formatMessage, }: CharacterCountProps) => react.JSX.Element;
|
|
25
|
-
declare const CharacterCountMessage: ({ className, children, ref, ...props }: CharacterCountMessageProps) => react.JSX.Element;
|
|
18
|
+
type CharacterCountMessageProps = React.ComponentProps<'div'>;
|
|
19
|
+
declare const CharacterCount: ({ id, maxCount, mode, threshold, defaultValue, value, error, className, textareaClassName, descriptionText, onChange, formatMessage, "aria-describedby": ariaDescribedBy, ...props }: CharacterCountProps) => react.JSX.Element;
|
|
20
|
+
declare const CharacterCountMessage: ({ className, ...props }: CharacterCountMessageProps) => react.JSX.Element;
|
|
26
21
|
|
|
27
|
-
export { CharacterCount, CharacterCountMessage
|
|
22
|
+
export { CharacterCount, CharacterCountMessage };
|
|
23
|
+
export type { CharacterCountMessageProps, CharacterCountProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CharacterCount, CharacterCountMessage } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { CharacterCount, CharacterCountMessage } from '../chunk-TAVSU2XB.js';
|
|
2
|
+
import '../chunk-EDOSCND4.js';
|
|
3
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/checkboxes.d.ts
CHANGED
|
@@ -2,29 +2,21 @@ import * as react from 'react';
|
|
|
2
2
|
import { Checkbox } from '@base-ui/react/checkbox';
|
|
3
3
|
import { CheckboxGroup } from '@base-ui/react/checkbox-group';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type CheckboxesProps = React.ComponentProps<typeof CheckboxGroup>;
|
|
6
|
+
declare const Checkboxes: (props: CheckboxesProps) => react.JSX.Element;
|
|
7
|
+
interface CheckboxesItemProps extends Omit<React.ComponentProps<typeof Checkbox.Root>, 'className'> {
|
|
6
8
|
className?: string;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const Checkboxes: ({ className, children, ...props }: CheckboxesProps) => react.JSX.Element;
|
|
10
|
-
interface CheckboxesItemProps extends Omit<React.ComponentProps<typeof Checkbox.Root>, 'className' | 'children'> {
|
|
11
|
-
className?: string;
|
|
12
|
-
children: React.ReactNode;
|
|
13
9
|
small?: boolean;
|
|
14
10
|
}
|
|
15
|
-
declare const CheckboxesItem: ({ className, children,
|
|
16
|
-
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
11
|
+
declare const CheckboxesItem: ({ className, children, small, ...props }: CheckboxesItemProps) => react.JSX.Element;
|
|
12
|
+
type CheckboxesHintProps = React.ComponentProps<'span'>;
|
|
19
13
|
declare const CheckboxesHint: ({ className, ...props }: CheckboxesHintProps) => react.JSX.Element;
|
|
20
|
-
interface CheckboxesDividerProps extends React.
|
|
21
|
-
className?: string;
|
|
14
|
+
interface CheckboxesDividerProps extends React.ComponentProps<'div'> {
|
|
22
15
|
small?: boolean;
|
|
23
16
|
}
|
|
24
17
|
declare const CheckboxesDivider: ({ className, children, small, ...props }: CheckboxesDividerProps) => react.JSX.Element;
|
|
25
|
-
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
18
|
+
type CheckboxesConditionalProps = React.ComponentProps<'div'>;
|
|
28
19
|
declare const CheckboxesConditional: ({ className, ...props }: CheckboxesConditionalProps) => react.JSX.Element;
|
|
29
20
|
|
|
30
|
-
export { Checkboxes, CheckboxesConditional,
|
|
21
|
+
export { Checkboxes, CheckboxesConditional, CheckboxesDivider, CheckboxesHint, CheckboxesItem };
|
|
22
|
+
export type { CheckboxesConditionalProps, CheckboxesDividerProps, CheckboxesHintProps, CheckboxesItemProps, CheckboxesProps };
|
package/dist/ui/checkboxes.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Checkboxes, CheckboxesConditional, CheckboxesDivider, CheckboxesHint, CheckboxesItem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Checkboxes, CheckboxesConditional, CheckboxesDivider, CheckboxesHint, CheckboxesItem } from '../chunk-JCERRZV6.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
ref?: React.Ref<HTMLHeadingElement>;
|
|
14
|
-
}
|
|
15
|
-
interface CookieBannerActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
17
|
-
}
|
|
18
|
-
declare const CookieBanner: ({ className, ref, children, role, ...props }: CookieBannerProps) => react.JSX.Element;
|
|
19
|
-
declare const CookieBannerMessage: ({ className, ref, children, ...props }: CookieBannerMessageProps) => react.JSX.Element;
|
|
20
|
-
declare const CookieBannerContent: ({ className, ref, children, ...props }: CookieBannerContentProps) => react.JSX.Element;
|
|
21
|
-
declare const CookieBannerHeading: ({ className, ref, children, ...props }: CookieBannerHeadingProps) => react.JSX.Element;
|
|
22
|
-
declare const CookieBannerActions: ({ className, ref, children, ...props }: CookieBannerActionsProps) => react.JSX.Element;
|
|
3
|
+
type CookieBannerProps = React.ComponentProps<'section'>;
|
|
4
|
+
type CookieBannerMessageProps = React.ComponentProps<'div'>;
|
|
5
|
+
type CookieBannerContentProps = React.ComponentProps<'div'>;
|
|
6
|
+
type CookieBannerHeadingProps = React.ComponentProps<'h2'>;
|
|
7
|
+
type CookieBannerActionsProps = React.ComponentProps<'div'>;
|
|
8
|
+
declare const CookieBanner: ({ className, ...props }: CookieBannerProps) => react.JSX.Element;
|
|
9
|
+
declare const CookieBannerMessage: ({ className, ...props }: CookieBannerMessageProps) => react.JSX.Element;
|
|
10
|
+
declare const CookieBannerContent: ({ className, ...props }: CookieBannerContentProps) => react.JSX.Element;
|
|
11
|
+
declare const CookieBannerHeading: ({ className, children, ...props }: CookieBannerHeadingProps) => react.JSX.Element;
|
|
12
|
+
declare const CookieBannerActions: ({ className, ...props }: CookieBannerActionsProps) => react.JSX.Element;
|
|
23
13
|
|
|
24
|
-
export { CookieBanner, CookieBannerActions,
|
|
14
|
+
export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage };
|
|
15
|
+
export type { CookieBannerActionsProps, CookieBannerContentProps, CookieBannerHeadingProps, CookieBannerMessageProps, CookieBannerProps };
|
package/dist/ui/cookie-banner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage } from '../chunk-FJHNUBEM.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/date-input.d.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface
|
|
7
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
8
|
-
}
|
|
9
|
-
interface DateInputLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
10
|
-
ref?: React.Ref<HTMLLabelElement>;
|
|
11
|
-
}
|
|
12
|
-
interface DateInputInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
13
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
3
|
+
type DateInputProps = React.ComponentProps<'div'>;
|
|
4
|
+
type DateInputItemProps = React.ComponentProps<'div'>;
|
|
5
|
+
type DateInputLabelProps = React.ComponentProps<'label'>;
|
|
6
|
+
interface DateInputInputProps extends React.ComponentProps<'input'> {
|
|
14
7
|
error?: boolean;
|
|
15
8
|
}
|
|
16
|
-
declare const DateInput: ({ className,
|
|
17
|
-
declare const DateInputItem: ({ className,
|
|
18
|
-
declare const DateInputLabel: ({ className,
|
|
19
|
-
declare const DateInputInput: ({ className, error,
|
|
9
|
+
declare const DateInput: ({ className, ...props }: DateInputProps) => react.JSX.Element;
|
|
10
|
+
declare const DateInputItem: ({ className, ...props }: DateInputItemProps) => react.JSX.Element;
|
|
11
|
+
declare const DateInputLabel: ({ className, htmlFor, ...props }: DateInputLabelProps) => react.JSX.Element;
|
|
12
|
+
declare const DateInputInput: ({ className, error, ...props }: DateInputInputProps) => react.JSX.Element;
|
|
20
13
|
|
|
21
|
-
export { DateInput, DateInputInput,
|
|
14
|
+
export { DateInput, DateInputInput, DateInputItem, DateInputLabel };
|
|
15
|
+
export type { DateInputInputProps, DateInputItemProps, DateInputLabelProps, DateInputProps };
|
package/dist/ui/date-input.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DateInput, DateInputInput, DateInputItem, DateInputLabel } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { DateInput, DateInputInput, DateInputItem, DateInputLabel } from '../chunk-3UX7QPLM.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/details.d.ts
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { Collapsible } from '@base-ui/react/collapsible';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
interface DetailsTextProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, 'className'> {
|
|
13
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
declare const Details: ({ className, ref, ...props }: DetailsProps) => react.JSX.Element;
|
|
17
|
-
declare const DetailsSummary: ({ className, ref, children, ...props }: DetailsSummaryProps) => react.JSX.Element;
|
|
18
|
-
declare const DetailsText: ({ className, ref, ...props }: DetailsTextProps) => react.JSX.Element;
|
|
3
|
+
type DetailsProps = React.ComponentProps<'details'>;
|
|
4
|
+
type DetailsSummaryProps = React.ComponentProps<'summary'>;
|
|
5
|
+
type DetailsTextProps = React.ComponentProps<'div'>;
|
|
6
|
+
declare const Details: ({ className, ...props }: DetailsProps) => react.JSX.Element;
|
|
7
|
+
declare const DetailsSummary: ({ className, children, ...props }: DetailsSummaryProps) => react.JSX.Element;
|
|
8
|
+
declare const DetailsText: ({ className, ...props }: DetailsTextProps) => react.JSX.Element;
|
|
19
9
|
|
|
20
|
-
export { Details,
|
|
10
|
+
export { Details, DetailsSummary, DetailsText };
|
|
11
|
+
export type { DetailsProps, DetailsSummaryProps, DetailsTextProps };
|
package/dist/ui/details.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Details, DetailsSummary, DetailsText } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Details, DetailsSummary, DetailsText } from '../chunk-C2YQVLZ7.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
interface ErrorMessageProps extends React.
|
|
4
|
-
ref?: React.Ref<HTMLParagraphElement>;
|
|
3
|
+
interface ErrorMessageProps extends React.ComponentProps<'p'> {
|
|
5
4
|
visuallyHiddenText?: string;
|
|
6
5
|
}
|
|
7
|
-
declare const ErrorMessage: ({ className, children, visuallyHiddenText,
|
|
6
|
+
declare const ErrorMessage: ({ className, children, visuallyHiddenText, ...props }: ErrorMessageProps) => react.JSX.Element;
|
|
8
7
|
|
|
9
|
-
export { ErrorMessage
|
|
8
|
+
export { ErrorMessage };
|
|
9
|
+
export type { ErrorMessageProps };
|
package/dist/ui/error-message.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ErrorMessage } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ErrorMessage } from '../chunk-MFI5R2TJ.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -4,12 +4,13 @@ interface ErrorSummaryItem {
|
|
|
4
4
|
text: string;
|
|
5
5
|
href?: string;
|
|
6
6
|
}
|
|
7
|
-
interface ErrorSummaryProps extends React.
|
|
8
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
interface ErrorSummaryProps extends React.ComponentProps<'div'> {
|
|
9
8
|
titleText?: string;
|
|
10
9
|
descriptionText?: string;
|
|
11
10
|
errorList: ErrorSummaryItem[];
|
|
11
|
+
disableAutoFocus?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const ErrorSummary: ({ className, titleText, descriptionText, errorList, ref, ...props }: ErrorSummaryProps) => react.JSX.Element;
|
|
13
|
+
declare const ErrorSummary: ({ className, titleText, descriptionText, errorList, disableAutoFocus, ref, ...props }: ErrorSummaryProps) => react.JSX.Element;
|
|
14
14
|
|
|
15
|
-
export { ErrorSummary
|
|
15
|
+
export { ErrorSummary };
|
|
16
|
+
export type { ErrorSummaryItem, ErrorSummaryProps };
|
package/dist/ui/error-summary.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ErrorSummary } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ErrorSummary } from '../chunk-TGNN5ZP3.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
interface ExitThisPageProps extends React.
|
|
4
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
3
|
+
interface ExitThisPageProps extends React.ComponentProps<'div'> {
|
|
5
4
|
redirectUrl?: string;
|
|
6
5
|
text?: string;
|
|
7
6
|
activatedText?: string;
|
|
@@ -9,6 +8,7 @@ interface ExitThisPageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
8
|
pressTwoMoreTimesText?: string;
|
|
10
9
|
pressOneMoreTimeText?: string;
|
|
11
10
|
}
|
|
12
|
-
declare const ExitThisPage: ({ className, redirectUrl, text, activatedText, timedOutText, pressTwoMoreTimesText, pressOneMoreTimeText,
|
|
11
|
+
declare const ExitThisPage: ({ className, redirectUrl, text, activatedText, timedOutText, pressTwoMoreTimesText, pressOneMoreTimeText, ...props }: ExitThisPageProps) => react.JSX.Element;
|
|
13
12
|
|
|
14
|
-
export { ExitThisPage
|
|
13
|
+
export { ExitThisPage };
|
|
14
|
+
export type { ExitThisPageProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ExitThisPage } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ExitThisPage } from '../chunk-QPN5J5IU.js';
|
|
2
|
+
import '../chunk-ASBIQC77.js';
|
|
3
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type FeedbackProps = React.ComponentProps<'div'>;
|
|
4
|
+
interface FeedbackTitleProps extends React.ComponentProps<'h2'> {
|
|
5
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
6
|
+
}
|
|
7
|
+
type FeedbackBodyProps = React.ComponentProps<'div'>;
|
|
8
|
+
declare const Feedback: ({ className, children, ...props }: FeedbackProps) => react.JSX.Element;
|
|
9
|
+
declare const FeedbackTitle: ({ as: Tag, className, children, ...props }: FeedbackTitleProps) => react.JSX.Element;
|
|
10
|
+
declare const FeedbackBody: ({ className, ...props }: FeedbackBodyProps) => react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { Feedback, FeedbackBody, FeedbackTitle };
|
|
13
|
+
export type { FeedbackBodyProps, FeedbackProps, FeedbackTitleProps };
|
package/dist/ui/fieldset.d.ts
CHANGED
|
@@ -3,20 +3,16 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const fieldsetLegendVariants: (props?: ({
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "s" | "xl" | "l" | "m" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
declare const
|
|
12
|
-
interface
|
|
13
|
-
ref?: React.Ref<HTMLLegendElement>;
|
|
14
|
-
}
|
|
15
|
-
declare const FieldsetLegend: ({ className, size, ref, ...props }: FieldsetLegendProps) => react.JSX.Element;
|
|
16
|
-
interface FieldsetHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
8
|
+
type FieldsetProps = React.ComponentProps<'fieldset'>;
|
|
9
|
+
declare const Fieldset: ({ className, ...props }: FieldsetProps) => react.JSX.Element;
|
|
10
|
+
type FieldsetLegendProps = React.ComponentProps<'legend'> & VariantProps<typeof fieldsetLegendVariants>;
|
|
11
|
+
declare const FieldsetLegend: ({ className, size, ...props }: FieldsetLegendProps) => react.JSX.Element;
|
|
12
|
+
interface FieldsetHeadingProps extends React.ComponentProps<'h1'> {
|
|
17
13
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
18
|
-
ref?: React.Ref<HTMLHeadingElement>;
|
|
19
14
|
}
|
|
20
|
-
declare const FieldsetHeading: ({ as: Tag, className,
|
|
15
|
+
declare const FieldsetHeading: ({ as: Tag, className, children, ...props }: FieldsetHeadingProps) => react.JSX.Element;
|
|
21
16
|
|
|
22
|
-
export { Fieldset, FieldsetHeading,
|
|
17
|
+
export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants };
|
|
18
|
+
export type { FieldsetHeadingProps, FieldsetLegendProps, FieldsetProps };
|
package/dist/ui/fieldset.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants } from '../chunk-D2T6BUOB.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/file-upload.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
|
|
4
|
-
interface FileUploadProps extends Omit<React.
|
|
5
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
6
|
-
disabled?: boolean;
|
|
4
|
+
interface FileUploadProps extends Omit<React.ComponentProps<'input'>, 'type'> {
|
|
7
5
|
error?: boolean;
|
|
8
6
|
chooseFileButtonText?: string;
|
|
9
7
|
dropInstructionText?: string;
|
|
@@ -14,6 +12,7 @@ declare const fileUploadButtonVariants: (props?: ({
|
|
|
14
12
|
dragging?: boolean | null | undefined;
|
|
15
13
|
error?: boolean | null | undefined;
|
|
16
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
17
|
-
declare const FileUpload: ({ className, id,
|
|
15
|
+
declare const FileUpload: ({ className, id, disabled, error, chooseFileButtonText, dropInstructionText, noFileChosenText, onChange, ref, "aria-describedby": ariaDescribedBy, ...props }: FileUploadProps) => react.JSX.Element;
|
|
18
16
|
|
|
19
|
-
export { FileUpload,
|
|
17
|
+
export { FileUpload, fileUploadButtonVariants };
|
|
18
|
+
export type { FileUploadProps };
|
package/dist/ui/file-upload.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FileUpload, fileUploadButtonVariants } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FileUpload, fileUploadButtonVariants } from '../chunk-7Q2C5RB7.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
package/dist/ui/footer.d.ts
CHANGED
|
@@ -1,61 +1,50 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
declare const footerSectionWidths: {
|
|
4
|
+
full: string;
|
|
5
|
+
'one-half': string;
|
|
6
|
+
'one-third': string;
|
|
7
|
+
'two-thirds': string;
|
|
8
|
+
};
|
|
9
|
+
type FooterProps = React.ComponentProps<'footer'>;
|
|
10
|
+
interface FooterContainerProps extends React.ComponentProps<'div'> {
|
|
8
11
|
fullWidth?: boolean;
|
|
9
12
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
width?: 'full' | 'one-half' | 'one-third' | 'two-thirds';
|
|
16
|
-
}
|
|
17
|
-
interface FooterHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
18
|
-
ref?: React.Ref<HTMLHeadingElement>;
|
|
13
|
+
type FooterCrownProps = React.ComponentProps<'svg'>;
|
|
14
|
+
type FooterNavigationProps = React.ComponentProps<'div'>;
|
|
15
|
+
interface FooterSectionProps extends React.ComponentProps<'div'> {
|
|
16
|
+
width?: keyof typeof footerSectionWidths;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
type FooterHeadingProps = React.ComponentProps<'h2'>;
|
|
19
|
+
interface FooterListProps extends React.ComponentProps<'ul'> {
|
|
22
20
|
columns?: 1 | 2 | 3;
|
|
23
21
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
interface
|
|
28
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
29
|
-
}
|
|
30
|
-
interface FooterMetaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
31
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
32
|
-
}
|
|
33
|
-
interface FooterMetaItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
34
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
22
|
+
type FooterListItemProps = React.ComponentProps<'li'>;
|
|
23
|
+
type FooterLinkProps = React.ComponentProps<'a'>;
|
|
24
|
+
type FooterMetaProps = React.ComponentProps<'div'>;
|
|
25
|
+
interface FooterMetaItemProps extends React.ComponentProps<'div'> {
|
|
35
26
|
grow?: boolean;
|
|
36
27
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
declare const
|
|
47
|
-
declare const
|
|
48
|
-
declare const
|
|
49
|
-
declare const
|
|
50
|
-
declare const FooterHeading: ({ className, ref, children, ...props }: FooterHeadingProps) => react.JSX.Element;
|
|
51
|
-
declare const FooterList: ({ className, columns, ref, children, ...props }: FooterListProps) => react.JSX.Element;
|
|
52
|
-
declare const FooterListItem: ({ className, ref, children, ...props }: FooterListItemProps) => react.JSX.Element;
|
|
53
|
-
declare const FooterLink: ({ className, ref, children, ...props }: FooterLinkProps) => react.JSX.Element;
|
|
28
|
+
type FooterInlineListProps = React.ComponentProps<'ul'>;
|
|
29
|
+
type FooterInlineListItemProps = React.ComponentProps<'li'>;
|
|
30
|
+
type FooterLicenceLogoProps = React.ComponentProps<'svg'>;
|
|
31
|
+
type FooterContentLicenceProps = React.ComponentProps<'span'>;
|
|
32
|
+
declare const Footer: ({ className, ...props }: FooterProps) => react.JSX.Element;
|
|
33
|
+
declare const FooterContainer: ({ className, fullWidth, ...props }: FooterContainerProps) => react.JSX.Element;
|
|
34
|
+
declare const FooterCrown: ({ className, ...props }: FooterCrownProps) => react.JSX.Element;
|
|
35
|
+
declare const FooterNavigation: ({ className, ...props }: FooterNavigationProps) => react.JSX.Element;
|
|
36
|
+
declare const FooterSection: ({ className, width, ...props }: FooterSectionProps) => react.JSX.Element;
|
|
37
|
+
declare const FooterHeading: ({ className, children, ...props }: FooterHeadingProps) => react.JSX.Element;
|
|
38
|
+
declare const FooterList: ({ className, columns, ...props }: FooterListProps) => react.JSX.Element;
|
|
39
|
+
declare const FooterListItem: ({ className, ...props }: FooterListItemProps) => react.JSX.Element;
|
|
40
|
+
declare const FooterLink: ({ className, children, ...props }: FooterLinkProps) => react.JSX.Element;
|
|
54
41
|
declare const FooterSectionBreak: () => react.JSX.Element;
|
|
55
|
-
declare const FooterMeta: ({ className,
|
|
56
|
-
declare const FooterMetaItem: ({ className, grow,
|
|
57
|
-
declare const FooterInlineList: ({ className,
|
|
58
|
-
declare const FooterInlineListItem: ({ className,
|
|
59
|
-
declare const
|
|
42
|
+
declare const FooterMeta: ({ className, ...props }: FooterMetaProps) => react.JSX.Element;
|
|
43
|
+
declare const FooterMetaItem: ({ className, grow, ...props }: FooterMetaItemProps) => react.JSX.Element;
|
|
44
|
+
declare const FooterInlineList: ({ className, ...props }: FooterInlineListProps) => react.JSX.Element;
|
|
45
|
+
declare const FooterInlineListItem: ({ className, ...props }: FooterInlineListItemProps) => react.JSX.Element;
|
|
46
|
+
declare const FooterLicenceLogo: ({ className, ...props }: FooterLicenceLogoProps) => react.JSX.Element;
|
|
47
|
+
declare const FooterContentLicence: ({ className, ...props }: FooterContentLicenceProps) => react.JSX.Element;
|
|
60
48
|
|
|
61
|
-
export { Footer, FooterContainer,
|
|
49
|
+
export { Footer, FooterContainer, FooterContentLicence, FooterCrown, FooterHeading, FooterInlineList, FooterInlineListItem, FooterLicenceLogo, FooterLink, FooterList, FooterListItem, FooterMeta, FooterMetaItem, FooterNavigation, FooterSection, FooterSectionBreak };
|
|
50
|
+
export type { FooterContainerProps, FooterContentLicenceProps, FooterCrownProps, FooterHeadingProps, FooterInlineListItemProps, FooterInlineListProps, FooterLicenceLogoProps, FooterLinkProps, FooterListItemProps, FooterListProps, FooterMetaItemProps, FooterMetaProps, FooterNavigationProps, FooterProps, FooterSectionProps };
|
package/dist/ui/footer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Footer, FooterContainer, FooterContentLicence, FooterHeading, FooterInlineList, FooterInlineListItem, FooterLink, FooterList, FooterListItem, FooterMeta, FooterMetaItem, FooterNavigation, FooterSection, FooterSectionBreak } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Footer, FooterContainer, FooterContentLicence, FooterCrown, FooterHeading, FooterInlineList, FooterInlineListItem, FooterLicenceLogo, FooterLink, FooterList, FooterListItem, FooterMeta, FooterMetaItem, FooterNavigation, FooterSection, FooterSectionBreak } from '../chunk-ZJB7BBTN.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
|
-
interface GenericHeaderProps extends React.
|
|
4
|
-
ref?: React.Ref<HTMLElement>;
|
|
3
|
+
interface GenericHeaderProps extends React.ComponentProps<'div'> {
|
|
5
4
|
fullWidth?: boolean;
|
|
6
5
|
}
|
|
7
|
-
interface GenericHeaderContainerProps extends React.
|
|
8
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
+
interface GenericHeaderContainerProps extends React.ComponentProps<'div'> {
|
|
9
7
|
fullWidth?: boolean;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
declare const GenericHeader: ({ className, fullWidth, ref, children, ...props }: GenericHeaderProps) => react.JSX.Element;
|
|
18
|
-
declare const GenericHeaderContainer: ({ className, fullWidth, ref, children, ...props }: GenericHeaderContainerProps) => react.JSX.Element;
|
|
19
|
-
declare const GenericHeaderLogo: ({ className, ref, children, ...props }: GenericHeaderLogoProps) => react.JSX.Element;
|
|
20
|
-
declare const GenericHeaderLink: ({ className, ref, children, ...props }: GenericHeaderLinkProps) => react.JSX.Element;
|
|
9
|
+
type GenericHeaderLogoProps = React.ComponentProps<'div'>;
|
|
10
|
+
type GenericHeaderLinkProps = React.ComponentProps<'a'>;
|
|
11
|
+
declare const GenericHeader: ({ className, fullWidth, children, ...props }: GenericHeaderProps) => react.JSX.Element;
|
|
12
|
+
declare const GenericHeaderContainer: ({ className, fullWidth, ...props }: GenericHeaderContainerProps) => react.JSX.Element;
|
|
13
|
+
declare const GenericHeaderLogo: ({ className, ...props }: GenericHeaderLogoProps) => react.JSX.Element;
|
|
14
|
+
declare const GenericHeaderLink: ({ className, children, ...props }: GenericHeaderLinkProps) => react.JSX.Element;
|
|
21
15
|
|
|
22
|
-
export { GenericHeader, GenericHeaderContainer,
|
|
16
|
+
export { GenericHeader, GenericHeaderContainer, GenericHeaderLink, GenericHeaderLogo };
|
|
17
|
+
export type { GenericHeaderContainerProps, GenericHeaderLinkProps, GenericHeaderLogoProps, GenericHeaderProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GenericHeader, GenericHeaderContainer, GenericHeaderLink, GenericHeaderLogo } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { GenericHeader, GenericHeaderContainer, GenericHeaderLink, GenericHeaderLogo } from '../chunk-UK7RLSTJ.js';
|
|
2
|
+
import '../chunk-GKHD33N6.js';
|