@digdir/designsystemet-react 1.1.5 → 1.1.7

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 (266) hide show
  1. package/dist/cjs/components/Combobox/Combobox.js +2 -2
  2. package/dist/cjs/components/Combobox/Custom.js +1 -1
  3. package/dist/cjs/components/Combobox/Option/Option.js +1 -1
  4. package/dist/cjs/components/Combobox/Option/useComboboxOption.js +1 -1
  5. package/dist/cjs/components/Combobox/internal/ComboboxInput.js +1 -1
  6. package/dist/cjs/{utilities → components/Combobox}/omit/omit.js +2 -0
  7. package/dist/cjs/components/Combobox/useComboboxKeyboard.js +1 -1
  8. package/dist/cjs/components/breadcrumbs/index.js +6 -6
  9. package/dist/cjs/components/card/index.js +3 -3
  10. package/dist/cjs/components/chip/index.js +6 -6
  11. package/dist/cjs/components/details/index.js +4 -4
  12. package/dist/cjs/components/dialog/index.js +5 -5
  13. package/dist/cjs/components/dropdown/dropdown-button.js +12 -0
  14. package/dist/cjs/components/dropdown/dropdown-heading.js +8 -0
  15. package/dist/cjs/components/dropdown/dropdown-item.js +12 -0
  16. package/dist/cjs/components/dropdown/dropdown-list.js +12 -0
  17. package/dist/cjs/components/dropdown/dropdown-trigger-context.js +9 -9
  18. package/dist/cjs/components/dropdown/dropdown-trigger.js +16 -0
  19. package/dist/cjs/components/dropdown/index.js +20 -9
  20. package/dist/cjs/components/error-summary/error-summary-heading.js +8 -0
  21. package/dist/cjs/components/error-summary/error-summary-item.js +4 -4
  22. package/dist/cjs/components/error-summary/error-summary-link.js +8 -1
  23. package/dist/cjs/components/error-summary/error-summary-list.js +15 -0
  24. package/dist/cjs/components/error-summary/index.js +6 -6
  25. package/dist/cjs/components/field/field-description.js +6 -0
  26. package/dist/cjs/components/field/index.js +6 -6
  27. package/dist/cjs/components/fieldset/fieldset-description.js +2 -2
  28. package/dist/cjs/components/fieldset/fieldset-legend.js +1 -1
  29. package/dist/cjs/components/fieldset/index.js +4 -4
  30. package/dist/cjs/components/list/index.js +5 -5
  31. package/dist/cjs/components/list/list-item.js +6 -0
  32. package/dist/cjs/components/list/lists.js +8 -8
  33. package/dist/cjs/components/pagination/index.js +5 -5
  34. package/dist/cjs/components/pagination/pagination-button.js +3 -3
  35. package/dist/cjs/components/pagination/pagination-item.js +5 -5
  36. package/dist/cjs/components/pagination/pagination-list.js +5 -5
  37. package/dist/cjs/components/popover/index.js +4 -4
  38. package/dist/cjs/components/popover/popover-trigger-context.js +3 -3
  39. package/dist/cjs/components/popover/popover-trigger.js +6 -6
  40. package/dist/cjs/components/search/index.js +5 -5
  41. package/dist/cjs/components/search/search-button.js +2 -2
  42. package/dist/cjs/components/search/search-clear.js +2 -2
  43. package/dist/cjs/components/search/search-input.js +1 -1
  44. package/dist/cjs/components/select/index.js +4 -4
  45. package/dist/cjs/components/select/select-optgroup.js +4 -4
  46. package/dist/cjs/components/select/select-option.js +2 -2
  47. package/dist/cjs/components/table/index.js +9 -9
  48. package/dist/cjs/components/table/table-body.js +6 -6
  49. package/dist/cjs/components/table/table-cell.js +1 -1
  50. package/dist/cjs/components/table/table-foot.js +6 -6
  51. package/dist/cjs/components/table/table-head.js +6 -6
  52. package/dist/cjs/components/table/table-header-cell.js +1 -1
  53. package/dist/cjs/components/table/table-row.js +4 -4
  54. package/dist/cjs/components/tabs/index.js +5 -5
  55. package/dist/cjs/components/tabs/tabs-list.js +4 -4
  56. package/dist/cjs/components/tabs/tabs-panel.js +1 -1
  57. package/dist/cjs/components/tabs/tabs-tab.js +1 -1
  58. package/dist/cjs/components/toggle-group/index.js +3 -3
  59. package/dist/cjs/components/toggle-group/toggle-group-item.js +1 -1
  60. package/dist/cjs/index.js +20 -24
  61. package/dist/cjs/utilities/hooks/use-synchronized-animation/use-synchronized-animation.js +4 -2
  62. package/dist/esm/components/Combobox/Combobox.js +2 -2
  63. package/dist/esm/components/Combobox/Custom.js +1 -1
  64. package/dist/esm/components/Combobox/Option/Option.js +1 -1
  65. package/dist/esm/components/Combobox/Option/useComboboxOption.js +1 -1
  66. package/dist/esm/components/Combobox/internal/ComboboxInput.js +1 -1
  67. package/dist/esm/{utilities → components/Combobox}/omit/omit.js +2 -0
  68. package/dist/esm/components/Combobox/useComboboxKeyboard.js +1 -1
  69. package/dist/esm/components/breadcrumbs/index.js +7 -7
  70. package/dist/esm/components/card/index.js +4 -4
  71. package/dist/esm/components/checkbox/checkbox.js +2 -2
  72. package/dist/esm/components/chip/index.js +6 -6
  73. package/dist/esm/components/details/index.js +5 -5
  74. package/dist/esm/components/dialog/index.js +6 -6
  75. package/dist/esm/components/dropdown/dropdown-button.js +12 -0
  76. package/dist/esm/components/dropdown/dropdown-heading.js +8 -0
  77. package/dist/esm/components/dropdown/dropdown-item.js +12 -0
  78. package/dist/esm/components/dropdown/dropdown-list.js +12 -0
  79. package/dist/esm/components/dropdown/dropdown-trigger-context.js +9 -9
  80. package/dist/esm/components/dropdown/dropdown-trigger.js +16 -0
  81. package/dist/esm/components/dropdown/index.js +21 -10
  82. package/dist/esm/components/error-summary/error-summary-heading.js +8 -0
  83. package/dist/esm/components/error-summary/error-summary-item.js +4 -4
  84. package/dist/esm/components/error-summary/error-summary-link.js +8 -1
  85. package/dist/esm/components/error-summary/error-summary-list.js +17 -2
  86. package/dist/esm/components/error-summary/index.js +7 -7
  87. package/dist/esm/components/field/field-description.js +6 -0
  88. package/dist/esm/components/field/index.js +7 -7
  89. package/dist/esm/components/fieldset/fieldset-description.js +2 -2
  90. package/dist/esm/components/fieldset/fieldset-legend.js +1 -1
  91. package/dist/esm/components/fieldset/index.js +5 -5
  92. package/dist/esm/components/list/index.js +5 -5
  93. package/dist/esm/components/list/list-item.js +6 -0
  94. package/dist/esm/components/list/lists.js +8 -8
  95. package/dist/esm/components/pagination/index.js +6 -6
  96. package/dist/esm/components/pagination/pagination-button.js +3 -3
  97. package/dist/esm/components/pagination/pagination-item.js +5 -5
  98. package/dist/esm/components/pagination/pagination-list.js +5 -5
  99. package/dist/esm/components/popover/index.js +5 -5
  100. package/dist/esm/components/popover/popover-trigger-context.js +3 -3
  101. package/dist/esm/components/popover/popover-trigger.js +6 -6
  102. package/dist/esm/components/radio/radio.js +2 -2
  103. package/dist/esm/components/search/index.js +6 -6
  104. package/dist/esm/components/search/search-button.js +2 -2
  105. package/dist/esm/components/search/search-clear.js +2 -2
  106. package/dist/esm/components/search/search-input.js +1 -1
  107. package/dist/esm/components/select/index.js +5 -5
  108. package/dist/esm/components/select/select-optgroup.js +4 -4
  109. package/dist/esm/components/select/select-option.js +2 -2
  110. package/dist/esm/components/suggestion/suggestion.js +2 -2
  111. package/dist/esm/components/switch/switch.js +2 -2
  112. package/dist/esm/components/table/index.js +10 -10
  113. package/dist/esm/components/table/table-body.js +6 -6
  114. package/dist/esm/components/table/table-cell.js +1 -1
  115. package/dist/esm/components/table/table-foot.js +6 -6
  116. package/dist/esm/components/table/table-head.js +6 -6
  117. package/dist/esm/components/table/table-header-cell.js +1 -1
  118. package/dist/esm/components/table/table-row.js +4 -4
  119. package/dist/esm/components/tabs/index.js +6 -6
  120. package/dist/esm/components/tabs/tabs-list.js +4 -4
  121. package/dist/esm/components/tabs/tabs-panel.js +1 -1
  122. package/dist/esm/components/tabs/tabs-tab.js +1 -1
  123. package/dist/esm/components/textfield/textfield.js +2 -2
  124. package/dist/esm/components/toggle-group/index.js +4 -4
  125. package/dist/esm/components/toggle-group/toggle-group-item.js +1 -1
  126. package/dist/esm/index.js +10 -11
  127. package/dist/esm/utilities/hooks/use-synchronized-animation/use-synchronized-animation.js +4 -3
  128. package/dist/react-types.d.ts +1 -2
  129. package/dist/types/colors.d.ts +1 -23
  130. package/dist/types/colors.d.ts.map +1 -1
  131. package/dist/types/components/Combobox/Combobox.d.ts +2 -2
  132. package/dist/types/components/Combobox/Option/Option.d.ts.map +1 -1
  133. package/dist/types/components/Combobox/internal/ComboboxInput.d.ts.map +1 -1
  134. package/dist/types/{utilities → components/Combobox}/omit/omit.d.ts +2 -0
  135. package/dist/types/components/Combobox/omit/omit.d.ts.map +1 -0
  136. package/dist/types/components/Combobox/useFormField/useFormField.d.ts +1 -1
  137. package/dist/types/components/Combobox/useFormField/useFormField.d.ts.map +1 -1
  138. package/dist/types/components/alert/alert.d.ts +1 -1
  139. package/dist/types/components/alert/alert.d.ts.map +1 -1
  140. package/dist/types/components/avatar/avatar.d.ts +2 -1
  141. package/dist/types/components/avatar/avatar.d.ts.map +1 -1
  142. package/dist/types/components/badge/badge.d.ts +1 -1
  143. package/dist/types/components/badge/badge.d.ts.map +1 -1
  144. package/dist/types/components/badge/index.d.ts +1 -1
  145. package/dist/types/components/breadcrumbs/index.d.ts +48 -12
  146. package/dist/types/components/breadcrumbs/index.d.ts.map +1 -1
  147. package/dist/types/components/button/button.d.ts +3 -3
  148. package/dist/types/components/button/button.d.ts.map +1 -1
  149. package/dist/types/components/card/index.d.ts +18 -10
  150. package/dist/types/components/card/index.d.ts.map +1 -1
  151. package/dist/types/components/chip/index.d.ts +33 -14
  152. package/dist/types/components/chip/index.d.ts.map +1 -1
  153. package/dist/types/components/details/index.d.ts +19 -7
  154. package/dist/types/components/details/index.d.ts.map +1 -1
  155. package/dist/types/components/dialog/dialog-trigger.d.ts +1 -1
  156. package/dist/types/components/dialog/index.d.ts +46 -25
  157. package/dist/types/components/dialog/index.d.ts.map +1 -1
  158. package/dist/types/components/dropdown/dropdown-button.d.ts +12 -0
  159. package/dist/types/components/dropdown/dropdown-button.d.ts.map +1 -1
  160. package/dist/types/components/dropdown/dropdown-heading.d.ts +8 -0
  161. package/dist/types/components/dropdown/dropdown-heading.d.ts.map +1 -1
  162. package/dist/types/components/dropdown/dropdown-item.d.ts +12 -0
  163. package/dist/types/components/dropdown/dropdown-item.d.ts.map +1 -1
  164. package/dist/types/components/dropdown/dropdown-list.d.ts +12 -0
  165. package/dist/types/components/dropdown/dropdown-list.d.ts.map +1 -1
  166. package/dist/types/components/dropdown/dropdown-trigger-context.d.ts +9 -9
  167. package/dist/types/components/dropdown/dropdown-trigger.d.ts +16 -0
  168. package/dist/types/components/dropdown/dropdown-trigger.d.ts.map +1 -1
  169. package/dist/types/components/dropdown/index.d.ts +99 -19
  170. package/dist/types/components/dropdown/index.d.ts.map +1 -1
  171. package/dist/types/components/error-summary/error-summary-heading.d.ts +8 -0
  172. package/dist/types/components/error-summary/error-summary-heading.d.ts.map +1 -1
  173. package/dist/types/components/error-summary/error-summary-item.d.ts +4 -4
  174. package/dist/types/components/error-summary/error-summary-link.d.ts +8 -1
  175. package/dist/types/components/error-summary/error-summary-link.d.ts.map +1 -1
  176. package/dist/types/components/error-summary/error-summary-list.d.ts +15 -0
  177. package/dist/types/components/error-summary/error-summary-list.d.ts.map +1 -1
  178. package/dist/types/components/error-summary/index.d.ts +52 -20
  179. package/dist/types/components/error-summary/index.d.ts.map +1 -1
  180. package/dist/types/components/field/field-counter.d.ts +1 -1
  181. package/dist/types/components/field/field-description.d.ts +6 -0
  182. package/dist/types/components/field/field-description.d.ts.map +1 -1
  183. package/dist/types/components/field/index.d.ts +45 -17
  184. package/dist/types/components/field/index.d.ts.map +1 -1
  185. package/dist/types/components/fieldset/fieldset-description.d.ts +2 -2
  186. package/dist/types/components/fieldset/fieldset-legend.d.ts +1 -1
  187. package/dist/types/components/fieldset/index.d.ts +21 -9
  188. package/dist/types/components/fieldset/index.d.ts.map +1 -1
  189. package/dist/types/components/list/index.d.ts +32 -11
  190. package/dist/types/components/list/index.d.ts.map +1 -1
  191. package/dist/types/components/list/list-item.d.ts +6 -0
  192. package/dist/types/components/list/list-item.d.ts.map +1 -1
  193. package/dist/types/components/list/lists.d.ts +8 -8
  194. package/dist/types/components/pagination/index.d.ts +38 -15
  195. package/dist/types/components/pagination/index.d.ts.map +1 -1
  196. package/dist/types/components/pagination/pagination-button.d.ts +3 -3
  197. package/dist/types/components/pagination/pagination-item.d.ts +5 -5
  198. package/dist/types/components/pagination/pagination-list.d.ts +5 -5
  199. package/dist/types/components/popover/index.d.ts +39 -18
  200. package/dist/types/components/popover/index.d.ts.map +1 -1
  201. package/dist/types/components/popover/popover-trigger-context.d.ts +3 -3
  202. package/dist/types/components/popover/popover-trigger.d.ts +6 -6
  203. package/dist/types/components/popover/popover.d.ts +1 -1
  204. package/dist/types/components/popover/popover.d.ts.map +1 -1
  205. package/dist/types/components/search/index.d.ts +34 -15
  206. package/dist/types/components/search/index.d.ts.map +1 -1
  207. package/dist/types/components/search/search-button.d.ts +3 -3
  208. package/dist/types/components/search/search-clear.d.ts +2 -2
  209. package/dist/types/components/search/search-input.d.ts +1 -1
  210. package/dist/types/components/select/index.d.ts +27 -12
  211. package/dist/types/components/select/index.d.ts.map +1 -1
  212. package/dist/types/components/select/select-optgroup.d.ts +4 -4
  213. package/dist/types/components/select/select-option.d.ts +2 -2
  214. package/dist/types/components/suggestion/suggestion.d.ts +8 -8
  215. package/dist/types/components/table/index.d.ts +65 -16
  216. package/dist/types/components/table/index.d.ts.map +1 -1
  217. package/dist/types/components/table/table-body.d.ts +6 -6
  218. package/dist/types/components/table/table-cell.d.ts +1 -1
  219. package/dist/types/components/table/table-foot.d.ts +6 -6
  220. package/dist/types/components/table/table-head.d.ts +6 -6
  221. package/dist/types/components/table/table-header-cell.d.ts +1 -1
  222. package/dist/types/components/table/table-row.d.ts +4 -4
  223. package/dist/types/components/tabs/index.d.ts +29 -14
  224. package/dist/types/components/tabs/index.d.ts.map +1 -1
  225. package/dist/types/components/tabs/tabs-list.d.ts +4 -4
  226. package/dist/types/components/tabs/tabs-panel.d.ts +1 -1
  227. package/dist/types/components/tabs/tabs-tab.d.ts +1 -1
  228. package/dist/types/components/tabs/tabs.d.ts +1 -1
  229. package/dist/types/components/tag/tag.d.ts +1 -1
  230. package/dist/types/components/tag/tag.d.ts.map +1 -1
  231. package/dist/types/components/toggle-group/index.d.ts +11 -11
  232. package/dist/types/components/toggle-group/index.d.ts.map +1 -1
  233. package/dist/types/components/toggle-group/toggle-group-item.d.ts +1 -1
  234. package/dist/types/components/toggle-group/toggle-group.d.ts +1 -1
  235. package/dist/types/components/validation-message/validation-message.d.ts +1 -1
  236. package/dist/types/components/validation-message/validation-message.d.ts.map +1 -1
  237. package/dist/types/index.d.ts +15 -2
  238. package/dist/types/index.d.ts.map +1 -1
  239. package/dist/types/types.d.ts +1 -1
  240. package/dist/types/types.d.ts.map +1 -1
  241. package/dist/types/utilities/hooks/deprecated/use-debounce-callback/use-debounce-callback.d.ts.map +1 -0
  242. package/dist/types/utilities/hooks/deprecated/use-isomorphic-layout-effect/use-isomorphic-layout-effect.d.ts.map +1 -0
  243. package/dist/types/utilities/hooks/deprecated/use-media-query/use-media-query.d.ts.map +1 -0
  244. package/dist/types/utilities/hooks/index.d.ts +3 -3
  245. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  246. package/dist/types/utilities/hooks/use-synchronized-animation/use-synchronized-animation.d.ts +2 -0
  247. package/dist/types/utilities/hooks/use-synchronized-animation/use-synchronized-animation.d.ts.map +1 -1
  248. package/dist/types/utilities/index.d.ts +4 -3
  249. package/dist/types/utilities/index.d.ts.map +1 -1
  250. package/dist/types/utilities/roving-focus/use-roving-focus.d.ts +2 -2
  251. package/package.json +8 -7
  252. package/dist/types/utilities/hooks/use-debounce-callback/use-debounce-callback.d.ts.map +0 -1
  253. package/dist/types/utilities/hooks/use-isomorphic-layout-effect/use-isomorphic-layout-effect.d.ts.map +0 -1
  254. package/dist/types/utilities/hooks/use-media-query/use-media-query.d.ts.map +0 -1
  255. package/dist/types/utilities/omit/omit.d.ts.map +0 -1
  256. package/dist/types/utilities/roving-focus/index.d.ts +0 -4
  257. package/dist/types/utilities/roving-focus/index.d.ts.map +0 -1
  258. /package/dist/cjs/utilities/hooks/{use-debounce-callback → deprecated/use-debounce-callback}/use-debounce-callback.js +0 -0
  259. /package/dist/cjs/utilities/hooks/{use-isomorphic-layout-effect → deprecated/use-isomorphic-layout-effect}/use-isomorphic-layout-effect.js +0 -0
  260. /package/dist/cjs/utilities/hooks/{use-media-query → deprecated/use-media-query}/use-media-query.js +0 -0
  261. /package/dist/esm/utilities/hooks/{use-debounce-callback → deprecated/use-debounce-callback}/use-debounce-callback.js +0 -0
  262. /package/dist/esm/utilities/hooks/{use-isomorphic-layout-effect → deprecated/use-isomorphic-layout-effect}/use-isomorphic-layout-effect.js +0 -0
  263. /package/dist/esm/utilities/hooks/{use-media-query → deprecated/use-media-query}/use-media-query.js +0 -0
  264. /package/dist/types/utilities/hooks/{use-debounce-callback → deprecated/use-debounce-callback}/use-debounce-callback.d.ts +0 -0
  265. /package/dist/types/utilities/hooks/{use-isomorphic-layout-effect → deprecated/use-isomorphic-layout-effect}/use-isomorphic-layout-effect.d.ts +0 -0
  266. /package/dist/types/utilities/hooks/{use-media-query → deprecated/use-media-query}/use-media-query.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,MAAM,CAAC;AAC/C,KAAK,WAAW,GAAG;IAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnD;;;;GAIG;AAGH,MAAM,WAAW,oBAAoB;CAAG;AAExC;;;GAGG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,oBAAoB,SAAS,WAAW,GAChE,MAAM,GACN,CAAC,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;AACxC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC;AACtC,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,cAAc,CAAC;AAEnB,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,SAAS,GAAG,MAAM,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,cAAc,GACf,MAAM,8BAA8B,CAAC"}
@@ -206,7 +206,7 @@ export declare const ComboboxComponent: React.ForwardRefExoticComponent<{
206
206
  description?: ReactNode;
207
207
  id?: string;
208
208
  readOnly?: boolean;
209
- size?: import("../..").Size;
209
+ size?: import("packages/cli/dist/src/types").Size;
210
210
  } & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
211
211
  export declare const Combobox: React.ForwardRefExoticComponent<{
212
212
  /**
@@ -312,6 +312,6 @@ export declare const Combobox: React.ForwardRefExoticComponent<{
312
312
  description?: ReactNode;
313
313
  id?: string;
314
314
  readOnly?: boolean;
315
- size?: import("../..").Size;
315
+ size?: import("packages/cli/dist/src/types").Size;
316
316
  } & Pick<React.HTMLAttributes<HTMLElement>, "aria-describedby"> & Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement>>;
317
317
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/Option.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,QAAA,MAAM,cAAc;IAflB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;mBACY,MAAM;qFAoEtB,CAAC;AAIF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C"}
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/Option.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAS3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,QAAA,MAAM,cAAc;IAflB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;mBACY,MAAM;qFAoEtB,CAAC;AAIF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/internal/ComboboxInput.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,mBAAmB,EACnB,aAAa,EAEd,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAOjD,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,aAAa;4EAOhB,kBAAkB;;CAmIpB,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/internal/ComboboxInput.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,mBAAmB,EACnB,aAAa,EAEd,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQjD,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;IACnD,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;CAC/C,GAAG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAExD,QAAA,MAAM,aAAa;4EAOhB,kBAAkB;;CAmIpB,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -1,5 +1,7 @@
1
1
  type UnknownRecord = Record<string | number | symbol, unknown>;
2
2
  /**
3
+ * @deprecated This function is deprecated. Use suggest using `omit` from dedicated utiility libraries or create your own utility function.
4
+ *
3
5
  * Returns a partial copy of an object omitting the keys specified.
4
6
  * @param {Array} names an array of String property names to omit from the new object
5
7
  * @param {Object} obj The object to copy from
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omit.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/omit/omit.ts"],"names":[],"mappings":"AACA,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,MAAM,EAAE,EAAE,KAAK,aAAa,KAAG,MAiB1D,CAAC"}
@@ -1,5 +1,5 @@
1
+ import type { Size } from '@digdir/designsystemet/types';
1
2
  import type { HTMLAttributes, InputHTMLAttributes, ReactNode } from 'react';
2
- import type { Size } from '../../../types';
3
3
  export type FormFieldProps = {
4
4
  /** Error message for form field */
5
5
  error?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/useFormField/useFormField.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,MAAM,cAAc,GAAG;IAC3B,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2BAA2B;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,cAAc,GAAG,kBAAkB,CACjD,CAAC;CACH,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,cAAc,EACrB,QAAQ,MAAM,KACb,SAkCF,CAAC"}
1
+ {"version":3,"file":"useFormField.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/useFormField/useFormField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5E,MAAM,MAAM,cAAc,GAAG;IAC3B,mCAAmC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2BAA2B;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE;QACV,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,cAAc,GAAG,kBAAkB,CACjD,CAAC;CACH,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,cAAc,EACrB,QAAQ,MAAM,KACb,SAkCF,CAAC"}
@@ -1,5 +1,5 @@
1
+ import type { SeverityColors } from '@digdir/designsystemet/types';
1
2
  import type { HTMLAttributes } from 'react';
2
- import type { SeverityColors } from '../../colors';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
5
5
  export type AlertProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAfd;;;;OAIG;mBACY,cAAc;wCAsB/B,CAAC"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAfd;;;;OAIG;mBACY,cAAc;wCAsB/B,CAAC"}
@@ -1,5 +1,6 @@
1
+ import type { Size } from '@digdir/designsystemet/types';
1
2
  import type { HTMLAttributes, ReactNode } from 'react';
2
- import type { DefaultProps, Size } from '../../types';
3
+ import type { DefaultProps } from '../../types';
3
4
  import type { MergeRight } from '../../utilities';
4
5
  export type AvatarProps = MergeRight<DefaultProps & HTMLAttributes<HTMLSpanElement>, {
5
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,EAC9C;IACE;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM;IA3Cf;;OAEG;kBACW,MAAM;IACpB;;OAEG;kBACW,IAAI,GAAG,IAAI;IACzB;;;;OAIG;cACO,QAAQ,GAAG,QAAQ;IAC7B;;OAEG;eACQ,MAAM;IACjB;;;;OAIG;eACQ,SAAS;yCAkDtB,CAAC"}
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,EAC9C;IACE;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM;IA3Cf;;OAEG;kBACW,MAAM;IACpB;;OAEG;kBACW,IAAI,GAAG,IAAI;IACzB;;;;OAIG;cACO,QAAQ,GAAG,QAAQ;IAC7B;;OAEG;eACQ,MAAM;IACjB;;;;OAIG;eACQ,SAAS;yCAkDtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityColors } from '@digdir/designsystemet-react/colors';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet/types';
2
2
  import { type HTMLAttributes } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACf,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,EAC9C;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CACF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK;IAjCd;;OAEG;YACK,MAAM;IACd;;OAEG;eACQ,MAAM;IACjB;;;;OAIG;cACO,MAAM,GAAG,QAAQ;IAC3B;;OAEG;mBACY,KAAK,GAAG,cAAc;eAC1B,KAAK;yCA8BlB,CAAC"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,eAAe,CAAC,EAC9C;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CACF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK;IAjCd;;OAEG;YACK,MAAM;IACd;;OAEG;eACQ,MAAM;IACjB;;;;OAIG;cACO,MAAM,GAAG,QAAQ;IAC3B;;OAEG;mBACY,KAAK,GAAG,cAAc;eAC1B,KAAK;yCA8BlB,CAAC"}
@@ -9,7 +9,7 @@ declare const Badge: React.ForwardRefExoticComponent<Omit<import("../../types").
9
9
  count?: number;
10
10
  maxCount?: number;
11
11
  variant?: "base" | "tinted";
12
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityColors;
12
+ 'data-color'?: import("packages/cli/dist/src/types").Color | import("packages/cli/dist/src/types").SeverityColors;
13
13
  children?: never;
14
14
  } & React.RefAttributes<HTMLSpanElement>> & {
15
15
  Position: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLSpanElement>, "placement" | "overlap"> & {
@@ -1,11 +1,56 @@
1
+ import { Breadcrumbs as BreadcrumbsParent } from './breadcrumbs';
1
2
  import { BreadcrumbsItem } from './breadcrumbs-item';
2
3
  import { BreadcrumbsLink } from './breadcrumbs-link';
3
4
  import { BreadcrumbsList } from './breadcrumbs-list';
5
+ type Breadcrumbs = typeof BreadcrumbsParent & {
6
+ /**
7
+ * Component that provides a Breadcrumbs item.
8
+ *
9
+ * Place as a descendant of `Breadcrumbs.List`
10
+ *
11
+ * @example
12
+ * <Breadcrumbs.List>
13
+ * <Breadcrumbs.Item>
14
+ * <Breadcrumbs.Link href='#'>Nivå 1</Breadcrumbs.Link>
15
+ * </Breadcrumbs.Item>
16
+ * </Breadcrumbs.List>
17
+ */
18
+ Item: typeof BreadcrumbsItem;
19
+ /**
20
+ * Component that provides a link for the Breadcrumbs.
21
+ *
22
+ * Place as a descendant of `Breadcrumbs`
23
+ *
24
+ * @example
25
+ * <Breadcrumbs>
26
+ * <Breadcrumbs.Link href='#'>Nivå 1</Breadcrumbs.Link>
27
+ * </Breadcrumbs>
28
+ */
29
+ Link: typeof BreadcrumbsLink;
30
+ /**
31
+ * Component that provides a list of Breadcrumbs items.
32
+ *
33
+ * Place as a descendant of `Breadcrumbs`
34
+ *
35
+ * @example
36
+ * <Breadcrumbs>
37
+ * <Breadcrumbs.List>
38
+ * <Breadcrumbs.Item>
39
+ * <Breadcrumbs.Link href='#'>Nivå 1</Breadcrumbs.Link>
40
+ * </Breadcrumbs.Item>
41
+ * <Breadcrumbs.Item>
42
+ * <Breadcrumbs.Link href='#'>Nivå 2</Breadcrumbs.Link>
43
+ * </Breadcrumbs.Item>
44
+ * </Breadcrumbs.List>
45
+ * </Breadcrumbs>
46
+ */
47
+ List: typeof BreadcrumbsList;
48
+ };
4
49
  /**
5
50
  * `Breadcrumbs` is a component that displays a list of breadcrumbs.
6
51
  *
7
52
  * @example
8
- * <Breadcrumbs aria-label='Du er her:' {...args}>
53
+ * <Breadcrumbs aria-label='Du er her:'>
9
54
  * <Breadcrumbs.Link href='#' aria-label='Tilbake til Nivå 1'>
10
55
  * Nivå 1
11
56
  * </Breadcrumbs.Link>
@@ -19,19 +64,10 @@ import { BreadcrumbsList } from './breadcrumbs-list';
19
64
  * </Breadcrumbs.List>
20
65
  * </Breadcrumbs>
21
66
  */
22
- export declare const Breadcrumbs: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLElement>, "aria-label"> & {
23
- 'aria-label'?: string;
24
- } & React.RefAttributes<HTMLElement>> & {
25
- List: React.ForwardRefExoticComponent<import("./breadcrumbs-list").BreadcrumbsListProps & React.RefAttributes<HTMLOListElement>>;
26
- Item: React.ForwardRefExoticComponent<import("./breadcrumbs-item").BreadcrumbsItemProps & React.RefAttributes<HTMLLIElement>>;
27
- Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
28
- children: React.ReactNode;
29
- asChild?: boolean;
30
- } & React.RefAttributes<HTMLAnchorElement>>;
31
- };
67
+ declare const BreadcrumbsComponent: Breadcrumbs;
32
68
  export type { BreadcrumbsProps } from './breadcrumbs';
33
69
  export type { BreadcrumbsItemProps } from './breadcrumbs-item';
34
70
  export type { BreadcrumbsLinkProps } from './breadcrumbs-link';
35
71
  export type { BreadcrumbsListProps } from './breadcrumbs-list';
36
- export { BreadcrumbsList, BreadcrumbsItem, BreadcrumbsLink };
72
+ export { BreadcrumbsComponent as Breadcrumbs, BreadcrumbsList, BreadcrumbsItem, BreadcrumbsLink, };
37
73
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW;;;;;;;;;CAItB,CAAC;AAMH,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,KAAK,WAAW,GAAG,OAAO,iBAAiB,GAAG;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B;;;;;;;;;OASG;IACH,IAAI,EAAE,OAAO,eAAe,CAAC;IAC7B;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,EAAE,OAAO,eAAe,CAAC;CAC9B,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,oBAAoB,EAAE,WAI1B,CAAC;AAMH,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EACL,oBAAoB,IAAI,WAAW,EACnC,eAAe,EACf,eAAe,EACf,eAAe,GAChB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Color, SeverityDanger } from '@digdir/designsystemet-react/colors';
1
+ import type { Color, SeverityColors } from '@digdir/designsystemet/types';
2
2
  import type { ButtonHTMLAttributes, ReactNode } from 'react';
3
3
  import type { DefaultProps } from '../../types';
4
4
  import type { MergeRight } from '../../utilities';
@@ -11,7 +11,7 @@ export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLBut
11
11
  /**
12
12
  * Change the color scheme of the button
13
13
  */
14
- 'data-color'?: Color | SeverityDanger;
14
+ 'data-color'?: Color | Extract<SeverityColors, 'danger'>;
15
15
  /**
16
16
  * Toggle icon only styling, pass icon as children
17
17
  * @default false
@@ -50,7 +50,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<DefaultProps &
50
50
  /**
51
51
  * Change the color scheme of the button
52
52
  */
53
- 'data-color'?: Color | SeverityDanger;
53
+ 'data-color'?: Color | Extract<SeverityColors, "danger">;
54
54
  /**
55
55
  * Toggle icon only styling, pass icon as children
56
56
  * @default false
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACf,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IACtC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAxCf;;;OAGG;cACO,SAAS,GAAG,WAAW,GAAG,UAAU;IAC9C;;OAEG;mBACY,KAAK,GAAG,cAAc;IACrC;;;OAGG;WACI,OAAO;IACd;;;;;OAKG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;cACO,OAAO;IACjB;;;OAGG;WACI,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;2CAgDzD,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,UAAU,CAClC,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,EACtD;IACE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACzD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CACxD,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAxCf;;;OAGG;cACO,SAAS,GAAG,WAAW,GAAG,UAAU;IAC9C;;OAEG;mBACY,KAAK,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC;IACxD;;;OAGG;WACI,OAAO;IACd;;;;;OAKG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;cACO,OAAO;IACjB;;;OAGG;WACI,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;2CAgDzD,CAAC"}
@@ -1,4 +1,20 @@
1
+ import { Card as CardParent } from './card';
1
2
  import { CardBlock } from './card-block';
3
+ type Card = typeof CardParent & {
4
+ /**
5
+ * Use `Card.Block` to segment content with divider lines or to add full-bleed pictures/video
6
+ *
7
+ * Place as a descendant of `Card`
8
+ *
9
+ * @example
10
+ * <Card>
11
+ * <Card.Block>Header</Card.Block>
12
+ * <Card.Block>Content</Card.Block>
13
+ * <Card.Block>Footer</Card.Block>
14
+ * </Card>
15
+ */
16
+ Block: typeof CardBlock;
17
+ };
2
18
  /**
3
19
  * Card component to present content in a structured way.
4
20
  *
@@ -9,16 +25,8 @@ import { CardBlock } from './card-block';
9
25
  * <Card.Block>Footer</Card.Block>
10
26
  * </Card>
11
27
  */
12
- declare const Card: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLDivElement>, "children" | "variant" | "asChild"> & {
13
- variant?: "default" | "tinted";
14
- asChild?: boolean;
15
- children: React.ReactNode;
16
- } & React.RefAttributes<HTMLDivElement>> & {
17
- Block: React.ForwardRefExoticComponent<{
18
- asChild?: boolean;
19
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
20
- };
28
+ declare const CardComponent: Card;
21
29
  export type { CardProps } from './card';
22
30
  export type { CardBlockProps } from './card-block';
23
- export { Card, CardBlock };
31
+ export { CardComponent as Card, CardBlock };
24
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;GASG;AACH,QAAA,MAAM,IAAI;;;;;;;;CAER,CAAC;AAIH,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,KAAK,IAAI,GAAG,OAAO,UAAU,GAAG;IAC9B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,OAAO,SAAS,CAAC;CACzB,CAAC;AACF;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,EAAE,IAEnB,CAAC;AAIH,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,aAAa,IAAI,IAAI,EAAE,SAAS,EAAE,CAAC"}
@@ -1,18 +1,37 @@
1
1
  import { ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from './chips';
2
- declare const Chip: {
3
- Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "asChild"> & {
4
- asChild?: boolean;
5
- } & React.RefAttributes<HTMLButtonElement>>;
6
- Checkbox: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size">, "asChild"> & {
7
- asChild?: boolean;
8
- } & React.RefAttributes<HTMLLabelElement>>;
9
- Radio: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size">, "asChild"> & {
10
- asChild?: boolean;
11
- } & React.RefAttributes<HTMLLabelElement>>;
12
- Removable: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "asChild"> & {
13
- asChild?: boolean;
14
- } & React.RefAttributes<HTMLButtonElement>>;
2
+ type Chip = {
3
+ /**
4
+ * Chip.Button used for interaction
5
+ *
6
+ * @example
7
+ * <Chip.Button>Click me</Chip.Button>
8
+ */
9
+ Button: typeof ChipButton;
10
+ /**
11
+ * Chip.Checkbox used for multiselection
12
+ *
13
+ * @example
14
+ * <Chip.Checkbox name="language" value="nynorsk">Nynorsk</Chip.Checkbox>
15
+ * <Chip.Checkbox name="language" value="bokmål">Bokmål</Chip.Checkbox>
16
+ */
17
+ Checkbox: typeof ChipCheckbox;
18
+ /**
19
+ * Chip.Radio used for single selection
20
+ *
21
+ * @example
22
+ * <Chip.Radio name="language" value="nynorsk">Nynorsk</Chip.Radio>
23
+ * <Chip.Radio name="language" value="bokmål">Bokmål</Chip.Radio>
24
+ */
25
+ Radio: typeof ChipRadio;
26
+ /**
27
+ * Chip.Removable used for interaction
28
+ *
29
+ * @example
30
+ * <Chip.Removable>Click to remove me</Chip.Removable>
31
+ */
32
+ Removable: typeof ChipRemovable;
15
33
  };
34
+ declare const ChipComponent: Chip;
16
35
  export type { ChipButtonProps, ChipCheckboxProps, ChipRadioProps, ChipRemovableProps, } from './chips';
17
- export { Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable };
36
+ export { ChipComponent as Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable, };
18
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,QAAA,MAAM,IAAI;;;;;;;;;;;;;CAKT,CAAC;AAOF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7E,KAAK,IAAI,GAAG;IACV;;;;;OAKG;IACH,MAAM,EAAE,OAAO,UAAU,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,YAAY,CAAC;IAC9B;;;;;;OAMG;IACH,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB;;;;;OAKG;IACH,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,aAAa,EAAE,IAKpB,CAAC;AAOF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,aAAa,IAAI,IAAI,EACrB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,aAAa,GACd,CAAC"}
@@ -1,5 +1,22 @@
1
+ import { Details as DetailsParent } from './details';
1
2
  import { DetailsContent } from './details-content';
2
3
  import { DetailsSummary } from './details-summary';
4
+ type Details = typeof DetailsParent & {
5
+ /**
6
+ * Details summary component, contains a the heading to toggle the content.
7
+ *
8
+ * @example
9
+ * <Details.Summary>Heading</Details.Summary>
10
+ */
11
+ Summary: typeof DetailsSummary;
12
+ /**
13
+ * Details content component, contains the content of the details item.
14
+ *
15
+ * @example
16
+ * <DetailsContent>Content</DetailsContent>
17
+ */
18
+ Content: typeof DetailsContent;
19
+ };
3
20
  /**
4
21
  * Details component, contains `Details.Summary` and `Details.Content` components.
5
22
  *
@@ -9,14 +26,9 @@ import { DetailsSummary } from './details-summary';
9
26
  * <Details.Content>Content</Details.Content>
10
27
  * </Details>
11
28
  */
12
- declare const Details: React.ForwardRefExoticComponent<import("./details").DetailsProps & React.RefAttributes<HTMLDetailsElement>> & {
13
- Summary: React.ForwardRefExoticComponent<{
14
- children: React.ReactNode;
15
- } & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
16
- Content: React.ForwardRefExoticComponent<import("./details-content").DetailsContentProps & React.RefAttributes<HTMLDivElement>>;
17
- };
29
+ declare const DetailsComponent: Details;
18
30
  export type { DetailsProps } from './details';
19
31
  export type { DetailsContentProps } from './details-content';
20
32
  export type { DetailsSummaryProps } from './details-summary';
21
- export { Details, DetailsContent, DetailsSummary };
33
+ export { DetailsComponent as Details, DetailsContent, DetailsSummary };
22
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/details/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;GAQG;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,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/details/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,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,OAAO,GAAG,OAAO,aAAa,GAAG;IACpC;;;;;OAKG;IACH,OAAO,EAAE,OAAO,cAAc,CAAC;IAC/B;;;;;OAKG;IACH,OAAO,EAAE,OAAO,cAAc,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;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,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
@@ -14,7 +14,7 @@ export type DialogTriggerProps = ComponentPropsWithRef<typeof Button>;
14
14
  */
15
15
  export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
16
16
  variant?: "primary" | "secondary" | "tertiary";
17
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
17
+ 'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
18
18
  icon?: boolean;
19
19
  loading?: boolean | React.ReactNode;
20
20
  asChild?: boolean;
@@ -1,6 +1,50 @@
1
+ import { Dialog as DialogParent } from './dialog';
1
2
  import { DialogBlock } from './dialog-block';
2
3
  import { DialogTrigger } from './dialog-trigger';
3
4
  import { DialogTriggerContext } from './dialog-trigger-context';
5
+ type Dialog = typeof DialogParent & {
6
+ /**
7
+ * DialogTriggerContext component, used to provide a context for a dialog trigger.
8
+ *
9
+ * @example
10
+ * <Dialog.TriggerContext>
11
+ * <Dialog.Trigger>Open Dialog</Dialog.Trigger>
12
+ * <Dialog>
13
+ * Content
14
+ * </Dialog>
15
+ * </Dialog.TriggerContext>
16
+ */
17
+ TriggerContext: typeof DialogTriggerContext;
18
+ /**
19
+ * DialogTrigger component, used within a Dialog.TriggerContext to open a dialog.
20
+ *
21
+ * @example
22
+ * <Dialog.TriggerContext>
23
+ * <Dialog.Trigger>Open Dialog</Dialog.Trigger>
24
+ * <Dialog>
25
+ * Content
26
+ * </Dialog>
27
+ * </Dialog.TriggerContext>
28
+ */
29
+ Trigger: typeof DialogTrigger;
30
+ /**
31
+ * DialogBlock component, used to separate content in a Dialog.
32
+ *
33
+ * @example
34
+ * <Dialog>
35
+ * <Dialog.Block>
36
+ * Header
37
+ * </Dialog.Block>
38
+ * <Dialog.Block>
39
+ * Content
40
+ * </Dialog.Block>
41
+ * <Dialog.Block>
42
+ * Footer
43
+ * </Dialog.Block>
44
+ * </Dialog>
45
+ */
46
+ Block: typeof DialogBlock;
47
+ };
4
48
  /**
5
49
  * Dialog component, used to display a Dialog dialog.
6
50
  *
@@ -14,33 +58,10 @@ import { DialogTriggerContext } from './dialog-trigger-context';
14
58
  * </Dialog>
15
59
  * </Dialog.TriggerContext>
16
60
  */
17
- declare const Dialog: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.DialogHTMLAttributes<HTMLDialogElement>, "asChild" | "open" | "onClose" | "closeButton" | "closedby" | "modal"> & {
18
- closeButton?: string | false;
19
- closedby?: "none" | "closerequest" | "any";
20
- modal?: boolean;
21
- open?: boolean;
22
- onClose?: (event: Event) => void;
23
- asChild?: boolean;
24
- } & React.RefAttributes<HTMLDialogElement>> & {
25
- Block: React.ForwardRefExoticComponent<{
26
- asChild?: boolean;
27
- } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
28
- TriggerContext: {
29
- ({ children, }: import("./dialog-trigger-context").DialogTriggerContextProps): import("react/jsx-runtime").JSX.Element;
30
- displayName: string;
31
- };
32
- Trigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
33
- variant?: "primary" | "secondary" | "tertiary";
34
- 'data-color'?: import("../../colors").Color | import("../../colors").SeverityDanger;
35
- icon?: boolean;
36
- loading?: boolean | React.ReactNode;
37
- asChild?: boolean;
38
- type?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
39
- } & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
40
- };
61
+ declare const DialogComponent: Dialog;
41
62
  export type { DialogProps } from './dialog';
42
63
  export type { DialogBlockProps } from './dialog-block';
43
64
  export type { DialogTriggerProps } from './dialog-trigger';
44
65
  export type { DialogTriggerContextProps } from './dialog-trigger-context';
45
- export { Dialog, DialogBlock, DialogTriggerContext, DialogTrigger };
66
+ export { DialogComponent as Dialog, DialogBlock, DialogTriggerContext, DialogTrigger, };
46
67
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAIV,CAAC;AAMH,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,KAAK,MAAM,GAAG,OAAO,YAAY,GAAG;IAClC;;;;;;;;;;OAUG;IACH,cAAc,EAAE,OAAO,oBAAoB,CAAC;IAC5C;;;;;;;;;;OAUG;IACH,OAAO,EAAE,OAAO,aAAa,CAAC;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,KAAK,EAAE,OAAO,WAAW,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,eAAe,EAAE,MAIrB,CAAC;AAMH,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,eAAe,IAAI,MAAM,EACzB,WAAW,EACX,oBAAoB,EACpB,aAAa,GACd,CAAC"}
@@ -1,4 +1,16 @@
1
1
  import { type ButtonProps } from '../button/button';
2
2
  export type DropdownButtonProps = Omit<ButtonProps, 'variant'>;
3
+ /**
4
+ * DropdownButton component, used to display a button in the DropdownItem.
5
+ *
6
+ * @example
7
+ * <Dropdown>
8
+ * <DropdownList>
9
+ * <DropdownItem>
10
+ * <DropdownButton>Button</DropdownButton>
11
+ * </DropdownItem>
12
+ * </DropdownList>
13
+ * </Dropdown>
14
+ */
3
15
  export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
4
16
  //# sourceMappingURL=dropdown-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-button.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,cAAc,+FAKzB,CAAC"}
1
+ {"version":3,"file":"dropdown-button.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAE/D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,+FAKzB,CAAC"}
@@ -1,5 +1,13 @@
1
1
  import { type HeadingProps } from '../heading/heading';
2
2
  export type DropdownHeadingProps = HeadingProps;
3
+ /**
4
+ * DropdownHeading component, used to display a heading in the Dropdown.
5
+ *
6
+ * @example
7
+ * <Dropdown>
8
+ * <DropdownHeading>Heading</DropdownHeading>
9
+ * </Dropdown>
10
+ */
3
11
  export declare const DropdownHeading: React.ForwardRefExoticComponent<{
4
12
  level?: 1 | 2 | 3 | 4 | 5 | 6;
5
13
  'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-heading.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,eAAe;;;;uFAK1B,CAAC"}
1
+ {"version":3,"file":"dropdown-heading.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-heading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;uFAK1B,CAAC"}
@@ -1,4 +1,16 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  export type DropdownItemProps = HTMLAttributes<HTMLLIElement>;
3
+ /**
4
+ * DropdownItem component, used to display an item in the Dropdown. Used within a DropdownList.
5
+ *
6
+ * @example
7
+ * <Dropdown>
8
+ * <DropdownList>
9
+ * <DropdownItem>
10
+ * <DropdownButton>Button</DropdownButton>
11
+ * </DropdownItem>
12
+ * </DropdownList>
13
+ * </Dropdown>
14
+ */
3
15
  export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLLIElement>>;
4
16
  //# sourceMappingURL=dropdown-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-item.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,yFAIxB,CAAC"}
1
+ {"version":3,"file":"dropdown-item.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,yFAIxB,CAAC"}
@@ -1,4 +1,16 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  export type DropdownListProps = HTMLAttributes<HTMLUListElement>;
3
+ /**
4
+ * DropdownList component, used to display a list of items in the Dropdown.
5
+ *
6
+ * @example
7
+ * <Dropdown>
8
+ * <DropdownList>
9
+ * <DropdownItem>
10
+ * <DropdownButton>Button</DropdownButton>
11
+ * </DropdownItem>
12
+ * </DropdownList>
13
+ * </Dropdown>
14
+ */
3
15
  export declare const DropdownList: React.ForwardRefExoticComponent<DropdownListProps & React.RefAttributes<HTMLUListElement>>;
4
16
  //# sourceMappingURL=dropdown-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-list.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEjE,eAAO,MAAM,YAAY,4FAIxB,CAAC"}
1
+ {"version":3,"file":"dropdown-list.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,4FAIxB,CAAC"}
@@ -6,17 +6,17 @@ export type DropdownTriggerContextProps = {
6
6
  * DropdownTriggerContext enables use of the `.Trigger` for the Dropdown component.
7
7
  *
8
8
  * @example
9
- * <Dropdown.TriggerContext>
10
- * <Dropdown.Trigger>Dropdown</Dropdown.Trigger>
9
+ * <DropdownTriggerContext>
10
+ * <DropdownTrigger>Dropdown</DropdownTrigger>
11
11
  * <Dropdown>
12
- * <Dropdown.Heading>Heading</Dropdown.Heading>
13
- * <Dropdown.List>
14
- * <Dropdown.Item>
15
- * <Dropdown.Button>Button</Dropdown.Button>
16
- * </Dropdown.Item>
17
- * </Dropdown.List>
12
+ * <DropdownHeading>Heading</DropdownHeading>
13
+ * <DropdownList>
14
+ * <DropdownItem>
15
+ * <DropdownButton>Button</DropdownButton>
16
+ * </DropdownItem>
17
+ * </DropdownList>
18
18
  * </Dropdown>
19
- * </Dropdown.TriggerContext>
19
+ * </DropdownTriggerContext>
20
20
  */
21
21
  export declare const DropdownTriggerContext: {
22
22
  ({ children, }: DropdownTriggerContextProps): import("react/jsx-runtime").JSX.Element;