@nldd/design-system 0.8.82 → 0.8.83

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 (146) hide show
  1. package/custom-elements.json +436 -68
  2. package/dist/components/actions/button/button.d.ts +5 -0
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.js +8 -0
  5. package/dist/components/actions/button/button.js.map +1 -1
  6. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  7. package/dist/components/actions/button/button.template.js +2 -0
  8. package/dist/components/actions/button/button.template.js.map +1 -1
  9. package/dist/components/actions/icon-button/icon-button.d.ts +1 -1
  10. package/dist/components/actions/icon-button/icon-button.js +1 -1
  11. package/dist/components/components.js +894 -226
  12. package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
  13. package/dist/components/content/avatar/avatar.styles.js +5 -1
  14. package/dist/components/content/avatar/avatar.styles.js.map +1 -1
  15. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  16. package/dist/components/content/icon/icon-aliases.js +78 -6
  17. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  18. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  19. package/dist/components/content/icon/icon-gallery-status.js +55 -94
  20. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  21. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  22. package/dist/components/content/icon/icon-registry.js +34 -4
  23. package/dist/components/content/icon/icon-registry.js.map +1 -1
  24. package/dist/components/content/icon/icon.d.ts +8 -2
  25. package/dist/components/content/icon/icon.d.ts.map +1 -1
  26. package/dist/components/content/icon/icon.js +17 -2
  27. package/dist/components/content/icon/icon.js.map +1 -1
  28. package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
  29. package/dist/components/content/icon/icon.styles.js +8 -0
  30. package/dist/components/content/icon/icon.styles.js.map +1 -1
  31. package/dist/components/content/text/text.d.ts +50 -0
  32. package/dist/components/content/text/text.d.ts.map +1 -0
  33. package/dist/components/content/text/text.js +81 -0
  34. package/dist/components/content/text/text.js.map +1 -0
  35. package/dist/components/content/text/text.styles.d.ts +2 -0
  36. package/dist/components/content/text/text.styles.d.ts.map +1 -0
  37. package/dist/components/content/text/text.styles.js +116 -0
  38. package/dist/components/content/text/text.styles.js.map +1 -0
  39. package/dist/components/content/text/text.template.d.ts +3 -0
  40. package/dist/components/content/text/text.template.d.ts.map +1 -0
  41. package/dist/components/content/text/text.template.js +7 -0
  42. package/dist/components/content/text/text.template.js.map +1 -0
  43. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  44. package/dist/components/content/title/title.styles.js +9 -13
  45. package/dist/components/content/title/title.styles.js.map +1 -1
  46. package/dist/components/{icon-CIpJq_cf.js → icon-C1Kikpol.js} +100 -10
  47. package/dist/components/{icon-button-BAkUJTn6.js → icon-button-BYy6hnAY.js} +2 -2
  48. package/dist/components/index.d.ts +2 -1
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/components/index.js +2 -1
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/components/inputs/combo-box/combo-box.d.ts +2 -0
  53. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  54. package/dist/components/inputs/combo-box/combo-box.js +22 -0
  55. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  56. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  57. package/dist/components/inputs/combo-box/combo-box.styles.js +5 -0
  58. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  59. package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
  60. package/dist/components/inputs/combo-box/combo-box.template.js +23 -20
  61. package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
  62. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  63. package/dist/components/inputs/date-field/date-field.template.js +7 -1
  64. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  65. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -1
  66. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  67. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
  68. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  69. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
  70. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -0
  71. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
  72. package/dist/components/inputs/text-field/text-field.d.ts +21 -0
  73. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  74. package/dist/components/inputs/text-field/text-field.js +48 -0
  75. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  76. package/dist/components/inputs/text-field/text-field.template.d.ts.map +1 -1
  77. package/dist/components/inputs/text-field/text-field.template.js +2 -0
  78. package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
  79. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  80. package/dist/components/inputs/time-field/time-field.template.js +7 -1
  81. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  82. package/dist/components/layout/box/box.d.ts +3 -3
  83. package/dist/components/layout/box/box.d.ts.map +1 -1
  84. package/dist/components/layout/box/box.js +3 -3
  85. package/dist/components/layout/box/box.js.map +1 -1
  86. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  87. package/dist/components/layout/box/box.styles.js +3 -6
  88. package/dist/components/layout/box/box.styles.js.map +1 -1
  89. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  90. package/dist/components/layout/sheet/sheet.styles.js +10 -3
  91. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  92. package/dist/components/lists-and-tables/list/list.d.ts +60 -45
  93. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  94. package/dist/components/lists-and-tables/list/list.js +94 -80
  95. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  96. package/dist/components/lists-and-tables/list-item/list-item.d.ts +94 -21
  97. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  98. package/dist/components/lists-and-tables/list-item/list-item.js +275 -48
  99. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  100. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  101. package/dist/components/lists-and-tables/list-item/list-item.styles.js +116 -34
  102. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  103. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  104. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  105. package/dist/components/lists-and-tables/list-item/list-item.template.js +5 -2
  106. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  107. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +116 -0
  108. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -0
  109. package/dist/components/lists-and-tables/{list-item-action/list-item-action.js → list-item-segment/list-item-segment.js} +77 -52
  110. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -0
  111. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts +2 -0
  112. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -0
  113. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +179 -0
  114. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -0
  115. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +3 -0
  116. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -0
  117. package/dist/components/lists-and-tables/{list-item-action/list-item-action.template.js → list-item-segment/list-item-segment.template.js} +5 -4
  118. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -0
  119. package/dist/components/status-and-feedback/badge/badge.d.ts +8 -2
  120. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  121. package/dist/components/status-and-feedback/badge/badge.js +17 -1
  122. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  123. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  124. package/dist/components/status-and-feedback/badge/badge.styles.js +35 -6
  125. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  126. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  127. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +7 -0
  128. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  129. package/dist/css/variables.css +25 -1
  130. package/dist/nldd.min.js +1002 -593
  131. package/dist/types/vue.d.ts +93 -47
  132. package/dist/utilities/scroll-mode-controller.d.ts +9 -1
  133. package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
  134. package/dist/utilities/scroll-mode-controller.js +10 -2
  135. package/dist/utilities/scroll-mode-controller.js.map +1 -1
  136. package/package.json +8 -4
  137. package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +0 -108
  138. package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +0 -1
  139. package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +0 -1
  140. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +0 -2
  141. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +0 -1
  142. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +0 -145
  143. package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +0 -1
  144. package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +0 -3
  145. package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +0 -1
  146. package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +0 -1
@@ -8,60 +8,60 @@ import { LitElement } from 'lit';
8
8
  import { customElement, property, query, state } from 'lit/decorators.js';
9
9
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
10
10
  import { isPointerMode } from '../../../utilities/input-modality.js';
11
- import { listItemActionStyles } from './list-item-action.styles.js';
12
- import { template } from './list-item-action.template.js';
11
+ import { listItemSegmentStyles } from './list-item-segment.styles.js';
12
+ import { template } from './list-item-segment.template.js';
13
13
  /**
14
- * A segmented action inside an `nldd-list-item`: it groups a run of cells
14
+ * A segment inside an `nldd-list-item`: it groups a run of cells
15
15
  * and makes just that run clickable. Use it when a row needs more than one
16
- * action — a tree row whose chevron expands while the label toggles a checkbox,
16
+ * segment — a tree row whose chevron expands while the label toggles a checkbox,
17
17
  * or a row that navigates with a separate button beside it.
18
18
  *
19
19
  * Put it in the row where its cells would go: the item has one flat slot, and a
20
- * segmented action takes the place of the cells it covers. Where the divider
20
+ * segment takes the place of the cells it covers. Where the divider
21
21
  * starts or stops is marked on the cells themselves (`divider-start` /
22
- * `divider-end`), not by the slot an action sits in.
22
+ * `divider-end`), not by the slot a segment sits in.
23
23
  *
24
24
  * A row is EITHER row-level interactive (`href` / `button` / `checkbox` on the
25
25
  * `nldd-list-item`) OR segmented (one or more of these). Both at once nests
26
26
  * a control inside a control, which is invalid HTML; the item DEV-warns.
27
27
  *
28
- * Unlike the row-wide action this does not bleed outward: a segmented action sits
28
+ * Unlike the row-wide action this does not bleed outward: a segment sits
29
29
  * between siblings, so an outward inset would overlap them. It owns its inline
30
30
  * padding and never drops below the row's control size, so an icon-only one still
31
31
  * meets the WCAG 2.5.8 target size — do not add spacer cells inside it for room
32
32
  * or hit area, that doubles the space.
33
33
  *
34
- * In a `type="listbox"` list the segmented action renders as a plain container (no
34
+ * In a `type="listbox"` list the segment renders as a plain container (no
35
35
  * control, not focusable) and DEV-warns: an `option` may not contain
36
36
  * interactive descendants. The cells render unchanged, so nothing shifts.
37
37
  *
38
- * @element nldd-list-item-action
38
+ * @element nldd-list-item-segment
39
39
  *
40
- * @attr {boolean} button - Renders the segmented action as a `<button>`; ignored when `href` is set
41
- * @attr {string} href - Renders the segmented action as an `<a>` with this URL; wins over `button` and `checkbox`
40
+ * @attr {boolean} button - Renders the segment as a `<button>`. Last of the three: `href` and `checkbox` both win over it.
41
+ * @attr {string} href - Renders the segment as an `<a>` with this URL. Wins over `checkbox` and `button`.
42
42
  * @attr {string} target - Link target forwarded to the `<a>`; only applies with `href`
43
43
  * @attr {string} rel - Link rel forwarded to the `<a>`; only applies with `href`
44
- * @attr {boolean} checkbox - Makes the segmented action a `role="checkbox"` control; ignored when `href` is set
45
- * @attr {boolean} checked - Checked state of a `checkbox` action; it toggles on activation
46
- * @attr {boolean} expanded - Disclosure state, reflected as `aria-expanded` on the control. Set it on the segmented action that opens something (e.g. a tree row's chevron). Leave it off entirely when the segmented action discloses nothing — an absent attribute emits no aria-expanded.
47
- * @attr {boolean} disclosure - Marks the segmented action as the row's disclosure control: `aria-expanded` comes from the parent item's `expanded`, so the state lives in one place. A slotted `nldd-icon-cell` rotates a quarter turn while the row is open
48
- * @attr {boolean} current - Marks the segmented action as the current page (`aria-current="page"`)
49
- * @attr {boolean} disabled - Disabled state; only applies to button and checkbox segmented actions
50
- * @attr {'fit-content'|'full'} width - `full` lets the segmented action grow to fill the row (default: 'fit-content')
51
- * @attr {string} accessible-label - Accessible name for the control. Set it when the segmented action holds only an icon, or when the cell text does not describe the action.
44
+ * @attr {boolean} checkbox - Makes the segment a `role="checkbox"` control. Wins over `button`, loses to `href`.
45
+ * @attr {boolean} checked - Checked state of a `checkbox` segment; it toggles on activation
46
+ * @attr {boolean} expanded - Disclosure state, reflected as `aria-expanded` on the control, and painted: the segment stays lit a step above hover for as long as what it opened is on screen, so a menu reads as hanging off this row rather than floating over the list. Set it on the segment that opens something (a tree row's chevron, a menu). Leave it off entirely when the segment discloses nothing — an absent attribute emits no aria-expanded.
47
+ * @attr {boolean} disclosure - Marks the segment as the row's disclosure control: `aria-expanded` comes from the parent item's `expanded`, so the state lives in one place. A slotted `nldd-icon-cell` rotates a quarter turn while the row is open
48
+ * @attr {boolean} current - Marks the segment as the current page (`aria-current="page"`). The row it sits in paints itself as the current row from it, so on a segmented row this is the only place it has to be set.
49
+ * @attr {boolean} disabled - Switches the segment off: a `button` or `checkbox` segment stops responding and dims, a `href` segment gets `aria-disabled` and its click is blocked (a link cannot be disabled natively). The arrow keys skip a row whose only segment is off.
50
+ * @attr {'fit-content'|'full'} width - `full` lets the segment grow to fill the row (default: 'fit-content')
51
+ * @attr {string} accessible-label - Accessible name for the control. Set it when the segment holds only an icon, or when the cell text does not describe the action.
52
52
  *
53
- * @slot - The cells that belong to this action
53
+ * @slot - The cells that belong to this segment
54
54
  *
55
- * @fires change - On a `checkbox` action after it toggles; detail: { checked: boolean }
55
+ * @fires change - On a `checkbox` segment after it toggles; detail: { checked: boolean }
56
56
  */
57
- let NLDDListItemAction = class NLDDListItemAction extends LitElement {
57
+ let NLDDListItemSegment = class NLDDListItemSegment extends LitElement {
58
58
  constructor() {
59
59
  super(...arguments);
60
60
  this.button = false;
61
61
  this.checkbox = false;
62
62
  this.checked = false;
63
63
  /**
64
- * Marks this action as the row's disclosure control: it takes `aria-expanded`
64
+ * Marks this segment as the row's disclosure control: it takes `aria-expanded`
65
65
  * from the parent item's `expanded` instead of its own. Use it on a tree row's
66
66
  * chevron, so the open/closed state is written once — on the row, where it also
67
67
  * drives the children group — rather than kept in step in two places.
@@ -77,8 +77,13 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
77
77
  /** Set by the parent nldd-list-item, mirroring its list's type. */
78
78
  this._parentType = 'list';
79
79
  this._handleClick = (e) => {
80
- if (this.disabled)
80
+ // A disabled <button> never gets here, but a link does: there is no such
81
+ // thing as a disabled <a>, so the segment stops the navigation itself.
82
+ if (this.disabled) {
83
+ e.preventDefault();
84
+ e.stopPropagation();
81
85
  return;
86
+ }
82
87
  // Safari and Firefox on Mac don't focus buttons on click. Force focus so
83
88
  // the :focus-visible styling below stays reliable.
84
89
  this._control?.focus();
@@ -102,10 +107,28 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
102
107
  this._handleFocusOut = () => {
103
108
  this._control?.classList.remove('is-pointer-focus');
104
109
  };
110
+ /**
111
+ * Safari moves focus to the body on mousedown and only puts it on a button
112
+ * when the mouse comes up, so a row whose paint follows the focus in it
113
+ * flickers back to its resting state for as long as you hold the button
114
+ * down. Preventing the default stops that hand-off; we set the focus
115
+ * ourselves in the pointerdown above, and the click still fires.
116
+ */
117
+ this._onMouseDown = (e) => {
118
+ if (e.button > 0 || this.disabled)
119
+ return;
120
+ e.preventDefault();
121
+ };
105
122
  this._onPointerDown = (e) => {
106
123
  if (e.button > 0 || this.disabled)
107
124
  return;
108
125
  this._control?.classList.add('is-pressed');
126
+ // Safari does not focus a <button> on click, so a row whose paint follows
127
+ // the focus in it (see nldd-list-item's current rules) would stay unlit
128
+ // there while every other browser lights up. Focusing on the press makes
129
+ // the three browsers agree; the ring stays hidden because this is a
130
+ // pointer focus, which .is-pointer-focus already marks.
131
+ this._control?.focus({ preventScroll: true });
109
132
  };
110
133
  this._clearPressed = () => {
111
134
  this._control?.classList.remove('is-pressed');
@@ -117,6 +140,7 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
117
140
  this.addEventListener('focusout', this._handleFocusOut);
118
141
  this.addEventListener('click', this._handleClick);
119
142
  this.addEventListener('pointerdown', this._onPointerDown);
143
+ this.addEventListener('mousedown', this._onMouseDown);
120
144
  this.addEventListener('pointerup', this._clearPressed);
121
145
  this.addEventListener('pointercancel', this._clearPressed);
122
146
  }
@@ -126,6 +150,7 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
126
150
  this.removeEventListener('focusout', this._handleFocusOut);
127
151
  this.removeEventListener('click', this._handleClick);
128
152
  this.removeEventListener('pointerdown', this._onPointerDown);
153
+ this.removeEventListener('mousedown', this._onMouseDown);
129
154
  this.removeEventListener('pointerup', this._clearPressed);
130
155
  this.removeEventListener('pointercancel', this._clearPressed);
131
156
  }
@@ -138,10 +163,10 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
138
163
  _applyParentType(type) {
139
164
  this._parentType = type;
140
165
  if (import.meta.env?.DEV && type === 'listbox' && this._wantsControl) {
141
- console.warn('nldd-list-item-action: rendered as a plain container because the parent nldd-list is type="listbox". An `option` may not contain interactive descendants — move the action out of the listbox, or drive selection from the option itself.');
166
+ console.warn('nldd-list-item-segment: rendered as a plain container because the parent nldd-list is type="listbox". An `option` may not contain interactive descendants — move the segment out of the listbox, or drive selection from the option itself.');
142
167
  }
143
168
  }
144
- /** Whether the consumer asked for an interactive action at all. */
169
+ /** Whether the consumer asked for an interactive segment at all. */
145
170
  get _wantsControl() {
146
171
  return Boolean(this.href) || this.button || this.checkbox;
147
172
  }
@@ -159,7 +184,7 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
159
184
  this._control?.focus(options);
160
185
  }
161
186
  /** The open state has to reach the styles, and it lives in a property (the
162
- * row's, for a disclosure action) that CSS cannot see. A host class is the
187
+ * row's, for a disclosure segment) that CSS cannot see. A host class is the
163
188
  * hook — the same mechanism nldd-list already uses for .is-boxed / .is-first. */
164
189
  updated() {
165
190
  const expanded = this.disclosure ? this._rowExpanded : this.expanded;
@@ -167,62 +192,62 @@ let NLDDListItemAction = class NLDDListItemAction extends LitElement {
167
192
  }
168
193
  render() {
169
194
  if (import.meta.env?.DEV && this.disclosure && this.expanded !== undefined) {
170
- console.warn('nldd-list-item-action: `disclosure` takes aria-expanded from the row, so the `expanded` on this action is ignored. Drop one of the two.');
195
+ console.warn('nldd-list-item-segment: `disclosure` takes aria-expanded from the row, so the `expanded` on this action is ignored. Drop one of the two.');
171
196
  }
172
197
  return template(this._controlType, this.href, this.target, this.rel, this.checked, this.disclosure ? this._rowExpanded : this.expanded, this.current, this.disabled, this.accessibleLabel, this._tabbable === undefined ? undefined : (this._tabbable ? '0' : '-1'));
173
198
  }
174
199
  };
175
- NLDDListItemAction.styles = [listItemActionStyles];
200
+ NLDDListItemSegment.styles = [listItemSegmentStyles];
176
201
  __decorate([
177
202
  property({ type: Boolean, reflect: true })
178
- ], NLDDListItemAction.prototype, "button", void 0);
203
+ ], NLDDListItemSegment.prototype, "button", void 0);
179
204
  __decorate([
180
205
  property({ reflect: true })
181
- ], NLDDListItemAction.prototype, "href", void 0);
206
+ ], NLDDListItemSegment.prototype, "href", void 0);
182
207
  __decorate([
183
208
  property({ reflect: true })
184
- ], NLDDListItemAction.prototype, "target", void 0);
209
+ ], NLDDListItemSegment.prototype, "target", void 0);
185
210
  __decorate([
186
211
  property({ reflect: true })
187
- ], NLDDListItemAction.prototype, "rel", void 0);
212
+ ], NLDDListItemSegment.prototype, "rel", void 0);
188
213
  __decorate([
189
214
  property({ type: Boolean, reflect: true })
190
- ], NLDDListItemAction.prototype, "checkbox", void 0);
215
+ ], NLDDListItemSegment.prototype, "checkbox", void 0);
191
216
  __decorate([
192
217
  property({ type: Boolean, reflect: true })
193
- ], NLDDListItemAction.prototype, "checked", void 0);
218
+ ], NLDDListItemSegment.prototype, "checked", void 0);
194
219
  __decorate([
195
220
  property({ type: Boolean, reflect: true })
196
- ], NLDDListItemAction.prototype, "expanded", void 0);
221
+ ], NLDDListItemSegment.prototype, "expanded", void 0);
197
222
  __decorate([
198
223
  property({ type: Boolean, reflect: true })
199
- ], NLDDListItemAction.prototype, "disclosure", void 0);
224
+ ], NLDDListItemSegment.prototype, "disclosure", void 0);
200
225
  __decorate([
201
226
  property({ type: Boolean, reflect: true })
202
- ], NLDDListItemAction.prototype, "current", void 0);
227
+ ], NLDDListItemSegment.prototype, "current", void 0);
203
228
  __decorate([
204
229
  property({ type: Boolean, reflect: true })
205
- ], NLDDListItemAction.prototype, "disabled", void 0);
230
+ ], NLDDListItemSegment.prototype, "disabled", void 0);
206
231
  __decorate([
207
232
  property({ reflect: true, converter: reflectNonDefault('fit-content') })
208
- ], NLDDListItemAction.prototype, "width", void 0);
233
+ ], NLDDListItemSegment.prototype, "width", void 0);
209
234
  __decorate([
210
235
  property({ attribute: 'accessible-label' })
211
- ], NLDDListItemAction.prototype, "accessibleLabel", void 0);
236
+ ], NLDDListItemSegment.prototype, "accessibleLabel", void 0);
212
237
  __decorate([
213
238
  state()
214
- ], NLDDListItemAction.prototype, "_parentType", void 0);
239
+ ], NLDDListItemSegment.prototype, "_parentType", void 0);
215
240
  __decorate([
216
241
  state()
217
- ], NLDDListItemAction.prototype, "_tabbable", void 0);
242
+ ], NLDDListItemSegment.prototype, "_tabbable", void 0);
218
243
  __decorate([
219
244
  state()
220
- ], NLDDListItemAction.prototype, "_rowExpanded", void 0);
221
- __decorate([
222
- query('.list-item-action')
223
- ], NLDDListItemAction.prototype, "_control", void 0);
224
- NLDDListItemAction = __decorate([
225
- customElement('nldd-list-item-action')
226
- ], NLDDListItemAction);
227
- export { NLDDListItemAction };
228
- //# sourceMappingURL=list-item-action.js.map
245
+ ], NLDDListItemSegment.prototype, "_rowExpanded", void 0);
246
+ __decorate([
247
+ query('.list-item-segment')
248
+ ], NLDDListItemSegment.prototype, "_control", void 0);
249
+ NLDDListItemSegment = __decorate([
250
+ customElement('nldd-list-item-segment')
251
+ ], NLDDListItemSegment);
252
+ export { NLDDListItemSegment };
253
+ //# sourceMappingURL=list-item-segment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item-segment.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,QAAQ,EAA+B,MAAM,iCAAiC,CAAC;AAKxF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEI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EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAuB,aAAa,CAAC,EAAE,CAAC;kDACnD;AAG5C;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;4DACvB;AAIrB;IADC,KAAK,EAAE;wDACa;AAMrB;IADC,KAAK,EAAE;sDACY;AAKpB;IADC,KAAK,EAAE;yDACe;AAGf;IADP,KAAK,CAAC,oBAAoB,CAAC;qDACG;AAjEnB,mBAAmB;IAD/B,aAAa,CAAC,wBAAwB,CAAC;GAC3B,mBAAmB,CA2M/B"}
@@ -0,0 +1,2 @@
1
+ export declare const listItemSegmentStyles: import("lit").CSSResult;
2
+ //# sourceMappingURL=list-item-segment.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item-segment.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,yBAgLjC,CAAC"}
@@ -0,0 +1,179 @@
1
+ import { css } from 'lit';
2
+ export const listItemSegmentStyles = css `
3
+ :host {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ :host {
8
+ --_background-color: transparent;
9
+ --_min-size: var(--context-list-item-size, var(--semantics-controls-md-min-size));
10
+ --_expanded-rotation: 90deg;
11
+ --_fill-z-index: -1;
12
+
13
+ display: flex;
14
+ position: relative;
15
+ /* Its own stacking context, so the fill below (z-index -1) stays behind
16
+ this segment's content but in front of the row's fill. Without it the
17
+ two -1 layers land in the same context — the row's while it is lit —
18
+ and the segment's disappears underneath. */
19
+ isolation: isolate;
20
+ align-items: stretch;
21
+ /* The row's areas center their children; this must span instead, so its hit
22
+ area and fill reach the row's top and bottom edges. */
23
+ align-self: stretch;
24
+ flex-grow: 0;
25
+ flex-shrink: 1;
26
+ /* Square floor from the row's control size, so an icon-only action is still
27
+ a touch target. On the host, not the control: the host is the flex item,
28
+ so a floor on the control would be measured against a host that had
29
+ already shrunk to zero. */
30
+ min-width: var(--_min-size);
31
+ min-height: var(--_min-size);
32
+ -webkit-tap-highlight-color: transparent;
33
+ }
34
+
35
+ :host([hidden]) {
36
+ display: none;
37
+ }
38
+
39
+ /* A growing action needs no floor and needs min-width: 0, so its text can
40
+ truncate instead of pushing its siblings out. */
41
+ :host([width="full"]) {
42
+ flex-grow: 1;
43
+ min-width: 0;
44
+ }
45
+
46
+ :host([width="full"]) .list-item-segment {
47
+ justify-content: flex-start;
48
+ }
49
+
50
+ /* The cell rotates, not the icon — ::slotted reaches a direct child only, and
51
+ rotating the cell turns the glyph in place. */
52
+ :host([disclosure]) ::slotted(nldd-icon-cell) {
53
+ rotate: 0deg;
54
+ transition: rotate var(--primitives-transition-duration-fast) var(--primitives-transition-easing-default);
55
+ }
56
+
57
+ :host([disclosure].is-expanded) ::slotted(nldd-icon-cell) {
58
+ rotate: var(--_expanded-rotation);
59
+ }
60
+
61
+ @media (prefers-reduced-motion: reduce) {
62
+ :host([disclosure]) ::slotted(nldd-icon-cell) {
63
+ transition: none;
64
+ }
65
+ }
66
+
67
+ /* The control owns its inline padding, fixed at the indicator inset. Do not
68
+ add spacer cells for room or hit area: that doubles the space. */
69
+ .list-item-segment {
70
+ box-sizing: border-box;
71
+ display: flex;
72
+ position: relative;
73
+ margin: 0;
74
+ outline: none;
75
+ border: none;
76
+ background: none;
77
+ width: 100%;
78
+ min-width: 0;
79
+ padding: 0;
80
+ padding-inline: var(--components-list-item-indicator-inline-inset);
81
+ flex-direction: row;
82
+ align-items: center;
83
+ justify-content: center;
84
+ color: inherit;
85
+ text-align: start;
86
+ text-decoration: none;
87
+ }
88
+
89
+ a.list-item-segment {
90
+ cursor: var(--semantics-controls-link-cursor);
91
+ }
92
+
93
+ /* There is no disabled attribute for an anchor, so the segment blocks the
94
+ click itself and aria-disabled carries the state. */
95
+ button.list-item-segment:disabled,
96
+ :host([disabled]) a.list-item-segment {
97
+ cursor: default;
98
+ opacity: var(--primitives-opacity-disabled);
99
+ }
100
+
101
+ .list-item-segment::before {
102
+ content: '';
103
+ display: block;
104
+ position: absolute;
105
+ z-index: var(--_fill-z-index);
106
+ inset-block: 0;
107
+ inset-inline: 0;
108
+ border-radius: var(--components-list-item-indicator-corner-radius);
109
+ background-color: var(--_background-color);
110
+ pointer-events: none;
111
+ }
112
+
113
+ /* The row hands down which fill a hovered segment takes. Unset on an ordinary
114
+ row, where the fallback answers. */
115
+ @media (hover: hover) {
116
+ :host(:not([disabled])) a.list-item-segment:hover,
117
+ button.list-item-segment:not(:disabled):hover {
118
+ --_background-color: var(--context-list-item-hovered-background-color, var(--components-list-item-is-hovered-background-color));
119
+ --context-content-color: var(--context-list-item-hovered-content-color, var(--components-list-item-is-hovered-content-color));
120
+ --context-content-secondary-color: var(--context-list-item-hovered-content-color, var(--components-list-item-is-hovered-content-color));
121
+ }
122
+ }
123
+
124
+ /* Press feedback — works on touch where :hover doesn't. JS-driven so a touch
125
+ that turns into a scroll clears it (pointercancel) instead of flashing. */
126
+ /* The element selectors match the weight of the hover rule above: a pointer
127
+ that presses is hovering as well, and the press has to win. */
128
+ :host(:not([disabled])) a.list-item-segment.is-pressed,
129
+ button.list-item-segment:not(:disabled).is-pressed,
130
+ :host(:not([disabled])) .list-item-segment.is-pressed {
131
+ --_background-color: var(--context-list-item-active-background-color, var(--components-list-item-is-active-background-color));
132
+ --context-content-color: var(--context-list-item-active-content-color, var(--context-list-item-hovered-content-color, var(--components-list-item-is-active-content-color)));
133
+ --context-content-secondary-color: var(--context-list-item-active-content-color, var(--context-list-item-hovered-content-color, var(--components-list-item-is-active-content-color)));
134
+ }
135
+
136
+ /* After the hover rule on purpose: hovering back over the segment must not
137
+ dim it while what it opened is still on screen. */
138
+ :host([expanded]) .list-item-segment {
139
+ --_background-color: var(--components-list-item-is-expanded-background-color);
140
+ --context-content-color: var(--components-list-item-is-expanded-content-color);
141
+ --context-content-secondary-color: var(--components-list-item-is-expanded-content-color);
142
+ }
143
+
144
+ @media (hover: hover) {
145
+ :host([expanded]:not([disabled])) a.list-item-segment:hover,
146
+ :host([expanded]) button.list-item-segment:not(:disabled):hover {
147
+ --_background-color: var(--components-list-item-is-expanded-is-hovered-background-color);
148
+ --context-content-color: var(--components-list-item-is-expanded-content-color);
149
+ --context-content-secondary-color: var(--components-list-item-is-expanded-content-color);
150
+ }
151
+ }
152
+
153
+ :host([expanded]:not([disabled])) a.list-item-segment.is-pressed,
154
+ :host([expanded]) button.list-item-segment:not(:disabled).is-pressed,
155
+ :host([expanded]:not([disabled])) .list-item-segment.is-pressed {
156
+ --_background-color: var(--components-list-item-is-expanded-is-active-background-color);
157
+ --context-content-color: var(--components-list-item-is-expanded-content-color);
158
+ --context-content-secondary-color: var(--components-list-item-is-expanded-content-color);
159
+ }
160
+
161
+ :host([checked]) .list-item-segment {
162
+ --_background-color: var(--components-list-item-is-selected-background-color);
163
+ --context-content-color: var(--components-list-item-is-selected-content-color);
164
+ --context-content-secondary-color: var(--components-list-item-is-selected-content-color);
165
+ }
166
+
167
+ .list-item-segment:focus-visible:not(.is-pointer-focus)::after {
168
+ content: '';
169
+ display: block;
170
+ position: absolute;
171
+ inset: 0;
172
+ border-radius: var(--components-list-item-indicator-corner-radius);
173
+ outline: var(--semantics-focus-ring-outline);
174
+ outline-offset: var(--semantics-focus-ring-outline-offset);
175
+ box-shadow: var(--semantics-focus-ring-box-shadow);
176
+ pointer-events: none;
177
+ }
178
+ `;
179
+ //# sourceMappingURL=list-item-segment.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item-segment.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgLvC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type ListItemSegmentControl = 'link' | 'button' | 'checkbox' | 'plain';
2
+ export declare function template(control: ListItemSegmentControl, href: string | undefined, target: string | undefined, rel: string | undefined, checked: boolean, expanded: boolean | undefined, current: boolean, disabled: boolean, accessibleLabel: string, actionTabindex?: string): import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=list-item-segment.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item-segment.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.template.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAE9E,wBAAgB,QAAQ,CACvB,OAAO,EAAE,sBAAsB,EAC/B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,EACjB,eAAe,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,wCAqCvB"}
@@ -5,10 +5,11 @@ export function template(control, href, target, rel, checked, expanded, current,
5
5
  const ariaCurrent = current ? 'page' : nothing;
6
6
  const label = accessibleLabel || nothing;
7
7
  if (control === 'link') {
8
- return html `<a class="list-item-action"
8
+ return html `<a class="list-item-segment"
9
9
  href=${href ?? nothing}
10
10
  target=${target ?? nothing}
11
11
  rel=${rel ?? nothing}
12
+ aria-disabled=${disabled ? 'true' : nothing}
12
13
  aria-expanded=${ariaExpanded}
13
14
  aria-current=${ariaCurrent}
14
15
  aria-label=${label}
@@ -16,7 +17,7 @@ export function template(control, href, target, rel, checked, expanded, current,
16
17
  >${content}</a>`;
17
18
  }
18
19
  if (control === 'checkbox' || control === 'button') {
19
- return html `<button class="list-item-action"
20
+ return html `<button class="list-item-segment"
20
21
  type="button"
21
22
  role=${control === 'checkbox' ? 'checkbox' : nothing}
22
23
  aria-checked=${control === 'checkbox' ? String(checked) : nothing}
@@ -30,6 +31,6 @@ export function template(control, href, target, rel, checked, expanded, current,
30
31
  // Plain: no control at all. Used in a listbox parent, where an `option` may
31
32
  // not contain interactive descendants — the cells still render, so the row
32
33
  // looks unchanged, it just isn't operable.
33
- return html `<div class="list-item-action">${content}</div>`;
34
+ return html `<div class="list-item-segment">${content}</div>`;
34
35
  }
35
- //# sourceMappingURL=list-item-action.template.js.map
36
+ //# sourceMappingURL=list-item-segment.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-item-segment.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-segment/list-item-segment.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAIpC,MAAM,UAAU,QAAQ,CACvB,OAA+B,EAC/B,IAAwB,EACxB,MAA0B,EAC1B,GAAuB,EACvB,OAAgB,EAChB,QAA6B,EAC7B,OAAgB,EAChB,QAAiB,EACjB,eAAuB,EACvB,cAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,CAAA,eAAe,CAAC;IACpC,MAAM,YAAY,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAC/C,MAAM,KAAK,GAAG,eAAe,IAAI,OAAO,CAAC;IAEzC,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;UACH,IAAI,IAAI,OAAO;YACb,MAAM,IAAI,OAAO;SACpB,GAAG,IAAI,OAAO;mBACJ,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;mBAC3B,YAAY;kBACb,WAAW;gBACb,KAAK;cACP,cAAc,IAAI,OAAO;KAClC,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACpD,OAAO,IAAI,CAAA;;UAEH,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;kBACrC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO;mBACjD,YAAY;kBACb,WAAW;gBACb,KAAK;eACN,QAAQ;cACT,cAAc,IAAI,OAAO;KAClC,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,4EAA4E;IAC5E,2EAA2E;IAC3E,2CAA2C;IAC3C,OAAO,IAAI,CAAA,kCAAkC,OAAO,QAAQ,CAAC;AAC9D,CAAC"}
@@ -15,7 +15,8 @@
15
15
  *
16
16
  * @element nldd-badge
17
17
  * @attr {string} size - Size: 'sm' | 'md' (default: 'md')
18
- * @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success') or a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …). Default: 'critical'
18
+ * @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success'), a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …), or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'
19
+ * @attr {string} custom-color - A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the design system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it.
19
20
  * @attr {boolean} pulse - Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`.
20
21
  * @attr {string} text - Text (takes precedence over number)
21
22
  * @attr {number} number - Numeric value. Shortened when it is over max
@@ -26,7 +27,7 @@
26
27
  */
27
28
  import { LitElement } from 'lit';
28
29
  import './../../content/icon/icon.js';
29
- type Color = 'critical' | 'accent' | 'neutral' | 'warning' | 'success' | 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen';
30
+ type Color = 'critical' | 'accent' | 'neutral' | 'warning' | 'success' | 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen' | 'inherit';
30
31
  type Size = 'sm' | 'md';
31
32
  declare const NLDDBadge_base: (abstract new (...args: any[]) => LitElement & {
32
33
  translations: Partial<{
@@ -38,6 +39,10 @@ export declare class NLDDBadge extends NLDDBadge_base {
38
39
  static styles: import("lit").CSSResult;
39
40
  size: Size;
40
41
  color: Color;
42
+ /** Handed to the styles as a custom property rather than read from the
43
+ * attribute in CSS: `attr()` with a type is not available everywhere yet,
44
+ * and this keeps one code path. */
45
+ customColor: string;
41
46
  pulse: boolean;
42
47
  text: string;
43
48
  number: number | undefined;
@@ -45,6 +50,7 @@ export declare class NLDDBadge extends NLDDBadge_base {
45
50
  icon: string;
46
51
  accessibleLabel: string;
47
52
  decorative: boolean;
53
+ updated(changed: Map<string, unknown>): void;
48
54
  get _hasText(): boolean;
49
55
  get _isDot(): boolean;
50
56
  get _isIconOnly(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GACP,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GACzD,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GACzD,OAAO,GAAG,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GACzC,YAAY,GAAG,MAAM,GACrB,aAAa,GAAG,OAAO,GACvB,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;AACtD,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;;;;;;;AAExB,qBACa,SAAU,SAAQ,cAAmD;IACjF,OAAgB,MAAM,0BAAe;IAGrC,IAAI,EAAE,IAAI,CAAQ;IAGlB,KAAK,EAAE,KAAK,CAAc;IAG1B,KAAK,UAAS;IAGd,IAAI,SAAM;IAGV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAGvC,GAAG,SAAM;IAGT,IAAI,SAAM;IAGV,eAAe,SAAM;IAGrB,UAAU,UAAS;IAEnB,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,aAAa,IAAI,MAAM,CAM1B;IAED,IAAI,UAAU,IAAI,MAAM,CAIvB;IAEQ,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":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-15,7 +15,8 @@
15
15
  *
16
16
  * @element nldd-badge
17
17
  * @attr {string} size - Size: 'sm' | 'md' (default: 'md')
18
- * @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success') or a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …). Default: 'critical'
18
+ * @attr {string} color - Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success'), a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …), or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'
19
+ * @attr {string} custom-color - A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the design system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it.
19
20
  * @attr {boolean} pulse - Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`.
20
21
  * @attr {string} text - Text (takes precedence over number)
21
22
  * @attr {number} number - Numeric value. Shortened when it is over max
@@ -43,6 +44,10 @@ let NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeTr
43
44
  super(...arguments);
44
45
  this.size = 'md';
45
46
  this.color = 'critical';
47
+ /** Handed to the styles as a custom property rather than read from the
48
+ * attribute in CSS: `attr()` with a type is not available everywhere yet,
49
+ * and this keeps one code path. */
50
+ this.customColor = '';
46
51
  this.pulse = false;
47
52
  this.text = '';
48
53
  this.number = undefined;
@@ -51,6 +56,14 @@ let NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeTr
51
56
  this.accessibleLabel = '';
52
57
  this.decorative = false;
53
58
  }
59
+ updated(changed) {
60
+ if (!changed.has('customColor'))
61
+ return;
62
+ if (this.customColor)
63
+ this.style.setProperty('--_custom-color', this.customColor);
64
+ else
65
+ this.style.removeProperty('--_custom-color');
66
+ }
54
67
  get _hasText() {
55
68
  return !!this.text || typeof this.number === 'number';
56
69
  }
@@ -86,6 +99,9 @@ __decorate([
86
99
  __decorate([
87
100
  property({ reflect: true, converter: reflectNonDefault('critical') })
88
101
  ], NLDDBadge.prototype, "color", void 0);
102
+ __decorate([
103
+ property({ reflect: true, attribute: 'custom-color', converter: reflectNonDefault('') })
104
+ ], NLDDBadge.prototype, "customColor", void 0);
89
105
  __decorate([
90
106
  property({ type: Boolean, reflect: true })
91
107
  ], NLDDBadge.prototype, "pulse", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,8BAA8B,CAAC;AAa/B,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,gBAAgB,CAAC,UAAU,EAAE,qBAAqB,CAAC;IAA3E;;QAIN,SAAI,GAAS,IAAI,CAAC;QAGlB,UAAK,GAAU,UAAU,CAAC;QAG1B,UAAK,GAAG,KAAK,CAAC;QAGd,SAAI,GAAG,EAAE,CAAC;QAGV,WAAM,GAAuB,SAAS,CAAC;QAGvC,QAAG,GAAG,EAAE,CAAC;QAGT,SAAI,GAAG,EAAE,CAAC;QAGV,oBAAe,GAAG,EAA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AI,EAAE,CAAC;yCACH;AAGvC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;sCAC7D;AAGT;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;kDACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CACxB;AAlCP,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAuErB"}
@@ -1 +1 @@
1
- {"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBA4SvB,CAAC"}
1
+ {"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBAyUvB,CAAC"}