@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
@@ -0,0 +1,28 @@
1
+ /* open-dropdown — authored component styles, ported verbatim from the pre-#1558
2
+ * recipe() sheet (the alpha.9 design system). The #1558 migration had
3
+ * replaced this with a placeholder shell under the false note that the
4
+ * component "carried no authored styles"; it did — this is that sheet. */
5
+ :host {
6
+ display: inline-block;
7
+ }
8
+
9
+ .trigger {
10
+ display: contents;
11
+ }
12
+
13
+ .content {
14
+ /* The base inset is the placement fallback for engines without CSS Anchor
15
+ Positioning; it must stay present because Firefox's anchor resolution
16
+ only applies anchor() longhands on top of an explicit inset. */
17
+ position: absolute;
18
+ inset: 100% auto auto 0;
19
+ top: anchor(bottom);
20
+ left: anchor(left);
21
+ min-width: 12rem;
22
+ /* The gap rides on margin-top: calc(anchor() + length) resolves without
23
+ the added length in Firefox. */
24
+ margin: calc(var(--spacing) * 2) 0 0;
25
+ padding: calc(var(--spacing) * 2);
26
+ font-family: var(--font-sans);
27
+ }
28
+
@@ -1,261 +1,203 @@
1
- import { OpenElement, type ReadonlySignal, type StyleSheetLike } from '@openelement/element';
1
+ import { OpenElement, ReadonlySignal, StyleSheetLike } from "@openelement/element";
2
+ //#region src/open-dropdown.d.ts
2
3
  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];
4
+ version: number;
5
+ tag: string;
6
+ root: {
7
+ id: string;
8
+ kind: string;
9
+ nodes: string[];
9
10
  };
10
- readonly "template": readonly [{
11
- readonly "k": string;
12
- readonly "id": string;
13
- readonly "tag": string;
14
- readonly "attrs": readonly [];
15
- readonly "children": readonly [{
16
- readonly "k": string;
17
- readonly "id": string;
18
- readonly "tag": string;
19
- readonly "attrs": readonly [readonly [string, string], 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]];
25
- readonly "children": readonly [];
26
- }];
27
- }, {
28
- readonly "k": string;
29
- readonly "id": string;
30
- readonly "tag": string;
31
- readonly "attrs": readonly [readonly [string, string], readonly [string, string], readonly [string, string]];
32
- readonly "children": readonly [{
33
- readonly "k": string;
34
- readonly "id": string;
35
- readonly "tag": string;
36
- readonly "attrs": readonly [];
37
- readonly "children": readonly [];
38
- }];
39
- }];
40
- }];
41
- readonly "parts": readonly [{
42
- readonly "k": string;
43
- readonly "event": string;
44
- readonly "handler": string;
45
- readonly "action": {
46
- readonly "kind": string;
47
- readonly "name": string;
48
- };
49
- readonly "path": readonly [number, number];
50
- readonly "index": number;
51
- readonly "location": {
52
- readonly "id": string;
53
- readonly "kind": string;
54
- readonly "path": readonly [number, number];
55
- readonly "node": string;
56
- };
57
- }, {
58
- readonly "k": string;
59
- readonly "event": string;
60
- readonly "handler": string;
61
- readonly "action": {
62
- readonly "kind": string;
63
- readonly "name": string;
64
- };
65
- readonly "path": readonly [number, number];
66
- readonly "index": number;
67
- readonly "location": {
68
- readonly "id": string;
69
- readonly "kind": string;
70
- readonly "path": readonly [number, number];
71
- readonly "node": string;
72
- };
73
- }, {
74
- readonly "k": string;
75
- readonly "signal": string;
76
- readonly "path": readonly [number, number];
77
- readonly "index": number;
78
- readonly "location": {
79
- readonly "id": string;
80
- readonly "kind": string;
81
- readonly "path": readonly [number, number];
82
- readonly "node": string;
83
- };
84
- }];
85
- readonly "regions": readonly [];
86
- readonly "dependencies": readonly [{
87
- readonly "signal": string;
88
- readonly "owner": {
89
- readonly "kind": string;
90
- readonly "index": number;
91
- };
92
- readonly "location": string;
93
- }];
94
- readonly "locations": readonly [{
95
- readonly "id": string;
96
- readonly "kind": string;
97
- readonly "tag": string;
98
- readonly "path": readonly [number];
99
- }, {
100
- readonly "id": string;
101
- readonly "kind": string;
102
- readonly "tag": string;
103
- readonly "path": readonly [number, number];
104
- }, {
105
- readonly "id": string;
106
- readonly "kind": string;
107
- readonly "part": number;
108
- readonly "node": string;
109
- readonly "path": readonly [number, number];
110
- }, {
111
- readonly "id": string;
112
- readonly "kind": string;
113
- readonly "part": number;
114
- readonly "node": string;
115
- readonly "path": readonly [number, number];
116
- }, {
117
- readonly "id": string;
118
- readonly "kind": string;
119
- readonly "tag": string;
120
- readonly "path": readonly [number, number, number];
121
- }, {
122
- readonly "id": string;
123
- readonly "kind": string;
124
- readonly "tag": string;
125
- readonly "path": readonly [number, number];
126
- }, {
127
- readonly "id": string;
128
- readonly "kind": string;
129
- readonly "part": number;
130
- readonly "node": string;
131
- readonly "path": readonly [number, number];
132
- }, {
133
- readonly "id": string;
134
- readonly "kind": string;
135
- readonly "tag": string;
136
- readonly "path": readonly [number, number, number];
137
- }];
138
- readonly "metadata": {
139
- readonly "tag": string;
140
- readonly "className": string;
141
- readonly "sourceFile": string;
142
- readonly "properties": readonly [{
143
- readonly "name": string;
144
- readonly "attribute": null;
145
- readonly "type": string;
146
- readonly "converter": string;
147
- readonly "reflect": boolean;
148
- readonly "default": string;
149
- }, {
150
- readonly "name": string;
151
- readonly "attribute": null;
152
- readonly "type": string;
153
- readonly "converter": string;
154
- readonly "reflect": boolean;
155
- readonly "default": null;
156
- readonly "computed": boolean;
157
- readonly "deps": readonly [string];
158
- }];
159
- readonly "observedAttributes": readonly [];
160
- readonly "cem": {
161
- readonly "tagName": string;
162
- readonly "className": string;
163
- readonly "declaration": {
164
- readonly "name": string;
165
- readonly "module": string;
11
+ template: {
12
+ k: string;
13
+ id: string;
14
+ tag: string;
15
+ attrs: never[];
16
+ children: {
17
+ k: string;
18
+ id: string;
19
+ tag: string;
20
+ attrs: string[][];
21
+ children: {
22
+ k: string;
23
+ id: string;
24
+ tag: string;
25
+ attrs: string[][];
26
+ children: never[];
27
+ }[];
28
+ }[];
29
+ }[];
30
+ parts: ({
31
+ k: string;
32
+ event: string;
33
+ handler: string;
34
+ action: {
35
+ kind: string;
36
+ name: string;
37
+ };
38
+ path: number[];
39
+ index: number;
40
+ location: {
41
+ id: string;
42
+ kind: string;
43
+ path: number[];
44
+ node: string;
45
+ };
46
+ signal?: undefined;
47
+ } | {
48
+ k: string;
49
+ signal: string;
50
+ path: number[];
51
+ index: number;
52
+ location: {
53
+ id: string;
54
+ kind: string;
55
+ path: number[];
56
+ node: string;
57
+ };
58
+ event?: undefined;
59
+ handler?: undefined;
60
+ action?: undefined;
61
+ })[];
62
+ regions: never[];
63
+ dependencies: {
64
+ signal: string;
65
+ owner: {
66
+ kind: string;
67
+ index: number;
68
+ };
69
+ location: string;
70
+ }[];
71
+ locations: ({
72
+ id: string;
73
+ kind: string;
74
+ tag: string;
75
+ path: number[];
76
+ part?: undefined;
77
+ node?: undefined;
78
+ } | {
79
+ id: string;
80
+ kind: string;
81
+ part: number;
82
+ node: string;
83
+ path: number[];
84
+ tag?: undefined;
85
+ })[];
86
+ metadata: {
87
+ tag: string;
88
+ className: string;
89
+ sourceFile: string;
90
+ properties: ({
91
+ name: string;
92
+ attribute: null;
93
+ type: string;
94
+ converter: string;
95
+ reflect: boolean;
96
+ default: string;
97
+ computed?: undefined;
98
+ deps?: undefined;
99
+ } | {
100
+ name: string;
101
+ attribute: null;
102
+ type: string;
103
+ converter: string;
104
+ reflect: boolean;
105
+ default: null;
106
+ computed: boolean;
107
+ deps: string[];
108
+ })[];
109
+ observedAttributes: never[];
110
+ cem: {
111
+ tagName: string;
112
+ className: string;
113
+ declaration: {
114
+ name: string;
115
+ module: string;
166
116
  };
167
- readonly "attributes": readonly [];
168
- readonly "members": readonly [{
169
- readonly "name": string;
170
- readonly "fieldName": string;
171
- readonly "type": string;
172
- readonly "attribute": null;
173
- readonly "reflect": boolean;
174
- }, {
175
- readonly "name": string;
176
- readonly "fieldName": string;
177
- readonly "type": string;
178
- readonly "attribute": null;
179
- readonly "reflect": boolean;
180
- }];
117
+ attributes: never[];
118
+ members: {
119
+ name: string;
120
+ fieldName: string;
121
+ type: string;
122
+ attribute: null;
123
+ reflect: boolean;
124
+ }[];
181
125
  };
182
126
  };
183
127
  };
184
- declare const __compiledProperties: readonly [{
185
- readonly "name": string;
186
- readonly "attribute": null;
187
- readonly "type": string;
188
- readonly "converter": string;
189
- readonly "reflect": boolean;
190
- readonly "default": string;
191
- }, {
192
- readonly "name": string;
193
- readonly "attribute": null;
194
- readonly "type": string;
195
- readonly "converter": string;
196
- readonly "reflect": boolean;
197
- readonly "default": null;
198
- readonly "computed": boolean;
199
- readonly "deps": readonly [string];
200
- }];
128
+ declare const __compiledProperties: ({
129
+ name: string;
130
+ attribute: null;
131
+ type: string;
132
+ converter: string;
133
+ reflect: boolean;
134
+ default: string;
135
+ computed?: undefined;
136
+ deps?: undefined;
137
+ } | {
138
+ name: string;
139
+ attribute: null;
140
+ type: string;
141
+ converter: string;
142
+ reflect: boolean;
143
+ default: null;
144
+ computed: boolean;
145
+ deps: string[];
146
+ })[];
201
147
  declare const __elementMetadata: {
202
- readonly "tag": string;
203
- readonly "className": string;
204
- readonly "sourceFile": string;
205
- readonly "properties": readonly [{
206
- readonly "name": string;
207
- readonly "attribute": null;
208
- readonly "type": string;
209
- readonly "converter": string;
210
- readonly "reflect": boolean;
211
- readonly "default": string;
212
- }, {
213
- readonly "name": string;
214
- readonly "attribute": null;
215
- readonly "type": string;
216
- readonly "converter": string;
217
- readonly "reflect": boolean;
218
- readonly "default": null;
219
- readonly "computed": boolean;
220
- readonly "deps": readonly [string];
221
- }];
222
- readonly "observedAttributes": readonly [];
223
- readonly "cem": {
224
- readonly "tagName": string;
225
- readonly "className": string;
226
- readonly "declaration": {
227
- readonly "name": string;
228
- readonly "module": string;
148
+ tag: string;
149
+ className: string;
150
+ sourceFile: string;
151
+ properties: ({
152
+ name: string;
153
+ attribute: null;
154
+ type: string;
155
+ converter: string;
156
+ reflect: boolean;
157
+ default: string;
158
+ computed?: undefined;
159
+ deps?: undefined;
160
+ } | {
161
+ name: string;
162
+ attribute: null;
163
+ type: string;
164
+ converter: string;
165
+ reflect: boolean;
166
+ default: null;
167
+ computed: boolean;
168
+ deps: string[];
169
+ })[];
170
+ observedAttributes: never[];
171
+ cem: {
172
+ tagName: string;
173
+ className: string;
174
+ declaration: {
175
+ name: string;
176
+ module: string;
229
177
  };
230
- readonly "attributes": readonly [];
231
- readonly "members": readonly [{
232
- readonly "name": string;
233
- readonly "fieldName": string;
234
- readonly "type": string;
235
- readonly "attribute": null;
236
- readonly "reflect": boolean;
237
- }, {
238
- readonly "name": string;
239
- readonly "fieldName": string;
240
- readonly "type": string;
241
- readonly "attribute": null;
242
- readonly "reflect": boolean;
243
- }];
178
+ attributes: never[];
179
+ members: {
180
+ name: string;
181
+ fieldName: string;
182
+ type: string;
183
+ attribute: null;
184
+ reflect: boolean;
185
+ }[];
244
186
  };
245
187
  };
246
188
  declare const __observedAttributes: string[];
247
189
  declare const __compiledProps: {
248
- readonly anchorName: {
249
- readonly type;
250
- readonly default: string;
251
- readonly reflect: boolean;
252
- readonly attribute: boolean;
190
+ anchorName: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ reflect: boolean;
194
+ attribute: boolean;
253
195
  };
254
- readonly anchorStyle: {
255
- readonly type;
256
- readonly default;
257
- readonly reflect: boolean;
258
- readonly attribute: boolean;
196
+ anchorStyle: {
197
+ type: ObjectConstructor;
198
+ default: undefined;
199
+ reflect: boolean;
200
+ attribute: boolean;
259
201
  };
260
202
  };
261
203
  export declare class OpenDropdown extends OpenElement {
@@ -271,12 +213,13 @@ export declare class OpenDropdown extends OpenElement {
271
213
  };
272
214
  static styles: StyleSheetLike[];
273
215
  anchorName: string;
274
- override onDsdHydrated(): void;
275
- override onCsrRendered(): void;
276
- private watchFocusReturn: any;
277
- private syncAnchorName: any;
278
- private onTriggerPointerDown: any;
279
- private toggle: any;
216
+ onDsdHydrated(): void;
217
+ onCsrRendered(): void;
218
+ private watchFocusReturn;
219
+ private syncAnchorName;
220
+ private onTriggerPointerDown;
221
+ private toggle;
280
222
  render(): never;
281
223
  }
282
- export { __partProgram, __elementMetadata };
224
+ //#endregion
225
+ export { __elementMetadata, __partProgram };