@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-S3ANEJJ7.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var radixUi = require('radix-ui');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
function Label({ className, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
radixUi.Label.Root,
|
|
10
|
-
{
|
|
11
|
-
"data-slot": "label",
|
|
12
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
13
|
-
"flex items-center gap-2 text-sm leading-none font-medium select-none",
|
|
14
|
-
"group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
-
className
|
|
16
|
-
),
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
exports.Label = Label;
|
package/dist/chunk-S3ZUFD6U.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
function Input({ className, type, invalid = false, ...props }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"input",
|
|
7
|
-
{
|
|
8
|
-
type,
|
|
9
|
-
"data-slot": "input",
|
|
10
|
-
"aria-invalid": props["aria-invalid"] || invalid,
|
|
11
|
-
className: cn(
|
|
12
|
-
"dark:bg-input/30 border-input file:text-foreground placeholder:text-muted-foreground h-8 w-full min-w-0 rounded border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm",
|
|
13
|
-
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error dark:aria-invalid:border-error/50",
|
|
14
|
-
"focus-visible:border-ring focus-visible:ring-ring/50",
|
|
15
|
-
"disabled:bg-input/50 dark:disabled:bg-input/80",
|
|
16
|
-
className
|
|
17
|
-
),
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { Input };
|
package/dist/chunk-SHPJGB2L.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var radixUi = require('radix-ui');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
// src/components/collapsible/collapsible.tsx
|
|
7
|
-
function Collapsible({ ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Collapsible.Root, { "data-slot": "collapsible", ...props });
|
|
9
|
-
}
|
|
10
|
-
function CollapsibleTrigger({ ...props }) {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Collapsible.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props });
|
|
12
|
-
}
|
|
13
|
-
function CollapsibleContent({ ...props }) {
|
|
14
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Collapsible.CollapsibleContent, { "data-slot": "collapsible-content", ...props });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
exports.Collapsible = Collapsible;
|
|
18
|
-
exports.CollapsibleContent = CollapsibleContent;
|
|
19
|
-
exports.CollapsibleTrigger = CollapsibleTrigger;
|
package/dist/chunk-TH44JYXB.cjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var radixUi = require('radix-ui');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
function Progress({ className, value, ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
radixUi.Progress.Root,
|
|
10
|
-
{
|
|
11
|
-
"data-slot": "progress",
|
|
12
|
-
className: chunkH2BWO3SI_cjs.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded", className),
|
|
13
|
-
value,
|
|
14
|
-
...props,
|
|
15
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
-
radixUi.Progress.Indicator,
|
|
17
|
-
{
|
|
18
|
-
"data-slot": "progress-indicator",
|
|
19
|
-
className: "bg-primary size-full flex-1 transition-all duration-500 ease-in-out",
|
|
20
|
-
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
exports.Progress = Progress;
|
package/dist/chunk-TMXVL5CV.cjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var radixUi = require('radix-ui');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var tailwindMerge = require('tailwind-merge');
|
|
7
|
-
|
|
8
|
-
var AlertDialog = radixUi.AlertDialog.Root;
|
|
9
|
-
var AlertDialogTrigger = radixUi.AlertDialog.Trigger;
|
|
10
|
-
function AlertDialogContent({ className, ...props }) {
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.AlertDialog.Portal, { children: [
|
|
12
|
-
/* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Overlay, { className: "bg-app-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-xs" }),
|
|
13
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14
|
-
radixUi.AlertDialog.Content,
|
|
15
|
-
{
|
|
16
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
17
|
-
"bg-app-foreground 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-1/2 left-1/2 z-50 flex w-full max-w-lg -translate-x-1/2 -translate-y-1/2 flex-col rounded border border-gray-800 p-4 shadow-lg duration-200",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
] });
|
|
24
|
-
}
|
|
25
|
-
var AlertDialogAction = radixUi.AlertDialog.Action;
|
|
26
|
-
function AlertDialogFooter({ className, ...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: tailwindMerge.twMerge("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
28
|
-
}
|
|
29
|
-
function AlertDialogTitle({ className, ref, ...props }) {
|
|
30
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Title, { ref, className: chunkH2BWO3SI_cjs.cn("text-heading-6", className), ...props });
|
|
31
|
-
}
|
|
32
|
-
function AlertDialogDescription({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AlertDialog.Description, { className: chunkH2BWO3SI_cjs.cn("text-body-2 text-gray-300", className), ...props });
|
|
34
|
-
}
|
|
35
|
-
var AlertDialogCancel = radixUi.AlertDialog.Cancel;
|
|
36
|
-
function AlertDialogHeader({ className, ...props }) {
|
|
37
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkH2BWO3SI_cjs.cn("mb-4 flex flex-col space-y-2 text-center sm:text-left", className), ...props });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
exports.AlertDialog = AlertDialog;
|
|
41
|
-
exports.AlertDialogAction = AlertDialogAction;
|
|
42
|
-
exports.AlertDialogCancel = AlertDialogCancel;
|
|
43
|
-
exports.AlertDialogContent = AlertDialogContent;
|
|
44
|
-
exports.AlertDialogDescription = AlertDialogDescription;
|
|
45
|
-
exports.AlertDialogFooter = AlertDialogFooter;
|
|
46
|
-
exports.AlertDialogHeader = AlertDialogHeader;
|
|
47
|
-
exports.AlertDialogTitle = AlertDialogTitle;
|
|
48
|
-
exports.AlertDialogTrigger = AlertDialogTrigger;
|
package/dist/chunk-U3QKV7I4.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { Slot } from 'radix-ui';
|
|
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 rounded border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
primary: "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
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
14
|
-
success: "bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 border-transparent",
|
|
15
|
-
warning: "bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 border-transparent",
|
|
16
|
-
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"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
defaultVariants: {
|
|
20
|
-
variant: "primary"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
function Badge({ className, variant = "primary", asChild = false, ...props }) {
|
|
25
|
-
const Comp = asChild ? Slot.Slot : "span";
|
|
26
|
-
return /* @__PURE__ */ jsx(Comp, { "data-slot": "badge", className: cn(badgeVariants({ variant }), className), ...props });
|
|
27
|
-
}
|
|
28
|
-
function BadgeButton({ className, asChild = false, ...props }) {
|
|
29
|
-
const Comp = asChild ? Slot.Slot : "span";
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
31
|
-
Comp,
|
|
32
|
-
{
|
|
33
|
-
"data-slot": "badge-button",
|
|
34
|
-
className: cn(
|
|
35
|
-
"-me-0.5 inline-flex size-3.5 cursor-pointer items-center justify-center rounded-md p-0 leading-none opacity-60 transition-all hover:opacity-100 [&>svg]:size-3.5! [&>svg]:opacity-100!",
|
|
36
|
-
className
|
|
37
|
-
),
|
|
38
|
-
role: "button",
|
|
39
|
-
...props
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
function BadgeDot({ className, ...props }) {
|
|
44
|
-
return /* @__PURE__ */ jsx(
|
|
45
|
-
"span",
|
|
46
|
-
{
|
|
47
|
-
"data-slot": "badge-dot",
|
|
48
|
-
className: cn("size-1.5 rounded-full bg-[currentColor] opacity-75", className),
|
|
49
|
-
...props
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { Badge, BadgeButton, BadgeDot };
|
package/dist/chunk-U7XZJQ4O.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function TooltipProvider({
|
|
6
|
-
delayDuration = 0,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Provider, { "data-slot": "tooltip-provider", delayDuration, ...props });
|
|
10
|
-
}
|
|
11
|
-
function Tooltip(props) {
|
|
12
|
-
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(Tooltip$1.Root, { "data-slot": "tooltip", ...props }) });
|
|
13
|
-
}
|
|
14
|
-
function TooltipTrigger(props) {
|
|
15
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
16
|
-
}
|
|
17
|
-
function TooltipContent({ className, sideOffset = 0, children, ...props }) {
|
|
18
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsxs(
|
|
19
|
-
Tooltip$1.Content,
|
|
20
|
-
{
|
|
21
|
-
"data-slot": "tooltip-content",
|
|
22
|
-
sideOffset,
|
|
23
|
-
className: cn(
|
|
24
|
-
"bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
25
|
-
className
|
|
26
|
-
),
|
|
27
|
-
...props,
|
|
28
|
-
children: [
|
|
29
|
-
children,
|
|
30
|
-
/* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
) });
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { Tooltip, TooltipContent, TooltipTrigger };
|
package/dist/chunk-UJX74PFK.cjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var radixUi = require('radix-ui');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
function ScrollBar({ className, orientation = "vertical", ...props }) {
|
|
8
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
radixUi.ScrollArea.ScrollAreaScrollbar,
|
|
10
|
-
{
|
|
11
|
-
"data-slot": "scroll-area-scrollbar",
|
|
12
|
-
orientation,
|
|
13
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
14
|
-
"flex touch-none p-px transition-colors select-none",
|
|
15
|
-
orientation === "vertical" ? "h-full w-2.5 border-l border-l-transparent" : "",
|
|
16
|
-
orientation === "horizontal" ? "h-2.5 flex-col border-t border-t-transparent" : "",
|
|
17
|
-
className
|
|
18
|
-
),
|
|
19
|
-
...props,
|
|
20
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
-
radixUi.ScrollArea.ScrollAreaThumb,
|
|
22
|
-
{
|
|
23
|
-
"data-slot": "scroll-area-thumb",
|
|
24
|
-
className: "bg-border relative flex-1 rounded"
|
|
25
|
-
}
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
function ScrollArea({ className, children, ...props }) {
|
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.ScrollArea.Root, { "data-slot": "scroll-area", className: chunkH2BWO3SI_cjs.cn("relative", className), ...props, children: [
|
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
-
radixUi.ScrollArea.Viewport,
|
|
34
|
-
{
|
|
35
|
-
"data-slot": "scroll-area-viewport",
|
|
36
|
-
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring focus-visible:outline-1",
|
|
37
|
-
children
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
41
|
-
/* @__PURE__ */ jsxRuntime.jsx(radixUi.ScrollArea.Corner, {})
|
|
42
|
-
] });
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.ScrollArea = ScrollArea;
|
|
46
|
-
exports.ScrollBar = ScrollBar;
|
package/dist/chunk-ULEEQ723.cjs
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var radixUi = require('radix-ui');
|
|
6
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
-
|
|
29
|
-
var colorSwatchVariants = classVarianceAuthority.cva(
|
|
30
|
-
"border-border box-border rounded border [background-clip:padding-box] shadow-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
31
|
-
{
|
|
32
|
-
variants: {
|
|
33
|
-
size: {
|
|
34
|
-
default: "size-8",
|
|
35
|
-
sm: "size-6",
|
|
36
|
-
lg: "size-12"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
size: "default"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
// src/components/color-swatch/color-swatch.utils.ts
|
|
46
|
-
function getIsCssColor(v) {
|
|
47
|
-
try {
|
|
48
|
-
return typeof CSS !== "undefined" && typeof CSS.supports === "function" ? CSS.supports("color", v) : true;
|
|
49
|
-
} catch {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function getHasAlpha(v) {
|
|
54
|
-
const s = v.trim().toLowerCase();
|
|
55
|
-
if (s === "transparent") return true;
|
|
56
|
-
if (/^#(?:[0-9a-f]{4}|[0-9a-f]{8})$/i.test(s)) return true;
|
|
57
|
-
if (/\b(?:rgba|hsla)\s*\(/i.test(s)) return true;
|
|
58
|
-
return /\b(?:rgb|hsl|lab|lch|oklab|oklch|color)\s*\([^)]*\/\s*[\d.]+%?\s*\)/i.test(s);
|
|
59
|
-
}
|
|
60
|
-
function ColorSwatch({
|
|
61
|
-
color,
|
|
62
|
-
size = "default",
|
|
63
|
-
asChild = false,
|
|
64
|
-
disabled = false,
|
|
65
|
-
withoutTransparency = false,
|
|
66
|
-
className,
|
|
67
|
-
style,
|
|
68
|
-
...props
|
|
69
|
-
}) {
|
|
70
|
-
const colorValue = color?.trim();
|
|
71
|
-
const backgroundStyle = React__namespace.useMemo(() => {
|
|
72
|
-
if (!colorValue) {
|
|
73
|
-
return {
|
|
74
|
-
background: "linear-gradient(to bottom right, transparent calc(50% - 1px), hsl(var(--destructive)) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) no-repeat"
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
if (!getIsCssColor(colorValue)) {
|
|
78
|
-
return { backgroundColor: "transparent" };
|
|
79
|
-
}
|
|
80
|
-
if (!withoutTransparency && getHasAlpha(colorValue)) {
|
|
81
|
-
return {
|
|
82
|
-
background: `linear-gradient(${colorValue}, ${colorValue}), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 0% 50% / 10px 10px`
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
return { backgroundColor: colorValue };
|
|
86
|
-
}, [colorValue, withoutTransparency]);
|
|
87
|
-
const ariaLabel = !colorValue ? "No color selected" : `Color swatch: ${colorValue}`;
|
|
88
|
-
const Primitive = asChild ? radixUi.Slot.Slot : "div";
|
|
89
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
-
Primitive,
|
|
91
|
-
{
|
|
92
|
-
role: "img",
|
|
93
|
-
"aria-label": ariaLabel,
|
|
94
|
-
"aria-disabled": disabled || void 0,
|
|
95
|
-
"data-disabled": disabled ? "" : void 0,
|
|
96
|
-
"data-slot": "color-swatch",
|
|
97
|
-
...props,
|
|
98
|
-
className: chunkH2BWO3SI_cjs.cn(colorSwatchVariants({ size }), className),
|
|
99
|
-
style: {
|
|
100
|
-
...backgroundStyle,
|
|
101
|
-
forcedColorAdjust: "none",
|
|
102
|
-
...style
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
exports.ColorSwatch = ColorSwatch;
|
package/dist/chunk-UNOMGKAZ.cjs
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDUAM4RTP_cjs = require('./chunk-DUAM4RTP.cjs');
|
|
4
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
5
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
6
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
var itemVariants = classVarianceAuthority.cva(
|
|
10
|
-
"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",
|
|
11
|
-
{
|
|
12
|
-
variants: {
|
|
13
|
-
variant: {
|
|
14
|
-
default: "bg-transparent",
|
|
15
|
-
outline: "border-border",
|
|
16
|
-
muted: "bg-muted/50"
|
|
17
|
-
},
|
|
18
|
-
size: {
|
|
19
|
-
default: "gap-4 p-4 ",
|
|
20
|
-
sm: "gap-2.5 px-4 py-3"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
variant: "default",
|
|
25
|
-
size: "default"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
function Item({ className, variant = "default", size = "default", asChild = false, ...props }) {
|
|
30
|
-
const Comp = asChild ? reactSlot.Slot : "div";
|
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
-
Comp,
|
|
33
|
-
{
|
|
34
|
-
"data-slot": "item",
|
|
35
|
-
"data-variant": variant,
|
|
36
|
-
"data-size": size,
|
|
37
|
-
className: chunkH2BWO3SI_cjs.cn(itemVariants({ variant, size, className })),
|
|
38
|
-
...props
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
var itemMediaVariants = classVarianceAuthority.cva(
|
|
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
|
-
{
|
|
45
|
-
variants: {
|
|
46
|
-
variant: {
|
|
47
|
-
default: "bg-transparent",
|
|
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
|
-
}
|
|
51
|
-
},
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
variant: "default"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
function ItemMedia({ className, variant = "default", ...props }) {
|
|
58
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
59
|
-
"div",
|
|
60
|
-
{
|
|
61
|
-
"data-slot": "item-media",
|
|
62
|
-
"data-variant": variant,
|
|
63
|
-
className: chunkH2BWO3SI_cjs.cn(itemMediaVariants({ variant }), className),
|
|
64
|
-
...props
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
function ItemGroup({ className, ...props }) {
|
|
69
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "list", "data-slot": "item-group", className: chunkH2BWO3SI_cjs.cn("group/item-group flex flex-col", className), ...props });
|
|
70
|
-
}
|
|
71
|
-
function ItemActions({ className, ...props }) {
|
|
72
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "item-actions", className: chunkH2BWO3SI_cjs.cn("flex items-center gap-2", className), ...props });
|
|
73
|
-
}
|
|
74
|
-
function ItemContent({ className, ...props }) {
|
|
75
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
-
"div",
|
|
77
|
-
{
|
|
78
|
-
"data-slot": "item-content",
|
|
79
|
-
className: chunkH2BWO3SI_cjs.cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
|
|
80
|
-
...props
|
|
81
|
-
}
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
function ItemDescription({ className, ...props }) {
|
|
85
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
-
"p",
|
|
87
|
-
{
|
|
88
|
-
"data-slot": "item-description",
|
|
89
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
90
|
-
"text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
|
|
91
|
-
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
92
|
-
className
|
|
93
|
-
),
|
|
94
|
-
...props
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
function ItemFooter({ className, ...props }) {
|
|
99
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
"data-slot": "item-footer",
|
|
103
|
-
className: chunkH2BWO3SI_cjs.cn("flex basis-full items-center justify-between gap-2", className),
|
|
104
|
-
...props
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
function ItemHeader({ className, ...props }) {
|
|
109
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
110
|
-
"div",
|
|
111
|
-
{
|
|
112
|
-
"data-slot": "item-header",
|
|
113
|
-
className: chunkH2BWO3SI_cjs.cn("flex basis-full items-center justify-between gap-2", className),
|
|
114
|
-
...props
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
function ItemTitle({ className, ...props }) {
|
|
119
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
-
"div",
|
|
121
|
-
{
|
|
122
|
-
"data-slot": "item-title",
|
|
123
|
-
className: chunkH2BWO3SI_cjs.cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
|
|
124
|
-
...props
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
function ItemSeparator({ className, ...props }) {
|
|
129
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkDUAM4RTP_cjs.Separator, { "data-slot": "item-separator", orientation: "horizontal", className: chunkH2BWO3SI_cjs.cn("my-0", className), ...props });
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
exports.Item = Item;
|
|
133
|
-
exports.ItemActions = ItemActions;
|
|
134
|
-
exports.ItemContent = ItemContent;
|
|
135
|
-
exports.ItemDescription = ItemDescription;
|
|
136
|
-
exports.ItemFooter = ItemFooter;
|
|
137
|
-
exports.ItemGroup = ItemGroup;
|
|
138
|
-
exports.ItemHeader = ItemHeader;
|
|
139
|
-
exports.ItemMedia = ItemMedia;
|
|
140
|
-
exports.ItemSeparator = ItemSeparator;
|
|
141
|
-
exports.ItemTitle = ItemTitle;
|
package/dist/chunk-USIW3VT5.cjs
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var react = require('motion/react');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
-
|
|
28
|
-
function CountingNumber({
|
|
29
|
-
from = 0,
|
|
30
|
-
to = 100,
|
|
31
|
-
duration = 2,
|
|
32
|
-
delay = 0,
|
|
33
|
-
className,
|
|
34
|
-
startOnView = true,
|
|
35
|
-
once = false,
|
|
36
|
-
inViewMargin,
|
|
37
|
-
onComplete,
|
|
38
|
-
format,
|
|
39
|
-
...props
|
|
40
|
-
}) {
|
|
41
|
-
const ref = React__namespace.useRef(null);
|
|
42
|
-
const isInView = react.useInView(ref, { once, margin: inViewMargin });
|
|
43
|
-
const [hasAnimated, setHasAnimated] = React__namespace.useState(false);
|
|
44
|
-
const [display, setDisplay] = React__namespace.useState(from);
|
|
45
|
-
const motionValue = react.useMotionValue(from);
|
|
46
|
-
const shouldStart = !startOnView || isInView && (!once || !hasAnimated);
|
|
47
|
-
React__namespace.useEffect(
|
|
48
|
-
function() {
|
|
49
|
-
if (!shouldStart) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
setHasAnimated(true);
|
|
53
|
-
const timeout = setTimeout(function() {
|
|
54
|
-
const controls = react.animate(motionValue, to, {
|
|
55
|
-
duration,
|
|
56
|
-
onUpdate: (v) => setDisplay(v),
|
|
57
|
-
onComplete
|
|
58
|
-
});
|
|
59
|
-
return function() {
|
|
60
|
-
controls.stop();
|
|
61
|
-
};
|
|
62
|
-
}, delay);
|
|
63
|
-
return function() {
|
|
64
|
-
clearTimeout(timeout);
|
|
65
|
-
};
|
|
66
|
-
},
|
|
67
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
68
|
-
[shouldStart, from, to, duration, delay]
|
|
69
|
-
);
|
|
70
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.motion.span, { ref, "data-slot": "counting-number", className: chunkH2BWO3SI_cjs.cn("inline-block", className), ...props, children: format ? format(display) : Math.round(display) });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
exports.CountingNumber = CountingNumber;
|