@spectrum-web-components/button 0.47.1 → 0.48.0-beta.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.
@@ -1,1840 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-button.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-button",
13
- "declaration": {
14
- "name": "Button",
15
- "module": "/src/Button.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "sp-clear-button.js",
23
- "declarations": [],
24
- "exports": [
25
- {
26
- "kind": "custom-element-definition",
27
- "name": "sp-clear-button",
28
- "declaration": {
29
- "name": "ClearButton",
30
- "module": "/src/ClearButton.js"
31
- }
32
- }
33
- ]
34
- },
35
- {
36
- "kind": "javascript-module",
37
- "path": "sp-close-button.js",
38
- "declarations": [],
39
- "exports": [
40
- {
41
- "kind": "custom-element-definition",
42
- "name": "sp-close-button",
43
- "declaration": {
44
- "name": "CloseButton",
45
- "module": "/src/CloseButton.js"
46
- }
47
- }
48
- ]
49
- },
50
- {
51
- "kind": "javascript-module",
52
- "path": "src/Button.js",
53
- "declarations": [
54
- {
55
- "kind": "variable",
56
- "name": "VALID_VARIANTS",
57
- "type": {
58
- "text": "array"
59
- },
60
- "default": "[\n 'accent',\n 'primary',\n 'secondary',\n 'negative',\n 'white',\n 'black',\n]"
61
- },
62
- {
63
- "kind": "variable",
64
- "name": "VALID_STATICS",
65
- "type": {
66
- "text": "array"
67
- },
68
- "default": "['white', 'black']"
69
- },
70
- {
71
- "kind": "class",
72
- "description": "",
73
- "name": "Button",
74
- "slots": [
75
- {
76
- "description": "text label of the Button",
77
- "name": "",
78
- "inheritedFrom": {
79
- "name": "ButtonBase",
80
- "module": "src/ButtonBase.ts"
81
- }
82
- },
83
- {
84
- "description": "The icon to use for Button",
85
- "name": "icon",
86
- "inheritedFrom": {
87
- "name": "ButtonBase",
88
- "module": "src/ButtonBase.ts"
89
- }
90
- }
91
- ],
92
- "members": [
93
- {
94
- "kind": "field",
95
- "name": "pendingLabel",
96
- "type": {
97
- "text": "string"
98
- },
99
- "privacy": "public",
100
- "default": "'Pending'",
101
- "attribute": "pending-label"
102
- },
103
- {
104
- "kind": "field",
105
- "name": "pending",
106
- "type": {
107
- "text": "boolean"
108
- },
109
- "privacy": "public",
110
- "default": "false",
111
- "attribute": "pending",
112
- "reflects": true
113
- },
114
- {
115
- "kind": "field",
116
- "name": "cachedAriaLabel",
117
- "type": {
118
- "text": "string | null"
119
- },
120
- "privacy": "private",
121
- "default": "null"
122
- },
123
- {
124
- "kind": "method",
125
- "name": "click",
126
- "privacy": "public",
127
- "return": {
128
- "type": {
129
- "text": "void"
130
- }
131
- },
132
- "inheritedFrom": {
133
- "name": "ButtonBase",
134
- "module": "src/ButtonBase.js"
135
- }
136
- },
137
- {
138
- "kind": "field",
139
- "name": "variant",
140
- "type": {
141
- "text": "ButtonVariants"
142
- },
143
- "privacy": "public",
144
- "description": "The visual variant to apply to this button.",
145
- "attribute": "variant"
146
- },
147
- {
148
- "kind": "field",
149
- "name": "_variant",
150
- "type": {
151
- "text": "ButtonVariants"
152
- },
153
- "privacy": "private",
154
- "default": "'accent'"
155
- },
156
- {
157
- "kind": "field",
158
- "name": "static",
159
- "type": {
160
- "text": "'black' | 'white' | undefined"
161
- },
162
- "privacy": "public",
163
- "attribute": "static",
164
- "reflects": true
165
- },
166
- {
167
- "kind": "field",
168
- "name": "treatment",
169
- "type": {
170
- "text": "ButtonTreatments"
171
- },
172
- "privacy": "public",
173
- "default": "'fill'",
174
- "description": "The visual variant to apply to this button.",
175
- "attribute": "treatment",
176
- "reflects": true
177
- },
178
- {
179
- "kind": "field",
180
- "name": "quiet",
181
- "privacy": "public",
182
- "description": "Style this button to be less obvious",
183
- "type": {
184
- "text": "boolean"
185
- },
186
- "attribute": "quiet"
187
- },
188
- {
189
- "kind": "method",
190
- "name": "renderButton",
191
- "privacy": "protected",
192
- "return": {
193
- "type": {
194
- "text": "TemplateResult"
195
- }
196
- },
197
- "inheritedFrom": {
198
- "name": "ButtonBase",
199
- "module": "src/ButtonBase.js"
200
- }
201
- },
202
- {
203
- "kind": "field",
204
- "name": "active",
205
- "type": {
206
- "text": "boolean"
207
- },
208
- "privacy": "public",
209
- "default": "false",
210
- "attribute": "active",
211
- "reflects": true,
212
- "inheritedFrom": {
213
- "name": "ButtonBase",
214
- "module": "src/ButtonBase.js"
215
- }
216
- },
217
- {
218
- "kind": "field",
219
- "name": "type",
220
- "type": {
221
- "text": "'button' | 'submit' | 'reset'"
222
- },
223
- "privacy": "public",
224
- "default": "'button'",
225
- "attribute": "type",
226
- "inheritedFrom": {
227
- "name": "ButtonBase",
228
- "module": "src/ButtonBase.js"
229
- }
230
- },
231
- {
232
- "kind": "field",
233
- "name": "anchorElement",
234
- "type": {
235
- "text": "HTMLButtonElement"
236
- },
237
- "privacy": "private",
238
- "inheritedFrom": {
239
- "name": "ButtonBase",
240
- "module": "src/ButtonBase.js"
241
- }
242
- },
243
- {
244
- "kind": "field",
245
- "name": "focusElement",
246
- "type": {
247
- "text": "HTMLElement"
248
- },
249
- "privacy": "public",
250
- "readonly": true,
251
- "inheritedFrom": {
252
- "name": "ButtonBase",
253
- "module": "src/ButtonBase.js"
254
- }
255
- },
256
- {
257
- "kind": "field",
258
- "name": "hasLabel",
259
- "type": {
260
- "text": "boolean"
261
- },
262
- "privacy": "protected",
263
- "readonly": true,
264
- "inheritedFrom": {
265
- "name": "ButtonBase",
266
- "module": "src/ButtonBase.js"
267
- }
268
- },
269
- {
270
- "kind": "field",
271
- "name": "buttonContent",
272
- "type": {
273
- "text": "TemplateResult[]"
274
- },
275
- "privacy": "protected",
276
- "readonly": true,
277
- "inheritedFrom": {
278
- "name": "ButtonBase",
279
- "module": "src/ButtonBase.js"
280
- }
281
- },
282
- {
283
- "kind": "method",
284
- "name": "handleClickCapture",
285
- "privacy": "private",
286
- "return": {
287
- "type": {
288
- "text": "void | boolean"
289
- }
290
- },
291
- "parameters": [
292
- {
293
- "name": "event",
294
- "type": {
295
- "text": "Event"
296
- }
297
- }
298
- ],
299
- "inheritedFrom": {
300
- "name": "ButtonBase",
301
- "module": "src/ButtonBase.js"
302
- }
303
- },
304
- {
305
- "kind": "method",
306
- "name": "proxyFocus",
307
- "privacy": "private",
308
- "return": {
309
- "type": {
310
- "text": "void"
311
- }
312
- },
313
- "inheritedFrom": {
314
- "name": "ButtonBase",
315
- "module": "src/ButtonBase.js"
316
- }
317
- },
318
- {
319
- "kind": "method",
320
- "name": "shouldProxyClick",
321
- "privacy": "private",
322
- "return": {
323
- "type": {
324
- "text": "boolean"
325
- }
326
- },
327
- "inheritedFrom": {
328
- "name": "ButtonBase",
329
- "module": "src/ButtonBase.js"
330
- }
331
- },
332
- {
333
- "kind": "method",
334
- "name": "renderAnchor",
335
- "privacy": "public",
336
- "return": {
337
- "type": {
338
- "text": "TemplateResult"
339
- }
340
- },
341
- "inheritedFrom": {
342
- "name": "ButtonBase",
343
- "module": "src/ButtonBase.js"
344
- }
345
- },
346
- {
347
- "kind": "method",
348
- "name": "handleKeydown",
349
- "privacy": "protected",
350
- "return": {
351
- "type": {
352
- "text": "void"
353
- }
354
- },
355
- "parameters": [
356
- {
357
- "name": "event",
358
- "type": {
359
- "text": "KeyboardEvent"
360
- }
361
- }
362
- ],
363
- "inheritedFrom": {
364
- "name": "ButtonBase",
365
- "module": "src/ButtonBase.js"
366
- }
367
- },
368
- {
369
- "kind": "method",
370
- "name": "handleKeypress",
371
- "privacy": "private",
372
- "return": {
373
- "type": {
374
- "text": "void"
375
- }
376
- },
377
- "parameters": [
378
- {
379
- "name": "event",
380
- "type": {
381
- "text": "KeyboardEvent"
382
- }
383
- }
384
- ],
385
- "inheritedFrom": {
386
- "name": "ButtonBase",
387
- "module": "src/ButtonBase.js"
388
- }
389
- },
390
- {
391
- "kind": "method",
392
- "name": "handleKeyup",
393
- "privacy": "protected",
394
- "return": {
395
- "type": {
396
- "text": "void"
397
- }
398
- },
399
- "parameters": [
400
- {
401
- "name": "event",
402
- "type": {
403
- "text": "KeyboardEvent"
404
- }
405
- }
406
- ],
407
- "inheritedFrom": {
408
- "name": "ButtonBase",
409
- "module": "src/ButtonBase.js"
410
- }
411
- },
412
- {
413
- "kind": "method",
414
- "name": "manageAnchor",
415
- "privacy": "private",
416
- "return": {
417
- "type": {
418
- "text": "void"
419
- }
420
- },
421
- "inheritedFrom": {
422
- "name": "ButtonBase",
423
- "module": "src/ButtonBase.js"
424
- }
425
- }
426
- ],
427
- "attributes": [
428
- {
429
- "name": "pending-label",
430
- "type": {
431
- "text": "string"
432
- },
433
- "default": "'Pending'",
434
- "fieldName": "pendingLabel"
435
- },
436
- {
437
- "name": "pending",
438
- "type": {
439
- "text": "boolean"
440
- },
441
- "default": "false",
442
- "fieldName": "pending"
443
- },
444
- {
445
- "name": "variant",
446
- "type": {
447
- "text": "ButtonVariants"
448
- },
449
- "description": "The visual variant to apply to this button.",
450
- "fieldName": "variant"
451
- },
452
- {
453
- "name": "static",
454
- "type": {
455
- "text": "'black' | 'white' | undefined"
456
- },
457
- "fieldName": "static"
458
- },
459
- {
460
- "name": "treatment",
461
- "type": {
462
- "text": "ButtonTreatments"
463
- },
464
- "default": "'fill'",
465
- "description": "The visual variant to apply to this button.",
466
- "fieldName": "treatment"
467
- },
468
- {
469
- "name": "quiet",
470
- "description": "Style this button to be less obvious",
471
- "type": {
472
- "text": "boolean"
473
- },
474
- "fieldName": "quiet"
475
- },
476
- {
477
- "name": "active",
478
- "type": {
479
- "text": "boolean"
480
- },
481
- "default": "false",
482
- "fieldName": "active",
483
- "inheritedFrom": {
484
- "name": "ButtonBase",
485
- "module": "src/ButtonBase.ts"
486
- }
487
- },
488
- {
489
- "name": "type",
490
- "type": {
491
- "text": "'button' | 'submit' | 'reset'"
492
- },
493
- "default": "'button'",
494
- "fieldName": "type",
495
- "inheritedFrom": {
496
- "name": "ButtonBase",
497
- "module": "src/ButtonBase.ts"
498
- }
499
- }
500
- ],
501
- "mixins": [
502
- {
503
- "name": "SizedMixin",
504
- "package": "@spectrum-web-components/base"
505
- }
506
- ],
507
- "superclass": {
508
- "name": "ButtonBase",
509
- "module": "/src/ButtonBase.js"
510
- },
511
- "tagName": "sp-button",
512
- "customElement": true
513
- }
514
- ],
515
- "exports": [
516
- {
517
- "kind": "js",
518
- "name": "VALID_VARIANTS",
519
- "declaration": {
520
- "name": "VALID_VARIANTS",
521
- "module": "src/Button.js"
522
- }
523
- },
524
- {
525
- "kind": "js",
526
- "name": "VALID_STATICS",
527
- "declaration": {
528
- "name": "VALID_STATICS",
529
- "module": "src/Button.js"
530
- }
531
- },
532
- {
533
- "kind": "js",
534
- "name": "Button",
535
- "declaration": {
536
- "name": "Button",
537
- "module": "src/Button.js"
538
- }
539
- }
540
- ]
541
- },
542
- {
543
- "kind": "javascript-module",
544
- "path": "src/ButtonBase.js",
545
- "declarations": [
546
- {
547
- "kind": "class",
548
- "description": "",
549
- "name": "ButtonBase",
550
- "slots": [
551
- {
552
- "description": "text content to be displayed in the Button element",
553
- "name": ""
554
- },
555
- {
556
- "description": "icon element(s) to display at the start of the button",
557
- "name": "icon"
558
- }
559
- ],
560
- "members": [
561
- {
562
- "kind": "field",
563
- "name": "active",
564
- "type": {
565
- "text": "boolean"
566
- },
567
- "privacy": "public",
568
- "default": "false",
569
- "attribute": "active",
570
- "reflects": true
571
- },
572
- {
573
- "kind": "field",
574
- "name": "type",
575
- "type": {
576
- "text": "'button' | 'submit' | 'reset'"
577
- },
578
- "privacy": "public",
579
- "default": "'button'",
580
- "attribute": "type"
581
- },
582
- {
583
- "kind": "field",
584
- "name": "anchorElement",
585
- "type": {
586
- "text": "HTMLButtonElement"
587
- },
588
- "privacy": "private"
589
- },
590
- {
591
- "kind": "field",
592
- "name": "focusElement",
593
- "type": {
594
- "text": "HTMLElement"
595
- },
596
- "privacy": "public",
597
- "readonly": true
598
- },
599
- {
600
- "kind": "field",
601
- "name": "hasLabel",
602
- "type": {
603
- "text": "boolean"
604
- },
605
- "privacy": "protected",
606
- "readonly": true
607
- },
608
- {
609
- "kind": "field",
610
- "name": "buttonContent",
611
- "type": {
612
- "text": "TemplateResult[]"
613
- },
614
- "privacy": "protected",
615
- "readonly": true
616
- },
617
- {
618
- "kind": "method",
619
- "name": "click",
620
- "privacy": "public",
621
- "return": {
622
- "type": {
623
- "text": "void"
624
- }
625
- }
626
- },
627
- {
628
- "kind": "method",
629
- "name": "handleClickCapture",
630
- "privacy": "private",
631
- "return": {
632
- "type": {
633
- "text": "void | boolean"
634
- }
635
- },
636
- "parameters": [
637
- {
638
- "name": "event",
639
- "type": {
640
- "text": "Event"
641
- }
642
- }
643
- ]
644
- },
645
- {
646
- "kind": "method",
647
- "name": "proxyFocus",
648
- "privacy": "private",
649
- "return": {
650
- "type": {
651
- "text": "void"
652
- }
653
- }
654
- },
655
- {
656
- "kind": "method",
657
- "name": "shouldProxyClick",
658
- "privacy": "private",
659
- "return": {
660
- "type": {
661
- "text": "boolean"
662
- }
663
- }
664
- },
665
- {
666
- "kind": "method",
667
- "name": "renderAnchor",
668
- "privacy": "public",
669
- "return": {
670
- "type": {
671
- "text": "TemplateResult"
672
- }
673
- }
674
- },
675
- {
676
- "kind": "method",
677
- "name": "renderButton",
678
- "privacy": "protected",
679
- "return": {
680
- "type": {
681
- "text": "TemplateResult"
682
- }
683
- }
684
- },
685
- {
686
- "kind": "method",
687
- "name": "handleKeydown",
688
- "privacy": "protected",
689
- "return": {
690
- "type": {
691
- "text": "void"
692
- }
693
- },
694
- "parameters": [
695
- {
696
- "name": "event",
697
- "type": {
698
- "text": "KeyboardEvent"
699
- }
700
- }
701
- ]
702
- },
703
- {
704
- "kind": "method",
705
- "name": "handleKeypress",
706
- "privacy": "private",
707
- "return": {
708
- "type": {
709
- "text": "void"
710
- }
711
- },
712
- "parameters": [
713
- {
714
- "name": "event",
715
- "type": {
716
- "text": "KeyboardEvent"
717
- }
718
- }
719
- ]
720
- },
721
- {
722
- "kind": "method",
723
- "name": "handleKeyup",
724
- "privacy": "protected",
725
- "return": {
726
- "type": {
727
- "text": "void"
728
- }
729
- },
730
- "parameters": [
731
- {
732
- "name": "event",
733
- "type": {
734
- "text": "KeyboardEvent"
735
- }
736
- }
737
- ]
738
- },
739
- {
740
- "kind": "method",
741
- "name": "manageAnchor",
742
- "privacy": "private",
743
- "return": {
744
- "type": {
745
- "text": "void"
746
- }
747
- }
748
- }
749
- ],
750
- "attributes": [
751
- {
752
- "name": "active",
753
- "type": {
754
- "text": "boolean"
755
- },
756
- "default": "false",
757
- "fieldName": "active"
758
- },
759
- {
760
- "name": "type",
761
- "type": {
762
- "text": "'button' | 'submit' | 'reset'"
763
- },
764
- "default": "'button'",
765
- "fieldName": "type"
766
- }
767
- ],
768
- "mixins": [
769
- {
770
- "name": "ObserveSlotText",
771
- "package": "@spectrum-web-components/shared/src/observe-slot-text.js"
772
- },
773
- {
774
- "name": "LikeAnchor",
775
- "package": "@spectrum-web-components/shared/src/like-anchor.js"
776
- }
777
- ],
778
- "superclass": {
779
- "name": "Focusable",
780
- "package": "@spectrum-web-components/shared/src/focusable.js"
781
- }
782
- }
783
- ],
784
- "exports": [
785
- {
786
- "kind": "js",
787
- "name": "ButtonBase",
788
- "declaration": {
789
- "name": "ButtonBase",
790
- "module": "src/ButtonBase.js"
791
- }
792
- }
793
- ]
794
- },
795
- {
796
- "kind": "javascript-module",
797
- "path": "src/ClearButton.js",
798
- "declarations": [
799
- {
800
- "kind": "class",
801
- "description": "",
802
- "name": "ClearButton",
803
- "slots": [
804
- {
805
- "description": "text label of the Clear Button",
806
- "name": "",
807
- "inheritedFrom": {
808
- "name": "ButtonBase",
809
- "module": "src/ButtonBase.ts"
810
- }
811
- },
812
- {
813
- "description": "The icon to use for Clear Button",
814
- "name": "icon",
815
- "inheritedFrom": {
816
- "name": "ButtonBase",
817
- "module": "src/ButtonBase.ts"
818
- }
819
- }
820
- ],
821
- "members": [
822
- {
823
- "kind": "field",
824
- "name": "variant",
825
- "type": {
826
- "text": "'overBackground' | ''"
827
- },
828
- "privacy": "public",
829
- "default": "''",
830
- "description": "The visual variant to apply to this button.",
831
- "attribute": "variant",
832
- "reflects": true
833
- },
834
- {
835
- "kind": "field",
836
- "name": "buttonContent",
837
- "type": {
838
- "text": "TemplateResult[]"
839
- },
840
- "privacy": "protected",
841
- "readonly": true,
842
- "inheritedFrom": {
843
- "name": "ButtonBase",
844
- "module": "src/ButtonBase.js"
845
- }
846
- },
847
- {
848
- "kind": "field",
849
- "name": "active",
850
- "type": {
851
- "text": "boolean"
852
- },
853
- "privacy": "public",
854
- "default": "false",
855
- "attribute": "active",
856
- "reflects": true,
857
- "inheritedFrom": {
858
- "name": "ButtonBase",
859
- "module": "src/ButtonBase.js"
860
- }
861
- },
862
- {
863
- "kind": "field",
864
- "name": "type",
865
- "type": {
866
- "text": "'button' | 'submit' | 'reset'"
867
- },
868
- "privacy": "public",
869
- "default": "'button'",
870
- "attribute": "type",
871
- "inheritedFrom": {
872
- "name": "ButtonBase",
873
- "module": "src/ButtonBase.js"
874
- }
875
- },
876
- {
877
- "kind": "field",
878
- "name": "anchorElement",
879
- "type": {
880
- "text": "HTMLButtonElement"
881
- },
882
- "privacy": "private",
883
- "inheritedFrom": {
884
- "name": "ButtonBase",
885
- "module": "src/ButtonBase.js"
886
- }
887
- },
888
- {
889
- "kind": "field",
890
- "name": "focusElement",
891
- "type": {
892
- "text": "HTMLElement"
893
- },
894
- "privacy": "public",
895
- "readonly": true,
896
- "inheritedFrom": {
897
- "name": "ButtonBase",
898
- "module": "src/ButtonBase.js"
899
- }
900
- },
901
- {
902
- "kind": "field",
903
- "name": "hasLabel",
904
- "type": {
905
- "text": "boolean"
906
- },
907
- "privacy": "protected",
908
- "readonly": true,
909
- "inheritedFrom": {
910
- "name": "ButtonBase",
911
- "module": "src/ButtonBase.js"
912
- }
913
- },
914
- {
915
- "kind": "method",
916
- "name": "click",
917
- "privacy": "public",
918
- "return": {
919
- "type": {
920
- "text": "void"
921
- }
922
- },
923
- "inheritedFrom": {
924
- "name": "ButtonBase",
925
- "module": "src/ButtonBase.js"
926
- }
927
- },
928
- {
929
- "kind": "method",
930
- "name": "handleClickCapture",
931
- "privacy": "private",
932
- "return": {
933
- "type": {
934
- "text": "void | boolean"
935
- }
936
- },
937
- "parameters": [
938
- {
939
- "name": "event",
940
- "type": {
941
- "text": "Event"
942
- }
943
- }
944
- ],
945
- "inheritedFrom": {
946
- "name": "ButtonBase",
947
- "module": "src/ButtonBase.js"
948
- }
949
- },
950
- {
951
- "kind": "method",
952
- "name": "proxyFocus",
953
- "privacy": "private",
954
- "return": {
955
- "type": {
956
- "text": "void"
957
- }
958
- },
959
- "inheritedFrom": {
960
- "name": "ButtonBase",
961
- "module": "src/ButtonBase.js"
962
- }
963
- },
964
- {
965
- "kind": "method",
966
- "name": "shouldProxyClick",
967
- "privacy": "private",
968
- "return": {
969
- "type": {
970
- "text": "boolean"
971
- }
972
- },
973
- "inheritedFrom": {
974
- "name": "ButtonBase",
975
- "module": "src/ButtonBase.js"
976
- }
977
- },
978
- {
979
- "kind": "method",
980
- "name": "renderAnchor",
981
- "privacy": "public",
982
- "return": {
983
- "type": {
984
- "text": "TemplateResult"
985
- }
986
- },
987
- "inheritedFrom": {
988
- "name": "ButtonBase",
989
- "module": "src/ButtonBase.js"
990
- }
991
- },
992
- {
993
- "kind": "method",
994
- "name": "renderButton",
995
- "privacy": "protected",
996
- "return": {
997
- "type": {
998
- "text": "TemplateResult"
999
- }
1000
- },
1001
- "inheritedFrom": {
1002
- "name": "ButtonBase",
1003
- "module": "src/ButtonBase.js"
1004
- }
1005
- },
1006
- {
1007
- "kind": "method",
1008
- "name": "handleKeydown",
1009
- "privacy": "protected",
1010
- "return": {
1011
- "type": {
1012
- "text": "void"
1013
- }
1014
- },
1015
- "parameters": [
1016
- {
1017
- "name": "event",
1018
- "type": {
1019
- "text": "KeyboardEvent"
1020
- }
1021
- }
1022
- ],
1023
- "inheritedFrom": {
1024
- "name": "ButtonBase",
1025
- "module": "src/ButtonBase.js"
1026
- }
1027
- },
1028
- {
1029
- "kind": "method",
1030
- "name": "handleKeypress",
1031
- "privacy": "private",
1032
- "return": {
1033
- "type": {
1034
- "text": "void"
1035
- }
1036
- },
1037
- "parameters": [
1038
- {
1039
- "name": "event",
1040
- "type": {
1041
- "text": "KeyboardEvent"
1042
- }
1043
- }
1044
- ],
1045
- "inheritedFrom": {
1046
- "name": "ButtonBase",
1047
- "module": "src/ButtonBase.js"
1048
- }
1049
- },
1050
- {
1051
- "kind": "method",
1052
- "name": "handleKeyup",
1053
- "privacy": "protected",
1054
- "return": {
1055
- "type": {
1056
- "text": "void"
1057
- }
1058
- },
1059
- "parameters": [
1060
- {
1061
- "name": "event",
1062
- "type": {
1063
- "text": "KeyboardEvent"
1064
- }
1065
- }
1066
- ],
1067
- "inheritedFrom": {
1068
- "name": "ButtonBase",
1069
- "module": "src/ButtonBase.js"
1070
- }
1071
- },
1072
- {
1073
- "kind": "method",
1074
- "name": "manageAnchor",
1075
- "privacy": "private",
1076
- "return": {
1077
- "type": {
1078
- "text": "void"
1079
- }
1080
- },
1081
- "inheritedFrom": {
1082
- "name": "ButtonBase",
1083
- "module": "src/ButtonBase.js"
1084
- }
1085
- }
1086
- ],
1087
- "attributes": [
1088
- {
1089
- "name": "variant",
1090
- "type": {
1091
- "text": "'overBackground' | ''"
1092
- },
1093
- "default": "''",
1094
- "description": "The visual variant to apply to this button.",
1095
- "fieldName": "variant"
1096
- },
1097
- {
1098
- "name": "active",
1099
- "type": {
1100
- "text": "boolean"
1101
- },
1102
- "default": "false",
1103
- "fieldName": "active",
1104
- "inheritedFrom": {
1105
- "name": "ButtonBase",
1106
- "module": "src/ButtonBase.ts"
1107
- }
1108
- },
1109
- {
1110
- "name": "type",
1111
- "type": {
1112
- "text": "'button' | 'submit' | 'reset'"
1113
- },
1114
- "default": "'button'",
1115
- "fieldName": "type",
1116
- "inheritedFrom": {
1117
- "name": "ButtonBase",
1118
- "module": "src/ButtonBase.ts"
1119
- }
1120
- }
1121
- ],
1122
- "mixins": [
1123
- {
1124
- "name": "SizedMixin",
1125
- "package": "@spectrum-web-components/base"
1126
- }
1127
- ],
1128
- "superclass": {
1129
- "name": "StyledButton",
1130
- "module": "/src/StyledButton.js"
1131
- },
1132
- "tagName": "sp-clear-button",
1133
- "customElement": true
1134
- }
1135
- ],
1136
- "exports": [
1137
- {
1138
- "kind": "js",
1139
- "name": "ClearButton",
1140
- "declaration": {
1141
- "name": "ClearButton",
1142
- "module": "src/ClearButton.js"
1143
- }
1144
- }
1145
- ]
1146
- },
1147
- {
1148
- "kind": "javascript-module",
1149
- "path": "src/CloseButton.js",
1150
- "declarations": [
1151
- {
1152
- "kind": "class",
1153
- "description": "",
1154
- "name": "CloseButton",
1155
- "slots": [
1156
- {
1157
- "description": "text label of the Close Button",
1158
- "name": "",
1159
- "inheritedFrom": {
1160
- "name": "ButtonBase",
1161
- "module": "src/ButtonBase.ts"
1162
- }
1163
- },
1164
- {
1165
- "description": "The icon to use for Close Button",
1166
- "name": "icon",
1167
- "inheritedFrom": {
1168
- "name": "ButtonBase",
1169
- "module": "src/ButtonBase.ts"
1170
- }
1171
- }
1172
- ],
1173
- "members": [
1174
- {
1175
- "kind": "field",
1176
- "name": "variant",
1177
- "type": {
1178
- "text": "ButtonStatics | ''"
1179
- },
1180
- "privacy": "public",
1181
- "default": "''",
1182
- "description": "The visual variant to apply to this button.",
1183
- "attribute": "variant",
1184
- "reflects": true
1185
- },
1186
- {
1187
- "kind": "field",
1188
- "name": "static",
1189
- "type": {
1190
- "text": "'black' | 'white' | undefined"
1191
- },
1192
- "privacy": "public",
1193
- "attribute": "static",
1194
- "reflects": true
1195
- },
1196
- {
1197
- "kind": "field",
1198
- "name": "buttonContent",
1199
- "type": {
1200
- "text": "TemplateResult[]"
1201
- },
1202
- "privacy": "protected",
1203
- "readonly": true,
1204
- "inheritedFrom": {
1205
- "name": "ButtonBase",
1206
- "module": "src/ButtonBase.js"
1207
- }
1208
- },
1209
- {
1210
- "kind": "field",
1211
- "name": "active",
1212
- "type": {
1213
- "text": "boolean"
1214
- },
1215
- "privacy": "public",
1216
- "default": "false",
1217
- "attribute": "active",
1218
- "reflects": true,
1219
- "inheritedFrom": {
1220
- "name": "ButtonBase",
1221
- "module": "src/ButtonBase.js"
1222
- }
1223
- },
1224
- {
1225
- "kind": "field",
1226
- "name": "type",
1227
- "type": {
1228
- "text": "'button' | 'submit' | 'reset'"
1229
- },
1230
- "privacy": "public",
1231
- "default": "'button'",
1232
- "attribute": "type",
1233
- "inheritedFrom": {
1234
- "name": "ButtonBase",
1235
- "module": "src/ButtonBase.js"
1236
- }
1237
- },
1238
- {
1239
- "kind": "field",
1240
- "name": "anchorElement",
1241
- "type": {
1242
- "text": "HTMLButtonElement"
1243
- },
1244
- "privacy": "private",
1245
- "inheritedFrom": {
1246
- "name": "ButtonBase",
1247
- "module": "src/ButtonBase.js"
1248
- }
1249
- },
1250
- {
1251
- "kind": "field",
1252
- "name": "focusElement",
1253
- "type": {
1254
- "text": "HTMLElement"
1255
- },
1256
- "privacy": "public",
1257
- "readonly": true,
1258
- "inheritedFrom": {
1259
- "name": "ButtonBase",
1260
- "module": "src/ButtonBase.js"
1261
- }
1262
- },
1263
- {
1264
- "kind": "field",
1265
- "name": "hasLabel",
1266
- "type": {
1267
- "text": "boolean"
1268
- },
1269
- "privacy": "protected",
1270
- "readonly": true,
1271
- "inheritedFrom": {
1272
- "name": "ButtonBase",
1273
- "module": "src/ButtonBase.js"
1274
- }
1275
- },
1276
- {
1277
- "kind": "method",
1278
- "name": "click",
1279
- "privacy": "public",
1280
- "return": {
1281
- "type": {
1282
- "text": "void"
1283
- }
1284
- },
1285
- "inheritedFrom": {
1286
- "name": "ButtonBase",
1287
- "module": "src/ButtonBase.js"
1288
- }
1289
- },
1290
- {
1291
- "kind": "method",
1292
- "name": "handleClickCapture",
1293
- "privacy": "private",
1294
- "return": {
1295
- "type": {
1296
- "text": "void | boolean"
1297
- }
1298
- },
1299
- "parameters": [
1300
- {
1301
- "name": "event",
1302
- "type": {
1303
- "text": "Event"
1304
- }
1305
- }
1306
- ],
1307
- "inheritedFrom": {
1308
- "name": "ButtonBase",
1309
- "module": "src/ButtonBase.js"
1310
- }
1311
- },
1312
- {
1313
- "kind": "method",
1314
- "name": "proxyFocus",
1315
- "privacy": "private",
1316
- "return": {
1317
- "type": {
1318
- "text": "void"
1319
- }
1320
- },
1321
- "inheritedFrom": {
1322
- "name": "ButtonBase",
1323
- "module": "src/ButtonBase.js"
1324
- }
1325
- },
1326
- {
1327
- "kind": "method",
1328
- "name": "shouldProxyClick",
1329
- "privacy": "private",
1330
- "return": {
1331
- "type": {
1332
- "text": "boolean"
1333
- }
1334
- },
1335
- "inheritedFrom": {
1336
- "name": "ButtonBase",
1337
- "module": "src/ButtonBase.js"
1338
- }
1339
- },
1340
- {
1341
- "kind": "method",
1342
- "name": "renderAnchor",
1343
- "privacy": "public",
1344
- "return": {
1345
- "type": {
1346
- "text": "TemplateResult"
1347
- }
1348
- },
1349
- "inheritedFrom": {
1350
- "name": "ButtonBase",
1351
- "module": "src/ButtonBase.js"
1352
- }
1353
- },
1354
- {
1355
- "kind": "method",
1356
- "name": "renderButton",
1357
- "privacy": "protected",
1358
- "return": {
1359
- "type": {
1360
- "text": "TemplateResult"
1361
- }
1362
- },
1363
- "inheritedFrom": {
1364
- "name": "ButtonBase",
1365
- "module": "src/ButtonBase.js"
1366
- }
1367
- },
1368
- {
1369
- "kind": "method",
1370
- "name": "handleKeydown",
1371
- "privacy": "protected",
1372
- "return": {
1373
- "type": {
1374
- "text": "void"
1375
- }
1376
- },
1377
- "parameters": [
1378
- {
1379
- "name": "event",
1380
- "type": {
1381
- "text": "KeyboardEvent"
1382
- }
1383
- }
1384
- ],
1385
- "inheritedFrom": {
1386
- "name": "ButtonBase",
1387
- "module": "src/ButtonBase.js"
1388
- }
1389
- },
1390
- {
1391
- "kind": "method",
1392
- "name": "handleKeypress",
1393
- "privacy": "private",
1394
- "return": {
1395
- "type": {
1396
- "text": "void"
1397
- }
1398
- },
1399
- "parameters": [
1400
- {
1401
- "name": "event",
1402
- "type": {
1403
- "text": "KeyboardEvent"
1404
- }
1405
- }
1406
- ],
1407
- "inheritedFrom": {
1408
- "name": "ButtonBase",
1409
- "module": "src/ButtonBase.js"
1410
- }
1411
- },
1412
- {
1413
- "kind": "method",
1414
- "name": "handleKeyup",
1415
- "privacy": "protected",
1416
- "return": {
1417
- "type": {
1418
- "text": "void"
1419
- }
1420
- },
1421
- "parameters": [
1422
- {
1423
- "name": "event",
1424
- "type": {
1425
- "text": "KeyboardEvent"
1426
- }
1427
- }
1428
- ],
1429
- "inheritedFrom": {
1430
- "name": "ButtonBase",
1431
- "module": "src/ButtonBase.js"
1432
- }
1433
- },
1434
- {
1435
- "kind": "method",
1436
- "name": "manageAnchor",
1437
- "privacy": "private",
1438
- "return": {
1439
- "type": {
1440
- "text": "void"
1441
- }
1442
- },
1443
- "inheritedFrom": {
1444
- "name": "ButtonBase",
1445
- "module": "src/ButtonBase.js"
1446
- }
1447
- }
1448
- ],
1449
- "attributes": [
1450
- {
1451
- "name": "variant",
1452
- "type": {
1453
- "text": "ButtonStatics | ''"
1454
- },
1455
- "default": "''",
1456
- "description": "The visual variant to apply to this button.",
1457
- "fieldName": "variant"
1458
- },
1459
- {
1460
- "name": "static",
1461
- "type": {
1462
- "text": "'black' | 'white' | undefined"
1463
- },
1464
- "fieldName": "static"
1465
- },
1466
- {
1467
- "name": "active",
1468
- "type": {
1469
- "text": "boolean"
1470
- },
1471
- "default": "false",
1472
- "fieldName": "active",
1473
- "inheritedFrom": {
1474
- "name": "ButtonBase",
1475
- "module": "src/ButtonBase.ts"
1476
- }
1477
- },
1478
- {
1479
- "name": "type",
1480
- "type": {
1481
- "text": "'button' | 'submit' | 'reset'"
1482
- },
1483
- "default": "'button'",
1484
- "fieldName": "type",
1485
- "inheritedFrom": {
1486
- "name": "ButtonBase",
1487
- "module": "src/ButtonBase.ts"
1488
- }
1489
- }
1490
- ],
1491
- "mixins": [
1492
- {
1493
- "name": "SizedMixin",
1494
- "package": "@spectrum-web-components/base"
1495
- }
1496
- ],
1497
- "superclass": {
1498
- "name": "StyledButton",
1499
- "module": "/src/StyledButton.js"
1500
- },
1501
- "tagName": "sp-close-button",
1502
- "customElement": true
1503
- }
1504
- ],
1505
- "exports": [
1506
- {
1507
- "kind": "js",
1508
- "name": "CloseButton",
1509
- "declaration": {
1510
- "name": "CloseButton",
1511
- "module": "src/CloseButton.js"
1512
- }
1513
- }
1514
- ]
1515
- },
1516
- {
1517
- "kind": "javascript-module",
1518
- "path": "src/StyledButton.js",
1519
- "declarations": [
1520
- {
1521
- "kind": "class",
1522
- "description": "",
1523
- "name": "StyledButton",
1524
- "superclass": {
1525
- "name": "ButtonBase",
1526
- "module": "/src/ButtonBase.js"
1527
- },
1528
- "slots": [
1529
- {
1530
- "description": "text content to be displayed in the Button element",
1531
- "name": "",
1532
- "inheritedFrom": {
1533
- "name": "ButtonBase",
1534
- "module": "src/ButtonBase.ts"
1535
- }
1536
- },
1537
- {
1538
- "description": "icon element(s) to display at the start of the button",
1539
- "name": "icon",
1540
- "inheritedFrom": {
1541
- "name": "ButtonBase",
1542
- "module": "src/ButtonBase.ts"
1543
- }
1544
- }
1545
- ],
1546
- "attributes": [
1547
- {
1548
- "name": "active",
1549
- "type": {
1550
- "text": "boolean"
1551
- },
1552
- "default": "false",
1553
- "fieldName": "active",
1554
- "inheritedFrom": {
1555
- "name": "ButtonBase",
1556
- "module": "src/ButtonBase.ts"
1557
- }
1558
- },
1559
- {
1560
- "name": "type",
1561
- "type": {
1562
- "text": "'button' | 'submit' | 'reset'"
1563
- },
1564
- "default": "'button'",
1565
- "fieldName": "type",
1566
- "inheritedFrom": {
1567
- "name": "ButtonBase",
1568
- "module": "src/ButtonBase.ts"
1569
- }
1570
- }
1571
- ],
1572
- "members": [
1573
- {
1574
- "kind": "field",
1575
- "name": "active",
1576
- "type": {
1577
- "text": "boolean"
1578
- },
1579
- "privacy": "public",
1580
- "default": "false",
1581
- "attribute": "active",
1582
- "reflects": true,
1583
- "inheritedFrom": {
1584
- "name": "ButtonBase",
1585
- "module": "src/ButtonBase.js"
1586
- }
1587
- },
1588
- {
1589
- "kind": "field",
1590
- "name": "type",
1591
- "type": {
1592
- "text": "'button' | 'submit' | 'reset'"
1593
- },
1594
- "privacy": "public",
1595
- "default": "'button'",
1596
- "attribute": "type",
1597
- "inheritedFrom": {
1598
- "name": "ButtonBase",
1599
- "module": "src/ButtonBase.js"
1600
- }
1601
- },
1602
- {
1603
- "kind": "field",
1604
- "name": "anchorElement",
1605
- "type": {
1606
- "text": "HTMLButtonElement"
1607
- },
1608
- "privacy": "private",
1609
- "inheritedFrom": {
1610
- "name": "ButtonBase",
1611
- "module": "src/ButtonBase.js"
1612
- }
1613
- },
1614
- {
1615
- "kind": "field",
1616
- "name": "focusElement",
1617
- "type": {
1618
- "text": "HTMLElement"
1619
- },
1620
- "privacy": "public",
1621
- "readonly": true,
1622
- "inheritedFrom": {
1623
- "name": "ButtonBase",
1624
- "module": "src/ButtonBase.js"
1625
- }
1626
- },
1627
- {
1628
- "kind": "field",
1629
- "name": "hasLabel",
1630
- "type": {
1631
- "text": "boolean"
1632
- },
1633
- "privacy": "protected",
1634
- "readonly": true,
1635
- "inheritedFrom": {
1636
- "name": "ButtonBase",
1637
- "module": "src/ButtonBase.js"
1638
- }
1639
- },
1640
- {
1641
- "kind": "field",
1642
- "name": "buttonContent",
1643
- "type": {
1644
- "text": "TemplateResult[]"
1645
- },
1646
- "privacy": "protected",
1647
- "readonly": true,
1648
- "inheritedFrom": {
1649
- "name": "ButtonBase",
1650
- "module": "src/ButtonBase.js"
1651
- }
1652
- },
1653
- {
1654
- "kind": "method",
1655
- "name": "click",
1656
- "privacy": "public",
1657
- "return": {
1658
- "type": {
1659
- "text": "void"
1660
- }
1661
- },
1662
- "inheritedFrom": {
1663
- "name": "ButtonBase",
1664
- "module": "src/ButtonBase.js"
1665
- }
1666
- },
1667
- {
1668
- "kind": "method",
1669
- "name": "handleClickCapture",
1670
- "privacy": "private",
1671
- "return": {
1672
- "type": {
1673
- "text": "void | boolean"
1674
- }
1675
- },
1676
- "parameters": [
1677
- {
1678
- "name": "event",
1679
- "type": {
1680
- "text": "Event"
1681
- }
1682
- }
1683
- ],
1684
- "inheritedFrom": {
1685
- "name": "ButtonBase",
1686
- "module": "src/ButtonBase.js"
1687
- }
1688
- },
1689
- {
1690
- "kind": "method",
1691
- "name": "proxyFocus",
1692
- "privacy": "private",
1693
- "return": {
1694
- "type": {
1695
- "text": "void"
1696
- }
1697
- },
1698
- "inheritedFrom": {
1699
- "name": "ButtonBase",
1700
- "module": "src/ButtonBase.js"
1701
- }
1702
- },
1703
- {
1704
- "kind": "method",
1705
- "name": "shouldProxyClick",
1706
- "privacy": "private",
1707
- "return": {
1708
- "type": {
1709
- "text": "boolean"
1710
- }
1711
- },
1712
- "inheritedFrom": {
1713
- "name": "ButtonBase",
1714
- "module": "src/ButtonBase.js"
1715
- }
1716
- },
1717
- {
1718
- "kind": "method",
1719
- "name": "renderAnchor",
1720
- "privacy": "public",
1721
- "return": {
1722
- "type": {
1723
- "text": "TemplateResult"
1724
- }
1725
- },
1726
- "inheritedFrom": {
1727
- "name": "ButtonBase",
1728
- "module": "src/ButtonBase.js"
1729
- }
1730
- },
1731
- {
1732
- "kind": "method",
1733
- "name": "renderButton",
1734
- "privacy": "protected",
1735
- "return": {
1736
- "type": {
1737
- "text": "TemplateResult"
1738
- }
1739
- },
1740
- "inheritedFrom": {
1741
- "name": "ButtonBase",
1742
- "module": "src/ButtonBase.js"
1743
- }
1744
- },
1745
- {
1746
- "kind": "method",
1747
- "name": "handleKeydown",
1748
- "privacy": "protected",
1749
- "return": {
1750
- "type": {
1751
- "text": "void"
1752
- }
1753
- },
1754
- "parameters": [
1755
- {
1756
- "name": "event",
1757
- "type": {
1758
- "text": "KeyboardEvent"
1759
- }
1760
- }
1761
- ],
1762
- "inheritedFrom": {
1763
- "name": "ButtonBase",
1764
- "module": "src/ButtonBase.js"
1765
- }
1766
- },
1767
- {
1768
- "kind": "method",
1769
- "name": "handleKeypress",
1770
- "privacy": "private",
1771
- "return": {
1772
- "type": {
1773
- "text": "void"
1774
- }
1775
- },
1776
- "parameters": [
1777
- {
1778
- "name": "event",
1779
- "type": {
1780
- "text": "KeyboardEvent"
1781
- }
1782
- }
1783
- ],
1784
- "inheritedFrom": {
1785
- "name": "ButtonBase",
1786
- "module": "src/ButtonBase.js"
1787
- }
1788
- },
1789
- {
1790
- "kind": "method",
1791
- "name": "handleKeyup",
1792
- "privacy": "protected",
1793
- "return": {
1794
- "type": {
1795
- "text": "void"
1796
- }
1797
- },
1798
- "parameters": [
1799
- {
1800
- "name": "event",
1801
- "type": {
1802
- "text": "KeyboardEvent"
1803
- }
1804
- }
1805
- ],
1806
- "inheritedFrom": {
1807
- "name": "ButtonBase",
1808
- "module": "src/ButtonBase.js"
1809
- }
1810
- },
1811
- {
1812
- "kind": "method",
1813
- "name": "manageAnchor",
1814
- "privacy": "private",
1815
- "return": {
1816
- "type": {
1817
- "text": "void"
1818
- }
1819
- },
1820
- "inheritedFrom": {
1821
- "name": "ButtonBase",
1822
- "module": "src/ButtonBase.js"
1823
- }
1824
- }
1825
- ]
1826
- }
1827
- ],
1828
- "exports": [
1829
- {
1830
- "kind": "js",
1831
- "name": "StyledButton",
1832
- "declaration": {
1833
- "name": "StyledButton",
1834
- "module": "src/StyledButton.js"
1835
- }
1836
- }
1837
- ]
1838
- }
1839
- ]
1840
- }