@officesdk/design 0.1.6 → 0.1.9
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/dist/components/cjs/index.d.ts +436 -30
- package/dist/components/cjs/index.js +2548 -1129
- package/dist/components/cjs/index.js.map +1 -1
- package/dist/components/esm/index.d.ts +436 -30
- package/dist/components/esm/index.js +2465 -1046
- package/dist/components/esm/index.js.map +1 -1
- package/dist/theme/cjs/index.js +324 -221
- package/dist/theme/cjs/index.js.map +1 -1
- package/dist/theme/esm/index.js +324 -221
- package/dist/theme/esm/index.js.map +1 -1
- package/package.json +4 -4
package/dist/theme/cjs/index.js
CHANGED
|
@@ -295,20 +295,6 @@ var typography = {
|
|
|
295
295
|
|
|
296
296
|
// src/light/components/button.ts
|
|
297
297
|
var button = {
|
|
298
|
-
icons: {
|
|
299
|
-
close: {
|
|
300
|
-
url: "",
|
|
301
|
-
size: { width: "16px", height: "16px" }
|
|
302
|
-
},
|
|
303
|
-
clear: {
|
|
304
|
-
url: "",
|
|
305
|
-
size: { width: "16px", height: "16px" }
|
|
306
|
-
},
|
|
307
|
-
search: {
|
|
308
|
-
url: "",
|
|
309
|
-
size: { width: "16px", height: "16px" }
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
298
|
solid: {
|
|
313
299
|
default: {
|
|
314
300
|
background: `linear-gradient(0deg, ${colors.palettes.gray["120"]} 0%, ${colors.palettes.gray["90"]} 100%)`,
|
|
@@ -506,40 +492,72 @@ var button = {
|
|
|
506
492
|
}
|
|
507
493
|
},
|
|
508
494
|
small: {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
495
|
+
withIcon: {
|
|
496
|
+
height: "24px",
|
|
497
|
+
padding: "0px 10px",
|
|
498
|
+
textPadding: "0 2px",
|
|
499
|
+
fontSize: "12px",
|
|
500
|
+
lineHeight: "20px",
|
|
501
|
+
borderRadius: borderRadius.small,
|
|
502
|
+
iconSize: { width: "16px", height: "16px" },
|
|
503
|
+
iconGap: "4px"
|
|
504
|
+
},
|
|
505
|
+
onlyIcon: {
|
|
506
|
+
iconSize: { width: "12px", height: "12px" },
|
|
507
|
+
padding: "6px",
|
|
508
|
+
borderRadius: borderRadius.small
|
|
509
|
+
}
|
|
516
510
|
},
|
|
517
511
|
medium: {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
512
|
+
withIcon: {
|
|
513
|
+
height: "28px",
|
|
514
|
+
padding: "2px 14px",
|
|
515
|
+
textPadding: "0 2px",
|
|
516
|
+
fontSize: "13px",
|
|
517
|
+
lineHeight: "20px",
|
|
518
|
+
borderRadius: borderRadius.small,
|
|
519
|
+
iconSize: { width: "16px", height: "16px" },
|
|
520
|
+
iconGap: "4px"
|
|
521
|
+
},
|
|
522
|
+
onlyIcon: {
|
|
523
|
+
iconSize: { width: "14px", height: "14px" },
|
|
524
|
+
padding: "7px",
|
|
525
|
+
borderRadius: borderRadius.small
|
|
526
|
+
}
|
|
525
527
|
},
|
|
526
528
|
large: {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
529
|
+
withIcon: {
|
|
530
|
+
height: "32px",
|
|
531
|
+
padding: "0 18px",
|
|
532
|
+
textPadding: "0 6px",
|
|
533
|
+
fontSize: "13px",
|
|
534
|
+
lineHeight: "20px",
|
|
535
|
+
borderRadius: borderRadius.small,
|
|
536
|
+
iconSize: { width: "18px", height: "18px" },
|
|
537
|
+
iconGap: "4px"
|
|
538
|
+
},
|
|
539
|
+
onlyIcon: {
|
|
540
|
+
iconSize: { width: "16px", height: "16px" },
|
|
541
|
+
padding: "8px",
|
|
542
|
+
borderRadius: borderRadius.small
|
|
543
|
+
}
|
|
534
544
|
},
|
|
535
545
|
extraLarge: {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
546
|
+
withIcon: {
|
|
547
|
+
height: "40px",
|
|
548
|
+
padding: "0px 26px",
|
|
549
|
+
textPadding: "0px 6px",
|
|
550
|
+
fontSize: "14px",
|
|
551
|
+
lineHeight: "24px",
|
|
552
|
+
borderRadius: borderRadius.small,
|
|
553
|
+
iconSize: { width: "16px", height: "16px" },
|
|
554
|
+
iconGap: "4px"
|
|
555
|
+
},
|
|
556
|
+
onlyIcon: {
|
|
557
|
+
iconSize: { width: "20px", height: "20px" },
|
|
558
|
+
padding: "10px",
|
|
559
|
+
borderRadius: borderRadius.small
|
|
560
|
+
}
|
|
543
561
|
}
|
|
544
562
|
};
|
|
545
563
|
|
|
@@ -549,18 +567,16 @@ var toast = {
|
|
|
549
567
|
borderRadius: "8px",
|
|
550
568
|
fontSize: "14px",
|
|
551
569
|
fontWeight: 500,
|
|
570
|
+
offset: {
|
|
571
|
+
vertical: "24px",
|
|
572
|
+
horizontal: "24px"
|
|
573
|
+
},
|
|
552
574
|
success: {
|
|
553
575
|
background: colors.palettes.green["1"],
|
|
554
576
|
borderColor: colors.palettes.green["2"],
|
|
555
577
|
icon: {
|
|
556
578
|
url: "",
|
|
557
579
|
size: { width: "20px", height: "20px" }
|
|
558
|
-
},
|
|
559
|
-
button: {
|
|
560
|
-
fontSize: "14px",
|
|
561
|
-
fontWeight: 500,
|
|
562
|
-
color: colors.palettes.green["6"],
|
|
563
|
-
gap: "8px"
|
|
564
580
|
}
|
|
565
581
|
},
|
|
566
582
|
info: {
|
|
@@ -569,12 +585,6 @@ var toast = {
|
|
|
569
585
|
icon: {
|
|
570
586
|
url: "",
|
|
571
587
|
size: { width: "20px", height: "20px" }
|
|
572
|
-
},
|
|
573
|
-
button: {
|
|
574
|
-
fontSize: "14px",
|
|
575
|
-
fontWeight: 500,
|
|
576
|
-
color: colors.palettes.blue["6"],
|
|
577
|
-
gap: "8px"
|
|
578
588
|
}
|
|
579
589
|
},
|
|
580
590
|
error: {
|
|
@@ -583,12 +593,6 @@ var toast = {
|
|
|
583
593
|
icon: {
|
|
584
594
|
url: "",
|
|
585
595
|
size: { width: "20px", height: "20px" }
|
|
586
|
-
},
|
|
587
|
-
button: {
|
|
588
|
-
fontSize: "14px",
|
|
589
|
-
fontWeight: 500,
|
|
590
|
-
color: colors.palettes.red["6"],
|
|
591
|
-
gap: "8px"
|
|
592
596
|
}
|
|
593
597
|
},
|
|
594
598
|
warn: {
|
|
@@ -597,28 +601,12 @@ var toast = {
|
|
|
597
601
|
icon: {
|
|
598
602
|
url: "",
|
|
599
603
|
size: { width: "20px", height: "20px" }
|
|
600
|
-
},
|
|
601
|
-
button: {
|
|
602
|
-
fontSize: "14px",
|
|
603
|
-
fontWeight: 500,
|
|
604
|
-
color: colors.palettes.yellow["7"],
|
|
605
|
-
gap: "8px"
|
|
606
604
|
}
|
|
607
605
|
}
|
|
608
606
|
};
|
|
609
607
|
|
|
610
608
|
// src/light/components/input.ts
|
|
611
609
|
var input = {
|
|
612
|
-
icons: {
|
|
613
|
-
search: {
|
|
614
|
-
url: "",
|
|
615
|
-
size: { width: "16px", height: "16px" }
|
|
616
|
-
},
|
|
617
|
-
clear: {
|
|
618
|
-
url: "",
|
|
619
|
-
size: { width: "16px", height: "16px" }
|
|
620
|
-
}
|
|
621
|
-
},
|
|
622
610
|
outlined: {
|
|
623
611
|
state: {
|
|
624
612
|
borderColor: colors.palettes.transparency["10"],
|
|
@@ -631,13 +619,22 @@ var input = {
|
|
|
631
619
|
backgroundHover: colors.palettes.gray["0"],
|
|
632
620
|
backgroundActive: colors.palettes.gray["0"],
|
|
633
621
|
backgroundDisabled: colors.palettes.gray["5"],
|
|
634
|
-
backgroundReadonly: colors.palettes.gray["2"]
|
|
622
|
+
backgroundReadonly: colors.palettes.gray["2"],
|
|
623
|
+
placeholderColorNormal: colors.palettes.transparency["30"],
|
|
624
|
+
placeholderColorHover: colors.palettes.transparency["30"],
|
|
625
|
+
textColorNormal: colors.palettes.gray["120"],
|
|
626
|
+
textColorDisabled: colors.palettes.transparency["30"]
|
|
635
627
|
},
|
|
636
628
|
mini: {
|
|
629
|
+
height: "20px",
|
|
637
630
|
borderRadius: "4px",
|
|
631
|
+
padding: "0px 4px",
|
|
632
|
+
contentPadding: "0px 0",
|
|
633
|
+
gap: "4px",
|
|
638
634
|
iconSize: { width: "12px", height: "12px" },
|
|
639
|
-
|
|
640
|
-
|
|
635
|
+
clearIcon: {
|
|
636
|
+
size: { width: "12px", height: "12px" }
|
|
637
|
+
},
|
|
641
638
|
fontSize: "12px",
|
|
642
639
|
lineHeight: "20px",
|
|
643
640
|
boxShadow: "none",
|
|
@@ -646,10 +643,15 @@ var input = {
|
|
|
646
643
|
boxShadowDisabled: "none"
|
|
647
644
|
},
|
|
648
645
|
small: {
|
|
646
|
+
height: "24px",
|
|
649
647
|
borderRadius: "4px",
|
|
648
|
+
padding: "0px 4px",
|
|
649
|
+
contentPadding: "2px 4px",
|
|
650
|
+
gap: "4px",
|
|
650
651
|
iconSize: { width: "14px", height: "14px" },
|
|
651
|
-
|
|
652
|
-
|
|
652
|
+
clearIcon: {
|
|
653
|
+
size: { width: "14px", height: "14px" }
|
|
654
|
+
},
|
|
653
655
|
fontSize: "12px",
|
|
654
656
|
lineHeight: "20px",
|
|
655
657
|
boxShadow: "none",
|
|
@@ -658,22 +660,15 @@ var input = {
|
|
|
658
660
|
boxShadowDisabled: "none"
|
|
659
661
|
},
|
|
660
662
|
medium: {
|
|
661
|
-
borderRadius: "4px",
|
|
662
|
-
iconSize: { width: "18px", height: "18px" },
|
|
663
|
-
padding: "4px 8px",
|
|
664
663
|
height: "32px",
|
|
665
|
-
fontSize: "13px",
|
|
666
|
-
lineHeight: "20px",
|
|
667
|
-
boxShadow: "none",
|
|
668
|
-
boxShadowHover: "none",
|
|
669
|
-
boxShadowActive: "0 2px 8px 0 rgba(0, 0, 0, 0.04)",
|
|
670
|
-
boxShadowDisabled: "none"
|
|
671
|
-
},
|
|
672
|
-
large: {
|
|
673
664
|
borderRadius: "4px",
|
|
665
|
+
padding: "2px 8px",
|
|
666
|
+
contentPadding: "4px",
|
|
667
|
+
gap: "4px",
|
|
674
668
|
iconSize: { width: "18px", height: "18px" },
|
|
675
|
-
|
|
676
|
-
|
|
669
|
+
clearIcon: {
|
|
670
|
+
size: { width: "18px", height: "18px" }
|
|
671
|
+
},
|
|
677
672
|
fontSize: "13px",
|
|
678
673
|
lineHeight: "20px",
|
|
679
674
|
boxShadow: "none",
|
|
@@ -681,11 +676,16 @@ var input = {
|
|
|
681
676
|
boxShadowActive: "0 2px 8px 0 rgba(0, 0, 0, 0.04)",
|
|
682
677
|
boxShadowDisabled: "none"
|
|
683
678
|
},
|
|
684
|
-
|
|
679
|
+
large: {
|
|
680
|
+
height: "40px",
|
|
685
681
|
borderRadius: "4px",
|
|
682
|
+
padding: "4px 4px 4px 12px",
|
|
683
|
+
contentPadding: "4px 8px",
|
|
684
|
+
gap: "4px",
|
|
686
685
|
iconSize: { width: "20px", height: "20px" },
|
|
687
|
-
|
|
688
|
-
|
|
686
|
+
clearIcon: {
|
|
687
|
+
size: { width: "20px", height: "20px" }
|
|
688
|
+
},
|
|
689
689
|
fontSize: "14px",
|
|
690
690
|
lineHeight: "24px",
|
|
691
691
|
boxShadow: "none",
|
|
@@ -696,73 +696,85 @@ var input = {
|
|
|
696
696
|
},
|
|
697
697
|
underlined: {
|
|
698
698
|
state: {
|
|
699
|
-
borderColor:
|
|
699
|
+
borderColor: "transparent",
|
|
700
700
|
borderColorHover: colors.palettes.transparency["20"],
|
|
701
701
|
borderColorActive: colors.palettes.transparency["30"],
|
|
702
|
-
borderColorDisabled:
|
|
702
|
+
borderColorDisabled: "transparent",
|
|
703
703
|
borderColorError: colors.palettes.red["6"],
|
|
704
|
-
borderColorReadonly:
|
|
704
|
+
borderColorReadonly: "transparent",
|
|
705
705
|
background: "transparent",
|
|
706
706
|
backgroundHover: "transparent",
|
|
707
707
|
backgroundActive: "transparent",
|
|
708
708
|
backgroundDisabled: "transparent",
|
|
709
|
-
backgroundReadonly: "transparent"
|
|
709
|
+
backgroundReadonly: "transparent",
|
|
710
|
+
placeholderColorNormal: colors.palettes.transparency["30"],
|
|
711
|
+
placeholderColorHover: colors.palettes.transparency["30"],
|
|
712
|
+
textColorNormal: colors.palettes.gray["120"],
|
|
713
|
+
textColorDisabled: colors.palettes.transparency["30"]
|
|
710
714
|
},
|
|
711
715
|
mini: {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
+
height: "24px",
|
|
717
|
+
padding: "0 4px",
|
|
718
|
+
contentPadding: "4px 0 4px 4px",
|
|
719
|
+
gap: "4px",
|
|
716
720
|
fontSize: "12px",
|
|
717
721
|
lineHeight: "20px",
|
|
722
|
+
iconSize: { width: "16px", height: "16px" },
|
|
723
|
+
clearIcon: {
|
|
724
|
+
size: { width: "16px", height: "16px" }
|
|
725
|
+
},
|
|
726
|
+
borderRadius: "4px",
|
|
718
727
|
boxShadow: "none",
|
|
719
728
|
boxShadowHover: "none",
|
|
720
729
|
boxShadowActive: "none",
|
|
721
730
|
boxShadowDisabled: "none"
|
|
722
731
|
},
|
|
723
732
|
small: {
|
|
724
|
-
borderRadius: "0",
|
|
725
|
-
iconSize: { width: "14px", height: "14px" },
|
|
726
|
-
padding: "2px 0",
|
|
727
733
|
height: "24px",
|
|
734
|
+
padding: "0 4px",
|
|
735
|
+
contentPadding: "4px 0 4px 4px",
|
|
736
|
+
gap: "4px",
|
|
728
737
|
fontSize: "12px",
|
|
729
738
|
lineHeight: "20px",
|
|
739
|
+
iconSize: { width: "16px", height: "16px" },
|
|
740
|
+
clearIcon: {
|
|
741
|
+
size: { width: "16px", height: "16px" }
|
|
742
|
+
},
|
|
743
|
+
borderRadius: "4px",
|
|
730
744
|
boxShadow: "none",
|
|
731
745
|
boxShadowHover: "none",
|
|
732
746
|
boxShadowActive: "none",
|
|
733
747
|
boxShadowDisabled: "none"
|
|
734
748
|
},
|
|
735
749
|
medium: {
|
|
736
|
-
borderRadius: "0",
|
|
737
|
-
iconSize: { width: "18px", height: "18px" },
|
|
738
|
-
padding: "4px 0",
|
|
739
750
|
height: "32px",
|
|
751
|
+
padding: "0 8px",
|
|
752
|
+
contentPadding: "6px 0 6px 4px",
|
|
753
|
+
gap: "4px",
|
|
740
754
|
fontSize: "13px",
|
|
741
755
|
lineHeight: "20px",
|
|
742
|
-
boxShadow: "none",
|
|
743
|
-
boxShadowHover: "none",
|
|
744
|
-
boxShadowActive: "none",
|
|
745
|
-
boxShadowDisabled: "none"
|
|
746
|
-
},
|
|
747
|
-
large: {
|
|
748
|
-
borderRadius: "0",
|
|
749
756
|
iconSize: { width: "18px", height: "18px" },
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
757
|
+
clearIcon: {
|
|
758
|
+
size: { width: "16px", height: "16px" }
|
|
759
|
+
},
|
|
760
|
+
borderRadius: "4px",
|
|
754
761
|
boxShadow: "none",
|
|
755
762
|
boxShadowHover: "none",
|
|
756
763
|
boxShadowActive: "none",
|
|
757
764
|
boxShadowDisabled: "none"
|
|
758
765
|
},
|
|
759
|
-
|
|
760
|
-
borderRadius: "0",
|
|
761
|
-
iconSize: { width: "20px", height: "20px" },
|
|
762
|
-
padding: "6px 0",
|
|
766
|
+
large: {
|
|
763
767
|
height: "40px",
|
|
768
|
+
padding: "10px 12px",
|
|
769
|
+
contentPadding: "0 0 0 4px",
|
|
770
|
+
gap: "4px",
|
|
764
771
|
fontSize: "14px",
|
|
765
772
|
lineHeight: "24px",
|
|
773
|
+
iconSize: { width: "20px", height: "20px" },
|
|
774
|
+
clearIcon: {
|
|
775
|
+
size: { width: "16px", height: "16px" }
|
|
776
|
+
},
|
|
777
|
+
borderRadius: "4px",
|
|
766
778
|
boxShadow: "none",
|
|
767
779
|
boxShadowHover: "none",
|
|
768
780
|
boxShadowActive: "none",
|
|
@@ -771,6 +783,14 @@ var input = {
|
|
|
771
783
|
}
|
|
772
784
|
};
|
|
773
785
|
|
|
786
|
+
// src/light/components/inputSearch.ts
|
|
787
|
+
var inputSearch = {
|
|
788
|
+
searchIcon: {
|
|
789
|
+
url: ""
|
|
790
|
+
// Empty means use default icon
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
|
|
774
794
|
// src/light/components/radio.ts
|
|
775
795
|
var radio = {
|
|
776
796
|
unchecked: {
|
|
@@ -945,100 +965,6 @@ var switchComponent = {
|
|
|
945
965
|
}
|
|
946
966
|
};
|
|
947
967
|
|
|
948
|
-
// src/light/components/dropdown.ts
|
|
949
|
-
var dropdown = {
|
|
950
|
-
icons: {
|
|
951
|
-
arrow: {
|
|
952
|
-
url: "",
|
|
953
|
-
size: { width: "12px", height: "12px" },
|
|
954
|
-
expandedRotateAngel: "180deg"
|
|
955
|
-
},
|
|
956
|
-
check: {
|
|
957
|
-
url: "",
|
|
958
|
-
size: { width: "14px", height: "14px" }
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
button: {
|
|
962
|
-
trigger: {
|
|
963
|
-
borderColor: colors.palettes.transparency["20"],
|
|
964
|
-
borderColorHover: colors.palettes.transparency["30"],
|
|
965
|
-
borderColorActive: colors.palettes.transparency["30"],
|
|
966
|
-
borderColorDisabled: colors.palettes.transparency["10"],
|
|
967
|
-
background: colors.palettes.gray["0"],
|
|
968
|
-
backgroundHover: colors.palettes.gray["0"],
|
|
969
|
-
backgroundActive: colors.palettes.gray["0"],
|
|
970
|
-
backgroundDisabled: colors.palettes.gray["5"],
|
|
971
|
-
color: colors.palettes.brand,
|
|
972
|
-
colorDisabled: colors.palettes.transparency["30"],
|
|
973
|
-
boxShadow: "none",
|
|
974
|
-
boxShadowHover: "none",
|
|
975
|
-
boxShadowActive: "0 2px 8px 0 rgba(0, 0, 0, 0.04)",
|
|
976
|
-
boxShadowDisabled: "none"
|
|
977
|
-
},
|
|
978
|
-
menu: {
|
|
979
|
-
background: colors.palettes.gray["0"],
|
|
980
|
-
borderColor: colors.palettes.transparency["10"],
|
|
981
|
-
borderRadius: "8px",
|
|
982
|
-
padding: "4px",
|
|
983
|
-
boxShadow: "0 8px 18px 0 rgba(0, 0, 0, 0.06)",
|
|
984
|
-
maxHeight: "280px"
|
|
985
|
-
},
|
|
986
|
-
menuItem: {
|
|
987
|
-
background: "transparent",
|
|
988
|
-
backgroundHover: colors.palettes.transparency["5"],
|
|
989
|
-
backgroundDisabled: "transparent",
|
|
990
|
-
backgroundSelected: colors.palettes.transparency["8"],
|
|
991
|
-
color: colors.palettes.brand,
|
|
992
|
-
colorDisabled: colors.palettes.transparency["30"],
|
|
993
|
-
padding: "8px 12px"
|
|
994
|
-
}
|
|
995
|
-
},
|
|
996
|
-
input: {
|
|
997
|
-
trigger: {
|
|
998
|
-
borderColor: colors.palettes.transparency["10"],
|
|
999
|
-
borderColorHover: colors.palettes.transparency["20"],
|
|
1000
|
-
borderColorActive: colors.palettes.transparency["30"],
|
|
1001
|
-
borderColorDisabled: colors.palettes.transparency["10"],
|
|
1002
|
-
background: colors.palettes.gray["0"],
|
|
1003
|
-
backgroundHover: colors.palettes.gray["0"],
|
|
1004
|
-
backgroundActive: colors.palettes.gray["0"],
|
|
1005
|
-
backgroundDisabled: colors.palettes.gray["5"],
|
|
1006
|
-
color: colors.palettes.brand,
|
|
1007
|
-
colorDisabled: colors.palettes.transparency["30"],
|
|
1008
|
-
boxShadow: "none",
|
|
1009
|
-
boxShadowHover: "none",
|
|
1010
|
-
boxShadowActive: "0 2px 8px 0 rgba(0, 0, 0, 0.04)",
|
|
1011
|
-
boxShadowDisabled: "none"
|
|
1012
|
-
},
|
|
1013
|
-
menu: {
|
|
1014
|
-
background: colors.palettes.gray["0"],
|
|
1015
|
-
borderColor: colors.palettes.transparency["10"],
|
|
1016
|
-
borderRadius: "8px",
|
|
1017
|
-
padding: "4px",
|
|
1018
|
-
boxShadow: "0 8px 18px 0 rgba(0, 0, 0, 0.06)",
|
|
1019
|
-
maxHeight: "280px"
|
|
1020
|
-
},
|
|
1021
|
-
menuItem: {
|
|
1022
|
-
background: "transparent",
|
|
1023
|
-
backgroundHover: colors.palettes.transparency["5"],
|
|
1024
|
-
backgroundDisabled: "transparent",
|
|
1025
|
-
backgroundSelected: colors.palettes.transparency["8"],
|
|
1026
|
-
color: colors.palettes.brand,
|
|
1027
|
-
colorDisabled: colors.palettes.transparency["30"],
|
|
1028
|
-
padding: "8px 12px"
|
|
1029
|
-
}
|
|
1030
|
-
},
|
|
1031
|
-
large: {
|
|
1032
|
-
height: "36px",
|
|
1033
|
-
padding: "8px 12px",
|
|
1034
|
-
fontSize: "14px",
|
|
1035
|
-
lineHeight: "20px",
|
|
1036
|
-
borderRadius: "4px",
|
|
1037
|
-
fontWeight: 400,
|
|
1038
|
-
iconSize: { width: "16px", height: "16px" }
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
968
|
// src/light/components/tab.ts
|
|
1043
969
|
var tab = {
|
|
1044
970
|
line: {
|
|
@@ -1283,10 +1209,185 @@ var toolbarButton = {
|
|
|
1283
1209
|
}
|
|
1284
1210
|
};
|
|
1285
1211
|
|
|
1212
|
+
// src/light/components/menu.ts
|
|
1213
|
+
var menu = {
|
|
1214
|
+
// Menu item configuration
|
|
1215
|
+
menuItem: {
|
|
1216
|
+
// Background states
|
|
1217
|
+
background: {
|
|
1218
|
+
normal: "transparent",
|
|
1219
|
+
hover: colors.palettes.transparency["5"],
|
|
1220
|
+
active: colors.palettes.transparency["10"],
|
|
1221
|
+
disabled: "transparent"
|
|
1222
|
+
},
|
|
1223
|
+
// Layout
|
|
1224
|
+
layout: {
|
|
1225
|
+
padding: "6px 12px",
|
|
1226
|
+
gap: "8px"
|
|
1227
|
+
},
|
|
1228
|
+
// Icon configuration
|
|
1229
|
+
icon: {
|
|
1230
|
+
size: { width: "18px", height: "18px" }
|
|
1231
|
+
},
|
|
1232
|
+
// Label configuration
|
|
1233
|
+
label: {
|
|
1234
|
+
color: {
|
|
1235
|
+
normal: colors.palettes.gray["100"],
|
|
1236
|
+
hover: colors.palettes.gray["100"],
|
|
1237
|
+
active: colors.palettes.gray["100"],
|
|
1238
|
+
disabled: colors.palettes.transparency["30"]
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
// Description configuration
|
|
1242
|
+
description: {
|
|
1243
|
+
color: {
|
|
1244
|
+
normal: colors.palettes.transparency["60"],
|
|
1245
|
+
hover: colors.palettes.transparency["60"],
|
|
1246
|
+
active: colors.palettes.transparency["60"],
|
|
1247
|
+
disabled: colors.palettes.transparency["30"]
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
// Active/selected icon (checkmark)
|
|
1251
|
+
activeIcon: {
|
|
1252
|
+
url: ""
|
|
1253
|
+
// Use default checkmark
|
|
1254
|
+
},
|
|
1255
|
+
// Next level icon (arrow for submenu)
|
|
1256
|
+
nextLevelIcon: {
|
|
1257
|
+
url: ""
|
|
1258
|
+
// Use default arrow
|
|
1259
|
+
},
|
|
1260
|
+
// Size configurations
|
|
1261
|
+
size: {
|
|
1262
|
+
// Medium size (S - 28px)
|
|
1263
|
+
medium: {
|
|
1264
|
+
label: {
|
|
1265
|
+
fontSize: "12px",
|
|
1266
|
+
maxWidth: "200px"
|
|
1267
|
+
},
|
|
1268
|
+
description: {
|
|
1269
|
+
fontSize: "10px",
|
|
1270
|
+
maxWidth: "150px"
|
|
1271
|
+
},
|
|
1272
|
+
activeIcon: {
|
|
1273
|
+
size: { width: "16px", height: "16px" }
|
|
1274
|
+
},
|
|
1275
|
+
nextLevelIcon: {
|
|
1276
|
+
size: { width: "16px", height: "16px" }
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
// Large size (M - 36px)
|
|
1280
|
+
large: {
|
|
1281
|
+
label: {
|
|
1282
|
+
fontSize: "13px",
|
|
1283
|
+
maxWidth: "250px"
|
|
1284
|
+
},
|
|
1285
|
+
description: {
|
|
1286
|
+
fontSize: "10px",
|
|
1287
|
+
maxWidth: "180px"
|
|
1288
|
+
},
|
|
1289
|
+
activeIcon: {
|
|
1290
|
+
size: { width: "18px", height: "18px" }
|
|
1291
|
+
},
|
|
1292
|
+
nextLevelIcon: {
|
|
1293
|
+
size: { width: "18px", height: "18px" }
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
// Border configuration
|
|
1299
|
+
border: {
|
|
1300
|
+
color: colors.palettes.transparency["10"],
|
|
1301
|
+
width: "1px",
|
|
1302
|
+
radius: borderRadius.medium
|
|
1303
|
+
},
|
|
1304
|
+
// Divider configuration
|
|
1305
|
+
divider: {
|
|
1306
|
+
background: colors.palettes.transparency["10"],
|
|
1307
|
+
height: "1px",
|
|
1308
|
+
margin: "4px 0"
|
|
1309
|
+
},
|
|
1310
|
+
// Group title configuration
|
|
1311
|
+
groupTitle: {
|
|
1312
|
+
fontSize: "12px",
|
|
1313
|
+
fontWeight: "500",
|
|
1314
|
+
color: colors.palettes.transparency["60"]
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
// src/light/components/dropdown.ts
|
|
1319
|
+
var dropdown = {
|
|
1320
|
+
borderRadius: borderRadius.medium,
|
|
1321
|
+
border: `1px solid ${colors.palettes.transparency["10"]}`,
|
|
1322
|
+
background: colors.palettes.gray["0"],
|
|
1323
|
+
boxShadow: boxShadow.large,
|
|
1324
|
+
padding: "4px 0"
|
|
1325
|
+
};
|
|
1326
|
+
var dropdownButton = {
|
|
1327
|
+
// Color states
|
|
1328
|
+
color: {
|
|
1329
|
+
normal: colors.palettes.gray["100"],
|
|
1330
|
+
hover: colors.palettes.gray["100"],
|
|
1331
|
+
active: colors.palettes.gray["100"],
|
|
1332
|
+
disabled: colors.palettes.transparency["30"]
|
|
1333
|
+
},
|
|
1334
|
+
// Background states
|
|
1335
|
+
background: {
|
|
1336
|
+
normal: colors.palettes.gray["0"],
|
|
1337
|
+
hover: colors.palettes.gray["0"],
|
|
1338
|
+
active: colors.palettes.gray["0"],
|
|
1339
|
+
disabled: colors.palettes.gray["5"]
|
|
1340
|
+
},
|
|
1341
|
+
// Icon configuration
|
|
1342
|
+
icon: {
|
|
1343
|
+
size: { width: "18px", height: "18px" },
|
|
1344
|
+
opacity: {
|
|
1345
|
+
normal: "1",
|
|
1346
|
+
hover: "1",
|
|
1347
|
+
active: "1",
|
|
1348
|
+
disabled: "0.3"
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
// Indicator (arrow) configuration
|
|
1352
|
+
indicator: {
|
|
1353
|
+
url: "",
|
|
1354
|
+
// Use default arrow
|
|
1355
|
+
size: { width: "18px", height: "18px" },
|
|
1356
|
+
rotate: "90deg",
|
|
1357
|
+
// Arrow points right by default, rotate to point down
|
|
1358
|
+
opacity: {
|
|
1359
|
+
normal: "1",
|
|
1360
|
+
hover: "1",
|
|
1361
|
+
active: "1",
|
|
1362
|
+
disabled: "0.3"
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
// Size configurations
|
|
1366
|
+
size: {
|
|
1367
|
+
large: {
|
|
1368
|
+
padding: "10px 16px",
|
|
1369
|
+
fontSize: "13px",
|
|
1370
|
+
height: "40px",
|
|
1371
|
+
gap: "8px",
|
|
1372
|
+
iconSize: { width: "18px", height: "18px" },
|
|
1373
|
+
indicatorSize: { width: "18px", height: "18px" }
|
|
1374
|
+
},
|
|
1375
|
+
medium: {
|
|
1376
|
+
padding: "4px 8px",
|
|
1377
|
+
fontSize: "13px",
|
|
1378
|
+
height: "28px",
|
|
1379
|
+
gap: "8px",
|
|
1380
|
+
iconSize: { width: "18px", height: "18px" },
|
|
1381
|
+
indicatorSize: { width: "18px", height: "18px" }
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1286
1386
|
// src/light/components/index.ts
|
|
1287
1387
|
var components = {
|
|
1288
1388
|
toast,
|
|
1289
1389
|
input,
|
|
1390
|
+
inputSearch,
|
|
1290
1391
|
radio,
|
|
1291
1392
|
checkbox,
|
|
1292
1393
|
switch: switchComponent,
|
|
@@ -1296,7 +1397,9 @@ var components = {
|
|
|
1296
1397
|
slider,
|
|
1297
1398
|
inputNumber,
|
|
1298
1399
|
tooltip,
|
|
1299
|
-
toolbarButton
|
|
1400
|
+
toolbarButton,
|
|
1401
|
+
menu,
|
|
1402
|
+
dropdownButton
|
|
1300
1403
|
};
|
|
1301
1404
|
|
|
1302
1405
|
// src/light/index.ts
|