@ids-group-ltd/ids-design-system 1.0.2 → 1.1.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 (85) hide show
  1. package/CHANGELOG.md +261 -3
  2. package/agent/INDEX.md +12 -2
  3. package/agent/feedback/ds-attachment.md +12 -0
  4. package/agent/feedback/ds-chat-attachment.md +10 -0
  5. package/agent/feedback/ds-chat-message.md +11 -0
  6. package/agent/feedback/ds-chat-step.md +10 -0
  7. package/agent/feedback/ds-chat-steps.md +10 -0
  8. package/agent/feedback/ds-chat-thread.md +11 -0
  9. package/agent/feedback/ds-timeline-item.md +3 -1
  10. package/agent/feedback/ds-timeline.md +9 -0
  11. package/agent/feedback/ds-toast.md +1 -1
  12. package/agent/feedback/ds-tree.md +3 -1
  13. package/agent/forms/ds-chat-input.md +16 -0
  14. package/agent/forms/ds-inline-edit.md +14 -0
  15. package/agent/foundations/tokens.md +3 -3
  16. package/agent/navigation/ds-splitter.md +14 -0
  17. package/agent/platform/toast-service.md +3 -2
  18. package/agent/tables/ds-table.md +1 -1
  19. package/components.md +107 -9
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +7 -4
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +858 -0
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -0
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +107 -0
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -0
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs +359 -0
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs.map +1 -0
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +74 -17
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +163 -20
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +146 -24
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +54 -0
  59. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  62. package/migrations/1.0.2.json +28 -0
  63. package/migrations/1.0.3.json +15 -0
  64. package/migrations/1.1.0.json +183 -0
  65. package/package.json +25 -1
  66. package/schematics/check-overrides/surface.json +181 -5
  67. package/styles/_dropdown-overlay.scss +6 -4
  68. package/styles/_step-marker.scss +51 -0
  69. package/styles/_tokens.scss +5 -3
  70. package/themes/README.md +2 -1
  71. package/themes/_semantic.scss +10 -0
  72. package/themes/dark/_palette.scss +1 -2
  73. package/themes/dark/_theme.scss +24 -3
  74. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +3 -1
  75. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
  76. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
  77. package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +340 -0
  78. package/types/ids-group-ltd-ids-design-system-components-inline-edit.d.ts +43 -0
  79. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
  80. package/types/ids-group-ltd-ids-design-system-components-splitter.d.ts +83 -0
  81. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +34 -5
  82. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +53 -4
  83. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +51 -7
  84. package/types/ids-group-ltd-ids-design-system-core.d.ts +104 -0
  85. package/types/ids-group-ltd-ids-design-system.d.ts +6 -3
@@ -0,0 +1,183 @@
1
+ {
2
+ "version": "1.1.0",
3
+ "items": [
4
+ {
5
+ "id": "table-resize-line-default-color",
6
+ "kind": "behavior",
7
+ "old": "--border-default",
8
+ "new": null,
9
+ "surface": [
10
+ "template",
11
+ "style"
12
+ ],
13
+ "searchHints": [
14
+ "dsTableResize",
15
+ "--ds-table-resize-line-color"
16
+ ],
17
+ "detect": [
18
+ "dsTableResize"
19
+ ],
20
+ "action": "None, unless a table must keep the faint resize line it had: set `--ds-table-resize-line-color: var(--border-default)` on that `ds-table`.",
21
+ "appliesWhen": "A `ds-table` with `dsTableResize`. A table without it draws no resize line.",
22
+ "restore": "ds-table { --ds-table-resize-line-color: var(--border-default); }",
23
+ "verify": "At rest, a resizable `ds-table` header shows a `--text-tertiary` line at each column edge, unless `--ds-table-resize-line-color` is set."
24
+ },
25
+ {
26
+ "id": "dark-surface-overlay-one-step-lighter",
27
+ "kind": "behavior",
28
+ "old": "--surface-overlay",
29
+ "new": null,
30
+ "surface": [
31
+ "style"
32
+ ],
33
+ "searchHints": [
34
+ "--surface-overlay",
35
+ "--surface-secondary",
36
+ "--surface-muted",
37
+ "--border-default",
38
+ "--tooltip-bg-color"
39
+ ],
40
+ "detect": [
41
+ "var(--surface-overlay)"
42
+ ],
43
+ "action": "None, unless a panel of your own is painted with `--surface-overlay` and fills a hover, pressed or selected state with `--surface-secondary` or `--surface-muted`: declare `--surface-secondary: var(--surface-overlay-secondary)` and `--surface-muted: var(--surface-overlay-muted)` on that panel. A panel that floats over other content like a popover takes `--surface-overlay-raised` as its fill and `--surface-overlay-raised-secondary` / `--surface-overlay-raised-muted` in those two declarations.",
44
+ "appliesWhen": "The dark theme (`data-theme=\"dark\"`) only: `--surface-overlay` is `--neutral-100` there, the value `--surface-secondary` has, so a hover in that colour on your own overlay no longer shows. `ds-modal`, `ds-drawer` and the `ds-app-layout` rail below `lg` paint `--surface-overlay`; `ds-popover`, `ds-menu` in it, the dropdown panels of `ds-select`, `ds-multi-select` and `ds-autocomplete`, `ds-date-picker`, `ds-time-picker`, `ds-color-picker`, `ds-tooltip-panel` and `ds-toast` paint `--surface-overlay-raised` (`--neutral-150`). Each sets its level's tokens itself. Light values are unchanged.",
45
+ "pitfall": "A dark-theme `--surface-secondary` or `--surface-muted` override on `:root` no longer reaches inside the library overlays, which read `--surface-overlay-secondary`, `--surface-overlay-muted`, `--surface-overlay-raised-secondary` and `--surface-overlay-raised-muted` there; override those as well.",
46
+ "restore": ":root[data-theme='dark'] { --surface-overlay: var(--neutral-0); --surface-overlay-secondary: var(--neutral-100); --surface-overlay-muted: var(--neutral-150); --surface-overlay-raised: var(--neutral-0); --surface-overlay-raised-secondary: var(--neutral-100); --surface-overlay-raised-muted: var(--neutral-150); --border-overlay: var(--border-default); }",
47
+ "verify": "In the dark theme open a `ds-select` inside a `ds-modal`: the modal is lighter than the page, the panel lighter than the modal, and a hovered option lighter than the panel; a panel of your own painted with `--surface-overlay` shows its hovered row lighter than itself.",
48
+ "evidence": [
49
+ "tokens:--surface-overlay-secondary",
50
+ "tokens:--surface-overlay-muted",
51
+ "tokens:--surface-overlay-raised",
52
+ "tokens:--surface-overlay-raised-secondary",
53
+ "tokens:--surface-overlay-raised-muted",
54
+ "tokens:--border-overlay"
55
+ ]
56
+ },
57
+ {
58
+ "id": "dark-text-tertiary-overlay",
59
+ "kind": "behavior",
60
+ "old": "--text-tertiary",
61
+ "new": null,
62
+ "surface": [
63
+ "style"
64
+ ],
65
+ "searchHints": [
66
+ "--text-tertiary",
67
+ "--ds-menu-item-description-color",
68
+ "--ds-list-item-subtitle-color",
69
+ "--ds-dropdown-empty-color",
70
+ "--ds-date-picker-weekday-color"
71
+ ],
72
+ "detect": [
73
+ "var(--text-tertiary)"
74
+ ],
75
+ "action": "None, unless a row of your own rendered inside a `ds-popover`, a submenu or a dropdown panel (an option template, a custom menu row) colours its secondary line with `--text-tertiary`: use `var(--text-tertiary-overlay)` there.",
76
+ "appliesWhen": "The dark theme (`data-theme=\"dark\"`) only, where `--text-tertiary-overlay` is `--neutral-700`; in light it equals `--text-tertiary`. Library rows that take it: the `ds-menu-item` description and the `ds-list-item` subtitle and trailing slot inside a library overlay panel (a `ds-popover`, a submenu, a tooltip or a dropdown panel), the optgroup label and no-results line of the `ds-select`, `ds-multi-select` and `ds-autocomplete` panels, the `ds-date-picker` weekday header and the `ds-toast` time. A standalone `ds-menu`, a `ds-list` on the page, a modal or a drawer keep `--text-tertiary`.",
77
+ "pitfall": "`--ds-menu-item-description-color` and `--ds-list-item-subtitle-color` set to `var(--text-tertiary)` on `:root` pin those rows to the darker colour inside overlays too; scope such an override to the page or drop it.",
78
+ "restore": ":root[data-theme='dark'] { --text-tertiary-overlay: var(--text-tertiary); }",
79
+ "verify": "In the dark theme open a `ds-popover` holding a `ds-menu` with a `description` and hover the item: the description's computed colour equals `--neutral-700` (`rgb(183, 191, 208)`), and a row of your own inside a popover reads `--text-tertiary-overlay` for its second line.",
80
+ "evidence": [
81
+ "tokens:--text-tertiary-overlay"
82
+ ]
83
+ },
84
+ {
85
+ "id": "timeline-node-border-default-color",
86
+ "kind": "behavior",
87
+ "old": "--border-strong",
88
+ "new": null,
89
+ "surface": [
90
+ "template",
91
+ "style"
92
+ ],
93
+ "searchHints": [
94
+ "ds-timeline-item",
95
+ "--ds-timeline-node-border-color"
96
+ ],
97
+ "detect": [
98
+ "ds-timeline-item"
99
+ ],
100
+ "action": "None, unless a timeline must keep the faint ring it had: was `--border-strong`, now `--text-tertiary`; set `--ds-timeline-node-border-color: var(--border-strong)` on that `ds-timeline-item`.",
101
+ "appliesWhen": "A `ds-timeline-item` with no `status` and the default or `muted` tone. Items with a `status` or another tone draw their own ring.",
102
+ "restore": "ds-timeline-item { --ds-timeline-node-border-color: var(--border-strong); }",
103
+ "verify": "A `ds-timeline-item` with no `status` and the default tone draws its marker ring in `--text-tertiary`, unless `--ds-timeline-node-border-color` is set."
104
+ },
105
+ {
106
+ "id": "toast-ref-update-member",
107
+ "kind": "behavior",
108
+ "old": "ToastRef",
109
+ "new": null,
110
+ "surface": [
111
+ "typescript"
112
+ ],
113
+ "searchHints": [
114
+ "ToastRef"
115
+ ],
116
+ "detect": [
117
+ ": ToastRef = {",
118
+ "as ToastRef",
119
+ "implements ToastRef"
120
+ ],
121
+ "action": "None, unless the app builds a `ToastRef` object itself: give it an `update` member, for example `update: () => {}`.",
122
+ "appliesWhen": "An object literal or class typed as `ToastRef` in the app, usually a test double standing in for `ToastService.show()`. A ref returned by `ToastService` already has `update`.",
123
+ "verify": "Every object the app types as `ToastRef` has an `update` member, and the app compiles.",
124
+ "restore": null
125
+ }
126
+ ],
127
+ "informational": [
128
+ "New component `ds-inline-edit` (`InlineEditComponent`): text renamed in place, with a two-way `value`, `(saved)`, `placeholder`, `maxLength`, `disabled` and `ariaLabel`. Adds the optional `DsIntl.inlineEdit` keys `rename` and `saved`. Nothing to change in your code.",
129
+ "New component `ds-splitter` (`SplitterComponent`, `SplitterOrientation`, `SplitterOverdrag`, `SplitterPane`): two projected panes with a draggable, keyboard-operable handle, a two-way `size` in px, `defaultSize`, `min` / `max`, `orientation`, `pane`, `overdrag`, `persistKey` and `ariaLabel`. Adds the optional `DsIntl.splitter.label`. Nothing to change in your code.",
130
+ "New components `ds-chat-message`, `ds-chat-thread`, `ds-chat-attachment`, `ds-chat-steps` and `ds-chat-step` (`ChatMessageComponent`, `ChatThreadComponent`, `ChatAttachmentComponent`, `ChatStepsComponent`, `ChatStepComponent`, types `ChatMessageRole`, `ChatMessageStatus`, `ChatStepStatus` and `ChatStepsEnter`), in the entry point `@ids-group-ltd/ids-design-system/components/chat`: chat bubbles with `[steps]`, `[attachments]` and `[actions]` slots, an agent's steps for the `[steps]` slot, and a list that stays at the newest message unless the reader scrolled up, groups runs and splits them by time. Adds the optional `DsIntl.chat` keys. Nothing to change in your code.",
131
+ {
132
+ "text": "`ds-tree` takes `<ng-template dsTreeTrailing let-node>` (`TreeTrailingDirective`, `TreeTrailingContext`) drawn at the end of every row, a `(nodeHover)` output, and `selection: 'single' | 'multiple'` (`TreeSelection`) with a two-way `selectedIds` in multiple mode. Each row is a focusable `div role=\"treeitem\"` instead of a `button`, and a disabled row is reached by the arrow keys and announced as disabled. Nothing to change in your code unless your styles select the row as a `button`.",
133
+ "verify": "Open a `ds-tree` with a disabled node: rows look as before, ArrowDown stops on the disabled row with a focus ring, and Enter on it selects nothing."
134
+ },
135
+ "New component `ds-attachment` (`AttachmentComponent`): a file chip with a type tile or image preview, name and size, for the `[chips]` slot of `ds-chat-input`. Adds `AttachmentKind` and the optional `DsIntl.attachment` keys. Nothing to change in your code.",
136
+ "New component `ds-chat-input` (`ChatInputComponent`): an auto-growing message box with `[attachments]`, `[chips]`, `[actions]` and `[send]` slots, Enter to submit, `busy` / `busyLabel` and `(filesPasted)`. Adds the optional `DsIntl.chatInput` keys `label` and `send`. Nothing to change in your code.",
137
+ {
138
+ "text": "A focused `ds-table` resize handle draws no outline; its line becomes `--focus-ring-width` wide in `--focus-ring-color`, inset `--space-1` from the cell's top and bottom. Forced-colours mode keeps the outline.",
139
+ "verify": "Tab to a column resize handle: the line at the column edge turns the focus colour and wider, with no ring around the handle."
140
+ },
141
+ "`ToastService` can fold repeated toasts into one `×N` stack under `provideDsConfig({ toast: { groupDuplicates: true } })`, or by `ToastOptions.groupKey`; off by default. Adds `ToastOccurrence`, `ToastEntry.groupKey` and `ToastEntry.occurrences`, the `ds-toast` input `occurrences` and output `occurrenceClosed`, `ToastRegionComponent.stackFor`, an `occurrences` key in the patch `ToastRegionComponent.update()` accepts, and the optional `DsIntl.toast` keys `showAll`, `hide`, `dismissAll` and `repeated`. Nothing to change in your code.",
142
+ "`ToastRef.update(patch)` (patch type `ToastUpdate`) changes the `title`, `body`, `variant`, `durationMs` or `dismissible` of a toast on screen or queued, and `ToastRegionComponent.entryFor(id)` returns that toast. A `ToastRef` the app builds itself is covered by the item `toast-ref-update-member`.",
143
+ {
144
+ "text": "A `ToastService.promise()` toast closed before the promise settles announces nothing; the outcome is announced only while the toast is on screen or queued.",
145
+ "verify": "Start a `ToastService.promise()`, close its toast, then let the promise resolve: the live region announces nothing."
146
+ },
147
+ {
148
+ "text": "Under `data-theme=\"dark\"`, `--shadow-1` to `--shadow-4` and every `--shadow-*` and `--ds-elevation-*` alias built on them are near-black at 30% to 60% alpha instead of a light glow, `--shadow-4` adds a 1px light hairline at 8% alpha, and `--shadow-tint-l` is `3%`.",
149
+ "verify": "In the dark theme open a modal and a popover and read their computed box-shadow: every layer is a dark rgba, and the modal's first layer is `0 0 0 1px` at 0.08 alpha."
150
+ },
151
+ "`ds-timeline-item` takes `status` (`TimelineStatus`: done, running, pending, error), a `[trailing]` slot at the end of the heading row, and a `[details]` slot behind a chevron toggle with a two-way `expanded`. Adds the optional `DsIntl.timeline` keys `done`, `running`, `pending`, `error` and `details`, and `TimelineComponent.firstItem` and `lastItem`. Nothing to change in your code.",
152
+ {
153
+ "text": "A `ds-timeline-item` wrapped in its own element inside `ds-timeline` draws its connector to the next item; only the last item of the timeline draws none.",
154
+ "verify": "Wrap each `ds-timeline-item` of a `ds-timeline` in a `div`: every item but the last shows the vertical line under its marker."
155
+ },
156
+ {
157
+ "text": "Under `data-theme=\"dark\"` the border of `ds-popover`, the dropdown panels, the `ds-date-picker`, `ds-time-picker` and `ds-color-picker` panels, `ds-tooltip-panel` and `ds-toast` is `--border-overlay`, which is `--border-strong` in dark and `--border-default` in light. `--ds-popover-border-color`, `--ds-dropdown-panel-border-color`, `--ds-date-picker-border`, `--ds-time-picker-border`, `--ds-toast-border-color`, `--ds-toast-border-color-info`, `--ds-toast-border-color-success`, `--ds-toast-border-color-warning`, `--ds-toast-border-color-error` and `--tooltip-border-color` default to it instead of `--border-default`; set one to `var(--border-default)` for the previous border; a value you set on them still wins.",
158
+ "verify": "In the dark theme open a `ds-select` and read the computed border colour of its panel: it equals `--border-strong`."
159
+ },
160
+ {
161
+ "text": "`--ds-popover-bg-color`, `--ds-dropdown-panel-bg-color`, `--ds-date-picker-bg-color`, `--ds-time-picker-bg-color`, `--ds-toast-bg-color`, `--ds-toast-bg-color-info`, `--ds-toast-bg-color-success`, `--ds-toast-bg-color-warning`, `--ds-toast-bg-color-error`, `--ds-toast-queue-bg-color` and `--tooltip-bg-color` default to `--surface-overlay-raised` instead of `--surface-overlay`; the two are equal in light. Set one to `var(--surface-overlay)` to paint that overlay at the modal's level.",
162
+ "verify": "In the dark theme open a `ds-popover` and read its computed background: it equals `--neutral-150`."
163
+ },
164
+ "The ring of an upcoming `ds-stepper` step is drawn in `--text-tertiary` instead of `--border-strong`, so it reaches 3:1 against the surface. Visual only. Nothing to change in your code.",
165
+ {
166
+ "text": "The marker of a `ds-timeline-item` centres vertically on the heading, description and time together, or the text on the marker when the text is shorter; an open `[details]` area does not move it, and the connector also runs above every marker but the first.",
167
+ "verify": "Open a `ds-timeline` whose items have a description and a time: each marker sits at the middle of its text block and the line reaches it from the item above."
168
+ },
169
+ {
170
+ "text": "The icon inside a `ds-timeline-item` marker is 16px instead of 15px and draws its line at stroke 3 on the 24-unit grid instead of 1.75, as thick as the 2px ring.",
171
+ "verify": "Open a `ds-timeline-item` with an `icon`: the icon is centred in the ring and its line is as thick as the ring."
172
+ },
173
+ {
174
+ "text": "The step number inside a `ds-stepper` circle is wrapped in its own inline-block `span`, moved down by 0.033em, so it sits in the middle of the circle. Visual only.",
175
+ "verify": "Open a `ds-stepper` with an upcoming step and compare the number with its circle: the digit is centred vertically, not a fraction of a pixel high."
176
+ },
177
+ {
178
+ "text": "`--ds-menu-item-description-color` and `--ds-list-item-subtitle-color` default to `--text-tertiary-overlay` inside a library overlay panel (a `ds-popover`, a submenu, a tooltip or a dropdown panel), and `--ds-dropdown-empty-color` and `--ds-date-picker-weekday-color` default to it everywhere; it equals `--text-tertiary` in light. A value you set on them still wins.",
179
+ "verify": "In the dark theme open a `ds-select` with `optgroup` labels and read the computed colour of a group label: it equals `--neutral-700`."
180
+ }
181
+ ],
182
+ "deleteList": []
183
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ids-group-ltd/ids-design-system",
3
- "version": "1.0.2",
3
+ "version": "1.1.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/",
@@ -119,6 +119,10 @@
119
119
  "types": "./types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts",
120
120
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs"
121
121
  },
122
+ "./components/chat": {
123
+ "types": "./types/ids-group-ltd-ids-design-system-components-chat.d.ts",
124
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs"
125
+ },
122
126
  "./components/checkbox": {
123
127
  "types": "./types/ids-group-ltd-ids-design-system-components-checkbox.d.ts",
124
128
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs"
@@ -187,6 +191,10 @@
187
191
  "types": "./types/ids-group-ltd-ids-design-system-components-info-hint.d.ts",
188
192
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs"
189
193
  },
194
+ "./components/inline-edit": {
195
+ "types": "./types/ids-group-ltd-ids-design-system-components-inline-edit.d.ts",
196
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs"
197
+ },
190
198
  "./components/input": {
191
199
  "types": "./types/ids-group-ltd-ids-design-system-components-input.d.ts",
192
200
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-input.mjs"
@@ -307,6 +315,10 @@
307
315
  "types": "./types/ids-group-ltd-ids-design-system-components-split-button.d.ts",
308
316
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs"
309
317
  },
318
+ "./components/splitter": {
319
+ "types": "./types/ids-group-ltd-ids-design-system-components-splitter.d.ts",
320
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs"
321
+ },
310
322
  "./components/stat": {
311
323
  "types": "./types/ids-group-ltd-ids-design-system-components-stat.d.ts",
312
324
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs"
@@ -487,6 +499,10 @@
487
499
  "types": "./types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts",
488
500
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs"
489
501
  },
502
+ "./chat": {
503
+ "types": "./types/ids-group-ltd-ids-design-system-components-chat.d.ts",
504
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs"
505
+ },
490
506
  "./checkbox": {
491
507
  "types": "./types/ids-group-ltd-ids-design-system-components-checkbox.d.ts",
492
508
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs"
@@ -555,6 +571,10 @@
555
571
  "types": "./types/ids-group-ltd-ids-design-system-components-info-hint.d.ts",
556
572
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs"
557
573
  },
574
+ "./inline-edit": {
575
+ "types": "./types/ids-group-ltd-ids-design-system-components-inline-edit.d.ts",
576
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs"
577
+ },
558
578
  "./input": {
559
579
  "types": "./types/ids-group-ltd-ids-design-system-components-input.d.ts",
560
580
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-input.mjs"
@@ -675,6 +695,10 @@
675
695
  "types": "./types/ids-group-ltd-ids-design-system-components-split-button.d.ts",
676
696
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs"
677
697
  },
698
+ "./splitter": {
699
+ "types": "./types/ids-group-ltd-ids-design-system-components-splitter.d.ts",
700
+ "default": "./fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs"
701
+ },
678
702
  "./stat": {
679
703
  "types": "./types/ids-group-ltd-ids-design-system-components-stat.d.ts",
680
704
  "default": "./fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.2",
2
+ "version": "1.1.0",
3
3
  "tokens": [
4
4
  "--ds-accordion-body-padding",
5
5
  "--ds-accordion-body-text-color",
@@ -250,6 +250,22 @@
250
250
  "--ds-chart-tooltip-bg-color",
251
251
  "--ds-chart-tooltip-border-color",
252
252
  "--ds-chart-tooltip-text-color",
253
+ "--ds-chat-attachment-bg-color",
254
+ "--ds-chat-attachment-preview-bg-color",
255
+ "--ds-chat-attachment-preview-max-height",
256
+ "--ds-chat-input-bg-color",
257
+ "--ds-chat-input-padding",
258
+ "--ds-chat-input-radius",
259
+ "--ds-chat-message-assistant-bg-color",
260
+ "--ds-chat-message-assistant-color",
261
+ "--ds-chat-message-max-width",
262
+ "--ds-chat-message-padding",
263
+ "--ds-chat-message-radius",
264
+ "--ds-chat-message-user-bg-color",
265
+ "--ds-chat-message-user-color",
266
+ "--ds-chat-thread-gap",
267
+ "--ds-chat-thread-group-gap",
268
+ "--ds-chat-thread-padding",
253
269
  "--ds-check-mark-enter-duration",
254
270
  "--ds-check-mark-enter-easing",
255
271
  "--ds-check-mark-exit-duration",
@@ -447,6 +463,10 @@
447
463
  "--ds-icon-button-size",
448
464
  "--ds-icon-size",
449
465
  "--ds-info-hint-color",
466
+ "--ds-inline-edit-border-color",
467
+ "--ds-inline-edit-hover-bg-color",
468
+ "--ds-inline-edit-padding",
469
+ "--ds-inline-edit-radius",
450
470
  "--ds-inline-gap",
451
471
  "--ds-input-bg-color",
452
472
  "--ds-input-bg-color-disabled",
@@ -820,6 +840,11 @@
820
840
  "--ds-split-button-press-scale",
821
841
  "--ds-split-button-pressed-shadow",
822
842
  "--ds-split-button-text-color",
843
+ "--ds-splitter-drag-color",
844
+ "--ds-splitter-gap",
845
+ "--ds-splitter-grip-color",
846
+ "--ds-splitter-line-color",
847
+ "--ds-splitter-overdrag-line-scale",
823
848
  "--ds-stack-gap",
824
849
  "--ds-stat-bg-color",
825
850
  "--ds-stat-border",
@@ -899,6 +924,7 @@
899
924
  "--ds-table-icon-button-focus-color",
900
925
  "--ds-table-min-width",
901
926
  "--ds-table-radius",
927
+ "--ds-table-resize-line-color",
902
928
  "--ds-table-row-active-bg-color",
903
929
  "--ds-table-row-hover-bg-color",
904
930
  "--ds-table-row-pressed-bg-color",
@@ -953,8 +979,11 @@
953
979
  "--ds-timeline-node-border-color",
954
980
  "--ds-timeline-node-color",
955
981
  "--ds-timeline-node-size",
982
+ "--ds-timeline-open-bg-color",
956
983
  "--ds-timeline-spine-color",
957
984
  "--ds-timeline-spine-width",
985
+ "--ds-timeline-toggle-icon-color",
986
+ "--ds-timeline-toggle-icon-color-hover",
958
987
  "--ds-toast-bar-color",
959
988
  "--ds-toast-bg-color",
960
989
  "--ds-toast-bg-color-error",
@@ -1432,6 +1461,105 @@
1432
1461
  "stop-ring",
1433
1462
  "zero-line"
1434
1463
  ],
1464
+ "ds-chat-step": [
1465
+ "chev",
1466
+ "details",
1467
+ "details-body",
1468
+ "details-content",
1469
+ "disabled",
1470
+ "head",
1471
+ "heading",
1472
+ "is-disabled",
1473
+ "is-expanded",
1474
+ "is-first",
1475
+ "is-last",
1476
+ "lead",
1477
+ "node",
1478
+ "node-col",
1479
+ "outside-steps",
1480
+ "rest",
1481
+ "spine",
1482
+ "tail",
1483
+ "text",
1484
+ "time",
1485
+ "toggle",
1486
+ "trailing",
1487
+ "visually-hidden"
1488
+ ],
1489
+ "ds-chat-steps": [],
1490
+ "ds-chat-message": [
1491
+ "actions",
1492
+ "attachments",
1493
+ "body",
1494
+ "bubble",
1495
+ "divider",
1496
+ "divider-label",
1497
+ "in-thread",
1498
+ "is-continued",
1499
+ "is-failed",
1500
+ "is-first",
1501
+ "is-grouped",
1502
+ "meta",
1503
+ "speaker",
1504
+ "status",
1505
+ "steps",
1506
+ "steps-chip",
1507
+ "steps-chip-done",
1508
+ "steps-chip-failed",
1509
+ "steps-chip-shown",
1510
+ "steps-folded",
1511
+ "visually-hidden"
1512
+ ],
1513
+ "ds-chat-thread": [
1514
+ "content",
1515
+ "jump",
1516
+ "older",
1517
+ "scroller",
1518
+ "visually-hidden",
1519
+ "working",
1520
+ "working-label"
1521
+ ],
1522
+ "ds-chat-attachment": [
1523
+ "chev",
1524
+ "disabled",
1525
+ "head",
1526
+ "icon",
1527
+ "is-disabled",
1528
+ "is-expanded",
1529
+ "label",
1530
+ "preview",
1531
+ "source"
1532
+ ],
1533
+ "ds-chat-input": [
1534
+ "actions",
1535
+ "attachments",
1536
+ "box",
1537
+ "chat-input",
1538
+ "chips",
1539
+ "disabled",
1540
+ "frame",
1541
+ "layout-send-outside",
1542
+ "layout-split",
1543
+ "layout-toolbar",
1544
+ "send",
1545
+ "send-button",
1546
+ "status",
1547
+ "status-above",
1548
+ "status-bar"
1549
+ ],
1550
+ "ds-attachment": [
1551
+ "disabled",
1552
+ "is-disabled",
1553
+ "kind-doc",
1554
+ "kind-pdf",
1555
+ "meta",
1556
+ "name",
1557
+ "preview",
1558
+ "remove",
1559
+ "text",
1560
+ "tile",
1561
+ "visually-hidden"
1562
+ ],
1435
1563
  "ds-checkbox": [
1436
1564
  "check",
1437
1565
  "checkbox-field",
@@ -1691,6 +1819,15 @@
1691
1819
  "ds-info-hint": [
1692
1820
  "info-hint"
1693
1821
  ],
1822
+ "ds-inline-edit": [
1823
+ "box",
1824
+ "display",
1825
+ "empty",
1826
+ "field",
1827
+ "live",
1828
+ "pencil",
1829
+ "text"
1830
+ ],
1694
1831
  "ds-input": [
1695
1832
  "addon",
1696
1833
  "addon-slot",
@@ -1740,7 +1877,9 @@
1740
1877
  "activator",
1741
1878
  "body",
1742
1879
  "disabled",
1880
+ "ds-overlay-pane",
1743
1881
  "leading",
1882
+ "popover",
1744
1883
  "selected",
1745
1884
  "subtitle",
1746
1885
  "title",
@@ -1754,12 +1893,14 @@
1754
1893
  ],
1755
1894
  "ds-menu-item": [
1756
1895
  "disabled",
1896
+ "ds-overlay-pane",
1757
1897
  "error",
1758
1898
  "has-icons",
1759
1899
  "menu-item",
1760
1900
  "menu-item-body",
1761
1901
  "menu-item-description",
1762
1902
  "menu-item-icon",
1903
+ "popover",
1763
1904
  "quiet",
1764
1905
  "submenu-chevron"
1765
1906
  ],
@@ -2170,6 +2311,14 @@
2170
2311
  "primary",
2171
2312
  "toggle"
2172
2313
  ],
2314
+ "ds-splitter": [
2315
+ "dragging",
2316
+ "handle",
2317
+ "pane",
2318
+ "pane-end",
2319
+ "pane-start",
2320
+ "springing"
2321
+ ],
2173
2322
  "ds-stat": [
2174
2323
  "caption",
2175
2324
  "delta",
@@ -2196,6 +2345,7 @@
2196
2345
  "is-vertical",
2197
2346
  "labels-inline",
2198
2347
  "node",
2348
+ "number",
2199
2349
  "step",
2200
2350
  "step-label",
2201
2351
  "visually-hidden"
@@ -2404,29 +2554,54 @@
2404
2554
  "trigger",
2405
2555
  "trigger-wrap"
2406
2556
  ],
2407
- "ds-timeline": [],
2408
2557
  "ds-timeline-item": [
2409
- "content",
2558
+ "chev",
2559
+ "details",
2560
+ "details-body",
2561
+ "details-content",
2562
+ "disabled",
2563
+ "head",
2410
2564
  "heading",
2565
+ "is-disabled",
2566
+ "is-expanded",
2567
+ "is-first",
2568
+ "is-last",
2569
+ "lead",
2411
2570
  "node",
2412
2571
  "node-col",
2572
+ "outside-timeline",
2573
+ "rest",
2413
2574
  "spine",
2414
- "time"
2575
+ "tail",
2576
+ "text",
2577
+ "time",
2578
+ "toggle",
2579
+ "trailing",
2580
+ "visually-hidden"
2415
2581
  ],
2582
+ "ds-timeline": [],
2416
2583
  "ds-toast": [
2417
2584
  "action",
2418
2585
  "actions",
2419
2586
  "body",
2420
2587
  "close",
2588
+ "count",
2421
2589
  "disabled",
2422
2590
  "error",
2591
+ "ghost",
2592
+ "ghost-far",
2593
+ "ghost-near",
2423
2594
  "icon",
2424
2595
  "info",
2425
2596
  "is-disabled",
2426
2597
  "leaving",
2427
2598
  "loading",
2599
+ "more",
2600
+ "occurrences",
2601
+ "piled",
2428
2602
  "shifting",
2429
2603
  "success",
2604
+ "time",
2430
2605
  "title",
2431
2606
  "toast",
2432
2607
  "warning"
@@ -2459,7 +2634,8 @@
2459
2634
  "label",
2460
2635
  "node-icon",
2461
2636
  "row",
2462
- "selected"
2637
+ "selected",
2638
+ "trailing"
2463
2639
  ],
2464
2640
  "ds-w3w": [
2465
2641
  "mark",
@@ -25,11 +25,13 @@
25
25
  --_option-line-height: var(--ds-option-line-height, var(--line-height-flat));
26
26
  --_option-font-family: var(--ds-option-font-family, var(--font-sans));
27
27
  --_option-color: var(--ds-option-color, var(--text-primary));
28
- --_dropdown-empty-color: var(--ds-dropdown-empty-color, var(--text-tertiary));
28
+ --_dropdown-empty-color: var(--ds-dropdown-empty-color, var(--text-tertiary-overlay));
29
29
  --_dropdown-empty-font-size: var(--ds-dropdown-empty-font-size, inherit);
30
30
 
31
- --_dropdown-panel-bg-color: var(--ds-dropdown-panel-bg-color, var(--surface-overlay));
32
- --_dropdown-panel-border-color: var(--ds-dropdown-panel-border-color, var(--border-default));
31
+ --_dropdown-panel-bg-color: var(--ds-dropdown-panel-bg-color, var(--surface-overlay-raised));
32
+ --_dropdown-panel-border-color: var(--ds-dropdown-panel-border-color, var(--border-overlay));
33
+ --surface-secondary: var(--surface-overlay-raised-secondary);
34
+ --surface-muted: var(--surface-overlay-raised-muted);
33
35
  --_dropdown-panel-shadow: var(--ds-dropdown-panel-shadow, var(--shadow-popover));
34
36
  --_dropdown-panel-max-height: var(--ds-dropdown-panel-max-height, 320px);
35
37
 
@@ -97,7 +99,7 @@
97
99
  display: block;
98
100
  padding: var(--space-2) var(--space-3) var(--space-1);
99
101
  font: var(--font-weight-semibold) var(--font-size-xs) / var(--line-height-flat) var(--font-sans);
100
- color: var(--text-tertiary);
102
+ color: var(--text-tertiary-overlay);
101
103
  text-transform: uppercase;
102
104
  letter-spacing: var(--letter-spacing-wide);
103
105
 
@@ -0,0 +1,51 @@
1
+ // The step marker shared by ds-timeline-item and ds-chat-step, read from the host's `--_<prefix>-node-*`
2
+ // properties: the ring, its fill and the centred glyph.
3
+ @mixin node($prefix, $border-width) {
4
+ .node {
5
+ display: inline-flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ flex: none;
9
+ width: var(--_#{$prefix}-node-size);
10
+ height: var(--_#{$prefix}-node-size);
11
+ border-radius: var(--radius-pill);
12
+ background-color: var(--_#{$prefix}-node-bg-color);
13
+ color: var(--_#{$prefix}-node-color);
14
+ border: $border-width solid var(--_#{$prefix}-node-border-color);
15
+ }
16
+ }
17
+
18
+ // The colours of each step status, and the dashed ring and muted heading of a planned step.
19
+ @mixin statuses($prefix) {
20
+ :host([data-status='done']) {
21
+ --_#{$prefix}-node-bg-color: var(--success);
22
+ --_#{$prefix}-node-color: var(--text-on-success);
23
+ --_#{$prefix}-node-border-color: var(--success);
24
+ }
25
+ :host([data-status='running']) {
26
+ --_#{$prefix}-node-bg-color: var(--surface-default);
27
+ --_#{$prefix}-node-color: var(--accent);
28
+ --_#{$prefix}-node-border-color: var(--accent);
29
+ }
30
+ :host([data-status='pending']) {
31
+ --_#{$prefix}-node-bg-color: var(--surface-default);
32
+ --_#{$prefix}-node-color: var(--text-tertiary);
33
+ --_#{$prefix}-node-border-color: var(--text-tertiary);
34
+ }
35
+ :host([data-status='error']) {
36
+ --_#{$prefix}-node-bg-color: var(--error);
37
+ --_#{$prefix}-node-color: var(--text-on-error);
38
+ --_#{$prefix}-node-border-color: var(--error);
39
+ }
40
+
41
+ :host([data-status='pending']) {
42
+ .node {
43
+ border-style: dashed;
44
+ }
45
+
46
+ .heading {
47
+ color: var(--text-tertiary);
48
+ font-weight: var(--font-weight-regular);
49
+ }
50
+ }
51
+ }