@xqmsg/ui-core 0.8.0
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/LICENSE +21 -0
- package/README.md +181 -0
- package/dist/components/banner/Banner.stories.d.ts +5 -0
- package/dist/components/banner/index.d.ts +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs.stories.d.ts +5 -0
- package/dist/components/breadcrumbs/components/icon/index.d.ts +9 -0
- package/dist/components/breadcrumbs/components/label/index.d.ts +8 -0
- package/dist/components/breadcrumbs/index.d.ts +14 -0
- package/dist/components/button/Button.stories.d.ts +5 -0
- package/dist/components/button/google/GoogleButton.stories.d.ts +5 -0
- package/dist/components/button/google/index.d.ts +8 -0
- package/dist/components/button/index.d.ts +20 -0
- package/dist/components/button/spinner/SpinnerButton.stories.d.ts +5 -0
- package/dist/components/button/spinner/index.d.ts +9 -0
- package/dist/components/form/Form.stories.d.ts +8 -0
- package/dist/components/form/FormTypes.d.ts +16 -0
- package/dist/components/form/hooks/useFormHandler.d.ts +10 -0
- package/dist/components/form/index.d.ts +12 -0
- package/dist/components/form/section/FormSection.stories.d.ts +9 -0
- package/dist/components/form/section/index.d.ts +28 -0
- package/dist/components/form/utils/formErrors.d.ts +6 -0
- package/dist/components/input/Input.stories.d.ts +8 -0
- package/dist/components/input/InputTypes.d.ts +27 -0
- package/dist/components/input/StackedCheckbox/StackedCheckboxGroup.d.ts +10 -0
- package/dist/components/input/StackedInput/StackedInput.d.ts +13 -0
- package/dist/components/input/StackedMultiSelect/components/MultiValue/index.d.ts +10 -0
- package/dist/components/input/StackedMultiSelect/index.d.ts +13 -0
- package/dist/components/input/StackedPilledInput/index.d.ts +12 -0
- package/dist/components/input/StackedRadio/StackedRadioGroup.d.ts +11 -0
- package/dist/components/input/StackedSelect/StackedSelect.d.ts +10 -0
- package/dist/components/input/StackedSwitch/index.d.ts +9 -0
- package/dist/components/input/StackedTextarea/StackedTextarea.d.ts +9 -0
- package/dist/components/input/components/InputTag/index.d.ts +7 -0
- package/dist/components/input/index.d.ts +26 -0
- package/dist/components/layout/BorderedBox/index.d.ts +9 -0
- package/dist/components/layout/Layout.stories.d.ts +5 -0
- package/dist/components/layout/index.d.ts +11 -0
- package/dist/components/loading/LoadingIndicator.stories.d.ts +5 -0
- package/dist/components/loading/index.d.ts +12 -0
- package/dist/components/table/Table.stories.d.ts +6 -0
- package/dist/components/table/TableTypes.d.ts +11 -0
- package/dist/components/table/index.d.ts +17 -0
- package/dist/components/table/loading/index.d.ts +10 -0
- package/dist/components/table/utils/generateTableColumns.d.ts +6 -0
- package/dist/components/tabs/TabsWrapper.stories.d.ts +6 -0
- package/dist/components/tabs/index.d.ts +10 -0
- package/dist/components/text/Text.stories.d.ts +5 -0
- package/dist/components/text/index.d.ts +19 -0
- package/dist/hooks/useDeepEffect.d.ts +5 -0
- package/dist/hooks/useDidMountEffect.d.ts +2 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +8 -0
- package/dist/theme/components/alert.d.ts +46 -0
- package/dist/theme/components/badge.d.ts +32 -0
- package/dist/theme/components/button.d.ts +231 -0
- package/dist/theme/components/code.d.ts +27 -0
- package/dist/theme/components/form-error.d.ts +16 -0
- package/dist/theme/components/form-label.d.ts +15 -0
- package/dist/theme/components/form.d.ts +16 -0
- package/dist/theme/components/input.d.ts +182 -0
- package/dist/theme/components/link.d.ts +97 -0
- package/dist/theme/components/menu.d.ts +48 -0
- package/dist/theme/components/modal.d.ts +242 -0
- package/dist/theme/components/select.d.ts +191 -0
- package/dist/theme/components/switch.d.ts +76 -0
- package/dist/theme/components/tabs.d.ts +219 -0
- package/dist/theme/components/text.d.ts +1373 -0
- package/dist/theme/components/textarea.d.ts +137 -0
- package/dist/theme/customXQChakraTheme.d.ts +3 -0
- package/dist/theme/foundations/breakpoints.d.ts +3 -0
- package/dist/theme/foundations/colors.d.ts +126 -0
- package/dist/theme/foundations/shadows.d.ts +17 -0
- package/dist/theme/foundations/typography.d.ts +56 -0
- package/dist/theme/provider/index.d.ts +6 -0
- package/dist/theme/styles.d.ts +20 -0
- package/dist/ui-core.cjs.development.js +3034 -0
- package/dist/ui-core.cjs.development.js.map +1 -0
- package/dist/ui-core.cjs.production.min.js +2 -0
- package/dist/ui-core.cjs.production.min.js.map +1 -0
- package/dist/ui-core.esm.js +3013 -0
- package/dist/ui-core.esm.js.map +1 -0
- package/package.json +113 -0
- package/src/components/banner/Banner.stories.tsx +68 -0
- package/src/components/banner/assets/svg/error.svg +3 -0
- package/src/components/banner/assets/svg/neutral.svg +3 -0
- package/src/components/banner/assets/svg/positive.svg +3 -0
- package/src/components/banner/assets/svg/warning.svg +3 -0
- package/src/components/banner/index.tsx +63 -0
- package/src/components/breadcrumbs/Breadcrumbs.stories.tsx +66 -0
- package/src/components/breadcrumbs/components/icon/index.tsx +40 -0
- package/src/components/breadcrumbs/components/label/index.tsx +20 -0
- package/src/components/breadcrumbs/index.tsx +47 -0
- package/src/components/button/Button.stories.tsx +46 -0
- package/src/components/button/google/GoogleButton.stories.tsx +23 -0
- package/src/components/button/google/assets/GoogleLogo.svg +13 -0
- package/src/components/button/google/index.tsx +32 -0
- package/src/components/button/index.tsx +54 -0
- package/src/components/button/spinner/SpinnerButton.stories.tsx +60 -0
- package/src/components/button/spinner/index.tsx +42 -0
- package/src/components/form/Form.stories.tsx +62 -0
- package/src/components/form/FormTypes.ts +18 -0
- package/src/components/form/hooks/useFormHandler.tsx +74 -0
- package/src/components/form/index.tsx +25 -0
- package/src/components/form/section/FormSection.stories.tsx +109 -0
- package/src/components/form/section/index.tsx +81 -0
- package/src/components/form/utils/formErrors.ts +34 -0
- package/src/components/input/Input.stories.tsx +171 -0
- package/src/components/input/InputTypes.ts +71 -0
- package/src/components/input/StackedCheckbox/StackedCheckboxGroup.tsx +29 -0
- package/src/components/input/StackedInput/StackedInput.tsx +30 -0
- package/src/components/input/StackedMultiSelect/components/MultiValue/index.tsx +21 -0
- package/src/components/input/StackedMultiSelect/index.tsx +145 -0
- package/src/components/input/StackedPilledInput/index.tsx +169 -0
- package/src/components/input/StackedRadio/StackedRadioGroup.tsx +38 -0
- package/src/components/input/StackedSelect/StackedSelect.tsx +33 -0
- package/src/components/input/StackedSwitch/index.tsx +28 -0
- package/src/components/input/StackedTextarea/StackedTextarea.tsx +17 -0
- package/src/components/input/components/InputTag/index.tsx +24 -0
- package/src/components/input/index.tsx +271 -0
- package/src/components/layout/BorderedBox/index.tsx +30 -0
- package/src/components/layout/Layout.stories.tsx +40 -0
- package/src/components/layout/index.tsx +100 -0
- package/src/components/loading/LoadingIndicator.stories.tsx +45 -0
- package/src/components/loading/index.tsx +45 -0
- package/src/components/table/Table.stories.tsx +73 -0
- package/src/components/table/TableTypes.ts +35 -0
- package/src/components/table/index.tsx +88 -0
- package/src/components/table/loading/index.tsx +42 -0
- package/src/components/table/utils/generateTableColumns.ts +9 -0
- package/src/components/tabs/TabsWrapper.stories.tsx +85 -0
- package/src/components/tabs/index.tsx +39 -0
- package/src/components/text/Text.stories.tsx +59 -0
- package/src/components/text/index.tsx +45 -0
- package/src/hooks/useDeepEffect.tsx +22 -0
- package/src/hooks/useDidMountEffect.tsx +13 -0
- package/src/index.tsx +48 -0
- package/src/theme/components/alert.ts +60 -0
- package/src/theme/components/badge.ts +59 -0
- package/src/theme/components/button.ts +211 -0
- package/src/theme/components/code.ts +16 -0
- package/src/theme/components/form-error.ts +32 -0
- package/src/theme/components/form-label.ts +16 -0
- package/src/theme/components/form.ts +32 -0
- package/src/theme/components/input.ts +213 -0
- package/src/theme/components/link.ts +117 -0
- package/src/theme/components/menu.ts +70 -0
- package/src/theme/components/modal.ts +216 -0
- package/src/theme/components/select.ts +41 -0
- package/src/theme/components/switch.ts +89 -0
- package/src/theme/components/tabs.ts +255 -0
- package/src/theme/components/text.ts +46 -0
- package/src/theme/components/textarea.ts +54 -0
- package/src/theme/customXQChakraTheme.ts +52 -0
- package/src/theme/foundations/breakpoints.ts +18 -0
- package/src/theme/foundations/colors.ts +136 -0
- package/src/theme/foundations/shadows.ts +23 -0
- package/src/theme/foundations/typography.ts +62 -0
- package/src/theme/provider/index.tsx +16 -0
- package/src/theme/styles.ts +19 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle: {
|
|
3
|
+
display: string;
|
|
4
|
+
paddingY: string;
|
|
5
|
+
minHeight: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
width: string;
|
|
8
|
+
outline: number;
|
|
9
|
+
position: string;
|
|
10
|
+
appearance: string;
|
|
11
|
+
transition: string;
|
|
12
|
+
'::placeholder': {
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
sizes: {
|
|
17
|
+
sm: {
|
|
18
|
+
fontSize: string;
|
|
19
|
+
pl: number;
|
|
20
|
+
pr: number;
|
|
21
|
+
h: number;
|
|
22
|
+
borderRadius: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
fontSize: string;
|
|
26
|
+
pl: number;
|
|
27
|
+
pr: number;
|
|
28
|
+
h: number;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
fontSize: string;
|
|
33
|
+
pl: number;
|
|
34
|
+
pr: number;
|
|
35
|
+
h: number;
|
|
36
|
+
borderRadius: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
variants: {
|
|
40
|
+
outline: (props: Record<string, any>) => {
|
|
41
|
+
border: string;
|
|
42
|
+
borderColor: string;
|
|
43
|
+
bg: string;
|
|
44
|
+
_hover: {
|
|
45
|
+
borderColor: string;
|
|
46
|
+
};
|
|
47
|
+
_readOnly: {
|
|
48
|
+
boxShadow: string;
|
|
49
|
+
userSelect: string;
|
|
50
|
+
};
|
|
51
|
+
_disabled: {
|
|
52
|
+
opacity: number;
|
|
53
|
+
cursor: string;
|
|
54
|
+
};
|
|
55
|
+
_focus: {
|
|
56
|
+
zIndex: number;
|
|
57
|
+
borderColor: any;
|
|
58
|
+
boxShadow: string;
|
|
59
|
+
};
|
|
60
|
+
_invalid: {
|
|
61
|
+
borderColor: any;
|
|
62
|
+
boxShadow: string;
|
|
63
|
+
_focus: {
|
|
64
|
+
boxShadow: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
flushed: (props: Record<string, any>) => {
|
|
69
|
+
borderBottom: string;
|
|
70
|
+
borderRadius: number;
|
|
71
|
+
pl: number;
|
|
72
|
+
pr: number;
|
|
73
|
+
bg: string;
|
|
74
|
+
_readOnly: {
|
|
75
|
+
boxShadow: string;
|
|
76
|
+
userSelect: string;
|
|
77
|
+
};
|
|
78
|
+
_focus: {
|
|
79
|
+
borderColor: any;
|
|
80
|
+
boxShadow: string;
|
|
81
|
+
};
|
|
82
|
+
_invalid: {
|
|
83
|
+
borderColor: any;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
filled: (props: Record<string, any>) => {
|
|
87
|
+
border: string;
|
|
88
|
+
borderColor: string;
|
|
89
|
+
bg: string;
|
|
90
|
+
_hover: {
|
|
91
|
+
bg: string;
|
|
92
|
+
};
|
|
93
|
+
_readOnly: {
|
|
94
|
+
boxShadow: string;
|
|
95
|
+
userSelect: string;
|
|
96
|
+
};
|
|
97
|
+
_disabled: {
|
|
98
|
+
opacity: number;
|
|
99
|
+
cursor: string;
|
|
100
|
+
};
|
|
101
|
+
_focus: {
|
|
102
|
+
bg: string;
|
|
103
|
+
borderColor: any;
|
|
104
|
+
};
|
|
105
|
+
_invalid: {
|
|
106
|
+
borderColor: any;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
code: (props: Record<string, any>) => {
|
|
110
|
+
bg: string;
|
|
111
|
+
color: string;
|
|
112
|
+
fontFamily: string;
|
|
113
|
+
fontSize: string;
|
|
114
|
+
border: string;
|
|
115
|
+
borderColor: string;
|
|
116
|
+
borderRadius: string;
|
|
117
|
+
p: number;
|
|
118
|
+
wordBreak: string;
|
|
119
|
+
_focus: {
|
|
120
|
+
zIndex: number;
|
|
121
|
+
borderColor: any;
|
|
122
|
+
boxShadow: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
unstyled: {
|
|
126
|
+
bg: string;
|
|
127
|
+
pl: number;
|
|
128
|
+
pr: number;
|
|
129
|
+
height: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
defaultProps: {
|
|
133
|
+
size: string;
|
|
134
|
+
variant: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
export default _default;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export interface ColorHues {
|
|
2
|
+
50: string;
|
|
3
|
+
100: string;
|
|
4
|
+
200: string;
|
|
5
|
+
300: string;
|
|
6
|
+
400: string;
|
|
7
|
+
500: string;
|
|
8
|
+
600: string;
|
|
9
|
+
700: string;
|
|
10
|
+
800: string;
|
|
11
|
+
900: string;
|
|
12
|
+
}
|
|
13
|
+
declare const colors: {
|
|
14
|
+
label: {
|
|
15
|
+
primary: {
|
|
16
|
+
light: string;
|
|
17
|
+
dark: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
whiteAlpha: {
|
|
21
|
+
50: string;
|
|
22
|
+
100: string;
|
|
23
|
+
200: string;
|
|
24
|
+
300: string;
|
|
25
|
+
400: string;
|
|
26
|
+
500: string;
|
|
27
|
+
600: string;
|
|
28
|
+
700: string;
|
|
29
|
+
800: string;
|
|
30
|
+
900: string;
|
|
31
|
+
};
|
|
32
|
+
blackAlpha: {
|
|
33
|
+
50: string;
|
|
34
|
+
100: string;
|
|
35
|
+
200: string;
|
|
36
|
+
300: string;
|
|
37
|
+
400: string;
|
|
38
|
+
500: string;
|
|
39
|
+
600: string;
|
|
40
|
+
700: string;
|
|
41
|
+
800: string;
|
|
42
|
+
900: string;
|
|
43
|
+
};
|
|
44
|
+
gray: {
|
|
45
|
+
50: string;
|
|
46
|
+
100: string;
|
|
47
|
+
200: string;
|
|
48
|
+
300: string;
|
|
49
|
+
400: string;
|
|
50
|
+
500: string;
|
|
51
|
+
600: string;
|
|
52
|
+
700: string;
|
|
53
|
+
800: string;
|
|
54
|
+
900: string;
|
|
55
|
+
};
|
|
56
|
+
red: ColorHues;
|
|
57
|
+
orange: ColorHues;
|
|
58
|
+
green: ColorHues;
|
|
59
|
+
blue: ColorHues;
|
|
60
|
+
transparent: string;
|
|
61
|
+
current: string;
|
|
62
|
+
black: string;
|
|
63
|
+
white: string;
|
|
64
|
+
lightBlue: string;
|
|
65
|
+
coolGray: string;
|
|
66
|
+
darkBlue: string;
|
|
67
|
+
backdrop: string;
|
|
68
|
+
};
|
|
69
|
+
export declare type Colors = typeof colors;
|
|
70
|
+
declare const _default: {
|
|
71
|
+
label: {
|
|
72
|
+
primary: {
|
|
73
|
+
light: string;
|
|
74
|
+
dark: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
whiteAlpha: {
|
|
78
|
+
50: string;
|
|
79
|
+
100: string;
|
|
80
|
+
200: string;
|
|
81
|
+
300: string;
|
|
82
|
+
400: string;
|
|
83
|
+
500: string;
|
|
84
|
+
600: string;
|
|
85
|
+
700: string;
|
|
86
|
+
800: string;
|
|
87
|
+
900: string;
|
|
88
|
+
};
|
|
89
|
+
blackAlpha: {
|
|
90
|
+
50: string;
|
|
91
|
+
100: string;
|
|
92
|
+
200: string;
|
|
93
|
+
300: string;
|
|
94
|
+
400: string;
|
|
95
|
+
500: string;
|
|
96
|
+
600: string;
|
|
97
|
+
700: string;
|
|
98
|
+
800: string;
|
|
99
|
+
900: string;
|
|
100
|
+
};
|
|
101
|
+
gray: {
|
|
102
|
+
50: string;
|
|
103
|
+
100: string;
|
|
104
|
+
200: string;
|
|
105
|
+
300: string;
|
|
106
|
+
400: string;
|
|
107
|
+
500: string;
|
|
108
|
+
600: string;
|
|
109
|
+
700: string;
|
|
110
|
+
800: string;
|
|
111
|
+
900: string;
|
|
112
|
+
};
|
|
113
|
+
red: ColorHues;
|
|
114
|
+
orange: ColorHues;
|
|
115
|
+
green: ColorHues;
|
|
116
|
+
blue: ColorHues;
|
|
117
|
+
transparent: string;
|
|
118
|
+
current: string;
|
|
119
|
+
black: string;
|
|
120
|
+
white: string;
|
|
121
|
+
lightBlue: string;
|
|
122
|
+
coolGray: string;
|
|
123
|
+
darkBlue: string;
|
|
124
|
+
backdrop: string;
|
|
125
|
+
};
|
|
126
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const shadows: {
|
|
2
|
+
xs: string;
|
|
3
|
+
sm: string;
|
|
4
|
+
base: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
'2xl': string;
|
|
9
|
+
insetOutline: string;
|
|
10
|
+
outline: string;
|
|
11
|
+
outlineDanger600: string;
|
|
12
|
+
inner: string;
|
|
13
|
+
none: string;
|
|
14
|
+
'dark-lg': string;
|
|
15
|
+
};
|
|
16
|
+
export declare type Shadows = typeof shadows;
|
|
17
|
+
export default shadows;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
declare const typography: {
|
|
2
|
+
letterSpacings: {
|
|
3
|
+
tighter: string;
|
|
4
|
+
tight: string;
|
|
5
|
+
normal: string;
|
|
6
|
+
wide: string;
|
|
7
|
+
wider: string;
|
|
8
|
+
widest: string;
|
|
9
|
+
};
|
|
10
|
+
lineHeights: {
|
|
11
|
+
normal: string;
|
|
12
|
+
none: number;
|
|
13
|
+
shorter: number;
|
|
14
|
+
short: number;
|
|
15
|
+
base: number;
|
|
16
|
+
tall: number;
|
|
17
|
+
taller: string;
|
|
18
|
+
3: string;
|
|
19
|
+
4: string;
|
|
20
|
+
5: string;
|
|
21
|
+
6: string;
|
|
22
|
+
7: string;
|
|
23
|
+
8: string;
|
|
24
|
+
9: string;
|
|
25
|
+
10: string;
|
|
26
|
+
};
|
|
27
|
+
fontWeights: {
|
|
28
|
+
hairline: number;
|
|
29
|
+
thin: number;
|
|
30
|
+
light: number;
|
|
31
|
+
normal: number;
|
|
32
|
+
medium: number;
|
|
33
|
+
semibold: number;
|
|
34
|
+
bold: number;
|
|
35
|
+
extrabold: number;
|
|
36
|
+
black: number;
|
|
37
|
+
};
|
|
38
|
+
fonts: {
|
|
39
|
+
base: string;
|
|
40
|
+
mono: string;
|
|
41
|
+
};
|
|
42
|
+
fontSizes: {
|
|
43
|
+
xs: string;
|
|
44
|
+
sm: string;
|
|
45
|
+
md: string;
|
|
46
|
+
lg: string;
|
|
47
|
+
xl: string;
|
|
48
|
+
'2xl': string;
|
|
49
|
+
'3xl': string;
|
|
50
|
+
'4xl': string;
|
|
51
|
+
'5xl': string;
|
|
52
|
+
'6xl': string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare type Typography = typeof typography;
|
|
56
|
+
export default typography;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
global: {
|
|
3
|
+
'html, body, #root': {};
|
|
4
|
+
body: {
|
|
5
|
+
fontFamily: string;
|
|
6
|
+
color: string;
|
|
7
|
+
overflow: {
|
|
8
|
+
base: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
'*, *::before, *::after': {
|
|
13
|
+
borderColor: string;
|
|
14
|
+
};
|
|
15
|
+
'*::placeholder': {
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|