@sinco/react 1.0.10 → 1.0.11-rc.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.10",
3
+ "version": "1.0.11-rc.1",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
- import React, { ReactNode } from "react";
2
- export type Anchor = "left" | "right";
3
- export interface DrawerComponentProps {
4
- titulo: string;
5
- children: ReactNode;
6
- acciones: ReactNode;
1
+ import { ReactNode } from 'react';
2
+ export type Anchor = 'left' | 'right';
3
+ export interface DrawerComponentProperties {
7
4
  open: boolean;
8
5
  onClose: () => void;
9
6
  anchor?: Anchor;
7
+ title: string;
8
+ content: ReactNode;
9
+ actions: ReactNode;
10
10
  }
11
- export declare const DrawerComponent: React.FC<DrawerComponentProps>;
11
+ export declare const DrawerComponent: ({ open, onClose, anchor, title, content, actions, }: DrawerComponentProperties) => JSX.Element;
@@ -1,15 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface EmptyStateProperties {
3
- state?: States;
3
+ state?: EmptyStateStates;
4
4
  title?: string;
5
5
  content?: string;
6
6
  actions?: ReactNode;
7
7
  }
8
- export type States = 'create' | 'error' | 'noresult' | 'search';
9
- export declare enum UrlImage {
8
+ export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
9
+ export declare enum EmptyStateImageUrls {
10
10
  error = "error",
11
11
  search = "search",
12
- noresult = "noresult",
12
+ noResult = "noResult",
13
13
  create = "create"
14
14
  }
15
- export declare const EmptyState: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
15
+ export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
@@ -1,17 +1,5 @@
1
- import React from "react";
2
- interface BreadcrumbCode {
3
- link: string;
4
- name: string;
5
- }
6
- interface Pageheader {
7
- back?: React.ReactNode;
8
- title?: string;
9
- subtitle?: string;
10
- breadcrumbs?: BreadcrumbCode[];
11
- actions?: React.ReactNode;
12
- tabs?: React.ReactNode;
13
- }
14
- export declare const PageContent: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
1
+ import React from 'react';
2
+ export declare const PageHeaderContent: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
15
3
  children?: React.ReactNode;
16
4
  direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
17
5
  spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
@@ -21,5 +9,11 @@ export declare const PageContent: import("@emotion/styled").StyledComponent<impo
21
9
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
10
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
23
11
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "direction" | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "spacing" | "divider" | "useFlexGap" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
24
- export declare const PageHeader: (page: Pageheader) => JSX.Element;
12
+ interface PageheaderProperties {
13
+ title?: string;
14
+ subtitle?: string;
15
+ actions?: React.ReactNode;
16
+ buttonBack?: React.ReactNode;
17
+ }
18
+ export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, }: PageheaderProperties) => JSX.Element;
25
19
  export {};
@@ -1,24 +1,19 @@
1
- import { ReactElement } from "react";
2
- import React from "react";
1
+ import React, { ReactElement } from 'react';
3
2
  export interface Option {
4
3
  }
5
- export interface Toast {
4
+ export interface ToastNotificationProperties {
6
5
  type?: string;
7
- subtitle?: string;
8
6
  time?: number | any;
9
7
  title?: string;
8
+ subtitle?: string;
10
9
  dataOpt?: Option[];
11
10
  actions?: React.ReactNode;
12
11
  seeMore?: boolean;
13
- position?: string;
14
12
  }
15
- export interface IconMap {
13
+ export interface handleChangeToastIcon {
16
14
  [key: string]: ReactElement;
17
15
  }
18
- export interface ColorMap {
19
- [key: string]: "success" | "error" | "warning" | "info";
20
- }
21
- export interface position {
22
- [key: string]: "center" | "end" | "start";
16
+ export interface handleToastColor {
17
+ [key: string]: 'success' | 'error' | 'warning' | 'info';
23
18
  }
24
- export declare const ToastNotification: (toast: Toast) => JSX.Element;
19
+ export declare const ToastNotification: (toast: ToastNotificationProperties) => JSX.Element;
@@ -1,3 +1,3 @@
1
- export declare const useDynamicColor: (url: string) => {
1
+ export declare const UseDynamicColor: (url: string) => {
2
2
  loading: boolean;
3
3
  };
@@ -1,5 +1,5 @@
1
1
  import { PaletteColor, TypeBackground } from "@mui/material";
2
- export declare const dynamicColor: (src: string) => Promise<{
2
+ export declare const DynamicColor: (src: string) => Promise<{
3
3
  primaryColor: PaletteColor;
4
4
  secondaryColor: PaletteColor;
5
5
  backgroundColor: TypeBackground;
@@ -1 +1 @@
1
- export * from './dynamicColor';
1
+ export * from './DynamicColor';