@ids-group-ltd/ids-design-system 1.1.2 → 1.2.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 (221) hide show
  1. package/CHANGELOG.md +755 -0
  2. package/agent/INDEX.md +8 -7
  3. package/agent/charts/ds-scatter-chart.md +1 -1
  4. package/agent/feedback/ds-badge.md +2 -2
  5. package/agent/feedback/ds-chat-message.md +1 -1
  6. package/agent/feedback/ds-chat-step.md +2 -2
  7. package/agent/feedback/ds-chat-thread.md +1 -1
  8. package/agent/feedback/ds-stat.md +1 -1
  9. package/agent/feedback/ds-toast.md +2 -2
  10. package/agent/feedback/ds-tree.md +1 -1
  11. package/agent/forms/ds-button.md +3 -3
  12. package/agent/forms/ds-dropzone.md +1 -1
  13. package/agent/forms/ds-icon-button.md +3 -3
  14. package/agent/forms/ds-number-stepper.md +3 -3
  15. package/agent/forms/ds-search.md +1 -1
  16. package/agent/forms/ds-split-button.md +1 -1
  17. package/agent/foundations/tokens.md +4 -3
  18. package/agent/navigation/ds-app-layout.md +1 -1
  19. package/agent/navigation/ds-nav-divider.md +6 -0
  20. package/agent/navigation/{ds-sidenav-footer.md → ds-nav-footer.md} +3 -3
  21. package/agent/navigation/{ds-sidenav-group.md → ds-nav-group.md} +2 -2
  22. package/agent/navigation/{ds-sidenav-item.md → ds-nav-item.md} +6 -6
  23. package/agent/navigation/ds-nav.md +15 -0
  24. package/agent/overlays/ds-drawer.md +1 -1
  25. package/agent/platform/toast-service.md +1 -1
  26. package/components/README.md +24 -24
  27. package/components.md +51 -45
  28. package/design-system.md +8 -7
  29. package/eslint/deprecated-api.json +108 -7
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +4 -4
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs +182 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs.map +1 -0
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +37 -8
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +5 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +76 -5
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +2 -2
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +77 -18
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +2 -2
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +65 -4
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +76 -9
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +6 -4
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +2 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +2 -2
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +2 -2
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs +113 -0
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs.map +1 -0
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs +228 -0
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs.map +1 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +61 -10
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +36 -4
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs +56 -0
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs.map +1 -0
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +10 -39
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +7 -4
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +33 -6
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -98
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +11 -179
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +3 -2
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +68 -5
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +41 -3
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +6 -4
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +27 -7
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +54 -19
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +8 -7
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +21 -11
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +153 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +11 -0
  161. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  164. package/migrations/1.1.1.json +14 -4
  165. package/migrations/1.1.2.json +11 -3
  166. package/migrations/1.2.0.json +1433 -0
  167. package/migrations/README.md +8 -1
  168. package/package.json +25 -1
  169. package/schematics/check-overrides/index.cjs +28 -3
  170. package/schematics/check-overrides/scan.cjs +151 -2
  171. package/schematics/check-overrides/schema.json +4 -0
  172. package/schematics/check-overrides/surface.json +389 -74
  173. package/schematics/collection.json +1 -1
  174. package/stylelint/deprecated-tokens.json +7 -0
  175. package/styles/_check-box.scss +4 -3
  176. package/styles/_dropdown-overlay.scss +6 -8
  177. package/styles/_ds-color.scss +7 -2
  178. package/styles/_field-state.scss +4 -2
  179. package/styles/_focus.scss +12 -5
  180. package/styles/_link.scss +4 -4
  181. package/styles/_optical-center.scss +29 -0
  182. package/styles/_reveal.scss +8 -0
  183. package/styles/_status.scss +17 -7
  184. package/styles/_step-marker.scss +192 -6
  185. package/styles/_surface-level.scss +16 -0
  186. package/styles/_text-shimmer.scss +21 -0
  187. package/styles/_theme-activation.scss +17 -4
  188. package/styles/_tokens.scss +26 -7
  189. package/styles/ds.scss +1 -0
  190. package/themes/README.md +16 -21
  191. package/themes/_semantic.scss +129 -64
  192. package/themes/dark/_theme.scss +17 -25
  193. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +3 -3
  194. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
  195. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +20 -1
  196. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +14 -3
  197. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +49 -4
  198. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +9 -1
  199. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +28 -2
  200. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +8 -5
  201. package/types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts +88 -0
  202. package/types/ids-group-ltd-ids-design-system-components-nav.d.ts +152 -0
  203. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +21 -3
  204. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +1 -0
  205. package/types/ids-group-ltd-ids-design-system-components-reveal.d.ts +31 -0
  206. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +2 -8
  207. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +4 -1
  208. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +3 -0
  209. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +12 -83
  210. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +21 -131
  211. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +1 -1
  212. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +10 -1
  213. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -0
  214. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +1 -1
  215. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +3 -1
  216. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +27 -6
  217. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +9 -5
  218. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
  219. package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
  220. package/types/ids-group-ltd-ids-design-system.d.ts +7 -4
  221. package/agent/navigation/ds-sidenav.md +0 -13
@@ -13,7 +13,8 @@ One file per released version — `migrations/<version>.json` — mirroring that
13
13
  "verify": "<the positive assertion that proves this landed>",
14
14
  "restore": "<literal snippet that brings the old behaviour back | null>",
15
15
  "supersedes": ["<version>#<id>"],
16
- "evidence": ["fixture:<path> | pixels:<block id> | tokens:<name> | command:<shell>"] } ],
16
+ "evidence": ["fixture:<path> | pixels:<block id> | tokens:<name> | command:<shell>"],
17
+ "themeTokens": ["<semantic token this item adds>", "..."] } ],
17
18
  "deleteList": [ { "id": "<slug>", "surface": "<surface>", "find": ["<shape>", "..."],
18
19
  "why": "<what made it unnecessary>",
19
20
  "replaceWith": "<the API that replaces it>" } ],
@@ -57,6 +58,12 @@ One file per released version — `migrations/<version>.json` — mirroring that
57
58
  `button/sizes`, whose pixels did not change across the boundary), `tokens:<token name>`, or
58
59
  `command:<shell command>`. Optional on an item and on an object-form `informational` entry, and
59
60
  required wherever the prose makes such a claim.
61
+ - **`themeTokens`** - the semantic tokens the item adds: custom properties declared in
62
+ `themes/_semantic.scss` that the release before did not have. A full theme of your own, a block
63
+ that sets the semantic tokens itself, has to set each of them, because one it leaves out takes
64
+ the library default inside it; `action` names each one and says so. Present on every item that
65
+ adds a semantic token, from 1.1.1 on. `check-overrides --from=<version>` reads it to warn a full
66
+ theme about the tokens added after that version.
60
67
  - **`deleteList`** - rows in published manifests; not written for new entries (see below).
61
68
  - **`informational`** — a non-actionable FYI, a bare string or `{ "text": "...", "verify": "..." }`
62
69
  where `verify` is the one eyeball check for a change to rendering alone (no symbol for a grep or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ids-group-ltd/ids-design-system",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "IDS Group Angular design system: components, tokens, themes",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ids-ds.proto.ids-group.co.uk/",
@@ -227,6 +227,14 @@
227
227
  "types": "./types/ids-group-ltd-ids-design-system-components-multi-select.d.ts",
228
228
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs"
229
229
  },
230
+ "./components/nav": {
231
+ "types": "./types/ids-group-ltd-ids-design-system-components-nav.d.ts",
232
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs"
233
+ },
234
+ "./components/nav-footer": {
235
+ "types": "./types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts",
236
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs"
237
+ },
230
238
  "./components/number-stepper": {
231
239
  "types": "./types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts",
232
240
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs"
@@ -267,6 +275,10 @@
267
275
  "types": "./types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts",
268
276
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs"
269
277
  },
278
+ "./components/reveal": {
279
+ "types": "./types/ids-group-ltd-ids-design-system-components-reveal.d.ts",
280
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs"
281
+ },
270
282
  "./components/scatter-chart": {
271
283
  "types": "./types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts",
272
284
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs"
@@ -607,6 +619,14 @@
607
619
  "types": "./types/ids-group-ltd-ids-design-system-components-multi-select.d.ts",
608
620
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs"
609
621
  },
622
+ "./nav": {
623
+ "types": "./types/ids-group-ltd-ids-design-system-components-nav.d.ts",
624
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs"
625
+ },
626
+ "./nav-footer": {
627
+ "types": "./types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts",
628
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs"
629
+ },
610
630
  "./number-stepper": {
611
631
  "types": "./types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts",
612
632
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs"
@@ -647,6 +667,10 @@
647
667
  "types": "./types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts",
648
668
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs"
649
669
  },
670
+ "./reveal": {
671
+ "types": "./types/ids-group-ltd-ids-design-system-components-reveal.d.ts",
672
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs"
673
+ },
650
674
  "./scatter-chart": {
651
675
  "types": "./types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts",
652
676
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs"
@@ -9,7 +9,9 @@ const SKIPPED_DIR = /\/(node_modules|dist|\.angular)\//;
9
9
  /**
10
10
  * `ng g @ids-group-ltd/ids-design-system:check-overrides` — reports every `--ds-*` a consumer's
11
11
  * stylesheets set that the installed version never reads, and every `ds-*` selector naming a class
12
- * its components do not render. Read-only: it changes no file.
12
+ * its components do not render, every theme block of the consumer's own that sets most semantic
13
+ * tokens but not all of them, and every hover or focus rule that draws `--border-strong` on a field
14
+ * outlined in `--border-field`. Read-only: it changes no file.
13
15
  */
14
16
  function checkOverrides(options) {
15
17
  return (tree, context) => {
@@ -17,6 +19,8 @@ function checkOverrides(options) {
17
19
  const readTokens = new Set(surface.tokens);
18
20
  let tokenHits = 0;
19
21
  let classHits = 0;
22
+ let themeHits = 0;
23
+ let fieldStateHits = 0;
20
24
  tree.getDir(options.path ?? '/').visit((path, entry) => {
21
25
  if (SKIPPED_DIR.test(`${path}/`) || !entry)
22
26
  return;
@@ -37,11 +41,32 @@ function checkOverrides(options) {
37
41
  context.logger.warn(`${path}:${hit.line} ${hit.selector} .${hit.className}: ${hit.selector} renders no such class in ${surface.version}`);
38
42
  classHits++;
39
43
  }
44
+ const blocks = (0, scan_cjs_1.cssBlocks)(content);
45
+ for (const hit of (0, scan_cjs_1.findStrongFieldStates)(blocks)) {
46
+ context.logger.warn(`${path}:${hit.line} ${hit.selector}: --border-strong on a field's hover or focus is fainter than its resting field border (line ${hit.restingLine}); use --border-field-hover`);
47
+ fieldStateHits++;
48
+ }
49
+ const gaps = (0, scan_cjs_1.findThemeGaps)(blocks, surface.semanticTokens ?? [], surface.semanticTokensAddedIn ?? {}, options.from);
50
+ for (const gap of gaps) {
51
+ const at = `${path}:${gap.line} ${gap.selector} sets ${gap.setCount} semantic tokens`;
52
+ if (options.from === undefined) {
53
+ context.logger.warn(`${at}; not set, so ${surface.version}'s default applies: ${gap.older.join(', ')}`);
54
+ themeHits++;
55
+ continue;
56
+ }
57
+ if (gap.addedSince.length) {
58
+ context.logger.warn(`${at}; not set, added after ${options.from}: ${gap.addedSince.join(', ')}`);
59
+ themeHits++;
60
+ }
61
+ if (gap.older.length) {
62
+ context.logger.info(`${at}; also not set, from ${options.from} or earlier: ${gap.older.join(', ')}`);
63
+ }
64
+ }
40
65
  }
41
66
  });
42
- const summary = `check-overrides: ${tokenHits} write-only token(s), ${classHits} dead class(es)`;
67
+ const summary = `check-overrides: ${tokenHits} write-only token(s), ${classHits} dead class(es), ${themeHits} theme gap(s), ${fieldStateHits} field state border(s)`;
43
68
  context.logger.info(summary);
44
- if (options.strict && tokenHits + classHits > 0) {
69
+ if (options.strict && tokenHits + classHits + themeHits + fieldStateHits > 0) {
45
70
  throw new schematics_1.SchematicsException(summary);
46
71
  }
47
72
  return tree;
@@ -2,13 +2,18 @@
2
2
  // Pure text scanning, no devkit import, so `tools/check-overrides-selftest.mjs` can exercise it
3
3
  // directly with `node:assert` instead of a schematic tree.
4
4
  //
5
- // Both scans work line by line: a `ds-*` selector and the class it dead-styles have to share a
6
- // line to be caught. A class inside a nested SCSS block under `ds-x {` on another line is not
5
+ // The token and class scans work line by line: a `ds-*` selector and the class it dead-styles
6
+ // have to share a line to be caught. A class inside a nested SCSS block under `ds-x {` on another line is not
7
7
  // resolved — documented in README.md alongside the schematic.
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FULL_THEME_MIN_SEMANTIC_TOKENS = void 0;
9
10
  exports.findWriteOnlyTokens = findWriteOnlyTokens;
10
11
  exports.findWriteOnlyBoundTokens = findWriteOnlyBoundTokens;
11
12
  exports.findDeadClasses = findDeadClasses;
13
+ exports.cssBlocks = cssBlocks;
14
+ exports.findStrongFieldStates = findStrongFieldStates;
15
+ exports.findThemeGaps = findThemeGaps;
16
+ exports.compareVersions = compareVersions;
12
17
  // Comments are stripped per line so a token or selector only mentioned in prose never reports a
13
18
  // hit; a `/* … */` spanning several lines is tracked across them.
14
19
  function linesWithoutComments(text) {
@@ -83,3 +88,147 @@ function findDeadClasses(text, classesBySelector) {
83
88
  });
84
89
  return hits;
85
90
  }
91
+ // Every `selector { ... }` with the declarations written directly inside it; a nested block is a
92
+ // block of its own under its own selector, not merged into its parent. Rules that judge a rule set
93
+ // as a whole (a theme block, a resting border against its :hover) read this instead of lines.
94
+ function cssBlocks(text) {
95
+ const source = linesWithoutComments(text).join('\n');
96
+ const blocks = [];
97
+ const open = [];
98
+ let line = 1;
99
+ let statement = '';
100
+ let statementLine = 1;
101
+ const flushDeclaration = () => {
102
+ const match = statement.trim().match(/^(-{0,2}[a-zA-Z][\w-]*)\s*:([\s\S]*)$/);
103
+ if (match && open.length) {
104
+ open[open.length - 1].declarations.push({
105
+ property: match[1],
106
+ value: match[2].trim(),
107
+ line: statementLine,
108
+ });
109
+ }
110
+ statement = '';
111
+ };
112
+ for (let index = 0; index < source.length; index++) {
113
+ const char = source[index];
114
+ if (!statement.trim() && !/\s/.test(char))
115
+ statementLine = line;
116
+ if (char === '\n')
117
+ line++;
118
+ if (char === '"' || char === "'") {
119
+ const end = source.indexOf(char, index + 1);
120
+ const quoted = source.slice(index, end === -1 ? source.length : end + 1);
121
+ statement += quoted;
122
+ line += quoted.split('\n').length - 1;
123
+ index += quoted.length - 1;
124
+ }
125
+ else if (char === '#' && source[index + 1] === '{') {
126
+ const end = source.indexOf('}', index);
127
+ const interpolation = source.slice(index, end === -1 ? source.length : end + 1);
128
+ statement += interpolation;
129
+ index += interpolation.length - 1;
130
+ }
131
+ else if (char === '{') {
132
+ open.push({
133
+ selector: statement.trim().replace(/\s+/g, ' '),
134
+ line: statementLine,
135
+ declarations: [],
136
+ parent: open[open.length - 1] ?? null,
137
+ });
138
+ statement = '';
139
+ }
140
+ else if (char === ';') {
141
+ flushDeclaration();
142
+ }
143
+ else if (char === '}') {
144
+ flushDeclaration();
145
+ const closed = open.pop();
146
+ if (closed)
147
+ blocks.push(closed);
148
+ }
149
+ else {
150
+ statement += char;
151
+ }
152
+ }
153
+ return blocks.sort((a, b) => a.line - b.line);
154
+ }
155
+ const STATE_PSEUDO = /:(hover|focus-within|focus-visible|focus)/g;
156
+ const BORDER_STRONG = /var\(\s*--border-strong(?![\w-])/;
157
+ // The resting outline of a field: the semantic token, or the border hook of a DS field.
158
+ const FIELD_BORDER = /var\(\s*--(border-field(?![\w-])|ds-(input|textarea|select|multi-select|autocomplete|search|date-picker|time-picker|color-picker|number-stepper|otp-cell|field|field-group|chat-input)-border)/;
159
+ const bordersWith = (block, pattern) => block.declarations.filter((declaration) => /border/.test(declaration.property) && pattern.test(declaration.value));
160
+ // A `:hover` / `:focus*` rule that draws `--border-strong` on an element whose resting rule draws a
161
+ // field border: `--border-strong` is fainter than `--border-field`, so the field fades on hover. The
162
+ // resting rule is the same selector without the state, or the parent of a nested `&:hover`.
163
+ function findStrongFieldStates(blocks) {
164
+ const hits = [];
165
+ for (const block of blocks) {
166
+ const strong = bordersWith(block, BORDER_STRONG);
167
+ if (!strong.length)
168
+ continue;
169
+ const resting = block.selector
170
+ .split(',')
171
+ .map((part) => part.trim())
172
+ .filter((part) => part.replace(STATE_PSEUDO, '') !== part)
173
+ .map((part) => {
174
+ const rest = part.replace(STATE_PSEUDO, '').trim();
175
+ if (rest === '&')
176
+ return block.parent;
177
+ return (blocks.find((candidate) => candidate.parent === block.parent &&
178
+ candidate.selector
179
+ .split(',')
180
+ .some((candidatePart) => candidatePart.trim() === rest)) ?? null);
181
+ })
182
+ .find((candidate) => candidate && bordersWith(candidate, FIELD_BORDER).length);
183
+ if (!resting)
184
+ continue;
185
+ for (const declaration of strong) {
186
+ hits.push({
187
+ selector: block.selector,
188
+ line: declaration.line,
189
+ restingLine: bordersWith(resting, FIELD_BORDER)[0].line,
190
+ });
191
+ }
192
+ }
193
+ return hits;
194
+ }
195
+ // A block setting at least this many semantic tokens is a full theme of the consumer's own: it
196
+ // means to own every role, so a role it leaves out falls back to the library default under it.
197
+ // A brand overlay sets a handful (`--primary` and its channels) and stays below it.
198
+ exports.FULL_THEME_MIN_SEMANTIC_TOKENS = 20;
199
+ function findThemeGaps(blocks, semanticTokens, addedIn, from) {
200
+ const semantic = new Set(semanticTokens);
201
+ const gaps = [];
202
+ for (const block of blocks) {
203
+ const set = new Set(block.declarations
204
+ .map((declaration) => declaration.property)
205
+ .filter((property) => semantic.has(property)));
206
+ if (set.size < exports.FULL_THEME_MIN_SEMANTIC_TOKENS)
207
+ continue;
208
+ const missing = semanticTokens.filter((token) => !set.has(token));
209
+ if (!missing.length)
210
+ continue;
211
+ const isNew = (token) => from !== undefined &&
212
+ addedIn[token] !== undefined &&
213
+ compareVersions(addedIn[token], from) > 0;
214
+ gaps.push({
215
+ selector: block.selector,
216
+ line: block.line,
217
+ setCount: set.size,
218
+ addedSince: missing.filter(isNew),
219
+ older: missing.filter((token) => !isNew(token)),
220
+ });
221
+ }
222
+ return gaps;
223
+ }
224
+ // A prerelease sorts before its own release, as in tools/release-tags.mjs.
225
+ function compareVersions(a, b) {
226
+ const [coreA, preA] = a.split(/-(.*)/s);
227
+ const [coreB, preB] = b.split(/-(.*)/s);
228
+ const core = coreA.localeCompare(coreB, undefined, { numeric: true });
229
+ if (core)
230
+ return core;
231
+ if (!preA || !preB)
232
+ return preA ? -1 : preB ? 1 : 0;
233
+ return preA.localeCompare(preB, undefined, { numeric: true });
234
+ }
@@ -13,6 +13,10 @@
13
13
  "type": "string",
14
14
  "default": "/",
15
15
  "description": "Workspace folder to scan."
16
+ },
17
+ "from": {
18
+ "type": "string",
19
+ "description": "The version you upgraded from. A theme block of your own is then warned about only for the semantic tokens added after it."
16
20
  }
17
21
  },
18
22
  "required": []