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.
Files changed (145) hide show
  1. package/README.md +4 -1
  2. package/dist/{chunk-KWAC6IEK.js → chunk-2KB4IAMZ.js} +9 -22
  3. package/dist/{chunk-5TI2WXYU.js → chunk-3UX7QPLM.js} +10 -21
  4. package/dist/{chunk-SK27BMU5.js → chunk-4GQRYMDK.js} +11 -23
  5. package/dist/{chunk-OP35ZJ4X.js → chunk-4TBXH62Z.js} +6 -7
  6. package/dist/{chunk-M6CLPMRP.js → chunk-6WLHJ5MN.js} +34 -76
  7. package/dist/chunk-7IOR7UNU.js +77 -0
  8. package/dist/chunk-7Q2C5RB7.js +167 -0
  9. package/dist/{chunk-5PIQJ22R.js → chunk-ASBIQC77.js} +13 -18
  10. package/dist/{chunk-KD4LPFIZ.js → chunk-C2YQVLZ7.js} +15 -18
  11. package/dist/chunk-CBT6WCJ7.js +52 -0
  12. package/dist/{chunk-3YIKJK6M.js → chunk-CYBPAHLZ.js} +48 -52
  13. package/dist/{chunk-VB6V3PHD.js → chunk-D2T6BUOB.js} +6 -16
  14. package/dist/chunk-DZ3743JO.js +38 -0
  15. package/dist/{chunk-AO6HPG4R.js → chunk-EDOSCND4.js} +5 -20
  16. package/dist/chunk-FJHNUBEM.js +59 -0
  17. package/dist/chunk-FVBDMMNR.js +143 -0
  18. package/dist/chunk-GKHD33N6.js +52 -0
  19. package/dist/{chunk-3INCIYDO.js → chunk-GLDCEDTR.js} +22 -77
  20. package/dist/{chunk-G6T44BDV.js → chunk-HBLVAX45.js} +7 -11
  21. package/dist/{chunk-UWQFFFTB.js → chunk-JCERRZV6.js} +13 -13
  22. package/dist/chunk-KXQGZLMK.js +120 -0
  23. package/dist/{chunk-CEPBVMFU.js → chunk-MFI5R2TJ.js} +1 -3
  24. package/dist/{chunk-5XNKIBMP.js → chunk-MYMVHSRJ.js} +3 -4
  25. package/dist/chunk-N5PY3VZH.js +192 -0
  26. package/dist/{chunk-P4GCF5FQ.js → chunk-OQILIT3B.js} +26 -15
  27. package/dist/{chunk-6VXVJERU.js → chunk-QKR7NELW.js} +4 -8
  28. package/dist/chunk-QPN5J5IU.js +177 -0
  29. package/dist/chunk-RGXB6M3G.js +87 -0
  30. package/dist/chunk-TAVSU2XB.js +90 -0
  31. package/dist/chunk-TGNN5ZP3.js +81 -0
  32. package/dist/chunk-TICBCBDN.js +18 -0
  33. package/dist/{chunk-7ZCZQN5N.js → chunk-UK7RLSTJ.js} +15 -22
  34. package/dist/chunk-UXOJELVU.js +37 -0
  35. package/dist/{chunk-QTSEOPVX.js → chunk-VCJE5UO2.js} +23 -25
  36. package/dist/{chunk-N67H5OUQ.js → chunk-VHSAXVCF.js} +7 -5
  37. package/dist/chunk-VMI2XU5D.js +74 -0
  38. package/dist/{chunk-TXGBUZB4.js → chunk-VRGDQ3SF.js} +3 -10
  39. package/dist/chunk-W4CWUYTA.js +44 -0
  40. package/dist/{chunk-LRNZYPC2.js → chunk-YF6EZ57H.js} +14 -44
  41. package/dist/chunk-ZAKQHDVD.js +40 -0
  42. package/dist/chunk-ZJB7BBTN.js +188 -0
  43. package/dist/index.d.ts +15 -13
  44. package/dist/index.js +41 -39
  45. package/dist/lib/utils.d.ts +2 -1
  46. package/dist/lib/utils.js +1 -1
  47. package/dist/ui/accordion.d.ts +8 -13
  48. package/dist/ui/accordion.js +2 -2
  49. package/dist/ui/back-link.d.ts +4 -4
  50. package/dist/ui/back-link.js +2 -2
  51. package/dist/ui/breadcrumbs.d.ts +10 -16
  52. package/dist/ui/breadcrumbs.js +2 -2
  53. package/dist/ui/button.d.ts +7 -8
  54. package/dist/ui/button.js +2 -2
  55. package/dist/ui/character-count.d.ts +11 -15
  56. package/dist/ui/character-count.js +3 -3
  57. package/dist/ui/checkboxes.d.ts +9 -17
  58. package/dist/ui/checkboxes.js +2 -2
  59. package/dist/ui/cookie-banner.d.ts +12 -21
  60. package/dist/ui/cookie-banner.js +2 -2
  61. package/dist/ui/date-input.d.ts +10 -16
  62. package/dist/ui/date-input.js +2 -2
  63. package/dist/ui/details.d.ts +8 -17
  64. package/dist/ui/details.js +2 -2
  65. package/dist/ui/error-message.d.ts +4 -4
  66. package/dist/ui/error-message.js +2 -2
  67. package/dist/ui/error-summary.d.ts +5 -4
  68. package/dist/ui/error-summary.js +2 -2
  69. package/dist/ui/exit-this-page.d.ts +4 -4
  70. package/dist/ui/exit-this-page.js +3 -3
  71. package/dist/ui/feedback.d.ts +13 -0
  72. package/dist/ui/feedback.js +2 -0
  73. package/dist/ui/fieldset.d.ts +9 -13
  74. package/dist/ui/fieldset.js +2 -2
  75. package/dist/ui/file-upload.d.ts +4 -5
  76. package/dist/ui/file-upload.js +2 -2
  77. package/dist/ui/footer.d.ts +39 -50
  78. package/dist/ui/footer.js +2 -2
  79. package/dist/ui/generic-header.d.ts +10 -15
  80. package/dist/ui/generic-header.js +2 -2
  81. package/dist/ui/header.d.ts +14 -32
  82. package/dist/ui/header.js +2 -2
  83. package/dist/ui/hint.d.ts +4 -5
  84. package/dist/ui/hint.js +2 -2
  85. package/dist/ui/inset-text.d.ts +4 -5
  86. package/dist/ui/inset-text.js +2 -2
  87. package/dist/ui/label.d.ts +7 -9
  88. package/dist/ui/label.js +2 -2
  89. package/dist/ui/language-navigation.d.ts +20 -0
  90. package/dist/ui/language-navigation.js +2 -0
  91. package/dist/ui/link.d.ts +5 -6
  92. package/dist/ui/link.js +2 -2
  93. package/dist/ui/notification-banner.d.ts +15 -24
  94. package/dist/ui/notification-banner.js +2 -2
  95. package/dist/ui/pagination.d.ts +20 -34
  96. package/dist/ui/pagination.js +2 -2
  97. package/dist/ui/panel.d.ts +11 -12
  98. package/dist/ui/panel.js +2 -2
  99. package/dist/ui/password-input.d.ts +7 -6
  100. package/dist/ui/password-input.js +4 -4
  101. package/dist/ui/phase-banner.d.ts +10 -17
  102. package/dist/ui/phase-banner.js +2 -2
  103. package/dist/ui/radios.d.ts +8 -13
  104. package/dist/ui/radios.js +2 -2
  105. package/dist/ui/select.d.ts +6 -30
  106. package/dist/ui/select.js +2 -2
  107. package/dist/ui/service-navigation.d.ts +15 -23
  108. package/dist/ui/service-navigation.js +2 -2
  109. package/dist/ui/skip-link.d.ts +4 -5
  110. package/dist/ui/skip-link.js +2 -2
  111. package/dist/ui/summary-list.d.ts +24 -41
  112. package/dist/ui/summary-list.js +2 -2
  113. package/dist/ui/table.d.ts +21 -26
  114. package/dist/ui/table.js +2 -2
  115. package/dist/ui/tabs.d.ts +7 -9
  116. package/dist/ui/tabs.js +2 -2
  117. package/dist/ui/tag.d.ts +4 -6
  118. package/dist/ui/tag.js +2 -2
  119. package/dist/ui/task-list.d.ts +14 -23
  120. package/dist/ui/task-list.js +2 -2
  121. package/dist/ui/text-input.d.ts +5 -6
  122. package/dist/ui/text-input.js +2 -2
  123. package/dist/ui/textarea.d.ts +4 -6
  124. package/dist/ui/textarea.js +2 -2
  125. package/dist/ui/warning-text.d.ts +4 -4
  126. package/dist/ui/warning-text.js +2 -2
  127. package/package.json +111 -263
  128. package/registry/default/theme/govuk-tokens.css +207 -40
  129. package/dist/chunk-2QKZ6DPC.js +0 -27
  130. package/dist/chunk-4MXR4WNS.js +0 -17
  131. package/dist/chunk-5AKGRLG2.js +0 -190
  132. package/dist/chunk-5H55YDJS.js +0 -69
  133. package/dist/chunk-72PH2FMG.js +0 -180
  134. package/dist/chunk-GUZIKVAE.js +0 -119
  135. package/dist/chunk-JESMK3XK.js +0 -105
  136. package/dist/chunk-JFZN5XP6.js +0 -88
  137. package/dist/chunk-NRXTKHI2.js +0 -169
  138. package/dist/chunk-PGZHPAT5.js +0 -183
  139. package/dist/chunk-RPV43YDC.js +0 -93
  140. package/dist/chunk-VQOCX44T.js +0 -41
  141. package/dist/chunk-WONVZ7WK.js +0 -29
  142. package/dist/chunk-WPPWPEFV.js +0 -150
  143. package/dist/chunk-XQOYWPKV.js +0 -48
  144. package/dist/chunk-YAKI4SI7.js +0 -205
  145. package/dist/chunk-YCLGXX3R.js +0 -68
@@ -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?: "start" | "default" | "inverse" | "secondary" | "warning" | null | undefined;
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.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
10
- asChild?: boolean;
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, disabled, focusableWhenDisabled, children, ref, ...props }: ButtonProps) => react.JSX.Element;
13
+ declare const Button: ({ className, variant, children, ...props }: ButtonProps) => react.JSX.Element;
16
14
 
17
- export { Button, type ButtonProps, type ButtonVariant, buttonVariants };
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-5PIQJ22R.js';
2
- import '../chunk-WONVZ7WK.js';
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
- error?: boolean;
13
- disabled?: boolean;
14
- className?: string;
13
+ defaultValue?: string;
15
14
  textareaClassName?: string;
16
- onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
17
- name?: string;
18
- ref?: React.Ref<HTMLTextAreaElement>;
15
+ descriptionText?: string;
19
16
  formatMessage?: (remaining: number, mode: CountMode) => string;
20
17
  }
21
- interface CharacterCountMessageProps extends React.ComponentPropsWithoutRef<'div'> {
22
- ref?: React.Ref<HTMLDivElement>;
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, type CharacterCountMessageProps, type CharacterCountProps };
22
+ export { CharacterCount, CharacterCountMessage };
23
+ export type { CharacterCountMessageProps, CharacterCountProps };
@@ -1,3 +1,3 @@
1
- export { CharacterCount, CharacterCountMessage } from '../chunk-JESMK3XK.js';
2
- import '../chunk-AO6HPG4R.js';
3
- import '../chunk-WONVZ7WK.js';
1
+ export { CharacterCount, CharacterCountMessage } from '../chunk-TAVSU2XB.js';
2
+ import '../chunk-EDOSCND4.js';
3
+ import '../chunk-GKHD33N6.js';
@@ -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
- interface CheckboxesProps extends Omit<React.ComponentProps<typeof CheckboxGroup>, 'className' | 'children'> {
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, value, small, ...props }: CheckboxesItemProps) => react.JSX.Element;
16
- interface CheckboxesHintProps extends React.HTMLAttributes<HTMLSpanElement> {
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.HTMLAttributes<HTMLDivElement> {
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
- interface CheckboxesConditionalProps extends React.HTMLAttributes<HTMLDivElement> {
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, type CheckboxesConditionalProps, CheckboxesDivider, type CheckboxesDividerProps, CheckboxesHint, type CheckboxesHintProps, CheckboxesItem, type CheckboxesItemProps, type CheckboxesProps };
21
+ export { Checkboxes, CheckboxesConditional, CheckboxesDivider, CheckboxesHint, CheckboxesItem };
22
+ export type { CheckboxesConditionalProps, CheckboxesDividerProps, CheckboxesHintProps, CheckboxesItemProps, CheckboxesProps };
@@ -1,2 +1,2 @@
1
- export { Checkboxes, CheckboxesConditional, CheckboxesDivider, CheckboxesHint, CheckboxesItem } from '../chunk-UWQFFFTB.js';
2
- import '../chunk-WONVZ7WK.js';
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
- interface CookieBannerProps extends React.HTMLAttributes<HTMLDivElement> {
4
- ref?: React.Ref<HTMLDivElement>;
5
- }
6
- interface CookieBannerMessageProps extends React.HTMLAttributes<HTMLDivElement> {
7
- ref?: React.Ref<HTMLDivElement>;
8
- }
9
- interface CookieBannerContentProps extends React.HTMLAttributes<HTMLDivElement> {
10
- ref?: React.Ref<HTMLDivElement>;
11
- }
12
- interface CookieBannerHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
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, type CookieBannerActionsProps, CookieBannerContent, type CookieBannerContentProps, CookieBannerHeading, type CookieBannerHeadingProps, CookieBannerMessage, type CookieBannerMessageProps, type CookieBannerProps };
14
+ export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage };
15
+ export type { CookieBannerActionsProps, CookieBannerContentProps, CookieBannerHeadingProps, CookieBannerMessageProps, CookieBannerProps };
@@ -1,2 +1,2 @@
1
- export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage } from '../chunk-RPV43YDC.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { CookieBanner, CookieBannerActions, CookieBannerContent, CookieBannerHeading, CookieBannerMessage } from '../chunk-FJHNUBEM.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -1,21 +1,15 @@
1
1
  import * as react from 'react';
2
2
 
3
- interface DateInputProps extends React.ComponentPropsWithoutRef<'div'> {
4
- ref?: React.Ref<HTMLDivElement>;
5
- }
6
- interface DateInputItemProps extends React.ComponentPropsWithoutRef<'div'> {
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, children, ref, ...props }: DateInputProps) => react.JSX.Element;
17
- declare const DateInputItem: ({ className, children, ref, ...props }: DateInputItemProps) => react.JSX.Element;
18
- declare const DateInputLabel: ({ className, children, htmlFor, ref, ...props }: DateInputLabelProps) => react.JSX.Element;
19
- declare const DateInputInput: ({ className, error, ref, ...props }: DateInputInputProps) => react.JSX.Element;
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, type DateInputInputProps, DateInputItem, type DateInputItemProps, DateInputLabel, type DateInputLabelProps, type DateInputProps };
14
+ export { DateInput, DateInputInput, DateInputItem, DateInputLabel };
15
+ export type { DateInputInputProps, DateInputItemProps, DateInputLabelProps, DateInputProps };
@@ -1,2 +1,2 @@
1
- export { DateInput, DateInputInput, DateInputItem, DateInputLabel } from '../chunk-5TI2WXYU.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { DateInput, DateInputInput, DateInputItem, DateInputLabel } from '../chunk-3UX7QPLM.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -1,20 +1,11 @@
1
1
  import * as react from 'react';
2
- import { Collapsible } from '@base-ui/react/collapsible';
3
2
 
4
- interface DetailsProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, 'className'> {
5
- ref?: React.Ref<HTMLDivElement>;
6
- className?: string;
7
- }
8
- interface DetailsSummaryProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, 'className'> {
9
- ref?: React.Ref<HTMLButtonElement>;
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, type DetailsProps, DetailsSummary, type DetailsSummaryProps, DetailsText, type DetailsTextProps };
10
+ export { Details, DetailsSummary, DetailsText };
11
+ export type { DetailsProps, DetailsSummaryProps, DetailsTextProps };
@@ -1,2 +1,2 @@
1
- export { Details, DetailsSummary, DetailsText } from '../chunk-KD4LPFIZ.js';
2
- import '../chunk-WONVZ7WK.js';
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.HTMLAttributes<HTMLParagraphElement> {
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, ref, ...props }: ErrorMessageProps) => react.JSX.Element;
6
+ declare const ErrorMessage: ({ className, children, visuallyHiddenText, ...props }: ErrorMessageProps) => react.JSX.Element;
8
7
 
9
- export { ErrorMessage, type ErrorMessageProps };
8
+ export { ErrorMessage };
9
+ export type { ErrorMessageProps };
@@ -1,2 +1,2 @@
1
- export { ErrorMessage } from '../chunk-CEPBVMFU.js';
2
- import '../chunk-WONVZ7WK.js';
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.HTMLAttributes<HTMLDivElement> {
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, type ErrorSummaryItem, type ErrorSummaryProps };
15
+ export { ErrorSummary };
16
+ export type { ErrorSummaryItem, ErrorSummaryProps };
@@ -1,2 +1,2 @@
1
- export { ErrorSummary } from '../chunk-YCLGXX3R.js';
2
- import '../chunk-WONVZ7WK.js';
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.HTMLAttributes<HTMLDivElement> {
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, ref, ...props }: ExitThisPageProps) => react.JSX.Element;
11
+ declare const ExitThisPage: ({ className, redirectUrl, text, activatedText, timedOutText, pressTwoMoreTimesText, pressOneMoreTimeText, ...props }: ExitThisPageProps) => react.JSX.Element;
13
12
 
14
- export { ExitThisPage, type ExitThisPageProps };
13
+ export { ExitThisPage };
14
+ export type { ExitThisPageProps };
@@ -1,3 +1,3 @@
1
- export { ExitThisPage } from '../chunk-NRXTKHI2.js';
2
- import '../chunk-5PIQJ22R.js';
3
- import '../chunk-WONVZ7WK.js';
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 };
@@ -0,0 +1,2 @@
1
+ export { Feedback, FeedbackBody, FeedbackTitle } from '../chunk-DZ3743JO.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -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?: "m" | "s" | "xl" | "l" | null | undefined;
6
+ size?: "s" | "xl" | "l" | "m" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
- interface FieldsetProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
9
- ref?: React.Ref<HTMLFieldSetElement>;
10
- }
11
- declare const Fieldset: ({ className, ref, ...props }: FieldsetProps) => react.JSX.Element;
12
- interface FieldsetLegendProps extends React.HTMLAttributes<HTMLLegendElement>, VariantProps<typeof fieldsetLegendVariants> {
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, ref, ...props }: FieldsetHeadingProps) => react.JSX.Element;
15
+ declare const FieldsetHeading: ({ as: Tag, className, children, ...props }: FieldsetHeadingProps) => react.JSX.Element;
21
16
 
22
- export { Fieldset, FieldsetHeading, type FieldsetHeadingProps, FieldsetLegend, type FieldsetLegendProps, type FieldsetProps, fieldsetLegendVariants };
17
+ export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants };
18
+ export type { FieldsetHeadingProps, FieldsetLegendProps, FieldsetProps };
@@ -1,2 +1,2 @@
1
- export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants } from '../chunk-VB6V3PHD.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { Fieldset, FieldsetHeading, FieldsetLegend, fieldsetLegendVariants } from '../chunk-D2T6BUOB.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -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.InputHTMLAttributes<HTMLInputElement>, 'type'> {
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, name, disabled, error, multiple, chooseFileButtonText, dropInstructionText, noFileChosenText, onChange, ref, ...props }: FileUploadProps) => react.JSX.Element;
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, type FileUploadProps, fileUploadButtonVariants };
17
+ export { FileUpload, fileUploadButtonVariants };
18
+ export type { FileUploadProps };
@@ -1,2 +1,2 @@
1
- export { FileUpload, fileUploadButtonVariants } from '../chunk-72PH2FMG.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { FileUpload, fileUploadButtonVariants } from '../chunk-7Q2C5RB7.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -1,61 +1,50 @@
1
1
  import * as react from 'react';
2
2
 
3
- interface FooterProps extends React.HTMLAttributes<HTMLElement> {
4
- ref?: React.Ref<HTMLElement>;
5
- }
6
- interface FooterContainerProps extends React.HTMLAttributes<HTMLDivElement> {
7
- ref?: React.Ref<HTMLDivElement>;
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
- interface FooterNavigationProps extends React.HTMLAttributes<HTMLDivElement> {
11
- ref?: React.Ref<HTMLDivElement>;
12
- }
13
- interface FooterSectionProps extends React.HTMLAttributes<HTMLDivElement> {
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
- interface FooterListProps extends React.HTMLAttributes<HTMLUListElement> {
21
- ref?: React.Ref<HTMLUListElement>;
18
+ type FooterHeadingProps = React.ComponentProps<'h2'>;
19
+ interface FooterListProps extends React.ComponentProps<'ul'> {
22
20
  columns?: 1 | 2 | 3;
23
21
  }
24
- interface FooterListItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
25
- ref?: React.Ref<HTMLLIElement>;
26
- }
27
- interface FooterLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
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
- interface FooterInlineListProps extends React.HTMLAttributes<HTMLUListElement> {
38
- ref?: React.Ref<HTMLUListElement>;
39
- }
40
- interface FooterInlineListItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
41
- ref?: React.Ref<HTMLLIElement>;
42
- }
43
- interface FooterContentLicenceProps extends React.HTMLAttributes<HTMLSpanElement> {
44
- ref?: React.Ref<HTMLSpanElement>;
45
- }
46
- declare const Footer: ({ className, children, ref, ...props }: FooterProps) => react.JSX.Element;
47
- declare const FooterContainer: ({ className, fullWidth, ref, children, ...props }: FooterContainerProps) => react.JSX.Element;
48
- declare const FooterNavigation: ({ className, ref, children, ...props }: FooterNavigationProps) => react.JSX.Element;
49
- declare const FooterSection: ({ className, width, ref, children, ...props }: FooterSectionProps) => react.JSX.Element;
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, ref, children, ...props }: FooterMetaProps) => react.JSX.Element;
56
- declare const FooterMetaItem: ({ className, grow, ref, children, ...props }: FooterMetaItemProps) => react.JSX.Element;
57
- declare const FooterInlineList: ({ className, ref, children, ...props }: FooterInlineListProps) => react.JSX.Element;
58
- declare const FooterInlineListItem: ({ className, ref, children, ...props }: FooterInlineListItemProps) => react.JSX.Element;
59
- declare const FooterContentLicence: ({ className, ref, children, ...props }: FooterContentLicenceProps) => react.JSX.Element;
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, type FooterContainerProps, FooterContentLicence, type FooterContentLicenceProps, FooterHeading, type FooterHeadingProps, FooterInlineList, FooterInlineListItem, type FooterInlineListItemProps, type FooterInlineListProps, FooterLink, type FooterLinkProps, FooterList, FooterListItem, type FooterListItemProps, type FooterListProps, FooterMeta, FooterMetaItem, type FooterMetaItemProps, type FooterMetaProps, FooterNavigation, type FooterNavigationProps, type FooterProps, FooterSection, FooterSectionBreak, type FooterSectionProps };
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-YAKI4SI7.js';
2
- import '../chunk-WONVZ7WK.js';
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.HTMLAttributes<HTMLElement> {
4
- ref?: React.Ref<HTMLElement>;
3
+ interface GenericHeaderProps extends React.ComponentProps<'div'> {
5
4
  fullWidth?: boolean;
6
5
  }
7
- interface GenericHeaderContainerProps extends React.HTMLAttributes<HTMLDivElement> {
8
- ref?: React.Ref<HTMLDivElement>;
6
+ interface GenericHeaderContainerProps extends React.ComponentProps<'div'> {
9
7
  fullWidth?: boolean;
10
8
  }
11
- interface GenericHeaderLogoProps extends React.HTMLAttributes<HTMLDivElement> {
12
- ref?: React.Ref<HTMLDivElement>;
13
- }
14
- interface GenericHeaderLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
15
- ref?: React.Ref<HTMLAnchorElement>;
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, type GenericHeaderContainerProps, GenericHeaderLink, type GenericHeaderLinkProps, GenericHeaderLogo, type GenericHeaderLogoProps, type GenericHeaderProps };
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-7ZCZQN5N.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { GenericHeader, GenericHeaderContainer, GenericHeaderLink, GenericHeaderLogo } from '../chunk-UK7RLSTJ.js';
2
+ import '../chunk-GKHD33N6.js';