@rabex-kit/rabex-ui 0.0.2 → 0.0.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/Button/index.d.ts +2 -1
- package/dist/Chip/index.d.ts +1 -15
- package/dist/SegmentedControl/index.d.ts +18 -0
- package/dist/SegmentedControlTab/index.d.ts +5 -0
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Theme/Button/index.d.ts +6 -0
- package/dist/Theme/Chip/index.d.ts +18 -15
- package/dist/Theme/Palette/base.d.ts +7 -3
- package/dist/Theme/Palette/dark.d.ts +27 -0
- package/dist/Theme/Palette/light.d.ts +11 -0
- package/dist/Theme/SegmentedControl/index.d.ts +491 -0
- package/dist/Theme/SegmentedControlTab/index.d.ts +41 -0
- package/dist/index.d.ts +4 -2
- package/dist/rabex-ui.cjs.development.js +454 -211
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +453 -212
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/Button/index.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
3
|
-
export declare type ButtonProps = Omit<MuiButtonProps, 'size' | 'color' | 'component' | 'isIcon'> & {
|
3
|
+
export declare type ButtonProps = Omit<MuiButtonProps, 'size' | 'color' | 'component' | 'isIcon' | 'variant'> & {
|
4
4
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
5
5
|
isIcon?: boolean;
|
6
6
|
color?: 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
7
|
+
variant?: 'contained' | 'containedSecondary' | 'outlined' | 'text';
|
7
8
|
component?: React.ElementType;
|
8
9
|
};
|
9
10
|
declare const Button: React.FC<ButtonProps>;
|
package/dist/Chip/index.d.ts
CHANGED
@@ -5,21 +5,7 @@ export declare type ChipProps = Omit<MuiChipProps, 'size'> & {
|
|
5
5
|
bulletColor?: string;
|
6
6
|
labelColor?: string;
|
7
7
|
mode?: 'normal' | 'light';
|
8
|
-
size?: '
|
8
|
+
size?: 'sm' | 'xs';
|
9
9
|
};
|
10
|
-
/**
|
11
|
-
* Chip component of Material is somthing like Badge ,
|
12
|
-
* Material Ui Chip is wrapper for content that has
|
13
|
-
* Background color and other various Props,
|
14
|
-
* you can see Chip Documentation api that I mentioned below [here](https://mui.com/material-ui/api/chip)
|
15
|
-
*
|
16
|
-
* ```typescript
|
17
|
-
* import { Chip } from '@rabex-kit/core';
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
*
|
21
|
-
* @param props
|
22
|
-
* @returns
|
23
|
-
*/
|
24
10
|
declare const Chip: React.FC<ChipProps>;
|
25
11
|
export default Chip;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TabsProps as MuiTabsProps } from '@mui/material';
|
3
|
+
export declare type SegmentedControlProps = Omit<MuiTabsProps, 'indicatorColor' | 'textColor'> & {
|
4
|
+
size?: 'sm' | 'md' | 'lg';
|
5
|
+
isSeparate?: boolean;
|
6
|
+
hasBorder?: boolean;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* SegmentedControl component for switching between views.
|
10
|
+
*
|
11
|
+
* This component is built on top of Material-UI Tabs and supports additional props
|
12
|
+
* for customizing size, border, and separation of tabs.
|
13
|
+
*
|
14
|
+
* @param props
|
15
|
+
* @returns JSX.Element
|
16
|
+
*/
|
17
|
+
declare const SegmentedControl: React.FC<SegmentedControlProps>;
|
18
|
+
export default SegmentedControl;
|
package/dist/Tabs/index.d.ts
CHANGED
@@ -13,13 +13,13 @@ export declare type TabsProps = Omit<MuiTabsProps, 'indicatorColor' | 'textColor
|
|
13
13
|
* You can read Material-UI Tabs Documentation [here](https://mui.com/material-ui/api/tabs/).
|
14
14
|
*
|
15
15
|
* ```typescript
|
16
|
-
* import { Tabs } from '@rabex-kit/
|
16
|
+
* import { Tabs } from '@rabex-kit/rabex-ui';
|
17
17
|
* ```
|
18
18
|
*
|
19
19
|
* Also you can read Material-UI Tab Documentation [here](https://mui.com/material-ui/api/tab/).
|
20
20
|
*
|
21
21
|
* ```typescript
|
22
|
-
* import { Tab } from '@rabex-kit/
|
22
|
+
* import { Tab } from '@rabex-kit/rabex-ui';
|
23
23
|
* ```
|
24
24
|
*
|
25
25
|
*
|
@@ -17,6 +17,12 @@ declare module '@mui/material/Button' {
|
|
17
17
|
lg: true;
|
18
18
|
xl: true;
|
19
19
|
}
|
20
|
+
interface ButtonPropsVariantOverrides {
|
21
|
+
contained: true;
|
22
|
+
containedSecondary: true;
|
23
|
+
outlined: true;
|
24
|
+
text: true;
|
25
|
+
}
|
20
26
|
}
|
21
27
|
declare const _default: {
|
22
28
|
components: {
|
@@ -15,22 +15,31 @@ declare module '@mui/material/Chip' {
|
|
15
15
|
default: true;
|
16
16
|
}
|
17
17
|
interface ChipPropsSizeOverrides {
|
18
|
-
|
19
|
-
|
20
|
-
large: true;
|
18
|
+
xs: true;
|
19
|
+
sm: true;
|
21
20
|
}
|
22
21
|
}
|
23
22
|
declare const _default: {
|
24
23
|
components: {
|
25
24
|
styleOverrides: {
|
26
|
-
root: ({ theme }: {
|
25
|
+
root: ({ theme, ownerState, ...rest }: {
|
26
|
+
[x: string]: any;
|
27
27
|
theme: any;
|
28
|
+
ownerState: any;
|
29
|
+
}) => any;
|
30
|
+
icon: ({ theme, ownerState }: {
|
31
|
+
theme: any;
|
32
|
+
ownerState: any;
|
28
33
|
}) => {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
+
margin: number;
|
35
|
+
fontSize: any;
|
36
|
+
};
|
37
|
+
deleteIcon: ({ theme, ownerState }: {
|
38
|
+
theme: any;
|
39
|
+
ownerState: any;
|
40
|
+
}) => {
|
41
|
+
margin: number;
|
42
|
+
fontSize: any;
|
34
43
|
};
|
35
44
|
label: ({ theme }: {
|
36
45
|
theme: any;
|
@@ -41,12 +50,6 @@ declare const _default: {
|
|
41
50
|
};
|
42
51
|
};
|
43
52
|
variants: ({
|
44
|
-
props: ChipProps;
|
45
|
-
style: ({ theme, ...ownerState }: any) => {
|
46
|
-
color: any;
|
47
|
-
backgroundColor: any;
|
48
|
-
};
|
49
|
-
} | {
|
50
53
|
props: ChipProps;
|
51
54
|
style: ({ theme, ...ownerState }: any) => {
|
52
55
|
color: any;
|
@@ -5,11 +5,15 @@ declare module '@mui/material/styles/createPalette' {
|
|
5
5
|
base: Palette['primary'];
|
6
6
|
grayBackground: Palette['primary'];
|
7
7
|
textColor: Palette['primary'];
|
8
|
+
backgroundColor: Palette['primary'];
|
9
|
+
neutral: Palette['primary'];
|
8
10
|
}
|
9
11
|
interface PaletteOptions {
|
10
12
|
base: PaletteOptions['primary'];
|
11
13
|
grayBackground: PaletteOptions['primary'];
|
12
14
|
textColor: PaletteOptions['primary'];
|
15
|
+
backgroundColor: PaletteOptions['primary'];
|
16
|
+
neutral: PaletteOptions['primary'];
|
13
17
|
}
|
14
18
|
interface PaletteColor {
|
15
19
|
950?: string;
|
@@ -61,9 +65,9 @@ declare module '@mui/material/styles/createPalette' {
|
|
61
65
|
}
|
62
66
|
}
|
63
67
|
export interface PaletteColor {
|
64
|
-
light
|
65
|
-
main
|
66
|
-
dark
|
68
|
+
light?: string;
|
69
|
+
main?: string;
|
70
|
+
dark?: string;
|
67
71
|
contrastText?: string;
|
68
72
|
950?: string;
|
69
73
|
900?: string;
|
@@ -84,5 +84,32 @@ declare const _default: {
|
|
84
84
|
A10: string;
|
85
85
|
A0: string;
|
86
86
|
};
|
87
|
+
neutral: {
|
88
|
+
950: string;
|
89
|
+
900: string;
|
90
|
+
800: string;
|
91
|
+
700: string;
|
92
|
+
600: string;
|
93
|
+
500: string;
|
94
|
+
400: string;
|
95
|
+
300: string;
|
96
|
+
200: string;
|
97
|
+
100: string;
|
98
|
+
50: string;
|
99
|
+
};
|
100
|
+
backgroundColor: {
|
101
|
+
main: string;
|
102
|
+
950: string;
|
103
|
+
900: string;
|
104
|
+
800: string;
|
105
|
+
700: string;
|
106
|
+
600: string;
|
107
|
+
500: string;
|
108
|
+
400: string;
|
109
|
+
300: string;
|
110
|
+
200: string;
|
111
|
+
100: string;
|
112
|
+
50: string;
|
113
|
+
};
|
87
114
|
};
|
88
115
|
export default _default;
|
@@ -54,6 +54,7 @@ declare const _default: {
|
|
54
54
|
50: string;
|
55
55
|
};
|
56
56
|
backgroundColor: {
|
57
|
+
main: string;
|
57
58
|
950: string;
|
58
59
|
900: string;
|
59
60
|
800: string;
|
@@ -146,6 +147,16 @@ declare const _default: {
|
|
146
147
|
A0: string;
|
147
148
|
};
|
148
149
|
base: {
|
150
|
+
900: string;
|
151
|
+
800: string;
|
152
|
+
700: string;
|
153
|
+
600: string;
|
154
|
+
500: string;
|
155
|
+
400: string;
|
156
|
+
300: string;
|
157
|
+
200: string;
|
158
|
+
100: string;
|
159
|
+
50: string;
|
149
160
|
main: string;
|
150
161
|
A100: string;
|
151
162
|
A80: string;
|