isp-ui-kit 0.22.4 → 0.23.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.
@@ -0,0 +1,5 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormSwitchProps } from './form-switch.type';
3
+ import './form-switch.style.scss';
4
+ declare const _default: <T extends FieldValues>({ control, name, label, rules, formItemProps, ...rest }: FormSwitchProps<T>) => import("react/jsx-runtime").JSX.Element;
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { SwitchProps } from 'antd';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { FormComponentProps } from '../formTypes';
4
+ export type FormSwitchProps<TFormValues extends FieldValues> = FormComponentProps<TFormValues> & SwitchProps;
@@ -5,6 +5,7 @@ export { default as FormInputNumber } from './FormInputNumber/FormInputNumber';
5
5
  export { default as FormInputPassword } from './FormInputPassword/FormInputPassword';
6
6
  export { default as FormRadioGroup } from './FormRadioGroup/FormRadioGroup';
7
7
  export { default as FormSelect } from './FormSelect/FormSelect';
8
+ export { default as FormSwitch } from './FormSwitch/FormSwitch';
8
9
  export { default as FormTextArea } from './FormTextArea/FormTextArea';
9
10
  export { default as FormSecretTextArea } from './FormSecretTextArea/FormSecretTextArea';
10
11
  export { default as FormTreeSelect } from './FormTreeSelect/FormTreeSelect';
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './FormComponents/FormTreeSelect/form-tree-select.type';
13
13
  export * from './FormComponents/FormDatePicker/form-date-picker.type';
14
14
  export * from './FormComponents/FormRangeDatePicker/form-range-date-picker.type';
15
15
  export * from './FormComponents/FormAutoComplete/form-auto-complete.type';
16
+ export * from './FormComponents/FormSwitch/form-switch.type';
16
17
  export * from './FormComponents/formTypes';
17
18
  import * as Layout from './Layout';
18
19
  export * from './Layout/Column/column.type';