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