@aurodesignsystem-dev/auro-backtotop 0.0.0-pr67.0
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/CHANGELOG.md +207 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +142 -0
- package/custom-elements.json +532 -0
- package/demo/api.html +57 -0
- package/demo/api.js +1 -0
- package/demo/api.md +172 -0
- package/demo/api.min.js +3 -0
- package/demo/auro-backtotop.min.js +497 -0
- package/demo/index.html +57 -0
- package/demo/index.js +4 -0
- package/demo/index.md +102 -0
- package/demo/index.min.js +4 -0
- package/dist/auro-backtotop-CeT9HfoH.js +99 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.js +1 -0
- package/dist/registered.js +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "scripts/wca/auro-backtotop.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "The auro-backtotop element provides users a way to quickly return to page top.",
|
|
12
|
+
"name": "AuroBackToTopWCA",
|
|
13
|
+
"superclass": {
|
|
14
|
+
"name": "AuroBackToTop",
|
|
15
|
+
"module": "/src/auro-backtotop.js"
|
|
16
|
+
},
|
|
17
|
+
"tagName": "auro-backtotop",
|
|
18
|
+
"customElement": true,
|
|
19
|
+
"slots": [
|
|
20
|
+
{
|
|
21
|
+
"description": "Default slot for the text of the button.",
|
|
22
|
+
"name": "",
|
|
23
|
+
"inheritedFrom": {
|
|
24
|
+
"name": "AuroBackToTop",
|
|
25
|
+
"module": "src/auro-backtotop.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"description": "Use this slot to pass an aria-label to the HTML5 button.",
|
|
30
|
+
"name": "ariaLabel",
|
|
31
|
+
"inheritedFrom": {
|
|
32
|
+
"name": "AuroBackToTop",
|
|
33
|
+
"module": "src/auro-backtotop.js"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"cssParts": [
|
|
38
|
+
{
|
|
39
|
+
"description": "Apply CSS to HTML5 button.",
|
|
40
|
+
"name": "button",
|
|
41
|
+
"inheritedFrom": {
|
|
42
|
+
"name": "AuroBackToTop",
|
|
43
|
+
"module": "src/auro-backtotop.js"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "Apply CSS to arrow up icon.",
|
|
48
|
+
"name": "icon",
|
|
49
|
+
"inheritedFrom": {
|
|
50
|
+
"name": "AuroBackToTop",
|
|
51
|
+
"module": "src/auro-backtotop.js"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"attributes": [
|
|
56
|
+
{
|
|
57
|
+
"name": "disabled",
|
|
58
|
+
"type": {
|
|
59
|
+
"text": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"description": "Render the trigger inline, will always be visible.",
|
|
62
|
+
"fieldName": "disabled",
|
|
63
|
+
"inheritedFrom": {
|
|
64
|
+
"name": "AuroBackToTop",
|
|
65
|
+
"module": "src/auro-backtotop.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "hidden",
|
|
70
|
+
"type": {
|
|
71
|
+
"text": "boolean"
|
|
72
|
+
},
|
|
73
|
+
"fieldName": "hidden",
|
|
74
|
+
"inheritedFrom": {
|
|
75
|
+
"name": "AuroBackToTop",
|
|
76
|
+
"module": "src/auro-backtotop.js"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "iconOnly",
|
|
81
|
+
"type": {
|
|
82
|
+
"text": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"fieldName": "iconOnly",
|
|
85
|
+
"inheritedFrom": {
|
|
86
|
+
"name": "AuroBackToTop",
|
|
87
|
+
"module": "src/auro-backtotop.js"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "interactionActive",
|
|
92
|
+
"type": {
|
|
93
|
+
"text": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"fieldName": "interactionActive",
|
|
96
|
+
"inheritedFrom": {
|
|
97
|
+
"name": "AuroBackToTop",
|
|
98
|
+
"module": "src/auro-backtotop.js"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "lastScrollDirectionUp",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "boolean"
|
|
105
|
+
},
|
|
106
|
+
"fieldName": "lastScrollDirectionUp",
|
|
107
|
+
"inheritedFrom": {
|
|
108
|
+
"name": "AuroBackToTop",
|
|
109
|
+
"module": "src/auro-backtotop.js"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "variant",
|
|
114
|
+
"type": {
|
|
115
|
+
"text": "'primary' | 'secondary' | String"
|
|
116
|
+
},
|
|
117
|
+
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
118
|
+
"default": "\"primary\"",
|
|
119
|
+
"fieldName": "variant",
|
|
120
|
+
"inheritedFrom": {
|
|
121
|
+
"name": "AuroBackToTop",
|
|
122
|
+
"module": "src/auro-backtotop.js"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"members": [
|
|
127
|
+
{
|
|
128
|
+
"kind": "field",
|
|
129
|
+
"name": "disabled",
|
|
130
|
+
"privacy": "public",
|
|
131
|
+
"type": {
|
|
132
|
+
"text": "boolean"
|
|
133
|
+
},
|
|
134
|
+
"description": "Render the trigger inline, will always be visible.",
|
|
135
|
+
"attribute": "disabled",
|
|
136
|
+
"reflects": true,
|
|
137
|
+
"inheritedFrom": {
|
|
138
|
+
"name": "AuroBackToTop",
|
|
139
|
+
"module": "src/auro-backtotop.js"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"kind": "field",
|
|
144
|
+
"name": "hidden",
|
|
145
|
+
"privacy": "public",
|
|
146
|
+
"type": {
|
|
147
|
+
"text": "boolean"
|
|
148
|
+
},
|
|
149
|
+
"attribute": "hidden",
|
|
150
|
+
"reflects": true,
|
|
151
|
+
"inheritedFrom": {
|
|
152
|
+
"name": "AuroBackToTop",
|
|
153
|
+
"module": "src/auro-backtotop.js"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"kind": "field",
|
|
158
|
+
"name": "iconOnly",
|
|
159
|
+
"privacy": "public",
|
|
160
|
+
"type": {
|
|
161
|
+
"text": "boolean"
|
|
162
|
+
},
|
|
163
|
+
"attribute": "iconOnly",
|
|
164
|
+
"reflects": true,
|
|
165
|
+
"inheritedFrom": {
|
|
166
|
+
"name": "AuroBackToTop",
|
|
167
|
+
"module": "src/auro-backtotop.js"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"kind": "method",
|
|
172
|
+
"name": "initializeProperties",
|
|
173
|
+
"inheritedFrom": {
|
|
174
|
+
"name": "AuroBackToTop",
|
|
175
|
+
"module": "src/auro-backtotop.js"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"kind": "field",
|
|
180
|
+
"name": "interactionActive",
|
|
181
|
+
"privacy": "public",
|
|
182
|
+
"type": {
|
|
183
|
+
"text": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"attribute": "interactionActive",
|
|
186
|
+
"inheritedFrom": {
|
|
187
|
+
"name": "AuroBackToTop",
|
|
188
|
+
"module": "src/auro-backtotop.js"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"kind": "field",
|
|
193
|
+
"name": "lastScrollDirectionUp",
|
|
194
|
+
"privacy": "public",
|
|
195
|
+
"type": {
|
|
196
|
+
"text": "boolean"
|
|
197
|
+
},
|
|
198
|
+
"attribute": "lastScrollDirectionUp",
|
|
199
|
+
"inheritedFrom": {
|
|
200
|
+
"name": "AuroBackToTop",
|
|
201
|
+
"module": "src/auro-backtotop.js"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "method",
|
|
206
|
+
"name": "onTriggerClick",
|
|
207
|
+
"privacy": "private",
|
|
208
|
+
"return": {
|
|
209
|
+
"type": {
|
|
210
|
+
"text": "void"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"inheritedFrom": {
|
|
214
|
+
"name": "AuroBackToTop",
|
|
215
|
+
"module": "src/auro-backtotop.js"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"kind": "method",
|
|
220
|
+
"name": "register",
|
|
221
|
+
"static": true,
|
|
222
|
+
"parameters": [
|
|
223
|
+
{
|
|
224
|
+
"name": "name",
|
|
225
|
+
"default": "\"auro-backtotop\"",
|
|
226
|
+
"description": "The name of element that you want to register to.",
|
|
227
|
+
"optional": true,
|
|
228
|
+
"type": {
|
|
229
|
+
"text": "string"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"description": "This will register this element with the browser.",
|
|
234
|
+
"inheritedFrom": {
|
|
235
|
+
"name": "AuroBackToTop",
|
|
236
|
+
"module": "src/auro-backtotop.js"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "method",
|
|
241
|
+
"name": "scrollTop",
|
|
242
|
+
"privacy": "private",
|
|
243
|
+
"return": {
|
|
244
|
+
"type": {
|
|
245
|
+
"text": "void"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"inheritedFrom": {
|
|
249
|
+
"name": "AuroBackToTop",
|
|
250
|
+
"module": "src/auro-backtotop.js"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "field",
|
|
255
|
+
"name": "variant",
|
|
256
|
+
"privacy": "public",
|
|
257
|
+
"type": {
|
|
258
|
+
"text": "'primary' | 'secondary' | String"
|
|
259
|
+
},
|
|
260
|
+
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
261
|
+
"default": "\"primary\"",
|
|
262
|
+
"attribute": "variant",
|
|
263
|
+
"reflects": true,
|
|
264
|
+
"inheritedFrom": {
|
|
265
|
+
"name": "AuroBackToTop",
|
|
266
|
+
"module": "src/auro-backtotop.js"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"exports": [
|
|
273
|
+
{
|
|
274
|
+
"kind": "custom-element-definition",
|
|
275
|
+
"name": "auro-backtotop",
|
|
276
|
+
"declaration": {
|
|
277
|
+
"name": "AuroBackToTopWCA",
|
|
278
|
+
"module": "scripts/wca/auro-backtotop.js"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"kind": "javascript-module",
|
|
285
|
+
"path": "src/auro-backtotop.js",
|
|
286
|
+
"declarations": [
|
|
287
|
+
{
|
|
288
|
+
"kind": "class",
|
|
289
|
+
"description": "The auro-backtotop element provides users a way to quickly return to page top.",
|
|
290
|
+
"name": "AuroBackToTop",
|
|
291
|
+
"cssParts": [
|
|
292
|
+
{
|
|
293
|
+
"description": "Apply CSS to HTML5 button.",
|
|
294
|
+
"name": "button"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"description": "Apply CSS to arrow up icon.",
|
|
298
|
+
"name": "icon"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"slots": [
|
|
302
|
+
{
|
|
303
|
+
"description": "Default slot for the text of the button.",
|
|
304
|
+
"name": ""
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"description": "Use this slot to pass an aria-label to the HTML5 button.",
|
|
308
|
+
"name": "ariaLabel"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"members": [
|
|
312
|
+
{
|
|
313
|
+
"kind": "field",
|
|
314
|
+
"name": "disabled",
|
|
315
|
+
"privacy": "public",
|
|
316
|
+
"type": {
|
|
317
|
+
"text": "boolean"
|
|
318
|
+
},
|
|
319
|
+
"description": "Render the trigger inline, will always be visible.",
|
|
320
|
+
"attribute": "disabled",
|
|
321
|
+
"reflects": true
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"kind": "field",
|
|
325
|
+
"name": "hidden",
|
|
326
|
+
"privacy": "public",
|
|
327
|
+
"type": {
|
|
328
|
+
"text": "boolean"
|
|
329
|
+
},
|
|
330
|
+
"attribute": "hidden",
|
|
331
|
+
"reflects": true
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "field",
|
|
335
|
+
"name": "iconOnly",
|
|
336
|
+
"privacy": "public",
|
|
337
|
+
"type": {
|
|
338
|
+
"text": "boolean"
|
|
339
|
+
},
|
|
340
|
+
"attribute": "iconOnly",
|
|
341
|
+
"reflects": true
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"kind": "method",
|
|
345
|
+
"name": "initializeProperties"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"kind": "field",
|
|
349
|
+
"name": "interactionActive",
|
|
350
|
+
"privacy": "public",
|
|
351
|
+
"type": {
|
|
352
|
+
"text": "boolean"
|
|
353
|
+
},
|
|
354
|
+
"attribute": "interactionActive"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"kind": "field",
|
|
358
|
+
"name": "lastScrollDirectionUp",
|
|
359
|
+
"privacy": "public",
|
|
360
|
+
"type": {
|
|
361
|
+
"text": "boolean"
|
|
362
|
+
},
|
|
363
|
+
"attribute": "lastScrollDirectionUp"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"kind": "method",
|
|
367
|
+
"name": "onTriggerClick",
|
|
368
|
+
"privacy": "private",
|
|
369
|
+
"return": {
|
|
370
|
+
"type": {
|
|
371
|
+
"text": "void"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"kind": "method",
|
|
377
|
+
"name": "register",
|
|
378
|
+
"static": true,
|
|
379
|
+
"parameters": [
|
|
380
|
+
{
|
|
381
|
+
"name": "name",
|
|
382
|
+
"default": "\"auro-backtotop\"",
|
|
383
|
+
"description": "The name of element that you want to register to.",
|
|
384
|
+
"optional": true,
|
|
385
|
+
"type": {
|
|
386
|
+
"text": "string"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"description": "This will register this element with the browser."
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "method",
|
|
394
|
+
"name": "scrollTop",
|
|
395
|
+
"privacy": "private",
|
|
396
|
+
"return": {
|
|
397
|
+
"type": {
|
|
398
|
+
"text": "void"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"kind": "field",
|
|
404
|
+
"name": "variant",
|
|
405
|
+
"privacy": "public",
|
|
406
|
+
"type": {
|
|
407
|
+
"text": "'primary' | 'secondary' | String"
|
|
408
|
+
},
|
|
409
|
+
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
410
|
+
"default": "\"primary\"",
|
|
411
|
+
"attribute": "variant",
|
|
412
|
+
"reflects": true
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"attributes": [
|
|
416
|
+
{
|
|
417
|
+
"name": "disabled",
|
|
418
|
+
"type": {
|
|
419
|
+
"text": "boolean"
|
|
420
|
+
},
|
|
421
|
+
"description": "Render the trigger inline, will always be visible.",
|
|
422
|
+
"fieldName": "disabled"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"name": "hidden",
|
|
426
|
+
"type": {
|
|
427
|
+
"text": "boolean"
|
|
428
|
+
},
|
|
429
|
+
"fieldName": "hidden"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "iconOnly",
|
|
433
|
+
"type": {
|
|
434
|
+
"text": "boolean"
|
|
435
|
+
},
|
|
436
|
+
"fieldName": "iconOnly"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "interactionActive",
|
|
440
|
+
"type": {
|
|
441
|
+
"text": "boolean"
|
|
442
|
+
},
|
|
443
|
+
"fieldName": "interactionActive"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "lastScrollDirectionUp",
|
|
447
|
+
"type": {
|
|
448
|
+
"text": "boolean"
|
|
449
|
+
},
|
|
450
|
+
"fieldName": "lastScrollDirectionUp"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "variant",
|
|
454
|
+
"type": {
|
|
455
|
+
"text": "'primary' | 'secondary' | String"
|
|
456
|
+
},
|
|
457
|
+
"description": "The variant attribute allows for rendering the button using the primary (default) or secondary styles.",
|
|
458
|
+
"default": "\"primary\"",
|
|
459
|
+
"fieldName": "variant"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"superclass": {
|
|
463
|
+
"name": "LitElement",
|
|
464
|
+
"package": "lit"
|
|
465
|
+
},
|
|
466
|
+
"customElement": true
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"exports": [
|
|
470
|
+
{
|
|
471
|
+
"kind": "js",
|
|
472
|
+
"name": "AuroBackToTop",
|
|
473
|
+
"declaration": {
|
|
474
|
+
"name": "AuroBackToTop",
|
|
475
|
+
"module": "src/auro-backtotop.js"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"kind": "javascript-module",
|
|
482
|
+
"path": "src/buttonVersion.js",
|
|
483
|
+
"declarations": [],
|
|
484
|
+
"exports": [
|
|
485
|
+
{
|
|
486
|
+
"kind": "js",
|
|
487
|
+
"name": "default",
|
|
488
|
+
"declaration": {
|
|
489
|
+
"name": "12.3.0",
|
|
490
|
+
"module": "src/buttonVersion.js"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"kind": "javascript-module",
|
|
497
|
+
"path": "src/iconVersion.js",
|
|
498
|
+
"declarations": [],
|
|
499
|
+
"exports": [
|
|
500
|
+
{
|
|
501
|
+
"kind": "js",
|
|
502
|
+
"name": "default",
|
|
503
|
+
"declaration": {
|
|
504
|
+
"name": "9.1.0",
|
|
505
|
+
"module": "src/iconVersion.js"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"kind": "javascript-module",
|
|
512
|
+
"path": "src/index.js",
|
|
513
|
+
"declarations": [],
|
|
514
|
+
"exports": [
|
|
515
|
+
{
|
|
516
|
+
"kind": "js",
|
|
517
|
+
"name": "AuroBackToTop",
|
|
518
|
+
"declaration": {
|
|
519
|
+
"name": "AuroBackToTop",
|
|
520
|
+
"module": "src/index.js"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"kind": "javascript-module",
|
|
527
|
+
"path": "src/registered.js",
|
|
528
|
+
"declarations": [],
|
|
529
|
+
"exports": []
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
}
|
package/demo/api.html
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
+
See LICENSE in the project root for license information.
|
|
4
|
+
|
|
5
|
+
HTML in this document is standardized and NOT to be edited.
|
|
6
|
+
All demo code should be added/edited in ./demo/api.md
|
|
7
|
+
|
|
8
|
+
With the exception of adding custom elements if needed for the demo.
|
|
9
|
+
|
|
10
|
+
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
+
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
<!DOCTYPE html>
|
|
15
|
+
<html lang="en">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="UTF-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
+
<title>Auro Web Component Demo | auro-backtotop</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-backtotop's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
34
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
35
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
36
|
+
</head>
|
|
37
|
+
<body class="auro-markdown">
|
|
38
|
+
<main></main>
|
|
39
|
+
|
|
40
|
+
<script type="module">
|
|
41
|
+
import 'https://cdn.jsdelivr.net/npm/marked@5.1.1/marked.min.js';
|
|
42
|
+
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
|
|
43
|
+
fetch('./api.md')
|
|
44
|
+
.then((response) => response.text())
|
|
45
|
+
.then((text) => {
|
|
46
|
+
const rawHtml = marked.parse(text);
|
|
47
|
+
document.querySelector('main').innerHTML = rawHtml;
|
|
48
|
+
Prism.highlightAll();
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
<script type="module" src="./api.min.js" data-demo-script="true"></script>
|
|
52
|
+
|
|
53
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
54
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm"></script>
|
|
55
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm"></script>
|
|
56
|
+
</body>
|
|
57
|
+
</html>
|
package/demo/api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../src/registered";
|