@szum-tech/design-system 2.0.3 → 2.1.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/chunk-463KEXY6.cjs +79 -0
- package/dist/chunk-4YZSPNLW.cjs +42 -0
- package/dist/chunk-5EN2HNFU.js +50 -0
- package/dist/chunk-5ENMEB5L.cjs +341 -0
- package/dist/chunk-AO4TMCYJ.js +88 -0
- package/dist/chunk-C5YRMEKV.js +319 -0
- package/dist/chunk-H2BWO3SI.cjs +0 -1
- package/dist/chunk-HFHADY43.js +36 -0
- package/dist/chunk-HIWVHD4V.js +56 -0
- package/dist/chunk-HXC3EALP.js +39 -0
- package/dist/chunk-IFBQNWVG.js +70 -0
- package/dist/chunk-INJBKPIE.js +88 -0
- package/dist/chunk-J264N6AZ.js +22 -0
- package/dist/chunk-J56UDYA3.js +70 -0
- package/dist/chunk-KPB3CBHE.cjs +40 -0
- package/dist/chunk-LI7IHIOM.cjs +30 -0
- package/dist/chunk-LND2W67K.cjs +17 -0
- package/dist/chunk-N7DXGCBJ.cjs +30 -0
- package/dist/chunk-PB3EGVTV.cjs +116 -0
- package/dist/chunk-QRSQCHBO.cjs +59 -0
- package/dist/chunk-RF5YR553.cjs +24 -0
- package/dist/chunk-TD2KDWNP.js +57 -0
- package/dist/chunk-TSN5DAKH.cjs +99 -0
- package/dist/chunk-US32J7DK.js +15 -0
- package/dist/chunk-UZBZFCWX.js +28 -0
- package/dist/chunk-V4POHGAW.cjs +60 -0
- package/dist/chunk-VFRIU5CV.cjs +16 -0
- package/dist/chunk-VQMM75HD.cjs +66 -0
- package/dist/chunk-WTVBTZ3P.js +29 -0
- package/dist/chunk-XGA2F5GG.cjs +72 -0
- package/dist/chunk-XPM62WMM.js +23 -0
- package/dist/chunk-YHU2OW52.js +14 -0
- package/dist/chunk-YXTTED5V.cjs +31 -0
- package/dist/chunk-ZD2QRAOX.js +0 -1
- package/dist/components/alert-dialog/index.cjs +43 -0
- package/dist/components/alert-dialog/index.d.cts +32 -0
- package/dist/components/alert-dialog/index.d.ts +32 -0
- package/dist/components/alert-dialog/index.js +2 -0
- package/dist/components/avatar/index.cjs +19 -0
- package/dist/components/avatar/index.d.cts +28 -0
- package/dist/components/avatar/index.d.ts +28 -0
- package/dist/components/avatar/index.js +2 -0
- package/dist/components/button/index.cjs +11 -0
- package/dist/components/button/index.d.cts +64 -0
- package/dist/components/button/index.d.ts +64 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/card/index.cjs +30 -0
- package/dist/components/card/index.d.cts +22 -0
- package/dist/components/card/index.d.ts +22 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/dialog/index.cjs +38 -0
- package/dist/components/dialog/index.d.cts +40 -0
- package/dist/components/dialog/index.d.ts +40 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/form/index.cjs +50 -0
- package/dist/components/form/index.d.cts +32 -0
- package/dist/components/form/index.d.ts +32 -0
- package/dist/components/form/index.js +17 -0
- package/dist/components/header/index.cjs +10 -0
- package/dist/components/header/index.d.cts +9 -0
- package/dist/components/header/index.d.ts +9 -0
- package/dist/components/header/index.js +1 -0
- package/dist/components/helper-text/index.cjs +10 -0
- package/dist/components/helper-text/index.d.cts +18 -0
- package/dist/components/helper-text/index.d.ts +18 -0
- package/dist/components/helper-text/index.js +1 -0
- package/dist/components/index.cjs +230 -0
- package/dist/components/index.d.cts +22 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +17 -0
- package/dist/components/input/index.cjs +11 -0
- package/dist/components/input/index.d.cts +11 -0
- package/dist/components/input/index.d.ts +11 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/label/index.cjs +10 -0
- package/dist/components/label/index.d.cts +8 -0
- package/dist/components/label/index.d.ts +8 -0
- package/dist/components/label/index.js +1 -0
- package/dist/components/select/index.cjs +14 -0
- package/dist/components/select/index.d.cts +15 -0
- package/dist/components/select/index.d.ts +15 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/separator/index.cjs +11 -0
- package/dist/components/separator/index.d.cts +8 -0
- package/dist/components/separator/index.d.ts +8 -0
- package/dist/components/separator/index.js +2 -0
- package/dist/components/sheet/index.cjs +38 -0
- package/dist/components/sheet/index.d.cts +40 -0
- package/dist/components/sheet/index.d.ts +40 -0
- package/dist/components/sheet/index.js +1 -0
- package/dist/components/textarea/index.cjs +10 -0
- package/dist/components/textarea/index.d.cts +9 -0
- package/dist/components/textarea/index.d.ts +9 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/tooltip/index.cjs +14 -0
- package/dist/components/tooltip/index.d.cts +20 -0
- package/dist/components/tooltip/index.d.ts +20 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/icons/index.cjs +22 -0
- package/dist/icons/index.js +1 -0
- package/dist/{utils.cjs → utils/index.cjs} +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +50 -38
- package/dist/chunk-EKHM64CK.js +0 -7290
- package/dist/chunk-G4TX2R77.cjs +0 -7613
- package/dist/icons.cjs +0 -1294
- package/dist/icons.js +0 -1
- package/dist/index.cjs +0 -906
- package/dist/index.d.cts +0 -285
- package/dist/index.d.ts +0 -285
- package/dist/index.js +0 -830
- package/dist/utils.js +0 -1
- package/dist/{icons.d.ts → icons/index.d.cts} +1 -1
- package/dist/{icons.d.cts → icons/index.d.ts} +1 -1
- /package/dist/{utils.d.cts → utils/index.d.cts} +0 -0
- /package/dist/{utils.d.ts → utils/index.d.ts} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
function Header({ children, ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7
|
+
"header",
|
|
8
|
+
{
|
|
9
|
+
className: "bg-foreground/95 supports-[backdrop-filter]:bg-foreground/60 sticky top-0 z-50 w-full border-b border-gray-400 backdrop-blur",
|
|
10
|
+
...props,
|
|
11
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container flex h-16 items-center", children })
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.Header = Header;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var radixUi = require('radix-ui');
|
|
4
|
+
var tailwindMerge = require('tailwind-merge');
|
|
5
|
+
var reactIcons = require('@radix-ui/react-icons');
|
|
6
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
var Sheet = radixUi.Dialog.Root;
|
|
10
|
+
var SheetTrigger = radixUi.Dialog.Trigger;
|
|
11
|
+
var SheetClose = radixUi.Dialog.Close;
|
|
12
|
+
var sheetContentStyles = classVarianceAuthority.cva(
|
|
13
|
+
"bg-foreground data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col border-gray-400 p-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
side: {
|
|
17
|
+
top: "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 border-b",
|
|
18
|
+
bottom: "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 border-t",
|
|
19
|
+
left: "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
20
|
+
right: "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
side: "right"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
function SheetContent({ side = "right", className, children, ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Portal, { children: [
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
+
radixUi.Dialog.Overlay,
|
|
32
|
+
{
|
|
33
|
+
className: "bg-background/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm",
|
|
34
|
+
...props
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Content, { className: tailwindMerge.twMerge(sheetContentStyles({ side }), className), ...props, children: [
|
|
38
|
+
children,
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsxs(radixUi.Dialog.Close, { className: "focus:ring-ring ring-primary-500 ring-offset-foreground data-[state=open]:bg-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
|
|
40
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross1Icon, { className: "size-4" }),
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
42
|
+
] })
|
|
43
|
+
] })
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
function SheetHeader({ className, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
48
|
+
}
|
|
49
|
+
function SheetFooter({ className, ...props }) {
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
51
|
+
}
|
|
52
|
+
function SheetTitle({ className, ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Title, { className: tailwindMerge.twMerge("typography-heading-6", className), ...props });
|
|
54
|
+
}
|
|
55
|
+
function SheetDescription({ className, ...props }) {
|
|
56
|
+
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Dialog.Description, { className: tailwindMerge.twMerge("typography-body-2 text-gray-200", className), ...props });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
exports.Sheet = Sheet;
|
|
60
|
+
exports.SheetClose = SheetClose;
|
|
61
|
+
exports.SheetContent = SheetContent;
|
|
62
|
+
exports.SheetDescription = SheetDescription;
|
|
63
|
+
exports.SheetFooter = SheetFooter;
|
|
64
|
+
exports.SheetHeader = SheetHeader;
|
|
65
|
+
exports.SheetTitle = SheetTitle;
|
|
66
|
+
exports.SheetTrigger = SheetTrigger;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var helperTextCva = cva("", {
|
|
6
|
+
variants: {
|
|
7
|
+
type: {
|
|
8
|
+
description: "text-body-2 text-gray-200",
|
|
9
|
+
error: "text-caption text-error-500"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
defaultVariants: {
|
|
13
|
+
type: "description"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
function HelperText({ className, children, type = "description", role, ref, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
"p",
|
|
19
|
+
{
|
|
20
|
+
ref,
|
|
21
|
+
className: twMerge(helperTextCva({ type }), className),
|
|
22
|
+
role: type === "error" ? "alert" : role,
|
|
23
|
+
...props,
|
|
24
|
+
children
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { HelperText };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var inputCva = classVarianceAuthority.cva(
|
|
8
|
+
[
|
|
9
|
+
"bg-app-foreground font-poppins h-10 w-full appearance-none border py-2 outline-0 transition-colors duration-300 ease-in-out",
|
|
10
|
+
"placeholder:select-none placeholder:text-gray-200",
|
|
11
|
+
"invalid:border-error-500 focus:border-primary-400 active:border-primary-400",
|
|
12
|
+
"disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"
|
|
13
|
+
],
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
invalid: {
|
|
17
|
+
true: ["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],
|
|
18
|
+
false: ["border-gray-350 hover:border-primary-500 text-gray-100"]
|
|
19
|
+
},
|
|
20
|
+
withStartIcon: {
|
|
21
|
+
true: "pl-11",
|
|
22
|
+
false: "pl-3"
|
|
23
|
+
},
|
|
24
|
+
withEndIcon: {
|
|
25
|
+
true: "pr-11",
|
|
26
|
+
false: "pr-3"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
invalid: false,
|
|
31
|
+
withStartIcon: false,
|
|
32
|
+
withEndIcon: false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
var inputIconContainerCva = classVarianceAuthority.cva(
|
|
37
|
+
["pointer-events-none absolute inset-y-2 inline-flex w-10 place-content-center items-center text-center"],
|
|
38
|
+
{
|
|
39
|
+
variants: {
|
|
40
|
+
disabled: {
|
|
41
|
+
true: "text-gray-200"
|
|
42
|
+
},
|
|
43
|
+
site: {
|
|
44
|
+
right: "right-0 border-l border-l-gray-400 pr-1",
|
|
45
|
+
left: "left-0 border-r border-r-gray-400 pl-1"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
defaultVariants: {
|
|
49
|
+
disabled: false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
function Input({ invalid = false, startIcon, endIcon, disabled = false, className, ...props }) {
|
|
54
|
+
const inputStyles = inputCva({ withEndIcon: !!endIcon, withStartIcon: !!startIcon, invalid });
|
|
55
|
+
const inputIconStartContainer = inputIconContainerCva({ site: "left", disabled });
|
|
56
|
+
const inputIconEndContainer = inputIconContainerCva({ site: "right", disabled });
|
|
57
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-body-2 relative text-gray-100", children: [
|
|
58
|
+
startIcon ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: inputIconStartContainer, children: startIcon }) : null,
|
|
59
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
+
"input",
|
|
61
|
+
{
|
|
62
|
+
"aria-invalid": invalid || void 0,
|
|
63
|
+
disabled,
|
|
64
|
+
className: chunkH2BWO3SI_cjs.cn(inputStyles, className),
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
endIcon ? /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": true, className: inputIconEndContainer, children: endIcon }) : null
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
exports.Input = Input;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { twMerge } from 'tailwind-merge';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function Card({ className, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge("bg-app-foreground h-full rounded border border-gray-400", className), ...props });
|
|
6
|
+
}
|
|
7
|
+
function CardHeader({ className, ...props }) {
|
|
8
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge("flex flex-col p-6", className), ...props });
|
|
9
|
+
}
|
|
10
|
+
function CardTitle({ className, ...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsx("h3", { className: twMerge("text-heading-5", className), ...props });
|
|
12
|
+
}
|
|
13
|
+
function CardDescription({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx("p", { className: twMerge("text-body-2 text-gray-200", className), ...props });
|
|
15
|
+
}
|
|
16
|
+
function CardContent({ className, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge("p-6 pt-0", className), ...props });
|
|
18
|
+
}
|
|
19
|
+
function CardFooter({ className, ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { className: twMerge("flex items-center p-6 pt-0", className), ...props });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
function Header({ children, ...props }) {
|
|
4
|
+
return /* @__PURE__ */ jsx(
|
|
5
|
+
"header",
|
|
6
|
+
{
|
|
7
|
+
className: "bg-foreground/95 supports-[backdrop-filter]:bg-foreground/60 sticky top-0 z-50 w-full border-b border-gray-400 backdrop-blur",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx("div", { className: "container flex h-16 items-center", children })
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { Header };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tailwindMerge = require('tailwind-merge');
|
|
4
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var helperTextCva = classVarianceAuthority.cva("", {
|
|
8
|
+
variants: {
|
|
9
|
+
type: {
|
|
10
|
+
description: "text-body-2 text-gray-200",
|
|
11
|
+
error: "text-caption text-error-500"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
type: "description"
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function HelperText({ className, children, type = "description", role, ref, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
+
"p",
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
className: tailwindMerge.twMerge(helperTextCva({ type }), className),
|
|
24
|
+
role: type === "error" ? "alert" : role,
|
|
25
|
+
...props,
|
|
26
|
+
children
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.HelperText = HelperText;
|
package/dist/chunk-ZD2QRAOX.js
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkV4POHGAW_cjs = require('../../chunk-V4POHGAW.cjs');
|
|
4
|
+
require('../../chunk-H2BWO3SI.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "AlertDialog", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialog; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AlertDialogAction", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogAction; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "AlertDialogCancel", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogCancel; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "AlertDialogContent", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogContent; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "AlertDialogDescription", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogDescription; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "AlertDialogFooter", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogFooter; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "AlertDialogHeader", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogHeader; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "AlertDialogTitle", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogTitle; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "AlertDialogTrigger", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkV4POHGAW_cjs.AlertDialogTrigger; }
|
|
43
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertDialog as AlertDialog$1 } from 'radix-ui';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
type AlertDialogProps = AlertDialog$1.AlertDialogProps;
|
|
6
|
+
declare const AlertDialog: React.FC<AlertDialog$1.AlertDialogProps>;
|
|
7
|
+
|
|
8
|
+
type AlertDialogTriggerProps = AlertDialog$1.AlertDialogTriggerProps;
|
|
9
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialog$1.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
|
|
11
|
+
type AlertDialogContentProps = React.ComponentProps<typeof AlertDialog$1.Content>;
|
|
12
|
+
declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
type AlertDialogHeaderProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
15
|
+
declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
type AlertDialogFooterProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
18
|
+
declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
type AlertDialogTitleProps = React.ComponentProps<typeof AlertDialog$1.Title>;
|
|
21
|
+
declare function AlertDialogTitle({ className, ref, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
type AlertDialogDescriptionProps = React.ComponentProps<typeof AlertDialog$1.Description>;
|
|
24
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
type AlertDialogActionProps = AlertDialog$1.AlertDialogActionProps;
|
|
27
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialog$1.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
|
|
29
|
+
type AlertDialogCancelProps = AlertDialog$1.AlertDialogCancelProps;
|
|
30
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialog$1.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
|
|
32
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertDialog as AlertDialog$1 } from 'radix-ui';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
type AlertDialogProps = AlertDialog$1.AlertDialogProps;
|
|
6
|
+
declare const AlertDialog: React.FC<AlertDialog$1.AlertDialogProps>;
|
|
7
|
+
|
|
8
|
+
type AlertDialogTriggerProps = AlertDialog$1.AlertDialogTriggerProps;
|
|
9
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialog$1.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
|
|
11
|
+
type AlertDialogContentProps = React.ComponentProps<typeof AlertDialog$1.Content>;
|
|
12
|
+
declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
type AlertDialogHeaderProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
15
|
+
declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
type AlertDialogFooterProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
18
|
+
declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
type AlertDialogTitleProps = React.ComponentProps<typeof AlertDialog$1.Title>;
|
|
21
|
+
declare function AlertDialogTitle({ className, ref, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
type AlertDialogDescriptionProps = React.ComponentProps<typeof AlertDialog$1.Description>;
|
|
24
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
|
|
25
|
+
|
|
26
|
+
type AlertDialogActionProps = AlertDialog$1.AlertDialogActionProps;
|
|
27
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialog$1.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
|
|
29
|
+
type AlertDialogCancelProps = AlertDialog$1.AlertDialogCancelProps;
|
|
30
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialog$1.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
|
|
32
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKPB3CBHE_cjs = require('../../chunk-KPB3CBHE.cjs');
|
|
4
|
+
require('../../chunk-H2BWO3SI.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Avatar", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkKPB3CBHE_cjs.Avatar; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AvatarFallback", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkKPB3CBHE_cjs.AvatarFallback; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "AvatarImage", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkKPB3CBHE_cjs.AvatarImage; }
|
|
19
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Avatar as Avatar$1 } from 'radix-ui';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
6
|
+
|
|
7
|
+
type AvatarProps = Avatar$1.AvatarProps & React.RefAttributes<HTMLSpanElement> & {
|
|
8
|
+
/**
|
|
9
|
+
* Defines avatar size
|
|
10
|
+
*/
|
|
11
|
+
size?: AvatarSizeType;
|
|
12
|
+
};
|
|
13
|
+
declare function Avatar({ className, size, ref, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
declare const avatarCva: (props?: ({
|
|
16
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
18
|
+
|
|
19
|
+
type AvatarCvaProps = VariantProps<typeof avatarCva>;
|
|
20
|
+
type AvatarSizeType = NonNullable<AvatarCvaProps["size"]>;
|
|
21
|
+
|
|
22
|
+
type AvatarImageProps = React.ComponentProps<typeof Avatar$1.Image>;
|
|
23
|
+
declare function AvatarImage({ className, ref, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
type AvatarFallbackProps = React.ComponentProps<typeof Avatar$1.Fallback>;
|
|
26
|
+
declare function AvatarFallback({ className, ref, ...props }: AvatarFallbackProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSizeType };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Avatar as Avatar$1 } from 'radix-ui';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
6
|
+
|
|
7
|
+
type AvatarProps = Avatar$1.AvatarProps & React.RefAttributes<HTMLSpanElement> & {
|
|
8
|
+
/**
|
|
9
|
+
* Defines avatar size
|
|
10
|
+
*/
|
|
11
|
+
size?: AvatarSizeType;
|
|
12
|
+
};
|
|
13
|
+
declare function Avatar({ className, size, ref, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
declare const avatarCva: (props?: ({
|
|
16
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
17
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
18
|
+
|
|
19
|
+
type AvatarCvaProps = VariantProps<typeof avatarCva>;
|
|
20
|
+
type AvatarSizeType = NonNullable<AvatarCvaProps["size"]>;
|
|
21
|
+
|
|
22
|
+
type AvatarImageProps = React.ComponentProps<typeof Avatar$1.Image>;
|
|
23
|
+
declare function AvatarImage({ className, ref, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
type AvatarFallbackProps = React.ComponentProps<typeof Avatar$1.Fallback>;
|
|
26
|
+
declare function AvatarFallback({ className, ref, ...props }: AvatarFallbackProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSizeType };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
/**
|
|
8
|
+
* Defines button full width
|
|
9
|
+
*/
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Defines button color
|
|
13
|
+
*/
|
|
14
|
+
color?: ButtonColorType;
|
|
15
|
+
/**
|
|
16
|
+
* Defines button variant
|
|
17
|
+
*/
|
|
18
|
+
variant?: ButtonVariantType;
|
|
19
|
+
/**
|
|
20
|
+
* Defines button size
|
|
21
|
+
*/
|
|
22
|
+
size?: ButtonSizeType;
|
|
23
|
+
/**
|
|
24
|
+
* Defines button content
|
|
25
|
+
*/
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Disabled button
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Defines left icon
|
|
33
|
+
*/
|
|
34
|
+
startIcon?: React.ReactElement;
|
|
35
|
+
/**
|
|
36
|
+
* Defines right icon
|
|
37
|
+
*/
|
|
38
|
+
endIcon?: React.ReactElement;
|
|
39
|
+
/**
|
|
40
|
+
* Defines is button is in loading state
|
|
41
|
+
*/
|
|
42
|
+
loading?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Defines is position of loading icon
|
|
45
|
+
*/
|
|
46
|
+
loadingPosition?: "start" | "end";
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
};
|
|
49
|
+
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement> & Props;
|
|
50
|
+
declare function Button({ asChild, variant, color, disabled, fullWidth, loadingPosition, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
declare const buttonCva: (props?: ({
|
|
53
|
+
fullWidth?: boolean | null | undefined;
|
|
54
|
+
color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
|
|
55
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
|
+
variant?: "text" | "outlined" | "contained" | null | undefined;
|
|
57
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
58
|
+
|
|
59
|
+
type ButtonCvaProps = VariantProps<typeof buttonCva>;
|
|
60
|
+
type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
|
|
61
|
+
type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
|
|
62
|
+
type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
|
|
63
|
+
|
|
64
|
+
export { Button, type ButtonColorType, type ButtonProps, type ButtonSizeType, type ButtonVariantType };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
/**
|
|
8
|
+
* Defines button full width
|
|
9
|
+
*/
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Defines button color
|
|
13
|
+
*/
|
|
14
|
+
color?: ButtonColorType;
|
|
15
|
+
/**
|
|
16
|
+
* Defines button variant
|
|
17
|
+
*/
|
|
18
|
+
variant?: ButtonVariantType;
|
|
19
|
+
/**
|
|
20
|
+
* Defines button size
|
|
21
|
+
*/
|
|
22
|
+
size?: ButtonSizeType;
|
|
23
|
+
/**
|
|
24
|
+
* Defines button content
|
|
25
|
+
*/
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Disabled button
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Defines left icon
|
|
33
|
+
*/
|
|
34
|
+
startIcon?: React.ReactElement;
|
|
35
|
+
/**
|
|
36
|
+
* Defines right icon
|
|
37
|
+
*/
|
|
38
|
+
endIcon?: React.ReactElement;
|
|
39
|
+
/**
|
|
40
|
+
* Defines is button is in loading state
|
|
41
|
+
*/
|
|
42
|
+
loading?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Defines is position of loading icon
|
|
45
|
+
*/
|
|
46
|
+
loadingPosition?: "start" | "end";
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
};
|
|
49
|
+
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement> & Props;
|
|
50
|
+
declare function Button({ asChild, variant, color, disabled, fullWidth, loadingPosition, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
51
|
+
|
|
52
|
+
declare const buttonCva: (props?: ({
|
|
53
|
+
fullWidth?: boolean | null | undefined;
|
|
54
|
+
color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
|
|
55
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
56
|
+
variant?: "text" | "outlined" | "contained" | null | undefined;
|
|
57
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
58
|
+
|
|
59
|
+
type ButtonCvaProps = VariantProps<typeof buttonCva>;
|
|
60
|
+
type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
|
|
61
|
+
type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
|
|
62
|
+
type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
|
|
63
|
+
|
|
64
|
+
export { Button, type ButtonColorType, type ButtonProps, type ButtonSizeType, type ButtonVariantType };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkLI7IHIOM_cjs = require('../../chunk-LI7IHIOM.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Card", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkLI7IHIOM_cjs.Card; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "CardContent", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkLI7IHIOM_cjs.CardContent; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "CardDescription", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkLI7IHIOM_cjs.CardDescription; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "CardFooter", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkLI7IHIOM_cjs.CardFooter; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "CardHeader", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkLI7IHIOM_cjs.CardHeader; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "CardTitle", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkLI7IHIOM_cjs.CardTitle; }
|
|
30
|
+
});
|