@openelement/ui 1.0.0-alpha.7 → 1.0.0-alpha.8
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/README.md +2 -1
- package/package.json +8 -3
- package/src/generated-manifest.json +2 -2
- package/src/open-badge.js +8 -23
- package/src/open-button.js +22 -43
- package/src/open-callout.js +12 -29
- package/src/open-card.js +7 -22
- package/src/open-code-block.js +7 -22
- package/src/open-dialog.js +9 -26
- package/src/open-dropdown.js +8 -25
- package/src/open-input.js +27 -48
- package/src/open-props-tokens.js +2 -2
- package/src/open-tabs.js +8 -23
- package/src/open-theme-toggle.js +8 -25
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ The reference site wires the same scripts through its Vite `inject` option.
|
|
|
89
89
|
the package directory with:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
|
|
92
|
+
pnpm run generate:ui-tokens
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
The drift gate for the same task runs as `ui-tokens:check`.
|
|
@@ -161,6 +161,7 @@ manifest; the per-component JSDoc is the source of truth for those.
|
|
|
161
161
|
@openelement/ui/open-props-tokens
|
|
162
162
|
@openelement/ui/open-props-tokens.js (legacy alias of the previous entry)
|
|
163
163
|
@openelement/ui/instance-state (per-element instance state store; tree-shakeable leaf)
|
|
164
|
+
@openelement/ui/manifest (generated WC package manifest; node-safe leaf)
|
|
164
165
|
```
|
|
165
166
|
|
|
166
167
|
The last entry is a compatibility alias kept for import maps written against the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openelement/ui",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"import": "./src/index.js",
|
|
11
11
|
"default": "./src/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./manifest": {
|
|
14
|
+
"types": "./src/manifest.d.ts",
|
|
15
|
+
"import": "./src/manifest.js",
|
|
16
|
+
"default": "./src/manifest.js"
|
|
17
|
+
},
|
|
13
18
|
"./open-button": {
|
|
14
19
|
"types": "./src/open-button.d.ts",
|
|
15
20
|
"import": "./src/open-button.js",
|
|
@@ -93,11 +98,11 @@
|
|
|
93
98
|
"experimental"
|
|
94
99
|
],
|
|
95
100
|
"engines": {
|
|
96
|
-
"node": ">=24"
|
|
101
|
+
"node": ">=24.2"
|
|
97
102
|
},
|
|
98
103
|
"sideEffects": false,
|
|
99
104
|
"peerDependenciesMeta": {},
|
|
100
105
|
"dependencies": {
|
|
101
|
-
"@openelement/element": "1.0.0-alpha.
|
|
106
|
+
"@openelement/element": "1.0.0-alpha.8"
|
|
102
107
|
}
|
|
103
108
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "GENERATED FILE - do not edit. Regenerate with:
|
|
2
|
+
"$comment": "GENERATED FILE - do not edit. Regenerate with: pnpm --filter @openelement/ui run generate:ui-manifest (drift gate: ui-manifest:check).",
|
|
3
3
|
"schemaVersion": "1.0.0",
|
|
4
4
|
"packageName": "@openelement/ui",
|
|
5
|
-
"version": "1.0.0-alpha.
|
|
5
|
+
"version": "1.0.0-alpha.8",
|
|
6
6
|
"description": "Open Props Web Component library for openElement",
|
|
7
7
|
"author": "openElement",
|
|
8
8
|
"license": "MIT",
|
package/src/open-badge.js
CHANGED
|
@@ -174,28 +174,12 @@ const __compiledProps = {
|
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
var OpenBadge = class extends OpenElement {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
static
|
|
183
|
-
this.__partProgram = __partProgram;
|
|
184
|
-
}
|
|
185
|
-
static {
|
|
186
|
-
this.__compiledProperties = __compiledProperties;
|
|
187
|
-
}
|
|
188
|
-
static {
|
|
189
|
-
this.__elementMetadata = __elementMetadata;
|
|
190
|
-
}
|
|
191
|
-
static {
|
|
192
|
-
this.props = __compiledProps;
|
|
193
|
-
}
|
|
194
|
-
static {
|
|
195
|
-
this.observedAttributes = __observedAttributes;
|
|
196
|
-
}
|
|
197
|
-
static {
|
|
198
|
-
this.styles = [recipe(`
|
|
177
|
+
static __partProgram = __partProgram;
|
|
178
|
+
static __compiledProperties = __compiledProperties;
|
|
179
|
+
static __elementMetadata = __elementMetadata;
|
|
180
|
+
static props = __compiledProps;
|
|
181
|
+
static observedAttributes = __observedAttributes;
|
|
182
|
+
static styles = [recipe(`
|
|
199
183
|
:host {
|
|
200
184
|
display: inline-flex;
|
|
201
185
|
vertical-align: middle;
|
|
@@ -248,7 +232,8 @@ var OpenBadge = class extends OpenElement {
|
|
|
248
232
|
padding-inline: var(--size-2);
|
|
249
233
|
}
|
|
250
234
|
`)];
|
|
251
|
-
|
|
235
|
+
tone = "neutral";
|
|
236
|
+
size = "md";
|
|
252
237
|
render() {
|
|
253
238
|
throw new Error("[open:compiled-element] open-badge is compiled to a Part Program; the runtime JSX render path is not available.");
|
|
254
239
|
}
|
package/src/open-button.js
CHANGED
|
@@ -1061,48 +1061,22 @@ const __compiledProps = {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
};
|
|
1063
1063
|
var OpenButton = class extends OpenElement {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
}
|
|
1079
|
-
static
|
|
1080
|
-
this.__elementMetadata = __elementMetadata;
|
|
1081
|
-
}
|
|
1082
|
-
static {
|
|
1083
|
-
this.props = __compiledProps;
|
|
1084
|
-
}
|
|
1085
|
-
static {
|
|
1086
|
-
this.observedAttributes = __observedAttributes;
|
|
1087
|
-
}
|
|
1088
|
-
static {
|
|
1089
|
-
this.delegatesFocus = true;
|
|
1090
|
-
}
|
|
1091
|
-
static {
|
|
1092
|
-
this.formAssociated = true;
|
|
1093
|
-
}
|
|
1094
|
-
static {
|
|
1095
|
-
this.__computedFields = {
|
|
1096
|
-
linkMode: (__s) => computed(() => __s.href.value !== ""),
|
|
1097
|
-
buttonMode: (__s) => computed(() => __s.href.value === ""),
|
|
1098
|
-
linkHref: (__s) => computed(() => __s.disabled.value || __s.href.value === "" ? null : __s.href.value),
|
|
1099
|
-
linkTarget: (__s) => computed(() => __s.target.value === "" ? null : __s.target.value),
|
|
1100
|
-
linkRel: (__s) => computed(() => __s.target.value === "_blank" ? "noopener noreferrer" : null),
|
|
1101
|
-
linkAriaDisabled: (__s) => computed(() => __s.disabled.value ? "true" : null)
|
|
1102
|
-
};
|
|
1103
|
-
}
|
|
1104
|
-
static {
|
|
1105
|
-
this.styles = [controlRecipe, recipe(`
|
|
1064
|
+
static __partProgram = __partProgram;
|
|
1065
|
+
static __compiledProperties = __compiledProperties;
|
|
1066
|
+
static __elementMetadata = __elementMetadata;
|
|
1067
|
+
static props = __compiledProps;
|
|
1068
|
+
static observedAttributes = __observedAttributes;
|
|
1069
|
+
static delegatesFocus = true;
|
|
1070
|
+
static formAssociated = true;
|
|
1071
|
+
static __computedFields = {
|
|
1072
|
+
linkMode: (__s) => computed(() => __s.href.value !== ""),
|
|
1073
|
+
buttonMode: (__s) => computed(() => __s.href.value === ""),
|
|
1074
|
+
linkHref: (__s) => computed(() => __s.disabled.value || __s.href.value === "" ? null : __s.href.value),
|
|
1075
|
+
linkTarget: (__s) => computed(() => __s.target.value === "" ? null : __s.target.value),
|
|
1076
|
+
linkRel: (__s) => computed(() => __s.target.value === "_blank" ? "noopener noreferrer" : null),
|
|
1077
|
+
linkAriaDisabled: (__s) => computed(() => __s.disabled.value ? "true" : null)
|
|
1078
|
+
};
|
|
1079
|
+
static styles = [controlRecipe, recipe(`
|
|
1106
1080
|
:host {
|
|
1107
1081
|
display: inline-block;
|
|
1108
1082
|
}
|
|
@@ -1218,7 +1192,12 @@ var OpenButton = class extends OpenElement {
|
|
|
1218
1192
|
pointer-events: none;
|
|
1219
1193
|
}
|
|
1220
1194
|
`)];
|
|
1221
|
-
|
|
1195
|
+
variant = "default";
|
|
1196
|
+
size = "md";
|
|
1197
|
+
disabled = false;
|
|
1198
|
+
href = "";
|
|
1199
|
+
target = "";
|
|
1200
|
+
type = "button";
|
|
1222
1201
|
onDsdHydrated() {
|
|
1223
1202
|
this.syncInternals();
|
|
1224
1203
|
}
|
package/src/open-callout.js
CHANGED
|
@@ -458,34 +458,16 @@ const __compiledProps = {
|
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
460
|
var OpenCallout = class extends OpenElement {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
static {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
static {
|
|
473
|
-
this.__elementMetadata = __elementMetadata;
|
|
474
|
-
}
|
|
475
|
-
static {
|
|
476
|
-
this.props = __compiledProps;
|
|
477
|
-
}
|
|
478
|
-
static {
|
|
479
|
-
this.observedAttributes = __observedAttributes;
|
|
480
|
-
}
|
|
481
|
-
static {
|
|
482
|
-
this.__computedFields = {
|
|
483
|
-
icon: (__s) => computed(() => CALLOUT_TYPE_ICONS[__s.type.value] ?? CALLOUT_TYPE_ICONS.info),
|
|
484
|
-
headerHidden: (__s) => computed(() => __s.label.value === "")
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
static {
|
|
488
|
-
this.styles = [recipe(`
|
|
461
|
+
static __partProgram = __partProgram;
|
|
462
|
+
static __compiledProperties = __compiledProperties;
|
|
463
|
+
static __elementMetadata = __elementMetadata;
|
|
464
|
+
static props = __compiledProps;
|
|
465
|
+
static observedAttributes = __observedAttributes;
|
|
466
|
+
static __computedFields = {
|
|
467
|
+
icon: (__s) => computed(() => CALLOUT_TYPE_ICONS[__s.type.value] ?? CALLOUT_TYPE_ICONS.info),
|
|
468
|
+
headerHidden: (__s) => computed(() => __s.label.value === "")
|
|
469
|
+
};
|
|
470
|
+
static styles = [recipe(`
|
|
489
471
|
:host { display: block; }
|
|
490
472
|
.callout {
|
|
491
473
|
padding: var(--size-3) var(--size-4);
|
|
@@ -513,7 +495,8 @@ var OpenCallout = class extends OpenElement {
|
|
|
513
495
|
}
|
|
514
496
|
.callout-body ::slotted(p) { margin: 0; }
|
|
515
497
|
`)];
|
|
516
|
-
|
|
498
|
+
type = "info";
|
|
499
|
+
label = "";
|
|
517
500
|
render() {
|
|
518
501
|
throw new Error("[open:compiled-element] open-callout is compiled to a Part Program; the runtime JSX render path is not available.");
|
|
519
502
|
}
|
package/src/open-card.js
CHANGED
|
@@ -170,27 +170,12 @@ const __compiledProps = { variant: {
|
|
|
170
170
|
attribute: "variant"
|
|
171
171
|
} };
|
|
172
172
|
var OpenCard = class extends OpenElement {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
static
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
static {
|
|
181
|
-
this.__compiledProperties = __compiledProperties;
|
|
182
|
-
}
|
|
183
|
-
static {
|
|
184
|
-
this.__elementMetadata = __elementMetadata;
|
|
185
|
-
}
|
|
186
|
-
static {
|
|
187
|
-
this.props = __compiledProps;
|
|
188
|
-
}
|
|
189
|
-
static {
|
|
190
|
-
this.observedAttributes = __observedAttributes;
|
|
191
|
-
}
|
|
192
|
-
static {
|
|
193
|
-
this.styles = [surfaceRecipe, recipe(`
|
|
173
|
+
static __partProgram = __partProgram;
|
|
174
|
+
static __compiledProperties = __compiledProperties;
|
|
175
|
+
static __elementMetadata = __elementMetadata;
|
|
176
|
+
static props = __compiledProps;
|
|
177
|
+
static observedAttributes = __observedAttributes;
|
|
178
|
+
static styles = [surfaceRecipe, recipe(`
|
|
194
179
|
:host {
|
|
195
180
|
display: block;
|
|
196
181
|
background:
|
|
@@ -247,7 +232,7 @@ var OpenCard = class extends OpenElement {
|
|
|
247
232
|
margin: 0;
|
|
248
233
|
}
|
|
249
234
|
`)];
|
|
250
|
-
|
|
235
|
+
variant = "";
|
|
251
236
|
render() {
|
|
252
237
|
throw new Error("[open:compiled-element] open-card is compiled to a Part Program; the runtime JSX render path is not available.");
|
|
253
238
|
}
|
package/src/open-code-block.js
CHANGED
|
@@ -190,27 +190,12 @@ const __compiledProps = { copyLabel: {
|
|
|
190
190
|
attribute: false
|
|
191
191
|
} };
|
|
192
192
|
var OpenCodeBlock = class extends OpenElement {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
static
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
static {
|
|
201
|
-
this.__compiledProperties = __compiledProperties;
|
|
202
|
-
}
|
|
203
|
-
static {
|
|
204
|
-
this.__elementMetadata = __elementMetadata;
|
|
205
|
-
}
|
|
206
|
-
static {
|
|
207
|
-
this.props = __compiledProps;
|
|
208
|
-
}
|
|
209
|
-
static {
|
|
210
|
-
this.observedAttributes = __observedAttributes;
|
|
211
|
-
}
|
|
212
|
-
static {
|
|
213
|
-
this.styles = [recipe(`
|
|
193
|
+
static __partProgram = __partProgram;
|
|
194
|
+
static __compiledProperties = __compiledProperties;
|
|
195
|
+
static __elementMetadata = __elementMetadata;
|
|
196
|
+
static props = __compiledProps;
|
|
197
|
+
static observedAttributes = __observedAttributes;
|
|
198
|
+
static styles = [recipe(`
|
|
214
199
|
:host {
|
|
215
200
|
display: block;
|
|
216
201
|
position: relative;
|
|
@@ -315,7 +300,7 @@ var OpenCodeBlock = class extends OpenElement {
|
|
|
315
300
|
.token.italic { font-style: italic; }
|
|
316
301
|
.token.entity { cursor: help; }
|
|
317
302
|
`)];
|
|
318
|
-
|
|
303
|
+
copyLabel = "Copy";
|
|
319
304
|
onDsdHydrated() {
|
|
320
305
|
this.tryHighlight();
|
|
321
306
|
}
|
package/src/open-dialog.js
CHANGED
|
@@ -527,31 +527,13 @@ const __compiledProps = {
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
var OpenDialog = class extends OpenElement {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
static
|
|
536
|
-
|
|
537
|
-
}
|
|
538
|
-
static {
|
|
539
|
-
this.__compiledProperties = __compiledProperties;
|
|
540
|
-
}
|
|
541
|
-
static {
|
|
542
|
-
this.__elementMetadata = __elementMetadata;
|
|
543
|
-
}
|
|
544
|
-
static {
|
|
545
|
-
this.props = __compiledProps;
|
|
546
|
-
}
|
|
547
|
-
static {
|
|
548
|
-
this.observedAttributes = __observedAttributes;
|
|
549
|
-
}
|
|
550
|
-
static {
|
|
551
|
-
this.delegatesFocus = true;
|
|
552
|
-
}
|
|
553
|
-
static {
|
|
554
|
-
this.styles = [overlayRecipe, recipe(`
|
|
530
|
+
static __partProgram = __partProgram;
|
|
531
|
+
static __compiledProperties = __compiledProperties;
|
|
532
|
+
static __elementMetadata = __elementMetadata;
|
|
533
|
+
static props = __compiledProps;
|
|
534
|
+
static observedAttributes = __observedAttributes;
|
|
535
|
+
static delegatesFocus = true;
|
|
536
|
+
static styles = [overlayRecipe, recipe(`
|
|
555
537
|
:host {
|
|
556
538
|
display: inline-block;
|
|
557
539
|
}
|
|
@@ -633,7 +615,8 @@ var OpenDialog = class extends OpenElement {
|
|
|
633
615
|
display: block;
|
|
634
616
|
}
|
|
635
617
|
`)];
|
|
636
|
-
|
|
618
|
+
open = false;
|
|
619
|
+
label = "";
|
|
637
620
|
onCsrRendered() {
|
|
638
621
|
this.syncOpenState();
|
|
639
622
|
}
|
package/src/open-dropdown.js
CHANGED
|
@@ -287,30 +287,13 @@ const __compiledProps = {
|
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
var OpenDropdown = class extends OpenElement {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
static
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
static {
|
|
298
|
-
this.__compiledProperties = __compiledProperties;
|
|
299
|
-
}
|
|
300
|
-
static {
|
|
301
|
-
this.__elementMetadata = __elementMetadata;
|
|
302
|
-
}
|
|
303
|
-
static {
|
|
304
|
-
this.props = __compiledProps;
|
|
305
|
-
}
|
|
306
|
-
static {
|
|
307
|
-
this.observedAttributes = __observedAttributes;
|
|
308
|
-
}
|
|
309
|
-
static {
|
|
310
|
-
this.__computedFields = { anchorStyle: (__s) => computed(() => __s.anchorName.value === "" ? "" : `position-anchor: ${__s.anchorName.value}`) };
|
|
311
|
-
}
|
|
312
|
-
static {
|
|
313
|
-
this.styles = [overlayRecipe, recipe(`
|
|
290
|
+
static __partProgram = __partProgram;
|
|
291
|
+
static __compiledProperties = __compiledProperties;
|
|
292
|
+
static __elementMetadata = __elementMetadata;
|
|
293
|
+
static props = __compiledProps;
|
|
294
|
+
static observedAttributes = __observedAttributes;
|
|
295
|
+
static __computedFields = { anchorStyle: (__s) => computed(() => __s.anchorName.value === "" ? "" : `position-anchor: ${__s.anchorName.value}`) };
|
|
296
|
+
static styles = [overlayRecipe, recipe(`
|
|
314
297
|
:host {
|
|
315
298
|
display: inline-block;
|
|
316
299
|
}
|
|
@@ -335,7 +318,7 @@ var OpenDropdown = class extends OpenElement {
|
|
|
335
318
|
font-family: var(--font-sans);
|
|
336
319
|
}
|
|
337
320
|
`)];
|
|
338
|
-
|
|
321
|
+
anchorName = "";
|
|
339
322
|
onDsdHydrated() {
|
|
340
323
|
this.syncAnchorName();
|
|
341
324
|
this.watchFocusReturn();
|
package/src/open-input.js
CHANGED
|
@@ -1680,53 +1680,24 @@ const __compiledProps = {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
};
|
|
1682
1682
|
var OpenInput = class extends OpenElement {
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
static {
|
|
1702
|
-
this.__elementMetadata = __elementMetadata;
|
|
1703
|
-
}
|
|
1704
|
-
static {
|
|
1705
|
-
this.props = __compiledProps;
|
|
1706
|
-
}
|
|
1707
|
-
static {
|
|
1708
|
-
this.observedAttributes = __observedAttributes;
|
|
1709
|
-
}
|
|
1710
|
-
static {
|
|
1711
|
-
this.delegatesFocus = true;
|
|
1712
|
-
}
|
|
1713
|
-
static {
|
|
1714
|
-
this.formAssociated = true;
|
|
1715
|
-
}
|
|
1716
|
-
static {
|
|
1717
|
-
this.__computedFields = {
|
|
1718
|
-
noLabel: (__s) => computed(() => __s.label.value === ""),
|
|
1719
|
-
noError: (__s) => computed(() => __s.error.value === ""),
|
|
1720
|
-
inputClass: (__s) => computed(() => __s.error.value === "" ? "control input" : "control input input--error"),
|
|
1721
|
-
idAttr: (__s) => computed(() => __s.inputId.value === "" ? null : __s.inputId.value),
|
|
1722
|
-
errorIdAttr: (__s) => computed(() => __s.inputId.value === "" ? null : `${__s.inputId.value}-error`),
|
|
1723
|
-
ariaInvalidAttr: (__s) => computed(() => __s.error.value === "" ? null : "true"),
|
|
1724
|
-
requiredMark: (__s) => computed(() => __s.required.value ? " *" : ""),
|
|
1725
|
-
describedByAttr: (__s) => computed(() => __s.error.value === "" || __s.inputId.value === "" ? null : `${__s.inputId.value}-error`)
|
|
1726
|
-
};
|
|
1727
|
-
}
|
|
1728
|
-
static {
|
|
1729
|
-
this.styles = [controlRecipe, recipe(`
|
|
1683
|
+
static __partProgram = __partProgram;
|
|
1684
|
+
static __compiledProperties = __compiledProperties;
|
|
1685
|
+
static __elementMetadata = __elementMetadata;
|
|
1686
|
+
static props = __compiledProps;
|
|
1687
|
+
static observedAttributes = __observedAttributes;
|
|
1688
|
+
static delegatesFocus = true;
|
|
1689
|
+
static formAssociated = true;
|
|
1690
|
+
static __computedFields = {
|
|
1691
|
+
noLabel: (__s) => computed(() => __s.label.value === ""),
|
|
1692
|
+
noError: (__s) => computed(() => __s.error.value === ""),
|
|
1693
|
+
inputClass: (__s) => computed(() => __s.error.value === "" ? "control input" : "control input input--error"),
|
|
1694
|
+
idAttr: (__s) => computed(() => __s.inputId.value === "" ? null : __s.inputId.value),
|
|
1695
|
+
errorIdAttr: (__s) => computed(() => __s.inputId.value === "" ? null : `${__s.inputId.value}-error`),
|
|
1696
|
+
ariaInvalidAttr: (__s) => computed(() => __s.error.value === "" ? null : "true"),
|
|
1697
|
+
requiredMark: (__s) => computed(() => __s.required.value ? " *" : ""),
|
|
1698
|
+
describedByAttr: (__s) => computed(() => __s.error.value === "" || __s.inputId.value === "" ? null : `${__s.inputId.value}-error`)
|
|
1699
|
+
};
|
|
1700
|
+
static styles = [controlRecipe, recipe(`
|
|
1730
1701
|
:host {
|
|
1731
1702
|
display: block;
|
|
1732
1703
|
}
|
|
@@ -1803,7 +1774,15 @@ var OpenInput = class extends OpenElement {
|
|
|
1803
1774
|
display: none;
|
|
1804
1775
|
}
|
|
1805
1776
|
`)];
|
|
1806
|
-
|
|
1777
|
+
type = "text";
|
|
1778
|
+
placeholder = "";
|
|
1779
|
+
label = "";
|
|
1780
|
+
name = "";
|
|
1781
|
+
value = "";
|
|
1782
|
+
disabled = false;
|
|
1783
|
+
required = false;
|
|
1784
|
+
error = "";
|
|
1785
|
+
inputId = "";
|
|
1807
1786
|
onDsdHydrated() {
|
|
1808
1787
|
this.activate();
|
|
1809
1788
|
}
|
package/src/open-props-tokens.js
CHANGED
|
@@ -2,11 +2,11 @@ import { StyleSheet } from "@openelement/element";
|
|
|
2
2
|
//#region src/open-props-tokens.ts
|
|
3
3
|
/**
|
|
4
4
|
* GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
|
|
5
|
-
* Regenerate with:
|
|
5
|
+
* Regenerate with: pnpm --filter @openelement/ui run generate:ui-tokens
|
|
6
6
|
*/
|
|
7
7
|
const OPEN_PROPS_TOKEN_CSS = `/**
|
|
8
8
|
* GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
|
|
9
|
-
* Regenerate with:
|
|
9
|
+
* Regenerate with: pnpm --filter @openelement/ui run generate:ui-tokens
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
package/src/open-tabs.js
CHANGED
|
@@ -209,28 +209,12 @@ const __compiledProps = {
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
var OpenTabs = class extends OpenElement {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
static
|
|
218
|
-
this.__partProgram = __partProgram;
|
|
219
|
-
}
|
|
220
|
-
static {
|
|
221
|
-
this.__compiledProperties = __compiledProperties;
|
|
222
|
-
}
|
|
223
|
-
static {
|
|
224
|
-
this.__elementMetadata = __elementMetadata;
|
|
225
|
-
}
|
|
226
|
-
static {
|
|
227
|
-
this.props = __compiledProps;
|
|
228
|
-
}
|
|
229
|
-
static {
|
|
230
|
-
this.observedAttributes = __observedAttributes;
|
|
231
|
-
}
|
|
232
|
-
static {
|
|
233
|
-
this.styles = [recipe(`
|
|
212
|
+
static __partProgram = __partProgram;
|
|
213
|
+
static __compiledProperties = __compiledProperties;
|
|
214
|
+
static __elementMetadata = __elementMetadata;
|
|
215
|
+
static props = __compiledProps;
|
|
216
|
+
static observedAttributes = __observedAttributes;
|
|
217
|
+
static styles = [recipe(`
|
|
234
218
|
:host {
|
|
235
219
|
display: block;
|
|
236
220
|
}
|
|
@@ -265,7 +249,8 @@ var OpenTabs = class extends OpenElement {
|
|
|
265
249
|
color: var(--text-secondary);
|
|
266
250
|
}
|
|
267
251
|
`)];
|
|
268
|
-
|
|
252
|
+
active = 0;
|
|
253
|
+
tabsId = "";
|
|
269
254
|
onDsdHydrated() {
|
|
270
255
|
this.activate();
|
|
271
256
|
}
|
package/src/open-theme-toggle.js
CHANGED
|
@@ -423,30 +423,13 @@ const __compiledProps = { theme: {
|
|
|
423
423
|
attribute: "theme"
|
|
424
424
|
} };
|
|
425
425
|
var OpenThemeToggle = class extends OpenElement {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
static
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
static {
|
|
434
|
-
this.__compiledProperties = __compiledProperties;
|
|
435
|
-
}
|
|
436
|
-
static {
|
|
437
|
-
this.__elementMetadata = __elementMetadata;
|
|
438
|
-
}
|
|
439
|
-
static {
|
|
440
|
-
this.props = __compiledProps;
|
|
441
|
-
}
|
|
442
|
-
static {
|
|
443
|
-
this.observedAttributes = __observedAttributes;
|
|
444
|
-
}
|
|
445
|
-
static {
|
|
446
|
-
this.delegatesFocus = true;
|
|
447
|
-
}
|
|
448
|
-
static {
|
|
449
|
-
this.styles = [recipe(`
|
|
426
|
+
static __partProgram = __partProgram;
|
|
427
|
+
static __compiledProperties = __compiledProperties;
|
|
428
|
+
static __elementMetadata = __elementMetadata;
|
|
429
|
+
static props = __compiledProps;
|
|
430
|
+
static observedAttributes = __observedAttributes;
|
|
431
|
+
static delegatesFocus = true;
|
|
432
|
+
static styles = [recipe(`
|
|
450
433
|
:host {
|
|
451
434
|
display: inline-block;
|
|
452
435
|
}
|
|
@@ -496,7 +479,7 @@ var OpenThemeToggle = class extends OpenElement {
|
|
|
496
479
|
display: block;
|
|
497
480
|
}
|
|
498
481
|
`)];
|
|
499
|
-
|
|
482
|
+
theme = "dark";
|
|
500
483
|
connectedCallback() {
|
|
501
484
|
super.connectedCallback();
|
|
502
485
|
this._requestAnimationFrame(() => this.initTheme());
|