sodtrack-web-ui 0.7.8 → 0.7.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/alert.d.mts +11 -0
- package/dist/alert.mjs +5 -0
- package/dist/button.d.mts +70 -0
- package/dist/button.mjs +5 -0
- package/dist/chip-form.d.mts +68 -0
- package/dist/chip-form.mjs +4 -0
- package/dist/chip-status.d.mts +65 -0
- package/dist/chip-status.mjs +3 -0
- package/dist/chunk-22IACXYD.mjs +74 -0
- package/dist/chunk-2MWIFYP3.mjs +951 -0
- package/dist/chunk-2OWGGXTX.mjs +47 -0
- package/dist/chunk-FRPPC3Z5.mjs +43 -0
- package/dist/chunk-GY2JBRY6.mjs +230 -0
- package/dist/chunk-JVSF3AX2.mjs +42 -0
- package/dist/chunk-OO4FIPNF.mjs +62 -0
- package/dist/{index.js → chunk-P3UP2HUA.mjs} +1 -668
- package/dist/chunk-PLJ6ZHAI.mjs +2232 -0
- package/dist/chunk-RZ2JP5UH.mjs +55 -0
- package/dist/chunk-TLX6BZS2.mjs +24 -0
- package/dist/chunk-VIVTNX5U.mjs +70 -0
- package/dist/chunk-WSAW6L2X.mjs +36 -0
- package/dist/icon-button.d.mts +67 -0
- package/dist/icon-button.mjs +3 -0
- package/dist/icons.d.mts +12 -0
- package/dist/icons.mjs +2 -0
- package/dist/index.css +0 -1
- package/dist/index.d.mts +14 -353
- package/dist/index.mjs +13 -3135
- package/dist/spinner.d.mts +65 -0
- package/dist/spinner.mjs +4 -0
- package/dist/tab.d.mts +14 -0
- package/dist/tab.mjs +4 -0
- package/dist/text-field.d.mts +11 -0
- package/dist/text-field.mjs +5 -0
- package/dist/tooltip.d.mts +10 -0
- package/dist/tooltip.mjs +4 -0
- package/package.json +10 -6
- package/dist/index.css.map +0 -1
- package/dist/index.d.ts +0 -353
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/alert.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React__default, { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
type AlertProps = {
|
|
4
|
+
size?: "sm" | "md" | "lg";
|
|
5
|
+
variant: "warning" | "success" | "error" | "info";
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
} & React__default.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
declare const Alert: FC<AlertProps>;
|
|
10
|
+
|
|
11
|
+
export { Alert };
|
package/dist/alert.mjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React__default, { FC } from 'react';
|
|
2
|
+
import { VariantProps } from 'cva';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = {
|
|
5
|
+
startIcon?: React__default.ReactElement;
|
|
6
|
+
endIcon?: React__default.ReactElement;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
} & React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & VariantProps<typeof button>;
|
|
9
|
+
declare const Button: FC<ButtonProps>;
|
|
10
|
+
declare const button: (props?: ({
|
|
11
|
+
size?: "large" | "medium" | "small" | undefined;
|
|
12
|
+
variant?: "link" | "contained" | "outlined" | "ghost" | "standard" | undefined;
|
|
13
|
+
loading?: boolean | undefined;
|
|
14
|
+
} & ({
|
|
15
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
} | null | undefined)[] | {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
} | null | undefined)[] | {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
} | null | undefined)[] | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
} | null | undefined)[] | {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
} | null | undefined)[] | {
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
} | null | undefined)[] | {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
} | null | undefined)[] | {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
} | null | undefined)[] | {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
} | null | undefined)[] | {
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
} | null | undefined)[] | {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
} | null | undefined)[] | {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
} | null | undefined;
|
|
40
|
+
className?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
class?: undefined;
|
|
43
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
} | null | undefined)[] | {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
} | null | undefined)[] | {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
} | null | undefined)[] | {
|
|
50
|
+
[x: string]: any;
|
|
51
|
+
} | null | undefined)[] | {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
} | null | undefined)[] | {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
} | null | undefined)[] | {
|
|
56
|
+
[x: string]: any;
|
|
57
|
+
} | null | undefined)[] | {
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
} | null | undefined)[] | {
|
|
60
|
+
[x: string]: any;
|
|
61
|
+
} | null | undefined)[] | {
|
|
62
|
+
[x: string]: any;
|
|
63
|
+
} | null | undefined)[] | {
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
} | null | undefined)[] | {
|
|
66
|
+
[x: string]: any;
|
|
67
|
+
} | null | undefined;
|
|
68
|
+
})) | undefined) => string;
|
|
69
|
+
|
|
70
|
+
export { Button, type ButtonProps };
|
package/dist/button.mjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React__default, { FC } from 'react';
|
|
2
|
+
import { VariantProps } from 'cva';
|
|
3
|
+
|
|
4
|
+
declare const chipForm: (props?: ({
|
|
5
|
+
variant?: "color" | "neutral" | undefined;
|
|
6
|
+
size?: "sm" | "md" | undefined;
|
|
7
|
+
} & ({
|
|
8
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
} | null | undefined)[] | {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
} | null | undefined)[] | {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
} | null | undefined)[] | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
} | null | undefined)[] | {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
} | null | undefined)[] | {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
} | null | undefined)[] | {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
} | null | undefined)[] | {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
} | null | undefined)[] | {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
} | null | undefined)[] | {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
} | null | undefined)[] | {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
} | null | undefined)[] | {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
className?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
class?: undefined;
|
|
36
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
} | null | undefined)[] | {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
} | null | undefined)[] | {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
} | null | undefined)[] | {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
} | null | undefined)[] | {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
} | null | undefined)[] | {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
} | null | undefined)[] | {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
} | null | undefined)[] | {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
} | null | undefined)[] | {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
} | null | undefined)[] | {
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
} | null | undefined)[] | {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
} | null | undefined)[] | {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
} | null | undefined;
|
|
61
|
+
})) | undefined) => string;
|
|
62
|
+
type ChipFormProps = {
|
|
63
|
+
active?: boolean;
|
|
64
|
+
onChangeActive?: (active: boolean) => void;
|
|
65
|
+
} & React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & VariantProps<typeof chipForm>;
|
|
66
|
+
declare const ChipForm: FC<ChipFormProps>;
|
|
67
|
+
|
|
68
|
+
export { ChipForm };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { VariantProps } from 'cva';
|
|
2
|
+
import { FC, HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const chipStatus: (props?: ({
|
|
5
|
+
variant?: "success" | "info" | "warning" | "error" | undefined;
|
|
6
|
+
size?: "sm" | "md" | "xs" | undefined;
|
|
7
|
+
} & ({
|
|
8
|
+
class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
} | null | undefined)[] | {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
} | null | undefined)[] | {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
} | null | undefined)[] | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
} | null | undefined)[] | {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
} | null | undefined)[] | {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
} | null | undefined)[] | {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
} | null | undefined)[] | {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
} | null | undefined)[] | {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
} | null | undefined)[] | {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
} | null | undefined)[] | {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
} | null | undefined)[] | {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
className?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
class?: undefined;
|
|
36
|
+
className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
|
|
37
|
+
[x: string]: any;
|
|
38
|
+
} | null | undefined)[] | {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
} | null | undefined)[] | {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
} | null | undefined)[] | {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
} | null | undefined)[] | {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
} | null | undefined)[] | {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
} | null | undefined)[] | {
|
|
49
|
+
[x: string]: any;
|
|
50
|
+
} | null | undefined)[] | {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
} | null | undefined)[] | {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
} | null | undefined)[] | {
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
} | null | undefined)[] | {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
} | null | undefined)[] | {
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
} | null | undefined;
|
|
61
|
+
})) | undefined) => string;
|
|
62
|
+
type ChipStatusProps = {} & VariantProps<typeof chipStatus> & HTMLAttributes<HTMLSpanElement>;
|
|
63
|
+
declare const ChipStatus: FC<ChipStatusProps>;
|
|
64
|
+
|
|
65
|
+
export { ChipStatus };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { cn } from './chunk-P3UP2HUA.mjs';
|
|
2
|
+
import { require_jsx_runtime } from './chunk-2MWIFYP3.mjs';
|
|
3
|
+
import { LoaderCircleIcon } from './chunk-GY2JBRY6.mjs';
|
|
4
|
+
import { __toESM, require_react } from './chunk-PLJ6ZHAI.mjs';
|
|
5
|
+
import { cva } from 'cva';
|
|
6
|
+
|
|
7
|
+
// src/components/button.tsx
|
|
8
|
+
var import_react = __toESM(require_react());
|
|
9
|
+
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
10
|
+
var Button = ({
|
|
11
|
+
children,
|
|
12
|
+
className,
|
|
13
|
+
variant = "contained",
|
|
14
|
+
size = "medium",
|
|
15
|
+
startIcon,
|
|
16
|
+
endIcon,
|
|
17
|
+
loading = false,
|
|
18
|
+
disabled = false,
|
|
19
|
+
...props
|
|
20
|
+
}) => {
|
|
21
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
...props,
|
|
25
|
+
disabled: loading || disabled,
|
|
26
|
+
className: cn(button({ variant, size, loading }), className),
|
|
27
|
+
children: [
|
|
28
|
+
loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
29
|
+
LoaderCircleIcon,
|
|
30
|
+
{
|
|
31
|
+
className: cn("absolute animate-spin text-neutral-500"),
|
|
32
|
+
width: size === "small" ? "16px" : "24px",
|
|
33
|
+
height: size === "small" ? "16px" : "24px"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
startIcon && import_react.default.cloneElement(startIcon, {
|
|
37
|
+
width: size === "small" ? "16px" : "24px",
|
|
38
|
+
height: size === "small" ? "16px" : "24px"
|
|
39
|
+
}),
|
|
40
|
+
children,
|
|
41
|
+
endIcon && import_react.default.cloneElement(endIcon, {
|
|
42
|
+
width: size === "small" ? "16px" : "24px",
|
|
43
|
+
height: size === "small" ? "16px" : "24px"
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
var button = cva({
|
|
50
|
+
base: "flex flex-shrink-0 items-center justify-center gap-2 rounded-lg font-inter text-base font-semibold leading-[130%] disabled:cursor-not-allowed disabled:ring-0",
|
|
51
|
+
variants: {
|
|
52
|
+
size: {
|
|
53
|
+
large: "h-12 px-[11.13px]",
|
|
54
|
+
medium: "h-10 px-[11.13px]",
|
|
55
|
+
small: "h-8 gap-1 px-[11.4px] text-sm leading-[120%]"
|
|
56
|
+
},
|
|
57
|
+
variant: {
|
|
58
|
+
contained: "bg-primary-500 text-neutral-50 hover:bg-primary-600 focus:bg-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-primary-700 active:ring-0 disabled:bg-neutral-100 disabled:text-neutral-500",
|
|
59
|
+
outlined: "text-primary-500 ring-[1.5px] ring-inset ring-primary-500 hover:bg-transparent-primary-9 hover:text-primary-600 hover:ring-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:text-primary-500 focus:ring-[3px] focus:ring-primary-800 active:bg-transparent-primary-20 active:text-primary-700 active:ring-[1.5px] active:ring-primary-700 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-500 disabled:ring-[1.5px] disabled:ring-neutral-500",
|
|
60
|
+
ghost: "text-primary-500 hover:bg-transparent-primary-9 hover:text-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-20 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-500",
|
|
61
|
+
standard: "text-neutral-900 hover:bg-transparent-primary-9 focus:bg-neutral-50 focus:bg-opacity-0 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-20 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-500",
|
|
62
|
+
link: "text-primary-500 underline underline-offset-2 hover:bg-transparent-primary-9 hover:text-primary-600 focus:bg-neutral-50 focus:bg-opacity-0 focus:text-primary-500 focus:ring-[3px] focus:ring-inset focus:ring-primary-800 active:bg-transparent-primary-20 active:text-primary-700 active:ring-0 disabled:bg-neutral-50 disabled:bg-opacity-0 disabled:text-neutral-500"
|
|
63
|
+
},
|
|
64
|
+
loading: {
|
|
65
|
+
true: "disabled:text-neutral-50 disabled:text-opacity-0"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
defaultVariants: {
|
|
69
|
+
variant: "contained",
|
|
70
|
+
size: "medium"
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export { Button };
|