@mhmo91/schmancy 0.10.22 → 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.
- package/custom-elements.json +0 -106
- package/dist/agent/schmancy.agent.js +1833 -1950
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/agent/schmancy.manifest.json +1 -89
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/button-C1IMGS6M.js +446 -0
- package/dist/button-C1IMGS6M.js.map +1 -0
- package/dist/button-CWNbPPq-.cjs +120 -0
- package/dist/button-CWNbPPq-.cjs.map +1 -0
- package/dist/button.cjs +1 -120
- package/dist/button.js +2 -447
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/icons-DJuXwn8D.js +48 -0
- package/dist/icons-DJuXwn8D.js.map +1 -0
- package/dist/icons-oNRUCAEY.cjs +33 -0
- package/dist/icons-oNRUCAEY.cjs.map +1 -0
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/skills/overlay.md +4 -0
- package/dist/skills/schmancy/overlay.md +4 -0
- package/dist/{src-DhbXaOrS.js → src-B15R32Sp.js} +2 -2
- package/dist/{src-DhbXaOrS.js.map → src-B15R32Sp.js.map} +1 -1
- package/dist/{src-BoHs3kDi.cjs → src-BWQvtOOf.cjs} +1 -1
- package/dist/{src-BoHs3kDi.cjs.map → src-BWQvtOOf.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/package.json +1 -1
- package/skills/schmancy/overlay.md +4 -0
- package/src/icons/icon.ts +43 -293
- package/types/src/icons/icon.d.ts +0 -81
- package/dist/button.cjs.map +0 -1
- package/dist/button.js.map +0 -1
- package/dist/context-6oXCZmZN.js +0 -3
- package/dist/context-6oXCZmZN.js.map +0 -1
- package/dist/context-CRZeiCqq.cjs +0 -1
- package/dist/context-CRZeiCqq.cjs.map +0 -1
- package/dist/icons-BgUbHwy8.js +0 -169
- package/dist/icons-BgUbHwy8.js.map +0 -1
- package/dist/icons-morK4hHz.cjs +0 -52
- package/dist/icons-morK4hHz.cjs.map +0 -1
package/dist/button.js
CHANGED
|
@@ -1,447 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 };
|
package/dist/content-drawer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-
|
|
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;
|
package/dist/content-drawer.js
CHANGED
|
@@ -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-
|
|
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 };
|
|
@@ -203,7 +203,7 @@ The manifest already has everything needed; the package is just the JSON-RPC wra
|
|
|
203
203
|
|
|
204
204
|
**Problem.** `handover/agent-runtime-v1.md` had `<PENDING>` placeholders that we manually replaced with `0.9.13` after the first publish. Future handover docs will have the same issue.
|
|
205
205
|
|
|
206
|
-
**Fix.** A build step that substitutes `0.10.
|
|
206
|
+
**Fix.** A build step that substitutes `0.10.23` in `handover/**/*.md` against `package.json`'s `version` field on every build. `dist/handover/**/*.md` gets the rendered version; the source stays templated.
|
|
207
207
|
|
|
208
208
|
**Effort:** ~30 min (one sed step or a tiny script).
|
|
209
209
|
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
## The URLs you asked for
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
https://esm.sh/@mhmo91/schmancy/agent@0.10.
|
|
11
|
-
https://esm.sh/@mhmo91/schmancy/agent/manifest@0.10.
|
|
10
|
+
https://esm.sh/@mhmo91/schmancy/agent@0.10.23
|
|
11
|
+
https://esm.sh/@mhmo91/schmancy/agent/manifest@0.10.23
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
`0.9.13` is the first release containing `/agent`; every subsequent publish serves the same subpath. `npm view @mhmo91/schmancy version` always returns the current pin if you want to float forward.
|
|
@@ -20,7 +20,7 @@ One script tag. No bundler, no bare specifiers, no npm install.
|
|
|
20
20
|
```html
|
|
21
21
|
<!doctype html>
|
|
22
22
|
<script type="module">
|
|
23
|
-
import { $dialog, theme } from 'https://esm.sh/@mhmo91/schmancy/agent@0.10.
|
|
23
|
+
import { $dialog, theme } from 'https://esm.sh/@mhmo91/schmancy/agent@0.10.23';
|
|
24
24
|
</script>
|
|
25
25
|
<schmancy-theme root scheme="dark">
|
|
26
26
|
<schmancy-surface type="solid" fill="all">
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { c as e } from "./mixins-pU53qf6R.js";
|
|
2
|
+
import { a as t } from "./active-host-BP0zy_Y9.js";
|
|
3
|
+
import { customElement as n } from "lit/decorators.js";
|
|
4
|
+
import { css as r, html as i } from "lit";
|
|
5
|
+
var a = class extends e {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = [r`
|
|
8
|
+
:host {
|
|
9
|
+
font-family: 'Material Symbols Outlined';
|
|
10
|
+
font-size: 24px;
|
|
11
|
+
width: 1em;
|
|
12
|
+
height: 1em;
|
|
13
|
+
color: inherit;
|
|
14
|
+
font-variation-settings: inherit;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
place-items: center;
|
|
19
|
+
place-content: center;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
letter-spacing: normal;
|
|
23
|
+
text-transform: none;
|
|
24
|
+
user-select: none;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
-webkit-font-smoothing: antialiased;
|
|
28
|
+
text-rendering: optimizeLegibility;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
::slotted(svg) {
|
|
32
|
+
fill: currentColor;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
::slotted(*) {
|
|
36
|
+
height: 100%;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
`];
|
|
40
|
+
}
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
super.connectedCallback(), this.getAttribute("aria-hidden") === "false" ? this.removeAttribute("aria-hidden") : (this.setAttribute("aria-hidden", "true"), this.setAttribute("translate", "no"));
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return i`<slot></slot>`;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
a = t([n("schmancy-icon")], a);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-DJuXwn8D.js","names":[],"sources":["../src/icons/icon.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('schmancy-icon')\nexport default class SchmancyIcon extends SchmancyElement {\n\tstatic styles = [css`\n\t\t:host {\n\t\t\tfont-family: 'Material Symbols Outlined';\n\t\t\tfont-size: 24px;\n\t\t\twidth: 1em;\n\t\t\theight: 1em;\n\t\t\tcolor: inherit;\n\t\t\tfont-variation-settings: inherit;\n\t\t\tfont-weight: 400;\n\t\t\tdisplay: inline-flex;\n\t\t\tfont-style: normal;\n\t\t\tplace-items: center;\n\t\t\tplace-content: center;\n\t\t\tline-height: 1;\n\t\t\toverflow: hidden;\n\t\t\tletter-spacing: normal;\n\t\t\ttext-transform: none;\n\t\t\tuser-select: none;\n\t\t\twhite-space: nowrap;\n\t\t\tflex-shrink: 0;\n\t\t\t-webkit-font-smoothing: antialiased;\n\t\t\ttext-rendering: optimizeLegibility;\n\t\t}\n\n\t\t::slotted(svg) {\n\t\t\tfill: currentColor;\n\t\t}\n\n\t\t::slotted(*) {\n\t\t\theight: 100%;\n\t\t\twidth: 100%;\n\t\t}\n\t`]\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback()\n\t\tconst ariaHidden = this.getAttribute('aria-hidden')\n\t\tif (ariaHidden === 'false') {\n\t\t\tthis.removeAttribute('aria-hidden')\n\t\t\treturn\n\t\t}\n\t\tthis.setAttribute('aria-hidden', 'true')\n\t\tthis.setAttribute('translate', 'no')\n\t}\n\n\tprotected override render(): unknown {\n\t\treturn html`<slot></slot>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-icon': SchmancyIcon\n\t}\n}\n"],"mappings":";;;;AAKe,IAAA,IAAA,cAA2B,EAAA;CAAA;EAAA,KAAA,SACzB,CAAC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpB,oBAAA;EACC,MAAM,mBAAA,EACa,KAAK,aAAa,cAAA,KAClB,UAClB,KAAK,gBAAgB,cAAA,IAGtB,KAAK,aAAa,eAAe,OAAA,EACjC,KAAK,aAAa,aAAa,KAAA;;CAGhC,SAAA;EACC,OAAO,CAAI;;;AAAA,IAAA,EAAA,CAhDZ,EAAc,gBAAA,CAAA,EAAgB,EAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require(`./chunk-CncqDLb2.cjs`);const e=require(`./mixins-DTCHPEd4.cjs`),t=require(`./active-host-jH3iloCR.cjs`);let n=require(`lit/decorators.js`),r=require(`lit`);var i=class extends e.c{static{this.styles=[r.css`
|
|
2
|
+
:host {
|
|
3
|
+
font-family: 'Material Symbols Outlined';
|
|
4
|
+
font-size: 24px;
|
|
5
|
+
width: 1em;
|
|
6
|
+
height: 1em;
|
|
7
|
+
color: inherit;
|
|
8
|
+
font-variation-settings: inherit;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
place-items: center;
|
|
13
|
+
place-content: center;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
letter-spacing: normal;
|
|
17
|
+
text-transform: none;
|
|
18
|
+
user-select: none;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
-webkit-font-smoothing: antialiased;
|
|
22
|
+
text-rendering: optimizeLegibility;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
::slotted(svg) {
|
|
26
|
+
fill: currentColor;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::slotted(*) {
|
|
30
|
+
height: 100%;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
`]}connectedCallback(){super.connectedCallback(),this.getAttribute(`aria-hidden`)===`false`?this.removeAttribute(`aria-hidden`):(this.setAttribute(`aria-hidden`,`true`),this.setAttribute(`translate`,`no`))}render(){return r.html`<slot></slot>`}};i=t.a([(0,n.customElement)(`schmancy-icon`)],i);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons-oNRUCAEY.cjs","names":[],"sources":["../src/icons/icon.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('schmancy-icon')\nexport default class SchmancyIcon extends SchmancyElement {\n\tstatic styles = [css`\n\t\t:host {\n\t\t\tfont-family: 'Material Symbols Outlined';\n\t\t\tfont-size: 24px;\n\t\t\twidth: 1em;\n\t\t\theight: 1em;\n\t\t\tcolor: inherit;\n\t\t\tfont-variation-settings: inherit;\n\t\t\tfont-weight: 400;\n\t\t\tdisplay: inline-flex;\n\t\t\tfont-style: normal;\n\t\t\tplace-items: center;\n\t\t\tplace-content: center;\n\t\t\tline-height: 1;\n\t\t\toverflow: hidden;\n\t\t\tletter-spacing: normal;\n\t\t\ttext-transform: none;\n\t\t\tuser-select: none;\n\t\t\twhite-space: nowrap;\n\t\t\tflex-shrink: 0;\n\t\t\t-webkit-font-smoothing: antialiased;\n\t\t\ttext-rendering: optimizeLegibility;\n\t\t}\n\n\t\t::slotted(svg) {\n\t\t\tfill: currentColor;\n\t\t}\n\n\t\t::slotted(*) {\n\t\t\theight: 100%;\n\t\t\twidth: 100%;\n\t\t}\n\t`]\n\n\toverride connectedCallback(): void {\n\t\tsuper.connectedCallback()\n\t\tconst ariaHidden = this.getAttribute('aria-hidden')\n\t\tif (ariaHidden === 'false') {\n\t\t\tthis.removeAttribute('aria-hidden')\n\t\t\treturn\n\t\t}\n\t\tthis.setAttribute('aria-hidden', 'true')\n\t\tthis.setAttribute('translate', 'no')\n\t}\n\n\tprotected override render(): unknown {\n\t\treturn html`<slot></slot>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-icon': SchmancyIcon\n\t}\n}\n"],"mappings":"qKAKe,IAAA,EAAA,cAA2B,EAAA,CAAA,CAAA,OAAA,KAAA,OACzB,CAAC,EAAA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkCpB,mBAAA,CACC,MAAM,mBAAA,CACa,KAAK,aAAa,cAAA,GAClB,QAClB,KAAK,gBAAgB,cAAA,EAGtB,KAAK,aAAa,cAAe,OAAA,CACjC,KAAK,aAAa,YAAa,KAAA,EAGhC,QAAA,CACC,MAAO,GAAA,IAAI,kBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,eAhDE,gBAAA,CAAA,CAAgB,EAAA"}
|
package/dist/icons.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./icons-
|
|
1
|
+
require(`./icons-oNRUCAEY.cjs`);
|
package/dist/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./icons-
|
|
1
|
+
import "./icons-DJuXwn8D.js";
|