@sinco/react 1.0.10-rc.9 → 1.0.11-rc.0

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.10-rc.9",
3
+ "version": "1.0.11-rc.0",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
package/src/Index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export * from './lib/Theme/Index';
2
+ export * from './lib/Components/Index';
3
+ export * from './lib/Hooks/Index';
4
+ export * from './lib/Utils/Index';
@@ -1,11 +1,11 @@
1
- import { 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: ({ open, onClose, titulo, children, acciones, anchor, }: DrawerComponentProps) => JSX.Element;
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;
@@ -0,0 +1,4 @@
1
+ export * from './EmptyState';
2
+ export * from './Drawer';
3
+ export * from './ToastNofitication';
4
+ export * from './PageHeader';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export declare const PageHeaderContent: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
+ children?: React.ReactNode;
4
+ direction?: import("@mui/system").ResponsiveStyleValue<"column" | "column-reverse" | "row" | "row-reverse"> | undefined;
5
+ spacing?: import("@mui/system").ResponsiveStyleValue<string | number> | undefined;
6
+ divider?: React.ReactNode;
7
+ useFlexGap?: boolean | undefined;
8
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
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>, {}, {}>;
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;
19
+ export {};
@@ -0,0 +1,19 @@
1
+ import React, { ReactElement } from 'react';
2
+ export interface Option {
3
+ }
4
+ export interface ToastNotificationProperties {
5
+ type?: string;
6
+ time?: number | any;
7
+ title?: string;
8
+ subtitle?: string;
9
+ dataOpt?: Option[];
10
+ actions?: React.ReactNode;
11
+ seeMore?: boolean;
12
+ }
13
+ export interface handleChangeToastIcon {
14
+ [key: string]: ReactElement;
15
+ }
16
+ export interface handleToastColor {
17
+ [key: string]: 'success' | 'error' | 'warning' | 'info';
18
+ }
19
+ export declare const ToastNotification: (toast: ToastNotificationProperties) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './UseDynamicColor';
@@ -0,0 +1,3 @@
1
+ export declare const UseDynamicColor: (url: string) => {
2
+ loading: boolean;
3
+ };
@@ -1,3 +1,2 @@
1
1
  import { Breakpoints } from '@mui/material';
2
- declare const breakpoints: Breakpoints;
3
- export default breakpoints;
2
+ export declare const breakpoints: Breakpoints;
@@ -1,3 +1,12 @@
1
1
  import { Components } from '@mui/material';
2
- declare const components: Components;
3
- export default components;
2
+ declare module '@mui/material/Chip' {
3
+ interface ChipPropsSizeOverrides {
4
+ xsmall: true;
5
+ }
6
+ }
7
+ declare module "@mui/material/Checkbox" {
8
+ interface CheckboxPropsSizeOverrides {
9
+ xsmall: true;
10
+ }
11
+ }
12
+ export declare const components: Components;
@@ -1,3 +1,2 @@
1
1
  import { Mixins } from '@mui/material';
2
- declare const mixins: Mixins;
3
- export default mixins;
2
+ export declare const mixins: Mixins;
@@ -1,3 +1,2 @@
1
1
  import { PaletteOptions } from '@mui/material';
2
- declare const palette: PaletteOptions;
3
- export default palette;
2
+ export declare const palette: PaletteOptions;
@@ -1,3 +1,2 @@
1
1
  import { Shadows } from '@mui/material/styles/shadows';
2
- declare const shadows: Shadows;
3
- export default shadows;
2
+ export declare const shadows: Shadows;
@@ -1,3 +1,16 @@
1
+ /// <reference types="react" />
1
2
  import { TypographyOptions } from '@mui/material/styles/createTypography';
2
- declare const typography: TypographyOptions;
3
- export default typography;
3
+ declare module '@mui/material/styles' {
4
+ interface TypographyVariants {
5
+ body3: React.CSSProperties;
6
+ }
7
+ interface TypographyVariantsOptions {
8
+ body3?: React.CSSProperties;
9
+ }
10
+ }
11
+ declare module '@mui/material/Typography' {
12
+ interface TypographyPropsVariantOverrides {
13
+ body3: true;
14
+ }
15
+ }
16
+ export declare const typography: TypographyOptions;
@@ -1,7 +1,7 @@
1
1
  import { PaletteColor, TypeBackground } from "@mui/material";
2
- declare const dynamicColor: (src: string) => Promise<{
2
+ declare const DynamicColor: (src: string) => Promise<{
3
3
  primaryColor: PaletteColor;
4
4
  secondaryColor: PaletteColor;
5
5
  backgroundColor: TypeBackground;
6
6
  }>;
7
- export default dynamicColor;
7
+ export default DynamicColor;
@@ -0,0 +1 @@
1
+ export * from './DynamicColor';
package/src/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './lib/Theme';
2
- export * from './lib/Components';
3
- export * from './lib/Hooks';
4
- export * from './lib/Utils';
@@ -1,2 +0,0 @@
1
- export * from './EmptyState';
2
- export * from './Drawer';
@@ -1 +0,0 @@
1
- export * from './useDynamicColor';
@@ -1,3 +0,0 @@
1
- export declare const useDynamicColor: (url: string) => {
2
- loading: boolean;
3
- };
@@ -1 +0,0 @@
1
- export * from './dynamicColor';
File without changes