digital-rabbit-cl 1.1.0 → 1.1.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.
- package/dist/components/Form/FormRadio.d.ts +9 -0
- package/dist/components/Form/FormRadio.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +361 -325
- package/dist/digital-rabbit-cl.umd.js +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
import { FormFieldProps } from './FormField';
|
|
3
|
+
import { RadioProps } from '../Radio';
|
|
4
|
+
export interface FormRadioProps<TFieldValues extends FieldValues = FieldValues> extends Omit<FormFieldProps<TFieldValues>, 'children'>, Omit<RadioProps, 'name' | 'error' | 'checked' | 'onChange'> {
|
|
5
|
+
name: Path<TFieldValues>;
|
|
6
|
+
value: string | number | boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function FormRadio<TFieldValues extends FieldValues = FieldValues>({ name, label, required, rules, disabled, className, style, value: radioValue, ...radioProps }: FormRadioProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=FormRadio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormRadio.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormRadio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACxD,OAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,cAAc,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,CAC5E,SAAQ,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,EACpD,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7D,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,YAAY,SAAS,WAAW,GAAG,WAAW,EAAE,EAChF,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,KAAK,EAAE,UAAU,EACjB,GAAG,UAAU,EACd,EAAE,cAAc,CAAC,YAAY,CAAC,2CAsB9B"}
|
|
@@ -10,4 +10,6 @@ export { default as FormSelect } from './FormSelect';
|
|
|
10
10
|
export type { FormSelectProps } from './FormSelect';
|
|
11
11
|
export { default as FormCheckbox } from './FormCheckbox';
|
|
12
12
|
export type { FormCheckboxProps } from './FormCheckbox';
|
|
13
|
+
export { default as FormRadio } from './FormRadio';
|
|
14
|
+
export type { FormRadioProps } from './FormRadio';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACjD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,Y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