@ctlyst.id/internal-ui 2.0.0-canary.2 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/dist/components/alert/__stories__/alert.stories.d.ts +14 -0
  2. package/dist/components/alert/components/alert-action.d.ts +6 -0
  3. package/dist/components/alert/components/alert-close.d.ts +6 -0
  4. package/dist/components/alert/components/alert-context.d.ts +29 -0
  5. package/dist/components/alert/components/alert-description.d.ts +3 -0
  6. package/dist/components/alert/components/alert-icon.d.ts +6 -0
  7. package/dist/components/alert/components/alert-title.d.ts +3 -0
  8. package/dist/components/alert/components/alert.d.ts +25 -0
  9. package/dist/components/alert/components/icons.d.ts +3 -0
  10. package/dist/components/alert/components/index.d.ts +14 -0
  11. package/dist/components/alert/index.d.ts +1 -0
  12. package/dist/components/{base/__stories__/button.stories.d.ts → badge/__stories__/badge.stories.d.ts} +1 -1
  13. package/dist/components/badge/components/badge.d.ts +11 -0
  14. package/dist/components/badge/index.d.ts +2 -0
  15. package/dist/components/button/__stories__/button.stories.d.ts +14 -0
  16. package/dist/components/button/components/button.d.ts +4 -0
  17. package/dist/components/button/index.d.ts +2 -0
  18. package/dist/components/card/__stories__/card.stories.d.ts +11 -0
  19. package/dist/components/card/components/card.d.ts +8 -0
  20. package/dist/components/card/index.d.ts +2 -0
  21. package/dist/components/checkbox/__stories__/checkbox-group.stories.d.ts +13 -0
  22. package/dist/components/checkbox/components/checkbox-group.d.ts +18 -0
  23. package/dist/components/checkbox/index.d.ts +2 -0
  24. package/dist/components/chips/__stories__/chips.stories.d.ts +12 -0
  25. package/dist/components/chips/components/chips.d.ts +19 -0
  26. package/dist/components/chips/index.d.ts +2 -0
  27. package/dist/components/field/components/field.d.ts +0 -1
  28. package/dist/components/field/index.d.ts +0 -2
  29. package/dist/components/form/__stories__/input.stories.d.ts +14 -0
  30. package/dist/components/form/components/input-addon.d.ts +7 -0
  31. package/dist/components/{field → form}/components/input-field.d.ts +4 -1
  32. package/dist/components/form/index.d.ts +2 -0
  33. package/dist/components/form/styles/input-field.d.ts +4 -0
  34. package/dist/components/index.d.ts +7 -0
  35. package/dist/components/layouting/components/box.d.ts +4 -0
  36. package/dist/components/layouting/components/container.d.ts +4 -0
  37. package/dist/components/layouting/components/flex.d.ts +4 -0
  38. package/dist/components/layouting/components/grid.d.ts +4 -0
  39. package/dist/components/layouting/components/stack.d.ts +4 -0
  40. package/dist/components/layouting/components/wrap.d.ts +4 -0
  41. package/dist/components/layouting/index.d.ts +12 -0
  42. package/dist/components/radio/__stories__/radio-group.stories.d.ts +13 -0
  43. package/dist/components/radio/__stories__/radio.stories.d.ts +12 -0
  44. package/dist/components/radio/components/radio-group.d.ts +17 -0
  45. package/dist/components/radio/components/radio.d.ts +16 -0
  46. package/dist/components/radio/index.d.ts +4 -0
  47. package/dist/components/rating/__stories__/rating.stories.d.ts +10 -0
  48. package/dist/components/rating/components/rating.d.ts +6 -0
  49. package/dist/components/rating/index.d.ts +2 -0
  50. package/dist/components/switch/__stories__/switch.stories.d.ts +13 -0
  51. package/dist/components/switch/components/switch.d.ts +18 -0
  52. package/dist/components/switch/index.d.ts +2 -0
  53. package/dist/components/text/components/text.d.ts +4 -0
  54. package/dist/components/text/index.d.ts +2 -0
  55. package/dist/config/theme/components/alert.d.ts +79 -0
  56. package/dist/config/theme/components/card.d.ts +18 -0
  57. package/dist/config/theme/components/checkbox.d.ts +2 -1
  58. package/dist/config/theme/components/chips.d.ts +30 -0
  59. package/dist/config/theme/components/index.d.ts +3 -0
  60. package/dist/config/theme/components/input.d.ts +8 -21
  61. package/dist/config/theme/components/radio.d.ts +98 -2
  62. package/dist/config/theme/components/switch.d.ts +43 -9
  63. package/dist/config/theme/themeConfiguration.d.ts +4 -2
  64. package/dist/internal-ui.cjs.development.js +1088 -316
  65. package/dist/internal-ui.cjs.development.js.map +1 -1
  66. package/dist/internal-ui.cjs.production.min.js +9 -9
  67. package/dist/internal-ui.cjs.production.min.js.map +1 -1
  68. package/dist/internal-ui.esm.js +1073 -316
  69. package/dist/internal-ui.esm.js.map +1 -1
  70. package/dist/provider/components/provider.d.ts +0 -1
  71. package/package.json +12 -11
  72. package/dist/components/base/__stories__/input.stories.d.ts +0 -16
  73. 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;
@@ -0,0 +1,18 @@
1
+ declare const CardStyle: {
2
+ baseStyle?: ((props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
3
+ shadow: string;
4
+ borderRadius: string;
5
+ }) | undefined;
6
+ sizes?: {
7
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
8
+ } | undefined;
9
+ variants?: {
10
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
11
+ } | undefined;
12
+ defaultProps?: {
13
+ size?: string | number | undefined;
14
+ variant?: string | number | undefined;
15
+ colorScheme?: string | undefined;
16
+ } | undefined;
17
+ };
18
+ export default CardStyle;
@@ -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?: "errors" | "unstyled" | undefined;
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,5 +1,8 @@
1
+ export { default as Alert } from './alert';
1
2
  export { default as Button } from './button';
3
+ export { default as Card } from './card';
2
4
  export { default as Checkbox } from './checkbox';
5
+ export { default as Chips } from './chips';
3
6
  export { default as FormLabel } from './form-label';
4
7
  export { default as Input } from './input';
5
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: string;
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: string;
67
- borderColor: string;
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
- import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
- declare const Radio: ComponentStyleConfig;
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
- thumb: {
5
- bg: string;
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
- } | undefined;
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
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
17
- keys: ("container" | "track" | "thumb")[];
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?: string | number | undefined;
60
+ size?: "sm" | "md" | "lg" | undefined;
27
61
  variant?: string | number | undefined;
28
62
  colorScheme?: string | undefined;
29
63
  } | undefined;
@@ -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
- export type { Theme };
4
- export { theme };
4
+ declare type Foundations = typeof foundations;
5
+ export type { Foundations, Theme };
6
+ export { foundations, theme };