@groupeactual/ui-kit 0.4.4 → 0.4.5
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/cjs/components/Text/Text.d.ts +1 -1
- package/dist/cjs/components/index.d.ts +0 -1
- package/dist/cjs/index.js +76 -77
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Text/Text.d.ts +1 -1
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/index.js +77 -77
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -13
- package/package.json +1 -1
- package/src/components/Text/Text.tsx +5 -2
- package/src/components/index.ts +0 -1
- package/dist/cjs/components/Heading/Heading.d.ts +0 -8
- package/dist/cjs/components/Heading/index.d.ts +0 -1
- package/dist/esm/components/Heading/Heading.d.ts +0 -8
- package/dist/esm/components/Heading/index.d.ts +0 -1
- package/src/components/Heading/Heading.tsx +0 -10
- package/src/components/Heading/index.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TypographyProps } from '@mui/material';
|
|
3
3
|
interface Props extends Omit<TypographyProps, 'variant'> {
|
|
4
|
-
variant?: 'big_number' | 'body1_regular' | 'body1_medium' | 'body1_bold' | 'body2_regular' | 'body2_medium' | 'body2_bold' | 'caption' | 'button_notif';
|
|
4
|
+
variant?: 'big_number' | 'body1_regular' | 'body1_medium' | 'body1_bold' | 'body2_regular' | 'body2_medium' | 'body2_bold' | 'caption' | 'button_notif' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
5
5
|
component?: any;
|
|
6
6
|
}
|
|
7
7
|
declare const Text: (props: Props) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as Text } from './Text';
|
|
2
2
|
export { default as Link } from './Link';
|
|
3
|
-
export { default as Heading } from './Heading';
|
|
4
3
|
export { default as Button } from './Button';
|
|
5
4
|
export { default as TextField } from './Form/TextField';
|
|
6
5
|
export { default as Checkbox } from './Form/Checkbox';
|
package/dist/cjs/index.js
CHANGED
|
@@ -50450,13 +50450,10 @@ process.env.NODE_ENV !== "production" ? TextField$1.propTypes /* remove-proptype
|
|
|
50450
50450
|
} : void 0;
|
|
50451
50451
|
var MuiTextField = TextField$1;
|
|
50452
50452
|
|
|
50453
|
-
// @ts-ignore
|
|
50454
50453
|
var Text = function (props) { return jsxRuntime.jsx(Typography$1, __assign$1({}, props)); };
|
|
50455
50454
|
|
|
50456
50455
|
var Link = function (props) { return jsxRuntime.jsx(LinkMui, __assign$1({}, props)); };
|
|
50457
50456
|
|
|
50458
|
-
var Heading = function (props) { return jsxRuntime.jsx(Typography$1, __assign$1({}, props)); };
|
|
50459
|
-
|
|
50460
50457
|
var ActButton = styled$1(Button$1)(function (_a) {
|
|
50461
50458
|
var theme = _a.theme;
|
|
50462
50459
|
return ({
|
|
@@ -50954,88 +50951,91 @@ var getFontFamilies = function (themeName) {
|
|
|
50954
50951
|
return fontFamilies;
|
|
50955
50952
|
};
|
|
50956
50953
|
|
|
50957
|
-
var
|
|
50958
|
-
|
|
50959
|
-
|
|
50960
|
-
|
|
50961
|
-
|
|
50962
|
-
|
|
50963
|
-
|
|
50964
|
-
|
|
50965
|
-
|
|
50966
|
-
|
|
50967
|
-
|
|
50968
|
-
|
|
50969
|
-
|
|
50970
|
-
|
|
50971
|
-
'&.Mui-error': {
|
|
50972
|
-
color: muiTokens.palette.redError
|
|
50973
|
-
}
|
|
50974
|
-
}
|
|
50954
|
+
var TextFieldCss = function (muiTokens) {
|
|
50955
|
+
return {
|
|
50956
|
+
MuiFormHelperText: {
|
|
50957
|
+
styleOverrides: {
|
|
50958
|
+
root: {
|
|
50959
|
+
fontWeight: 400,
|
|
50960
|
+
fontSize: '11px',
|
|
50961
|
+
marginLeft: '8px',
|
|
50962
|
+
marginRight: '8px',
|
|
50963
|
+
marginTop: '5px',
|
|
50964
|
+
lineHeight: '12px',
|
|
50965
|
+
color: muiTokens.palette.greyDark,
|
|
50966
|
+
'&.Mui-error': {
|
|
50967
|
+
color: muiTokens.palette.redError
|
|
50975
50968
|
}
|
|
50976
|
-
}
|
|
50977
|
-
|
|
50978
|
-
|
|
50979
|
-
|
|
50969
|
+
}
|
|
50970
|
+
}
|
|
50971
|
+
},
|
|
50972
|
+
MuiOutlinedInput: {
|
|
50973
|
+
defaultProps: {
|
|
50974
|
+
notched: true
|
|
50975
|
+
},
|
|
50976
|
+
styleOverrides: {
|
|
50977
|
+
input: {
|
|
50978
|
+
fontSize: '14px',
|
|
50979
|
+
lineHeight: '18px',
|
|
50980
|
+
fontWeight: 400,
|
|
50981
|
+
padding: '12px 14px',
|
|
50982
|
+
height: '18px',
|
|
50983
|
+
color: muiTokens.palette.greyXDark,
|
|
50984
|
+
'&::placeholder': {
|
|
50985
|
+
color: "".concat(muiTokens.palette.greyDark, " !important"),
|
|
50986
|
+
opacity: 1 + ' !important',
|
|
50987
|
+
fontWeight: 400,
|
|
50988
|
+
lineHeight: '18px',
|
|
50989
|
+
fontSize: '14px'
|
|
50980
50990
|
},
|
|
50981
|
-
|
|
50982
|
-
|
|
50983
|
-
|
|
50984
|
-
|
|
50985
|
-
|
|
50986
|
-
padding: '12px 14px',
|
|
50987
|
-
height: '18px',
|
|
50988
|
-
color: muiTokens.palette.greyXDark,
|
|
50989
|
-
'&::placeholder': {
|
|
50990
|
-
color: "".concat(muiTokens.palette.greyDark, " !important"),
|
|
50991
|
-
opacity: 1 + ' !important',
|
|
50992
|
-
fontWeight: 400,
|
|
50993
|
-
lineHeight: '18px',
|
|
50994
|
-
fontSize: '14px'
|
|
50995
|
-
},
|
|
50996
|
-
'&.Mui-disabled': {
|
|
50997
|
-
backgroundColor: muiTokens.palette.greyXLight,
|
|
50998
|
-
color: muiTokens.palette.greyDark,
|
|
50999
|
-
borderColor: muiTokens.palette.greyLightDefaultborder,
|
|
51000
|
-
WebkitTextFillColor: muiTokens.palette.greyDark
|
|
51001
|
-
}
|
|
51002
|
-
},
|
|
51003
|
-
root: {
|
|
51004
|
-
'&.Mui-error.MuiOutlinedInput-notchedOutline': {
|
|
51005
|
-
borderColor: muiTokens.palette.redError
|
|
51006
|
-
},
|
|
51007
|
-
'&.Mui-focused.MuiOutlinedInput-notchedOutline': {
|
|
51008
|
-
borderColor: muiTokens.palette.blueClickable
|
|
51009
|
-
},
|
|
51010
|
-
'&.Mui-hover.MuiOutlinedInput-notchedOutline': {
|
|
51011
|
-
borderColor: muiTokens.palette.greyDark
|
|
51012
|
-
}
|
|
51013
|
-
}
|
|
50991
|
+
'&.Mui-disabled': {
|
|
50992
|
+
backgroundColor: muiTokens.palette.greyXLight,
|
|
50993
|
+
color: muiTokens.palette.greyDark,
|
|
50994
|
+
borderColor: muiTokens.palette.greyLightDefaultborder,
|
|
50995
|
+
WebkitTextFillColor: muiTokens.palette.greyDark
|
|
51014
50996
|
}
|
|
51015
50997
|
},
|
|
51016
|
-
|
|
50998
|
+
root: {
|
|
50999
|
+
'&.Mui-error.MuiOutlinedInput-notchedOutline': {
|
|
51000
|
+
borderColor: muiTokens.palette.redError
|
|
51001
|
+
},
|
|
51002
|
+
'&.Mui-focused.MuiOutlinedInput-notchedOutline': {
|
|
51003
|
+
borderColor: muiTokens.palette.blueClickable
|
|
51004
|
+
},
|
|
51005
|
+
'&.Mui-hover.MuiOutlinedInput-notchedOutline': {
|
|
51006
|
+
borderColor: muiTokens.palette.greyDark
|
|
51007
|
+
}
|
|
51008
|
+
}
|
|
51009
|
+
}
|
|
51010
|
+
},
|
|
51011
|
+
MuiInputLabel: {
|
|
51012
|
+
styleOverrides: {
|
|
51013
|
+
root: {
|
|
51014
|
+
fontSize: '16px',
|
|
51015
|
+
lineHeight: '16px',
|
|
51016
|
+
height: '16px',
|
|
51017
|
+
fontWeight: 500,
|
|
51018
|
+
transform: 'translate(14px, -7px) scale(0.75)',
|
|
51019
|
+
color: muiTokens.palette.greyXDark,
|
|
51020
|
+
'&.Mui-disabled': {
|
|
51021
|
+
color: muiTokens.palette.greyDark
|
|
51022
|
+
}
|
|
51023
|
+
}
|
|
51024
|
+
}
|
|
51025
|
+
}
|
|
51026
|
+
};
|
|
51027
|
+
};
|
|
51028
|
+
|
|
51029
|
+
var useMaterialThemeCss = function (muiTokens) {
|
|
51030
|
+
var muiCss = React.useMemo(function () {
|
|
51031
|
+
return {
|
|
51032
|
+
components: __assign(__assign({}, TextFieldCss(muiTokens)), { MuiSvgIcon: {
|
|
51017
51033
|
styleOverrides: {
|
|
51018
51034
|
colorSuccess: {
|
|
51019
51035
|
color: muiTokens.palette.success.main
|
|
51020
51036
|
}
|
|
51021
51037
|
}
|
|
51022
|
-
}
|
|
51023
|
-
MuiInputLabel: {
|
|
51024
|
-
styleOverrides: {
|
|
51025
|
-
root: {
|
|
51026
|
-
fontSize: '16px',
|
|
51027
|
-
lineHeight: '16px',
|
|
51028
|
-
height: '16px',
|
|
51029
|
-
fontWeight: 500,
|
|
51030
|
-
transform: 'translate(14px, -7px) scale(0.75)',
|
|
51031
|
-
color: muiTokens.palette.greyXDark,
|
|
51032
|
-
'&.Mui-disabled': {
|
|
51033
|
-
color: muiTokens.palette.greyXDark
|
|
51034
|
-
}
|
|
51035
|
-
}
|
|
51036
|
-
}
|
|
51037
|
-
}
|
|
51038
|
-
}
|
|
51038
|
+
} })
|
|
51039
51039
|
};
|
|
51040
51040
|
}, [muiTokens]);
|
|
51041
51041
|
return { muiCss: muiCss };
|
|
@@ -51240,7 +51240,6 @@ exports.Button = ActButton;
|
|
|
51240
51240
|
exports.Checkbox = Checkbox;
|
|
51241
51241
|
exports.DesignSystemContext = DesignSystemContext;
|
|
51242
51242
|
exports.DesignSystemProvider = DesignSystemProvider;
|
|
51243
|
-
exports.Heading = Heading;
|
|
51244
51243
|
exports.IconProvider = IconProvider;
|
|
51245
51244
|
exports.Link = Link;
|
|
51246
51245
|
exports.Text = Text;
|