@producteca/producteca-ui-kit 1.63.5 → 1.64.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.
@@ -1,6 +1,6 @@
1
1
  import { MenuProps } from '@mui/material/Menu';
2
2
 
3
3
  export declare const StyledMenu: import('@emotion/styled').StyledComponent<MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
4
- export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
4
+ export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material/Button').ButtonOwnProps> & Omit<import('@mui/material').ButtonBaseOwnProps, "type" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | keyof import('@mui/material/Button').ButtonOwnProps> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
6
- }, "variant" | "size" | "className" | "disabled" | "children" | "color" | "style" | "classes" | "sx" | "tabIndex" | "href" | "action" | "loading" | "loadingIndicator" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "fullWidth" | "disableFocusRipple" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
6
+ }, "type" | "variant" | "size" | "className" | "disabled" | "children" | "color" | "style" | "classes" | "sx" | "tabIndex" | "href" | "action" | "loading" | "loadingIndicator" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { default as dayjs, Dayjs } from 'dayjs';
3
- import { default as TextField } from '@mui/material/TextField';
3
+ import { SxProps, Theme } from '@mui/material/styles';
4
4
  import { InputValue } from '../../../validators';
5
5
 
6
6
  export declare const ActionComponent: React.FC<{
@@ -8,6 +8,18 @@ export declare const ActionComponent: React.FC<{
8
8
  onClear?: () => void;
9
9
  onOpen?: () => void;
10
10
  }>;
11
+ interface ReadOnlyDateFieldProps {
12
+ format?: string;
13
+ placeholder?: string;
14
+ name?: string;
15
+ className?: string;
16
+ sx?: SxProps<Theme>;
17
+ showClearIcon?: boolean;
18
+ onClear?: () => void;
19
+ onOpen?: () => void;
20
+ textFieldProps?: Record<string, unknown>;
21
+ }
22
+ export declare const ReadOnlyDateField: React.FC<ReadOnlyDateFieldProps>;
11
23
  export type PickerType = 'date' | 'dateTime' | 'time' | 'year';
12
24
  export declare const getPickerTypeFromFormat: (format?: string) => PickerType;
13
25
  export declare const getFinalFormat: (format?: string) => string;
@@ -38,33 +50,28 @@ export declare const getPickerProps: ({ currentValue, finalFormat, onChange, dis
38
50
  format: string;
39
51
  reduceAnimations: boolean;
40
52
  slots: {
41
- textField: typeof TextField;
53
+ field: React.FC<ReadOnlyDateFieldProps>;
42
54
  };
43
55
  slotProps: {
44
- textField: {
56
+ field: {
57
+ format: string;
45
58
  placeholder: string;
46
59
  name: string | undefined;
47
- onClick: (() => void) | undefined;
48
- variant: "outlined";
49
- fullWidth: boolean;
50
60
  className: string;
51
- sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
52
- InputProps: {
53
- style: {
54
- cursor: string;
55
- };
56
- endAdornment: import("react/jsx-runtime").JSX.Element;
57
- };
61
+ sx: SxProps<Theme>;
62
+ showClearIcon: boolean;
63
+ onClear: (() => void) | undefined;
64
+ onOpen: (() => void) | undefined;
65
+ textFieldProps: Pick<any, string | number | symbol>;
58
66
  };
59
67
  layout: {
60
68
  sx: {};
61
69
  };
62
70
  day: {
63
- sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
71
+ sx: SxProps<Theme>;
64
72
  };
65
73
  popper: {
66
- sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
67
- disableScrollLock: boolean;
74
+ sx: SxProps<Theme>;
68
75
  disablePortal: boolean;
69
76
  popperOptions: {
70
77
  strategy: "fixed";
@@ -72,3 +79,4 @@ export declare const getPickerProps: ({ currentValue, finalFormat, onChange, dis
72
79
  };
73
80
  };
74
81
  };
82
+ export {};