@idealyst/components 1.2.106 → 1.2.107
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 +4 -4
- package/src/Form/Form.native.tsx +38 -0
- package/src/Form/Form.styles.tsx +14 -0
- package/src/Form/Form.web.tsx +50 -0
- package/src/Form/FormContext.ts +12 -0
- package/src/Form/fields/FormCheckbox.tsx +27 -0
- package/src/Form/fields/FormField.tsx +11 -0
- package/src/Form/fields/FormRadioGroup.tsx +24 -0
- package/src/Form/fields/FormSelect.tsx +27 -0
- package/src/Form/fields/FormSlider.tsx +26 -0
- package/src/Form/fields/FormSwitch.tsx +26 -0
- package/src/Form/fields/FormTextArea.tsx +27 -0
- package/src/Form/fields/FormTextInput.tsx +55 -0
- package/src/Form/index.native.ts +35 -0
- package/src/Form/index.ts +35 -0
- package/src/Form/index.web.ts +35 -0
- package/src/Form/types.ts +105 -0
- package/src/Form/useForm.ts +279 -0
- package/src/Form/useFormField.ts +21 -0
- package/src/RadioButton/RadioButton.styles.tsx +28 -0
- package/src/RadioButton/RadioGroup.native.tsx +28 -3
- package/src/RadioButton/RadioGroup.web.tsx +37 -1
- package/src/RadioButton/types.ts +16 -0
- package/src/Screen/Screen.native.tsx +11 -2
- package/src/Select/Select.native.tsx +10 -6
- package/src/Select/Select.styles.tsx +8 -8
- package/src/Select/Select.web.tsx +11 -7
- package/src/Select/types.ts +4 -2
- package/src/Slider/Slider.native.tsx +122 -0
- package/src/Slider/Slider.styles.tsx +48 -11
- package/src/Slider/Slider.web.tsx +54 -5
- package/src/Slider/types.ts +15 -0
- package/src/Switch/Switch.native.tsx +48 -20
- package/src/Switch/Switch.styles.tsx +28 -0
- package/src/Switch/Switch.web.tsx +55 -16
- package/src/Switch/types.ts +10 -0
- package/src/TextInput/TextInput.native.tsx +123 -40
- package/src/TextInput/TextInput.styles.tsx +47 -9
- package/src/TextInput/TextInput.web.tsx +163 -51
- package/src/TextInput/types.ts +16 -1
- package/src/index.native.ts +19 -0
- package/src/index.ts +19 -0
package/src/index.ts
CHANGED
|
@@ -127,6 +127,9 @@ export * from './Platform/types';
|
|
|
127
127
|
export { Keyboard } from './Keyboard';
|
|
128
128
|
export * from './Keyboard/types';
|
|
129
129
|
|
|
130
|
+
export { default as Form, useForm } from './Form';
|
|
131
|
+
export * from './Form/types';
|
|
132
|
+
|
|
130
133
|
export type { ButtonProps } from './Button/types';
|
|
131
134
|
export type { IconButtonProps } from './IconButton/types';
|
|
132
135
|
export type { TextProps } from './Text/types';
|
|
@@ -174,6 +177,22 @@ export type {
|
|
|
174
177
|
KeyboardSubscription,
|
|
175
178
|
KeyboardStatic,
|
|
176
179
|
} from './Keyboard/types';
|
|
180
|
+
export type {
|
|
181
|
+
FormProps,
|
|
182
|
+
UseFormOptions,
|
|
183
|
+
UseFormReturn,
|
|
184
|
+
FormValues,
|
|
185
|
+
FormErrors,
|
|
186
|
+
FormTextInputProps,
|
|
187
|
+
FormTextAreaProps,
|
|
188
|
+
FormSelectProps,
|
|
189
|
+
FormCheckboxProps,
|
|
190
|
+
FormRadioGroupProps,
|
|
191
|
+
FormSwitchProps,
|
|
192
|
+
FormSliderProps,
|
|
193
|
+
FormFieldProps,
|
|
194
|
+
FieldRenderProps,
|
|
195
|
+
} from './Form/types';
|
|
177
196
|
|
|
178
197
|
export { useMergeRefs };
|
|
179
198
|
|