@groupeactual/ui-kit 0.1.1

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.
Files changed (32) hide show
  1. package/dist/cjs/DesignSystemProvider.d.ts +6 -0
  2. package/dist/cjs/from-scratch-components/Tag/Tag.d.ts +8 -0
  3. package/dist/cjs/from-scratch-components/Tag/index.d.ts +1 -0
  4. package/dist/cjs/from-scratch-components/index.d.ts +1 -0
  5. package/dist/cjs/index.d.ts +4 -0
  6. package/dist/cjs/index.js +49641 -0
  7. package/dist/cjs/index.js.map +1 -0
  8. package/dist/cjs/material-ui-components/Heading/Heading.d.ts +7 -0
  9. package/dist/cjs/material-ui-components/Heading/index.d.ts +1 -0
  10. package/dist/cjs/material-ui-components/TextField/TextField.d.ts +4 -0
  11. package/dist/cjs/material-ui-components/TextField/index.d.ts +1 -0
  12. package/dist/cjs/material-ui-components/index.d.ts +2 -0
  13. package/dist/cjs/mui-base-components/Button/Button.d.ts +6 -0
  14. package/dist/cjs/mui-base-components/Button/index.d.ts +1 -0
  15. package/dist/cjs/mui-base-components/index.d.ts +1 -0
  16. package/dist/esm/DesignSystemProvider.d.ts +6 -0
  17. package/dist/esm/from-scratch-components/Tag/Tag.d.ts +8 -0
  18. package/dist/esm/from-scratch-components/Tag/index.d.ts +1 -0
  19. package/dist/esm/from-scratch-components/index.d.ts +1 -0
  20. package/dist/esm/index.d.ts +4 -0
  21. package/dist/esm/index.js +49611 -0
  22. package/dist/esm/index.js.map +1 -0
  23. package/dist/esm/material-ui-components/Heading/Heading.d.ts +7 -0
  24. package/dist/esm/material-ui-components/Heading/index.d.ts +1 -0
  25. package/dist/esm/material-ui-components/TextField/TextField.d.ts +4 -0
  26. package/dist/esm/material-ui-components/TextField/index.d.ts +1 -0
  27. package/dist/esm/material-ui-components/index.d.ts +2 -0
  28. package/dist/esm/mui-base-components/Button/Button.d.ts +6 -0
  29. package/dist/esm/mui-base-components/Button/index.d.ts +1 -0
  30. package/dist/esm/mui-base-components/index.d.ts +1 -0
  31. package/dist/index.d.ts +29 -0
  32. package/package.json +58 -0
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { TypographyProps } from "@mui/material";
3
+ interface Props extends TypographyProps {
4
+ variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
5
+ }
6
+ declare const ActHeading: ({ children, ...props }: PropsWithChildren<Props>) => JSX.Element;
7
+ export default ActHeading;
@@ -0,0 +1 @@
1
+ export { default } from "./Heading";
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ declare const ActTextField: (props: TextFieldProps) => JSX.Element;
4
+ export default ActTextField;
@@ -0,0 +1 @@
1
+ export { default } from "./TextField";
@@ -0,0 +1,2 @@
1
+ export { default as ActTextField } from "./TextField";
2
+ export { default as ActHeading } from "./Heading";
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface ActButtonProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const ActButton: ({ children, ...props }: ActButtonProps) => JSX.Element;
6
+ export default ActButton;
@@ -0,0 +1 @@
1
+ export { default } from "./Button";
@@ -0,0 +1 @@
1
+ export { default as ActButton } from "./Button";
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import { TextFieldProps } from '@mui/material/TextField';
3
+ import React, { PropsWithChildren } from 'react';
4
+ import { TypographyProps } from '@mui/material';
5
+
6
+ interface ActTagProps {
7
+ label?: string;
8
+ color?: 'red' | 'green' | 'blue';
9
+ }
10
+ declare const ActTag: (props: ActTagProps) => JSX.Element;
11
+
12
+ declare const ActTextField: (props: TextFieldProps) => JSX.Element;
13
+
14
+ interface Props$1 extends TypographyProps {
15
+ variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
16
+ }
17
+ declare const ActHeading: ({ children, ...props }: PropsWithChildren<Props$1>) => JSX.Element;
18
+
19
+ interface ActButtonProps {
20
+ children: React.ReactNode;
21
+ }
22
+ declare const ActButton: ({ children, ...props }: ActButtonProps) => JSX.Element;
23
+
24
+ interface Props {
25
+ name: string;
26
+ }
27
+ declare const DesignSystemProvider: ({ children, name: themeName }: PropsWithChildren<Props>) => JSX.Element;
28
+
29
+ export { ActButton, ActHeading, ActTag, ActTextField, DesignSystemProvider };
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@groupeactual/ui-kit",
3
+ "version": "0.1.1",
4
+ "description": "A simple template for a custom React component library",
5
+ "scripts": {
6
+ "build": "rollup -c",
7
+ "build:watch": "rollup -c -w",
8
+ "dev": "npm run build:watch"
9
+ },
10
+ "devDependencies": {
11
+ "@babel/core": "^7.18.10",
12
+ "@babel/preset-env": "^7.18.10",
13
+ "@babel/preset-react": "^7.18.6",
14
+ "@babel/preset-typescript": "^7.18.6",
15
+ "@mdx-js/react": "^2.1.2",
16
+ "@rollup/plugin-commonjs": "^21.1.0",
17
+ "@rollup/plugin-node-resolve": "^13.3.0",
18
+ "@rollup/plugin-typescript": "^8.3.4",
19
+ "@types/react": "^18.0.15",
20
+ "babel-loader": "^8.2.5",
21
+ "clsx": "^1.2.1",
22
+ "css-loader": "^6.7.1",
23
+ "html-webpack-plugin": "^5.5.0",
24
+ "identity-obj-proxy": "^3.0.0",
25
+ "rollup": "^2.77.2",
26
+ "rollup-plugin-dts": "^4.2.2",
27
+ "rollup-plugin-postcss": "^4.0.2",
28
+ "sass": "^1.54.1",
29
+ "sass-loader": "^12.6.0",
30
+ "style-loader": "^3.3.1",
31
+ "typescript": "^4.7.4"
32
+ },
33
+ "main": "dist/cjs/index.js",
34
+ "module": "dist/esm/index.js",
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "types": "dist/index.d.ts",
39
+ "dependencies": {
40
+ "@groupeactual/design-tokens": "^0.1.0",
41
+ "@emotion/is-prop-valid": "^1.2.0",
42
+ "@emotion/react": "^11.10.0",
43
+ "@emotion/styled": "^11.10.0",
44
+ "@mui/base": "^5.0.0-alpha.92",
45
+ "@mui/material": "^5.10.0",
46
+ "@mui/system": "^5.9.3",
47
+ "@types/styled-components": "^5.1.25",
48
+ "framer-motion": "^6.5.1",
49
+ "postcss": "^8.4.14",
50
+ "styled-components": "^5.3.5",
51
+ "tslib": "^2.4.0",
52
+ "webpack": "^5.74.0"
53
+ },
54
+ "peerDependencies": {
55
+ "react": "^18.2.0",
56
+ "react-dom": "^18.2.0"
57
+ }
58
+ }