@xqmsg/ui-core 0.24.3 → 0.24.5

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.24.3",
2
+ "version": "0.24.5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -132,6 +132,7 @@ const Template: Story<InputProps<StoryFormSchema>> = args => {
132
132
  isInvalid={!!form.formState.errors['prop5']?.message}
133
133
  errorText={form.formState.errors['prop5']?.message}
134
134
  name="prop5"
135
+ loadingOptions={true}
135
136
  />
136
137
  <Input
137
138
  {...args}
@@ -206,6 +207,14 @@ const Template: Story<InputProps<StoryFormSchema>> = args => {
206
207
  name="prop4"
207
208
  defaultValue={'value1'}
208
209
  />
210
+ <Input
211
+ {...args}
212
+ inputType="select"
213
+ setValue={form.setValue}
214
+ name="prop4"
215
+ defaultValue={'value1'}
216
+ loadingOptions={true}
217
+ />
209
218
  <Input
210
219
  {...args}
211
220
  inputType="select"
@@ -4,7 +4,6 @@ import { InputFieldProps } from '../InputTypes';
4
4
 
5
5
  export interface StackedInputProps extends InputFieldProps {
6
6
  isRequired?: boolean;
7
- allowDefault?: boolean;
8
7
  leftElement?: React.ReactNode;
9
8
  rightElement?: React.ReactNode;
10
9
  variant?: string;
@@ -22,7 +21,6 @@ const StackedInput = React.forwardRef<HTMLInputElement, StackedInputProps>(
22
21
  rightElement,
23
22
  leftElement,
24
23
  defaultValue,
25
- allowDefault,
26
24
  variant,
27
25
  label,
28
26
  ...props
@@ -44,12 +42,6 @@ const StackedInput = React.forwardRef<HTMLInputElement, StackedInputProps>(
44
42
  defaultValue={defaultValue}
45
43
  fontSize={isMobile ? '17px' : '13px'}
46
44
  variant={variant}
47
- onKeyDown={e => {
48
- if (e.key === 'Enter' && !allowDefault) {
49
- e.stopPropagation();
50
- e.preventDefault();
51
- }
52
- }}
53
45
  />
54
46
  {rightElement && rightElement}
55
47
  </InputGroup>