@nldd/design-system 0.8.94 → 0.8.96

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 (380) hide show
  1. package/README.md +114 -21
  2. package/custom-elements.json +295 -311
  3. package/dist/assets/styles/shadow-resets.d.ts +1 -1
  4. package/dist/assets/styles/shadow-resets.js +1 -1
  5. package/dist/components/actions/button/button.js +3 -3
  6. package/dist/components/actions/button/button.js.map +1 -1
  7. package/dist/components/actions/button/button.styles.js +273 -273
  8. package/dist/components/actions/button-bar/button-bar.styles.js +34 -34
  9. package/dist/components/actions/button-group/button-group.styles.js +11 -11
  10. package/dist/components/actions/icon-button/icon-button.js +3 -3
  11. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  12. package/dist/components/actions/icon-button/icon-button.styles.js +203 -203
  13. package/dist/components/actions/menu/menu.d.ts +3 -3
  14. package/dist/components/actions/menu/menu.js +15 -15
  15. package/dist/components/actions/menu/menu.js.map +1 -1
  16. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  17. package/dist/components/actions/menu/menu.styles.js +46 -41
  18. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  19. package/dist/components/actions/split-button/split-button.js +3 -3
  20. package/dist/components/actions/split-button/split-button.js.map +1 -1
  21. package/dist/components/actions/split-button/split-button.styles.js +30 -30
  22. package/dist/components/actions/toolbar/toolbar.d.ts +8 -1
  23. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  24. package/dist/components/actions/toolbar/toolbar.js +46 -26
  25. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  26. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  27. package/dist/components/actions/toolbar/toolbar.styles.js +57 -56
  28. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  29. package/dist/components/components.js +4405 -4267
  30. package/dist/components/content/avatar/avatar.d.ts +1 -1
  31. package/dist/components/content/avatar/avatar.js +3 -3
  32. package/dist/components/content/avatar/avatar.js.map +1 -1
  33. package/dist/components/content/avatar/avatar.styles.js +39 -39
  34. package/dist/components/content/avatar-group/avatar-group.styles.js +36 -36
  35. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  36. package/dist/components/content/blockquote/blockquote.styles.js +15 -14
  37. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  38. package/dist/components/content/code-viewer/code-viewer.js +1 -1
  39. package/dist/components/content/code-viewer/code-viewer.styles.js +36 -36
  40. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  41. package/dist/components/content/icon/icon-aliases.js +16 -0
  42. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  43. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  44. package/dist/components/content/icon/icon-gallery-status.js +14 -42
  45. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  46. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  47. package/dist/components/content/icon/icon-registry.js +12 -0
  48. package/dist/components/content/icon/icon-registry.js.map +1 -1
  49. package/dist/components/content/icon/icon.js +2 -2
  50. package/dist/components/content/icon/icon.js.map +1 -1
  51. package/dist/components/content/icon/icon.styles.js +48 -48
  52. package/dist/components/content/identity/identity.styles.js +17 -17
  53. package/dist/components/content/image/image.js +3 -3
  54. package/dist/components/content/image/image.js.map +1 -1
  55. package/dist/components/content/image/image.styles.js +153 -153
  56. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  57. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +42 -40
  58. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  59. package/dist/components/content/tag/tag.styles.js +95 -95
  60. package/dist/components/content/text/text.styles.js +23 -23
  61. package/dist/components/content/title/title.styles.js +38 -38
  62. package/dist/components/content/token/token.styles.js +4 -4
  63. package/dist/components/content/tooltip/tooltip.js +5 -5
  64. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  65. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  66. package/dist/components/content/tooltip/tooltip.styles.js +21 -18
  67. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  68. package/dist/components/{decorate-lwt_OrAG.js → decorate-CO88j7Lc.js} +1 -1
  69. package/dist/components/{dist-M6GKopqu.js → dist-BWEAw34D.js} +1 -1
  70. package/dist/components/{dist-OlffRM7-.js → dist-BWRYv3Mp.js} +1 -1
  71. package/dist/components/{dist-CSYXsT7W.js → dist-Bi4EHsFY.js} +2 -2
  72. package/dist/components/{dist-B5ie2Bo9.js → dist-C3uWRipu.js} +1 -1
  73. package/dist/components/{dist-CoUVHSu-.js → dist-CH9m014O.js} +1 -1
  74. package/dist/components/{dist-Dn3c5gfb.js → dist-CpW8MF-L.js} +42 -27
  75. package/dist/components/{dist-RPaf2J9c.js → dist-CvL6_ezZ.js} +2 -2
  76. package/dist/components/{dist-CGOykrJw.js → dist-DMHTTJRJ.js} +2 -2
  77. package/dist/components/{dist-BUu-NW5O.js → dist-DTOshgo1.js} +1 -1
  78. package/dist/components/{dist-Dxn9Up8K.js → dist-DV6Mp5N1.js} +3 -3
  79. package/dist/components/{dist-CQzaKTa8.js → dist-PlhQXXtE.js} +1 -1
  80. package/dist/components/forms/form-field/form-field.styles.js +5 -5
  81. package/dist/components/forms/validation-list/validation-list.styles.js +7 -7
  82. package/dist/components/{icon-DWNVcttg.js → icon-DQHT2C7z.js} +71 -51
  83. package/dist/components/{icon-button-DHzLMmj0.js → icon-button-mevRsl4C.js} +283 -280
  84. package/dist/components/index.d.ts +2 -2
  85. package/dist/components/index.d.ts.map +1 -1
  86. package/dist/components/index.js +2 -2
  87. package/dist/components/index.js.map +1 -1
  88. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  89. package/dist/components/inputs/checkbox/checkbox.styles.js +31 -16
  90. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  91. package/dist/components/inputs/code-editor/code-editor.js +2 -2
  92. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  93. package/dist/components/inputs/code-editor/code-editor.styles.js +30 -30
  94. package/dist/components/inputs/combo-box/combo-box.js +2 -2
  95. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  96. package/dist/components/inputs/combo-box/combo-box.styles.js +30 -30
  97. package/dist/components/inputs/date-field/date-field.js +4 -4
  98. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  99. package/dist/components/inputs/date-field/date-field.styles.js +46 -46
  100. package/dist/components/inputs/date-picker/date-picker.js +3 -3
  101. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  102. package/dist/components/inputs/date-picker/date-picker.styles.js +65 -65
  103. package/dist/components/inputs/dropdown/dropdown.js +2 -2
  104. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  105. package/dist/components/inputs/dropdown/dropdown.styles.js +66 -66
  106. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  107. package/dist/components/inputs/file-field/file-field.styles.js +33 -30
  108. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  109. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +3 -3
  110. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  111. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +30 -30
  112. package/dist/components/inputs/number-field/number-field.js +3 -3
  113. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  114. package/dist/components/inputs/number-field/number-field.styles.js +18 -18
  115. package/dist/components/inputs/password-field/password-field.js +2 -2
  116. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  117. package/dist/components/inputs/password-field/password-field.styles.js +37 -37
  118. package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
  119. package/dist/components/inputs/radio-button/radio-button.styles.js +29 -13
  120. package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
  121. package/dist/components/inputs/search-field/search-field.js +2 -2
  122. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  123. package/dist/components/inputs/search-field/search-field.styles.js +30 -30
  124. package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
  125. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  126. package/dist/components/inputs/segmented-control/segmented-control.styles.js +108 -108
  127. package/dist/components/inputs/stepper/stepper.styles.js +10 -10
  128. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  129. package/dist/components/inputs/switch/switch.styles.js +39 -31
  130. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  131. package/dist/components/inputs/text-editor/text-editor.js +2 -2
  132. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  133. package/dist/components/inputs/text-editor/text-editor.markdown.js +2 -2
  134. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  135. package/dist/components/inputs/text-editor/text-editor.mentions.js +7 -7
  136. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  137. package/dist/components/inputs/text-editor/text-editor.styles.js +138 -138
  138. package/dist/components/inputs/text-field/text-field.js +2 -2
  139. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  140. package/dist/components/inputs/text-field/text-field.styles.js +27 -27
  141. package/dist/components/inputs/time-field/time-field.js +4 -4
  142. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  143. package/dist/components/inputs/time-field/time-field.styles.js +40 -40
  144. package/dist/components/inputs/time-picker/time-picker.js +4 -4
  145. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  146. package/dist/components/inputs/time-picker/time-picker.styles.js +30 -30
  147. package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
  148. package/dist/components/inputs/toggle-button/toggle-button.js +1 -1
  149. package/dist/components/inputs/toggle-button/toggle-button.styles.js +145 -145
  150. package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
  151. package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +7 -3
  152. package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js.map +1 -1
  153. package/dist/components/inputs/token-field/token-field.styles.js +28 -28
  154. package/dist/components/layout/app-view/app-view.d.ts +1 -1
  155. package/dist/components/layout/app-view/app-view.js +1 -1
  156. package/dist/components/layout/app-view/app-view.styles.js +3 -3
  157. package/dist/components/layout/box/box.styles.js +13 -13
  158. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  159. package/dist/components/layout/card/card.styles.js +24 -21
  160. package/dist/components/layout/card/card.styles.js.map +1 -1
  161. package/dist/components/layout/collection/collection.js +6 -6
  162. package/dist/components/layout/collection/collection.js.map +1 -1
  163. package/dist/components/layout/collection/collection.styles.js +19 -19
  164. package/dist/components/layout/container/container.d.ts +2 -2
  165. package/dist/components/layout/container/container.js +30 -30
  166. package/dist/components/layout/container/container.js.map +1 -1
  167. package/dist/components/layout/container/container.styles.js +125 -125
  168. package/dist/components/layout/page/page.js +5 -5
  169. package/dist/components/layout/page/page.js.map +1 -1
  170. package/dist/components/layout/page/page.styles.js +20 -20
  171. package/dist/components/layout/page-footer/page-footer.js +4 -4
  172. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  173. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  174. package/dist/components/layout/page-footer/page-footer.styles.js +26 -26
  175. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  176. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -3
  177. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  178. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +17 -17
  179. package/dist/components/layout/page-sections/hero/hero.js +6 -6
  180. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  181. package/dist/components/layout/page-sections/hero/hero.styles.js +74 -74
  182. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +3 -3
  183. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
  184. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +17 -17
  185. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +3 -3
  186. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
  187. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +17 -17
  188. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +5 -5
  189. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  190. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
  191. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +29 -27
  192. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
  193. package/dist/components/layout/page-sections/simple-section/simple-section.js +3 -3
  194. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  195. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +17 -17
  196. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +3 -3
  197. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
  198. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +17 -17
  199. package/dist/components/layout/popover/popover.d.ts +1 -1
  200. package/dist/components/layout/popover/popover.js +5 -5
  201. package/dist/components/layout/popover/popover.js.map +1 -1
  202. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  203. package/dist/components/layout/popover/popover.styles.js +4 -3
  204. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  205. package/dist/components/layout/sheet/sheet.js +4 -4
  206. package/dist/components/layout/sheet/sheet.js.map +1 -1
  207. package/dist/components/layout/sheet/sheet.styles.js +8 -8
  208. package/dist/components/layout/spacer/spacer.styles.js +76 -76
  209. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +5 -5
  210. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +4 -4
  211. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  212. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +12 -12
  213. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
  214. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
  215. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +6 -6
  216. package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +4 -4
  217. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +4 -4
  218. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +1 -1
  219. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
  220. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +6 -6
  221. package/dist/components/layout/window/window.d.ts +1 -1
  222. package/dist/components/layout/window/window.js +1 -1
  223. package/dist/components/layout/window/window.styles.d.ts.map +1 -1
  224. package/dist/components/layout/window/window.styles.js +3 -1
  225. package/dist/components/layout/window/window.styles.js.map +1 -1
  226. package/dist/components/lists-and-tables/cells/cell/cell.js +8 -8
  227. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  228. package/dist/components/lists-and-tables/cells/cell/cell.styles.js +9 -9
  229. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +8 -8
  230. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  231. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +10 -10
  232. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +9 -9
  233. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +14 -14
  234. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js +20 -20
  235. package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.d.ts → step-cell/step-cell.d.ts} +19 -18
  236. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -0
  237. package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.js → step-cell/step-cell.js} +34 -33
  238. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -0
  239. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts +2 -0
  240. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -0
  241. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +184 -0
  242. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -0
  243. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts +4 -0
  244. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -0
  245. package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.template.js → step-cell/step-cell.template.js} +10 -10
  246. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -0
  247. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +9 -9
  248. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  249. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +37 -37
  250. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +8 -8
  251. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  252. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +37 -37
  253. package/dist/components/lists-and-tables/list/list.js +7 -7
  254. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  255. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  256. package/dist/components/lists-and-tables/list/list.styles.js +49 -48
  257. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  258. package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
  259. package/dist/components/lists-and-tables/list-item/list-item.js +9 -9
  260. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  261. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  262. package/dist/components/lists-and-tables/list-item/list-item.styles.js +69 -67
  263. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  264. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +30 -30
  265. package/dist/components/lists-and-tables/table/table.js +2 -2
  266. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  267. package/dist/components/lists-and-tables/table/table.styles.js +21 -21
  268. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +3 -3
  269. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
  270. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +1 -1
  271. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +12 -12
  272. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  273. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  274. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +51 -49
  275. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  276. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
  277. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +23 -17
  278. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
  279. package/dist/components/navigation/pagination/pagination.styles.js +29 -29
  280. package/dist/components/navigation/skip-link/skip-link.styles.js +8 -8
  281. package/dist/components/navigation/tab-bar/tab-bar.styles.js +53 -53
  282. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +3 -3
  283. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  284. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  285. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +50 -33
  286. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  287. package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
  288. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +3 -1
  289. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
  290. package/dist/components/{shadow-resets-aG-rgyNQ.js → shadow-resets-CPa58rmc.js} +1 -1
  291. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +46 -46
  292. package/dist/components/status-and-feedback/badge/badge.js +2 -2
  293. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  294. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  295. package/dist/components/status-and-feedback/badge/badge.styles.js +120 -119
  296. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  297. package/dist/components/status-and-feedback/banner/banner.styles.js +49 -49
  298. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +19 -19
  299. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +12 -12
  300. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  301. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +58 -58
  302. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +6 -6
  303. package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
  304. package/dist/components/status-and-feedback/notification/notification.styles.js +45 -39
  305. package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
  306. package/dist/components/status-and-feedback/notification/notifications-area.js +2 -2
  307. package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
  308. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  309. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +121 -119
  310. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  311. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +58 -58
  312. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
  313. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
  314. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +36 -36
  315. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +142 -0
  316. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -0
  317. package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts +9 -0
  318. package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts.map +1 -0
  319. package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js +8 -0
  320. package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js.map +1 -0
  321. package/dist/components/status-and-feedback/step-bar/step-bar.js +248 -0
  322. package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -0
  323. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts +3 -0
  324. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -0
  325. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +294 -0
  326. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -0
  327. package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts +5 -0
  328. package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -0
  329. package/dist/components/status-and-feedback/step-bar/step-bar.template.js +69 -0
  330. package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -0
  331. package/dist/components/{visibility-mixin-BU1vIMW7.js → visibility-mixin-Crbt8PFP.js} +1 -1
  332. package/dist/components/{with-translations-Dt2DTXJF.js → with-translations-C8_0-9y8.js} +1 -1
  333. package/dist/css/document-reset.css +7 -0
  334. package/dist/css/rich-text.css +35 -34
  335. package/dist/css/variables.css +54 -410
  336. package/dist/nldd.min.js +4367 -4232
  337. package/dist/translations/en-US.js +5 -5
  338. package/dist/translations/en-US.js.map +1 -1
  339. package/dist/translations/fy.js +5 -5
  340. package/dist/translations/fy.js.map +1 -1
  341. package/dist/translations/nl.generated.d.ts +5 -5
  342. package/dist/translations/nl.generated.js +2 -2
  343. package/dist/translations/nl.generated.js.map +1 -1
  344. package/dist/translations/pap-AW.js +5 -5
  345. package/dist/translations/pap-AW.js.map +1 -1
  346. package/dist/translations/pap-CW.js +5 -5
  347. package/dist/translations/pap-CW.js.map +1 -1
  348. package/dist/types/vue.d.ts +64 -65
  349. package/dist/utilities/codemirror/theme.js +17 -17
  350. package/dist/utilities/codemirror/theme.js.map +1 -1
  351. package/dist/utilities/page-section-mixin.js +3 -3
  352. package/dist/utilities/page-section-mixin.js.map +1 -1
  353. package/dist/utilities/spacing-scale.d.ts +1 -1
  354. package/dist/utilities/spacing-scale.js +1 -1
  355. package/package.json +13 -11
  356. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +0 -1
  357. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +0 -1
  358. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +0 -2
  359. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +0 -1
  360. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +0 -184
  361. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +0 -1
  362. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts +0 -4
  363. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +0 -1
  364. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +0 -1
  365. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +0 -127
  366. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +0 -1
  367. package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts +0 -9
  368. package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts.map +0 -1
  369. package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js +0 -8
  370. package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js.map +0 -1
  371. package/dist/components/status-and-feedback/step-indicator/step-indicator.js +0 -216
  372. package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +0 -1
  373. package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts +0 -3
  374. package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts.map +0 -1
  375. package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +0 -294
  376. package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js.map +0 -1
  377. package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts +0 -5
  378. package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts.map +0 -1
  379. package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +0 -69
  380. package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js.map +0 -1
@@ -1,216 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- /**
8
- * Nederlandse Digitale Dienst Step Indicator Component (Lit + TypeScript)
9
- *
10
- * Shows where you are in a process of several steps: a row of discs with a
11
- * number (or a check mark on what is done), a label under each and a line
12
- * connecting them.
13
- *
14
- * The parent holds the truth: `current` (1-based) derives the status of every
15
- * child — `past` before it, `future` after. A child can override that with a
16
- * `status` of its own, for flows that jump back or skip a step.
17
- *
18
- * Horizontal only. For steps under each other, build an `nldd-list` with an
19
- * `nldd-timeline-track-cell` and an `nldd-title-cell` per row: vertical steps
20
- * usually carry more than a title, and a list row already does that.
21
- *
22
- * Below the sm breakpoint (a container query, so measured on the component
23
- * itself rather than on the viewport) it folds into one line of text plus a
24
- * segmented bar. The full list of steps stays in the DOM, only visually hidden,
25
- * so assistive software hears no less than a wide screen shows.
26
- *
27
- * Accessibility: a `nav` with a label, holding a `role="list"` with a
28
- * `role="listitem"` per step. The current step gets `aria-current="step"`, the
29
- * only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as
30
- * ARIA tokens and travel along as visually hidden text instead.
31
- *
32
- * @element nldd-step-indicator
33
- *
34
- * @attr {string} accessible-label - Name of the nav; defaults to the i18n value ("Voortgang")
35
- * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
36
- * @attr {number} current - 1-based number of the current step (default 1)
37
- *
38
- * @slot - `nldd-step-indicator-item` children
39
- *
40
- * @example
41
- * ```html
42
- * <nldd-step-indicator
43
- * current="2"
44
- * accessible-label="Voortgang aanvraag"
45
- * >
46
- * <nldd-step-indicator-item text="Gegevens"></nldd-step-indicator-item>
47
- * <nldd-step-indicator-item text="Controle"></nldd-step-indicator-item>
48
- * <nldd-step-indicator-item text="Bevestigen"></nldd-step-indicator-item>
49
- * </nldd-step-indicator>
50
- * ```
51
- */
52
- import { LitElement } from 'lit';
53
- import { customElement, property, state } from 'lit/decorators.js';
54
- import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
55
- import { withTranslations } from '../../../utilities/with-translations.js';
56
- import { nlddStepIndicatorTranslations } from './step-indicator.i18n.js';
57
- import { stepIndicatorStyles, stepIndicatorItemStyles } from './step-indicator.styles.js';
58
- import { stepIndicatorTemplate, stepIndicatorItemTemplate } from './step-indicator.template.js';
59
- import '../../content/icon/icon.js';
60
- // # nldd-step-indicator-item
61
- /**
62
- * One step in an `nldd-step-indicator`. The parent decides the status and the
63
- * number; those live here as internal state rather than as public API, except
64
- * for `status`, which overrides what `current` derives.
65
- *
66
- * @element nldd-step-indicator-item
67
- *
68
- * @attr {string} status - `past` | `current` | `future`; overrides what the parent derives
69
- * @attr {string} text - Label under the disc
70
- * @attr {string} icon - Icon in the disc instead of the number or the check mark
71
- * @attr {string} href - Makes the step a link (back to a completed step, for instance)
72
- * @attr {boolean} button - Makes the step a button, for flows without a URL per step; ignored when `href` is set
73
- *
74
- * @slot - Label (an alternative to `text`)
75
- */
76
- export class NLDDStepIndicatorItem extends LitElement {
77
- constructor() {
78
- super(...arguments);
79
- this.text = '';
80
- this.icon = '';
81
- this.href = '';
82
- /** For flows without a URL per step (a wizard inside one window). Ignored
83
- * once `href` is set: one step is one action, and a link outranks a button
84
- * -- the same rule as nldd-card and nldd-avatar. */
85
- this.button = false;
86
- /** Set by the parent: the derived status when the item has none of its own,
87
- * the position number, and the status text for assistive tech. */
88
- this._derivedStatus = 'future';
89
- this._index = 1;
90
- this._statusText = '';
91
- }
92
- /** The status that counts: the item's own wins over the derived one. */
93
- get resolvedStatus() {
94
- return this.status ?? this._derivedStatus;
95
- }
96
- connectedCallback() {
97
- super.connectedCallback();
98
- // Explicit ARIA, like nldd-breadcrumbs: the implicit <li> mapping does not
99
- // travel reliably across the slot boundary.
100
- if (!this.hasAttribute('role'))
101
- this.setAttribute('role', 'listitem');
102
- }
103
- updated(changed) {
104
- if (changed.has('status') || changed.has('_derivedStatus')) {
105
- // On the host (the listitem), because that is what assistive tech announces.
106
- if (this.resolvedStatus === 'current')
107
- this.setAttribute('aria-current', 'step');
108
- else
109
- this.removeAttribute('aria-current');
110
- }
111
- }
112
- render() {
113
- return stepIndicatorItemTemplate(this);
114
- }
115
- }
116
- NLDDStepIndicatorItem.styles = stepIndicatorItemStyles;
117
- __decorate([
118
- property({ type: String, reflect: true })
119
- ], NLDDStepIndicatorItem.prototype, "status", void 0);
120
- __decorate([
121
- property({ reflect: true, converter: reflectNonDefault('') })
122
- ], NLDDStepIndicatorItem.prototype, "text", void 0);
123
- __decorate([
124
- property({ type: String })
125
- ], NLDDStepIndicatorItem.prototype, "icon", void 0);
126
- __decorate([
127
- property({ type: String, reflect: true })
128
- ], NLDDStepIndicatorItem.prototype, "href", void 0);
129
- __decorate([
130
- property({ type: Boolean, reflect: true })
131
- ], NLDDStepIndicatorItem.prototype, "button", void 0);
132
- __decorate([
133
- state()
134
- ], NLDDStepIndicatorItem.prototype, "_derivedStatus", void 0);
135
- __decorate([
136
- state()
137
- ], NLDDStepIndicatorItem.prototype, "_index", void 0);
138
- __decorate([
139
- state()
140
- ], NLDDStepIndicatorItem.prototype, "_statusText", void 0);
141
- // Sub-component of nldd-step-indicator. The guard registration (like
142
- // nldd-breadcrumbs-item's) keeps the first registration authoritative across HMR
143
- // and test re-imports.
144
- if (!customElements.get('nldd-step-indicator-item')) {
145
- customElements.define('nldd-step-indicator-item', NLDDStepIndicatorItem);
146
- }
147
- // # nldd-step-indicator
148
- let NLDDStepIndicator = class NLDDStepIndicator extends withTranslations(LitElement, nlddStepIndicatorTranslations) {
149
- constructor() {
150
- super(...arguments);
151
- this.accessibleLabel = '';
152
- this.current = 1;
153
- /** The steps, tracked so the compact view (text + bar) is driven by the same
154
- * source as the row of markers. */
155
- this._items = [];
156
- this._onSlotChange = (e) => {
157
- const slot = e.target;
158
- this._items = slot.assignedElements({ flatten: true })
159
- .filter((el) => el.localName === 'nldd-step-indicator-item');
160
- };
161
- }
162
- get total() {
163
- return this._items.length;
164
- }
165
- /** The current step, clamped to the number of steps: an out-of-range
166
- * `current` would otherwise mark every step past (or none at all). */
167
- get resolvedCurrent() {
168
- if (this.total === 0)
169
- return this.current;
170
- return Math.min(Math.max(this.current, 1), this.total);
171
- }
172
- get currentItem() {
173
- return this._items.find(item => item.resolvedStatus === 'current')
174
- ?? this._items[this.resolvedCurrent - 1];
175
- }
176
- /** Before render, not after: the compact view reads the current item back out
177
- * of the children, so their statuses have to be fresh by the time this
178
- * element renders. */
179
- willUpdate(changed) {
180
- // withTranslations merges a consumer's `translations` override in its own
181
- // willUpdate; without this call the override is silently ignored.
182
- super.willUpdate(changed);
183
- if (changed.has('current') || changed.has('_items'))
184
- this._syncItems();
185
- }
186
- /** Push position, derived status and status text down to the children. Push
187
- * rather than pull: a child reading its own parent has no way of knowing
188
- * when `current` changes. */
189
- _syncItems() {
190
- const current = this.resolvedCurrent;
191
- this._items.forEach((item, index) => {
192
- const position = index + 1;
193
- item._index = position;
194
- item._derivedStatus = position < current ? 'past' : position === current ? 'current' : 'future';
195
- item._statusText = this._t(`components.step-indicator.status-${item.resolvedStatus}-label`);
196
- });
197
- }
198
- render() {
199
- return stepIndicatorTemplate(this);
200
- }
201
- };
202
- NLDDStepIndicator.styles = stepIndicatorStyles;
203
- __decorate([
204
- property({ type: String, attribute: 'accessible-label' })
205
- ], NLDDStepIndicator.prototype, "accessibleLabel", void 0);
206
- __decorate([
207
- property({ type: Number, reflect: true })
208
- ], NLDDStepIndicator.prototype, "current", void 0);
209
- __decorate([
210
- state()
211
- ], NLDDStepIndicator.prototype, "_items", void 0);
212
- NLDDStepIndicator = __decorate([
213
- customElement('nldd-step-indicator')
214
- ], NLDDStepIndicator);
215
- export { NLDDStepIndicator };
216
- //# sourceMappingURL=step-indicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-indicator.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-indicator/step-indicator.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAsC,MAAM,0BAA0B,CAAC;AAC7G,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAChG,OAAO,4BAA4B,CAAC;AAOpC,6BAA6B;AAE7B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,CAAC,CAAC;IACJ,CAAC;IAEQ,MAAM;QACd,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;;AA5De,wBAAM,GAAG,mBAAmB,AAAtB,CAAuB;AAG7C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;0DACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAC9B;AAKZ;IADC,KAAK,EAAE;iDAC6B;AAfzB,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAiE7B"}
@@ -1,3 +0,0 @@
1
- export declare const stepIndicatorStyles: import("lit").CSSResult;
2
- export declare const stepIndicatorItemStyles: import("lit").CSSResult;
3
- //# sourceMappingURL=step-indicator.styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-indicator.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-indicator/step-indicator.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,yBAqG/B,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBA0LnC,CAAC"}
@@ -1,294 +0,0 @@
1
- import { css, unsafeCSS } from 'lit';
2
- import { breakpoints } from '../../../assets/styles/breakpoints.js';
3
- import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
4
- const smMax = unsafeCSS(breakpoints.smMax);
5
- export const stepIndicatorStyles = css `
6
- :host {
7
- box-sizing: border-box;
8
- }
9
-
10
- :host {
11
- --_compact-text-gap: var(--primitives-space-8);
12
- --_compact-text-color: var(--semantics-content-color);
13
- --_compact-count-color: var(--semantics-content-secondary-color);
14
- --_compact-bar-gap: var(--primitives-space-4);
15
- --_compact-bar-segment-gap: var(--primitives-space-2);
16
- --_compact-bar-corner-radius: var(--primitives-corner-radius-full);
17
- --_track-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
18
- --_compact-bar-height: var(--primitives-space-6);
19
- --_progress-color: var(--semantics-content-accent-color);
20
- --_item-gap: var(--primitives-space-4);
21
- --_marker-size: var(--primitives-space-24);
22
- --_track-thickness: var(--primitives-space-2);
23
- --_marker-z-index: 1;
24
- --_marker-corner-radius: var(--primitives-corner-radius-full);
25
- --_ring-thickness: var(--semantics-surfaces-ring-thickness);
26
- --_ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
27
- --_marker-content-color: var(--semantics-content-secondary-color);
28
- --_progress-content-color: var(--semantics-content-contrast-color);
29
- --_current-fill-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-100));
30
- --_icon-size: var(--primitives-space-16);
31
- --_title-color: var(--semantics-content-secondary-color);
32
- --_current-title-color: var(--semantics-content-color);
33
- --_control-corner-radius: var(--semantics-controls-md-corner-radius);
34
- --_control-bleed-block: var(--primitives-space-4);
35
- --_control-bleed-inline: var(--primitives-space-8);
36
- --_control-fill-z-index: -1;
37
- --_control-ring-z-index: 1;
38
- --_control-hover-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
39
-
40
- ${inheritedTextReset}
41
- isolation: isolate;
42
- display: block;
43
- container-type: inline-size;
44
- }
45
-
46
- :host([hidden]) {
47
- display: none;
48
- }
49
-
50
- .step-indicator__items {
51
- display: flex;
52
- align-items: start;
53
-
54
- /* Stays in the DOM for assistive tech when the compact view takes over.
55
- Standard visually-hidden recipe. */
56
- @container (max-width: ${smMax}) {
57
- position: absolute;
58
- width: 1px;
59
- height: 1px;
60
- overflow: hidden;
61
- clip-path: inset(50%);
62
- white-space: nowrap;
63
- }
64
- }
65
-
66
- .step-indicator__compact-text {
67
- display: none;
68
- margin: 0;
69
- gap: var(--_compact-text-gap);
70
- justify-content: space-between;
71
- align-items: baseline;
72
- color: var(--_compact-text-color);
73
- font: var(--primitives-font-body-md-regular-flat);
74
-
75
- @container (max-width: ${smMax}) {
76
- display: flex;
77
- }
78
- }
79
-
80
- .step-indicator__compact-count {
81
- color: var(--_compact-count-color);
82
- font-variant-numeric: tabular-nums;
83
- white-space: nowrap;
84
- }
85
-
86
- .step-indicator__compact-bar {
87
- display: none;
88
- margin-top: var(--_compact-bar-gap);
89
- gap: var(--_compact-bar-segment-gap);
90
-
91
- @container (max-width: ${smMax}) {
92
- display: flex;
93
- }
94
- }
95
-
96
- .step-indicator__compact-bar-segment {
97
- flex: 1;
98
- border-radius: var(--_compact-bar-corner-radius);
99
- background-color: var(--_track-color);
100
- height: var(--_compact-bar-height);
101
- }
102
-
103
- .step-indicator__compact-bar-segment[data-filled] {
104
- background-color: var(--_progress-color);
105
- }
106
- `;
107
- export const stepIndicatorItemStyles = css `
108
- :host {
109
- box-sizing: border-box;
110
- }
111
-
112
- :host {
113
- ${inheritedTextReset}
114
- display: block;
115
- flex: 1;
116
- min-width: 0;
117
- }
118
-
119
- :host([hidden]) {
120
- display: none;
121
- }
122
-
123
- .step-indicator__item {
124
- position: relative;
125
- display: flex;
126
- flex-direction: column;
127
- align-items: center;
128
- gap: var(--_item-gap);
129
- text-align: center;
130
- }
131
-
132
- .step-indicator__item::before,
133
- .step-indicator__item::after {
134
- position: absolute;
135
- top: calc(var(--_marker-size) / 2 - var(--_track-thickness) / 2);
136
- height: var(--_track-thickness);
137
- content: "";
138
- background-color: var(--_track-color);
139
- }
140
-
141
- .step-indicator__item::before {
142
- left: 0;
143
- right: 50%;
144
- }
145
-
146
- .step-indicator__item::after {
147
- left: 50%;
148
- right: 0;
149
- }
150
-
151
- :host(:first-of-type) .step-indicator__item::before {
152
- content: none;
153
- }
154
-
155
- :host(:last-of-type) .step-indicator__item::after {
156
- content: none;
157
- }
158
-
159
- .step-indicator__item.is-past::before {
160
- background-color: var(--_progress-color);
161
- }
162
-
163
- .step-indicator__item.is-past::after {
164
- background-color: var(--_progress-color);
165
- }
166
-
167
- .step-indicator__item.is-current::before {
168
- background-color: var(--_progress-color);
169
- }
170
-
171
- .step-indicator__item-marker {
172
- box-sizing: border-box;
173
- position: relative;
174
- z-index: var(--_marker-z-index);
175
- display: flex;
176
- width: var(--_marker-size);
177
- height: var(--_marker-size);
178
- align-items: center;
179
- justify-content: center;
180
- border-radius: var(--_marker-corner-radius);
181
- /* Ring in the background color: masks the track running underneath, so
182
- the marker gets breathing room without shortening the track. */
183
- box-shadow: 0 0 0 var(--_ring-thickness) var(--_ring-color);
184
- background-color: var(--_track-color);
185
- color: var(--_marker-content-color);
186
- font: var(--primitives-font-body-sm-medium-flat);
187
-
188
- @media (forced-colors: active) {
189
- border: var(--primitives-border-width-regular) solid CanvasText;
190
- }
191
- }
192
-
193
- .step-indicator__item.is-past .step-indicator__item-marker {
194
- background-color: var(--_progress-color);
195
- color: var(--_progress-content-color);
196
- }
197
-
198
- .step-indicator__item.is-current .step-indicator__item-marker {
199
- border: var(--_track-thickness) solid var(--_progress-color);
200
- background-color: var(--_current-fill-color);
201
- color: var(--_progress-color);
202
- }
203
-
204
- .step-indicator__item-icon {
205
- width: var(--_icon-size);
206
- height: var(--_icon-size);
207
- }
208
-
209
- .step-indicator__item-title {
210
- color: var(--_title-color);
211
- font: var(--primitives-font-body-sm-regular-flat);
212
- overflow-wrap: anywhere;
213
- }
214
-
215
- .step-indicator__item.is-current .step-indicator__item-title {
216
- color: var(--_current-title-color);
217
- }
218
-
219
- /* Standard visually-hidden recipe. */
220
- .step-indicator__item-status {
221
- position: absolute;
222
- width: 1px;
223
- height: 1px;
224
- overflow: hidden;
225
- clip-path: inset(50%);
226
- white-space: nowrap;
227
- }
228
-
229
- .step-indicator__item-control {
230
- position: relative;
231
- display: flex;
232
- width: fit-content;
233
- max-width: 100%;
234
- flex-direction: column;
235
- align-items: center;
236
- gap: var(--_item-gap);
237
- padding: 0;
238
- border: none;
239
- border-radius: var(--_control-corner-radius);
240
- background: none;
241
- color: inherit;
242
- cursor: var(--semantics-controls-link-cursor);
243
- font: inherit;
244
- text-decoration: none;
245
- }
246
-
247
- /* Two layers on the same box, bleeding past the control rather than padding
248
- it: padding would move the marker down while the track sits at a fixed
249
- offset, and the two would no longer line up. ::before carries the fill and
250
- stays under the track; ::after carries the focus ring and goes over it. */
251
- .step-indicator__item-control::before,
252
- .step-indicator__item-control::after {
253
- position: absolute;
254
- inset: calc(var(--_control-bleed-block) * -1) calc(var(--_control-bleed-inline) * -1);
255
- border-radius: var(--_control-corner-radius);
256
- content: "";
257
- pointer-events: none;
258
- }
259
-
260
- .step-indicator__item-control::before {
261
- z-index: var(--_control-fill-z-index);
262
- }
263
-
264
- .step-indicator__item-control::after {
265
- z-index: var(--_control-ring-z-index);
266
- }
267
-
268
- .step-indicator__item-control:focus-visible {
269
- /* The ring lives on ::after, so the control's own must go — two rings on
270
- one control is what the browser default would add here. */
271
- outline: none;
272
- }
273
-
274
- .step-indicator__item-control:focus-visible::after {
275
- outline: var(--semantics-focus-ring-outline);
276
- outline-offset: var(--semantics-focus-ring-outline-offset);
277
- box-shadow: var(--semantics-focus-ring-box-shadow);
278
- }
279
-
280
- /* Hover only on hover-capable devices: keeps a touch-scroll from lighting up
281
- the step under the finger. */
282
- @media (hover: hover) {
283
- .step-indicator__item-control:hover {
284
- /* The marker's ring masks the track in the surrounding color, so it
285
- has to follow the hover fill or it paints a halo on top of it. */
286
- --_ring-color: var(--_control-hover-background-color);
287
- }
288
-
289
- .step-indicator__item-control:hover::before {
290
- background-color: var(--_control-hover-background-color);
291
- }
292
- }
293
- `;
294
- //# sourceMappingURL=step-indicator.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-indicator.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-indicator/step-indicator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmClC,kBAAkB;;;;;;;;;;;;;;;;2BAgBK,KAAK;;;;;;;;;;;;;;;;;;;2BAmBL,KAAK;;;;;;;;;;;;;;;;2BAgBL,KAAK;;;;;;;;;;;;;;;CAe/B,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;IAMtC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoLrB,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type TemplateResult } from 'lit';
2
- import type { NLDDStepIndicator, NLDDStepIndicatorItem } from './step-indicator.js';
3
- export declare function stepIndicatorTemplate(component: NLDDStepIndicator): TemplateResult;
4
- export declare function stepIndicatorItemTemplate(component: NLDDStepIndicatorItem): TemplateResult;
5
- //# sourceMappingURL=step-indicator.template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-indicator.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-indicator/step-indicator.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEpF,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAmClF;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,qBAAqB,GAAG,cAAc,CAiC1F"}
@@ -1,69 +0,0 @@
1
- import { html, nothing } from 'lit';
2
- export function stepIndicatorTemplate(component) {
3
- const label = component.accessibleLabel || component._t('components.step-indicator.accessible-label');
4
- const current = component.resolvedCurrent;
5
- const total = component.total;
6
- const currentTitle = component.currentItem?.text ?? '';
7
- const compactText = component._t('components.step-indicator.compact-text', { current, total });
8
- return html `
9
- <nav class="step-indicator"
10
- aria-label=${label || nothing}
11
- >
12
- <div class="step-indicator__items"
13
- role="list"
14
- >
15
- <slot @slotchange=${component._onSlotChange}></slot>
16
- </div>
17
- ${total > 0 ? html `
18
- <p class="step-indicator__compact-text"
19
- aria-hidden="true"
20
- >
21
- ${currentTitle ? html `<span class="step-indicator__compact-title">${currentTitle}</span>` : nothing}
22
- <span class="step-indicator__compact-count">${compactText}</span>
23
- </p>
24
- <div class="step-indicator__compact-bar"
25
- aria-hidden="true"
26
- >
27
- ${Array.from({ length: total }, (_, index) => html `
28
- <span class="step-indicator__compact-bar-segment"
29
- ?data-filled=${index + 1 <= current}
30
- ></span>
31
- `)}
32
- </div>
33
- ` : nothing}
34
- </nav>
35
- `;
36
- }
37
- export function stepIndicatorItemTemplate(component) {
38
- const status = component.resolvedStatus;
39
- // A past step shows a check mark instead of its number; the number stays in
40
- // the status text for anyone who can't see it.
41
- const marker = component.icon
42
- ? html `<nldd-icon class="step-indicator__item-icon" icon=${component.icon}></nldd-icon>`
43
- : status === 'past'
44
- ? html `<nldd-icon class="step-indicator__item-icon" icon="check-mark"></nldd-icon>`
45
- : html `<span class="step-indicator__item-number">${component._index}</span>`;
46
- const content = html `
47
- <span class="step-indicator__item-marker"
48
- aria-hidden="true"
49
- >${marker}</span>
50
- <span class="step-indicator__item-title">
51
- ${component.text || html `<slot></slot>`}
52
- <span class="step-indicator__item-status">, ${component._statusText}</span>
53
- </span>
54
- `;
55
- return html `
56
- <div class="step-indicator__item is-${status}">
57
- ${component.href ? html `
58
- <a class="step-indicator__item-control"
59
- href=${component.href}
60
- >${content}</a>
61
- ` : component.button ? html `
62
- <button class="step-indicator__item-control"
63
- type="button"
64
- >${content}</button>
65
- ` : content}
66
- </div>
67
- `;
68
- }
69
- //# sourceMappingURL=step-indicator.template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"step-indicator.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-indicator/step-indicator.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,qBAAqB,CAAC,SAA4B;IACjE,MAAM,KAAK,GAAG,SAAS,CAAC,eAAe,IAAI,SAAS,CAAC,EAAE,CAAC,4CAA4C,CAAC,CAAC;IACtG,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC;IAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;IAC9B,MAAM,YAAY,GAAG,SAAS,CAAC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC;IACvD,MAAM,WAAW,GAAG,SAAS,CAAC,EAAE,CAAC,wCAAwC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAE/F,OAAO,IAAI,CAAA;;gBAEI,KAAK,IAAI,OAAO;;;;;wBAKR,SAAS,CAAC,aAAa;;KAE1C,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;;;;OAId,YAAY,CAAC,CAAC,CAAC,IAAI,CAAA,+CAA+C,YAAY,SAAS,CAAC,CAAC,CAAC,OAAO;mDACrD,WAAW;;;;;OAKvD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAA;;sBAEjC,KAAK,GAAG,CAAC,IAAI,OAAO;;MAEpC,CAAC;;IAEH,CAAC,CAAC,CAAC,OAAO;;EAEZ,CAAC;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,SAAgC;IACzE,MAAM,MAAM,GAAG,SAAS,CAAC,cAAc,CAAC;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