@proximus/lavender-button 2.0.0-alpha.20 → 2.0.0-alpha.201

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.
@@ -0,0 +1,913 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/Button.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "variable",
11
+ "name": "variantValues",
12
+ "type": {
13
+ "text": "[\n '',\n 'default',\n 'secondary',\n 'tertiary',\n 'link',\n 'patch',\n 'patch-info',\n 'patch-black-friday',\n 'patch-eco',\n 'actionable-tag',\n 'actionable-tag-secondary',\n 'header-dropdown',\n 'header-minimal-dropdown',\n]"
14
+ },
15
+ "default": "[ '', 'default', 'secondary', 'tertiary', 'link', 'patch', 'patch-info', 'patch-black-friday', 'patch-eco', 'actionable-tag', 'actionable-tag-secondary', 'header-dropdown', 'header-minimal-dropdown', ]"
16
+ },
17
+ {
18
+ "kind": "variable",
19
+ "name": "shapeValues",
20
+ "type": {
21
+ "text": "array"
22
+ },
23
+ "default": "[ '', 'default', 'bottom-right', 'bottom-left', 'alternative', ]"
24
+ },
25
+ {
26
+ "kind": "class",
27
+ "description": "",
28
+ "name": "Button",
29
+ "slots": [
30
+ {
31
+ "description": "Content to be placed before the button text,",
32
+ "name": "before"
33
+ },
34
+ {
35
+ "description": "Content to be placed after the button text",
36
+ "name": "after"
37
+ }
38
+ ],
39
+ "members": [
40
+ {
41
+ "kind": "field",
42
+ "name": "nativeName",
43
+ "type": {
44
+ "text": "string"
45
+ },
46
+ "static": true,
47
+ "default": "'button'"
48
+ },
49
+ {
50
+ "kind": "field",
51
+ "name": "template",
52
+ "privacy": "private"
53
+ },
54
+ {
55
+ "kind": "method",
56
+ "name": "checkClass",
57
+ "parameters": [
58
+ {
59
+ "name": "value",
60
+ "type": {
61
+ "text": "string"
62
+ }
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "kind": "method",
68
+ "name": "_toggleClass",
69
+ "parameters": [
70
+ {
71
+ "name": "oldValue",
72
+ "type": {
73
+ "text": "string"
74
+ }
75
+ },
76
+ {
77
+ "name": "newValue",
78
+ "type": {
79
+ "text": "string"
80
+ }
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "kind": "method",
86
+ "name": "updateVariant",
87
+ "parameters": [
88
+ {
89
+ "name": "oldValue",
90
+ "type": {
91
+ "text": "string"
92
+ }
93
+ },
94
+ {
95
+ "name": "newValue",
96
+ "type": {
97
+ "text": "string"
98
+ }
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "kind": "method",
104
+ "name": "updateState",
105
+ "parameters": [
106
+ {
107
+ "name": "oldValue",
108
+ "type": {
109
+ "text": "string"
110
+ }
111
+ },
112
+ {
113
+ "name": "newValue",
114
+ "type": {
115
+ "text": "string"
116
+ }
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "kind": "method",
122
+ "name": "updateExtended",
123
+ "parameters": [
124
+ {
125
+ "name": "attributeName",
126
+ "type": {
127
+ "text": "string"
128
+ }
129
+ },
130
+ {
131
+ "name": "newValue",
132
+ "type": {
133
+ "text": "string"
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "kind": "method",
140
+ "name": "updateLoading"
141
+ },
142
+ {
143
+ "kind": "method",
144
+ "name": "updateShape",
145
+ "parameters": [
146
+ {
147
+ "name": "attrName",
148
+ "type": {
149
+ "text": "string"
150
+ }
151
+ },
152
+ {
153
+ "name": "newValue",
154
+ "type": {
155
+ "text": "string"
156
+ }
157
+ },
158
+ {
159
+ "name": "attrValue",
160
+ "type": {
161
+ "text": "string[]"
162
+ }
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "kind": "field",
168
+ "name": "variant"
169
+ },
170
+ {
171
+ "kind": "field",
172
+ "name": "state"
173
+ },
174
+ {
175
+ "kind": "field",
176
+ "name": "extended"
177
+ },
178
+ {
179
+ "kind": "field",
180
+ "name": "extendedMobile"
181
+ },
182
+ {
183
+ "kind": "field",
184
+ "name": "extendedTablet"
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "extendedLaptop"
189
+ },
190
+ {
191
+ "kind": "field",
192
+ "name": "extendedDesktop"
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "loading"
197
+ },
198
+ {
199
+ "kind": "field",
200
+ "name": "shape"
201
+ },
202
+ {
203
+ "kind": "field",
204
+ "name": "shapeMobile"
205
+ },
206
+ {
207
+ "kind": "field",
208
+ "name": "shapeTablet"
209
+ },
210
+ {
211
+ "kind": "field",
212
+ "name": "shapeLaptop"
213
+ },
214
+ {
215
+ "kind": "field",
216
+ "name": "shapeDesktop"
217
+ },
218
+ {
219
+ "kind": "field",
220
+ "name": "inverted"
221
+ },
222
+ {
223
+ "kind": "field",
224
+ "name": "ariaExpanded"
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "size"
229
+ },
230
+ {
231
+ "kind": "field",
232
+ "name": "innerHTML"
233
+ }
234
+ ],
235
+ "attributes": [
236
+ {
237
+ "name": "variant"
238
+ },
239
+ {
240
+ "name": "state"
241
+ },
242
+ {
243
+ "name": "loading"
244
+ },
245
+ {
246
+ "name": "shape"
247
+ },
248
+ {
249
+ "name": "shape--mobile"
250
+ },
251
+ {
252
+ "name": "shape--tablet"
253
+ },
254
+ {
255
+ "name": "shape--laptop"
256
+ },
257
+ {
258
+ "name": "shape--desktop"
259
+ },
260
+ {
261
+ "name": "inverted"
262
+ },
263
+ {
264
+ "name": "aria-expanded"
265
+ },
266
+ {
267
+ "name": "extended"
268
+ },
269
+ {
270
+ "name": "extended--mobile"
271
+ },
272
+ {
273
+ "name": "extended--tablet"
274
+ },
275
+ {
276
+ "name": "extended--laptop"
277
+ },
278
+ {
279
+ "name": "extended--desktop"
280
+ },
281
+ {
282
+ "name": "size"
283
+ },
284
+ {
285
+ "type": {
286
+ "text": "string"
287
+ },
288
+ "description": "The name of the button, submitted as a pair with the button's value as part of the form data.",
289
+ "name": "name"
290
+ },
291
+ {
292
+ "type": {
293
+ "text": "string"
294
+ },
295
+ "description": "The value associated with the button's name when it's submitted with a form.",
296
+ "name": "value"
297
+ },
298
+ {
299
+ "type": {
300
+ "text": "string"
301
+ },
302
+ "description": "The default behavior of the button. Possible values are 'submit', 'reset', and 'button'.",
303
+ "name": "type"
304
+ },
305
+ {
306
+ "type": {
307
+ "text": "boolean"
308
+ },
309
+ "description": "Whether the button is disabled.",
310
+ "name": "disabled"
311
+ }
312
+ ],
313
+ "superclass": {
314
+ "name": "PxElement",
315
+ "package": "@proximus/lavender-common"
316
+ },
317
+ "summary": "Primary button for actions, forms, and more.",
318
+ "tagName": "px-button",
319
+ "customElement": true
320
+ }
321
+ ],
322
+ "exports": [
323
+ {
324
+ "kind": "js",
325
+ "name": "variantValues",
326
+ "declaration": {
327
+ "name": "variantValues",
328
+ "module": "src/Button.ts"
329
+ }
330
+ },
331
+ {
332
+ "kind": "js",
333
+ "name": "shapeValues",
334
+ "declaration": {
335
+ "name": "shapeValues",
336
+ "module": "src/Button.ts"
337
+ }
338
+ },
339
+ {
340
+ "kind": "js",
341
+ "name": "Button",
342
+ "declaration": {
343
+ "name": "Button",
344
+ "module": "src/Button.ts"
345
+ }
346
+ },
347
+ {
348
+ "kind": "custom-element-definition",
349
+ "name": "px-button",
350
+ "declaration": {
351
+ "name": "Button",
352
+ "module": "src/Button.ts"
353
+ }
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "kind": "javascript-module",
359
+ "path": "src/ButtonWrapper.ts",
360
+ "declarations": [
361
+ {
362
+ "kind": "class",
363
+ "description": "",
364
+ "name": "ButtonWrapper",
365
+ "slots": [
366
+ {
367
+ "description": "Content to be placed before the button text.",
368
+ "name": "before",
369
+ "inheritedFrom": {
370
+ "name": "Button",
371
+ "module": "src/Button.ts"
372
+ }
373
+ },
374
+ {
375
+ "description": "Content to be placed after the button text.",
376
+ "name": "after",
377
+ "inheritedFrom": {
378
+ "name": "Button",
379
+ "module": "src/Button.ts"
380
+ }
381
+ }
382
+ ],
383
+ "members": [
384
+ {
385
+ "kind": "field",
386
+ "name": "#wrappedInteractiveStateController",
387
+ "privacy": "private",
388
+ "type": {
389
+ "text": "WrappedInteractiveStateController"
390
+ },
391
+ "default": "new WrappedInteractiveStateController(this, this.$el, () => this.#canSetWrappedInteractiveState() )"
392
+ },
393
+ {
394
+ "kind": "method",
395
+ "name": "#canSetWrappedInteractiveState",
396
+ "privacy": "private"
397
+ },
398
+ {
399
+ "kind": "field",
400
+ "name": "nativeName",
401
+ "type": {
402
+ "text": "string"
403
+ },
404
+ "static": true,
405
+ "default": "'button'",
406
+ "inheritedFrom": {
407
+ "name": "Button",
408
+ "module": "src/Button.ts"
409
+ }
410
+ },
411
+ {
412
+ "kind": "field",
413
+ "name": "template",
414
+ "privacy": "private",
415
+ "inheritedFrom": {
416
+ "name": "Button",
417
+ "module": "src/Button.ts"
418
+ }
419
+ },
420
+ {
421
+ "kind": "method",
422
+ "name": "checkClass",
423
+ "parameters": [
424
+ {
425
+ "name": "value",
426
+ "type": {
427
+ "text": "string"
428
+ }
429
+ }
430
+ ],
431
+ "inheritedFrom": {
432
+ "name": "Button",
433
+ "module": "src/Button.ts"
434
+ }
435
+ },
436
+ {
437
+ "kind": "method",
438
+ "name": "_toggleClass",
439
+ "parameters": [
440
+ {
441
+ "name": "oldValue",
442
+ "type": {
443
+ "text": "string"
444
+ }
445
+ },
446
+ {
447
+ "name": "newValue",
448
+ "type": {
449
+ "text": "string"
450
+ }
451
+ }
452
+ ],
453
+ "inheritedFrom": {
454
+ "name": "Button",
455
+ "module": "src/Button.ts"
456
+ }
457
+ },
458
+ {
459
+ "kind": "method",
460
+ "name": "updateVariant",
461
+ "parameters": [
462
+ {
463
+ "name": "oldValue",
464
+ "type": {
465
+ "text": "string"
466
+ }
467
+ },
468
+ {
469
+ "name": "newValue",
470
+ "type": {
471
+ "text": "string"
472
+ }
473
+ }
474
+ ],
475
+ "inheritedFrom": {
476
+ "name": "Button",
477
+ "module": "src/Button.ts"
478
+ }
479
+ },
480
+ {
481
+ "kind": "method",
482
+ "name": "updateState",
483
+ "parameters": [
484
+ {
485
+ "name": "oldValue",
486
+ "type": {
487
+ "text": "string"
488
+ }
489
+ },
490
+ {
491
+ "name": "newValue",
492
+ "type": {
493
+ "text": "string"
494
+ }
495
+ }
496
+ ],
497
+ "inheritedFrom": {
498
+ "name": "Button",
499
+ "module": "src/Button.ts"
500
+ }
501
+ },
502
+ {
503
+ "kind": "method",
504
+ "name": "updateExtended",
505
+ "parameters": [
506
+ {
507
+ "name": "attributeName",
508
+ "type": {
509
+ "text": "string"
510
+ }
511
+ },
512
+ {
513
+ "name": "newValue",
514
+ "type": {
515
+ "text": "string"
516
+ }
517
+ }
518
+ ],
519
+ "inheritedFrom": {
520
+ "name": "Button",
521
+ "module": "src/Button.ts"
522
+ }
523
+ },
524
+ {
525
+ "kind": "method",
526
+ "name": "updateLoading",
527
+ "inheritedFrom": {
528
+ "name": "Button",
529
+ "module": "src/Button.ts"
530
+ }
531
+ },
532
+ {
533
+ "kind": "method",
534
+ "name": "updateShape",
535
+ "parameters": [
536
+ {
537
+ "name": "attrName",
538
+ "type": {
539
+ "text": "string"
540
+ }
541
+ },
542
+ {
543
+ "name": "newValue",
544
+ "type": {
545
+ "text": "string"
546
+ }
547
+ },
548
+ {
549
+ "name": "attrValue",
550
+ "type": {
551
+ "text": "string[]"
552
+ }
553
+ }
554
+ ],
555
+ "inheritedFrom": {
556
+ "name": "Button",
557
+ "module": "src/Button.ts"
558
+ }
559
+ },
560
+ {
561
+ "kind": "field",
562
+ "name": "variant",
563
+ "inheritedFrom": {
564
+ "name": "Button",
565
+ "module": "src/Button.ts"
566
+ }
567
+ },
568
+ {
569
+ "kind": "field",
570
+ "name": "state",
571
+ "inheritedFrom": {
572
+ "name": "Button",
573
+ "module": "src/Button.ts"
574
+ }
575
+ },
576
+ {
577
+ "kind": "field",
578
+ "name": "extended",
579
+ "inheritedFrom": {
580
+ "name": "Button",
581
+ "module": "src/Button.ts"
582
+ }
583
+ },
584
+ {
585
+ "kind": "field",
586
+ "name": "extendedMobile",
587
+ "inheritedFrom": {
588
+ "name": "Button",
589
+ "module": "src/Button.ts"
590
+ }
591
+ },
592
+ {
593
+ "kind": "field",
594
+ "name": "extendedTablet",
595
+ "inheritedFrom": {
596
+ "name": "Button",
597
+ "module": "src/Button.ts"
598
+ }
599
+ },
600
+ {
601
+ "kind": "field",
602
+ "name": "extendedLaptop",
603
+ "inheritedFrom": {
604
+ "name": "Button",
605
+ "module": "src/Button.ts"
606
+ }
607
+ },
608
+ {
609
+ "kind": "field",
610
+ "name": "extendedDesktop",
611
+ "inheritedFrom": {
612
+ "name": "Button",
613
+ "module": "src/Button.ts"
614
+ }
615
+ },
616
+ {
617
+ "kind": "field",
618
+ "name": "loading",
619
+ "inheritedFrom": {
620
+ "name": "Button",
621
+ "module": "src/Button.ts"
622
+ }
623
+ },
624
+ {
625
+ "kind": "field",
626
+ "name": "shape",
627
+ "inheritedFrom": {
628
+ "name": "Button",
629
+ "module": "src/Button.ts"
630
+ }
631
+ },
632
+ {
633
+ "kind": "field",
634
+ "name": "shapeMobile",
635
+ "inheritedFrom": {
636
+ "name": "Button",
637
+ "module": "src/Button.ts"
638
+ }
639
+ },
640
+ {
641
+ "kind": "field",
642
+ "name": "shapeTablet",
643
+ "inheritedFrom": {
644
+ "name": "Button",
645
+ "module": "src/Button.ts"
646
+ }
647
+ },
648
+ {
649
+ "kind": "field",
650
+ "name": "shapeLaptop",
651
+ "inheritedFrom": {
652
+ "name": "Button",
653
+ "module": "src/Button.ts"
654
+ }
655
+ },
656
+ {
657
+ "kind": "field",
658
+ "name": "shapeDesktop",
659
+ "inheritedFrom": {
660
+ "name": "Button",
661
+ "module": "src/Button.ts"
662
+ }
663
+ },
664
+ {
665
+ "kind": "field",
666
+ "name": "inverted",
667
+ "inheritedFrom": {
668
+ "name": "Button",
669
+ "module": "src/Button.ts"
670
+ }
671
+ },
672
+ {
673
+ "kind": "field",
674
+ "name": "ariaExpanded",
675
+ "inheritedFrom": {
676
+ "name": "Button",
677
+ "module": "src/Button.ts"
678
+ }
679
+ },
680
+ {
681
+ "kind": "field",
682
+ "name": "size",
683
+ "inheritedFrom": {
684
+ "name": "Button",
685
+ "module": "src/Button.ts"
686
+ }
687
+ },
688
+ {
689
+ "kind": "field",
690
+ "name": "innerHTML",
691
+ "inheritedFrom": {
692
+ "name": "Button",
693
+ "module": "src/Button.ts"
694
+ }
695
+ }
696
+ ],
697
+ "attributes": [
698
+ {
699
+ "type": {
700
+ "text": "string"
701
+ },
702
+ "description": "The name of the button, submitted as a pair with the button's value as part of the form data.",
703
+ "name": "name",
704
+ "inheritedFrom": {
705
+ "name": "Button",
706
+ "module": "src/Button.ts"
707
+ }
708
+ },
709
+ {
710
+ "type": {
711
+ "text": "string"
712
+ },
713
+ "description": "The value associated with the button's name when it's submitted with a form.",
714
+ "name": "value",
715
+ "inheritedFrom": {
716
+ "name": "Button",
717
+ "module": "src/Button.ts"
718
+ }
719
+ },
720
+ {
721
+ "type": {
722
+ "text": "string"
723
+ },
724
+ "description": "The default behavior of the button. Possible values are 'submit', 'reset', and 'button'.",
725
+ "name": "type",
726
+ "inheritedFrom": {
727
+ "name": "Button",
728
+ "module": "src/Button.ts"
729
+ }
730
+ },
731
+ {
732
+ "type": {
733
+ "text": "boolean"
734
+ },
735
+ "description": "Whether the button is disabled.",
736
+ "name": "disabled",
737
+ "inheritedFrom": {
738
+ "name": "Button",
739
+ "module": "src/Button.ts"
740
+ }
741
+ },
742
+ {
743
+ "name": "variant",
744
+ "inheritedFrom": {
745
+ "name": "Button",
746
+ "module": "src/Button.ts"
747
+ }
748
+ },
749
+ {
750
+ "name": "state",
751
+ "inheritedFrom": {
752
+ "name": "Button",
753
+ "module": "src/Button.ts"
754
+ }
755
+ },
756
+ {
757
+ "name": "loading",
758
+ "inheritedFrom": {
759
+ "name": "Button",
760
+ "module": "src/Button.ts"
761
+ }
762
+ },
763
+ {
764
+ "name": "shape",
765
+ "inheritedFrom": {
766
+ "name": "Button",
767
+ "module": "src/Button.ts"
768
+ }
769
+ },
770
+ {
771
+ "name": "shape--mobile",
772
+ "inheritedFrom": {
773
+ "name": "Button",
774
+ "module": "src/Button.ts"
775
+ }
776
+ },
777
+ {
778
+ "name": "shape--tablet",
779
+ "inheritedFrom": {
780
+ "name": "Button",
781
+ "module": "src/Button.ts"
782
+ }
783
+ },
784
+ {
785
+ "name": "shape--laptop",
786
+ "inheritedFrom": {
787
+ "name": "Button",
788
+ "module": "src/Button.ts"
789
+ }
790
+ },
791
+ {
792
+ "name": "shape--desktop",
793
+ "inheritedFrom": {
794
+ "name": "Button",
795
+ "module": "src/Button.ts"
796
+ }
797
+ },
798
+ {
799
+ "name": "inverted",
800
+ "inheritedFrom": {
801
+ "name": "Button",
802
+ "module": "src/Button.ts"
803
+ }
804
+ },
805
+ {
806
+ "name": "aria-expanded",
807
+ "inheritedFrom": {
808
+ "name": "Button",
809
+ "module": "src/Button.ts"
810
+ }
811
+ },
812
+ {
813
+ "name": "extended",
814
+ "inheritedFrom": {
815
+ "name": "Button",
816
+ "module": "src/Button.ts"
817
+ }
818
+ },
819
+ {
820
+ "name": "extended--mobile",
821
+ "inheritedFrom": {
822
+ "name": "Button",
823
+ "module": "src/Button.ts"
824
+ }
825
+ },
826
+ {
827
+ "name": "extended--tablet",
828
+ "inheritedFrom": {
829
+ "name": "Button",
830
+ "module": "src/Button.ts"
831
+ }
832
+ },
833
+ {
834
+ "name": "extended--laptop",
835
+ "inheritedFrom": {
836
+ "name": "Button",
837
+ "module": "src/Button.ts"
838
+ }
839
+ },
840
+ {
841
+ "name": "extended--desktop",
842
+ "inheritedFrom": {
843
+ "name": "Button",
844
+ "module": "src/Button.ts"
845
+ }
846
+ },
847
+ {
848
+ "name": "size",
849
+ "inheritedFrom": {
850
+ "name": "Button",
851
+ "module": "src/Button.ts"
852
+ }
853
+ }
854
+ ],
855
+ "superclass": {
856
+ "name": "Button",
857
+ "module": "/src/Button"
858
+ },
859
+ "summary": "A wrapper button that propagates interactive states (hover/focus) to child components.",
860
+ "tagName": "px-button-wrapper",
861
+ "customElement": true
862
+ }
863
+ ],
864
+ "exports": [
865
+ {
866
+ "kind": "js",
867
+ "name": "ButtonWrapper",
868
+ "declaration": {
869
+ "name": "ButtonWrapper",
870
+ "module": "src/ButtonWrapper.ts"
871
+ }
872
+ },
873
+ {
874
+ "kind": "custom-element-definition",
875
+ "name": "px-button-wrapper",
876
+ "declaration": {
877
+ "name": "ButtonWrapper",
878
+ "module": "src/ButtonWrapper.ts"
879
+ }
880
+ }
881
+ ]
882
+ },
883
+ {
884
+ "kind": "javascript-module",
885
+ "path": "src/button.css",
886
+ "declarations": [],
887
+ "exports": []
888
+ },
889
+ {
890
+ "kind": "javascript-module",
891
+ "path": "src/index.ts",
892
+ "declarations": [],
893
+ "exports": [
894
+ {
895
+ "kind": "js",
896
+ "name": "*",
897
+ "declaration": {
898
+ "name": "*",
899
+ "module": "src/Button"
900
+ }
901
+ },
902
+ {
903
+ "kind": "js",
904
+ "name": "*",
905
+ "declaration": {
906
+ "name": "*",
907
+ "module": "src/ButtonWrapper"
908
+ }
909
+ }
910
+ ]
911
+ }
912
+ ]
913
+ }