nectiasw 0.0.8 → 0.0.9
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/dist/components/Badge/index.d.ts +17 -0
- package/dist/components/Badge/types.d.ts +5 -0
- package/dist/components/Box/index.d.ts +108 -0
- package/dist/components/Box/styles.d.ts +10 -0
- package/dist/components/Button/builder.d.ts +21 -0
- package/dist/components/Button/index.d.ts +10 -0
- package/dist/components/Button/styled.d.ts +5 -0
- package/dist/components/Button/styles.d.ts +4 -0
- package/dist/components/Button/types.d.ts +26 -0
- package/dist/components/Card/index.d.ts +7 -0
- package/dist/components/Card/styles.d.ts +17 -0
- package/dist/components/Card/types.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/Collapse/index.d.ts +17 -0
- package/dist/components/Collapse/styles.d.ts +17 -0
- package/dist/components/Container/index.d.ts +13 -0
- package/dist/components/Counter/index.d.ts +12 -0
- package/dist/components/Counter/styles.d.ts +9 -0
- package/dist/components/Datepicker/index.d.ts +30 -0
- package/dist/components/Datepicker/styled.d.ts +9 -0
- package/dist/components/Datepicker/styles.d.ts +5 -0
- package/dist/components/DeadlineChart/index.d.ts +54 -0
- package/dist/components/DeadlineChart/styles.d.ts +11 -0
- package/dist/components/Detail/index.d.ts +37 -0
- package/dist/components/Detail/styles.d.ts +14 -0
- package/dist/components/Dropdown/index.d.ts +42 -0
- package/dist/components/Dropdown/styles.d.ts +21 -0
- package/dist/components/Empty/index.d.ts +14 -0
- package/dist/components/Flex/index.d.ts +26 -0
- package/dist/components/Flex/styles.d.ts +9 -0
- package/dist/components/Grid/index.d.ts +37 -0
- package/dist/components/Input/index.d.ts +58 -0
- package/dist/components/Input/styles.d.ts +8 -0
- package/dist/components/Input/variants/InputTable.d.ts +4 -0
- package/dist/components/Loading/index.d.ts +17 -0
- package/dist/components/Loading/styles.d.ts +19 -0
- package/dist/components/Navbar/index.d.ts +26 -0
- package/dist/components/Navbar/styles.d.ts +32 -0
- package/dist/components/Pagination/index.d.ts +4 -0
- package/dist/components/Pagination/styles.d.ts +25 -0
- package/dist/components/Pagination/types.d.ts +18 -0
- package/dist/components/RadioButton/index.d.ts +14 -0
- package/dist/components/RadioButton/styles.d.ts +7 -0
- package/dist/components/Row/index.d.ts +15 -0
- package/dist/components/Search/index.d.ts +8 -0
- package/dist/components/Search/styles.d.ts +20 -0
- package/dist/components/Search/types.d.ts +72 -0
- package/dist/components/Search/variants/ScrollSearch.d.ts +5 -0
- package/dist/components/Search/variants/styled.d.ts +19 -0
- package/dist/components/Select/builder.d.ts +28 -0
- package/dist/components/Select/index.d.ts +43 -0
- package/dist/components/Switch/index.d.ts +19 -0
- package/dist/components/Table/builder.d.ts +19 -0
- package/dist/components/Table/index.d.ts +147 -0
- package/dist/components/Table/styles.d.ts +27 -0
- package/dist/components/Table/variants/participants.d.ts +14 -0
- package/dist/components/Tableinput/index.d.ts +41 -0
- package/dist/components/Tableinput/styles.d.ts +3 -0
- package/dist/components/Tableinput/types.d.ts +8 -0
- package/dist/components/Textarea/index.d.ts +15 -0
- package/dist/components/Textarea/styled.d.ts +3 -0
- package/dist/components/Textarea/styles.d.ts +23 -0
- package/dist/components/Timeline/index.d.ts +135 -0
- package/dist/components/Timeline/styles.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +17 -0
- package/dist/components/Tooltip/styled.d.ts +23 -0
- package/dist/components/Tooltip/styles.d.ts +3 -0
- package/dist/components/Totalhours/index.d.ts +48 -0
- package/dist/components/Wizard/index.d.ts +17 -0
- package/dist/components/Wizard/styles.d.ts +8 -0
- package/dist/components/index.d.ts +62 -0
- package/dist/constants/index.d.ts +11 -0
- package/dist/index.d.ts +1 -6
- package/dist/index.es.js +42404 -8221
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4103 -35
- package/dist/index.umd.js.map +1 -1
- package/dist/main.d.ts +1 -6
- package/dist/style.css +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/time/index.d.ts +7 -0
- package/package.json +13 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BadgeStatus } from './types';
|
|
3
|
+
|
|
4
|
+
export type BadgeProps = {
|
|
5
|
+
color?: string;
|
|
6
|
+
error?: number;
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
status?: BadgeStatus;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
borderRadius?: string;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
isLabel?: boolean;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare const Badge: React.FunctionComponent<BadgeProps>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Box: React.FC<BoxProps>;
|
|
4
|
+
declare enum Rule {
|
|
5
|
+
REM = "rem",
|
|
6
|
+
PIXELS = "px"
|
|
7
|
+
}
|
|
8
|
+
type RotateDegree = "0" | "1" | "2" | "3" | "6" | "12" | "45" | "90" | "180";
|
|
9
|
+
type BrightnessLevel = "0" | "50" | "75" | "90" | "95" | "100" | "105" | "110" | "125" | "150" | "200";
|
|
10
|
+
type ScaleLevel = "0" | "50" | "75" | "90" | "95" | "100";
|
|
11
|
+
type BorderWidth = "0" | "2" | "4" | "8" | "x-0" | "x-2" | "x-4" | "x-8" | "x" | "y-0" | "y-2" | "y-4" | "y-8" | "y" | "s-0" | "s-2" | "s-4" | "s-8" | "s" | "e-0" | "e-2" | "e-4" | "e-8" | "e" | "t-0" | "t-2" | "t-4" | "t-8" | "t" | "r-0" | "r-2" | "r-4" | "r-8" | "r" | "b-0" | "b-2" | "b-4" | "b-8" | "b" | "l-0" | "l-2" | "l-4" | "l-8" | "l";
|
|
12
|
+
type Radius = "none" | "sm" | "full" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
13
|
+
type OpacityValue = "0" | "5" | "10" | "20" | "25" | "30" | "40" | "50" | "60" | "70" | "75" | "80" | "90" | "95" | "100";
|
|
14
|
+
type BorderRadius = Radius | `s-${Radius}` | `e-${Radius}` | `t-${Radius}` | `r-${Radius}` | `b-${Radius}` | `ss-${Radius}` | `se-${Radius}` | `ee-${Radius}` | `es-${Radius}` | `tl-${Radius}` | `tr-${Radius}` | `bl-${Radius}` | `br-${Radius}`;
|
|
15
|
+
type BreakTiming = "auto" | "avoid" | "all" | "avoid-page" | "page" | "left" | "right" | "column";
|
|
16
|
+
type ScreenSize = "0" | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "full" | "min" | "max" | "fit" | "prose";
|
|
17
|
+
type BlurLevel = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
18
|
+
type SelectProperties = "none" | "text" | "all" | "auto";
|
|
19
|
+
type TextOverflowProperties = "truncate" | "ellipsis" | "clip";
|
|
20
|
+
type DisplayProperties = "block" | "inline" | "inline-block" | string;
|
|
21
|
+
type PositionProperties = "static" | "relative" | "absolute" | "sticky" | "fixed";
|
|
22
|
+
type OverflowProperties = "auto" | "hidden" | "clip" | "visible" | "scroll" | "x-auto" | "y-auto" | "x-hidden" | "y-hidden" | "x-clip" | "y-visible" | "x-scroll" | "y-scroll";
|
|
23
|
+
type whiteSpaceProperties = "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap" | "break-spaces";
|
|
24
|
+
export type BoxProps = {
|
|
25
|
+
id?: string;
|
|
26
|
+
as?: string;
|
|
27
|
+
rule?: Rule;
|
|
28
|
+
color?: string;
|
|
29
|
+
blur?: BlurLevel;
|
|
30
|
+
grid?: boolean;
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
onClick?: () => void;
|
|
33
|
+
onMouseEnter?: () => void;
|
|
34
|
+
onMouseLeave?: () => void;
|
|
35
|
+
fullWidth?: boolean;
|
|
36
|
+
fullHeight?: boolean;
|
|
37
|
+
width?: number | string;
|
|
38
|
+
height?: number | string;
|
|
39
|
+
top?: number | string;
|
|
40
|
+
left?: number | string;
|
|
41
|
+
right?: number | string;
|
|
42
|
+
bottom?: number | string;
|
|
43
|
+
insetX?: number | string;
|
|
44
|
+
insetY?: number | string;
|
|
45
|
+
margin?: number | string;
|
|
46
|
+
marginX?: number | string;
|
|
47
|
+
marginY?: number | string;
|
|
48
|
+
padding?: number | string;
|
|
49
|
+
paddingY?: number | string;
|
|
50
|
+
paddingX?: number | string;
|
|
51
|
+
paddingTop?: number | string;
|
|
52
|
+
paddingLeft?: number | string;
|
|
53
|
+
paddingRight?: number | string;
|
|
54
|
+
paddingBottom?: number | string;
|
|
55
|
+
maxWidth?: number | string;
|
|
56
|
+
minWidth?: number | string;
|
|
57
|
+
maxHeight?: number | string;
|
|
58
|
+
minHeight?: number | string;
|
|
59
|
+
minWidthScreen?: ScreenSize | string;
|
|
60
|
+
minHeightScreen?: ScreenSize | string;
|
|
61
|
+
maxWidthScreen?: ScreenSize | string;
|
|
62
|
+
maxHeightScreen?: ScreenSize | string;
|
|
63
|
+
marginTop?: number | string;
|
|
64
|
+
marginLeft?: number | string;
|
|
65
|
+
marginRight?: number | string;
|
|
66
|
+
marginBottom?: number | string;
|
|
67
|
+
backgroundColor?: string;
|
|
68
|
+
zIndex?: number | string;
|
|
69
|
+
display?: DisplayProperties;
|
|
70
|
+
position?: PositionProperties;
|
|
71
|
+
overflow?: OverflowProperties;
|
|
72
|
+
borderWidth?: BorderWidth | string | number;
|
|
73
|
+
textOverflow?: TextOverflowProperties;
|
|
74
|
+
borderTop?: boolean;
|
|
75
|
+
borderLeft?: boolean;
|
|
76
|
+
borderRight?: boolean;
|
|
77
|
+
borderBottom?: boolean;
|
|
78
|
+
container?: boolean;
|
|
79
|
+
breakAfter?: BreakTiming;
|
|
80
|
+
breakInside?: BreakTiming;
|
|
81
|
+
breakBefore?: BreakTiming;
|
|
82
|
+
float?: "left" | "right";
|
|
83
|
+
borderBox?: "border" | "content";
|
|
84
|
+
clear?: "left" | "right" | "both" | "none";
|
|
85
|
+
borders?: string[];
|
|
86
|
+
wordBreak?: "normal" | "words" | "all" | "keep";
|
|
87
|
+
borderStyle?: "solid" | "dashed";
|
|
88
|
+
borderColor?: string;
|
|
89
|
+
visibility?: "visibile" | "invisible" | "collapse";
|
|
90
|
+
textAlign?: "left" | "center" | "right" | "justify" | "start" | "end";
|
|
91
|
+
textTransform?: "uppercase" | "lowercase" | "capitalize" | "normal-case";
|
|
92
|
+
textDecoration?: "underline" | "overline" | "line-through" | "no-underline";
|
|
93
|
+
lineHeight?: number | string;
|
|
94
|
+
ringColor?: string | number;
|
|
95
|
+
ringWidth?: string | number;
|
|
96
|
+
ringOfsset?: string | number;
|
|
97
|
+
brightness?: BrightnessLevel;
|
|
98
|
+
borderRadius?: BorderRadius;
|
|
99
|
+
scale?: ScaleLevel | string;
|
|
100
|
+
scaleY?: ScaleLevel | string;
|
|
101
|
+
scaleX?: ScaleLevel | string;
|
|
102
|
+
rotate?: RotateDegree;
|
|
103
|
+
select?: SelectProperties;
|
|
104
|
+
whiteSpace?: whiteSpaceProperties;
|
|
105
|
+
onHover?: Partial<BoxProps> & Exclude<BoxProps, "hover">;
|
|
106
|
+
opacity?: OpacityValue;
|
|
107
|
+
} & React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BoxProps } from './index';
|
|
2
|
+
|
|
3
|
+
type ContainerArgs = Partial<BoxProps>;
|
|
4
|
+
export declare const classes: (props: ContainerArgs) => string;
|
|
5
|
+
/**
|
|
6
|
+
* @description
|
|
7
|
+
* Hover utility to avoid redundant hovering classes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const hoverFn: (props: BoxProps) => string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ButtonProps } from './types';
|
|
2
|
+
|
|
3
|
+
export type Override<T, U> = Omit<T, keyof U> & U;
|
|
4
|
+
export type OverrideBuilder = Override<Builder, {
|
|
5
|
+
backgrounds: typeof Builder.prototype.backgrounds;
|
|
6
|
+
variants: typeof Builder.prototype.variants;
|
|
7
|
+
}>;
|
|
8
|
+
declare class Builder {
|
|
9
|
+
private base;
|
|
10
|
+
private props;
|
|
11
|
+
variants: Record<string, string>;
|
|
12
|
+
fontSize: Record<string, string>;
|
|
13
|
+
backgrounds: Record<string, string>;
|
|
14
|
+
private disabled;
|
|
15
|
+
private active;
|
|
16
|
+
tailwind: string;
|
|
17
|
+
constructor(props: Partial<ButtonProps>, override?: OverrideBuilder);
|
|
18
|
+
private getDisabledStyle;
|
|
19
|
+
private buildClassName;
|
|
20
|
+
}
|
|
21
|
+
export { Builder };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Button component with TailwindCSS support and default props for size and variant.
|
|
7
|
+
* The component is styled with styled-components.
|
|
8
|
+
* @param props - ButtonProps
|
|
9
|
+
*/
|
|
10
|
+
export declare const Button: React.FunctionComponent<ButtonProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from './types';
|
|
2
|
+
|
|
3
|
+
type ButtonStyledProps = Pick<ButtonProps, "fullWidth" | "tabWithHover" | "visuallyDisabled">;
|
|
4
|
+
export declare const StyledButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonStyledProps>> & string;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OverrideBuilder } from './builder';
|
|
3
|
+
|
|
4
|
+
export type Variant = "primary" | "secondary" | "outline" | "tertiary" | "quaternary" | "quinary" | "senary" | "secondarymuted" | "danger" | "info-outline" | "danger-outline" | "primary-outline" | "darkened-outline" | "secondary-outline";
|
|
5
|
+
export type ButtonProps = {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
variant: Variant;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
size: "xs" | "sm" | "base" | "lg" | "xl" | "xxl" | "circle";
|
|
10
|
+
fontSize?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
disabledStyle?: string | Record<string, string>;
|
|
13
|
+
Icon?: JSX.Element;
|
|
14
|
+
override?: OverrideBuilder;
|
|
15
|
+
activeAsTab?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
tabWithHover?: boolean;
|
|
19
|
+
visuallyDisabled?: boolean;
|
|
20
|
+
orientationIcon?: "right" | "left";
|
|
21
|
+
};
|
|
22
|
+
export type ButtonStyledProps = {
|
|
23
|
+
fullWidth?: boolean;
|
|
24
|
+
tabWithHover?: boolean;
|
|
25
|
+
activeColor?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardProps, CardTitleProps } from './types';
|
|
3
|
+
|
|
4
|
+
export declare const Card: React.FunctionComponent<CardProps>;
|
|
5
|
+
export declare const DangerTitle: React.FC<CardTitleProps>;
|
|
6
|
+
export declare const CheckTitle: React.FC<CardTitleProps>;
|
|
7
|
+
export declare const AlertTitle: React.FC<CardTitleProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const classes: {
|
|
2
|
+
card: {
|
|
3
|
+
size: string;
|
|
4
|
+
style: string;
|
|
5
|
+
separator: string;
|
|
6
|
+
title: string;
|
|
7
|
+
body: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
};
|
|
10
|
+
title: {
|
|
11
|
+
rule: string;
|
|
12
|
+
danger: string;
|
|
13
|
+
alert: string;
|
|
14
|
+
pass: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type CardProps = {
|
|
2
|
+
requirement?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
5
|
+
state?: number;
|
|
6
|
+
};
|
|
7
|
+
export type CardTitleProps = {
|
|
8
|
+
title?: "Pendientes de Carga" | "Pendientes de Validación" | "Validados";
|
|
9
|
+
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
10
|
+
};
|
|
@@ -17,7 +17,6 @@ export type CheckboxProps = {
|
|
|
17
17
|
/**
|
|
18
18
|
* @description
|
|
19
19
|
* Checkbox component with Tailwind CSS styles. This component is a wrapper of the native HTML checkbox.
|
|
20
|
-
* @returns {React.FunctionComponent<CheckboxProps>}
|
|
21
20
|
* @example
|
|
22
21
|
* <TwCheckbox id="checkbox" name="checkbox" checked={true} />
|
|
23
22
|
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Collapse: React.FunctionComponent<CollapseProps>;
|
|
4
|
+
export declare const StyledCollapse: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
width?: string;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export type CollapseProps = {
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
child?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
override?: string;
|
|
14
|
+
onCollapse?: () => void;
|
|
15
|
+
uncontrollable?: boolean;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const classes: {
|
|
2
|
+
container: {
|
|
3
|
+
text: string;
|
|
4
|
+
child: string;
|
|
5
|
+
panel: string;
|
|
6
|
+
button: string;
|
|
7
|
+
disclosure: string;
|
|
8
|
+
content: string;
|
|
9
|
+
};
|
|
10
|
+
icon: {
|
|
11
|
+
root: string;
|
|
12
|
+
container: string;
|
|
13
|
+
open: string;
|
|
14
|
+
close: string;
|
|
15
|
+
size: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Col grid container for tailwind dynamic grid.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Container: React.FunctionComponent<ContainerProps>;
|
|
8
|
+
export type ContainerProps = {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
cols?: number;
|
|
12
|
+
start?: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Counter: React.FunctionComponent<CounterProps>;
|
|
4
|
+
export declare const Circle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const PassedDays: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
6
|
+
export type CounterProps = {
|
|
7
|
+
color?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
passedDays?: number;
|
|
10
|
+
remainingDays?: number;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Handle date and sync dates.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Datepicker: React.FC<DatepickerProps>;
|
|
8
|
+
export type DatepickerProps = {
|
|
9
|
+
date?: Date;
|
|
10
|
+
dayRef?: Date;
|
|
11
|
+
format?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
placeholderText?: string;
|
|
15
|
+
onChange?: (date: Date) => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
debug?: boolean;
|
|
18
|
+
minDate?: Date;
|
|
19
|
+
maxDate?: Date;
|
|
20
|
+
tooltipMinDate?: string;
|
|
21
|
+
tooltipMaxDate?: string;
|
|
22
|
+
isTableInput?: boolean;
|
|
23
|
+
formatDisabled?: boolean;
|
|
24
|
+
isSelectable?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type YearOption = {
|
|
27
|
+
key: string;
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as Datepicker } from 'react-datepicker';
|
|
2
|
+
import { DatepickerProps } from '.';
|
|
3
|
+
|
|
4
|
+
export declare const StyledDatepicker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<(import('react-datepicker').DatePickerProps & import('react').RefAttributes<Datepicker>) & import('styled-components/dist/types').BaseObject, DatepickerProps>> & string & Omit<typeof Datepicker, keyof import('react').Component<any, {}, any>>;
|
|
5
|
+
export declare const StyledTableInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, DatepickerProps>> & string;
|
|
6
|
+
export declare const StyledInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, DatepickerProps>> & string;
|
|
7
|
+
export declare const StyledIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, DatepickerProps>> & string;
|
|
8
|
+
export declare const StyledHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const StyledDay: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const SingleDeadlineChart: React.FC<SingleDeadlineChartProps>;
|
|
4
|
+
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const Workline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const NameContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const Name: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
8
|
+
export declare const ChartContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const ChartItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const ChartMain: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export declare const MetricsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const NumbersContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export declare const Since: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export declare const Bar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
export declare const StageContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
export declare const StageName: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const Untill: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
18
|
+
export declare const DeadlineColorDiv: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
19
|
+
bgColor: string;
|
|
20
|
+
widthPercent: number;
|
|
21
|
+
}>> & string;
|
|
22
|
+
export declare const DeadlineContainerNumber: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
23
|
+
widthPercent: number;
|
|
24
|
+
}>> & string;
|
|
25
|
+
interface Deadline {
|
|
26
|
+
id: number;
|
|
27
|
+
name: string;
|
|
28
|
+
criticalLevel: string;
|
|
29
|
+
color: string;
|
|
30
|
+
since: number;
|
|
31
|
+
until: number;
|
|
32
|
+
}
|
|
33
|
+
interface Stage {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
minDuration: number;
|
|
37
|
+
maxDuration: number;
|
|
38
|
+
deadlines: Deadline[];
|
|
39
|
+
}
|
|
40
|
+
export interface Result {
|
|
41
|
+
id: number;
|
|
42
|
+
name: string;
|
|
43
|
+
stages: Stage[];
|
|
44
|
+
}
|
|
45
|
+
export interface JsonData {
|
|
46
|
+
result: Result[];
|
|
47
|
+
}
|
|
48
|
+
export type DeadlineChartProps = {
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
};
|
|
51
|
+
export type SingleDeadlineChartProps = {
|
|
52
|
+
workLine: Result;
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommonTextProps } from '@nectiasw/components/Text';
|
|
3
|
+
|
|
4
|
+
export declare const Detail: React.FC<TwDetailProps & {
|
|
5
|
+
size?: CommonTextProps["size"];
|
|
6
|
+
color?: CommonTextProps["color"];
|
|
7
|
+
}>;
|
|
8
|
+
export declare const TwSection: React.FC<TwSectionProps & {
|
|
9
|
+
labelSize?: CommonTextProps["size"];
|
|
10
|
+
valueSize?: CommonTextProps["size"];
|
|
11
|
+
labelFont?: CommonTextProps["font"];
|
|
12
|
+
valueFont?: CommonTextProps["font"];
|
|
13
|
+
labelColor?: CommonTextProps["color"];
|
|
14
|
+
valueColor?: CommonTextProps["color"];
|
|
15
|
+
}>;
|
|
16
|
+
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const Row: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
18
|
+
export declare const Item: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
19
|
+
single?: boolean;
|
|
20
|
+
wrap?: boolean;
|
|
21
|
+
basis?: string;
|
|
22
|
+
}>> & string;
|
|
23
|
+
export declare const Content: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
24
|
+
justify: string;
|
|
25
|
+
}>> & string;
|
|
26
|
+
export type DetailProps = {
|
|
27
|
+
title?: string;
|
|
28
|
+
initialValue?: boolean;
|
|
29
|
+
seeDetailsTitles?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type SectionProps = {
|
|
32
|
+
label?: string;
|
|
33
|
+
color?: string;
|
|
34
|
+
formatAs?: "CLP" | "Hours" | "Default";
|
|
35
|
+
orientation?: 'right' | 'left' | 'bottom' | 'top';
|
|
36
|
+
value?: string | number;
|
|
37
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* A dropdown component that uses Tailwind CSS for styling.
|
|
6
|
+
* - Uses the Headless UI library for dropdown functionality.
|
|
7
|
+
* - Uses the Heroicons library for the chevron icon.
|
|
8
|
+
* - Uses the clsx library for conditional class names.
|
|
9
|
+
* - Uses the React.memo hook to prevent unnecessary re-renders.
|
|
10
|
+
* - Uses the React.FunctionComponent type for type safety.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Dropdown: React.FunctionComponent<DropdownProps>;
|
|
13
|
+
/**
|
|
14
|
+
* @description
|
|
15
|
+
* This type contains the props for the tw-dropdown component.
|
|
16
|
+
* - selected: The selected option.
|
|
17
|
+
* - options: The options to be displayed.
|
|
18
|
+
* - disabled: If the dropdown is disabled.
|
|
19
|
+
* - onChange: The function to be called when the selected option changes.
|
|
20
|
+
*/
|
|
21
|
+
export type DropdownProps = {
|
|
22
|
+
classNames?: {
|
|
23
|
+
root?: string;
|
|
24
|
+
item?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
items?: string;
|
|
27
|
+
option?: string;
|
|
28
|
+
};
|
|
29
|
+
selected?: string;
|
|
30
|
+
options: string[] | Option[];
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
onChange?: (value: string) => void;
|
|
33
|
+
uncontrollable?: boolean;
|
|
34
|
+
orientation?: "left" | "right" | "top" | "bottom";
|
|
35
|
+
search?: boolean;
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
itemColor?: string;
|
|
38
|
+
};
|
|
39
|
+
export type Option = {
|
|
40
|
+
label: string | React.ReactNode;
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const classes: {
|
|
2
|
+
container: {
|
|
3
|
+
root: string;
|
|
4
|
+
circle: string;
|
|
5
|
+
title: string;
|
|
6
|
+
chevron: string;
|
|
7
|
+
button: string;
|
|
8
|
+
ellipsis: string;
|
|
9
|
+
};
|
|
10
|
+
options: {
|
|
11
|
+
padding: string;
|
|
12
|
+
items: string;
|
|
13
|
+
left: string;
|
|
14
|
+
right: string;
|
|
15
|
+
bottom: string;
|
|
16
|
+
top: string;
|
|
17
|
+
item: (color: string) => string;
|
|
18
|
+
active: string;
|
|
19
|
+
inactive: (color: string) => string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CommonTextProps } from '@nectiasw/components/Text';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Empty state for containers.
|
|
7
|
+
*/
|
|
8
|
+
export declare const Empty: React.FC<EmptyProps>;
|
|
9
|
+
export type EmptyProps = {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
titleProps?: CommonTextProps;
|
|
13
|
+
decriptionProps?: CommonTextProps;
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Flex: React.FC<FlexProps>;
|
|
4
|
+
export declare const FlexItem: React.FC<FlexItemProps>;
|
|
5
|
+
export type FlexProps = {
|
|
6
|
+
gap?: number;
|
|
7
|
+
display?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
direction?: "col" | "row" | "col-reverse" | "row-reverse";
|
|
10
|
+
alignItems?: "center" | "start" | "end";
|
|
11
|
+
justifyContent?: "center" | "start" | "end" | "around" | "between";
|
|
12
|
+
spaceX?: number;
|
|
13
|
+
spaceY?: number;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
wrap?: "wrap" | "nowrap" | "wrap-reverse";
|
|
16
|
+
};
|
|
17
|
+
export type FlexItemProps = {
|
|
18
|
+
grow?: 1 | 0;
|
|
19
|
+
shrink?: 1 | 0;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
self?: "start" | "center" | "end" | "stretch" | "baseline" | "auto";
|
|
22
|
+
basis?: number | string;
|
|
23
|
+
justifySelf?: "auto" | "start" | "end" | "center" | "stretch";
|
|
24
|
+
order?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "first" | "last" | "none";
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FlexProps, FlexItemProps } from '.';
|
|
2
|
+
|
|
3
|
+
type ParentArgs = Partial<FlexProps>;
|
|
4
|
+
type ChildArgs = Partial<FlexItemProps>;
|
|
5
|
+
export declare const classes: {
|
|
6
|
+
child: ({ self, grow, basis, order, shrink, className, justifySelf, }: ChildArgs) => string;
|
|
7
|
+
parent: ({ gap, wrap, spaceX, spaceY, display, direction, className, alignItems, justifyContent, }: ParentArgs) => string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|