@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.
Files changed (159) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +181 -0
  3. package/dist/components/banner/Banner.stories.d.ts +5 -0
  4. package/dist/components/banner/index.d.ts +12 -0
  5. package/dist/components/breadcrumbs/Breadcrumbs.stories.d.ts +5 -0
  6. package/dist/components/breadcrumbs/components/icon/index.d.ts +9 -0
  7. package/dist/components/breadcrumbs/components/label/index.d.ts +8 -0
  8. package/dist/components/breadcrumbs/index.d.ts +14 -0
  9. package/dist/components/button/Button.stories.d.ts +5 -0
  10. package/dist/components/button/google/GoogleButton.stories.d.ts +5 -0
  11. package/dist/components/button/google/index.d.ts +8 -0
  12. package/dist/components/button/index.d.ts +20 -0
  13. package/dist/components/button/spinner/SpinnerButton.stories.d.ts +5 -0
  14. package/dist/components/button/spinner/index.d.ts +9 -0
  15. package/dist/components/form/Form.stories.d.ts +8 -0
  16. package/dist/components/form/FormTypes.d.ts +16 -0
  17. package/dist/components/form/hooks/useFormHandler.d.ts +10 -0
  18. package/dist/components/form/index.d.ts +12 -0
  19. package/dist/components/form/section/FormSection.stories.d.ts +9 -0
  20. package/dist/components/form/section/index.d.ts +28 -0
  21. package/dist/components/form/utils/formErrors.d.ts +6 -0
  22. package/dist/components/input/Input.stories.d.ts +8 -0
  23. package/dist/components/input/InputTypes.d.ts +27 -0
  24. package/dist/components/input/StackedCheckbox/StackedCheckboxGroup.d.ts +10 -0
  25. package/dist/components/input/StackedInput/StackedInput.d.ts +13 -0
  26. package/dist/components/input/StackedMultiSelect/components/MultiValue/index.d.ts +10 -0
  27. package/dist/components/input/StackedMultiSelect/index.d.ts +13 -0
  28. package/dist/components/input/StackedPilledInput/index.d.ts +12 -0
  29. package/dist/components/input/StackedRadio/StackedRadioGroup.d.ts +11 -0
  30. package/dist/components/input/StackedSelect/StackedSelect.d.ts +10 -0
  31. package/dist/components/input/StackedSwitch/index.d.ts +9 -0
  32. package/dist/components/input/StackedTextarea/StackedTextarea.d.ts +9 -0
  33. package/dist/components/input/components/InputTag/index.d.ts +7 -0
  34. package/dist/components/input/index.d.ts +26 -0
  35. package/dist/components/layout/BorderedBox/index.d.ts +9 -0
  36. package/dist/components/layout/Layout.stories.d.ts +5 -0
  37. package/dist/components/layout/index.d.ts +11 -0
  38. package/dist/components/loading/LoadingIndicator.stories.d.ts +5 -0
  39. package/dist/components/loading/index.d.ts +12 -0
  40. package/dist/components/table/Table.stories.d.ts +6 -0
  41. package/dist/components/table/TableTypes.d.ts +11 -0
  42. package/dist/components/table/index.d.ts +17 -0
  43. package/dist/components/table/loading/index.d.ts +10 -0
  44. package/dist/components/table/utils/generateTableColumns.d.ts +6 -0
  45. package/dist/components/tabs/TabsWrapper.stories.d.ts +6 -0
  46. package/dist/components/tabs/index.d.ts +10 -0
  47. package/dist/components/text/Text.stories.d.ts +5 -0
  48. package/dist/components/text/index.d.ts +19 -0
  49. package/dist/hooks/useDeepEffect.d.ts +5 -0
  50. package/dist/hooks/useDidMountEffect.d.ts +2 -0
  51. package/dist/index.d.ts +15 -0
  52. package/dist/index.js +8 -0
  53. package/dist/theme/components/alert.d.ts +46 -0
  54. package/dist/theme/components/badge.d.ts +32 -0
  55. package/dist/theme/components/button.d.ts +231 -0
  56. package/dist/theme/components/code.d.ts +27 -0
  57. package/dist/theme/components/form-error.d.ts +16 -0
  58. package/dist/theme/components/form-label.d.ts +15 -0
  59. package/dist/theme/components/form.d.ts +16 -0
  60. package/dist/theme/components/input.d.ts +182 -0
  61. package/dist/theme/components/link.d.ts +97 -0
  62. package/dist/theme/components/menu.d.ts +48 -0
  63. package/dist/theme/components/modal.d.ts +242 -0
  64. package/dist/theme/components/select.d.ts +191 -0
  65. package/dist/theme/components/switch.d.ts +76 -0
  66. package/dist/theme/components/tabs.d.ts +219 -0
  67. package/dist/theme/components/text.d.ts +1373 -0
  68. package/dist/theme/components/textarea.d.ts +137 -0
  69. package/dist/theme/customXQChakraTheme.d.ts +3 -0
  70. package/dist/theme/foundations/breakpoints.d.ts +3 -0
  71. package/dist/theme/foundations/colors.d.ts +126 -0
  72. package/dist/theme/foundations/shadows.d.ts +17 -0
  73. package/dist/theme/foundations/typography.d.ts +56 -0
  74. package/dist/theme/provider/index.d.ts +6 -0
  75. package/dist/theme/styles.d.ts +20 -0
  76. package/dist/ui-core.cjs.development.js +3034 -0
  77. package/dist/ui-core.cjs.development.js.map +1 -0
  78. package/dist/ui-core.cjs.production.min.js +2 -0
  79. package/dist/ui-core.cjs.production.min.js.map +1 -0
  80. package/dist/ui-core.esm.js +3013 -0
  81. package/dist/ui-core.esm.js.map +1 -0
  82. package/package.json +113 -0
  83. package/src/components/banner/Banner.stories.tsx +68 -0
  84. package/src/components/banner/assets/svg/error.svg +3 -0
  85. package/src/components/banner/assets/svg/neutral.svg +3 -0
  86. package/src/components/banner/assets/svg/positive.svg +3 -0
  87. package/src/components/banner/assets/svg/warning.svg +3 -0
  88. package/src/components/banner/index.tsx +63 -0
  89. package/src/components/breadcrumbs/Breadcrumbs.stories.tsx +66 -0
  90. package/src/components/breadcrumbs/components/icon/index.tsx +40 -0
  91. package/src/components/breadcrumbs/components/label/index.tsx +20 -0
  92. package/src/components/breadcrumbs/index.tsx +47 -0
  93. package/src/components/button/Button.stories.tsx +46 -0
  94. package/src/components/button/google/GoogleButton.stories.tsx +23 -0
  95. package/src/components/button/google/assets/GoogleLogo.svg +13 -0
  96. package/src/components/button/google/index.tsx +32 -0
  97. package/src/components/button/index.tsx +54 -0
  98. package/src/components/button/spinner/SpinnerButton.stories.tsx +60 -0
  99. package/src/components/button/spinner/index.tsx +42 -0
  100. package/src/components/form/Form.stories.tsx +62 -0
  101. package/src/components/form/FormTypes.ts +18 -0
  102. package/src/components/form/hooks/useFormHandler.tsx +74 -0
  103. package/src/components/form/index.tsx +25 -0
  104. package/src/components/form/section/FormSection.stories.tsx +109 -0
  105. package/src/components/form/section/index.tsx +81 -0
  106. package/src/components/form/utils/formErrors.ts +34 -0
  107. package/src/components/input/Input.stories.tsx +171 -0
  108. package/src/components/input/InputTypes.ts +71 -0
  109. package/src/components/input/StackedCheckbox/StackedCheckboxGroup.tsx +29 -0
  110. package/src/components/input/StackedInput/StackedInput.tsx +30 -0
  111. package/src/components/input/StackedMultiSelect/components/MultiValue/index.tsx +21 -0
  112. package/src/components/input/StackedMultiSelect/index.tsx +145 -0
  113. package/src/components/input/StackedPilledInput/index.tsx +169 -0
  114. package/src/components/input/StackedRadio/StackedRadioGroup.tsx +38 -0
  115. package/src/components/input/StackedSelect/StackedSelect.tsx +33 -0
  116. package/src/components/input/StackedSwitch/index.tsx +28 -0
  117. package/src/components/input/StackedTextarea/StackedTextarea.tsx +17 -0
  118. package/src/components/input/components/InputTag/index.tsx +24 -0
  119. package/src/components/input/index.tsx +271 -0
  120. package/src/components/layout/BorderedBox/index.tsx +30 -0
  121. package/src/components/layout/Layout.stories.tsx +40 -0
  122. package/src/components/layout/index.tsx +100 -0
  123. package/src/components/loading/LoadingIndicator.stories.tsx +45 -0
  124. package/src/components/loading/index.tsx +45 -0
  125. package/src/components/table/Table.stories.tsx +73 -0
  126. package/src/components/table/TableTypes.ts +35 -0
  127. package/src/components/table/index.tsx +88 -0
  128. package/src/components/table/loading/index.tsx +42 -0
  129. package/src/components/table/utils/generateTableColumns.ts +9 -0
  130. package/src/components/tabs/TabsWrapper.stories.tsx +85 -0
  131. package/src/components/tabs/index.tsx +39 -0
  132. package/src/components/text/Text.stories.tsx +59 -0
  133. package/src/components/text/index.tsx +45 -0
  134. package/src/hooks/useDeepEffect.tsx +22 -0
  135. package/src/hooks/useDidMountEffect.tsx +13 -0
  136. package/src/index.tsx +48 -0
  137. package/src/theme/components/alert.ts +60 -0
  138. package/src/theme/components/badge.ts +59 -0
  139. package/src/theme/components/button.ts +211 -0
  140. package/src/theme/components/code.ts +16 -0
  141. package/src/theme/components/form-error.ts +32 -0
  142. package/src/theme/components/form-label.ts +16 -0
  143. package/src/theme/components/form.ts +32 -0
  144. package/src/theme/components/input.ts +213 -0
  145. package/src/theme/components/link.ts +117 -0
  146. package/src/theme/components/menu.ts +70 -0
  147. package/src/theme/components/modal.ts +216 -0
  148. package/src/theme/components/select.ts +41 -0
  149. package/src/theme/components/switch.ts +89 -0
  150. package/src/theme/components/tabs.ts +255 -0
  151. package/src/theme/components/text.ts +46 -0
  152. package/src/theme/components/textarea.ts +54 -0
  153. package/src/theme/customXQChakraTheme.ts +52 -0
  154. package/src/theme/foundations/breakpoints.ts +18 -0
  155. package/src/theme/foundations/colors.ts +136 -0
  156. package/src/theme/foundations/shadows.ts +23 -0
  157. package/src/theme/foundations/typography.ts +62 -0
  158. package/src/theme/provider/index.tsx +16 -0
  159. 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,3 @@
1
+ declare const customXQChakraTheme: Record<string, any>;
2
+ export declare type CustomTheme = typeof customXQChakraTheme;
3
+ export default customXQChakraTheme;
@@ -0,0 +1,3 @@
1
+ import { BaseBreakpointConfig } from '@chakra-ui/theme-tools';
2
+ declare const breakpoints: import("@chakra-ui/theme-tools").Breakpoints<BaseBreakpointConfig>;
3
+ export default breakpoints;
@@ -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,6 @@
1
+ import React from 'react';
2
+ import { ChakraProviderProps } from '@chakra-ui/react';
3
+ /**
4
+ * A functional React wrapper component utilized to consume the custom XQ theme via `ChakraProvider`
5
+ */
6
+ export declare const XQThemeProvider: React.FC<ChakraProviderProps>;
@@ -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;