@szum-tech/design-system 3.17.0 → 3.18.2
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-D5PAWOAZ.cjs +1 -0
- package/dist/chunk-JUNHRB4B.js +1 -0
- package/dist/chunk-P7BFOJLM.cjs +3 -0
- package/dist/chunk-ZYG2KYKK.js +3 -0
- package/dist/components/index.cjs +1 -924
- package/dist/components/index.d.cts +1650 -56
- package/dist/components/index.d.ts +1650 -56
- package/dist/components/index.js +1 -43
- package/dist/hooks/index.cjs +1 -35
- package/dist/hooks/index.js +1 -2
- package/dist/icons/index.cjs +2 -93
- package/dist/icons/index.js +2 -88
- package/dist/utils/index.cjs +1 -10
- package/dist/utils/index.js +1 -1
- package/package.json +30 -38
- package/dist/chunk-2WQJ36RD.cjs +0 -78
- package/dist/chunk-2Y2ZCPNV.cjs +0 -61
- package/dist/chunk-35H6T7OQ.cjs +0 -2912
- package/dist/chunk-375QAB65.cjs +0 -145
- package/dist/chunk-3DP3VMPN.js +0 -173
- package/dist/chunk-3GNVQFCK.cjs +0 -50
- package/dist/chunk-3RK5PCIC.js +0 -86
- package/dist/chunk-3WSQRFUY.cjs +0 -11
- package/dist/chunk-4LNGZHF2.cjs +0 -33
- package/dist/chunk-4TRADSTP.js +0 -34
- package/dist/chunk-5B37TQYT.cjs +0 -18
- package/dist/chunk-5F2Y65JH.js +0 -32
- package/dist/chunk-5MJPZUTO.js +0 -38
- package/dist/chunk-5MV54MWS.js +0 -46
- package/dist/chunk-6BSR3O2J.js +0 -53
- package/dist/chunk-6HX7ETL3.cjs +0 -183
- package/dist/chunk-7OD2NBSV.cjs +0 -50
- package/dist/chunk-A72LE53B.js +0 -21
- package/dist/chunk-A7SBXO2Y.cjs +0 -40
- package/dist/chunk-AAPMLWYK.js +0 -2831
- package/dist/chunk-B4M7Q5KX.cjs +0 -25
- package/dist/chunk-B7RHEMZH.js +0 -48
- package/dist/chunk-BTSHACKG.js +0 -123
- package/dist/chunk-BUJO4FB6.js +0 -252
- package/dist/chunk-CL2C6STG.cjs +0 -278
- package/dist/chunk-CXHDWIGF.cjs +0 -89
- package/dist/chunk-DGWBE2Y3.cjs +0 -205
- package/dist/chunk-DUAM4RTP.cjs +0 -23
- package/dist/chunk-EOTQVIA5.js +0 -993
- package/dist/chunk-EUH466AL.cjs +0 -179
- package/dist/chunk-F7NFSDOD.cjs +0 -91
- package/dist/chunk-G24PWQKG.js +0 -20
- package/dist/chunk-GEDBA3JU.cjs +0 -49
- package/dist/chunk-GYXQUTWZ.cjs +0 -59
- package/dist/chunk-H2BWO3SI.cjs +0 -11
- package/dist/chunk-H5NHGMSQ.js +0 -136
- package/dist/chunk-HCHVDUI6.cjs +0 -34
- package/dist/chunk-HNRVLRMN.js +0 -82
- package/dist/chunk-HPICKLBZ.cjs +0 -204
- package/dist/chunk-I3E75OQX.js +0 -16
- package/dist/chunk-I3RSTJP6.js +0 -20
- package/dist/chunk-IWF52DDE.js +0 -55
- package/dist/chunk-IZU3KULT.js +0 -41
- package/dist/chunk-K5AURCK5.js +0 -183
- package/dist/chunk-KTAIBRTH.cjs +0 -10
- package/dist/chunk-L2TRMQNN.js +0 -130
- package/dist/chunk-M7NIRB3U.js +0 -43
- package/dist/chunk-MNDQXDV4.cjs +0 -607
- package/dist/chunk-N4TYSZSU.cjs +0 -44
- package/dist/chunk-NU5UQPBX.cjs +0 -25
- package/dist/chunk-NXEZE7LG.js +0 -15
- package/dist/chunk-OCOCENE6.js +0 -42
- package/dist/chunk-OQCNPNPS.js +0 -23
- package/dist/chunk-OXZQGDTR.js +0 -208
- package/dist/chunk-OZSNSRLV.cjs +0 -1027
- package/dist/chunk-P4IL77YC.js +0 -66
- package/dist/chunk-P4JIMFSL.js +0 -51
- package/dist/chunk-P5IUC7HJ.js +0 -9
- package/dist/chunk-PBEZZMAB.js +0 -25
- package/dist/chunk-RKFU4DS3.cjs +0 -1064
- package/dist/chunk-S3ANEJJ7.cjs +0 -22
- package/dist/chunk-S3ZUFD6U.js +0 -23
- package/dist/chunk-SHPJGB2L.cjs +0 -19
- package/dist/chunk-TH44JYXB.cjs +0 -27
- package/dist/chunk-TMXVL5CV.cjs +0 -48
- package/dist/chunk-U3QKV7I4.js +0 -54
- package/dist/chunk-U7XZJQ4O.js +0 -36
- package/dist/chunk-UJX74PFK.cjs +0 -46
- package/dist/chunk-ULEEQ723.cjs +0 -108
- package/dist/chunk-UNOMGKAZ.cjs +0 -141
- package/dist/chunk-USIW3VT5.cjs +0 -73
- package/dist/chunk-VK2FJ65F.js +0 -575
- package/dist/chunk-VK5EX3OG.cjs +0 -132
- package/dist/chunk-WCQ5WKCQ.js +0 -1042
- package/dist/chunk-WMGJCB7O.js +0 -157
- package/dist/chunk-X3ZT3KGX.cjs +0 -53
- package/dist/chunk-X5O7GP4S.js +0 -48
- package/dist/chunk-X7WREEFD.js +0 -8
- package/dist/chunk-XENOUBSI.cjs +0 -37
- package/dist/chunk-XKCLVPUC.js +0 -176
- package/dist/chunk-XTKD76O5.js +0 -29
- package/dist/chunk-YBFG2IRJ.cjs +0 -225
- package/dist/chunk-YEFLGE3L.cjs +0 -47
- package/dist/chunk-YUMKV5TH.js +0 -56
- package/dist/chunk-ZD2QRAOX.js +0 -9
- package/dist/chunk-ZVF7J4EI.cjs +0 -58
- package/dist/color-picker.types-GI7dq2Ig.d.cts +0 -42
- package/dist/color-picker.types-GI7dq2Ig.d.ts +0 -42
- package/dist/components/accordion/index.cjs +0 -23
- package/dist/components/accordion/index.d.cts +0 -17
- package/dist/components/accordion/index.d.ts +0 -17
- package/dist/components/accordion/index.js +0 -2
- package/dist/components/alert/index.cjs +0 -19
- package/dist/components/alert/index.d.cts +0 -24
- package/dist/components/alert/index.d.ts +0 -24
- package/dist/components/alert/index.js +0 -2
- package/dist/components/alert-dialog/index.cjs +0 -43
- package/dist/components/alert-dialog/index.d.cts +0 -32
- package/dist/components/alert-dialog/index.d.ts +0 -32
- package/dist/components/alert-dialog/index.js +0 -2
- package/dist/components/avatar/index.cjs +0 -19
- package/dist/components/avatar/index.d.cts +0 -14
- package/dist/components/avatar/index.d.ts +0 -14
- package/dist/components/avatar/index.js +0 -2
- package/dist/components/badge/index.cjs +0 -19
- package/dist/components/badge/index.d.cts +0 -28
- package/dist/components/badge/index.d.ts +0 -28
- package/dist/components/badge/index.js +0 -2
- package/dist/components/badge-overflow/index.cjs +0 -183
- package/dist/components/badge-overflow/index.d.cts +0 -21
- package/dist/components/badge-overflow/index.d.ts +0 -21
- package/dist/components/badge-overflow/index.js +0 -161
- package/dist/components/breadcrump/index.cjs +0 -80
- package/dist/components/breadcrump/index.d.cts +0 -21
- package/dist/components/breadcrump/index.d.ts +0 -21
- package/dist/components/breadcrump/index.js +0 -72
- package/dist/components/button/index.cjs +0 -52
- package/dist/components/button/index.d.cts +0 -58
- package/dist/components/button/index.d.ts +0 -58
- package/dist/components/button/index.js +0 -43
- package/dist/components/card/index.cjs +0 -35
- package/dist/components/card/index.d.cts +0 -25
- package/dist/components/card/index.d.ts +0 -25
- package/dist/components/card/index.js +0 -2
- package/dist/components/carousel/index.cjs +0 -269
- package/dist/components/carousel/index.d.cts +0 -48
- package/dist/components/carousel/index.d.ts +0 -48
- package/dist/components/carousel/index.js +0 -238
- package/dist/components/checkbox/index.cjs +0 -11
- package/dist/components/checkbox/index.d.cts +0 -8
- package/dist/components/checkbox/index.d.ts +0 -8
- package/dist/components/checkbox/index.js +0 -2
- package/dist/components/collapsible/index.cjs +0 -18
- package/dist/components/collapsible/index.d.cts +0 -12
- package/dist/components/collapsible/index.d.ts +0 -12
- package/dist/components/collapsible/index.js +0 -1
- package/dist/components/color-picker/index.cjs +0 -92
- package/dist/components/color-picker/index.d.cts +0 -71
- package/dist/components/color-picker/index.d.ts +0 -71
- package/dist/components/color-picker/index.js +0 -43
- package/dist/components/color-swatch/index.cjs +0 -11
- package/dist/components/color-swatch/index.d.cts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -22
- package/dist/components/color-swatch/index.js +0 -2
- package/dist/components/counting-number/index.cjs +0 -11
- package/dist/components/counting-number/index.d.cts +0 -57
- package/dist/components/counting-number/index.d.ts +0 -57
- package/dist/components/counting-number/index.js +0 -2
- package/dist/components/dialog/index.cjs +0 -39
- package/dist/components/dialog/index.d.cts +0 -42
- package/dist/components/dialog/index.d.ts +0 -42
- package/dist/components/dialog/index.js +0 -2
- package/dist/components/dropdown-menu/index.cjs +0 -71
- package/dist/components/dropdown-menu/index.d.cts +0 -67
- package/dist/components/dropdown-menu/index.d.ts +0 -67
- package/dist/components/dropdown-menu/index.js +0 -2
- package/dist/components/empty/index.cjs +0 -31
- package/dist/components/empty/index.d.cts +0 -29
- package/dist/components/empty/index.d.ts +0 -29
- package/dist/components/empty/index.js +0 -2
- package/dist/components/field/index.cjs +0 -49
- package/dist/components/field/index.d.cts +0 -50
- package/dist/components/field/index.d.ts +0 -50
- package/dist/components/field/index.js +0 -4
- package/dist/components/file-upload/index.cjs +0 -60
- package/dist/components/file-upload/index.d.cts +0 -131
- package/dist/components/file-upload/index.d.ts +0 -131
- package/dist/components/file-upload/index.js +0 -3
- package/dist/components/header/index.cjs +0 -11
- package/dist/components/header/index.d.cts +0 -18
- package/dist/components/header/index.d.ts +0 -18
- package/dist/components/header/index.js +0 -2
- package/dist/components/input/index.cjs +0 -11
- package/dist/components/input/index.d.cts +0 -9
- package/dist/components/input/index.d.ts +0 -9
- package/dist/components/input/index.js +0 -2
- package/dist/components/item/index.cjs +0 -48
- package/dist/components/item/index.d.cts +0 -61
- package/dist/components/item/index.d.ts +0 -61
- package/dist/components/item/index.js +0 -3
- package/dist/components/label/index.cjs +0 -11
- package/dist/components/label/index.d.cts +0 -8
- package/dist/components/label/index.d.ts +0 -8
- package/dist/components/label/index.js +0 -2
- package/dist/components/marquee/index.cjs +0 -11
- package/dist/components/marquee/index.d.cts +0 -48
- package/dist/components/marquee/index.d.ts +0 -48
- package/dist/components/marquee/index.js +0 -2
- package/dist/components/masonry/index.cjs +0 -16
- package/dist/components/masonry/index.d.cts +0 -181
- package/dist/components/masonry/index.d.ts +0 -181
- package/dist/components/masonry/index.js +0 -3
- package/dist/components/popover/index.cjs +0 -35
- package/dist/components/popover/index.d.cts +0 -18
- package/dist/components/popover/index.d.ts +0 -18
- package/dist/components/popover/index.js +0 -2
- package/dist/components/progress/index.cjs +0 -11
- package/dist/components/progress/index.d.cts +0 -8
- package/dist/components/progress/index.d.ts +0 -8
- package/dist/components/progress/index.js +0 -2
- package/dist/components/radio-group/index.cjs +0 -15
- package/dist/components/radio-group/index.d.cts +0 -22
- package/dist/components/radio-group/index.d.ts +0 -22
- package/dist/components/radio-group/index.js +0 -2
- package/dist/components/scroll-area/index.cjs +0 -15
- package/dist/components/scroll-area/index.d.cts +0 -11
- package/dist/components/scroll-area/index.d.ts +0 -11
- package/dist/components/scroll-area/index.js +0 -2
- package/dist/components/select/index.cjs +0 -31
- package/dist/components/select/index.d.cts +0 -22
- package/dist/components/select/index.d.ts +0 -22
- package/dist/components/select/index.js +0 -2
- package/dist/components/separator/index.cjs +0 -11
- package/dist/components/separator/index.d.cts +0 -8
- package/dist/components/separator/index.d.ts +0 -8
- package/dist/components/separator/index.js +0 -2
- package/dist/components/sheet/index.cjs +0 -39
- package/dist/components/sheet/index.d.cts +0 -42
- package/dist/components/sheet/index.d.ts +0 -42
- package/dist/components/sheet/index.js +0 -2
- package/dist/components/sidebar/index.cjs +0 -148
- package/dist/components/sidebar/index.d.cts +0 -135
- package/dist/components/sidebar/index.d.ts +0 -135
- package/dist/components/sidebar/index.js +0 -43
- package/dist/components/skeleton/index.cjs +0 -11
- package/dist/components/skeleton/index.d.cts +0 -7
- package/dist/components/skeleton/index.d.ts +0 -7
- package/dist/components/skeleton/index.js +0 -2
- package/dist/components/sortable/index.cjs +0 -27
- package/dist/components/sortable/index.d.cts +0 -50
- package/dist/components/sortable/index.d.ts +0 -50
- package/dist/components/sortable/index.js +0 -2
- package/dist/components/spinner/index.cjs +0 -11
- package/dist/components/spinner/index.d.cts +0 -7
- package/dist/components/spinner/index.d.ts +0 -7
- package/dist/components/spinner/index.js +0 -2
- package/dist/components/status/index.cjs +0 -19
- package/dist/components/status/index.d.cts +0 -25
- package/dist/components/status/index.d.ts +0 -25
- package/dist/components/status/index.js +0 -2
- package/dist/components/stepper/index.cjs +0 -124
- package/dist/components/stepper/index.d.cts +0 -164
- package/dist/components/stepper/index.d.ts +0 -164
- package/dist/components/stepper/index.js +0 -43
- package/dist/components/switch/index.cjs +0 -11
- package/dist/components/switch/index.d.cts +0 -19
- package/dist/components/switch/index.d.ts +0 -19
- package/dist/components/switch/index.js +0 -2
- package/dist/components/tabs/index.cjs +0 -23
- package/dist/components/tabs/index.d.cts +0 -17
- package/dist/components/tabs/index.d.ts +0 -17
- package/dist/components/tabs/index.js +0 -2
- package/dist/components/textarea/index.cjs +0 -11
- package/dist/components/textarea/index.d.cts +0 -9
- package/dist/components/textarea/index.d.ts +0 -9
- package/dist/components/textarea/index.js +0 -2
- package/dist/components/timeline/index.cjs +0 -45
- package/dist/components/timeline/index.d.cts +0 -63
- package/dist/components/timeline/index.d.ts +0 -63
- package/dist/components/timeline/index.js +0 -4
- package/dist/components/toaster/index.cjs +0 -56
- package/dist/components/toaster/index.d.cts +0 -8
- package/dist/components/toaster/index.d.ts +0 -8
- package/dist/components/toaster/index.js +0 -43
- package/dist/components/tooltip/index.cjs +0 -19
- package/dist/components/tooltip/index.d.cts +0 -12
- package/dist/components/tooltip/index.d.ts +0 -12
- package/dist/components/tooltip/index.js +0 -2
- package/dist/components/typing-text/index.cjs +0 -11
- package/dist/components/typing-text/index.d.cts +0 -41
- package/dist/components/typing-text/index.d.ts +0 -41
- package/dist/components/typing-text/index.js +0 -2
- package/dist/components/word-rotate/index.cjs +0 -11
- package/dist/components/word-rotate/index.d.cts +0 -30
- package/dist/components/word-rotate/index.d.ts +0 -30
- package/dist/components/word-rotate/index.js +0 -2
- package/dist/direction-CUOPDLCj.d.cts +0 -7
- package/dist/direction-CUOPDLCj.d.ts +0 -7
- package/dist/popover-trigger-Cf4PPj0z.d.cts +0 -14
- package/dist/popover-trigger-Cf4PPj0z.d.ts +0 -14
- package/dist/select-Bf6XQtt-.d.cts +0 -12
- package/dist/select-Bf6XQtt-.d.ts +0 -12
- package/dist/tooltip-content-DqtogPBq.d.cts +0 -8
- package/dist/tooltip-content-DqtogPBq.d.ts +0 -8
package/dist/chunk-HPICKLBZ.cjs
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDUAM4RTP_cjs = require('./chunk-DUAM4RTP.cjs');
|
|
4
|
-
var chunkS3ANEJJ7_cjs = require('./chunk-S3ANEJJ7.cjs');
|
|
5
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
6
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
var React = require('react');
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
|
-
|
|
30
|
-
var fieldVariants = classVarianceAuthority.cva("group/field data-[invalid=true]:text-error flex w-full gap-3", {
|
|
31
|
-
variants: {
|
|
32
|
-
orientation: {
|
|
33
|
-
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
34
|
-
horizontal: [
|
|
35
|
-
"flex-row items-center",
|
|
36
|
-
"[&>[data-slot=field-label]]:flex-auto",
|
|
37
|
-
"has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
38
|
-
],
|
|
39
|
-
responsive: [
|
|
40
|
-
"flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
|
|
41
|
-
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
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
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
defaultVariants: {
|
|
47
|
-
orientation: "vertical"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function Field({ className, orientation = "vertical", ...props }) {
|
|
51
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
role: "group",
|
|
55
|
-
"data-slot": "field",
|
|
56
|
-
"data-orientation": orientation,
|
|
57
|
-
className: chunkH2BWO3SI_cjs.cn(fieldVariants({ orientation }), className),
|
|
58
|
-
...props
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
function FieldContent({ className, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
"data-slot": "field-content",
|
|
67
|
-
className: chunkH2BWO3SI_cjs.cn("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", className),
|
|
68
|
-
...props
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
function FieldDescription({ className, ...props }) {
|
|
73
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74
|
-
"p",
|
|
75
|
-
{
|
|
76
|
-
"data-slot": "field-description",
|
|
77
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
78
|
-
"text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
79
|
-
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
80
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
81
|
-
className
|
|
82
|
-
),
|
|
83
|
-
...props
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
function FieldError({ className, children, errors, ...props }) {
|
|
88
|
-
const content = React__namespace.useMemo(() => {
|
|
89
|
-
if (children) {
|
|
90
|
-
return children;
|
|
91
|
-
}
|
|
92
|
-
if (!errors?.length) {
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
const uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];
|
|
96
|
-
if (uniqueErrors?.length == 1) {
|
|
97
|
-
return uniqueErrors[0]?.message;
|
|
98
|
-
}
|
|
99
|
-
return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => error?.message && /* @__PURE__ */ jsxRuntime.jsx("li", { children: error.message }, index)) });
|
|
100
|
-
}, [children, errors]);
|
|
101
|
-
if (!content) {
|
|
102
|
-
return null;
|
|
103
|
-
}
|
|
104
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "alert", "data-slot": "field-error", className: chunkH2BWO3SI_cjs.cn("text-error text-sm font-normal", className), ...props, children: content });
|
|
105
|
-
}
|
|
106
|
-
function FieldGroup({ className, ...props }) {
|
|
107
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
"data-slot": "field-group",
|
|
111
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
112
|
-
"group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",
|
|
113
|
-
className
|
|
114
|
-
),
|
|
115
|
-
...props
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
function FieldLabel({ className, ...props }) {
|
|
120
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
121
|
-
chunkS3ANEJJ7_cjs.Label,
|
|
122
|
-
{
|
|
123
|
-
"data-slot": "field-label",
|
|
124
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
125
|
-
"group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
|
|
126
|
-
"has-[>[data-slot=field]]:border-border has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4",
|
|
127
|
-
"has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
|
|
128
|
-
className
|
|
129
|
-
),
|
|
130
|
-
...props
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
function FieldLegend({ className, variant = "legend", ...props }) {
|
|
135
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
136
|
-
"legend",
|
|
137
|
-
{
|
|
138
|
-
"data-slot": "field-legend",
|
|
139
|
-
"data-variant": variant,
|
|
140
|
-
className: chunkH2BWO3SI_cjs.cn("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", className),
|
|
141
|
-
...props
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
function FieldSeparator({ children, className, ...props }) {
|
|
146
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
147
|
-
"div",
|
|
148
|
-
{
|
|
149
|
-
"data-slot": "field-separator",
|
|
150
|
-
"data-content": !!children,
|
|
151
|
-
className: chunkH2BWO3SI_cjs.cn("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", className),
|
|
152
|
-
...props,
|
|
153
|
-
children: [
|
|
154
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkDUAM4RTP_cjs.Separator, { className: "absolute inset-0 top-1/2" }),
|
|
155
|
-
children ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
156
|
-
"span",
|
|
157
|
-
{
|
|
158
|
-
className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
|
|
159
|
-
"data-slot": "field-separator-content",
|
|
160
|
-
children
|
|
161
|
-
}
|
|
162
|
-
) : null
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
function FieldSet({ className, ...props }) {
|
|
168
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
169
|
-
"fieldset",
|
|
170
|
-
{
|
|
171
|
-
"data-slot": "field-set",
|
|
172
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
173
|
-
"flex flex-col gap-6",
|
|
174
|
-
"has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
|
|
175
|
-
className
|
|
176
|
-
),
|
|
177
|
-
...props
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
function FieldTitle({ className, ...props }) {
|
|
182
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
183
|
-
"div",
|
|
184
|
-
{
|
|
185
|
-
"data-slot": "field-label",
|
|
186
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
187
|
-
"flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50",
|
|
188
|
-
className
|
|
189
|
-
),
|
|
190
|
-
...props
|
|
191
|
-
}
|
|
192
|
-
);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
exports.Field = Field;
|
|
196
|
-
exports.FieldContent = FieldContent;
|
|
197
|
-
exports.FieldDescription = FieldDescription;
|
|
198
|
-
exports.FieldError = FieldError;
|
|
199
|
-
exports.FieldGroup = FieldGroup;
|
|
200
|
-
exports.FieldLabel = FieldLabel;
|
|
201
|
-
exports.FieldLegend = FieldLegend;
|
|
202
|
-
exports.FieldSeparator = FieldSeparator;
|
|
203
|
-
exports.FieldSet = FieldSet;
|
|
204
|
-
exports.FieldTitle = FieldTitle;
|
package/dist/chunk-I3E75OQX.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
function Header({ children, variant = "container", ...props }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"header",
|
|
7
|
-
{
|
|
8
|
-
"data-slot": "header",
|
|
9
|
-
className: "border-border/40 bg-background/95 supports-backdrop-filter:bg-background/60 sticky top-0 z-50 w-full border-b backdrop-blur",
|
|
10
|
-
...props,
|
|
11
|
-
children: /* @__PURE__ */ jsx("div", { className: cn("flex h-16 items-center", variant === "container" ? "container" : "w-full px-4 sm:px-8"), children })
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { Header };
|
package/dist/chunk-I3RSTJP6.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { Label as Label$1 } from 'radix-ui';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function Label({ className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
Label$1.Root,
|
|
8
|
-
{
|
|
9
|
-
"data-slot": "label",
|
|
10
|
-
className: cn(
|
|
11
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none",
|
|
12
|
-
"group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
13
|
-
className
|
|
14
|
-
),
|
|
15
|
-
...props
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { Label };
|
package/dist/chunk-IWF52DDE.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
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 statusVariants = cva(
|
|
7
|
-
"inline-flex w-fit shrink-0 items-center gap-1.5 overflow-hidden whitespace-nowrap rounded-full border px-2.5 py-1 font-medium text-xs transition-colors",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "border-transparent bg-muted text-muted-foreground **:data-[slot=status-indicator]:bg-muted-foreground",
|
|
12
|
-
success: "border-success/20 bg-success/10 text-success **:data-[slot=status-indicator]:bg-success",
|
|
13
|
-
error: "border-error/20 bg-error/10 text-error **:data-[slot=status-indicator]:bg-error",
|
|
14
|
-
warning: "border-warning/20 bg-warning/10 text-warning **:data-[slot=status-indicator]:bg-warning",
|
|
15
|
-
primary: "border-primary/20 bg-primary/10 text-primary **:data-[slot=status-indicator]:bg-primary "
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
defaultVariants: {
|
|
19
|
-
variant: "default"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
function Status({ className, variant = "default", asChild, ...rootProps }) {
|
|
24
|
-
const RootPrimitive = asChild ? Slot : "div";
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
-
RootPrimitive,
|
|
27
|
-
{
|
|
28
|
-
"data-slot": "status",
|
|
29
|
-
"data-variant": variant,
|
|
30
|
-
...rootProps,
|
|
31
|
-
className: cn(statusVariants({ variant }), className)
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
function StatusIndicator(props) {
|
|
36
|
-
const { className, ...indicatorProps } = props;
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
"data-slot": "status-indicator",
|
|
41
|
-
...indicatorProps,
|
|
42
|
-
className: cn(
|
|
43
|
-
"relative flex size-2 shrink-0 rounded-full",
|
|
44
|
-
"before:absolute before:inset-0 before:animate-ping before:rounded-full before:bg-inherit",
|
|
45
|
-
"after:absolute after:inset-0.5 after:rounded-full after:bg-inherit",
|
|
46
|
-
className
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
function StatusLabel({ className, ...labelProps }) {
|
|
52
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "status-label", ...labelProps, className: cn("leading-none", className) });
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { Status, StatusIndicator, StatusLabel };
|
package/dist/chunk-IZU3KULT.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { Popover as Popover$1 } from 'radix-ui';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function Popover(props) {
|
|
6
|
-
return /* @__PURE__ */ jsx(Popover$1.Root, { "data-slot": "popover", ...props });
|
|
7
|
-
}
|
|
8
|
-
function PopoverAnchor(props) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Popover$1.Anchor, { "data-slot": "popover-anchor", ...props });
|
|
10
|
-
}
|
|
11
|
-
function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
13
|
-
Popover$1.Content,
|
|
14
|
-
{
|
|
15
|
-
"data-slot": "popover-content",
|
|
16
|
-
align,
|
|
17
|
-
sideOffset,
|
|
18
|
-
className: cn(
|
|
19
|
-
"bg-popover text-popover-foreground ring-foreground/10 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100",
|
|
20
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
|
|
21
|
-
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
22
|
-
className
|
|
23
|
-
),
|
|
24
|
-
...props
|
|
25
|
-
}
|
|
26
|
-
) });
|
|
27
|
-
}
|
|
28
|
-
function PopoverTrigger(props) {
|
|
29
|
-
return /* @__PURE__ */ jsx(Popover$1.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
30
|
-
}
|
|
31
|
-
function PopoverHeader({ className, ...props }) {
|
|
32
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "popover-header", className: cn("flex flex-col gap-0.5 text-sm", className), ...props });
|
|
33
|
-
}
|
|
34
|
-
function PopoverTitle({ className, ...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsx("h2", { "data-slot": "popover-title", className: cn("font-medium", className), ...props });
|
|
36
|
-
}
|
|
37
|
-
function PopoverDescription({ className, ...props }) {
|
|
38
|
-
return /* @__PURE__ */ jsx("p", { "data-slot": "popover-description", className: cn("text-muted-foreground", className), ...props });
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
|
package/dist/chunk-K5AURCK5.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useInView, motion } from 'motion/react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function WordRotate({
|
|
7
|
-
words,
|
|
8
|
-
duration = 1500,
|
|
9
|
-
animationStyle = "fade",
|
|
10
|
-
loop = true,
|
|
11
|
-
className,
|
|
12
|
-
containerClassName,
|
|
13
|
-
pauseDuration = 300,
|
|
14
|
-
startOnView = true,
|
|
15
|
-
once = false,
|
|
16
|
-
inViewMargin,
|
|
17
|
-
...props
|
|
18
|
-
}) {
|
|
19
|
-
const ref = React.useRef(null);
|
|
20
|
-
const isInView = useInView(ref, { once, margin: inViewMargin });
|
|
21
|
-
const [hasAnimated, setHasAnimated] = React.useState(false);
|
|
22
|
-
const [currentWord, setCurrentWord] = React.useState(0);
|
|
23
|
-
const [show, setShow] = React.useState(true);
|
|
24
|
-
const variants = {
|
|
25
|
-
fade: {
|
|
26
|
-
initial: { opacity: 0 },
|
|
27
|
-
animate: {
|
|
28
|
-
opacity: 1,
|
|
29
|
-
transition: {
|
|
30
|
-
duration: 0.4,
|
|
31
|
-
ease: [0.4, 0, 0.2, 1]
|
|
32
|
-
// Custom cubic-bezier for smooth fade
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
exit: {
|
|
36
|
-
opacity: 0,
|
|
37
|
-
transition: {
|
|
38
|
-
duration: 0.3,
|
|
39
|
-
ease: [0.4, 0, 1, 1]
|
|
40
|
-
// Faster exit
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"slide-up": {
|
|
45
|
-
initial: { opacity: 0, y: 24 },
|
|
46
|
-
animate: {
|
|
47
|
-
opacity: 1,
|
|
48
|
-
y: 0,
|
|
49
|
-
transition: {
|
|
50
|
-
type: "spring",
|
|
51
|
-
stiffness: 300,
|
|
52
|
-
damping: 25,
|
|
53
|
-
mass: 0.8
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
exit: {
|
|
57
|
-
opacity: 0,
|
|
58
|
-
y: -24,
|
|
59
|
-
transition: {
|
|
60
|
-
duration: 0.25,
|
|
61
|
-
ease: [0.4, 0, 1, 1]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"slide-down": {
|
|
66
|
-
initial: { opacity: 0, y: -24 },
|
|
67
|
-
animate: {
|
|
68
|
-
opacity: 1,
|
|
69
|
-
y: 0,
|
|
70
|
-
transition: {
|
|
71
|
-
type: "spring",
|
|
72
|
-
stiffness: 300,
|
|
73
|
-
damping: 25,
|
|
74
|
-
mass: 0.8
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
exit: {
|
|
78
|
-
opacity: 0,
|
|
79
|
-
y: 24,
|
|
80
|
-
transition: {
|
|
81
|
-
duration: 0.25,
|
|
82
|
-
ease: [0.4, 0, 1, 1]
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
scale: {
|
|
87
|
-
initial: { opacity: 0, scale: 0.8 },
|
|
88
|
-
animate: {
|
|
89
|
-
opacity: 1,
|
|
90
|
-
scale: 1,
|
|
91
|
-
transition: {
|
|
92
|
-
type: "spring",
|
|
93
|
-
stiffness: 400,
|
|
94
|
-
damping: 30,
|
|
95
|
-
mass: 0.6
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
exit: {
|
|
99
|
-
opacity: 0,
|
|
100
|
-
scale: 0.9,
|
|
101
|
-
transition: {
|
|
102
|
-
duration: 0.2,
|
|
103
|
-
ease: [0.4, 0, 1, 1]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
flip: {
|
|
108
|
-
initial: { opacity: 0, rotateX: 90 },
|
|
109
|
-
animate: {
|
|
110
|
-
opacity: 1,
|
|
111
|
-
rotateX: 0,
|
|
112
|
-
transition: {
|
|
113
|
-
type: "spring",
|
|
114
|
-
stiffness: 200,
|
|
115
|
-
damping: 20,
|
|
116
|
-
mass: 1
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
exit: {
|
|
120
|
-
opacity: 0,
|
|
121
|
-
rotateX: -90,
|
|
122
|
-
transition: {
|
|
123
|
-
duration: 0.3,
|
|
124
|
-
ease: [0.4, 0, 1, 1]
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
|
|
130
|
-
React.useEffect(() => {
|
|
131
|
-
if (!shouldStart) return;
|
|
132
|
-
if (words.length === 0) return;
|
|
133
|
-
let intervalId;
|
|
134
|
-
let timeoutId;
|
|
135
|
-
intervalId = setInterval(() => {
|
|
136
|
-
setShow(false);
|
|
137
|
-
timeoutId = setTimeout(() => {
|
|
138
|
-
setCurrentWord((prev) => {
|
|
139
|
-
const nextIndex = prev + 1;
|
|
140
|
-
if (!loop && nextIndex >= words.length) {
|
|
141
|
-
clearInterval(intervalId);
|
|
142
|
-
clearTimeout(timeoutId);
|
|
143
|
-
return prev;
|
|
144
|
-
}
|
|
145
|
-
return loop ? nextIndex % words.length : nextIndex;
|
|
146
|
-
});
|
|
147
|
-
setShow(true);
|
|
148
|
-
setHasAnimated(true);
|
|
149
|
-
}, pauseDuration);
|
|
150
|
-
}, duration + pauseDuration);
|
|
151
|
-
return () => {
|
|
152
|
-
clearInterval(intervalId);
|
|
153
|
-
clearTimeout(timeoutId);
|
|
154
|
-
};
|
|
155
|
-
}, [shouldStart, duration, pauseDuration, words.length, loop, once, hasAnimated]);
|
|
156
|
-
return /* @__PURE__ */ jsx(
|
|
157
|
-
motion.span,
|
|
158
|
-
{
|
|
159
|
-
ref,
|
|
160
|
-
"data-slot": "word-rotate",
|
|
161
|
-
className: cn("inline-block overflow-hidden align-bottom leading-none", containerClassName),
|
|
162
|
-
...props,
|
|
163
|
-
children: /* @__PURE__ */ jsx(
|
|
164
|
-
motion.span,
|
|
165
|
-
{
|
|
166
|
-
initial: "initial",
|
|
167
|
-
animate: show ? "animate" : "exit",
|
|
168
|
-
exit: "exit",
|
|
169
|
-
variants: variants[animationStyle],
|
|
170
|
-
transition: { duration: 0.5 },
|
|
171
|
-
style: {
|
|
172
|
-
perspective: animationStyle === "flip" ? 1e3 : void 0
|
|
173
|
-
},
|
|
174
|
-
className: cn("inline-block", className),
|
|
175
|
-
children: words[currentWord]
|
|
176
|
-
},
|
|
177
|
-
currentWord
|
|
178
|
-
)
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export { WordRotate };
|
package/dist/chunk-KTAIBRTH.cjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
function Skeleton({ className, ...props }) {
|
|
7
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "skeleton", className: chunkH2BWO3SI_cjs.cn("bg-muted animate-pulse rounded-md", className), ...props });
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
exports.Skeleton = Skeleton;
|
package/dist/chunk-L2TRMQNN.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { Separator } from './chunk-A72LE53B.js';
|
|
2
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
3
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
-
import { cva } from 'class-variance-authority';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var itemVariants = cva(
|
|
8
|
-
"group/item [a]:hover:bg-accent/50 focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:ring [a]:transition-colors",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "bg-transparent",
|
|
13
|
-
outline: "border-border",
|
|
14
|
-
muted: "bg-muted/50"
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
default: "gap-4 p-4 ",
|
|
18
|
-
sm: "gap-2.5 px-4 py-3"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
variant: "default",
|
|
23
|
-
size: "default"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
function Item({ className, variant = "default", size = "default", asChild = false, ...props }) {
|
|
28
|
-
const Comp = asChild ? Slot : "div";
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
Comp,
|
|
31
|
-
{
|
|
32
|
-
"data-slot": "item",
|
|
33
|
-
"data-variant": variant,
|
|
34
|
-
"data-size": size,
|
|
35
|
-
className: cn(itemVariants({ variant, size, className })),
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
var itemMediaVariants = cva(
|
|
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
|
-
{
|
|
43
|
-
variants: {
|
|
44
|
-
variant: {
|
|
45
|
-
default: "bg-transparent",
|
|
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
|
-
}
|
|
49
|
-
},
|
|
50
|
-
defaultVariants: {
|
|
51
|
-
variant: "default"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
function ItemMedia({ className, variant = "default", ...props }) {
|
|
56
|
-
return /* @__PURE__ */ jsx(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
"data-slot": "item-media",
|
|
60
|
-
"data-variant": variant,
|
|
61
|
-
className: cn(itemMediaVariants({ variant }), className),
|
|
62
|
-
...props
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
function ItemGroup({ className, ...props }) {
|
|
67
|
-
return /* @__PURE__ */ jsx("div", { role: "list", "data-slot": "item-group", className: cn("group/item-group flex flex-col", className), ...props });
|
|
68
|
-
}
|
|
69
|
-
function ItemActions({ className, ...props }) {
|
|
70
|
-
return /* @__PURE__ */ jsx("div", { "data-slot": "item-actions", className: cn("flex items-center gap-2", className), ...props });
|
|
71
|
-
}
|
|
72
|
-
function ItemContent({ className, ...props }) {
|
|
73
|
-
return /* @__PURE__ */ jsx(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
"data-slot": "item-content",
|
|
77
|
-
className: cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
|
|
78
|
-
...props
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
function ItemDescription({ className, ...props }) {
|
|
83
|
-
return /* @__PURE__ */ jsx(
|
|
84
|
-
"p",
|
|
85
|
-
{
|
|
86
|
-
"data-slot": "item-description",
|
|
87
|
-
className: cn(
|
|
88
|
-
"text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
|
|
89
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
90
|
-
className
|
|
91
|
-
),
|
|
92
|
-
...props
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
function ItemFooter({ className, ...props }) {
|
|
97
|
-
return /* @__PURE__ */ jsx(
|
|
98
|
-
"div",
|
|
99
|
-
{
|
|
100
|
-
"data-slot": "item-footer",
|
|
101
|
-
className: cn("flex basis-full items-center justify-between gap-2", className),
|
|
102
|
-
...props
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
function ItemHeader({ className, ...props }) {
|
|
107
|
-
return /* @__PURE__ */ jsx(
|
|
108
|
-
"div",
|
|
109
|
-
{
|
|
110
|
-
"data-slot": "item-header",
|
|
111
|
-
className: cn("flex basis-full items-center justify-between gap-2", className),
|
|
112
|
-
...props
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
function ItemTitle({ className, ...props }) {
|
|
117
|
-
return /* @__PURE__ */ jsx(
|
|
118
|
-
"div",
|
|
119
|
-
{
|
|
120
|
-
"data-slot": "item-title",
|
|
121
|
-
className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
|
|
122
|
-
...props
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
function ItemSeparator({ className, ...props }) {
|
|
127
|
-
return /* @__PURE__ */ jsx(Separator, { "data-slot": "item-separator", orientation: "horizontal", className: cn("my-0", className), ...props });
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
|