@digigov/ui 1.2.0-dcbd7ded → 2.0.0-4be8f7cc

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 (394) hide show
  1. package/app/Footer/index.mdx +18 -5
  2. package/app/Header/index.mdx +7 -5
  3. package/app/Masthead/index.mdx +9 -4
  4. package/app/Modal/auto.d.ts +2 -2
  5. package/app/Modal/index.d.ts +2 -2
  6. package/app/Modal/index.js +1 -1
  7. package/app/Modal/index.mdx +11 -4
  8. package/app/NotFound/index.mdx +2 -0
  9. package/app/Panel/index.mdx +9 -4
  10. package/app/PhaseBannerHeader/index.mdx +4 -4
  11. package/app/QrCodeViewer/index.mdx +4 -4
  12. package/app/Skeleton/Skeleton.stories/index.js +16 -0
  13. package/{form/AutoComplete/__stories__/WithInLine → app/Skeleton/Skeleton.stories}/package.json +1 -1
  14. package/app/Skeleton/Skeleton.stories.d.ts +17 -0
  15. package/app/Skeleton/__stories__/Button/index.js +9 -0
  16. package/app/Skeleton/__stories__/Button/package.json +6 -0
  17. package/app/Skeleton/__stories__/Button.d.ts +3 -0
  18. package/app/Skeleton/__stories__/Circular/index.js +11 -0
  19. package/app/Skeleton/__stories__/Circular/package.json +6 -0
  20. package/app/Skeleton/__stories__/Circular.d.ts +3 -0
  21. package/app/Skeleton/__stories__/Default/index.js +7 -0
  22. package/app/Skeleton/__stories__/Default/package.json +6 -0
  23. package/app/Skeleton/__stories__/Default.d.ts +3 -0
  24. package/app/Skeleton/__stories__/NoAnimation/index.js +9 -0
  25. package/app/Skeleton/__stories__/NoAnimation/package.json +6 -0
  26. package/app/Skeleton/__stories__/NoAnimation.d.ts +3 -0
  27. package/app/Skeleton/__stories__/Rectangular/index.js +10 -0
  28. package/app/Skeleton/__stories__/Rectangular/package.json +6 -0
  29. package/app/Skeleton/__stories__/Rectangular.d.ts +3 -0
  30. package/app/Skeleton/__stories__/SpecificWidthAndHeight/index.js +10 -0
  31. package/app/Skeleton/__stories__/SpecificWidthAndHeight/package.json +6 -0
  32. package/app/Skeleton/__stories__/SpecificWidthAndHeight.d.ts +3 -0
  33. package/app/Skeleton/__stories__/UnderTypography/index.js +10 -0
  34. package/app/Skeleton/__stories__/UnderTypography/package.json +6 -0
  35. package/app/Skeleton/__stories__/UnderTypography.d.ts +3 -0
  36. package/app/Skeleton/__stories__/WithChildren/index.js +8 -0
  37. package/app/Skeleton/__stories__/WithChildren/package.json +6 -0
  38. package/app/Skeleton/__stories__/WithChildren.d.ts +3 -0
  39. package/app/Skeleton/index.d.ts +3 -0
  40. package/app/Skeleton/index.js +3 -0
  41. package/app/Skeleton/package.json +6 -0
  42. package/app/ThemeOptions/index.d.ts +1 -1
  43. package/cjs/app/Footer/index.mdx +18 -5
  44. package/cjs/app/Header/index.mdx +7 -5
  45. package/cjs/app/Masthead/index.mdx +9 -4
  46. package/cjs/app/Modal/index.js +1 -1
  47. package/cjs/app/Modal/index.mdx +11 -4
  48. package/cjs/app/NotFound/index.mdx +2 -0
  49. package/cjs/app/Panel/index.mdx +9 -4
  50. package/cjs/app/PhaseBannerHeader/index.mdx +4 -4
  51. package/cjs/app/QrCodeViewer/index.mdx +4 -4
  52. package/cjs/app/Skeleton/Skeleton.stories/index.js +111 -0
  53. package/cjs/app/Skeleton/__stories__/Button/index.js +16 -0
  54. package/cjs/app/Skeleton/__stories__/Circular/index.js +18 -0
  55. package/cjs/app/Skeleton/__stories__/Default/index.js +14 -0
  56. package/cjs/app/Skeleton/__stories__/NoAnimation/index.js +16 -0
  57. package/cjs/app/Skeleton/__stories__/Rectangular/index.js +17 -0
  58. package/cjs/app/Skeleton/__stories__/SpecificWidthAndHeight/index.js +17 -0
  59. package/cjs/app/Skeleton/__stories__/UnderTypography/index.js +17 -0
  60. package/cjs/app/Skeleton/__stories__/WithChildren/index.js +15 -0
  61. package/cjs/app/Skeleton/index.js +23 -0
  62. package/cjs/content/Accordion/__stories__/Auto/index.js +2 -3
  63. package/cjs/content/Accordion/hooks/index.js +0 -1
  64. package/cjs/content/Accordion/index.mdx +9 -5
  65. package/cjs/content/Blockquote/index.mdx +3 -5
  66. package/cjs/content/Card/index.mdx +3 -5
  67. package/cjs/content/Chip/index.mdx +4 -5
  68. package/cjs/content/Details/index.mdx +3 -5
  69. package/cjs/content/List/__stories__/Default/index.js +1 -2
  70. package/cjs/content/List/index.mdx +3 -5
  71. package/cjs/content/SafeHTML/index.js +5 -8
  72. package/cjs/content/StepNav/index.mdx +28 -5
  73. package/cjs/content/SummaryList/index.mdx +10 -5
  74. package/cjs/content/Table/index.js +2 -2
  75. package/cjs/content/Table/index.mdx +13 -14
  76. package/cjs/content/TaskList/index.mdx +9 -5
  77. package/cjs/content/Timeline/index.mdx +10 -5
  78. package/cjs/feedback/CopyToClipboard/index.mdx +3 -5
  79. package/cjs/feedback/ErrorSummary/index.mdx +3 -5
  80. package/cjs/feedback/NotificationBanner/index.mdx +14 -5
  81. package/cjs/feedback/PhaseBanner/index.mdx +8 -5
  82. package/cjs/feedback/WarningText/index.mdx +5 -5
  83. package/cjs/form/AutoComplete/AutoComplete.stories/index.js +44 -8
  84. package/cjs/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
  85. package/cjs/form/AutoComplete/Status/index.js +12 -5
  86. package/cjs/form/AutoComplete/__stories__/Multiple/index.js +24 -0
  87. package/cjs/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js +7 -6
  88. package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +23 -0
  89. package/cjs/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +26 -0
  90. package/cjs/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -1
  91. package/cjs/form/AutoComplete/index.js +312 -202
  92. package/cjs/form/AutoComplete/index.mdx +13 -20
  93. package/cjs/form/AutoComplete/utils/index.js +2 -1
  94. package/cjs/form/Button/index.mdx +3 -5
  95. package/cjs/form/Checkbox/index.mdx +3 -5
  96. package/cjs/form/DateInputContainer/index.mdx +3 -5
  97. package/cjs/form/ErrorMessage/index.mdx +3 -5
  98. package/cjs/form/FileUpload/index.mdx +3 -5
  99. package/cjs/form/RadioContainer/index.mdx +2 -14
  100. package/cjs/form/SelectContainer/index.mdx +3 -1
  101. package/cjs/form/SingleCharacterInputs/index.mdx +3 -5
  102. package/cjs/form/TextArea/index.mdx +3 -5
  103. package/cjs/form/TextInput/TextInput.stories/index.js +12 -0
  104. package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +31 -0
  105. package/cjs/form/TextInput/index.mdx +3 -5
  106. package/cjs/govgr/Footer/index.mdx +1 -1
  107. package/cjs/i18n/locales/el/index.js +2 -2
  108. package/cjs/i18n/locales/en/index.js +2 -2
  109. package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +22 -0
  110. package/cjs/layouts/Basic/Bottom/index.mdx +9 -28
  111. package/cjs/layouts/Basic/Container/__stories__/Default/index.js +20 -0
  112. package/cjs/layouts/Basic/Container/index.mdx +23 -0
  113. package/cjs/layouts/Basic/Main/__stories__/Default/index.js +20 -0
  114. package/cjs/layouts/Basic/Main/index.mdx +10 -47
  115. package/cjs/layouts/Basic/Top/__stories__/Default/index.js +20 -0
  116. package/cjs/layouts/Basic/Top/index.mdx +10 -55
  117. package/cjs/layouts/Basic/index.mdx +27 -25
  118. package/cjs/layouts/Grid/index.mdx +39 -0
  119. package/cjs/lazy/index.js +152 -17
  120. package/cjs/navigation/BackLink/index.mdx +4 -5
  121. package/cjs/navigation/Breadcrumbs/index.mdx +6 -5
  122. package/cjs/navigation/Drawer/index.mdx +4 -10
  123. package/cjs/navigation/Dropdown/Dropdown.stories/index.js +12 -0
  124. package/cjs/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  125. package/cjs/navigation/Dropdown/__stories__/ScrollableContent/index.js +68 -0
  126. package/cjs/navigation/Dropdown/index.mdx +3 -5
  127. package/cjs/navigation/Link/index.mdx +5 -15
  128. package/cjs/navigation/NavList/__stories__/Default/index.js +14 -2
  129. package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +35 -2
  130. package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +35 -2
  131. package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +14 -2
  132. package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +37 -4
  133. package/cjs/navigation/NavList/__stories__/Vertical/index.js +14 -2
  134. package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +35 -2
  135. package/cjs/navigation/NavList/index.mdx +23 -7
  136. package/cjs/navigation/Pagination/index.mdx +9 -5
  137. package/cjs/navigation/Tabs/index.mdx +9 -5
  138. package/cjs/registry/index.js +6 -0
  139. package/cjs/typography/Heading/index.mdx +3 -5
  140. package/cjs/typography/HeadingCaption/index.mdx +3 -5
  141. package/cjs/typography/Hint/index.mdx +3 -5
  142. package/cjs/typography/NormalText/index.mdx +3 -5
  143. package/cjs/typography/Paragraph/index.mdx +9 -30
  144. package/cjs/typography/Typography/index.js +23 -0
  145. package/cjs/typography/Typography/index.mdx +12 -0
  146. package/cjs/typography/index.js +11 -0
  147. package/cjs/utils/Base/index.mdx +13 -0
  148. package/cjs/utils/VisuallyHidden/index.mdx +10 -5
  149. package/content/Accordion/__stories__/Auto/index.js +2 -3
  150. package/content/Accordion/auto.d.ts +3 -3
  151. package/content/Accordion/hooks/index.js +0 -1
  152. package/content/Accordion/index.mdx +9 -5
  153. package/content/Blockquote/index.mdx +3 -5
  154. package/content/Card/index.mdx +3 -5
  155. package/content/Chip/index.mdx +4 -5
  156. package/content/Details/index.mdx +3 -5
  157. package/content/List/__stories__/Default/index.js +1 -2
  158. package/content/List/index.mdx +3 -5
  159. package/content/SafeHTML/index.d.ts +1 -1
  160. package/content/SafeHTML/index.js +5 -8
  161. package/content/StepNav/auto.d.ts +3 -3
  162. package/content/StepNav/index.mdx +28 -5
  163. package/content/SummaryList/index.mdx +10 -5
  164. package/content/Table/index.d.ts +1 -1
  165. package/content/Table/index.js +2 -2
  166. package/content/Table/index.mdx +13 -14
  167. package/content/TaskList/index.mdx +9 -5
  168. package/content/Timeline/index.mdx +10 -5
  169. package/feedback/CopyToClipboard/index.d.ts +1 -1
  170. package/feedback/CopyToClipboard/index.mdx +3 -5
  171. package/feedback/ErrorSummary/index.mdx +3 -5
  172. package/feedback/NotificationBanner/index.mdx +14 -5
  173. package/feedback/PhaseBanner/index.mdx +8 -5
  174. package/feedback/WarningText/index.mdx +5 -5
  175. package/form/AutoComplete/AutoComplete.stories/index.js +4 -1
  176. package/form/AutoComplete/AutoComplete.stories.d.ts +4 -1
  177. package/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
  178. package/form/AutoComplete/Status/index.d.ts +4 -2
  179. package/form/AutoComplete/Status/index.js +11 -4
  180. package/form/AutoComplete/__stories__/Multiple/index.js +17 -0
  181. package/form/AutoComplete/__stories__/Multiple/package.json +6 -0
  182. package/form/AutoComplete/__stories__/Multiple.d.ts +3 -0
  183. package/form/AutoComplete/__stories__/{WithInLine → MultipleShowingTwoSelected}/index.js +6 -5
  184. package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/package.json +6 -0
  185. package/form/AutoComplete/__stories__/MultipleShowingTwoSelected.d.ts +3 -0
  186. package/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +16 -0
  187. package/form/AutoComplete/__stories__/MultipleWithDefaultValues/package.json +6 -0
  188. package/form/AutoComplete/__stories__/MultipleWithDefaultValues.d.ts +3 -0
  189. package/form/AutoComplete/__stories__/MultipleWithMinLength/index.js +19 -0
  190. package/form/AutoComplete/__stories__/MultipleWithMinLength/package.json +6 -0
  191. package/form/AutoComplete/__stories__/MultipleWithMinLength.d.ts +3 -0
  192. package/form/AutoComplete/__stories__/WithShowAllValues/index.js +0 -1
  193. package/form/AutoComplete/index.d.ts +12 -18
  194. package/form/AutoComplete/index.js +295 -197
  195. package/form/AutoComplete/index.mdx +13 -20
  196. package/form/AutoComplete/utils/index.js +2 -1
  197. package/form/AutoComplete/utils.d.ts +1 -0
  198. package/form/Button/index.mdx +3 -5
  199. package/form/Checkbox/index.mdx +3 -5
  200. package/form/DateInputContainer/index.mdx +3 -5
  201. package/form/ErrorMessage/index.mdx +3 -5
  202. package/form/FileUpload/index.mdx +3 -5
  203. package/form/RadioContainer/index.mdx +2 -14
  204. package/form/SelectContainer/index.mdx +3 -1
  205. package/form/SingleCharacterInputs/index.mdx +3 -5
  206. package/form/TextArea/index.mdx +3 -5
  207. package/form/TextInput/TextInput.stories/index.js +1 -0
  208. package/form/TextInput/TextInput.stories.d.ts +1 -0
  209. package/form/TextInput/__stories__/DisabledInputWithValue/index.js +25 -0
  210. package/form/TextInput/__stories__/DisabledInputWithValue/package.json +6 -0
  211. package/form/TextInput/__stories__/DisabledInputWithValue.d.ts +3 -0
  212. package/form/TextInput/index.mdx +3 -5
  213. package/govgr/Footer/index.mdx +1 -1
  214. package/i18n/locales/el/index.js +2 -2
  215. package/i18n/locales/en/index.js +2 -2
  216. package/index.js +1 -1
  217. package/layouts/Basic/Bottom/__stories__/Default/index.js +15 -0
  218. package/layouts/Basic/Bottom/__stories__/Default/package.json +6 -0
  219. package/layouts/Basic/Bottom/__stories__/Default.d.ts +3 -0
  220. package/layouts/Basic/Bottom/index.mdx +9 -28
  221. package/layouts/Basic/Container/__stories__/Default/index.js +13 -0
  222. package/layouts/Basic/Container/__stories__/Default/package.json +6 -0
  223. package/layouts/Basic/Container/__stories__/Default.d.ts +3 -0
  224. package/layouts/Basic/Container/index.mdx +23 -0
  225. package/layouts/Basic/Main/__stories__/Default/index.js +13 -0
  226. package/layouts/Basic/Main/__stories__/Default/package.json +6 -0
  227. package/layouts/Basic/Main/__stories__/Default.d.ts +3 -0
  228. package/layouts/Basic/Main/index.mdx +10 -47
  229. package/layouts/Basic/Top/__stories__/Default/index.js +13 -0
  230. package/layouts/Basic/Top/__stories__/Default/package.json +6 -0
  231. package/layouts/Basic/Top/__stories__/Default.d.ts +3 -0
  232. package/layouts/Basic/Top/index.mdx +10 -55
  233. package/layouts/Basic/index.mdx +27 -25
  234. package/layouts/Grid/index.mdx +39 -0
  235. package/lazy/index.js +120 -15
  236. package/lazy.d.ts +269 -254
  237. package/navigation/BackLink/index.mdx +4 -5
  238. package/navigation/Breadcrumbs/index.mdx +6 -5
  239. package/navigation/Drawer/auto.d.ts +3 -3
  240. package/navigation/Drawer/index.mdx +4 -10
  241. package/navigation/Dropdown/Dropdown.stories/index.js +1 -0
  242. package/navigation/Dropdown/Dropdown.stories.d.ts +1 -0
  243. package/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  244. package/navigation/Dropdown/__stories__/ScrollableContent/index.js +61 -0
  245. package/navigation/Dropdown/__stories__/ScrollableContent/package.json +6 -0
  246. package/navigation/Dropdown/__stories__/ScrollableContent.d.ts +3 -0
  247. package/navigation/Dropdown/index.d.ts +1 -1
  248. package/navigation/Dropdown/index.mdx +3 -5
  249. package/navigation/Link/index.mdx +5 -15
  250. package/navigation/NavList/__stories__/Default/index.js +13 -1
  251. package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +34 -1
  252. package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +34 -1
  253. package/navigation/NavList/__stories__/NavListWithoutNav/index.js +13 -1
  254. package/navigation/NavList/__stories__/UsingNavListAuto/index.js +35 -2
  255. package/navigation/NavList/__stories__/Vertical/index.js +13 -1
  256. package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +34 -1
  257. package/navigation/NavList/index.mdx +23 -7
  258. package/navigation/NavList/types.d.ts +1 -2
  259. package/navigation/Pagination/auto.d.ts +4 -4
  260. package/navigation/Pagination/index.d.ts +2 -2
  261. package/navigation/Pagination/index.mdx +9 -5
  262. package/navigation/Tabs/auto.d.ts +2 -2
  263. package/navigation/Tabs/index.mdx +9 -5
  264. package/package.json +4 -6
  265. package/registry/index.js +6 -0
  266. package/registry.d.ts +4 -0
  267. package/src/app/Footer/index.mdx +18 -5
  268. package/src/app/Header/index.mdx +7 -5
  269. package/src/app/Masthead/index.mdx +9 -4
  270. package/src/app/Modal/index.mdx +11 -4
  271. package/src/app/Modal/index.tsx +1 -1
  272. package/src/app/NotFound/index.mdx +2 -0
  273. package/src/app/Panel/index.mdx +9 -4
  274. package/src/app/PhaseBannerHeader/index.mdx +4 -4
  275. package/src/app/QrCodeViewer/index.mdx +4 -4
  276. package/src/app/Skeleton/Skeleton.stories.js +18 -0
  277. package/src/app/Skeleton/__stories__/Button.tsx +6 -0
  278. package/src/app/Skeleton/__stories__/Circular.tsx +8 -0
  279. package/src/app/Skeleton/__stories__/Default.tsx +6 -0
  280. package/src/app/Skeleton/__stories__/NoAnimation.tsx +6 -0
  281. package/src/app/Skeleton/__stories__/Rectangular.tsx +8 -0
  282. package/src/app/Skeleton/__stories__/SpecificWidthAndHeight.tsx +8 -0
  283. package/src/app/Skeleton/__stories__/UnderTypography.tsx +17 -0
  284. package/src/app/Skeleton/__stories__/WithChildren.tsx +11 -0
  285. package/src/app/Skeleton/index.tsx +4 -0
  286. package/src/content/Accordion/__stories__/Auto.tsx +2 -2
  287. package/src/content/Accordion/auto.tsx +1 -1
  288. package/src/content/Accordion/hooks.ts +0 -1
  289. package/src/content/Accordion/index.mdx +9 -5
  290. package/src/content/Blockquote/index.mdx +3 -5
  291. package/src/content/Card/index.mdx +3 -5
  292. package/src/content/Chip/index.mdx +4 -5
  293. package/src/content/Details/index.mdx +3 -5
  294. package/src/content/List/__stories__/Default.tsx +3 -4
  295. package/src/content/List/index.mdx +3 -5
  296. package/src/content/SafeHTML/index.tsx +3 -4
  297. package/src/content/StepNav/index.mdx +28 -5
  298. package/src/content/SummaryList/index.mdx +10 -5
  299. package/src/content/Table/index.mdx +13 -14
  300. package/src/content/Table/index.tsx +2 -2
  301. package/src/content/TaskList/index.mdx +9 -5
  302. package/src/content/Timeline/index.mdx +10 -5
  303. package/src/feedback/CopyToClipboard/index.mdx +3 -5
  304. package/src/feedback/ErrorSummary/index.mdx +3 -5
  305. package/src/feedback/NotificationBanner/index.mdx +14 -5
  306. package/src/feedback/PhaseBanner/index.mdx +8 -5
  307. package/src/feedback/WarningText/index.mdx +5 -5
  308. package/src/form/AutoComplete/AutoComplete.stories.js +4 -1
  309. package/src/form/AutoComplete/AutoComplete.stories.playwright.json +33 -0
  310. package/src/form/AutoComplete/Status/index.tsx +10 -6
  311. package/src/form/AutoComplete/__stories__/Multiple.tsx +18 -0
  312. package/src/form/AutoComplete/__stories__/{WithInLine.tsx → MultipleShowingTwoSelected.tsx} +3 -8
  313. package/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.tsx +16 -0
  314. package/src/form/AutoComplete/__stories__/MultipleWithMinLength.tsx +29 -0
  315. package/src/form/AutoComplete/__stories__/WithShowAllValues.tsx +0 -1
  316. package/src/form/AutoComplete/index.mdx +13 -20
  317. package/src/form/AutoComplete/index.tsx +351 -213
  318. package/src/form/AutoComplete/utils.ts +3 -2
  319. package/src/form/Button/index.mdx +3 -5
  320. package/src/form/Checkbox/index.mdx +3 -5
  321. package/src/form/DateInputContainer/index.mdx +3 -5
  322. package/src/form/ErrorMessage/index.mdx +3 -5
  323. package/src/form/FileUpload/index.mdx +3 -5
  324. package/src/form/RadioContainer/index.mdx +2 -14
  325. package/src/form/SelectContainer/index.mdx +3 -1
  326. package/src/form/SingleCharacterInputs/index.mdx +3 -5
  327. package/src/form/TextArea/index.mdx +3 -5
  328. package/src/form/TextInput/TextInput.stories.js +1 -0
  329. package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +27 -0
  330. package/src/form/TextInput/index.mdx +3 -5
  331. package/src/govgr/Footer/index.mdx +1 -1
  332. package/src/i18n/locales/el.ts +2 -2
  333. package/src/i18n/locales/en.ts +2 -2
  334. package/src/layouts/Basic/Bottom/__stories__/Default.tsx +35 -0
  335. package/src/layouts/Basic/Bottom/index.mdx +9 -28
  336. package/src/layouts/Basic/Container/__stories__/Default.tsx +30 -0
  337. package/src/layouts/Basic/Container/index.mdx +23 -0
  338. package/src/layouts/Basic/Main/__stories__/Default.tsx +30 -0
  339. package/src/layouts/Basic/Main/index.mdx +10 -47
  340. package/src/layouts/Basic/Top/__stories__/Default.tsx +28 -0
  341. package/src/layouts/Basic/Top/index.mdx +10 -55
  342. package/src/layouts/Basic/index.mdx +27 -25
  343. package/src/layouts/Grid/index.mdx +39 -0
  344. package/src/lazy.js +18 -3
  345. package/src/navigation/BackLink/index.mdx +4 -5
  346. package/src/navigation/Breadcrumbs/index.mdx +6 -5
  347. package/src/navigation/Drawer/index.mdx +4 -10
  348. package/src/navigation/Dropdown/Dropdown.stories.js +1 -0
  349. package/src/navigation/Dropdown/Dropdown.stories.playwright.json +16 -0
  350. package/src/navigation/Dropdown/__stories__/ScrollableContent.tsx +82 -0
  351. package/src/navigation/Dropdown/index.mdx +3 -5
  352. package/src/navigation/Link/index.mdx +5 -15
  353. package/src/navigation/NavList/__stories__/Default.tsx +18 -1
  354. package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +37 -1
  355. package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +37 -1
  356. package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +18 -1
  357. package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +39 -2
  358. package/src/navigation/NavList/__stories__/Vertical.tsx +18 -1
  359. package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +37 -1
  360. package/src/navigation/NavList/index.mdx +23 -7
  361. package/src/navigation/NavList/types.tsx +1 -2
  362. package/src/navigation/Pagination/index.mdx +9 -5
  363. package/src/navigation/Tabs/index.mdx +9 -5
  364. package/src/registry.js +6 -0
  365. package/src/typography/Heading/index.mdx +3 -5
  366. package/src/typography/HeadingCaption/index.mdx +3 -5
  367. package/src/typography/Hint/index.mdx +3 -5
  368. package/src/typography/NormalText/index.mdx +3 -5
  369. package/src/typography/Paragraph/index.mdx +9 -30
  370. package/src/typography/Typography/index.mdx +12 -0
  371. package/src/typography/Typography/index.tsx +4 -0
  372. package/src/typography/index.ts +1 -0
  373. package/src/utils/Base/index.mdx +13 -0
  374. package/src/utils/VisuallyHidden/index.mdx +10 -5
  375. package/typography/Heading/index.mdx +3 -5
  376. package/typography/HeadingCaption/index.mdx +3 -5
  377. package/typography/Hint/index.mdx +3 -5
  378. package/typography/NormalText/index.mdx +3 -5
  379. package/typography/Paragraph/index.mdx +9 -30
  380. package/typography/Typography/index.d.ts +3 -0
  381. package/typography/Typography/index.js +3 -0
  382. package/typography/Typography/index.mdx +12 -0
  383. package/typography/Typography/package.json +6 -0
  384. package/typography/index.d.ts +1 -0
  385. package/typography/index.js +2 -1
  386. package/utils/Base/index.mdx +13 -0
  387. package/utils/VisuallyHidden/index.mdx +10 -5
  388. package/cjs/content/List/List.stories.playwright.json +0 -27
  389. package/cjs/layouts/Basic/Masthead/index.mdx +0 -65
  390. package/content/List/List.stories.playwright.json +0 -27
  391. package/form/AutoComplete/__stories__/WithInLine.d.ts +0 -3
  392. package/layouts/Basic/Masthead/index.mdx +0 -65
  393. package/src/content/List/List.stories.playwright.json +0 -27
  394. package/src/layouts/Basic/Masthead/index.mdx +0 -65
@@ -6,63 +6,18 @@ parent: docs/ui/components
6
6
 
7
7
  # Top
8
8
 
9
- ### Example without bottom margin
10
-
11
- ```jsx live path=layouts/Basic/index.tsx
12
- import Header, { HeaderTitle } from '@digigov/ui/app/Header';
13
- import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
14
- import PhaseBanner, { PhaseBannerTag } from '@digigov/ui/feedback/PhaseBanner';
15
-
16
-
17
- function Top{
18
- return (
19
- <Top dense>
20
- <Header>
21
- <GovGRLogo />
22
- <HeaderTitle>
23
- <PhaseBanner>
24
- <PhaseBannerTag>ALPHA</PhaseBannerTag>
25
- </PhaseBanner>
26
- </HeaderTitle>
27
- </Header>
28
- </Top>
29
- )
30
- }
31
- export Top
32
-
33
- ```
34
-
35
- ### Example with bottom margin
36
-
37
- ```jsx live path=layouts/Basic/index.tsx
38
- import Header, { HeaderTitle } from '@digigov/ui/app/Header';
39
- import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
40
-
41
-
42
- function Top{
43
- return (
44
- <Top>
45
- <Header>
46
- <GovGRLogo />
47
- <HeaderTitle>
48
- <PhaseBanner>
49
- <PhaseBannerTag>ALPHA</PhaseBannerTag>
50
- </PhaseBanner>
51
- </HeaderTitle>
52
- </Header>
53
- </Top>
54
- )
55
- }
56
- export Top
57
-
58
- ```
59
-
60
- <br />
9
+ The Top component is used to group the Header components.
61
10
 
62
- ## How it works
11
+ ## How to use
63
12
 
64
- The Top component is used to group the Header components.
13
+ <Story
14
+ packageName="@digigov/ui"
15
+ component="layouts/Basic/Top"
16
+ story="Default.tsx"
17
+ />
65
18
 
66
19
  ## API
67
20
 
68
- <PropTypes packageName="@digigov/ui" component="Top" />
21
+ See below for a complete reference to all of the props available to the components mentioned here.
22
+
23
+ <ComponentProps componentName={["Top"]} />
@@ -1,40 +1,42 @@
1
1
  ---
2
2
  id: basic
3
3
  title: Basic Layout
4
- parent: docs/ui/components
5
4
  ---
6
5
 
7
- # BasicLayout
6
+ # Layout
8
7
 
9
- Use the BasicLayout component to create a basic page layout.
8
+ The Layout component is used in combination with the Top, Side, Main,
9
+ Content and Bottom components.
10
10
 
11
- ```jsx live path=layouts/Basic/index.tsx
12
- import BasicLayout, { Top, Aside, Main , Container, Bottom } from '@digigov/ui/layouts/Basic';
13
- function CustomLayout (props){
14
- return (
15
- <BasicLayout>
16
- <Top>Header content</Top>
17
- <Container>
18
- <Main>Main content</Main>
19
- <Aside>Side content</Aside>
20
- </Container>
21
- <Bottom>Bottom content</Bottom>
22
- </BasicLayout>
23
- )
24
- }
25
- export CustomLayout
11
+ ## How to use
26
12
 
27
- ```
13
+ ### Default layout
28
14
 
29
- <br />
15
+ <Story
16
+ packageName="@digigov/ui"
17
+ component="layouts/Basic"
18
+ story="Default.tsx"
19
+ />
30
20
 
31
- ## How it works
21
+ ### Two thirds one third columns layout
22
+ <Story
23
+ packageName="@digigov/ui"
24
+ component="layouts/Basic"
25
+ story="TwoThirdsOneThirdColumns.tsx"
26
+ />
32
27
 
33
- The BasicLayout component is used in combination with the Top, Side, Main,
34
- Content and Bottom components.
28
+ ### Multiple rows lyout
29
+
30
+ <Story
31
+ packageName="@digigov/ui"
32
+ component="layouts/Basic"
33
+ story="MultipleRowsLayout.tsx"
34
+ />
35
35
 
36
36
  ## API
37
37
 
38
- ### Properties
38
+ See below for a complete reference to all of the props available to the components mentioned here.
39
+
40
+ <ComponentProps componentName={["Layout"]} />
41
+
39
42
 
40
- <br />
@@ -0,0 +1,39 @@
1
+ ---
2
+ id: grid
3
+ title: Grid
4
+ ---
5
+
6
+ ## How to use
7
+
8
+ Grid compoment is a layout system that allows you to design complex web page layouts with rows and columns.
9
+
10
+
11
+ ### Default Grid
12
+
13
+ <Story
14
+ packageName="@digigov/ui"
15
+ component="layouts/Grid"
16
+ story="Default.tsx"
17
+ />
18
+
19
+ ### Responsive spacing Grid
20
+
21
+ <Story
22
+ packageName="@digigov/ui"
23
+ component="layouts/Grid"
24
+ story="ResponsiveSpacing.tsx"
25
+ />
26
+
27
+ ### Inline Grid
28
+
29
+ <Story
30
+ packageName="@digigov/ui"
31
+ component="layouts/Grid"
32
+ story="Inline.tsx"
33
+ />
34
+
35
+ ## API
36
+
37
+ See below for a complete reference to all of the props available to the components mentioned here.
38
+
39
+ <ComponentProps componentName={["Grid"]} />
package/lazy/index.js CHANGED
@@ -469,6 +469,13 @@ export default {
469
469
  };
470
470
  });
471
471
  }),
472
+ 'Skeleton': /*#__PURE__*/lazy(function () {
473
+ return import('@digigov/ui/app/Skeleton').then(function (module) {
474
+ return {
475
+ "default": module['Skeleton']
476
+ };
477
+ });
478
+ }),
472
479
  'AccordionAuto': /*#__PURE__*/lazy(function () {
473
480
  return import('@digigov/ui/content/Accordion/auto').then(function (module) {
474
481
  return {
@@ -1085,6 +1092,13 @@ export default {
1085
1092
  };
1086
1093
  });
1087
1094
  }),
1095
+ 'AutoCompleteContainer': /*#__PURE__*/lazy(function () {
1096
+ return import('@digigov/ui/form/AutoComplete').then(function (module) {
1097
+ return {
1098
+ "default": module['AutoCompleteContainer']
1099
+ };
1100
+ });
1101
+ }),
1088
1102
  'AutoCompleteInput': /*#__PURE__*/lazy(function () {
1089
1103
  return import('@digigov/ui/form/AutoComplete').then(function (module) {
1090
1104
  return {
@@ -1099,24 +1113,31 @@ export default {
1099
1113
  };
1100
1114
  });
1101
1115
  }),
1102
- 'AutoCompleteResultList': /*#__PURE__*/lazy(function () {
1116
+ 'AutoCompleteMultipleInput': /*#__PURE__*/lazy(function () {
1103
1117
  return import('@digigov/ui/form/AutoComplete').then(function (module) {
1104
1118
  return {
1105
- "default": module['AutoCompleteResultList']
1119
+ "default": module['AutoCompleteMultipleInput']
1106
1120
  };
1107
1121
  });
1108
1122
  }),
1109
- 'AutoCompleteResultListItem': /*#__PURE__*/lazy(function () {
1123
+ 'AutoCompleteMultipleInputContainer': /*#__PURE__*/lazy(function () {
1110
1124
  return import('@digigov/ui/form/AutoComplete').then(function (module) {
1111
1125
  return {
1112
- "default": module['AutoCompleteResultListItem']
1126
+ "default": module['AutoCompleteMultipleInputContainer']
1127
+ };
1128
+ });
1129
+ }),
1130
+ 'AutoCompleteResultList': /*#__PURE__*/lazy(function () {
1131
+ return import('@digigov/ui/form/AutoComplete').then(function (module) {
1132
+ return {
1133
+ "default": module['AutoCompleteResultList']
1113
1134
  };
1114
1135
  });
1115
1136
  }),
1116
- 'AutoCompleteWrapper': /*#__PURE__*/lazy(function () {
1137
+ 'AutoCompleteResultListItem': /*#__PURE__*/lazy(function () {
1117
1138
  return import('@digigov/ui/form/AutoComplete').then(function (module) {
1118
1139
  return {
1119
- "default": module['AutoCompleteWrapper']
1140
+ "default": module['AutoCompleteResultListItem']
1120
1141
  };
1121
1142
  });
1122
1143
  }),
@@ -1127,10 +1148,10 @@ export default {
1127
1148
  };
1128
1149
  });
1129
1150
  }),
1130
- 'AutoCompleteStatusWrapper': /*#__PURE__*/lazy(function () {
1151
+ 'AutoCompleteStatusContainer': /*#__PURE__*/lazy(function () {
1131
1152
  return import('@digigov/ui/form/AutoComplete/Status').then(function (module) {
1132
1153
  return {
1133
- "default": module['AutoCompleteStatusWrapper']
1154
+ "default": module['AutoCompleteStatusContainer']
1134
1155
  };
1135
1156
  });
1136
1157
  }),
@@ -1505,6 +1526,90 @@ export default {
1505
1526
  };
1506
1527
  });
1507
1528
  }),
1529
+ 'CancelIcon': /*#__PURE__*/lazy(function () {
1530
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1531
+ return {
1532
+ "default": module['CancelIcon']
1533
+ };
1534
+ });
1535
+ }),
1536
+ 'LockIcon': /*#__PURE__*/lazy(function () {
1537
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1538
+ return {
1539
+ "default": module['LockIcon']
1540
+ };
1541
+ });
1542
+ }),
1543
+ 'DownloadIcon': /*#__PURE__*/lazy(function () {
1544
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1545
+ return {
1546
+ "default": module['DownloadIcon']
1547
+ };
1548
+ });
1549
+ }),
1550
+ 'PdfFileIcon': /*#__PURE__*/lazy(function () {
1551
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1552
+ return {
1553
+ "default": module['PdfFileIcon']
1554
+ };
1555
+ });
1556
+ }),
1557
+ 'PlusIcon': /*#__PURE__*/lazy(function () {
1558
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1559
+ return {
1560
+ "default": module['PlusIcon']
1561
+ };
1562
+ });
1563
+ }),
1564
+ 'MinusIcon': /*#__PURE__*/lazy(function () {
1565
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1566
+ return {
1567
+ "default": module['MinusIcon']
1568
+ };
1569
+ });
1570
+ }),
1571
+ 'LoginIcon': /*#__PURE__*/lazy(function () {
1572
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1573
+ return {
1574
+ "default": module['LoginIcon']
1575
+ };
1576
+ });
1577
+ }),
1578
+ 'RestoreIcon': /*#__PURE__*/lazy(function () {
1579
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1580
+ return {
1581
+ "default": module['RestoreIcon']
1582
+ };
1583
+ });
1584
+ }),
1585
+ 'ReplyIcon': /*#__PURE__*/lazy(function () {
1586
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1587
+ return {
1588
+ "default": module['ReplyIcon']
1589
+ };
1590
+ });
1591
+ }),
1592
+ 'ChatIcon': /*#__PURE__*/lazy(function () {
1593
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1594
+ return {
1595
+ "default": module['ChatIcon']
1596
+ };
1597
+ });
1598
+ }),
1599
+ 'ExclamationIcon': /*#__PURE__*/lazy(function () {
1600
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1601
+ return {
1602
+ "default": module['ExclamationIcon']
1603
+ };
1604
+ });
1605
+ }),
1606
+ 'PrintIcon': /*#__PURE__*/lazy(function () {
1607
+ return import('@digigov/ui/utils/SvgIcon').then(function (module) {
1608
+ return {
1609
+ "default": module['PrintIcon']
1610
+ };
1611
+ });
1612
+ }),
1508
1613
  'ImageLogo': /*#__PURE__*/lazy(function () {
1509
1614
  return import('@digigov/ui/icons/ImageLogo').then(function (module) {
1510
1615
  return {
@@ -2058,6 +2163,13 @@ export default {
2058
2163
  };
2059
2164
  });
2060
2165
  }),
2166
+ 'Typography': /*#__PURE__*/lazy(function () {
2167
+ return import('@digigov/ui/typography/Typography').then(function (module) {
2168
+ return {
2169
+ "default": module['Typography']
2170
+ };
2171
+ });
2172
+ }),
2061
2173
  'Base': /*#__PURE__*/lazy(function () {
2062
2174
  return import('@digigov/ui/utils/Base').then(function (module) {
2063
2175
  return {
@@ -2134,12 +2246,5 @@ export default {
2134
2246
  "default": module['CodeBlock']
2135
2247
  };
2136
2248
  });
2137
- }),
2138
- 'Typography': /*#__PURE__*/lazy(function () {
2139
- return import('@digigov/ui/utils/Typography').then(function (module) {
2140
- return {
2141
- "default": module['Typography']
2142
- };
2143
- });
2144
2249
  })
2145
2250
  };