@common-origin/design-system 2.13.0 → 2.15.0
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/README.md +50 -184
- package/dist/client.esm.js +767 -466
- package/dist/client.esm.js.map +1 -1
- package/dist/client.js +766 -465
- package/dist/client.js.map +1 -1
- package/dist/components/atoms/Badge/Badge.d.ts +2 -0
- package/dist/components/atoms/Chip/shared/utils.d.ts +3 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +4 -0
- package/dist/components/layout/GridSystem/GridSystem.d.ts +6 -0
- package/dist/components/molecules/Alert/Alert.d.ts +2 -1
- package/dist/components/molecules/CardLarge/CardLarge.d.ts +3 -1
- package/dist/components/molecules/CardSmall/CardSmall.d.ts +2 -0
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/molecules/FeatureBlock/FeatureBlock.d.ts +2 -0
- package/dist/components/molecules/PageTitle/PageTitle.d.ts +13 -0
- package/dist/components/molecules/Sheet/Sheet.d.ts +2 -2
- package/dist/data.esm.js +236 -4
- package/dist/data.esm.js.map +1 -1
- package/dist/data.js +236 -4
- package/dist/data.js.map +1 -1
- package/dist/lib/styleUtils.d.ts +3 -0
- package/dist/lib/usePresence.d.ts +16 -0
- package/dist/styles/tokens.json +236 -4
- package/dist/tokens/index.esm.js +236 -4
- package/dist/tokens/index.esm.js.map +1 -1
- package/dist/tokens/index.js +236 -4
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/types/tokens.d.ts +232 -0
- package/dist/types/tokens.d.ts +232 -0
- package/package.json +5 -7
package/dist/tokens/index.esm.js
CHANGED
|
@@ -75,17 +75,29 @@ var base = {
|
|
|
75
75
|
"8": "2rem",
|
|
76
76
|
"9": "2.25rem",
|
|
77
77
|
"10": "2.5rem",
|
|
78
|
+
"11": "2.75rem",
|
|
78
79
|
"12": "3rem",
|
|
79
80
|
"14": "3.5rem",
|
|
81
|
+
"15": "3.75rem",
|
|
80
82
|
"16": "4rem",
|
|
83
|
+
"18": "4.5rem",
|
|
81
84
|
"20": "5rem",
|
|
82
85
|
"24": "6rem",
|
|
83
86
|
"28": "7rem",
|
|
87
|
+
"30": "7.5rem",
|
|
84
88
|
"32": "8rem",
|
|
85
89
|
"40": "10rem",
|
|
90
|
+
"45": "11.25rem",
|
|
86
91
|
"48": "12rem",
|
|
92
|
+
"50": "12.5rem",
|
|
87
93
|
"56": "14rem",
|
|
88
94
|
"64": "16rem",
|
|
95
|
+
"75": "18.75rem",
|
|
96
|
+
"90": "22.5rem",
|
|
97
|
+
"100": "25rem",
|
|
98
|
+
"140": "35rem",
|
|
99
|
+
"180": "45rem",
|
|
100
|
+
"192": "48rem",
|
|
89
101
|
auto: "auto",
|
|
90
102
|
full: "100%",
|
|
91
103
|
screen: "100vh",
|
|
@@ -275,7 +287,8 @@ var base = {
|
|
|
275
287
|
"8": "2.5rem",
|
|
276
288
|
"9": "3rem",
|
|
277
289
|
"10": "4.5rem",
|
|
278
|
-
"11": "5rem"
|
|
290
|
+
"11": "5rem",
|
|
291
|
+
none: "1"
|
|
279
292
|
},
|
|
280
293
|
letterSpacing: {
|
|
281
294
|
"0": "-0.125rem",
|
|
@@ -413,6 +426,9 @@ var component = {
|
|
|
413
426
|
}
|
|
414
427
|
},
|
|
415
428
|
chip: {
|
|
429
|
+
closeButton: {
|
|
430
|
+
size: "1.25rem"
|
|
431
|
+
},
|
|
416
432
|
"default": {
|
|
417
433
|
backgroundColor: "#e9ecef",
|
|
418
434
|
textColor: "#212529",
|
|
@@ -648,6 +664,9 @@ var component = {
|
|
|
648
664
|
textColor: "#adb5bd",
|
|
649
665
|
borderColor: "#dee2e6",
|
|
650
666
|
cursor: "not-allowed"
|
|
667
|
+
},
|
|
668
|
+
textarea: {
|
|
669
|
+
minHeight: "7.5rem"
|
|
651
670
|
}
|
|
652
671
|
},
|
|
653
672
|
badge: {
|
|
@@ -657,12 +676,138 @@ var component = {
|
|
|
657
676
|
count: {
|
|
658
677
|
minWidth: "1rem",
|
|
659
678
|
height: "1rem",
|
|
660
|
-
paddingX: "0.25rem"
|
|
679
|
+
paddingX: "0.25rem",
|
|
680
|
+
lineHeight: "1"
|
|
661
681
|
},
|
|
662
682
|
ring: {
|
|
663
683
|
width: "0.125rem"
|
|
664
684
|
},
|
|
665
|
-
borderRadius: "10rem"
|
|
685
|
+
borderRadius: "10rem",
|
|
686
|
+
label: {
|
|
687
|
+
fontWeight: "500",
|
|
688
|
+
typography: {
|
|
689
|
+
small: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
690
|
+
medium: "400 0.875rem/1.25rem 'Inter', sans-serif"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
field: {
|
|
695
|
+
gap: "0.5rem",
|
|
696
|
+
label: {
|
|
697
|
+
typography: "600 0.875rem/1.25rem 'Inter', sans-serif",
|
|
698
|
+
color: "#212529",
|
|
699
|
+
colorDisabled: "#adb5bd",
|
|
700
|
+
gap: "0.25rem"
|
|
701
|
+
},
|
|
702
|
+
requiredIndicator: {
|
|
703
|
+
color: "#D31510",
|
|
704
|
+
fontWeight: "700"
|
|
705
|
+
},
|
|
706
|
+
helperText: {
|
|
707
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
708
|
+
color: "#495057",
|
|
709
|
+
colorError: "#D31510"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
alert: {
|
|
713
|
+
title: {
|
|
714
|
+
typography: "500 1.125rem/1.5rem 'Inter', sans-serif",
|
|
715
|
+
fontWeight: "600",
|
|
716
|
+
lineHeight: "1.25rem"
|
|
717
|
+
},
|
|
718
|
+
message: {
|
|
719
|
+
typography: "400 1rem/1.5rem 'Inter', sans-serif",
|
|
720
|
+
lineHeight: "1.25rem"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
tabBar: {
|
|
724
|
+
badge: {
|
|
725
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
726
|
+
fontWeight: "700",
|
|
727
|
+
size: "1.25rem"
|
|
728
|
+
},
|
|
729
|
+
scrollbar: {
|
|
730
|
+
height: "0.25rem"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
searchField: {
|
|
734
|
+
sectionHeader: {
|
|
735
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
736
|
+
letterSpacing: "0.125rem"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
avatar: {
|
|
740
|
+
initials: {
|
|
741
|
+
fontFamily: "'Inter', sans-serif",
|
|
742
|
+
fontWeight: "500",
|
|
743
|
+
lineHeight: "1",
|
|
744
|
+
fontSize: {
|
|
745
|
+
xs: "0.75rem",
|
|
746
|
+
sm: "0.875rem",
|
|
747
|
+
md: "1rem",
|
|
748
|
+
lg: "1.125rem",
|
|
749
|
+
xl: "1.25rem"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
codeBlock: {
|
|
754
|
+
fontFamily: "Menlo, Monaco, Consolas, Courier New, monospace",
|
|
755
|
+
fontSize: "0.75rem",
|
|
756
|
+
lineHeight: "1.25rem"
|
|
757
|
+
},
|
|
758
|
+
slider: {
|
|
759
|
+
thumb: {
|
|
760
|
+
shadow: {
|
|
761
|
+
"default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
762
|
+
hover: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
763
|
+
active: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
accountCard: {
|
|
768
|
+
header: {
|
|
769
|
+
minHeight: "3rem"
|
|
770
|
+
},
|
|
771
|
+
minWidth: "18.75rem"
|
|
772
|
+
},
|
|
773
|
+
breadcrumbs: {
|
|
774
|
+
item: {
|
|
775
|
+
maxWidth: "11.25rem"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
cardLarge: {
|
|
779
|
+
maxWidth: "48rem"
|
|
780
|
+
},
|
|
781
|
+
checkbox: {
|
|
782
|
+
box: {
|
|
783
|
+
size: "1.25rem"
|
|
784
|
+
},
|
|
785
|
+
row: {
|
|
786
|
+
minHeight: "2rem"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
emptyState: {
|
|
790
|
+
illustration: {
|
|
791
|
+
small: "5rem",
|
|
792
|
+
medium: "7.5rem",
|
|
793
|
+
large: "12.5rem"
|
|
794
|
+
},
|
|
795
|
+
maxWidth: "25rem",
|
|
796
|
+
text: {
|
|
797
|
+
maxWidth: "22.5rem"
|
|
798
|
+
},
|
|
799
|
+
actions: {
|
|
800
|
+
maxWidth: "18.75rem"
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
listItem: {
|
|
804
|
+
expandedIndent: {
|
|
805
|
+
compact: "3rem",
|
|
806
|
+
comfortable: "3.75rem"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
transactionListItem: {
|
|
810
|
+
minHeight: "4.5rem"
|
|
666
811
|
},
|
|
667
812
|
$ref: "./component/index.json"
|
|
668
813
|
};
|
|
@@ -675,12 +820,63 @@ var semantic = {
|
|
|
675
820
|
overlay: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
676
821
|
sticky: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"
|
|
677
822
|
},
|
|
823
|
+
breakpoint: {
|
|
824
|
+
xs: "0px",
|
|
825
|
+
sm: "640px",
|
|
826
|
+
md: "768px",
|
|
827
|
+
lg: "1024px",
|
|
828
|
+
xl: "1280px",
|
|
829
|
+
"2xl": "1536px"
|
|
830
|
+
},
|
|
831
|
+
opacity: {
|
|
832
|
+
disabled: "0.5",
|
|
833
|
+
full: "1"
|
|
834
|
+
},
|
|
835
|
+
fontFamily: {
|
|
836
|
+
body: "'Inter', sans-serif",
|
|
837
|
+
monospace: "Menlo, Monaco, Consolas, Courier New, monospace"
|
|
838
|
+
},
|
|
839
|
+
fontSize: {
|
|
840
|
+
xs: "0.75rem",
|
|
841
|
+
sm: "0.875rem",
|
|
842
|
+
md: "1rem",
|
|
843
|
+
lg: "1.125rem",
|
|
844
|
+
xl: "1.25rem"
|
|
845
|
+
},
|
|
846
|
+
lineHeight: {
|
|
847
|
+
none: "1",
|
|
848
|
+
tight: "1.25rem",
|
|
849
|
+
normal: "1.5rem"
|
|
850
|
+
},
|
|
851
|
+
letterSpacing: {
|
|
852
|
+
tighter: "-0.125rem",
|
|
853
|
+
tight: "-0.0625rem",
|
|
854
|
+
normal: "0rem",
|
|
855
|
+
wide: "0.125rem"
|
|
856
|
+
},
|
|
857
|
+
fontWeight: {
|
|
858
|
+
regular: "400",
|
|
859
|
+
medium: "500",
|
|
860
|
+
semibold: "600",
|
|
861
|
+
bold: "700"
|
|
862
|
+
},
|
|
863
|
+
zIndex: {
|
|
864
|
+
sticky: "10",
|
|
865
|
+
dropdown: "1000",
|
|
866
|
+
overlay: "1010",
|
|
867
|
+
modal: "1020"
|
|
868
|
+
},
|
|
678
869
|
border: {
|
|
679
870
|
"default": "0.0625rem solid #e9ecef",
|
|
680
871
|
subtle: "0.0625rem solid #dee2e6",
|
|
681
872
|
strong: "0.0625rem solid #343a40",
|
|
682
873
|
focus: "0.125rem solid #343a40",
|
|
683
874
|
tooltip: "0.125rem dotted #dee2e6",
|
|
875
|
+
width: {
|
|
876
|
+
thin: "0.0625rem",
|
|
877
|
+
thick: "0.125rem"
|
|
878
|
+
},
|
|
879
|
+
focusOffset: "0.125rem",
|
|
684
880
|
radius: {
|
|
685
881
|
none: "0",
|
|
686
882
|
xs: "0.125rem",
|
|
@@ -694,6 +890,31 @@ var semantic = {
|
|
|
694
890
|
}
|
|
695
891
|
},
|
|
696
892
|
size: {
|
|
893
|
+
touchTarget: "2.75rem",
|
|
894
|
+
overlay: {
|
|
895
|
+
sm: "25rem",
|
|
896
|
+
md: "35rem",
|
|
897
|
+
lg: "45rem"
|
|
898
|
+
},
|
|
899
|
+
menu: {
|
|
900
|
+
maxHeight: "18.75rem"
|
|
901
|
+
},
|
|
902
|
+
dimension: {
|
|
903
|
+
"1": "0.25rem",
|
|
904
|
+
"5": "1.25rem",
|
|
905
|
+
"8": "2rem",
|
|
906
|
+
"12": "3rem",
|
|
907
|
+
"15": "3.75rem",
|
|
908
|
+
"18": "4.5rem",
|
|
909
|
+
"20": "5rem",
|
|
910
|
+
"30": "7.5rem",
|
|
911
|
+
"45": "11.25rem",
|
|
912
|
+
"50": "12.5rem",
|
|
913
|
+
"75": "18.75rem",
|
|
914
|
+
"90": "22.5rem",
|
|
915
|
+
"100": "25rem",
|
|
916
|
+
"192": "48rem"
|
|
917
|
+
},
|
|
697
918
|
icon: {
|
|
698
919
|
xs: "0.75rem",
|
|
699
920
|
sm: "1rem",
|
|
@@ -741,6 +962,7 @@ var semantic = {
|
|
|
741
962
|
"8xl": "3.5rem",
|
|
742
963
|
"9xl": "4rem",
|
|
743
964
|
"10xl": "5rem",
|
|
965
|
+
"11xl": "6rem",
|
|
744
966
|
auto: "auto"
|
|
745
967
|
}
|
|
746
968
|
},
|
|
@@ -777,7 +999,8 @@ var semantic = {
|
|
|
777
999
|
page: "#f8f9fa",
|
|
778
1000
|
overlay: "rgba(33, 37, 41, 0.5)",
|
|
779
1001
|
"hover-overlay": "rgba(33, 37, 41, 0.1)",
|
|
780
|
-
"active-overlay": "rgba(33, 37, 41, 0.15)"
|
|
1002
|
+
"active-overlay": "rgba(33, 37, 41, 0.15)",
|
|
1003
|
+
"inverse-overlay": "rgba(255, 255, 255, 0.2)"
|
|
781
1004
|
},
|
|
782
1005
|
border: {
|
|
783
1006
|
"default": "#e9ecef",
|
|
@@ -870,6 +1093,15 @@ var semantic = {
|
|
|
870
1093
|
breadcrumb: "400 0.75rem/1.125rem 'Inter', sans-serif"
|
|
871
1094
|
},
|
|
872
1095
|
motion: {
|
|
1096
|
+
duration: {
|
|
1097
|
+
normal: "200ms",
|
|
1098
|
+
fast: "150ms",
|
|
1099
|
+
slow: "300ms"
|
|
1100
|
+
},
|
|
1101
|
+
easing: {
|
|
1102
|
+
easeInOut: "ease-in-out",
|
|
1103
|
+
easeOut: "ease-out"
|
|
1104
|
+
},
|
|
873
1105
|
transition: {
|
|
874
1106
|
fast: "all 150ms ease-out",
|
|
875
1107
|
normal: "all 200ms ease-in-out",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/types/tokens.ts","../../src/tokens.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n// Re-declared as a const so emitted .d.ts files inline the token shape instead of importing JSON,\n// which consumers can only resolve with `resolveJsonModule`.\nexport const tokens = tokensJson\n\nexport type Tokens = typeof tokens\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// Tokens-only export for standalone usage\nimport { tokens } from './types/tokens'\n\nexport { tokens }\nexport default tokens\n\nexport type {\n Tokens,\n TokensBase,\n TokensSemantic,\n TokensComponent\n} from './types/tokens'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/types/tokens.ts","../../src/tokens.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n// Re-declared as a const so emitted .d.ts files inline the token shape instead of importing JSON,\n// which consumers can only resolve with `resolveJsonModule`.\nexport const tokens = tokensJson\n\nexport type Tokens = typeof tokens\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// Tokens-only export for standalone usage\nimport { tokens } from './types/tokens'\n\nexport { tokens }\nexport default tokens\n\nexport type {\n Tokens,\n TokensBase,\n TokensSemantic,\n TokensComponent\n} from './types/tokens'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA;AACO,IAAM,MAAM,GAAG;;ACJtB;;;;"}
|
package/dist/tokens/index.js
CHANGED
|
@@ -79,17 +79,29 @@ var base = {
|
|
|
79
79
|
"8": "2rem",
|
|
80
80
|
"9": "2.25rem",
|
|
81
81
|
"10": "2.5rem",
|
|
82
|
+
"11": "2.75rem",
|
|
82
83
|
"12": "3rem",
|
|
83
84
|
"14": "3.5rem",
|
|
85
|
+
"15": "3.75rem",
|
|
84
86
|
"16": "4rem",
|
|
87
|
+
"18": "4.5rem",
|
|
85
88
|
"20": "5rem",
|
|
86
89
|
"24": "6rem",
|
|
87
90
|
"28": "7rem",
|
|
91
|
+
"30": "7.5rem",
|
|
88
92
|
"32": "8rem",
|
|
89
93
|
"40": "10rem",
|
|
94
|
+
"45": "11.25rem",
|
|
90
95
|
"48": "12rem",
|
|
96
|
+
"50": "12.5rem",
|
|
91
97
|
"56": "14rem",
|
|
92
98
|
"64": "16rem",
|
|
99
|
+
"75": "18.75rem",
|
|
100
|
+
"90": "22.5rem",
|
|
101
|
+
"100": "25rem",
|
|
102
|
+
"140": "35rem",
|
|
103
|
+
"180": "45rem",
|
|
104
|
+
"192": "48rem",
|
|
93
105
|
auto: "auto",
|
|
94
106
|
full: "100%",
|
|
95
107
|
screen: "100vh",
|
|
@@ -279,7 +291,8 @@ var base = {
|
|
|
279
291
|
"8": "2.5rem",
|
|
280
292
|
"9": "3rem",
|
|
281
293
|
"10": "4.5rem",
|
|
282
|
-
"11": "5rem"
|
|
294
|
+
"11": "5rem",
|
|
295
|
+
none: "1"
|
|
283
296
|
},
|
|
284
297
|
letterSpacing: {
|
|
285
298
|
"0": "-0.125rem",
|
|
@@ -417,6 +430,9 @@ var component = {
|
|
|
417
430
|
}
|
|
418
431
|
},
|
|
419
432
|
chip: {
|
|
433
|
+
closeButton: {
|
|
434
|
+
size: "1.25rem"
|
|
435
|
+
},
|
|
420
436
|
"default": {
|
|
421
437
|
backgroundColor: "#e9ecef",
|
|
422
438
|
textColor: "#212529",
|
|
@@ -652,6 +668,9 @@ var component = {
|
|
|
652
668
|
textColor: "#adb5bd",
|
|
653
669
|
borderColor: "#dee2e6",
|
|
654
670
|
cursor: "not-allowed"
|
|
671
|
+
},
|
|
672
|
+
textarea: {
|
|
673
|
+
minHeight: "7.5rem"
|
|
655
674
|
}
|
|
656
675
|
},
|
|
657
676
|
badge: {
|
|
@@ -661,12 +680,138 @@ var component = {
|
|
|
661
680
|
count: {
|
|
662
681
|
minWidth: "1rem",
|
|
663
682
|
height: "1rem",
|
|
664
|
-
paddingX: "0.25rem"
|
|
683
|
+
paddingX: "0.25rem",
|
|
684
|
+
lineHeight: "1"
|
|
665
685
|
},
|
|
666
686
|
ring: {
|
|
667
687
|
width: "0.125rem"
|
|
668
688
|
},
|
|
669
|
-
borderRadius: "10rem"
|
|
689
|
+
borderRadius: "10rem",
|
|
690
|
+
label: {
|
|
691
|
+
fontWeight: "500",
|
|
692
|
+
typography: {
|
|
693
|
+
small: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
694
|
+
medium: "400 0.875rem/1.25rem 'Inter', sans-serif"
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
field: {
|
|
699
|
+
gap: "0.5rem",
|
|
700
|
+
label: {
|
|
701
|
+
typography: "600 0.875rem/1.25rem 'Inter', sans-serif",
|
|
702
|
+
color: "#212529",
|
|
703
|
+
colorDisabled: "#adb5bd",
|
|
704
|
+
gap: "0.25rem"
|
|
705
|
+
},
|
|
706
|
+
requiredIndicator: {
|
|
707
|
+
color: "#D31510",
|
|
708
|
+
fontWeight: "700"
|
|
709
|
+
},
|
|
710
|
+
helperText: {
|
|
711
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
712
|
+
color: "#495057",
|
|
713
|
+
colorError: "#D31510"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
alert: {
|
|
717
|
+
title: {
|
|
718
|
+
typography: "500 1.125rem/1.5rem 'Inter', sans-serif",
|
|
719
|
+
fontWeight: "600",
|
|
720
|
+
lineHeight: "1.25rem"
|
|
721
|
+
},
|
|
722
|
+
message: {
|
|
723
|
+
typography: "400 1rem/1.5rem 'Inter', sans-serif",
|
|
724
|
+
lineHeight: "1.25rem"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
tabBar: {
|
|
728
|
+
badge: {
|
|
729
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
730
|
+
fontWeight: "700",
|
|
731
|
+
size: "1.25rem"
|
|
732
|
+
},
|
|
733
|
+
scrollbar: {
|
|
734
|
+
height: "0.25rem"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
searchField: {
|
|
738
|
+
sectionHeader: {
|
|
739
|
+
typography: "400 0.75rem/1rem 'Inter', sans-serif",
|
|
740
|
+
letterSpacing: "0.125rem"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
avatar: {
|
|
744
|
+
initials: {
|
|
745
|
+
fontFamily: "'Inter', sans-serif",
|
|
746
|
+
fontWeight: "500",
|
|
747
|
+
lineHeight: "1",
|
|
748
|
+
fontSize: {
|
|
749
|
+
xs: "0.75rem",
|
|
750
|
+
sm: "0.875rem",
|
|
751
|
+
md: "1rem",
|
|
752
|
+
lg: "1.125rem",
|
|
753
|
+
xl: "1.25rem"
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
codeBlock: {
|
|
758
|
+
fontFamily: "Menlo, Monaco, Consolas, Courier New, monospace",
|
|
759
|
+
fontSize: "0.75rem",
|
|
760
|
+
lineHeight: "1.25rem"
|
|
761
|
+
},
|
|
762
|
+
slider: {
|
|
763
|
+
thumb: {
|
|
764
|
+
shadow: {
|
|
765
|
+
"default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
766
|
+
hover: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
767
|
+
active: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
accountCard: {
|
|
772
|
+
header: {
|
|
773
|
+
minHeight: "3rem"
|
|
774
|
+
},
|
|
775
|
+
minWidth: "18.75rem"
|
|
776
|
+
},
|
|
777
|
+
breadcrumbs: {
|
|
778
|
+
item: {
|
|
779
|
+
maxWidth: "11.25rem"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
cardLarge: {
|
|
783
|
+
maxWidth: "48rem"
|
|
784
|
+
},
|
|
785
|
+
checkbox: {
|
|
786
|
+
box: {
|
|
787
|
+
size: "1.25rem"
|
|
788
|
+
},
|
|
789
|
+
row: {
|
|
790
|
+
minHeight: "2rem"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
emptyState: {
|
|
794
|
+
illustration: {
|
|
795
|
+
small: "5rem",
|
|
796
|
+
medium: "7.5rem",
|
|
797
|
+
large: "12.5rem"
|
|
798
|
+
},
|
|
799
|
+
maxWidth: "25rem",
|
|
800
|
+
text: {
|
|
801
|
+
maxWidth: "22.5rem"
|
|
802
|
+
},
|
|
803
|
+
actions: {
|
|
804
|
+
maxWidth: "18.75rem"
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
listItem: {
|
|
808
|
+
expandedIndent: {
|
|
809
|
+
compact: "3rem",
|
|
810
|
+
comfortable: "3.75rem"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
transactionListItem: {
|
|
814
|
+
minHeight: "4.5rem"
|
|
670
815
|
},
|
|
671
816
|
$ref: "./component/index.json"
|
|
672
817
|
};
|
|
@@ -679,12 +824,63 @@ var semantic = {
|
|
|
679
824
|
overlay: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
680
825
|
sticky: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"
|
|
681
826
|
},
|
|
827
|
+
breakpoint: {
|
|
828
|
+
xs: "0px",
|
|
829
|
+
sm: "640px",
|
|
830
|
+
md: "768px",
|
|
831
|
+
lg: "1024px",
|
|
832
|
+
xl: "1280px",
|
|
833
|
+
"2xl": "1536px"
|
|
834
|
+
},
|
|
835
|
+
opacity: {
|
|
836
|
+
disabled: "0.5",
|
|
837
|
+
full: "1"
|
|
838
|
+
},
|
|
839
|
+
fontFamily: {
|
|
840
|
+
body: "'Inter', sans-serif",
|
|
841
|
+
monospace: "Menlo, Monaco, Consolas, Courier New, monospace"
|
|
842
|
+
},
|
|
843
|
+
fontSize: {
|
|
844
|
+
xs: "0.75rem",
|
|
845
|
+
sm: "0.875rem",
|
|
846
|
+
md: "1rem",
|
|
847
|
+
lg: "1.125rem",
|
|
848
|
+
xl: "1.25rem"
|
|
849
|
+
},
|
|
850
|
+
lineHeight: {
|
|
851
|
+
none: "1",
|
|
852
|
+
tight: "1.25rem",
|
|
853
|
+
normal: "1.5rem"
|
|
854
|
+
},
|
|
855
|
+
letterSpacing: {
|
|
856
|
+
tighter: "-0.125rem",
|
|
857
|
+
tight: "-0.0625rem",
|
|
858
|
+
normal: "0rem",
|
|
859
|
+
wide: "0.125rem"
|
|
860
|
+
},
|
|
861
|
+
fontWeight: {
|
|
862
|
+
regular: "400",
|
|
863
|
+
medium: "500",
|
|
864
|
+
semibold: "600",
|
|
865
|
+
bold: "700"
|
|
866
|
+
},
|
|
867
|
+
zIndex: {
|
|
868
|
+
sticky: "10",
|
|
869
|
+
dropdown: "1000",
|
|
870
|
+
overlay: "1010",
|
|
871
|
+
modal: "1020"
|
|
872
|
+
},
|
|
682
873
|
border: {
|
|
683
874
|
"default": "0.0625rem solid #e9ecef",
|
|
684
875
|
subtle: "0.0625rem solid #dee2e6",
|
|
685
876
|
strong: "0.0625rem solid #343a40",
|
|
686
877
|
focus: "0.125rem solid #343a40",
|
|
687
878
|
tooltip: "0.125rem dotted #dee2e6",
|
|
879
|
+
width: {
|
|
880
|
+
thin: "0.0625rem",
|
|
881
|
+
thick: "0.125rem"
|
|
882
|
+
},
|
|
883
|
+
focusOffset: "0.125rem",
|
|
688
884
|
radius: {
|
|
689
885
|
none: "0",
|
|
690
886
|
xs: "0.125rem",
|
|
@@ -698,6 +894,31 @@ var semantic = {
|
|
|
698
894
|
}
|
|
699
895
|
},
|
|
700
896
|
size: {
|
|
897
|
+
touchTarget: "2.75rem",
|
|
898
|
+
overlay: {
|
|
899
|
+
sm: "25rem",
|
|
900
|
+
md: "35rem",
|
|
901
|
+
lg: "45rem"
|
|
902
|
+
},
|
|
903
|
+
menu: {
|
|
904
|
+
maxHeight: "18.75rem"
|
|
905
|
+
},
|
|
906
|
+
dimension: {
|
|
907
|
+
"1": "0.25rem",
|
|
908
|
+
"5": "1.25rem",
|
|
909
|
+
"8": "2rem",
|
|
910
|
+
"12": "3rem",
|
|
911
|
+
"15": "3.75rem",
|
|
912
|
+
"18": "4.5rem",
|
|
913
|
+
"20": "5rem",
|
|
914
|
+
"30": "7.5rem",
|
|
915
|
+
"45": "11.25rem",
|
|
916
|
+
"50": "12.5rem",
|
|
917
|
+
"75": "18.75rem",
|
|
918
|
+
"90": "22.5rem",
|
|
919
|
+
"100": "25rem",
|
|
920
|
+
"192": "48rem"
|
|
921
|
+
},
|
|
701
922
|
icon: {
|
|
702
923
|
xs: "0.75rem",
|
|
703
924
|
sm: "1rem",
|
|
@@ -745,6 +966,7 @@ var semantic = {
|
|
|
745
966
|
"8xl": "3.5rem",
|
|
746
967
|
"9xl": "4rem",
|
|
747
968
|
"10xl": "5rem",
|
|
969
|
+
"11xl": "6rem",
|
|
748
970
|
auto: "auto"
|
|
749
971
|
}
|
|
750
972
|
},
|
|
@@ -781,7 +1003,8 @@ var semantic = {
|
|
|
781
1003
|
page: "#f8f9fa",
|
|
782
1004
|
overlay: "rgba(33, 37, 41, 0.5)",
|
|
783
1005
|
"hover-overlay": "rgba(33, 37, 41, 0.1)",
|
|
784
|
-
"active-overlay": "rgba(33, 37, 41, 0.15)"
|
|
1006
|
+
"active-overlay": "rgba(33, 37, 41, 0.15)",
|
|
1007
|
+
"inverse-overlay": "rgba(255, 255, 255, 0.2)"
|
|
785
1008
|
},
|
|
786
1009
|
border: {
|
|
787
1010
|
"default": "#e9ecef",
|
|
@@ -874,6 +1097,15 @@ var semantic = {
|
|
|
874
1097
|
breadcrumb: "400 0.75rem/1.125rem 'Inter', sans-serif"
|
|
875
1098
|
},
|
|
876
1099
|
motion: {
|
|
1100
|
+
duration: {
|
|
1101
|
+
normal: "200ms",
|
|
1102
|
+
fast: "150ms",
|
|
1103
|
+
slow: "300ms"
|
|
1104
|
+
},
|
|
1105
|
+
easing: {
|
|
1106
|
+
easeInOut: "ease-in-out",
|
|
1107
|
+
easeOut: "ease-out"
|
|
1108
|
+
},
|
|
877
1109
|
transition: {
|
|
878
1110
|
fast: "all 150ms ease-out",
|
|
879
1111
|
normal: "all 200ms ease-in-out",
|
package/dist/tokens/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/types/tokens.ts","../../src/tokens.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n// Re-declared as a const so emitted .d.ts files inline the token shape instead of importing JSON,\n// which consumers can only resolve with `resolveJsonModule`.\nexport const tokens = tokensJson\n\nexport type Tokens = typeof tokens\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// Tokens-only export for standalone usage\nimport { tokens } from './types/tokens'\n\nexport { tokens }\nexport default tokens\n\nexport type {\n Tokens,\n TokensBase,\n TokensSemantic,\n TokensComponent\n} from './types/tokens'\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/types/tokens.ts","../../src/tokens.ts"],"sourcesContent":["import tokensJson from '../styles/tokens.json'\n\n// Re-declared as a const so emitted .d.ts files inline the token shape instead of importing JSON,\n// which consumers can only resolve with `resolveJsonModule`.\nexport const tokens = tokensJson\n\nexport type Tokens = typeof tokens\nexport type TokensBase = Tokens['base']\nexport type TokensSemantic = Tokens['semantic']\nexport type TokensComponent = Tokens['component']\n","// Tokens-only export for standalone usage\nimport { tokens } from './types/tokens'\n\nexport { tokens }\nexport default tokens\n\nexport type {\n Tokens,\n TokensBase,\n TokensSemantic,\n TokensComponent\n} from './types/tokens'\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA;AACO,IAAM,MAAM,GAAG;;ACJtB;;;;;"}
|