@pautena/react-design-system 0.19.0 → 0.20.1

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.
Files changed (40) hide show
  1. package/dist/action/action-header.d.ts +2 -2
  2. package/dist/action/action.d.ts +4 -4
  3. package/dist/autocomplete/autocomplete.d.ts +2 -2
  4. package/dist/board/board.d.ts +1 -1
  5. package/dist/center-container/center-container.d.ts +1 -1
  6. package/dist/content/content.types.d.ts +1 -1
  7. package/dist/content-placeholder/content-placeholder.d.ts +1 -1
  8. package/dist/date-range-calendar/date-range-calendar.d.ts +1 -1
  9. package/dist/dialog/index.d.ts +1 -1
  10. package/dist/drawerx/drawer/drawer.mock.d.ts +1 -1
  11. package/dist/drawerx/drawer-context/drawer-mixins.d.ts +1 -1
  12. package/dist/drawerx/drawer-context/drawer.provider.d.ts +1 -1
  13. package/dist/drawerx/drawer-item/drawer-item-link.d.ts +1 -1
  14. package/dist/drawerx/drawer-item/index.d.ts +1 -1
  15. package/dist/drawerx/drawer-layout/drawer-layout.d.ts +3 -3
  16. package/dist/drawerx/drawer.types.d.ts +2 -2
  17. package/dist/drawerx/index.d.ts +4 -4
  18. package/dist/enhanced-table/enhanced-table.d.ts +0 -9
  19. package/dist/header/header.dummy.d.ts +1 -1
  20. package/dist/header-layout/header-layout.d.ts +3 -3
  21. package/dist/index.cjs.js +114 -118
  22. package/dist/index.cjs.js.map +1 -1
  23. package/dist/index.d.ts +35 -35
  24. package/dist/index.es.js +31781 -30868
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/model-form/model-form.d.ts +1 -1
  27. package/dist/notification-center/index.d.ts +1 -1
  28. package/dist/placeholder/placeholder.d.ts +1 -1
  29. package/dist/select/select.d.ts +1 -1
  30. package/dist/skeleton-card/skeleton-card.d.ts +1 -1
  31. package/dist/tab-card/tab-card-panel.d.ts +1 -1
  32. package/dist/tab-card/tab-card.dummy.d.ts +1 -1
  33. package/dist/tab-provider/tab-provider.provider.d.ts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/dist/value-base/index.d.ts +1 -1
  36. package/dist/value-base/value-edit.d.ts +1 -1
  37. package/dist/value-image/value-image.d.ts +1 -1
  38. package/dist/value-item/value-item.d.ts +1 -1
  39. package/dist/value-label/value-label.d.ts +1 -1
  40. package/package.json +39 -59
@@ -1,4 +1,4 @@
1
- import { Model, BasicModelInstance } from '../generators';
1
+ import { BasicModelInstance, Model } from '../generators';
2
2
  export interface ModelFormProps<T extends BasicModelInstance> {
3
3
  model: Model;
4
4
  dense?: boolean;
@@ -1,3 +1,3 @@
1
- export * from './notification-center.provider';
2
1
  export * from './notification-center.context';
3
2
  export * from './notification-center.hooks';
3
+ export * from './notification-center.provider';
@@ -10,7 +10,7 @@ export interface PlaceholderIconArgs {
10
10
  size: number;
11
11
  color: IconColor;
12
12
  }
13
- export type PlaceholderIcon = ({ size, color }: PlaceholderIconArgs) => ReactElement;
13
+ export type PlaceholderIcon = ({ size, color, }: PlaceholderIconArgs) => ReactElement;
14
14
  export interface PlaceholderProps {
15
15
  title: string;
16
16
  subtitle: string;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { SelectInputProps } from '@mui/material/Select/SelectInput';
2
+ import { ReactNode } from 'react';
3
3
  export type SelectSize = "small" | "medium";
4
4
  export interface SelectProps<T> {
5
5
  /**
@@ -14,4 +14,4 @@ export interface SkeletonCardProps {
14
14
  /**
15
15
  * SkeletonCard component renders a skeleton loading placeholder for a card.
16
16
  */
17
- export declare const SkeletonCard: ({ width, animation }: SkeletonCardProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const SkeletonCard: ({ width, animation, }: SkeletonCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { SxProps, Theme } from '@mui/material';
2
+ import { PropsWithChildren } from 'react';
3
3
  export type TabCardPanelProps = PropsWithChildren<{
4
4
  index: number | number[];
5
5
  sx?: SxProps<Theme>;
@@ -11,4 +11,4 @@ export interface TabCardDummyProps {
11
11
  initialTab: number;
12
12
  onChangeTab: (tab: TabData, index: number) => void;
13
13
  }
14
- export declare function TabCardDummy({ tabs, initialTab, onChangeTab }: TabCardDummyProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function TabCardDummy({ tabs, initialTab, onChangeTab, }: TabCardDummyProps): import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,5 @@ import { PropsWithChildren } from 'react';
2
2
  type TabProviderProps = PropsWithChildren<{
3
3
  initialValue?: number;
4
4
  }>;
5
- export declare const TabProvider: ({ children, initialValue }: TabProviderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const TabProvider: ({ children, initialValue, }: TabProviderProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -1,4 +1,4 @@
1
1
  export * from './arrays';
2
- export * from './theme';
3
2
  export * from './breakpoints';
4
3
  export * from './forms';
4
+ export * from './theme';
@@ -1,2 +1,2 @@
1
- export * from './value-edit';
2
1
  export * from './value-displays.types';
2
+ export * from './value-edit';
@@ -4,7 +4,7 @@ export interface ValueEditButtonsProps {
4
4
  onClickSubmit: () => void;
5
5
  sx?: SxProps<Theme>;
6
6
  }
7
- export declare const ValueEditButtons: ({ onClickCancel, onClickSubmit, sx }: ValueEditButtonsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ValueEditButtons: ({ onClickCancel, onClickSubmit, sx, }: ValueEditButtonsProps) => import("react/jsx-runtime").JSX.Element;
8
8
  /**
9
9
  * Hook to manage the editing behaviour
10
10
  */
@@ -8,4 +8,4 @@ export interface ValueImageProps extends BaseValueProps<string> {
8
8
  /**
9
9
  * Displays a image value with a label
10
10
  */
11
- export declare const ValueImage: ({ label, value, size: sizeArg, dense }: ValueImageProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ValueImage: ({ label, value, size: sizeArg, dense, }: ValueImageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { GridProps } from '@mui/material/Grid';
2
2
  import { ResponsiveStyleValue } from '@mui/system';
3
- import { PropsWithChildren, FunctionComponent, ReactElement } from 'react';
3
+ import { FunctionComponent, PropsWithChildren, ReactElement } from 'react';
4
4
  export type ValueItemProps = PropsWithChildren<Omit<GridProps, "item" | "container"> & {
5
5
  bordered?: ResponsiveStyleValue<boolean>;
6
6
  }>;
@@ -1,5 +1,5 @@
1
- import { BaseValueProps } from '../value-base';
2
1
  import { LabelVariant } from '../label';
2
+ import { BaseValueProps } from '../value-base';
3
3
  export type ValueLabelProps = BaseValueProps<string | number | string[] | number[]> & {
4
4
  variant?: LabelVariant | LabelVariant[];
5
5
  color?: string | string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pautena/react-design-system",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "description": "My custom design system on top of MUI",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -17,14 +17,9 @@
17
17
  "storybook": "storybook dev -p 6006",
18
18
  "storybook:build": "storybook build",
19
19
  "storybook:deploy": "gh-pages -d storybook-static",
20
- "lint": "npm-run-all lint:*",
21
- "lint:eslint": "eslint *.js src --ext .js,.ts,.tsx",
22
- "lint:ts": "tsc -p . --pretty",
23
- "format": "npm-run-all format:*",
24
- "format:js": "prettier --write \"**/*.js\"",
25
- "format:json": "prettier --write \"**/*.json\"",
26
- "format:md": "prettier --write \"**/*.md{,x}\"",
27
- "format:ts": "prettier --write \"**/*.ts{,x}\""
20
+ "lint": "biome check --write --unsafe --no-errors-on-unmatched --files-ignore-unknown=true ./",
21
+ "check": "biome check ./",
22
+ "check:ts": "tsc -p ."
28
23
  },
29
24
  "keywords": [
30
25
  "mui",
@@ -35,67 +30,52 @@
35
30
  "license": "MIT",
36
31
  "dependencies": {
37
32
  "@emotion/react": "^11.14.0",
38
- "@emotion/styled": "^11.14.0",
33
+ "@emotion/styled": "^11.14.1",
39
34
  "@emotion/utils": "^1.4.2",
40
- "@mui/icons-material": "^6.4.5",
41
- "@mui/material": "^6.4.5",
42
- "@mui/system": "^6.4.3",
43
- "@mui/x-data-grid": "^7.27.0",
44
- "@mui/x-date-pickers": "^7.27.0",
35
+ "@mui/icons-material": "^7.3.4",
36
+ "@mui/material": "^7.3.4",
37
+ "@mui/system": "^7.3.3",
38
+ "@mui/x-data-grid": "^8.14.0",
39
+ "@mui/x-date-pickers": "^8.14.0",
45
40
  "date-fns": "^4.1.0",
46
- "react": "^19.0.0",
47
- "react-dom": "^19.0.0"
41
+ "react": "^19.2.0",
42
+ "react-dom": "^19.2.0"
48
43
  },
49
44
  "devDependencies": {
50
- "@babel/core": "^7.26.9",
51
- "@babel/preset-env": "^7.26.9",
52
- "@babel/preset-react": "^7.26.3",
53
- "@babel/preset-typescript": "^7.26.0",
54
- "@chromatic-com/storybook": "^3.2.5",
55
- "@eslint/eslintrc": "^3.3.0",
56
- "@eslint/js": "^9.21.0",
57
- "@faker-js/faker": "^9.5.0",
58
- "@mui/x-data-grid-generator": "^7.27.0",
59
- "@storybook/addon-docs": "^8.6.4",
60
- "@storybook/addon-essentials": "^8.6.4",
61
- "@storybook/addon-interactions": "^8.6.4",
62
- "@storybook/addon-links": "^8.6.4",
63
- "@storybook/addon-onboarding": "^8.6.4",
64
- "@storybook/addon-themes": "^8.6.4",
65
- "@storybook/blocks": "^8.6.4",
66
- "@storybook/react": "^8.6.4",
67
- "@storybook/react-vite": "^8.6.4",
68
- "@storybook/test": "^8.6.4",
69
- "@testing-library/jest-dom": "^6.6.3",
70
- "@testing-library/react": "^16.2.0",
45
+ "@babel/core": "^7.28.4",
46
+ "@babel/preset-env": "^7.28.3",
47
+ "@babel/preset-react": "^7.27.1",
48
+ "@babel/preset-typescript": "^7.27.1",
49
+ "@biomejs/biome": "2.2.6",
50
+ "@faker-js/faker": "^10.1.0",
51
+ "@mui/x-data-grid-generator": "^8.14.0",
52
+ "@storybook/addon-docs": "^9.1.10",
53
+ "@storybook/addon-links": "^9.1.10",
54
+ "@storybook/addon-onboarding": "^9.1.10",
55
+ "@storybook/addon-themes": "^9.1.10",
56
+ "@storybook/react": "^9.1.10",
57
+ "@storybook/react-vite": "^9.1.10",
58
+ "@testing-library/dom": "^10.4.1",
59
+ "@testing-library/jest-dom": "^6.9.1",
60
+ "@testing-library/react": "^16.3.0",
71
61
  "@testing-library/user-event": "^14.6.1",
72
- "@types/ramda": "^0.30.2",
73
- "@types/react": "^19.0.10",
74
- "@typescript-eslint/eslint-plugin": "^8.24.1",
75
- "@typescript-eslint/parser": "^8.24.1",
62
+ "@types/ramda": "^0.31.1",
63
+ "@types/react": "^19.2.2",
76
64
  "babel-loader": "^10.0.0",
77
65
  "babel-plugin-module-resolver": "^5.0.2",
78
- "eslint": "^9.21.0",
79
- "eslint-config-prettier": "^10.0.1",
80
- "eslint-plugin-prettier": "^5.2.3",
81
- "eslint-plugin-react": "^7.37.4",
82
- "eslint-plugin-storybook": "^0.11.3",
83
66
  "gh-pages": "^6.3.0",
84
- "globals": "^16.0.0",
85
- "history": "^5.3.0",
67
+ "globals": "^16.4.0",
86
68
  "husky": "^9.1.7",
87
- "jsdom": "^26.0.0",
88
- "npm-run-all": "^4.1.5",
89
- "prettier": "^3.5.2",
90
- "ramda": "^0.30.1",
91
- "react-test-renderer": "^19.0.0",
92
- "storybook": "^8.6.0",
69
+ "jsdom": "^27.0.0",
70
+ "ramda": "^0.32.0",
71
+ "react-test-renderer": "^19.2.0",
72
+ "storybook": "^9.1.10",
93
73
  "tslib": "^2.8.1",
94
- "typescript": "^5.7.3",
95
- "vite": "^6.1.1",
96
- "vite-plugin-dts": "^4.5.0",
74
+ "typescript": "^5.9.3",
75
+ "vite": "^7.1.10",
76
+ "vite-plugin-dts": "^4.5.4",
97
77
  "vite-tsconfig-paths": "^5.1.4",
98
- "vitest": "^3.0.6"
78
+ "vitest": "^3.2.4"
99
79
  },
100
80
  "peerDependencies": {
101
81
  "@emotion/react": "^11.0.0",