@digdir/designsystemet-react 1.1.5 → 1.1.6

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 (218) hide show
  1. package/dist/cjs/components/breadcrumbs/index.js +6 -6
  2. package/dist/cjs/components/card/index.js +3 -3
  3. package/dist/cjs/components/chip/index.js +6 -6
  4. package/dist/cjs/components/details/index.js +4 -4
  5. package/dist/cjs/components/dialog/index.js +5 -5
  6. package/dist/cjs/components/dropdown/dropdown-button.js +12 -0
  7. package/dist/cjs/components/dropdown/dropdown-heading.js +8 -0
  8. package/dist/cjs/components/dropdown/dropdown-item.js +12 -0
  9. package/dist/cjs/components/dropdown/dropdown-list.js +12 -0
  10. package/dist/cjs/components/dropdown/dropdown-trigger-context.js +9 -9
  11. package/dist/cjs/components/dropdown/dropdown-trigger.js +16 -0
  12. package/dist/cjs/components/dropdown/index.js +20 -9
  13. package/dist/cjs/components/error-summary/error-summary-heading.js +8 -0
  14. package/dist/cjs/components/error-summary/error-summary-item.js +4 -4
  15. package/dist/cjs/components/error-summary/error-summary-link.js +8 -1
  16. package/dist/cjs/components/error-summary/error-summary-list.js +15 -0
  17. package/dist/cjs/components/error-summary/index.js +6 -6
  18. package/dist/cjs/components/field/field-description.js +6 -0
  19. package/dist/cjs/components/field/index.js +6 -6
  20. package/dist/cjs/components/fieldset/fieldset-description.js +2 -2
  21. package/dist/cjs/components/fieldset/fieldset-legend.js +1 -1
  22. package/dist/cjs/components/fieldset/index.js +4 -4
  23. package/dist/cjs/components/list/index.js +5 -5
  24. package/dist/cjs/components/list/list-item.js +6 -0
  25. package/dist/cjs/components/list/lists.js +8 -8
  26. package/dist/cjs/components/pagination/index.js +5 -5
  27. package/dist/cjs/components/pagination/pagination-button.js +3 -3
  28. package/dist/cjs/components/pagination/pagination-item.js +5 -5
  29. package/dist/cjs/components/pagination/pagination-list.js +5 -5
  30. package/dist/cjs/components/popover/index.js +4 -4
  31. package/dist/cjs/components/popover/popover-trigger-context.js +3 -3
  32. package/dist/cjs/components/popover/popover-trigger.js +6 -6
  33. package/dist/cjs/components/search/index.js +5 -5
  34. package/dist/cjs/components/search/search-button.js +2 -2
  35. package/dist/cjs/components/search/search-clear.js +2 -2
  36. package/dist/cjs/components/search/search-input.js +1 -1
  37. package/dist/cjs/components/select/index.js +4 -4
  38. package/dist/cjs/components/select/select-optgroup.js +4 -4
  39. package/dist/cjs/components/select/select-option.js +2 -2
  40. package/dist/cjs/components/table/index.js +9 -9
  41. package/dist/cjs/components/table/table-body.js +6 -6
  42. package/dist/cjs/components/table/table-cell.js +1 -1
  43. package/dist/cjs/components/table/table-foot.js +6 -6
  44. package/dist/cjs/components/table/table-head.js +6 -6
  45. package/dist/cjs/components/table/table-header-cell.js +1 -1
  46. package/dist/cjs/components/table/table-row.js +4 -4
  47. package/dist/cjs/components/tabs/index.js +5 -5
  48. package/dist/cjs/components/tabs/tabs-list.js +4 -4
  49. package/dist/cjs/components/tabs/tabs-panel.js +1 -1
  50. package/dist/cjs/components/tabs/tabs-tab.js +1 -1
  51. package/dist/cjs/components/toggle-group/index.js +3 -3
  52. package/dist/cjs/components/toggle-group/toggle-group-item.js +1 -1
  53. package/dist/esm/components/breadcrumbs/index.js +7 -7
  54. package/dist/esm/components/card/index.js +4 -4
  55. package/dist/esm/components/checkbox/checkbox.js +2 -2
  56. package/dist/esm/components/chip/index.js +6 -6
  57. package/dist/esm/components/details/index.js +5 -5
  58. package/dist/esm/components/dialog/index.js +6 -6
  59. package/dist/esm/components/dropdown/dropdown-button.js +12 -0
  60. package/dist/esm/components/dropdown/dropdown-heading.js +8 -0
  61. package/dist/esm/components/dropdown/dropdown-item.js +12 -0
  62. package/dist/esm/components/dropdown/dropdown-list.js +12 -0
  63. package/dist/esm/components/dropdown/dropdown-trigger-context.js +9 -9
  64. package/dist/esm/components/dropdown/dropdown-trigger.js +16 -0
  65. package/dist/esm/components/dropdown/index.js +21 -10
  66. package/dist/esm/components/error-summary/error-summary-heading.js +8 -0
  67. package/dist/esm/components/error-summary/error-summary-item.js +4 -4
  68. package/dist/esm/components/error-summary/error-summary-link.js +8 -1
  69. package/dist/esm/components/error-summary/error-summary-list.js +17 -2
  70. package/dist/esm/components/error-summary/index.js +7 -7
  71. package/dist/esm/components/field/field-description.js +6 -0
  72. package/dist/esm/components/field/index.js +7 -7
  73. package/dist/esm/components/fieldset/fieldset-description.js +2 -2
  74. package/dist/esm/components/fieldset/fieldset-legend.js +1 -1
  75. package/dist/esm/components/fieldset/index.js +5 -5
  76. package/dist/esm/components/list/index.js +5 -5
  77. package/dist/esm/components/list/list-item.js +6 -0
  78. package/dist/esm/components/list/lists.js +8 -8
  79. package/dist/esm/components/pagination/index.js +6 -6
  80. package/dist/esm/components/pagination/pagination-button.js +3 -3
  81. package/dist/esm/components/pagination/pagination-item.js +5 -5
  82. package/dist/esm/components/pagination/pagination-list.js +5 -5
  83. package/dist/esm/components/popover/index.js +5 -5
  84. package/dist/esm/components/popover/popover-trigger-context.js +3 -3
  85. package/dist/esm/components/popover/popover-trigger.js +6 -6
  86. package/dist/esm/components/radio/radio.js +2 -2
  87. package/dist/esm/components/search/index.js +6 -6
  88. package/dist/esm/components/search/search-button.js +2 -2
  89. package/dist/esm/components/search/search-clear.js +2 -2
  90. package/dist/esm/components/search/search-input.js +1 -1
  91. package/dist/esm/components/select/index.js +5 -5
  92. package/dist/esm/components/select/select-optgroup.js +4 -4
  93. package/dist/esm/components/select/select-option.js +2 -2
  94. package/dist/esm/components/suggestion/suggestion.js +2 -2
  95. package/dist/esm/components/switch/switch.js +2 -2
  96. package/dist/esm/components/table/index.js +10 -10
  97. package/dist/esm/components/table/table-body.js +6 -6
  98. package/dist/esm/components/table/table-cell.js +1 -1
  99. package/dist/esm/components/table/table-foot.js +6 -6
  100. package/dist/esm/components/table/table-head.js +6 -6
  101. package/dist/esm/components/table/table-header-cell.js +1 -1
  102. package/dist/esm/components/table/table-row.js +4 -4
  103. package/dist/esm/components/tabs/index.js +6 -6
  104. package/dist/esm/components/tabs/tabs-list.js +4 -4
  105. package/dist/esm/components/tabs/tabs-panel.js +1 -1
  106. package/dist/esm/components/tabs/tabs-tab.js +1 -1
  107. package/dist/esm/components/textfield/textfield.js +2 -2
  108. package/dist/esm/components/toggle-group/index.js +4 -4
  109. package/dist/esm/components/toggle-group/toggle-group-item.js +1 -1
  110. package/dist/react-types.d.ts +1 -2
  111. package/dist/types/colors.d.ts +1 -23
  112. package/dist/types/colors.d.ts.map +1 -1
  113. package/dist/types/components/Combobox/Combobox.d.ts +2 -2
  114. package/dist/types/components/Combobox/useFormField/useFormField.d.ts +1 -1
  115. package/dist/types/components/Combobox/useFormField/useFormField.d.ts.map +1 -1
  116. package/dist/types/components/alert/alert.d.ts +1 -1
  117. package/dist/types/components/alert/alert.d.ts.map +1 -1
  118. package/dist/types/components/avatar/avatar.d.ts +2 -1
  119. package/dist/types/components/avatar/avatar.d.ts.map +1 -1
  120. package/dist/types/components/badge/badge.d.ts +1 -1
  121. package/dist/types/components/badge/badge.d.ts.map +1 -1
  122. package/dist/types/components/badge/index.d.ts +1 -1
  123. package/dist/types/components/breadcrumbs/index.d.ts +48 -12
  124. package/dist/types/components/breadcrumbs/index.d.ts.map +1 -1
  125. package/dist/types/components/button/button.d.ts +3 -3
  126. package/dist/types/components/button/button.d.ts.map +1 -1
  127. package/dist/types/components/card/index.d.ts +18 -10
  128. package/dist/types/components/card/index.d.ts.map +1 -1
  129. package/dist/types/components/chip/index.d.ts +33 -14
  130. package/dist/types/components/chip/index.d.ts.map +1 -1
  131. package/dist/types/components/details/index.d.ts +19 -7
  132. package/dist/types/components/details/index.d.ts.map +1 -1
  133. package/dist/types/components/dialog/dialog-trigger.d.ts +1 -1
  134. package/dist/types/components/dialog/index.d.ts +46 -25
  135. package/dist/types/components/dialog/index.d.ts.map +1 -1
  136. package/dist/types/components/dropdown/dropdown-button.d.ts +12 -0
  137. package/dist/types/components/dropdown/dropdown-button.d.ts.map +1 -1
  138. package/dist/types/components/dropdown/dropdown-heading.d.ts +8 -0
  139. package/dist/types/components/dropdown/dropdown-heading.d.ts.map +1 -1
  140. package/dist/types/components/dropdown/dropdown-item.d.ts +12 -0
  141. package/dist/types/components/dropdown/dropdown-item.d.ts.map +1 -1
  142. package/dist/types/components/dropdown/dropdown-list.d.ts +12 -0
  143. package/dist/types/components/dropdown/dropdown-list.d.ts.map +1 -1
  144. package/dist/types/components/dropdown/dropdown-trigger-context.d.ts +9 -9
  145. package/dist/types/components/dropdown/dropdown-trigger.d.ts +16 -0
  146. package/dist/types/components/dropdown/dropdown-trigger.d.ts.map +1 -1
  147. package/dist/types/components/dropdown/index.d.ts +99 -19
  148. package/dist/types/components/dropdown/index.d.ts.map +1 -1
  149. package/dist/types/components/error-summary/error-summary-heading.d.ts +8 -0
  150. package/dist/types/components/error-summary/error-summary-heading.d.ts.map +1 -1
  151. package/dist/types/components/error-summary/error-summary-item.d.ts +4 -4
  152. package/dist/types/components/error-summary/error-summary-link.d.ts +8 -1
  153. package/dist/types/components/error-summary/error-summary-link.d.ts.map +1 -1
  154. package/dist/types/components/error-summary/error-summary-list.d.ts +15 -0
  155. package/dist/types/components/error-summary/error-summary-list.d.ts.map +1 -1
  156. package/dist/types/components/error-summary/index.d.ts +52 -20
  157. package/dist/types/components/error-summary/index.d.ts.map +1 -1
  158. package/dist/types/components/field/field-counter.d.ts +1 -1
  159. package/dist/types/components/field/field-description.d.ts +6 -0
  160. package/dist/types/components/field/field-description.d.ts.map +1 -1
  161. package/dist/types/components/field/index.d.ts +45 -17
  162. package/dist/types/components/field/index.d.ts.map +1 -1
  163. package/dist/types/components/fieldset/fieldset-description.d.ts +2 -2
  164. package/dist/types/components/fieldset/fieldset-legend.d.ts +1 -1
  165. package/dist/types/components/fieldset/index.d.ts +21 -9
  166. package/dist/types/components/fieldset/index.d.ts.map +1 -1
  167. package/dist/types/components/list/index.d.ts +32 -11
  168. package/dist/types/components/list/index.d.ts.map +1 -1
  169. package/dist/types/components/list/list-item.d.ts +6 -0
  170. package/dist/types/components/list/list-item.d.ts.map +1 -1
  171. package/dist/types/components/list/lists.d.ts +8 -8
  172. package/dist/types/components/pagination/index.d.ts +38 -15
  173. package/dist/types/components/pagination/index.d.ts.map +1 -1
  174. package/dist/types/components/pagination/pagination-button.d.ts +3 -3
  175. package/dist/types/components/pagination/pagination-item.d.ts +5 -5
  176. package/dist/types/components/pagination/pagination-list.d.ts +5 -5
  177. package/dist/types/components/popover/index.d.ts +39 -18
  178. package/dist/types/components/popover/index.d.ts.map +1 -1
  179. package/dist/types/components/popover/popover-trigger-context.d.ts +3 -3
  180. package/dist/types/components/popover/popover-trigger.d.ts +6 -6
  181. package/dist/types/components/popover/popover.d.ts +1 -1
  182. package/dist/types/components/popover/popover.d.ts.map +1 -1
  183. package/dist/types/components/search/index.d.ts +34 -15
  184. package/dist/types/components/search/index.d.ts.map +1 -1
  185. package/dist/types/components/search/search-button.d.ts +3 -3
  186. package/dist/types/components/search/search-clear.d.ts +2 -2
  187. package/dist/types/components/search/search-input.d.ts +1 -1
  188. package/dist/types/components/select/index.d.ts +27 -12
  189. package/dist/types/components/select/index.d.ts.map +1 -1
  190. package/dist/types/components/select/select-optgroup.d.ts +4 -4
  191. package/dist/types/components/select/select-option.d.ts +2 -2
  192. package/dist/types/components/suggestion/suggestion.d.ts +8 -8
  193. package/dist/types/components/table/index.d.ts +65 -16
  194. package/dist/types/components/table/index.d.ts.map +1 -1
  195. package/dist/types/components/table/table-body.d.ts +6 -6
  196. package/dist/types/components/table/table-cell.d.ts +1 -1
  197. package/dist/types/components/table/table-foot.d.ts +6 -6
  198. package/dist/types/components/table/table-head.d.ts +6 -6
  199. package/dist/types/components/table/table-header-cell.d.ts +1 -1
  200. package/dist/types/components/table/table-row.d.ts +4 -4
  201. package/dist/types/components/tabs/index.d.ts +29 -14
  202. package/dist/types/components/tabs/index.d.ts.map +1 -1
  203. package/dist/types/components/tabs/tabs-list.d.ts +4 -4
  204. package/dist/types/components/tabs/tabs-panel.d.ts +1 -1
  205. package/dist/types/components/tabs/tabs-tab.d.ts +1 -1
  206. package/dist/types/components/tag/tag.d.ts +1 -1
  207. package/dist/types/components/tag/tag.d.ts.map +1 -1
  208. package/dist/types/components/toggle-group/index.d.ts +11 -11
  209. package/dist/types/components/toggle-group/index.d.ts.map +1 -1
  210. package/dist/types/components/toggle-group/toggle-group-item.d.ts +1 -1
  211. package/dist/types/components/validation-message/validation-message.d.ts +1 -1
  212. package/dist/types/components/validation-message/validation-message.d.ts.map +1 -1
  213. package/dist/types/index.d.ts +4 -1
  214. package/dist/types/index.d.ts.map +1 -1
  215. package/dist/types/types.d.ts +1 -1
  216. package/dist/types/types.d.ts.map +1 -1
  217. package/dist/types/utilities/roving-focus/use-roving-focus.d.ts +2 -2
  218. package/package.json +8 -7
@@ -1,7 +1,57 @@
1
+ import { ErrorSummary as ErrorSummaryParent } from './error-summary';
1
2
  import { ErrorSummaryHeading } from './error-summary-heading';
2
3
  import { ErrorSummaryItem } from './error-summary-item';
3
4
  import { ErrorSummaryLink } from './error-summary-link';
4
5
  import { ErrorSummaryList } from './error-summary-list';
6
+ type ErrorSummary = typeof ErrorSummaryParent & {
7
+ /**
8
+ * ErrorSummary heading component, used to display a heading for the error summary.
9
+ *
10
+ * @example
11
+ * <ErrorSummary>
12
+ * <ErrorSummary.Heading>Heading</ErrorSummary.Heading>
13
+ * </ErrorSummary>
14
+ */
15
+ Heading: typeof ErrorSummaryHeading;
16
+ /**
17
+ * ErrorSummary.Item component, used to display an error link in the ErrorSummary.
18
+ *
19
+ * @example
20
+ * <ErrorSummary.Item>
21
+ * <ErrorSummary.Link href="#">
22
+ * Link to error
23
+ * </ErrorSummary.Link>
24
+ * </ErrorSummary.Item>
25
+ */
26
+ Item: typeof ErrorSummaryItem;
27
+ /**
28
+ * ErrorSummary link component, used to link to a specific error. Used within an ErrorSummary.Item.
29
+ *
30
+ * @example
31
+ * <ErrorSummary>
32
+ * <ErrorSummary.Item>
33
+ * <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
34
+ * </ErrorSummary.Item>
35
+ * </ErrorSummary>
36
+ */
37
+ Link: typeof ErrorSummaryLink;
38
+ /**
39
+ * ErrorSummary list component, used to display a list of errors.
40
+ *
41
+ * @example
42
+ * <ErrorSummary>
43
+ * <ErrorSummary.List>
44
+ * <ErrorSummary.Item>
45
+ * <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
46
+ * </ErrorSummary.Item>
47
+ * <ErrorSummary.Item>
48
+ * <ErrorSummary.Link href='#'>Error 2</ErrorSummary.Link>
49
+ * </ErrorSummary.Item>
50
+ * </ErrorSummary.List>
51
+ * </ErrorSummary>
52
+ */
53
+ List: typeof ErrorSummaryList;
54
+ };
5
55
  /**
6
56
  * ErrorSummary component, used to display a list of errors.
7
57
  *
@@ -18,29 +68,11 @@ import { ErrorSummaryList } from './error-summary-list';
18
68
  * </ErrorSummary.List>
19
69
  * </ErrorSummary>
20
70
  */
21
- declare const ErrorSummary: React.ForwardRefExoticComponent<{
22
- asChild?: React.ReactNode;
23
- } & Omit<React.HTMLAttributes<HTMLDivElement> & import("../../types").DefaultProps, "data-color"> & React.RefAttributes<HTMLDivElement>> & {
24
- Heading: React.ForwardRefExoticComponent<{
25
- level?: 1 | 2 | 3 | 4 | 5 | 6;
26
- 'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
27
- asChild?: boolean;
28
- } & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
29
- Item: React.ForwardRefExoticComponent<{
30
- asChild?: boolean;
31
- } & React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
32
- List: React.ForwardRefExoticComponent<{
33
- asChild?: boolean;
34
- } & import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLOListElement>>;
35
- Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
36
- children: React.ReactNode;
37
- asChild?: boolean;
38
- } & React.RefAttributes<HTMLAnchorElement>>;
39
- };
71
+ declare const ErrorSummaryComponent: ErrorSummary;
40
72
  export type { ErrorSummaryProps } from './error-summary';
41
73
  export type { ErrorSummaryHeadingProps } from './error-summary-heading';
42
74
  export type { ErrorSummaryItemProps } from './error-summary-item';
43
75
  export type { ErrorSummaryLinkProps } from './error-summary-link';
44
76
  export type { ErrorSummaryListProps } from './error-summary-list';
45
- export { ErrorSummary, ErrorSummaryItem, ErrorSummaryHeading, ErrorSummaryList, ErrorSummaryLink, };
77
+ export { ErrorSummaryComponent as ErrorSummary, ErrorSummaryItem, ErrorSummaryHeading, ErrorSummaryList, ErrorSummaryLink, };
46
78
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAKhB,CAAC;AAOH,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-summary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,KAAK,YAAY,GAAG,OAAO,kBAAkB,GAAG;IAC9C;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,mBAAmB,CAAC;IACpC;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B;;;;;;;;;;;;;;OAcG;IACH,IAAI,EAAE,OAAO,gBAAgB,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,qBAAqB,EAAE,YAK3B,CAAC;AAOH,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,qBAAqB,IAAI,YAAY,EACrC,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
@@ -52,7 +52,7 @@ export declare const FieldCounter: React.ForwardRefExoticComponent<{
52
52
  **/
53
53
  limit: number;
54
54
  } & Omit<Omit<import("../../types").DefaultProps, "data-color"> & React.HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
55
- 'data-color'?: import("../../colors").SeverityColors;
55
+ 'data-color'?: import("packages/cli/dist/src/types").SeverityColors;
56
56
  asChild?: boolean;
57
57
  } & React.RefAttributes<HTMLParagraphElement>>;
58
58
  //# sourceMappingURL=field-counter.d.ts.map
@@ -1,4 +1,10 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  export type FieldDescriptionProps = HTMLAttributes<HTMLDivElement>;
3
+ /**
4
+ * Field description component, used to provide additional information below the input.
5
+ *
6
+ * @example
7
+ * <FieldDescription>Additional information</FieldDescription>
8
+ */
3
9
  export declare const FieldDescription: React.ForwardRefExoticComponent<FieldDescriptionProps & React.RefAttributes<HTMLDivElement>>;
4
10
  //# sourceMappingURL=field-description.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-description.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnE,eAAO,MAAM,gBAAgB,8FAK3B,CAAC"}
1
+ {"version":3,"file":"field-description.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-description.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,8FAK3B,CAAC"}
@@ -1,6 +1,49 @@
1
+ import { Field as FieldParent } from './field';
1
2
  import { FieldAffix, FieldAffixes } from './field-affix';
2
3
  import { FieldCounter } from './field-counter';
3
4
  import { FieldDescription } from './field-description';
5
+ type Field = typeof FieldParent & {
6
+ /**
7
+ * Field description component, used to provide additional information below the input.
8
+ *
9
+ * @example
10
+ * <Field.Description>Additional information</Field.Description>
11
+ */
12
+ Description: typeof FieldDescription;
13
+ /**
14
+ * Field affixes component, used to display affixes like currency or unit.
15
+ *
16
+ * @example
17
+ * <Field.Affixes>
18
+ * <Field.Affix>NOK</Field.Affix>
19
+ * <Input />
20
+ * <Field.Affix>pr. mnd.</Field.Affix>
21
+ * </Field.Affixes>
22
+ */
23
+ Affixes: typeof FieldAffixes;
24
+ /**
25
+ * Field Affix component, used to wrap a form field.
26
+ * Used within Field.Affixes.
27
+ *
28
+ * @example
29
+ * <Field.Affixes>
30
+ * <Field.Affix>NOK</Field.Affix>
31
+ * <Input />
32
+ * <Field.Affix>pr. mnd.</Field.Affix>
33
+ * </Field.Affixes>
34
+ */
35
+ Affix: typeof FieldAffix;
36
+ /**
37
+ * Field counter component, used to display a character counter for the field.
38
+ *
39
+ * @example
40
+ * <Field>
41
+ * <Input />
42
+ * <Field.Counter limit={100} under='%d tegn igjen' over='%d tegn for mye' />
43
+ * </Field>
44
+ */
45
+ Counter: typeof FieldCounter;
46
+ };
4
47
  /**
5
48
  * Field component, used to wrap a form field.
6
49
  *
@@ -12,25 +55,10 @@ import { FieldDescription } from './field-description';
12
55
  * <ValidationMessage>Feilmelding</ValidationMessage>
13
56
  * </Field>
14
57
  */
15
- declare const Field: React.ForwardRefExoticComponent<{
16
- position?: "start" | "end";
17
- asChild?: boolean;
18
- } & React.HTMLAttributes<HTMLDivElement> & import("../../types").DefaultProps & React.RefAttributes<HTMLDivElement>> & {
19
- Description: React.ForwardRefExoticComponent<import("./field-description").FieldDescriptionProps & React.RefAttributes<HTMLDivElement>>;
20
- Affixes: React.ForwardRefExoticComponent<import("./field-affix").FieldAffixesProps & React.RefAttributes<HTMLDivElement>>;
21
- Affix: React.ForwardRefExoticComponent<import("./field-affix").FieldAffixProps & React.RefAttributes<HTMLSpanElement>>;
22
- Counter: React.ForwardRefExoticComponent<{
23
- over?: string;
24
- under?: string;
25
- limit: number;
26
- } & Omit<Omit<import("../../types").DefaultProps, "data-color"> & React.HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
27
- 'data-color'?: import("../../colors").SeverityColors;
28
- asChild?: boolean;
29
- } & React.RefAttributes<HTMLParagraphElement>>;
30
- };
58
+ declare const FieldComponent: Field;
31
59
  export type { FieldProps } from './field';
32
60
  export type { FieldAffixesProps, FieldAffixProps, } from './field-affix';
33
61
  export type { FieldCounterProps } from './field-counter';
34
62
  export type { FieldDescriptionProps } from './field-description';
35
- export { Field, FieldDescription, FieldAffix, FieldAffixes, FieldCounter };
63
+ export { FieldComponent as Field, FieldDescription, FieldAffix, FieldAffixes, FieldCounter, };
36
64
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;CAKT,CAAC;AAOH,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACV,iBAAiB,EACjB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,KAAK,KAAK,GAAG,OAAO,WAAW,GAAG;IAChC;;;;;OAKG;IACH,WAAW,EAAE,OAAO,gBAAgB,CAAC;IACrC;;;;;;;;;OASG;IACH,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B;;;;;;;;;;OAUG;IACH,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB;;;;;;;;OAQG;IACH,OAAO,EAAE,OAAO,YAAY,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,cAAc,EAAE,KAKpB,CAAC;AAOH,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACV,iBAAiB,EACjB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EACL,cAAc,IAAI,KAAK,EACvB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,YAAY,GACb,CAAC"}
@@ -4,9 +4,9 @@ export type FieldsetDescriptionProps = ParagraphProps;
4
4
  * FieldsetDescription component, used to display a description for a fieldset.
5
5
  *
6
6
  * @example
7
- * <Fieldset.Description>
7
+ * <FieldsetDescription>
8
8
  * Gi en kort beskrivelse i begge feltene
9
- * </Fieldset.Description>
9
+ * </FieldsetDescription>
10
10
  */
11
11
  export declare const FieldsetDescription: React.ForwardRefExoticComponent<{
12
12
  'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
@@ -5,7 +5,7 @@ export type FieldsetLegendProps = HTMLAttributes<HTMLLegendElement> & DefaultPro
5
5
  * FieldsetLegend component, used to display a legend for a fieldset.
6
6
  *
7
7
  * @example
8
- * <Fieldset.Legend>Skriv inn dine svar</Fieldset.Legend>
8
+ * <FieldsetLegend>Skriv inn dine svar</FieldsetLegend>
9
9
  */
10
10
  export declare const FieldsetLegend: React.ForwardRefExoticComponent<HTMLAttributes<HTMLLegendElement> & DefaultProps & React.RefAttributes<HTMLLegendElement>>;
11
11
  //# sourceMappingURL=fieldset-legend.d.ts.map
@@ -1,5 +1,24 @@
1
+ import { Fieldset as FieldsetParent } from './fieldset';
1
2
  import { FieldsetDescription } from './fieldset-description';
2
3
  import { FieldsetLegend } from './fieldset-legend';
4
+ type Fieldset = typeof FieldsetParent & {
5
+ /**
6
+ * Fieldset.Legend component, used to display a legend for a fieldset.
7
+ *
8
+ * @example
9
+ * <Fieldset.Legend>Skriv inn dine svar</Fieldset.Legend>
10
+ */
11
+ Legend: typeof FieldsetLegend;
12
+ /**
13
+ * Fieldset.Description component, used to display a description for a fieldset.
14
+ *
15
+ * @example
16
+ * <Fieldset.Description>
17
+ * Gi en kort beskrivelse i begge feltene
18
+ * </Fieldset.Description>
19
+ */
20
+ Description: typeof FieldsetDescription;
21
+ };
3
22
  /**
4
23
  * Fieldset component, used to wrap a form field.
5
24
  *
@@ -15,16 +34,9 @@ import { FieldsetLegend } from './fieldset-legend';
15
34
  * </Field>
16
35
  * </Fieldset>
17
36
  */
18
- declare const Fieldset: React.ForwardRefExoticComponent<import("../../types").DefaultProps & React.FieldsetHTMLAttributes<HTMLFieldSetElement> & React.RefAttributes<HTMLFieldSetElement>> & {
19
- Legend: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLLegendElement> & import("../../types").DefaultProps & React.RefAttributes<HTMLLegendElement>>;
20
- Description: React.ForwardRefExoticComponent<{
21
- 'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
22
- variant?: "long" | "default" | "short";
23
- asChild?: boolean;
24
- } & React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLLegendElement>>;
25
- };
37
+ declare const FieldsetComponent: Fieldset;
26
38
  export type { FieldsetProps } from './fieldset';
27
39
  export type { FieldsetDescriptionProps } from './fieldset-description';
28
40
  export type { FieldsetLegendProps } from './fieldset-legend';
29
- export { Fieldset, FieldsetLegend, FieldsetDescription };
41
+ export { FieldsetComponent as Fieldset, FieldsetLegend, FieldsetDescription };
30
42
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,QAAQ;;;;;;;CAGZ,CAAC;AAKH,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,QAAQ,GAAG,OAAO,cAAc,GAAG;IACtC;;;;;OAKG;IACH,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B;;;;;;;OAOG;IACH,WAAW,EAAE,OAAO,mBAAmB,CAAC;CACzC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,iBAAiB,EAAE,QAGvB,CAAC;AAKH,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,IAAI,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,17 +1,38 @@
1
1
  import { ListItem } from './list-item';
2
2
  import { ListOrdered, ListUnordered } from './lists';
3
- declare const List: {
4
- Item: React.ForwardRefExoticComponent<{
5
- asChild?: boolean;
6
- } & React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
7
- Ordered: React.ForwardRefExoticComponent<{
8
- asChild?: boolean;
9
- } & import("../../types").DefaultProps & Omit<React.OlHTMLAttributes<HTMLOListElement>, "size"> & React.RefAttributes<HTMLOListElement>>;
10
- Unordered: React.ForwardRefExoticComponent<{
11
- asChild?: boolean;
12
- } & import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLUListElement>>;
3
+ type List = {
4
+ /**
5
+ * Component that provides a list item.
6
+ *
7
+ * @example
8
+ * <List.Item>Item</List.Item>
9
+ */
10
+ Item: typeof ListItem;
11
+ /**
12
+ * List.Ordered component, used to display a list of items.
13
+ * Renders a native `ol` element.
14
+ *
15
+ * @example
16
+ * <List.Ordered>
17
+ * <List.Item>Item 1</List.Item>
18
+ * <List.Item>Item 2</List.Item>
19
+ * </List.Ordered>
20
+ */
21
+ Ordered: typeof ListOrdered;
22
+ /**
23
+ * List.Unordered component, used to display a list of items.
24
+ * Renders a native `ul` element.
25
+ *
26
+ * @example
27
+ * <List.Unordered>
28
+ * <List.Item>Item 1</List.Item>
29
+ * <List.Item>Item 2</List.Item>
30
+ * </List.Unordered>
31
+ */
32
+ Unordered: typeof ListUnordered;
13
33
  };
34
+ declare const ListComponent: List;
14
35
  export type { ListItemProps } from './list-item';
15
36
  export type { ListOrderedProps, ListUnorderedProps } from './lists';
16
- export { List, ListOrdered, ListUnordered, ListItem };
37
+ export { ListComponent as List, ListOrdered, ListUnordered, ListItem };
17
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,QAAA,MAAM,IAAI;;;;;;;;;;CAIT,CAAC;AAMF,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAErD,KAAK,IAAI,GAAG;IACV;;;;;OAKG;IACH,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB;;;;;;;;;OASG;IACH,OAAO,EAAE,OAAO,WAAW,CAAC;IAC5B;;;;;;;;;OASG;IACH,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,IAIpB,CAAC;AAMF,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"}
@@ -6,6 +6,12 @@ export type ListItemProps = {
6
6
  */
7
7
  asChild?: boolean;
8
8
  } & LiHTMLAttributes<HTMLLIElement>;
9
+ /**
10
+ * Component that provides a list item.
11
+ *
12
+ * @example
13
+ * <List.Item>Item</List.Item>
14
+ */
9
15
  export declare const ListItem: React.ForwardRefExoticComponent<{
10
16
  /**
11
17
  * Change the default rendered element for the one passed as a child, merging their props and behavior.
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/components/list/list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEpC,eAAO,MAAM,QAAQ;IAPnB;;;OAGG;cACO,OAAO;yEASlB,CAAC"}
1
+ {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../src/components/list/list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;IAbnB;;;OAGG;cACO,OAAO;yEAelB,CAAC"}
@@ -14,10 +14,10 @@ export type ListOrderedProps = ListBaseProps & Omit<OlHTMLAttributes<HTMLOListEl
14
14
  * Renders a native `ul` element.
15
15
  *
16
16
  * @example
17
- * <List.Unordered>
18
- * <List.Item>Item 1</List.Item>
19
- * <List.Item>Item 2</List.Item>
20
- * </List.Unordered>
17
+ * <ListUnordered>
18
+ * <ListItem>Item 1</ListItem>
19
+ * <ListItem>Item 2</ListItem>
20
+ * </ListUnordered>
21
21
  */
22
22
  export declare const ListUnordered: React.ForwardRefExoticComponent<{
23
23
  /**
@@ -31,10 +31,10 @@ export declare const ListUnordered: React.ForwardRefExoticComponent<{
31
31
  * Renders a native `ol` element.
32
32
  *
33
33
  * @example
34
- * <List.Ordered>
35
- * <List.Item>Item 1</List.Item>
36
- * <List.Item>Item 2</List.Item>
37
- * </List.Ordered>
34
+ * <ListOrdered>
35
+ * <ListItem>Item 1</ListItem>
36
+ * <ListItem>Item 2</ListItem>
37
+ * </ListOrdered>
38
38
  */
39
39
  export declare const ListOrdered: React.ForwardRefExoticComponent<{
40
40
  /**
@@ -1,6 +1,42 @@
1
+ import { Pagination as PaginationParent } from './pagination';
1
2
  import { PaginationButton } from './pagination-button';
2
3
  import { PaginationItem } from './pagination-item';
3
4
  import { PaginationList } from './pagination-list';
5
+ type Pagination = typeof PaginationParent & {
6
+ /**
7
+ * Pagination.List component, use within a Pagination.
8
+ *
9
+ * @example
10
+ * <Pagination>
11
+ * <Pagination.List>
12
+ * <Pagination.Item>
13
+ * <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
14
+ * </Pagination.Item>
15
+ * </Pagination.List>
16
+ * </Pagination>
17
+ */
18
+ List: typeof PaginationList;
19
+ /**
20
+ * Pagination.Item component, use within a Pagination.List.
21
+ *
22
+ * @example
23
+ * <Pagination.List>
24
+ * <Pagination.Item>
25
+ * <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
26
+ * </Pagination.Item>
27
+ * </Pagination.List>
28
+ */
29
+ Item: typeof PaginationItem;
30
+ /**
31
+ * PaginationButton component, use within a Pagination.Item.
32
+ *
33
+ * @example
34
+ * <Pagination.Item>
35
+ * <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
36
+ * </Pagination.Item>
37
+ */
38
+ Button: typeof PaginationButton;
39
+ };
4
40
  /**
5
41
  * Pagination component, used to navigate through a list of items.
6
42
  *
@@ -19,23 +55,10 @@ import { PaginationList } from './pagination-list';
19
55
  * </Pagination.List>
20
56
  * </Pagination>
21
57
  */
22
- declare const Pagination: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLElement>, "aria-label" | "asChild"> & {
23
- 'aria-label'?: string;
24
- asChild?: boolean;
25
- } & React.RefAttributes<HTMLElement>> & {
26
- List: React.ForwardRefExoticComponent<{
27
- asChild?: boolean;
28
- } & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLUListElement>>;
29
- Item: React.ForwardRefExoticComponent<{
30
- asChild?: boolean;
31
- } & Omit<React.HTMLAttributes<HTMLLIElement>, "size"> & React.RefAttributes<HTMLLIElement>>;
32
- Button: React.ForwardRefExoticComponent<{
33
- 'aria-current'?: React.AriaAttributes["aria-current"];
34
- } & Omit<import("..").ButtonProps, "icon" | "loading"> & React.RefAttributes<HTMLButtonElement>>;
35
- };
58
+ declare const PaginationComponent: Pagination;
36
59
  export type { PaginationProps } from './pagination';
37
60
  export type { PaginationButtonProps } from './pagination-button';
38
61
  export type { PaginationItemProps } from './pagination-item';
39
62
  export type { PaginationListProps } from './pagination-list';
40
- export { Pagination, PaginationList, PaginationItem, PaginationButton };
63
+ export { PaginationComponent as Pagination, PaginationList, PaginationItem, PaginationButton, };
41
64
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;CAId,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,UAAU,GAAG,OAAO,gBAAgB,GAAG;IAC1C;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B;;;;;;;OAOG;IACH,MAAM,EAAE,OAAO,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,mBAAmB,EAAE,UAIzB,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EACL,mBAAmB,IAAI,UAAU,EACjC,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,CAAC"}
@@ -11,9 +11,9 @@ export type PaginationButtonProps = {
11
11
  * PaginationButton component, use within a Pagination.Item.
12
12
  *
13
13
  * @example
14
- * <Pagination.Item>
15
- * <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
16
- * </Pagination.Item>
14
+ * <PaginationItem>
15
+ * <PaginationButton aria-label='Forrige side'>Forrige</PaginationButton>
16
+ * </PaginationItem>
17
17
  */
18
18
  export declare const PaginationButton: React.ForwardRefExoticComponent<{
19
19
  /**
@@ -10,11 +10,11 @@ export type PaginationItemProps = {
10
10
  * PaginationItem component, use within a Pagination.List.
11
11
  *
12
12
  * @example
13
- * <Pagination.List>
14
- * <Pagination.Item>
15
- * <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
16
- * </Pagination.Item>
17
- * </Pagination.List>
13
+ * <PaginationList>
14
+ * <PaginationItem>
15
+ * <PaginationButton aria-label='Forrige side'>Forrige</PaginationButton>
16
+ * </PaginationItem>
17
+ * </PaginationList>
18
18
  */
19
19
  export declare const PaginationItem: React.ForwardRefExoticComponent<{
20
20
  /**
@@ -11,11 +11,11 @@ export type PaginationListProps = {
11
11
  *
12
12
  * @example
13
13
  * <Pagination>
14
- * <Pagination.List>
15
- * <Pagination.Item>
16
- * <Pagination.Button aria-label='Forrige side'>Forrige</Pagination.Button>
17
- * </Pagination.Item>
18
- * </Pagination.List>
14
+ * <PaginationList>
15
+ * <PaginationItem>
16
+ * <PaginationButton aria-label='Forrige side'>Forrige</PaginationButton>
17
+ * </PaginationItem>
18
+ * </PaginationList>
19
19
  * </Pagination>
20
20
  */
21
21
  export declare const PaginationList: React.ForwardRefExoticComponent<{
@@ -1,5 +1,42 @@
1
+ import { Popover as PopoverParent } from './popover';
1
2
  import { PopoverTrigger } from './popover-trigger';
2
3
  import { PopoverTriggerContext } from './popover-trigger-context';
4
+ type Popover = typeof PopoverParent & {
5
+ /**
6
+ * Popover.TriggerContext component, use to wrap a Popover.Trigger and Popover.
7
+ *
8
+ * @example
9
+ * <Popover.TriggerContext>
10
+ * <Popover.Trigger>Open Popover</Popover.Trigger>
11
+ * <Popover>
12
+ * Content
13
+ * </Popover>
14
+ * </Popover.TriggerContext>
15
+ */
16
+ TriggerContext: typeof PopoverTriggerContext;
17
+ /**
18
+ * PopoverTrigger component, used to trigger a popover.
19
+ *
20
+ * @example
21
+ * <Popover.TriggerContext>
22
+ * <Popover.Trigger>Open Popover</Popover.Trigger>
23
+ * <Popover>
24
+ * Content
25
+ * </Popover>
26
+ * </Popover.TriggerContext>
27
+ *
28
+ * @example inline
29
+ * <Popover.TriggerContext>
30
+ * <Paragraph>
31
+ * We can use it <Popover.Trigger inline={true}>inline</Popover.Trigger>.
32
+ * </Paragraph>
33
+ * <Popover>
34
+ * Content
35
+ * </Popover>
36
+ * </Popover.TriggerContext>
37
+ */
38
+ Trigger: typeof PopoverTrigger;
39
+ };
3
40
  /**
4
41
  * Popover component, used to display content in a popover over an element.
5
42
  *
@@ -11,25 +48,9 @@ import { PopoverTriggerContext } from './popover-trigger-context';
11
48
  * </Popover>
12
49
  * </Popover.TriggerContext>
13
50
  */
14
- declare const Popover: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLDivElement>, "id" | "data-color" | "variant" | "asChild" | "open" | "placement" | "onClose" | "onOpen" | "autoPlacement"> & {
15
- id?: string;
16
- placement?: import("@floating-ui/dom").Placement;
17
- open?: boolean;
18
- variant?: "default" | "tinted";
19
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityColors;
20
- onOpen?: () => void;
21
- onClose?: () => void;
22
- autoPlacement?: boolean;
23
- asChild?: boolean;
24
- } & React.RefAttributes<HTMLDivElement>> & {
25
- TriggerContext: {
26
- ({ children, }: import("./popover-trigger-context").PopoverTriggerContextProps): import("react/jsx-runtime").JSX.Element;
27
- displayName: string;
28
- };
29
- Trigger: React.ForwardRefExoticComponent<import("./popover-trigger").PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
30
- };
51
+ declare const PopoverComponent: Popover;
31
52
  export type { PopoverProps } from './popover';
32
53
  export type { PopoverTriggerProps } from './popover-trigger';
33
54
  export type { PopoverTriggerContextProps } from './popover-trigger-context';
34
- export { Popover, PopoverTriggerContext, PopoverTrigger };
55
+ export { PopoverComponent as Popover, PopoverTriggerContext, PopoverTrigger };
35
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;;;;;;;GAUG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;CAGX,CAAC;AAKH,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,KAAK,OAAO,GAAG,OAAO,aAAa,GAAG;IACpC;;;;;;;;;;OAUG;IACH,cAAc,EAAE,OAAO,qBAAqB,CAAC;IAC7C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,EAAE,OAAO,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,gBAAgB,EAAE,OAGtB,CAAC;AAKH,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,YAAY,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,CAAC"}
@@ -6,12 +6,12 @@ export type PopoverTriggerContextProps = {
6
6
  * PopoverTriggerContext component, use to wrap a Popover.Trigger and Popover.
7
7
  *
8
8
  * @example
9
- * <Popover.TriggerContext>
10
- * <Popover.Trigger>Open Popover</Popover.Trigger>
9
+ * <PopoverTriggerContext>
10
+ * <PopoverTrigger>Open Popover</PopoverTrigger>
11
11
  * <Popover>
12
12
  * Content
13
13
  * </Popover>
14
- * </Popover.TriggerContext>
14
+ * </PopoverTriggerContext>
15
15
  */
16
16
  export declare const PopoverTriggerContext: {
17
17
  ({ children, }: PopoverTriggerContextProps): import("react/jsx-runtime").JSX.Element;
@@ -23,22 +23,22 @@ export type PopoverTriggerProps = ({
23
23
  * PopoverTrigger component, used to trigger a popover.
24
24
  *
25
25
  * @example
26
- * <Popover.TriggerContext>
27
- * <Popover.Trigger>Open Popover</Popover.Trigger>
26
+ * <PopoverTriggerContext>
27
+ * <PopoverTrigger>Open Popover</PopoverTrigger>
28
28
  * <Popover>
29
29
  * Content
30
30
  * </Popover>
31
- * </Popover.TriggerContext>
31
+ * </PopoverTriggerContext>
32
32
  *
33
33
  * @example inline
34
- * <Popover.TriggerContext>
34
+ * <PopoverTriggerContext>
35
35
  * <Paragraph>
36
- * We can use it <Popover.Trigger inline={true}>inline</Popover.Trigger>.
36
+ * We can use it <PopoverTrigger inline={true}>inline</PopoverTrigger>.
37
37
  * </Paragraph>
38
38
  * <Popover>
39
39
  * Content
40
40
  * </Popover>
41
- * </Popover.TriggerContext>
41
+ * </PopoverTriggerContext>
42
42
  */
43
43
  export declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
44
44
  //# sourceMappingURL=popover-trigger.d.ts.map