@nldd/design-system 0.8.68 → 0.8.69

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 (151) hide show
  1. package/dist/components/actions/button/button.d.ts +6 -0
  2. package/dist/components/actions/button/button.d.ts.map +1 -1
  3. package/dist/components/actions/button/button.js +12 -0
  4. package/dist/components/actions/button/button.js.map +1 -1
  5. package/dist/components/actions/button/button.styles.js +108 -108
  6. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  7. package/dist/components/actions/button/button.template.js +9 -0
  8. package/dist/components/actions/button/button.template.js.map +1 -1
  9. package/dist/components/actions/icon-button/icon-button.d.ts +9 -0
  10. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  11. package/dist/components/actions/icon-button/icon-button.js +15 -0
  12. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.styles.js +54 -54
  14. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.template.js +7 -1
  16. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  17. package/dist/components/actions/menu/menu.d.ts +19 -0
  18. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  19. package/dist/components/actions/menu/menu.js +53 -2
  20. package/dist/components/actions/menu/menu.js.map +1 -1
  21. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  22. package/dist/components/actions/menu/menu.styles.js +50 -23
  23. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  24. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  25. package/dist/components/actions/menu/menu.template.js +58 -33
  26. package/dist/components/actions/menu/menu.template.js.map +1 -1
  27. package/dist/components/actions/split-button/split-button.d.ts +16 -18
  28. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  29. package/dist/components/actions/split-button/split-button.js +28 -54
  30. package/dist/components/actions/split-button/split-button.js.map +1 -1
  31. package/dist/components/actions/split-button/split-button.template.js +1 -1
  32. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  33. package/dist/components/actions/toolbar/toolbar.d.ts +10 -0
  34. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  35. package/dist/components/actions/toolbar/toolbar.js +41 -2
  36. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  37. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  38. package/dist/components/actions/toolbar/toolbar.styles.js +16 -2
  39. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  40. package/dist/components/components.js +103 -102
  41. package/dist/components/content/avatar/avatar.d.ts +96 -0
  42. package/dist/components/content/avatar/avatar.d.ts.map +1 -0
  43. package/dist/components/content/avatar/avatar.js +210 -0
  44. package/dist/components/content/avatar/avatar.js.map +1 -0
  45. package/dist/components/content/avatar/avatar.styles.d.ts +2 -0
  46. package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -0
  47. package/dist/components/content/avatar/avatar.styles.js +126 -0
  48. package/dist/components/content/avatar/avatar.styles.js.map +1 -0
  49. package/dist/components/content/avatar/avatar.template.d.ts +3 -0
  50. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -0
  51. package/dist/components/content/avatar/avatar.template.js +36 -0
  52. package/dist/components/content/avatar/avatar.template.js.map +1 -0
  53. package/dist/components/content/byline/byline.d.ts +1 -0
  54. package/dist/components/content/byline/byline.d.ts.map +1 -1
  55. package/dist/components/content/byline/byline.js +1 -0
  56. package/dist/components/content/byline/byline.js.map +1 -1
  57. package/dist/components/content/byline/byline.styles.d.ts.map +1 -1
  58. package/dist/components/content/byline/byline.styles.js +15 -5
  59. package/dist/components/content/byline/byline.styles.js.map +1 -1
  60. package/dist/components/content/byline/byline.template.js +11 -11
  61. package/dist/components/content/byline/byline.template.js.map +1 -1
  62. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  63. package/dist/components/content/icon/icon-aliases.js +2 -0
  64. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  65. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  66. package/dist/components/content/icon/icon-registry.js +1 -0
  67. package/dist/components/content/icon/icon-registry.js.map +1 -1
  68. package/dist/components/content/image/lqip-encoder-element.js +1 -1
  69. package/dist/components/content/rich-text/rich-text.d.ts +7 -0
  70. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  71. package/dist/components/content/rich-text/rich-text.js +10 -0
  72. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  73. package/dist/components/content/tag/tag.styles.js +23 -23
  74. package/dist/components/content/token/token.styles.js +1 -1
  75. package/dist/components/{index-CXT1jMFt.js → index-Bf4pa5Bp.js} +1 -1
  76. package/dist/components/{index-DWwviobk.js → index-BfOpap4b.js} +1 -1
  77. package/dist/components/{index-Bfw_pYWB.js → index-CXC-Objp.js} +1 -1
  78. package/dist/components/{index-CKnwqp_9.js → index-CfvgUB5p.js} +1 -1
  79. package/dist/components/{index-DO7aT0MT.js → index-DB-i084x.js} +1 -1
  80. package/dist/components/{index-Bqf6o41r.js → index-DZo3DrGQ.js} +1 -1
  81. package/dist/components/{index-DjsXjoZJ.js → index-VwuVCCal.js} +1474 -927
  82. package/dist/components/index.d.ts +1 -0
  83. package/dist/components/index.d.ts.map +1 -1
  84. package/dist/components/index.js +1 -0
  85. package/dist/components/index.js.map +1 -1
  86. package/dist/components/inputs/dropdown/dropdown.styles.js +6 -6
  87. package/dist/components/inputs/segmented-control/segmented-control.styles.js +6 -6
  88. package/dist/components/inputs/text-editor/text-editor.links.d.ts +8 -0
  89. package/dist/components/inputs/text-editor/text-editor.links.d.ts.map +1 -1
  90. package/dist/components/inputs/text-editor/text-editor.links.js +48 -7
  91. package/dist/components/inputs/text-editor/text-editor.links.js.map +1 -1
  92. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  93. package/dist/components/inputs/text-editor/text-editor.markdown.js +11 -0
  94. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  95. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  96. package/dist/components/inputs/text-editor/text-editor.styles.js +14 -3
  97. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  98. package/dist/components/inputs/toggle-button/toggle-button.styles.js +6 -6
  99. package/dist/components/layout/page-footer/page-footer.d.ts +9 -1
  100. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  101. package/dist/components/layout/page-footer/page-footer.js +23 -1
  102. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  103. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  104. package/dist/components/layout/page-footer/page-footer.styles.js +9 -0
  105. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  106. package/dist/components/layout/page-sections/hero/hero.styles.js +19 -19
  107. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  108. package/dist/components/layout/popover/popover.js +32 -2
  109. package/dist/components/layout/popover/popover.js.map +1 -1
  110. package/dist/components/layout/sheet/sheet.d.ts +6 -0
  111. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  112. package/dist/components/layout/sheet/sheet.js +13 -1
  113. package/dist/components/layout/sheet/sheet.js.map +1 -1
  114. package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
  115. package/dist/components/layout/sheet/sheet.template.js +1 -0
  116. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  117. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +2 -2
  118. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +6 -6
  119. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +11 -11
  120. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +11 -11
  121. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  122. package/dist/components/lists-and-tables/list-item/list-item.styles.js +14 -7
  123. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  124. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  125. package/dist/components/lists-and-tables/table/table.styles.js +2 -1
  126. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  127. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +14 -14
  128. package/dist/components/navigation/pagination/pagination.styles.js +9 -9
  129. package/dist/components/navigation/tab-bar/tab-bar.styles.js +6 -6
  130. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +14 -2
  131. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  132. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +14 -2
  133. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  134. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  135. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +3 -2
  136. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  137. package/dist/components/status-and-feedback/badge/badge.styles.js +23 -23
  138. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +3 -2
  139. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
  140. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -1
  141. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
  142. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
  143. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +8 -1
  144. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
  145. package/dist/css/rich-text.css +19 -0
  146. package/dist/css/settings.css +253 -246
  147. package/dist/utilities/popup-anchor-controller.d.ts +63 -0
  148. package/dist/utilities/popup-anchor-controller.d.ts.map +1 -0
  149. package/dist/utilities/popup-anchor-controller.js +63 -0
  150. package/dist/utilities/popup-anchor-controller.js.map +1 -0
  151. package/package.json +5 -1
@@ -26,10 +26,12 @@
26
26
  * @slot text - Slot for custom button content (e.g. text with inline markup). Used when the text attribute is empty or not set (an empty string counts as "not set", since the attribute and the unset property are indistinguishable). Provide accessible-label when the slotted content isn't plain text.
27
27
  * @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Only used when start-icon attribute is not set.
28
28
  * @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Only used when end-icon attribute is not set.
29
+ * @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; the manual `anchor`/`popovertarget` wiring keeps working when you don't slot an overlay.
29
30
  *
30
31
  * @fires click - When button is clicked (not fired when disabled)
31
32
  */
32
33
  import { LitElement } from 'lit';
34
+ import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
33
35
  import './../../content/icon/icon.js';
34
36
  import './../../status-and-feedback/activity-indicator/activity-indicator.js';
35
37
  type Variant = 'primary' | 'secondary' | 'destructive' | 'accent-filled' | 'accent-transparent' | 'neutral-tinted' | 'neutral-base' | 'neutral-transparent' | 'critical-tinted' | 'critical-transparent' | 'inherit-filled' | 'inherit-tinted';
@@ -114,6 +116,10 @@ export declare class NLDDButton extends NLDDButton_base {
114
116
  */
115
117
  rel: string | undefined;
116
118
  private _warnedA11y;
119
+ /** Shared wiring for an overlay slotted into `popup`: anchors it to this
120
+ * button and turns clicks into open/close. Not private: the template module
121
+ * binds its handlers. */
122
+ _popup: PopupAnchorController;
117
123
  updated(changedProperties: Map<string, unknown>): void;
118
124
  private _handleClick;
119
125
  /** Resolves the effective rel value for link rendering. */
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,8BAA8B,CAAC;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ACzB,MAAM,wBAAmC;IAEhC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA4B/D,OAAO,CAAC,YAAY;IA+BpB,2DAA2D;IAC3D,YAAY,IAAI,MAAM;IAMtB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAInC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
@@ -26,6 +26,7 @@
26
26
  * @slot text - Slot for custom button content (e.g. text with inline markup). Used when the text attribute is empty or not set (an empty string counts as "not set", since the attribute and the unset property are indistinguishable). Provide accessible-label when the slotted content isn't plain text.
27
27
  * @slot start-icon - Slot for a custom start icon (e.g. custom SVG). Only used when start-icon attribute is not set.
28
28
  * @slot end-icon - Slot for a custom end icon (e.g. custom SVG). Only used when end-icon attribute is not set.
29
+ * @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron. Mirrors nldd-split-button; the manual `anchor`/`popovertarget` wiring keeps working when you don't slot an overlay.
29
30
  *
30
31
  * @fires click - When button is clicked (not fired when disabled)
31
32
  */
@@ -42,6 +43,7 @@ import { template } from './button.template.js';
42
43
  import { withTranslations } from '../../../utilities/with-translations.js';
43
44
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
44
45
  import { nlddButtonTranslations } from './button.i18n.js';
46
+ import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
45
47
  import './../../content/icon/icon.js';
46
48
  import './../../status-and-feedback/activity-indicator/activity-indicator.js';
47
49
  let NLDDButton = class NLDDButton extends withTranslations(LitElement, nlddButtonTranslations) {
@@ -110,6 +112,10 @@ let NLDDButton = class NLDDButton extends withTranslations(LitElement, nlddButto
110
112
  */
111
113
  this.rel = undefined;
112
114
  this._warnedA11y = false;
115
+ /** Shared wiring for an overlay slotted into `popup`: anchors it to this
116
+ * button and turns clicks into open/close. Not private: the template module
117
+ * binds its handlers. */
118
+ this._popup = new PopupAnchorController(this);
113
119
  }
114
120
  updated(changedProperties) {
115
121
  if (changedProperties.has('width')) {
@@ -146,6 +152,12 @@ let NLDDButton = class NLDDButton extends withTranslations(LitElement, nlddButto
146
152
  e.stopPropagation();
147
153
  return;
148
154
  }
155
+ // A slotted overlay makes this button its invoker: toggle it and stop —
156
+ // a popup button neither submits a form nor navigates.
157
+ if (this._popup.handleClick(e)) {
158
+ e.preventDefault();
159
+ return;
160
+ }
149
161
  // A link button has no form behaviour. Otherwise drive the associated
150
162
  // form ourselves: the shadow <button type="submit"|"reset"> can't reach
151
163
  // the light-DOM form across the shadow boundary. requestSubmit() runs
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAoBvE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,gBAAgB,CAAC,UAAU,EAAE,sBAAsB,CAAC;IAA7E;;QAOE,eAAU,GAAG,IAAI,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AC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACY;AAOvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACS;AAxHxB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CAgNtB"}
@@ -20,16 +20,16 @@ export const buttonStyles = css `
20
20
  --_disclosure-icon-size: var(--primitives-space-20);
21
21
  --_supporting-font: var(--semantics-buttons-md-supporting-text-font);
22
22
  --_background-color: var(--semantics-buttons-neutral-tinted-background-color);
23
- --_primary-content-color: var(--semantics-buttons-neutral-tinted-primary-content-color);
24
- --_secondary-content-color: var(--semantics-buttons-neutral-tinted-secondary-content-color);
23
+ --_primary-content-color: var(--semantics-buttons-neutral-tinted-content-color);
24
+ --_secondary-content-color: var(--semantics-buttons-neutral-tinted-content-secondary-color);
25
25
  --_highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
26
26
  --_is-hovered-background-color: var(--semantics-buttons-neutral-tinted-is-hovered-background-color);
27
- --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-primary-content-color);
28
- --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-secondary-content-color);
27
+ --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-content-color);
28
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-content-secondary-color);
29
29
  --_is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-hovered-highlight-border-color);
30
30
  --_is-active-background-color: var(--semantics-buttons-neutral-tinted-is-active-background-color);
31
- --_is-active-primary-content-color: var(--semantics-buttons-neutral-tinted-is-active-primary-content-color);
32
- --_is-active-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-active-secondary-content-color);
31
+ --_is-active-primary-content-color: var(--semantics-buttons-neutral-tinted-is-active-content-color);
32
+ --_is-active-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-active-content-secondary-color);
33
33
  --_is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-active-highlight-border-color);
34
34
 
35
35
  ${inheritedTextReset}
@@ -78,93 +78,93 @@ export const buttonStyles = css `
78
78
 
79
79
  :host([variant="neutral-base"]) {
80
80
  --_background-color: var(--semantics-buttons-neutral-base-background-color);
81
- --_primary-content-color: var(--semantics-buttons-neutral-base-primary-content-color);
82
- --_secondary-content-color: var(--semantics-buttons-neutral-base-secondary-content-color);
81
+ --_primary-content-color: var(--semantics-buttons-neutral-base-content-color);
82
+ --_secondary-content-color: var(--semantics-buttons-neutral-base-content-secondary-color);
83
83
  --_highlight-border-color: var(--semantics-buttons-neutral-base-highlight-border-color);
84
84
  --_is-hovered-background-color: var(--semantics-buttons-neutral-base-is-hovered-background-color);
85
- --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-base-is-hovered-primary-content-color);
86
- --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-base-is-hovered-secondary-content-color);
85
+ --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-base-is-hovered-content-color);
86
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-base-is-hovered-content-secondary-color);
87
87
  --_is-hovered-highlight-border-color: var(--semantics-buttons-neutral-base-is-hovered-highlight-border-color);
88
88
  --_is-active-background-color: var(--semantics-buttons-neutral-base-is-active-background-color);
89
- --_is-active-primary-content-color: var(--semantics-buttons-neutral-base-is-active-primary-content-color);
90
- --_is-active-secondary-content-color: var(--semantics-buttons-neutral-base-is-active-secondary-content-color);
89
+ --_is-active-primary-content-color: var(--semantics-buttons-neutral-base-is-active-content-color);
90
+ --_is-active-secondary-content-color: var(--semantics-buttons-neutral-base-is-active-content-secondary-color);
91
91
  --_is-active-highlight-border-color: var(--semantics-buttons-neutral-base-is-active-highlight-border-color);
92
92
  }
93
93
 
94
94
  :host([variant="neutral-transparent"]) {
95
95
  --_background-color: transparent;
96
- --_primary-content-color: var(--semantics-buttons-neutral-transparent-primary-content-color);
97
- --_secondary-content-color: var(--semantics-buttons-neutral-transparent-secondary-content-color);
96
+ --_primary-content-color: var(--semantics-buttons-neutral-transparent-content-color);
97
+ --_secondary-content-color: var(--semantics-buttons-neutral-transparent-content-secondary-color);
98
98
  --_highlight-border-color: transparent;
99
99
  --_is-hovered-background-color: transparent;
100
- --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-primary-content-color);
101
- --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-secondary-content-color);
100
+ --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-content-color);
101
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-content-secondary-color);
102
102
  --_is-hovered-highlight-border-color: transparent;
103
103
  --_is-active-background-color: transparent;
104
- --_is-active-primary-content-color: var(--semantics-buttons-neutral-transparent-is-active-primary-content-color);
105
- --_is-active-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-active-secondary-content-color);
104
+ --_is-active-primary-content-color: var(--semantics-buttons-neutral-transparent-is-active-content-color);
105
+ --_is-active-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-active-content-secondary-color);
106
106
  --_is-active-highlight-border-color: transparent;
107
107
  }
108
108
 
109
109
  :host([variant="accent-filled"]),
110
110
  :host([variant="primary"]) {
111
111
  --_background-color: var(--semantics-buttons-accent-filled-background-color);
112
- --_primary-content-color: var(--semantics-buttons-accent-filled-primary-content-color);
113
- --_secondary-content-color: var(--semantics-buttons-accent-filled-secondary-content-color);
112
+ --_primary-content-color: var(--semantics-buttons-accent-filled-content-color);
113
+ --_secondary-content-color: var(--semantics-buttons-accent-filled-content-secondary-color);
114
114
  --_highlight-border-color: var(--semantics-buttons-accent-filled-highlight-border-color);
115
115
  --_is-hovered-background-color: var(--semantics-buttons-accent-filled-is-hovered-background-color);
116
- --_is-hovered-primary-content-color: var(--semantics-buttons-accent-filled-is-hovered-primary-content-color);
117
- --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-filled-is-hovered-secondary-content-color);
116
+ --_is-hovered-primary-content-color: var(--semantics-buttons-accent-filled-is-hovered-content-color);
117
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-filled-is-hovered-content-secondary-color);
118
118
  --_is-hovered-highlight-border-color: var(--semantics-buttons-accent-filled-is-hovered-highlight-border-color);
119
119
  --_is-active-background-color: var(--semantics-buttons-accent-filled-is-active-background-color);
120
- --_is-active-primary-content-color: var(--semantics-buttons-accent-filled-is-active-primary-content-color);
121
- --_is-active-secondary-content-color: var(--semantics-buttons-accent-filled-is-active-secondary-content-color);
120
+ --_is-active-primary-content-color: var(--semantics-buttons-accent-filled-is-active-content-color);
121
+ --_is-active-secondary-content-color: var(--semantics-buttons-accent-filled-is-active-content-secondary-color);
122
122
  --_is-active-highlight-border-color: var(--semantics-buttons-accent-filled-is-active-highlight-border-color);
123
123
  }
124
124
 
125
125
  :host([variant="accent-transparent"]) {
126
126
  --_background-color: transparent;
127
- --_primary-content-color: var(--semantics-buttons-accent-transparent-primary-content-color);
128
- --_secondary-content-color: var(--semantics-buttons-accent-transparent-secondary-content-color);
127
+ --_primary-content-color: var(--semantics-buttons-accent-transparent-content-color);
128
+ --_secondary-content-color: var(--semantics-buttons-accent-transparent-content-secondary-color);
129
129
  --_highlight-border-color: transparent;
130
130
  --_is-hovered-background-color: transparent;
131
- --_is-hovered-primary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-primary-content-color);
132
- --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-secondary-content-color);
131
+ --_is-hovered-primary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-content-color);
132
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-content-secondary-color);
133
133
  --_is-hovered-highlight-border-color: transparent;
134
134
  --_is-active-background-color: transparent;
135
- --_is-active-primary-content-color: var(--semantics-buttons-accent-transparent-is-active-primary-content-color);
136
- --_is-active-secondary-content-color: var(--semantics-buttons-accent-transparent-is-active-secondary-content-color);
135
+ --_is-active-primary-content-color: var(--semantics-buttons-accent-transparent-is-active-content-color);
136
+ --_is-active-secondary-content-color: var(--semantics-buttons-accent-transparent-is-active-content-secondary-color);
137
137
  --_is-active-highlight-border-color: transparent;
138
138
  }
139
139
 
140
140
  :host([variant="critical-tinted"]),
141
141
  :host([variant="destructive"]) {
142
142
  --_background-color: var(--semantics-buttons-critical-tinted-background-color);
143
- --_primary-content-color: var(--semantics-buttons-critical-tinted-primary-content-color);
144
- --_secondary-content-color: var(--semantics-buttons-critical-tinted-secondary-content-color);
143
+ --_primary-content-color: var(--semantics-buttons-critical-tinted-content-color);
144
+ --_secondary-content-color: var(--semantics-buttons-critical-tinted-content-secondary-color);
145
145
  --_highlight-border-color: var(--semantics-buttons-critical-tinted-highlight-border-color);
146
146
  --_is-hovered-background-color: var(--semantics-buttons-critical-tinted-is-hovered-background-color);
147
- --_is-hovered-primary-content-color: var(--semantics-buttons-critical-tinted-is-hovered-primary-content-color);
148
- --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-tinted-is-hovered-secondary-content-color);
147
+ --_is-hovered-primary-content-color: var(--semantics-buttons-critical-tinted-is-hovered-content-color);
148
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-tinted-is-hovered-content-secondary-color);
149
149
  --_is-hovered-highlight-border-color: var(--semantics-buttons-critical-tinted-is-hovered-highlight-border-color);
150
150
  --_is-active-background-color: var(--semantics-buttons-critical-tinted-is-active-background-color);
151
- --_is-active-primary-content-color: var(--semantics-buttons-critical-tinted-is-active-primary-content-color);
152
- --_is-active-secondary-content-color: var(--semantics-buttons-critical-tinted-is-active-secondary-content-color);
151
+ --_is-active-primary-content-color: var(--semantics-buttons-critical-tinted-is-active-content-color);
152
+ --_is-active-secondary-content-color: var(--semantics-buttons-critical-tinted-is-active-content-secondary-color);
153
153
  --_is-active-highlight-border-color: var(--semantics-buttons-critical-tinted-is-active-highlight-border-color);
154
154
  }
155
155
 
156
156
  :host([variant="critical-transparent"]) {
157
157
  --_background-color: transparent;
158
- --_primary-content-color: var(--semantics-buttons-critical-transparent-primary-content-color);
159
- --_secondary-content-color: var(--semantics-buttons-critical-transparent-secondary-content-color);
158
+ --_primary-content-color: var(--semantics-buttons-critical-transparent-content-color);
159
+ --_secondary-content-color: var(--semantics-buttons-critical-transparent-content-secondary-color);
160
160
  --_highlight-border-color: transparent;
161
161
  --_is-hovered-background-color: transparent;
162
- --_is-hovered-primary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-primary-content-color);
163
- --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-secondary-content-color);
162
+ --_is-hovered-primary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-content-color);
163
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-content-secondary-color);
164
164
  --_is-hovered-highlight-border-color: transparent;
165
165
  --_is-active-background-color: transparent;
166
- --_is-active-primary-content-color: var(--semantics-buttons-critical-transparent-is-active-primary-content-color);
167
- --_is-active-secondary-content-color: var(--semantics-buttons-critical-transparent-is-active-secondary-content-color);
166
+ --_is-active-primary-content-color: var(--semantics-buttons-critical-transparent-is-active-content-color);
167
+ --_is-active-secondary-content-color: var(--semantics-buttons-critical-transparent-is-active-content-secondary-color);
168
168
  --_is-active-highlight-border-color: transparent;
169
169
  }
170
170
 
@@ -176,31 +176,31 @@ export const buttonStyles = css `
176
176
 
177
177
  :host([variant="inherit-tinted"]) {
178
178
  --_background-color: var(--semantics-buttons-inherit-tinted-background-color);
179
- --_primary-content-color: var(--semantics-buttons-inherit-tinted-primary-content-color);
180
- --_secondary-content-color: var(--semantics-buttons-inherit-tinted-secondary-content-color);
179
+ --_primary-content-color: var(--semantics-buttons-inherit-tinted-content-color);
180
+ --_secondary-content-color: var(--semantics-buttons-inherit-tinted-content-secondary-color);
181
181
  --_highlight-border-color: var(--semantics-buttons-inherit-tinted-highlight-border-color);
182
182
  --_is-hovered-background-color: var(--semantics-buttons-inherit-tinted-is-hovered-background-color);
183
- --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-tinted-is-hovered-primary-content-color);
184
- --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-hovered-secondary-content-color);
183
+ --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-tinted-is-hovered-content-color);
184
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-hovered-content-secondary-color);
185
185
  --_is-hovered-highlight-border-color: var(--semantics-buttons-inherit-tinted-is-hovered-highlight-border-color);
186
186
  --_is-active-background-color: var(--semantics-buttons-inherit-tinted-is-active-background-color);
187
- --_is-active-primary-content-color: var(--semantics-buttons-inherit-tinted-is-active-primary-content-color);
188
- --_is-active-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-active-secondary-content-color);
187
+ --_is-active-primary-content-color: var(--semantics-buttons-inherit-tinted-is-active-content-color);
188
+ --_is-active-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-active-content-secondary-color);
189
189
  --_is-active-highlight-border-color: var(--semantics-buttons-inherit-tinted-is-active-highlight-border-color);
190
190
  }
191
191
 
192
192
  :host([variant="inherit-filled"]) {
193
193
  --_background-color: var(--semantics-buttons-inherit-filled-background-color);
194
- --_primary-content-color: var(--context-parent-background-color, var(--semantics-buttons-inherit-filled-primary-content-color));
195
- --_secondary-content-color: var(--semantics-buttons-inherit-filled-secondary-content-color);
194
+ --_primary-content-color: var(--context-parent-background-color, var(--semantics-buttons-inherit-filled-content-color));
195
+ --_secondary-content-color: var(--semantics-buttons-inherit-filled-content-secondary-color);
196
196
  --_highlight-border-color: var(--semantics-buttons-inherit-filled-highlight-border-color);
197
197
  --_is-hovered-background-color: var(--semantics-buttons-inherit-filled-is-hovered-background-color);
198
- --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-filled-is-hovered-primary-content-color);
199
- --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-filled-is-hovered-secondary-content-color);
198
+ --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-filled-is-hovered-content-color);
199
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-filled-is-hovered-content-secondary-color);
200
200
  --_is-hovered-highlight-border-color: var(--semantics-buttons-inherit-filled-is-hovered-highlight-border-color);
201
201
  --_is-active-background-color: var(--semantics-buttons-inherit-filled-is-active-background-color);
202
- --_is-active-primary-content-color: var(--semantics-buttons-inherit-filled-is-active-primary-content-color);
203
- --_is-active-secondary-content-color: var(--semantics-buttons-inherit-filled-is-active-secondary-content-color);
202
+ --_is-active-primary-content-color: var(--semantics-buttons-inherit-filled-is-active-content-color);
203
+ --_is-active-secondary-content-color: var(--semantics-buttons-inherit-filled-is-active-content-secondary-color);
204
204
  --_is-active-highlight-border-color: var(--semantics-buttons-inherit-filled-is-active-highlight-border-color);
205
205
  }
206
206
 
@@ -221,108 +221,108 @@ export const buttonStyles = css `
221
221
 
222
222
  :host([expanded]) {
223
223
  --_background-color: var(--semantics-buttons-neutral-tinted-is-expanded-background-color);
224
- --_primary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-primary-content-color);
225
- --_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-secondary-content-color);
224
+ --_primary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-content-color);
225
+ --_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-content-secondary-color);
226
226
  --_highlight-border-color: var(--semantics-buttons-neutral-tinted-is-expanded-highlight-border-color);
227
227
  --_is-hovered-background-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-hovered-background-color);
228
- --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-hovered-primary-content-color);
229
- --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-hovered-secondary-content-color);
228
+ --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-hovered-content-color);
229
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-hovered-content-secondary-color);
230
230
  --_is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-hovered-highlight-border-color);
231
231
  --_is-active-background-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-active-background-color);
232
- --_is-active-primary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-active-primary-content-color);
233
- --_is-active-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-active-secondary-content-color);
232
+ --_is-active-primary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-active-content-color);
233
+ --_is-active-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-active-content-secondary-color);
234
234
  --_is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-expanded-is-active-highlight-border-color);
235
235
  }
236
236
 
237
237
  :host([expanded][variant="neutral-base"]) {
238
238
  --_background-color: var(--semantics-buttons-neutral-base-is-expanded-background-color);
239
- --_primary-content-color: var(--semantics-buttons-neutral-base-is-expanded-primary-content-color);
240
- --_secondary-content-color: var(--semantics-buttons-neutral-base-is-expanded-secondary-content-color);
239
+ --_primary-content-color: var(--semantics-buttons-neutral-base-is-expanded-content-color);
240
+ --_secondary-content-color: var(--semantics-buttons-neutral-base-is-expanded-content-secondary-color);
241
241
  --_highlight-border-color: var(--semantics-buttons-neutral-base-is-expanded-highlight-border-color);
242
242
  --_is-hovered-background-color: var(--semantics-buttons-neutral-base-is-expanded-is-hovered-background-color);
243
- --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-hovered-primary-content-color);
244
- --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-hovered-secondary-content-color);
243
+ --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-hovered-content-color);
244
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-hovered-content-secondary-color);
245
245
  --_is-hovered-highlight-border-color: var(--semantics-buttons-neutral-base-is-expanded-is-hovered-highlight-border-color);
246
246
  --_is-active-background-color: var(--semantics-buttons-neutral-base-is-expanded-is-active-background-color);
247
- --_is-active-primary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-active-primary-content-color);
248
- --_is-active-secondary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-active-secondary-content-color);
247
+ --_is-active-primary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-active-content-color);
248
+ --_is-active-secondary-content-color: var(--semantics-buttons-neutral-base-is-expanded-is-active-content-secondary-color);
249
249
  --_is-active-highlight-border-color: var(--semantics-buttons-neutral-base-is-expanded-is-active-highlight-border-color);
250
250
  }
251
251
 
252
252
  :host([expanded][variant="neutral-transparent"]) {
253
253
  --_background-color: transparent;
254
- --_primary-content-color: var(--semantics-buttons-neutral-transparent-primary-content-color);
255
- --_secondary-content-color: var(--semantics-buttons-neutral-transparent-secondary-content-color);
254
+ --_primary-content-color: var(--semantics-buttons-neutral-transparent-content-color);
255
+ --_secondary-content-color: var(--semantics-buttons-neutral-transparent-content-secondary-color);
256
256
  --_highlight-border-color: transparent;
257
257
  --_is-hovered-background-color: transparent;
258
- --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-primary-content-color);
259
- --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-secondary-content-color);
258
+ --_is-hovered-primary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-content-color);
259
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-hovered-content-secondary-color);
260
260
  --_is-hovered-highlight-border-color: transparent;
261
261
  --_is-active-background-color: transparent;
262
- --_is-active-primary-content-color: var(--semantics-buttons-neutral-transparent-is-active-primary-content-color);
263
- --_is-active-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-active-secondary-content-color);
262
+ --_is-active-primary-content-color: var(--semantics-buttons-neutral-transparent-is-active-content-color);
263
+ --_is-active-secondary-content-color: var(--semantics-buttons-neutral-transparent-is-active-content-secondary-color);
264
264
  --_is-active-highlight-border-color: transparent;
265
265
  }
266
266
 
267
267
  :host([expanded][variant="accent-filled"]),
268
268
  :host([expanded][variant="primary"]) {
269
269
  --_background-color: var(--semantics-buttons-accent-filled-is-expanded-background-color);
270
- --_primary-content-color: var(--semantics-buttons-accent-filled-is-expanded-primary-content-color);
271
- --_secondary-content-color: var(--semantics-buttons-accent-filled-is-expanded-secondary-content-color);
270
+ --_primary-content-color: var(--semantics-buttons-accent-filled-is-expanded-content-color);
271
+ --_secondary-content-color: var(--semantics-buttons-accent-filled-is-expanded-content-secondary-color);
272
272
  --_highlight-border-color: var(--semantics-buttons-accent-filled-is-expanded-highlight-border-color);
273
273
  --_is-hovered-background-color: var(--semantics-buttons-accent-filled-is-expanded-is-hovered-background-color);
274
- --_is-hovered-primary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-hovered-primary-content-color);
275
- --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-hovered-secondary-content-color);
274
+ --_is-hovered-primary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-hovered-content-color);
275
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-hovered-content-secondary-color);
276
276
  --_is-hovered-highlight-border-color: var(--semantics-buttons-accent-filled-is-expanded-is-hovered-highlight-border-color);
277
277
  --_is-active-background-color: var(--semantics-buttons-accent-filled-is-expanded-is-active-background-color);
278
- --_is-active-primary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-active-primary-content-color);
279
- --_is-active-secondary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-active-secondary-content-color);
278
+ --_is-active-primary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-active-content-color);
279
+ --_is-active-secondary-content-color: var(--semantics-buttons-accent-filled-is-expanded-is-active-content-secondary-color);
280
280
  --_is-active-highlight-border-color: var(--semantics-buttons-accent-filled-is-expanded-is-active-highlight-border-color);
281
281
  }
282
282
 
283
283
  :host([expanded][variant="accent-transparent"]) {
284
284
  --_background-color: transparent;
285
- --_primary-content-color: var(--semantics-buttons-accent-transparent-primary-content-color);
286
- --_secondary-content-color: var(--semantics-buttons-accent-transparent-secondary-content-color);
285
+ --_primary-content-color: var(--semantics-buttons-accent-transparent-content-color);
286
+ --_secondary-content-color: var(--semantics-buttons-accent-transparent-content-secondary-color);
287
287
  --_highlight-border-color: transparent;
288
288
  --_is-hovered-background-color: transparent;
289
- --_is-hovered-primary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-primary-content-color);
290
- --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-secondary-content-color);
289
+ --_is-hovered-primary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-content-color);
290
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-accent-transparent-is-hovered-content-secondary-color);
291
291
  --_is-hovered-highlight-border-color: transparent;
292
292
  --_is-active-background-color: transparent;
293
- --_is-active-primary-content-color: var(--semantics-buttons-accent-transparent-is-active-primary-content-color);
294
- --_is-active-secondary-content-color: var(--semantics-buttons-accent-transparent-is-active-secondary-content-color);
293
+ --_is-active-primary-content-color: var(--semantics-buttons-accent-transparent-is-active-content-color);
294
+ --_is-active-secondary-content-color: var(--semantics-buttons-accent-transparent-is-active-content-secondary-color);
295
295
  --_is-active-highlight-border-color: transparent;
296
296
  }
297
297
 
298
298
  :host([expanded][variant="critical-tinted"]),
299
299
  :host([expanded][variant="destructive"]) {
300
300
  --_background-color: var(--semantics-buttons-critical-tinted-is-expanded-background-color);
301
- --_primary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-primary-content-color);
302
- --_secondary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-secondary-content-color);
301
+ --_primary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-content-color);
302
+ --_secondary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-content-secondary-color);
303
303
  --_highlight-border-color: var(--semantics-buttons-critical-tinted-is-expanded-highlight-border-color);
304
304
  --_is-hovered-background-color: var(--semantics-buttons-critical-tinted-is-expanded-is-hovered-background-color);
305
- --_is-hovered-primary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-hovered-primary-content-color);
306
- --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-hovered-secondary-content-color);
305
+ --_is-hovered-primary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-hovered-content-color);
306
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-hovered-content-secondary-color);
307
307
  --_is-hovered-highlight-border-color: var(--semantics-buttons-critical-tinted-is-expanded-is-hovered-highlight-border-color);
308
308
  --_is-active-background-color: var(--semantics-buttons-critical-tinted-is-expanded-is-active-background-color);
309
- --_is-active-primary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-active-primary-content-color);
310
- --_is-active-secondary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-active-secondary-content-color);
309
+ --_is-active-primary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-active-content-color);
310
+ --_is-active-secondary-content-color: var(--semantics-buttons-critical-tinted-is-expanded-is-active-content-secondary-color);
311
311
  --_is-active-highlight-border-color: var(--semantics-buttons-critical-tinted-is-expanded-is-active-highlight-border-color);
312
312
  }
313
313
 
314
314
  :host([expanded][variant="critical-transparent"]) {
315
315
  --_background-color: transparent;
316
- --_primary-content-color: var(--semantics-buttons-critical-transparent-primary-content-color);
317
- --_secondary-content-color: var(--semantics-buttons-critical-transparent-secondary-content-color);
316
+ --_primary-content-color: var(--semantics-buttons-critical-transparent-content-color);
317
+ --_secondary-content-color: var(--semantics-buttons-critical-transparent-content-secondary-color);
318
318
  --_highlight-border-color: transparent;
319
319
  --_is-hovered-background-color: transparent;
320
- --_is-hovered-primary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-primary-content-color);
321
- --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-secondary-content-color);
320
+ --_is-hovered-primary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-content-color);
321
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-critical-transparent-is-hovered-content-secondary-color);
322
322
  --_is-hovered-highlight-border-color: transparent;
323
323
  --_is-active-background-color: transparent;
324
- --_is-active-primary-content-color: var(--semantics-buttons-critical-transparent-is-active-primary-content-color);
325
- --_is-active-secondary-content-color: var(--semantics-buttons-critical-transparent-is-active-secondary-content-color);
324
+ --_is-active-primary-content-color: var(--semantics-buttons-critical-transparent-is-active-content-color);
325
+ --_is-active-secondary-content-color: var(--semantics-buttons-critical-transparent-is-active-content-secondary-color);
326
326
  --_is-active-highlight-border-color: transparent;
327
327
  }
328
328
 
@@ -332,31 +332,31 @@ export const buttonStyles = css `
332
332
  specificity and later source order, so it would otherwise win. */
333
333
  :host([expanded][variant="inherit-tinted"]) {
334
334
  --_background-color: var(--semantics-buttons-inherit-tinted-is-expanded-background-color);
335
- --_primary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-primary-content-color);
336
- --_secondary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-secondary-content-color);
335
+ --_primary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-content-color);
336
+ --_secondary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-content-secondary-color);
337
337
  --_highlight-border-color: var(--semantics-buttons-inherit-tinted-is-expanded-highlight-border-color);
338
338
  --_is-hovered-background-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-hovered-background-color);
339
- --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-hovered-primary-content-color);
340
- --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-hovered-secondary-content-color);
339
+ --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-hovered-content-color);
340
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-hovered-content-secondary-color);
341
341
  --_is-hovered-highlight-border-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-hovered-highlight-border-color);
342
342
  --_is-active-background-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-active-background-color);
343
- --_is-active-primary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-active-primary-content-color);
344
- --_is-active-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-active-secondary-content-color);
343
+ --_is-active-primary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-active-content-color);
344
+ --_is-active-secondary-content-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-active-content-secondary-color);
345
345
  --_is-active-highlight-border-color: var(--semantics-buttons-inherit-tinted-is-expanded-is-active-highlight-border-color);
346
346
  }
347
347
 
348
348
  :host([expanded][variant="inherit-filled"]) {
349
349
  --_background-color: var(--semantics-buttons-inherit-filled-is-expanded-background-color);
350
- --_primary-content-color: var(--context-parent-background-color, var(--semantics-buttons-inherit-filled-is-expanded-primary-content-color));
351
- --_secondary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-secondary-content-color);
350
+ --_primary-content-color: var(--context-parent-background-color, var(--semantics-buttons-inherit-filled-is-expanded-content-color));
351
+ --_secondary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-content-secondary-color);
352
352
  --_highlight-border-color: var(--semantics-buttons-inherit-filled-is-expanded-highlight-border-color);
353
353
  --_is-hovered-background-color: var(--semantics-buttons-inherit-filled-is-expanded-is-hovered-background-color);
354
- --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-hovered-primary-content-color);
355
- --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-hovered-secondary-content-color);
354
+ --_is-hovered-primary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-hovered-content-color);
355
+ --_is-hovered-secondary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-hovered-content-secondary-color);
356
356
  --_is-hovered-highlight-border-color: var(--semantics-buttons-inherit-filled-is-expanded-is-hovered-highlight-border-color);
357
357
  --_is-active-background-color: var(--semantics-buttons-inherit-filled-is-expanded-is-active-background-color);
358
- --_is-active-primary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-active-primary-content-color);
359
- --_is-active-secondary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-active-secondary-content-color);
358
+ --_is-active-primary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-active-content-color);
359
+ --_is-active-secondary-content-color: var(--semantics-buttons-inherit-filled-is-expanded-is-active-content-secondary-color);
360
360
  --_is-active-highlight-border-color: var(--semantics-buttons-inherit-filled-is-expanded-is-active-highlight-border-color);
361
361
  }
362
362
 
@@ -1 +1 @@
1
- {"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA+BD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAqGlE"}
1
+ {"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA+BD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCA+GlE"}
@@ -78,6 +78,11 @@ export function template(helpers) {
78
78
  </div>
79
79
  `
80
80
  : nothing;
81
+ // A single slotted nldd-menu / nldd-popover that this button invokes. Kept in
82
+ // a named slot so it never lands in the text/icon slots; it renders nothing
83
+ // in flow (a popover is display:none until shown in the top layer). See
84
+ // _handleClick.
85
+ const popupSlot = html `<slot name="popup" @slotchange=${this._popup.handleSlotChange}></slot>`;
81
86
  if (this.href) {
82
87
  const resolvedRel = this._resolvedRel();
83
88
  return html `
@@ -90,12 +95,14 @@ export function template(helpers) {
90
95
  aria-haspopup=${this.popupType || nothing}
91
96
  aria-expanded=${ariaExpanded}
92
97
  aria-busy=${ariaBusy}
98
+ @pointerdown=${this._popup.handlePointerdown}
93
99
  @click=${helpers.handleClick}
94
100
  >
95
101
  ${content}
96
102
  ${renderOpensInNewTabHint ? html `<span class="button__opens-in-new-tab-hint">${opensInNewTabHint}</span>` : nothing}
97
103
  </a>
98
104
  ${loadingIndicator}
105
+ ${popupSlot}
99
106
  `;
100
107
  }
101
108
  // .popoverTargetElement / .popoverTargetAction are bound unguarded: in
@@ -115,11 +122,13 @@ export function template(helpers) {
115
122
  popovertarget=${this.popovertarget || nothing}
116
123
  .popoverTargetElement=${this.popoverTargetElement}
117
124
  .popoverTargetAction=${this.popoverTargetAction}
125
+ @pointerdown=${this._popup.handlePointerdown}
118
126
  @click=${helpers.handleClick}
119
127
  >
120
128
  ${content}
121
129
  </button>
122
130
  ${loadingIndicator}
131
+ ${popupSlot}
123
132
  `;
124
133
  }
125
134
  //# sourceMappingURL=button.template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAOpC,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;uBAER,SAAS,CAAC,SAAS;;IAEtC,CAAC,CAAC,CAAC,IAAI,CAAA,iCAAiC;;iCAEX,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,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YAAY,EAAE,CAAC;QACxC,OAAO,IAAI,CAAA;cACC,WAAW;WACd,IAAI,CAAC,IAAI;aACP,IAAI,CAAC,MAAM,IAAI,OAAO;UACzB,WAAW,IAAI,OAAO;oBACZ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;iBACnC,SAAS;oBACN,IAAI,CAAC,SAAS,IAAI,OAAO;oBACzB,YAAY;gBAChB,QAAQ;aACX,OAAO,CAAC,WAAW;;MAE1B,OAAO;MACP,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAA,+CAA+C,iBAAiB,SAAS,CAAC,CAAC,CAAC,OAAO;;KAElH,gBAAgB;GAClB,CAAC;IACH,CAAC;IAED,uEAAuE;IACvE,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,wEAAwE;IACxE,OAAO,IAAI,CAAA;kBACM,WAAW;UACnB,IAAI,CAAC,IAAI;eACJ,IAAI,CAAC,QAAQ;mBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACnC,SAAS;mBACN,IAAI,CAAC,SAAS,IAAI,OAAO;mBACzB,YAAY;eAChB,QAAQ;mBACJ,IAAI,CAAC,aAAa,IAAI,OAAO;2BACrB,IAAI,CAAC,oBAAoB;0BAC1B,IAAI,CAAC,mBAAmB;YACtC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;IAER,gBAAgB;EAClB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAOpC,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;uBA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,iBAAiB;YACnC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;IAER,gBAAgB;IAChB,SAAS;EACX,CAAC;AACH,CAAC"}
@@ -33,6 +33,10 @@
33
33
  *
34
34
  * @slot icon - Slot for a custom icon (e.g. custom SVG). Only used when icon attribute is not set;
35
35
  * falls back to a placeholder icon when the slot is empty.
36
+ * @slot popup - A single `nldd-menu` or `nldd-popover` this button invokes. Slotting it auto-anchors
37
+ * the overlay to the button and toggles it on click (no id/anchor wiring). The overlay syncs
38
+ * `expanded` and `aria-haspopup` back onto the button. Add `expandable` for the disclosure chevron.
39
+ * Mirrors nldd-split-button; manual `popovertarget` wiring keeps working without a slotted overlay.
36
40
  *
37
41
  * @example
38
42
  * ```html
@@ -42,6 +46,7 @@
42
46
  * @fires click - When button is clicked (not fired when disabled)
43
47
  */
44
48
  import { LitElement } from 'lit';
49
+ import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
45
50
  import './../../content/icon/icon.js';
46
51
  import './../../status-and-feedback/activity-indicator/activity-indicator.js';
47
52
  export type Size = 'xs' | 'sm' | 'md' | 'lg';
@@ -132,6 +137,10 @@ export declare class NLDDIconButton extends NLDDIconButton_base {
132
137
  /** Whether an icon is present via attribute or slot. */
133
138
  private get _hasIcon();
134
139
  private _warnedA11y;
140
+ /** Shared wiring for an overlay slotted into `popup`: anchors it to this
141
+ * button and turns clicks into open/close. Not private: the template module
142
+ * binds its handlers. */
143
+ _popup: PopupAnchorController;
135
144
  updated(changedProperties: Map<string, unknown>): void;
136
145
  /** Resolves the effective rel value for link rendering. */
137
146
  _resolvedRel(): string;