@pautena/react-design-system 0.19.0 → 0.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.
Files changed (31) 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/drawerx/drawer/drawer.mock.d.ts +1 -1
  10. package/dist/drawerx/drawer-context/drawer-mixins.d.ts +1 -1
  11. package/dist/drawerx/drawer-item/drawer-item-link.d.ts +1 -1
  12. package/dist/drawerx/drawer-layout/drawer-layout.d.ts +2 -2
  13. package/dist/drawerx/drawer.types.d.ts +2 -2
  14. package/dist/header/header.dummy.d.ts +1 -1
  15. package/dist/header-layout/header-layout.d.ts +3 -3
  16. package/dist/index.cjs.js +111 -115
  17. package/dist/index.cjs.js.map +1 -1
  18. package/dist/index.es.js +21687 -20903
  19. package/dist/index.es.js.map +1 -1
  20. package/dist/model-form/model-form.d.ts +1 -1
  21. package/dist/placeholder/placeholder.d.ts +1 -1
  22. package/dist/select/select.d.ts +1 -1
  23. package/dist/skeleton-card/skeleton-card.d.ts +1 -1
  24. package/dist/tab-card/tab-card-panel.d.ts +1 -1
  25. package/dist/tab-card/tab-card.dummy.d.ts +1 -1
  26. package/dist/tab-provider/tab-provider.provider.d.ts +1 -1
  27. package/dist/value-base/value-edit.d.ts +1 -1
  28. package/dist/value-image/value-image.d.ts +1 -1
  29. package/dist/value-item/value-item.d.ts +1 -1
  30. package/dist/value-label/value-label.d.ts +1 -1
  31. package/package.json +37 -63
@@ -1,9 +1,9 @@
1
- import { Variant } from '@mui/material/styles/createTypography';
1
+ import { TypographyVariant } from '@mui/material/styles';
2
2
  type ActionVariant = "primary" | "error" | "warning" | "success";
3
3
  export interface ActionHeaderProps {
4
4
  variant?: ActionVariant;
5
5
  title: string;
6
- titleVariant?: Extract<Variant, "h4" | "h5" | "h6">;
6
+ titleVariant?: Extract<TypographyVariant, "h4" | "h5" | "h6">;
7
7
  }
8
8
  export declare const ActionHeader: ({ title, titleVariant, variant, }: ActionHeaderProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import { Variant } from '@mui/material/styles/createTypography';
1
+ import { TypographyVariant } from '@mui/material/styles/createTypography';
2
2
  import { ReactElement } from 'react';
3
3
  export type ActionVariant = "primary" | "error" | "warning" | "success";
4
4
  export interface ActionProps {
@@ -13,7 +13,7 @@ export interface ActionProps {
13
13
  /**
14
14
  * The variant of the title.
15
15
  */
16
- titleVariant?: Extract<Variant, "h4" | "h5" | "h6">;
16
+ titleVariant?: Extract<TypographyVariant, "h4" | "h5" | "h6">;
17
17
  /**
18
18
  * The description of the action.
19
19
  */
@@ -21,7 +21,7 @@ export interface ActionProps {
21
21
  /**
22
22
  * The variant of the description.
23
23
  */
24
- descriptionVariant?: Variant;
24
+ descriptionVariant?: TypographyVariant;
25
25
  /**
26
26
  * The helper text for the action.
27
27
  */
@@ -29,7 +29,7 @@ export interface ActionProps {
29
29
  /**
30
30
  * The variant of the helper text.
31
31
  */
32
- helperTextVariant?: Variant;
32
+ helperTextVariant?: TypographyVariant;
33
33
  /**
34
34
  * The text for the action button.
35
35
  */
@@ -1,6 +1,6 @@
1
1
  import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material/Autocomplete';
2
- import { default as React } from 'react';
3
2
  import { ChipTypeMap } from '@mui/material/Chip';
3
+ import { default as React } from 'react';
4
4
  /**
5
5
  * Props for the Autocomplete component.
6
6
  */
@@ -36,4 +36,4 @@ export interface AutocompleteProps<T, Multiple extends boolean | undefined, Disa
36
36
  /**
37
37
  * Autocomplete component that wraps the MUI Autocomplete component with additional props.
38
38
  */
39
- export declare const Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType = "div">(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const Autocomplete: <T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]>(props: AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>) => import("react/jsx-runtime").JSX.Element;
@@ -22,4 +22,4 @@ export type BoardProps = PropsWithChildren<{
22
22
  * It supports rendering an array of content lines or a single content string.
23
23
  * Additionally, it provides a button to copy the content to the clipboard.
24
24
  */
25
- export declare const Board: ({ content: contentProp, spacing, children, sx }: BoardProps) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const Board: ({ content: contentProp, spacing, children, sx, }: BoardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { SxProps, Theme } from '@mui/material/styles';
2
+ import { PropsWithChildren } from 'react';
3
3
  /**
4
4
  * Props for the CenterContainer component.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, FunctionComponent, ReactElement } from 'react';
1
+ import { FunctionComponent, PropsWithChildren, ReactElement } from 'react';
2
2
  export type ContentProps = PropsWithChildren;
3
3
  export type ContentComponent = FunctionComponent<ContentProps>;
4
4
  export type ContentElement = ReactElement<ContentElement, ContentComponent>;
@@ -15,4 +15,4 @@ export type ContentPlaceholderProps = PropsWithChildren<{
15
15
  /**
16
16
  * A component that serves as a placeholder for content, displaying a skeleton grid.
17
17
  */
18
- export declare const ContentPlaceholder: ({ size, children, p }: ContentPlaceholderProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const ContentPlaceholder: ({ size, children, p, }: ContentPlaceholderProps) => import("react/jsx-runtime").JSX.Element;
@@ -18,5 +18,5 @@ export interface DateRangeCalendarProps {
18
18
  /**
19
19
  * A Date Range Calendar component that allows users to select a range of dates.
20
20
  */
21
- export declare const DateRangeCalendar: ({ defaultValue, onValueChange }: DateRangeCalendarProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const DateRangeCalendar: ({ defaultValue, onValueChange, }: DateRangeCalendarProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -1,4 +1,4 @@
1
- import { DrawerNavigation, DrawerNavigationItem, DrawerNavigationCollapsable, DrawerNavigationLink } from '../drawer.types';
1
+ import { DrawerNavigation, DrawerNavigationCollapsable, DrawerNavigationItem, DrawerNavigationLink } from '../drawer.types';
2
2
  export declare const mockLinkDrawerNavigationItem: DrawerNavigationLink;
3
3
  export declare const mockLinkNoIconDrawerNavigationItem: DrawerNavigationLink;
4
4
  export declare const mockLinkBulletDrawerNavigationItem: DrawerNavigationItem;
@@ -1,4 +1,4 @@
1
- import { Theme, CSSObject } from '@mui/material/styles';
1
+ import { CSSObject, Theme } from '@mui/material/styles';
2
2
  export declare const drawerWidth = 240;
3
3
  export declare const openedMixin: (theme: Theme) => CSSObject;
4
4
  export declare const closedMixin: (theme: Theme) => CSSObject;
@@ -1,5 +1,5 @@
1
- import { ReactElement } from 'react';
2
1
  import { SxProps, Theme } from '@mui/material/styles';
2
+ import { ReactElement } from 'react';
3
3
  import { DrawerItemAvatar, DrawerItemBullet, DrawerItemLabel } from '../drawer.types';
4
4
  export interface DrawerItemLinkProps {
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { DrawerProviderProps } from '../drawer-context';
1
+ import { JSXElementConstructor } from 'react';
2
2
  import { DrawerAppBarProps } from '../drawer-app-bar';
3
+ import { DrawerProviderProps } from '../drawer-context';
3
4
  import { DrawerContentProps, DrawerNavigation, DrawerProps } from '../drawer.types';
4
- import { JSXElementConstructor } from 'react';
5
5
  /**
6
6
  * Interface representing the slots for the DrawerLayout component.
7
7
  */
@@ -1,8 +1,8 @@
1
+ import { DrawerProps as MuiDrawerProps } from '@mui/material/Drawer';
2
+ import { Theme } from '@mui/material/styles';
1
3
  import { CSSProperties, FunctionComponent, PropsWithChildren, ReactElement } from 'react';
2
4
  import { BulletVariant } from '../bullet';
3
5
  import { LabelVariant } from '../label';
4
- import { DrawerProps as MuiDrawerProps } from '@mui/material/Drawer';
5
- import { Theme } from '@mui/material/styles';
6
6
  import { DrawerAppBarProps } from './drawer-app-bar';
7
7
  export type DrawerVariant = "temporary" | "mini" | "persistent";
8
8
  export type DrawerState = "open" | "collapse" | "close";
@@ -1,4 +1,4 @@
1
- import { HeaderBreadcrumb, HeaderAction, HeaderTab } from './header.types';
1
+ import { HeaderAction, HeaderBreadcrumb, HeaderTab } from './header.types';
2
2
  export declare const breadcrumbs: HeaderBreadcrumb[];
3
3
  export declare const actions: HeaderAction[];
4
4
  export declare const tabs: HeaderTab[];
@@ -1,7 +1,7 @@
1
- import { PlaceholderIcon } from '../placeholder';
2
- import { HeaderProps } from '../header';
3
- import { ContentProps } from '../content';
4
1
  import { JSXElementConstructor, PropsWithChildren, ReactElement } from 'react';
2
+ import { ContentProps } from '../content';
3
+ import { HeaderProps } from '../header';
4
+ import { PlaceholderIcon } from '../placeholder';
5
5
  /**
6
6
  * Interface representing the slots for the HeaderLayout component.
7
7
  */