@xqmsg/ui-core 0.12.1 → 0.14.1

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 (32) hide show
  1. package/dist/components/form/hooks/useFormHandler.d.ts +1 -1
  2. package/dist/components/input/Input.stories.d.ts +1 -0
  3. package/dist/components/input/StackedSelect/StackedSelect.d.ts +1 -0
  4. package/dist/components/input/index.d.ts +3 -3
  5. package/dist/index.d.ts +1 -0
  6. package/dist/theme/components/form-error.d.ts +2 -0
  7. package/dist/theme/components/form.d.ts +2 -0
  8. package/dist/theme/components/table.d.ts +4 -1
  9. package/dist/theme/foundations/colors.d.ts +1 -1
  10. package/dist/ui-core.cjs.development.js +84 -36
  11. package/dist/ui-core.cjs.development.js.map +1 -1
  12. package/dist/ui-core.cjs.production.min.js +1 -1
  13. package/dist/ui-core.cjs.production.min.js.map +1 -1
  14. package/dist/ui-core.esm.js +203 -156
  15. package/dist/ui-core.esm.js.map +1 -1
  16. package/package.json +8 -7
  17. package/src/components/form/hooks/useFormHandler.tsx +2 -2
  18. package/src/components/form/section/index.tsx +4 -3
  19. package/src/components/input/Input.stories.tsx +9 -1
  20. package/src/components/input/StackedPilledInput/index.tsx +12 -1
  21. package/src/components/input/StackedSelect/StackedSelect.tsx +18 -2
  22. package/src/components/input/StackedSwitch/index.tsx +0 -2
  23. package/src/components/input/components/dropdown/index.tsx +1 -1
  24. package/src/components/input/components/token/index.tsx +2 -2
  25. package/src/components/input/index.tsx +148 -166
  26. package/src/components/table/index.tsx +2 -1
  27. package/src/index.tsx +3 -0
  28. package/src/theme/components/form-error.ts +2 -0
  29. package/src/theme/components/form.ts +2 -0
  30. package/src/theme/components/table.ts +5 -5
  31. package/src/theme/foundations/colors.ts +1 -1
  32. package/src/theme/provider/index.tsx +6 -1
@@ -1,10 +1,11 @@
1
1
  import colors from '../foundations/colors';
2
2
 
3
- const parts = ['th', 'td', 'tr', 'body'];
3
+ const parts = ['th', 'td', 'tr', 'body', 'thead'];
4
4
 
5
5
  const baseStyle = {
6
+ thead: { bg: colors.label.primary.dark },
6
7
  th: {
7
- height: 'fit-content',
8
+ height: '100%',
8
9
  width: '100%',
9
10
  bg: colors.label.primary.dark,
10
11
  padding: '5px 8px !important',
@@ -14,11 +15,10 @@ const baseStyle = {
14
15
  display: 'flex',
15
16
  alignItems: 'center',
16
17
  width: '100%',
17
-
18
- height: 'fit-content',
18
+ height: '100%',
19
19
  borderRadius: 'md',
20
20
  _odd: {
21
- background: colors.fill.light.tertiary,
21
+ bg: colors.fill.light.tertiary,
22
22
  },
23
23
  },
24
24
  td: {
@@ -94,7 +94,7 @@ const semantic = {
94
94
  error: '#f96057',
95
95
  };
96
96
 
97
- const colors = {
97
+ export const colors = {
98
98
  label,
99
99
  border,
100
100
  fill,
@@ -7,9 +7,14 @@ import customXQChakraTheme from '../customXQChakraTheme';
7
7
  */
8
8
  export const XQThemeProvider: React.FC<ChakraProviderProps> = ({
9
9
  children,
10
+ cssVarsRoot,
10
11
  }) => {
11
12
  return (
12
- <ChakraProvider theme={customXQChakraTheme} resetCSS>
13
+ <ChakraProvider
14
+ theme={customXQChakraTheme}
15
+ resetCSS
16
+ cssVarsRoot={cssVarsRoot}
17
+ >
13
18
  {children}
14
19
  </ChakraProvider>
15
20
  );