@producteca/producteca-ui-kit 1.39.2 → 1.41.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,5 +1,6 @@
1
1
  import { default as React, ReactElement } from 'react';
2
- import { SvgIcon, SxProps, Theme } from '@mui/material';
2
+ import { default as SvgIcon } from '@mui/material/SvgIcon';
3
+ import { SxProps, Theme } from '@mui/material/styles';
3
4
 
4
5
  export type iconSize = '32' | '24' | '20' | '16' | '12' | '8';
5
6
  type BaseSvgIconProps = React.ComponentProps<typeof SvgIcon>;
@@ -1,7 +1,7 @@
1
- import { TextField } from '@mui/material';
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
4
  import { InputValue } from '../../../validators';
4
- import { default as React } from 'react';
5
5
 
6
6
  export declare const ActionComponent: React.FC<{
7
7
  showClearIcon: boolean;
@@ -48,7 +48,7 @@ export declare const getPickerProps: ({ currentValue, finalFormat, onChange, dis
48
48
  variant: "outlined";
49
49
  fullWidth: boolean;
50
50
  className: string;
51
- sx: import('@mui/material').SxProps<import('@mui/material').Theme>;
51
+ sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
52
52
  InputProps: {
53
53
  style: {
54
54
  cursor: string;
@@ -60,10 +60,10 @@ export declare const getPickerProps: ({ currentValue, finalFormat, onChange, dis
60
60
  sx: {};
61
61
  };
62
62
  day: {
63
- sx: import('@mui/material').SxProps<import('@mui/material').Theme>;
63
+ sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
64
64
  };
65
65
  popper: {
66
- sx: import('@mui/material').SxProps<import('@mui/material').Theme>;
66
+ sx: import('@mui/system').SxProps<import('@mui/material').Theme>;
67
67
  };
68
68
  };
69
69
  };
@@ -1,6 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { ButtonProps } from '../../button/button';
3
+ import { BaseTooltipProps } from '../../tooltip/tooltip';
3
4
 
5
+ export interface MenuItemTooltipProps extends Omit<BaseTooltipProps, 'trigger'> {
6
+ content: string | React.ReactNode;
7
+ shouldShowTooltip: boolean;
8
+ }
4
9
  export interface MenuItemProps {
5
10
  label: React.ReactNode;
6
11
  icon?: React.ReactElement;
@@ -9,6 +14,7 @@ export interface MenuItemProps {
9
14
  selected?: boolean;
10
15
  size?: ButtonProps['size'];
11
16
  onClose?: () => void;
17
+ tooltipProps?: MenuItemTooltipProps;
12
18
  }
13
19
  export interface MenuItemWithId extends MenuItemProps {
14
20
  id: string;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { AsyncContentProps, AsyncContentStatus } from './asyncContent.types';
3
+
4
+ export declare const AsyncContent: React.MemoExoticComponent<({ status, children, errorText, emptyText, errorActionText, emptyActionText, onErrorAction, onEmptyAction, }: AsyncContentProps) => import("react/jsx-runtime").JSX.Element>;
5
+ export type { AsyncContentProps, AsyncContentStatus };
6
+ export default AsyncContent;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export type AsyncContentStatus = 'loading' | 'error' | 'empty' | 'success';
4
+ export interface AsyncContentProps {
5
+ status: AsyncContentStatus;
6
+ children: ReactNode;
7
+ errorText?: string;
8
+ emptyText?: string;
9
+ errorActionText?: string;
10
+ emptyActionText?: string;
11
+ onErrorAction?: () => void;
12
+ onEmptyAction?: () => void;
13
+ }
@@ -0,0 +1,2 @@
1
+ export * from './asyncContent';
2
+ export * from './asyncContent.types';
@@ -0,0 +1,2 @@
1
+ export * from './asyncContent';
2
+ export * from './asyncContent.types';
@@ -1,3 +1,4 @@
1
+ export * from './asyncContent/asyncContent';
1
2
  export * from './emptyState/emptyState';
2
3
  export * from './actionBar/actionBar';
3
4
  export * from './copyButton/copyButton';
@@ -1,3 +1,4 @@
1
+ export * from './asyncContent/asyncContent';
1
2
  export * from './emptyState/emptyState';
2
3
  export * from './actionBar/actionBar';
3
4
  export * from './copyButton/copyButton';
@@ -1,6 +1,9 @@
1
1
  declare const _default: {
2
2
  noResultsFound: string;
3
3
  reloadPage: string;
4
+ errorOccurred: string;
5
+ retry: string;
6
+ loading: string;
4
7
  selectPlaceholder: string;
5
8
  selectOption: string;
6
9
  noOptionsMessage: string;
@@ -290,5 +293,25 @@ declare const _default: {
290
293
  withUnderline: string;
291
294
  exampleIntegrationName: string;
292
295
  };
296
+ asyncContent: {
297
+ errorOccurred: string;
298
+ noResultsFound: string;
299
+ retry: string;
300
+ errorLoadingData: string;
301
+ couldNotConnect: string;
302
+ noProductsInCategory: string;
303
+ addProduct: string;
304
+ noDataAvailable: string;
305
+ loadData: string;
306
+ contentLoadedTitle: string;
307
+ contentLoadedDescription: string;
308
+ componentDescription: string;
309
+ statusDescription: string;
310
+ errorTextDescription: string;
311
+ emptyTextDescription: string;
312
+ errorActionTextDescription: string;
313
+ emptyActionTextDescription: string;
314
+ interactiveFlowDescription: string;
315
+ };
293
316
  };
294
317
  export default _default;