@ctlyst.id/internal-ui 1.1.0-canary.0 → 1.1.0-canary.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/components/alert/__stories__/alert.stories.d.ts +14 -0
- package/dist/components/alert/components/alert-action.d.ts +6 -0
- package/dist/components/alert/components/alert-close.d.ts +6 -0
- package/dist/components/alert/components/alert-context.d.ts +29 -0
- package/dist/components/alert/components/alert-description.d.ts +3 -0
- package/dist/components/alert/components/alert-icon.d.ts +6 -0
- package/dist/components/alert/components/alert-title.d.ts +3 -0
- package/dist/components/alert/components/alert.d.ts +25 -0
- package/dist/components/alert/components/icons.d.ts +3 -0
- package/dist/components/alert/components/index.d.ts +14 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/{base/__stories__/button.stories.d.ts → badge/__stories__/badge.stories.d.ts} +1 -1
- package/dist/components/badge/components/badge.d.ts +11 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/button/__stories__/button.stories.d.ts +14 -0
- package/dist/components/button/components/button.d.ts +4 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/checkbox/__stories__/checkbox-group.stories.d.ts +13 -0
- package/dist/components/checkbox/components/checkbox-group.d.ts +18 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/chips/__stories__/chips.stories.d.ts +12 -0
- package/dist/components/chips/components/chips.d.ts +19 -0
- package/dist/components/chips/index.d.ts +2 -0
- package/dist/components/field/components/field.d.ts +0 -1
- package/dist/components/field/index.d.ts +0 -4
- package/dist/components/form/__stories__/input.stories.d.ts +14 -0
- package/dist/components/form/__stories__/textarea.stories.d.ts +10 -0
- package/dist/components/form/components/input-addon.d.ts +7 -0
- package/dist/components/{field → form}/components/input-field.d.ts +4 -1
- package/dist/components/{field/components/textarea-field.d.ts → form/components/textarea.d.ts} +2 -6
- package/dist/components/form/index.d.ts +4 -0
- package/dist/components/form/styles/input-field.d.ts +4 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/layouting/components/box.d.ts +4 -0
- package/dist/components/layouting/components/container.d.ts +4 -0
- package/dist/components/layouting/components/flex.d.ts +4 -0
- package/dist/components/layouting/components/grid.d.ts +4 -0
- package/dist/components/layouting/components/stack.d.ts +4 -0
- package/dist/components/layouting/components/wrap.d.ts +4 -0
- package/dist/components/layouting/index.d.ts +12 -0
- package/dist/components/radio/__stories__/radio-group.stories.d.ts +13 -0
- package/dist/components/radio/__stories__/radio.stories.d.ts +12 -0
- package/dist/components/radio/components/radio-group.d.ts +17 -0
- package/dist/components/radio/components/radio.d.ts +16 -0
- package/dist/components/radio/index.d.ts +4 -0
- package/dist/components/rating/__stories__/rating.stories.d.ts +10 -0
- package/dist/components/rating/components/rating.d.ts +6 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/switch/__stories__/switch.stories.d.ts +13 -0
- package/dist/components/switch/components/switch.d.ts +18 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/text/components/text.d.ts +4 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/config/theme/components/alert.d.ts +79 -0
- package/dist/config/theme/components/checkbox.d.ts +2 -1
- package/dist/config/theme/components/chips.d.ts +30 -0
- package/dist/config/theme/components/index.d.ts +2 -0
- package/dist/config/theme/components/input.d.ts +8 -21
- package/dist/config/theme/components/radio.d.ts +98 -2
- package/dist/config/theme/components/switch.d.ts +43 -9
- package/dist/config/theme/components/textarea.d.ts +54 -2
- package/dist/config/theme/themeConfiguration.d.ts +4 -2
- package/dist/internal-ui.cjs.development.js +1117 -335
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +9 -9
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +1112 -343
- package/dist/internal-ui.esm.js.map +1 -1
- package/dist/provider/components/provider.d.ts +0 -1
- package/package.json +12 -11
- package/dist/components/base/__stories__/input.stories.d.ts +0 -16
- package/dist/components/base/__stories__/radio.stories.d.ts +0 -15
@@ -0,0 +1,79 @@
|
|
1
|
+
import type { StyleFunctionProps } from '@chakra-ui/styled-system';
|
2
|
+
declare const alertTheme: {
|
3
|
+
baseStyle?: {
|
4
|
+
container: {
|
5
|
+
bg: string;
|
6
|
+
px: string;
|
7
|
+
py: string;
|
8
|
+
borderRadius: string;
|
9
|
+
};
|
10
|
+
title: {
|
11
|
+
fontWeight: string;
|
12
|
+
lineHeight: string;
|
13
|
+
marginEnd: string;
|
14
|
+
};
|
15
|
+
description: {
|
16
|
+
lineHeight: string;
|
17
|
+
};
|
18
|
+
icon: {
|
19
|
+
color: string;
|
20
|
+
flexShrink: number;
|
21
|
+
marginEnd: string;
|
22
|
+
w: string;
|
23
|
+
h: string;
|
24
|
+
};
|
25
|
+
action: {
|
26
|
+
'& +.chakra-alert__close': {
|
27
|
+
ml: string;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
close: {
|
31
|
+
color: string;
|
32
|
+
w: string;
|
33
|
+
h: string;
|
34
|
+
};
|
35
|
+
spinner: {
|
36
|
+
color: string;
|
37
|
+
flexShrink: number;
|
38
|
+
marginEnd: string;
|
39
|
+
w: string;
|
40
|
+
h: string;
|
41
|
+
};
|
42
|
+
} | undefined;
|
43
|
+
sizes?: {
|
44
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
45
|
+
keys: ("container" | "icon" | "title" | "description" | "spinner")[];
|
46
|
+
}>;
|
47
|
+
} | undefined;
|
48
|
+
variants?: {
|
49
|
+
subtle: (props: StyleFunctionProps) => {
|
50
|
+
container: {
|
51
|
+
[x: string]: string | {
|
52
|
+
[x: string]: string;
|
53
|
+
};
|
54
|
+
_dark: {
|
55
|
+
[x: string]: string;
|
56
|
+
};
|
57
|
+
color: string;
|
58
|
+
};
|
59
|
+
};
|
60
|
+
solid: (props: StyleFunctionProps) => {
|
61
|
+
container: {
|
62
|
+
[x: string]: string | {
|
63
|
+
[x: string]: string;
|
64
|
+
};
|
65
|
+
_dark: {
|
66
|
+
[x: string]: string;
|
67
|
+
};
|
68
|
+
color: string;
|
69
|
+
};
|
70
|
+
};
|
71
|
+
} | undefined;
|
72
|
+
defaultProps?: {
|
73
|
+
size?: string | number | undefined;
|
74
|
+
variant?: "subtle" | "solid" | undefined;
|
75
|
+
colorScheme?: string | undefined;
|
76
|
+
} | undefined;
|
77
|
+
parts: ("container" | "icon" | "title" | "description" | "spinner")[];
|
78
|
+
};
|
79
|
+
export default alertTheme;
|
@@ -66,6 +66,7 @@ declare const Checkbox: {
|
|
66
66
|
};
|
67
67
|
_disabled: {
|
68
68
|
backgroundColor: string;
|
69
|
+
borderColor: string;
|
69
70
|
};
|
70
71
|
_indeterminate: {
|
71
72
|
borderColor: string;
|
@@ -79,7 +80,7 @@ declare const Checkbox: {
|
|
79
80
|
} | undefined;
|
80
81
|
defaultProps?: {
|
81
82
|
size?: string | number | undefined;
|
82
|
-
variant?: "
|
83
|
+
variant?: "unstyled" | "errors" | undefined;
|
83
84
|
colorScheme?: string | undefined;
|
84
85
|
} | undefined;
|
85
86
|
parts: ("container" | "icon" | "label" | "control")[];
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare const Chips: {
|
2
|
+
baseStyle?: ((props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
3
|
+
color: string;
|
4
|
+
fontSize: string;
|
5
|
+
borderRadius: string;
|
6
|
+
borderWidth: string;
|
7
|
+
borderColor: string;
|
8
|
+
bg: string;
|
9
|
+
paddingX: number;
|
10
|
+
paddingY: number;
|
11
|
+
cursor: string;
|
12
|
+
}) | undefined;
|
13
|
+
sizes?: {
|
14
|
+
sm: {
|
15
|
+
fontSize: string;
|
16
|
+
};
|
17
|
+
md: {
|
18
|
+
fontSize: string;
|
19
|
+
};
|
20
|
+
} | undefined;
|
21
|
+
variants?: {
|
22
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
23
|
+
} | undefined;
|
24
|
+
defaultProps?: {
|
25
|
+
size?: "sm" | "md" | undefined;
|
26
|
+
variant?: string | number | undefined;
|
27
|
+
colorScheme?: string | undefined;
|
28
|
+
} | undefined;
|
29
|
+
};
|
30
|
+
export default Chips;
|
@@ -1,6 +1,8 @@
|
|
1
|
+
export { default as Alert } from './alert';
|
1
2
|
export { default as Button } from './button';
|
2
3
|
export { default as Card } from './card';
|
3
4
|
export { default as Checkbox } from './checkbox';
|
5
|
+
export { default as Chips } from './chips';
|
4
6
|
export { default as FormLabel } from './form-label';
|
5
7
|
export { default as Input } from './input';
|
6
8
|
export { default as LoaderStyle } from './loader';
|
@@ -6,16 +6,18 @@ declare const Input: {
|
|
6
6
|
outline: number;
|
7
7
|
px: number;
|
8
8
|
py: number;
|
9
|
+
paddingInlineStart: number;
|
10
|
+
paddingInlineEnd: number;
|
9
11
|
position: string;
|
10
12
|
appearance: string;
|
11
|
-
transitionProperty: string;
|
12
|
-
transitionDuration: string;
|
13
13
|
color: string;
|
14
14
|
_disabled: {
|
15
15
|
bg: string;
|
16
|
-
border:
|
17
|
-
borderColor: string;
|
16
|
+
border: number;
|
18
17
|
cursor: string;
|
18
|
+
opacity: number;
|
19
|
+
boxShadow: string;
|
20
|
+
color: string;
|
19
21
|
};
|
20
22
|
_placeholder: {
|
21
23
|
color: string;
|
@@ -63,33 +65,18 @@ declare const Input: {
|
|
63
65
|
variants?: {
|
64
66
|
outline: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
65
67
|
field: {
|
66
|
-
border:
|
67
|
-
|
68
|
+
border: number;
|
69
|
+
outline: number;
|
68
70
|
bg: string;
|
69
71
|
color: string;
|
70
|
-
_hover: {
|
71
|
-
borderColor: string;
|
72
|
-
};
|
73
|
-
_readOnly: {
|
74
|
-
userSelect: string;
|
75
|
-
borderColor: any;
|
76
|
-
boxShadow: string;
|
77
|
-
};
|
78
72
|
_invalid: {
|
79
|
-
borderColor: any;
|
80
73
|
boxShadow: string;
|
81
74
|
};
|
82
75
|
_focusVisible: {
|
83
76
|
zIndex: number;
|
84
|
-
borderColor: any;
|
85
77
|
boxShadow: string;
|
86
78
|
};
|
87
79
|
};
|
88
|
-
addon: {
|
89
|
-
border: string;
|
90
|
-
borderColor: string;
|
91
|
-
bg: string;
|
92
|
-
};
|
93
80
|
};
|
94
81
|
unstyled: {
|
95
82
|
field: {
|
@@ -1,3 +1,99 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
declare const Radio: {
|
2
|
+
baseStyle?: {
|
3
|
+
control: {
|
4
|
+
border: string;
|
5
|
+
width: string;
|
6
|
+
height: string;
|
7
|
+
};
|
8
|
+
label: {
|
9
|
+
marginLeft: string;
|
10
|
+
textStyle: string;
|
11
|
+
color: string;
|
12
|
+
_disabled: {
|
13
|
+
color: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
} | undefined;
|
17
|
+
sizes?: {
|
18
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
19
|
+
keys: ("container" | "label" | "control")[];
|
20
|
+
}>;
|
21
|
+
} | undefined;
|
22
|
+
variants?: {
|
23
|
+
errors: {
|
24
|
+
control: {
|
25
|
+
borderColor: string;
|
26
|
+
_checked: {
|
27
|
+
borderColor: string;
|
28
|
+
bg: string;
|
29
|
+
_before: {
|
30
|
+
h: string;
|
31
|
+
w: string;
|
32
|
+
bg: string;
|
33
|
+
};
|
34
|
+
_hover: {
|
35
|
+
borderColor: string;
|
36
|
+
bg: string;
|
37
|
+
};
|
38
|
+
_disabled: {
|
39
|
+
borderColor: string;
|
40
|
+
bg: string;
|
41
|
+
_before: {
|
42
|
+
h: string;
|
43
|
+
w: string;
|
44
|
+
bg: string;
|
45
|
+
};
|
46
|
+
};
|
47
|
+
};
|
48
|
+
_disabled: {
|
49
|
+
borderColor: string;
|
50
|
+
bg: string;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
label: {
|
54
|
+
fontSize: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
unstyled: {
|
58
|
+
control: {
|
59
|
+
borderColor: string;
|
60
|
+
_checked: {
|
61
|
+
borderColor: string;
|
62
|
+
bg: string;
|
63
|
+
_before: {
|
64
|
+
h: string;
|
65
|
+
w: string;
|
66
|
+
bg: string;
|
67
|
+
};
|
68
|
+
_hover: {
|
69
|
+
borderColor: string;
|
70
|
+
bg: string;
|
71
|
+
};
|
72
|
+
_disabled: {
|
73
|
+
borderColor: string;
|
74
|
+
bg: string;
|
75
|
+
_before: {
|
76
|
+
h: string;
|
77
|
+
w: string;
|
78
|
+
bg: string;
|
79
|
+
};
|
80
|
+
};
|
81
|
+
};
|
82
|
+
_disabled: {
|
83
|
+
borderColor: string;
|
84
|
+
bg: string;
|
85
|
+
};
|
86
|
+
};
|
87
|
+
label: {
|
88
|
+
fontSize: string;
|
89
|
+
};
|
90
|
+
};
|
91
|
+
} | undefined;
|
92
|
+
defaultProps?: {
|
93
|
+
size?: string | number | undefined;
|
94
|
+
variant?: "unstyled" | "errors" | undefined;
|
95
|
+
colorScheme?: string | undefined;
|
96
|
+
} | undefined;
|
97
|
+
parts: ("container" | "label" | "control")[];
|
98
|
+
};
|
3
99
|
export default Radio;
|
@@ -1,21 +1,55 @@
|
|
1
1
|
declare const Switch: {
|
2
|
-
baseStyle?: {
|
3
|
-
container: {
|
4
|
-
|
5
|
-
|
2
|
+
baseStyle?: (() => {
|
3
|
+
container: {
|
4
|
+
[x: string]: string | {
|
5
|
+
[x: string]: string;
|
6
|
+
};
|
7
|
+
_rtl: {
|
8
|
+
[x: string]: string;
|
9
|
+
};
|
6
10
|
};
|
7
11
|
track: {
|
8
12
|
bg: string;
|
9
13
|
p: number;
|
10
14
|
_checked: {
|
11
15
|
bg: string;
|
16
|
+
_disabled: {
|
17
|
+
bg: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
_disabled: {
|
21
|
+
bg: string;
|
22
|
+
opacity: string;
|
12
23
|
};
|
13
24
|
};
|
14
|
-
|
25
|
+
thumb: {
|
26
|
+
bg: string;
|
27
|
+
transitionProperty: string;
|
28
|
+
transitionDuration: string;
|
29
|
+
borderRadius: string;
|
30
|
+
width: string[];
|
31
|
+
height: string[];
|
32
|
+
_checked: {
|
33
|
+
transform: string;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
}) | undefined;
|
15
37
|
sizes?: {
|
16
|
-
|
17
|
-
|
18
|
-
|
38
|
+
sm: {
|
39
|
+
container: {
|
40
|
+
[x: string]: string;
|
41
|
+
};
|
42
|
+
};
|
43
|
+
md: {
|
44
|
+
container: {
|
45
|
+
[x: string]: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
lg: {
|
49
|
+
container: {
|
50
|
+
[x: string]: string;
|
51
|
+
};
|
52
|
+
};
|
19
53
|
} | undefined;
|
20
54
|
variants?: {
|
21
55
|
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
@@ -23,7 +57,7 @@ declare const Switch: {
|
|
23
57
|
}>;
|
24
58
|
} | undefined;
|
25
59
|
defaultProps?: {
|
26
|
-
size?:
|
60
|
+
size?: "sm" | "md" | "lg" | undefined;
|
27
61
|
variant?: string | number | undefined;
|
28
62
|
colorScheme?: string | undefined;
|
29
63
|
} | undefined;
|
@@ -1,3 +1,55 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const Textarea: {
|
2
|
+
baseStyle?: import("@chakra-ui/styled-system").CSSWithMultiValues | (import("@chakra-ui/styled-system").CSSWithMultiValues & import("@chakra-ui/styled-system").RecursivePseudo<import("@chakra-ui/styled-system").CSSWithMultiValues>) | (import("@chakra-ui/styled-system").CSSWithMultiValues & import("@chakra-ui/styled-system").RecursiveCSSSelector<import("@chakra-ui/styled-system").CSSWithMultiValues>) | import("@chakra-ui/styled-system").SystemStyleFunction | undefined;
|
3
|
+
sizes?: {
|
4
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
5
|
+
} | undefined;
|
6
|
+
variants?: {
|
7
|
+
outline: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
8
|
+
background: string;
|
9
|
+
color: string;
|
10
|
+
borderColor: string;
|
11
|
+
fontSize: string;
|
12
|
+
padding: number;
|
13
|
+
borderRadius: string;
|
14
|
+
borderWidth: string;
|
15
|
+
outline: string;
|
16
|
+
_disabled: {
|
17
|
+
opacity: number;
|
18
|
+
color: string;
|
19
|
+
background: string;
|
20
|
+
};
|
21
|
+
_placeholder: {
|
22
|
+
color: string;
|
23
|
+
};
|
24
|
+
_hover: {
|
25
|
+
borderColor: string;
|
26
|
+
};
|
27
|
+
_focus: {
|
28
|
+
outline: string;
|
29
|
+
borderColor: string;
|
30
|
+
boxShadow: string;
|
31
|
+
};
|
32
|
+
_focusVisible: {
|
33
|
+
outline: string;
|
34
|
+
borderColor: string;
|
35
|
+
boxShadow: string;
|
36
|
+
};
|
37
|
+
_focusWithin: {
|
38
|
+
outline: string;
|
39
|
+
borderColor: string;
|
40
|
+
boxShadow: string;
|
41
|
+
};
|
42
|
+
_invalid: {
|
43
|
+
outline: string;
|
44
|
+
borderColor: string;
|
45
|
+
boxShadow: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
} | undefined;
|
49
|
+
defaultProps?: {
|
50
|
+
size?: string | number | undefined;
|
51
|
+
variant?: "outline" | undefined;
|
52
|
+
colorScheme?: string | undefined;
|
53
|
+
} | undefined;
|
54
|
+
};
|
3
55
|
export default Textarea;
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import * as foundations from './foundations';
|
1
2
|
declare const theme: Record<string, any>;
|
2
3
|
declare type Theme = typeof theme;
|
3
|
-
|
4
|
-
export {
|
4
|
+
declare type Foundations = typeof foundations;
|
5
|
+
export type { Foundations, Theme };
|
6
|
+
export { foundations, theme };
|