@sinco/react 1.0.11-rc.14 → 1.0.11-rc.15

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.11-rc.14",
3
+ "version": "1.0.11-rc.15",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
package/src/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './lib/Theme';
2
2
  export * from './lib/Components';
3
3
  export * from './lib/Hooks';
4
- export * from './lib/Utils';
4
+ export * from '..';
@@ -1,11 +1,13 @@
1
- import React, { ReactNode } from "react";
2
- export type Anchor = "left" | "right";
3
- export interface DrawerComponentProps {
4
- titulo: string;
1
+ import { ReactNode } from 'react';
2
+ export type handleDrawerPosition = 'left' | 'right';
3
+ export interface DrawerComponentProperties {
4
+ title: string;
5
5
  children: ReactNode;
6
- acciones: ReactNode;
6
+ renderActions: ReactNode;
7
+ showActions?: boolean;
8
+ position?: handleDrawerPosition;
9
+ width: string;
7
10
  open: boolean;
8
11
  onClose: () => void;
9
- anchor?: Anchor;
10
12
  }
11
- export declare const DrawerComponent: React.FC<DrawerComponentProps>;
13
+ export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose, }: DrawerComponentProperties) => JSX.Element;
@@ -1,15 +1,15 @@
1
1
  import { ReactNode } from 'react';
2
+ export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
3
+ export declare enum EmptyStateImageUrls {
4
+ error = "error",
5
+ search = "search",
6
+ noResult = "noResult",
7
+ create = "create"
8
+ }
2
9
  export interface EmptyStateProperties {
3
- state?: States;
10
+ state?: EmptyStateStates;
4
11
  title?: string;
5
12
  content?: string;
6
13
  actions?: ReactNode;
7
14
  }
8
- export type States = 'create' | 'error' | 'noresult' | 'search';
9
- export declare enum UrlImage {
10
- error = "error",
11
- search = "search",
12
- noresult = "noresult",
13
- create = "create"
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,4 +1,2 @@
1
1
  export * from './EmptyState';
2
2
  export * from './Drawer';
3
- export * from './ToastNofitication';
4
- export * from './PageHeader';
@@ -3,17 +3,9 @@ import { TypographyOptions } from '@mui/material/styles/createTypography';
3
3
  declare module '@mui/material/styles' {
4
4
  interface TypographyVariants {
5
5
  body3: React.CSSProperties;
6
- subtitle3: React.CSSProperties;
7
6
  }
8
7
  interface TypographyVariantsOptions {
9
8
  body3?: React.CSSProperties;
10
- subtitle3?: React.CSSProperties;
11
- }
12
- }
13
- declare module '@mui/material/Typography' {
14
- interface TypographyPropsVariantOverrides {
15
- body3: true;
16
- subtitle3: true;
17
9
  }
18
10
  }
19
11
  export declare const typography: TypographyOptions;
@@ -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,18 +0,0 @@
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/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
16
- }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
- export declare const PageHeader: (page: Pageheader) => JSX.Element;
18
- export {};
@@ -1,24 +0,0 @@
1
- import { ReactElement } from "react";
2
- import React from "react";
3
- export interface Option {
4
- }
5
- export interface Toast {
6
- type?: string;
7
- subtitle?: string;
8
- time?: number | any;
9
- title?: string;
10
- dataOpt?: Option[];
11
- actions?: React.ReactNode;
12
- seeMore?: boolean;
13
- position?: string;
14
- }
15
- export interface IconMap {
16
- [key: string]: ReactElement;
17
- }
18
- export interface ColorMap {
19
- [key: string]: "success" | "error" | "warning" | "info";
20
- }
21
- export interface position {
22
- [key: string]: "center" | "end" | "start";
23
- }
24
- export declare const ToastNotification: (toast: Toast) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './dynamicColor';