@producteca/producteca-ui-kit 1.56.1 → 1.56.2-beta.1

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.
@@ -1,9 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { CheckboxInputProps } from './checkboxInputGroup';
2
+ import { CheckboxInputSingleProps } from './checkboxInput.types';
3
3
 
4
- export declare const CheckboxInput: React.FC<Omit<CheckboxInputProps, 'items'> & {
5
- checked?: boolean;
6
- label: string;
7
- disabled?: boolean;
8
- }>;
4
+ export declare const CheckboxInput: React.FC<CheckboxInputSingleProps>;
9
5
  export default CheckboxInput;
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ import { ReduxFormInput } from '../../../hooks/useReduxFormField';
3
+
4
+ export interface CheckboxItem {
5
+ id?: string;
6
+ name?: string;
7
+ label: string;
8
+ value?: any;
9
+ checked?: boolean;
10
+ disabled?: boolean;
11
+ }
12
+ export interface CheckboxInputProps {
13
+ id?: string;
14
+ name: string;
15
+ items: CheckboxItem[];
16
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
17
+ title?: string;
18
+ type?: 'checkbox' | 'radio';
19
+ size?: 'sm' | 'md' | 'lg';
20
+ input?: ReduxFormInput;
21
+ }
22
+ export type CheckboxInputSingleProps = Omit<CheckboxInputProps, 'items'> & {
23
+ checked?: boolean;
24
+ label: string;
25
+ disabled?: boolean;
26
+ };
@@ -1,22 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ReduxFormInput } from '../../../hooks/useReduxFormField';
2
+ import { CheckboxInputProps } from './checkboxInput.types';
3
3
 
4
- export interface CheckboxItem {
5
- id?: string;
6
- name?: string;
7
- label: string;
8
- value?: any;
9
- checked?: boolean;
10
- disabled?: boolean;
11
- }
12
- export interface CheckboxInputProps {
13
- name: string;
14
- items: CheckboxItem[];
15
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
16
- title?: string;
17
- type?: 'checkbox' | 'radio';
18
- size?: 'sm' | 'md' | 'lg';
19
- input?: ReduxFormInput;
20
- }
21
4
  export declare const CheckboxInputGroup: React.FC<CheckboxInputProps>;
22
5
  export default CheckboxInputGroup;
@@ -2,3 +2,4 @@ import { CheckboxInput } from './checkboxInput';
2
2
  import { CheckboxInputGroup } from './checkboxInputGroup';
3
3
 
4
4
  export { CheckboxInput, CheckboxInput as Checkbox, CheckboxInputGroup, CheckboxInputGroup as CheckboxGroup };
5
+ export type { CheckboxItem, CheckboxInputProps, CheckboxInputSingleProps } from './checkboxInput.types';
@@ -64,6 +64,8 @@ export declare const getPickerProps: ({ currentValue, finalFormat, onChange, dis
64
64
  };
65
65
  popper: {
66
66
  sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
67
+ disableScrollLock: boolean;
68
+ disablePortal: boolean;
67
69
  };
68
70
  };
69
71
  };
@@ -1,2 +1,3 @@
1
- import { SwitchInput, SwitchInputGroup } from './switchInput';
1
+ import { SwitchInput } from './switchInput';
2
+ import { SwitchInputGroup } from './switchInputGroup';
2
3
  export { SwitchInput, SwitchInput as Switch, SwitchInputGroup, SwitchInputGroup as SwitchGroup };
@@ -1,4 +1,5 @@
1
- import { SwitchInput, SwitchInputGroup, SwitchItem, SwitchInputProps } from './switchInput';
1
+ import { SwitchInput } from './switchInput';
2
+ import { SwitchInputGroup } from './switchInputGroup';
2
3
 
3
4
  export { SwitchInput, SwitchInput as Switch, SwitchInputGroup, SwitchInputGroup as SwitchGroup };
4
- export type { SwitchItem, SwitchInputProps };
5
+ export type { SwitchItem, SwitchInputProps, SwitchInputSingleProps } from './switchInput.types';
@@ -1,31 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ReduxFormInput } from '../../../hooks/useReduxFormField';
2
+ import { SwitchInputSingleProps } from './switchInput.types';
3
3
 
4
- export interface SwitchItem {
5
- id?: string;
6
- name?: string;
7
- label: string;
8
- value?: any;
9
- checked?: boolean;
10
- disabled?: boolean;
11
- }
12
- export interface SwitchInputProps {
13
- name: string;
14
- items: SwitchItem[];
15
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
16
- title?: string;
17
- size?: 'sm' | 'md' | 'lg';
18
- input?: ReduxFormInput;
19
- }
20
- export declare const SwitchInputGroup: React.FC<SwitchInputProps>;
21
- export declare const SwitchInput: React.FC<{
22
- name: string;
23
- checked?: boolean;
24
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
25
- label: string;
26
- title?: string;
27
- disabled?: boolean;
28
- size?: 'sm' | 'md' | 'lg';
29
- input?: ReduxFormInput;
30
- }>;
4
+ export declare const SwitchInput: React.FC<SwitchInputSingleProps>;
31
5
  export default SwitchInput;
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ import { ReduxFormInput } from '../../../hooks/useReduxFormField';
3
+
4
+ export interface SwitchItem {
5
+ id?: string;
6
+ name?: string;
7
+ label: string;
8
+ value?: any;
9
+ checked?: boolean;
10
+ disabled?: boolean;
11
+ }
12
+ export interface SwitchInputProps {
13
+ name: string;
14
+ items: SwitchItem[];
15
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
16
+ title?: string;
17
+ size?: 'sm' | 'md' | 'lg';
18
+ input?: ReduxFormInput;
19
+ }
20
+ export type SwitchInputSingleProps = Omit<SwitchInputProps, 'items'> & {
21
+ id?: string;
22
+ checked?: boolean;
23
+ label: string;
24
+ disabled?: boolean;
25
+ };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { SwitchInputProps } from './switchInput.types';
3
+
4
+ export declare const SwitchInputGroup: React.FC<SwitchInputProps>;
5
+ export default SwitchInputGroup;