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,49 +1,32 @@
1
1
  import * as react from 'react';
2
2
 
3
- interface SummaryListProps extends React.HTMLAttributes<HTMLDListElement> {
4
- ref?: React.Ref<HTMLDListElement>;
3
+ interface SummaryListProps extends React.ComponentProps<'dl'> {
5
4
  noBorder?: boolean;
6
5
  }
7
- interface SummaryListRowProps extends React.HTMLAttributes<HTMLDivElement> {
8
- ref?: React.Ref<HTMLDivElement>;
6
+ interface SummaryListRowProps extends React.ComponentProps<'div'> {
9
7
  noBorder?: boolean;
10
8
  noActions?: boolean;
11
9
  }
12
- interface SummaryListKeyProps extends React.HTMLAttributes<HTMLElement> {
13
- ref?: React.Ref<HTMLElement>;
14
- }
15
- interface SummaryListValueProps extends React.HTMLAttributes<HTMLElement> {
16
- ref?: React.Ref<HTMLElement>;
17
- }
18
- interface SummaryListActionsProps extends React.HTMLAttributes<HTMLElement> {
19
- ref?: React.Ref<HTMLElement>;
20
- }
21
- interface SummaryListCardProps extends React.HTMLAttributes<HTMLDivElement> {
22
- ref?: React.Ref<HTMLDivElement>;
23
- }
24
- interface SummaryListCardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
25
- ref?: React.Ref<HTMLHeadingElement>;
26
- }
27
- interface SummaryListCardActionsProps extends React.HTMLAttributes<HTMLUListElement> {
28
- ref?: React.Ref<HTMLUListElement>;
29
- }
30
- interface SummaryListCardActionProps extends React.HTMLAttributes<HTMLLIElement> {
31
- ref?: React.Ref<HTMLLIElement>;
32
- }
33
- declare const SummaryList: ({ className, noBorder, ref, children, ...props }: SummaryListProps) => react.JSX.Element;
34
- declare const SummaryListRow: ({ className, noBorder, noActions, ref, children, ...props }: SummaryListRowProps) => react.JSX.Element;
35
- declare const SummaryListKey: ({ className, ref, children, ...props }: SummaryListKeyProps) => react.JSX.Element;
36
- declare const SummaryListValue: ({ className, ref, children, ...props }: SummaryListValueProps) => react.JSX.Element;
37
- declare const SummaryListActions: ({ className, ref, children, ...props }: SummaryListActionsProps) => react.JSX.Element;
38
- declare const SummaryListCard: ({ className, ref, children, ...props }: SummaryListCardProps) => react.JSX.Element;
39
- declare const SummaryListCardTitle: ({ className, ref, children, ...props }: SummaryListCardTitleProps) => react.JSX.Element;
40
- declare const SummaryListCardHeader: ({ className, ref, children, ...props }: React.HTMLAttributes<HTMLDivElement> & {
41
- ref?: React.Ref<HTMLDivElement>;
42
- }) => react.JSX.Element;
43
- declare const SummaryListCardActions: ({ className, ref, children, ...props }: SummaryListCardActionsProps) => react.JSX.Element;
44
- declare const SummaryListCardAction: ({ className, ref, children, ...props }: SummaryListCardActionProps) => react.JSX.Element;
45
- declare const SummaryListCardContent: ({ className, ref, children, ...props }: React.HTMLAttributes<HTMLDivElement> & {
46
- ref?: React.Ref<HTMLDivElement>;
47
- }) => react.JSX.Element;
10
+ type SummaryListKeyProps = React.ComponentProps<'dt'>;
11
+ type SummaryListValueProps = React.ComponentProps<'dd'>;
12
+ type SummaryListActionsProps = React.ComponentProps<'dd'>;
13
+ type SummaryListCardProps = React.ComponentProps<'div'>;
14
+ type SummaryListCardHeaderProps = React.ComponentProps<'div'>;
15
+ type SummaryListCardContentProps = React.ComponentProps<'div'>;
16
+ type SummaryListCardTitleProps = React.ComponentProps<'h2'>;
17
+ type SummaryListCardActionsProps = React.ComponentProps<'ul'>;
18
+ type SummaryListCardActionProps = React.ComponentProps<'li'>;
19
+ declare const SummaryList: ({ className, noBorder, ...props }: SummaryListProps) => react.JSX.Element;
20
+ declare const SummaryListRow: ({ className, noBorder, noActions, ...props }: SummaryListRowProps) => react.JSX.Element;
21
+ declare const SummaryListKey: ({ className, ...props }: SummaryListKeyProps) => react.JSX.Element;
22
+ declare const SummaryListValue: ({ className, ...props }: SummaryListValueProps) => react.JSX.Element;
23
+ declare const SummaryListActions: ({ className, ...props }: SummaryListActionsProps) => react.JSX.Element;
24
+ declare const SummaryListCard: ({ className, ...props }: SummaryListCardProps) => react.JSX.Element;
25
+ declare const SummaryListCardTitle: ({ className, children, ...props }: SummaryListCardTitleProps) => react.JSX.Element;
26
+ declare const SummaryListCardHeader: ({ className, ...props }: SummaryListCardHeaderProps) => react.JSX.Element;
27
+ declare const SummaryListCardActions: ({ className, ...props }: SummaryListCardActionsProps) => react.JSX.Element;
28
+ declare const SummaryListCardAction: ({ className, ...props }: SummaryListCardActionProps) => react.JSX.Element;
29
+ declare const SummaryListCardContent: ({ className, ...props }: SummaryListCardContentProps) => react.JSX.Element;
48
30
 
49
- export { SummaryList, SummaryListActions, type SummaryListActionsProps, SummaryListCard, SummaryListCardAction, type SummaryListCardActionProps, SummaryListCardActions, type SummaryListCardActionsProps, SummaryListCardContent, SummaryListCardHeader, type SummaryListCardProps, SummaryListCardTitle, type SummaryListCardTitleProps, SummaryListKey, type SummaryListKeyProps, type SummaryListProps, SummaryListRow, type SummaryListRowProps, SummaryListValue, type SummaryListValueProps };
31
+ export { SummaryList, SummaryListActions, SummaryListCard, SummaryListCardAction, SummaryListCardActions, SummaryListCardContent, SummaryListCardHeader, SummaryListCardTitle, SummaryListKey, SummaryListRow, SummaryListValue };
32
+ export type { SummaryListActionsProps, SummaryListCardActionProps, SummaryListCardActionsProps, SummaryListCardContentProps, SummaryListCardHeaderProps, SummaryListCardProps, SummaryListCardTitleProps, SummaryListKeyProps, SummaryListProps, SummaryListRowProps, SummaryListValueProps };
@@ -1,2 +1,2 @@
1
- export { SummaryList, SummaryListActions, SummaryListCard, SummaryListCardAction, SummaryListCardActions, SummaryListCardContent, SummaryListCardHeader, SummaryListCardTitle, SummaryListKey, SummaryListRow, SummaryListValue } from '../chunk-3INCIYDO.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { SummaryList, SummaryListActions, SummaryListCard, SummaryListCardAction, SummaryListCardActions, SummaryListCardContent, SummaryListCardHeader, SummaryListCardTitle, SummaryListKey, SummaryListRow, SummaryListValue } from '../chunk-GLDCEDTR.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -3,38 +3,33 @@ 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 tableCaptionVariants: (props?: ({
6
- size?: "m" | "xl" | "l" | null | undefined;
6
+ size?: "xl" | "l" | "m" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  type TableCaptionSize = NonNullable<VariantProps<typeof tableCaptionVariants>['size']>;
9
- interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
10
- ref?: React.Ref<HTMLTableElement>;
9
+ interface TableProps extends React.ComponentProps<'table'> {
10
+ smallTextUntilTablet?: boolean;
11
11
  }
12
- interface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement>, VariantProps<typeof tableCaptionVariants> {
13
- ref?: React.Ref<HTMLTableCaptionElement>;
12
+ interface TableContainerProps extends React.ComponentProps<'div'> {
13
+ label?: string;
14
14
  }
15
- interface TableHeadProps extends React.HTMLAttributes<HTMLTableSectionElement> {
16
- ref?: React.Ref<HTMLTableSectionElement>;
17
- }
18
- interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
19
- ref?: React.Ref<HTMLTableSectionElement>;
20
- }
21
- interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
22
- ref?: React.Ref<HTMLTableRowElement>;
23
- }
24
- interface TableHeaderProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
25
- ref?: React.Ref<HTMLTableCellElement>;
15
+ type TableCaptionProps = React.ComponentProps<'caption'> & VariantProps<typeof tableCaptionVariants>;
16
+ type TableHeadProps = React.ComponentProps<'thead'>;
17
+ type TableBodyProps = React.ComponentProps<'tbody'>;
18
+ type TableRowProps = React.ComponentProps<'tr'>;
19
+ interface TableHeaderProps extends React.ComponentProps<'th'> {
26
20
  numeric?: boolean;
27
21
  }
28
- interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
29
- ref?: React.Ref<HTMLTableCellElement>;
22
+ interface TableCellProps extends React.ComponentProps<'td'> {
30
23
  numeric?: boolean;
31
24
  }
32
- declare const Table: ({ className, ref, children, ...props }: TableProps) => react.JSX.Element;
33
- declare const TableCaption: ({ className, ref, children, size, ...props }: TableCaptionProps) => react.JSX.Element;
34
- declare const TableHead: ({ className, ref, children, ...props }: TableHeadProps) => react.JSX.Element;
35
- declare const TableBody: ({ className, ref, children, ...props }: TableBodyProps) => react.JSX.Element;
36
- declare const TableRow: ({ className, ref, children, ...props }: TableRowProps) => react.JSX.Element;
37
- declare const TableHeader: ({ className, ref, children, numeric, ...props }: TableHeaderProps) => react.JSX.Element;
38
- declare const TableCell: ({ className, ref, children, numeric, ...props }: TableCellProps) => react.JSX.Element;
25
+ declare const Table: ({ className, smallTextUntilTablet, ...props }: TableProps) => react.JSX.Element;
26
+ declare const TableContainer: ({ className, label, ...props }: TableContainerProps) => react.JSX.Element;
27
+ declare const TableCaption: ({ className, size, ...props }: TableCaptionProps) => react.JSX.Element;
28
+ declare const TableHead: (props: TableHeadProps) => react.JSX.Element;
29
+ declare const TableBody: (props: TableBodyProps) => react.JSX.Element;
30
+ declare const TableRow: (props: TableRowProps) => react.JSX.Element;
31
+ declare const TableHeader: ({ className, numeric, ...props }: TableHeaderProps) => react.JSX.Element;
32
+ declare const TableCell: ({ className, numeric, ...props }: TableCellProps) => react.JSX.Element;
39
33
 
40
- export { Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, type TableCaptionSize, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, tableCaptionVariants };
34
+ export { Table, TableBody, TableCaption, TableCell, TableContainer, TableHead, TableHeader, TableRow, tableCaptionVariants };
35
+ export type { TableBodyProps, TableCaptionProps, TableCaptionSize, TableCellProps, TableContainerProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps };
package/dist/ui/table.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, tableCaptionVariants } from '../chunk-JFZN5XP6.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { Table, TableBody, TableCaption, TableCell, TableContainer, TableHead, TableHeader, TableRow, tableCaptionVariants } from '../chunk-7IOR7UNU.js';
2
+ import '../chunk-GKHD33N6.js';
package/dist/ui/tabs.d.ts CHANGED
@@ -2,24 +2,22 @@ import * as react from 'react';
2
2
  import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
3
3
 
4
4
  interface TabsProps extends Omit<React.ComponentProps<typeof Tabs$1.Root>, 'className'> {
5
- ref?: React.Ref<HTMLDivElement>;
6
5
  className?: string;
7
6
  }
8
7
  interface TabsListProps extends Omit<React.ComponentProps<typeof Tabs$1.List>, 'className'> {
9
- ref?: React.Ref<HTMLDivElement>;
10
8
  className?: string;
9
+ contentsLabel?: string;
11
10
  }
12
11
  interface TabsTabProps extends Omit<React.ComponentProps<typeof Tabs$1.Tab>, 'className'> {
13
- ref?: React.Ref<HTMLButtonElement>;
14
12
  className?: string;
15
13
  }
16
14
  interface TabsPanelProps extends Omit<React.ComponentProps<typeof Tabs$1.Panel>, 'className'> {
17
- ref?: React.Ref<HTMLDivElement>;
18
15
  className?: string;
19
16
  }
20
- declare const Tabs: ({ className, ref, children, ...props }: TabsProps) => react.JSX.Element;
21
- declare const TabsList: ({ className, ref, children, ...props }: TabsListProps) => react.JSX.Element;
22
- declare const TabsTab: ({ className, ref, children, ...props }: TabsTabProps) => react.JSX.Element;
23
- declare const TabsPanel: ({ className, ref, children, ...props }: TabsPanelProps) => react.JSX.Element;
17
+ declare const Tabs: ({ className, defaultValue, value, onValueChange, orientation, render, style, ...props }: TabsProps) => react.JSX.Element;
18
+ declare const TabsList: ({ className, children, contentsLabel, activateOnFocus, loopFocus, render, style, ...props }: TabsListProps) => react.JSX.Element;
19
+ declare const TabsTab: ({ className, children, value, ...props }: TabsTabProps) => react.JSX.Element;
20
+ declare const TabsPanel: ({ className, value, keepMounted, render, style, ...props }: TabsPanelProps) => react.JSX.Element;
24
21
 
25
- export { Tabs, TabsList, type TabsListProps, TabsPanel, type TabsPanelProps, type TabsProps, TabsTab, type TabsTabProps };
22
+ export { Tabs, TabsList, TabsPanel, TabsTab };
23
+ export type { TabsListProps, TabsPanelProps, TabsProps, TabsTabProps };
package/dist/ui/tabs.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Tabs, TabsList, TabsPanel, TabsTab } from '../chunk-5H55YDJS.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { Tabs, TabsList, TabsPanel, TabsTab } from '../chunk-N5PY3VZH.js';
2
+ import '../chunk-GKHD33N6.js';
package/dist/ui/tag.d.ts CHANGED
@@ -6,10 +6,8 @@ declare const tagVariants: (props?: ({
6
6
  colour?: "blue" | "green" | "teal" | "purple" | "magenta" | "red" | "orange" | "yellow" | "grey" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  type TagColour = NonNullable<VariantProps<typeof tagVariants>['colour']>;
9
- interface TagProps extends Omit<React.HTMLAttributes<HTMLElement>, 'className' | 'color'>, VariantProps<typeof tagVariants> {
10
- ref?: React.Ref<HTMLElement>;
11
- className?: string;
12
- }
13
- declare const Tag: ({ className, colour, ref, ...props }: TagProps) => react.JSX.Element;
9
+ type TagProps = Omit<React.ComponentProps<'strong'>, 'color'> & VariantProps<typeof tagVariants>;
10
+ declare const Tag: ({ className, colour, ...props }: TagProps) => react.JSX.Element;
14
11
 
15
- export { Tag, type TagColour, type TagProps, tagVariants };
12
+ export { Tag, tagVariants };
13
+ export type { TagColour, TagProps };
package/dist/ui/tag.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Tag, tagVariants } from '../chunk-TXGBUZB4.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { Tag, tagVariants } from '../chunk-VRGDQ3SF.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -1,30 +1,21 @@
1
1
  import * as react from 'react';
2
2
 
3
- interface TaskListProps extends React.HTMLAttributes<HTMLUListElement> {
4
- ref?: React.Ref<HTMLUListElement>;
5
- }
6
- interface TaskListItemProps extends React.HTMLAttributes<HTMLLIElement> {
7
- ref?: React.Ref<HTMLLIElement>;
3
+ type TaskListProps = React.ComponentProps<'ul'>;
4
+ interface TaskListItemProps extends React.ComponentProps<'li'> {
8
5
  hasLink?: boolean;
9
6
  }
10
- interface TaskListNameAndHintProps extends React.HTMLAttributes<HTMLDivElement> {
11
- ref?: React.Ref<HTMLDivElement>;
12
- }
13
- interface TaskListLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
14
- ref?: React.Ref<HTMLAnchorElement>;
15
- }
16
- interface TaskListHintProps extends React.HTMLAttributes<HTMLDivElement> {
17
- ref?: React.Ref<HTMLDivElement>;
18
- }
19
- interface TaskListStatusProps extends React.HTMLAttributes<HTMLDivElement> {
20
- ref?: React.Ref<HTMLDivElement>;
7
+ type TaskListNameAndHintProps = React.ComponentProps<'div'>;
8
+ type TaskListLinkProps = React.ComponentProps<'a'>;
9
+ type TaskListHintProps = React.ComponentProps<'div'>;
10
+ interface TaskListStatusProps extends React.ComponentProps<'div'> {
21
11
  cannotStartYet?: boolean;
22
12
  }
23
- declare const TaskList: ({ className, ref, children, ...props }: TaskListProps) => react.JSX.Element;
24
- declare const TaskListItem: ({ className, hasLink, ref, children, ...props }: TaskListItemProps) => react.JSX.Element;
25
- declare const TaskListNameAndHint: ({ className, ref, children, ...props }: TaskListNameAndHintProps) => react.JSX.Element;
26
- declare const TaskListLink: ({ className, ref, children, ...props }: TaskListLinkProps) => react.JSX.Element;
27
- declare const TaskListHint: ({ className, ref, children, ...props }: TaskListHintProps) => react.JSX.Element;
28
- declare const TaskListStatus: ({ className, cannotStartYet, ref, children, ...props }: TaskListStatusProps) => react.JSX.Element;
13
+ declare const TaskList: ({ className, ...props }: TaskListProps) => react.JSX.Element;
14
+ declare const TaskListItem: ({ className, hasLink, ...props }: TaskListItemProps) => react.JSX.Element;
15
+ declare const TaskListNameAndHint: ({ className, ...props }: TaskListNameAndHintProps) => react.JSX.Element;
16
+ declare const TaskListLink: ({ className, children, ...props }: TaskListLinkProps) => react.JSX.Element;
17
+ declare const TaskListHint: ({ className, ...props }: TaskListHintProps) => react.JSX.Element;
18
+ declare const TaskListStatus: ({ className, cannotStartYet, ...props }: TaskListStatusProps) => react.JSX.Element;
29
19
 
30
- export { TaskList, TaskListHint, type TaskListHintProps, TaskListItem, type TaskListItemProps, TaskListLink, type TaskListLinkProps, TaskListNameAndHint, type TaskListNameAndHintProps, type TaskListProps, TaskListStatus, type TaskListStatusProps };
20
+ export { TaskList, TaskListHint, TaskListItem, TaskListLink, TaskListNameAndHint, TaskListStatus };
21
+ export type { TaskListHintProps, TaskListItemProps, TaskListLinkProps, TaskListNameAndHintProps, TaskListProps, TaskListStatusProps };
@@ -1,2 +1,2 @@
1
- export { TaskList, TaskListHint, TaskListItem, TaskListLink, TaskListNameAndHint, TaskListStatus } from '../chunk-LRNZYPC2.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { TaskList, TaskListHint, TaskListItem, TaskListLink, TaskListNameAndHint, TaskListStatus } from '../chunk-YF6EZ57H.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -3,16 +3,15 @@ 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 textInputVariants: (props?: ({
6
- width?: 2 | 3 | 4 | 5 | "full" | 30 | 20 | 10 | null | undefined;
6
+ width?: "full" | 2 | 3 | 30 | 20 | 10 | 5 | 4 | null | undefined;
7
7
  error?: boolean | null | undefined;
8
8
  extraLetterSpacing?: boolean | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
- interface TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'width' | 'prefix'>, VariantProps<typeof textInputVariants> {
11
- ref?: React.Ref<HTMLInputElement>;
12
- disabled?: boolean;
10
+ interface TextInputProps extends Omit<React.ComponentProps<'input'>, 'width' | 'prefix'>, VariantProps<typeof textInputVariants> {
13
11
  prefix?: React.ReactNode;
14
12
  suffix?: React.ReactNode;
15
13
  }
16
- declare const TextInput: ({ className, width, error, extraLetterSpacing, type, disabled, prefix, suffix, ref, ...props }: TextInputProps) => react.JSX.Element;
14
+ declare const TextInput: ({ className, width, error, extraLetterSpacing, prefix, suffix, ...props }: TextInputProps) => react.JSX.Element;
17
15
 
18
- export { TextInput, type TextInputProps, textInputVariants };
16
+ export { TextInput, textInputVariants };
17
+ export type { TextInputProps };
@@ -1,2 +1,2 @@
1
- export { TextInput, textInputVariants } from '../chunk-QTSEOPVX.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { TextInput, textInputVariants } from '../chunk-VCJE5UO2.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -5,10 +5,8 @@ import { VariantProps } from 'class-variance-authority';
5
5
  declare const textareaVariants: (props?: ({
6
6
  error?: boolean | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
- interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'className'>, VariantProps<typeof textareaVariants> {
9
- ref?: React.Ref<HTMLTextAreaElement>;
10
- className?: string;
11
- }
12
- declare const Textarea: ({ className, error, rows, disabled, "aria-describedby": ariaDescribedBy, ref, ...props }: TextareaProps) => react.JSX.Element;
8
+ type TextareaProps = React.ComponentProps<'textarea'> & VariantProps<typeof textareaVariants>;
9
+ declare const Textarea: ({ className, error, rows, ...props }: TextareaProps) => react.JSX.Element;
13
10
 
14
- export { Textarea, type TextareaProps, textareaVariants };
11
+ export { Textarea, textareaVariants };
12
+ export type { TextareaProps };
@@ -1,2 +1,2 @@
1
- export { Textarea, textareaVariants } from '../chunk-AO6HPG4R.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { Textarea, textareaVariants } from '../chunk-EDOSCND4.js';
2
+ import '../chunk-GKHD33N6.js';
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
 
3
- interface WarningTextProps extends React.HTMLAttributes<HTMLDivElement> {
4
- ref?: React.Ref<HTMLDivElement>;
3
+ interface WarningTextProps extends React.ComponentProps<'div'> {
5
4
  assistiveText?: string;
6
5
  }
7
- declare const WarningText: ({ className, ref, assistiveText, children, ...props }: WarningTextProps) => react.JSX.Element;
6
+ declare const WarningText: ({ className, assistiveText, children, ...props }: WarningTextProps) => react.JSX.Element;
8
7
 
9
- export { WarningText, type WarningTextProps };
8
+ export { WarningText };
9
+ export type { WarningTextProps };
@@ -1,2 +1,2 @@
1
- export { WarningText } from '../chunk-OP35ZJ4X.js';
2
- import '../chunk-WONVZ7WK.js';
1
+ export { WarningText } from '../chunk-4TBXH62Z.js';
2
+ import '../chunk-GKHD33N6.js';