@xqmsg/ui-core 0.23.1-rc.0 → 0.23.1-rc.2

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 (200) hide show
  1. package/CHANGELOG.md +456 -0
  2. package/LICENSE +20 -20
  3. package/README.md +40 -40
  4. package/dist/{89793640b494d7ea.svg → 78c9d6fd7766410f.svg} +9 -9
  5. package/dist/components/input/StackedInput/StackedInput.d.ts +1 -0
  6. package/dist/components/input/StackedPilledInput/index.d.ts +1 -0
  7. package/dist/components/input/StackedTextarea/StackedTextarea.d.ts +1 -0
  8. package/dist/theme/components/button.d.ts +0 -3
  9. package/dist/theme/components/checkbox.d.ts +5 -4
  10. package/dist/theme/components/input.d.ts +12 -1
  11. package/dist/theme/components/select.d.ts +12 -1
  12. package/dist/theme/components/textarea.d.ts +15 -3
  13. package/dist/ui-core.cjs.development.js +85 -78
  14. package/dist/ui-core.cjs.development.js.map +1 -1
  15. package/dist/ui-core.cjs.production.min.js +1 -1
  16. package/dist/ui-core.cjs.production.min.js.map +1 -1
  17. package/dist/ui-core.esm.js +85 -78
  18. package/dist/ui-core.esm.js.map +1 -1
  19. package/package.json +118 -118
  20. package/src/components/banner/Banner.stories.tsx +100 -100
  21. package/src/components/banner/index.tsx +73 -73
  22. package/src/components/breadcrumbs/Breadcrumbs.stories.tsx +66 -66
  23. package/src/components/breadcrumbs/components/icon/index.tsx +38 -38
  24. package/src/components/breadcrumbs/components/label/index.tsx +20 -20
  25. package/src/components/breadcrumbs/index.tsx +48 -48
  26. package/src/components/button/Button.stories.tsx +140 -140
  27. package/src/components/button/google/GoogleButton.stories.tsx +23 -23
  28. package/src/components/button/google/index.tsx +29 -29
  29. package/src/components/button/index.tsx +51 -51
  30. package/src/components/button/microsoft/MicrosoftButton.stories.tsx +25 -25
  31. package/src/components/button/microsoft/index.tsx +29 -29
  32. package/src/components/button/spinner/SpinnerButton.stories.tsx +60 -60
  33. package/src/components/button/spinner/index.tsx +36 -36
  34. package/src/components/card/Card.stories.tsx +56 -56
  35. package/src/components/card/index.tsx +78 -78
  36. package/src/components/form/Form.stories.tsx +62 -62
  37. package/src/components/form/FormTypes.ts +20 -20
  38. package/src/components/form/hooks/useFormHandler.tsx +74 -74
  39. package/src/components/form/index.tsx +25 -25
  40. package/src/components/form/section/FormSection.stories.tsx +109 -109
  41. package/src/components/form/section/index.tsx +87 -87
  42. package/src/components/form/utils/formErrors.ts +34 -34
  43. package/src/components/icons/checkmark/checkmark.svg +3 -3
  44. package/src/components/icons/checkmark/index.tsx +13 -13
  45. package/src/components/icons/chevron/down/chevron-down.svg +3 -3
  46. package/src/components/icons/chevron/down/index.tsx +14 -14
  47. package/src/components/icons/chevron/right/chevron-right.svg +3 -3
  48. package/src/components/icons/chevron/right/index.tsx +13 -13
  49. package/src/components/icons/clock/clock.svg +3 -3
  50. package/src/components/icons/clock/index.tsx +13 -13
  51. package/src/components/icons/close/close.svg +3 -3
  52. package/src/components/icons/close/index.tsx +21 -21
  53. package/src/components/icons/dropdown/dropdown.svg +3 -3
  54. package/src/components/icons/dropdown/index.tsx +16 -16
  55. package/src/components/icons/error/error.svg +3 -3
  56. package/src/components/icons/error/index.tsx +13 -13
  57. package/src/components/icons/file/fill/file-fill.svg +4 -4
  58. package/src/components/icons/file/fill/index.tsx +13 -13
  59. package/src/components/icons/file/outline/file-outline.svg +3 -3
  60. package/src/components/icons/file/outline/index.tsx +13 -13
  61. package/src/components/icons/folder/add/fill/folder-add-fill.svg +3 -3
  62. package/src/components/icons/folder/add/fill/index.tsx +13 -13
  63. package/src/components/icons/folder/add/outline/folder-add-outline.svg +3 -3
  64. package/src/components/icons/folder/add/outline/index.tsx +15 -15
  65. package/src/components/icons/folder/fill/folder-fill-gradient.svg +33 -33
  66. package/src/components/icons/folder/fill/folder-fill.svg +4 -4
  67. package/src/components/icons/folder/fill/index.tsx +21 -21
  68. package/src/components/icons/folder/outline/folder-outline.svg +3 -3
  69. package/src/components/icons/folder/outline/index.tsx +13 -13
  70. package/src/components/icons/gear/GearIcon.tsx +36 -36
  71. package/src/components/icons/google/drive/index.tsx +13 -13
  72. package/src/components/icons/google/google.svg +13 -13
  73. package/src/components/icons/google/index.tsx +13 -13
  74. package/src/components/icons/group/group.svg +3 -3
  75. package/src/components/icons/group/index.tsx +13 -13
  76. package/src/components/icons/home/home.svg +3 -3
  77. package/src/components/icons/home/index.tsx +13 -13
  78. package/src/components/icons/image/image.svg +3 -3
  79. package/src/components/icons/image/index.tsx +13 -13
  80. package/src/components/icons/index.tsx +101 -101
  81. package/src/components/icons/link/index.tsx +13 -13
  82. package/src/components/icons/link/link.svg +4 -4
  83. package/src/components/icons/menu/index.tsx +13 -13
  84. package/src/components/icons/menu/menu.svg +3 -3
  85. package/src/components/icons/microsoft/index.tsx +13 -13
  86. package/src/components/icons/microsoft/microsoft.svg +9 -9
  87. package/src/components/icons/microsoft/onedrive/index.tsx +16 -16
  88. package/src/components/icons/neutral/index.tsx +14 -14
  89. package/src/components/icons/neutral/neutral.svg +3 -3
  90. package/src/components/icons/page/index.tsx +13 -13
  91. package/src/components/icons/page/page.svg +3 -3
  92. package/src/components/icons/positive/index.tsx +13 -13
  93. package/src/components/icons/positive/positive.svg +3 -3
  94. package/src/components/icons/question/index.tsx +13 -13
  95. package/src/components/icons/question/question.svg +3 -3
  96. package/src/components/icons/search/index.tsx +13 -13
  97. package/src/components/icons/search/search.svg +3 -3
  98. package/src/components/icons/services/index.tsx +13 -13
  99. package/src/components/icons/services/services.svg +3 -3
  100. package/src/components/icons/settings/index.tsx +14 -14
  101. package/src/components/icons/settings/settings.svg +6 -6
  102. package/src/components/icons/table/fill/index.tsx +13 -13
  103. package/src/components/icons/table/fill/table-fill.svg +3 -3
  104. package/src/components/icons/table/outline/index.tsx +13 -13
  105. package/src/components/icons/table/outline/table-outline.svg +3 -3
  106. package/src/components/icons/task/index.tsx +10 -10
  107. package/src/components/icons/task/task.svg +11 -11
  108. package/src/components/icons/trash/index.tsx +13 -13
  109. package/src/components/icons/trash/trash.svg +3 -3
  110. package/src/components/icons/vault/index.tsx +14 -14
  111. package/src/components/icons/video/index.tsx +13 -13
  112. package/src/components/icons/video/video.svg +3 -3
  113. package/src/components/icons/warning/index.tsx +13 -13
  114. package/src/components/icons/warning/warning.svg +3 -3
  115. package/src/components/icons/workspace/index.tsx +14 -14
  116. package/src/components/input/Input.stories.tsx +287 -286
  117. package/src/components/input/InputTypes.ts +77 -77
  118. package/src/components/input/StackedCheckbox/StackedCheckbox.tsx +44 -44
  119. package/src/components/input/StackedInput/StackedInput.tsx +60 -55
  120. package/src/components/input/StackedMultiSelect/index.tsx +349 -349
  121. package/src/components/input/StackedPilledInput/index.tsx +386 -362
  122. package/src/components/input/StackedRadio/StackedRadioGroup.tsx +38 -38
  123. package/src/components/input/StackedSelect/index.tsx +232 -232
  124. package/src/components/input/StackedSwitch/index.tsx +33 -33
  125. package/src/components/input/StackedTextarea/StackedTextarea.tsx +55 -53
  126. package/src/components/input/components/dropdown/index.tsx +111 -111
  127. package/src/components/input/components/label/index.tsx +35 -35
  128. package/src/components/input/components/token/Token.stories.tsx +25 -25
  129. package/src/components/input/components/token/index.tsx +45 -45
  130. package/src/components/input/index.tsx +298 -295
  131. package/src/components/layout/BorderedBox/index.tsx +30 -30
  132. package/src/components/layout/Layout.stories.tsx +40 -40
  133. package/src/components/layout/index.tsx +100 -100
  134. package/src/components/link/Link.stories.tsx +23 -23
  135. package/src/components/link/index.tsx +34 -34
  136. package/src/components/loading/LoadingIndicator.stories.tsx +45 -45
  137. package/src/components/loading/index.tsx +45 -45
  138. package/src/components/modal/Modal.stories.tsx +36 -36
  139. package/src/components/modal/components/action/index.tsx +37 -37
  140. package/src/components/modal/index.tsx +41 -41
  141. package/src/components/navigation/NavigationMenu.stories.tsx +85 -85
  142. package/src/components/navigation/components/header/index.tsx +27 -27
  143. package/src/components/navigation/components/items/index.tsx +76 -76
  144. package/src/components/navigation/index.tsx +87 -87
  145. package/src/components/select/index.tsx +140 -184
  146. package/src/components/table/Table.stories.tsx +63 -63
  147. package/src/components/table/TableTypes.ts +15 -15
  148. package/src/components/table/components/loading/index.tsx +45 -45
  149. package/src/components/table/components/text/index.tsx +23 -23
  150. package/src/components/table/empty/index.tsx +47 -47
  151. package/src/components/table/index.tsx +84 -84
  152. package/src/components/table/utils/generateTableColumns.ts +9 -9
  153. package/src/components/tabs/TabsWrapper.stories.tsx +85 -85
  154. package/src/components/tabs/index.tsx +39 -39
  155. package/src/components/text/Text.stories.tsx +59 -59
  156. package/src/components/text/index.tsx +16 -16
  157. package/src/components/toast/Toast.stories.tsx +52 -52
  158. package/src/components/toast/index.tsx +78 -78
  159. package/src/components/toolbar/Toolbar.stories.tsx +59 -59
  160. package/src/components/toolbar/components/actions/add/index.tsx +18 -18
  161. package/src/components/toolbar/components/actions/search/index.tsx +38 -38
  162. package/src/components/toolbar/components/actions/sort/index.tsx +49 -49
  163. package/src/components/toolbar/components/breadcrumbs/index.tsx +63 -63
  164. package/src/components/toolbar/components/breadcrumbs/item/index.tsx +72 -72
  165. package/src/components/toolbar/components/dropdown/index.tsx +107 -107
  166. package/src/components/toolbar/components/navigation/components/button/left/index.tsx +28 -28
  167. package/src/components/toolbar/components/navigation/components/button/left/left-arrow.svg +3 -3
  168. package/src/components/toolbar/components/navigation/components/button/right/index.tsx +27 -27
  169. package/src/components/toolbar/components/navigation/components/button/right/right-arrow.svg +3 -3
  170. package/src/components/toolbar/components/navigation/index.tsx +36 -36
  171. package/src/components/toolbar/index.tsx +55 -55
  172. package/src/hooks/useDeepEffect.tsx +22 -22
  173. package/src/hooks/useDidMountEffect.tsx +13 -13
  174. package/src/hooks/useOnOutsideClick.tsx +31 -31
  175. package/src/hooks/useToast.tsx +16 -16
  176. package/src/index.tsx +78 -78
  177. package/src/theme/components/alert.ts +60 -60
  178. package/src/theme/components/badge.ts +59 -59
  179. package/src/theme/components/button.ts +163 -163
  180. package/src/theme/components/checkbox.ts +28 -25
  181. package/src/theme/components/code.ts +16 -16
  182. package/src/theme/components/form-error.ts +31 -31
  183. package/src/theme/components/form-label.ts +17 -17
  184. package/src/theme/components/form.ts +29 -29
  185. package/src/theme/components/input.ts +65 -57
  186. package/src/theme/components/link.ts +118 -118
  187. package/src/theme/components/modal.ts +45 -45
  188. package/src/theme/components/select.ts +36 -36
  189. package/src/theme/components/switch.ts +89 -89
  190. package/src/theme/components/table.ts +42 -42
  191. package/src/theme/components/tabs.ts +255 -255
  192. package/src/theme/components/text.ts +93 -93
  193. package/src/theme/components/textarea.ts +42 -41
  194. package/src/theme/customXQChakraTheme.ts +54 -54
  195. package/src/theme/foundations/breakpoints.ts +18 -18
  196. package/src/theme/foundations/colors.ts +165 -165
  197. package/src/theme/foundations/shadows.ts +23 -23
  198. package/src/theme/foundations/typography.ts +62 -62
  199. package/src/theme/provider/index.tsx +21 -21
  200. package/src/theme/styles.ts +19 -19
@@ -6,6 +6,7 @@ export interface StackedInputProps extends InputFieldProps {
6
6
  leftElement?: React.ReactNode;
7
7
  rightElement?: React.ReactNode;
8
8
  variant?: string;
9
+ label?: string;
9
10
  }
10
11
  /**
11
12
  * A functional React component utilized to render the `StackedInput` component.
@@ -8,6 +8,7 @@ export interface StackedPilledInputProps extends InputFieldProps {
8
8
  control: Control<FieldValues, any>;
9
9
  separators?: string[];
10
10
  variant?: string;
11
+ label?: string;
11
12
  }
12
13
  /**
13
14
  * A functional React component utilized to render the `StackedPilledInput` component.
@@ -4,6 +4,7 @@ export interface StackedTextareaProps extends TextareaFieldProps {
4
4
  isRequired?: boolean;
5
5
  allowDefault?: boolean;
6
6
  variant: string;
7
+ label?: string;
7
8
  }
8
9
  /**
9
10
  * A functional React component utilized to render the `StackedTextarea` component.
@@ -129,7 +129,6 @@ declare const _default: {
129
129
  border: string;
130
130
  gap: string;
131
131
  height: string;
132
- margin: string;
133
132
  fontSize: string;
134
133
  fontWeight: string;
135
134
  lineHeight: string;
@@ -182,7 +181,6 @@ declare const _default: {
182
181
  border: string;
183
182
  gap: string;
184
183
  height: string;
185
- margin: string;
186
184
  fontSize: string;
187
185
  lineHeight: string;
188
186
  letterSpacing: string;
@@ -225,7 +223,6 @@ declare const _default: {
225
223
  border: string;
226
224
  gap: string;
227
225
  height: string;
228
- margin: string;
229
226
  fontSize: string;
230
227
  lineHeight: string;
231
228
  letterSpacing: string;
@@ -9,13 +9,14 @@ declare const _default: {
9
9
  } | undefined;
10
10
  variants?: {
11
11
  mobile: {
12
- control: {
13
- borderRadius: number;
14
- padding: number;
15
- };
12
+ control: {};
16
13
  label: {
17
14
  fontSize: string;
15
+ fontWeight: number;
16
+ lineHeight: string;
17
+ padding: string;
18
18
  };
19
+ height: string;
19
20
  };
20
21
  } | undefined;
21
22
  defaultProps?: {
@@ -24,6 +24,9 @@ declare const _default: {
24
24
  border: string;
25
25
  borderColor: string;
26
26
  };
27
+ _placeholder: {
28
+ color: string;
29
+ };
27
30
  };
28
31
  };
29
32
  variants: {
@@ -51,18 +54,26 @@ declare const _default: {
51
54
  border: string;
52
55
  borderColor: string;
53
56
  };
57
+ _placeholder: {
58
+ color: string;
59
+ };
54
60
  };
55
61
  };
56
62
  mobile: {
57
63
  field: {
58
64
  fontSize: string;
59
- border: string;
60
65
  py: string;
61
66
  px: string;
62
67
  cursor: string;
63
68
  lineHeight: string;
64
69
  fontWeight: number;
65
70
  borderRadius: number;
71
+ height: string;
72
+ padding: string;
73
+ border: string;
74
+ borderColor: string;
75
+ borderLeft: string;
76
+ borderRight: string;
66
77
  };
67
78
  };
68
79
  };
@@ -29,6 +29,9 @@ declare const _default: {
29
29
  border: string;
30
30
  borderColor: string;
31
31
  };
32
+ _placeholder: {
33
+ color: string;
34
+ };
32
35
  };
33
36
  icon: {
34
37
  color: string;
@@ -63,18 +66,26 @@ declare const _default: {
63
66
  border: string;
64
67
  borderColor: string;
65
68
  };
69
+ _placeholder: {
70
+ color: string;
71
+ };
66
72
  };
67
73
  };
68
74
  mobile: {
69
75
  field: {
70
76
  fontSize: string;
71
- border: string;
72
77
  py: string;
73
78
  px: string;
74
79
  cursor: string;
75
80
  lineHeight: string;
76
81
  fontWeight: number;
77
82
  borderRadius: number;
83
+ height: string;
84
+ padding: string;
85
+ border: string;
86
+ borderColor: string;
87
+ borderLeft: string;
88
+ borderRight: string;
78
89
  };
79
90
  };
80
91
  };
@@ -27,6 +27,9 @@ declare const _default: {
27
27
  border: string;
28
28
  borderColor: string;
29
29
  };
30
+ _placeholder: {
31
+ color: string;
32
+ };
30
33
  };
31
34
  variants: {
32
35
  default: {
@@ -57,28 +60,34 @@ declare const _default: {
57
60
  border: string;
58
61
  borderColor: string;
59
62
  };
63
+ _placeholder: {
64
+ color: string;
65
+ };
60
66
  };
61
67
  mobile: {
62
68
  border: string;
63
69
  borderRadius: number;
64
70
  paddingY: string;
65
71
  paddingX: string;
66
- padding: string;
67
72
  cursor: string;
68
73
  lineHeight: string;
69
74
  fontWeight: number;
70
75
  resize: string;
71
76
  overflowY: string;
72
77
  fontSize: string;
78
+ minHeight: string;
73
79
  py: string;
74
80
  px: string;
75
- display: string;
76
81
  height: string;
82
+ padding: string;
83
+ borderColor: string;
84
+ borderLeft: string;
85
+ borderRight: string;
86
+ display: string;
77
87
  h: string;
78
88
  '::placeholder': {
79
89
  color: string;
80
90
  };
81
- borderColor: string;
82
91
  _disabled: {
83
92
  opacity: number;
84
93
  cursor: string;
@@ -92,6 +101,9 @@ declare const _default: {
92
101
  border: string;
93
102
  borderColor: string;
94
103
  };
104
+ _placeholder: {
105
+ color: string;
106
+ };
95
107
  };
96
108
  };
97
109
  defaultProps: {
@@ -808,7 +808,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
808
808
  return target;
809
809
  }
810
810
 
811
- var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "allowDefault", "variant"];
811
+ var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "allowDefault", "variant", "label"];
812
812
  /**
813
813
  * A functional React component utilized to render the `StackedInput` component.
814
814
  */
@@ -821,14 +821,17 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
821
821
  defaultValue = _ref2.defaultValue,
822
822
  allowDefault = _ref2.allowDefault,
823
823
  variant = _ref2.variant,
824
+ label = _ref2.label,
824
825
  props = _objectWithoutPropertiesLoose(_ref2, _excluded);
825
- return /*#__PURE__*/React__default.createElement(react.InputGroup, null, leftElement && leftElement, variant, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
826
+ var isMobile = variant === 'mobile';
827
+ var placeholder = isMobile && label ? label : undefined;
828
+ return /*#__PURE__*/React__default.createElement(react.InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({}, props, {
829
+ placeholder: placeholder,
826
830
  type: type,
827
- isRequired: isRequired
828
- }, props, {
831
+ isRequired: isRequired,
829
832
  ref: _ref,
830
833
  defaultValue: defaultValue,
831
- fontSize: variant === 'mobile' ? '17px' : '13px',
834
+ fontSize: isMobile ? '17px' : '13px',
832
835
  variant: variant,
833
836
  onKeyDown: function onKeyDown(e) {
834
837
  if (e.key === 'Enter' && !allowDefault) {
@@ -1172,20 +1175,23 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
1172
1175
  }));
1173
1176
  });
1174
1177
 
1175
- var _excluded$2 = ["isRequired", "allowDefault", "variant"];
1178
+ var _excluded$2 = ["isRequired", "allowDefault", "variant", "label"];
1176
1179
  /**
1177
1180
  * A functional React component utilized to render the `StackedTextarea` component.
1178
1181
  */
1179
1182
  var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref) {
1180
1183
  var allowDefault = _ref2.allowDefault,
1181
1184
  variant = _ref2.variant,
1185
+ label = _ref2.label,
1182
1186
  props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
1183
- if (variant === 'mobile') {
1184
- return /*#__PURE__*/React__default.createElement(react.Flex, null, allowDefault, /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1187
+ var isMobile = variant === 'mobile';
1188
+ if (isMobile) {
1189
+ return /*#__PURE__*/React__default.createElement(react.Flex, null, /*#__PURE__*/React__default.createElement(react.Textarea, Object.assign({
1185
1190
  ref: _ref
1186
1191
  }, props, {
1187
1192
  variant: variant,
1188
1193
  fontSize: "17px",
1194
+ placeholder: label != null ? label : '',
1189
1195
  onKeyDown: function onKeyDown(e) {
1190
1196
  if (e.key === 'Enter' && !allowDefault) {
1191
1197
  e.stopPropagation();
@@ -1198,7 +1204,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
1198
1204
  ref: _ref
1199
1205
  }, props, {
1200
1206
  variant: variant,
1201
- fontSize: variant === '' ? '13px' : '17px',
1207
+ fontSize: "13px",
1202
1208
  onKeyDown: function onKeyDown(e) {
1203
1209
  if (e.key === 'Enter' && !allowDefault) {
1204
1210
  e.stopPropagation();
@@ -1568,7 +1574,8 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1568
1574
  disabled = _ref2.disabled,
1569
1575
  _ref2$separators = _ref2.separators,
1570
1576
  separators = _ref2$separators === void 0 ? ['Enter', ' ', ',', ';', 'Tab'] : _ref2$separators,
1571
- variant = _ref2.variant;
1577
+ variant = _ref2.variant,
1578
+ label = _ref2.label;
1572
1579
  var watchedValue = reactHookForm.useWatch({
1573
1580
  control: control,
1574
1581
  name: name
@@ -1716,6 +1723,18 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1716
1723
  borderRadius: isMobile ? '0' : '4px',
1717
1724
  alignItems: "center",
1718
1725
  justifyContent: "space-between",
1726
+ style: isMobile ? {
1727
+ cursor: 'pointer',
1728
+ height: '48px',
1729
+ fontSize: '17px',
1730
+ lineHeight: '20px',
1731
+ fontWeight: 400,
1732
+ padding: '12px 16px 12px 0px',
1733
+ borderRadius: 0,
1734
+ border: '0.5px solid rgba(153, 153, 153, 0.1)',
1735
+ borderLeft: 'none',
1736
+ borderRight: 'none'
1737
+ } : undefined,
1719
1738
  onClick: function onClick() {
1720
1739
  if (isFocussed && tokenIndex !== null) {
1721
1740
  setTokenIndex(null);
@@ -1795,7 +1814,11 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1795
1814
  setIsFocussed(false);
1796
1815
  return setTokenIndex(null);
1797
1816
  },
1798
- variant: variant
1817
+ placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
1818
+ variant: variant,
1819
+ style: isMobile ? {
1820
+ border: 'none'
1821
+ } : undefined
1799
1822
  }))));
1800
1823
  });
1801
1824
 
@@ -1897,7 +1920,8 @@ function Input(_ref) {
1897
1920
  defaultValue: defaultValue,
1898
1921
  value: value,
1899
1922
  allowDefault: allowDefault,
1900
- variant: variant
1923
+ variant: variant,
1924
+ label: label
1901
1925
  });
1902
1926
  case 'radio':
1903
1927
  return /*#__PURE__*/React__default.createElement(StackedRadioGroup, {
@@ -1946,7 +1970,8 @@ function Input(_ref) {
1946
1970
  ref: ref,
1947
1971
  disabled: disabled,
1948
1972
  value: value,
1949
- variant: variant
1973
+ variant: variant,
1974
+ label: label
1950
1975
  });
1951
1976
  case 'checkbox':
1952
1977
  return /*#__PURE__*/React__default.createElement(StackedCheckbox, {
@@ -1999,7 +2024,8 @@ function Input(_ref) {
1999
2024
  clearErrors: clearErrors,
2000
2025
  control: control,
2001
2026
  maxLength: maxLength,
2002
- variant: variant
2027
+ variant: variant,
2028
+ label: label
2003
2029
  });
2004
2030
  case 'switch':
2005
2031
  return /*#__PURE__*/React__default.createElement(StackedSwitch, {
@@ -2995,7 +3021,6 @@ var _excluded$4 = ["label", "ariaLabel", "className", "placeholder", "name", "he
2995
3021
  * A functional React component utilized to render the `SelectNative` component.
2996
3022
  */
2997
3023
  var SelectNative = function SelectNative(_ref) {
2998
- var _options$;
2999
3024
  var name = _ref.name,
3000
3025
  helperText = _ref.helperText,
3001
3026
  options = _ref.options,
@@ -3009,38 +3034,35 @@ var SelectNative = function SelectNative(_ref) {
3009
3034
  setValue = _ref.setValue,
3010
3035
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3011
3036
  // const [selectedOption, setSelectedOption] = useState(
3012
- // options.find(option => option.value === value)?.label ?? ''
3037
+ // options ? options[0] ?? '' : ''
3013
3038
  // );
3014
- var _useState = React.useState(options ? (_options$ = options[0]) != null ? _options$ : '' : ''),
3015
- selectedOption = _useState[0],
3016
- setSelectedOption = _useState[1];
3017
- //const [selectedOption, setSelectedOption] = useState(null);
3018
- // useEffect(() => {
3019
- // if (defaultValue) {
3020
- // setSelectedOption(defaultValue);
3021
- // }
3022
- // setSelectedOption(
3023
- // (fullOptions || options).find(option => option.value === value)?.label ??
3024
- // ''
3025
- // );
3026
- // }, [fullOptions, value]);
3039
+ var style = {
3040
+ cursor: 'pointer',
3041
+ color: 'var(--chakra-colors-blue-500)',
3042
+ height: '48px',
3043
+ fontSize: '17px',
3044
+ lineHeight: '20px',
3045
+ fontWeight: 400,
3046
+ padding: '12px 16px 12px 0px',
3047
+ borderRadius: 0,
3048
+ border: '0.5px solid rgba(153, 153, 153, 0.1)',
3049
+ borderLeft: 'none',
3050
+ borderRight: 'none'
3051
+ };
3027
3052
  var handleOnSelectItem = function handleOnSelectItem(selectedValue) {
3028
- console.log(selectedValue);
3029
3053
  var selectedOption = options == null ? void 0 : options.find(function (_ref2) {
3030
3054
  var val = _ref2.value;
3031
3055
  return selectedValue === val;
3032
3056
  });
3033
- console.log(selectedValue);
3034
- setValue(name, selectedValue);
3035
3057
  if (selectedOption) {
3036
3058
  if (onChange) {
3037
3059
  onChange(selectedOption.value);
3038
3060
  }
3039
- setSelectedOption(selectedOption);
3040
3061
  setValue(name, selectedOption.value);
3062
+ } else {
3063
+ setValue(name, selectedValue);
3041
3064
  }
3042
3065
  };
3043
- console.log(selectedOption);
3044
3066
  React.useEffect(function () {
3045
3067
  if (defaultValue) {
3046
3068
  handleOnSelectItem(defaultValue);
@@ -3050,61 +3072,34 @@ var SelectNative = function SelectNative(_ref) {
3050
3072
  return /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
3051
3073
  control: control,
3052
3074
  name: name,
3053
- // defaultValue={defaultValue as PathValue<T, Path<T>>}
3054
3075
  rules: {
3055
3076
  required: isRequired
3056
3077
  },
3057
3078
  /** @ts-ignore: issues with implicit */
3058
3079
  render: function render(_ref3) {
3059
3080
  var _ref3$field = _ref3.field,
3060
- ref = _ref3$field.ref;
3081
+ ref = _ref3$field.ref,
3082
+ value = _ref3$field.value;
3061
3083
  return /*#__PURE__*/React__default.createElement(react.FormControl, {
3062
3084
  id: name,
3063
3085
  isInvalid: isInvalid,
3064
3086
  position: "relative",
3065
3087
  py: 0
3066
- }, /*#__PURE__*/React__default.createElement(react.Box //ref={dropdownRef}
3067
- , {
3068
- position: "relative"
3069
- }, /*#__PURE__*/React__default.createElement(react.Flex, {
3070
- flexDirection: "column",
3071
- //ref={dropdownRef}
3072
- //scrollMargin="15px"
3073
- border: "0",
3074
- mt: "3px",
3075
- //maxH="240px"
3076
- overflowY: "auto",
3077
- width: "fit-content",
3078
- minWidth: "100%",
3079
- zIndex: 100,
3080
- tabIndex: -2000,
3081
- borderTop: "0.5px solid #9999991A"
3082
3088
  }, /*#__PURE__*/React__default.createElement(react.Select, Object.assign({}, props, {
3083
3089
  required: isRequired,
3084
3090
  ref: ref,
3085
- //value={selectedOption?.value ?? value}
3086
- // textShadow={`0 0 0 ${colors.label.primary.light}`}
3091
+ value: value,
3087
3092
  disabled: disabled != null ? disabled : false,
3088
3093
  onChange: function onChange(e) {
3089
3094
  return handleOnSelectItem(e.target.value);
3090
3095
  },
3091
- // onKeyDown={handleOnKeyDown}
3092
- style: {
3093
- cursor: 'pointer',
3094
- color: 'var(--chakra-colors-blue-500)',
3095
- height: '48px',
3096
- fontSize: '17px',
3097
- lineHeight: '20px',
3098
- fontWeight: 400,
3099
- padding: '12px 16px 12px 0px',
3100
- borderRadius: 0
3101
- }
3096
+ style: style
3102
3097
  }), options && options.map(function (i) {
3103
3098
  return /*#__PURE__*/React__default.createElement("option", {
3104
3099
  value: i.value,
3105
3100
  key: i.sortValue
3106
3101
  }, i.label);
3107
- })))), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
3102
+ })), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
3108
3103
  }
3109
3104
  });
3110
3105
  };
@@ -3789,13 +3784,13 @@ var variantPrimaryFlat = function variantPrimaryFlat() {
3789
3784
  return _extends$6({}, baseStyle$2, {
3790
3785
  bg: colors.fill.action,
3791
3786
  bgGradient: null,
3792
- minWidth: '172.5px',
3787
+ minWidth: '120px',
3793
3788
  padding: '10px 16px',
3794
3789
  borderRadius: '8px',
3795
3790
  border: '0.5px',
3796
3791
  gap: '8px',
3797
3792
  height: '44px',
3798
- margin: '8px',
3793
+ // margin: '8px',
3799
3794
  fontSize: '17px',
3800
3795
  fontWeight: '500',
3801
3796
  lineHeight: '24px',
@@ -3866,12 +3861,15 @@ var _createMultiStyleConf = /*#__PURE__*/react.createMultiStyleConfigHelpers(ana
3866
3861
  defineMultiStyleConfig = _createMultiStyleConf.defineMultiStyleConfig;
3867
3862
  var roundedCheckbox = /*#__PURE__*/definePartsStyle({
3868
3863
  control: {
3869
- borderRadius: 50,
3870
- padding: 3
3864
+ //borderRadius: 50,
3871
3865
  },
3872
3866
  label: {
3873
- fontSize: '17px'
3874
- }
3867
+ fontSize: '17px',
3868
+ fontWeight: 400,
3869
+ lineHeight: '20px',
3870
+ padding: '12px 16px 12px 0px'
3871
+ },
3872
+ height: '44px'
3875
3873
  });
3876
3874
  var variants$3 = {
3877
3875
  mobile: roundedCheckbox
@@ -3987,19 +3985,27 @@ var baseStyle$7 = {
3987
3985
  bg: '#ffffff',
3988
3986
  border: '2px solid',
3989
3987
  borderColor: colors.border.focus
3988
+ },
3989
+ _placeholder: {
3990
+ color: colors.label.secondary.light
3990
3991
  }
3991
3992
  }
3992
3993
  };
3993
3994
  var mobileInputs = /*#__PURE__*/_extends$6({}, baseStyle$7, {
3994
3995
  field: {
3995
3996
  fontSize: '17px',
3996
- border: 'none',
3997
3997
  py: '14px',
3998
3998
  px: '16px',
3999
3999
  cursor: 'pointer',
4000
4000
  lineHeight: '21px',
4001
4001
  fontWeight: 400,
4002
- borderRadius: 0
4002
+ borderRadius: 0,
4003
+ height: '48px',
4004
+ padding: '12px 16px 12px 0px',
4005
+ border: '0.5px solid rgba(153, 153, 153, 0.1)',
4006
+ borderColor: 'rgba(153, 153, 153, 0.1)',
4007
+ borderLeft: 'none',
4008
+ borderRight: 'none'
4003
4009
  }
4004
4010
  });
4005
4011
  var variants$5 = {
@@ -4558,15 +4564,16 @@ var baseStyle$e = /*#__PURE__*/_extends$6({}, Input$1.baseStyle.field, {
4558
4564
  var mobileInputs$1 = /*#__PURE__*/react.defineStyle( /*#__PURE__*/_extends$6({}, baseStyle$e, Input$1.variants.mobile.field, {
4559
4565
  border: 'none',
4560
4566
  borderRadius: 0,
4561
- paddingY: '14px',
4562
- paddingX: '16px',
4563
- padding: '14px 16px',
4567
+ paddingY: '16px',
4568
+ paddingX: '0',
4569
+ // padding: '16px 16px',
4564
4570
  cursor: 'pointer',
4565
4571
  lineHeight: '21px',
4566
4572
  fontWeight: 400,
4567
4573
  resize: 'none',
4568
4574
  overflowY: 'auto',
4569
- fontSize: '17px'
4575
+ fontSize: '17px',
4576
+ minHeight: '208px'
4570
4577
  }));
4571
4578
  var variants$9 = {
4572
4579
  "default": baseStyle$e,