@openelement/ui 1.0.0-alpha.1 → 1.0.0-alpha.11

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 (47) hide show
  1. package/CUSTOMIZATION.md +272 -0
  2. package/README.md +59 -54
  3. package/package.json +19 -33
  4. package/src/component-recipes.js +39 -100
  5. package/src/control-recipe.css +21 -0
  6. package/src/generated-manifest.json +13 -160
  7. package/src/index.d.ts +10 -42
  8. package/src/index.js +10 -46
  9. package/src/instance-state.d.ts +16 -0
  10. package/src/instance-state.js +30 -24
  11. package/src/manifest.d.ts +5 -9
  12. package/src/manifest.js +6 -11
  13. package/src/open-button.css +120 -0
  14. package/src/open-button.d.ts +296 -898
  15. package/src/open-button.js +1130 -1436
  16. package/src/open-code-block.css +46 -0
  17. package/src/open-code-block.d.ts +158 -168
  18. package/src/open-code-block.js +224 -468
  19. package/src/open-dialog.css +137 -0
  20. package/src/open-dialog.d.ts +241 -424
  21. package/src/open-dialog.js +626 -903
  22. package/src/open-dropdown.css +28 -0
  23. package/src/open-dropdown.d.ts +195 -252
  24. package/src/open-dropdown.js +352 -494
  25. package/src/open-input.css +80 -0
  26. package/src/open-input.d.ts +404 -1420
  27. package/src/open-input.js +1789 -2170
  28. package/src/open-theme-toggle.css +53 -0
  29. package/src/open-theme-toggle.d.ts +171 -287
  30. package/src/open-theme-toggle.js +512 -801
  31. package/src/overlay-recipe.css +9 -0
  32. package/src/register.d.ts +4 -1
  33. package/src/register.js +19 -58
  34. package/src/surface-recipe.css +10 -0
  35. package/src/theme.css +206 -0
  36. package/THIRD_PARTY_NOTICES.md +0 -45
  37. package/src/open-badge.d.ts +0 -185
  38. package/src/open-badge.js +0 -296
  39. package/src/open-callout.d.ts +0 -402
  40. package/src/open-callout.js +0 -603
  41. package/src/open-card.d.ts +0 -168
  42. package/src/open-card.js +0 -310
  43. package/src/open-props-tokens.d.ts +0 -9
  44. package/src/open-props-tokens.js +0 -459
  45. package/src/open-tabs.d.ts +0 -218
  46. package/src/open-tabs.js +0 -401
  47. package/src/semantic-tokens.css +0 -413
package/src/open-badge.js DELETED
@@ -1,296 +0,0 @@
1
- // <auto-generated by open:compiled-element; v0.44.0-alpha.1 - do not edit>
2
- import { OpenElement } from '@openelement/element';
3
- import { recipe } from './component-recipes.js';
4
- const __partProgram = {
5
- "version": 1,
6
- "tag": "open-badge",
7
- "root": {
8
- "id": "root",
9
- "kind": "shadow-open",
10
- "nodes": [
11
- "e0"
12
- ]
13
- },
14
- "template": [
15
- {
16
- "k": "el",
17
- "id": "e0",
18
- "tag": "span",
19
- "attrs": [
20
- [
21
- "class",
22
- "badge"
23
- ],
24
- [
25
- "part",
26
- "badge"
27
- ]
28
- ],
29
- "children": [
30
- {
31
- "k": "el",
32
- "id": "e1",
33
- "tag": "slot",
34
- "attrs": [],
35
- "children": []
36
- }
37
- ]
38
- }
39
- ],
40
- "parts": [],
41
- "regions": [],
42
- "dependencies": [],
43
- "locations": [
44
- {
45
- "id": "e0",
46
- "kind": "element",
47
- "tag": "span",
48
- "path": [
49
- 0
50
- ]
51
- },
52
- {
53
- "id": "e1",
54
- "kind": "element",
55
- "tag": "slot",
56
- "path": [
57
- 0,
58
- 0
59
- ]
60
- }
61
- ],
62
- "metadata": {
63
- "tag": "open-badge",
64
- "className": "OpenBadge",
65
- "sourceFile": "open-badge.tsx",
66
- "properties": [
67
- {
68
- "name": "tone",
69
- "attribute": "tone",
70
- "type": "string",
71
- "converter": "string",
72
- "reflect": true,
73
- "default": "neutral"
74
- },
75
- {
76
- "name": "size",
77
- "attribute": "size",
78
- "type": "string",
79
- "converter": "string",
80
- "reflect": true,
81
- "default": "md"
82
- }
83
- ],
84
- "observedAttributes": [
85
- "tone",
86
- "size"
87
- ],
88
- "cem": {
89
- "tagName": "open-badge",
90
- "className": "OpenBadge",
91
- "declaration": {
92
- "name": "OpenBadge",
93
- "module": "open-badge.tsx"
94
- },
95
- "attributes": [
96
- {
97
- "name": "tone",
98
- "fieldName": "tone",
99
- "type": "string",
100
- "reflect": true
101
- },
102
- {
103
- "name": "size",
104
- "fieldName": "size",
105
- "type": "string",
106
- "reflect": true
107
- }
108
- ],
109
- "members": [
110
- {
111
- "name": "tone",
112
- "fieldName": "tone",
113
- "type": "string",
114
- "attribute": "tone",
115
- "reflect": true
116
- },
117
- {
118
- "name": "size",
119
- "fieldName": "size",
120
- "type": "string",
121
- "attribute": "size",
122
- "reflect": true
123
- }
124
- ]
125
- }
126
- }
127
- };
128
- const __compiledProperties = [
129
- {
130
- "name": "tone",
131
- "attribute": "tone",
132
- "type": "string",
133
- "converter": "string",
134
- "reflect": true,
135
- "default": "neutral"
136
- },
137
- {
138
- "name": "size",
139
- "attribute": "size",
140
- "type": "string",
141
- "converter": "string",
142
- "reflect": true,
143
- "default": "md"
144
- }
145
- ];
146
- const __elementMetadata = {
147
- "tag": "open-badge",
148
- "className": "OpenBadge",
149
- "sourceFile": "open-badge.tsx",
150
- "properties": [
151
- {
152
- "name": "tone",
153
- "attribute": "tone",
154
- "type": "string",
155
- "converter": "string",
156
- "reflect": true,
157
- "default": "neutral"
158
- },
159
- {
160
- "name": "size",
161
- "attribute": "size",
162
- "type": "string",
163
- "converter": "string",
164
- "reflect": true,
165
- "default": "md"
166
- }
167
- ],
168
- "observedAttributes": [
169
- "tone",
170
- "size"
171
- ],
172
- "cem": {
173
- "tagName": "open-badge",
174
- "className": "OpenBadge",
175
- "declaration": {
176
- "name": "OpenBadge",
177
- "module": "open-badge.tsx"
178
- },
179
- "attributes": [
180
- {
181
- "name": "tone",
182
- "fieldName": "tone",
183
- "type": "string",
184
- "reflect": true
185
- },
186
- {
187
- "name": "size",
188
- "fieldName": "size",
189
- "type": "string",
190
- "reflect": true
191
- }
192
- ],
193
- "members": [
194
- {
195
- "name": "tone",
196
- "fieldName": "tone",
197
- "type": "string",
198
- "attribute": "tone",
199
- "reflect": true
200
- },
201
- {
202
- "name": "size",
203
- "fieldName": "size",
204
- "type": "string",
205
- "attribute": "size",
206
- "reflect": true
207
- }
208
- ]
209
- }
210
- };
211
- const __observedAttributes = [
212
- "tone",
213
- "size"
214
- ];
215
- const __compiledProps = {
216
- tone: {
217
- type: String,
218
- default: 'neutral',
219
- reflect: true,
220
- attribute: "tone"
221
- },
222
- size: {
223
- type: String,
224
- default: 'md',
225
- reflect: true,
226
- attribute: "size"
227
- }
228
- };
229
- export class OpenBadge extends OpenElement {
230
- static __partProgram = __partProgram;
231
- static __compiledProperties = __compiledProperties;
232
- static __elementMetadata = __elementMetadata;
233
- static props = __compiledProps;
234
- static observedAttributes = __observedAttributes;
235
- static styles = [
236
- recipe(`
237
- :host {
238
- display: inline-flex;
239
- vertical-align: middle;
240
- }
241
-
242
- .badge {
243
- display: inline-flex;
244
- align-items: center;
245
- justify-content: center;
246
- min-height: var(--size-6);
247
- padding: var(--badge-padding-y) var(--badge-padding-x);
248
- border: var(--border-size-1) solid var(--border);
249
- border-radius: var(--badge-radius);
250
- background: var(--bg-surface);
251
- color: var(--text-secondary);
252
- font-family: var(--font-mono);
253
- font-size: var(--badge-font-size);
254
- font-weight: var(--font-weight-8);
255
- line-height: var(--font-lineheight-3);
256
- letter-spacing: 0;
257
- white-space: nowrap;
258
- }
259
-
260
- :host([tone='brand']) .badge {
261
- border-color: var(--brand);
262
- background: var(--brand-subtle);
263
- color: var(--brand);
264
- }
265
-
266
- :host([tone='success']) .badge {
267
- border-color: var(--success);
268
- background: var(--success-subtle);
269
- color: var(--success);
270
- }
271
-
272
- :host([tone='warning']) .badge {
273
- border-color: var(--warning);
274
- background: var(--warning-subtle);
275
- color: var(--warning);
276
- }
277
-
278
- :host([tone='info']) .badge {
279
- border-color: var(--info);
280
- background: var(--info-subtle);
281
- color: var(--info);
282
- }
283
-
284
- :host([size='sm']) .badge {
285
- min-height: var(--size-5);
286
- padding-inline: var(--size-2);
287
- }
288
- `)
289
- ];
290
- tone = 'neutral';
291
- size = 'md';
292
- render() {
293
- throw new Error('[open:compiled-element] open-badge is compiled to a Part Program; the runtime JSX render path is not available in 0.44.');
294
- }
295
- }
296
- export { __partProgram, __elementMetadata };
@@ -1,402 +0,0 @@
1
- import { OpenElement, type ReadonlySignal, 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], 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
- readonly "k": string;
22
- readonly "id": string;
23
- readonly "tag": string;
24
- readonly "attrs": readonly [readonly [string, string], readonly [string, string]];
25
- readonly "children": readonly [{
26
- readonly "k": string;
27
- readonly "id": string;
28
- readonly "index": number;
29
- }];
30
- }, {
31
- readonly "k": string;
32
- readonly "id": string;
33
- readonly "tag": string;
34
- readonly "attrs": readonly [readonly [string, string]];
35
- readonly "children": readonly [{
36
- readonly "k": string;
37
- readonly "id": string;
38
- readonly "index": number;
39
- }];
40
- }];
41
- }, {
42
- readonly "k": string;
43
- readonly "id": string;
44
- readonly "tag": string;
45
- readonly "attrs": readonly [readonly [string, string], readonly [string, string]];
46
- readonly "children": readonly [{
47
- readonly "k": string;
48
- readonly "id": string;
49
- readonly "tag": string;
50
- readonly "attrs": readonly [];
51
- readonly "children": readonly [];
52
- }];
53
- }];
54
- }];
55
- readonly "parts": readonly [{
56
- readonly "k": string;
57
- readonly "signal": string;
58
- readonly "name": string;
59
- readonly "path": readonly [number, number];
60
- readonly "index": number;
61
- readonly "location": {
62
- readonly "id": string;
63
- readonly "kind": string;
64
- readonly "path": readonly [number, number];
65
- readonly "node": string;
66
- };
67
- }, {
68
- readonly "k": string;
69
- readonly "signal": string;
70
- readonly "index": number;
71
- readonly "location": {
72
- readonly "id": string;
73
- readonly "kind": string;
74
- readonly "path": readonly [number, number, number, number];
75
- };
76
- }, {
77
- readonly "k": string;
78
- readonly "signal": string;
79
- readonly "index": number;
80
- readonly "location": {
81
- readonly "id": string;
82
- readonly "kind": string;
83
- readonly "path": readonly [number, number, number, number];
84
- };
85
- }];
86
- readonly "regions": readonly [];
87
- readonly "dependencies": readonly [{
88
- readonly "signal": string;
89
- readonly "owner": {
90
- readonly "kind": string;
91
- readonly "index": number;
92
- };
93
- readonly "location": string;
94
- }, {
95
- readonly "signal": string;
96
- readonly "owner": {
97
- readonly "kind": string;
98
- readonly "index": number;
99
- };
100
- readonly "location": string;
101
- }, {
102
- readonly "signal": string;
103
- readonly "owner": {
104
- readonly "kind": string;
105
- readonly "index": number;
106
- };
107
- readonly "location": string;
108
- }];
109
- readonly "locations": readonly [{
110
- readonly "id": string;
111
- readonly "kind": string;
112
- readonly "tag": string;
113
- readonly "path": readonly [number];
114
- }, {
115
- readonly "id": string;
116
- readonly "kind": string;
117
- readonly "tag": string;
118
- readonly "path": readonly [number, number];
119
- }, {
120
- readonly "id": string;
121
- readonly "kind": string;
122
- readonly "part": number;
123
- readonly "node": string;
124
- readonly "path": readonly [number, number];
125
- }, {
126
- readonly "id": string;
127
- readonly "kind": string;
128
- readonly "tag": string;
129
- readonly "path": readonly [number, number, number];
130
- }, {
131
- readonly "id": string;
132
- readonly "kind": string;
133
- readonly "part": number;
134
- readonly "path": readonly [number, number, number, number];
135
- }, {
136
- readonly "id": string;
137
- readonly "kind": string;
138
- readonly "tag": string;
139
- readonly "path": readonly [number, number, number];
140
- }, {
141
- readonly "id": string;
142
- readonly "kind": string;
143
- readonly "part": number;
144
- readonly "path": readonly [number, number, number, number];
145
- }, {
146
- readonly "id": string;
147
- readonly "kind": string;
148
- readonly "tag": string;
149
- readonly "path": readonly [number, number];
150
- }, {
151
- readonly "id": string;
152
- readonly "kind": string;
153
- readonly "tag": string;
154
- readonly "path": readonly [number, number, number];
155
- }];
156
- readonly "metadata": {
157
- readonly "tag": string;
158
- readonly "className": string;
159
- readonly "sourceFile": string;
160
- readonly "properties": readonly [{
161
- readonly "name": string;
162
- readonly "attribute": string;
163
- readonly "type": string;
164
- readonly "converter": string;
165
- readonly "reflect": boolean;
166
- readonly "default": string;
167
- }, {
168
- readonly "name": string;
169
- readonly "attribute": string;
170
- readonly "type": string;
171
- readonly "converter": string;
172
- readonly "reflect": boolean;
173
- readonly "default": string;
174
- }, {
175
- readonly "name": string;
176
- readonly "attribute": null;
177
- readonly "type": string;
178
- readonly "converter": string;
179
- readonly "reflect": boolean;
180
- readonly "default": null;
181
- readonly "computed": boolean;
182
- readonly "deps": readonly [string];
183
- }, {
184
- readonly "name": string;
185
- readonly "attribute": null;
186
- readonly "type": string;
187
- readonly "converter": string;
188
- readonly "reflect": boolean;
189
- readonly "default": null;
190
- readonly "computed": boolean;
191
- readonly "deps": readonly [string];
192
- }];
193
- readonly "observedAttributes": readonly [string, string];
194
- readonly "cem": {
195
- readonly "tagName": string;
196
- readonly "className": string;
197
- readonly "declaration": {
198
- readonly "name": string;
199
- readonly "module": string;
200
- };
201
- readonly "attributes": readonly [{
202
- readonly "name": string;
203
- readonly "fieldName": string;
204
- readonly "type": string;
205
- readonly "reflect": boolean;
206
- }, {
207
- readonly "name": string;
208
- readonly "fieldName": string;
209
- readonly "type": string;
210
- readonly "reflect": boolean;
211
- }];
212
- readonly "members": readonly [{
213
- readonly "name": string;
214
- readonly "fieldName": string;
215
- readonly "type": string;
216
- readonly "attribute": string;
217
- readonly "reflect": boolean;
218
- }, {
219
- readonly "name": string;
220
- readonly "fieldName": string;
221
- readonly "type": string;
222
- readonly "attribute": string;
223
- readonly "reflect": boolean;
224
- }, {
225
- readonly "name": string;
226
- readonly "fieldName": string;
227
- readonly "type": string;
228
- readonly "attribute": null;
229
- readonly "reflect": boolean;
230
- }, {
231
- readonly "name": string;
232
- readonly "fieldName": string;
233
- readonly "type": string;
234
- readonly "attribute": null;
235
- readonly "reflect": boolean;
236
- }];
237
- };
238
- };
239
- };
240
- declare const __compiledProperties: readonly [{
241
- readonly "name": string;
242
- readonly "attribute": string;
243
- readonly "type": string;
244
- readonly "converter": string;
245
- readonly "reflect": boolean;
246
- readonly "default": string;
247
- }, {
248
- readonly "name": string;
249
- readonly "attribute": string;
250
- readonly "type": string;
251
- readonly "converter": string;
252
- readonly "reflect": boolean;
253
- readonly "default": string;
254
- }, {
255
- readonly "name": string;
256
- readonly "attribute": null;
257
- readonly "type": string;
258
- readonly "converter": string;
259
- readonly "reflect": boolean;
260
- readonly "default": null;
261
- readonly "computed": boolean;
262
- readonly "deps": readonly [string];
263
- }, {
264
- readonly "name": string;
265
- readonly "attribute": null;
266
- readonly "type": string;
267
- readonly "converter": string;
268
- readonly "reflect": boolean;
269
- readonly "default": null;
270
- readonly "computed": boolean;
271
- readonly "deps": readonly [string];
272
- }];
273
- declare const __elementMetadata: {
274
- readonly "tag": string;
275
- readonly "className": string;
276
- readonly "sourceFile": string;
277
- readonly "properties": readonly [{
278
- readonly "name": string;
279
- readonly "attribute": string;
280
- readonly "type": string;
281
- readonly "converter": string;
282
- readonly "reflect": boolean;
283
- readonly "default": string;
284
- }, {
285
- readonly "name": string;
286
- readonly "attribute": string;
287
- readonly "type": string;
288
- readonly "converter": string;
289
- readonly "reflect": boolean;
290
- readonly "default": string;
291
- }, {
292
- readonly "name": string;
293
- readonly "attribute": null;
294
- readonly "type": string;
295
- readonly "converter": string;
296
- readonly "reflect": boolean;
297
- readonly "default": null;
298
- readonly "computed": boolean;
299
- readonly "deps": readonly [string];
300
- }, {
301
- readonly "name": string;
302
- readonly "attribute": null;
303
- readonly "type": string;
304
- readonly "converter": string;
305
- readonly "reflect": boolean;
306
- readonly "default": null;
307
- readonly "computed": boolean;
308
- readonly "deps": readonly [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
- readonly "name": string;
343
- readonly "fieldName": string;
344
- readonly "type": string;
345
- readonly "attribute": null;
346
- readonly "reflect": boolean;
347
- }, {
348
- readonly "name": string;
349
- readonly "fieldName": string;
350
- readonly "type": string;
351
- readonly "attribute": null;
352
- readonly "reflect": boolean;
353
- }];
354
- };
355
- };
356
- declare const __observedAttributes: string[];
357
- declare const __compiledProps: {
358
- readonly type: {
359
- readonly type;
360
- readonly default: string;
361
- readonly reflect: boolean;
362
- readonly attribute: string;
363
- };
364
- readonly label: {
365
- readonly type;
366
- readonly default: string;
367
- readonly reflect: boolean;
368
- readonly attribute: string;
369
- };
370
- readonly icon: {
371
- readonly type;
372
- readonly default;
373
- readonly reflect: boolean;
374
- readonly attribute: boolean;
375
- };
376
- readonly headerHidden: {
377
- readonly type;
378
- readonly default;
379
- readonly reflect: boolean;
380
- readonly attribute: boolean;
381
- };
382
- };
383
- export declare class OpenCallout extends OpenElement {
384
- static __partProgram: typeof __partProgram;
385
- static __compiledProperties: typeof __compiledProperties;
386
- static __elementMetadata: typeof __elementMetadata;
387
- static props: typeof __compiledProps;
388
- static observedAttributes: typeof __observedAttributes;
389
- static __computedFields: {
390
- icon: (__s: {
391
- type: ReadonlySignal<string>;
392
- }) => ReadonlySignal<string>;
393
- headerHidden: (__s: {
394
- label: ReadonlySignal<string>;
395
- }) => ReadonlySignal<boolean>;
396
- };
397
- static styles: StyleSheetLike[];
398
- type: string;
399
- label: string;
400
- render(): never;
401
- }
402
- export { __partProgram, __elementMetadata };