tuix-webcomponents 0.0.26 → 0.0.27
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.
package/custom-elements.json
CHANGED
|
@@ -425,6 +425,244 @@
|
|
|
425
425
|
}
|
|
426
426
|
]
|
|
427
427
|
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "javascript-module",
|
|
430
|
+
"path": "src/tuix-checkbox/TuixCheckbox.styles.ts",
|
|
431
|
+
"declarations": [
|
|
432
|
+
{
|
|
433
|
+
"kind": "variable",
|
|
434
|
+
"name": "hostStyles",
|
|
435
|
+
"default": "css`\n :host {\n --t-main-color-tuix: ${unsafeCSS(Palette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(Palette.WHITE)};\n --t-bg-color-disabled: ${unsafeCSS(Palette.PRIMARY_100)};\n --t-text-color-error: ${unsafeCSS(Palette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(Palette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(Palette.PRIMARY_300)};\n --t-text-color-label: ${unsafeCSS(Palette.BLACK)};\n --t-label-right-default-justify: flex-start;\n --t-label-left-default-justify: space-between;\n }\n :host([dark]) {\n --t-main-color-tuix: ${unsafeCSS(DarkPalette.MAIN)};\n --t-bg-color-primary: ${unsafeCSS(DarkPalette.BLACK)};\n --t-bg-color-disabled: ${unsafeCSS(DarkPalette.PRIMARY_800)};\n --t-text-color-error: ${unsafeCSS(DarkPalette.ERROR)};\n --t-stroke-color-focus: ${unsafeCSS(DarkPalette.SECONDARY)};\n --t-stroke-color-grey: ${unsafeCSS(DarkPalette.PRIMARY_100)};\n --t-text-color-label: ${unsafeCSS(DarkPalette.WHITE)};\n }\n`"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"kind": "variable",
|
|
439
|
+
"name": "checkboxContainerStyles",
|
|
440
|
+
"default": "css`\n .t-checkbox-full-container {\n display: flex;\n justify-content: var(--t-label-right-default-justify, flex-start);\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n :host([disabled]) .t-checkbox-full-container {\n cursor: not-allowed;\n }\n .t-checkbox-container {\n --t-checkbox-size-box: 1.5rem;\n --t-checkbox-shadow-width: 2px;\n --t-checkbox-border-radius: 0.25rem;\n display: block;\n position: relative;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n min-width: var(--t-checkbox-size-box);\n }\n .t-checkbox-container .t-checkbox {\n position: absolute;\n opacity: 0;\n height: 0;\n width: 0;\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-checkbox-container {\n --t-checkbox-size-box: 1rem;\n --t-checkbox-shadow-width: 1px;\n --t-checkbox-border-radius: 0.125rem;\n margin-top: 1px;\n }\n }\n`"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"kind": "variable",
|
|
444
|
+
"name": "checkboxCheckmarkStyles",
|
|
445
|
+
"default": "css`\n .t-checkbox-container .t-checkbox-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n height: var(--t-checkbox-size-box);\n width: var(--t-checkbox-size-box);\n border-radius: var(--t-checkbox-border-radius);\n background-color: var(--t-bg-color-primary);\n border: 1px solid var(--t-stroke-color-grey);\n box-sizing: border-box;\n }\n .t-checkbox-container .t-checkbox-checkmark tuix-icon {\n margin: auto;\n display: none;\n width: calc(var(--t-checkbox-size-box) - 0.5rem);\n height: calc(var(--t-checkbox-size-box) - 0.5rem);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark {\n background-color: var(--t-main-color-tuix);\n border: none;\n }\n .t-checkbox-container .t-checkbox:focus ~ .t-checkbox-checkmark {\n box-shadow: 0 0 0px var(--t-checkbox-shadow-width)\n var(--t-stroke-color-focus);\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-container .t-checkbox:checked ~ .t-checkbox-checkmark tuix-icon {\n display: block;\n }\n .t-checkbox-full-container:hover .t-checkbox-container .t-checkbox-checkmark {\n border: 1px solid var(--t-main-color-tuix);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox-checkmark {\n border: 1px solid var(--t-text-color-error);\n }\n .t-checkbox-full-container.t-with-error\n .t-checkbox-container\n .t-checkbox:checked\n ~ .t-checkbox-checkmark {\n background-color: var(--t-text-color-error);\n border: none;\n }\n\n .t-checkbox-container .t-checkbox:disabled ~ .t-checkbox-checkmark {\n background-color: var(--t-bg-color-disabled);\n border: none;\n box-shadow: none;\n }\n`"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "variable",
|
|
449
|
+
"name": "checkboxLabelStyles",
|
|
450
|
+
"default": "css`\n .t-checkbox-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-checkbox-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-checkbox-full-container.t-with-label-left .t-checkbox-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"exports": [
|
|
454
|
+
{
|
|
455
|
+
"kind": "js",
|
|
456
|
+
"name": "hostStyles",
|
|
457
|
+
"declaration": {
|
|
458
|
+
"name": "hostStyles",
|
|
459
|
+
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"kind": "js",
|
|
464
|
+
"name": "checkboxContainerStyles",
|
|
465
|
+
"declaration": {
|
|
466
|
+
"name": "checkboxContainerStyles",
|
|
467
|
+
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"kind": "js",
|
|
472
|
+
"name": "checkboxCheckmarkStyles",
|
|
473
|
+
"declaration": {
|
|
474
|
+
"name": "checkboxCheckmarkStyles",
|
|
475
|
+
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"kind": "js",
|
|
480
|
+
"name": "checkboxLabelStyles",
|
|
481
|
+
"declaration": {
|
|
482
|
+
"name": "checkboxLabelStyles",
|
|
483
|
+
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"kind": "javascript-module",
|
|
490
|
+
"path": "src/tuix-checkbox/TuixCheckbox.ts",
|
|
491
|
+
"declarations": [
|
|
492
|
+
{
|
|
493
|
+
"kind": "class",
|
|
494
|
+
"description": "",
|
|
495
|
+
"name": "TuixCheckbox",
|
|
496
|
+
"members": [
|
|
497
|
+
{
|
|
498
|
+
"kind": "field",
|
|
499
|
+
"name": "checked",
|
|
500
|
+
"type": {
|
|
501
|
+
"text": "boolean"
|
|
502
|
+
},
|
|
503
|
+
"default": "false",
|
|
504
|
+
"attribute": "checked"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"kind": "field",
|
|
508
|
+
"name": "disabled",
|
|
509
|
+
"type": {
|
|
510
|
+
"text": "boolean"
|
|
511
|
+
},
|
|
512
|
+
"default": "false",
|
|
513
|
+
"attribute": "disabled",
|
|
514
|
+
"reflects": true
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"kind": "field",
|
|
518
|
+
"name": "dark",
|
|
519
|
+
"type": {
|
|
520
|
+
"text": "boolean"
|
|
521
|
+
},
|
|
522
|
+
"default": "false",
|
|
523
|
+
"attribute": "dark",
|
|
524
|
+
"reflects": true
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"kind": "field",
|
|
528
|
+
"name": "error",
|
|
529
|
+
"type": {
|
|
530
|
+
"text": "boolean"
|
|
531
|
+
},
|
|
532
|
+
"default": "false",
|
|
533
|
+
"attribute": "error",
|
|
534
|
+
"reflects": true
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"kind": "field",
|
|
538
|
+
"name": "label",
|
|
539
|
+
"type": {
|
|
540
|
+
"text": "string"
|
|
541
|
+
},
|
|
542
|
+
"default": "''",
|
|
543
|
+
"attribute": "label"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"kind": "field",
|
|
547
|
+
"name": "labelSide",
|
|
548
|
+
"type": {
|
|
549
|
+
"text": "CheckboxLabelSide"
|
|
550
|
+
},
|
|
551
|
+
"attribute": "labelSide"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"kind": "method",
|
|
555
|
+
"name": "_onCheckboxChange",
|
|
556
|
+
"privacy": "private",
|
|
557
|
+
"parameters": [
|
|
558
|
+
{
|
|
559
|
+
"name": "event",
|
|
560
|
+
"type": {
|
|
561
|
+
"text": "InputEvent"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"kind": "method",
|
|
568
|
+
"name": "_getIconMode",
|
|
569
|
+
"privacy": "private"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"kind": "method",
|
|
573
|
+
"name": "_getFullContainerClasses",
|
|
574
|
+
"privacy": "private",
|
|
575
|
+
"return": {
|
|
576
|
+
"type": {
|
|
577
|
+
"text": "ClassInfo"
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
"events": [
|
|
583
|
+
{
|
|
584
|
+
"name": "change",
|
|
585
|
+
"type": {
|
|
586
|
+
"text": "CustomEvent"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"attributes": [
|
|
591
|
+
{
|
|
592
|
+
"name": "checked",
|
|
593
|
+
"type": {
|
|
594
|
+
"text": "boolean"
|
|
595
|
+
},
|
|
596
|
+
"default": "false",
|
|
597
|
+
"fieldName": "checked"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "disabled",
|
|
601
|
+
"type": {
|
|
602
|
+
"text": "boolean"
|
|
603
|
+
},
|
|
604
|
+
"default": "false",
|
|
605
|
+
"fieldName": "disabled"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "dark",
|
|
609
|
+
"type": {
|
|
610
|
+
"text": "boolean"
|
|
611
|
+
},
|
|
612
|
+
"default": "false",
|
|
613
|
+
"fieldName": "dark"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "error",
|
|
617
|
+
"type": {
|
|
618
|
+
"text": "boolean"
|
|
619
|
+
},
|
|
620
|
+
"default": "false",
|
|
621
|
+
"fieldName": "error"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "label",
|
|
625
|
+
"type": {
|
|
626
|
+
"text": "string"
|
|
627
|
+
},
|
|
628
|
+
"default": "''",
|
|
629
|
+
"fieldName": "label"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "labelSide",
|
|
633
|
+
"type": {
|
|
634
|
+
"text": "CheckboxLabelSide"
|
|
635
|
+
},
|
|
636
|
+
"fieldName": "labelSide"
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
"superclass": {
|
|
640
|
+
"name": "LitElement",
|
|
641
|
+
"package": "lit"
|
|
642
|
+
},
|
|
643
|
+
"tagName": "tuix-checkbox",
|
|
644
|
+
"customElement": true
|
|
645
|
+
}
|
|
646
|
+
],
|
|
647
|
+
"exports": [
|
|
648
|
+
{
|
|
649
|
+
"kind": "js",
|
|
650
|
+
"name": "TuixCheckbox",
|
|
651
|
+
"declaration": {
|
|
652
|
+
"name": "TuixCheckbox",
|
|
653
|
+
"module": "src/tuix-checkbox/TuixCheckbox.ts"
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"kind": "custom-element-definition",
|
|
658
|
+
"name": "tuix-checkbox",
|
|
659
|
+
"declaration": {
|
|
660
|
+
"name": "TuixCheckbox",
|
|
661
|
+
"module": "src/tuix-checkbox/TuixCheckbox.ts"
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
},
|
|
428
666
|
{
|
|
429
667
|
"kind": "javascript-module",
|
|
430
668
|
"path": "src/tuix-button/TuixBaseButton.ts",
|
|
@@ -877,263 +1115,25 @@
|
|
|
877
1115
|
},
|
|
878
1116
|
{
|
|
879
1117
|
"kind": "javascript-module",
|
|
880
|
-
"path": "src/tuix-
|
|
1118
|
+
"path": "src/tuix-dropdown/TuixDropdown.styles.ts",
|
|
881
1119
|
"declarations": [
|
|
882
1120
|
{
|
|
883
1121
|
"kind": "variable",
|
|
884
|
-
"name": "
|
|
885
|
-
"default": "css`\n
|
|
1122
|
+
"name": "dropdownHostStyles",
|
|
1123
|
+
"default": "css`\n ${hostStyles}\n :host {\n --t-field-color-option: ${unsafeCSS(Palette.WHITE)};\n --t-field-color-main: ${unsafeCSS(Palette.MAIN)};\n }\n\n :host .t-input-dropdown {\n --t-field-font-weight: 300;\n --t-field-font-size: 1rem;\n --t-field-padding-x: 1rem;\n --t-field-title-left-position: 1rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.938rem;\n --t-field-line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.813rem;\n --t-field-line-height: 1rem;\n }\n }\n\n :host([dark]) {\n --t-field-color-option: ${unsafeCSS(DarkPalette.ELEVATION_2)};\n }\n`"
|
|
886
1124
|
},
|
|
887
1125
|
{
|
|
888
1126
|
"kind": "variable",
|
|
889
|
-
"name": "
|
|
890
|
-
"default": "css`\n .t-
|
|
1127
|
+
"name": "dropdownMainContainerStyles",
|
|
1128
|
+
"default": "css`\n .t-dropdown-full-container {\n position: relative;\n font-family: 'Rubik', sans-serif;\n }\n .t-dropdown-container .t-input-dropdown {\n --t-field-input-cursor: pointer;\n }\n`"
|
|
891
1129
|
},
|
|
892
1130
|
{
|
|
893
1131
|
"kind": "variable",
|
|
894
|
-
"name": "
|
|
895
|
-
"default": "css`\n .t-
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
"name": "checkboxLabelStyles",
|
|
900
|
-
"default": "css`\n .t-checkbox-label {\n display: block;\n color: var(--t-text-color-label);\n margin-left: 0.625rem;\n }\n .t-checkbox-full-container.t-with-label-left {\n flex-direction: row-reverse;\n justify-content: var(--t-label-left-default-justify, space-between);\n }\n .t-checkbox-full-container.t-with-label-left .t-checkbox-label {\n margin-right: 0.625rem;\n margin-left: 0;\n }\n`"
|
|
901
|
-
}
|
|
902
|
-
],
|
|
903
|
-
"exports": [
|
|
904
|
-
{
|
|
905
|
-
"kind": "js",
|
|
906
|
-
"name": "hostStyles",
|
|
907
|
-
"declaration": {
|
|
908
|
-
"name": "hostStyles",
|
|
909
|
-
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
910
|
-
}
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
"kind": "js",
|
|
914
|
-
"name": "checkboxContainerStyles",
|
|
915
|
-
"declaration": {
|
|
916
|
-
"name": "checkboxContainerStyles",
|
|
917
|
-
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
918
|
-
}
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"kind": "js",
|
|
922
|
-
"name": "checkboxCheckmarkStyles",
|
|
923
|
-
"declaration": {
|
|
924
|
-
"name": "checkboxCheckmarkStyles",
|
|
925
|
-
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
926
|
-
}
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
"kind": "js",
|
|
930
|
-
"name": "checkboxLabelStyles",
|
|
931
|
-
"declaration": {
|
|
932
|
-
"name": "checkboxLabelStyles",
|
|
933
|
-
"module": "src/tuix-checkbox/TuixCheckbox.styles.ts"
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
]
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"kind": "javascript-module",
|
|
940
|
-
"path": "src/tuix-checkbox/TuixCheckbox.ts",
|
|
941
|
-
"declarations": [
|
|
942
|
-
{
|
|
943
|
-
"kind": "class",
|
|
944
|
-
"description": "",
|
|
945
|
-
"name": "TuixCheckbox",
|
|
946
|
-
"members": [
|
|
947
|
-
{
|
|
948
|
-
"kind": "field",
|
|
949
|
-
"name": "checked",
|
|
950
|
-
"type": {
|
|
951
|
-
"text": "boolean"
|
|
952
|
-
},
|
|
953
|
-
"default": "false",
|
|
954
|
-
"attribute": "checked"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
"kind": "field",
|
|
958
|
-
"name": "disabled",
|
|
959
|
-
"type": {
|
|
960
|
-
"text": "boolean"
|
|
961
|
-
},
|
|
962
|
-
"default": "false",
|
|
963
|
-
"attribute": "disabled",
|
|
964
|
-
"reflects": true
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"kind": "field",
|
|
968
|
-
"name": "dark",
|
|
969
|
-
"type": {
|
|
970
|
-
"text": "boolean"
|
|
971
|
-
},
|
|
972
|
-
"default": "false",
|
|
973
|
-
"attribute": "dark",
|
|
974
|
-
"reflects": true
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"kind": "field",
|
|
978
|
-
"name": "error",
|
|
979
|
-
"type": {
|
|
980
|
-
"text": "boolean"
|
|
981
|
-
},
|
|
982
|
-
"default": "false",
|
|
983
|
-
"attribute": "error",
|
|
984
|
-
"reflects": true
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"kind": "field",
|
|
988
|
-
"name": "label",
|
|
989
|
-
"type": {
|
|
990
|
-
"text": "string"
|
|
991
|
-
},
|
|
992
|
-
"default": "''",
|
|
993
|
-
"attribute": "label"
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"kind": "field",
|
|
997
|
-
"name": "labelSide",
|
|
998
|
-
"type": {
|
|
999
|
-
"text": "CheckboxLabelSide"
|
|
1000
|
-
},
|
|
1001
|
-
"attribute": "labelSide"
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
"kind": "method",
|
|
1005
|
-
"name": "_onCheckboxChange",
|
|
1006
|
-
"privacy": "private",
|
|
1007
|
-
"parameters": [
|
|
1008
|
-
{
|
|
1009
|
-
"name": "event",
|
|
1010
|
-
"type": {
|
|
1011
|
-
"text": "InputEvent"
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
]
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
"kind": "method",
|
|
1018
|
-
"name": "_getIconMode",
|
|
1019
|
-
"privacy": "private"
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
"kind": "method",
|
|
1023
|
-
"name": "_getFullContainerClasses",
|
|
1024
|
-
"privacy": "private",
|
|
1025
|
-
"return": {
|
|
1026
|
-
"type": {
|
|
1027
|
-
"text": "ClassInfo"
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
],
|
|
1032
|
-
"events": [
|
|
1033
|
-
{
|
|
1034
|
-
"name": "change",
|
|
1035
|
-
"type": {
|
|
1036
|
-
"text": "CustomEvent"
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
],
|
|
1040
|
-
"attributes": [
|
|
1041
|
-
{
|
|
1042
|
-
"name": "checked",
|
|
1043
|
-
"type": {
|
|
1044
|
-
"text": "boolean"
|
|
1045
|
-
},
|
|
1046
|
-
"default": "false",
|
|
1047
|
-
"fieldName": "checked"
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
"name": "disabled",
|
|
1051
|
-
"type": {
|
|
1052
|
-
"text": "boolean"
|
|
1053
|
-
},
|
|
1054
|
-
"default": "false",
|
|
1055
|
-
"fieldName": "disabled"
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
"name": "dark",
|
|
1059
|
-
"type": {
|
|
1060
|
-
"text": "boolean"
|
|
1061
|
-
},
|
|
1062
|
-
"default": "false",
|
|
1063
|
-
"fieldName": "dark"
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
"name": "error",
|
|
1067
|
-
"type": {
|
|
1068
|
-
"text": "boolean"
|
|
1069
|
-
},
|
|
1070
|
-
"default": "false",
|
|
1071
|
-
"fieldName": "error"
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
"name": "label",
|
|
1075
|
-
"type": {
|
|
1076
|
-
"text": "string"
|
|
1077
|
-
},
|
|
1078
|
-
"default": "''",
|
|
1079
|
-
"fieldName": "label"
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
"name": "labelSide",
|
|
1083
|
-
"type": {
|
|
1084
|
-
"text": "CheckboxLabelSide"
|
|
1085
|
-
},
|
|
1086
|
-
"fieldName": "labelSide"
|
|
1087
|
-
}
|
|
1088
|
-
],
|
|
1089
|
-
"superclass": {
|
|
1090
|
-
"name": "LitElement",
|
|
1091
|
-
"package": "lit"
|
|
1092
|
-
},
|
|
1093
|
-
"tagName": "tuix-checkbox",
|
|
1094
|
-
"customElement": true
|
|
1095
|
-
}
|
|
1096
|
-
],
|
|
1097
|
-
"exports": [
|
|
1098
|
-
{
|
|
1099
|
-
"kind": "js",
|
|
1100
|
-
"name": "TuixCheckbox",
|
|
1101
|
-
"declaration": {
|
|
1102
|
-
"name": "TuixCheckbox",
|
|
1103
|
-
"module": "src/tuix-checkbox/TuixCheckbox.ts"
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"kind": "custom-element-definition",
|
|
1108
|
-
"name": "tuix-checkbox",
|
|
1109
|
-
"declaration": {
|
|
1110
|
-
"name": "TuixCheckbox",
|
|
1111
|
-
"module": "src/tuix-checkbox/TuixCheckbox.ts"
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
]
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
"kind": "javascript-module",
|
|
1118
|
-
"path": "src/tuix-dropdown/TuixDropdown.styles.ts",
|
|
1119
|
-
"declarations": [
|
|
1120
|
-
{
|
|
1121
|
-
"kind": "variable",
|
|
1122
|
-
"name": "dropdownHostStyles",
|
|
1123
|
-
"default": "css`\n ${hostStyles}\n :host {\n --t-field-color-option: ${unsafeCSS(Palette.WHITE)};\n --t-field-color-main: ${unsafeCSS(Palette.MAIN)};\n }\n\n :host .t-input-dropdown {\n --t-field-font-weight: 300;\n --t-field-font-size: 1rem;\n --t-field-padding-x: 1rem;\n --t-field-title-left-position: 1rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.938rem;\n --t-field-line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host .t-input-dropdown {\n --t-field-font-size: 0.813rem;\n --t-field-line-height: 1rem;\n }\n }\n\n :host([dark]) {\n --t-field-color-option: ${unsafeCSS(DarkPalette.ELEVATION_2)};\n }\n`"
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
"kind": "variable",
|
|
1127
|
-
"name": "dropdownMainContainerStyles",
|
|
1128
|
-
"default": "css`\n .t-dropdown-full-container {\n position: relative;\n font-family: 'Rubik', sans-serif;\n }\n .t-dropdown-container .t-input-dropdown {\n --t-field-input-cursor: pointer;\n }\n`"
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
"kind": "variable",
|
|
1132
|
-
"name": "dropdownOptionStyles",
|
|
1133
|
-
"default": "css`\n .t-options-container {\n width: 100%;\n position: absolute;\n top: calc(100% + 2px);\n left: 0;\n border: none;\n border-radius: 0 0 5px 5px;\n background-color: var(--t-field-color-option);\n visibility: collapse;\n overflow-y: auto;\n max-height: 250px;\n color: var(--t-field-color-text);\n box-shadow: 0px 2px 8px 0px ${unsafeCSS(Palette.SHADOW)};\n z-index: 9999;\n }\n .t-options-container::-webkit-scrollbar {\n width: 0.75rem;\n }\n .t-options-container::-webkit-scrollbar-track {\n background-color: transparent;\n }\n .t-options-container::-webkit-scrollbar-thumb {\n background-color: ${unsafeCSS(Palette.PRIMARY_100)};\n border-radius: 0.25rem;\n border: 0.188rem solid transparent;\n background-clip: content-box;\n }\n .t-options-container.show {\n visibility: visible;\n }\n .t-options-container.show.t-with-description {\n top: calc(100% + 2px - 1.5rem);\n }\n @media only screen and (max-height: 500px) {\n .t-options-container {\n max-height: 50vh;\n }\n }\n .t-dropdown-option {\n padding: var(--t-field-padding-y) 1rem;\n cursor: pointer;\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 300;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .t-dropdown-option.t-option-hover {\n background-color: var(--t-field-color-form);\n }\n .t-dropdown-option.t-option-selected {\n color: var(--t-field-color-main);\n }\n .t-dropdown-option.t-option-filtered {\n display: none;\n }\n .t-dropdown-option:focus {\n outline: none;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n .t-dropdown-option {\n font-size: 0.938rem;\n line-height: 1.125rem;\n --t-field-padding-y: 1.063rem;\n --t-field-padding-top: 1.5rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-dropdown-option {\n font-size: 0.813rem;\n line-height: 1rem;\n --t-field-padding-y: 1rem;\n --t-field-padding-top: 1.375rem;\n }\n }\n`"
|
|
1134
|
-
}
|
|
1135
|
-
],
|
|
1136
|
-
"exports": [
|
|
1132
|
+
"name": "dropdownOptionStyles",
|
|
1133
|
+
"default": "css`\n .t-options-container {\n width: 100%;\n position: absolute;\n top: calc(100% + 2px);\n left: 0;\n border: none;\n border-radius: 0 0 5px 5px;\n background-color: var(--t-field-color-option);\n visibility: collapse;\n overflow-y: auto;\n max-height: 250px;\n color: var(--t-field-color-text);\n box-shadow: 0px 2px 8px 0px ${unsafeCSS(Palette.SHADOW)};\n z-index: 9999;\n }\n .t-options-container::-webkit-scrollbar {\n width: 0.75rem;\n }\n .t-options-container::-webkit-scrollbar-track {\n background-color: transparent;\n }\n .t-options-container::-webkit-scrollbar-thumb {\n background-color: ${unsafeCSS(Palette.PRIMARY_100)};\n border-radius: 0.25rem;\n border: 0.188rem solid transparent;\n background-clip: content-box;\n }\n .t-options-container.show {\n visibility: visible;\n }\n .t-options-container.show.t-with-description {\n top: calc(100% + 2px - 1.5rem);\n }\n @media only screen and (max-height: 500px) {\n .t-options-container {\n max-height: 50vh;\n }\n }\n .t-dropdown-option {\n padding: var(--t-field-padding-y) 1rem;\n cursor: pointer;\n font-size: 1rem;\n line-height: 1.25rem;\n font-weight: 300;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .t-dropdown-option.t-option-hover {\n background-color: var(--t-field-color-form);\n }\n .t-dropdown-option.t-option-selected {\n color: var(--t-field-color-main);\n }\n .t-dropdown-option.t-option-filtered {\n display: none;\n }\n .t-dropdown-option:focus {\n outline: none;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n .t-dropdown-option {\n font-size: 0.938rem;\n line-height: 1.125rem;\n --t-field-padding-y: 1.063rem;\n --t-field-padding-top: 1.5rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n .t-dropdown-option {\n font-size: 0.813rem;\n line-height: 1rem;\n --t-field-padding-y: 1rem;\n --t-field-padding-top: 1.375rem;\n }\n }\n`"
|
|
1134
|
+
}
|
|
1135
|
+
],
|
|
1136
|
+
"exports": [
|
|
1137
1137
|
{
|
|
1138
1138
|
"kind": "js",
|
|
1139
1139
|
"name": "dropdownHostStyles",
|
|
@@ -1888,224 +1888,7 @@
|
|
|
1888
1888
|
},
|
|
1889
1889
|
{
|
|
1890
1890
|
"kind": "javascript-module",
|
|
1891
|
-
"path": "src/tuix-
|
|
1892
|
-
"declarations": [
|
|
1893
|
-
{
|
|
1894
|
-
"kind": "class",
|
|
1895
|
-
"description": "",
|
|
1896
|
-
"name": "TuixIconButton",
|
|
1897
|
-
"members": [
|
|
1898
|
-
{
|
|
1899
|
-
"kind": "field",
|
|
1900
|
-
"name": "icon",
|
|
1901
|
-
"attribute": "icon"
|
|
1902
|
-
},
|
|
1903
|
-
{
|
|
1904
|
-
"kind": "method",
|
|
1905
|
-
"name": "_updateIconColor",
|
|
1906
|
-
"privacy": "protected",
|
|
1907
|
-
"return": {
|
|
1908
|
-
"type": {
|
|
1909
|
-
"text": "void"
|
|
1910
|
-
}
|
|
1911
|
-
},
|
|
1912
|
-
"inheritedFrom": {
|
|
1913
|
-
"name": "TuixBaseButton",
|
|
1914
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1915
|
-
}
|
|
1916
|
-
},
|
|
1917
|
-
{
|
|
1918
|
-
"kind": "method",
|
|
1919
|
-
"name": "_buttonContent",
|
|
1920
|
-
"privacy": "protected",
|
|
1921
|
-
"return": {
|
|
1922
|
-
"type": {
|
|
1923
|
-
"text": "TemplateResult"
|
|
1924
|
-
}
|
|
1925
|
-
},
|
|
1926
|
-
"inheritedFrom": {
|
|
1927
|
-
"name": "TuixBaseButton",
|
|
1928
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1929
|
-
}
|
|
1930
|
-
},
|
|
1931
|
-
{
|
|
1932
|
-
"kind": "field",
|
|
1933
|
-
"name": "variant",
|
|
1934
|
-
"attribute": "variant",
|
|
1935
|
-
"reflects": true,
|
|
1936
|
-
"inheritedFrom": {
|
|
1937
|
-
"name": "TuixBaseButton",
|
|
1938
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1939
|
-
}
|
|
1940
|
-
},
|
|
1941
|
-
{
|
|
1942
|
-
"kind": "field",
|
|
1943
|
-
"name": "disabled",
|
|
1944
|
-
"type": {
|
|
1945
|
-
"text": "boolean"
|
|
1946
|
-
},
|
|
1947
|
-
"default": "false",
|
|
1948
|
-
"attribute": "disabled",
|
|
1949
|
-
"reflects": true,
|
|
1950
|
-
"inheritedFrom": {
|
|
1951
|
-
"name": "TuixBaseButton",
|
|
1952
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1953
|
-
}
|
|
1954
|
-
},
|
|
1955
|
-
{
|
|
1956
|
-
"kind": "field",
|
|
1957
|
-
"name": "dark",
|
|
1958
|
-
"type": {
|
|
1959
|
-
"text": "boolean"
|
|
1960
|
-
},
|
|
1961
|
-
"default": "false",
|
|
1962
|
-
"attribute": "dark",
|
|
1963
|
-
"reflects": true,
|
|
1964
|
-
"inheritedFrom": {
|
|
1965
|
-
"name": "TuixBaseButton",
|
|
1966
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1967
|
-
}
|
|
1968
|
-
},
|
|
1969
|
-
{
|
|
1970
|
-
"kind": "field",
|
|
1971
|
-
"name": "iconColor",
|
|
1972
|
-
"type": {
|
|
1973
|
-
"text": "string"
|
|
1974
|
-
},
|
|
1975
|
-
"privacy": "protected",
|
|
1976
|
-
"default": "''",
|
|
1977
|
-
"inheritedFrom": {
|
|
1978
|
-
"name": "TuixBaseButton",
|
|
1979
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1980
|
-
}
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
"kind": "method",
|
|
1984
|
-
"name": "_getTextColor",
|
|
1985
|
-
"privacy": "protected",
|
|
1986
|
-
"inheritedFrom": {
|
|
1987
|
-
"name": "TuixBaseButton",
|
|
1988
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1989
|
-
}
|
|
1990
|
-
},
|
|
1991
|
-
{
|
|
1992
|
-
"kind": "method",
|
|
1993
|
-
"name": "_handleClick",
|
|
1994
|
-
"privacy": "protected",
|
|
1995
|
-
"inheritedFrom": {
|
|
1996
|
-
"name": "TuixBaseButton",
|
|
1997
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
1998
|
-
}
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
"kind": "method",
|
|
2002
|
-
"name": "_iconTemplate",
|
|
2003
|
-
"privacy": "protected",
|
|
2004
|
-
"return": {
|
|
2005
|
-
"type": {
|
|
2006
|
-
"text": "TemplateResult"
|
|
2007
|
-
}
|
|
2008
|
-
},
|
|
2009
|
-
"parameters": [
|
|
2010
|
-
{
|
|
2011
|
-
"name": "iconName",
|
|
2012
|
-
"type": {
|
|
2013
|
-
"text": "IconName"
|
|
2014
|
-
}
|
|
2015
|
-
},
|
|
2016
|
-
{
|
|
2017
|
-
"name": "iconSize",
|
|
2018
|
-
"type": {
|
|
2019
|
-
"text": "IconSizeVariant"
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
],
|
|
2023
|
-
"inheritedFrom": {
|
|
2024
|
-
"name": "TuixBaseButton",
|
|
2025
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
],
|
|
2029
|
-
"attributes": [
|
|
2030
|
-
{
|
|
2031
|
-
"name": "icon",
|
|
2032
|
-
"fieldName": "icon"
|
|
2033
|
-
},
|
|
2034
|
-
{
|
|
2035
|
-
"name": "variant",
|
|
2036
|
-
"fieldName": "variant",
|
|
2037
|
-
"inheritedFrom": {
|
|
2038
|
-
"name": "TuixBaseButton",
|
|
2039
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2040
|
-
}
|
|
2041
|
-
},
|
|
2042
|
-
{
|
|
2043
|
-
"name": "disabled",
|
|
2044
|
-
"type": {
|
|
2045
|
-
"text": "boolean"
|
|
2046
|
-
},
|
|
2047
|
-
"default": "false",
|
|
2048
|
-
"fieldName": "disabled",
|
|
2049
|
-
"inheritedFrom": {
|
|
2050
|
-
"name": "TuixBaseButton",
|
|
2051
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2052
|
-
}
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
"name": "dark",
|
|
2056
|
-
"type": {
|
|
2057
|
-
"text": "boolean"
|
|
2058
|
-
},
|
|
2059
|
-
"default": "false",
|
|
2060
|
-
"fieldName": "dark",
|
|
2061
|
-
"inheritedFrom": {
|
|
2062
|
-
"name": "TuixBaseButton",
|
|
2063
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
],
|
|
2067
|
-
"superclass": {
|
|
2068
|
-
"name": "TuixBaseButton",
|
|
2069
|
-
"module": "/src/tuix-button/TuixBaseButton"
|
|
2070
|
-
},
|
|
2071
|
-
"tagName": "tuix-icon-button",
|
|
2072
|
-
"customElement": true,
|
|
2073
|
-
"events": [
|
|
2074
|
-
{
|
|
2075
|
-
"name": "customClick",
|
|
2076
|
-
"type": {
|
|
2077
|
-
"text": "CustomEvent"
|
|
2078
|
-
},
|
|
2079
|
-
"inheritedFrom": {
|
|
2080
|
-
"name": "TuixBaseButton",
|
|
2081
|
-
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2082
|
-
}
|
|
2083
|
-
}
|
|
2084
|
-
]
|
|
2085
|
-
}
|
|
2086
|
-
],
|
|
2087
|
-
"exports": [
|
|
2088
|
-
{
|
|
2089
|
-
"kind": "js",
|
|
2090
|
-
"name": "TuixIconButton",
|
|
2091
|
-
"declaration": {
|
|
2092
|
-
"name": "TuixIconButton",
|
|
2093
|
-
"module": "src/tuix-icon-button/TuixIconButton.ts"
|
|
2094
|
-
}
|
|
2095
|
-
},
|
|
2096
|
-
{
|
|
2097
|
-
"kind": "custom-element-definition",
|
|
2098
|
-
"name": "tuix-icon-button",
|
|
2099
|
-
"declaration": {
|
|
2100
|
-
"name": "TuixIconButton",
|
|
2101
|
-
"module": "src/tuix-icon-button/TuixIconButton.ts"
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
]
|
|
2105
|
-
},
|
|
2106
|
-
{
|
|
2107
|
-
"kind": "javascript-module",
|
|
2108
|
-
"path": "src/tuix-input/TuixInput.styles.ts",
|
|
1891
|
+
"path": "src/tuix-input/TuixInput.styles.ts",
|
|
2109
1892
|
"declarations": [
|
|
2110
1893
|
{
|
|
2111
1894
|
"kind": "variable",
|
|
@@ -2725,62 +2508,279 @@
|
|
|
2725
2508
|
},
|
|
2726
2509
|
{
|
|
2727
2510
|
"kind": "javascript-module",
|
|
2728
|
-
"path": "src/tuix-
|
|
2729
|
-
"declarations": [
|
|
2730
|
-
{
|
|
2731
|
-
"kind": "variable",
|
|
2732
|
-
"name": "LINK_TEXT_COLOR_VAR_NAME",
|
|
2733
|
-
"type": {
|
|
2734
|
-
"text": "string"
|
|
2735
|
-
},
|
|
2736
|
-
"default": "'--t-link-text-color'"
|
|
2737
|
-
},
|
|
2738
|
-
{
|
|
2739
|
-
"kind": "variable",
|
|
2740
|
-
"name": "linkStyles",
|
|
2741
|
-
"default": "css`\n ${unsafeCSS(`\n :host {\n --t-link-border-color: ${Palette.MAIN};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${Palette.MAIN}\n }\n\n :host([dark]) {\n --t-link-border-color: ${DarkPalette.MAIN};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${DarkPalette.MAIN}\n }\n\n :host([variant=${MainVariant.SECONDARY}]) {\n --t-link-border-color: ${Palette.WHITE};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${Palette.WHITE}\n }\n\n :host([variant=${MainVariant.SECONDARY}][dark]) {\n --t-link-border-color: ${DarkPalette.PRIMARY_50};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${DarkPalette.PRIMARY_50}\n }\n\n :host([disabled]) .link.disabled {\n --t-link-border-color: ${Palette.PRIMARY_300};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${Palette.PRIMARY_300}\n }\n\n .link {\n text-decoration: none;\n display: inline;\n color: var(${LINK_TEXT_COLOR_VAR_NAME});\n border-bottom: solid 1px var(--t-link-border-active-color, transparent);\n }\n .link:hover {\n border-bottom: solid 1px var(--t-link-border-color);\n cursor: pointer;\n }\n .link.secondary {\n color: var(${LINK_TEXT_COLOR_VAR_NAME});\n }\n .link.secondary:hover {\n border-bottom: solid 1px var(--t-link-border-color);\n }\n .link.disabled {\n border-bottom: solid 1px var(--t-link-border-color);\n color: var(${LINK_TEXT_COLOR_VAR_NAME});\n cursor: not-allowed;\n }\n`)}\n`"
|
|
2742
|
-
}
|
|
2743
|
-
],
|
|
2744
|
-
"exports": [
|
|
2745
|
-
{
|
|
2746
|
-
"kind": "js",
|
|
2747
|
-
"name": "LINK_TEXT_COLOR_VAR_NAME",
|
|
2748
|
-
"declaration": {
|
|
2749
|
-
"name": "LINK_TEXT_COLOR_VAR_NAME",
|
|
2750
|
-
"module": "src/tuix-link/TuixLink.styles.ts"
|
|
2751
|
-
}
|
|
2752
|
-
},
|
|
2753
|
-
{
|
|
2754
|
-
"kind": "js",
|
|
2755
|
-
"name": "linkStyles",
|
|
2756
|
-
"declaration": {
|
|
2757
|
-
"name": "linkStyles",
|
|
2758
|
-
"module": "src/tuix-link/TuixLink.styles.ts"
|
|
2759
|
-
}
|
|
2760
|
-
}
|
|
2761
|
-
]
|
|
2762
|
-
},
|
|
2763
|
-
{
|
|
2764
|
-
"kind": "javascript-module",
|
|
2765
|
-
"path": "src/tuix-link/TuixLink.ts",
|
|
2511
|
+
"path": "src/tuix-icon-button/TuixIconButton.ts",
|
|
2766
2512
|
"declarations": [
|
|
2767
2513
|
{
|
|
2768
2514
|
"kind": "class",
|
|
2769
2515
|
"description": "",
|
|
2770
|
-
"name": "
|
|
2516
|
+
"name": "TuixIconButton",
|
|
2771
2517
|
"members": [
|
|
2772
2518
|
{
|
|
2773
2519
|
"kind": "field",
|
|
2774
|
-
"name": "
|
|
2775
|
-
"
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
"
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
"
|
|
2782
|
-
|
|
2783
|
-
|
|
2520
|
+
"name": "icon",
|
|
2521
|
+
"attribute": "icon"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
"kind": "method",
|
|
2525
|
+
"name": "_updateIconColor",
|
|
2526
|
+
"privacy": "protected",
|
|
2527
|
+
"return": {
|
|
2528
|
+
"type": {
|
|
2529
|
+
"text": "void"
|
|
2530
|
+
}
|
|
2531
|
+
},
|
|
2532
|
+
"inheritedFrom": {
|
|
2533
|
+
"name": "TuixBaseButton",
|
|
2534
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2535
|
+
}
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
"kind": "method",
|
|
2539
|
+
"name": "_buttonContent",
|
|
2540
|
+
"privacy": "protected",
|
|
2541
|
+
"return": {
|
|
2542
|
+
"type": {
|
|
2543
|
+
"text": "TemplateResult"
|
|
2544
|
+
}
|
|
2545
|
+
},
|
|
2546
|
+
"inheritedFrom": {
|
|
2547
|
+
"name": "TuixBaseButton",
|
|
2548
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2549
|
+
}
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
"kind": "field",
|
|
2553
|
+
"name": "variant",
|
|
2554
|
+
"attribute": "variant",
|
|
2555
|
+
"reflects": true,
|
|
2556
|
+
"inheritedFrom": {
|
|
2557
|
+
"name": "TuixBaseButton",
|
|
2558
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2559
|
+
}
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"kind": "field",
|
|
2563
|
+
"name": "disabled",
|
|
2564
|
+
"type": {
|
|
2565
|
+
"text": "boolean"
|
|
2566
|
+
},
|
|
2567
|
+
"default": "false",
|
|
2568
|
+
"attribute": "disabled",
|
|
2569
|
+
"reflects": true,
|
|
2570
|
+
"inheritedFrom": {
|
|
2571
|
+
"name": "TuixBaseButton",
|
|
2572
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
"kind": "field",
|
|
2577
|
+
"name": "dark",
|
|
2578
|
+
"type": {
|
|
2579
|
+
"text": "boolean"
|
|
2580
|
+
},
|
|
2581
|
+
"default": "false",
|
|
2582
|
+
"attribute": "dark",
|
|
2583
|
+
"reflects": true,
|
|
2584
|
+
"inheritedFrom": {
|
|
2585
|
+
"name": "TuixBaseButton",
|
|
2586
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
{
|
|
2590
|
+
"kind": "field",
|
|
2591
|
+
"name": "iconColor",
|
|
2592
|
+
"type": {
|
|
2593
|
+
"text": "string"
|
|
2594
|
+
},
|
|
2595
|
+
"privacy": "protected",
|
|
2596
|
+
"default": "''",
|
|
2597
|
+
"inheritedFrom": {
|
|
2598
|
+
"name": "TuixBaseButton",
|
|
2599
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"kind": "method",
|
|
2604
|
+
"name": "_getTextColor",
|
|
2605
|
+
"privacy": "protected",
|
|
2606
|
+
"inheritedFrom": {
|
|
2607
|
+
"name": "TuixBaseButton",
|
|
2608
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"kind": "method",
|
|
2613
|
+
"name": "_handleClick",
|
|
2614
|
+
"privacy": "protected",
|
|
2615
|
+
"inheritedFrom": {
|
|
2616
|
+
"name": "TuixBaseButton",
|
|
2617
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2618
|
+
}
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"kind": "method",
|
|
2622
|
+
"name": "_iconTemplate",
|
|
2623
|
+
"privacy": "protected",
|
|
2624
|
+
"return": {
|
|
2625
|
+
"type": {
|
|
2626
|
+
"text": "TemplateResult"
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
"parameters": [
|
|
2630
|
+
{
|
|
2631
|
+
"name": "iconName",
|
|
2632
|
+
"type": {
|
|
2633
|
+
"text": "IconName"
|
|
2634
|
+
}
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"name": "iconSize",
|
|
2638
|
+
"type": {
|
|
2639
|
+
"text": "IconSizeVariant"
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
],
|
|
2643
|
+
"inheritedFrom": {
|
|
2644
|
+
"name": "TuixBaseButton",
|
|
2645
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
],
|
|
2649
|
+
"attributes": [
|
|
2650
|
+
{
|
|
2651
|
+
"name": "icon",
|
|
2652
|
+
"fieldName": "icon"
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
"name": "variant",
|
|
2656
|
+
"fieldName": "variant",
|
|
2657
|
+
"inheritedFrom": {
|
|
2658
|
+
"name": "TuixBaseButton",
|
|
2659
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2660
|
+
}
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
"name": "disabled",
|
|
2664
|
+
"type": {
|
|
2665
|
+
"text": "boolean"
|
|
2666
|
+
},
|
|
2667
|
+
"default": "false",
|
|
2668
|
+
"fieldName": "disabled",
|
|
2669
|
+
"inheritedFrom": {
|
|
2670
|
+
"name": "TuixBaseButton",
|
|
2671
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2672
|
+
}
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
"name": "dark",
|
|
2676
|
+
"type": {
|
|
2677
|
+
"text": "boolean"
|
|
2678
|
+
},
|
|
2679
|
+
"default": "false",
|
|
2680
|
+
"fieldName": "dark",
|
|
2681
|
+
"inheritedFrom": {
|
|
2682
|
+
"name": "TuixBaseButton",
|
|
2683
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
],
|
|
2687
|
+
"superclass": {
|
|
2688
|
+
"name": "TuixBaseButton",
|
|
2689
|
+
"module": "/src/tuix-button/TuixBaseButton"
|
|
2690
|
+
},
|
|
2691
|
+
"tagName": "tuix-icon-button",
|
|
2692
|
+
"customElement": true,
|
|
2693
|
+
"events": [
|
|
2694
|
+
{
|
|
2695
|
+
"name": "customClick",
|
|
2696
|
+
"type": {
|
|
2697
|
+
"text": "CustomEvent"
|
|
2698
|
+
},
|
|
2699
|
+
"inheritedFrom": {
|
|
2700
|
+
"name": "TuixBaseButton",
|
|
2701
|
+
"module": "src/tuix-button/TuixBaseButton.ts"
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
]
|
|
2705
|
+
}
|
|
2706
|
+
],
|
|
2707
|
+
"exports": [
|
|
2708
|
+
{
|
|
2709
|
+
"kind": "js",
|
|
2710
|
+
"name": "TuixIconButton",
|
|
2711
|
+
"declaration": {
|
|
2712
|
+
"name": "TuixIconButton",
|
|
2713
|
+
"module": "src/tuix-icon-button/TuixIconButton.ts"
|
|
2714
|
+
}
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"kind": "custom-element-definition",
|
|
2718
|
+
"name": "tuix-icon-button",
|
|
2719
|
+
"declaration": {
|
|
2720
|
+
"name": "TuixIconButton",
|
|
2721
|
+
"module": "src/tuix-icon-button/TuixIconButton.ts"
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
]
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"kind": "javascript-module",
|
|
2728
|
+
"path": "src/tuix-link/TuixLink.styles.ts",
|
|
2729
|
+
"declarations": [
|
|
2730
|
+
{
|
|
2731
|
+
"kind": "variable",
|
|
2732
|
+
"name": "LINK_TEXT_COLOR_VAR_NAME",
|
|
2733
|
+
"type": {
|
|
2734
|
+
"text": "string"
|
|
2735
|
+
},
|
|
2736
|
+
"default": "'--t-link-text-color'"
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"kind": "variable",
|
|
2740
|
+
"name": "linkStyles",
|
|
2741
|
+
"default": "css`\n ${unsafeCSS(`\n :host {\n --t-link-border-color: ${Palette.MAIN};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${Palette.MAIN}\n }\n\n :host([dark]) {\n --t-link-border-color: ${DarkPalette.MAIN};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${DarkPalette.MAIN}\n }\n\n :host([variant=${MainVariant.SECONDARY}]) {\n --t-link-border-color: ${Palette.WHITE};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${Palette.WHITE}\n }\n\n :host([variant=${MainVariant.SECONDARY}][dark]) {\n --t-link-border-color: ${DarkPalette.PRIMARY_50};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${DarkPalette.PRIMARY_50}\n }\n\n :host([disabled]) .link.disabled {\n --t-link-border-color: ${Palette.PRIMARY_300};\n ${LINK_TEXT_COLOR_VAR_NAME}: ${Palette.PRIMARY_300}\n }\n\n .link {\n text-decoration: none;\n display: inline;\n color: var(${LINK_TEXT_COLOR_VAR_NAME});\n border-bottom: solid 1px var(--t-link-border-active-color, transparent);\n }\n .link:hover {\n border-bottom: solid 1px var(--t-link-border-color);\n cursor: pointer;\n }\n .link.secondary {\n color: var(${LINK_TEXT_COLOR_VAR_NAME});\n }\n .link.secondary:hover {\n border-bottom: solid 1px var(--t-link-border-color);\n }\n .link.disabled {\n border-bottom: solid 1px var(--t-link-border-color);\n color: var(${LINK_TEXT_COLOR_VAR_NAME});\n cursor: not-allowed;\n }\n`)}\n`"
|
|
2742
|
+
}
|
|
2743
|
+
],
|
|
2744
|
+
"exports": [
|
|
2745
|
+
{
|
|
2746
|
+
"kind": "js",
|
|
2747
|
+
"name": "LINK_TEXT_COLOR_VAR_NAME",
|
|
2748
|
+
"declaration": {
|
|
2749
|
+
"name": "LINK_TEXT_COLOR_VAR_NAME",
|
|
2750
|
+
"module": "src/tuix-link/TuixLink.styles.ts"
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
"kind": "js",
|
|
2755
|
+
"name": "linkStyles",
|
|
2756
|
+
"declaration": {
|
|
2757
|
+
"name": "linkStyles",
|
|
2758
|
+
"module": "src/tuix-link/TuixLink.styles.ts"
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"kind": "javascript-module",
|
|
2765
|
+
"path": "src/tuix-link/TuixLink.ts",
|
|
2766
|
+
"declarations": [
|
|
2767
|
+
{
|
|
2768
|
+
"kind": "class",
|
|
2769
|
+
"description": "",
|
|
2770
|
+
"name": "TuixLink",
|
|
2771
|
+
"members": [
|
|
2772
|
+
{
|
|
2773
|
+
"kind": "field",
|
|
2774
|
+
"name": "href",
|
|
2775
|
+
"type": {
|
|
2776
|
+
"text": "string | undefined"
|
|
2777
|
+
},
|
|
2778
|
+
"attribute": "href"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"kind": "field",
|
|
2782
|
+
"name": "target",
|
|
2783
|
+
"attribute": "target"
|
|
2784
2784
|
},
|
|
2785
2785
|
{
|
|
2786
2786
|
"kind": "field",
|
|
@@ -3856,56 +3856,74 @@
|
|
|
3856
3856
|
},
|
|
3857
3857
|
{
|
|
3858
3858
|
"kind": "javascript-module",
|
|
3859
|
-
"path": "src/tuix-
|
|
3859
|
+
"path": "src/tuix-toast/TuixToast.styles.ts",
|
|
3860
3860
|
"declarations": [
|
|
3861
3861
|
{
|
|
3862
3862
|
"kind": "variable",
|
|
3863
|
-
"name": "
|
|
3864
|
-
"default": "css`\n
|
|
3863
|
+
"name": "commonToastStyles",
|
|
3864
|
+
"default": "css`\n :host {\n position: fixed;\n bottom: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: bottom 600ms linear;\n width: 640px;\n z-index: 99;\n }\n\n :host([type='text']),\n :host([type='warning']),\n :host([type='error']),\n :host([type='success']) {\n bottom: 1.5rem;\n }\n\n .toast-container {\n padding: 12px 16px;\n display: flex;\n gap: 16px;\n align-items: center;\n border-radius: 4px;\n }\n`"
|
|
3865
3865
|
},
|
|
3866
3866
|
{
|
|
3867
3867
|
"kind": "variable",
|
|
3868
|
-
"name": "
|
|
3869
|
-
"default": "css`\n
|
|
3868
|
+
"name": "tabletToastStyles",
|
|
3869
|
+
"default": "css`\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host {\n width: 520px;\n }\n }\n`"
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
"kind": "variable",
|
|
3873
|
+
"name": "mobileToastStyles",
|
|
3874
|
+
"default": "css`\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n :host {\n max-width: 343px;\n width: 90%;\n }\n }\n`"
|
|
3870
3875
|
}
|
|
3871
3876
|
],
|
|
3872
3877
|
"exports": [
|
|
3873
3878
|
{
|
|
3874
3879
|
"kind": "js",
|
|
3875
|
-
"name": "
|
|
3880
|
+
"name": "commonToastStyles",
|
|
3876
3881
|
"declaration": {
|
|
3877
|
-
"name": "
|
|
3878
|
-
"module": "src/tuix-
|
|
3882
|
+
"name": "commonToastStyles",
|
|
3883
|
+
"module": "src/tuix-toast/TuixToast.styles.ts"
|
|
3879
3884
|
}
|
|
3880
3885
|
},
|
|
3881
3886
|
{
|
|
3882
3887
|
"kind": "js",
|
|
3883
|
-
"name": "
|
|
3888
|
+
"name": "tabletToastStyles",
|
|
3884
3889
|
"declaration": {
|
|
3885
|
-
"name": "
|
|
3886
|
-
"module": "src/tuix-
|
|
3890
|
+
"name": "tabletToastStyles",
|
|
3891
|
+
"module": "src/tuix-toast/TuixToast.styles.ts"
|
|
3892
|
+
}
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
"kind": "js",
|
|
3896
|
+
"name": "mobileToastStyles",
|
|
3897
|
+
"declaration": {
|
|
3898
|
+
"name": "mobileToastStyles",
|
|
3899
|
+
"module": "src/tuix-toast/TuixToast.styles.ts"
|
|
3887
3900
|
}
|
|
3888
3901
|
}
|
|
3889
3902
|
]
|
|
3890
3903
|
},
|
|
3891
3904
|
{
|
|
3892
3905
|
"kind": "javascript-module",
|
|
3893
|
-
"path": "src/tuix-
|
|
3906
|
+
"path": "src/tuix-toast/TuixToast.ts",
|
|
3894
3907
|
"declarations": [
|
|
3895
3908
|
{
|
|
3896
3909
|
"kind": "class",
|
|
3897
3910
|
"description": "",
|
|
3898
|
-
"name": "
|
|
3911
|
+
"name": "TuixToast",
|
|
3899
3912
|
"members": [
|
|
3900
3913
|
{
|
|
3901
3914
|
"kind": "field",
|
|
3902
|
-
"name": "
|
|
3903
|
-
"attribute": "
|
|
3915
|
+
"name": "type",
|
|
3916
|
+
"attribute": "type",
|
|
3917
|
+
"reflects": true
|
|
3904
3918
|
},
|
|
3905
3919
|
{
|
|
3906
3920
|
"kind": "field",
|
|
3907
|
-
"name": "
|
|
3908
|
-
"
|
|
3921
|
+
"name": "visibilityDuration",
|
|
3922
|
+
"type": {
|
|
3923
|
+
"text": "number"
|
|
3924
|
+
},
|
|
3925
|
+
"default": "4000",
|
|
3926
|
+
"attribute": "visibility-duration"
|
|
3909
3927
|
},
|
|
3910
3928
|
{
|
|
3911
3929
|
"kind": "field",
|
|
@@ -3917,9 +3935,19 @@
|
|
|
3917
3935
|
"attribute": "dark",
|
|
3918
3936
|
"reflects": true
|
|
3919
3937
|
},
|
|
3938
|
+
{
|
|
3939
|
+
"kind": "field",
|
|
3940
|
+
"name": "lastType",
|
|
3941
|
+
"default": "ToastType.SUCCESS"
|
|
3942
|
+
},
|
|
3920
3943
|
{
|
|
3921
3944
|
"kind": "method",
|
|
3922
|
-
"name": "
|
|
3945
|
+
"name": "_handleOnClose",
|
|
3946
|
+
"privacy": "private"
|
|
3947
|
+
},
|
|
3948
|
+
{
|
|
3949
|
+
"kind": "field",
|
|
3950
|
+
"name": "_saveType",
|
|
3923
3951
|
"privacy": "private"
|
|
3924
3952
|
},
|
|
3925
3953
|
{
|
|
@@ -3929,18 +3957,30 @@
|
|
|
3929
3957
|
},
|
|
3930
3958
|
{
|
|
3931
3959
|
"kind": "field",
|
|
3932
|
-
"name": "
|
|
3960
|
+
"name": "_getIcon",
|
|
3933
3961
|
"privacy": "private"
|
|
3934
3962
|
}
|
|
3935
3963
|
],
|
|
3964
|
+
"events": [
|
|
3965
|
+
{
|
|
3966
|
+
"name": "on-close",
|
|
3967
|
+
"type": {
|
|
3968
|
+
"text": "CustomEvent"
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
],
|
|
3936
3972
|
"attributes": [
|
|
3937
3973
|
{
|
|
3938
|
-
"name": "
|
|
3939
|
-
"fieldName": "
|
|
3974
|
+
"name": "type",
|
|
3975
|
+
"fieldName": "type"
|
|
3940
3976
|
},
|
|
3941
3977
|
{
|
|
3942
|
-
"name": "
|
|
3943
|
-
"
|
|
3978
|
+
"name": "visibility-duration",
|
|
3979
|
+
"type": {
|
|
3980
|
+
"text": "number"
|
|
3981
|
+
},
|
|
3982
|
+
"default": "4000",
|
|
3983
|
+
"fieldName": "visibilityDuration"
|
|
3944
3984
|
},
|
|
3945
3985
|
{
|
|
3946
3986
|
"name": "dark",
|
|
@@ -3955,99 +3995,81 @@
|
|
|
3955
3995
|
"name": "LitElement",
|
|
3956
3996
|
"package": "lit"
|
|
3957
3997
|
},
|
|
3958
|
-
"tagName": "tuix-
|
|
3998
|
+
"tagName": "tuix-toast",
|
|
3959
3999
|
"customElement": true
|
|
3960
4000
|
}
|
|
3961
4001
|
],
|
|
3962
4002
|
"exports": [
|
|
3963
4003
|
{
|
|
3964
4004
|
"kind": "js",
|
|
3965
|
-
"name": "
|
|
4005
|
+
"name": "TuixToast",
|
|
3966
4006
|
"declaration": {
|
|
3967
|
-
"name": "
|
|
3968
|
-
"module": "src/tuix-
|
|
4007
|
+
"name": "TuixToast",
|
|
4008
|
+
"module": "src/tuix-toast/TuixToast.ts"
|
|
3969
4009
|
}
|
|
3970
4010
|
},
|
|
3971
4011
|
{
|
|
3972
4012
|
"kind": "custom-element-definition",
|
|
3973
|
-
"name": "tuix-
|
|
4013
|
+
"name": "tuix-toast",
|
|
3974
4014
|
"declaration": {
|
|
3975
|
-
"name": "
|
|
3976
|
-
"module": "src/tuix-
|
|
4015
|
+
"name": "TuixToast",
|
|
4016
|
+
"module": "src/tuix-toast/TuixToast.ts"
|
|
3977
4017
|
}
|
|
3978
4018
|
}
|
|
3979
4019
|
]
|
|
3980
4020
|
},
|
|
3981
4021
|
{
|
|
3982
4022
|
"kind": "javascript-module",
|
|
3983
|
-
"path": "src/tuix-
|
|
4023
|
+
"path": "src/tuix-text/TuixText.styles.ts",
|
|
3984
4024
|
"declarations": [
|
|
3985
4025
|
{
|
|
3986
4026
|
"kind": "variable",
|
|
3987
|
-
"name": "
|
|
3988
|
-
"default": "css`\n
|
|
3989
|
-
},
|
|
3990
|
-
{
|
|
3991
|
-
"kind": "variable",
|
|
3992
|
-
"name": "tabletToastStyles",
|
|
3993
|
-
"default": "css`\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n :host {\n width: 520px;\n }\n }\n`"
|
|
4027
|
+
"name": "linkFontStyles",
|
|
4028
|
+
"default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.Link)} {\n font-family: 'Rubik', sans-serif;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.25rem;\n }\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.Link)} {\n font-size: 0.875rem;\n line-height: 1rem;\n }\n }\n`)}\n`"
|
|
3994
4029
|
},
|
|
3995
4030
|
{
|
|
3996
4031
|
"kind": "variable",
|
|
3997
|
-
"name": "
|
|
3998
|
-
"default": "css`\n @media only screen and (max-width: ${ScreenSizes.
|
|
3999
|
-
}
|
|
4000
|
-
],
|
|
4001
|
-
"exports": [
|
|
4002
|
-
{
|
|
4003
|
-
"kind": "js",
|
|
4004
|
-
"name": "commonToastStyles",
|
|
4005
|
-
"declaration": {
|
|
4006
|
-
"name": "commonToastStyles",
|
|
4007
|
-
"module": "src/tuix-toast/TuixToast.styles.ts"
|
|
4008
|
-
}
|
|
4009
|
-
},
|
|
4032
|
+
"name": "textStyles",
|
|
4033
|
+
"default": "css`\n ${unsafeCSS(`\n ${slottedClassName(TextSize.XXL)} {\n font-size: 6rem;\n font-weight: 600;\n line-height: 6.25rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3.375rem;\n font-weight: 600;\n line-height: 3.688rem;\n }\n\n ${slottedClassName(TextSize.L)} {\n font-size: 2.813rem;\n font-weight: 600;\n line-height: 3.375rem;\n }\n\n ${slottedClassName(TextSize.M)} {\n font-size: 2.313rem;\n font-weight: 600;\n line-height: 2.75rem;\n }\n\n ${slottedClassName(TextSize.S)} {\n font-size: 1.938rem;\n font-weight: 600;\n line-height: 2.313rem;\n }\n\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.313rem;\n font-weight: 600;\n line-height: 1.563rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.688rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.938rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1.125rem;\n font-weight: 300;\n line-height: 1.375rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 1rem;\n font-weight: 300;\n line-height: 1.25rem;\n }\n\n ${slottedClassName(TextSize.FieldTitle)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n ${slottedClassName(TextSize.FieldDescription)} {\n font-size: 0.75rem;\n font-weight: 300;\n line-height: 0.875rem;\n }\n\n @media only screen and (max-width: ${ScreenSizes.TABLET}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 3rem;\n font-weight: 600;\n line-height: 3.3125rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 3rem;\n line-height: 3.313rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.5rem;\n line-height: 3rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 2.063rem;\n line-height: 2.5rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.75rem;\n line-height: 2.125rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.188rem;\n line-height: 1.438rem;\n }\n\n ${slottedClassName(TextSize.Body1)} {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 1rem;\n line-height: 1.1875rem;\n }\n\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.938rem;\n line-height: 1.125rem;\n }\n }\n\n @media only screen and (max-width: ${ScreenSizes.MOBILE}px) {\n ${slottedClassName(TextSize.XXL)} {\n font-size: 1.8125rem;\n font-weight: 600;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.XL)} {\n font-size: 2.625rem;\n line-height: 2.875rem;\n }\n ${slottedClassName(TextSize.L)} {\n font-size: 2.188rem;\n line-height: 2.4375rem;\n }\n ${slottedClassName(TextSize.M)} {\n font-size: 1.813rem;\n line-height: 2rem;\n }\n ${slottedClassName(TextSize.S)} {\n font-size: 1.5rem;\n line-height: 1.625rem;\n }\n ${slottedClassName(TextSize.XS)} {\n font-size: 1.063rem;\n line-height: 1.1875rem;\n }\n ${slottedClassName(TextSize.Body1)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.313rem;\n }\n ${slottedClassName(TextSize.Body2)} {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n ${slottedClassName(TextSize.BulletList)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1.0625rem;\n }\n ${slottedClassName(TextSize.FieldPlaceholder)} {\n font-size: 0.875rem;\n font-weight: 300;\n line-height: 1rem;\n }\n }\n`)}\n`"
|
|
4034
|
+
}
|
|
4035
|
+
],
|
|
4036
|
+
"exports": [
|
|
4010
4037
|
{
|
|
4011
4038
|
"kind": "js",
|
|
4012
|
-
"name": "
|
|
4039
|
+
"name": "linkFontStyles",
|
|
4013
4040
|
"declaration": {
|
|
4014
|
-
"name": "
|
|
4015
|
-
"module": "src/tuix-
|
|
4041
|
+
"name": "linkFontStyles",
|
|
4042
|
+
"module": "src/tuix-text/TuixText.styles.ts"
|
|
4016
4043
|
}
|
|
4017
4044
|
},
|
|
4018
4045
|
{
|
|
4019
4046
|
"kind": "js",
|
|
4020
|
-
"name": "
|
|
4047
|
+
"name": "textStyles",
|
|
4021
4048
|
"declaration": {
|
|
4022
|
-
"name": "
|
|
4023
|
-
"module": "src/tuix-
|
|
4049
|
+
"name": "textStyles",
|
|
4050
|
+
"module": "src/tuix-text/TuixText.styles.ts"
|
|
4024
4051
|
}
|
|
4025
4052
|
}
|
|
4026
4053
|
]
|
|
4027
4054
|
},
|
|
4028
4055
|
{
|
|
4029
4056
|
"kind": "javascript-module",
|
|
4030
|
-
"path": "src/tuix-
|
|
4057
|
+
"path": "src/tuix-text/TuixText.ts",
|
|
4031
4058
|
"declarations": [
|
|
4032
4059
|
{
|
|
4033
4060
|
"kind": "class",
|
|
4034
4061
|
"description": "",
|
|
4035
|
-
"name": "
|
|
4062
|
+
"name": "TuixText",
|
|
4036
4063
|
"members": [
|
|
4037
4064
|
{
|
|
4038
4065
|
"kind": "field",
|
|
4039
|
-
"name": "
|
|
4040
|
-
"attribute": "
|
|
4041
|
-
"reflects": true
|
|
4066
|
+
"name": "size",
|
|
4067
|
+
"attribute": "size"
|
|
4042
4068
|
},
|
|
4043
4069
|
{
|
|
4044
4070
|
"kind": "field",
|
|
4045
|
-
"name": "
|
|
4046
|
-
"
|
|
4047
|
-
"text": "number"
|
|
4048
|
-
},
|
|
4049
|
-
"default": "4000",
|
|
4050
|
-
"attribute": "visibility-duration"
|
|
4071
|
+
"name": "color",
|
|
4072
|
+
"attribute": "color"
|
|
4051
4073
|
},
|
|
4052
4074
|
{
|
|
4053
4075
|
"kind": "field",
|
|
@@ -4059,19 +4081,9 @@
|
|
|
4059
4081
|
"attribute": "dark",
|
|
4060
4082
|
"reflects": true
|
|
4061
4083
|
},
|
|
4062
|
-
{
|
|
4063
|
-
"kind": "field",
|
|
4064
|
-
"name": "lastType",
|
|
4065
|
-
"default": "ToastType.SUCCESS"
|
|
4066
|
-
},
|
|
4067
4084
|
{
|
|
4068
4085
|
"kind": "method",
|
|
4069
|
-
"name": "
|
|
4070
|
-
"privacy": "private"
|
|
4071
|
-
},
|
|
4072
|
-
{
|
|
4073
|
-
"kind": "field",
|
|
4074
|
-
"name": "_saveType",
|
|
4086
|
+
"name": "_getTextColor",
|
|
4075
4087
|
"privacy": "private"
|
|
4076
4088
|
},
|
|
4077
4089
|
{
|
|
@@ -4081,30 +4093,18 @@
|
|
|
4081
4093
|
},
|
|
4082
4094
|
{
|
|
4083
4095
|
"kind": "field",
|
|
4084
|
-
"name": "
|
|
4096
|
+
"name": "_getClassMap",
|
|
4085
4097
|
"privacy": "private"
|
|
4086
4098
|
}
|
|
4087
4099
|
],
|
|
4088
|
-
"events": [
|
|
4089
|
-
{
|
|
4090
|
-
"name": "on-close",
|
|
4091
|
-
"type": {
|
|
4092
|
-
"text": "CustomEvent"
|
|
4093
|
-
}
|
|
4094
|
-
}
|
|
4095
|
-
],
|
|
4096
4100
|
"attributes": [
|
|
4097
4101
|
{
|
|
4098
|
-
"name": "
|
|
4099
|
-
"fieldName": "
|
|
4102
|
+
"name": "size",
|
|
4103
|
+
"fieldName": "size"
|
|
4100
4104
|
},
|
|
4101
4105
|
{
|
|
4102
|
-
"name": "
|
|
4103
|
-
"
|
|
4104
|
-
"text": "number"
|
|
4105
|
-
},
|
|
4106
|
-
"default": "4000",
|
|
4107
|
-
"fieldName": "visibilityDuration"
|
|
4106
|
+
"name": "color",
|
|
4107
|
+
"fieldName": "color"
|
|
4108
4108
|
},
|
|
4109
4109
|
{
|
|
4110
4110
|
"name": "dark",
|
|
@@ -4119,25 +4119,25 @@
|
|
|
4119
4119
|
"name": "LitElement",
|
|
4120
4120
|
"package": "lit"
|
|
4121
4121
|
},
|
|
4122
|
-
"tagName": "tuix-
|
|
4122
|
+
"tagName": "tuix-text",
|
|
4123
4123
|
"customElement": true
|
|
4124
4124
|
}
|
|
4125
4125
|
],
|
|
4126
4126
|
"exports": [
|
|
4127
4127
|
{
|
|
4128
4128
|
"kind": "js",
|
|
4129
|
-
"name": "
|
|
4129
|
+
"name": "TuixText",
|
|
4130
4130
|
"declaration": {
|
|
4131
|
-
"name": "
|
|
4132
|
-
"module": "src/tuix-
|
|
4131
|
+
"name": "TuixText",
|
|
4132
|
+
"module": "src/tuix-text/TuixText.ts"
|
|
4133
4133
|
}
|
|
4134
4134
|
},
|
|
4135
4135
|
{
|
|
4136
4136
|
"kind": "custom-element-definition",
|
|
4137
|
-
"name": "tuix-
|
|
4137
|
+
"name": "tuix-text",
|
|
4138
4138
|
"declaration": {
|
|
4139
|
-
"name": "
|
|
4140
|
-
"module": "src/tuix-
|
|
4139
|
+
"name": "TuixText",
|
|
4140
|
+
"module": "src/tuix-text/TuixText.ts"
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
]
|
|
@@ -4438,37 +4438,53 @@
|
|
|
4438
4438
|
},
|
|
4439
4439
|
{
|
|
4440
4440
|
"kind": "javascript-module",
|
|
4441
|
-
"path": "src/tuix-
|
|
4441
|
+
"path": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts",
|
|
4442
4442
|
"declarations": [
|
|
4443
4443
|
{
|
|
4444
4444
|
"kind": "variable",
|
|
4445
|
-
"name": "
|
|
4445
|
+
"name": "CheckboxIconColorLight",
|
|
4446
4446
|
"type": {
|
|
4447
|
-
"text": "
|
|
4447
|
+
"text": "object"
|
|
4448
4448
|
},
|
|
4449
|
-
"default": "{\n [
|
|
4449
|
+
"default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
|
|
4450
|
+
},
|
|
4451
|
+
{
|
|
4452
|
+
"kind": "variable",
|
|
4453
|
+
"name": "CheckboxIconColorDark",
|
|
4454
|
+
"type": {
|
|
4455
|
+
"text": "object"
|
|
4456
|
+
},
|
|
4457
|
+
"default": "{\n [CheckboxIconMode.DEFAULT]: DarkPalette.WHITE,\n [CheckboxIconMode.DISABLED]: DarkPalette.PRIMARY_100,\n [CheckboxIconMode.ERROR]: DarkPalette.WHITE,\n}"
|
|
4450
4458
|
}
|
|
4451
4459
|
],
|
|
4452
4460
|
"exports": [
|
|
4453
4461
|
{
|
|
4454
4462
|
"kind": "js",
|
|
4455
|
-
"name": "
|
|
4463
|
+
"name": "CheckboxIconColorLight",
|
|
4456
4464
|
"declaration": {
|
|
4457
|
-
"name": "
|
|
4458
|
-
"module": "src/tuix-
|
|
4465
|
+
"name": "CheckboxIconColorLight",
|
|
4466
|
+
"module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
|
|
4467
|
+
}
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"kind": "js",
|
|
4471
|
+
"name": "CheckboxIconColorDark",
|
|
4472
|
+
"declaration": {
|
|
4473
|
+
"name": "CheckboxIconColorDark",
|
|
4474
|
+
"module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
|
|
4459
4475
|
}
|
|
4460
4476
|
}
|
|
4461
4477
|
]
|
|
4462
4478
|
},
|
|
4463
4479
|
{
|
|
4464
4480
|
"kind": "javascript-module",
|
|
4465
|
-
"path": "src/tuix-
|
|
4481
|
+
"path": "src/tuix-checkbox/interfaces/tuix-checkbox.interface.ts",
|
|
4466
4482
|
"declarations": [],
|
|
4467
4483
|
"exports": []
|
|
4468
4484
|
},
|
|
4469
4485
|
{
|
|
4470
4486
|
"kind": "javascript-module",
|
|
4471
|
-
"path": "src/tuix-
|
|
4487
|
+
"path": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts",
|
|
4472
4488
|
"declarations": [
|
|
4473
4489
|
{
|
|
4474
4490
|
"kind": "variable",
|
|
@@ -4476,15 +4492,15 @@
|
|
|
4476
4492
|
"type": {
|
|
4477
4493
|
"text": "object"
|
|
4478
4494
|
},
|
|
4479
|
-
"default": "{\n title: '
|
|
4495
|
+
"default": "{\n title: 'TuixCheckbox',\n component: 'tuix-checkbox',\n argTypes: {\n checked: {\n control: 'boolean',\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n error: {\n control: 'boolean',\n },\n label: {\n control: 'text',\n },\n labelSide: {\n control: 'select',\n options: [...Object.values(CheckboxLabelSide)],\n },\n onChange: { action: 'change' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh; ${args.dark\n ? 'background-color:' + Palette.BLACK + ';'\n : ''}}\"\n >\n <div\n style=\"max-width: 300px; display: flex; gap: 16px; flex-direction: column\"\n >\n <tuix-checkbox\n ?checked=\"${args.checked}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n label=\"${args.label}\"\n labelSide=\"${args.labelSide}\"\n @change=\"${args.onChange}\"\n ></tuix-checkbox>\n <tuix-checkbox\n ?checked=\"${args.checked}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n ?error=\"${args.error}\"\n labelSide=\"${args.labelSide}\"\n @change=\"${args.onChange}\"\n >\n <tuix-text\n size=\"${TextSize.FieldPlaceholder}\"\n color=\"${TextVariant.PRIMARY}\"\n ?dark=\"${args.dark}\"\n >\n Label from slot using a long text with max-width container\n </tuix-text>\n </tuix-checkbox>\n </div>\n </div>\n `,\n}"
|
|
4480
4496
|
},
|
|
4481
4497
|
{
|
|
4482
4498
|
"kind": "variable",
|
|
4483
|
-
"name": "
|
|
4499
|
+
"name": "tuixCheckboxExample",
|
|
4484
4500
|
"type": {
|
|
4485
4501
|
"text": "Story"
|
|
4486
4502
|
},
|
|
4487
|
-
"default": "{\n args: {\n
|
|
4503
|
+
"default": "{\n args: {\n checked: false,\n disabled: false,\n dark: false,\n error: false,\n label: 'Label from property',\n labelSide: CheckboxLabelSide.RIGHT,\n },\n}"
|
|
4488
4504
|
}
|
|
4489
4505
|
],
|
|
4490
4506
|
"exports": [
|
|
@@ -4493,68 +4509,52 @@
|
|
|
4493
4509
|
"name": "default",
|
|
4494
4510
|
"declaration": {
|
|
4495
4511
|
"name": "meta",
|
|
4496
|
-
"module": "src/tuix-
|
|
4512
|
+
"module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
|
|
4497
4513
|
}
|
|
4498
4514
|
},
|
|
4499
4515
|
{
|
|
4500
4516
|
"kind": "js",
|
|
4501
|
-
"name": "
|
|
4517
|
+
"name": "tuixCheckboxExample",
|
|
4502
4518
|
"declaration": {
|
|
4503
|
-
"name": "
|
|
4504
|
-
"module": "src/tuix-
|
|
4519
|
+
"name": "tuixCheckboxExample",
|
|
4520
|
+
"module": "src/tuix-checkbox/stories/tuix-checkbox.stories.ts"
|
|
4505
4521
|
}
|
|
4506
4522
|
}
|
|
4507
4523
|
]
|
|
4508
4524
|
},
|
|
4509
4525
|
{
|
|
4510
4526
|
"kind": "javascript-module",
|
|
4511
|
-
"path": "src/tuix-
|
|
4527
|
+
"path": "src/tuix-button/enums/tuix-button.enums.ts",
|
|
4512
4528
|
"declarations": [
|
|
4513
4529
|
{
|
|
4514
4530
|
"kind": "variable",
|
|
4515
|
-
"name": "
|
|
4516
|
-
"type": {
|
|
4517
|
-
"text": "object"
|
|
4518
|
-
},
|
|
4519
|
-
"default": "{\n [CheckboxIconMode.DEFAULT]: Palette.WHITE,\n [CheckboxIconMode.DISABLED]: Palette.PRIMARY_300,\n [CheckboxIconMode.ERROR]: Palette.WHITE,\n}"
|
|
4520
|
-
},
|
|
4521
|
-
{
|
|
4522
|
-
"kind": "variable",
|
|
4523
|
-
"name": "CheckboxIconColorDark",
|
|
4531
|
+
"name": "buttonTextColor",
|
|
4524
4532
|
"type": {
|
|
4525
|
-
"text": "
|
|
4533
|
+
"text": "Record<MainVariant, string>"
|
|
4526
4534
|
},
|
|
4527
|
-
"default": "{\n [
|
|
4535
|
+
"default": "{\n [MainVariant.PRIMARY]: Palette.WHITE,\n [MainVariant.SECONDARY]: Palette.MAIN,\n}"
|
|
4528
4536
|
}
|
|
4529
4537
|
],
|
|
4530
4538
|
"exports": [
|
|
4531
4539
|
{
|
|
4532
4540
|
"kind": "js",
|
|
4533
|
-
"name": "
|
|
4534
|
-
"declaration": {
|
|
4535
|
-
"name": "CheckboxIconColorLight",
|
|
4536
|
-
"module": "src/tuix-checkbox/enums/tuix-checkbox.enums.ts"
|
|
4537
|
-
}
|
|
4538
|
-
},
|
|
4539
|
-
{
|
|
4540
|
-
"kind": "js",
|
|
4541
|
-
"name": "CheckboxIconColorDark",
|
|
4541
|
+
"name": "buttonTextColor",
|
|
4542
4542
|
"declaration": {
|
|
4543
|
-
"name": "
|
|
4544
|
-
"module": "src/tuix-
|
|
4543
|
+
"name": "buttonTextColor",
|
|
4544
|
+
"module": "src/tuix-button/enums/tuix-button.enums.ts"
|
|
4545
4545
|
}
|
|
4546
4546
|
}
|
|
4547
4547
|
]
|
|
4548
4548
|
},
|
|
4549
4549
|
{
|
|
4550
4550
|
"kind": "javascript-module",
|
|
4551
|
-
"path": "src/tuix-
|
|
4551
|
+
"path": "src/tuix-button/interfaces/tuix-button.interface.ts",
|
|
4552
4552
|
"declarations": [],
|
|
4553
4553
|
"exports": []
|
|
4554
4554
|
},
|
|
4555
4555
|
{
|
|
4556
4556
|
"kind": "javascript-module",
|
|
4557
|
-
"path": "src/tuix-
|
|
4557
|
+
"path": "src/tuix-button/stories/tuix-button.stories.ts",
|
|
4558
4558
|
"declarations": [
|
|
4559
4559
|
{
|
|
4560
4560
|
"kind": "variable",
|
|
@@ -4562,15 +4562,15 @@
|
|
|
4562
4562
|
"type": {
|
|
4563
4563
|
"text": "object"
|
|
4564
4564
|
},
|
|
4565
|
-
"default": "{\n title: '
|
|
4565
|
+
"default": "{\n title: 'TuixButton',\n component: 'tuix-button',\n argTypes: {\n value: {\n control: 'text',\n },\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n iconLeft: {\n control: 'select',\n options: ['', ...[...Object.values(IconName), null]],\n },\n iconRight: {\n control: 'select',\n options: ['', ...[...Object.values(IconName), null]],\n },\n disabled: { control: 'boolean' },\n dark: { control: 'boolean' },\n full: { control: 'boolean' },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"width:100%; height:100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <div style=\"width:50%; margin:auto; height:100%; position:relative;\">\n <tuix-button\n style=\"width:100%; height:20%; text-align:center; position:absolute; top:50%;\"\n .variant=${args.variant}\n .iconLeft=${args.iconLeft}\n .iconRight=${args.iconRight}\n ?disabled=${args.disabled}\n ?dark=${args.dark}\n ?full=${args.full}\n @customClick=${(e: CustomEventTuixButton) => args.onClick?.(e)}\n >\n ${args.value}\n </tuix-button>\n </div>\n </div>\n `,\n}"
|
|
4566
4566
|
},
|
|
4567
4567
|
{
|
|
4568
4568
|
"kind": "variable",
|
|
4569
|
-
"name": "
|
|
4569
|
+
"name": "Button",
|
|
4570
4570
|
"type": {
|
|
4571
4571
|
"text": "Story"
|
|
4572
4572
|
},
|
|
4573
|
-
"default": "{\n args: {\n
|
|
4573
|
+
"default": "{\n args: {\n value: 'Click me',\n variant: MainVariant.PRIMARY,\n disabled: false,\n dark: false,\n full: false,\n iconLeft: null,\n iconRight: null,\n },\n}"
|
|
4574
4574
|
}
|
|
4575
4575
|
],
|
|
4576
4576
|
"exports": [
|
|
@@ -4579,15 +4579,15 @@
|
|
|
4579
4579
|
"name": "default",
|
|
4580
4580
|
"declaration": {
|
|
4581
4581
|
"name": "meta",
|
|
4582
|
-
"module": "src/tuix-
|
|
4582
|
+
"module": "src/tuix-button/stories/tuix-button.stories.ts"
|
|
4583
4583
|
}
|
|
4584
4584
|
},
|
|
4585
4585
|
{
|
|
4586
4586
|
"kind": "js",
|
|
4587
|
-
"name": "
|
|
4587
|
+
"name": "Button",
|
|
4588
4588
|
"declaration": {
|
|
4589
|
-
"name": "
|
|
4590
|
-
"module": "src/tuix-
|
|
4589
|
+
"name": "Button",
|
|
4590
|
+
"module": "src/tuix-button/stories/tuix-button.stories.ts"
|
|
4591
4591
|
}
|
|
4592
4592
|
}
|
|
4593
4593
|
]
|
|
@@ -4684,46 +4684,6 @@
|
|
|
4684
4684
|
}
|
|
4685
4685
|
]
|
|
4686
4686
|
},
|
|
4687
|
-
{
|
|
4688
|
-
"kind": "javascript-module",
|
|
4689
|
-
"path": "src/tuix-icon/stories/tuix-icon.stories.ts",
|
|
4690
|
-
"declarations": [
|
|
4691
|
-
{
|
|
4692
|
-
"kind": "variable",
|
|
4693
|
-
"name": "meta",
|
|
4694
|
-
"type": {
|
|
4695
|
-
"text": "object"
|
|
4696
|
-
},
|
|
4697
|
-
"default": "{\n title: 'TuixIcon',\n component: 'tuix-icon',\n argTypes: {\n name: {\n control: 'select',\n options: Object.values(IconName),\n },\n size: {\n control: 'select',\n options: Object.values(IconSizeVariant),\n },\n color: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant)],\n },\n fill: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant), null],\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon\n name=\"${args.name}\"\n size=\"${args.size}\"\n color=\"${args.color}\"\n ?dark=\"${args.dark}\"\n fill=\"${args.fill}\"\n >\n </tuix-icon>\n </div>\n `,\n}"
|
|
4698
|
-
},
|
|
4699
|
-
{
|
|
4700
|
-
"kind": "variable",
|
|
4701
|
-
"name": "regularIcon",
|
|
4702
|
-
"type": {
|
|
4703
|
-
"text": "Story"
|
|
4704
|
-
},
|
|
4705
|
-
"default": "{\n args: {\n ...defaultValues,\n },\n}"
|
|
4706
|
-
}
|
|
4707
|
-
],
|
|
4708
|
-
"exports": [
|
|
4709
|
-
{
|
|
4710
|
-
"kind": "js",
|
|
4711
|
-
"name": "default",
|
|
4712
|
-
"declaration": {
|
|
4713
|
-
"name": "meta",
|
|
4714
|
-
"module": "src/tuix-icon/stories/tuix-icon.stories.ts"
|
|
4715
|
-
}
|
|
4716
|
-
},
|
|
4717
|
-
{
|
|
4718
|
-
"kind": "js",
|
|
4719
|
-
"name": "regularIcon",
|
|
4720
|
-
"declaration": {
|
|
4721
|
-
"name": "regularIcon",
|
|
4722
|
-
"module": "src/tuix-icon/stories/tuix-icon.stories.ts"
|
|
4723
|
-
}
|
|
4724
|
-
}
|
|
4725
|
-
]
|
|
4726
|
-
},
|
|
4727
4687
|
{
|
|
4728
4688
|
"kind": "javascript-module",
|
|
4729
4689
|
"path": "src/tuix-icon/enums/tuix-icon.enums.ts",
|
|
@@ -4740,74 +4700,50 @@
|
|
|
4740
4700
|
"exports": [
|
|
4741
4701
|
{
|
|
4742
4702
|
"kind": "js",
|
|
4743
|
-
"name": "iconSize",
|
|
4744
|
-
"declaration": {
|
|
4745
|
-
"name": "iconSize",
|
|
4746
|
-
"module": "src/tuix-icon/enums/tuix-icon.enums.ts"
|
|
4747
|
-
}
|
|
4748
|
-
}
|
|
4749
|
-
]
|
|
4750
|
-
},
|
|
4751
|
-
{
|
|
4752
|
-
"kind": "javascript-module",
|
|
4753
|
-
"path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
|
|
4754
|
-
"declarations": [
|
|
4755
|
-
{
|
|
4756
|
-
"kind": "variable",
|
|
4757
|
-
"name": "meta",
|
|
4758
|
-
"type": {
|
|
4759
|
-
"text": "object"
|
|
4760
|
-
},
|
|
4761
|
-
"default": "{\n title: 'TuixIconButton',\n component: 'tuix-icon-button',\n argTypes: {\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n icon: {\n control: 'select',\n options: Object.values(IconName),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon-button\n variant=\"${args.variant}\"\n icon=\"${args.icon}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n @customClick=\"${args.onClick}\"\n />\n </div>\n `,\n}"
|
|
4762
|
-
},
|
|
4763
|
-
{
|
|
4764
|
-
"kind": "variable",
|
|
4765
|
-
"name": "iconButton",
|
|
4766
|
-
"type": {
|
|
4767
|
-
"text": "Story"
|
|
4768
|
-
},
|
|
4769
|
-
"default": "{\n args: {\n variant: MainVariant.PRIMARY,\n icon: IconName.ARROW_DOWN,\n disabled: false,\n dark: false,\n },\n}"
|
|
4770
|
-
}
|
|
4771
|
-
],
|
|
4772
|
-
"exports": [
|
|
4773
|
-
{
|
|
4774
|
-
"kind": "js",
|
|
4775
|
-
"name": "default",
|
|
4776
|
-
"declaration": {
|
|
4777
|
-
"name": "meta",
|
|
4778
|
-
"module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
|
|
4779
|
-
}
|
|
4780
|
-
},
|
|
4781
|
-
{
|
|
4782
|
-
"kind": "js",
|
|
4783
|
-
"name": "iconButton",
|
|
4703
|
+
"name": "iconSize",
|
|
4784
4704
|
"declaration": {
|
|
4785
|
-
"name": "
|
|
4786
|
-
"module": "src/tuix-icon
|
|
4705
|
+
"name": "iconSize",
|
|
4706
|
+
"module": "src/tuix-icon/enums/tuix-icon.enums.ts"
|
|
4787
4707
|
}
|
|
4788
4708
|
}
|
|
4789
4709
|
]
|
|
4790
4710
|
},
|
|
4791
4711
|
{
|
|
4792
4712
|
"kind": "javascript-module",
|
|
4793
|
-
"path": "src/tuix-
|
|
4713
|
+
"path": "src/tuix-icon/stories/tuix-icon.stories.ts",
|
|
4794
4714
|
"declarations": [
|
|
4795
4715
|
{
|
|
4796
4716
|
"kind": "variable",
|
|
4797
|
-
"name": "
|
|
4717
|
+
"name": "meta",
|
|
4798
4718
|
"type": {
|
|
4799
4719
|
"text": "object"
|
|
4800
4720
|
},
|
|
4801
|
-
"default": "{\n
|
|
4721
|
+
"default": "{\n title: 'TuixIcon',\n component: 'tuix-icon',\n argTypes: {\n name: {\n control: 'select',\n options: Object.values(IconName),\n },\n size: {\n control: 'select',\n options: Object.values(IconSizeVariant),\n },\n color: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant)],\n },\n fill: {\n control: 'select',\n options: [...Object.keys(Palette), ...Object.values(TextVariant), null],\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon\n name=\"${args.name}\"\n size=\"${args.size}\"\n color=\"${args.color}\"\n ?dark=\"${args.dark}\"\n fill=\"${args.fill}\"\n >\n </tuix-icon>\n </div>\n `,\n}"
|
|
4722
|
+
},
|
|
4723
|
+
{
|
|
4724
|
+
"kind": "variable",
|
|
4725
|
+
"name": "regularIcon",
|
|
4726
|
+
"type": {
|
|
4727
|
+
"text": "Story"
|
|
4728
|
+
},
|
|
4729
|
+
"default": "{\n args: {\n ...defaultValues,\n },\n}"
|
|
4802
4730
|
}
|
|
4803
4731
|
],
|
|
4804
4732
|
"exports": [
|
|
4805
4733
|
{
|
|
4806
4734
|
"kind": "js",
|
|
4807
|
-
"name": "
|
|
4735
|
+
"name": "default",
|
|
4808
4736
|
"declaration": {
|
|
4809
|
-
"name": "
|
|
4810
|
-
"module": "src/tuix-
|
|
4737
|
+
"name": "meta",
|
|
4738
|
+
"module": "src/tuix-icon/stories/tuix-icon.stories.ts"
|
|
4739
|
+
}
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
"kind": "js",
|
|
4743
|
+
"name": "regularIcon",
|
|
4744
|
+
"declaration": {
|
|
4745
|
+
"name": "regularIcon",
|
|
4746
|
+
"module": "src/tuix-icon/stories/tuix-icon.stories.ts"
|
|
4811
4747
|
}
|
|
4812
4748
|
}
|
|
4813
4749
|
]
|
|
@@ -4868,6 +4804,30 @@
|
|
|
4868
4804
|
}
|
|
4869
4805
|
]
|
|
4870
4806
|
},
|
|
4807
|
+
{
|
|
4808
|
+
"kind": "javascript-module",
|
|
4809
|
+
"path": "src/tuix-input/interfaces/tuix-input.interface.ts",
|
|
4810
|
+
"declarations": [
|
|
4811
|
+
{
|
|
4812
|
+
"kind": "variable",
|
|
4813
|
+
"name": "InputState",
|
|
4814
|
+
"type": {
|
|
4815
|
+
"text": "object"
|
|
4816
|
+
},
|
|
4817
|
+
"default": "{\n INACTIVE: 'inactive',\n ACTIVE: 'active',\n DISABLED: 'disabled',\n}"
|
|
4818
|
+
}
|
|
4819
|
+
],
|
|
4820
|
+
"exports": [
|
|
4821
|
+
{
|
|
4822
|
+
"kind": "js",
|
|
4823
|
+
"name": "InputState",
|
|
4824
|
+
"declaration": {
|
|
4825
|
+
"name": "InputState",
|
|
4826
|
+
"module": "src/tuix-input/interfaces/tuix-input.interface.ts"
|
|
4827
|
+
}
|
|
4828
|
+
}
|
|
4829
|
+
]
|
|
4830
|
+
},
|
|
4871
4831
|
{
|
|
4872
4832
|
"kind": "javascript-module",
|
|
4873
4833
|
"path": "src/tuix-input/stories/tuix-input.stories.ts",
|
|
@@ -4908,6 +4868,52 @@
|
|
|
4908
4868
|
}
|
|
4909
4869
|
]
|
|
4910
4870
|
},
|
|
4871
|
+
{
|
|
4872
|
+
"kind": "javascript-module",
|
|
4873
|
+
"path": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts",
|
|
4874
|
+
"declarations": [
|
|
4875
|
+
{
|
|
4876
|
+
"kind": "variable",
|
|
4877
|
+
"name": "meta",
|
|
4878
|
+
"type": {
|
|
4879
|
+
"text": "object"
|
|
4880
|
+
},
|
|
4881
|
+
"default": "{\n title: 'TuixIconButton',\n component: 'tuix-icon-button',\n argTypes: {\n variant: {\n control: 'inline-radio',\n options: Object.values(MainVariant),\n },\n icon: {\n control: 'select',\n options: Object.values(IconName),\n },\n disabled: {\n control: 'boolean',\n },\n dark: {\n control: 'boolean',\n },\n onClick: { action: 'customClick' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100vh;\n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-icon-button\n variant=\"${args.variant}\"\n icon=\"${args.icon}\"\n ?disabled=\"${args.disabled}\"\n ?dark=\"${args.dark}\"\n @customClick=\"${args.onClick}\"\n />\n </div>\n `,\n}"
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
"kind": "variable",
|
|
4885
|
+
"name": "iconButton",
|
|
4886
|
+
"type": {
|
|
4887
|
+
"text": "Story"
|
|
4888
|
+
},
|
|
4889
|
+
"default": "{\n args: {\n variant: MainVariant.PRIMARY,\n icon: IconName.ARROW_DOWN,\n disabled: false,\n dark: false,\n },\n}"
|
|
4890
|
+
}
|
|
4891
|
+
],
|
|
4892
|
+
"exports": [
|
|
4893
|
+
{
|
|
4894
|
+
"kind": "js",
|
|
4895
|
+
"name": "default",
|
|
4896
|
+
"declaration": {
|
|
4897
|
+
"name": "meta",
|
|
4898
|
+
"module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
|
|
4899
|
+
}
|
|
4900
|
+
},
|
|
4901
|
+
{
|
|
4902
|
+
"kind": "js",
|
|
4903
|
+
"name": "iconButton",
|
|
4904
|
+
"declaration": {
|
|
4905
|
+
"name": "iconButton",
|
|
4906
|
+
"module": "src/tuix-icon-button/stories/tuix-icon-button.stories.ts"
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
]
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
"kind": "javascript-module",
|
|
4913
|
+
"path": "src/tuix-link/enums/linkTarget.enum.ts",
|
|
4914
|
+
"declarations": [],
|
|
4915
|
+
"exports": []
|
|
4916
|
+
},
|
|
4911
4917
|
{
|
|
4912
4918
|
"kind": "javascript-module",
|
|
4913
4919
|
"path": "src/tuix-link/stories/tuix-link.stories.ts",
|
|
@@ -4948,12 +4954,6 @@
|
|
|
4948
4954
|
}
|
|
4949
4955
|
]
|
|
4950
4956
|
},
|
|
4951
|
-
{
|
|
4952
|
-
"kind": "javascript-module",
|
|
4953
|
-
"path": "src/tuix-link/enums/linkTarget.enum.ts",
|
|
4954
|
-
"declarations": [],
|
|
4955
|
-
"exports": []
|
|
4956
|
-
},
|
|
4957
4957
|
{
|
|
4958
4958
|
"kind": "javascript-module",
|
|
4959
4959
|
"path": "src/tuix-modal/stories/tuix-modal.stories.ts",
|
|
@@ -5134,47 +5134,79 @@
|
|
|
5134
5134
|
},
|
|
5135
5135
|
{
|
|
5136
5136
|
"kind": "javascript-module",
|
|
5137
|
-
"path": "src/tuix-
|
|
5137
|
+
"path": "src/tuix-toast/enums/tuix-toast.enums.ts",
|
|
5138
5138
|
"declarations": [
|
|
5139
5139
|
{
|
|
5140
5140
|
"kind": "variable",
|
|
5141
|
-
"name": "
|
|
5141
|
+
"name": "toastBgColorMap",
|
|
5142
5142
|
"type": {
|
|
5143
|
-
"text": "Record<
|
|
5143
|
+
"text": "Record<ToastTypeExcludingNone, string>"
|
|
5144
5144
|
},
|
|
5145
|
-
"default": "{\n [
|
|
5145
|
+
"default": "{\n [ToastType.TEXT]: Palette.WHITE,\n [ToastType.WARNING]: Palette.VALIDATION_50,\n [ToastType.ERROR]: Palette.ERROR_50,\n [ToastType.SUCCESS]: Palette.SUCCESS_50,\n}"
|
|
5146
5146
|
},
|
|
5147
5147
|
{
|
|
5148
5148
|
"kind": "variable",
|
|
5149
|
-
"name": "
|
|
5149
|
+
"name": "toastBgDarkColorMap",
|
|
5150
5150
|
"type": {
|
|
5151
|
-
"text": "Record<
|
|
5151
|
+
"text": "Record<ToastTypeExcludingNone, string>"
|
|
5152
5152
|
},
|
|
5153
|
-
"default": "{\n
|
|
5153
|
+
"default": "{\n [ToastType.TEXT]: DarkPalette.TOAST_TEXT,\n [ToastType.WARNING]: DarkPalette.TOAST_WARNING,\n [ToastType.ERROR]: DarkPalette.TOAST_ERROR,\n [ToastType.SUCCESS]: DarkPalette.TOAST_SUCCESS,\n}"
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
"kind": "variable",
|
|
5157
|
+
"name": "iconPropertiesMap",
|
|
5158
|
+
"type": {
|
|
5159
|
+
"text": "Record<ToastTypeExcludingNone, IconProperties>"
|
|
5160
|
+
},
|
|
5161
|
+
"default": "{\n [ToastType.TEXT]: {\n name: IconName.ARROW_DOWN,\n color: Palette.BLACK,\n },\n [ToastType.WARNING]: {\n name: IconName.TRIANGLE_EXCLAMATION,\n color: Palette.VALIDATION,\n },\n [ToastType.ERROR]: {\n name: IconName.CIRCLE_EXCLAMATION,\n color: Palette.ERROR,\n },\n [ToastType.SUCCESS]: {\n name: IconName.CIRCLE_CHECK,\n color: Palette.SUCCESS,\n },\n }"
|
|
5162
|
+
},
|
|
5163
|
+
{
|
|
5164
|
+
"kind": "variable",
|
|
5165
|
+
"name": "iconDarkPropertiesMap",
|
|
5166
|
+
"type": {
|
|
5167
|
+
"text": "Record<\n ToastTypeExcludingNone,\n IconProperties\n>"
|
|
5168
|
+
},
|
|
5169
|
+
"default": "{\n [ToastType.TEXT]: {\n name: IconName.ARROW_DOWN,\n color: Palette.WHITE,\n },\n [ToastType.WARNING]: {\n name: IconName.TRIANGLE_EXCLAMATION,\n color: DarkPalette.VALIDATION,\n },\n [ToastType.ERROR]: {\n name: IconName.CIRCLE_EXCLAMATION,\n color: DarkPalette.ERROR,\n },\n [ToastType.SUCCESS]: {\n name: IconName.CIRCLE_CHECK,\n color: DarkPalette.SUCCESS,\n },\n}"
|
|
5154
5170
|
}
|
|
5155
5171
|
],
|
|
5156
5172
|
"exports": [
|
|
5157
5173
|
{
|
|
5158
5174
|
"kind": "js",
|
|
5159
|
-
"name": "
|
|
5175
|
+
"name": "toastBgColorMap",
|
|
5160
5176
|
"declaration": {
|
|
5161
|
-
"name": "
|
|
5162
|
-
"module": "src/tuix-
|
|
5177
|
+
"name": "toastBgColorMap",
|
|
5178
|
+
"module": "src/tuix-toast/enums/tuix-toast.enums.ts"
|
|
5163
5179
|
}
|
|
5164
5180
|
},
|
|
5165
5181
|
{
|
|
5166
5182
|
"kind": "js",
|
|
5167
|
-
"name": "
|
|
5183
|
+
"name": "toastBgDarkColorMap",
|
|
5168
5184
|
"declaration": {
|
|
5169
|
-
"name": "
|
|
5170
|
-
"module": "src/tuix-
|
|
5185
|
+
"name": "toastBgDarkColorMap",
|
|
5186
|
+
"module": "src/tuix-toast/enums/tuix-toast.enums.ts"
|
|
5187
|
+
}
|
|
5188
|
+
},
|
|
5189
|
+
{
|
|
5190
|
+
"kind": "js",
|
|
5191
|
+
"name": "iconPropertiesMap",
|
|
5192
|
+
"declaration": {
|
|
5193
|
+
"name": "iconPropertiesMap",
|
|
5194
|
+
"module": "src/tuix-toast/enums/tuix-toast.enums.ts"
|
|
5195
|
+
}
|
|
5196
|
+
},
|
|
5197
|
+
{
|
|
5198
|
+
"kind": "js",
|
|
5199
|
+
"name": "iconDarkPropertiesMap",
|
|
5200
|
+
"declaration": {
|
|
5201
|
+
"name": "iconDarkPropertiesMap",
|
|
5202
|
+
"module": "src/tuix-toast/enums/tuix-toast.enums.ts"
|
|
5171
5203
|
}
|
|
5172
5204
|
}
|
|
5173
5205
|
]
|
|
5174
5206
|
},
|
|
5175
5207
|
{
|
|
5176
5208
|
"kind": "javascript-module",
|
|
5177
|
-
"path": "src/tuix-
|
|
5209
|
+
"path": "src/tuix-toast/stories/tuix-toast.stories.ts",
|
|
5178
5210
|
"declarations": [
|
|
5179
5211
|
{
|
|
5180
5212
|
"kind": "variable",
|
|
@@ -5182,15 +5214,15 @@
|
|
|
5182
5214
|
"type": {
|
|
5183
5215
|
"text": "object"
|
|
5184
5216
|
},
|
|
5185
|
-
"default": "{\n title: '
|
|
5217
|
+
"default": "{\n title: 'TuixToast',\n component: 'tuix-toast',\n argTypes: {\n type: {\n control: 'select',\n options: Object.values(ToastType),\n },\n dark: {\n control: 'boolean',\n },\n visibilityDuration: {\n control: 'number',\n },\n onClose: { action: 'on-close' },\n },\n render: (args: ArgTypes) => html`\n <div\n style=\"height: 100vh; ${args.dark\n ? `background-color: ${Palette.BLACK};`\n : ''}\"\n >\n <tuix-toast\n type=\"${args.type}\"\n ?dark=\"${args.dark}\"\n visibility-duration=\"${args.visibilityDuration}\"\n @on-close=\"${args.onClose}\"\n >\n Lorem ipsum dolor sit amet consectetur. Sollicitudin id interdum\n dignissim at orci. Augue vivamus arcu massa porta facilisi.\n </tuix-toast>\n </div>\n `,\n}"
|
|
5186
5218
|
},
|
|
5187
5219
|
{
|
|
5188
5220
|
"kind": "variable",
|
|
5189
|
-
"name": "
|
|
5221
|
+
"name": "toastExample",
|
|
5190
5222
|
"type": {
|
|
5191
5223
|
"text": "Story"
|
|
5192
5224
|
},
|
|
5193
|
-
"default": "{\n args: {\n
|
|
5225
|
+
"default": "{\n args: {\n type: ToastType.TEXT,\n dark: false,\n visibilityDuration: 4000,\n },\n}"
|
|
5194
5226
|
}
|
|
5195
5227
|
],
|
|
5196
5228
|
"exports": [
|
|
@@ -5199,94 +5231,62 @@
|
|
|
5199
5231
|
"name": "default",
|
|
5200
5232
|
"declaration": {
|
|
5201
5233
|
"name": "meta",
|
|
5202
|
-
"module": "src/tuix-
|
|
5234
|
+
"module": "src/tuix-toast/stories/tuix-toast.stories.ts"
|
|
5203
5235
|
}
|
|
5204
5236
|
},
|
|
5205
5237
|
{
|
|
5206
5238
|
"kind": "js",
|
|
5207
|
-
"name": "
|
|
5239
|
+
"name": "toastExample",
|
|
5208
5240
|
"declaration": {
|
|
5209
|
-
"name": "
|
|
5210
|
-
"module": "src/tuix-
|
|
5241
|
+
"name": "toastExample",
|
|
5242
|
+
"module": "src/tuix-toast/stories/tuix-toast.stories.ts"
|
|
5211
5243
|
}
|
|
5212
5244
|
}
|
|
5213
5245
|
]
|
|
5214
5246
|
},
|
|
5215
5247
|
{
|
|
5216
5248
|
"kind": "javascript-module",
|
|
5217
|
-
"path": "src/tuix-
|
|
5249
|
+
"path": "src/tuix-text/enums/tuix-text.enums.ts",
|
|
5218
5250
|
"declarations": [
|
|
5219
5251
|
{
|
|
5220
5252
|
"kind": "variable",
|
|
5221
|
-
"name": "
|
|
5222
|
-
"type": {
|
|
5223
|
-
"text": "Record<ToastTypeExcludingNone, string>"
|
|
5224
|
-
},
|
|
5225
|
-
"default": "{\n [ToastType.TEXT]: Palette.WHITE,\n [ToastType.WARNING]: Palette.VALIDATION_50,\n [ToastType.ERROR]: Palette.ERROR_50,\n [ToastType.SUCCESS]: Palette.SUCCESS_50,\n}"
|
|
5226
|
-
},
|
|
5227
|
-
{
|
|
5228
|
-
"kind": "variable",
|
|
5229
|
-
"name": "toastBgDarkColorMap",
|
|
5230
|
-
"type": {
|
|
5231
|
-
"text": "Record<ToastTypeExcludingNone, string>"
|
|
5232
|
-
},
|
|
5233
|
-
"default": "{\n [ToastType.TEXT]: Palette.PRIMARY_950,\n [ToastType.WARNING]: DarkPalette.VALIDATION_50,\n [ToastType.ERROR]: DarkPalette.ERROR_50,\n [ToastType.SUCCESS]: DarkPalette.SUCCESS_50,\n}"
|
|
5234
|
-
},
|
|
5235
|
-
{
|
|
5236
|
-
"kind": "variable",
|
|
5237
|
-
"name": "iconPropertiesMap",
|
|
5253
|
+
"name": "colorText",
|
|
5238
5254
|
"type": {
|
|
5239
|
-
"text": "Record<
|
|
5255
|
+
"text": "Record<TextVariant, string>"
|
|
5240
5256
|
},
|
|
5241
|
-
"default": "{\n
|
|
5257
|
+
"default": "{\n [TextVariant.MAIN]: Palette.MAIN,\n [TextVariant.DARK_MAIN]: Palette.DARK_MAIN,\n [TextVariant.PRIMARY]: Palette.BLACK,\n [TextVariant.SECONDARY]: Palette.WHITE,\n [TextVariant.STROKE]: Palette.PRIMARY_400,\n [TextVariant.GREY]: Palette.NEUTRAL_600,\n [TextVariant.LIGHT_GREY]: Palette.NEUTRAL_200,\n [TextVariant.DISABLED]: Palette.PRIMARY_100,\n [TextVariant.SECTION]: Palette.PRIMARY_700,\n [TextVariant.VALIDATION]: Palette.VALIDATION,\n [TextVariant.ERROR]: Palette.ERROR,\n [TextVariant.SUCCESS]: Palette.SUCCESS,\n [TextVariant.LIGHT]: Palette.WHITE,\n [TextVariant.DARK]: Palette.BLACK,\n [TextVariant.DARK_BLUE]: Palette.DARK_MAIN,\n [TextVariant.TITLE_BLUE]: Palette.DARK_MAIN,\n}"
|
|
5242
5258
|
},
|
|
5243
5259
|
{
|
|
5244
5260
|
"kind": "variable",
|
|
5245
|
-
"name": "
|
|
5261
|
+
"name": "colorTextDark",
|
|
5246
5262
|
"type": {
|
|
5247
|
-
"text": "Record
|
|
5263
|
+
"text": "Record<TextVariant, string>"
|
|
5248
5264
|
},
|
|
5249
|
-
"default": "{\n [
|
|
5265
|
+
"default": "{\n ...colorText,\n [TextVariant.MAIN]: DarkPalette.MAIN,\n [TextVariant.DARK_MAIN]: DarkPalette.NEUTRAL_600,\n [TextVariant.PRIMARY]: DarkPalette.PRIMARY_50,\n [TextVariant.SECONDARY]: Palette.BLACK,\n [TextVariant.GREY]: DarkPalette.NEUTRAL_600,\n [TextVariant.DISABLED]: Palette.PRIMARY_200,\n [TextVariant.VALIDATION]: DarkPalette.VALIDATION,\n [TextVariant.ERROR]: DarkPalette.ERROR,\n [TextVariant.SUCCESS]: DarkPalette.SUCCESS,\n [TextVariant.LIGHT]: DarkPalette.PRIMARY_50,\n [TextVariant.DARK_BLUE]: DarkPalette.PRIMARY_800,\n [TextVariant.TITLE_BLUE]: DarkPalette.PRIMARY_300,\n [TextVariant.SECTION]: Palette.PRIMARY_300,\n}"
|
|
5250
5266
|
}
|
|
5251
5267
|
],
|
|
5252
5268
|
"exports": [
|
|
5253
5269
|
{
|
|
5254
5270
|
"kind": "js",
|
|
5255
|
-
"name": "
|
|
5256
|
-
"declaration": {
|
|
5257
|
-
"name": "toastBgColorMap",
|
|
5258
|
-
"module": "src/tuix-toast/enums/tuix-toast.enums.ts"
|
|
5259
|
-
}
|
|
5260
|
-
},
|
|
5261
|
-
{
|
|
5262
|
-
"kind": "js",
|
|
5263
|
-
"name": "toastBgDarkColorMap",
|
|
5264
|
-
"declaration": {
|
|
5265
|
-
"name": "toastBgDarkColorMap",
|
|
5266
|
-
"module": "src/tuix-toast/enums/tuix-toast.enums.ts"
|
|
5267
|
-
}
|
|
5268
|
-
},
|
|
5269
|
-
{
|
|
5270
|
-
"kind": "js",
|
|
5271
|
-
"name": "iconPropertiesMap",
|
|
5271
|
+
"name": "colorText",
|
|
5272
5272
|
"declaration": {
|
|
5273
|
-
"name": "
|
|
5274
|
-
"module": "src/tuix-
|
|
5273
|
+
"name": "colorText",
|
|
5274
|
+
"module": "src/tuix-text/enums/tuix-text.enums.ts"
|
|
5275
5275
|
}
|
|
5276
5276
|
},
|
|
5277
5277
|
{
|
|
5278
5278
|
"kind": "js",
|
|
5279
|
-
"name": "
|
|
5279
|
+
"name": "colorTextDark",
|
|
5280
5280
|
"declaration": {
|
|
5281
|
-
"name": "
|
|
5282
|
-
"module": "src/tuix-
|
|
5281
|
+
"name": "colorTextDark",
|
|
5282
|
+
"module": "src/tuix-text/enums/tuix-text.enums.ts"
|
|
5283
5283
|
}
|
|
5284
5284
|
}
|
|
5285
5285
|
]
|
|
5286
5286
|
},
|
|
5287
5287
|
{
|
|
5288
5288
|
"kind": "javascript-module",
|
|
5289
|
-
"path": "src/tuix-
|
|
5289
|
+
"path": "src/tuix-text/stories/tuix-text.stories.ts",
|
|
5290
5290
|
"declarations": [
|
|
5291
5291
|
{
|
|
5292
5292
|
"kind": "variable",
|
|
@@ -5294,15 +5294,15 @@
|
|
|
5294
5294
|
"type": {
|
|
5295
5295
|
"text": "object"
|
|
5296
5296
|
},
|
|
5297
|
-
"default": "{\n title: '
|
|
5297
|
+
"default": "{\n title: 'TuixText',\n component: 'tuix-text',\n argTypes: {\n value: { control: 'text' },\n size: {\n control: 'select',\n options: Object.values(TextSize),\n },\n color: {\n control: 'select',\n options: Object.values(TextVariant),\n },\n dark: {\n control: 'boolean',\n },\n },\n render: (args: ArgTypes) => html`\n <style>\n tuix-text > * {\n display: block;\n }\n </style>\n <div\n style=\"display: flex; justify-content: center; align-items: center; height: 100%; \n ${args.dark ? `background-color: ${Palette.BLACK};` : ''}\"\n >\n <tuix-text size=\"${args.size}\" color=\"${args.color}\" ?dark=\"${args.dark}\">\n ${args.value}\n <h1>${args.value}</h1>\n <h2>${args.value}</h2>\n <h3>${args.value}</h3>\n <h4>${args.value}</h4>\n <h5>${args.value}</h5>\n <h6>${args.value}</h6>\n <p>${args.value}</p>\n <span> ${args.value} </span>\n </tuix-text>\n </div>\n `,\n}"
|
|
5298
5298
|
},
|
|
5299
5299
|
{
|
|
5300
5300
|
"kind": "variable",
|
|
5301
|
-
"name": "
|
|
5301
|
+
"name": "Headline",
|
|
5302
5302
|
"type": {
|
|
5303
5303
|
"text": "Story"
|
|
5304
5304
|
},
|
|
5305
|
-
"default": "{\n args: {\n
|
|
5305
|
+
"default": "{\n args: {\n value: 'Test text',\n size: TextSize.XL,\n dark: false,\n },\n}"
|
|
5306
5306
|
}
|
|
5307
5307
|
],
|
|
5308
5308
|
"exports": [
|
|
@@ -5311,15 +5311,15 @@
|
|
|
5311
5311
|
"name": "default",
|
|
5312
5312
|
"declaration": {
|
|
5313
5313
|
"name": "meta",
|
|
5314
|
-
"module": "src/tuix-
|
|
5314
|
+
"module": "src/tuix-text/stories/tuix-text.stories.ts"
|
|
5315
5315
|
}
|
|
5316
5316
|
},
|
|
5317
5317
|
{
|
|
5318
5318
|
"kind": "js",
|
|
5319
|
-
"name": "
|
|
5319
|
+
"name": "Headline",
|
|
5320
5320
|
"declaration": {
|
|
5321
|
-
"name": "
|
|
5322
|
-
"module": "src/tuix-
|
|
5321
|
+
"name": "Headline",
|
|
5322
|
+
"module": "src/tuix-text/stories/tuix-text.stories.ts"
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
5325
|
]
|