@producteca/producteca-ui-kit 1.18.0 → 1.20.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,13 @@
1
+ type ChipVariant = 'primary' | 'success' | 'error' | 'secondary' | 'grey';
2
+ type ChipSize = 'sm' | 'lg';
3
+ export interface ChipProps {
4
+ text?: string;
5
+ title?: string;
6
+ onRemove?: () => void;
7
+ disabled?: boolean;
8
+ variant?: ChipVariant;
9
+ size?: ChipSize;
10
+ isActive?: boolean;
11
+ }
12
+ export declare const Chip: ({ isActive, title, text, onRemove, disabled, variant, size }: ChipProps) => import("react/jsx-runtime").JSX.Element;
13
+ export default Chip;
@@ -0,0 +1,2 @@
1
+ export { Chip } from './chip';
2
+ export type { ChipProps } from './chip';
@@ -1,13 +1,16 @@
1
1
  import { default as React, ReactElement } from 'react';
2
- import { SxProps, Theme } from '@mui/material';
2
+ import { SvgIcon, SxProps, Theme } from '@mui/material';
3
3
 
4
- export type iconSize = '24' | '20' | '16' | '12' | '8';
5
- interface CustomIconProps {
4
+ export type iconSize = '32' | '24' | '20' | '16' | '12' | '8';
5
+ type BaseSvgIconProps = React.ComponentProps<typeof SvgIcon>;
6
+ interface CustomIconProps extends Omit<BaseSvgIconProps, 'color'> {
6
7
  color?: string;
7
8
  size?: iconSize;
8
9
  sx?: SxProps<Theme>;
9
10
  children: ReactElement;
10
11
  disabled?: boolean;
12
+ onClick?: () => void;
13
+ className?: string;
11
14
  }
12
15
  export declare const CustomIcon: React.FC<CustomIconProps>;
13
16
  export default CustomIcon;
@@ -1,4 +1,5 @@
1
1
  export * from './button/button';
2
+ export * from './chip';
2
3
  export * from './icons';
3
4
  export * from './inputs';
4
5
  export * from './patterns';
@@ -8,3 +9,4 @@ export * from './tooltip';
8
9
  export * from './image';
9
10
  export * from './breadcrumb';
10
11
  export * from './menuAction';
12
+ export * from './modals';
@@ -0,0 +1 @@
1
+ export * from './warningModal/warningModal';
@@ -0,0 +1 @@
1
+ export { WarningModal, type WarningModalProps } from './warningModal';
@@ -0,0 +1,17 @@
1
+ import { default as React, ChangeEvent } from 'react';
2
+
3
+ interface WarningModalProps {
4
+ icon?: React.ReactNode;
5
+ title?: string;
6
+ description: React.ReactNode;
7
+ confirmLabel?: string;
8
+ cancelLabel?: string;
9
+ onSave?: () => void;
10
+ onCancel?: () => void;
11
+ dontShowAgainLabel?: string;
12
+ onChangeDontShowAgain?: (event: ChangeEvent<HTMLInputElement>) => void;
13
+ onClickGuide?: (e: React.MouseEvent<SVGSVGElement>) => void;
14
+ }
15
+ export declare const WarningModal: React.FC<WarningModalProps>;
16
+ export type { WarningModalProps };
17
+ export default WarningModal;
@@ -19,7 +19,7 @@ interface SaveBarProps {
19
19
  saveProps: SaveButtonProps;
20
20
  cancelProps: CancelButtonProps;
21
21
  previousProps?: PreviousButtonProps;
22
- withoutBorder?: boolean;
22
+ variant?: "page" | "modal" | "fullPage";
23
23
  }
24
24
  export declare const ActionBar: React.FC<SaveBarProps>;
25
25
  export type { SaveBarProps, SaveButtonProps, CancelButtonProps, PreviousButtonProps };
@@ -17,6 +17,7 @@ declare const _default: {
17
17
  continue: string;
18
18
  cancel: string;
19
19
  save: string;
20
+ guide: string;
20
21
  hideSelectedOptionsExplainText: string;
21
22
  switchInput: {
22
23
  options: string;
@@ -69,6 +70,15 @@ declare const _default: {
69
70
  cancelButtonProps: string;
70
71
  previousButtonProps: string;
71
72
  withoutBorder: string;
73
+ saveChanges: string;
74
+ discard: string;
75
+ confirm: string;
76
+ verifySaveButtonOnly: string;
77
+ verifyInitialRendering: string;
78
+ clickSaveButton: string;
79
+ clickCancelButton: string;
80
+ clickPreviousButton: string;
81
+ clickSaveButtonOnly: string;
72
82
  };
73
83
  formField: {
74
84
  example: string;
@@ -196,5 +206,17 @@ declare const _default: {
196
206
  disabledWithRestrictions: string;
197
207
  completelyDisabled: string;
198
208
  };
209
+ chip: {
210
+ text: string;
211
+ title: string;
212
+ onRemove: string;
213
+ disabled: string;
214
+ variant: string;
215
+ size: string;
216
+ };
217
+ warningModal: {
218
+ warning: string;
219
+ dontShowAgain: string;
220
+ };
199
221
  };
200
222
  export default _default;