@team_yumi/ramen 0.4.0-next.20231227-5618a4f-e5f6b9ce4a5e711b5af6aa6a9a1429bf → 0.4.0-next.20240115-49ad45e-e21703df626d136d8f95814fd795c4cb

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.
@@ -1,2 +1,2 @@
1
- import Root from "./root";
1
+ import Root from './root';
2
2
  export default Root;
@@ -1,18 +1,46 @@
1
1
  import React from 'react';
2
2
  import { Collections } from './../../../models';
3
3
  export interface IProps {
4
+ /**
5
+ * Text content
6
+ */
4
7
  children?: React.ReactNode;
8
+ /**
9
+ * Text overflow can be normal or ellipsis
10
+ */
5
11
  textOverflow?: (typeof Collections.ITextOverflow)[number];
12
+ /**
13
+ * Line height can be normal, title or copy
14
+ */
6
15
  lineHeight?: (typeof Collections.ILineHeight)[number];
16
+ /**
17
+ * Font weight can be lighter, normal or bold
18
+ */
7
19
  weight?: (typeof Collections.IWeight)[number];
20
+ /**
21
+ * Font size can be 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. Fewer means bigger
22
+ */
8
23
  fontSize?: (typeof Collections.IFontSize)[number];
24
+ /**
25
+ * Line clamp can be none, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ... 20
26
+ */
9
27
  lineClamp?: (typeof Collections.ILineClamp)[number];
28
+ /**
29
+ * Text align can be 'justify', 'left', 'center' or 'right'
30
+ */
10
31
  textAlign?: (typeof Collections.ITextAlign)[number];
32
+ /**
33
+ * Text color thone can be darkest, dark, medium, dim, light or lightest
34
+ */
11
35
  colorThone?: (typeof Collections.ITextColorThone)[number];
12
36
  /**
13
37
  * Text color can be any color from the palette fundamentals
14
38
  */
15
39
  color?: (typeof Collections.IColor)[number];
40
+ /**
41
+ * If true, the content will be rendered with a skeleton effect
42
+ */
43
+ skeleton?: boolean;
16
44
  }
17
45
  declare const XText: React.FC<IProps>;
18
46
  export default XText;
@@ -18,6 +18,8 @@ export interface IProps {
18
18
  data?: IData;
19
19
  setData: (data: IData) => void;
20
20
  disabled?: boolean;
21
+ selectAllText?: string;
22
+ allowSelectEmpty?: boolean;
21
23
  }
22
24
  declare const XSelectModal: React.FC<IProps>;
23
25
  export default XSelectModal;
package/index.css CHANGED
@@ -629,6 +629,142 @@
629
629
  color: var(--xicon-color-turquoise);
630
630
  }
631
631
 
632
+ .root-module_xskeleton__UmX7A {
633
+ background-color: var(--color-neutral-light);
634
+ display: inline-block;
635
+ height: 1em;
636
+ position: relative;
637
+ overflow: hidden;
638
+ }
639
+
640
+ .root-module_xskeleton__UmX7A::after {
641
+ position: absolute;
642
+ top: 0;
643
+ right: 0;
644
+ bottom: 0;
645
+ left: 0;
646
+ transform: translateX(-100%);
647
+ background: linear-gradient(110deg, #ececec 0%, #f5f5f5 20%, #ececec 60%, #ececec 0%);
648
+ animation: root-module_shimmer__ZfOg- 2s infinite;
649
+ background-size: 200% 100%;
650
+ content: "";
651
+ }
652
+
653
+ @keyframes root-module_shimmer__ZfOg- {
654
+ 100% {
655
+ transform: translateX(100%);
656
+ }
657
+ }
658
+
659
+ .root-module_xskeleton--icon__VY22L {
660
+ width: 24px;
661
+ height: 24px;
662
+ min-width: 24px;
663
+ min-height: 24px;
664
+ border-radius: 50%;
665
+ }
666
+
667
+ .root-module_xskeleton--text__6O-w6 {
668
+ border-radius: 8px;
669
+ }
670
+
671
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-xs__iatOY {
672
+ height: var(--xbox-size-14);
673
+ }
674
+
675
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-s__-y2j2 {
676
+ height: var(--xbox-size-13);
677
+ }
678
+
679
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-m__qSmGh {
680
+ height: var(--xbox-size-11);
681
+ }
682
+
683
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-l__VbENw {
684
+ height: var(--xbox-size-10);
685
+ }
686
+
687
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-xl__W86iA {
688
+ height: var(--xbox-size-9);
689
+ }
690
+
691
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-s__FS3XR {
692
+ width: 25%;
693
+ }
694
+
695
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-m__kuQiB {
696
+ width: 50%;
697
+ }
698
+
699
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-l__9bZo- {
700
+ width: 75%;
701
+ }
702
+
703
+ .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-xl__7PVRT {
704
+ width: 100%;
705
+ }
706
+
707
+ .root-module_xskeleton--tag__Nsgdl {
708
+ min-width: 52px;
709
+ border-radius: 16px;
710
+ height: 24px;
711
+ }
712
+
713
+ .root-module_xskeleton--image__H4Y7y {
714
+ border-radius: 16px;
715
+ }
716
+
717
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-xs__iatOY {
718
+ height: var(--xbox-size-6);
719
+ width: var(--xbox-size-6);
720
+ min-height: var(--xbox-size-6);
721
+ min-width: var(--xbox-size-6);
722
+ }
723
+
724
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-s__-y2j2 {
725
+ height: var(--xbox-size-5);
726
+ width: var(--xbox-size-5);
727
+ min-width: var(--xbox-size-5);
728
+ min-height: var(--xbox-size-5);
729
+ }
730
+
731
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-m__qSmGh {
732
+ height: var(--xbox-size-4);
733
+ min-height: var(--xbox-size-4);
734
+ width: var(--xbox-size-4);
735
+ min-width: var(--xbox-size-4);
736
+ }
737
+
738
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-l__VbENw {
739
+ height: var(--xbox-size-3);
740
+ min-height: var(--xbox-size-3);
741
+ width: var(--xbox-size-3);
742
+ min-width: var(--xbox-size-3);
743
+ }
744
+
745
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-xl__W86iA {
746
+ height: var(--xbox-size-2);
747
+ min-height: var(--xbox-size-2);
748
+ width: var(--xbox-size-2);
749
+ min-width: var(--xbox-size-2);
750
+ }
751
+
752
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-s__FS3XR {
753
+
754
+ }
755
+
756
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-m__kuQiB {
757
+
758
+ }
759
+
760
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-l__9bZo- {
761
+
762
+ }
763
+
764
+ .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-xl__7PVRT {
765
+ width: 100%;
766
+ }
767
+
632
768
  .root-module_x-icon__YwX20 {
633
769
  display: inline-block;
634
770
  box-sizing: content-box;
@@ -922,142 +1058,6 @@
922
1058
  border-radius: var(--xbox-rounding-pill);
923
1059
  }
924
1060
 
925
- .root-module_xskeleton__UmX7A {
926
- background-color: var(--color-neutral-light);
927
- display: inline-block;
928
- height: 1em;
929
- position: relative;
930
- overflow: hidden;
931
- }
932
-
933
- .root-module_xskeleton__UmX7A::after {
934
- position: absolute;
935
- top: 0;
936
- right: 0;
937
- bottom: 0;
938
- left: 0;
939
- transform: translateX(-100%);
940
- background: linear-gradient(110deg, #ececec 0%, #f5f5f5 20%, #ececec 60%, #ececec 0%);
941
- animation: root-module_shimmer__ZfOg- 2s infinite;
942
- background-size: 200% 100%;
943
- content: "";
944
- }
945
-
946
- @keyframes root-module_shimmer__ZfOg- {
947
- 100% {
948
- transform: translateX(100%);
949
- }
950
- }
951
-
952
- .root-module_xskeleton--icon__VY22L {
953
- width: 24px;
954
- height: 24px;
955
- min-width: 24px;
956
- min-height: 24px;
957
- border-radius: 50%;
958
- }
959
-
960
- .root-module_xskeleton--text__6O-w6 {
961
- border-radius: 8px;
962
- }
963
-
964
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-xs__iatOY {
965
- height: var(--xbox-size-14);
966
- }
967
-
968
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-s__-y2j2 {
969
- height: var(--xbox-size-13);
970
- }
971
-
972
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-m__qSmGh {
973
- height: var(--xbox-size-11);
974
- }
975
-
976
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-l__VbENw {
977
- height: var(--xbox-size-10);
978
- }
979
-
980
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--size-xl__W86iA {
981
- height: var(--xbox-size-9);
982
- }
983
-
984
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-s__FS3XR {
985
- width: 25%;
986
- }
987
-
988
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-m__kuQiB {
989
- width: 50%;
990
- }
991
-
992
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-l__9bZo- {
993
- width: 75%;
994
- }
995
-
996
- .root-module_xskeleton--text__6O-w6.root-module_xskeleton--width-xl__7PVRT {
997
- width: 100%;
998
- }
999
-
1000
- .root-module_xskeleton--tag__Nsgdl {
1001
- min-width: 52px;
1002
- border-radius: 16px;
1003
- height: 24px;
1004
- }
1005
-
1006
- .root-module_xskeleton--image__H4Y7y {
1007
- border-radius: 16px;
1008
- }
1009
-
1010
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-xs__iatOY {
1011
- height: var(--xbox-size-6);
1012
- width: var(--xbox-size-6);
1013
- min-height: var(--xbox-size-6);
1014
- min-width: var(--xbox-size-6);
1015
- }
1016
-
1017
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-s__-y2j2 {
1018
- height: var(--xbox-size-5);
1019
- width: var(--xbox-size-5);
1020
- min-width: var(--xbox-size-5);
1021
- min-height: var(--xbox-size-5);
1022
- }
1023
-
1024
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-m__qSmGh {
1025
- height: var(--xbox-size-4);
1026
- min-height: var(--xbox-size-4);
1027
- width: var(--xbox-size-4);
1028
- min-width: var(--xbox-size-4);
1029
- }
1030
-
1031
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-l__VbENw {
1032
- height: var(--xbox-size-3);
1033
- min-height: var(--xbox-size-3);
1034
- width: var(--xbox-size-3);
1035
- min-width: var(--xbox-size-3);
1036
- }
1037
-
1038
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--size-xl__W86iA {
1039
- height: var(--xbox-size-2);
1040
- min-height: var(--xbox-size-2);
1041
- width: var(--xbox-size-2);
1042
- min-width: var(--xbox-size-2);
1043
- }
1044
-
1045
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-s__FS3XR {
1046
-
1047
- }
1048
-
1049
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-m__kuQiB {
1050
-
1051
- }
1052
-
1053
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-l__9bZo- {
1054
-
1055
- }
1056
-
1057
- .root-module_xskeleton--image__H4Y7y.root-module_xskeleton--width-xl__7PVRT {
1058
- width: 100%;
1059
- }
1060
-
1061
1061
  .root-module_xbuttonicon__4dXbb {
1062
1062
  display: flex;
1063
1063
  align-items: center;