@nexub/react 1.3.0 → 1.5.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-BYF223HT.js → chunk-2555JXCP.js} +1 -1
- package/dist/{chunk-6AZP6VBM.js → chunk-2FCSWBSM.js} +1 -1
- package/dist/{chunk-OZPPL76D.js → chunk-2ZBJOUJ7.js} +17 -20
- package/dist/{chunk-YJD66LTV.js → chunk-3AXIMXDU.js} +1 -1
- package/dist/{chunk-H4MXRAXP.js → chunk-3LP2CR7F.js} +1 -1
- package/dist/chunk-3TMIZQPR.js +49 -0
- package/dist/chunk-47UGX37F.js +21 -0
- package/dist/{chunk-PANDAMD2.js → chunk-4I5ULCYG.js} +1 -1
- package/dist/{chunk-3U54QLYB.js → chunk-4SSUM4CL.js} +1 -1
- package/dist/{chunk-KZW37FQZ.js → chunk-56FERRWW.js} +1 -1
- package/dist/chunk-5O34ZNC3.js +70 -0
- package/dist/{chunk-YUNWZAAD.js → chunk-5URGARPH.js} +8 -3
- package/dist/{chunk-QF7GUDOE.js → chunk-63DPMUMR.js} +1 -1
- package/dist/chunk-64JDZWCV.js +47 -0
- package/dist/{chunk-BMVAZIAJ.js → chunk-6J3QTWKC.js} +1 -1
- package/dist/{chunk-2RLSIOGB.js → chunk-6QLLH6ID.js} +21 -11
- package/dist/{chunk-KWWV3CM3.js → chunk-6RBNM5RO.js} +1 -1
- package/dist/{chunk-WPPNDU2E.js → chunk-6SJPVQQW.js} +7 -6
- package/dist/{chunk-NAIZ7R2L.js → chunk-72I7EVOL.js} +1 -1
- package/dist/{chunk-SZKUSLHI.js → chunk-7L3CGIRA.js} +21 -11
- package/dist/{chunk-UWWL5FPC.js → chunk-7Q7ZF6BY.js} +1 -1
- package/dist/chunk-7SXR4PGO.js +31 -0
- package/dist/{chunk-W4IEXUD4.js → chunk-7ZWBHHRK.js} +14 -11
- package/dist/{chunk-PER3O4FD.js → chunk-A4IMFAZX.js} +1 -1
- package/dist/{chunk-E3QPDCEV.js → chunk-AEBYQKLS.js} +34 -7
- package/dist/chunk-AHT35UWY.js +92 -0
- package/dist/chunk-AXOKFS4K.js +48 -0
- package/dist/chunk-B54WADL4.js +103 -0
- package/dist/{chunk-CMYEVLQT.js → chunk-BFRX6X4O.js} +9 -7
- package/dist/{chunk-KBB7M6WO.js → chunk-BTRTORKU.js} +1 -1
- package/dist/{chunk-TCTFQYLH.js → chunk-CHGPGRML.js} +1 -1
- package/dist/chunk-CIQHFMF6.js +44 -0
- package/dist/{chunk-U3AEA4BZ.js → chunk-CNNJFWFA.js} +1 -1
- package/dist/chunk-CWS37T3K.js +80 -0
- package/dist/chunk-DEIBF3P7.js +8 -0
- package/dist/{chunk-RIDDJUPA.js → chunk-DJZZ3FIP.js} +13 -4
- package/dist/{chunk-K7CUCLLI.js → chunk-DYWJ7BIK.js} +2 -2
- package/dist/{chunk-6Y734SXN.js → chunk-E4JM3HUM.js} +1 -1
- package/dist/{chunk-POFKKYHY.js → chunk-EQNETGTV.js} +1 -1
- package/dist/{chunk-BBVOB4EC.js → chunk-EZ23IA3H.js} +1 -1
- package/dist/{chunk-LOP63AVE.js → chunk-FD7YU53N.js} +1 -1
- package/dist/{chunk-CPV367VS.js → chunk-FHFVBOF3.js} +1 -1
- package/dist/chunk-GHCV6UXG.js +57 -0
- package/dist/{chunk-UALYS4XI.js → chunk-GIGOTRXX.js} +9 -4
- package/dist/{chunk-BTZW34TX.js → chunk-GRB6T2TT.js} +7 -6
- package/dist/chunk-GUB7YKG2.js +35 -0
- package/dist/{chunk-POBSY7EZ.js → chunk-H2W7IYVY.js} +1 -1
- package/dist/{chunk-I5Z3A7N3.js → chunk-HG6HTUWU.js} +2 -2
- package/dist/chunk-HI7GBSW2.js +1 -0
- package/dist/{chunk-DEH2Z27F.js → chunk-HJERFB7J.js} +1 -1
- package/dist/{chunk-UTBUIBEP.js → chunk-I4BHRVRL.js} +3 -30
- package/dist/{chunk-FUJOSPNQ.js → chunk-I4URNMI7.js} +1 -1
- package/dist/{chunk-24CZFBTG.js → chunk-IIPYF6ZQ.js} +1 -1
- package/dist/{chunk-CVBAWKNG.js → chunk-IK23Q2OF.js} +32 -27
- package/dist/{chunk-4OCXGNP3.js → chunk-J2T4GFFS.js} +1 -1
- package/dist/{chunk-BJKW3G2L.js → chunk-J6TU45KP.js} +1 -1
- package/dist/chunk-JLUCMNVS.js +32 -0
- package/dist/{chunk-ELC2NBGH.js → chunk-JSD3H7WV.js} +1 -1
- package/dist/{chunk-46CFSBEO.js → chunk-KA2J5OBA.js} +3 -2
- package/dist/{chunk-OUBBOOZE.js → chunk-KM6Z3VTI.js} +1 -1
- package/dist/chunk-KQPLFVFR.js +27 -0
- package/dist/{chunk-MV7WMQI4.js → chunk-LDYD7WL3.js} +1 -1
- package/dist/{chunk-QURKXXNS.js → chunk-LGQ737BP.js} +6 -12
- package/dist/{chunk-DOHXBNOP.js → chunk-LH3BSAIS.js} +1 -1
- package/dist/chunk-LMPGHWUA.js +114 -0
- package/dist/chunk-LVPU7455.js +1 -0
- package/dist/chunk-LZB3KTSH.js +61 -0
- package/dist/{chunk-BUBYXAJK.js → chunk-M7YB3MSW.js} +1 -1
- package/dist/{chunk-V3FZHIEB.js → chunk-NCRFKPA4.js} +1 -1
- package/dist/{chunk-JKTZMWWC.js → chunk-NIX4SEKM.js} +1 -1
- package/dist/{chunk-PBLEGOLM.js → chunk-NMH5WSZG.js} +6 -5
- package/dist/{chunk-ZFVBFCYV.js → chunk-NQVRF4RB.js} +1 -1
- package/dist/{chunk-IU76LV3W.js → chunk-OASFXI27.js} +6 -6
- package/dist/chunk-OJ2TLWYD.js +89 -0
- package/dist/{chunk-MY6XUJ5P.js → chunk-OJRSPDNJ.js} +21 -14
- package/dist/chunk-P26VJEIW.js +1 -0
- package/dist/{chunk-IBCYG6HR.js → chunk-P44EROBX.js} +1 -1
- package/dist/{chunk-52KTX5A7.js → chunk-PQ6GU7SG.js} +2 -2
- package/dist/{chunk-CZUNTABW.js → chunk-PVTACENM.js} +1 -1
- package/dist/{chunk-Y45JAJKW.js → chunk-PWBPHGM3.js} +2 -2
- package/dist/chunk-Q7G5WGYV.js +33 -0
- package/dist/{chunk-BYCTJHXY.js → chunk-QCNLE27O.js} +2 -2
- package/dist/{chunk-7W2YDJ5W.js → chunk-QD7H3WV3.js} +10 -7
- package/dist/{chunk-HW3I7I3R.js → chunk-RB4CVS22.js} +1 -1
- package/dist/{chunk-ZLSUVZM2.js → chunk-RHOYF7MO.js} +17 -11
- package/dist/{chunk-QHJ43Q2T.js → chunk-RLE5RN3T.js} +1 -1
- package/dist/{chunk-7B4FS7VQ.js → chunk-RTDUTWJ4.js} +31 -14
- package/dist/{chunk-DR2Y3PIT.js → chunk-S46W2QER.js} +1 -1
- package/dist/{chunk-LAWZQ6R6.js → chunk-SVQCINRE.js} +1 -1
- package/dist/{chunk-6MYVXJPJ.js → chunk-SY6V3HAK.js} +17 -23
- package/dist/{chunk-VT7RKY46.js → chunk-TEOLG3N2.js} +1 -1
- package/dist/{chunk-A7L75YXY.js → chunk-TJCHA3OI.js} +2 -2
- package/dist/chunk-TNBBQ7IP.js +43 -0
- package/dist/{chunk-IHW2L532.js → chunk-TYTW4F3B.js} +12 -9
- package/dist/{chunk-T4IVMVMQ.js → chunk-UMC64NCT.js} +1 -1
- package/dist/chunk-V3TETH4J.js +146 -0
- package/dist/{chunk-JQDLCN5D.js → chunk-W2NEXOTG.js} +1 -1
- package/dist/{chunk-XNDCVVNE.js → chunk-WESZPFBZ.js} +2 -2
- package/dist/{chunk-DD6XCW6R.js → chunk-XR4NBY54.js} +1 -1
- package/dist/{chunk-YGOR3KT7.js → chunk-YJ3JQYAN.js} +1 -1
- package/dist/chunk-YPHNHQYQ.js +61 -0
- package/dist/chunk-YRDCY6BI.js +55 -0
- package/dist/{chunk-2VDP2ML4.js → chunk-Z3IG5WRA.js} +10 -9
- package/dist/{chunk-YUFCNHZF.js → chunk-ZV3AF5CL.js} +1 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/AlertDialog/index.js +6 -2
- package/dist/components/Amount/index.js +9 -0
- package/dist/components/AppShell/index.js +2 -2
- package/dist/components/AspectRatio/index.js +2 -2
- package/dist/components/Autocomplete/index.js +3 -3
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/AvatarGroup/index.js +3 -3
- package/dist/components/Badge/index.js +2 -2
- package/dist/components/Banner/index.js +2 -2
- package/dist/components/Box/index.js +2 -2
- package/dist/components/Breadcrumb/index.js +2 -2
- package/dist/components/Button/index.js +5 -2
- package/dist/components/ButtonGroup/index.js +3 -2
- package/dist/components/Callout/index.js +2 -2
- package/dist/components/Card/index.js +3 -3
- package/dist/components/CheckList/index.js +2 -2
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Chip/index.js +2 -2
- package/dist/components/Code/index.js +2 -2
- package/dist/components/Collapsible/index.js +2 -2
- package/dist/components/Combobox/index.js +2 -2
- package/dist/components/CommandPalette/index.js +4 -2
- package/dist/components/Container/index.js +2 -2
- package/dist/components/ContextMenu/index.js +3 -2
- package/dist/components/CountryBadge/index.js +3 -3
- package/dist/components/DataTable/index.js +2 -2
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DateRangePicker/index.js +2 -2
- package/dist/components/Dialog/index.js +4 -3
- package/dist/components/Drawer/index.js +5 -3
- package/dist/components/DropdownMenu/index.js +4 -2
- package/dist/components/EmptyState/index.js +2 -2
- package/dist/components/ErrorState/index.js +2 -2
- package/dist/components/EyebrowChip/index.js +2 -2
- package/dist/components/FileUpload/index.js +2 -2
- package/dist/components/FilterChip/index.js +2 -2
- package/dist/components/Flag/index.js +2 -2
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/FormError/index.js +2 -2
- package/dist/components/FormField/index.js +5 -5
- package/dist/components/GradientDivider/index.js +2 -2
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Heading/index.js +2 -2
- package/dist/components/HelperText/index.js +2 -2
- package/dist/components/HoverCard/index.js +3 -2
- package/dist/components/IconButton/index.js +3 -2
- package/dist/components/Input/index.js +3 -2
- package/dist/components/Kbd/index.js +2 -2
- package/dist/components/KeyboardShortcut/index.js +3 -3
- package/dist/components/Label/index.js +2 -2
- package/dist/components/Link/index.js +2 -2
- package/dist/components/Logo/index.js +2 -2
- package/dist/components/Menubar/index.js +3 -2
- package/dist/components/MoneyInput/index.js +13 -0
- package/dist/components/NavigationMenu/index.js +3 -2
- package/dist/components/NavigationRail/index.js +8 -0
- package/dist/components/NumberInput/index.js +4 -3
- package/dist/components/PageHeader/index.js +2 -2
- package/dist/components/Pagination/index.js +2 -2
- package/dist/components/PasswordInput/index.js +4 -3
- package/dist/components/Popover/index.js +4 -3
- package/dist/components/Progress/index.js +2 -2
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +3 -2
- package/dist/components/ScrollArea/index.js +2 -2
- package/dist/components/SearchInput/index.js +4 -3
- package/dist/components/Section/index.js +2 -2
- package/dist/components/SegmentedControl/index.js +4 -2
- package/dist/components/Select/index.js +4 -2
- package/dist/components/Separator/index.js +2 -2
- package/dist/components/Sidebar/index.js +2 -2
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Slider/index.js +2 -2
- package/dist/components/Spinner/index.js +2 -2
- package/dist/components/SplitButton/index.js +14 -0
- package/dist/components/Stack/index.js +2 -2
- package/dist/components/StatusPill/index.js +2 -2
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tabs/index.js +4 -2
- package/dist/components/Tag/index.js +2 -2
- package/dist/components/Text/index.js +2 -2
- package/dist/components/TextGradient/index.js +2 -2
- package/dist/components/Textarea/index.js +3 -2
- package/dist/components/ThemeProvider/index.js +1 -1
- package/dist/components/Toast/index.js +2 -2
- package/dist/components/Toggle/index.js +2 -2
- package/dist/components/ToggleGroup/index.js +3 -3
- package/dist/components/Toolbar/index.js +3 -2
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/TopNav/index.js +3 -3
- package/dist/index.d.ts +128 -21
- package/dist/index.js +162 -152
- package/package.json +8 -5
- package/dist/chunk-3CSKW56L.js +0 -44
- package/dist/chunk-AT6RPKU3.js +0 -12
- package/dist/chunk-BGY23Y5O.js +0 -104
- package/dist/chunk-DAXDAFNG.js +0 -92
- package/dist/chunk-EVCTOIRS.js +0 -66
- package/dist/chunk-GTQIA62H.js +0 -60
- package/dist/chunk-JCUVWDUC.js +0 -57
- package/dist/chunk-N2GIMMTF.js +0 -98
- package/dist/chunk-P6BZNFVU.js +0 -38
- package/dist/chunk-QRZV2FLW.js +0 -106
- package/dist/chunk-ROZVVWPV.js +0 -8
- package/dist/chunk-U3EGB3JL.js +0 -43
- package/dist/chunk-VPZCQFVY.js +0 -33
package/dist/chunk-BGY23Y5O.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Badge/Badge.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { cva } from "class-variance-authority";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
var badgeVariants = cva(
|
|
11
|
-
[
|
|
12
|
-
"inline-flex items-center gap-1 font-medium rounded-full whitespace-nowrap",
|
|
13
|
-
"transition-colors select-none"
|
|
14
|
-
],
|
|
15
|
-
{
|
|
16
|
-
variants: {
|
|
17
|
-
size: {
|
|
18
|
-
sm: "px-2 py-0.5 text-xs",
|
|
19
|
-
md: "px-2.5 py-0.5 text-sm",
|
|
20
|
-
lg: "px-3 py-1 text-sm"
|
|
21
|
-
},
|
|
22
|
-
variant: {
|
|
23
|
-
solid: "",
|
|
24
|
-
soft: "",
|
|
25
|
-
outline: "bg-transparent border"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
defaultVariants: {
|
|
29
|
-
size: "md",
|
|
30
|
-
variant: "solid"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
var toneClasses = {
|
|
35
|
-
neutral: {
|
|
36
|
-
solid: "bg-[var(--color-neutral-500)] text-white",
|
|
37
|
-
soft: "bg-[var(--color-neutral-500)]/10 text-[var(--color-neutral-700)]",
|
|
38
|
-
outline: "border-[var(--color-neutral-500)] text-[var(--color-neutral-700)]"
|
|
39
|
-
},
|
|
40
|
-
info: {
|
|
41
|
-
solid: "bg-[var(--color-fill-info)] text-white",
|
|
42
|
-
soft: "bg-[var(--color-semantic-info-default)]/10 text-[var(--color-text-info)]",
|
|
43
|
-
outline: "border-[var(--color-semantic-info-default)] text-[var(--color-text-info)]"
|
|
44
|
-
},
|
|
45
|
-
success: {
|
|
46
|
-
solid: "bg-[var(--color-fill-success)] text-white",
|
|
47
|
-
soft: "bg-[var(--color-semantic-success-default)]/10 text-[var(--color-text-success)]",
|
|
48
|
-
outline: "border-[var(--color-semantic-success-default)] text-[var(--color-text-success)]"
|
|
49
|
-
},
|
|
50
|
-
warning: {
|
|
51
|
-
solid: "bg-[var(--color-fill-warning)] text-white",
|
|
52
|
-
soft: "bg-[var(--color-semantic-warning-default)]/10 text-[var(--color-text-warning)]",
|
|
53
|
-
outline: "border-[var(--color-semantic-warning-default)] text-[var(--color-text-warning)]"
|
|
54
|
-
},
|
|
55
|
-
danger: {
|
|
56
|
-
solid: "bg-[var(--color-fill-danger)] text-white",
|
|
57
|
-
soft: "bg-[var(--color-semantic-error-default)]/10 text-[var(--color-text-danger)]",
|
|
58
|
-
outline: "border-[var(--color-semantic-error-default)] text-[var(--color-text-danger)]"
|
|
59
|
-
},
|
|
60
|
-
leap: {
|
|
61
|
-
solid: "bg-[var(--color-fill-leap)] text-white",
|
|
62
|
-
soft: "bg-[var(--color-leap-500)]/10 text-[var(--color-leap-700)]",
|
|
63
|
-
outline: "border-[var(--color-leap-500)] text-[var(--color-leap-700)]"
|
|
64
|
-
},
|
|
65
|
-
bookub: {
|
|
66
|
-
solid: "bg-[var(--color-fill-bookub)] text-white",
|
|
67
|
-
soft: "bg-[var(--color-bookub-500)]/10 text-[var(--color-bookub-700)]",
|
|
68
|
-
outline: "border-[var(--color-bookub-500)] text-[var(--color-bookub-700)]"
|
|
69
|
-
},
|
|
70
|
-
payub: {
|
|
71
|
-
solid: "bg-[var(--color-fill-payub)] text-white",
|
|
72
|
-
soft: "bg-[var(--color-payub-500)]/10 text-[var(--color-payub-700)]",
|
|
73
|
-
outline: "border-[var(--color-payub-500)] text-[var(--color-payub-700)]"
|
|
74
|
-
},
|
|
75
|
-
founderub: {
|
|
76
|
-
solid: "bg-[var(--color-fill-founderub)] text-white",
|
|
77
|
-
soft: "bg-[var(--color-founderub-500)]/10 text-[var(--color-founderub-700)]",
|
|
78
|
-
outline: "border-[var(--color-founderub-500)] text-[var(--color-founderub-700)]"
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
var Badge = React.forwardRef(
|
|
82
|
-
({ className, size, variant = "solid", tone = "neutral", leadingIcon, children, ...props }, ref) => {
|
|
83
|
-
const resolvedVariant = variant ?? "solid";
|
|
84
|
-
const toneStyle = toneClasses[tone][resolvedVariant];
|
|
85
|
-
return /* @__PURE__ */ jsxs(
|
|
86
|
-
"span",
|
|
87
|
-
{
|
|
88
|
-
ref,
|
|
89
|
-
className: cn(badgeVariants({ size, variant: resolvedVariant }), toneStyle, className),
|
|
90
|
-
...props,
|
|
91
|
-
children: [
|
|
92
|
-
leadingIcon && /* @__PURE__ */ jsx("span", { className: "shrink-0 inline-flex items-center", children: leadingIcon }),
|
|
93
|
-
children
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
Badge.displayName = "Badge";
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
badgeVariants,
|
|
103
|
-
Badge
|
|
104
|
-
};
|
package/dist/chunk-DAXDAFNG.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Chip/Chip.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { cva } from "class-variance-authority";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
var chipVariants = cva(
|
|
11
|
-
"inline-flex items-center gap-1 rounded-full font-medium select-none transition-colors",
|
|
12
|
-
{
|
|
13
|
-
variants: {
|
|
14
|
-
size: {
|
|
15
|
-
sm: "px-2 py-0.5 text-xs",
|
|
16
|
-
md: "px-2.5 py-1 text-sm"
|
|
17
|
-
},
|
|
18
|
-
tone: {
|
|
19
|
-
neutral: "bg-[var(--color-neutral-100)] text-[var(--color-neutral-700)] border border-[var(--color-neutral-200)]",
|
|
20
|
-
info: "bg-[var(--color-semantic-info-default)]/10 text-[var(--color-semantic-info-default)] border border-[var(--color-semantic-info-default)]/20",
|
|
21
|
-
success: "bg-[var(--color-semantic-success-default)]/10 text-[var(--color-semantic-success-default)] border border-[var(--color-semantic-success-default)]/20",
|
|
22
|
-
warning: "bg-[var(--color-semantic-warning-default)]/10 text-[var(--color-semantic-warning-default)] border border-[var(--color-semantic-warning-default)]/20",
|
|
23
|
-
danger: "bg-[var(--color-semantic-error-default)]/10 text-[var(--color-semantic-error-default)] border border-[var(--color-semantic-error-default)]/20",
|
|
24
|
-
leap: "bg-[var(--color-leap-500)]/10 text-[var(--color-leap-700)] border border-[var(--color-leap-500)]/20",
|
|
25
|
-
bookub: "bg-[var(--color-bookub-500)]/10 text-[var(--color-bookub-700)] border border-[var(--color-bookub-500)]/20",
|
|
26
|
-
payub: "bg-[var(--color-payub-500)]/10 text-[var(--color-payub-700)] border border-[var(--color-payub-500)]/20",
|
|
27
|
-
founderub: "bg-[var(--color-founderub-500)]/10 text-[var(--color-founderub-700)] border border-[var(--color-founderub-500)]/20"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
defaultVariants: {
|
|
31
|
-
size: "md",
|
|
32
|
-
tone: "neutral"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
var Chip = React.forwardRef(
|
|
37
|
-
({ className, size, tone = "neutral", onRemove, children, ...props }, ref) => {
|
|
38
|
-
return /* @__PURE__ */ jsxs(
|
|
39
|
-
"span",
|
|
40
|
-
{
|
|
41
|
-
ref,
|
|
42
|
-
className: cn(chipVariants({ size, tone }), className),
|
|
43
|
-
...props,
|
|
44
|
-
children: [
|
|
45
|
-
children,
|
|
46
|
-
onRemove && /* @__PURE__ */ jsx(
|
|
47
|
-
"button",
|
|
48
|
-
{
|
|
49
|
-
type: "button",
|
|
50
|
-
"aria-label": "Remove",
|
|
51
|
-
onClick: (e) => {
|
|
52
|
-
e.stopPropagation();
|
|
53
|
-
onRemove();
|
|
54
|
-
},
|
|
55
|
-
className: cn(
|
|
56
|
-
"inline-flex items-center justify-center rounded-full transition-colors",
|
|
57
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-1",
|
|
58
|
-
"hover:bg-black/10 text-current opacity-60 hover:opacity-100",
|
|
59
|
-
size === "sm" ? "w-3.5 h-3.5" : "w-4 h-4"
|
|
60
|
-
),
|
|
61
|
-
children: /* @__PURE__ */ jsx(
|
|
62
|
-
"svg",
|
|
63
|
-
{
|
|
64
|
-
width: "8",
|
|
65
|
-
height: "8",
|
|
66
|
-
viewBox: "0 0 8 8",
|
|
67
|
-
fill: "none",
|
|
68
|
-
"aria-hidden": "true",
|
|
69
|
-
children: /* @__PURE__ */ jsx(
|
|
70
|
-
"path",
|
|
71
|
-
{
|
|
72
|
-
d: "M7 1L1 7M1 1l6 6",
|
|
73
|
-
stroke: "currentColor",
|
|
74
|
-
strokeWidth: "1.5",
|
|
75
|
-
strokeLinecap: "round"
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
Chip.displayName = "Chip";
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
chipVariants,
|
|
91
|
-
Chip
|
|
92
|
-
};
|
package/dist/chunk-EVCTOIRS.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Tabs/Tabs.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var Root2 = React.forwardRef(
|
|
11
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixTabs.Root, { ref, className: cn("flex flex-col gap-2", className), ...props })
|
|
12
|
-
);
|
|
13
|
-
Root2.displayName = "Tabs.Root";
|
|
14
|
-
var List2 = React.forwardRef(
|
|
15
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
-
RadixTabs.List,
|
|
17
|
-
{
|
|
18
|
-
ref,
|
|
19
|
-
className: cn(
|
|
20
|
-
"flex h-9 w-full items-center justify-start overflow-x-auto rounded-lg bg-[var(--color-bg-subtle)] p-1 text-[var(--color-text-muted)] gap-0.5",
|
|
21
|
-
className
|
|
22
|
-
),
|
|
23
|
-
...props
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
);
|
|
27
|
-
List2.displayName = "Tabs.List";
|
|
28
|
-
var Trigger2 = React.forwardRef(
|
|
29
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
30
|
-
RadixTabs.Trigger,
|
|
31
|
-
{
|
|
32
|
-
ref,
|
|
33
|
-
className: cn(
|
|
34
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all",
|
|
35
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
36
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
37
|
-
"data-[state=active]:bg-[var(--color-bg-default)] data-[state=active]:text-[var(--color-text-primary)] data-[state=active]:shadow-sm",
|
|
38
|
-
className
|
|
39
|
-
),
|
|
40
|
-
...props
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
);
|
|
44
|
-
Trigger2.displayName = "Tabs.Trigger";
|
|
45
|
-
var Content2 = React.forwardRef(
|
|
46
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
47
|
-
RadixTabs.Content,
|
|
48
|
-
{
|
|
49
|
-
ref,
|
|
50
|
-
className: cn(
|
|
51
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
52
|
-
className,
|
|
53
|
-
// Radix hides inactive panels with the `hidden` attribute, which any
|
|
54
|
-
// display class (`flex`, `md:grid`…) overrides. !important always wins.
|
|
55
|
-
"data-[state=inactive]:!hidden"
|
|
56
|
-
),
|
|
57
|
-
...props
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
);
|
|
61
|
-
Content2.displayName = "Tabs.Content";
|
|
62
|
-
var Tabs = { Root: Root2, List: List2, Trigger: Trigger2, Content: Content2 };
|
|
63
|
-
|
|
64
|
-
export {
|
|
65
|
-
Tabs
|
|
66
|
-
};
|
package/dist/chunk-GTQIA62H.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/IconButton/IconButton.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
9
|
-
import { cva } from "class-variance-authority";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var iconButtonVariants = cva(
|
|
12
|
-
[
|
|
13
|
-
"inline-flex items-center justify-center rounded-md transition-colors flex-shrink-0",
|
|
14
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
15
|
-
"disabled:opacity-50 disabled:pointer-events-none",
|
|
16
|
-
"select-none"
|
|
17
|
-
],
|
|
18
|
-
{
|
|
19
|
-
variants: {
|
|
20
|
-
variant: {
|
|
21
|
-
ghost: "bg-transparent text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]",
|
|
22
|
-
solid: "bg-[var(--color-fill-primary)] text-white hover:bg-[var(--color-fill-primary-hover)]",
|
|
23
|
-
outline: "bg-transparent border border-[var(--color-border-default)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]",
|
|
24
|
-
subtle: "bg-[var(--color-bg-subtle)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-muted)]"
|
|
25
|
-
},
|
|
26
|
-
size: {
|
|
27
|
-
xs: "h-7 w-7 text-xs",
|
|
28
|
-
sm: "h-8 w-8 text-sm",
|
|
29
|
-
md: "h-9 w-9 text-sm",
|
|
30
|
-
lg: "h-10 w-10 text-base",
|
|
31
|
-
xl: "h-12 w-12 text-base"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
variant: "ghost",
|
|
36
|
-
size: "md"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
var IconButton = React.forwardRef(
|
|
41
|
-
({ className, variant, size, label, asChild = false, children, ...props }, ref) => {
|
|
42
|
-
const Comp = asChild ? Slot : "button";
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
Comp,
|
|
45
|
-
{
|
|
46
|
-
ref,
|
|
47
|
-
"aria-label": label,
|
|
48
|
-
className: cn(iconButtonVariants({ variant, size }), className),
|
|
49
|
-
...props,
|
|
50
|
-
children
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
IconButton.displayName = "IconButton";
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
iconButtonVariants,
|
|
59
|
-
IconButton
|
|
60
|
-
};
|
package/dist/chunk-JCUVWDUC.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var sizeMap = {
|
|
11
|
-
sm: "h-7 px-2.5 text-xs",
|
|
12
|
-
md: "h-8 px-3 text-sm",
|
|
13
|
-
lg: "h-9 px-4 text-sm"
|
|
14
|
-
};
|
|
15
|
-
var SegmentedControlContext = React.createContext({ size: "md" });
|
|
16
|
-
var Root2 = React.forwardRef(
|
|
17
|
-
({ className, size = "md", children, ...props }, ref) => /* @__PURE__ */ jsx(SegmentedControlContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx(
|
|
18
|
-
RadixToggleGroup.Root,
|
|
19
|
-
{
|
|
20
|
-
ref,
|
|
21
|
-
type: "single",
|
|
22
|
-
className: cn(
|
|
23
|
-
"inline-flex items-center rounded-lg bg-[var(--color-bg-subtle)] p-0.5 gap-0.5",
|
|
24
|
-
className
|
|
25
|
-
),
|
|
26
|
-
...props,
|
|
27
|
-
children
|
|
28
|
-
}
|
|
29
|
-
) })
|
|
30
|
-
);
|
|
31
|
-
Root2.displayName = "SegmentedControl.Root";
|
|
32
|
-
var Item2 = React.forwardRef(
|
|
33
|
-
({ className, ...props }, ref) => {
|
|
34
|
-
const { size } = React.useContext(SegmentedControlContext);
|
|
35
|
-
return /* @__PURE__ */ jsx(
|
|
36
|
-
RadixToggleGroup.Item,
|
|
37
|
-
{
|
|
38
|
-
ref,
|
|
39
|
-
className: cn(
|
|
40
|
-
"inline-flex items-center justify-center rounded-md font-medium transition-all",
|
|
41
|
-
"text-[var(--color-text-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)]",
|
|
42
|
-
"data-[state=on]:bg-[var(--color-bg-default)] data-[state=on]:text-[var(--color-text-primary)] data-[state=on]:shadow-sm",
|
|
43
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
44
|
-
sizeMap[size],
|
|
45
|
-
className
|
|
46
|
-
),
|
|
47
|
-
...props
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
Item2.displayName = "SegmentedControl.Item";
|
|
53
|
-
var SegmentedControl = { Root: Root2, Item: Item2 };
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
SegmentedControl
|
|
57
|
-
};
|
package/dist/chunk-N2GIMMTF.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Button/Button.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
9
|
-
import { Loader2 } from "@nexub/icons";
|
|
10
|
-
import { cva } from "class-variance-authority";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
var toneClasses = {
|
|
13
|
-
neutral: "bg-[var(--color-bg-subtle)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-muted)]",
|
|
14
|
-
info: "bg-[var(--color-fill-info)] text-white hover:bg-[var(--color-fill-info-hover)]",
|
|
15
|
-
success: "bg-[var(--color-fill-success)] text-white hover:bg-[var(--color-fill-success-hover)]",
|
|
16
|
-
warning: "bg-[var(--color-fill-warning)] text-white hover:bg-[var(--color-fill-warning-hover)]",
|
|
17
|
-
danger: "bg-[var(--color-fill-danger)] text-white hover:bg-[var(--color-fill-danger-hover)]",
|
|
18
|
-
leap: "bg-[var(--color-fill-leap)] text-white hover:bg-[var(--color-fill-leap-hover)]",
|
|
19
|
-
bookub: "bg-[var(--color-fill-bookub)] text-white hover:bg-[var(--color-fill-bookub-hover)]",
|
|
20
|
-
payub: "bg-[var(--color-fill-payub)] text-white hover:bg-[var(--color-fill-payub-hover)]",
|
|
21
|
-
founderub: "bg-[var(--color-fill-founderub)] text-white hover:bg-[var(--color-fill-founderub-hover)]"
|
|
22
|
-
};
|
|
23
|
-
var buttonVariants = cva(
|
|
24
|
-
[
|
|
25
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium transition-colors",
|
|
26
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
27
|
-
"disabled:opacity-50 disabled:pointer-events-none",
|
|
28
|
-
"select-none"
|
|
29
|
-
],
|
|
30
|
-
{
|
|
31
|
-
variants: {
|
|
32
|
-
variant: {
|
|
33
|
-
primary: "bg-[var(--color-fill-primary)] text-white hover:bg-[var(--color-fill-primary-hover)]",
|
|
34
|
-
secondary: "bg-[var(--color-bg-subtle)] text-[var(--color-text-primary)] border border-[var(--color-border-default)] hover:bg-[var(--color-bg-muted)]",
|
|
35
|
-
subtle: "bg-[var(--color-bg-subtle)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-muted)]",
|
|
36
|
-
ghost: "bg-transparent text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]",
|
|
37
|
-
outline: "bg-transparent border border-[var(--color-border-default)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]",
|
|
38
|
-
destructive: "bg-[var(--color-fill-danger)] text-white hover:bg-[var(--color-fill-danger-hover)]",
|
|
39
|
-
accent: "bg-[var(--color-fill-accent)] text-white hover:bg-[var(--color-fill-accent-hover)]",
|
|
40
|
-
link: "bg-transparent text-[var(--color-text-primary)] underline-offset-4 hover:underline"
|
|
41
|
-
},
|
|
42
|
-
size: {
|
|
43
|
-
xs: "h-7 px-2.5 text-xs",
|
|
44
|
-
sm: "h-8 px-3 text-sm",
|
|
45
|
-
md: "h-9 px-4 text-sm",
|
|
46
|
-
lg: "h-10 px-5 text-base",
|
|
47
|
-
xl: "h-12 px-6 text-base"
|
|
48
|
-
},
|
|
49
|
-
fullWidth: {
|
|
50
|
-
true: "w-full"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
defaultVariants: {
|
|
54
|
-
variant: "primary",
|
|
55
|
-
size: "md"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
var Button = React.forwardRef(
|
|
60
|
-
({
|
|
61
|
-
className,
|
|
62
|
-
variant,
|
|
63
|
-
size,
|
|
64
|
-
tone,
|
|
65
|
-
loading = false,
|
|
66
|
-
fullWidth,
|
|
67
|
-
leadingIcon,
|
|
68
|
-
trailingIcon,
|
|
69
|
-
asChild = false,
|
|
70
|
-
disabled,
|
|
71
|
-
children,
|
|
72
|
-
...props
|
|
73
|
-
}, ref) => {
|
|
74
|
-
const sharedProps = {
|
|
75
|
-
className: cn(
|
|
76
|
-
buttonVariants({ variant, size, fullWidth }),
|
|
77
|
-
tone ? toneClasses[tone] : "",
|
|
78
|
-
className
|
|
79
|
-
),
|
|
80
|
-
"data-tone": tone,
|
|
81
|
-
...props
|
|
82
|
-
};
|
|
83
|
-
if (asChild) {
|
|
84
|
-
return /* @__PURE__ */ jsx(Slot, { ref, ...sharedProps, children });
|
|
85
|
-
}
|
|
86
|
-
return /* @__PURE__ */ jsxs("button", { ref, disabled: disabled ?? loading, ...sharedProps, children: [
|
|
87
|
-
loading ? /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }) : leadingIcon,
|
|
88
|
-
children,
|
|
89
|
-
!loading && trailingIcon
|
|
90
|
-
] });
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
Button.displayName = "Button";
|
|
94
|
-
|
|
95
|
-
export {
|
|
96
|
-
buttonVariants,
|
|
97
|
-
Button
|
|
98
|
-
};
|
package/dist/chunk-P6BZNFVU.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Slider/Slider.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import * as RadixSlider from "@radix-ui/react-slider";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
var Slider = React.forwardRef(
|
|
11
|
-
({ className, thumbLabels, "aria-label": ariaLabel, ...props }, ref) => {
|
|
12
|
-
const count = (props.value ?? props.defaultValue ?? [0]).length;
|
|
13
|
-
return /* @__PURE__ */ jsxs(
|
|
14
|
-
RadixSlider.Root,
|
|
15
|
-
{
|
|
16
|
-
ref,
|
|
17
|
-
className: cn("relative flex w-full touch-none select-none items-center", className),
|
|
18
|
-
...props,
|
|
19
|
-
children: [
|
|
20
|
-
/* @__PURE__ */ jsx(RadixSlider.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-[var(--color-bg-muted)]", children: /* @__PURE__ */ jsx(RadixSlider.Range, { className: "absolute h-full bg-[var(--color-fill-primary)]" }) }),
|
|
21
|
-
Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx(
|
|
22
|
-
RadixSlider.Thumb,
|
|
23
|
-
{
|
|
24
|
-
"aria-label": thumbLabels?.[i] ?? ariaLabel,
|
|
25
|
-
className: "block h-5 w-5 rounded-full border-2 border-[var(--color-fill-primary)] bg-[var(--color-bg-default)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)] disabled:pointer-events-none disabled:opacity-50"
|
|
26
|
-
},
|
|
27
|
-
i
|
|
28
|
-
))
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
Slider.displayName = "Slider";
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
Slider
|
|
38
|
-
};
|
package/dist/chunk-QRZV2FLW.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/CommandPalette/CommandPalette.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
9
|
-
import { Command } from "cmdk";
|
|
10
|
-
import { Search } from "@nexub/icons";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
var Root2 = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(RadixDialog.Root, { ...props, children: /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
|
|
13
|
-
/* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "fixed inset-0 z-[var(--z-modal)] bg-[var(--color-overlay)] backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0" }),
|
|
14
|
-
/* @__PURE__ */ jsx(
|
|
15
|
-
RadixDialog.Content,
|
|
16
|
-
{
|
|
17
|
-
ref,
|
|
18
|
-
className: cn(
|
|
19
|
-
"fixed left-1/2 top-[20%] z-[var(--z-modal)] w-full max-w-xl -translate-x-1/2",
|
|
20
|
-
"overflow-hidden rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-default)] shadow-2xl",
|
|
21
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
22
|
-
"data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
23
|
-
"data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"
|
|
24
|
-
),
|
|
25
|
-
children: /* @__PURE__ */ jsx(Command, { className: "flex h-full w-full flex-col overflow-hidden text-[var(--color-text-primary)]", children })
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
] }) }));
|
|
29
|
-
Root2.displayName = "CommandPalette.Root";
|
|
30
|
-
var Input = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b border-[var(--color-border-default)] px-3", children: [
|
|
31
|
-
/* @__PURE__ */ jsx(Search, { size: "sm", className: "mr-2 shrink-0 opacity-50", "aria-hidden": "true" }),
|
|
32
|
-
/* @__PURE__ */ jsx(
|
|
33
|
-
Command.Input,
|
|
34
|
-
{
|
|
35
|
-
ref,
|
|
36
|
-
className: cn(
|
|
37
|
-
"flex h-12 w-full bg-transparent py-3 text-sm outline-none placeholder:text-[var(--color-text-muted)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
38
|
-
className
|
|
39
|
-
),
|
|
40
|
-
...props
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
] }));
|
|
44
|
-
Input.displayName = "CommandPalette.Input";
|
|
45
|
-
var List = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
46
|
-
Command.List,
|
|
47
|
-
{
|
|
48
|
-
ref,
|
|
49
|
-
className: cn("max-h-[400px] overflow-y-auto overflow-x-hidden p-2", className),
|
|
50
|
-
...props
|
|
51
|
-
}
|
|
52
|
-
));
|
|
53
|
-
List.displayName = "CommandPalette.List";
|
|
54
|
-
var Empty = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
55
|
-
Command.Empty,
|
|
56
|
-
{
|
|
57
|
-
ref,
|
|
58
|
-
className: cn(
|
|
59
|
-
"py-8 text-center text-sm text-[var(--color-text-muted)]",
|
|
60
|
-
className
|
|
61
|
-
),
|
|
62
|
-
...props
|
|
63
|
-
}
|
|
64
|
-
));
|
|
65
|
-
Empty.displayName = "CommandPalette.Empty";
|
|
66
|
-
var Group = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
67
|
-
Command.Group,
|
|
68
|
-
{
|
|
69
|
-
ref,
|
|
70
|
-
className: cn(
|
|
71
|
-
"overflow-hidden p-1 text-[var(--color-text-primary)]",
|
|
72
|
-
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)]",
|
|
73
|
-
className
|
|
74
|
-
),
|
|
75
|
-
...props
|
|
76
|
-
}
|
|
77
|
-
));
|
|
78
|
-
Group.displayName = "CommandPalette.Group";
|
|
79
|
-
var Item = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
80
|
-
Command.Item,
|
|
81
|
-
{
|
|
82
|
-
ref,
|
|
83
|
-
className: cn(
|
|
84
|
-
"relative flex cursor-default select-none items-center rounded-md px-3 py-2 text-sm outline-none",
|
|
85
|
-
"aria-selected:bg-[var(--color-bg-subtle)] aria-selected:text-[var(--color-text-primary)]",
|
|
86
|
-
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
87
|
-
className
|
|
88
|
-
),
|
|
89
|
-
...props
|
|
90
|
-
}
|
|
91
|
-
));
|
|
92
|
-
Item.displayName = "CommandPalette.Item";
|
|
93
|
-
var Separator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
94
|
-
Command.Separator,
|
|
95
|
-
{
|
|
96
|
-
ref,
|
|
97
|
-
className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
|
|
98
|
-
...props
|
|
99
|
-
}
|
|
100
|
-
));
|
|
101
|
-
Separator.displayName = "CommandPalette.Separator";
|
|
102
|
-
var CommandPalette = { Root: Root2, Input, List, Empty, Group, Item, Separator };
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
CommandPalette
|
|
106
|
-
};
|
package/dist/chunk-ROZVVWPV.js
DELETED
package/dist/chunk-U3EGB3JL.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-AT6RPKU3.js";
|
|
5
|
-
|
|
6
|
-
// src/components/Toggle/Toggle.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import * as RadixToggle from "@radix-ui/react-toggle";
|
|
9
|
-
import { cva } from "class-variance-authority";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var toggleVariants = cva(
|
|
12
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)] disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--color-bg-subtle)] data-[state=on]:text-[var(--color-text-primary)]",
|
|
13
|
-
{
|
|
14
|
-
variants: {
|
|
15
|
-
variant: {
|
|
16
|
-
default: "bg-transparent hover:bg-[var(--color-bg-subtle)] hover:text-[var(--color-text-primary)]",
|
|
17
|
-
outline: "border border-[var(--color-border-default)] bg-transparent hover:bg-[var(--color-bg-subtle)]"
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
sm: "h-8 px-2.5",
|
|
21
|
-
md: "h-9 px-3",
|
|
22
|
-
lg: "h-10 px-4"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
defaultVariants: { variant: "default", size: "md" }
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
var Toggle = React.forwardRef(
|
|
29
|
-
({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
30
|
-
RadixToggle.Root,
|
|
31
|
-
{
|
|
32
|
-
ref,
|
|
33
|
-
className: cn(toggleVariants({ variant, size }), className),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
Toggle.displayName = "Toggle";
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
toggleVariants,
|
|
42
|
-
Toggle
|
|
43
|
-
};
|