@proximus/lavender-button 2.0.0-alpha.21 → 2.0.0-alpha.211

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