@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.
Files changed (42) hide show
  1. package/package.json +4 -4
  2. package/src/Form/Form.native.tsx +38 -0
  3. package/src/Form/Form.styles.tsx +14 -0
  4. package/src/Form/Form.web.tsx +50 -0
  5. package/src/Form/FormContext.ts +12 -0
  6. package/src/Form/fields/FormCheckbox.tsx +27 -0
  7. package/src/Form/fields/FormField.tsx +11 -0
  8. package/src/Form/fields/FormRadioGroup.tsx +24 -0
  9. package/src/Form/fields/FormSelect.tsx +27 -0
  10. package/src/Form/fields/FormSlider.tsx +26 -0
  11. package/src/Form/fields/FormSwitch.tsx +26 -0
  12. package/src/Form/fields/FormTextArea.tsx +27 -0
  13. package/src/Form/fields/FormTextInput.tsx +55 -0
  14. package/src/Form/index.native.ts +35 -0
  15. package/src/Form/index.ts +35 -0
  16. package/src/Form/index.web.ts +35 -0
  17. package/src/Form/types.ts +105 -0
  18. package/src/Form/useForm.ts +279 -0
  19. package/src/Form/useFormField.ts +21 -0
  20. package/src/RadioButton/RadioButton.styles.tsx +28 -0
  21. package/src/RadioButton/RadioGroup.native.tsx +28 -3
  22. package/src/RadioButton/RadioGroup.web.tsx +37 -1
  23. package/src/RadioButton/types.ts +16 -0
  24. package/src/Screen/Screen.native.tsx +11 -2
  25. package/src/Select/Select.native.tsx +10 -6
  26. package/src/Select/Select.styles.tsx +8 -8
  27. package/src/Select/Select.web.tsx +11 -7
  28. package/src/Select/types.ts +4 -2
  29. package/src/Slider/Slider.native.tsx +122 -0
  30. package/src/Slider/Slider.styles.tsx +48 -11
  31. package/src/Slider/Slider.web.tsx +54 -5
  32. package/src/Slider/types.ts +15 -0
  33. package/src/Switch/Switch.native.tsx +48 -20
  34. package/src/Switch/Switch.styles.tsx +28 -0
  35. package/src/Switch/Switch.web.tsx +55 -16
  36. package/src/Switch/types.ts +10 -0
  37. package/src/TextInput/TextInput.native.tsx +123 -40
  38. package/src/TextInput/TextInput.styles.tsx +47 -9
  39. package/src/TextInput/TextInput.web.tsx +163 -51
  40. package/src/TextInput/types.ts +16 -1
  41. package/src/index.native.ts +19 -0
  42. 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