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