@groupeactual/ui-kit 0.3.7 → 0.3.8
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/DesignSystemProvider.d.ts +2 -2
- package/dist/cjs/components/Button/Button.d.ts +1 -1
- package/dist/cjs/index.js +28154 -29549
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/DesignSystemProvider.d.ts +2 -2
- package/dist/esm/components/Button/Button.d.ts +1 -1
- package/dist/esm/index.js +28154 -29549
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/package.json +34 -34
- package/src/components/Accordion/Accordion.tsx +4 -5
- package/src/components/Form/TextField/TextField.tsx +4 -0
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface Props$5 extends Omit<TypographyProps$1, 'paragraph'> {
|
|
|
26
26
|
}
|
|
27
27
|
declare const Heading: (props: Props$5) => JSX.Element;
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
type ActButtonType = (props: ButtonProps) => JSX.Element | null;
|
|
30
30
|
declare const ActButton: ActButtonType;
|
|
31
31
|
|
|
32
32
|
interface Props$4 {
|
|
@@ -68,7 +68,7 @@ interface Props$1 {
|
|
|
68
68
|
}
|
|
69
69
|
declare const IconProvider: ({ variant, icon, color, size }: Props$1) => JSX.Element;
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
type Theme = 'Default' | 'Ep';
|
|
72
72
|
interface DesignSystemContextValues {
|
|
73
73
|
isDarkTheme: boolean;
|
|
74
74
|
themeName: Theme;
|
|
@@ -78,6 +78,6 @@ declare const DesignSystemContext: react.Context<DesignSystemContextValues>;
|
|
|
78
78
|
interface Props {
|
|
79
79
|
name?: Theme;
|
|
80
80
|
}
|
|
81
|
-
declare const DesignSystemProvider: ({ children, name }: PropsWithChildren<Props>) => JSX.Element;
|
|
81
|
+
declare const DesignSystemProvider: ({ children, name: themeName }: PropsWithChildren<Props>) => JSX.Element;
|
|
82
82
|
|
|
83
83
|
export { ActAccordion as Accordion, ActButton as Button, Checkbox, DesignSystemContext, DesignSystemContextValues, DesignSystemProvider, Heading, IconProvider, Link, Text, TextField };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groupeactual/ui-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "A simple template for a custom React component library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rollup -c",
|
|
@@ -8,40 +8,40 @@
|
|
|
8
8
|
"dev": "npm run build:watch"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@babel/core": "^7.
|
|
12
|
-
"@babel/preset-env": "^7.
|
|
11
|
+
"@babel/core": "^7.20.5",
|
|
12
|
+
"@babel/preset-env": "^7.20.2",
|
|
13
13
|
"@babel/preset-react": "^7.18.6",
|
|
14
14
|
"@babel/preset-typescript": "^7.18.6",
|
|
15
|
-
"@mdx-js/react": "^2.1.
|
|
15
|
+
"@mdx-js/react": "^2.1.5",
|
|
16
16
|
"@rollup/plugin-commonjs": "^21.1.0",
|
|
17
17
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
18
|
-
"@rollup/plugin-typescript": "^8.
|
|
19
|
-
"@types/react": "^18.0.
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
21
|
-
"@typescript-eslint/parser": "^5.
|
|
22
|
-
"babel-loader": "^8.
|
|
18
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
19
|
+
"@types/react": "^18.0.25",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
21
|
+
"@typescript-eslint/parser": "^5.44.0",
|
|
22
|
+
"babel-loader": "^8.3.0",
|
|
23
23
|
"clsx": "^1.2.1",
|
|
24
|
-
"css-loader": "^6.7.
|
|
25
|
-
"eslint": "^8.0
|
|
24
|
+
"css-loader": "^6.7.2",
|
|
25
|
+
"eslint": "^8.28.0",
|
|
26
26
|
"eslint-config-prettier": "^8.5.0",
|
|
27
27
|
"eslint-config-standard-with-typescript": "^23.0.0",
|
|
28
|
-
"eslint-plugin-import": "^2.
|
|
29
|
-
"eslint-plugin-jest": "^27.
|
|
30
|
-
"eslint-plugin-n": "^15.
|
|
28
|
+
"eslint-plugin-import": "^2.26.0",
|
|
29
|
+
"eslint-plugin-jest": "^27.1.6",
|
|
30
|
+
"eslint-plugin-n": "^15.5.1",
|
|
31
31
|
"eslint-plugin-prettier": "^4.2.1",
|
|
32
|
-
"eslint-plugin-promise": "^6.
|
|
33
|
-
"eslint-plugin-react": "^7.31.
|
|
32
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
33
|
+
"eslint-plugin-react": "^7.31.11",
|
|
34
34
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
35
35
|
"html-webpack-plugin": "^5.5.0",
|
|
36
36
|
"identity-obj-proxy": "^3.0.0",
|
|
37
|
-
"prettier": "^2.
|
|
38
|
-
"rollup": "^2.
|
|
39
|
-
"rollup-plugin-dts": "^4.2.
|
|
37
|
+
"prettier": "^2.8.0",
|
|
38
|
+
"rollup": "^2.79.1",
|
|
39
|
+
"rollup-plugin-dts": "^4.2.3",
|
|
40
40
|
"rollup-plugin-postcss": "^4.0.2",
|
|
41
|
-
"sass": "^1.
|
|
41
|
+
"sass": "^1.56.1",
|
|
42
42
|
"sass-loader": "^12.6.0",
|
|
43
43
|
"style-loader": "^3.3.1",
|
|
44
|
-
"typescript": "^4.
|
|
44
|
+
"typescript": "^4.9.3"
|
|
45
45
|
},
|
|
46
46
|
"main": "dist/cjs/index.js",
|
|
47
47
|
"module": "dist/esm/index.js",
|
|
@@ -52,23 +52,23 @@
|
|
|
52
52
|
"types": "dist/index.d.ts",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@emotion/is-prop-valid": "^1.2.0",
|
|
55
|
-
"@emotion/react": "^11.10.
|
|
56
|
-
"@emotion/styled": "^11.10.
|
|
57
|
-
"@fortawesome/fontawesome-svg-core": "^6.2.
|
|
58
|
-
"@groupeactual/design-tokens": "^0.
|
|
59
|
-
"@mui/base": "^5.0.0-alpha.
|
|
60
|
-
"@mui/material": "^5.10.
|
|
61
|
-
"@mui/system": "^5.
|
|
62
|
-
"@types/lodash": "^4.14.
|
|
63
|
-
"@types/styled-components": "^5.1.
|
|
55
|
+
"@emotion/react": "^11.10.5",
|
|
56
|
+
"@emotion/styled": "^11.10.5",
|
|
57
|
+
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
|
58
|
+
"@groupeactual/design-tokens": "^0.3.0",
|
|
59
|
+
"@mui/base": "^5.0.0-alpha.108",
|
|
60
|
+
"@mui/material": "^5.10.16",
|
|
61
|
+
"@mui/system": "^5.10.16",
|
|
62
|
+
"@types/lodash": "^4.14.190",
|
|
63
|
+
"@types/styled-components": "^5.1.26",
|
|
64
64
|
"formik": "^2.2.9",
|
|
65
65
|
"framer-motion": "^6.5.1",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
67
|
-
"postcss": "^8.4.
|
|
67
|
+
"postcss": "^8.4.19",
|
|
68
68
|
"prop-types": "^15.8.1",
|
|
69
|
-
"styled-components": "^5.3.
|
|
70
|
-
"tslib": "^2.4.
|
|
71
|
-
"webpack": "^5.
|
|
69
|
+
"styled-components": "^5.3.6",
|
|
70
|
+
"tslib": "^2.4.1",
|
|
71
|
+
"webpack": "^5.75.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"react": "^18.2.0",
|
|
@@ -2,7 +2,6 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import Accordion from '@mui/material/Accordion';
|
|
3
3
|
import AccordionSummary from '@mui/material/AccordionSummary';
|
|
4
4
|
import AccordionDetails from '@mui/material/AccordionDetails';
|
|
5
|
-
import { useThemeTokens } from '@groupeactual/design-tokens';
|
|
6
5
|
|
|
7
6
|
interface Props {
|
|
8
7
|
icon: ReactNode;
|
|
@@ -12,10 +11,9 @@ interface Props {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
const ActAccordion = ({ icon, title, content, summaryHeight }: Props) => {
|
|
15
|
-
const { tokens } = useThemeTokens('lucie');
|
|
16
14
|
return (
|
|
17
15
|
<Accordion
|
|
18
|
-
sx={{ border: `1px solid
|
|
16
|
+
sx={{ border: `1px solid`, borderColor: 'GreyLightDefaultborder' }}
|
|
19
17
|
>
|
|
20
18
|
<AccordionSummary
|
|
21
19
|
expandIcon={icon}
|
|
@@ -27,8 +25,9 @@ const ActAccordion = ({ icon, title, content, summaryHeight }: Props) => {
|
|
|
27
25
|
</AccordionSummary>
|
|
28
26
|
<AccordionDetails
|
|
29
27
|
sx={{
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
backgroundColor: 'GreyXLight',
|
|
29
|
+
borderColor: 'GreyLightDefaultborder',
|
|
30
|
+
borderTop: '1px solid'
|
|
32
31
|
}}
|
|
33
32
|
>
|
|
34
33
|
{content}
|