@mhmo91/schmancy 0.10.21 → 0.10.23

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 (88) hide show
  1. package/custom-elements.json +0 -106
  2. package/dist/agent/{overlay.confirm-body-DXus8d-w.js → overlay.confirm-body-xfOh5Q28.js} +0 -4
  3. package/dist/agent/{overlay.confirm-body-DXus8d-w.js.map → overlay.confirm-body-xfOh5Q28.js.map} +1 -1
  4. package/dist/agent/schmancy.agent.js +1835 -1951
  5. package/dist/agent/schmancy.agent.js.map +1 -1
  6. package/dist/agent/schmancy.manifest.json +1 -89
  7. package/dist/badge.cjs +1 -1
  8. package/dist/badge.js +1 -1
  9. package/dist/button-C1IMGS6M.js +446 -0
  10. package/dist/button-C1IMGS6M.js.map +1 -0
  11. package/dist/button-CWNbPPq-.cjs +120 -0
  12. package/dist/button-CWNbPPq-.cjs.map +1 -0
  13. package/dist/button.cjs +1 -120
  14. package/dist/button.js +2 -447
  15. package/dist/content-drawer.cjs +1 -1
  16. package/dist/content-drawer.js +1 -1
  17. package/dist/{date-range-aPSmSBhk.js → date-range-CAqB-B0M.js} +1 -1
  18. package/dist/{date-range-aPSmSBhk.js.map → date-range-CAqB-B0M.js.map} +1 -1
  19. package/dist/{date-range-CsJfjbmi.cjs → date-range-VA1mi1N7.cjs} +1 -1
  20. package/dist/{date-range-CsJfjbmi.cjs.map → date-range-VA1mi1N7.cjs.map} +1 -1
  21. package/dist/date-range.cjs +1 -1
  22. package/dist/date-range.js +1 -1
  23. package/dist/{form-Bz5WamuM.js → form-B-Sm6u25.js} +1 -1
  24. package/dist/{form-Bz5WamuM.js.map → form-B-Sm6u25.js.map} +1 -1
  25. package/dist/{form-PioZDvzA.cjs → form-ha3df3K7.cjs} +1 -1
  26. package/dist/{form-PioZDvzA.cjs.map → form-ha3df3K7.cjs.map} +1 -1
  27. package/dist/form.cjs +1 -1
  28. package/dist/form.js +2 -2
  29. package/dist/handover/agent-runtime-followups.md +1 -1
  30. package/dist/handover/agent-runtime-v1.md +3 -3
  31. package/dist/icons-DJuXwn8D.js +48 -0
  32. package/dist/icons-DJuXwn8D.js.map +1 -0
  33. package/dist/icons-oNRUCAEY.cjs +33 -0
  34. package/dist/icons-oNRUCAEY.cjs.map +1 -0
  35. package/dist/icons.cjs +1 -1
  36. package/dist/icons.js +1 -1
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +7 -7
  39. package/dist/{menu-CxE16xur.js → menu-Csm6Fg88.js} +1 -1
  40. package/dist/{menu-CxE16xur.js.map → menu-Csm6Fg88.js.map} +1 -1
  41. package/dist/{menu-BOZ2iwed.cjs → menu-DBuZiPyW.cjs} +1 -1
  42. package/dist/{menu-BOZ2iwed.cjs.map → menu-DBuZiPyW.cjs.map} +1 -1
  43. package/dist/menu.cjs +1 -1
  44. package/dist/menu.js +1 -1
  45. package/dist/nav-drawer.cjs +1 -1
  46. package/dist/nav-drawer.js +1 -1
  47. package/dist/navigation-bar.cjs +1 -1
  48. package/dist/navigation-bar.js +1 -1
  49. package/dist/{overlay-D3mdWOLS.js → overlay-CAI2FAp7.js} +3 -2
  50. package/dist/{overlay-D3mdWOLS.js.map → overlay-CAI2FAp7.js.map} +1 -1
  51. package/dist/{overlay-B3gKPWhu.cjs → overlay-CpvmytrQ.cjs} +2 -1
  52. package/dist/{overlay-B3gKPWhu.cjs.map → overlay-CpvmytrQ.cjs.map} +1 -1
  53. package/dist/overlay.cjs +1 -1
  54. package/dist/{overlay.confirm-body-Czi6cMZq.js → overlay.confirm-body-Cq25CkTw.js} +0 -4
  55. package/dist/overlay.confirm-body-Cq25CkTw.js.map +1 -0
  56. package/dist/{overlay.confirm-body-yr0HzS_d.cjs → overlay.confirm-body-QD-5cj3_.cjs} +0 -4
  57. package/dist/overlay.confirm-body-QD-5cj3_.cjs.map +1 -0
  58. package/dist/overlay.js +3 -3
  59. package/dist/{overlay.service-DNs3AWqp.cjs → overlay.service-BG0bqPwJ.cjs} +1 -1
  60. package/dist/{overlay.service-DNs3AWqp.cjs.map → overlay.service-BG0bqPwJ.cjs.map} +1 -1
  61. package/dist/{overlay.service-BfZf3xoD.js → overlay.service-Bpjrhaxh.js} +2 -2
  62. package/dist/{overlay.service-BfZf3xoD.js.map → overlay.service-Bpjrhaxh.js.map} +1 -1
  63. package/dist/skills/overlay.md +4 -0
  64. package/dist/skills/schmancy/overlay.md +4 -0
  65. package/dist/{src-CHd-U-w4.js → src-B15R32Sp.js} +7 -7
  66. package/dist/{src-CHd-U-w4.js.map → src-B15R32Sp.js.map} +1 -1
  67. package/dist/{src-ggWtvpDr.cjs → src-BWQvtOOf.cjs} +1 -1
  68. package/dist/{src-ggWtvpDr.cjs.map → src-BWQvtOOf.cjs.map} +1 -1
  69. package/dist/teleport.cjs +1 -1
  70. package/dist/teleport.js +1 -1
  71. package/package.json +1 -1
  72. package/skills/schmancy/overlay.md +4 -0
  73. package/src/icons/icon.ts +43 -293
  74. package/src/overlay/overlay.component.ts +1 -0
  75. package/src/overlay/overlay.confirm-body.ts +0 -4
  76. package/types/src/icons/icon.d.ts +0 -81
  77. package/dist/button.cjs.map +0 -1
  78. package/dist/button.js.map +0 -1
  79. package/dist/context-6oXCZmZN.js +0 -3
  80. package/dist/context-6oXCZmZN.js.map +0 -1
  81. package/dist/context-CRZeiCqq.cjs +0 -1
  82. package/dist/context-CRZeiCqq.cjs.map +0 -1
  83. package/dist/icons-BgUbHwy8.js +0 -169
  84. package/dist/icons-BgUbHwy8.js.map +0 -1
  85. package/dist/icons-morK4hHz.cjs +0 -52
  86. package/dist/icons-morK4hHz.cjs.map +0 -1
  87. package/dist/overlay.confirm-body-Czi6cMZq.js.map +0 -1
  88. package/dist/overlay.confirm-body-yr0HzS_d.cjs.map +0 -1
package/dist/button.js CHANGED
@@ -1,447 +1,2 @@
1
- import { c as e } from "./mixins-pU53qf6R.js";
2
- import { a as t } from "./active-host-BP0zy_Y9.js";
3
- import { t as n } from "./magnetic-DxvoEz8_.js";
4
- import { t as r } from "./context-6oXCZmZN.js";
5
- import { provide as i } from "@lit/context";
6
- import { customElement as a, property as o, query as s, queryAssignedElements as c, state as l } from "lit/decorators.js";
7
- import { LitElement as u, css as d, html as f } from "lit";
8
- import { ifDefined as p } from "lit/directives/if-defined.js";
9
- import { when as m } from "lit/directives/when.js";
10
- var h = class extends e {
11
- static {
12
- this.styles = [d`:host{
13
- display: inline-flex;
14
- overflow: hidden;
15
- position: relative;
16
- touch-action: manipulation;
17
- border-radius: 1rem;
18
- transition:
19
- box-shadow 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
20
- transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
21
- }
22
- :host([width="full"]) {
23
- display: flex;
24
- width: 100%;
25
- }
26
- :host(:hover:not([disabled])) {
27
- box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--schmancy-sys-color-primary-default) 20%, transparent);
28
- }
29
- :host(:active:not([disabled])) {
30
- transform: scale(0.97);
31
- box-shadow: 0 1px 4px -2px color-mix(in srgb, var(--schmancy-sys-color-primary-default) 10%, transparent);
32
- transition-duration: 100ms;
33
- }
34
- @media (prefers-reduced-motion: reduce) {
35
- :host { transition: none; }
36
- :host(:hover:not([disabled])) { box-shadow: none; }
37
- :host(:active:not([disabled])) { transform: none; box-shadow: none; }
38
- }
39
- :host *,
40
- * {
41
- touch-action: manipulation;
42
- }`];
43
- }
44
- static {
45
- this.shadowRootOptions = {
46
- ...u.shadowRootOptions,
47
- mode: "open",
48
- delegatesFocus: !0
49
- };
50
- }
51
- static {
52
- this.formAssociated = !0;
53
- }
54
- constructor() {
55
- super(), this.variant = "text", this.width = "auto", this.size = "md", this.type = "button", this.disabled = !1;
56
- try {
57
- this.internals = this.attachInternals();
58
- } catch {
59
- this.internals = void 0;
60
- }
61
- this.addEventListener("click", (e) => {
62
- if (this.disabled) return e.preventDefault(), void e.stopImmediatePropagation();
63
- let t = this.internals?.form;
64
- t && (this.type === "submit" ? (e.preventDefault(), t.requestSubmit()) : this.type === "reset" && (e.preventDefault(), t.reset()));
65
- });
66
- }
67
- get form() {
68
- return this.internals?.form ?? null;
69
- }
70
- formDisabledCallback(e) {
71
- this.disabled = e;
72
- }
73
- connectedCallback() {
74
- if (super.connectedCallback(), this.type !== "submit") return;
75
- let e = this.closest("schmancy-form");
76
- if (!e) return;
77
- let t = () => {
78
- e.getAttribute("aria-busy") === "true" ? (this.setAttribute("aria-busy", "true"), this.internals?.states.add("submitting")) : (this.removeAttribute("aria-busy"), this.internals?.states.delete("submitting"));
79
- };
80
- t(), this._formBusyObserver = new MutationObserver(t), this._formBusyObserver.observe(e, {
81
- attributes: !0,
82
- attributeFilter: ["aria-busy"]
83
- });
84
- }
85
- disconnectedCallback() {
86
- this._formBusyObserver?.disconnect(), this._formBusyObserver = void 0, super.disconnectedCallback();
87
- }
88
- set ariaLabel(e) {
89
- let t = this._ariaLabel;
90
- this._ariaLabel = e, this.hasAttribute("aria-label") && this.removeAttribute("aria-label"), this.requestUpdate("ariaLabel", t);
91
- }
92
- get ariaLabel() {
93
- return this._ariaLabel;
94
- }
95
- focus(e) {
96
- this.nativeElement.focus(e);
97
- }
98
- blur() {
99
- this.nativeElement.blur();
100
- }
101
- get effectiveColor() {
102
- return this.color ? this.color : (this.variant === "tonal" ? "filled tonal" : this.variant) === "filled tonal" ? "secondary" : "primary";
103
- }
104
- get imgClasses() {
105
- return [{
106
- xxs: "w-3 h-3",
107
- xs: "w-4 h-4",
108
- sm: "w-5 h-5",
109
- md: "w-6 h-6",
110
- lg: "w-7 h-7"
111
- }[this.size], "object-contain"];
112
- }
113
- firstUpdated() {
114
- this.prefixImgs?.forEach((e) => {
115
- e.classList.add(...this.imgClasses), e.hasAttribute("alt") || e.setAttribute("alt", "");
116
- }), this.suffixImgs?.forEach((e) => {
117
- e.classList.add(...this.imgClasses), e.hasAttribute("alt") || e.setAttribute("alt", "");
118
- });
119
- }
120
- click() {
121
- this.dispatchEvent(new Event("click", {
122
- bubbles: !0,
123
- composed: !0
124
- }));
125
- }
126
- _preventDefault(e) {
127
- e.preventDefault(), e.stopPropagation();
128
- }
129
- render() {
130
- let e = this.variant === "tonal" ? "filled tonal" : this.variant, t = {
131
- "z-0 transition-all duration-200 relative rounded-2xl flex justify-center items-center outline-secondary-default focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 outline-hidden flex-1 overflow-hidden": !0,
132
- "h-6": this.size === "xxs",
133
- "h-8": this.size === "xs",
134
- "h-10": this.size === "sm",
135
- "h-12": this.size === "md",
136
- "h-14": this.size === "lg",
137
- "py-1 px-2": this.size === "xxs",
138
- "py-2 px-4": this.size === "xs",
139
- "py-2.5 px-5": this.size === "sm",
140
- "py-3 px-6": this.size === "md",
141
- "py-4 px-7": this.size === "lg",
142
- "text-[10px] font-medium leading-3": this.size === "xxs",
143
- "text-xs font-medium leading-4": this.size === "xs",
144
- "text-sm font-medium leading-5": this.size === "sm" || this.size === "md",
145
- "text-base font-medium leading-6": this.size === "lg",
146
- "tracking-[0.1px]": !0,
147
- "gap-0.5": this.size === "xxs",
148
- "gap-1": this.size === "xs",
149
- "gap-1.5": this.size === "sm",
150
- "gap-2": this.size === "md",
151
- "gap-2.5": this.size === "lg",
152
- "cursor-pointer": !this.disabled,
153
- "opacity-[0.38]": this.disabled,
154
- "hover:shadow-sm": !this.disabled && e === "elevated",
155
- "w-full tex-center": this.width === "full",
156
- "bg-surface-low shadow-xs": e === "elevated",
157
- "bg-transparent border-1 border-solid": e === "outlined",
158
- "border-outline": e === "outlined" && this.effectiveColor === "primary",
159
- "border-success-default": e === "outlined" && this.effectiveColor === "success",
160
- "border-error-default": e === "outlined" && this.effectiveColor === "error",
161
- "border-warning-default": e === "outlined" && this.effectiveColor === "warning",
162
- "border-info-default": e === "outlined" && this.effectiveColor === "info",
163
- "border-secondary-default": e === "outlined" && this.effectiveColor === "secondary",
164
- "border-outline-variant": e === "outlined" && this.effectiveColor === "neutral",
165
- "bg-primary-default": e === "filled" && this.effectiveColor === "primary",
166
- "bg-secondary-default": e === "filled" && this.effectiveColor === "secondary",
167
- "bg-success-default": e === "filled" && this.effectiveColor === "success",
168
- "bg-error-default": e === "filled" && this.effectiveColor === "error",
169
- "bg-warning-default": e === "filled" && this.effectiveColor === "warning",
170
- "bg-info-default": e === "filled" && this.effectiveColor === "info",
171
- "bg-surface-containerHighest": e === "filled" && this.effectiveColor === "neutral",
172
- "text-primary-on": e === "filled" && this.effectiveColor === "primary",
173
- "text-secondary-on": e === "filled" && this.effectiveColor === "secondary",
174
- "text-success-on": e === "filled" && this.effectiveColor === "success",
175
- "text-error-on": e === "filled" && this.effectiveColor === "error",
176
- "text-warning-on": e === "filled" && this.effectiveColor === "warning",
177
- "text-info-on": e === "filled" && this.effectiveColor === "info",
178
- "text-surface-on": e === "filled" && this.effectiveColor === "neutral",
179
- "bg-primary-container": e === "filled tonal" && this.effectiveColor === "primary",
180
- "bg-secondary-container": e === "filled tonal" && this.effectiveColor === "secondary",
181
- "bg-success-container": e === "filled tonal" && this.effectiveColor === "success",
182
- "bg-error-container": e === "filled tonal" && this.effectiveColor === "error",
183
- "bg-warning-container": e === "filled tonal" && this.effectiveColor === "warning",
184
- "bg-info-container": e === "filled tonal" && this.effectiveColor === "info",
185
- "bg-surface-containerLow": e === "filled tonal" && this.effectiveColor === "neutral",
186
- "text-primary-onContainer": e === "filled tonal" && this.effectiveColor === "primary",
187
- "text-secondary-onContainer": e === "filled tonal" && this.effectiveColor === "secondary",
188
- "text-success-onContainer": e === "filled tonal" && this.effectiveColor === "success",
189
- "text-error-onContainer": e === "filled tonal" && this.effectiveColor === "error",
190
- "text-warning-onContainer": e === "filled tonal" && this.effectiveColor === "warning",
191
- "text-info-onContainer": e === "filled tonal" && this.effectiveColor === "info",
192
- "text-primary-default": (e === "text" || e === "elevated" || e === "outlined") && this.effectiveColor === "primary",
193
- "text-secondary-default": (e === "text" || e === "elevated" || e === "outlined") && this.effectiveColor === "secondary",
194
- "text-success-default": (e === "text" || e === "elevated" || e === "outlined") && this.effectiveColor === "success",
195
- "text-error-default": (e === "text" || e === "elevated" || e === "outlined") && this.effectiveColor === "error",
196
- "text-warning-default": (e === "text" || e === "elevated" || e === "outlined") && this.effectiveColor === "warning",
197
- "text-info-default": (e === "text" || e === "elevated" || e === "outlined") && this.effectiveColor === "info",
198
- "text-surface-onVariant": (e === "text" || e === "elevated" || e === "outlined" || e === "filled tonal") && this.effectiveColor === "neutral"
199
- }, r = {
200
- "absolute inset-0 hover:opacity-[0.08] z-0 rounded-2xl": !0,
201
- "focus-visible:opacity-[0.10]": !0,
202
- "active:opacity-[0.10]": !0,
203
- "hover:bg-primary-on": e === "filled" && this.effectiveColor === "primary",
204
- "hover:bg-secondary-on": e === "filled" && this.effectiveColor === "secondary",
205
- "hover:bg-success-on": e === "filled" && this.effectiveColor === "success",
206
- "hover:bg-error-on": e === "filled" && this.effectiveColor === "error",
207
- "hover:bg-warning-on": e === "filled" && this.effectiveColor === "warning",
208
- "hover:bg-info-on": e === "filled" && this.effectiveColor === "info",
209
- "hover:bg-surface-on": e === "filled" && this.effectiveColor === "neutral",
210
- "hover:bg-primary-default": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "primary",
211
- "hover:bg-secondary-default": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "secondary",
212
- "hover:bg-success-default": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "success",
213
- "hover:bg-error-default": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "error",
214
- "hover:bg-warning-default": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "warning",
215
- "hover:bg-info-default": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "info",
216
- "hover:bg-surface-onVariant": (e === "outlined" || e === "elevated" || e === "text") && this.effectiveColor === "neutral",
217
- "hover:bg-primary-container": e === "filled tonal" && this.effectiveColor === "primary",
218
- "hover:bg-secondary-container": e === "filled tonal" && this.effectiveColor === "secondary",
219
- "hover:bg-success-container": e === "filled tonal" && this.effectiveColor === "success",
220
- "hover:bg-error-container": e === "filled tonal" && this.effectiveColor === "error",
221
- "hover:bg-warning-container": e === "filled tonal" && this.effectiveColor === "warning",
222
- "hover:bg-info-container": e === "filled tonal" && this.effectiveColor === "info",
223
- "hover:bg-surface-containerLow": e === "filled tonal" && this.effectiveColor === "neutral"
224
- };
225
- return this.href ? f`
226
- <a
227
- ${n({
228
- strength: 3,
229
- radius: 60
230
- })}
231
- part="base"
232
- href=${p(this.disabled ? void 0 : this.href)}
233
- aria-label=${p(this.ariaLabel)}
234
- class="${this.classMap(t)}"
235
- tabindex=${this.disabled ? "-1" : "0"}
236
- aria-disabled=${this.disabled}
237
- @click=${this.disabled ? this._preventDefault : void 0}
238
- >
239
- ${m(!this.disabled, () => f`<div class="${this.classMap(r)}"></div>`)}
240
- <slot name="prefix"></slot>
241
- <slot></slot>
242
- <slot name="suffix"></slot>
243
- </a>
244
- ` : f`
245
- <button
246
- ${n({
247
- strength: 3,
248
- radius: 60
249
- })}
250
- part="base"
251
- aria-label=${p(this.ariaLabel)}
252
- ?disabled=${this.disabled}
253
- class="${this.classMap(t)}"
254
- type=${p(this.type)}
255
- tabindex=${p(this.disabled ? "-1" : void 0)}
256
- >
257
- ${m(!this.disabled, () => f`<div class="${this.classMap(r)}"></div>`)}
258
- <slot name="prefix"></slot>
259
- <slot></slot>
260
- <slot name="suffix"></slot>
261
- </button>
262
- `;
263
- }
264
- };
265
- t([s("[part=\"base\"]", !0)], h.prototype, "nativeElement", void 0), t([o({
266
- reflect: !0,
267
- type: String
268
- })], h.prototype, "variant", void 0), t([o({
269
- reflect: !0,
270
- type: String
271
- })], h.prototype, "color", void 0), t([o({ reflect: !0 })], h.prototype, "width", void 0), t([i({ context: r }), o({ type: String })], h.prototype, "size", void 0), t([o({
272
- reflect: !0,
273
- type: String
274
- })], h.prototype, "type", void 0), t([o()], h.prototype, "href", void 0), t([o({
275
- type: Boolean,
276
- reflect: !0
277
- })], h.prototype, "disabled", void 0), t([o({ attribute: "aria-label" })], h.prototype, "ariaLabel", null), t([c({
278
- slot: "prefix",
279
- flatten: !0,
280
- selector: "img"
281
- })], h.prototype, "prefixImgs", void 0), t([c({
282
- slot: "suffix",
283
- flatten: !0,
284
- selector: "img"
285
- })], h.prototype, "suffixImgs", void 0), h = t([a("schmancy-button")], h);
286
- var g = class extends e {
287
- constructor(...e) {
288
- super(...e), this.size = "md", this.variant = "text", this.width = "auto", this.type = "button", this.disabled = !1, this.text = !1;
289
- }
290
- static {
291
- this.styles = [d`
292
- :host {
293
- display: inline-flex;
294
- border-radius: 9999px;
295
- transition:
296
- box-shadow 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
297
- transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
298
- }
299
- :host([width="full"]) {
300
- display: flex;
301
- width: 100%;
302
- }
303
- :host(:hover:not([disabled])) {
304
- box-shadow: 0 2px 12px -4px color-mix(in srgb, var(--schmancy-sys-color-primary-default) 18%, transparent);
305
- }
306
- :host(:active:not([disabled])) {
307
- transform: scale(0.92);
308
- box-shadow: none;
309
- transition-duration: 100ms;
310
- }
311
- @media (prefers-reduced-motion: reduce) {
312
- :host { transition: none; }
313
- :host(:hover:not([disabled])) { box-shadow: none; }
314
- :host(:active:not([disabled])) { transform: none; box-shadow: none; }
315
- }
316
- `];
317
- }
318
- static {
319
- this.shadowRootOptions = {
320
- ...u.shadowRootOptions,
321
- mode: "open",
322
- delegatesFocus: !0
323
- };
324
- }
325
- connectedCallback() {
326
- super.connectedCallback(), this._captureIconFromChildren();
327
- }
328
- _captureIconFromChildren() {
329
- if (!this.icon && !this.text) {
330
- for (let e of this.childNodes) if (e.nodeType === Node.TEXT_NODE) {
331
- let t = e.textContent?.trim();
332
- if (t) return void (this._capturedIcon = t);
333
- }
334
- }
335
- }
336
- _handleSlotChange(e) {
337
- if (this.icon || this.text) return;
338
- let t = e.target.assignedNodes({ flatten: !0 });
339
- for (let e of t) if (e.nodeType === Node.TEXT_NODE) {
340
- let t = e.textContent?.trim();
341
- if (t) return void (this._capturedIcon = t);
342
- }
343
- }
344
- set ariaLabel(e) {
345
- let t = this._ariaLabel;
346
- this._ariaLabel = e, this.hasAttribute("aria-label") && this.removeAttribute("aria-label"), this.requestUpdate("ariaLabel", t);
347
- }
348
- get ariaLabel() {
349
- return this._ariaLabel;
350
- }
351
- focus(e) {
352
- this.nativeElement.focus(e);
353
- }
354
- blur() {
355
- this.nativeElement.blur();
356
- }
357
- click() {
358
- this.dispatchEvent(new Event("click", {
359
- bubbles: !0,
360
- composed: !0
361
- }));
362
- }
363
- _preventDefault(e) {
364
- e.preventDefault(), e.stopPropagation();
365
- }
366
- firstUpdated(e) {}
367
- render() {
368
- let e = this.variant === "tonal" ? "filled tonal" : this.variant, t = {
369
- "z-0 h-full transition-all duration-200 relative rounded-full inline-flex justify-center items-center gap-[8px] outline-secondary-default focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 outline-hidden": !0,
370
- "opacity-[0.38]": this.disabled,
371
- "cursor-pointer": !this.disabled,
372
- "hover:shadow-xs": !this.disabled && (e === "outlined" || e === "text" || e === "filled" || e === "filled tonal"),
373
- "hover:shadow-sm": !this.disabled && e === "elevated",
374
- "flex-1 text-center": this.width === "full",
375
- "bg-surface-low text-primary-default shadow-xs": e === "elevated",
376
- "bg-transparent text-primary-default border-1 border-outline": e === "outlined",
377
- "bg-primary-default text-primary-on": e === "filled",
378
- "bg-secondary-container text-secondary-onContainer": e === "filled tonal",
379
- "text-primary-default": e === "text",
380
- "p-1.5": this.size === "xxs",
381
- "p-2": this.size === "xs",
382
- "p-2.5": this.size === "sm",
383
- "p-3": this.size === "md",
384
- "p-4": this.size === "lg",
385
- "p-5": this.size === "xl"
386
- }, r = {
387
- "hover:opacity-[0.08] rounded-full z-0": !0,
388
- "hover:bg-primary-on": e === "filled",
389
- "hover:bg-primary-default": e === "outlined" || e === "elevated" || e === "text",
390
- "hover:bg-secondary-container": e === "filled tonal"
391
- }, i = this.size === "xxs" ? "12px" : this.size === "xs" ? "16px" : this.size === "sm" ? "20px" : this.size === "md" || this.size === "lg" ? "24px" : "40px";
392
- return this.href ? f`
393
- <a
394
- ${n({
395
- strength: 3,
396
- radius: 50
397
- })}
398
- part="base"
399
- href=${p(this.disabled ? void 0 : this.href)}
400
- aria-label=${p(this.ariaLabel)}
401
- class="${this.classMap(t)}"
402
- tabindex=${this.disabled ? "-1" : "0"}
403
- aria-disabled=${this.disabled}
404
- @click=${this.disabled ? this._preventDefault : void 0}
405
- >
406
- ${m(!this.disabled, () => f`<div class="absolute inset-0 ${this.classMap(r)}"></div>`)}
407
- ${this.text ? f`<slot></slot>` : f`
408
- <slot style="display:none" @slotchange=${this._handleSlotChange}></slot>
409
- <schmancy-icon size=${i} icon=${p(this.icon || this._capturedIcon)}></schmancy-icon>
410
- `}
411
- </a>
412
- ` : f`
413
- <button
414
- ${n({
415
- strength: 3,
416
- radius: 50
417
- })}
418
- part="base"
419
- aria-label=${p(this.ariaLabel)}
420
- ?disabled=${this.disabled}
421
- class="${this.classMap(t)}"
422
- type=${p(this.type)}
423
- tabindex=${p(this.disabled ? "-1" : void 0)}
424
- >
425
- ${m(!this.disabled, () => f`<div class="absolute inset-0 ${this.classMap(r)}"></div>`)}
426
- ${this.text ? f`<slot></slot>` : f`
427
- <slot style="display:none" @slotchange=${this._handleSlotChange}></slot>
428
- <schmancy-icon size=${i} icon=${p(this.icon || this._capturedIcon)}></schmancy-icon>
429
- `}
430
- </button>
431
- `;
432
- }
433
- };
434
- t([s("[part=\"base\"]", !0)], g.prototype, "nativeElement", void 0), t([o({ type: String })], g.prototype, "size", void 0), t([o({
435
- reflect: !0,
436
- type: String
437
- })], g.prototype, "variant", void 0), t([o({ reflect: !0 })], g.prototype, "width", void 0), t([o({
438
- reflect: !0,
439
- type: String
440
- })], g.prototype, "type", void 0), t([o()], g.prototype, "href", void 0), t([o({
441
- type: Boolean,
442
- reflect: !0
443
- })], g.prototype, "disabled", void 0), t([o({
444
- type: Boolean,
445
- reflect: !0
446
- })], g.prototype, "text", void 0), t([o({ type: String })], g.prototype, "icon", void 0), t([l()], g.prototype, "_capturedIcon", void 0), t([o({ attribute: "aria-label" })], g.prototype, "ariaLabel", null), g = t([a("schmancy-icon-button")], g);
447
- export { h as SchmancyButton, g as SchmnacyIconButton };
1
+ import { n as e, t } from "./button-C1IMGS6M.js";
2
+ export { e as SchmancyButton, t as SchmnacyIconButton };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-ggWtvpDr.cjs`);Object.defineProperty(exports,`SchmancyContentDrawer`,{enumerable:!0,get:function(){return e._}}),exports.SchmancyContentDrawerID=e.v,Object.defineProperty(exports,`SchmancyContentDrawerMain`,{enumerable:!0,get:function(){return e.g}}),exports.SchmancyContentDrawerMaxHeight=e.y,exports.SchmancyContentDrawerMinWidth=e.b,Object.defineProperty(exports,`SchmancyContentDrawerSheet`,{enumerable:!0,get:function(){return e.h}}),exports.SchmancyContentDrawerSheetMode=e.x,exports.SchmancyContentDrawerSheetState=e.S,exports.schmancyContentDrawer=e.C;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-BWQvtOOf.cjs`);Object.defineProperty(exports,`SchmancyContentDrawer`,{enumerable:!0,get:function(){return e._}}),exports.SchmancyContentDrawerID=e.v,Object.defineProperty(exports,`SchmancyContentDrawerMain`,{enumerable:!0,get:function(){return e.g}}),exports.SchmancyContentDrawerMaxHeight=e.y,exports.SchmancyContentDrawerMinWidth=e.b,Object.defineProperty(exports,`SchmancyContentDrawerSheet`,{enumerable:!0,get:function(){return e.h}}),exports.SchmancyContentDrawerSheetMode=e.x,exports.SchmancyContentDrawerSheetState=e.S,exports.schmancyContentDrawer=e.C;
@@ -1,2 +1,2 @@
1
- import { C as e, S as t, _ as n, b as r, g as i, h as a, v as o, x as s, y as c } from "./src-CHd-U-w4.js";
1
+ import { C as e, S as t, _ as n, b as r, g as i, h as a, v as o, x as s, y as c } from "./src-B15R32Sp.js";
2
2
  export { n as SchmancyContentDrawer, o as SchmancyContentDrawerID, i as SchmancyContentDrawerMain, c as SchmancyContentDrawerMaxHeight, r as SchmancyContentDrawerMinWidth, a as SchmancyContentDrawerSheet, s as SchmancyContentDrawerSheetMode, t as SchmancyContentDrawerSheetState, e as schmancyContentDrawer };
@@ -1,7 +1,7 @@
1
1
  import { r as e, t } from "./chunk-BM5alsTp.js";
2
2
  import { c as n, o as r } from "./mixins-pU53qf6R.js";
3
3
  import { a as i } from "./active-host-BP0zy_Y9.js";
4
- import { o as a } from "./overlay.service-BfZf3xoD.js";
4
+ import { o as a } from "./overlay.service-Bpjrhaxh.js";
5
5
  import { fromEvent as o, takeUntil as s, timer as c } from "rxjs";
6
6
  import { customElement as l, property as u, state as d } from "lit/decorators.js";
7
7
  import { html as f } from "lit";