@szum-tech/design-system 3.2.0 → 3.3.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-ZV4467OW.cjs → chunk-224ORC5K.cjs} +36 -6
- package/dist/{chunk-3KMXFN6M.cjs → chunk-3DUJHGXE.cjs} +6 -6
- package/dist/{chunk-DP7UEOTA.js → chunk-5FG5NOMF.js} +33 -7
- package/dist/{chunk-2Y7LMI52.js → chunk-6U4URFAI.js} +4 -4
- package/dist/{chunk-QUS6ZDMH.cjs → chunk-H3CLI4CJ.cjs} +4 -4
- package/dist/chunk-NT3AA6QQ.cjs +29 -0
- package/dist/chunk-PAHTQUQC.js +27 -0
- package/dist/{chunk-WJSS32MY.js → chunk-XV3AQ6NS.js} +6 -6
- package/dist/components/badge/index.cjs +2 -2
- package/dist/components/badge/index.d.cts +10 -23
- package/dist/components/badge/index.d.ts +10 -23
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.cjs +9 -9
- package/dist/components/button/index.d.cts +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +8 -8
- package/dist/components/field/index.cjs +12 -12
- package/dist/components/field/index.js +2 -2
- package/dist/components/index.cjs +101 -93
- package/dist/components/index.d.cts +7 -5
- package/dist/components/index.d.ts +7 -5
- package/dist/components/index.js +8 -8
- package/dist/components/item/index.cjs +11 -11
- package/dist/components/item/index.js +1 -1
- package/dist/components/stepper/index.cjs +27 -27
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/toaster/index.cjs +35 -0
- package/dist/components/toaster/index.d.cts +8 -0
- package/dist/components/toaster/index.d.ts +8 -0
- package/dist/components/toaster/index.js +22 -0
- package/package.json +17 -9
- package/dist/chunk-7V34QHYR.js +0 -111
- package/dist/chunk-NHFHKMX2.cjs +0 -113
|
@@ -8,6 +8,8 @@ var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
|
8
8
|
var React5 = require('react');
|
|
9
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
|
+
var lucideReact = require('lucide-react');
|
|
12
|
+
var sonner = require('sonner');
|
|
11
13
|
var classVarianceAuthority = require('class-variance-authority');
|
|
12
14
|
|
|
13
15
|
function _interopNamespace(e) {
|
|
@@ -899,27 +901,50 @@ function StepperPrevTrigger({ asChild = false, disabled, onClick, ...props }) {
|
|
|
899
901
|
}
|
|
900
902
|
);
|
|
901
903
|
}
|
|
904
|
+
var Toaster = ({ theme = "system", ...props }) => {
|
|
905
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
906
|
+
sonner.Toaster,
|
|
907
|
+
{
|
|
908
|
+
className: "group",
|
|
909
|
+
icons: {
|
|
910
|
+
success: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleCheckIcon, { className: "size-4" }),
|
|
911
|
+
info: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.InfoIcon, { className: "size-4" }),
|
|
912
|
+
warning: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.TriangleAlertIcon, { className: "size-4" }),
|
|
913
|
+
error: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.OctagonXIcon, { className: "size-4" }),
|
|
914
|
+
loading: /* @__PURE__ */ jsxRuntime.jsx(chunk3WSQRFUY_cjs.Spinner, {})
|
|
915
|
+
},
|
|
916
|
+
toastOptions: {
|
|
917
|
+
classNames: {
|
|
918
|
+
toast: "!bg-popover !text-popover-foreground !border !border-border !rounded",
|
|
919
|
+
description: "!text-muted-foreground"
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
theme,
|
|
923
|
+
...props
|
|
924
|
+
}
|
|
925
|
+
);
|
|
926
|
+
};
|
|
902
927
|
var buttonVariants = classVarianceAuthority.cva(
|
|
903
928
|
[
|
|
904
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium transition-all
|
|
929
|
+
"inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium outline-none transition-all",
|
|
905
930
|
"disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50",
|
|
906
|
-
"[&_svg
|
|
907
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring
|
|
931
|
+
"[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
932
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring",
|
|
908
933
|
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error"
|
|
909
934
|
],
|
|
910
935
|
{
|
|
911
936
|
variants: {
|
|
912
937
|
variant: {
|
|
913
938
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
914
|
-
error: "bg-error
|
|
915
|
-
outline: "
|
|
939
|
+
error: "bg-error hover:bg-error/90 focus-visible:ring-error/20 dark:focus-visible:ring-error/40 dark:bg-error/60 text-white",
|
|
940
|
+
outline: "bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",
|
|
916
941
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
917
942
|
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
918
943
|
link: "text-primary underline-offset-4 hover:underline"
|
|
919
944
|
},
|
|
920
945
|
size: {
|
|
921
946
|
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
922
|
-
sm: "h-8
|
|
947
|
+
sm: "h-8 gap-1.5 rounded px-3 has-[>svg]:px-2.5",
|
|
923
948
|
lg: "h-10 rounded px-6 has-[>svg]:px-4",
|
|
924
949
|
icon: "size-9",
|
|
925
950
|
"icon-sm": "size-8",
|
|
@@ -1012,6 +1037,10 @@ function ButtonContent({
|
|
|
1012
1037
|
] });
|
|
1013
1038
|
}
|
|
1014
1039
|
|
|
1040
|
+
Object.defineProperty(exports, "toast", {
|
|
1041
|
+
enumerable: true,
|
|
1042
|
+
get: function () { return sonner.toast; }
|
|
1043
|
+
});
|
|
1015
1044
|
exports.Button = Button;
|
|
1016
1045
|
exports.Stepper = Stepper;
|
|
1017
1046
|
exports.StepperActivationMode = StepperActivationMode;
|
|
@@ -1029,6 +1058,7 @@ exports.StepperPanel = StepperPanel;
|
|
|
1029
1058
|
exports.StepperPrevTrigger = StepperPrevTrigger;
|
|
1030
1059
|
exports.StepperTitle = StepperTitle;
|
|
1031
1060
|
exports.StepperTrigger = StepperTrigger;
|
|
1061
|
+
exports.Toaster = Toaster;
|
|
1032
1062
|
exports.useStepperContext = useStepperContext;
|
|
1033
1063
|
exports.useStepperFocusContext = useStepperFocusContext;
|
|
1034
1064
|
exports.useStepperItemContext = useStepperItemContext;
|
|
@@ -7,7 +7,7 @@ var classVarianceAuthority = require('class-variance-authority');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
var itemVariants = classVarianceAuthority.cva(
|
|
10
|
-
"group/item
|
|
10
|
+
"group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
@@ -16,8 +16,8 @@ var itemVariants = classVarianceAuthority.cva(
|
|
|
16
16
|
muted: "bg-muted/50"
|
|
17
17
|
},
|
|
18
18
|
size: {
|
|
19
|
-
default: "
|
|
20
|
-
sm: "
|
|
19
|
+
default: "gap-4 p-4 ",
|
|
20
|
+
sm: "gap-2.5 px-4 py-3"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
defaultVariants: {
|
|
@@ -40,13 +40,13 @@ function Item({ className, variant = "default", size = "default", asChild = fals
|
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
var itemMediaVariants = classVarianceAuthority.cva(
|
|
43
|
-
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:
|
|
43
|
+
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
44
44
|
{
|
|
45
45
|
variants: {
|
|
46
46
|
variant: {
|
|
47
47
|
default: "bg-transparent",
|
|
48
|
-
icon: "
|
|
49
|
-
image: "size-10 rounded-sm
|
|
48
|
+
icon: "border-border bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
|
|
49
|
+
image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
defaultVariants: {
|
|
@@ -6,6 +6,9 @@ import { cn } from './chunk-ZD2QRAOX.js';
|
|
|
6
6
|
import * as React5 from 'react';
|
|
7
7
|
import { Slot } from '@radix-ui/react-slot';
|
|
8
8
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
import { OctagonXIcon, TriangleAlertIcon, InfoIcon, CircleCheckIcon } from 'lucide-react';
|
|
10
|
+
import { Toaster as Toaster$1 } from 'sonner';
|
|
11
|
+
export { toast } from 'sonner';
|
|
9
12
|
import { cva } from 'class-variance-authority';
|
|
10
13
|
|
|
11
14
|
// src/components/stepper/stepper.constants.ts
|
|
@@ -877,27 +880,50 @@ function StepperPrevTrigger({ asChild = false, disabled, onClick, ...props }) {
|
|
|
877
880
|
}
|
|
878
881
|
);
|
|
879
882
|
}
|
|
883
|
+
var Toaster = ({ theme = "system", ...props }) => {
|
|
884
|
+
return /* @__PURE__ */ jsx(
|
|
885
|
+
Toaster$1,
|
|
886
|
+
{
|
|
887
|
+
className: "group",
|
|
888
|
+
icons: {
|
|
889
|
+
success: /* @__PURE__ */ jsx(CircleCheckIcon, { className: "size-4" }),
|
|
890
|
+
info: /* @__PURE__ */ jsx(InfoIcon, { className: "size-4" }),
|
|
891
|
+
warning: /* @__PURE__ */ jsx(TriangleAlertIcon, { className: "size-4" }),
|
|
892
|
+
error: /* @__PURE__ */ jsx(OctagonXIcon, { className: "size-4" }),
|
|
893
|
+
loading: /* @__PURE__ */ jsx(Spinner, {})
|
|
894
|
+
},
|
|
895
|
+
toastOptions: {
|
|
896
|
+
classNames: {
|
|
897
|
+
toast: "!bg-popover !text-popover-foreground !border !border-border !rounded",
|
|
898
|
+
description: "!text-muted-foreground"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
theme,
|
|
902
|
+
...props
|
|
903
|
+
}
|
|
904
|
+
);
|
|
905
|
+
};
|
|
880
906
|
var buttonVariants = cva(
|
|
881
907
|
[
|
|
882
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium transition-all
|
|
908
|
+
"inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded text-sm font-medium outline-none transition-all",
|
|
883
909
|
"disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50",
|
|
884
|
-
"[&_svg
|
|
885
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring
|
|
910
|
+
"[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
911
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring",
|
|
886
912
|
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error"
|
|
887
913
|
],
|
|
888
914
|
{
|
|
889
915
|
variants: {
|
|
890
916
|
variant: {
|
|
891
917
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
892
|
-
error: "bg-error
|
|
893
|
-
outline: "
|
|
918
|
+
error: "bg-error hover:bg-error/90 focus-visible:ring-error/20 dark:focus-visible:ring-error/40 dark:bg-error/60 text-white",
|
|
919
|
+
outline: "bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",
|
|
894
920
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
895
921
|
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
896
922
|
link: "text-primary underline-offset-4 hover:underline"
|
|
897
923
|
},
|
|
898
924
|
size: {
|
|
899
925
|
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
900
|
-
sm: "h-8
|
|
926
|
+
sm: "h-8 gap-1.5 rounded px-3 has-[>svg]:px-2.5",
|
|
901
927
|
lg: "h-10 rounded px-6 has-[>svg]:px-4",
|
|
902
928
|
icon: "size-9",
|
|
903
929
|
"icon-sm": "size-8",
|
|
@@ -990,4 +1016,4 @@ function ButtonContent({
|
|
|
990
1016
|
] });
|
|
991
1017
|
}
|
|
992
1018
|
|
|
993
|
-
export { Button, Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext };
|
|
1019
|
+
export { Button, Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, Toaster, useStepperContext, useStepperFocusContext, useStepperItemContext };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Separator } from './chunk-XJIUGEPN.js';
|
|
2
1
|
import { Label } from './chunk-I3RSTJP6.js';
|
|
2
|
+
import { Separator } from './chunk-XJIUGEPN.js';
|
|
3
3
|
import { cn } from './chunk-ZD2QRAOX.js';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
|
|
8
|
-
var fieldVariants = cva("group/field
|
|
8
|
+
var fieldVariants = cva("group/field data-[invalid=true]:text-error flex w-full gap-3", {
|
|
9
9
|
variants: {
|
|
10
10
|
orientation: {
|
|
11
11
|
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
12
12
|
horizontal: [
|
|
13
13
|
"flex-row items-center",
|
|
14
14
|
"[&>[data-slot=field-label]]:flex-auto",
|
|
15
|
-
"has-[>[data-slot=field-content]]:
|
|
15
|
+
"has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"
|
|
16
16
|
],
|
|
17
17
|
responsive: [
|
|
18
|
-
"
|
|
18
|
+
"@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto",
|
|
19
19
|
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
20
20
|
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
21
21
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkUIOBJSKZ_cjs = require('./chunk-UIOBJSKZ.cjs');
|
|
4
3
|
var chunkS3ANEJJ7_cjs = require('./chunk-S3ANEJJ7.cjs');
|
|
4
|
+
var chunkUIOBJSKZ_cjs = require('./chunk-UIOBJSKZ.cjs');
|
|
5
5
|
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -27,17 +27,17 @@ function _interopNamespace(e) {
|
|
|
27
27
|
|
|
28
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
29
|
|
|
30
|
-
var fieldVariants = classVarianceAuthority.cva("group/field
|
|
30
|
+
var fieldVariants = classVarianceAuthority.cva("group/field data-[invalid=true]:text-error flex w-full gap-3", {
|
|
31
31
|
variants: {
|
|
32
32
|
orientation: {
|
|
33
33
|
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
34
34
|
horizontal: [
|
|
35
35
|
"flex-row items-center",
|
|
36
36
|
"[&>[data-slot=field-label]]:flex-auto",
|
|
37
|
-
"has-[>[data-slot=field-content]]:
|
|
37
|
+
"has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"
|
|
38
38
|
],
|
|
39
39
|
responsive: [
|
|
40
|
-
"
|
|
40
|
+
"@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto",
|
|
41
41
|
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
42
42
|
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
43
43
|
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
5
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
var badgeVariants = classVarianceAuthority.cva(
|
|
9
|
+
"border-border focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
|
|
15
|
+
error: "bg-error [a&]:hover:bg-error/90 focus-visible:ring-error/20 dark:focus-visible:ring-error/40 dark:bg-error/60 text-error-foreground border-transparent",
|
|
16
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
25
|
+
const Comp = asChild ? reactSlot.Slot : "span";
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { "data-slot": "badge", className: chunkH2BWO3SI_cjs.cn(badgeVariants({ variant }), className), ...props });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
exports.Badge = Badge;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var badgeVariants = cva(
|
|
7
|
+
"border-border focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
|
|
12
|
+
secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
|
|
13
|
+
error: "bg-error [a&]:hover:bg-error/90 focus-visible:ring-error/20 dark:focus-visible:ring-error/40 dark:bg-error/60 text-error-foreground border-transparent",
|
|
14
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "default"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
23
|
+
const Comp = asChild ? Slot : "span";
|
|
24
|
+
return /* @__PURE__ */ jsx(Comp, { "data-slot": "badge", className: cn(badgeVariants({ variant }), className), ...props });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { Badge };
|
|
@@ -5,7 +5,7 @@ import { cva } from 'class-variance-authority';
|
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var itemVariants = cva(
|
|
8
|
-
"group/item
|
|
8
|
+
"group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -14,8 +14,8 @@ var itemVariants = cva(
|
|
|
14
14
|
muted: "bg-muted/50"
|
|
15
15
|
},
|
|
16
16
|
size: {
|
|
17
|
-
default: "
|
|
18
|
-
sm: "
|
|
17
|
+
default: "gap-4 p-4 ",
|
|
18
|
+
sm: "gap-2.5 px-4 py-3"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
defaultVariants: {
|
|
@@ -38,13 +38,13 @@ function Item({ className, variant = "default", size = "default", asChild = fals
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
var itemMediaVariants = cva(
|
|
41
|
-
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:
|
|
41
|
+
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
variant: {
|
|
45
45
|
default: "bg-transparent",
|
|
46
|
-
icon: "
|
|
47
|
-
image: "size-10 rounded-sm
|
|
46
|
+
icon: "border-border bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",
|
|
47
|
+
image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
defaultVariants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNT3AA6QQ_cjs = require('../../chunk-NT3AA6QQ.cjs');
|
|
4
4
|
require('../../chunk-H2BWO3SI.cjs');
|
|
5
5
|
require('../../chunk-3376ZTRC.cjs');
|
|
6
6
|
|
|
@@ -8,5 +8,5 @@ require('../../chunk-3376ZTRC.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "Badge", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkNT3AA6QQ_cjs.Badge; }
|
|
12
12
|
});
|
|
@@ -3,30 +3,17 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
|
|
6
|
+
declare const badgeVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "secondary" | "error" | "outline" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
|
|
10
|
+
type BadgeVariantsProps = VariantProps<typeof badgeVariants>;
|
|
11
|
+
type BadgeVariant = NonNullable<BadgeVariantsProps["variant"]>;
|
|
12
|
+
|
|
6
13
|
type BadgeProps = React.ComponentProps<"span"> & {
|
|
7
|
-
|
|
8
|
-
* Defines badge color
|
|
9
|
-
*/
|
|
10
|
-
color?: BadgeColorType;
|
|
11
|
-
/**
|
|
12
|
-
* Defines badge variant
|
|
13
|
-
*/
|
|
14
|
-
variant?: BadgeVariantType;
|
|
15
|
-
/**
|
|
16
|
-
* Defines badge content
|
|
17
|
-
*/
|
|
18
|
-
children?: React.ReactNode;
|
|
14
|
+
variant?: BadgeVariant;
|
|
19
15
|
asChild?: boolean;
|
|
20
16
|
};
|
|
21
|
-
declare function Badge({
|
|
22
|
-
|
|
23
|
-
declare const badgeCva: (props?: ({
|
|
24
|
-
color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
|
|
25
|
-
variant?: "contained" | "outlined" | null | undefined;
|
|
26
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
27
|
-
|
|
28
|
-
type BadgeCvaProps = VariantProps<typeof badgeCva>;
|
|
29
|
-
type BadgeColorType = NonNullable<BadgeCvaProps["color"]>;
|
|
30
|
-
type BadgeVariantType = NonNullable<BadgeCvaProps["variant"]>;
|
|
17
|
+
declare function Badge({ className, variant, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
31
18
|
|
|
32
|
-
export { Badge, type
|
|
19
|
+
export { Badge, type BadgeProps, type BadgeVariant };
|
|
@@ -3,30 +3,17 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
|
|
6
|
+
declare const badgeVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "secondary" | "error" | "outline" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
|
|
10
|
+
type BadgeVariantsProps = VariantProps<typeof badgeVariants>;
|
|
11
|
+
type BadgeVariant = NonNullable<BadgeVariantsProps["variant"]>;
|
|
12
|
+
|
|
6
13
|
type BadgeProps = React.ComponentProps<"span"> & {
|
|
7
|
-
|
|
8
|
-
* Defines badge color
|
|
9
|
-
*/
|
|
10
|
-
color?: BadgeColorType;
|
|
11
|
-
/**
|
|
12
|
-
* Defines badge variant
|
|
13
|
-
*/
|
|
14
|
-
variant?: BadgeVariantType;
|
|
15
|
-
/**
|
|
16
|
-
* Defines badge content
|
|
17
|
-
*/
|
|
18
|
-
children?: React.ReactNode;
|
|
14
|
+
variant?: BadgeVariant;
|
|
19
15
|
asChild?: boolean;
|
|
20
16
|
};
|
|
21
|
-
declare function Badge({
|
|
22
|
-
|
|
23
|
-
declare const badgeCva: (props?: ({
|
|
24
|
-
color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
|
|
25
|
-
variant?: "contained" | "outlined" | null | undefined;
|
|
26
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
27
|
-
|
|
28
|
-
type BadgeCvaProps = VariantProps<typeof badgeCva>;
|
|
29
|
-
type BadgeColorType = NonNullable<BadgeCvaProps["color"]>;
|
|
30
|
-
type BadgeVariantType = NonNullable<BadgeCvaProps["variant"]>;
|
|
17
|
+
declare function Badge({ className, variant, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
31
18
|
|
|
32
|
-
export { Badge, type
|
|
19
|
+
export { Badge, type BadgeProps, type BadgeVariant };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunk224ORC5K_cjs = require('../../chunk-224ORC5K.cjs');
|
|
4
|
+
require('../../chunk-GR37JJQK.cjs');
|
|
5
5
|
require('../../chunk-Y6EVJSAH.cjs');
|
|
6
6
|
require('../../chunk-GHV2TURY.cjs');
|
|
7
7
|
require('../../chunk-3WSQRFUY.cjs');
|
|
8
8
|
require('../../chunk-NU5UQPBX.cjs');
|
|
9
|
-
require('../../chunk-GR37JJQK.cjs');
|
|
10
9
|
require('../../chunk-2Y2ZCPNV.cjs');
|
|
11
10
|
require('../../chunk-HCHVDUI6.cjs');
|
|
12
11
|
require('../../chunk-PH4LO5TE.cjs');
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-H3CLI4CJ.cjs');
|
|
13
|
+
require('../../chunk-S3ANEJJ7.cjs');
|
|
15
14
|
require('../../chunk-YWG7TML6.cjs');
|
|
16
15
|
require('../../chunk-5AA4IE2T.cjs');
|
|
17
|
-
require('../../chunk-
|
|
16
|
+
require('../../chunk-3DUJHGXE.cjs');
|
|
17
|
+
require('../../chunk-UIOBJSKZ.cjs');
|
|
18
18
|
require('../../chunk-EW6TE3N5.cjs');
|
|
19
19
|
require('../../chunk-7EYMOUWG.cjs');
|
|
20
|
-
require('../../chunk-I7AV5IQO.cjs');
|
|
21
|
-
require('../../chunk-NHFHKMX2.cjs');
|
|
22
20
|
require('../../chunk-TMXVL5CV.cjs');
|
|
21
|
+
require('../../chunk-I7AV5IQO.cjs');
|
|
22
|
+
require('../../chunk-NT3AA6QQ.cjs');
|
|
23
23
|
require('../../chunk-H2BWO3SI.cjs');
|
|
24
24
|
require('../../chunk-3376ZTRC.cjs');
|
|
25
25
|
|
|
@@ -27,5 +27,5 @@ require('../../chunk-3376ZTRC.cjs');
|
|
|
27
27
|
|
|
28
28
|
Object.defineProperty(exports, "Button", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk224ORC5K_cjs.Button; }
|
|
31
31
|
});
|
|
@@ -45,7 +45,7 @@ type ButtonProps = React.ComponentProps<"button"> & {
|
|
|
45
45
|
declare function Button({ asChild, variant, disabled, fullWidth, loadingPosition: loadingPositionProp, children, type, loading, size, endIcon, startIcon, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
46
46
|
|
|
47
47
|
declare const buttonVariants: (props?: ({
|
|
48
|
-
variant?: "link" | "
|
|
48
|
+
variant?: "link" | "default" | "secondary" | "error" | "outline" | "ghost" | null | undefined;
|
|
49
49
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
50
50
|
fullWidth?: boolean | null | undefined;
|
|
51
51
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -45,7 +45,7 @@ type ButtonProps = React.ComponentProps<"button"> & {
|
|
|
45
45
|
declare function Button({ asChild, variant, disabled, fullWidth, loadingPosition: loadingPositionProp, children, type, loading, size, endIcon, startIcon, className, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
46
46
|
|
|
47
47
|
declare const buttonVariants: (props?: ({
|
|
48
|
-
variant?: "link" | "
|
|
48
|
+
variant?: "link" | "default" | "secondary" | "error" | "outline" | "ghost" | null | undefined;
|
|
49
49
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
50
50
|
fullWidth?: boolean | null | undefined;
|
|
51
51
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { Button } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Button } from '../../chunk-5FG5NOMF.js';
|
|
2
|
+
import '../../chunk-HJJPEVIH.js';
|
|
3
3
|
import '../../chunk-U4AWAABZ.js';
|
|
4
4
|
import '../../chunk-DTSFPOLX.js';
|
|
5
5
|
import '../../chunk-P5IUC7HJ.js';
|
|
6
6
|
import '../../chunk-OQCNPNPS.js';
|
|
7
|
-
import '../../chunk-HJJPEVIH.js';
|
|
8
7
|
import '../../chunk-6BSR3O2J.js';
|
|
9
8
|
import '../../chunk-5F2Y65JH.js';
|
|
10
9
|
import '../../chunk-AGVEKVWD.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-6U4URFAI.js';
|
|
11
|
+
import '../../chunk-I3RSTJP6.js';
|
|
13
12
|
import '../../chunk-UW6GOD7J.js';
|
|
14
13
|
import '../../chunk-UGSNASZM.js';
|
|
15
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-XV3AQ6NS.js';
|
|
15
|
+
import '../../chunk-XJIUGEPN.js';
|
|
16
16
|
import '../../chunk-H5O5L6XT.js';
|
|
17
17
|
import '../../chunk-DFD2WUOU.js';
|
|
18
|
-
import '../../chunk-NGVFYKAT.js';
|
|
19
|
-
import '../../chunk-7V34QHYR.js';
|
|
20
18
|
import '../../chunk-5MJPZUTO.js';
|
|
19
|
+
import '../../chunk-NGVFYKAT.js';
|
|
20
|
+
import '../../chunk-PAHTQUQC.js';
|
|
21
21
|
import '../../chunk-ZD2QRAOX.js';
|
|
22
22
|
import '../../chunk-BYXBJQAS.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-UIOBJSKZ.cjs');
|
|
3
|
+
var chunkH3CLI4CJ_cjs = require('../../chunk-H3CLI4CJ.cjs');
|
|
5
4
|
require('../../chunk-S3ANEJJ7.cjs');
|
|
5
|
+
require('../../chunk-UIOBJSKZ.cjs');
|
|
6
6
|
require('../../chunk-H2BWO3SI.cjs');
|
|
7
7
|
require('../../chunk-3376ZTRC.cjs');
|
|
8
8
|
|
|
@@ -10,41 +10,41 @@ require('../../chunk-3376ZTRC.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "Field", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkH3CLI4CJ_cjs.Field; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FieldContent", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldContent; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FieldDescription", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldDescription; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FieldError", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldError; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FieldGroup", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldGroup; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FieldLabel", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldLabel; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "FieldLegend", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldLegend; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "FieldSeparator", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldSeparator; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "FieldSet", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldSet; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FieldTitle", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkH3CLI4CJ_cjs.FieldTitle; }
|
|
50
50
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from '../../chunk-
|
|
2
|
-
import '../../chunk-XJIUGEPN.js';
|
|
1
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from '../../chunk-6U4URFAI.js';
|
|
3
2
|
import '../../chunk-I3RSTJP6.js';
|
|
3
|
+
import '../../chunk-XJIUGEPN.js';
|
|
4
4
|
import '../../chunk-ZD2QRAOX.js';
|
|
5
5
|
import '../../chunk-BYXBJQAS.js';
|