@producteca/producteca-ui-kit 1.24.0 → 1.26.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,4 @@
1
+ import { DropdownProps } from './dropdown.types';
2
+ import * as React from 'react';
3
+ export declare const Dropdown: React.FC<DropdownProps>;
4
+ export default Dropdown;
@@ -0,0 +1,6 @@
1
+ import { MenuProps } from '@mui/material/Menu';
2
+
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"> & {
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>, {}, {}>;
@@ -0,0 +1,20 @@
1
+ import { DropdownItem } from '../menu/menuItem/menuItem.types';
2
+
3
+ export interface DropdownProps {
4
+ label: string;
5
+ items: DropdownItem[];
6
+ disabled?: boolean;
7
+ open?: boolean;
8
+ onToggle?: (open: boolean) => void;
9
+ onItemSelect?: (item: DropdownItem) => void;
10
+ anchorOrigin?: {
11
+ vertical: 'top' | 'bottom';
12
+ horizontal: 'left' | 'center' | 'right';
13
+ };
14
+ transformOrigin?: {
15
+ vertical: 'top' | 'bottom';
16
+ horizontal: 'left' | 'center' | 'right';
17
+ };
18
+ className?: string;
19
+ size?: 'sm' | 'lg';
20
+ }
@@ -0,0 +1,3 @@
1
+ export { Dropdown } from './dropdown';
2
+ export type { DropdownProps } from './dropdown.types';
3
+ export type { DropdownItem } from '../menu/menuItem/menuItem.types';
@@ -8,7 +8,7 @@ export * from './alert/alert';
8
8
  export * from './tooltip';
9
9
  export * from './image';
10
10
  export * from './breadcrumb';
11
- export * from './menuAction';
11
+ export * from './menu/menuAction';
12
12
  export * from './modals';
13
13
  export * from './tabs';
14
14
  export * from './sidebar';
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { OptionProps, SingleValueProps } from 'react-select';
3
3
  import { ReduxFormInput } from '../../../hooks/useReduxFormField';
4
+ import { InputValue, Meta } from '../../../validators';
4
5
 
5
6
  export interface SelectOption {
6
7
  label: string;
@@ -29,6 +30,9 @@ export interface SelectFieldProps {
29
30
  defaultValue?: (string | number) | (string | number)[] | null | undefined;
30
31
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
31
32
  input?: ReduxFormInput;
33
+ meta?: Meta;
34
+ isValid?: (value: InputValue) => boolean;
35
+ noErrors?: boolean;
32
36
  }
33
37
  export declare const Option: (props: OptionProps<SelectOption>) => import("react/jsx-runtime").JSX.Element;
34
38
  export declare const SingleValue: (props: SingleValueProps<SelectOption>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { MenuAction, type MenuActionProps, type MenuActionItemProps } from './menuAction';
2
+ export { MenuItemComponent, type MenuItemProps } from '../menuItem/menuItem';
3
+ export { type BaseMenuItemProps, type MenuItemWithId, type DropdownItem, type MenuActionItemProps as MenuActionItemPropsType } from '../menuItem/menuItem.types';
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { MenuActionItemProps } from '../menuItem/menuItem.types';
3
+ import { MenuActionProps } from './menuAction.types';
4
+
5
+ export declare const MenuAction: React.FC<MenuActionProps>;
6
+ export type { MenuActionProps, MenuActionItemProps };
7
+ export default MenuAction;
@@ -0,0 +1,3 @@
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
+
3
+ export declare const menuPaperSx: SxProps<Theme>;
@@ -0,0 +1,10 @@
1
+ import { MenuActionItemProps } from '../menuItem/menuItem.types';
2
+ import { default as React } from 'react';
3
+
4
+ export interface MenuActionProps {
5
+ items: MenuActionItemProps[];
6
+ id?: string;
7
+ maxItemsVisible?: number;
8
+ icon?: React.ReactNode;
9
+ otherProps?: React.HTMLAttributes<HTMLButtonElement>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { BaseMenuItemProps } from './menuItem.types';
3
+
4
+ interface MenuItemProps extends BaseMenuItemProps {
5
+ onClose?: () => void;
6
+ size?: "lg" | "md" | "sm";
7
+ }
8
+ export declare const MenuItemComponent: React.FC<MenuItemProps>;
9
+ export type { MenuItemProps };
10
+ export default MenuItemComponent;
@@ -0,0 +1,3 @@
1
+ import { SxProps, Theme } from '@mui/material/styles';
2
+
3
+ export declare const menuItemSx: SxProps<Theme>;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface BaseMenuItemProps {
4
+ label: React.ReactNode;
5
+ icon?: React.ReactElement;
6
+ onClick?: () => void;
7
+ disabled?: boolean;
8
+ selected?: boolean;
9
+ }
10
+ export interface MenuItemWithId extends BaseMenuItemProps {
11
+ id: string;
12
+ divider?: boolean;
13
+ }
14
+ export type MenuItemProps = BaseMenuItemProps;
15
+ export type DropdownItem = MenuItemWithId;
16
+ export type MenuActionItemProps = BaseMenuItemProps;
@@ -124,6 +124,7 @@ declare const _default: {
124
124
  error: {
125
125
  required: string;
126
126
  notValid: string;
127
+ requiredDescription: string;
127
128
  };
128
129
  copyButton: {
129
130
  copy: string;
@@ -233,6 +234,23 @@ declare const _default: {
233
234
  maxItems: string;
234
235
  icon: string;
235
236
  };
237
+ dropdown: {
238
+ label: string;
239
+ variant: string;
240
+ color: string;
241
+ disabled: string;
242
+ onItemSelect: string;
243
+ onToggle: string;
244
+ options: string;
245
+ edit: string;
246
+ duplicate: string;
247
+ archive: string;
248
+ more: string;
249
+ delete: string;
250
+ share: string;
251
+ divider: string;
252
+ size: string;
253
+ };
236
254
  sidebar: {
237
255
  monitoringCenter: string;
238
256
  history: string;