@openelement/ui 0.44.0-beta.2.1 → 1.0.0-alpha.1
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 +38 -10
- package/THIRD_PARTY_NOTICES.md +45 -0
- package/package.json +20 -4
- package/src/component-recipes.js +0 -1
- package/src/generated-manifest.json +2 -1
- package/src/index.d.ts +42 -0
- package/src/index.js +2 -3
- package/src/instance-state.js +1 -2
- package/src/manifest.d.ts +9 -0
- package/src/manifest.js +4 -3
- package/src/open-badge.d.ts +185 -0
- package/src/open-badge.js +0 -92
- package/src/open-button.d.ts +961 -0
- package/src/open-button.js +8 -487
- package/src/open-callout.d.ts +402 -0
- package/src/open-callout.js +0 -245
- package/src/open-card.d.ts +168 -0
- package/src/open-card.js +0 -126
- package/src/open-code-block.d.ts +192 -0
- package/src/open-code-block.js +13 -133
- package/src/open-dialog.d.ts +454 -0
- package/src/open-dialog.js +0 -347
- package/src/open-dropdown.d.ts +282 -0
- package/src/open-dropdown.js +18 -203
- package/src/open-input.d.ts +1497 -0
- package/src/open-input.js +0 -772
- package/src/open-props-tokens.d.ts +9 -0
- package/src/open-props-tokens.js +140 -81
- package/src/open-tabs.d.ts +218 -0
- package/src/open-tabs.js +0 -143
- package/src/open-theme-toggle.d.ts +312 -0
- package/src/open-theme-toggle.js +5 -296
- package/src/register.d.ts +1 -0
- package/src/register.js +0 -1
- package/src/{open-props-tokens.css → semantic-tokens.css} +97 -70
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { OpenElement, type StyleSheetLike } from '@openelement/element';
|
|
2
|
+
declare const __partProgram: {
|
|
3
|
+
readonly "version": number;
|
|
4
|
+
readonly "tag": string;
|
|
5
|
+
readonly "root": {
|
|
6
|
+
readonly "id": string;
|
|
7
|
+
readonly "kind": string;
|
|
8
|
+
readonly "nodes": readonly [string];
|
|
9
|
+
};
|
|
10
|
+
readonly "template": readonly [{
|
|
11
|
+
readonly "k": string;
|
|
12
|
+
readonly "id": string;
|
|
13
|
+
readonly "tag": string;
|
|
14
|
+
readonly "attrs": readonly [readonly [string, string]];
|
|
15
|
+
readonly "children": readonly [{
|
|
16
|
+
readonly "k": string;
|
|
17
|
+
readonly "id": string;
|
|
18
|
+
readonly "tag": string;
|
|
19
|
+
readonly "attrs": readonly [readonly [string, string]];
|
|
20
|
+
readonly "children": readonly [];
|
|
21
|
+
}, {
|
|
22
|
+
readonly "k": string;
|
|
23
|
+
readonly "id": string;
|
|
24
|
+
readonly "tag": string;
|
|
25
|
+
readonly "attrs": readonly [readonly [string, string]];
|
|
26
|
+
readonly "children": readonly [{
|
|
27
|
+
readonly "k": string;
|
|
28
|
+
readonly "id": string;
|
|
29
|
+
readonly "tag": string;
|
|
30
|
+
readonly "attrs": readonly [readonly [string, string], readonly [string, string]];
|
|
31
|
+
readonly "children": readonly [{
|
|
32
|
+
readonly "k": string;
|
|
33
|
+
readonly "id": string;
|
|
34
|
+
readonly "tag": string;
|
|
35
|
+
readonly "attrs": readonly [readonly [string, string]];
|
|
36
|
+
readonly "children": readonly [{
|
|
37
|
+
readonly "k": string;
|
|
38
|
+
readonly "id": string;
|
|
39
|
+
readonly "index": number;
|
|
40
|
+
}];
|
|
41
|
+
}, {
|
|
42
|
+
readonly "k": string;
|
|
43
|
+
readonly "id": string;
|
|
44
|
+
readonly "tag": string;
|
|
45
|
+
readonly "attrs": readonly [readonly [string, string], readonly [string, string], readonly [string, string], readonly [string, string]];
|
|
46
|
+
readonly "children": readonly [{
|
|
47
|
+
readonly "k": string;
|
|
48
|
+
readonly "value": string;
|
|
49
|
+
}];
|
|
50
|
+
}];
|
|
51
|
+
}, {
|
|
52
|
+
readonly "k": string;
|
|
53
|
+
readonly "id": string;
|
|
54
|
+
readonly "tag": string;
|
|
55
|
+
readonly "attrs": readonly [readonly [string, string], readonly [string, string]];
|
|
56
|
+
readonly "children": readonly [{
|
|
57
|
+
readonly "k": string;
|
|
58
|
+
readonly "id": string;
|
|
59
|
+
readonly "tag": string;
|
|
60
|
+
readonly "attrs": readonly [];
|
|
61
|
+
readonly "children": readonly [];
|
|
62
|
+
}];
|
|
63
|
+
}, {
|
|
64
|
+
readonly "k": string;
|
|
65
|
+
readonly "id": string;
|
|
66
|
+
readonly "tag": string;
|
|
67
|
+
readonly "attrs": readonly [readonly [string, string], readonly [string, string]];
|
|
68
|
+
readonly "children": readonly [{
|
|
69
|
+
readonly "k": string;
|
|
70
|
+
readonly "id": string;
|
|
71
|
+
readonly "tag": string;
|
|
72
|
+
readonly "attrs": readonly [readonly [string, string]];
|
|
73
|
+
readonly "children": readonly [];
|
|
74
|
+
}];
|
|
75
|
+
}];
|
|
76
|
+
}];
|
|
77
|
+
}];
|
|
78
|
+
readonly "parts": readonly [{
|
|
79
|
+
readonly "k": string;
|
|
80
|
+
readonly "event": string;
|
|
81
|
+
readonly "handler": string;
|
|
82
|
+
readonly "action": {
|
|
83
|
+
readonly "kind": string;
|
|
84
|
+
readonly "name": string;
|
|
85
|
+
};
|
|
86
|
+
readonly "path": readonly [number, number];
|
|
87
|
+
readonly "index": number;
|
|
88
|
+
readonly "location": {
|
|
89
|
+
readonly "id": string;
|
|
90
|
+
readonly "kind": string;
|
|
91
|
+
readonly "path": readonly [number, number];
|
|
92
|
+
readonly "node": string;
|
|
93
|
+
};
|
|
94
|
+
}, {
|
|
95
|
+
readonly "k": string;
|
|
96
|
+
readonly "signal": string;
|
|
97
|
+
readonly "name": string;
|
|
98
|
+
readonly "path": readonly [number, number];
|
|
99
|
+
readonly "index": number;
|
|
100
|
+
readonly "location": {
|
|
101
|
+
readonly "id": string;
|
|
102
|
+
readonly "kind": string;
|
|
103
|
+
readonly "path": readonly [number, number];
|
|
104
|
+
readonly "node": string;
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
readonly "k": string;
|
|
108
|
+
readonly "signal": string;
|
|
109
|
+
readonly "name": string;
|
|
110
|
+
readonly "path": readonly [number, number];
|
|
111
|
+
readonly "index": number;
|
|
112
|
+
readonly "location": {
|
|
113
|
+
readonly "id": string;
|
|
114
|
+
readonly "kind": string;
|
|
115
|
+
readonly "path": readonly [number, number];
|
|
116
|
+
readonly "node": string;
|
|
117
|
+
};
|
|
118
|
+
}, {
|
|
119
|
+
readonly "k": string;
|
|
120
|
+
readonly "event": string;
|
|
121
|
+
readonly "handler": string;
|
|
122
|
+
readonly "action": {
|
|
123
|
+
readonly "kind": string;
|
|
124
|
+
readonly "name": string;
|
|
125
|
+
};
|
|
126
|
+
readonly "path": readonly [number, number];
|
|
127
|
+
readonly "index": number;
|
|
128
|
+
readonly "location": {
|
|
129
|
+
readonly "id": string;
|
|
130
|
+
readonly "kind": string;
|
|
131
|
+
readonly "path": readonly [number, number];
|
|
132
|
+
readonly "node": string;
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
readonly "k": string;
|
|
136
|
+
readonly "event": string;
|
|
137
|
+
readonly "handler": string;
|
|
138
|
+
readonly "action": {
|
|
139
|
+
readonly "kind": string;
|
|
140
|
+
readonly "name": string;
|
|
141
|
+
};
|
|
142
|
+
readonly "path": readonly [number, number];
|
|
143
|
+
readonly "index": number;
|
|
144
|
+
readonly "location": {
|
|
145
|
+
readonly "id": string;
|
|
146
|
+
readonly "kind": string;
|
|
147
|
+
readonly "path": readonly [number, number];
|
|
148
|
+
readonly "node": string;
|
|
149
|
+
};
|
|
150
|
+
}, {
|
|
151
|
+
readonly "k": string;
|
|
152
|
+
readonly "signal": string;
|
|
153
|
+
readonly "index": number;
|
|
154
|
+
readonly "location": {
|
|
155
|
+
readonly "id": string;
|
|
156
|
+
readonly "kind": string;
|
|
157
|
+
readonly "path": readonly [number, number, number, number, number];
|
|
158
|
+
};
|
|
159
|
+
}, {
|
|
160
|
+
readonly "k": string;
|
|
161
|
+
readonly "event": string;
|
|
162
|
+
readonly "handler": string;
|
|
163
|
+
readonly "action": {
|
|
164
|
+
readonly "kind": string;
|
|
165
|
+
readonly "name": string;
|
|
166
|
+
};
|
|
167
|
+
readonly "path": readonly [number, number, number, number];
|
|
168
|
+
readonly "index": number;
|
|
169
|
+
readonly "location": {
|
|
170
|
+
readonly "id": string;
|
|
171
|
+
readonly "kind": string;
|
|
172
|
+
readonly "path": readonly [number, number, number, number];
|
|
173
|
+
readonly "node": string;
|
|
174
|
+
};
|
|
175
|
+
}];
|
|
176
|
+
readonly "regions": readonly [];
|
|
177
|
+
readonly "dependencies": readonly [{
|
|
178
|
+
readonly "signal": string;
|
|
179
|
+
readonly "owner": {
|
|
180
|
+
readonly "kind": string;
|
|
181
|
+
readonly "index": number;
|
|
182
|
+
};
|
|
183
|
+
readonly "location": string;
|
|
184
|
+
}, {
|
|
185
|
+
readonly "signal": string;
|
|
186
|
+
readonly "owner": {
|
|
187
|
+
readonly "kind": string;
|
|
188
|
+
readonly "index": number;
|
|
189
|
+
};
|
|
190
|
+
readonly "location": string;
|
|
191
|
+
}, {
|
|
192
|
+
readonly "signal": string;
|
|
193
|
+
readonly "owner": {
|
|
194
|
+
readonly "kind": string;
|
|
195
|
+
readonly "index": number;
|
|
196
|
+
};
|
|
197
|
+
readonly "location": string;
|
|
198
|
+
}];
|
|
199
|
+
readonly "locations": readonly [{
|
|
200
|
+
readonly "id": string;
|
|
201
|
+
readonly "kind": string;
|
|
202
|
+
readonly "tag": string;
|
|
203
|
+
readonly "path": readonly [number];
|
|
204
|
+
}, {
|
|
205
|
+
readonly "id": string;
|
|
206
|
+
readonly "kind": string;
|
|
207
|
+
readonly "tag": string;
|
|
208
|
+
readonly "path": readonly [number, number];
|
|
209
|
+
}, {
|
|
210
|
+
readonly "id": string;
|
|
211
|
+
readonly "kind": string;
|
|
212
|
+
readonly "part": number;
|
|
213
|
+
readonly "node": string;
|
|
214
|
+
readonly "path": readonly [number, number];
|
|
215
|
+
}, {
|
|
216
|
+
readonly "id": string;
|
|
217
|
+
readonly "kind": string;
|
|
218
|
+
readonly "tag": string;
|
|
219
|
+
readonly "path": readonly [number, number];
|
|
220
|
+
}, {
|
|
221
|
+
readonly "id": string;
|
|
222
|
+
readonly "kind": string;
|
|
223
|
+
readonly "part": number;
|
|
224
|
+
readonly "node": string;
|
|
225
|
+
readonly "path": readonly [number, number];
|
|
226
|
+
}, {
|
|
227
|
+
readonly "id": string;
|
|
228
|
+
readonly "kind": string;
|
|
229
|
+
readonly "part": number;
|
|
230
|
+
readonly "node": string;
|
|
231
|
+
readonly "path": readonly [number, number];
|
|
232
|
+
}, {
|
|
233
|
+
readonly "id": string;
|
|
234
|
+
readonly "kind": string;
|
|
235
|
+
readonly "part": number;
|
|
236
|
+
readonly "node": string;
|
|
237
|
+
readonly "path": readonly [number, number];
|
|
238
|
+
}, {
|
|
239
|
+
readonly "id": string;
|
|
240
|
+
readonly "kind": string;
|
|
241
|
+
readonly "part": number;
|
|
242
|
+
readonly "node": string;
|
|
243
|
+
readonly "path": readonly [number, number];
|
|
244
|
+
}, {
|
|
245
|
+
readonly "id": string;
|
|
246
|
+
readonly "kind": string;
|
|
247
|
+
readonly "tag": string;
|
|
248
|
+
readonly "path": readonly [number, number, number];
|
|
249
|
+
}, {
|
|
250
|
+
readonly "id": string;
|
|
251
|
+
readonly "kind": string;
|
|
252
|
+
readonly "tag": string;
|
|
253
|
+
readonly "path": readonly [number, number, number, number];
|
|
254
|
+
}, {
|
|
255
|
+
readonly "id": string;
|
|
256
|
+
readonly "kind": string;
|
|
257
|
+
readonly "part": number;
|
|
258
|
+
readonly "path": readonly [number, number, number, number, number];
|
|
259
|
+
}, {
|
|
260
|
+
readonly "id": string;
|
|
261
|
+
readonly "kind": string;
|
|
262
|
+
readonly "tag": string;
|
|
263
|
+
readonly "path": readonly [number, number, number, number];
|
|
264
|
+
}, {
|
|
265
|
+
readonly "id": string;
|
|
266
|
+
readonly "kind": string;
|
|
267
|
+
readonly "part": number;
|
|
268
|
+
readonly "node": string;
|
|
269
|
+
readonly "path": readonly [number, number, number, number];
|
|
270
|
+
}, {
|
|
271
|
+
readonly "id": string;
|
|
272
|
+
readonly "kind": string;
|
|
273
|
+
readonly "tag": string;
|
|
274
|
+
readonly "path": readonly [number, number, number];
|
|
275
|
+
}, {
|
|
276
|
+
readonly "id": string;
|
|
277
|
+
readonly "kind": string;
|
|
278
|
+
readonly "tag": string;
|
|
279
|
+
readonly "path": readonly [number, number, number, number];
|
|
280
|
+
}, {
|
|
281
|
+
readonly "id": string;
|
|
282
|
+
readonly "kind": string;
|
|
283
|
+
readonly "tag": string;
|
|
284
|
+
readonly "path": readonly [number, number, number];
|
|
285
|
+
}, {
|
|
286
|
+
readonly "id": string;
|
|
287
|
+
readonly "kind": string;
|
|
288
|
+
readonly "tag": string;
|
|
289
|
+
readonly "path": readonly [number, number, number, number];
|
|
290
|
+
}];
|
|
291
|
+
readonly "metadata": {
|
|
292
|
+
readonly "tag": string;
|
|
293
|
+
readonly "className": string;
|
|
294
|
+
readonly "sourceFile": string;
|
|
295
|
+
readonly "properties": readonly [{
|
|
296
|
+
readonly "name": string;
|
|
297
|
+
readonly "attribute": string;
|
|
298
|
+
readonly "type": string;
|
|
299
|
+
readonly "converter": string;
|
|
300
|
+
readonly "reflect": boolean;
|
|
301
|
+
readonly "default": boolean;
|
|
302
|
+
}, {
|
|
303
|
+
readonly "name": string;
|
|
304
|
+
readonly "attribute": string;
|
|
305
|
+
readonly "type": string;
|
|
306
|
+
readonly "converter": string;
|
|
307
|
+
readonly "reflect": boolean;
|
|
308
|
+
readonly "default": string;
|
|
309
|
+
}];
|
|
310
|
+
readonly "observedAttributes": readonly [string, string];
|
|
311
|
+
readonly "cem": {
|
|
312
|
+
readonly "tagName": string;
|
|
313
|
+
readonly "className": string;
|
|
314
|
+
readonly "declaration": {
|
|
315
|
+
readonly "name": string;
|
|
316
|
+
readonly "module": string;
|
|
317
|
+
};
|
|
318
|
+
readonly "attributes": readonly [{
|
|
319
|
+
readonly "name": string;
|
|
320
|
+
readonly "fieldName": string;
|
|
321
|
+
readonly "type": string;
|
|
322
|
+
readonly "reflect": boolean;
|
|
323
|
+
}, {
|
|
324
|
+
readonly "name": string;
|
|
325
|
+
readonly "fieldName": string;
|
|
326
|
+
readonly "type": string;
|
|
327
|
+
readonly "reflect": boolean;
|
|
328
|
+
}];
|
|
329
|
+
readonly "members": readonly [{
|
|
330
|
+
readonly "name": string;
|
|
331
|
+
readonly "fieldName": string;
|
|
332
|
+
readonly "type": string;
|
|
333
|
+
readonly "attribute": string;
|
|
334
|
+
readonly "reflect": boolean;
|
|
335
|
+
}, {
|
|
336
|
+
readonly "name": string;
|
|
337
|
+
readonly "fieldName": string;
|
|
338
|
+
readonly "type": string;
|
|
339
|
+
readonly "attribute": string;
|
|
340
|
+
readonly "reflect": boolean;
|
|
341
|
+
}];
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
declare const __compiledProperties: readonly [{
|
|
346
|
+
readonly "name": string;
|
|
347
|
+
readonly "attribute": string;
|
|
348
|
+
readonly "type": string;
|
|
349
|
+
readonly "converter": string;
|
|
350
|
+
readonly "reflect": boolean;
|
|
351
|
+
readonly "default": boolean;
|
|
352
|
+
}, {
|
|
353
|
+
readonly "name": string;
|
|
354
|
+
readonly "attribute": string;
|
|
355
|
+
readonly "type": string;
|
|
356
|
+
readonly "converter": string;
|
|
357
|
+
readonly "reflect": boolean;
|
|
358
|
+
readonly "default": string;
|
|
359
|
+
}];
|
|
360
|
+
declare const __elementMetadata: {
|
|
361
|
+
readonly "tag": string;
|
|
362
|
+
readonly "className": string;
|
|
363
|
+
readonly "sourceFile": string;
|
|
364
|
+
readonly "properties": readonly [{
|
|
365
|
+
readonly "name": string;
|
|
366
|
+
readonly "attribute": string;
|
|
367
|
+
readonly "type": string;
|
|
368
|
+
readonly "converter": string;
|
|
369
|
+
readonly "reflect": boolean;
|
|
370
|
+
readonly "default": boolean;
|
|
371
|
+
}, {
|
|
372
|
+
readonly "name": string;
|
|
373
|
+
readonly "attribute": string;
|
|
374
|
+
readonly "type": string;
|
|
375
|
+
readonly "converter": string;
|
|
376
|
+
readonly "reflect": boolean;
|
|
377
|
+
readonly "default": string;
|
|
378
|
+
}];
|
|
379
|
+
readonly "observedAttributes": readonly [string, string];
|
|
380
|
+
readonly "cem": {
|
|
381
|
+
readonly "tagName": string;
|
|
382
|
+
readonly "className": string;
|
|
383
|
+
readonly "declaration": {
|
|
384
|
+
readonly "name": string;
|
|
385
|
+
readonly "module": string;
|
|
386
|
+
};
|
|
387
|
+
readonly "attributes": readonly [{
|
|
388
|
+
readonly "name": string;
|
|
389
|
+
readonly "fieldName": string;
|
|
390
|
+
readonly "type": string;
|
|
391
|
+
readonly "reflect": boolean;
|
|
392
|
+
}, {
|
|
393
|
+
readonly "name": string;
|
|
394
|
+
readonly "fieldName": string;
|
|
395
|
+
readonly "type": string;
|
|
396
|
+
readonly "reflect": boolean;
|
|
397
|
+
}];
|
|
398
|
+
readonly "members": readonly [{
|
|
399
|
+
readonly "name": string;
|
|
400
|
+
readonly "fieldName": string;
|
|
401
|
+
readonly "type": string;
|
|
402
|
+
readonly "attribute": string;
|
|
403
|
+
readonly "reflect": boolean;
|
|
404
|
+
}, {
|
|
405
|
+
readonly "name": string;
|
|
406
|
+
readonly "fieldName": string;
|
|
407
|
+
readonly "type": string;
|
|
408
|
+
readonly "attribute": string;
|
|
409
|
+
readonly "reflect": boolean;
|
|
410
|
+
}];
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
declare const __observedAttributes: string[];
|
|
414
|
+
declare const __compiledProps: {
|
|
415
|
+
readonly open: {
|
|
416
|
+
readonly type;
|
|
417
|
+
readonly default: boolean;
|
|
418
|
+
readonly reflect: boolean;
|
|
419
|
+
readonly attribute: string;
|
|
420
|
+
};
|
|
421
|
+
readonly label: {
|
|
422
|
+
readonly type;
|
|
423
|
+
readonly default: string;
|
|
424
|
+
readonly reflect: boolean;
|
|
425
|
+
readonly attribute: string;
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
export declare class OpenDialog extends OpenElement {
|
|
429
|
+
static __partProgram: typeof __partProgram;
|
|
430
|
+
static __compiledProperties: typeof __compiledProperties;
|
|
431
|
+
static __elementMetadata: typeof __elementMetadata;
|
|
432
|
+
static props: typeof __compiledProps;
|
|
433
|
+
static observedAttributes: typeof __observedAttributes;
|
|
434
|
+
static delegatesFocus: boolean;
|
|
435
|
+
static styles: StyleSheetLike[];
|
|
436
|
+
open: boolean;
|
|
437
|
+
label: string;
|
|
438
|
+
override onCsrRendered(): void;
|
|
439
|
+
override onDsdHydrated(): void;
|
|
440
|
+
override disconnectedCallback(): void;
|
|
441
|
+
private syncOpenState: any;
|
|
442
|
+
private updateStates: any;
|
|
443
|
+
private stateSet: any;
|
|
444
|
+
show(): void;
|
|
445
|
+
close(): void;
|
|
446
|
+
toggle(): void;
|
|
447
|
+
private syncDialogElement: any;
|
|
448
|
+
private handleNativeClose: any;
|
|
449
|
+
private handleClose: any;
|
|
450
|
+
private handleCancel: any;
|
|
451
|
+
private handleTrigger: any;
|
|
452
|
+
render(): never;
|
|
453
|
+
}
|
|
454
|
+
export { __partProgram, __elementMetadata };
|