@telperion/elements 5.0.5 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,5 +101,5 @@
101
101
  }
102
102
  }
103
103
  ],
104
- "generatedAt": "2026-05-07T11:08:00.479Z"
104
+ "generatedAt": "2026-05-07T11:49:07.309Z"
105
105
  }
package/README.md CHANGED
@@ -261,7 +261,7 @@ Framework-agnostic, form-associated button built with Lit. Behaves like the nati
261
261
  - `<tp-button>` &mdash; the button itself
262
262
 
263
263
  **Features:**
264
- - Three variants: `solid` &middot; `outline` &middot; `text`
264
+ - Four variants: `solid` &middot; `outline` &middot; `ghost` &middot; `text` (`ghost` is `outline` without the border)
265
265
  - Form-associated via `ElementInternals` &mdash; `type="submit"` calls `form.requestSubmit()`, `type="reset"` calls `form.reset()`, and `.form` mirrors `HTMLButtonElement.form`
266
266
  - Tab-selectable out of the box (`tabindex="0"`); `disabled` removes the button from the tab order, blocks click/keyboard activation, and sets `aria-disabled`
267
267
  - `Space` / `Enter` activation matching native button semantics
@@ -279,6 +279,7 @@ import "@telperion/elements/button";
279
279
  ```html
280
280
  <tp-button>Click me</tp-button>
281
281
  <tp-button variant="outline" color="success">Save</tp-button>
282
+ <tp-button variant="ghost" color="primary">Cancel</tp-button>
282
283
  <tp-button variant="text" color="danger" disabled>Delete</tp-button>
283
284
 
284
285
  <form>
@@ -23,7 +23,7 @@ var shadeMixerLitElement = require('../utils/shade-mixer-lit-element.cjs');
23
23
  *
24
24
  * @element tp-button
25
25
  *
26
- * @attr {"solid" | "outline" | "text"} [variant="solid"] - Visual treatment.
26
+ * @attr {"solid" | "outline" | "ghost" | "text"} [variant="solid"] - Visual treatment.
27
27
  * @attr {"button" | "submit" | "reset"} [type="button"] - Native button semantics.
28
28
  * @attr {boolean} [disabled=false] - Disables interaction and removes the button from the tab order.
29
29
  * @attr {string} [color="contrast"] - Palette token (`primary`, `secondary`, `success`, &hellip;) inherited from {@link ShadeMixerLitElement}.
@@ -50,71 +50,79 @@ exports.ButtonElement = class ButtonElement extends shadeMixerLitElement.ShadeMi
50
50
  static { this.formAssociated = true; }
51
51
  static { this.styles = (() => {
52
52
  const style = lit.css `
53
- tp-button {
54
- ${shadeMixerLitElement.ShadeMixerLitElement.shadedElementStyles}
55
- --tp-button-color: var(--tp-calc-element-color);
56
- --tp-button-contrast-color: var(--tp-calc-contrast-color);
57
- display: inline-block;
58
- border: 1px solid transparent;
59
- cursor: pointer;
60
- outline-offset: 1em;
61
- outline: 1px solid transparent;
62
- transform: scale(1);
63
- transition: all 0.18s ease;
64
- transition-property: background-color, color, outline-color, outline-offset, transform, border-width;
53
+ @layer base {
54
+ tp-button {
55
+ ${shadeMixerLitElement.ShadeMixerLitElement.shadedElementStyles}
56
+ --tp-button-color: var(--tp-calc-element-color);
57
+ --tp-button-contrast-color: var(--tp-calc-contrast-color);
58
+ display: inline-block;
59
+ border: 1px solid transparent;
60
+ cursor: pointer;
61
+ outline-offset: 1em;
62
+ outline: 1px solid transparent;
63
+ transform: scale(1);
64
+ transition: all 0.18s ease;
65
+ transition-property: background-color, color, outline-color, outline-offset, transform, border-width;
65
66
 
66
- &:active {
67
- transform: scale(0.98);
68
- }
67
+ &:active {
68
+ transform: scale(0.98);
69
+ }
69
70
 
70
- &:not(:active):focus {
71
- outline-color: var(--tp-button-color);
72
- outline-offset: 2px;
73
- }
71
+ &:not(:active):focus {
72
+ outline-color: var(--tp-button-color);
73
+ outline-offset: 2px;
74
+ }
74
75
 
75
- &[disabled] {
76
- --tp-button-color: color-mix(in xyz, var(--tp-calc-element-color) 50%, var(--tp-color-white) 50%);
77
- --tp-button-contrast-color: rgb(from var(--tp-calc-contrast-color) r g b / 50%);
78
- pointer-events: none;
79
- user-select: none;
80
- cursor: not-allowed;
81
- }
76
+ &[disabled] {
77
+ --tp-button-color: color-mix(in xyz, var(--tp-calc-element-color) 50%, var(--tp-color-white) 50%);
78
+ --tp-button-contrast-color: rgb(from var(--tp-calc-contrast-color) r g b / 50%);
79
+ pointer-events: none;
80
+ user-select: none;
81
+ cursor: not-allowed;
82
+ }
82
83
 
83
- &[variant="solid"],
84
- &[variant="outline"] {
85
- padding: 0.5em 1em;
86
- }
84
+ &[variant="solid"],
85
+ &[variant="outline"],
86
+ &[variant="ghost"] {
87
+ padding-inline: 1em;
88
+ padding-block: 0.5em;
89
+ }
87
90
 
88
- &[variant="solid"] {
89
- background-color: var(--tp-button-color);
90
- color: var(--tp-button-contrast-color);
91
+ &[variant="outline"],
92
+ &[variant="ghost"] {
93
+ color: var(--tp-button-color);
94
+ background-color: transparent;
91
95
 
92
- &:hover {
93
- background-color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
96
+ &:hover {
97
+ background-color: color-mix(in xyz, var(--tp-button-color) 10%, transparent 90%);
98
+ }
94
99
  }
95
- }
96
100
 
97
- &[variant="outline"] {
98
- color: var(--tp-button-color);
99
- border-color: var(--tp-button-color);
100
- background-color: transparent;
101
+ &[variant="solid"] {
102
+ background-color: var(--tp-button-color);
103
+ color: var(--tp-button-contrast-color);
101
104
 
102
- &:hover {
103
- background-color: color-mix(in xyz, var(--tp-button-color) 10%, transparent 90%);
105
+ &:hover {
106
+ background-color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
107
+ }
104
108
  }
105
109
 
106
- &:focus-visible {
107
- outline-color: transparent;
110
+ &[variant="outline"] {
111
+ border-color: var(--tp-button-color);
112
+
113
+ &:focus-visible {
114
+ outline-color: transparent;
115
+ }
108
116
  }
109
- }
110
117
 
111
- &[variant="text"] {
112
- color: var(--tp-button-color);
113
- background-color: transparent;
118
+ &[variant="text"] {
119
+ color: var(--tp-button-color);
120
+ background-color: transparent;
114
121
 
115
- &:hover {
116
- color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
117
- text-decoration: underline;
122
+ &:hover {
123
+ color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
124
+ text-decoration: underline;
125
+ }
118
126
  }
119
127
  }
120
128
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button.element.cjs","sources":["../../../../libs/elements/src/button/button.element.ts"],"sourcesContent":[null],"names":["ButtonElement","ShadeMixerLitElement","css","html","__decorate","property","customElement"],"mappings":";;;;;;;AA4BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;AAEUA,qBAAa,GAAnB,MAAM,aAAc,SAAQC,yCAAoB,CAAA;;aAE9C,IAAA,CAAA,cAAc,GAAG,IAAH,CAAQ;aACb,IAAA,CAAA,MAAM,GAAG,CAAC,MAAK;QAC7B,MAAM,KAAK,GAAGC,OAAG,CAAA,CAAA;;AAEX,QAAA,EAAAD,yCAAoB,CAAC,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmE7C;AAED,QAAA,QAAQ,CAAC,kBAAkB,GAAG,CAAC,GAAG,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAW,CAAC;AAEjF,QAAA,OAAO,KAAK;IACd,CAAC,GA3EqB,CA2EjB;AAoBI,IAAA,UAAU;AAEnB,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QApBT,IAAA,CAAA,OAAO,GAAkB,OAAO;AAEhC;;;;AAIG;QAEH,IAAA,CAAA,IAAI,GAAe,QAAQ;AAE3B;;;AAGG;QAEH,IAAA,CAAA,QAAQ,GAAG,KAAK;AAsChB,QAAA,IAAA,CAAA,YAAY,GAAG,CAAC,KAAiB,KAAU;AACzC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,KAAK,CAAC,cAAc,EAAE;gBACtB,KAAK,CAAC,wBAAwB,EAAE;gBAChC;YACF;AACA,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI;AACjC,YAAA,IAAI,CAAC,IAAI;gBAAE;AACX,YAAA,IAAI,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AAO,CAAC,OAA6B,EAAA;AACtD,QAAA,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AACxB,QAAA,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;AAC3B,YAAA,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,GAAG,CAAC;AACzD,YAAA,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO;QACjE;IACF;AAEA,IAAA,YAAY;AAeZ,IAAA,cAAc;IAQK,gBAAgB,GAAA;AACjC,QAAA,OAAO,IAAI;IACb;IAEmB,MAAM,GAAA;QACvB,OAAOE,QAAI,CAAA,CAAA,CAAE;IACf;;AAlFAC,gBAAA,CAAA;IADCC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACT,CAAA,EAAAL,qBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAQjCI,gBAAA,CAAA;IADCC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACd,CAAA,EAAAL,qBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAO5BI,gBAAA,CAAA;IADCC,sBAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAAL,qBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAhGNA,qBAAa,GAAAI,gBAAA,CAAA;IADzBE,2BAAa,CAAC,WAAW,CAAC;;AACd,CAAA,EAAAN,qBAAa,CAoKzB;;"}
1
+ {"version":3,"file":"button.element.cjs","sources":["../../../../libs/elements/src/button/button.element.ts"],"sourcesContent":[null],"names":["ButtonElement","ShadeMixerLitElement","css","html","__decorate","property","customElement"],"mappings":";;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EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,GAAG,CAAC;AACzD,YAAA,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO;QACjE;IACF;AAEA,IAAA,YAAY;AAeZ,IAAA,cAAc;IAQK,gBAAgB,GAAA;AACjC,QAAA,OAAO,IAAI;IACb;IAEmB,MAAM,GAAA;QACvB,OAAOE,QAAI,CAAA,CAAA,CAAE;IACf;;AAlFAC,gBAAA,CAAA;IADCC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACT,CAAA,EAAAL,qBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAQjCI,gBAAA,CAAA;IADCC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACd,CAAA,EAAAL,qBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAO5BI,gBAAA,CAAA;IADCC,sBAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAAL,qBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAxGNA,qBAAa,GAAAI,gBAAA,CAAA;IADzBE,2BAAa,CAAC,WAAW,CAAC;;AACd,CAAA,EAAAN,qBAAa,CA4KzB;;"}
@@ -21,7 +21,7 @@ import { ShadeMixerLitElement } from '../utils/shade-mixer-lit-element.js';
21
21
  *
22
22
  * @element tp-button
23
23
  *
24
- * @attr {"solid" | "outline" | "text"} [variant="solid"] - Visual treatment.
24
+ * @attr {"solid" | "outline" | "ghost" | "text"} [variant="solid"] - Visual treatment.
25
25
  * @attr {"button" | "submit" | "reset"} [type="button"] - Native button semantics.
26
26
  * @attr {boolean} [disabled=false] - Disables interaction and removes the button from the tab order.
27
27
  * @attr {string} [color="contrast"] - Palette token (`primary`, `secondary`, `success`, &hellip;) inherited from {@link ShadeMixerLitElement}.
@@ -48,71 +48,79 @@ let ButtonElement = class ButtonElement extends ShadeMixerLitElement {
48
48
  static { this.formAssociated = true; }
49
49
  static { this.styles = (() => {
50
50
  const style = css `
51
- tp-button {
52
- ${ShadeMixerLitElement.shadedElementStyles}
53
- --tp-button-color: var(--tp-calc-element-color);
54
- --tp-button-contrast-color: var(--tp-calc-contrast-color);
55
- display: inline-block;
56
- border: 1px solid transparent;
57
- cursor: pointer;
58
- outline-offset: 1em;
59
- outline: 1px solid transparent;
60
- transform: scale(1);
61
- transition: all 0.18s ease;
62
- transition-property: background-color, color, outline-color, outline-offset, transform, border-width;
51
+ @layer base {
52
+ tp-button {
53
+ ${ShadeMixerLitElement.shadedElementStyles}
54
+ --tp-button-color: var(--tp-calc-element-color);
55
+ --tp-button-contrast-color: var(--tp-calc-contrast-color);
56
+ display: inline-block;
57
+ border: 1px solid transparent;
58
+ cursor: pointer;
59
+ outline-offset: 1em;
60
+ outline: 1px solid transparent;
61
+ transform: scale(1);
62
+ transition: all 0.18s ease;
63
+ transition-property: background-color, color, outline-color, outline-offset, transform, border-width;
63
64
 
64
- &:active {
65
- transform: scale(0.98);
66
- }
65
+ &:active {
66
+ transform: scale(0.98);
67
+ }
67
68
 
68
- &:not(:active):focus {
69
- outline-color: var(--tp-button-color);
70
- outline-offset: 2px;
71
- }
69
+ &:not(:active):focus {
70
+ outline-color: var(--tp-button-color);
71
+ outline-offset: 2px;
72
+ }
72
73
 
73
- &[disabled] {
74
- --tp-button-color: color-mix(in xyz, var(--tp-calc-element-color) 50%, var(--tp-color-white) 50%);
75
- --tp-button-contrast-color: rgb(from var(--tp-calc-contrast-color) r g b / 50%);
76
- pointer-events: none;
77
- user-select: none;
78
- cursor: not-allowed;
79
- }
74
+ &[disabled] {
75
+ --tp-button-color: color-mix(in xyz, var(--tp-calc-element-color) 50%, var(--tp-color-white) 50%);
76
+ --tp-button-contrast-color: rgb(from var(--tp-calc-contrast-color) r g b / 50%);
77
+ pointer-events: none;
78
+ user-select: none;
79
+ cursor: not-allowed;
80
+ }
80
81
 
81
- &[variant="solid"],
82
- &[variant="outline"] {
83
- padding: 0.5em 1em;
84
- }
82
+ &[variant="solid"],
83
+ &[variant="outline"],
84
+ &[variant="ghost"] {
85
+ padding-inline: 1em;
86
+ padding-block: 0.5em;
87
+ }
85
88
 
86
- &[variant="solid"] {
87
- background-color: var(--tp-button-color);
88
- color: var(--tp-button-contrast-color);
89
+ &[variant="outline"],
90
+ &[variant="ghost"] {
91
+ color: var(--tp-button-color);
92
+ background-color: transparent;
89
93
 
90
- &:hover {
91
- background-color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
94
+ &:hover {
95
+ background-color: color-mix(in xyz, var(--tp-button-color) 10%, transparent 90%);
96
+ }
92
97
  }
93
- }
94
98
 
95
- &[variant="outline"] {
96
- color: var(--tp-button-color);
97
- border-color: var(--tp-button-color);
98
- background-color: transparent;
99
+ &[variant="solid"] {
100
+ background-color: var(--tp-button-color);
101
+ color: var(--tp-button-contrast-color);
99
102
 
100
- &:hover {
101
- background-color: color-mix(in xyz, var(--tp-button-color) 10%, transparent 90%);
103
+ &:hover {
104
+ background-color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
105
+ }
102
106
  }
103
107
 
104
- &:focus-visible {
105
- outline-color: transparent;
108
+ &[variant="outline"] {
109
+ border-color: var(--tp-button-color);
110
+
111
+ &:focus-visible {
112
+ outline-color: transparent;
113
+ }
106
114
  }
107
- }
108
115
 
109
- &[variant="text"] {
110
- color: var(--tp-button-color);
111
- background-color: transparent;
116
+ &[variant="text"] {
117
+ color: var(--tp-button-color);
118
+ background-color: transparent;
112
119
 
113
- &:hover {
114
- color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
115
- text-decoration: underline;
120
+ &:hover {
121
+ color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
122
+ text-decoration: underline;
123
+ }
116
124
  }
117
125
  }
118
126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button.element.js","sources":["../../../../libs/elements/src/button/button.element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AA4BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAoB,CAAA;;aAE9C,IAAA,CAAA,cAAc,GAAG,IAAH,CAAQ;aACb,IAAA,CAAA,MAAM,GAAG,CAAC,MAAK;QAC7B,MAAM,KAAK,GAAG,GAAG,CAAA,CAAA;;AAEX,QAAA,EAAA,oBAAoB,CAAC,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmE7C;AAED,QAAA,QAAQ,CAAC,kBAAkB,GAAG,CAAC,GAAG,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAW,CAAC;AAEjF,QAAA,OAAO,KAAK;IACd,CAAC,GA3EqB,CA2EjB;AAoBI,IAAA,UAAU;AAEnB,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QApBT,IAAA,CAAA,OAAO,GAAkB,OAAO;AAEhC;;;;AAIG;QAEH,IAAA,CAAA,IAAI,GAAe,QAAQ;AAE3B;;;AAGG;QAEH,IAAA,CAAA,QAAQ,GAAG,KAAK;AAsChB,QAAA,IAAA,CAAA,YAAY,GAAG,CAAC,KAAiB,KAAU;AACzC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,KAAK,CAAC,cAAc,EAAE;gBACtB,KAAK,CAAC,wBAAwB,EAAE;gBAChC;YACF;AACA,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI;AACjC,YAAA,IAAI,CAAC,IAAI;gBAAE;AACX,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK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;AACtD,QAAA,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AACxB,QAAA,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;AAC3B,YAAA,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,GAAG,CAAC;AACzD,YAAA,IAAI,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO;QACjE;IACF;AAEA,IAAA,YAAY;AAeZ,IAAA,cAAc;IAQK,gBAAgB,GAAA;AACjC,QAAA,OAAO,IAAI;IACb;IAEmB,MAAM,GAAA;QACvB,OAAO,IAAI,CAAA,CAAA,CAAE;IACf;;AAlFA,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACT,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAQjC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACd,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAO5B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAhGN,aAAa,GAAA,UAAA,CAAA;IADzB,aAAa,CAAC,WAAW,CAAC;;AACd,CAAA,EAAA,aAAa,CAoKzB;;;;"}
1
+ {"version":3,"file":"button.element.js","sources":["../../../../libs/elements/src/button/button.element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AA6BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCG;AAEI,IAAM,aAAa,GAAnB,MAAM,a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GAAG,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO;QACjE;IACF;AAEA,IAAA,YAAY;AAeZ,IAAA,cAAc;IAQK,gBAAgB,GAAA;AACjC,QAAA,OAAO,IAAI;IACb;IAEmB,MAAM,GAAA;QACvB,OAAO,IAAI,CAAA,CAAA,CAAE;IACf;;AAlFA,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACT,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAQjC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACd,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAO5B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAxGN,aAAa,GAAA,UAAA,CAAA;IADzB,aAAa,CAAC,WAAW,CAAC;;AACd,CAAA,EAAA,aAAa,CA4KzB;;;;"}
@@ -51,10 +51,11 @@ declare class ShadeMixerLitElement extends LitElement {
51
51
  * Visual treatment applied by `<tp-button>`.
52
52
  *
53
53
  * - `solid`: filled background using the resolved color.
54
- * - `outline`: transparent background with a colored border and text.
54
+ * - `outline`: transparent background with a colored border and text; subtle background tint on hover.
55
+ * - `ghost`: like `outline` but without the border &mdash; transparent background with colored text and the same subtle tint on hover.
55
56
  * - `text`: no background or border &mdash; just colored text with an underline on hover.
56
57
  */
57
- type ButtonVariant = "solid" | "outline" | "text";
58
+ type ButtonVariant = "solid" | "outline" | "text" | "ghost";
58
59
  /**
59
60
  * Mirrors the native HTML `<button>` `type` attribute.
60
61
  *
@@ -86,7 +87,7 @@ declare global {
86
87
  *
87
88
  * @element tp-button
88
89
  *
89
- * @attr {"solid" | "outline" | "text"} [variant="solid"] - Visual treatment.
90
+ * @attr {"solid" | "outline" | "ghost" | "text"} [variant="solid"] - Visual treatment.
90
91
  * @attr {"button" | "submit" | "reset"} [type="button"] - Native button semantics.
91
92
  * @attr {boolean} [disabled=false] - Disables interaction and removes the button from the tab order.
92
93
  * @attr {string} [color="contrast"] - Palette token (`primary`, `secondary`, `success`, &hellip;) inherited from {@link ShadeMixerLitElement}.
package/button/index.d.ts CHANGED
@@ -51,10 +51,11 @@ declare class ShadeMixerLitElement extends LitElement {
51
51
  * Visual treatment applied by `<tp-button>`.
52
52
  *
53
53
  * - `solid`: filled background using the resolved color.
54
- * - `outline`: transparent background with a colored border and text.
54
+ * - `outline`: transparent background with a colored border and text; subtle background tint on hover.
55
+ * - `ghost`: like `outline` but without the border &mdash; transparent background with colored text and the same subtle tint on hover.
55
56
  * - `text`: no background or border &mdash; just colored text with an underline on hover.
56
57
  */
57
- type ButtonVariant = "solid" | "outline" | "text";
58
+ type ButtonVariant = "solid" | "outline" | "text" | "ghost";
58
59
  /**
59
60
  * Mirrors the native HTML `<button>` `type` attribute.
60
61
  *
@@ -86,7 +87,7 @@ declare global {
86
87
  *
87
88
  * @element tp-button
88
89
  *
89
- * @attr {"solid" | "outline" | "text"} [variant="solid"] - Visual treatment.
90
+ * @attr {"solid" | "outline" | "ghost" | "text"} [variant="solid"] - Visual treatment.
90
91
  * @attr {"button" | "submit" | "reset"} [type="button"] - Native button semantics.
91
92
  * @attr {boolean} [disabled=false] - Disables interaction and removes the button from the tab order.
92
93
  * @attr {string} [color="contrast"] - Palette token (`primary`, `secondary`, `success`, &hellip;) inherited from {@link ShadeMixerLitElement}.
package/fesm/elements.mjs CHANGED
@@ -3430,7 +3430,7 @@ __decorate([
3430
3430
  *
3431
3431
  * @element tp-button
3432
3432
  *
3433
- * @attr {"solid" | "outline" | "text"} [variant="solid"] - Visual treatment.
3433
+ * @attr {"solid" | "outline" | "ghost" | "text"} [variant="solid"] - Visual treatment.
3434
3434
  * @attr {"button" | "submit" | "reset"} [type="button"] - Native button semantics.
3435
3435
  * @attr {boolean} [disabled=false] - Disables interaction and removes the button from the tab order.
3436
3436
  * @attr {string} [color="contrast"] - Palette token (`primary`, `secondary`, `success`, &hellip;) inherited from {@link ShadeMixerLitElement}.
@@ -3457,71 +3457,79 @@ let ButtonElement = class ButtonElement extends ShadeMixerLitElement {
3457
3457
  static { this.formAssociated = true; }
3458
3458
  static { this.styles = (() => {
3459
3459
  const style = css `
3460
- tp-button {
3461
- ${ShadeMixerLitElement.shadedElementStyles}
3462
- --tp-button-color: var(--tp-calc-element-color);
3463
- --tp-button-contrast-color: var(--tp-calc-contrast-color);
3464
- display: inline-block;
3465
- border: 1px solid transparent;
3466
- cursor: pointer;
3467
- outline-offset: 1em;
3468
- outline: 1px solid transparent;
3469
- transform: scale(1);
3470
- transition: all 0.18s ease;
3471
- transition-property: background-color, color, outline-color, outline-offset, transform, border-width;
3460
+ @layer base {
3461
+ tp-button {
3462
+ ${ShadeMixerLitElement.shadedElementStyles}
3463
+ --tp-button-color: var(--tp-calc-element-color);
3464
+ --tp-button-contrast-color: var(--tp-calc-contrast-color);
3465
+ display: inline-block;
3466
+ border: 1px solid transparent;
3467
+ cursor: pointer;
3468
+ outline-offset: 1em;
3469
+ outline: 1px solid transparent;
3470
+ transform: scale(1);
3471
+ transition: all 0.18s ease;
3472
+ transition-property: background-color, color, outline-color, outline-offset, transform, border-width;
3472
3473
 
3473
- &:active {
3474
- transform: scale(0.98);
3475
- }
3474
+ &:active {
3475
+ transform: scale(0.98);
3476
+ }
3476
3477
 
3477
- &:not(:active):focus {
3478
- outline-color: var(--tp-button-color);
3479
- outline-offset: 2px;
3480
- }
3478
+ &:not(:active):focus {
3479
+ outline-color: var(--tp-button-color);
3480
+ outline-offset: 2px;
3481
+ }
3481
3482
 
3482
- &[disabled] {
3483
- --tp-button-color: color-mix(in xyz, var(--tp-calc-element-color) 50%, var(--tp-color-white) 50%);
3484
- --tp-button-contrast-color: rgb(from var(--tp-calc-contrast-color) r g b / 50%);
3485
- pointer-events: none;
3486
- user-select: none;
3487
- cursor: not-allowed;
3488
- }
3483
+ &[disabled] {
3484
+ --tp-button-color: color-mix(in xyz, var(--tp-calc-element-color) 50%, var(--tp-color-white) 50%);
3485
+ --tp-button-contrast-color: rgb(from var(--tp-calc-contrast-color) r g b / 50%);
3486
+ pointer-events: none;
3487
+ user-select: none;
3488
+ cursor: not-allowed;
3489
+ }
3489
3490
 
3490
- &[variant="solid"],
3491
- &[variant="outline"] {
3492
- padding: 0.5em 1em;
3493
- }
3491
+ &[variant="solid"],
3492
+ &[variant="outline"],
3493
+ &[variant="ghost"] {
3494
+ padding-inline: 1em;
3495
+ padding-block: 0.5em;
3496
+ }
3494
3497
 
3495
- &[variant="solid"] {
3496
- background-color: var(--tp-button-color);
3497
- color: var(--tp-button-contrast-color);
3498
+ &[variant="outline"],
3499
+ &[variant="ghost"] {
3500
+ color: var(--tp-button-color);
3501
+ background-color: transparent;
3498
3502
 
3499
- &:hover {
3500
- background-color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
3503
+ &:hover {
3504
+ background-color: color-mix(in xyz, var(--tp-button-color) 10%, transparent 90%);
3505
+ }
3501
3506
  }
3502
- }
3503
3507
 
3504
- &[variant="outline"] {
3505
- color: var(--tp-button-color);
3506
- border-color: var(--tp-button-color);
3507
- background-color: transparent;
3508
+ &[variant="solid"] {
3509
+ background-color: var(--tp-button-color);
3510
+ color: var(--tp-button-contrast-color);
3508
3511
 
3509
- &:hover {
3510
- background-color: color-mix(in xyz, var(--tp-button-color) 10%, transparent 90%);
3512
+ &:hover {
3513
+ background-color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
3514
+ }
3511
3515
  }
3512
3516
 
3513
- &:focus-visible {
3514
- outline-color: transparent;
3517
+ &[variant="outline"] {
3518
+ border-color: var(--tp-button-color);
3519
+
3520
+ &:focus-visible {
3521
+ outline-color: transparent;
3522
+ }
3515
3523
  }
3516
- }
3517
3524
 
3518
- &[variant="text"] {
3519
- color: var(--tp-button-color);
3520
- background-color: transparent;
3525
+ &[variant="text"] {
3526
+ color: var(--tp-button-color);
3527
+ background-color: transparent;
3521
3528
 
3522
- &:hover {
3523
- color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
3524
- text-decoration: underline;
3529
+ &:hover {
3530
+ color: color-mix(in xyz, var(--tp-button-color) 80%, var(--tp-color-black) 20%);
3531
+ text-decoration: underline;
3532
+ }
3525
3533
  }
3526
3534
  }
3527
3535
  }