@xqmsg/ui-core 0.14.4 → 0.15.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 (38) hide show
  1. package/dist/components/input/StackedCheckbox/StackedCheckbox.d.ts +10 -0
  2. package/dist/components/input/StackedMultiSelect/index.d.ts +0 -1
  3. package/dist/components/input/StackedPilledInput/index.d.ts +0 -1
  4. package/dist/components/input/components/dropdown/index.d.ts +3 -1
  5. package/dist/theme/components/button.d.ts +10 -8
  6. package/dist/theme/components/input.d.ts +2 -0
  7. package/dist/theme/components/select.d.ts +2 -0
  8. package/dist/theme/components/table.d.ts +1 -0
  9. package/dist/theme/components/textarea.d.ts +3 -1
  10. package/dist/ui-core.cjs.development.js +336 -186
  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 +337 -187
  15. package/dist/ui-core.esm.js.map +1 -1
  16. package/package.json +1 -1
  17. package/src/components/banner/index.tsx +7 -15
  18. package/src/components/button/Button.stories.tsx +15 -5
  19. package/src/components/button/index.tsx +2 -2
  20. package/src/components/input/Input.stories.tsx +95 -47
  21. package/src/components/input/StackedCheckbox/StackedCheckbox.tsx +27 -0
  22. package/src/components/input/StackedMultiSelect/index.tsx +187 -144
  23. package/src/components/input/StackedPilledInput/index.tsx +217 -225
  24. package/src/components/input/StackedSelect/StackedSelect.tsx +34 -2
  25. package/src/components/input/StackedSwitch/index.tsx +9 -1
  26. package/src/components/input/StackedTextarea/StackedTextarea.tsx +1 -1
  27. package/src/components/input/components/dropdown/index.tsx +23 -6
  28. package/src/components/input/components/token/index.tsx +11 -6
  29. package/src/components/input/index.tsx +5 -4
  30. package/src/components/table/index.tsx +2 -7
  31. package/src/theme/components/button.ts +10 -10
  32. package/src/theme/components/input.ts +1 -0
  33. package/src/theme/components/table.ts +1 -0
  34. package/src/theme/components/textarea.ts +4 -1
  35. package/dist/components/input/StackedCheckbox/StackedCheckboxGroup.d.ts +0 -10
  36. package/dist/components/input/StackedMultiSelect/components/MultiValue/index.d.ts +0 -10
  37. package/src/components/input/StackedCheckbox/StackedCheckboxGroup.tsx +0 -29
  38. package/src/components/input/StackedMultiSelect/components/MultiValue/index.tsx +0 -21
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { SelectFieldProps } from '../InputTypes';
3
+ export interface StackedCheckboxProps extends SelectFieldProps {
4
+ label: string;
5
+ }
6
+ /**
7
+ * A functional React component utilized to render the `StackedCheckbox` component.
8
+ */
9
+ declare const StackedCheckbox: React.ForwardRefExoticComponent<StackedCheckboxProps & React.RefAttributes<HTMLInputElement>>;
10
+ export default StackedCheckbox;
@@ -7,7 +7,6 @@ export interface StackedMultiSelectProps extends ReactSelectFieldProps {
7
7
  setError: UseFormSetError<FieldValues>;
8
8
  clearErrors: UseFormClearErrors<FieldValues>;
9
9
  control: Control<FieldValues, any>;
10
- maxLength?: number;
11
10
  }
12
11
  /**
13
12
  * A functional React component utilized to render the `StackedMultiSelect` component.
@@ -6,7 +6,6 @@ export interface StackedPilledInputProps extends InputFieldProps {
6
6
  setError: UseFormSetError<FieldValues>;
7
7
  clearErrors: UseFormClearErrors<FieldValues>;
8
8
  control: Control<FieldValues, any>;
9
- maxLength?: number;
10
9
  }
11
10
  /**
12
11
  * A functional React component utilized to render the `StackedPilledInput` component.
@@ -1,8 +1,10 @@
1
- import React from 'react';
1
+ import React, { RefObject } from 'react';
2
2
  import { FieldOption, FieldOptions } from '../../InputTypes';
3
3
  export interface DropdownProps {
4
4
  onSelectItem: (option: FieldOption) => void;
5
5
  options: FieldOptions;
6
+ dropdownRef: RefObject<HTMLDivElement>;
7
+ position: 'top' | 'bottom';
6
8
  }
7
9
  /**
8
10
  * A functional React component utilized to render the `Dropdown` component
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  fontSize: string;
5
5
  bg: string;
6
6
  color: string;
7
+ border: string;
7
8
  px: string;
8
9
  py: string;
9
10
  bgGradient: string;
@@ -23,16 +24,17 @@ declare const _default: {
23
24
  bgGradient: string;
24
25
  };
25
26
  _focus: {
26
- bg: string;
27
- border: string;
27
+ outline: string;
28
+ outlineOffset: string;
28
29
  };
29
30
  };
30
31
  variants: {
31
- solid: {
32
+ primary: {
32
33
  borderRadius: string;
33
34
  fontSize: string;
34
35
  bg: string;
35
36
  color: string;
37
+ border: string;
36
38
  px: string;
37
39
  py: string;
38
40
  bgGradient: string;
@@ -52,14 +54,13 @@ declare const _default: {
52
54
  bgGradient: string;
53
55
  };
54
56
  _focus: {
55
- bg: string;
56
- border: string;
57
+ outline: string;
58
+ outlineOffset: string;
57
59
  };
58
60
  };
59
- outline: {
61
+ secondary: {
60
62
  color: string;
61
63
  bg: string;
62
- border: string;
63
64
  _hover: {
64
65
  bg: string;
65
66
  };
@@ -73,6 +74,7 @@ declare const _default: {
73
74
  };
74
75
  borderRadius: string;
75
76
  fontSize: string;
77
+ border: string;
76
78
  px: string;
77
79
  py: string;
78
80
  bgGradient: string;
@@ -86,7 +88,7 @@ declare const _default: {
86
88
  };
87
89
  };
88
90
  defaultProps: {
89
- solid: string;
91
+ variant: string;
90
92
  };
91
93
  };
92
94
  export default _default;
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  baseStyle: {
4
4
  field: {
5
5
  fontSize: string;
6
+ h: string;
6
7
  '::placeholder': {
7
8
  color: string;
8
9
  };
@@ -26,6 +27,7 @@ declare const _default: {
26
27
  default: {
27
28
  field: {
28
29
  fontSize: string;
30
+ h: string;
29
31
  '::placeholder': {
30
32
  color: string;
31
33
  };
@@ -8,6 +8,7 @@ declare const _default: {
8
8
  bg: string;
9
9
  '> option': {};
10
10
  fontSize: string;
11
+ h: string;
11
12
  '::placeholder': {
12
13
  color: string;
13
14
  };
@@ -38,6 +39,7 @@ declare const _default: {
38
39
  default: {
39
40
  field: {
40
41
  fontSize: string;
42
+ h: string;
41
43
  '::placeholder': {
42
44
  color: string;
43
45
  };
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  th: {
8
8
  bg: string;
9
9
  padding: string;
10
+ fontSize: string;
10
11
  };
11
12
  tr: {
12
13
  fontSize: string;
@@ -1,10 +1,12 @@
1
1
  declare const _default: {
2
2
  baseStyle: {
3
+ fontSize: string;
3
4
  display: string;
4
5
  paddingY: string;
6
+ paddingX: string;
5
7
  height: string;
6
8
  lineHeight: string;
7
- fontSize: string;
9
+ h: string;
8
10
  '::placeholder': {
9
11
  color: string;
10
12
  };