@digdir/designsystemet-react 1.0.0-next.34 → 1.0.0-next.35

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 (285) hide show
  1. package/dist/cjs/components/Accordion/AccordionContent.js +1 -2
  2. package/dist/cjs/components/Accordion/AccordionHeading.js +4 -6
  3. package/dist/cjs/components/Accordion/AccordionItem.js +16 -52
  4. package/dist/cjs/components/Alert/Alert.js +1 -2
  5. package/dist/cjs/components/Avatar/Avatar.js +1 -7
  6. package/dist/cjs/components/Badge/Badge.js +1 -7
  7. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
  8. package/dist/cjs/components/Button/Button.js +4 -3
  9. package/dist/cjs/components/Card/Card.js +24 -6
  10. package/dist/cjs/components/Card/{CardMedia.js → CardBlock.js} +3 -4
  11. package/dist/cjs/components/Card/index.js +6 -17
  12. package/dist/cjs/components/Chip/Chips.js +50 -0
  13. package/dist/cjs/components/Chip/index.js +12 -11
  14. package/dist/cjs/components/Dropdown/DropdownHeading.js +2 -5
  15. package/dist/cjs/components/ErrorSummary/ErrorSummaryHeading.js +2 -2
  16. package/dist/cjs/components/{Typography/Heading → Heading}/Heading.js +2 -3
  17. package/dist/cjs/components/{Typography/Label → Label}/Label.js +2 -3
  18. package/dist/cjs/components/List/Lists.js +1 -2
  19. package/dist/cjs/components/Modal/Modal.js +45 -0
  20. package/dist/cjs/components/Modal/ModalBlock.js +14 -0
  21. package/dist/cjs/components/Modal/ModalContext.js +17 -0
  22. package/dist/cjs/components/Modal/ModalTrigger.js +4 -5
  23. package/dist/cjs/components/Modal/index.js +12 -22
  24. package/dist/cjs/components/Pagination/Pagination.js +9 -14
  25. package/dist/cjs/components/Pagination/PaginationButton.js +4 -4
  26. package/dist/cjs/components/Pagination/PaginationItem.js +1 -4
  27. package/dist/cjs/components/Pagination/PaginationList.js +2 -5
  28. package/dist/cjs/components/Pagination/index.js +5 -19
  29. package/dist/cjs/components/Pagination/usePagination.js +46 -51
  30. package/dist/cjs/components/{Typography/Paragraph → Paragraph}/Paragraph.js +2 -8
  31. package/dist/cjs/components/Popover/Popover.js +3 -4
  32. package/dist/cjs/components/SkipLink/SkipLink.js +4 -4
  33. package/dist/cjs/components/Table/Table.js +1 -2
  34. package/dist/cjs/components/Tabs/TabsPanel.js +1 -2
  35. package/dist/cjs/components/Tabs/TabsTab.js +1 -2
  36. package/dist/cjs/components/Tag/Tag.js +1 -2
  37. package/dist/cjs/components/Tooltip/Tooltip.js +5 -6
  38. package/dist/cjs/components/{Typography/ValidationMessage → ValidationMessage}/ValidationMessage.js +2 -2
  39. package/dist/cjs/components/form/CharacterCounter.js +1 -1
  40. package/dist/cjs/components/form/Checkbox/Checkbox.js +2 -2
  41. package/dist/cjs/components/form/Combobox/Combobox.js +1 -2
  42. package/dist/cjs/components/form/Combobox/Custom.js +1 -1
  43. package/dist/cjs/components/form/Combobox/Empty.js +1 -1
  44. package/dist/cjs/components/form/Combobox/Option/Option.js +1 -1
  45. package/dist/cjs/components/form/Combobox/internal/ComboboxChips.js +2 -2
  46. package/dist/cjs/components/form/Combobox/internal/ComboboxError.js +1 -1
  47. package/dist/cjs/components/form/Combobox/internal/ComboboxInput.js +2 -2
  48. package/dist/cjs/components/form/Combobox/internal/ComboboxLabel.js +2 -2
  49. package/dist/cjs/components/form/Fieldset/Fieldset.js +3 -3
  50. package/dist/cjs/components/form/Radio/Radio.js +2 -2
  51. package/dist/cjs/components/form/Search/Search.js +2 -2
  52. package/dist/cjs/components/form/Select/Select.js +3 -3
  53. package/dist/cjs/components/form/Switch/Switch.js +3 -3
  54. package/dist/cjs/components/form/Textarea/Textarea.js +3 -3
  55. package/dist/cjs/components/form/Textfield/Textfield.js +3 -3
  56. package/dist/cjs/components/loaders/Skeleton/Skeleton.js +4 -2
  57. package/dist/cjs/index.js +17 -39
  58. package/dist/esm/components/Accordion/AccordionContent.js +1 -2
  59. package/dist/esm/components/Accordion/AccordionHeading.js +4 -6
  60. package/dist/esm/components/Accordion/AccordionItem.js +17 -53
  61. package/dist/esm/components/Alert/Alert.js +1 -2
  62. package/dist/esm/components/Avatar/Avatar.js +1 -7
  63. package/dist/esm/components/Badge/Badge.js +1 -7
  64. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +1 -2
  65. package/dist/esm/components/Button/Button.js +5 -4
  66. package/dist/esm/components/Card/Card.js +25 -7
  67. package/dist/esm/components/Card/{CardMedia.js → CardBlock.js} +3 -4
  68. package/dist/esm/components/Card/index.js +6 -14
  69. package/dist/esm/components/Chip/Chips.js +45 -0
  70. package/dist/esm/components/Chip/index.js +9 -9
  71. package/dist/esm/components/Dropdown/DropdownHeading.js +3 -6
  72. package/dist/esm/components/ErrorSummary/ErrorSummaryHeading.js +2 -2
  73. package/dist/esm/components/{Typography/Heading → Heading}/Heading.js +2 -3
  74. package/dist/esm/components/Label/Label.js +18 -0
  75. package/dist/esm/components/List/Lists.js +1 -2
  76. package/dist/esm/components/Modal/Modal.js +43 -0
  77. package/dist/esm/components/Modal/ModalBlock.js +12 -0
  78. package/dist/esm/components/Modal/ModalContext.js +14 -0
  79. package/dist/esm/components/Modal/ModalTrigger.js +4 -5
  80. package/dist/esm/components/Modal/index.js +11 -18
  81. package/dist/esm/components/Pagination/Pagination.js +11 -17
  82. package/dist/esm/components/Pagination/PaginationButton.js +3 -3
  83. package/dist/esm/components/Pagination/PaginationItem.js +2 -5
  84. package/dist/esm/components/Pagination/PaginationList.js +3 -6
  85. package/dist/esm/components/Pagination/index.js +6 -16
  86. package/dist/esm/components/Pagination/usePagination.js +47 -52
  87. package/dist/esm/components/Paragraph/Paragraph.js +18 -0
  88. package/dist/esm/components/Popover/Popover.js +3 -4
  89. package/dist/esm/components/SkipLink/SkipLink.js +4 -4
  90. package/dist/esm/components/Table/Table.js +1 -2
  91. package/dist/esm/components/Tabs/TabsPanel.js +1 -2
  92. package/dist/esm/components/Tabs/TabsTab.js +1 -2
  93. package/dist/esm/components/Tag/Tag.js +1 -2
  94. package/dist/esm/components/Tooltip/Tooltip.js +5 -6
  95. package/dist/esm/components/{Typography/ValidationMessage → ValidationMessage}/ValidationMessage.js +2 -2
  96. package/dist/esm/components/form/CharacterCounter.js +1 -1
  97. package/dist/esm/components/form/Checkbox/Checkbox.js +2 -2
  98. package/dist/esm/components/form/Combobox/Combobox.js +2 -3
  99. package/dist/esm/components/form/Combobox/Custom.js +1 -1
  100. package/dist/esm/components/form/Combobox/Empty.js +1 -1
  101. package/dist/esm/components/form/Combobox/Option/Option.js +1 -1
  102. package/dist/esm/components/form/Combobox/internal/ComboboxChips.js +2 -2
  103. package/dist/esm/components/form/Combobox/internal/ComboboxError.js +1 -1
  104. package/dist/esm/components/form/Combobox/internal/ComboboxInput.js +2 -2
  105. package/dist/esm/components/form/Combobox/internal/ComboboxLabel.js +2 -2
  106. package/dist/esm/components/form/Fieldset/Fieldset.js +3 -3
  107. package/dist/esm/components/form/Radio/Radio.js +2 -2
  108. package/dist/esm/components/form/Search/Search.js +2 -2
  109. package/dist/esm/components/form/Select/Select.js +3 -3
  110. package/dist/esm/components/form/Switch/Switch.js +3 -3
  111. package/dist/esm/components/form/Textarea/Textarea.js +3 -3
  112. package/dist/esm/components/form/Textfield/Textfield.js +3 -3
  113. package/dist/esm/components/loaders/Skeleton/Skeleton.js +4 -2
  114. package/dist/esm/index.js +8 -20
  115. package/dist/types/components/Accordion/AccordionContent.d.ts.map +1 -1
  116. package/dist/types/components/Accordion/AccordionHeading.d.ts +2 -2
  117. package/dist/types/components/Accordion/AccordionHeading.d.ts.map +1 -1
  118. package/dist/types/components/Accordion/AccordionItem.d.ts +8 -8
  119. package/dist/types/components/Accordion/AccordionItem.d.ts.map +1 -1
  120. package/dist/types/components/Alert/Alert.d.ts.map +1 -1
  121. package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
  122. package/dist/types/components/Badge/Badge.d.ts.map +1 -1
  123. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  124. package/dist/types/components/Button/Button.d.ts.map +1 -1
  125. package/dist/types/components/Card/Card.d.ts +5 -15
  126. package/dist/types/components/Card/Card.d.ts.map +1 -1
  127. package/dist/types/components/Card/{CardMedia.d.ts → CardBlock.d.ts} +3 -3
  128. package/dist/types/components/Card/{CardMedia.d.ts.map → CardBlock.d.ts.map} +1 -1
  129. package/dist/types/components/Card/index.d.ts +12 -16
  130. package/dist/types/components/Card/index.d.ts.map +1 -1
  131. package/dist/types/components/Chip/Chips.d.ts +45 -0
  132. package/dist/types/components/Chip/Chips.d.ts.map +1 -0
  133. package/dist/types/components/Chip/index.d.ts +20 -21
  134. package/dist/types/components/Chip/index.d.ts.map +1 -1
  135. package/dist/types/components/Dropdown/DropdownHeading.d.ts.map +1 -1
  136. package/dist/types/components/ErrorSummary/ErrorSummaryHeading.d.ts +1 -2
  137. package/dist/types/components/ErrorSummary/ErrorSummaryHeading.d.ts.map +1 -1
  138. package/dist/types/components/ErrorSummary/index.d.ts +0 -1
  139. package/dist/types/components/ErrorSummary/index.d.ts.map +1 -1
  140. package/dist/types/components/{Typography/Heading → Heading}/Heading.d.ts +0 -4
  141. package/dist/types/components/Heading/Heading.d.ts.map +1 -0
  142. package/dist/types/components/Heading/index.d.ts.map +1 -0
  143. package/dist/types/components/{Typography/Label → Label}/Label.d.ts +0 -4
  144. package/dist/types/components/Label/Label.d.ts.map +1 -0
  145. package/dist/types/components/Label/index.d.ts.map +1 -0
  146. package/dist/types/components/List/Lists.d.ts.map +1 -1
  147. package/dist/types/components/Modal/Modal.d.ts +38 -0
  148. package/dist/types/components/Modal/Modal.d.ts.map +1 -0
  149. package/dist/types/components/{Card/CardFooter.d.ts → Modal/ModalBlock.d.ts} +3 -3
  150. package/dist/types/components/Modal/ModalBlock.d.ts.map +1 -0
  151. package/dist/types/components/Modal/ModalContext.d.ts +10 -0
  152. package/dist/types/components/Modal/ModalContext.d.ts.map +1 -0
  153. package/dist/types/components/Modal/ModalTrigger.d.ts.map +1 -1
  154. package/dist/types/components/Modal/index.d.ts +31 -20
  155. package/dist/types/components/Modal/index.d.ts.map +1 -1
  156. package/dist/types/components/Pagination/Pagination.d.ts +23 -36
  157. package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
  158. package/dist/types/components/Pagination/PaginationButton.d.ts +4 -3
  159. package/dist/types/components/Pagination/PaginationButton.d.ts.map +1 -1
  160. package/dist/types/components/Pagination/PaginationItem.d.ts.map +1 -1
  161. package/dist/types/components/Pagination/PaginationList.d.ts +1 -1
  162. package/dist/types/components/Pagination/PaginationList.d.ts.map +1 -1
  163. package/dist/types/components/Pagination/index.d.ts +16 -17
  164. package/dist/types/components/Pagination/index.d.ts.map +1 -1
  165. package/dist/types/components/Pagination/usePagination.d.ts +41 -17
  166. package/dist/types/components/Pagination/usePagination.d.ts.map +1 -1
  167. package/dist/types/components/{Typography/Paragraph → Paragraph}/Paragraph.d.ts +2 -6
  168. package/dist/types/components/Paragraph/Paragraph.d.ts.map +1 -0
  169. package/dist/types/components/Paragraph/index.d.ts.map +1 -0
  170. package/dist/types/components/Popover/Popover.d.ts.map +1 -1
  171. package/dist/types/components/SkipLink/SkipLink.d.ts +7 -5
  172. package/dist/types/components/SkipLink/SkipLink.d.ts.map +1 -1
  173. package/dist/types/components/Table/Table.d.ts.map +1 -1
  174. package/dist/types/components/Tabs/TabsPanel.d.ts.map +1 -1
  175. package/dist/types/components/Tabs/TabsTab.d.ts.map +1 -1
  176. package/dist/types/components/Tag/Tag.d.ts +2 -5
  177. package/dist/types/components/Tag/Tag.d.ts.map +1 -1
  178. package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
  179. package/dist/types/components/{Typography/ValidationMessage → ValidationMessage}/ValidationMessage.d.ts +0 -4
  180. package/dist/types/components/ValidationMessage/ValidationMessage.d.ts.map +1 -0
  181. package/dist/types/components/ValidationMessage/index.d.ts.map +1 -0
  182. package/dist/types/components/form/Checkbox/Checkbox.d.ts.map +1 -1
  183. package/dist/types/components/form/Combobox/Combobox.d.ts.map +1 -1
  184. package/dist/types/components/form/Combobox/internal/ComboboxLabel.d.ts.map +1 -1
  185. package/dist/types/components/form/Fieldset/Fieldset.d.ts.map +1 -1
  186. package/dist/types/components/form/Radio/Radio.d.ts.map +1 -1
  187. package/dist/types/components/form/Search/Search.d.ts.map +1 -1
  188. package/dist/types/components/form/Select/Select.d.ts.map +1 -1
  189. package/dist/types/components/form/Switch/Switch.d.ts.map +1 -1
  190. package/dist/types/components/form/Textarea/Textarea.d.ts.map +1 -1
  191. package/dist/types/components/form/Textfield/Textfield.d.ts.map +1 -1
  192. package/dist/types/components/index.d.ts +4 -1
  193. package/dist/types/components/index.d.ts.map +1 -1
  194. package/dist/types/components/loaders/Skeleton/Skeleton.d.ts +8 -17
  195. package/dist/types/components/loaders/Skeleton/Skeleton.d.ts.map +1 -1
  196. package/package.json +3 -3
  197. package/dist/cjs/components/Card/CardContent.js +0 -16
  198. package/dist/cjs/components/Card/CardFooter.js +0 -16
  199. package/dist/cjs/components/Card/CardHeader.js +0 -16
  200. package/dist/cjs/components/Chip/Group/Group.js +0 -15
  201. package/dist/cjs/components/Chip/Removable/Removable.js +0 -17
  202. package/dist/cjs/components/Chip/Toggle/Toggle.js +0 -18
  203. package/dist/cjs/components/Modal/ModaContent.js +0 -15
  204. package/dist/cjs/components/Modal/ModalDialog.js +0 -73
  205. package/dist/cjs/components/Modal/ModalFooter.js +0 -15
  206. package/dist/cjs/components/Modal/ModalHeader.js +0 -20
  207. package/dist/cjs/components/Modal/ModalRoot.js +0 -31
  208. package/dist/cjs/components/Modal/useModalState.js +0 -30
  209. package/dist/cjs/components/Modal/useScrollLock.js +0 -29
  210. package/dist/cjs/components/Pagination/PaginationEllipsis.js +0 -15
  211. package/dist/cjs/components/Pagination/PaginationNextPrev.js +0 -16
  212. package/dist/cjs/components/Pagination/PaginationRoot.js +0 -18
  213. package/dist/cjs/components/Typography/Ingress/Ingress.js +0 -21
  214. package/dist/esm/components/Card/CardContent.js +0 -14
  215. package/dist/esm/components/Card/CardFooter.js +0 -14
  216. package/dist/esm/components/Card/CardHeader.js +0 -14
  217. package/dist/esm/components/Chip/Group/Group.js +0 -12
  218. package/dist/esm/components/Chip/Removable/Removable.js +0 -15
  219. package/dist/esm/components/Chip/Toggle/Toggle.js +0 -16
  220. package/dist/esm/components/Modal/ModaContent.js +0 -13
  221. package/dist/esm/components/Modal/ModalDialog.js +0 -71
  222. package/dist/esm/components/Modal/ModalFooter.js +0 -13
  223. package/dist/esm/components/Modal/ModalHeader.js +0 -18
  224. package/dist/esm/components/Modal/ModalRoot.js +0 -28
  225. package/dist/esm/components/Modal/useModalState.js +0 -28
  226. package/dist/esm/components/Modal/useScrollLock.js +0 -27
  227. package/dist/esm/components/Pagination/PaginationEllipsis.js +0 -13
  228. package/dist/esm/components/Pagination/PaginationNextPrev.js +0 -13
  229. package/dist/esm/components/Pagination/PaginationRoot.js +0 -15
  230. package/dist/esm/components/Typography/Ingress/Ingress.js +0 -19
  231. package/dist/esm/components/Typography/Label/Label.js +0 -19
  232. package/dist/esm/components/Typography/Paragraph/Paragraph.js +0 -24
  233. package/dist/types/components/Card/CardContent.d.ts +0 -16
  234. package/dist/types/components/Card/CardContent.d.ts.map +0 -1
  235. package/dist/types/components/Card/CardFooter.d.ts.map +0 -1
  236. package/dist/types/components/Card/CardHeader.d.ts +0 -16
  237. package/dist/types/components/Card/CardHeader.d.ts.map +0 -1
  238. package/dist/types/components/Chip/Group/Group.d.ts +0 -20
  239. package/dist/types/components/Chip/Group/Group.d.ts.map +0 -1
  240. package/dist/types/components/Chip/Removable/Removable.d.ts +0 -17
  241. package/dist/types/components/Chip/Removable/Removable.d.ts.map +0 -1
  242. package/dist/types/components/Chip/Toggle/Toggle.d.ts +0 -33
  243. package/dist/types/components/Chip/Toggle/Toggle.d.ts.map +0 -1
  244. package/dist/types/components/Modal/ModaContent.d.ts +0 -16
  245. package/dist/types/components/Modal/ModaContent.d.ts.map +0 -1
  246. package/dist/types/components/Modal/ModalDialog.d.ts +0 -38
  247. package/dist/types/components/Modal/ModalDialog.d.ts.map +0 -1
  248. package/dist/types/components/Modal/ModalFooter.d.ts +0 -16
  249. package/dist/types/components/Modal/ModalFooter.d.ts.map +0 -1
  250. package/dist/types/components/Modal/ModalHeader.d.ts +0 -44
  251. package/dist/types/components/Modal/ModalHeader.d.ts.map +0 -1
  252. package/dist/types/components/Modal/ModalRoot.d.ts +0 -17
  253. package/dist/types/components/Modal/ModalRoot.d.ts.map +0 -1
  254. package/dist/types/components/Modal/useModalState.d.ts +0 -2
  255. package/dist/types/components/Modal/useModalState.d.ts.map +0 -1
  256. package/dist/types/components/Modal/useScrollLock.d.ts +0 -2
  257. package/dist/types/components/Modal/useScrollLock.d.ts.map +0 -1
  258. package/dist/types/components/Pagination/PaginationEllipsis.d.ts +0 -4
  259. package/dist/types/components/Pagination/PaginationEllipsis.d.ts.map +0 -1
  260. package/dist/types/components/Pagination/PaginationNextPrev.d.ts +0 -10
  261. package/dist/types/components/Pagination/PaginationNextPrev.d.ts.map +0 -1
  262. package/dist/types/components/Pagination/PaginationRoot.d.ts +0 -53
  263. package/dist/types/components/Pagination/PaginationRoot.d.ts.map +0 -1
  264. package/dist/types/components/Typography/Heading/Heading.d.ts.map +0 -1
  265. package/dist/types/components/Typography/Heading/index.d.ts.map +0 -1
  266. package/dist/types/components/Typography/Ingress/Ingress.d.ts +0 -34
  267. package/dist/types/components/Typography/Ingress/Ingress.d.ts.map +0 -1
  268. package/dist/types/components/Typography/Ingress/index.d.ts +0 -2
  269. package/dist/types/components/Typography/Ingress/index.d.ts.map +0 -1
  270. package/dist/types/components/Typography/Label/Label.d.ts.map +0 -1
  271. package/dist/types/components/Typography/Label/index.d.ts.map +0 -1
  272. package/dist/types/components/Typography/Paragraph/Paragraph.d.ts.map +0 -1
  273. package/dist/types/components/Typography/Paragraph/index.d.ts.map +0 -1
  274. package/dist/types/components/Typography/ValidationMessage/ValidationMessage.d.ts.map +0 -1
  275. package/dist/types/components/Typography/ValidationMessage/index.d.ts.map +0 -1
  276. package/dist/types/components/Typography/index.d.ts +0 -6
  277. package/dist/types/components/Typography/index.d.ts.map +0 -1
  278. package/dist/types/utilities/AnimateHeight/AnimateHeight.d.ts +0 -9
  279. package/dist/types/utilities/AnimateHeight/AnimateHeight.d.ts.map +0 -1
  280. package/dist/types/utilities/AnimateHeight/index.d.ts +0 -3
  281. package/dist/types/utilities/AnimateHeight/index.d.ts.map +0 -1
  282. /package/dist/types/components/{Typography/Heading → Heading}/index.d.ts +0 -0
  283. /package/dist/types/components/{Typography/Label → Label}/index.d.ts +0 -0
  284. /package/dist/types/components/{Typography/Paragraph → Paragraph}/index.d.ts +0 -0
  285. /package/dist/types/components/{Typography/ValidationMessage → ValidationMessage}/index.d.ts +0 -0
@@ -1,23 +1,22 @@
1
- import { Group as ChipGroup } from './Group/Group';
2
- import type { ChipGroupProps } from './Group/Group';
3
- import { RemovableChip as ChipRemovable } from './Removable/Removable';
4
- import type { RemovableChipProps } from './Removable/Removable';
5
- import { ToggleChip as ChipToggle } from './Toggle/Toggle';
6
- import type { ToggleChipProps } from './Toggle/Toggle';
7
- type ChipComponent = {
8
- /**
9
- * Grouping multiple `Chip` together. Avoid mixing different kind of chips.
10
- * @example
11
- * <Chip.Group>
12
- * <Chip.Removable>Tekst</Chip.Removable>
13
- * <Chip.Removable>Tekst</Chip.Removable>
14
- * </Chip.Group>
15
- */
16
- Group: typeof ChipGroup;
17
- Removable: typeof ChipRemovable;
18
- Toggle: typeof ChipToggle;
1
+ import { ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from './Chips';
2
+ declare const Chip: {
3
+ Button: React.ForwardRefExoticComponent<{
4
+ size?: "sm" | "md" | "lg";
5
+ asChild?: boolean;
6
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
7
+ Checkbox: React.ForwardRefExoticComponent<{
8
+ size?: "sm" | "md" | "lg";
9
+ asChild?: boolean;
10
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & React.RefAttributes<HTMLLabelElement>>;
11
+ Radio: React.ForwardRefExoticComponent<{
12
+ size?: "sm" | "md" | "lg";
13
+ asChild?: boolean;
14
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & React.RefAttributes<HTMLLabelElement>>;
15
+ Removable: React.ForwardRefExoticComponent<{
16
+ size?: "sm" | "md" | "lg";
17
+ asChild?: boolean;
18
+ } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
19
19
  };
20
- declare const Chip: ChipComponent;
21
- export type { RemovableChipProps, ToggleChipProps, ChipGroupProps };
22
- export { Chip, ChipGroup, ChipRemovable, ChipToggle };
20
+ export type { ChipButtonProps, ChipCheckboxProps, ChipRadioProps, ChipRemovableProps, } from './Chips';
21
+ export { Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable };
23
22
  //# 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,KAAK,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,KAAK,aAAa,GAAG;IACnB;;;;;;;OAOG;IACH,KAAK,EAAE,OAAO,SAAS,CAAC;IACxB,SAAS,EAAE,OAAO,aAAa,CAAC;IAChC,MAAM,EAAE,OAAO,UAAU,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,aAIX,CAAC;AAMF,YAAY,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,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,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 +1 @@
1
- {"version":3,"file":"DropdownHeading.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownHeading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,OAAO,CAAC;AAIpE,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEtE,eAAO,MAAM,eAAe,iGAa1B,CAAC"}
1
+ {"version":3,"file":"DropdownHeading.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/DropdownHeading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEtE,eAAO,MAAM,eAAe,iGAO1B,CAAC"}
@@ -1,9 +1,8 @@
1
- import { type HeadingProps } from '../Typography/Heading';
1
+ import { type HeadingProps } from '../Heading';
2
2
  export type ErrorSummaryHeadingProps = HeadingProps;
3
3
  export declare const ErrorSummaryHeading: React.ForwardRefExoticComponent<{
4
4
  level?: 1 | 2 | 3 | 4 | 5 | 6;
5
5
  size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
6
- spacing?: boolean;
7
6
  asChild?: boolean;
8
7
  } & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
9
8
  //# sourceMappingURL=ErrorSummaryHeading.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorSummaryHeading.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorSummary/ErrorSummaryHeading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGnE,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAUpD,eAAO,MAAM,mBAAmB;;;;;uFAsB9B,CAAC"}
1
+ {"version":3,"file":"ErrorSummaryHeading.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorSummary/ErrorSummaryHeading.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAGxD,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAUpD,eAAO,MAAM,mBAAmB;;;;uFAqB9B,CAAC"}
@@ -16,7 +16,6 @@ declare const ErrorSummary: React.ForwardRefExoticComponent<{
16
16
  Heading: React.ForwardRefExoticComponent<{
17
17
  level?: 1 | 2 | 3 | 4 | 5 | 6;
18
18
  size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
19
- spacing?: boolean;
20
19
  asChild?: boolean;
21
20
  } & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
22
21
  Item: React.ForwardRefExoticComponent<import("./ErrorSummaryItem").ErrorSummaryItemProps & React.RefAttributes<HTMLLIElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorSummary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAIhB,CAAC;AAMH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ErrorSummary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;;;;CAIhB,CAAC;AAMH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"}
@@ -10,8 +10,6 @@ export type HeadingProps = {
10
10
  *
11
11
  */
12
12
  size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
13
- /** Adds margin-bottom */
14
- spacing?: boolean;
15
13
  /**
16
14
  * Change the default rendered element for the one passed as a child, merging their props and behavior.
17
15
  * @default false
@@ -35,8 +33,6 @@ export declare const Heading: React.ForwardRefExoticComponent<{
35
33
  *
36
34
  */
37
35
  size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
38
- /** Adds margin-bottom */
39
- spacing?: boolean;
40
36
  /**
41
37
  * Change the default rendered element for the one passed as a child, merging their props and behavior.
42
38
  * @default false
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,OAAO,CAAC;AAGzD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IACxD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAvBlB;;;OAGG;YACK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;IAC7B;;;OAGG;WACI,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK;IACvD;;;OAGG;cACO,OAAO;iFAyBlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Heading/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
@@ -5,8 +5,6 @@ export type LabelProps = {
5
5
  * @default md
6
6
  */
7
7
  size?: 'xs' | 'sm' | 'md' | 'lg';
8
- /** Adds margin-bottom */
9
- spacing?: boolean;
10
8
  /**
11
9
  * Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset
12
10
  * @default 'medium'
@@ -30,8 +28,6 @@ export declare const Label: React.ForwardRefExoticComponent<{
30
28
  * @default md
31
29
  */
32
30
  size?: "xs" | "sm" | "md" | "lg";
33
- /** Adds margin-bottom */
34
- spacing?: boolean;
35
31
  /**
36
32
  * Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset
37
33
  * @default 'medium'
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAvBhB;;;OAGG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;IAChC;;;OAGG;aACM,SAAS,GAAG,QAAQ,GAAG,UAAU;IAC1C;;;OAGG;cACO,OAAO;kFA0BjB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Label/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Lists.d.ts","sourceRoot":"","sources":["../../../../src/components/List/Lists.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgB,cAAc,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI5E,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAC5C,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAC1C,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAqBnD,eAAO,MAAM,aAAa,yIAIzB,CAAC;AAEF,eAAO,MAAM,WAAW,2IAIvB,CAAC"}
1
+ {"version":3,"file":"Lists.d.ts","sourceRoot":"","sources":["../../../../src/components/List/Lists.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgB,cAAc,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5E,KAAK,aAAa,GAAG;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAC5C,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAC1C,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAmBnD,eAAO,MAAM,aAAa,yIAIzB,CAAC;AAEF,eAAO,MAAM,WAAW,2IAIvB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { DialogHTMLAttributes } from 'react';
2
+ export type ModalProps = {
3
+ /**
4
+ * Screen reader label of close button. Set false to hide the close button.
5
+ * @default 'Lukk dialogvindu'
6
+ */
7
+ closeButton?: string | false;
8
+ /**
9
+ * Close on backdrop click.
10
+ * @default false
11
+ */
12
+ backdropClose?: boolean;
13
+ /**
14
+ * Callback that is called when the modal is closed.
15
+ * @default undefined
16
+ */
17
+ onClose?: () => void;
18
+ asChild?: boolean;
19
+ } & DialogHTMLAttributes<HTMLDialogElement>;
20
+ export declare const Modal: React.ForwardRefExoticComponent<{
21
+ /**
22
+ * Screen reader label of close button. Set false to hide the close button.
23
+ * @default 'Lukk dialogvindu'
24
+ */
25
+ closeButton?: string | false;
26
+ /**
27
+ * Close on backdrop click.
28
+ * @default false
29
+ */
30
+ backdropClose?: boolean;
31
+ /**
32
+ * Callback that is called when the modal is closed.
33
+ * @default undefined
34
+ */
35
+ onClose?: () => void;
36
+ asChild?: boolean;
37
+ } & DialogHTMLAttributes<HTMLDialogElement> & React.RefAttributes<HTMLDialogElement>>;
38
+ //# sourceMappingURL=Modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAMlD,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,eAAO,MAAM,KAAK;IAlBhB;;;OAGG;kBACW,MAAM,GAAG,KAAK;IAC5B;;;OAGG;oBACa,OAAO;IACvB;;;OAGG;cACO,MAAM,IAAI;cACV,OAAO;qFAuEjB,CAAC"}
@@ -1,16 +1,16 @@
1
1
  import type { HTMLAttributes } from 'react';
2
- export type CardFooterProps = {
2
+ export type ModalBlockProps = {
3
3
  /**
4
4
  * Change the default rendered element for the one passed as a child, merging their props and behavior.
5
5
  * @default false
6
6
  */
7
7
  asChild?: boolean;
8
8
  } & HTMLAttributes<HTMLDivElement>;
9
- export declare const CardFooter: React.ForwardRefExoticComponent<{
9
+ export declare const ModalBlock: React.ForwardRefExoticComponent<{
10
10
  /**
11
11
  * Change the default rendered element for the one passed as a child, merging their props and behavior.
12
12
  * @default false
13
13
  */
14
14
  asChild?: boolean;
15
15
  } & HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
- //# sourceMappingURL=CardFooter.d.ts.map
16
+ //# sourceMappingURL=ModalBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/ModalBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU;IAPrB;;;OAGG;cACO,OAAO;yEAelB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ReactNode, RefObject } from 'react';
2
+ export declare const Context: React.Context<RefObject<HTMLDialogElement>>;
3
+ export type ModalContextProps = {
4
+ children: ReactNode;
5
+ };
6
+ export declare const ModalContext: {
7
+ ({ children }: ModalContextProps): import("react/jsx-runtime").JSX.Element;
8
+ displayName: string;
9
+ };
10
+ //# sourceMappingURL=ModalContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalContext.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/ModalContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,OAAO,6CAElB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC;AAExD,eAAO,MAAM,YAAY;mBAAkB,iBAAiB;;CAI3D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModalTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/ModalTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAI1C,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY;;;;;;;;;;mDAexB,CAAC"}
1
+ {"version":3,"file":"ModalTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/ModalTrigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY;;;;;;;;;;mDAcxB,CAAC"}
@@ -1,23 +1,34 @@
1
- import { ModalContent } from './ModaContent';
2
- import { ModalDialog } from './ModalDialog';
3
- import { ModalFooter } from './ModalFooter';
4
- import { ModalHeader } from './ModalHeader';
5
- import { ModalRoot } from './ModalRoot';
1
+ import { ModalBlock } from './ModalBlock';
2
+ import { ModalContext } from './ModalContext';
6
3
  import { ModalTrigger } from './ModalTrigger';
7
- export type { ModalRootProps } from './ModalRoot';
8
- export type { ModalHeaderProps } from './ModalHeader';
9
- export type { ModalContentProps } from './ModaContent';
10
- export type { ModalFooterProps } from './ModalFooter';
11
- export type { ModalDialogProps } from './ModalDialog';
12
- export type { ModalTriggerProps } from './ModalTrigger';
13
- type ModalComponent = {
14
- Root: typeof ModalRoot;
15
- Content: typeof ModalContent;
16
- Footer: typeof ModalFooter;
17
- Header: typeof ModalHeader;
18
- Trigger: typeof ModalTrigger;
19
- Dialog: typeof ModalDialog;
4
+ declare const Modal: React.ForwardRefExoticComponent<{
5
+ closeButton?: string | false;
6
+ backdropClose?: boolean;
7
+ onClose?: () => void;
8
+ asChild?: boolean;
9
+ } & React.DialogHTMLAttributes<HTMLDialogElement> & React.RefAttributes<HTMLDialogElement>> & {
10
+ Block: React.ForwardRefExoticComponent<{
11
+ asChild?: boolean;
12
+ } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
13
+ Context: {
14
+ ({ children }: import("./ModalContext").ModalContextProps): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ Trigger: React.ForwardRefExoticComponent<Omit<Omit<{
18
+ variant?: "primary" | "secondary" | "tertiary";
19
+ color?: "accent" | "neutral" | "danger";
20
+ size?: "sm" | "md" | "lg";
21
+ icon?: boolean;
22
+ loading?: boolean;
23
+ asChild?: boolean;
24
+ type?: React.ButtonHTMLAttributes<HTMLButtonElement>["type"];
25
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
26
+ ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
27
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
28
  };
21
- declare const Modal: ModalComponent;
22
- export { Modal, ModalRoot, ModalContent, ModalFooter, ModalHeader, ModalTrigger, ModalDialog, };
29
+ export type { ModalBlockProps } from './ModalBlock';
30
+ export type { ModalContextProps } from './ModalContext';
31
+ export type { ModalProps } from './Modal';
32
+ export type { ModalTriggerProps } from './ModalTrigger';
33
+ export { Modal, ModalBlock, ModalContext, ModalTrigger };
23
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,MAAM,EAAE,OAAO,WAAW,CAAC;IAC3B,OAAO,EAAE,OAAO,YAAY,CAAC;IAC7B,MAAM,EAAE,OAAO,WAAW,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,KAAK,EAAS,cAAc,CAAC;AAgBnC,OAAO,EACL,KAAK,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,GACZ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;CAIT,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC"}
@@ -1,50 +1,37 @@
1
1
  import type { HTMLAttributes } from 'react';
2
+ export declare const PaginationContext: React.Context<{
3
+ size: NonNullable<PaginationProps["size"]>;
4
+ }>;
2
5
  export type PaginationProps = {
3
- /** Sets the text label for the next page button */
4
- nextLabel: string;
5
- /** Sets the text label for the previous page button */
6
- previousLabel: string;
6
+ /**
7
+ * Sets the screen reader label for the Pagination area
8
+ * @default Sidenavigering
9
+ */
10
+ 'aria-label'?: string;
7
11
  /** Sets the size of the component
8
12
  * @default md
9
13
  */
10
14
  size?: 'sm' | 'md' | 'lg';
11
- /** Sets how compact the component will be. If true, only 5 steps will show. */
12
- compact?: boolean;
13
- /** Hides the component's previous and next button labels */
14
- hideLabels?: boolean;
15
- /** Sets the current page
16
- * @default 1
15
+ /**
16
+ * Change the default rendered element for the one passed as a child, merging their props and behavior.
17
+ * @default false
17
18
  */
18
- currentPage: number;
19
- /** Total number of pages */
20
- totalPages: number;
21
- /** Function to be called when the selected page changes. */
22
- onChange: (currentPage: number) => void;
23
- /** `aria-label` for pagination item */
24
- itemLabel?: (currentPage: number) => string;
25
- } & Omit<HTMLAttributes<HTMLElement>, 'onChange'>;
19
+ asChild?: boolean;
20
+ } & HTMLAttributes<HTMLElement>;
26
21
  export declare const Pagination: React.ForwardRefExoticComponent<{
27
- /** Sets the text label for the next page button */
28
- nextLabel: string;
29
- /** Sets the text label for the previous page button */
30
- previousLabel: string;
22
+ /**
23
+ * Sets the screen reader label for the Pagination area
24
+ * @default Sidenavigering
25
+ */
26
+ 'aria-label'?: string;
31
27
  /** Sets the size of the component
32
28
  * @default md
33
29
  */
34
30
  size?: "sm" | "md" | "lg";
35
- /** Sets how compact the component will be. If true, only 5 steps will show. */
36
- compact?: boolean;
37
- /** Hides the component's previous and next button labels */
38
- hideLabels?: boolean;
39
- /** Sets the current page
40
- * @default 1
31
+ /**
32
+ * Change the default rendered element for the one passed as a child, merging their props and behavior.
33
+ * @default false
41
34
  */
42
- currentPage: number;
43
- /** Total number of pages */
44
- totalPages: number;
45
- /** Function to be called when the selected page changes. */
46
- onChange: (currentPage: number) => void;
47
- /** `aria-label` for pagination item */
48
- itemLabel?: (currentPage: number) => string;
49
- } & Omit<HTMLAttributes<HTMLElement>, "onChange"> & React.RefAttributes<HTMLElement>>;
35
+ asChild?: boolean;
36
+ } & HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
50
37
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAU5C,MAAM,MAAM,eAAe,GAAG;IAC5B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uCAAuC;IACvC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7C,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,CAAC;AAQlD,eAAO,MAAM,UAAU;IA9BrB,mDAAmD;eACxC,MAAM;IACjB,uDAAuD;mBACxC,MAAM;IACrB;;OAEG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI;IACzB,+EAA+E;cACrE,OAAO;IACjB,4DAA4D;iBAC/C,OAAO;IACpB;;OAEG;iBACU,MAAM;IACnB,4BAA4B;gBAChB,MAAM;IAClB,4DAA4D;cAClD,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI;IACvC,uCAAuC;gBAC3B,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM;qFA8E5C,CAAC"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,eAAO,MAAM,iBAAiB;UACd,WAAW,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;EAClD,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAEhC,eAAO,MAAM,UAAU;IAhBrB;;;OAGG;mBACY,MAAM;IACrB;;OAEG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI;IACzB;;;OAGG;cACO,OAAO;mEA2BlB,CAAC"}
@@ -1,16 +1,17 @@
1
- import type { ButtonProps } from '../Button';
1
+ import { type AriaAttributes } from 'react';
2
+ import { type ButtonProps } from '../Button/Button';
2
3
  export type PaginationButtonProps = {
3
4
  /**
4
5
  * Toggle button as active
5
6
  * @default false
6
7
  */
7
- isActive?: boolean;
8
+ 'aria-current'?: AriaAttributes['aria-current'];
8
9
  } & Omit<ButtonProps, 'icon' | 'loading' | 'size'>;
9
10
  export declare const PaginationButton: React.ForwardRefExoticComponent<{
10
11
  /**
11
12
  * Toggle button as active
12
13
  * @default false
13
14
  */
14
- isActive?: boolean;
15
+ 'aria-current'?: AriaAttributes["aria-current"];
15
16
  } & Omit<ButtonProps, "size" | "icon" | "loading"> & React.RefAttributes<HTMLButtonElement>>;
16
17
  //# sourceMappingURL=PaginationButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,gBAAgB;IAP3B;;;OAGG;eACQ,OAAO;4FAkBlB,CAAC"}
1
+ {"version":3,"file":"PaginationButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;CACjD,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,gBAAgB;IAP3B;;;OAGG;qBACc,cAAc,CAAC,cAAc,CAAC;4FAU/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,OAAO,CAAC;AAIpE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC;AAEhD,eAAO,MAAM,cAAc;IAPzB;;;OAGG;cACO,OAAO;qFAsBlB,CAAC"}
1
+ {"version":3,"file":"PaginationItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC;AAEhD,eAAO,MAAM,cAAc;IAPzB;;;OAGG;cACO,OAAO;qFASlB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes } from 'react';
2
2
  export type PaginationListProps = {
3
3
  /**
4
4
  * Change the default rendered element for the one passed as a child, merging their props and behavior.
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationList.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,OAAO,CAAC;AAIpE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,cAAc;IAPzB;;;OAGG;cACO,OAAO;2FAiBlB,CAAC"}
1
+ {"version":3,"file":"PaginationList.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/PaginationList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,cAAc;IAPzB;;;OAGG;cACO,OAAO;2FASlB,CAAC"}
@@ -1,27 +1,26 @@
1
- import { Pagination as PaginationParent } from './Pagination';
2
1
  import { PaginationButton } from './PaginationButton';
3
- import { PaginationEllipsis } from './PaginationEllipsis';
4
2
  import { PaginationItem } from './PaginationItem';
5
3
  import { PaginationList } from './PaginationList';
6
- import { PaginationNext, PaginationPrevious } from './PaginationNextPrev';
7
- import { PaginationRoot } from './PaginationRoot';
8
- type PaginationComponent = typeof PaginationParent & {
9
- Root: typeof PaginationRoot;
10
- List: typeof PaginationList;
11
- Item: typeof PaginationItem;
12
- Button: typeof PaginationButton;
13
- Ellipsis: typeof PaginationEllipsis;
14
- Previous: typeof PaginationPrevious;
15
- Next: typeof PaginationNext;
4
+ declare const Pagination: React.ForwardRefExoticComponent<{
5
+ 'aria-label'?: string;
6
+ size?: "sm" | "md" | "lg";
7
+ asChild?: boolean;
8
+ } & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>> & {
9
+ List: React.ForwardRefExoticComponent<{
10
+ asChild?: boolean;
11
+ } & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLUListElement>>;
12
+ Item: React.ForwardRefExoticComponent<{
13
+ asChild?: boolean;
14
+ } & Omit<React.HTMLAttributes<HTMLLIElement>, "size"> & React.RefAttributes<HTMLLIElement>>;
15
+ Button: React.ForwardRefExoticComponent<{
16
+ 'aria-current'?: React.AriaAttributes["aria-current"];
17
+ } & Omit<import("..").ButtonProps, "size" | "icon" | "loading"> & React.RefAttributes<HTMLButtonElement>>;
16
18
  };
17
- declare const Pagination: PaginationComponent;
18
19
  export type { PaginationProps } from './Pagination';
19
20
  export type { PaginationButtonProps } from './PaginationButton';
20
21
  export type { PaginationListProps } from './PaginationList';
21
- export type { PaginationEllipsisProps } from './PaginationEllipsis';
22
22
  export type { PaginationItemProps } from './PaginationItem';
23
- export type { PaginationNextProps, PaginationPreviousProps, } from './PaginationNextPrev';
24
- export { Pagination, PaginationRoot, PaginationList, PaginationItem, PaginationButton, PaginationEllipsis, PaginationPrevious, PaginationNext, };
25
- export { usePagination } from './usePagination';
26
23
  export type { UsePaginationProps } from './usePagination';
24
+ export { Pagination, PaginationList, PaginationItem, PaginationButton };
25
+ export { usePagination } from './usePagination';
27
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,KAAK,mBAAmB,GAAG,OAAO,gBAAgB,GAAG;IACnD,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,MAAM,EAAE,OAAO,gBAAgB,CAAC;IAChC,QAAQ,EAAE,OAAO,kBAAkB,CAAC;IACpC,QAAQ,EAAE,OAAO,kBAAkB,CAAC;IACpC,IAAI,EAAE,OAAO,cAAc,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,UAAU,EAAuB,mBAAmB,CAAC;AAkB3D,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EACV,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;CAId,CAAC;AAMH,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,22 +1,46 @@
1
- import type { PaginationProps } from './Pagination';
2
- export type UsePaginationProps = Pick<PaginationProps, 'compact' | 'totalPages'> & Partial<Pick<PaginationProps, 'currentPage'>>;
3
- /** Hook to help manage pagination state */
4
- export declare const usePagination: ({ totalPages, currentPage: currentPageProps, compact, }: UsePaginationProps) => {
5
- /** Number of steps */
6
- pages: (number | "ellipsis")[];
7
- /** Current active page */
1
+ import type { MouseEvent } from 'react';
2
+ import type { PaginationButtonProps } from './PaginationButton';
3
+ export type UsePaginationProps = {
4
+ /**
5
+ * The current page number
6
+ * @default 1
7
+ */
8
8
  currentPage: number;
9
- /** Set active page */
10
- setCurrentPage: React.Dispatch<React.SetStateAction<number>>;
11
- /** Decrements active page by 1 */
12
- previousPage: () => void;
13
- /** Increments active page by 1 */
14
- nextPage: () => void;
15
- /** Total amount of pages */
9
+ /**
10
+ * Function to change currentPage - typically returned from useState
11
+ */
12
+ setCurrentPage?: (page: number) => void;
13
+ /**
14
+ * Callback when the page changes
15
+ * (event: MouseEvent<HTMLElement>, page: number) => void
16
+ */
17
+ onChange?: (event: MouseEvent<HTMLElement>, page: number) => void;
18
+ /**
19
+ * The total number of pages
20
+ * @default 1
21
+ */
16
22
  totalPages: number;
17
- /** Indication if next page action should be shown or not */
18
- showNextPage: boolean;
23
+ /**
24
+ * The maximum number of pages to show
25
+ * @default 1
26
+ */
27
+ showPages?: number;
28
+ };
29
+ /** Hook to help manage pagination state */
30
+ export declare const usePagination: ({ currentPage, setCurrentPage, onChange, totalPages, showPages, }: UsePaginationProps) => {
31
+ /** Number of steps */
32
+ pages: {
33
+ page: string | number;
34
+ itemKey: string;
35
+ buttonProps: PaginationButtonProps;
36
+ }[];
37
+ /** Properties to spread on Pagination.Button used for previous naviagation */
38
+ prevButtonProps: PaginationButtonProps;
39
+ /** Properties to spread on Pagination.Button used for next naviagation */
40
+ nextButtonProps: PaginationButtonProps;
19
41
  /** Indication if previous page action should be shown or not */
20
- showPreviousPage: boolean;
42
+ hasPrev: boolean;
43
+ /** Indication if next page action should be shown or not */
44
+ hasNext: boolean;
21
45
  };
22
46
  //# sourceMappingURL=usePagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/usePagination.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAiDpD,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,eAAe,EACf,SAAS,GAAG,YAAY,CACzB,GACC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;AAEhD,2CAA2C;AAC3C,eAAO,MAAM,aAAa,4DAIvB,kBAAkB;IAuBjB,sBAAsB;;IAEtB,2BAA2B;;IAE3B,sBAAsB;;IAEtB,kCAAkC;;IAElC,kCAAkC;;IAElC,4BAA4B;;IAE5B,4DAA4D;;IAE5D,gEAAgE;;CAGnE,CAAC"}
1
+ {"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/components/Pagination/usePagination.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,UAAU,EAAkB,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAchE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,2CAA2C;AAC3C,eAAO,MAAM,aAAa,sEAMvB,kBAAkB;IAWf,sBAAsB;;;;qBAWb,qBAAqB;;IAG9B,8EAA8E;qBAKzE,qBAAqB;IAC1B,0EAA0E;qBAKrE,qBAAqB;IAC1B,gEAAgE;;IAEhE,4DAA4D;;CAGxB,CAAC"}
@@ -6,9 +6,7 @@ export type ParagraphProps = {
6
6
  * @default 'md'
7
7
  *
8
8
  */
9
- size?: 'xs' | 'sm' | 'md' | 'lg';
10
- /** Adds margin-bottom */
11
- spacing?: boolean;
9
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
10
  /**
13
11
  * Adjusts styling for paragraph length
14
12
  * @default 'default'
@@ -33,9 +31,7 @@ export declare const Paragraph: React.ForwardRefExoticComponent<{
33
31
  * @default 'md'
34
32
  *
35
33
  */
36
- size?: "xs" | "sm" | "md" | "lg";
37
- /** Adds margin-bottom */
38
- spacing?: boolean;
34
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
39
35
  /**
40
36
  * Adjusts styling for paragraph length
41
37
  * @default 'default'
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../../src/components/Paragraph/Paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AACzC;;;;;GAKG;AACH,eAAO,MAAM,SAAS;IAxBpB;;;;;OAKG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;IACvC;;;OAGG;cACO,MAAM,GAAG,SAAS,GAAG,OAAO;IACtC;;;OAGG;cACO,OAAO;qFAyBlB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Paragraph/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAU5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC,GAAG,CAAC;QAClB,UAAU,mBAAmB;YAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;IACD,UAAU,KAAK,CAAC;QACd,UAAU,cAAc,CAAC,CAAC;YACxB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO;IApClB;;OAEG;SACE,MAAM;IACX;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;cACO,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ;IACnD;;;OAGG;WACI,OAAO;IACd;;;OAGG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI;IACzB;;OAEG;aACM,MAAM,IAAI;IACnB;;OAEG;cACO,MAAM,IAAI;cAEV,OAAO;yEA0GlB,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAS5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC,GAAG,CAAC;QAClB,UAAU,mBAAmB;YAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;IACD,UAAU,KAAK,CAAC;QACd,UAAU,cAAc,CAAC,CAAC;YACxB,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB;KACF;CACF;AAED,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO;IApClB;;OAEG;SACE,MAAM;IACX;;;OAGG;gBACS,SAAS;IACrB;;;OAGG;cACO,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ;IACnD;;;OAGG;WACI,OAAO;IACd;;;OAGG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI;IACzB;;OAEG;aACM,MAAM,IAAI;IACnB;;OAEG;cACO,MAAM,IAAI;cAEV,OAAO;yEAwGlB,CAAC"}