@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
@@ -1,168 +0,0 @@
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], 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], readonly [string, string]];
26
- readonly "children": readonly [{
27
- readonly "k": string;
28
- readonly "id": string;
29
- readonly "tag": string;
30
- readonly "attrs": readonly [];
31
- readonly "children": readonly [];
32
- }];
33
- }, {
34
- readonly "k": string;
35
- readonly "id": string;
36
- readonly "tag": string;
37
- readonly "attrs": readonly [readonly [string, string]];
38
- readonly "children": readonly [];
39
- }];
40
- }];
41
- readonly "parts": readonly [];
42
- readonly "regions": readonly [];
43
- readonly "dependencies": readonly [];
44
- readonly "locations": readonly [{
45
- readonly "id": string;
46
- readonly "kind": string;
47
- readonly "tag": string;
48
- readonly "path": readonly [number];
49
- }, {
50
- readonly "id": string;
51
- readonly "kind": string;
52
- readonly "tag": string;
53
- readonly "path": readonly [number, number];
54
- }, {
55
- readonly "id": string;
56
- readonly "kind": string;
57
- readonly "tag": string;
58
- readonly "path": readonly [number, number];
59
- }, {
60
- readonly "id": string;
61
- readonly "kind": string;
62
- readonly "tag": string;
63
- readonly "path": readonly [number, number, number];
64
- }, {
65
- readonly "id": string;
66
- readonly "kind": string;
67
- readonly "tag": string;
68
- readonly "path": readonly [number, number];
69
- }];
70
- readonly "metadata": {
71
- readonly "tag": string;
72
- readonly "className": string;
73
- readonly "sourceFile": string;
74
- readonly "properties": readonly [{
75
- readonly "name": string;
76
- readonly "attribute": string;
77
- readonly "type": string;
78
- readonly "converter": string;
79
- readonly "reflect": boolean;
80
- readonly "default": string;
81
- }];
82
- readonly "observedAttributes": readonly [string];
83
- readonly "cem": {
84
- readonly "tagName": string;
85
- readonly "className": string;
86
- readonly "declaration": {
87
- readonly "name": string;
88
- readonly "module": string;
89
- };
90
- readonly "attributes": readonly [{
91
- readonly "name": string;
92
- readonly "fieldName": string;
93
- readonly "type": string;
94
- readonly "reflect": boolean;
95
- }];
96
- readonly "members": readonly [{
97
- readonly "name": string;
98
- readonly "fieldName": string;
99
- readonly "type": string;
100
- readonly "attribute": string;
101
- readonly "reflect": boolean;
102
- }];
103
- };
104
- };
105
- };
106
- declare const __compiledProperties: readonly [{
107
- readonly "name": string;
108
- readonly "attribute": string;
109
- readonly "type": string;
110
- readonly "converter": string;
111
- readonly "reflect": boolean;
112
- readonly "default": string;
113
- }];
114
- declare const __elementMetadata: {
115
- readonly "tag": string;
116
- readonly "className": string;
117
- readonly "sourceFile": string;
118
- readonly "properties": readonly [{
119
- readonly "name": string;
120
- readonly "attribute": string;
121
- readonly "type": string;
122
- readonly "converter": string;
123
- readonly "reflect": boolean;
124
- readonly "default": string;
125
- }];
126
- readonly "observedAttributes": readonly [string];
127
- readonly "cem": {
128
- readonly "tagName": string;
129
- readonly "className": string;
130
- readonly "declaration": {
131
- readonly "name": string;
132
- readonly "module": string;
133
- };
134
- readonly "attributes": readonly [{
135
- readonly "name": string;
136
- readonly "fieldName": string;
137
- readonly "type": string;
138
- readonly "reflect": boolean;
139
- }];
140
- readonly "members": readonly [{
141
- readonly "name": string;
142
- readonly "fieldName": string;
143
- readonly "type": string;
144
- readonly "attribute": string;
145
- readonly "reflect": boolean;
146
- }];
147
- };
148
- };
149
- declare const __observedAttributes: string[];
150
- declare const __compiledProps: {
151
- readonly variant: {
152
- readonly type;
153
- readonly default: string;
154
- readonly reflect: boolean;
155
- readonly attribute: string;
156
- };
157
- };
158
- export declare class OpenCard extends OpenElement {
159
- static __partProgram: typeof __partProgram;
160
- static __compiledProperties: typeof __compiledProperties;
161
- static __elementMetadata: typeof __elementMetadata;
162
- static props: typeof __compiledProps;
163
- static observedAttributes: typeof __observedAttributes;
164
- static styles: StyleSheetLike[];
165
- variant: string;
166
- render(): never;
167
- }
168
- export { __partProgram, __elementMetadata };
package/src/open-card.js DELETED
@@ -1,310 +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, surfaceRecipe } from './component-recipes.js';
4
- const __partProgram = {
5
- "version": 1,
6
- "tag": "open-card",
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": "article",
19
- "attrs": [
20
- [
21
- "class",
22
- "surface"
23
- ],
24
- [
25
- "part",
26
- "container"
27
- ]
28
- ],
29
- "children": [
30
- {
31
- "k": "el",
32
- "id": "e1",
33
- "tag": "slot",
34
- "attrs": [
35
- [
36
- "name",
37
- "header"
38
- ]
39
- ],
40
- "children": []
41
- },
42
- {
43
- "k": "el",
44
- "id": "e2",
45
- "tag": "div",
46
- "attrs": [
47
- [
48
- "class",
49
- "card-body"
50
- ],
51
- [
52
- "part",
53
- "body"
54
- ]
55
- ],
56
- "children": [
57
- {
58
- "k": "el",
59
- "id": "e3",
60
- "tag": "slot",
61
- "attrs": [],
62
- "children": []
63
- }
64
- ]
65
- },
66
- {
67
- "k": "el",
68
- "id": "e4",
69
- "tag": "slot",
70
- "attrs": [
71
- [
72
- "name",
73
- "footer"
74
- ]
75
- ],
76
- "children": []
77
- }
78
- ]
79
- }
80
- ],
81
- "parts": [],
82
- "regions": [],
83
- "dependencies": [],
84
- "locations": [
85
- {
86
- "id": "e0",
87
- "kind": "element",
88
- "tag": "article",
89
- "path": [
90
- 0
91
- ]
92
- },
93
- {
94
- "id": "e1",
95
- "kind": "element",
96
- "tag": "slot",
97
- "path": [
98
- 0,
99
- 0
100
- ]
101
- },
102
- {
103
- "id": "e2",
104
- "kind": "element",
105
- "tag": "div",
106
- "path": [
107
- 0,
108
- 1
109
- ]
110
- },
111
- {
112
- "id": "e3",
113
- "kind": "element",
114
- "tag": "slot",
115
- "path": [
116
- 0,
117
- 1,
118
- 0
119
- ]
120
- },
121
- {
122
- "id": "e4",
123
- "kind": "element",
124
- "tag": "slot",
125
- "path": [
126
- 0,
127
- 2
128
- ]
129
- }
130
- ],
131
- "metadata": {
132
- "tag": "open-card",
133
- "className": "OpenCard",
134
- "sourceFile": "open-card.tsx",
135
- "properties": [
136
- {
137
- "name": "variant",
138
- "attribute": "variant",
139
- "type": "string",
140
- "converter": "string",
141
- "reflect": false,
142
- "default": ""
143
- }
144
- ],
145
- "observedAttributes": [
146
- "variant"
147
- ],
148
- "cem": {
149
- "tagName": "open-card",
150
- "className": "OpenCard",
151
- "declaration": {
152
- "name": "OpenCard",
153
- "module": "open-card.tsx"
154
- },
155
- "attributes": [
156
- {
157
- "name": "variant",
158
- "fieldName": "variant",
159
- "type": "string",
160
- "reflect": false
161
- }
162
- ],
163
- "members": [
164
- {
165
- "name": "variant",
166
- "fieldName": "variant",
167
- "type": "string",
168
- "attribute": "variant",
169
- "reflect": false
170
- }
171
- ]
172
- }
173
- }
174
- };
175
- const __compiledProperties = [
176
- {
177
- "name": "variant",
178
- "attribute": "variant",
179
- "type": "string",
180
- "converter": "string",
181
- "reflect": false,
182
- "default": ""
183
- }
184
- ];
185
- const __elementMetadata = {
186
- "tag": "open-card",
187
- "className": "OpenCard",
188
- "sourceFile": "open-card.tsx",
189
- "properties": [
190
- {
191
- "name": "variant",
192
- "attribute": "variant",
193
- "type": "string",
194
- "converter": "string",
195
- "reflect": false,
196
- "default": ""
197
- }
198
- ],
199
- "observedAttributes": [
200
- "variant"
201
- ],
202
- "cem": {
203
- "tagName": "open-card",
204
- "className": "OpenCard",
205
- "declaration": {
206
- "name": "OpenCard",
207
- "module": "open-card.tsx"
208
- },
209
- "attributes": [
210
- {
211
- "name": "variant",
212
- "fieldName": "variant",
213
- "type": "string",
214
- "reflect": false
215
- }
216
- ],
217
- "members": [
218
- {
219
- "name": "variant",
220
- "fieldName": "variant",
221
- "type": "string",
222
- "attribute": "variant",
223
- "reflect": false
224
- }
225
- ]
226
- }
227
- };
228
- const __observedAttributes = [
229
- "variant"
230
- ];
231
- const __compiledProps = {
232
- variant: {
233
- type: String,
234
- default: '',
235
- reflect: false,
236
- attribute: "variant"
237
- }
238
- };
239
- export class OpenCard extends OpenElement {
240
- static __partProgram = __partProgram;
241
- static __compiledProperties = __compiledProperties;
242
- static __elementMetadata = __elementMetadata;
243
- static props = __compiledProps;
244
- static observedAttributes = __observedAttributes;
245
- static styles = [
246
- surfaceRecipe,
247
- recipe(`
248
- :host {
249
- display: block;
250
- background:
251
- linear-gradient(135deg, color-mix(in srgb, var(--violet-1) 14%, transparent), transparent 48%),
252
- var(--bg-card);
253
- color: var(--text-primary);
254
- border: var(--border-size-1) solid var(--border);
255
- border-radius: var(--card-radius);
256
- overflow: hidden;
257
- transition: border-color var(--ease-3) var(--duration-2), background var(--ease-3) var(--duration-2), box-shadow var(--ease-3) var(--duration-2);
258
- }
259
-
260
- :host([variant='elevated']) {
261
- box-shadow: 0 var(--size-2) var(--size-8) color-mix(in srgb, var(--brand) 8%, transparent);
262
- border-color: var(--border);
263
- }
264
-
265
- :host([variant='elevated']:hover) {
266
- border-color: var(--brand);
267
- }
268
-
269
- :host([variant='borderless']) {
270
- border-color: transparent;
271
- }
272
-
273
- :host([variant='muted']) {
274
- background: var(--bg-surface);
275
- }
276
-
277
- :host([variant='artifact']) {
278
- background: var(--bg-code, var(--gray-11));
279
- color: var(--gray-2);
280
- border-color: var(--code-border, var(--gray-8));
281
- }
282
-
283
- ::slotted([slot='header']) {
284
- padding: var(--size-4) var(--size-5);
285
- border-bottom: var(--border-size-1) solid var(--border);
286
- font-size: var(--font-size-2);
287
- font-weight: var(--font-weight-6);
288
- color: var(--text-primary);
289
- margin: 0;
290
- }
291
-
292
- .card-body {
293
- padding: var(--size-5);
294
- }
295
-
296
- ::slotted([slot='footer']) {
297
- padding: var(--size-3) var(--size-5);
298
- border-top: var(--border-size-1) solid var(--border);
299
- font-size: var(--font-size-0);
300
- color: var(--text-muted);
301
- margin: 0;
302
- }
303
- `)
304
- ];
305
- variant = '';
306
- render() {
307
- throw new Error('[open:compiled-element] open-card is compiled to a Part Program; the runtime JSX render path is not available in 0.44.');
308
- }
309
- }
310
- export { __partProgram, __elementMetadata };
@@ -1,9 +0,0 @@
1
- /**
2
- * GENERATED — do not edit; source: open-props@1.7.23 (MIT) + semantic-tokens.css.
3
- * Regenerate with: deno task --cwd packages/ui generate:ui-tokens
4
- */ import { type StyleSheetLike } from '@openelement/element';
5
- /**
6
- * The full token set as one constructable sheet. The token block selects
7
- * `:root, :host`, so the same sheet serves a document-level adoption and a
8
- * shadow-root adoption; only the structural fallback is :host-exclusive.
9
- */ export declare const openPropsTokenSheet: StyleSheetLike;