@tecsinapse/cortex-react 1.2.1 → 1.2.2-beta.0
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/cjs/components/Avatar.js +34 -0
- package/dist/cjs/components/BreadcrumbItem.js +27 -0
- package/dist/cjs/components/Breadcrumbs.js +22 -0
- package/dist/cjs/components/Card.js +2 -10
- package/dist/cjs/components/Drawer.js +32 -0
- package/dist/cjs/components/GroupButton.js +42 -0
- package/dist/cjs/components/Input.js +5 -3
- package/dist/cjs/components/Modal.js +6 -13
- package/dist/cjs/components/ProgressBar.js +70 -0
- package/dist/cjs/components/SearchInput.js +5 -0
- package/dist/cjs/components/Skeleton.js +21 -0
- package/dist/cjs/components/Table.js +5 -1
- package/dist/cjs/components/Toggle.js +17 -9
- package/dist/cjs/components/utils.js +12 -0
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/styles/groupButton.js +16 -0
- package/dist/cjs/styles/progressBar.js +21 -0
- package/dist/esm/components/Avatar.js +32 -0
- package/dist/esm/components/BreadcrumbItem.js +25 -0
- package/dist/esm/components/Breadcrumbs.js +20 -0
- package/dist/esm/components/Card.js +2 -10
- package/dist/esm/components/Drawer.js +30 -0
- package/dist/esm/components/GroupButton.js +40 -0
- package/dist/esm/components/Input.js +5 -3
- package/dist/esm/components/Modal.js +6 -13
- package/dist/esm/components/ProgressBar.js +68 -0
- package/dist/esm/components/SearchInput.js +5 -0
- package/dist/esm/components/Skeleton.js +19 -0
- package/dist/esm/components/Table.js +6 -3
- package/dist/esm/components/Toggle.js +17 -9
- package/dist/esm/components/utils.js +10 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/styles/groupButton.js +14 -0
- package/dist/esm/styles/progressBar.js +19 -0
- package/dist/types/components/Avatar.d.ts +7 -0
- package/dist/types/components/BreadcrumbItem.d.ts +5 -0
- package/dist/types/components/Breadcrumbs.d.ts +10 -0
- package/dist/types/components/Card.d.ts +1 -1
- package/dist/types/components/Drawer.d.ts +9 -0
- package/dist/types/components/GroupButton.d.ts +19 -0
- package/dist/types/components/Input.d.ts +1 -1
- package/dist/types/components/Modal.d.ts +2 -2
- package/dist/types/components/ProgressBar.d.ts +9 -0
- package/dist/types/components/SearchInput.d.ts +0 -1
- package/dist/types/components/Select.d.ts +0 -1
- package/dist/types/components/Skeleton.d.ts +4 -0
- package/dist/types/components/Table.d.ts +1 -0
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/utils.d.ts +1 -0
- package/dist/types/styles/groupButton.d.ts +77 -0
- package/dist/types/styles/index.d.ts +2 -0
- package/dist/types/styles/progressBar.d.ts +78 -0
- package/dist/types/tests/Avatar.test.d.ts +1 -0
- package/dist/types/tests/Badge.test.d.ts +1 -0
- package/dist/types/tests/BreadcrumbItem.test.d.ts +1 -0
- package/dist/types/tests/Breadcrumbs.test.d.ts +1 -0
- package/dist/types/tests/Card.test.d.ts +1 -0
- package/dist/types/tests/Drawer.test.d.ts +1 -0
- package/dist/types/tests/GroupButton.test.d.ts +1 -0
- package/dist/types/tests/Hint.test.d.ts +1 -0
- package/dist/types/tests/Input.test.d.ts +1 -0
- package/dist/types/tests/Modal.test.d.ts +1 -0
- package/dist/types/tests/ProgressBar.test.d.ts +1 -0
- package/dist/types/tests/Tag.test.d.ts +1 -0
- package/dist/types/tests/Toggle.test.d.ts +1 -0
- package/dist/types/tests/utils.test.d.ts +1 -0
- package/package.json +6 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { inputBox, labelStyle, input } from '@tecsinapse/cortex-core';
|
|
3
2
|
import { clsx } from 'clsx';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
|
|
5
5
|
const getValidChildren = (children) => {
|
|
6
6
|
return React.Children.toArray(children).filter(
|
|
@@ -17,13 +17,15 @@ const Box = React.forwardRef(
|
|
|
17
17
|
placeholder: placeholder ?? " ",
|
|
18
18
|
className: clsx(inputBox(placeholder, label, className)),
|
|
19
19
|
...rest,
|
|
20
|
-
ref
|
|
20
|
+
ref,
|
|
21
|
+
"data-testid": "input-input"
|
|
21
22
|
}
|
|
22
23
|
), /* @__PURE__ */ React.createElement(
|
|
23
24
|
"label",
|
|
24
25
|
{
|
|
25
26
|
htmlFor: id ?? name,
|
|
26
|
-
className: labelStyle({ intent: variants?.intent, placeholder })
|
|
27
|
+
className: labelStyle({ intent: variants?.intent, placeholder }),
|
|
28
|
+
"data-testid": "input-label"
|
|
27
29
|
},
|
|
28
30
|
label
|
|
29
31
|
));
|
|
@@ -3,21 +3,14 @@ import { overlay, modal } from '@tecsinapse/cortex-core';
|
|
|
3
3
|
|
|
4
4
|
const Modal = forwardRef((props, ref) => {
|
|
5
5
|
const { open, onClose, children, className } = props;
|
|
6
|
-
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
return /* @__PURE__ */ React.createElement("div", { ref, ...props }, /* @__PURE__ */ React.createElement(
|
|
7
7
|
"div",
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
className: overlay({ show: open }),
|
|
16
|
-
onClick: onClose
|
|
17
|
-
}
|
|
18
|
-
),
|
|
19
|
-
/* @__PURE__ */ React.createElement("dialog", { className: modal({ open, className }) }, children)
|
|
20
|
-
);
|
|
9
|
+
"data-testid": "overlay",
|
|
10
|
+
className: overlay({ show: open }),
|
|
11
|
+
onClick: onClose
|
|
12
|
+
}
|
|
13
|
+
), /* @__PURE__ */ React.createElement("dialog", { "data-testid": "modal", className: modal({ open, className }) }, children));
|
|
21
14
|
});
|
|
22
15
|
|
|
23
16
|
export { Modal };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import React, { useState, useEffect, useCallback } from 'react';
|
|
3
|
+
import { progressBarFilled } from '../styles/progressBar.js';
|
|
4
|
+
import '../styles/groupButton.js';
|
|
5
|
+
|
|
6
|
+
const ProgressBar = ({
|
|
7
|
+
segments: _segments = 1,
|
|
8
|
+
valueMin = 0,
|
|
9
|
+
valueMax = 100,
|
|
10
|
+
valueCurrent = 50,
|
|
11
|
+
intentProgress = "default",
|
|
12
|
+
animated = true
|
|
13
|
+
}) => {
|
|
14
|
+
const [displayedValue, setDisplayedValue] = useState(0);
|
|
15
|
+
const [showAnimation, setShowAnimation] = useState(true);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
const timeout = setTimeout(() => {
|
|
18
|
+
if (valueCurrent < displayedValue) {
|
|
19
|
+
setShowAnimation(false);
|
|
20
|
+
}
|
|
21
|
+
if (animated && valueCurrent > displayedValue) setShowAnimation(true);
|
|
22
|
+
setDisplayedValue(valueCurrent);
|
|
23
|
+
}, 0);
|
|
24
|
+
return () => clearTimeout(timeout);
|
|
25
|
+
}, [valueCurrent]);
|
|
26
|
+
const progressStyle = useCallback(
|
|
27
|
+
(width, index) => {
|
|
28
|
+
return {
|
|
29
|
+
width: `${width}%`,
|
|
30
|
+
transitionDelay: `${showAnimation ? `${index * 1e3}ms` : `0ms`}`
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
[showAnimation]
|
|
34
|
+
);
|
|
35
|
+
const totalProgress = (displayedValue - valueMin) / (valueMax - valueMin) * 100;
|
|
36
|
+
const segments = Math.max(1, _segments);
|
|
37
|
+
const lengthSeg = 100 / Math.max(segments);
|
|
38
|
+
const items = [...Array(segments).keys()];
|
|
39
|
+
return /* @__PURE__ */ React.createElement("div", { className: "flex gap-x-nano flex-row" }, items.map((_, index) => {
|
|
40
|
+
const max = lengthSeg * (index + 1);
|
|
41
|
+
const min = lengthSeg * index;
|
|
42
|
+
const minmax = (totalProgress - min) / (max - min);
|
|
43
|
+
const width = (minmax > 1 ? 1 : minmax < 0 ? 0 : minmax) * 100;
|
|
44
|
+
return /* @__PURE__ */ React.createElement(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
"data-testid": "progress-bar",
|
|
48
|
+
key: index,
|
|
49
|
+
className: clsx(
|
|
50
|
+
"h-[0.5rem] bg-secondary-light flex flex-1 first:rounded-l-pill last:rounded-r-pill"
|
|
51
|
+
)
|
|
52
|
+
},
|
|
53
|
+
/* @__PURE__ */ React.createElement(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
"data-testid": "div-segment-filled",
|
|
57
|
+
style: progressStyle(width, index),
|
|
58
|
+
className: progressBarFilled({
|
|
59
|
+
intentProgress,
|
|
60
|
+
showAnimation
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
}));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { ProgressBar };
|
|
@@ -11,6 +11,11 @@ import './Tag.js';
|
|
|
11
11
|
import './Toggle.js';
|
|
12
12
|
import './TextArea.js';
|
|
13
13
|
import '@tecsinapse/cortex-core';
|
|
14
|
+
import 'react-icons/md';
|
|
15
|
+
import 'clsx';
|
|
16
|
+
import '../styles/progressBar.js';
|
|
17
|
+
import '../styles/groupButton.js';
|
|
18
|
+
import './GroupButton.js';
|
|
14
19
|
import { AiOutlineLoading } from 'react-icons/ai';
|
|
15
20
|
import { IoSearchOutline } from 'react-icons/io5';
|
|
16
21
|
import { useDebouncedState } from '../hooks/useDebouncedState.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import clsx from 'clsx';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
const Skeleton = ({
|
|
5
|
+
className,
|
|
6
|
+
children,
|
|
7
|
+
...rest
|
|
8
|
+
}) => {
|
|
9
|
+
return /* @__PURE__ */ React.createElement(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
...rest,
|
|
13
|
+
className: clsx("animate-pulse bg-secondary-light", className)
|
|
14
|
+
},
|
|
15
|
+
children
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { Skeleton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { tHead, tRow, tHeadCell, tCell, tFoot, tRoot
|
|
2
|
+
import { tHead, tRow, tHeadCell, hr, tCell, tFoot, tRoot } from '@tecsinapse/cortex-core';
|
|
3
3
|
|
|
4
4
|
const THead = ({
|
|
5
5
|
children,
|
|
@@ -16,6 +16,9 @@ const THeadCell = ({
|
|
|
16
16
|
className,
|
|
17
17
|
...rest
|
|
18
18
|
}) => /* @__PURE__ */ React.createElement("th", { className: tHeadCell({ className }), ...rest }, children);
|
|
19
|
+
const TRowHeader = ({
|
|
20
|
+
children
|
|
21
|
+
}) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("tr", { className: tRow() }, children), /* @__PURE__ */ React.createElement("tr", { className: tRow() }, /* @__PURE__ */ React.createElement("td", { colSpan: 99 }, /* @__PURE__ */ React.createElement("hr", { className: hr() }))));
|
|
19
22
|
const TCell = ({
|
|
20
23
|
children,
|
|
21
24
|
className,
|
|
@@ -39,6 +42,6 @@ const Hr = ({
|
|
|
39
42
|
const Td = ({
|
|
40
43
|
children,
|
|
41
44
|
...rest
|
|
42
|
-
}) => /* @__PURE__ */ React.createElement("td", {
|
|
45
|
+
}) => /* @__PURE__ */ React.createElement("td", { ...rest }, children);
|
|
43
46
|
|
|
44
|
-
export { Hr, TCell, TFoot, THead, THeadCell, TRow, Table, Td };
|
|
47
|
+
export { Hr, TCell, TFoot, THead, THeadCell, TRow, TRowHeader, Table, Td };
|
|
@@ -1,16 +1,24 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
1
|
import { styleLabelElement, styleInputElement, toggle } from '@tecsinapse/cortex-core';
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
3
|
|
|
4
4
|
const Toggle = forwardRef((props, ref) => {
|
|
5
|
-
return /* @__PURE__ */ React.createElement(
|
|
6
|
-
"
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
"div",
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
className: "flex flex-row items-center gap-x-centi",
|
|
9
|
+
"data-testid": "toggle-div"
|
|
10
|
+
},
|
|
11
|
+
/* @__PURE__ */ React.createElement("label", { className: styleLabelElement() }, /* @__PURE__ */ React.createElement(
|
|
12
|
+
"input",
|
|
13
|
+
{
|
|
14
|
+
type: "checkbox",
|
|
15
|
+
className: styleInputElement(),
|
|
16
|
+
ref,
|
|
17
|
+
"data-testid": "toggle-input",
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
), /* @__PURE__ */ React.createElement("div", { className: toggle() }))
|
|
21
|
+
);
|
|
14
22
|
});
|
|
15
23
|
|
|
16
24
|
export { Toggle };
|
package/dist/esm/index.js
CHANGED
|
@@ -9,4 +9,10 @@ export { Snackbar } from './components/Snackbar.js';
|
|
|
9
9
|
export { Tag } from './components/Tag.js';
|
|
10
10
|
export { Toggle } from './components/Toggle.js';
|
|
11
11
|
export { TextArea } from './components/TextArea.js';
|
|
12
|
-
export { Hr, TCell, TFoot, THead, THeadCell, TRow, Table, Td } from './components/Table.js';
|
|
12
|
+
export { Hr, TCell, TFoot, THead, THeadCell, TRow, TRowHeader, Table, Td } from './components/Table.js';
|
|
13
|
+
export { Drawer } from './components/Drawer.js';
|
|
14
|
+
export { Breadcrumbs } from './components/Breadcrumbs.js';
|
|
15
|
+
export { Avatar } from './components/Avatar.js';
|
|
16
|
+
export { Skeleton } from './components/Skeleton.js';
|
|
17
|
+
export { ProgressBar } from './components/ProgressBar.js';
|
|
18
|
+
export { GroupButton } from './components/GroupButton.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const groupButton = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
button: "border-[1px] border-secondary-medium px-centi py-mili items-center flex text-sub font-bold",
|
|
6
|
+
inactive: "bg-white text-secondary-medium disabled:bg-secondary-light",
|
|
7
|
+
firstButton: "first:rounded-l-mili first:border-r-0",
|
|
8
|
+
lastButton: "last:rounded-r-mili last:border-l-0",
|
|
9
|
+
container: "flex flex-row flex-1 h-[2rem] w-[500px]",
|
|
10
|
+
active: "text-white bg-secondary-medium"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export { groupButton };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const progressBarFilled = tv({
|
|
4
|
+
base: "h-full first:rounded-l-pill last:rounded-r-pill",
|
|
5
|
+
variants: {
|
|
6
|
+
intentProgress: {
|
|
7
|
+
default: "bg-primary-medium",
|
|
8
|
+
error: "bg-error-medium",
|
|
9
|
+
info: "bg-info-medium",
|
|
10
|
+
warning: "bg-warning-medium",
|
|
11
|
+
success: "bg-success-medium"
|
|
12
|
+
},
|
|
13
|
+
showAnimation: {
|
|
14
|
+
true: "transition-[width] duration-1000 ease-linear"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { progressBarFilled };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
2
|
+
export interface BreadcrumbType {
|
|
3
|
+
title: string;
|
|
4
|
+
Component: ElementType;
|
|
5
|
+
componentProps?: any;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
breadcrumbs: BreadcrumbType[];
|
|
9
|
+
}
|
|
10
|
+
export declare const Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface CardProps {
|
|
3
|
-
children
|
|
3
|
+
children?: React.ReactNode;
|
|
4
4
|
}
|
|
5
5
|
export declare const Card: React.ForwardRefExoticComponent<Omit<CardProps & React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DrawerProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
position?: 'left' | 'right';
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Drawer: ({ children, onClose, open, position, }: DrawerProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface GroupButtonValue<T> {
|
|
3
|
+
value: T;
|
|
4
|
+
}
|
|
5
|
+
export interface GroupButtonProps<T> {
|
|
6
|
+
value: T;
|
|
7
|
+
options: GroupButtonValue<T>[];
|
|
8
|
+
renderKey: (option?: T) => string | number;
|
|
9
|
+
renderOption: (option: T) => ReactNode;
|
|
10
|
+
onChange: (option: T) => void;
|
|
11
|
+
customStyles?: {
|
|
12
|
+
active?: string;
|
|
13
|
+
firstButton?: string;
|
|
14
|
+
lastButton?: string;
|
|
15
|
+
inactive?: string;
|
|
16
|
+
};
|
|
17
|
+
disableAllOptions?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const GroupButton: <T>(props: GroupButtonProps<T>) => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
interface ModalProps {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
|
-
children
|
|
5
|
+
children?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ProgressBarProps {
|
|
2
|
+
segments?: number;
|
|
3
|
+
valueMin?: number;
|
|
4
|
+
valueMax?: number;
|
|
5
|
+
valueCurrent: number;
|
|
6
|
+
intentProgress?: 'default' | 'success' | 'warning' | 'info' | 'error';
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProgressBar: ({ segments: _segments, valueMin, valueMax, valueCurrent, intentProgress, animated, }: ProgressBarProps) => JSX.Element;
|
|
@@ -5,6 +5,7 @@ interface TableCommon {
|
|
|
5
5
|
export declare const THead: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
6
6
|
export declare const TRow: ({ children, className, ...rest }: TableCommon & React.HTMLAttributes<HTMLTableRowElement>) => JSX.Element;
|
|
7
7
|
export declare const THeadCell: ({ children, className, ...rest }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
8
|
+
export declare const TRowHeader: ({ children, }: TableCommon & ThHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
8
9
|
export declare const TCell: ({ children, className, ...rest }: TableCommon & TdHTMLAttributes<HTMLTableCellElement>) => JSX.Element;
|
|
9
10
|
export declare const TFoot: ({ children, className, ...rest }: TableCommon & HTMLAttributes<HTMLTableSectionElement>) => JSX.Element;
|
|
10
11
|
export declare const Table: ({ children, className, ...rest }: TableCommon & TableHTMLAttributes<HTMLTableElement>) => JSX.Element;
|
|
@@ -10,3 +10,9 @@ export * from './Tag';
|
|
|
10
10
|
export * from './Toggle';
|
|
11
11
|
export * from './TextArea';
|
|
12
12
|
export * from './Table';
|
|
13
|
+
export * from './Drawer';
|
|
14
|
+
export * from './Breadcrumbs';
|
|
15
|
+
export * from './Avatar';
|
|
16
|
+
export * from './Skeleton';
|
|
17
|
+
export * from './ProgressBar';
|
|
18
|
+
export * from './GroupButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getNameInitials: (name: string) => string;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const groupButton: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
4
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
15
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
19
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
20
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
} | {}, {
|
|
24
|
+
button: string;
|
|
25
|
+
inactive: string;
|
|
26
|
+
firstButton: string;
|
|
27
|
+
lastButton: string;
|
|
28
|
+
container: string;
|
|
29
|
+
active: string;
|
|
30
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
31
|
+
[key: string]: {
|
|
32
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
33
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
36
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
37
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
38
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
} | {}>, {
|
|
42
|
+
[key: string]: {
|
|
43
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
44
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
45
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
46
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
47
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
48
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
49
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
} | {}, {
|
|
53
|
+
button: string;
|
|
54
|
+
inactive: string;
|
|
55
|
+
firstButton: string;
|
|
56
|
+
lastButton: string;
|
|
57
|
+
container: string;
|
|
58
|
+
active: string;
|
|
59
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
60
|
+
button: string;
|
|
61
|
+
inactive: string;
|
|
62
|
+
firstButton: string;
|
|
63
|
+
lastButton: string;
|
|
64
|
+
container: string;
|
|
65
|
+
active: string;
|
|
66
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
67
|
+
[key: string]: {
|
|
68
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
69
|
+
button?: import("tailwind-merge").ClassNameValue;
|
|
70
|
+
inactive?: import("tailwind-merge").ClassNameValue;
|
|
71
|
+
firstButton?: import("tailwind-merge").ClassNameValue;
|
|
72
|
+
lastButton?: import("tailwind-merge").ClassNameValue;
|
|
73
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
74
|
+
active?: import("tailwind-merge").ClassNameValue;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const progressBarFilled: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
intentProgress: {
|
|
3
|
+
default: string;
|
|
4
|
+
error: string;
|
|
5
|
+
info: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
success: string;
|
|
8
|
+
};
|
|
9
|
+
showAnimation: {
|
|
10
|
+
true: string;
|
|
11
|
+
};
|
|
12
|
+
}, undefined, "h-full first:rounded-l-pill last:rounded-r-pill", import("tailwind-variants/dist/config").TVConfig<{
|
|
13
|
+
intentProgress: {
|
|
14
|
+
default: string;
|
|
15
|
+
error: string;
|
|
16
|
+
info: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
success: string;
|
|
19
|
+
};
|
|
20
|
+
showAnimation: {
|
|
21
|
+
true: string;
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
intentProgress: {
|
|
25
|
+
default: string;
|
|
26
|
+
error: string;
|
|
27
|
+
info: string;
|
|
28
|
+
warning: string;
|
|
29
|
+
success: string;
|
|
30
|
+
};
|
|
31
|
+
showAnimation: {
|
|
32
|
+
true: string;
|
|
33
|
+
};
|
|
34
|
+
}>, {
|
|
35
|
+
intentProgress: {
|
|
36
|
+
default: string;
|
|
37
|
+
error: string;
|
|
38
|
+
info: string;
|
|
39
|
+
warning: string;
|
|
40
|
+
success: string;
|
|
41
|
+
};
|
|
42
|
+
showAnimation: {
|
|
43
|
+
true: string;
|
|
44
|
+
};
|
|
45
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
46
|
+
intentProgress: {
|
|
47
|
+
default: string;
|
|
48
|
+
error: string;
|
|
49
|
+
info: string;
|
|
50
|
+
warning: string;
|
|
51
|
+
success: string;
|
|
52
|
+
};
|
|
53
|
+
showAnimation: {
|
|
54
|
+
true: string;
|
|
55
|
+
};
|
|
56
|
+
}, undefined, "h-full first:rounded-l-pill last:rounded-r-pill", import("tailwind-variants/dist/config").TVConfig<{
|
|
57
|
+
intentProgress: {
|
|
58
|
+
default: string;
|
|
59
|
+
error: string;
|
|
60
|
+
info: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
success: string;
|
|
63
|
+
};
|
|
64
|
+
showAnimation: {
|
|
65
|
+
true: string;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
intentProgress: {
|
|
69
|
+
default: string;
|
|
70
|
+
error: string;
|
|
71
|
+
info: string;
|
|
72
|
+
warning: string;
|
|
73
|
+
success: string;
|
|
74
|
+
};
|
|
75
|
+
showAnimation: {
|
|
76
|
+
true: string;
|
|
77
|
+
};
|
|
78
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|