@designsystem-se/af 37.0.1 → 37.0.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/components/digi-bar-chart.js +1 -1
  2. package/components/digi-button.js +1 -1
  3. package/components/digi-calendar-datepicker.js +4 -4
  4. package/components/digi-calendar-week-view.js +1 -1
  5. package/components/digi-calendar.js +1 -1
  6. package/components/digi-chart-line.js +1 -1
  7. package/components/digi-code-block.js +1 -1
  8. package/components/digi-code-example.js +3 -3
  9. package/components/digi-context-menu.js +1 -1
  10. package/components/digi-dialog.js +3 -3
  11. package/components/digi-expandable-faq-item.js +1 -1
  12. package/components/digi-footer.js +1 -1
  13. package/components/digi-form-category-filter.js +1 -1
  14. package/components/digi-form-checkbox.js +1 -1
  15. package/components/digi-form-error-list.js +3 -3
  16. package/components/digi-form-file-upload.js +1 -1
  17. package/components/digi-form-filter.js +2 -2
  18. package/components/digi-form-input-search.js +1 -1
  19. package/components/digi-form-receipt.js +1 -1
  20. package/components/digi-form-select-filter.js +3 -3
  21. package/components/digi-form-select.js +1 -1
  22. package/components/digi-header-avatar.js +1 -1
  23. package/components/digi-header-navigation.js +2 -2
  24. package/components/digi-header.js +3 -3
  25. package/components/digi-info-card.js +2 -2
  26. package/components/digi-link-internal.js +1 -1
  27. package/components/digi-logo.js +1 -1
  28. package/components/digi-navigation-pagination.js +2 -2
  29. package/components/digi-navigation-sidebar-button.js +1 -1
  30. package/components/digi-navigation-sidebar.js +1 -1
  31. package/components/digi-navigation-vertical-menu-item.js +1 -1
  32. package/components/digi-notification-alert.js +1 -1
  33. package/components/digi-notification-error-page.js +1 -1
  34. package/components/digi-progress-indicator.js +1 -1
  35. package/components/digi-quote.js +1 -1
  36. package/components/digi-tag.js +1 -1
  37. package/components/digi-title-logo.js +1 -1
  38. package/components/digi-tools-feedback.js +3 -3
  39. package/components/digi-tools-theme-provider.js +18 -5
  40. package/components/index.js +1 -1
  41. package/components/p-0d568c4b.js +66 -0
  42. package/components/{p-9466c4e0.js → p-117e7b18.js} +1 -1
  43. package/components/{p-7ff04204.js → p-29f63312.js} +2 -2
  44. package/components/p-606ba731.js +165 -0
  45. package/components/{p-44f143ea.js → p-7d3fb535.js} +2 -2
  46. package/components/{p-2ac136a0.js → p-a79e144f.js} +1 -1
  47. package/components/{p-f53eb01a.js → p-d2a95a3e.js} +1 -1
  48. package/components/p-d7ef9cb1.js +13 -0
  49. package/components/{p-62a0008b.js → p-e756fda7.js} +2 -2
  50. package/components/p-f77cb7ae.js +163 -0
  51. package/custom-elements.json +4 -0
  52. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  53. package/dist/cjs/digi-button_38.cjs.entry.js +5759 -0
  54. package/dist/cjs/digi-calendar-week-view.cjs.entry.js +50 -51
  55. package/dist/cjs/{digi-code-block_3.cjs.entry.js → digi-code-block.cjs.entry.js} +3 -143
  56. package/dist/cjs/digi-code-example.cjs.entry.js +1 -1
  57. package/dist/cjs/digi-dialog.cjs.entry.js +4 -15
  58. package/dist/cjs/digi-footer.cjs.entry.js +3 -14
  59. package/dist/cjs/digi-form-error-list.cjs.entry.js +3 -14
  60. package/dist/cjs/digi-form-file-upload.cjs.entry.js +10 -11
  61. package/dist/cjs/digi-form-input-search.cjs.entry.js +6 -7
  62. package/dist/cjs/digi-form-receipt.cjs.entry.js +3 -14
  63. package/dist/cjs/digi-header-avatar.cjs.entry.js +114 -0
  64. package/dist/cjs/digi-header-navigation-item.cjs.entry.js +27 -0
  65. package/dist/cjs/digi-header-navigation.cjs.entry.js +218 -0
  66. package/dist/cjs/digi-header-notification.cjs.entry.js +23 -0
  67. package/dist/cjs/digi-header.cjs.entry.js +134 -0
  68. package/dist/cjs/{digi-icon-copy.cjs.entry.js → digi-icon-bars.cjs.entry.js} +7 -7
  69. package/dist/cjs/digi-icon-bell-filled.cjs.entry.js +30 -0
  70. package/dist/cjs/digi-icon-x.cjs.entry.js +30 -0
  71. package/dist/cjs/digi-info-card.cjs.entry.js +1 -1
  72. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  73. package/dist/cjs/digi-media-image_2.cjs.entry.js +167 -0
  74. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +3 -14
  75. package/dist/cjs/digi-navigation-sidebar-button.cjs.entry.js +30 -0
  76. package/dist/cjs/digi-notification-alert.cjs.entry.js +3 -14
  77. package/dist/cjs/digi-notification-error-page.cjs.entry.js +3 -14
  78. package/dist/cjs/digi-quote.cjs.entry.js +1 -1
  79. package/dist/cjs/digi-title-logo.cjs.entry.js +121 -0
  80. package/dist/cjs/digi-tools-feedback.cjs.entry.js +4 -15
  81. package/dist/cjs/digi-util-breakpoint-observer.cjs.entry.js +48 -0
  82. package/dist/cjs/{form-input-type.enum-9c8ee12a.js → form-input-type.enum-1fb2180a.js} +14 -0
  83. package/dist/cjs/{form-file-upload-variation.enum-634cfae8.js → form-validation-message-variation.enum-c5ec3e2d.js} +7 -0
  84. package/dist/cjs/index-7a477838.js +44 -96
  85. package/dist/cjs/{index-ac8e01b4.js → index-acb7b350.js} +189 -19
  86. package/dist/cjs/index.cjs.js +136 -141
  87. package/dist/cjs/loader.cjs.js +1 -1
  88. package/dist/cjs/{typography-variation.enum-118ff8e5.js → typography-variation.enum-e41bd69d.js} +138 -0
  89. package/dist/collection/components/_button/button/button.css +6 -6
  90. package/dist/collection/components/_calendar/calendar/calendar.css +7 -2
  91. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +347 -102
  92. package/dist/collection/components/_code/code-example/code-example.css +6 -0
  93. package/dist/collection/components/_dialog/dialog/dialog.css +1 -1
  94. package/dist/collection/components/_expandable/expandable-faq-item/expandable-faq-item.css +2 -2
  95. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +347 -102
  96. package/dist/collection/components/_form/form-file-upload/form-file-upload.css +4 -3
  97. package/dist/collection/components/_form/form-select/form-select.css +2 -2
  98. package/dist/collection/components/_form/form-select-filter/form-select-filter.css +1 -1
  99. package/dist/collection/components/_header/header-avatar/header-avatar.css +346 -101
  100. package/dist/collection/components/_info-card/info-card/info-card.css +2 -2
  101. package/dist/collection/components/_link/link-internal/link-internal.css +346 -101
  102. package/dist/collection/components/_navigation/navigation-vertical-menu-item/navigation-vertical-menu-item.css +3 -3
  103. package/dist/collection/components/_progress/progress-indicator/progress-indicator.css +4 -3
  104. package/dist/collection/components/_quote/quote/quote.css +2 -2
  105. package/dist/collection/components/_tools/tools-feedback/tools-feedback.css +1 -1
  106. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.css +113 -2
  107. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.js +43 -2
  108. package/dist/collection/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.js +5 -0
  109. package/dist/collection/design-tokens/components/_button.variables.scss +6 -6
  110. package/dist/collection/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  111. package/dist/collection/design-tokens/components/_calendar.variables.scss +3 -2
  112. package/dist/collection/design-tokens/components/_dialog.variables.scss +1 -1
  113. package/dist/collection/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  114. package/dist/collection/design-tokens/components/_form-checkbox.variables.scss +1 -1
  115. package/dist/collection/design-tokens/components/_form-file-upload.variables.scss +2 -0
  116. package/dist/collection/design-tokens/components/_form-select-filter.variables.scss +1 -1
  117. package/dist/collection/design-tokens/components/_form-select.variables.scss +2 -2
  118. package/dist/collection/design-tokens/components/_info-card.variables.scss +2 -2
  119. package/dist/collection/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  120. package/dist/collection/design-tokens/components/_quote.variables.scss +2 -2
  121. package/dist/collection/design-tokens/components/_tools-feedback.variables.scss +1 -1
  122. package/dist/collection/enums.js +1 -0
  123. package/dist/collection/styles/src/_alias.mixin.scss +274 -128
  124. package/dist/collection/styles/src/themes/_common.mixin.scss +7 -0
  125. package/dist/collection/styles/src/themes/_theme-af25.mixin.scss +143 -0
  126. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +1406 -323
  127. package/dist/digi-arbetsformedlingen/design-tokens/components/_button.variables.scss +6 -6
  128. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar-datepicker.variables.scss +1 -1
  129. package/dist/digi-arbetsformedlingen/design-tokens/components/_calendar.variables.scss +3 -2
  130. package/dist/digi-arbetsformedlingen/design-tokens/components/_dialog.variables.scss +1 -1
  131. package/dist/digi-arbetsformedlingen/design-tokens/components/_expandable-faq-item.variables.scss +2 -2
  132. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-checkbox.variables.scss +1 -1
  133. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-file-upload.variables.scss +2 -0
  134. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select-filter.variables.scss +1 -1
  135. package/dist/digi-arbetsformedlingen/design-tokens/components/_form-select.variables.scss +2 -2
  136. package/dist/digi-arbetsformedlingen/design-tokens/components/_info-card.variables.scss +2 -2
  137. package/dist/digi-arbetsformedlingen/design-tokens/components/_navigation-vertical-menu-item.variables.scss +3 -3
  138. package/dist/digi-arbetsformedlingen/design-tokens/components/_quote.variables.scss +2 -2
  139. package/dist/digi-arbetsformedlingen/design-tokens/components/_tools-feedback.variables.scss +1 -1
  140. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  141. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  142. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  143. package/dist/digi-arbetsformedlingen/p-0f543000.entry.js +1 -0
  144. package/dist/digi-arbetsformedlingen/p-13120f18.entry.js +1 -0
  145. package/dist/digi-arbetsformedlingen/p-180663ef.entry.js +1 -0
  146. package/dist/digi-arbetsformedlingen/p-1a619dd3.entry.js +1 -0
  147. package/dist/digi-arbetsformedlingen/p-237cad1c.entry.js +1 -0
  148. package/dist/digi-arbetsformedlingen/p-26e8ea70.entry.js +1 -0
  149. package/dist/digi-arbetsformedlingen/p-3887bb40.js +1 -0
  150. package/dist/digi-arbetsformedlingen/p-52a3c86a.entry.js +1 -0
  151. package/dist/digi-arbetsformedlingen/p-54d9bd3e.entry.js +1 -0
  152. package/dist/digi-arbetsformedlingen/p-5ca38506.entry.js +1 -0
  153. package/dist/digi-arbetsformedlingen/p-64b65586.entry.js +1 -0
  154. package/dist/digi-arbetsformedlingen/p-67e32cc2.entry.js +1 -0
  155. package/dist/digi-arbetsformedlingen/p-73a6be41.entry.js +1 -0
  156. package/dist/digi-arbetsformedlingen/p-76ec3619.entry.js +1 -0
  157. package/dist/digi-arbetsformedlingen/p-780519ec.entry.js +1 -0
  158. package/dist/digi-arbetsformedlingen/p-800b764b.entry.js +1 -0
  159. package/dist/digi-arbetsformedlingen/p-82225661.entry.js +1 -0
  160. package/dist/digi-arbetsformedlingen/p-84719680.entry.js +1 -0
  161. package/dist/digi-arbetsformedlingen/p-920aee36.entry.js +1 -0
  162. package/dist/digi-arbetsformedlingen/p-9b6e8cf8.entry.js +1 -0
  163. package/dist/digi-arbetsformedlingen/p-9e56568b.entry.js +1 -0
  164. package/dist/digi-arbetsformedlingen/p-a105d9fe.js +1 -0
  165. package/dist/digi-arbetsformedlingen/p-ac87daf1.entry.js +1 -0
  166. package/dist/digi-arbetsformedlingen/p-b328f60b.entry.js +1 -0
  167. package/dist/digi-arbetsformedlingen/p-c64b4626.js +1 -0
  168. package/dist/digi-arbetsformedlingen/p-d9bcab5f.entry.js +1 -0
  169. package/dist/digi-arbetsformedlingen/p-e2c92528.entry.js +1 -0
  170. package/dist/digi-arbetsformedlingen/p-e540b80f.entry.js +1 -0
  171. package/dist/digi-arbetsformedlingen/p-e5fee242.js +1 -0
  172. package/dist/digi-arbetsformedlingen/p-e7ee9bea.entry.js +1 -0
  173. package/dist/digi-arbetsformedlingen/p-f601908d.entry.js +1 -0
  174. package/dist/digi-arbetsformedlingen/p-fa44ce49.entry.js +1 -0
  175. package/dist/digi-arbetsformedlingen/p-fe409f14.entry.js +1 -0
  176. package/dist/digi-arbetsformedlingen/styles/src/_alias.mixin.scss +274 -128
  177. package/dist/digi-arbetsformedlingen/styles/src/themes/_common.mixin.scss +7 -0
  178. package/dist/digi-arbetsformedlingen/styles/src/themes/_theme-af25.mixin.scss +143 -0
  179. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +1406 -323
  180. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  181. package/dist/esm/digi-button_38.entry.js +5718 -0
  182. package/dist/esm/digi-calendar-week-view.entry.js +1 -2
  183. package/dist/esm/digi-code-block.entry.js +85 -0
  184. package/dist/esm/digi-code-example.entry.js +1 -1
  185. package/dist/esm/digi-dialog.entry.js +4 -15
  186. package/dist/esm/digi-footer.entry.js +3 -14
  187. package/dist/esm/digi-form-error-list.entry.js +3 -14
  188. package/dist/esm/digi-form-file-upload.entry.js +2 -3
  189. package/dist/esm/digi-form-input-search.entry.js +1 -2
  190. package/dist/esm/digi-form-receipt.entry.js +3 -14
  191. package/dist/esm/digi-header-avatar.entry.js +110 -0
  192. package/dist/esm/digi-header-navigation-item.entry.js +23 -0
  193. package/dist/esm/digi-header-navigation.entry.js +214 -0
  194. package/dist/esm/digi-header-notification.entry.js +19 -0
  195. package/dist/esm/digi-header.entry.js +130 -0
  196. package/dist/esm/digi-icon-bars.entry.js +26 -0
  197. package/dist/esm/digi-icon-bell-filled.entry.js +26 -0
  198. package/dist/esm/digi-icon-x.entry.js +26 -0
  199. package/dist/esm/digi-info-card.entry.js +1 -1
  200. package/dist/esm/digi-link-internal.entry.js +1 -1
  201. package/dist/esm/digi-media-image_2.entry.js +162 -0
  202. package/dist/esm/digi-navigation-pagination.entry.js +3 -14
  203. package/dist/esm/digi-navigation-sidebar-button.entry.js +26 -0
  204. package/dist/esm/digi-notification-alert.entry.js +3 -14
  205. package/dist/esm/digi-notification-error-page.entry.js +3 -14
  206. package/dist/esm/digi-quote.entry.js +1 -1
  207. package/dist/esm/digi-title-logo.entry.js +117 -0
  208. package/dist/esm/digi-tools-feedback.entry.js +4 -15
  209. package/dist/esm/digi-util-breakpoint-observer.entry.js +44 -0
  210. package/dist/esm/{form-input-type.enum-3da3db27.js → form-input-type.enum-a6bba983.js} +15 -1
  211. package/dist/esm/{form-file-upload-variation.enum-9c49ec5e.js → form-validation-message-variation.enum-f7835fc5.js} +8 -1
  212. package/dist/esm/index-148a7577.js +44 -96
  213. package/dist/esm/{index-2fce392f.js → index-dc6b83f7.js} +170 -3
  214. package/dist/esm/index.js +3 -14
  215. package/dist/esm/loader.js +1 -1
  216. package/dist/esm/{typography-variation.enum-23eeecd2.js → typography-variation.enum-b07f76c9.js} +139 -1
  217. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.d.ts +9 -0
  218. package/dist/types/components/_tools/tools-theme-provider/tools-theme-provider.theme.enum.d.ts +4 -0
  219. package/dist/types/components.d.ts +12 -0
  220. package/dist/types/enums.d.ts +1 -0
  221. package/hydrate/index.js +40 -21
  222. package/hydrate/index.mjs +40 -21
  223. package/package.json +1 -1
  224. package/components/p-4bad4fb0.js +0 -7
  225. package/components/p-b57677c1.js +0 -66
  226. package/components/p-e8fc33ed.js +0 -165
  227. package/components/p-ff4f4fb8.js +0 -163
  228. package/dist/cjs/digi-button_17.cjs.entry.js +0 -1120
  229. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +0 -2600
  230. package/dist/cjs/digi-calendar_2.cjs.entry.js +0 -464
  231. package/dist/cjs/digi-expandable-faq-item.cjs.entry.js +0 -97
  232. package/dist/cjs/digi-form-category-filter.cjs.entry.js +0 -121
  233. package/dist/cjs/digi-form-checkbox.cjs.entry.js +0 -127
  234. package/dist/cjs/digi-form-input.cjs.entry.js +0 -194
  235. package/dist/cjs/digi-form-label_3.cjs.entry.js +0 -129
  236. package/dist/cjs/digi-form-radiogroup.cjs.entry.js +0 -80
  237. package/dist/cjs/digi-form-select-filter.cjs.entry.js +0 -565
  238. package/dist/cjs/digi-form-select_2.cjs.entry.js +0 -186
  239. package/dist/cjs/digi-icon-check.cjs.entry.js +0 -30
  240. package/dist/cjs/digi-icon-chevron-down.cjs.entry.js +0 -30
  241. package/dist/cjs/digi-icon-chevron-left_2.cjs.entry.js +0 -53
  242. package/dist/cjs/digi-icon-minus_2.cjs.entry.js +0 -53
  243. package/dist/cjs/digi-icon-validation-error_2.cjs.entry.js +0 -53
  244. package/dist/cjs/digi-link.cjs.entry.js +0 -75
  245. package/dist/cjs/digi-navigation-vertical-menu-item.cjs.entry.js +0 -150
  246. package/dist/cjs/digi-navigation-vertical-menu.cjs.entry.js +0 -177
  247. package/dist/cjs/digi-progress-indicator.cjs.entry.js +0 -137
  248. package/dist/cjs/digi-tools-theme-provider.cjs.entry.js +0 -28
  249. package/dist/cjs/digi-typography-heading-jumbo.cjs.entry.js +0 -38
  250. package/dist/cjs/digi-typography-preamble.cjs.entry.js +0 -20
  251. package/dist/cjs/digi-typography.cjs.entry.js +0 -26
  252. package/dist/cjs/digi-util-mutation-observer.cjs.entry.js +0 -64
  253. package/dist/cjs/expandable-faq-item-variation.enum-89427195.js +0 -18
  254. package/dist/cjs/form-checkbox-variation.enum-d2ca879e.js +0 -19
  255. package/dist/cjs/form-input-search-variation.enum-e0e025b1.js +0 -15
  256. package/dist/cjs/form-input-variation.enum-c750520c.js +0 -29
  257. package/dist/cjs/form-radiogroup-validation.enum-03a17d4d.js +0 -9
  258. package/dist/cjs/form-select-variation.enum-528c1bf0.js +0 -16
  259. package/dist/cjs/form-validation-message-variation.enum-855ae0be.js +0 -8
  260. package/dist/cjs/index-cad91a90.js +0 -66
  261. package/dist/cjs/index-e8333bcc.js +0 -174
  262. package/dist/cjs/navigation-vertical-menu-variation.enum-c237edd3.js +0 -13
  263. package/dist/cjs/progress-indicator-variation.enum-7cf8e0e4.js +0 -13
  264. package/dist/cjs/tools-theme-provider.brand.enum-bc855272.js +0 -7
  265. package/dist/cjs/typography-heading-jumbo-variation.enum-8677e099.js +0 -17
  266. package/dist/digi-arbetsformedlingen/p-029c4d40.entry.js +0 -1
  267. package/dist/digi-arbetsformedlingen/p-07985aef.entry.js +0 -1
  268. package/dist/digi-arbetsformedlingen/p-0c77050e.entry.js +0 -1
  269. package/dist/digi-arbetsformedlingen/p-1f3345e9.js +0 -1
  270. package/dist/digi-arbetsformedlingen/p-1f956af8.js +0 -1
  271. package/dist/digi-arbetsformedlingen/p-24fe2189.js +0 -1
  272. package/dist/digi-arbetsformedlingen/p-2693c1d8.entry.js +0 -1
  273. package/dist/digi-arbetsformedlingen/p-2c698144.entry.js +0 -1
  274. package/dist/digi-arbetsformedlingen/p-33349e7e.entry.js +0 -1
  275. package/dist/digi-arbetsformedlingen/p-3a76bfde.entry.js +0 -1
  276. package/dist/digi-arbetsformedlingen/p-3b20ec86.js +0 -1
  277. package/dist/digi-arbetsformedlingen/p-3d7fff3c.entry.js +0 -1
  278. package/dist/digi-arbetsformedlingen/p-41bc039f.entry.js +0 -1
  279. package/dist/digi-arbetsformedlingen/p-4841b4e1.js +0 -1
  280. package/dist/digi-arbetsformedlingen/p-4bad4fb0.js +0 -1
  281. package/dist/digi-arbetsformedlingen/p-4e36c467.entry.js +0 -1
  282. package/dist/digi-arbetsformedlingen/p-51149879.entry.js +0 -1
  283. package/dist/digi-arbetsformedlingen/p-51bfa2a9.entry.js +0 -1
  284. package/dist/digi-arbetsformedlingen/p-57319a80.entry.js +0 -1
  285. package/dist/digi-arbetsformedlingen/p-57a0cc63.entry.js +0 -1
  286. package/dist/digi-arbetsformedlingen/p-583d40dc.entry.js +0 -1
  287. package/dist/digi-arbetsformedlingen/p-5d3383f9.entry.js +0 -1
  288. package/dist/digi-arbetsformedlingen/p-681e7beb.entry.js +0 -1
  289. package/dist/digi-arbetsformedlingen/p-6bd60ab6.entry.js +0 -1
  290. package/dist/digi-arbetsformedlingen/p-6d864e79.entry.js +0 -1
  291. package/dist/digi-arbetsformedlingen/p-7238fdb8.entry.js +0 -1
  292. package/dist/digi-arbetsformedlingen/p-7327f45d.entry.js +0 -1
  293. package/dist/digi-arbetsformedlingen/p-750ff498.entry.js +0 -1
  294. package/dist/digi-arbetsformedlingen/p-78c99e87.entry.js +0 -1
  295. package/dist/digi-arbetsformedlingen/p-7933b555.js +0 -1
  296. package/dist/digi-arbetsformedlingen/p-7aacd45f.js +0 -1
  297. package/dist/digi-arbetsformedlingen/p-7e125c6e.entry.js +0 -1
  298. package/dist/digi-arbetsformedlingen/p-8142cc73.js +0 -1
  299. package/dist/digi-arbetsformedlingen/p-88b4d03a.js +0 -1
  300. package/dist/digi-arbetsformedlingen/p-905ccb30.js +0 -1
  301. package/dist/digi-arbetsformedlingen/p-93766b5e.entry.js +0 -1
  302. package/dist/digi-arbetsformedlingen/p-96987381.entry.js +0 -1
  303. package/dist/digi-arbetsformedlingen/p-9a6ea3b7.entry.js +0 -1
  304. package/dist/digi-arbetsformedlingen/p-9b7f0707.entry.js +0 -1
  305. package/dist/digi-arbetsformedlingen/p-9be9a291.js +0 -1
  306. package/dist/digi-arbetsformedlingen/p-9dd5d6c8.js +0 -1
  307. package/dist/digi-arbetsformedlingen/p-a2561b9e.entry.js +0 -1
  308. package/dist/digi-arbetsformedlingen/p-a34dfc04.entry.js +0 -1
  309. package/dist/digi-arbetsformedlingen/p-bd55807c.entry.js +0 -1
  310. package/dist/digi-arbetsformedlingen/p-c29ab968.entry.js +0 -1
  311. package/dist/digi-arbetsformedlingen/p-c461917d.entry.js +0 -1
  312. package/dist/digi-arbetsformedlingen/p-c68bf2b3.entry.js +0 -1
  313. package/dist/digi-arbetsformedlingen/p-c7949525.js +0 -1
  314. package/dist/digi-arbetsformedlingen/p-ccd617cc.entry.js +0 -1
  315. package/dist/digi-arbetsformedlingen/p-d055d564.entry.js +0 -1
  316. package/dist/digi-arbetsformedlingen/p-d1886fff.js +0 -1
  317. package/dist/digi-arbetsformedlingen/p-d5376b7c.entry.js +0 -1
  318. package/dist/digi-arbetsformedlingen/p-d7aa8315.entry.js +0 -1
  319. package/dist/digi-arbetsformedlingen/p-e9abb2b1.entry.js +0 -1
  320. package/dist/digi-arbetsformedlingen/p-edcb61eb.entry.js +0 -1
  321. package/dist/digi-arbetsformedlingen/p-eeca26b2.entry.js +0 -1
  322. package/dist/digi-arbetsformedlingen/p-f40f4b2a.js +0 -1
  323. package/dist/digi-arbetsformedlingen/p-f447b984.js +0 -1
  324. package/dist/digi-arbetsformedlingen/p-f94db846.entry.js +0 -1
  325. package/dist/esm/digi-button_17.entry.js +0 -1100
  326. package/dist/esm/digi-calendar-datepicker.entry.js +0 -2596
  327. package/dist/esm/digi-calendar_2.entry.js +0 -459
  328. package/dist/esm/digi-code-block_3.entry.js +0 -223
  329. package/dist/esm/digi-expandable-faq-item.entry.js +0 -93
  330. package/dist/esm/digi-form-category-filter.entry.js +0 -117
  331. package/dist/esm/digi-form-checkbox.entry.js +0 -123
  332. package/dist/esm/digi-form-input.entry.js +0 -190
  333. package/dist/esm/digi-form-label_3.entry.js +0 -123
  334. package/dist/esm/digi-form-radiogroup.entry.js +0 -76
  335. package/dist/esm/digi-form-select-filter.entry.js +0 -561
  336. package/dist/esm/digi-form-select_2.entry.js +0 -181
  337. package/dist/esm/digi-icon-check.entry.js +0 -26
  338. package/dist/esm/digi-icon-chevron-down.entry.js +0 -26
  339. package/dist/esm/digi-icon-chevron-left_2.entry.js +0 -48
  340. package/dist/esm/digi-icon-copy.entry.js +0 -26
  341. package/dist/esm/digi-icon-minus_2.entry.js +0 -48
  342. package/dist/esm/digi-icon-validation-error_2.entry.js +0 -48
  343. package/dist/esm/digi-link.entry.js +0 -71
  344. package/dist/esm/digi-navigation-vertical-menu-item.entry.js +0 -146
  345. package/dist/esm/digi-navigation-vertical-menu.entry.js +0 -173
  346. package/dist/esm/digi-progress-indicator.entry.js +0 -133
  347. package/dist/esm/digi-tools-theme-provider.entry.js +0 -24
  348. package/dist/esm/digi-typography-heading-jumbo.entry.js +0 -34
  349. package/dist/esm/digi-typography-preamble.entry.js +0 -16
  350. package/dist/esm/digi-typography.entry.js +0 -22
  351. package/dist/esm/digi-util-mutation-observer.entry.js +0 -60
  352. package/dist/esm/expandable-faq-item-variation.enum-a8cb225b.js +0 -18
  353. package/dist/esm/form-checkbox-variation.enum-83e906fc.js +0 -19
  354. package/dist/esm/form-input-search-variation.enum-6d8dc10a.js +0 -15
  355. package/dist/esm/form-input-variation.enum-64d9450f.js +0 -29
  356. package/dist/esm/form-radiogroup-validation.enum-d790fc66.js +0 -9
  357. package/dist/esm/form-select-variation.enum-f2f6098d.js +0 -16
  358. package/dist/esm/form-validation-message-variation.enum-bcef8a9d.js +0 -8
  359. package/dist/esm/index-5b6c95c6.js +0 -63
  360. package/dist/esm/index-8685f88d.js +0 -170
  361. package/dist/esm/navigation-vertical-menu-variation.enum-c30b0ea9.js +0 -13
  362. package/dist/esm/progress-indicator-variation.enum-b12ba50a.js +0 -13
  363. package/dist/esm/tools-theme-provider.brand.enum-8c5a98c9.js +0 -7
  364. package/dist/esm/typography-heading-jumbo-variation.enum-eb737f1b.js +0 -17
@@ -1,3 +1,17 @@
1
+ var ButtonType;
2
+ (function (ButtonType) {
3
+ ButtonType["BUTTON"] = "button";
4
+ ButtonType["SUBMIT"] = "submit";
5
+ ButtonType["RESET"] = "reset";
6
+ })(ButtonType || (ButtonType = {}));
7
+
8
+ var FormInputSearchVariation;
9
+ (function (FormInputSearchVariation) {
10
+ FormInputSearchVariation["SMALL"] = "small";
11
+ FormInputSearchVariation["MEDIUM"] = "medium";
12
+ FormInputSearchVariation["LARGE"] = "large";
13
+ })(FormInputSearchVariation || (FormInputSearchVariation = {}));
14
+
1
15
  var FormInputButtonVariation;
2
16
  (function (FormInputButtonVariation) {
3
17
  FormInputButtonVariation["PRIMARY"] = "primary";
@@ -22,4 +36,4 @@ var FormInputType;
22
36
  FormInputType["WEEK"] = "week";
23
37
  })(FormInputType || (FormInputType = {}));
24
38
 
25
- export { FormInputButtonVariation as F, FormInputType as a };
39
+ export { ButtonType as B, FormInputSearchVariation as F, FormInputButtonVariation as a, FormInputType as b };
@@ -21,4 +21,11 @@ var FormFileUploadVariation;
21
21
  FormFileUploadVariation["LARGE"] = "large";
22
22
  })(FormFileUploadVariation || (FormFileUploadVariation = {}));
23
23
 
24
- export { FormFileUploadHeadingLevel as F, FormFileUploadValidation as a, FormFileUploadVariation as b };
24
+ var FormValidationMessageVariation;
25
+ (function (FormValidationMessageVariation) {
26
+ FormValidationMessageVariation["SUCCESS"] = "success";
27
+ FormValidationMessageVariation["ERROR"] = "error";
28
+ FormValidationMessageVariation["WARNING"] = "warning";
29
+ })(FormValidationMessageVariation || (FormValidationMessageVariation = {}));
30
+
31
+ export { FormFileUploadHeadingLevel as F, FormFileUploadValidation as a, FormFileUploadVariation as b, FormValidationMessageVariation as c };
@@ -52,10 +52,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
52
52
  }
53
53
  switch(bundleId) {
54
54
 
55
- case 'digi-button_17':
55
+ case 'digi-button_38':
56
56
  return import(
57
57
  /* webpackMode: "lazy" */
58
- './digi-button_17.entry.js').then(processMod, consoleError);
58
+ './digi-button_38.entry.js').then(processMod, consoleError);
59
59
  case 'digi-badge-status':
60
60
  return import(
61
61
  /* webpackMode: "lazy" */
@@ -64,10 +64,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
64
64
  return import(
65
65
  /* webpackMode: "lazy" */
66
66
  './digi-bar-chart.entry.js').then(processMod, consoleError);
67
- case 'digi-calendar-datepicker':
68
- return import(
69
- /* webpackMode: "lazy" */
70
- './digi-calendar-datepicker.entry.js').then(processMod, consoleError);
71
67
  case 'digi-calendar-week-view':
72
68
  return import(
73
69
  /* webpackMode: "lazy" */
@@ -100,10 +96,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
100
96
  return import(
101
97
  /* webpackMode: "lazy" */
102
98
  './digi-expandable-faq.entry.js').then(processMod, consoleError);
103
- case 'digi-expandable-faq-item':
104
- return import(
105
- /* webpackMode: "lazy" */
106
- './digi-expandable-faq-item.entry.js').then(processMod, consoleError);
107
99
  case 'digi-footer':
108
100
  return import(
109
101
  /* webpackMode: "lazy" */
@@ -112,10 +104,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
112
104
  return import(
113
105
  /* webpackMode: "lazy" */
114
106
  './digi-footer-card.entry.js').then(processMod, consoleError);
115
- case 'digi-form-category-filter':
116
- return import(
117
- /* webpackMode: "lazy" */
118
- './digi-form-category-filter.entry.js').then(processMod, consoleError);
119
107
  case 'digi-form-error-list':
120
108
  return import(
121
109
  /* webpackMode: "lazy" */
@@ -132,22 +120,34 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
132
120
  return import(
133
121
  /* webpackMode: "lazy" */
134
122
  './digi-form-input-search.entry.js').then(processMod, consoleError);
135
- case 'digi-form-radiogroup':
136
- return import(
137
- /* webpackMode: "lazy" */
138
- './digi-form-radiogroup.entry.js').then(processMod, consoleError);
139
123
  case 'digi-form-receipt':
140
124
  return import(
141
125
  /* webpackMode: "lazy" */
142
126
  './digi-form-receipt.entry.js').then(processMod, consoleError);
143
- case 'digi-form-select-filter':
144
- return import(
145
- /* webpackMode: "lazy" */
146
- './digi-form-select-filter.entry.js').then(processMod, consoleError);
147
127
  case 'digi-form-textarea':
148
128
  return import(
149
129
  /* webpackMode: "lazy" */
150
130
  './digi-form-textarea.entry.js').then(processMod, consoleError);
131
+ case 'digi-header':
132
+ return import(
133
+ /* webpackMode: "lazy" */
134
+ './digi-header.entry.js').then(processMod, consoleError);
135
+ case 'digi-header-avatar':
136
+ return import(
137
+ /* webpackMode: "lazy" */
138
+ './digi-header-avatar.entry.js').then(processMod, consoleError);
139
+ case 'digi-header-navigation':
140
+ return import(
141
+ /* webpackMode: "lazy" */
142
+ './digi-header-navigation.entry.js').then(processMod, consoleError);
143
+ case 'digi-header-navigation-item':
144
+ return import(
145
+ /* webpackMode: "lazy" */
146
+ './digi-header-navigation-item.entry.js').then(processMod, consoleError);
147
+ case 'digi-header-notification':
148
+ return import(
149
+ /* webpackMode: "lazy" */
150
+ './digi-header-notification.entry.js').then(processMod, consoleError);
151
151
  case 'digi-icon-accessibility-deaf':
152
152
  return import(
153
153
  /* webpackMode: "lazy" */
@@ -200,6 +200,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
200
200
  return import(
201
201
  /* webpackMode: "lazy" */
202
202
  './digi-icon-bell.entry.js').then(processMod, consoleError);
203
+ case 'digi-icon-bell-filled':
204
+ return import(
205
+ /* webpackMode: "lazy" */
206
+ './digi-icon-bell-filled.entry.js').then(processMod, consoleError);
203
207
  case 'digi-icon-book':
204
208
  return import(
205
209
  /* webpackMode: "lazy" */
@@ -812,14 +816,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
812
816
  return import(
813
817
  /* webpackMode: "lazy" */
814
818
  './digi-navigation-sidebar.entry.js').then(processMod, consoleError);
815
- case 'digi-navigation-vertical-menu':
816
- return import(
817
- /* webpackMode: "lazy" */
818
- './digi-navigation-vertical-menu.entry.js').then(processMod, consoleError);
819
- case 'digi-navigation-vertical-menu-item':
820
- return import(
821
- /* webpackMode: "lazy" */
822
- './digi-navigation-vertical-menu-item.entry.js').then(processMod, consoleError);
823
819
  case 'digi-notification-error-page':
824
820
  return import(
825
821
  /* webpackMode: "lazy" */
@@ -828,10 +824,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
828
824
  return import(
829
825
  /* webpackMode: "lazy" */
830
826
  './digi-progress-circle.entry.js').then(processMod, consoleError);
831
- case 'digi-progress-indicator':
832
- return import(
833
- /* webpackMode: "lazy" */
834
- './digi-progress-indicator.entry.js').then(processMod, consoleError);
835
827
  case 'digi-progress-list':
836
828
  return import(
837
829
  /* webpackMode: "lazy" */
@@ -876,22 +868,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
876
868
  return import(
877
869
  /* webpackMode: "lazy" */
878
870
  './digi-tools-feedback-rating.entry.js').then(processMod, consoleError);
879
- case 'digi-tools-theme-provider':
880
- return import(
881
- /* webpackMode: "lazy" */
882
- './digi-tools-theme-provider.entry.js').then(processMod, consoleError);
883
- case 'digi-typography-heading-jumbo':
884
- return import(
885
- /* webpackMode: "lazy" */
886
- './digi-typography-heading-jumbo.entry.js').then(processMod, consoleError);
887
871
  case 'digi-typography-meta':
888
872
  return import(
889
873
  /* webpackMode: "lazy" */
890
874
  './digi-typography-meta.entry.js').then(processMod, consoleError);
891
- case 'digi-typography-preamble':
892
- return import(
893
- /* webpackMode: "lazy" */
894
- './digi-typography-preamble.entry.js').then(processMod, consoleError);
895
875
  case 'digi-typography-time':
896
876
  return import(
897
877
  /* webpackMode: "lazy" */
@@ -912,18 +892,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
912
892
  return import(
913
893
  /* webpackMode: "lazy" */
914
894
  './digi-badge-notification.entry.js').then(processMod, consoleError);
915
- case 'digi-calendar_2':
916
- return import(
917
- /* webpackMode: "lazy" */
918
- './digi-calendar_2.entry.js').then(processMod, consoleError);
919
- case 'digi-code-block_3':
895
+ case 'digi-code-block':
920
896
  return import(
921
897
  /* webpackMode: "lazy" */
922
- './digi-code-block_3.entry.js').then(processMod, consoleError);
923
- case 'digi-form-checkbox':
924
- return import(
925
- /* webpackMode: "lazy" */
926
- './digi-form-checkbox.entry.js').then(processMod, consoleError);
898
+ './digi-code-block.entry.js').then(processMod, consoleError);
927
899
  case 'digi-icon-arrow-right':
928
900
  return import(
929
901
  /* webpackMode: "lazy" */
@@ -948,6 +920,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
948
920
  return import(
949
921
  /* webpackMode: "lazy" */
950
922
  './digi-link-internal.entry.js').then(processMod, consoleError);
923
+ case 'digi-navigation-sidebar-button':
924
+ return import(
925
+ /* webpackMode: "lazy" */
926
+ './digi-navigation-sidebar-button.entry.js').then(processMod, consoleError);
951
927
  case 'digi-notification-alert':
952
928
  return import(
953
929
  /* webpackMode: "lazy" */
@@ -956,30 +932,26 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
956
932
  return import(
957
933
  /* webpackMode: "lazy" */
958
934
  './digi-tag-media.entry.js').then(processMod, consoleError);
935
+ case 'digi-title-logo':
936
+ return import(
937
+ /* webpackMode: "lazy" */
938
+ './digi-title-logo.entry.js').then(processMod, consoleError);
959
939
  case 'digi-util-resize-observer':
960
940
  return import(
961
941
  /* webpackMode: "lazy" */
962
942
  './digi-util-resize-observer.entry.js').then(processMod, consoleError);
963
- case 'digi-form-select_2':
943
+ case 'digi-icon-bars':
964
944
  return import(
965
945
  /* webpackMode: "lazy" */
966
- './digi-form-select_2.entry.js').then(processMod, consoleError);
946
+ './digi-icon-bars.entry.js').then(processMod, consoleError);
967
947
  case 'digi-icon-chart_2':
968
948
  return import(
969
949
  /* webpackMode: "lazy" */
970
950
  './digi-icon-chart_2.entry.js').then(processMod, consoleError);
971
- case 'digi-icon-copy':
972
- return import(
973
- /* webpackMode: "lazy" */
974
- './digi-icon-copy.entry.js').then(processMod, consoleError);
975
951
  case 'digi-icon-list-ul_6':
976
952
  return import(
977
953
  /* webpackMode: "lazy" */
978
954
  './digi-icon-list-ul_6.entry.js').then(processMod, consoleError);
979
- case 'digi-icon-minus_2':
980
- return import(
981
- /* webpackMode: "lazy" */
982
- './digi-icon-minus_2.entry.js').then(processMod, consoleError);
983
955
  case 'digi-icon-notification-error_4':
984
956
  return import(
985
957
  /* webpackMode: "lazy" */
@@ -992,42 +964,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
992
964
  return import(
993
965
  /* webpackMode: "lazy" */
994
966
  './digi-icon-external-link-alt_2.entry.js').then(processMod, consoleError);
995
- case 'digi-form-input':
996
- return import(
997
- /* webpackMode: "lazy" */
998
- './digi-form-input.entry.js').then(processMod, consoleError);
999
- case 'digi-icon-check':
1000
- return import(
1001
- /* webpackMode: "lazy" */
1002
- './digi-icon-check.entry.js').then(processMod, consoleError);
1003
- case 'digi-icon-chevron-left_2':
1004
- return import(
1005
- /* webpackMode: "lazy" */
1006
- './digi-icon-chevron-left_2.entry.js').then(processMod, consoleError);
1007
- case 'digi-link':
1008
- return import(
1009
- /* webpackMode: "lazy" */
1010
- './digi-link.entry.js').then(processMod, consoleError);
1011
- case 'digi-icon-chevron-down':
1012
- return import(
1013
- /* webpackMode: "lazy" */
1014
- './digi-icon-chevron-down.entry.js').then(processMod, consoleError);
1015
- case 'digi-form-label_3':
1016
- return import(
1017
- /* webpackMode: "lazy" */
1018
- './digi-form-label_3.entry.js').then(processMod, consoleError);
1019
- case 'digi-util-mutation-observer':
967
+ case 'digi-media-image_2':
1020
968
  return import(
1021
969
  /* webpackMode: "lazy" */
1022
- './digi-util-mutation-observer.entry.js').then(processMod, consoleError);
1023
- case 'digi-icon-validation-error_2':
970
+ './digi-media-image_2.entry.js').then(processMod, consoleError);
971
+ case 'digi-icon-x':
1024
972
  return import(
1025
973
  /* webpackMode: "lazy" */
1026
- './digi-icon-validation-error_2.entry.js').then(processMod, consoleError);
1027
- case 'digi-typography':
974
+ './digi-icon-x.entry.js').then(processMod, consoleError);
975
+ case 'digi-util-breakpoint-observer':
1028
976
  return import(
1029
977
  /* webpackMode: "lazy" */
1030
- './digi-typography.entry.js').then(processMod, consoleError);
978
+ './digi-util-breakpoint-observer.entry.js').then(processMod, consoleError);
1031
979
  }
1032
980
  }
1033
981
  return import(
@@ -1,5 +1,3 @@
1
- import { r as requiredArgs, t as toDate } from './index-8685f88d.js';
2
-
3
1
  function toInteger(dirtyNumber) {
4
2
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
5
3
  return NaN;
@@ -14,6 +12,64 @@ function toInteger(dirtyNumber) {
14
12
  return number < 0 ? Math.ceil(number) : Math.floor(number);
15
13
  }
16
14
 
15
+ function requiredArgs(required, args) {
16
+ if (args.length < required) {
17
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
18
+ }
19
+ }
20
+
21
+ /**
22
+ * @name toDate
23
+ * @category Common Helpers
24
+ * @summary Convert the given argument to an instance of Date.
25
+ *
26
+ * @description
27
+ * Convert the given argument to an instance of Date.
28
+ *
29
+ * If the argument is an instance of Date, the function returns its clone.
30
+ *
31
+ * If the argument is a number, it is treated as a timestamp.
32
+ *
33
+ * If the argument is none of the above, the function returns Invalid Date.
34
+ *
35
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
36
+ *
37
+ * @param {Date|Number} argument - the value to convert
38
+ * @returns {Date} the parsed date in the local time zone
39
+ * @throws {TypeError} 1 argument required
40
+ *
41
+ * @example
42
+ * // Clone the date:
43
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
44
+ * //=> Tue Feb 11 2014 11:30:30
45
+ *
46
+ * @example
47
+ * // Convert the timestamp to date:
48
+ * const result = toDate(1392098430000)
49
+ * //=> Tue Feb 11 2014 11:30:30
50
+ */
51
+
52
+ function toDate(argument) {
53
+ requiredArgs(1, arguments);
54
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
55
+
56
+ if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
57
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
58
+ return new Date(argument.getTime());
59
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
60
+ return new Date(argument);
61
+ } else {
62
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
63
+ // eslint-disable-next-line no-console
64
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
65
+
66
+ console.warn(new Error().stack);
67
+ }
68
+
69
+ return new Date(NaN);
70
+ }
71
+ }
72
+
17
73
  /**
18
74
  * @name addMilliseconds
19
75
  * @category Millisecond Helpers
@@ -61,6 +117,117 @@ function getTimezoneOffsetInMilliseconds(date) {
61
117
  return date.getTime() - utcDate.getTime();
62
118
  }
63
119
 
120
+ /**
121
+ * @name isDate
122
+ * @category Common Helpers
123
+ * @summary Is the given value a date?
124
+ *
125
+ * @description
126
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
127
+ *
128
+ * ### v2.0.0 breaking changes:
129
+ *
130
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
131
+ *
132
+ * @param {*} value - the value to check
133
+ * @returns {boolean} true if the given value is a date
134
+ * @throws {TypeError} 1 arguments required
135
+ *
136
+ * @example
137
+ * // For a valid date:
138
+ * const result = isDate(new Date())
139
+ * //=> true
140
+ *
141
+ * @example
142
+ * // For an invalid date:
143
+ * const result = isDate(new Date(NaN))
144
+ * //=> true
145
+ *
146
+ * @example
147
+ * // For some value:
148
+ * const result = isDate('2014-02-31')
149
+ * //=> false
150
+ *
151
+ * @example
152
+ * // For an object:
153
+ * const result = isDate({})
154
+ * //=> false
155
+ */
156
+
157
+ function isDate(value) {
158
+ requiredArgs(1, arguments);
159
+ return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
160
+ }
161
+
162
+ /**
163
+ * @name isValid
164
+ * @category Common Helpers
165
+ * @summary Is the given date valid?
166
+ *
167
+ * @description
168
+ * Returns false if argument is Invalid Date and true otherwise.
169
+ * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
170
+ * Invalid Date is a Date, whose time value is NaN.
171
+ *
172
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
173
+ *
174
+ * ### v2.0.0 breaking changes:
175
+ *
176
+ * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
177
+ *
178
+ * - Now `isValid` doesn't throw an exception
179
+ * if the first argument is not an instance of Date.
180
+ * Instead, argument is converted beforehand using `toDate`.
181
+ *
182
+ * Examples:
183
+ *
184
+ * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
185
+ * |---------------------------|---------------|---------------|
186
+ * | `new Date()` | `true` | `true` |
187
+ * | `new Date('2016-01-01')` | `true` | `true` |
188
+ * | `new Date('')` | `false` | `false` |
189
+ * | `new Date(1488370835081)` | `true` | `true` |
190
+ * | `new Date(NaN)` | `false` | `false` |
191
+ * | `'2016-01-01'` | `TypeError` | `false` |
192
+ * | `''` | `TypeError` | `false` |
193
+ * | `1488370835081` | `TypeError` | `true` |
194
+ * | `NaN` | `TypeError` | `false` |
195
+ *
196
+ * We introduce this change to make *date-fns* consistent with ECMAScript behavior
197
+ * that try to coerce arguments to the expected type
198
+ * (which is also the case with other *date-fns* functions).
199
+ *
200
+ * @param {*} date - the date to check
201
+ * @returns {Boolean} the date is valid
202
+ * @throws {TypeError} 1 argument required
203
+ *
204
+ * @example
205
+ * // For the valid date:
206
+ * const result = isValid(new Date(2014, 1, 31))
207
+ * //=> true
208
+ *
209
+ * @example
210
+ * // For the value, convertable into a date:
211
+ * const result = isValid(1393804800000)
212
+ * //=> true
213
+ *
214
+ * @example
215
+ * // For the invalid date:
216
+ * const result = isValid(new Date(''))
217
+ * //=> false
218
+ */
219
+
220
+ function isValid(dirtyDate) {
221
+ requiredArgs(1, arguments);
222
+
223
+ if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
224
+ return false;
225
+ }
226
+
227
+ var date = toDate(dirtyDate);
228
+ return !isNaN(Number(date));
229
+ }
230
+
64
231
  var formatDistanceLocale = {
65
232
  lessThanXSeconds: {
66
233
  one: 'less than a second',
@@ -862,4 +1029,4 @@ function throwProtectedError(token, format, input) {
862
1029
  }
863
1030
  }
864
1031
 
865
- export { getUTCWeek as a, getUTCWeekYear as b, startOfUTCISOWeek as c, throwProtectedError as d, isProtectedDayOfYearToken as e, subMilliseconds as f, getUTCISOWeek as g, getTimezoneOffsetInMilliseconds as h, isProtectedWeekYearToken as i, defaultLocale as j, getUTCISOWeekYear as k, longFormatters$1 as l, buildFormatLongFn as m, buildLocalizeFn as n, buildMatchPatternFn as o, buildMatchFn as p, startOfUTCWeek as s, toInteger as t };
1032
+ export { toInteger as a, getUTCWeek as b, getUTCWeekYear as c, startOfUTCISOWeek as d, throwProtectedError as e, isProtectedDayOfYearToken as f, getUTCISOWeek as g, subMilliseconds as h, isProtectedWeekYearToken as i, getTimezoneOffsetInMilliseconds as j, defaultLocale as k, longFormatters$1 as l, isValid as m, getUTCISOWeekYear as n, buildFormatLongFn as o, buildLocalizeFn as p, buildMatchPatternFn as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, buildMatchFn as u };
package/dist/esm/index.js CHANGED
@@ -1,24 +1,17 @@
1
1
  export { B as BadgeNotificationShape } from './badge-notification-shape.enum-e15a6245.js';
2
- export { B as BadgeNotificationType, C as CalendarDatepickerValidation, a as CodeBlockLanguage, D as DialogHeadingLevel, b as DialogSize, c as DialogVariation, E as ErrorPageStatusCodes, v as FeedbackVariation, F as FooterVariation, d as FormErrorListHeadingLevel, e as FormFieldsetValidation, f as FormRadiobuttonLayout, g as FormRadiobuttonValidation, h as FormRadiobuttonVariation, i as FormReceiptHeadingLevel, j as FormReceiptType, k as FormReceiptVariation, l as FormSelectFilterValidation, H as HeaderCenterContentWidth, o as InfoCardHeadingLevel, I as InfoCardMultiContainerHeadingLevel, m as InfoCardMultiHeadingLevel, n as InfoCardMultiVariation, L as LayoutBlockContainer, q as LayoutContainerMaxWidth, p as LayoutContainerVariation, N as NotificationAlertHeadingLevel, r as NotificationAlertSize, s as NotificationAlertVariation, T as TitleLogoVariation, t as ToolsFeedbackHeadingLevel, u as ToolsFeedbackType, w as TypographyVariation } from './typography-variation.enum-23eeecd2.js';
2
+ export { B as BadgeNotificationType, C as CalendarDatepickerValidation, a as CodeBlockLanguage, D as DialogHeadingLevel, b as DialogSize, c as DialogVariation, O as ErrorPageStatusCodes, E as ExpandableFaqItemHeadingLevel, d as ExpandableFaqItemVariation, U as FeedbackVariation, F as FooterVariation, e as FormCheckboxLayout, f as FormCheckboxValidation, g as FormCheckboxVariation, h as FormErrorListHeadingLevel, l as FormFieldsetValidation, i as FormInputMode, j as FormInputValidation, k as FormInputVariation, m as FormRadiobuttonLayout, n as FormRadiobuttonValidation, o as FormRadiobuttonVariation, p as FormRadiogroupValidation, q as FormReceiptHeadingLevel, r as FormReceiptType, s as FormReceiptVariation, t as FormSelectFilterValidation, u as FormSelectValidation, v as FormSelectVariation, H as HeaderCenterContentWidth, y as InfoCardHeadingLevel, I as InfoCardMultiContainerHeadingLevel, w as InfoCardMultiHeadingLevel, x as InfoCardMultiVariation, L as LayoutBlockContainer, A as LayoutContainerMaxWidth, z as LayoutContainerVariation, N as NavigationVerticalMenuActiveIndicatorSize, G as NavigationVerticalMenuVariation, J as NotificationAlertHeadingLevel, K as NotificationAlertSize, M as NotificationAlertVariation, P as ProgressIndicatorRole, Q as ProgressIndicatorVariation, T as TitleLogoVariation, R as ToolsFeedbackHeadingLevel, S as ToolsFeedbackType, V as ToolsThemeProviderBrandEnum, W as ToolsThemeProviderThemeEnum, X as TypographyHeadingJumboLevel, Y as TypographyHeadingJumboVariation, Z as TypographyVariation } from './typography-variation.enum-b07f76c9.js';
3
3
  export { B as BadgeStatusSize, a as BadgeStatusType, b as BadgeStatusVariation } from './badge-status-variation.enum-8d6370ff.js';
4
4
  export { B as ButtonSize, C as CodeBlockVariation, a as CodeExampleLanguage, b as CodeExampleVariation } from './code-example-variation.enum-e656d235.js';
5
- export { B as ButtonType, F as FormInputSearchVariation } from './form-input-search-variation.enum-6d8dc10a.js';
5
+ export { B as ButtonType, a as FormInputButtonVariation, F as FormInputSearchVariation, b as FormInputType } from './form-input-type.enum-a6bba983.js';
6
6
  export { B as ButtonVariation } from './button-variation.enum-94fffdd6.js';
7
7
  export { C as CalendarWeekViewHeadingLevel } from './calendar-week-view-heading-level.enum-6774297c.js';
8
8
  export { B as BarChartVariation } from './bar-chart-variation.enum-97c0b47f.js';
9
9
  export { C as CodeLanguage, a as CodeVariation } from './code-variation.enum-1eee7c7a.js';
10
10
  export { E as ExpandableAccordionHeaderLevel } from './expandable-accordion-header-level.enum-85681e2f.js';
11
- export { E as ExpandableFaqItemHeadingLevel, a as ExpandableFaqItemVariation } from './expandable-faq-item-variation.enum-a8cb225b.js';
12
11
  export { E as ExpandableFaqHeadingLevel, a as ExpandableFaqVariation } from './expandable-faq-variation.enum-6934c367.js';
13
12
  export { F as FooterCardVariation } from './footer-card-variation.enum-cc732148.js';
14
- export { F as FormCheckboxLayout, a as FormCheckboxValidation, b as FormCheckboxVariation } from './form-checkbox-variation.enum-83e906fc.js';
15
- export { F as FormFileUploadHeadingLevel, a as FormFileUploadValidation, b as FormFileUploadVariation } from './form-file-upload-variation.enum-9c49ec5e.js';
16
- export { F as FormInputButtonVariation, a as FormInputType } from './form-input-type.enum-3da3db27.js';
17
- export { F as FormInputMode, a as FormInputValidation, b as FormInputVariation } from './form-input-variation.enum-64d9450f.js';
18
- export { F as FormRadiogroupValidation } from './form-radiogroup-validation.enum-d790fc66.js';
19
- export { F as FormSelectValidation, a as FormSelectVariation } from './form-select-variation.enum-f2f6098d.js';
13
+ export { F as FormFileUploadHeadingLevel, a as FormFileUploadValidation, b as FormFileUploadVariation, c as FormValidationMessageVariation } from './form-validation-message-variation.enum-f7835fc5.js';
20
14
  export { F as FormTextareaValidation, a as FormTextareaVariation } from './form-textarea-variation.enum-05017e8e.js';
21
- export { F as FormValidationMessageVariation } from './form-validation-message-variation.enum-bcef8a9d.js';
22
15
  export { I as InfoCardMultiType } from './info-card-multi-type.enum-07ee124f.js';
23
16
  export { I as InfoCardBorderPosition, a as InfoCardSize, b as InfoCardType, c as InfoCardVariation } from './info-card-variation.enum-2ccc52c1.js';
24
17
  export { L as LayoutBlockVariation } from './layout-block-variation.enum-b7a20db4.js';
@@ -30,8 +23,6 @@ export { L as LoaderSpinnerSize } from './loader-spinner-size.enum-0b246fa0.js';
30
23
  export { L as LogoColor, a as LogoVariation } from './logo-variation.enum-5b68b79f.js';
31
24
  export { M as MediaFigureAlignment } from './media-figure-alignment.enum-a1d36567.js';
32
25
  export { N as NavigationSidebarCloseButtonPosition, a as NavigationSidebarHeadingLevel, b as NavigationSidebarMobilePosition, c as NavigationSidebarMobileVariation, d as NavigationSidebarPosition, e as NavigationSidebarVariation } from './navigation-sidebar-variation.enum-8fead764.js';
33
- export { N as NavigationVerticalMenuActiveIndicatorSize, a as NavigationVerticalMenuVariation } from './navigation-vertical-menu-variation.enum-c30b0ea9.js';
34
- export { P as ProgressIndicatorRole, a as ProgressIndicatorVariation } from './progress-indicator-variation.enum-b12ba50a.js';
35
26
  export { P as ProgressListItemHeadingLevel, a as ProgressListItemStatus, b as ProgressListItemType, c as ProgressListItemVariation } from './progress-list-item-variation.enum-384b9a3a.js';
36
27
  export { P as ProgressListHeadingLevel, a as ProgressListStatus, b as ProgressListType, c as ProgressListVariation } from './progress-list-variation.enum-300bd89d.js';
37
28
  export { P as ProgressbarRole, a as ProgressbarVariation } from './progressbar-variation.enum-40adaab4.js';
@@ -41,8 +32,6 @@ export { T as TagMediaIcon } from './tag-media-icon.enum-fefa191c.js';
41
32
  export { T as TagSize } from './tag-size.enum-403e0cd8.js';
42
33
  export { T as ToolsFeedbackBannerHeadingLevel, a as ToolsFeedbackBannerType } from './tools-feedback-banner-type.enum-74b4e580.js';
43
34
  export { F as FeedbackRatingHeadingLevel, a as FeedbackRatingType, b as FeedbackRatingVariation } from './tools-feedback-rating-variation.enum-29058ff2.js';
44
- export { T as ToolsThemeProviderBrandEnum } from './tools-theme-provider.brand.enum-8c5a98c9.js';
45
- export { T as TypographyHeadingJumboLevel, a as TypographyHeadingJumboVariation } from './typography-heading-jumbo-variation.enum-eb737f1b.js';
46
35
  export { T as TypographyMetaVariation } from './typography-meta-variation.enum-1f7c2878.js';
47
36
  export { T as TypographyTimeVariation } from './typography-time-variation.enum-34c830ef.js';
48
37
  export { U as UtilBreakpointObserverBreakpoints } from './util-breakpoint-observer-breakpoints.enum-6d004731.js';