@sinco/react 1.0.15-rc.20 → 1.0.15-rc.21
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +57 -57
- package/index.js +1536 -14948
- package/package.json +10 -2
- package/src/index.d.ts +1 -1
- package/src/lib/Components/Drawer.d.ts +2 -4
- package/src/lib/Components/PageHeader.d.ts +15 -0
- package/src/lib/Components/index.d.ts +1 -0
- package/src/lib/Utils/index.d.ts +1 -0
- package/index.d.ts +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sinco/react",
|
3
|
-
"version": "1.0.15-rc.
|
3
|
+
"version": "1.0.15-rc.21",
|
4
4
|
"description": "package for the configuration of mui react sinco",
|
5
5
|
"private": false,
|
6
6
|
"license": "MIT",
|
@@ -8,9 +8,17 @@
|
|
8
8
|
"type": "git",
|
9
9
|
"url": "https://github.com/SincosoftSAS/DesignSystem.git"
|
10
10
|
},
|
11
|
+
"peerDependencies": {
|
12
|
+
"react": "^18.2.0",
|
13
|
+
"@emotion/react": "^11.11.0",
|
14
|
+
"@emotion/styled": "^11.11.0",
|
15
|
+
"@mui/icons-material": "^5.14.3",
|
16
|
+
"@mui/material": "^5.14.13",
|
17
|
+
"@mui/x-data-grid": "^6.6.0"
|
18
|
+
},
|
11
19
|
"sideEffects": false,
|
12
20
|
"module": "./index.js",
|
13
21
|
"main": "./index.js",
|
14
22
|
"type": "module",
|
15
|
-
"types": "./src
|
23
|
+
"types": "./src/index.d.ts"
|
16
24
|
}
|
package/src/index.d.ts
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { SxProps } from '@mui/material';
|
3
2
|
export type handleDrawerPosition = 'left' | 'right';
|
4
3
|
export interface DrawerComponentProperties {
|
5
4
|
title: string;
|
6
5
|
children: ReactNode;
|
7
6
|
renderActions: ReactNode;
|
8
7
|
showActions?: boolean;
|
9
|
-
|
8
|
+
position?: handleDrawerPosition;
|
10
9
|
width: string;
|
11
10
|
open: boolean;
|
12
11
|
onClose: () => void;
|
13
|
-
sx?: SxProps;
|
14
12
|
}
|
15
|
-
export declare const DrawerComponent: ({ title, children, renderActions, showActions,
|
13
|
+
export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose, }: DrawerComponentProperties) => JSX.Element;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Variant } from "@mui/material/styles/createTypography";
|
2
|
+
import React from "react";
|
3
|
+
export interface PageheaderProperties {
|
4
|
+
title: string | React.ReactNode;
|
5
|
+
subtitle?: string | React.ReactNode;
|
6
|
+
actions?: React.ReactNode;
|
7
|
+
buttonBack?: React.ReactNode;
|
8
|
+
fixed?: boolean;
|
9
|
+
}
|
10
|
+
export declare function PageHeaderWraps({ item, Color, variant, }: {
|
11
|
+
item: string | React.ReactNode;
|
12
|
+
Color: string;
|
13
|
+
variant: Variant;
|
14
|
+
}): JSX.Element;
|
15
|
+
export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './dynamicColor';
|
package/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './src/lib/Utils/dynamicColor';
|