@sinco/react 1.0.4-rc.9 → 1.0.4

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.4-rc.9",
3
+ "version": "1.0.4",
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,2 @@
1
1
  export * from './lib/Theme';
2
- export { default as ToastNotification } from './lib/ToastNotification/ToastNofitication';
3
- export * from './lib/ToastNotification/ToastNofitication';
4
- export * from './lib/ToastNotification/interfaces';
2
+ export * from './lib/Components';
@@ -0,0 +1,12 @@
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;
7
+ open: boolean;
8
+ onClose: () => void;
9
+ anchor?: Anchor;
10
+ }
11
+ declare const DrawerComponent: React.FC<DrawerComponentProps>;
12
+ export default DrawerComponent;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export interface EmptyStateProperties {
3
+ state?: States;
4
+ title?: string;
5
+ content?: string;
6
+ actions?: ReactNode;
7
+ }
8
+ export type States = 'create' | 'error' | 'noresult' | 'search';
9
+ export declare enum UrlImage {
10
+ error = "src/assets/images/error.svg",
11
+ search = "src/assets/images/search.svg",
12
+ noresult = "src/assets/images/noresult.svg",
13
+ create = "src/assets/images/create.svg"
14
+ }
15
+ export declare const EmptyState: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { ReactElement } from "react";
2
+ import React from "react";
2
3
  export interface Option {
3
4
  }
4
5
  export interface Toast {
@@ -9,6 +10,7 @@ export interface Toast {
9
10
  dataOpt?: Option[];
10
11
  actions?: React.ReactNode;
11
12
  seeMore?: boolean;
13
+ position?: string;
12
14
  }
13
15
  export interface IconMap {
14
16
  [key: string]: ReactElement;
@@ -16,3 +18,8 @@ export interface IconMap {
16
18
  export interface ColorMap {
17
19
  [key: string]: "success" | "error" | "warning" | "info";
18
20
  }
21
+ export interface position {
22
+ [key: string]: "center" | "end" | "start";
23
+ }
24
+ declare const ToastNotification: (toast: Toast) => JSX.Element;
25
+ export default ToastNotification;
@@ -0,0 +1,3 @@
1
+ export * from './ToastNotification/ToastNofitication';
2
+ export * from './pageHeader/PageHeader';
3
+ export * from './Drawer/Drawer';
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ interface BreadcrumbCode {
3
+ link: string;
4
+ name: string;
5
+ }
6
+ export 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
+ declare const PageHeader: (page: Pageheader) => JSX.Element;
15
+ export default PageHeader;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { Toast } from "./interfaces";
3
- declare const ToastNotification: (toast: Toast) => JSX.Element;
4
- export default ToastNotification;