@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/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
- declare type ActButtonType = (props: ButtonProps) => JSX.Element | null;
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
- declare type Theme = 'Default' | 'Ep';
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.7",
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.18.10",
12
- "@babel/preset-env": "^7.18.10",
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.2",
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.3.4",
19
- "@types/react": "^18.0.15",
20
- "@typescript-eslint/eslint-plugin": "^5.0.0",
21
- "@typescript-eslint/parser": "^5.0.0",
22
- "babel-loader": "^8.2.5",
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.1",
25
- "eslint": "^8.0.1",
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.25.2",
29
- "eslint-plugin-jest": "^27.0.4",
30
- "eslint-plugin-n": "^15.0.0",
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.0.0",
33
- "eslint-plugin-react": "^7.31.8",
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.7.1",
38
- "rollup": "^2.77.2",
39
- "rollup-plugin-dts": "^4.2.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.54.1",
41
+ "sass": "^1.56.1",
42
42
  "sass-loader": "^12.6.0",
43
43
  "style-loader": "^3.3.1",
44
- "typescript": "^4.7.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.0",
56
- "@emotion/styled": "^11.10.0",
57
- "@fortawesome/fontawesome-svg-core": "^6.2.0",
58
- "@groupeactual/design-tokens": "^0.2.4",
59
- "@mui/base": "^5.0.0-alpha.92",
60
- "@mui/material": "^5.10.0",
61
- "@mui/system": "^5.9.3",
62
- "@types/lodash": "^4.14.186",
63
- "@types/styled-components": "^5.1.25",
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.14",
67
+ "postcss": "^8.4.19",
68
68
  "prop-types": "^15.8.1",
69
- "styled-components": "^5.3.5",
70
- "tslib": "^2.4.0",
71
- "webpack": "^5.74.0"
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 ${tokens.colors.defaultBorder as string}` }}
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
- bgcolor: tokens.colors.greyLightBorder,
31
- borderTop: '1px solid #CBCBCB'
28
+ backgroundColor: 'GreyXLight',
29
+ borderColor: 'GreyLightDefaultborder',
30
+ borderTop: '1px solid'
32
31
  }}
33
32
  >
34
33
  {content}
@@ -44,7 +44,11 @@ const TextField = ({
44
44
  name={name}
45
45
  label={label}
46
46
  value={internalValue}
47
+ placeholder={placeholder}
47
48
  onClick={(e) => e.stopPropagation()}
49
+ InputLabelProps={{
50
+ shrink: true
51
+ }}
48
52
  InputProps={{
49
53
  endAdornment
50
54
  }}