@sinco/react 1.0.1-rc.0 → 1.0.1-rc.2
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/index.js +145 -108
- package/package.json +1 -1
- package/src/lib/Theme/breackpoints.d.ts +2 -0
- package/src/lib/Theme/components.d.ts +2 -1
- package/src/lib/Theme/mixins.d.ts +3 -0
- package/src/lib/Theme/palette.d.ts +2 -1
- package/src/lib/Theme/shadows.d.ts +2 -1
- package/src/lib/Theme/typography.d.ts +2 -1
package/index.js
CHANGED
|
@@ -7485,29 +7485,45 @@ var WarningRounded = createSvgIcon( /*#__PURE__*/jsx("path", {
|
|
|
7485
7485
|
d: "M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"
|
|
7486
7486
|
}), 'WarningRounded');
|
|
7487
7487
|
|
|
7488
|
-
const
|
|
7489
|
-
|
|
7488
|
+
const components = {
|
|
7489
|
+
MuiBackdrop: {
|
|
7490
7490
|
styleOverrides: {
|
|
7491
7491
|
root: {
|
|
7492
|
-
|
|
7492
|
+
"&.MuiBackdrop-root": {
|
|
7493
|
+
backgroundColor: "#f0f0f099",
|
|
7494
|
+
backdropFilter: "blur(2px) !important"
|
|
7495
|
+
}
|
|
7493
7496
|
}
|
|
7494
7497
|
}
|
|
7495
7498
|
},
|
|
7496
|
-
|
|
7499
|
+
MuiRating: {
|
|
7497
7500
|
defaultProps: {
|
|
7498
|
-
|
|
7501
|
+
size: 'small'
|
|
7502
|
+
},
|
|
7503
|
+
styleOverrides: {
|
|
7504
|
+
sizeSmall: {
|
|
7505
|
+
fontSize: 18
|
|
7506
|
+
},
|
|
7507
|
+
sizeMedium: {
|
|
7508
|
+
fontSize: 24
|
|
7509
|
+
},
|
|
7510
|
+
sizeLarge: {
|
|
7511
|
+
fontSize: 30
|
|
7512
|
+
}
|
|
7499
7513
|
}
|
|
7500
7514
|
},
|
|
7501
|
-
|
|
7515
|
+
MuiToolbar: {
|
|
7502
7516
|
styleOverrides: {
|
|
7503
7517
|
root: {
|
|
7504
|
-
"
|
|
7505
|
-
backgroundColor: "#f0f0f099",
|
|
7506
|
-
backdropFilter: "blur(2px) !important"
|
|
7507
|
-
}
|
|
7518
|
+
height: "48px"
|
|
7508
7519
|
}
|
|
7509
7520
|
}
|
|
7510
7521
|
},
|
|
7522
|
+
MuiDataGrid: {
|
|
7523
|
+
defaultProps: {
|
|
7524
|
+
density: "compact"
|
|
7525
|
+
}
|
|
7526
|
+
},
|
|
7511
7527
|
MuiDialogContent: {
|
|
7512
7528
|
styleOverrides: {
|
|
7513
7529
|
root: {
|
|
@@ -7545,26 +7561,18 @@ const Componentes = {
|
|
|
7545
7561
|
}
|
|
7546
7562
|
},
|
|
7547
7563
|
MuiButton: {
|
|
7548
|
-
defaultProps: {
|
|
7549
|
-
size: "small"
|
|
7550
|
-
},
|
|
7551
7564
|
styleOverrides: {
|
|
7552
7565
|
fullWidth: {
|
|
7553
|
-
width: '100%
|
|
7566
|
+
width: '100%'
|
|
7554
7567
|
},
|
|
7555
7568
|
sizeSmall: {
|
|
7556
|
-
|
|
7557
|
-
fontSize: 12,
|
|
7558
|
-
'@media(max-width: 600px)': {
|
|
7559
|
-
fontSize: 14
|
|
7560
|
-
}
|
|
7569
|
+
padding: '6px 10px'
|
|
7561
7570
|
},
|
|
7562
7571
|
sizeMedium: {
|
|
7563
|
-
|
|
7564
|
-
fontSize: 13
|
|
7572
|
+
padding: '7.5px 15px'
|
|
7565
7573
|
},
|
|
7566
7574
|
sizeLarge: {
|
|
7567
|
-
|
|
7575
|
+
padding: '10.5px 22px',
|
|
7568
7576
|
fontSize: 14
|
|
7569
7577
|
},
|
|
7570
7578
|
root: {
|
|
@@ -7743,6 +7751,14 @@ const Componentes = {
|
|
|
7743
7751
|
},
|
|
7744
7752
|
MuiInputLabel: {
|
|
7745
7753
|
styleOverrides: {
|
|
7754
|
+
asterisk: {
|
|
7755
|
+
color: '#D14343'
|
|
7756
|
+
},
|
|
7757
|
+
root: {
|
|
7758
|
+
display: 'flex',
|
|
7759
|
+
gap: '.2rem',
|
|
7760
|
+
flexDirection: 'row-reverse'
|
|
7761
|
+
},
|
|
7746
7762
|
outlined: {
|
|
7747
7763
|
"&.MuiInputLabel-outlined.MuiInputLabel-sizeSmall ": {
|
|
7748
7764
|
transform: "translate(14px,7px) scale(1)"
|
|
@@ -7798,9 +7814,100 @@ const Componentes = {
|
|
|
7798
7814
|
}
|
|
7799
7815
|
}
|
|
7800
7816
|
};
|
|
7801
|
-
const components = Componentes;
|
|
7802
7817
|
|
|
7803
|
-
const
|
|
7818
|
+
const palette = {
|
|
7819
|
+
primary: {
|
|
7820
|
+
main: "#1e62a1",
|
|
7821
|
+
light: "#5a8fd3",
|
|
7822
|
+
dark: "#003972",
|
|
7823
|
+
contrastText: "#ffffff"
|
|
7824
|
+
},
|
|
7825
|
+
secondary: {
|
|
7826
|
+
main: "#0CBBE2",
|
|
7827
|
+
light: "#67eeff",
|
|
7828
|
+
dark: "#008bb0",
|
|
7829
|
+
contrastText: "#ffffff"
|
|
7830
|
+
},
|
|
7831
|
+
text: {
|
|
7832
|
+
primary: "rgba(16,24,64,0.87)",
|
|
7833
|
+
secondary: "rgba(16,24,64,0.6)",
|
|
7834
|
+
disabled: "rgba(16,24,64,0.38)"
|
|
7835
|
+
},
|
|
7836
|
+
error: {
|
|
7837
|
+
main: "#D14343",
|
|
7838
|
+
light: "#d85f5f",
|
|
7839
|
+
dark: "#b51e1e",
|
|
7840
|
+
contrastText: "#ffffff"
|
|
7841
|
+
},
|
|
7842
|
+
warning: {
|
|
7843
|
+
main: "#fb8500",
|
|
7844
|
+
light: "#fc9726",
|
|
7845
|
+
dark: "#f85500",
|
|
7846
|
+
contrastText: "#ffffff"
|
|
7847
|
+
},
|
|
7848
|
+
info: {
|
|
7849
|
+
main: "#2d9fc5",
|
|
7850
|
+
light: "#4dadce",
|
|
7851
|
+
dark: "#1172a3",
|
|
7852
|
+
contrastText: "#ffffff"
|
|
7853
|
+
},
|
|
7854
|
+
success: {
|
|
7855
|
+
main: "#8fc93a",
|
|
7856
|
+
dark: "#60a918",
|
|
7857
|
+
light: "#a0d158",
|
|
7858
|
+
contrastText: "#ffffff"
|
|
7859
|
+
},
|
|
7860
|
+
grey: {
|
|
7861
|
+
50: "#FAFBFF",
|
|
7862
|
+
100: "#F4F6FA",
|
|
7863
|
+
200: "#EDEFF5",
|
|
7864
|
+
300: "#E6E8F0",
|
|
7865
|
+
400: "#D8DAE5",
|
|
7866
|
+
500: "#C1C4D6",
|
|
7867
|
+
600: "#8F95B2",
|
|
7868
|
+
700: "#696F8C",
|
|
7869
|
+
800: "#474D66",
|
|
7870
|
+
900: "#101840",
|
|
7871
|
+
A100: "#D8DAE5",
|
|
7872
|
+
A200: "#C1C4D6",
|
|
7873
|
+
A400: "#696F8C",
|
|
7874
|
+
A700: "#101840"
|
|
7875
|
+
},
|
|
7876
|
+
action: {
|
|
7877
|
+
active: "rgba(16, 24, 64, 0.54)",
|
|
7878
|
+
hover: "rgba(16, 24, 64, 0.04)",
|
|
7879
|
+
selected: "rgba(16, 24, 64, 0.08)",
|
|
7880
|
+
disabled: "rgba(16, 24, 64, 0.26)",
|
|
7881
|
+
disabledBackground: "rgba(16, 24, 64, 0.12)",
|
|
7882
|
+
focus: "rgba(16, 24, 64, 0.12)"
|
|
7883
|
+
},
|
|
7884
|
+
background: {
|
|
7885
|
+
default: '#f5f5f5',
|
|
7886
|
+
paper: "#fff"
|
|
7887
|
+
},
|
|
7888
|
+
divider: "rgba(16,24,64,0.12)"
|
|
7889
|
+
};
|
|
7890
|
+
|
|
7891
|
+
const breakpoints = createBreakpoints({
|
|
7892
|
+
values: {
|
|
7893
|
+
xs: 0,
|
|
7894
|
+
sm: 600,
|
|
7895
|
+
md: 960,
|
|
7896
|
+
lg: 1280,
|
|
7897
|
+
xl: 1920
|
|
7898
|
+
}
|
|
7899
|
+
});
|
|
7900
|
+
|
|
7901
|
+
const mixins = {
|
|
7902
|
+
toolbar: {
|
|
7903
|
+
minHeight: 48,
|
|
7904
|
+
[breakpoints.down('sm')]: {
|
|
7905
|
+
minHeight: 48
|
|
7906
|
+
}
|
|
7907
|
+
}
|
|
7908
|
+
};
|
|
7909
|
+
|
|
7910
|
+
const typography = {
|
|
7804
7911
|
fontSize: 13,
|
|
7805
7912
|
body1: {
|
|
7806
7913
|
fontFamily: 'Roboto',
|
|
@@ -7808,7 +7915,7 @@ const Typography = {
|
|
|
7808
7915
|
fontWeight: 400,
|
|
7809
7916
|
letterSpacing: 0.15,
|
|
7810
7917
|
lineHeight: 1.4,
|
|
7811
|
-
'@media(max-width:
|
|
7918
|
+
'@media(max-width: 885px)': {
|
|
7812
7919
|
fontSize: 15
|
|
7813
7920
|
}
|
|
7814
7921
|
},
|
|
@@ -7818,7 +7925,7 @@ const Typography = {
|
|
|
7818
7925
|
fontWeight: 400,
|
|
7819
7926
|
letterSpacing: 0.17,
|
|
7820
7927
|
lineHeight: 1.2,
|
|
7821
|
-
'@media(max-width:
|
|
7928
|
+
'@media(max-width: 885px)': {
|
|
7822
7929
|
fontSize: 14
|
|
7823
7930
|
}
|
|
7824
7931
|
},
|
|
@@ -7828,7 +7935,7 @@ const Typography = {
|
|
|
7828
7935
|
fontWeight: 500,
|
|
7829
7936
|
letterSpacing: 0.15,
|
|
7830
7937
|
lineHeight: 1.4,
|
|
7831
|
-
'@media(max-width:
|
|
7938
|
+
'@media(max-width: 885px)': {
|
|
7832
7939
|
fontSize: 15
|
|
7833
7940
|
}
|
|
7834
7941
|
},
|
|
@@ -7838,7 +7945,7 @@ const Typography = {
|
|
|
7838
7945
|
fontWeight: 500,
|
|
7839
7946
|
letterSpacing: 0.1,
|
|
7840
7947
|
lineHeight: 1.4,
|
|
7841
|
-
'@media(max-width:
|
|
7948
|
+
'@media(max-width: 885px)': {
|
|
7842
7949
|
fontSize: 14
|
|
7843
7950
|
}
|
|
7844
7951
|
},
|
|
@@ -7848,7 +7955,7 @@ const Typography = {
|
|
|
7848
7955
|
fontWeight: 400,
|
|
7849
7956
|
letterSpacing: 0.4,
|
|
7850
7957
|
lineHeight: 1.4,
|
|
7851
|
-
'@media(max-width:
|
|
7958
|
+
'@media(max-width: 885px)': {
|
|
7852
7959
|
fontSize: 12
|
|
7853
7960
|
}
|
|
7854
7961
|
},
|
|
@@ -7858,7 +7965,7 @@ const Typography = {
|
|
|
7858
7965
|
fontWeight: 400,
|
|
7859
7966
|
letterSpacing: 1,
|
|
7860
7967
|
lineHeight: 2.66,
|
|
7861
|
-
'@media(max-width:
|
|
7968
|
+
'@media(max-width: 885px)': {
|
|
7862
7969
|
fontSize: 12
|
|
7863
7970
|
}
|
|
7864
7971
|
},
|
|
@@ -7867,7 +7974,7 @@ const Typography = {
|
|
|
7867
7974
|
fontSize: 16,
|
|
7868
7975
|
fontWeight: 600,
|
|
7869
7976
|
lineHeight: 1.6,
|
|
7870
|
-
'@media(max-width:
|
|
7977
|
+
'@media(max-width: px)': {
|
|
7871
7978
|
fontSize: 17
|
|
7872
7979
|
}
|
|
7873
7980
|
},
|
|
@@ -7909,90 +8016,20 @@ const Typography = {
|
|
|
7909
8016
|
textTransform: 'unset',
|
|
7910
8017
|
fontWeightLight: 300,
|
|
7911
8018
|
fontSize: 13,
|
|
7912
|
-
lineHeight: 'normal'
|
|
8019
|
+
lineHeight: 'normal',
|
|
8020
|
+
'@media(max-width: 885px)': {
|
|
8021
|
+
fontSize: 14
|
|
8022
|
+
}
|
|
7913
8023
|
}
|
|
7914
8024
|
};
|
|
7915
|
-
const typography = Typography;
|
|
7916
|
-
|
|
7917
|
-
const Palettes = {
|
|
7918
|
-
primary: {
|
|
7919
|
-
main: "#1e62a1",
|
|
7920
|
-
light: "#5a8fd3",
|
|
7921
|
-
dark: "#003972",
|
|
7922
|
-
contrastText: "#ffffff"
|
|
7923
|
-
},
|
|
7924
|
-
secondary: {
|
|
7925
|
-
main: "#0CBBE2",
|
|
7926
|
-
light: "#67eeff",
|
|
7927
|
-
dark: "#008bb0",
|
|
7928
|
-
contrastText: "#ffffff"
|
|
7929
|
-
},
|
|
7930
|
-
text: {
|
|
7931
|
-
primary: "rgba(16,24,64,0.87)",
|
|
7932
|
-
secondary: "rgba(16,24,64,0.6)",
|
|
7933
|
-
disabled: "rgba(16,24,64,0.38)"
|
|
7934
|
-
},
|
|
7935
|
-
error: {
|
|
7936
|
-
main: "#D14343",
|
|
7937
|
-
light: "#d85f5f",
|
|
7938
|
-
dark: "#b51e1e",
|
|
7939
|
-
contrastText: "#ffffff"
|
|
7940
|
-
},
|
|
7941
|
-
warning: {
|
|
7942
|
-
main: "#fb8500",
|
|
7943
|
-
light: "#fc9726",
|
|
7944
|
-
dark: "#f85500",
|
|
7945
|
-
contrastText: "#ffffff"
|
|
7946
|
-
},
|
|
7947
|
-
info: {
|
|
7948
|
-
main: "#2d9fc5",
|
|
7949
|
-
light: "#4dadce",
|
|
7950
|
-
dark: "#1172a3",
|
|
7951
|
-
contrastText: "#ffffff"
|
|
7952
|
-
},
|
|
7953
|
-
success: {
|
|
7954
|
-
main: "#8fc93a",
|
|
7955
|
-
dark: "#60a918",
|
|
7956
|
-
light: "#a0d158",
|
|
7957
|
-
contrastText: "#ffffff"
|
|
7958
|
-
},
|
|
7959
|
-
grey: {
|
|
7960
|
-
50: "#FAFBFF",
|
|
7961
|
-
100: "#F4F6FA",
|
|
7962
|
-
200: "#EDEFF5",
|
|
7963
|
-
300: "#E6E8F0",
|
|
7964
|
-
400: "#D8DAE5",
|
|
7965
|
-
500: "#C1C4D6",
|
|
7966
|
-
600: "#8F95B2",
|
|
7967
|
-
700: "#696F8C",
|
|
7968
|
-
800: "#474D66",
|
|
7969
|
-
900: "#101840",
|
|
7970
|
-
A100: "#D8DAE5",
|
|
7971
|
-
A200: "#C1C4D6",
|
|
7972
|
-
A400: "#696F8C",
|
|
7973
|
-
A700: "#101840"
|
|
7974
|
-
},
|
|
7975
|
-
action: {
|
|
7976
|
-
active: "rgba(16, 24, 64, 0.54)",
|
|
7977
|
-
hover: "rgba(16, 24, 64, 0.04)",
|
|
7978
|
-
selected: "rgba(16, 24, 64, 0.08)",
|
|
7979
|
-
disabled: "rgba(16, 24, 64, 0.26)",
|
|
7980
|
-
disabledBackground: "rgba(16, 24, 64, 0.12)",
|
|
7981
|
-
focus: "rgba(16, 24, 64, 0.12)"
|
|
7982
|
-
},
|
|
7983
|
-
background: {
|
|
7984
|
-
default: "#f5f5f5",
|
|
7985
|
-
paper: "#fff"
|
|
7986
|
-
},
|
|
7987
|
-
divider: "rgba(16,24,64,0.12)"
|
|
7988
|
-
};
|
|
7989
|
-
const palette = Palettes;
|
|
7990
8025
|
|
|
7991
8026
|
const themeOptions = {
|
|
7992
8027
|
palette,
|
|
7993
8028
|
typography,
|
|
7994
8029
|
components,
|
|
7995
|
-
spacing: 8
|
|
8030
|
+
spacing: 8,
|
|
8031
|
+
mixins,
|
|
8032
|
+
breakpoints
|
|
7996
8033
|
};
|
|
7997
8034
|
|
|
7998
8035
|
const SincoTheme = createTheme(Object.assign({}, themeOptions));
|
package/package.json
CHANGED