@producteca/producteca-ui-kit 1.63.6 → 1.65.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.
package/README.md CHANGED
@@ -32,6 +32,37 @@
32
32
  | `prepare` | `husky` | Prepares the repository by installing Husky for Git hooks |
33
33
  | `pre-commit` | `husky && husky install` | Installs Husky and sets up Git hooks for pre-commit validation |
34
34
 
35
+ ## Storybook MCP
36
+
37
+ This library's Storybook exposes an [MCP](https://storybook.js.org/docs/ai/mcp/overview)
38
+ server so AI agents can query component docs and run interaction tests.
39
+
40
+ ### Use it locally
41
+
42
+ ```bash
43
+ bun run dev # serves Storybook + MCP at http://localhost:6006/mcp
44
+ ```
45
+
46
+ Register it with your agent (project scope):
47
+
48
+ ```bash
49
+ npx mcp-add --type http --url "http://localhost:6006/mcp" --scope project
50
+ ```
51
+
52
+ Claude Code users: the repo's `.mcp.json` already registers it — just run
53
+ `bun run dev`.
54
+
55
+ ### Use the published server (Chromatic)
56
+
57
+ Each Chromatic build publishes the MCP at the `/mcp` route of the published
58
+ Storybook:
59
+
60
+ ```
61
+ https://<branch>--<appId>.chromatic.com/mcp
62
+ ```
63
+
64
+ Verify with: ask your agent to run `list-all-documentation`.
65
+
35
66
  ## 🌐 Browser Compatibility
36
67
 
37
68
  Este proyecto utiliza **Babel** para transpilar el código JavaScript/TypeScript, garantizando compatibilidad con:
@@ -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 {};
@@ -7,6 +7,7 @@ export interface ModalProps {
7
7
  className?: string;
8
8
  isLoading?: boolean;
9
9
  fitContent?: boolean;
10
+ ariaLabel?: string;
10
11
  onClose?: () => void;
11
12
  children: React.ReactNode;
12
13
  }
@@ -1,4 +1,18 @@
1
1
  declare const _default: {
2
+ a11y: {
3
+ loading: string;
4
+ progress: string;
5
+ close: string;
6
+ openCalendar: string;
7
+ reorder: string;
8
+ moreActions: string;
9
+ menu: string;
10
+ search: string;
11
+ navigation: string;
12
+ dialog: string;
13
+ remove: string;
14
+ toggleSidebar: string;
15
+ };
2
16
  noResultsFound: string;
3
17
  reloadPage: string;
4
18
  errorOccurred: string;