@openelement/ui 1.0.0-alpha.14 → 1.0.0-alpha.16
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/CUSTOMIZATION.md +106 -112
- package/README.md +19 -39
- package/custom-elements.json +369 -0
- package/package.json +3 -2
- package/src/button-machine.js +54 -0
- package/src/component-config.js +7 -0
- package/src/component-recipes.js +2 -24
- package/src/copy-feedback.js +32 -0
- package/src/dialog-machine.js +104 -0
- package/src/dropdown-machine.js +253 -0
- package/src/generated-manifest.json +135 -87
- package/src/index.d.ts +7 -8
- package/src/index.js +7 -8
- package/src/input-machine.js +33 -0
- package/src/open-button.css +119 -108
- package/src/open-button.d.ts +34 -342
- package/src/open-button.generated.js +592 -0
- package/src/open-button.js +115 -1140
- package/src/open-code-block.css +24 -44
- package/src/open-code-block.d.ts +15 -175
- package/src/open-code-block.generated.js +293 -0
- package/src/open-code-block.js +112 -224
- package/src/open-dialog.css +114 -127
- package/src/open-dialog.d.ts +22 -261
- package/src/open-dialog.generated.js +501 -0
- package/src/open-dialog.js +137 -632
- package/src/open-dropdown.css +26 -26
- package/src/open-dropdown.d.ts +15 -218
- package/src/open-dropdown.generated.js +211 -0
- package/src/open-dropdown.js +74 -355
- package/src/open-input.css +69 -74
- package/src/open-input.d.ts +34 -461
- package/src/open-input.generated.js +685 -0
- package/src/open-input.js +161 -1802
- package/src/open-theme-toggle.css +37 -47
- package/src/open-theme-toggle.d.ts +19 -190
- package/src/open-theme-toggle.generated.js +564 -0
- package/src/open-theme-toggle.js +209 -509
- package/src/theme-contract.js +40 -0
- package/src/theme.css +26 -8
- package/src/control-recipe.css +0 -21
- package/src/register.d.ts +0 -4
- package/src/register.js +0 -22
package/src/open-dialog.d.ts
CHANGED
|
@@ -1,271 +1,32 @@
|
|
|
1
|
-
import { OpenElement, StyleSheetLike } from "@openelement/element";
|
|
2
1
|
//#region src/open-dialog.d.ts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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: ({
|
|
27
|
-
k: string;
|
|
28
|
-
id: string;
|
|
29
|
-
tag: string;
|
|
30
|
-
attrs: string[][];
|
|
31
|
-
children: {
|
|
32
|
-
k: string;
|
|
33
|
-
id: string;
|
|
34
|
-
index: number;
|
|
35
|
-
}[];
|
|
36
|
-
} | {
|
|
37
|
-
k: string;
|
|
38
|
-
id: string;
|
|
39
|
-
tag: string;
|
|
40
|
-
attrs: string[][];
|
|
41
|
-
children: {
|
|
42
|
-
k: string;
|
|
43
|
-
value: string;
|
|
44
|
-
}[];
|
|
45
|
-
})[];
|
|
46
|
-
}[];
|
|
47
|
-
}[];
|
|
48
|
-
}[];
|
|
49
|
-
parts: ({
|
|
50
|
-
k: string;
|
|
51
|
-
event: string;
|
|
52
|
-
handler: string;
|
|
53
|
-
action: {
|
|
54
|
-
kind: string;
|
|
55
|
-
name: string;
|
|
56
|
-
};
|
|
57
|
-
path: number[];
|
|
58
|
-
index: number;
|
|
59
|
-
location: {
|
|
60
|
-
id: string;
|
|
61
|
-
kind: string;
|
|
62
|
-
path: number[];
|
|
63
|
-
node: string;
|
|
64
|
-
};
|
|
65
|
-
signal?: undefined;
|
|
66
|
-
name?: undefined;
|
|
67
|
-
} | {
|
|
68
|
-
k: string;
|
|
69
|
-
signal: string;
|
|
70
|
-
name: string;
|
|
71
|
-
path: number[];
|
|
72
|
-
index: number;
|
|
73
|
-
location: {
|
|
74
|
-
id: string;
|
|
75
|
-
kind: string;
|
|
76
|
-
path: number[];
|
|
77
|
-
node: string;
|
|
78
|
-
};
|
|
79
|
-
event?: undefined;
|
|
80
|
-
handler?: undefined;
|
|
81
|
-
action?: undefined;
|
|
82
|
-
} | {
|
|
83
|
-
k: string;
|
|
84
|
-
signal: string;
|
|
85
|
-
index: number;
|
|
86
|
-
location: {
|
|
87
|
-
id: string;
|
|
88
|
-
kind: string;
|
|
89
|
-
path: number[];
|
|
90
|
-
node?: undefined;
|
|
2
|
+
/**
|
|
3
|
+
* Platform facts for the generated element: shadow root with delegated focus,
|
|
4
|
+
* the authored package stylesheets, and the declared property rows. Only
|
|
5
|
+
* `open` reflects property updates back to the attribute.
|
|
6
|
+
*/
|
|
7
|
+
export declare const openElement: {
|
|
8
|
+
root: "shadow";
|
|
9
|
+
delegatesFocus: true;
|
|
10
|
+
styles: string[];
|
|
11
|
+
properties: {
|
|
12
|
+
open: {
|
|
13
|
+
default: false;
|
|
14
|
+
reflect: true;
|
|
91
15
|
};
|
|
92
|
-
|
|
93
|
-
handler?: undefined;
|
|
94
|
-
action?: undefined;
|
|
95
|
-
path?: undefined;
|
|
96
|
-
name?: undefined;
|
|
97
|
-
})[];
|
|
98
|
-
regions: never[];
|
|
99
|
-
dependencies: {
|
|
100
|
-
signal: string;
|
|
101
|
-
owner: {
|
|
102
|
-
kind: string;
|
|
103
|
-
index: number;
|
|
104
|
-
};
|
|
105
|
-
location: string;
|
|
106
|
-
}[];
|
|
107
|
-
locations: ({
|
|
108
|
-
id: string;
|
|
109
|
-
kind: string;
|
|
110
|
-
tag: string;
|
|
111
|
-
path: number[];
|
|
112
|
-
part?: undefined;
|
|
113
|
-
node?: undefined;
|
|
114
|
-
} | {
|
|
115
|
-
id: string;
|
|
116
|
-
kind: string;
|
|
117
|
-
part: number;
|
|
118
|
-
node: string;
|
|
119
|
-
path: number[];
|
|
120
|
-
tag?: undefined;
|
|
121
|
-
} | {
|
|
122
|
-
id: string;
|
|
123
|
-
kind: string;
|
|
124
|
-
part: number;
|
|
125
|
-
path: number[];
|
|
126
|
-
tag?: undefined;
|
|
127
|
-
node?: undefined;
|
|
128
|
-
})[];
|
|
129
|
-
metadata: {
|
|
130
|
-
tag: string;
|
|
131
|
-
className: string;
|
|
132
|
-
sourceFile: string;
|
|
133
|
-
properties: ({
|
|
134
|
-
name: string;
|
|
135
|
-
attribute: string;
|
|
136
|
-
type: string;
|
|
137
|
-
converter: string;
|
|
138
|
-
reflect: boolean;
|
|
139
|
-
default: boolean;
|
|
140
|
-
} | {
|
|
141
|
-
name: string;
|
|
142
|
-
attribute: string;
|
|
143
|
-
type: string;
|
|
144
|
-
converter: string;
|
|
145
|
-
reflect: boolean;
|
|
16
|
+
label: {
|
|
146
17
|
default: string;
|
|
147
|
-
})[];
|
|
148
|
-
observedAttributes: string[];
|
|
149
|
-
cem: {
|
|
150
|
-
tagName: string;
|
|
151
|
-
className: string;
|
|
152
|
-
declaration: {
|
|
153
|
-
name: string;
|
|
154
|
-
module: string;
|
|
155
|
-
};
|
|
156
|
-
attributes: {
|
|
157
|
-
name: string;
|
|
158
|
-
fieldName: string;
|
|
159
|
-
type: string;
|
|
160
|
-
reflect: boolean;
|
|
161
|
-
}[];
|
|
162
|
-
members: {
|
|
163
|
-
name: string;
|
|
164
|
-
fieldName: string;
|
|
165
|
-
type: string;
|
|
166
|
-
attribute: string;
|
|
167
|
-
reflect: boolean;
|
|
168
|
-
}[];
|
|
169
18
|
};
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
declare const __compiledProperties: ({
|
|
173
|
-
name: string;
|
|
174
|
-
attribute: string;
|
|
175
|
-
type: string;
|
|
176
|
-
converter: string;
|
|
177
|
-
reflect: boolean;
|
|
178
|
-
default: boolean;
|
|
179
|
-
} | {
|
|
180
|
-
name: string;
|
|
181
|
-
attribute: string;
|
|
182
|
-
type: string;
|
|
183
|
-
converter: string;
|
|
184
|
-
reflect: boolean;
|
|
185
|
-
default: string;
|
|
186
|
-
})[];
|
|
187
|
-
declare const __elementMetadata: {
|
|
188
|
-
tag: string;
|
|
189
|
-
className: string;
|
|
190
|
-
sourceFile: string;
|
|
191
|
-
properties: ({
|
|
192
|
-
name: string;
|
|
193
|
-
attribute: string;
|
|
194
|
-
type: string;
|
|
195
|
-
converter: string;
|
|
196
|
-
reflect: boolean;
|
|
197
|
-
default: boolean;
|
|
198
|
-
} | {
|
|
199
|
-
name: string;
|
|
200
|
-
attribute: string;
|
|
201
|
-
type: string;
|
|
202
|
-
converter: string;
|
|
203
|
-
reflect: boolean;
|
|
204
|
-
default: string;
|
|
205
|
-
})[];
|
|
206
|
-
observedAttributes: string[];
|
|
207
|
-
cem: {
|
|
208
|
-
tagName: string;
|
|
209
|
-
className: string;
|
|
210
|
-
declaration: {
|
|
211
|
-
name: string;
|
|
212
|
-
module: string;
|
|
213
|
-
};
|
|
214
|
-
attributes: {
|
|
215
|
-
name: string;
|
|
216
|
-
fieldName: string;
|
|
217
|
-
type: string;
|
|
218
|
-
reflect: boolean;
|
|
219
|
-
}[];
|
|
220
|
-
members: {
|
|
221
|
-
name: string;
|
|
222
|
-
fieldName: string;
|
|
223
|
-
type: string;
|
|
19
|
+
closeLabel: {
|
|
20
|
+
default: string;
|
|
224
21
|
attribute: string;
|
|
225
|
-
|
|
226
|
-
}[];
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
declare const __observedAttributes: string[];
|
|
230
|
-
declare const __compiledProps: {
|
|
231
|
-
open: {
|
|
232
|
-
type: BooleanConstructor;
|
|
233
|
-
default: boolean;
|
|
234
|
-
reflect: boolean;
|
|
235
|
-
attribute: string;
|
|
236
|
-
};
|
|
237
|
-
label: {
|
|
238
|
-
type: StringConstructor;
|
|
239
|
-
default: string;
|
|
240
|
-
reflect: boolean;
|
|
241
|
-
attribute: string;
|
|
22
|
+
};
|
|
242
23
|
};
|
|
243
24
|
};
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
static __compiledProperties: typeof __compiledProperties;
|
|
247
|
-
static __elementMetadata: typeof __elementMetadata;
|
|
248
|
-
static props: typeof __compiledProps;
|
|
249
|
-
static observedAttributes: typeof __observedAttributes;
|
|
250
|
-
static delegatesFocus: boolean;
|
|
251
|
-
static styles: StyleSheetLike[];
|
|
25
|
+
/** Dialog component using native <dialog> element + popover API. */
|
|
26
|
+
declare function OpenDialog(props: {
|
|
252
27
|
open: boolean;
|
|
253
28
|
label: string;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
disconnectedCallback(): void;
|
|
257
|
-
private syncOpenState;
|
|
258
|
-
private updateStates;
|
|
259
|
-
private stateSet;
|
|
260
|
-
show(): void;
|
|
261
|
-
close(): void;
|
|
262
|
-
toggle(): void;
|
|
263
|
-
private syncDialogElement;
|
|
264
|
-
private handleNativeClose;
|
|
265
|
-
private handleClose;
|
|
266
|
-
private handleCancel;
|
|
267
|
-
private handleTrigger;
|
|
268
|
-
render(): never;
|
|
269
|
-
}
|
|
29
|
+
closeLabel: string;
|
|
30
|
+
}): any;
|
|
270
31
|
//#endregion
|
|
271
|
-
export {
|
|
32
|
+
export { OpenDialog as default };
|