@elenajs/components 0.16.0 → 1.0.0-rc.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 +36 -10
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +1 -4
- package/dist/bundle.js.map +1 -1
- package/dist/button.css +1 -1
- package/dist/button.d.ts +2 -0
- package/dist/button.js +1 -4
- package/dist/button.js.map +1 -1
- package/dist/custom-elements.d.ts +39 -0
- package/dist/custom-elements.json +282 -26
- package/dist/elena-DzEybqgS.js +2 -0
- package/dist/elena-DzEybqgS.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/spinner.css +1 -0
- package/dist/spinner.d.ts +8 -0
- package/dist/spinner.js +2 -0
- package/dist/spinner.js.map +1 -0
- package/dist/stack.js +1 -1
- package/dist/stack.js.map +1 -1
- package/dist/visually-hidden.css +1 -0
- package/dist/visually-hidden.d.ts +8 -0
- package/dist/visually-hidden.js +2 -0
- package/dist/visually-hidden.js.map +1 -0
- package/package.json +16 -9
- package/dist/elena-5JTA2VdO.js +0 -2
- package/dist/elena-5JTA2VdO.js.map +0 -1
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
"module": "./button/button.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "js",
|
|
20
|
+
"name": "Spinner",
|
|
21
|
+
"declaration": {
|
|
22
|
+
"name": "default",
|
|
23
|
+
"module": "./spinner/spinner.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
18
26
|
{
|
|
19
27
|
"kind": "js",
|
|
20
28
|
"name": "Stack",
|
|
@@ -22,6 +30,14 @@
|
|
|
22
30
|
"name": "default",
|
|
23
31
|
"module": "./stack/stack.js"
|
|
24
32
|
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "js",
|
|
36
|
+
"name": "VisuallyHidden",
|
|
37
|
+
"declaration": {
|
|
38
|
+
"name": "default",
|
|
39
|
+
"module": "./visually-hidden/visually-hidden.js"
|
|
40
|
+
}
|
|
25
41
|
}
|
|
26
42
|
]
|
|
27
43
|
},
|
|
@@ -42,24 +58,67 @@
|
|
|
42
58
|
"description": "Overrides the default background color.",
|
|
43
59
|
"name": "--elena-button-bg"
|
|
44
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"description": "Overrides the default border color.",
|
|
63
|
+
"name": "--elena-button-border"
|
|
64
|
+
},
|
|
45
65
|
{
|
|
46
66
|
"description": "Overrides the default font family.",
|
|
47
67
|
"name": "--elena-button-font"
|
|
48
68
|
},
|
|
69
|
+
{
|
|
70
|
+
"description": "Overrides the default font size.",
|
|
71
|
+
"name": "--elena-button-font-size"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"description": "Overrides the default font weight.",
|
|
75
|
+
"name": "--elena-button-font-weight"
|
|
76
|
+
},
|
|
49
77
|
{
|
|
50
78
|
"description": "Overrides the default border radius.",
|
|
51
79
|
"name": "--elena-button-radius"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"description": "Overrides the default focus ring color.",
|
|
83
|
+
"name": "--elena-button-focus"
|
|
52
84
|
}
|
|
53
85
|
],
|
|
54
86
|
"members": [
|
|
87
|
+
{
|
|
88
|
+
"kind": "field",
|
|
89
|
+
"name": "tagName",
|
|
90
|
+
"type": {
|
|
91
|
+
"text": "string"
|
|
92
|
+
},
|
|
93
|
+
"static": true,
|
|
94
|
+
"default": "\"elena-button\""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"kind": "field",
|
|
98
|
+
"name": "events",
|
|
99
|
+
"type": {
|
|
100
|
+
"text": "array"
|
|
101
|
+
},
|
|
102
|
+
"static": true,
|
|
103
|
+
"default": "[\"click\", \"focus\", \"blur\"]"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"kind": "field",
|
|
107
|
+
"name": "props",
|
|
108
|
+
"type": {
|
|
109
|
+
"text": "array"
|
|
110
|
+
},
|
|
111
|
+
"static": true,
|
|
112
|
+
"default": "[ \"variant\", \"size\", \"expand\", \"disabled\", \"loading\", \"label\", \"href\", \"target\", \"download\", \"name\", \"value\", \"type\", { name: \"icon\", reflect: false }, ]"
|
|
113
|
+
},
|
|
55
114
|
{
|
|
56
115
|
"kind": "field",
|
|
57
116
|
"name": "variant",
|
|
58
117
|
"type": {
|
|
59
118
|
"text": "\"default\" | \"primary\" | \"danger\" | \"outline\""
|
|
60
119
|
},
|
|
61
|
-
"description": "The style variant of the button.",
|
|
62
120
|
"default": "\"default\"",
|
|
121
|
+
"description": "The style variant of the button.",
|
|
63
122
|
"attribute": "variant"
|
|
64
123
|
},
|
|
65
124
|
{
|
|
@@ -68,8 +127,8 @@
|
|
|
68
127
|
"type": {
|
|
69
128
|
"text": "\"sm\" | \"md\" | \"lg\""
|
|
70
129
|
},
|
|
71
|
-
"description": "The size of the button.",
|
|
72
130
|
"default": "\"md\"",
|
|
131
|
+
"description": "The size of the button.",
|
|
73
132
|
"attribute": "size"
|
|
74
133
|
},
|
|
75
134
|
{
|
|
@@ -78,8 +137,8 @@
|
|
|
78
137
|
"type": {
|
|
79
138
|
"text": "boolean"
|
|
80
139
|
},
|
|
81
|
-
"description": "Makes the button fit its container.",
|
|
82
140
|
"default": "false",
|
|
141
|
+
"description": "Makes the button fit its container.",
|
|
83
142
|
"attribute": "expand"
|
|
84
143
|
},
|
|
85
144
|
{
|
|
@@ -88,8 +147,8 @@
|
|
|
88
147
|
"type": {
|
|
89
148
|
"text": "boolean"
|
|
90
149
|
},
|
|
91
|
-
"description": "Makes the component disabled.",
|
|
92
150
|
"default": "false",
|
|
151
|
+
"description": "Makes the component disabled.",
|
|
93
152
|
"attribute": "disabled"
|
|
94
153
|
},
|
|
95
154
|
{
|
|
@@ -98,8 +157,8 @@
|
|
|
98
157
|
"type": {
|
|
99
158
|
"text": "string"
|
|
100
159
|
},
|
|
101
|
-
"description": "Sets aria-label for the inner button.",
|
|
102
160
|
"default": "\"\"",
|
|
161
|
+
"description": "Sets aria-label for the inner button.",
|
|
103
162
|
"attribute": "label"
|
|
104
163
|
},
|
|
105
164
|
{
|
|
@@ -108,8 +167,8 @@
|
|
|
108
167
|
"type": {
|
|
109
168
|
"text": "string"
|
|
110
169
|
},
|
|
111
|
-
"description": "Renders the button as a link and sets a href for it.",
|
|
112
170
|
"default": "\"\"",
|
|
171
|
+
"description": "Renders the button as a link and sets a href for it.",
|
|
113
172
|
"attribute": "href"
|
|
114
173
|
},
|
|
115
174
|
{
|
|
@@ -118,8 +177,8 @@
|
|
|
118
177
|
"type": {
|
|
119
178
|
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
120
179
|
},
|
|
121
|
-
"description": "Defines where to open the linked URL.",
|
|
122
180
|
"default": "\"_self\"",
|
|
181
|
+
"description": "Defines where to open the linked URL.",
|
|
123
182
|
"attribute": "target"
|
|
124
183
|
},
|
|
125
184
|
{
|
|
@@ -128,18 +187,28 @@
|
|
|
128
187
|
"type": {
|
|
129
188
|
"text": "boolean"
|
|
130
189
|
},
|
|
131
|
-
"description": "Trigger a file download instead of a page visit.",
|
|
132
190
|
"default": "false",
|
|
191
|
+
"description": "Trigger a file download instead of a page visit.",
|
|
133
192
|
"attribute": "download"
|
|
134
193
|
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "field",
|
|
196
|
+
"name": "loading",
|
|
197
|
+
"type": {
|
|
198
|
+
"text": "boolean"
|
|
199
|
+
},
|
|
200
|
+
"default": "false",
|
|
201
|
+
"description": "Show loading state",
|
|
202
|
+
"attribute": "loading"
|
|
203
|
+
},
|
|
135
204
|
{
|
|
136
205
|
"kind": "field",
|
|
137
206
|
"name": "name",
|
|
138
207
|
"type": {
|
|
139
208
|
"text": "string"
|
|
140
209
|
},
|
|
141
|
-
"description": "The name used to identify the button in forms.",
|
|
142
210
|
"default": "\"\"",
|
|
211
|
+
"description": "The name used to identify the button in forms.",
|
|
143
212
|
"attribute": "name"
|
|
144
213
|
},
|
|
145
214
|
{
|
|
@@ -148,8 +217,8 @@
|
|
|
148
217
|
"type": {
|
|
149
218
|
"text": "string"
|
|
150
219
|
},
|
|
151
|
-
"description": "The value used to identify the button in forms.",
|
|
152
220
|
"default": "\"\"",
|
|
221
|
+
"description": "The value used to identify the button in forms.",
|
|
153
222
|
"attribute": "value"
|
|
154
223
|
},
|
|
155
224
|
{
|
|
@@ -158,8 +227,8 @@
|
|
|
158
227
|
"type": {
|
|
159
228
|
"text": "\"submit\" | \"reset\" | \"button\""
|
|
160
229
|
},
|
|
161
|
-
"description": "The type of the button.",
|
|
162
230
|
"default": "\"button\"",
|
|
231
|
+
"description": "The type of the button.",
|
|
163
232
|
"attribute": "type"
|
|
164
233
|
},
|
|
165
234
|
{
|
|
@@ -168,8 +237,8 @@
|
|
|
168
237
|
"type": {
|
|
169
238
|
"text": "string"
|
|
170
239
|
},
|
|
171
|
-
"description": "An SVG icon to display inside the button.",
|
|
172
240
|
"default": "\"\"",
|
|
241
|
+
"description": "An SVG icon to display inside the button.",
|
|
173
242
|
"attribute": "icon"
|
|
174
243
|
},
|
|
175
244
|
{
|
|
@@ -202,8 +271,8 @@
|
|
|
202
271
|
"type": {
|
|
203
272
|
"text": "\"default\" | \"primary\" | \"danger\" | \"outline\""
|
|
204
273
|
},
|
|
205
|
-
"description": "The style variant of the button.",
|
|
206
274
|
"default": "\"default\"",
|
|
275
|
+
"description": "The style variant of the button.",
|
|
207
276
|
"fieldName": "variant"
|
|
208
277
|
},
|
|
209
278
|
{
|
|
@@ -211,8 +280,8 @@
|
|
|
211
280
|
"type": {
|
|
212
281
|
"text": "\"sm\" | \"md\" | \"lg\""
|
|
213
282
|
},
|
|
214
|
-
"description": "The size of the button.",
|
|
215
283
|
"default": "\"md\"",
|
|
284
|
+
"description": "The size of the button.",
|
|
216
285
|
"fieldName": "size"
|
|
217
286
|
},
|
|
218
287
|
{
|
|
@@ -220,8 +289,8 @@
|
|
|
220
289
|
"type": {
|
|
221
290
|
"text": "boolean"
|
|
222
291
|
},
|
|
223
|
-
"description": "Makes the button fit its container.",
|
|
224
292
|
"default": "false",
|
|
293
|
+
"description": "Makes the button fit its container.",
|
|
225
294
|
"fieldName": "expand"
|
|
226
295
|
},
|
|
227
296
|
{
|
|
@@ -229,8 +298,8 @@
|
|
|
229
298
|
"type": {
|
|
230
299
|
"text": "boolean"
|
|
231
300
|
},
|
|
232
|
-
"description": "Makes the component disabled.",
|
|
233
301
|
"default": "false",
|
|
302
|
+
"description": "Makes the component disabled.",
|
|
234
303
|
"fieldName": "disabled"
|
|
235
304
|
},
|
|
236
305
|
{
|
|
@@ -238,8 +307,8 @@
|
|
|
238
307
|
"type": {
|
|
239
308
|
"text": "string"
|
|
240
309
|
},
|
|
241
|
-
"description": "Sets aria-label for the inner button.",
|
|
242
310
|
"default": "\"\"",
|
|
311
|
+
"description": "Sets aria-label for the inner button.",
|
|
243
312
|
"fieldName": "label"
|
|
244
313
|
},
|
|
245
314
|
{
|
|
@@ -247,8 +316,8 @@
|
|
|
247
316
|
"type": {
|
|
248
317
|
"text": "string"
|
|
249
318
|
},
|
|
250
|
-
"description": "Renders the button as a link and sets a href for it.",
|
|
251
319
|
"default": "\"\"",
|
|
320
|
+
"description": "Renders the button as a link and sets a href for it.",
|
|
252
321
|
"fieldName": "href"
|
|
253
322
|
},
|
|
254
323
|
{
|
|
@@ -256,8 +325,8 @@
|
|
|
256
325
|
"type": {
|
|
257
326
|
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
258
327
|
},
|
|
259
|
-
"description": "Defines where to open the linked URL.",
|
|
260
328
|
"default": "\"_self\"",
|
|
329
|
+
"description": "Defines where to open the linked URL.",
|
|
261
330
|
"fieldName": "target"
|
|
262
331
|
},
|
|
263
332
|
{
|
|
@@ -265,17 +334,26 @@
|
|
|
265
334
|
"type": {
|
|
266
335
|
"text": "boolean"
|
|
267
336
|
},
|
|
268
|
-
"description": "Trigger a file download instead of a page visit.",
|
|
269
337
|
"default": "false",
|
|
338
|
+
"description": "Trigger a file download instead of a page visit.",
|
|
270
339
|
"fieldName": "download"
|
|
271
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"name": "loading",
|
|
343
|
+
"type": {
|
|
344
|
+
"text": "boolean"
|
|
345
|
+
},
|
|
346
|
+
"default": "false",
|
|
347
|
+
"description": "Show loading state",
|
|
348
|
+
"fieldName": "loading"
|
|
349
|
+
},
|
|
272
350
|
{
|
|
273
351
|
"name": "name",
|
|
274
352
|
"type": {
|
|
275
353
|
"text": "string"
|
|
276
354
|
},
|
|
277
|
-
"description": "The name used to identify the button in forms.",
|
|
278
355
|
"default": "\"\"",
|
|
356
|
+
"description": "The name used to identify the button in forms.",
|
|
279
357
|
"fieldName": "name"
|
|
280
358
|
},
|
|
281
359
|
{
|
|
@@ -283,8 +361,8 @@
|
|
|
283
361
|
"type": {
|
|
284
362
|
"text": "string"
|
|
285
363
|
},
|
|
286
|
-
"description": "The value used to identify the button in forms.",
|
|
287
364
|
"default": "\"\"",
|
|
365
|
+
"description": "The value used to identify the button in forms.",
|
|
288
366
|
"fieldName": "value"
|
|
289
367
|
},
|
|
290
368
|
{
|
|
@@ -292,8 +370,8 @@
|
|
|
292
370
|
"type": {
|
|
293
371
|
"text": "\"submit\" | \"reset\" | \"button\""
|
|
294
372
|
},
|
|
295
|
-
"description": "The type of the button.",
|
|
296
373
|
"default": "\"button\"",
|
|
374
|
+
"description": "The type of the button.",
|
|
297
375
|
"fieldName": "type"
|
|
298
376
|
},
|
|
299
377
|
{
|
|
@@ -301,8 +379,8 @@
|
|
|
301
379
|
"type": {
|
|
302
380
|
"text": "string"
|
|
303
381
|
},
|
|
304
|
-
"description": "An SVG icon to display inside the button.",
|
|
305
382
|
"default": "\"\"",
|
|
383
|
+
"description": "An SVG icon to display inside the button.",
|
|
306
384
|
"fieldName": "icon"
|
|
307
385
|
},
|
|
308
386
|
{
|
|
@@ -348,6 +426,88 @@
|
|
|
348
426
|
}
|
|
349
427
|
]
|
|
350
428
|
},
|
|
429
|
+
{
|
|
430
|
+
"kind": "javascript-module",
|
|
431
|
+
"path": "src/spinner/spinner.js",
|
|
432
|
+
"declarations": [
|
|
433
|
+
{
|
|
434
|
+
"kind": "class",
|
|
435
|
+
"description": "Visually hidden hides the element visually while\nkeeping it available for assistive technologies.",
|
|
436
|
+
"name": "Spinner",
|
|
437
|
+
"cssProperties": [
|
|
438
|
+
{
|
|
439
|
+
"description": "Overrides the default spinner size.",
|
|
440
|
+
"name": "--elena-spinner-size"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"description": "Overrides the default spinner border width.",
|
|
444
|
+
"name": "--elena-spinner-border"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"members": [
|
|
448
|
+
{
|
|
449
|
+
"kind": "field",
|
|
450
|
+
"name": "tagName",
|
|
451
|
+
"type": {
|
|
452
|
+
"text": "string"
|
|
453
|
+
},
|
|
454
|
+
"static": true,
|
|
455
|
+
"default": "\"elena-spinner\""
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"kind": "field",
|
|
459
|
+
"name": "text",
|
|
460
|
+
"type": {
|
|
461
|
+
"text": "string"
|
|
462
|
+
},
|
|
463
|
+
"description": "The text content of the element, captured from light DOM before the first render.",
|
|
464
|
+
"attribute": "text"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"mixins": [
|
|
468
|
+
{
|
|
469
|
+
"name": "Elena",
|
|
470
|
+
"package": "@elenajs/core"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"superclass": {
|
|
474
|
+
"name": "HTMLElement"
|
|
475
|
+
},
|
|
476
|
+
"tagName": "elena-spinner",
|
|
477
|
+
"status": "alpha",
|
|
478
|
+
"displayName": "Spinner",
|
|
479
|
+
"attributes": [
|
|
480
|
+
{
|
|
481
|
+
"name": "text",
|
|
482
|
+
"fieldName": "text",
|
|
483
|
+
"type": {
|
|
484
|
+
"text": "string"
|
|
485
|
+
},
|
|
486
|
+
"description": "The text content of the element, captured from light DOM before the first render."
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"customElement": true
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"exports": [
|
|
493
|
+
{
|
|
494
|
+
"kind": "js",
|
|
495
|
+
"name": "default",
|
|
496
|
+
"declaration": {
|
|
497
|
+
"name": "Spinner",
|
|
498
|
+
"module": "src/spinner/spinner.js"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"kind": "custom-element-definition",
|
|
503
|
+
"name": "elena-spinner",
|
|
504
|
+
"declaration": {
|
|
505
|
+
"name": "Spinner",
|
|
506
|
+
"module": "src/spinner/spinner.js"
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
},
|
|
351
511
|
{
|
|
352
512
|
"kind": "javascript-module",
|
|
353
513
|
"path": "src/stack/stack.js",
|
|
@@ -363,14 +523,32 @@
|
|
|
363
523
|
}
|
|
364
524
|
],
|
|
365
525
|
"members": [
|
|
526
|
+
{
|
|
527
|
+
"kind": "field",
|
|
528
|
+
"name": "tagName",
|
|
529
|
+
"type": {
|
|
530
|
+
"text": "string"
|
|
531
|
+
},
|
|
532
|
+
"static": true,
|
|
533
|
+
"default": "\"elena-stack\""
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "field",
|
|
537
|
+
"name": "props",
|
|
538
|
+
"type": {
|
|
539
|
+
"text": "array"
|
|
540
|
+
},
|
|
541
|
+
"static": true,
|
|
542
|
+
"default": "[\"direction\"]"
|
|
543
|
+
},
|
|
366
544
|
{
|
|
367
545
|
"kind": "field",
|
|
368
546
|
"name": "direction",
|
|
369
547
|
"type": {
|
|
370
548
|
"text": "\"column\" | \"row\""
|
|
371
549
|
},
|
|
372
|
-
"description": "The direction of the stack.",
|
|
373
550
|
"default": "\"column\"",
|
|
551
|
+
"description": "The direction of the stack.",
|
|
374
552
|
"attribute": "direction"
|
|
375
553
|
},
|
|
376
554
|
{
|
|
@@ -389,8 +567,8 @@
|
|
|
389
567
|
"type": {
|
|
390
568
|
"text": "\"column\" | \"row\""
|
|
391
569
|
},
|
|
392
|
-
"description": "The direction of the stack.",
|
|
393
570
|
"default": "\"column\"",
|
|
571
|
+
"description": "The direction of the stack.",
|
|
394
572
|
"fieldName": "direction"
|
|
395
573
|
},
|
|
396
574
|
{
|
|
@@ -435,6 +613,84 @@
|
|
|
435
613
|
}
|
|
436
614
|
}
|
|
437
615
|
]
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"kind": "javascript-module",
|
|
619
|
+
"path": "src/visually-hidden/visually-hidden.js",
|
|
620
|
+
"declarations": [
|
|
621
|
+
{
|
|
622
|
+
"kind": "class",
|
|
623
|
+
"description": "Visually hidden hides the element visually while\nkeeping it available for assistive technologies.",
|
|
624
|
+
"name": "VisuallyHidden",
|
|
625
|
+
"slots": [
|
|
626
|
+
{
|
|
627
|
+
"description": "The hidden content",
|
|
628
|
+
"name": ""
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"members": [
|
|
632
|
+
{
|
|
633
|
+
"kind": "field",
|
|
634
|
+
"name": "tagName",
|
|
635
|
+
"type": {
|
|
636
|
+
"text": "string"
|
|
637
|
+
},
|
|
638
|
+
"static": true,
|
|
639
|
+
"default": "\"elena-visually-hidden\""
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"kind": "field",
|
|
643
|
+
"name": "text",
|
|
644
|
+
"type": {
|
|
645
|
+
"text": "string"
|
|
646
|
+
},
|
|
647
|
+
"description": "The text content of the element, captured from light DOM before the first render.",
|
|
648
|
+
"attribute": "text"
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"mixins": [
|
|
652
|
+
{
|
|
653
|
+
"name": "Elena",
|
|
654
|
+
"package": "@elenajs/core"
|
|
655
|
+
}
|
|
656
|
+
],
|
|
657
|
+
"superclass": {
|
|
658
|
+
"name": "HTMLElement"
|
|
659
|
+
},
|
|
660
|
+
"tagName": "elena-visually-hidden",
|
|
661
|
+
"status": "alpha",
|
|
662
|
+
"displayName": "Visually Hidden",
|
|
663
|
+
"attributes": [
|
|
664
|
+
{
|
|
665
|
+
"name": "text",
|
|
666
|
+
"fieldName": "text",
|
|
667
|
+
"type": {
|
|
668
|
+
"text": "string"
|
|
669
|
+
},
|
|
670
|
+
"description": "The text content of the element, captured from light DOM before the first render."
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"customElement": true
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
"exports": [
|
|
677
|
+
{
|
|
678
|
+
"kind": "js",
|
|
679
|
+
"name": "default",
|
|
680
|
+
"declaration": {
|
|
681
|
+
"name": "VisuallyHidden",
|
|
682
|
+
"module": "src/visually-hidden/visually-hidden.js"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"kind": "custom-element-definition",
|
|
687
|
+
"name": "elena-visually-hidden",
|
|
688
|
+
"declaration": {
|
|
689
|
+
"name": "VisuallyHidden",
|
|
690
|
+
"module": "src/visually-hidden/visually-hidden.js"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
]
|
|
438
694
|
}
|
|
439
695
|
]
|
|
440
696
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(t,e,n){if(e="boolean"===t&&"boolean"!=typeof e?null!==e:e,!n)return e;if("toAttribute"===n)switch(t){case"object":case"array":return null===e?null:JSON.stringify(e);case"boolean":return e?"":null;case"number":return null===e?null:e;default:return""===e?null:e}else switch(t){case"object":case"array":if(!e)return e;try{return JSON.parse(e)}catch{return console.warn("░█ [ELENA]: Invalid JSON: "+e),null}case"boolean":return e;case"number":return null!==e?+e:e;default:return e??""}}function e(t,e,n){t?null===n?t.removeAttribute(e):t.setAttribute(e,n):console.warn("░█ [ELENA]: Cannot sync attrs.")}const n={"&":"&","<":"<",">":">",'"':""","'":"'"};function s(t){return Array.isArray(t)?t.map(t=>r(t)).join(""):r(t)}function r(t){return t?.__raw?String(t):function(t){return String(t).replace(/[&<>"']/g,t=>n[t])}(String(t??""))}function o(t,...e){let n;return{__raw:!0,strings:t,values:e,toString:()=>(void 0===n&&(n=t.reduce((t,n,r)=>t+n+s(e[r]),"")),n)}}function i(t){return{__raw:!0,toString:()=>t??""}}const a=Object.freeze({__raw:!0,toString:()=>""}),l=t=>Array.isArray(t)?t.some(t=>t?.__raw):t?.__raw,c=t=>Array.isArray(t)?t.map(t=>String(t??"")).join(""):String(t??"");function d(t){return t.replace(/>\n\s*/g,">").replace(/\n\s*</g,"<").replace(/\n\s*/g," ")}const h=new WeakMap,u="e"+Math.random().toString(36).slice(2,6);function p(t,e,n){return!function(t,e,n){if(t._tplStrings!==e||!t._tplParts)return!1;for(let e=0;e<n.length;e++){const s=n[e],r=Array.isArray(s)?c(s):s;if(r!==t._tplValues[e]){if(l(s)||!t._tplParts[e])return!1;t._tplValues[e]=r,t._tplParts[e].textContent=c(s)}}return!0}(t,e,n)&&(function(t,e,n){let r=h.get(e);if(!r){const t=Array.from(e,d);r={processedStrings:t,template:n.length>0?_(t,n.length):null},h.set(e,r)}if(r.template)t._tplParts=function(t,e,n){const r=e.content.cloneNode(!0),o=document.createTreeWalker(r,NodeFilter.SHOW_COMMENT),i=new Array(n.length),a=[];let d;for(;d=o.nextNode();)d.data===u&&a.push(d);for(let t=0;t<a.length;t++){const e=n[t];if(l(e)){const n=document.createElement("template");n.innerHTML=s(e),a[t].parentNode.replaceChild(n.content,a[t])}else{const n=document.createTextNode(c(e));a[t].parentNode.replaceChild(n,a[t]),i[t]=n}}return t.replaceChildren(r),i}(t,r.template,n);else{const e=n.map(t=>s(t)),o=r.processedStrings.reduce((t,n,s)=>t+n+(e[s]??""),"").replace(/>\s+</g,"><").trim(),i=document.createElement("template");i.innerHTML=o,f(t,i.content.childNodes),t._tplParts=new Array(n.length)}t._tplStrings=e,t._tplValues=n.map(t=>Array.isArray(t)?c(t):t)}(t,e,n),!0)}function _(t,e){const n=`\x3c!--${u}--\x3e`,s=t.reduce((t,s,r)=>t+s.replace(/>\s+</g,"><")+(r<e?n:""),"").trim(),r=document.createElement("template");r.innerHTML=s;const o=document.createTreeWalker(r.content,NodeFilter.SHOW_COMMENT);let i=0;for(;o.nextNode();)o.currentNode.data===u&&i++;return i===e?r:null}function f(t,e){const n=Array.from(t.childNodes),s=Array.from(e),r=Math.max(n.length,s.length);for(let e=0;e<r;e++){const r=n[e],o=s[e];r?o?r.nodeType!==o.nodeType||r.nodeType===Node.ELEMENT_NODE&&r.tagName!==o.tagName?t.replaceChild(o,r):r.nodeType===Node.TEXT_NODE?r.textContent!==o.textContent&&(r.textContent=o.textContent):r.nodeType===Node.ELEMENT_NODE&&(m(r,o),f(r,o.childNodes)):t.removeChild(r):t.appendChild(o)}}function m(t,e){for(let n=t.attributes.length-1;n>=0;n--){const{name:s}=t.attributes[n];e.hasAttribute(s)||t.removeAttribute(s)}for(let n=0;n<e.attributes.length;n++){const{name:s,value:r}=e.attributes[n];t.getAttribute(s)!==r&&t.setAttribute(s,r)}}class g extends Event{constructor(t,e){super(t,{bubbles:!0,composed:!0,...e})}}const y=new WeakSet;function E(n){return class extends n{element=null;attributeChangedCallback(e,n,s){super.attributeChangedCallback?.(e,n,s),"text"!==e?(this._syncing=!0,function(e,n,s,r){if(s!==r){const s=typeof e[n];"undefined"===s&&console.warn(`░█ [ELENA]: Prop "${n}" has no default.`);const o=t(s,r,"toProp");e[n]=o}}(this,e,n,s),this._syncing=!1,this._hydrated&&n!==s&&!this._isRendering&&this._safeRender()):this.text=s??""}static get observedAttributes(){if(this._observedAttrs)return this._observedAttrs;const t=this._propNames||(this.props||[]).map(t=>"string"==typeof t?t:t.name);return this._observedAttrs=[...t,"text"],this._observedAttrs}connectedCallback(){super.connectedCallback?.(),this._setupStaticProps(),this._captureClassFieldDefaults(),this._captureText(),this._attachShadow(),this.willUpdate(),this._applyRender(),this._resolveInnerElement(),this._syncProps(),this._delegateEvents(),this._hydrated||(this._hydrated=!0,this.setAttribute("hydrated",""),this.firstUpdated()),this.updated()}_setupStaticProps(){const n=this.constructor;if(y.has(n))return;const s=new Set,r=[];if(n.props){for(const t of n.props)"string"==typeof t?r.push(t):(r.push(t.name),!1===t.reflect&&s.add(t.name));r.includes("text")&&console.warn('░█ [ELENA]: "text" is reserved.'),function(n,s,r){for(const o of s){const s=!r||!r.has(o);Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get(){return this._props?this._props.get(o):void 0},set(n){if(this._props||(this._props=new Map),n!==this._props.get(o)&&(this._props.set(o,n),this.isConnected))if(s){if(!this._syncing){const s=t(typeof n,n,"toAttribute");e(this,o,s)}}else this._hydrated&&!this._isRendering&&this._safeRender()}})}}(n.prototype,r,s)}var o;n._propNames=r,n._noReflect=s,n._elenaEvents=n.events||null,n._resolver=(o=n.element)?t=>t.querySelector(o):t=>t.firstElementChild,y.add(n)}_captureClassFieldDefaults(){this._syncing=!0;for(const t of this.constructor._propNames)if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}this._syncing=!1}_captureText(){this._hydrated||void 0!==this._text||(this.text=this.textContent.trim())}get _renderRoot(){return this._shadow??this.shadowRoot??this}_attachShadow(){const t=this.constructor;if(!t.shadow)return;(this._shadow??this.shadowRoot)||(this._shadow=this.attachShadow({mode:t.shadow}));const e=this._shadow??this.shadowRoot;if(t.styles){if(!t._adoptedSheets){const e=Array.isArray(t.styles)?t.styles:[t.styles];t._adoptedSheets=e.map(t=>{if("string"==typeof t){const e=new CSSStyleSheet;return e.replaceSync(t),e}return t})}e.adoptedStyleSheets=t._adoptedSheets}}_applyRender(){const t=this.render();if(t&&t.strings){const e=this._renderRoot,n=p(e,t.strings,t.values);this._hydrated&&n&&(this.element=this.constructor._resolver(e))}}_resolveInnerElement(){if(!this.element){const t=this._renderRoot;this.element=this.constructor._resolver(t),this.element||(this.constructor.element&&console.warn("░█ [ELENA]: Element not found."),this.element=t.firstElementChild)}}_syncProps(){if(this._props){const n=this.constructor._noReflect;for(const[s,r]of this._props){if(n.has(s))continue;const o=t(typeof r,r,"toAttribute");(null!==o||this.hasAttribute(s))&&e(this,s,o)}}}_delegateEvents(){const t=this.constructor._elenaEvents;if(!this._events&&t?.length)if(this.element){this._events=!0;for(const e of t)this.element.addEventListener(e,this),this[e]=(...t)=>this.element[e](...t)}else console.warn("░█ [ELENA]: Cannot add events.")}render(){}willUpdate(){}firstUpdated(){}updated(){}adoptedCallback(){super.adoptedCallback?.()}disconnectedCallback(){if(super.disconnectedCallback?.(),this._events){this._events=!1;for(const t of this.constructor._elenaEvents)this.element?.removeEventListener(t,this)}}handleEvent(t){this.constructor._elenaEvents?.includes(t.type)&&(t.stopPropagation(),this.dispatchEvent(new g(t.type,{cancelable:!0})))}get text(){return this._text??""}set text(t){const e=this._text;this._text=t,this._hydrated&&e!==t&&!this._isRendering&&this._safeRender()}static define(){this.tagName?function(t,e){"undefined"!=typeof window&&"customElements"in window&&(window.customElements.get(t)||window.customElements.define(t,e))}(this.tagName,this):console.warn("░█ [ELENA]: define() without a tagName.")}_safeRender(){this._isRendering||this._renderPending||(this._renderPending=!0,this._updateComplete=new Promise(t=>{this._resolveUpdate=t}),queueMicrotask(()=>{try{this._performUpdate()}catch(t){console.error("░█ [ELENA]:",t)}}))}_performUpdate(){this._renderPending=!1;const t=this._resolveUpdate;this._resolveUpdate=null;try{try{this.willUpdate(),this._isRendering=!0,this._applyRender()}finally{this._isRendering=!1}this.updated()}finally{this._updateComplete=null,t()}}get updateComplete(){return this._updateComplete?this._updateComplete:Promise.resolve()}requestUpdate(){this._hydrated&&!this._isRendering&&this._safeRender()}}}export{E as a,i as b,o,a as u};
|
|
2
|
+
//# sourceMappingURL=elena-DzEybqgS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elena-DzEybqgS.js","sources":["../../core/dist/props.js","../../core/dist/utils.js","../../core/dist/render.js","../../core/dist/events.js","../../core/dist/elena.js"],"sourcesContent":["function t(t,e,n){if(e=\"boolean\"===t&&\"boolean\"!=typeof e?null!==e:e,!n)return e;if(\"toAttribute\"===n)switch(t){case\"object\":case\"array\":return null===e?null:JSON.stringify(e);case\"boolean\":return e?\"\":null;case\"number\":return null===e?null:e;default:return\"\"===e?null:e}else switch(t){case\"object\":case\"array\":if(!e)return e;try{return JSON.parse(e)}catch{return console.warn(\"░█ [ELENA]: Invalid JSON: \"+e),null}case\"boolean\":return e;case\"number\":return null!==e?+e:e;default:return e??\"\"}}function e(t,e,n){t?null===n?t.removeAttribute(e):t.setAttribute(e,n):console.warn(\"░█ [ELENA]: Cannot sync attrs.\")}function n(n,r,s){for(const o of r){const r=!s||!s.has(o);Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get(){return this._props?this._props.get(o):void 0},set(n){if(this._props||(this._props=new Map),n!==this._props.get(o)&&(this._props.set(o,n),this.isConnected))if(r){if(!this._syncing){const r=t(typeof n,n,\"toAttribute\");e(this,o,r)}}else this._hydrated&&!this._isRendering&&this._safeRender()}})}}function r(e,n,r,s){if(r!==s){const r=typeof e[n];\"undefined\"===r&&console.warn(`░█ [ELENA]: Prop \"${n}\" has no default.`);const o=t(r,s,\"toProp\");e[n]=o}}export{t as getPropValue,r as getProps,n as setProps,e as syncAttribute};\n//# sourceMappingURL=props.js.map\n","function n(n,r){\"undefined\"!=typeof window&&\"customElements\"in window&&(window.customElements.get(n)||window.customElements.define(n,r))}const r={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"};function t(n){return String(n).replace(/[&<>\"']/g,n=>r[n])}function e(n){return Array.isArray(n)?n.map(n=>i(n)).join(\"\"):i(n)}function i(n){return n?.__raw?String(n):t(String(n??\"\"))}function o(n,...r){let t;return{__raw:!0,strings:n,values:r,toString:()=>(void 0===t&&(t=n.reduce((n,t,i)=>n+t+e(r[i]),\"\")),t)}}function a(n){return{__raw:!0,toString:()=>n??\"\"}}const u=Object.freeze({__raw:!0,toString:()=>\"\"}),c=n=>Array.isArray(n)?n.some(n=>n?.__raw):n?.__raw,s=n=>Array.isArray(n)?n.map(n=>String(n??\"\")).join(\"\"):String(n??\"\");function g(n){return n.replace(/>\\n\\s*/g,\">\").replace(/\\n\\s*</g,\"<\").replace(/\\n\\s*/g,\" \")}export{g as collapseWhitespace,n as defineElement,t as escapeHtml,o as html,c as isRaw,u as nothing,e as resolveValue,s as toPlainText,a as unsafeHTML};\n//# sourceMappingURL=utils.js.map\n","import{toPlainText as e,isRaw as t,collapseWhitespace as n,resolveValue as r}from\"./utils.js\";const o=new WeakMap,l=\"e\"+Math.random().toString(36).slice(2,6);function a(a,i,d){return!function(n,r,o){if(n._tplStrings!==r||!n._tplParts)return!1;for(let r=0;r<o.length;r++){const l=o[r],a=Array.isArray(l)?e(l):l;if(a!==n._tplValues[r]){if(t(l)||!n._tplParts[r])return!1;n._tplValues[r]=a,n._tplParts[r].textContent=e(l)}}return!0}(a,i,d)&&(function(a,i,d){let p=o.get(i);if(!p){const e=Array.from(i,n);p={processedStrings:e,template:d.length>0?c(e,d.length):null},o.set(i,p)}if(p.template)a._tplParts=function(n,o,a){const c=o.content.cloneNode(!0),s=document.createTreeWalker(c,NodeFilter.SHOW_COMMENT),i=new Array(a.length),d=[];let p;for(;p=s.nextNode();)p.data===l&&d.push(p);for(let n=0;n<d.length;n++){const o=a[n];if(t(o)){const e=document.createElement(\"template\");e.innerHTML=r(o),d[n].parentNode.replaceChild(e.content,d[n])}else{const t=document.createTextNode(e(o));d[n].parentNode.replaceChild(t,d[n]),i[n]=t}}return n.replaceChildren(c),i}(a,p.template,d);else{const e=d.map(e=>r(e)),t=p.processedStrings.reduce((t,n,r)=>t+n+(e[r]??\"\"),\"\").replace(/>\\s+</g,\"><\").trim(),n=document.createElement(\"template\");n.innerHTML=t,s(a,n.content.childNodes),a._tplParts=new Array(d.length)}a._tplStrings=i,a._tplValues=d.map(t=>Array.isArray(t)?e(t):t)}(a,i,d),!0)}function c(e,t){const n=`\\x3c!--${l}--\\x3e`,r=e.reduce((e,r,o)=>e+r.replace(/>\\s+</g,\"><\")+(o<t?n:\"\"),\"\").trim(),o=document.createElement(\"template\");o.innerHTML=r;const a=document.createTreeWalker(o.content,NodeFilter.SHOW_COMMENT);let c=0;for(;a.nextNode();)a.currentNode.data===l&&c++;return c===t?o:null}function s(e,t){const n=Array.from(e.childNodes),r=Array.from(t),o=Math.max(n.length,r.length);for(let t=0;t<o;t++){const o=n[t],l=r[t];o?l?o.nodeType!==l.nodeType||o.nodeType===Node.ELEMENT_NODE&&o.tagName!==l.tagName?e.replaceChild(l,o):o.nodeType===Node.TEXT_NODE?o.textContent!==l.textContent&&(o.textContent=l.textContent):o.nodeType===Node.ELEMENT_NODE&&(i(o,l),s(o,l.childNodes)):e.removeChild(o):e.appendChild(l)}}function i(e,t){for(let n=e.attributes.length-1;n>=0;n--){const{name:r}=e.attributes[n];t.hasAttribute(r)||e.removeAttribute(r)}for(let n=0;n<t.attributes.length;n++){const{name:r,value:o}=t.attributes[n];e.getAttribute(r)!==o&&e.setAttribute(r,o)}}export{a as renderTemplate};\n//# sourceMappingURL=render.js.map\n","class e extends Event{constructor(e,s){super(e,{bubbles:!0,composed:!0,...s})}}export{e as ElenaEvent};\n//# sourceMappingURL=events.js.map\n","import{getProps as t,setProps as e,getPropValue as s,syncAttribute as i}from\"./props.js\";import{defineElement as n}from\"./utils.js\";export{html,nothing,unsafeHTML}from\"./utils.js\";import{renderTemplate as r}from\"./render.js\";import{ElenaEvent as o}from\"./events.js\";const h=new WeakSet;function a(a){return class extends a{element=null;attributeChangedCallback(e,s,i){super.attributeChangedCallback?.(e,s,i),\"text\"!==e?(this._syncing=!0,t(this,e,s,i),this._syncing=!1,this._hydrated&&s!==i&&!this._isRendering&&this._safeRender()):this.text=i??\"\"}static get observedAttributes(){if(this._observedAttrs)return this._observedAttrs;const t=this._propNames||(this.props||[]).map(t=>\"string\"==typeof t?t:t.name);return this._observedAttrs=[...t,\"text\"],this._observedAttrs}connectedCallback(){super.connectedCallback?.(),this._setupStaticProps(),this._captureClassFieldDefaults(),this._captureText(),this._attachShadow(),this.willUpdate(),this._applyRender(),this._resolveInnerElement(),this._syncProps(),this._delegateEvents(),this._hydrated||(this._hydrated=!0,this.setAttribute(\"hydrated\",\"\"),this.firstUpdated()),this.updated()}_setupStaticProps(){const t=this.constructor;if(h.has(t))return;const s=new Set,i=[];if(t.props){for(const e of t.props)\"string\"==typeof e?i.push(e):(i.push(e.name),!1===e.reflect&&s.add(e.name));i.includes(\"text\")&&console.warn('░█ [ELENA]: \"text\" is reserved.'),e(t.prototype,i,s)}var n;t._propNames=i,t._noReflect=s,t._elenaEvents=t.events||null,t._resolver=(n=t.element)?t=>t.querySelector(n):t=>t.firstElementChild,h.add(t)}_captureClassFieldDefaults(){this._syncing=!0;for(const t of this.constructor._propNames)if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}this._syncing=!1}_captureText(){this._hydrated||void 0!==this._text||(this.text=this.textContent.trim())}get _renderRoot(){return this._shadow??this.shadowRoot??this}_attachShadow(){const t=this.constructor;if(!t.shadow)return;(this._shadow??this.shadowRoot)||(this._shadow=this.attachShadow({mode:t.shadow}));const e=this._shadow??this.shadowRoot;if(t.styles){if(!t._adoptedSheets){const e=Array.isArray(t.styles)?t.styles:[t.styles];t._adoptedSheets=e.map(t=>{if(\"string\"==typeof t){const e=new CSSStyleSheet;return e.replaceSync(t),e}return t})}e.adoptedStyleSheets=t._adoptedSheets}}_applyRender(){const t=this.render();if(t&&t.strings){const e=this._renderRoot,s=r(e,t.strings,t.values);this._hydrated&&s&&(this.element=this.constructor._resolver(e))}}_resolveInnerElement(){if(!this.element){const t=this._renderRoot;this.element=this.constructor._resolver(t),this.element||(this.constructor.element&&console.warn(\"░█ [ELENA]: Element not found.\"),this.element=t.firstElementChild)}}_syncProps(){if(this._props){const t=this.constructor._noReflect;for(const[e,n]of this._props){if(t.has(e))continue;const r=s(typeof n,n,\"toAttribute\");(null!==r||this.hasAttribute(e))&&i(this,e,r)}}}_delegateEvents(){const t=this.constructor._elenaEvents;if(!this._events&&t?.length)if(this.element){this._events=!0;for(const e of t)this.element.addEventListener(e,this),this[e]=(...t)=>this.element[e](...t)}else console.warn(\"░█ [ELENA]: Cannot add events.\")}render(){}willUpdate(){}firstUpdated(){}updated(){}adoptedCallback(){super.adoptedCallback?.()}disconnectedCallback(){if(super.disconnectedCallback?.(),this._events){this._events=!1;for(const t of this.constructor._elenaEvents)this.element?.removeEventListener(t,this)}}handleEvent(t){this.constructor._elenaEvents?.includes(t.type)&&(t.stopPropagation(),this.dispatchEvent(new o(t.type,{cancelable:!0})))}get text(){return this._text??\"\"}set text(t){const e=this._text;this._text=t,this._hydrated&&e!==t&&!this._isRendering&&this._safeRender()}static define(){this.tagName?n(this.tagName,this):console.warn(\"░█ [ELENA]: define() without a tagName.\")}_safeRender(){this._isRendering||this._renderPending||(this._renderPending=!0,this._updateComplete=new Promise(t=>{this._resolveUpdate=t}),queueMicrotask(()=>{try{this._performUpdate()}catch(t){console.error(\"░█ [ELENA]:\",t)}}))}_performUpdate(){this._renderPending=!1;const t=this._resolveUpdate;this._resolveUpdate=null;try{try{this.willUpdate(),this._isRendering=!0,this._applyRender()}finally{this._isRendering=!1}this.updated()}finally{this._updateComplete=null,t()}}get updateComplete(){return this._updateComplete?this._updateComplete:Promise.resolve()}requestUpdate(){this._hydrated&&!this._isRendering&&this._safeRender()}}}export{a as Elena,o as ElenaEvent};\n//# sourceMappingURL=elena.js.map\n"],"names":["t","e","n","JSON","stringify","parse","console","warn","removeAttribute","setAttribute","r","Array","isArray","map","i","join","__raw","String","replace","o","strings","values","toString","reduce","a","u","Object","freeze","c","some","s","g","WeakMap","l","Math","random","slice","d","_tplStrings","_tplParts","length","_tplValues","textContent","p","get","from","processedStrings","template","set","content","cloneNode","document","createTreeWalker","NodeFilter","SHOW_COMMENT","nextNode","data","push","createElement","innerHTML","parentNode","replaceChild","createTextNode","replaceChildren","trim","childNodes","currentNode","max","nodeType","Node","ELEMENT_NODE","tagName","TEXT_NODE","removeChild","appendChild","attributes","name","hasAttribute","value","getAttribute","Event","constructor","super","bubbles","composed","h","WeakSet","element","attributeChangedCallback","this","_syncing","_hydrated","_isRendering","_safeRender","text","observedAttributes","_observedAttrs","_propNames","props","connectedCallback","_setupStaticProps","_captureClassFieldDefaults","_captureText","_attachShadow","willUpdate","_applyRender","_resolveInnerElement","_syncProps","_delegateEvents","firstUpdated","updated","has","Set","reflect","add","includes","defineProperty","configurable","enumerable","_props","Map","isConnected","prototype","_noReflect","_elenaEvents","events","_resolver","querySelector","firstElementChild","hasOwnProperty","call","_text","_renderRoot","_shadow","shadowRoot","shadow","attachShadow","mode","styles","_adoptedSheets","CSSStyleSheet","replaceSync","adoptedStyleSheets","render","_events","addEventListener","adoptedCallback","disconnectedCallback","removeEventListener","handleEvent","type","stopPropagation","dispatchEvent","cancelable","define","window","customElements","_renderPending","_updateComplete","Promise","_resolveUpdate","queueMicrotask","_performUpdate","error","updateComplete","resolve","requestUpdate"],"mappings":"AAAA,SAASA,EAAEA,EAAEC,EAAEC,GAAG,GAAGD,EAAE,YAAYD,GAAG,kBAAkBC,EAAE,OAAOA,EAAEA,GAAGC,EAAE,OAAOD,EAAE,GAAG,gBAAgBC,EAAE,OAAOF,GAAG,IAAI,SAAS,IAAI,QAAQ,OAAO,OAAOC,EAAE,KAAKE,KAAKC,UAAUH,GAAG,IAAI,UAAU,OAAOA,EAAE,GAAG,KAAK,IAAI,SAAS,OAAO,OAAOA,EAAE,KAAKA,EAAE,QAAQ,MAAM,KAAKA,EAAE,KAAKA,OAAO,OAAOD,GAAG,IAAI,SAAS,IAAI,QAAQ,IAAIC,EAAE,OAAOA,EAAE,IAAI,OAAOE,KAAKE,MAAMJ,EAAE,CAAC,MAAM,OAAOK,QAAQC,KAAK,6BAA6BN,GAAG,IAAI,CAAC,IAAI,UAAU,OAAOA,EAAE,IAAI,SAAS,OAAO,OAAOA,GAAGA,EAAEA,EAAE,QAAQ,OAAOA,GAAG,GAAG,CAAC,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,QAAI3D,GAAO,OAAOL,KAAK0C,OAAO,EAAE,CAAC,QAAIrC,CAAK9F,GAAG,MAAMC,EAAEwF,KAAK0C,MAAM1C,KAAK0C,MAAMnI,EAAEyF,KAAKE,WAAW1F,IAAID,IAAIyF,KAAKG,cAAcH,KAAKI,aAAa,CAAC,aAAO6D,GAASjE,KAAKlB,QHAxqH,SAAWrE,EAAEQ,GAAG,oBAAoBiJ,QAAQ,mBAAmBA,SAASA,OAAOC,eAAehH,IAAI1C,IAAIyJ,OAAOC,eAAeF,OAAOxJ,EAAEQ,GAAG,CGAwiHR,CAAEuF,KAAKlB,QAAQkB,MAAMnF,QAAQC,KAAK,0CAA0C,CAAC,WAAAsF,GAAcJ,KAAKG,cAAcH,KAAKoE,iBAAiBpE,KAAKoE,gBAAe,EAAGpE,KAAKqE,gBAAgB,IAAIC,QAAQ/J,IAAIyF,KAAKuE,eAAehK,IAAIiK,eAAe,KAAK,IAAIxE,KAAKyE,gBAAgB,CAAC,MAAMlK,GAAGM,QAAQ6J,MAAM,cAAcnK,EAAE,IAAI,CAAC,cAAAkK,GAAiBzE,KAAKoE,gBAAe,EAAG,MAAM7J,EAAEyF,KAAKuE,eAAevE,KAAKuE,eAAe,KAAK,IAAI,IAAIvE,KAAKe,aAAaf,KAAKG,cAAa,EAAGH,KAAKgB,cAAc,CAAC,QAAQhB,KAAKG,cAAa,CAAE,CAACH,KAAKqB,SAAS,CAAC,QAAQrB,KAAKqE,gBAAgB,KAAK9J,GAAG,CAAC,CAAC,kBAAIoK,GAAiB,OAAO3E,KAAKqE,gBAAgBrE,KAAKqE,gBAAgBC,QAAQM,SAAS,CAAC,aAAAC,GAAgB7E,KAAKE,YAAYF,KAAKG,cAAcH,KAAKI,aAAa,EAAE"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as Button}from"./button.js";export{default as Stack}from"./stack.js";import"./elena-
|
|
1
|
+
export{default as Button}from"./button.js";export{default as Spinner}from"./spinner.js";export{default as Stack}from"./stack.js";export{default as VisuallyHidden}from"./visually-hidden.js";import"./elena-DzEybqgS.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/spinner.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@scope(elena-spinner){:scope,:where(:not(img,svg):not(svg *)),:before,:after{all:unset;display:revert;box-sizing:border-box}:scope{--_elena-spinner-size:var(--elena-spinner-size,20px);--_elena-spinner-border:var(--elena-spinner-border,2px);inline-size:var(--_elena-spinner-size);block-size:var(--_elena-spinner-size);color:inherit;animation:.5s linear infinite elenaRotate;display:inline-flex;position:relative;inset:0}:scope,:scope:after{border:var(--_elena-spinner-border) solid transparent;border-radius:50%}:scope{border-block-end-color:currentColor}:scope:after{content:"";inset:calc(var(--_elena-spinner-border) * -1);opacity:.2;border-color:currentColor;border-block-end-color:#0000;position:absolute}@keyframes elenaRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}}
|
package/dist/spinner.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","sources":["../src/spinner/spinner.js"],"sourcesContent":["import { Elena } from \"@elenajs/core\";\n\n/**\n * Visually hidden hides the element visually while\n * keeping it available for assistive technologies.\n *\n * @displayName Spinner\n * @status alpha\n *\n * @cssprop [--elena-spinner-size] - Overrides the default spinner size.\n * @cssprop [--elena-spinner-border] - Overrides the default spinner border width.\n */\nexport default class Spinner extends Elena(HTMLElement) {\n static tagName = \"elena-spinner\";\n\n /**\n * Spinner connects to the page without\n * rendering anything.\n *\n * @internal\n */\n render() {}\n}\n\n/**\n * Register the web component\n */\nSpinner.define();\n"],"names":["Spinner","Elena","HTMLElement","static","render","define"],"mappings":"wCAYe,MAAMA,UAAgBC,EAAMC,cACzCC,eAAiB,gBAQjB,MAAAC,GAAU,EAMZJ,EAAQK"}
|