@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
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import {
|
|
3
|
+
enterExit,
|
|
4
|
+
overlaySurface,
|
|
5
|
+
scrim
|
|
6
|
+
} from "./chunk-KQPLFVFR.js";
|
|
7
|
+
import {
|
|
8
|
+
buttonVariants
|
|
9
|
+
} from "./chunk-LMPGHWUA.js";
|
|
2
10
|
import {
|
|
3
11
|
cn
|
|
4
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
5
13
|
|
|
6
14
|
// src/components/AlertDialog/AlertDialog.tsx
|
|
7
15
|
import * as React from "react";
|
|
@@ -17,7 +25,9 @@ var Overlay2 = React.forwardRef(
|
|
|
17
25
|
{
|
|
18
26
|
ref,
|
|
19
27
|
className: cn(
|
|
20
|
-
"fixed inset-0 z-[var(--z-modal)]
|
|
28
|
+
"fixed inset-0 z-[var(--z-modal)]",
|
|
29
|
+
scrim,
|
|
30
|
+
enterExit,
|
|
21
31
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
22
32
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
23
33
|
className
|
|
@@ -36,7 +46,8 @@ var Content2 = React.forwardRef(
|
|
|
36
46
|
ref,
|
|
37
47
|
className: cn(
|
|
38
48
|
"fixed left-1/2 top-1/2 z-[var(--z-modal)] w-full max-w-lg -translate-x-1/2 -translate-y-1/2",
|
|
39
|
-
|
|
49
|
+
overlaySurface,
|
|
50
|
+
enterExit,
|
|
40
51
|
"p-6 focus:outline-none",
|
|
41
52
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
42
53
|
"data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
@@ -95,10 +106,8 @@ var Action2 = React.forwardRef(
|
|
|
95
106
|
{
|
|
96
107
|
ref,
|
|
97
108
|
className: cn(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"focus-visible:ring-2 focus-visible:ring-red-600 focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
101
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
109
|
+
// The destructive confirm: same as <Button variant="destructive">.
|
|
110
|
+
buttonVariants({ variant: "destructive" }),
|
|
102
111
|
className
|
|
103
112
|
),
|
|
104
113
|
...props
|
|
@@ -114,10 +123,7 @@ var Cancel2 = React.forwardRef(
|
|
|
114
123
|
{
|
|
115
124
|
ref,
|
|
116
125
|
className: cn(
|
|
117
|
-
|
|
118
|
-
"bg-[var(--color-bg-default)] text-[var(--color-text-primary)] hover:bg-[var(--color-bg-subtle)]",
|
|
119
|
-
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
120
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
126
|
+
buttonVariants({ variant: "outlined" }),
|
|
121
127
|
className
|
|
122
128
|
),
|
|
123
129
|
...props
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import {
|
|
3
|
+
enterExit,
|
|
4
|
+
floatingSurface,
|
|
5
|
+
menuLabel,
|
|
6
|
+
menuSeparator
|
|
7
|
+
} from "./chunk-KQPLFVFR.js";
|
|
8
|
+
import {
|
|
9
|
+
field,
|
|
10
|
+
fieldFocusVisible,
|
|
11
|
+
fieldInvalid
|
|
12
|
+
} from "./chunk-7SXR4PGO.js";
|
|
2
13
|
import {
|
|
3
14
|
cn
|
|
4
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
5
16
|
|
|
6
17
|
// src/components/Select/Select.tsx
|
|
7
18
|
import * as React from "react";
|
|
@@ -17,18 +28,21 @@ var Trigger2 = React.forwardRef(
|
|
|
17
28
|
{
|
|
18
29
|
ref,
|
|
19
30
|
className: cn(
|
|
20
|
-
"flex h-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
"flex h-control-md w-full items-center justify-between gap-2 px-3.5 text-body-md",
|
|
32
|
+
field,
|
|
33
|
+
fieldFocusVisible,
|
|
34
|
+
// Open reads like focus: the 2px primary border.
|
|
35
|
+
"data-[state=open]:border-[var(--color-primary)] data-[state=open]:shadow-[inset_0_0_0_1px_var(--color-primary)]",
|
|
36
|
+
"data-[placeholder]:text-[var(--color-text-placeholder)]",
|
|
37
|
+
"disabled:cursor-not-allowed disabled:border-[var(--color-outline-variant)] disabled:bg-[var(--color-surface-container-low)] disabled:text-[var(--color-text-disabled)]",
|
|
38
|
+
invalid && fieldInvalid,
|
|
25
39
|
"[&>span]:line-clamp-1",
|
|
26
40
|
className
|
|
27
41
|
),
|
|
28
42
|
...props,
|
|
29
43
|
children: [
|
|
30
44
|
children,
|
|
31
|
-
/* @__PURE__ */ jsx(RadixSelect.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { size: "sm", className: "
|
|
45
|
+
/* @__PURE__ */ jsx(RadixSelect.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { size: "sm", className: "shrink-0 text-[var(--color-on-surface-variant)]", "aria-hidden": "true" }) })
|
|
32
46
|
]
|
|
33
47
|
}
|
|
34
48
|
)
|
|
@@ -64,7 +78,9 @@ var Content2 = React.forwardRef(
|
|
|
64
78
|
{
|
|
65
79
|
ref,
|
|
66
80
|
className: cn(
|
|
67
|
-
"relative z-[var(--z-popover)] max-h-96 min-w-32 overflow-hidden
|
|
81
|
+
"relative z-[var(--z-popover)] max-h-96 min-w-32 overflow-hidden",
|
|
82
|
+
floatingSurface,
|
|
83
|
+
enterExit,
|
|
68
84
|
"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",
|
|
69
85
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
70
86
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 w-[var(--radix-select-trigger-width)]",
|
|
@@ -78,7 +94,7 @@ var Content2 = React.forwardRef(
|
|
|
78
94
|
RadixSelect.Viewport,
|
|
79
95
|
{
|
|
80
96
|
className: cn(
|
|
81
|
-
"p-1",
|
|
97
|
+
"p-1.5",
|
|
82
98
|
position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
83
99
|
),
|
|
84
100
|
children
|
|
@@ -95,7 +111,7 @@ var Label2 = React.forwardRef(
|
|
|
95
111
|
RadixSelect.Label,
|
|
96
112
|
{
|
|
97
113
|
ref,
|
|
98
|
-
className: cn(
|
|
114
|
+
className: cn(menuLabel, className),
|
|
99
115
|
...props
|
|
100
116
|
}
|
|
101
117
|
)
|
|
@@ -107,9 +123,10 @@ var Item2 = React.forwardRef(
|
|
|
107
123
|
{
|
|
108
124
|
ref,
|
|
109
125
|
className: cn(
|
|
110
|
-
"relative flex w-full cursor-default select-none items-center rounded-
|
|
111
|
-
|
|
112
|
-
"
|
|
126
|
+
"relative flex w-full cursor-default select-none items-center rounded-[10px] py-2 pl-8 pr-2 text-body-sm text-[var(--color-on-surface)] outline-none",
|
|
127
|
+
// Highlight = the on-surface state layer at hover opacity.
|
|
128
|
+
"focus:bg-[color-mix(in_srgb,var(--color-on-surface)_8%,transparent)]",
|
|
129
|
+
"data-[disabled]:pointer-events-none data-[disabled]:text-[var(--color-text-disabled)]",
|
|
113
130
|
className
|
|
114
131
|
),
|
|
115
132
|
...props,
|
|
@@ -126,7 +143,7 @@ var Separator2 = React.forwardRef(
|
|
|
126
143
|
RadixSelect.Separator,
|
|
127
144
|
{
|
|
128
145
|
ref,
|
|
129
|
-
className: cn(
|
|
146
|
+
className: cn(menuSeparator, className),
|
|
130
147
|
...props
|
|
131
148
|
}
|
|
132
149
|
)
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import {
|
|
3
|
+
useClassScrollLock
|
|
4
|
+
} from "./chunk-47UGX37F.js";
|
|
5
|
+
import {
|
|
6
|
+
scrim
|
|
7
|
+
} from "./chunk-KQPLFVFR.js";
|
|
2
8
|
import {
|
|
3
9
|
glassSurfaceClass
|
|
4
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DEIBF3P7.js";
|
|
5
11
|
import {
|
|
6
12
|
cn
|
|
7
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
8
14
|
|
|
9
15
|
// src/components/Drawer/Drawer.tsx
|
|
10
16
|
import * as React2 from "react";
|
|
@@ -1521,19 +1527,6 @@ Root3.displayName = "Drawer.Root";
|
|
|
1521
1527
|
var Trigger2 = Drawer.Trigger;
|
|
1522
1528
|
var Close2 = Drawer.Close;
|
|
1523
1529
|
var Portal3 = Drawer.Portal;
|
|
1524
|
-
var scrollLocks = 0;
|
|
1525
|
-
function useClassScrollLock() {
|
|
1526
|
-
React2.useEffect(() => {
|
|
1527
|
-
const html = document.documentElement;
|
|
1528
|
-
if (scrollLocks++ === 0) {
|
|
1529
|
-
html.classList.toggle("nexub-scroll-gutter", window.innerWidth > html.clientWidth);
|
|
1530
|
-
html.classList.add("nexub-scroll-lock");
|
|
1531
|
-
}
|
|
1532
|
-
return () => {
|
|
1533
|
-
if (--scrollLocks === 0) html.classList.remove("nexub-scroll-lock", "nexub-scroll-gutter");
|
|
1534
|
-
};
|
|
1535
|
-
}, []);
|
|
1536
|
-
}
|
|
1537
1530
|
var ClassLockOverlay = React2.forwardRef(
|
|
1538
1531
|
({ asChild, forceMount: _forceMount, open, ...props }, ref) => {
|
|
1539
1532
|
useClassScrollLock();
|
|
@@ -1553,7 +1546,7 @@ var ClassLockOverlay = React2.forwardRef(
|
|
|
1553
1546
|
var Overlay3 = React2.forwardRef(
|
|
1554
1547
|
({ className, ...props }, ref) => {
|
|
1555
1548
|
const { scrollLock, open, modal } = React2.useContext(DrawerContext2);
|
|
1556
|
-
const classes = cn("fixed inset-0 z-[var(--z-modal)]
|
|
1549
|
+
const classes = cn("fixed inset-0 z-[var(--z-modal)]", scrim, className);
|
|
1557
1550
|
if (scrollLock === "class") {
|
|
1558
1551
|
if (!modal) return null;
|
|
1559
1552
|
return /* @__PURE__ */ jsx(ClassLockOverlay, { ref, open, className: cn("pointer-events-auto", classes), ...props });
|
|
@@ -1564,22 +1557,23 @@ var Overlay3 = React2.forwardRef(
|
|
|
1564
1557
|
Overlay3.displayName = "Drawer.Overlay";
|
|
1565
1558
|
var Content3 = React2.forwardRef(({ className, children, side = "right", surface = "solid", ...props }, ref) => {
|
|
1566
1559
|
const sideMap = {
|
|
1567
|
-
right: "inset-y-0 right-0 h-full w-3/4 max-w-sm
|
|
1568
|
-
left: "inset-y-0 left-0 h-full w-3/4 max-w-sm
|
|
1569
|
-
top: "inset-x-0 top-0 w-full
|
|
1570
|
-
bottom: "inset-x-0 bottom-0 w-full
|
|
1560
|
+
right: "inset-y-0 right-0 h-full w-3/4 max-w-sm overflow-x-hidden",
|
|
1561
|
+
left: "inset-y-0 left-0 h-full w-3/4 max-w-sm overflow-x-hidden",
|
|
1562
|
+
top: "inset-x-0 top-0 w-full rounded-b-[var(--shape-overlay)]",
|
|
1563
|
+
bottom: "inset-x-0 bottom-0 w-full rounded-t-[var(--shape-overlay)]"
|
|
1571
1564
|
};
|
|
1572
1565
|
return /* @__PURE__ */ jsxs(
|
|
1573
1566
|
Drawer.Content,
|
|
1574
1567
|
{
|
|
1575
1568
|
ref,
|
|
1576
1569
|
className: cn(
|
|
1577
|
-
"fixed z-[var(--z-modal)] flex flex-col bg-[var(--color-
|
|
1570
|
+
"fixed z-[var(--z-modal)] flex flex-col bg-[var(--color-surface-elevated)] text-[var(--color-on-surface)] shadow-elevation-3 focus:outline-none",
|
|
1578
1571
|
sideMap[side],
|
|
1579
1572
|
surface === "glass" && glassSurfaceClass,
|
|
1580
1573
|
className
|
|
1581
1574
|
),
|
|
1582
1575
|
"data-material": surface === "glass" ? "glass" : void 0,
|
|
1576
|
+
"data-glass-thickness": surface === "glass" ? "thick" : void 0,
|
|
1583
1577
|
...props,
|
|
1584
1578
|
children: [
|
|
1585
1579
|
side === "bottom" && /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-20 rounded-full bg-[var(--color-border-default)]" }),
|
|
@@ -1594,7 +1588,7 @@ var Title2 = React2.forwardRef(
|
|
|
1594
1588
|
Drawer.Title,
|
|
1595
1589
|
{
|
|
1596
1590
|
ref,
|
|
1597
|
-
className: cn("text-lg
|
|
1591
|
+
className: cn("text-title-lg text-[var(--color-on-surface)]", className),
|
|
1598
1592
|
...props
|
|
1599
1593
|
}
|
|
1600
1594
|
)
|
|
@@ -1605,7 +1599,7 @@ var Description2 = React2.forwardRef(
|
|
|
1605
1599
|
Drawer.Description,
|
|
1606
1600
|
{
|
|
1607
1601
|
ref,
|
|
1608
|
-
className: cn("text-sm text-[var(--color-
|
|
1602
|
+
className: cn("text-body-sm text-[var(--color-on-surface-muted)]", className),
|
|
1609
1603
|
...props
|
|
1610
1604
|
}
|
|
1611
1605
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IK23Q2OF.js";
|
|
5
5
|
import {
|
|
6
6
|
cn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
8
8
|
|
|
9
9
|
// src/components/SearchInput/SearchInput.tsx
|
|
10
10
|
import * as React from "react";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-Q7G5WGYV.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("group relative flex h-control-sm w-full touch-none select-none items-center", className),
|
|
18
|
+
...props,
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ jsx(RadixSlider.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-[var(--color-surface-container-highest)]", children: /* @__PURE__ */ jsx(RadixSlider.Range, { className: "absolute h-full bg-[var(--color-primary)] group-data-[disabled]:bg-[var(--color-text-disabled)]" }) }),
|
|
21
|
+
Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx(
|
|
22
|
+
RadixSlider.Thumb,
|
|
23
|
+
{
|
|
24
|
+
"aria-label": thumbLabels?.[i] ?? ariaLabel,
|
|
25
|
+
className: cn(
|
|
26
|
+
"nx-state-layer block h-5 w-5 rounded-full border-2 border-[var(--color-surface-container-lowest)] bg-[var(--color-primary)] text-[var(--color-primary)] shadow-elevation-1",
|
|
27
|
+
"before:-inset-2.5 cursor-grab active:cursor-grabbing",
|
|
28
|
+
// Opaque disabled knob (text-disabled is translucent and would show the range through it).
|
|
29
|
+
"group-data-[disabled]:pointer-events-none group-data-[disabled]:bg-[color-mix(in_srgb,var(--color-on-surface)_38%,var(--color-surface))]"
|
|
30
|
+
)
|
|
31
|
+
},
|
|
32
|
+
i
|
|
33
|
+
))
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
Slider.displayName = "Slider";
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
Slider
|
|
43
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
cn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
5
5
|
|
|
6
6
|
// src/components/Toast/Toast.tsx
|
|
7
7
|
import * as React from "react";
|
|
@@ -28,7 +28,9 @@ var Root2 = React.forwardRef(
|
|
|
28
28
|
{
|
|
29
29
|
ref,
|
|
30
30
|
className: cn(
|
|
31
|
-
|
|
31
|
+
// Snackbar: the inverse surface stands out from any page, light or dark.
|
|
32
|
+
"group pointer-events-auto relative flex w-full items-center justify-between gap-3 overflow-hidden rounded-shape-container bg-[var(--color-inverse-surface)] py-3 pl-4 pr-2 text-[var(--color-inverse-on-surface)] shadow-elevation-2",
|
|
33
|
+
"duration-spatial-default ease-spatial-default data-[state=closed]:duration-effects-fast",
|
|
32
34
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=closed]:slide-out-to-right-full",
|
|
33
35
|
className
|
|
34
36
|
),
|
|
@@ -38,7 +40,7 @@ var Root2 = React.forwardRef(
|
|
|
38
40
|
);
|
|
39
41
|
Root2.displayName = "Toast.Root";
|
|
40
42
|
var Title2 = React.forwardRef(
|
|
41
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixToast.Title, { ref, className: cn("text-sm
|
|
43
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixToast.Title, { ref, className: cn("text-title-sm", className), ...props })
|
|
42
44
|
);
|
|
43
45
|
Title2.displayName = "Toast.Title";
|
|
44
46
|
var Description2 = React.forwardRef(
|
|
@@ -46,7 +48,7 @@ var Description2 = React.forwardRef(
|
|
|
46
48
|
RadixToast.Description,
|
|
47
49
|
{
|
|
48
50
|
ref,
|
|
49
|
-
className: cn("text-sm text-[var(--color-
|
|
51
|
+
className: cn("text-body-sm text-[color-mix(in_srgb,var(--color-inverse-on-surface)_80%,transparent)]", className),
|
|
50
52
|
...props
|
|
51
53
|
}
|
|
52
54
|
)
|
|
@@ -58,7 +60,7 @@ var Action2 = React.forwardRef(
|
|
|
58
60
|
{
|
|
59
61
|
ref,
|
|
60
62
|
className: cn(
|
|
61
|
-
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-
|
|
63
|
+
"nx-state-layer relative inline-flex min-h-[44px] min-w-[44px] shrink-0 items-center justify-center rounded-shape-control px-3 text-label-lg text-[var(--color-inverse-primary)]",
|
|
62
64
|
className
|
|
63
65
|
),
|
|
64
66
|
...props
|
|
@@ -67,7 +69,7 @@ var Action2 = React.forwardRef(
|
|
|
67
69
|
);
|
|
68
70
|
Action2.displayName = "Toast.Action";
|
|
69
71
|
var Close2 = React.forwardRef(
|
|
70
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixToast.Close, { ref, className: cn("
|
|
72
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixToast.Close, { ref, className: cn("nx-state-layer relative grid h-8 w-8 place-items-center rounded-full", className), ...props })
|
|
71
73
|
);
|
|
72
74
|
Close2.displayName = "Toast.Close";
|
|
73
75
|
var Toast = { Provider: Provider2, Viewport: Viewport2, Root: Root2, Title: Title2, Description: Description2, Action: Action2, Close: Close2 };
|
|
@@ -134,7 +136,8 @@ function Toaster() {
|
|
|
134
136
|
RadixToast2.Root,
|
|
135
137
|
{
|
|
136
138
|
className: cn(
|
|
137
|
-
"group pointer-events-auto relative flex w-full items-center justify-between gap-
|
|
139
|
+
"group pointer-events-auto relative flex w-full items-center justify-between gap-3 overflow-hidden rounded-shape-container bg-[var(--color-inverse-surface)] py-3 pl-4 pr-2 text-[var(--color-inverse-on-surface)] shadow-elevation-2",
|
|
140
|
+
"duration-spatial-default ease-spatial-default data-[state=closed]:duration-effects-fast",
|
|
138
141
|
"data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",
|
|
139
142
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=closed]:slide-out-to-right-full",
|
|
140
143
|
toneMap[t.tone ?? "neutral"]
|
|
@@ -142,8 +145,8 @@ function Toaster() {
|
|
|
142
145
|
duration: t.duration ?? 5e3,
|
|
143
146
|
children: [
|
|
144
147
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-1", children: [
|
|
145
|
-
/* @__PURE__ */ jsx2(RadixToast2.Title, { className: "text-sm
|
|
146
|
-
t.description && /* @__PURE__ */ jsx2(RadixToast2.Description, { className: "text-sm text-[var(--color-
|
|
148
|
+
/* @__PURE__ */ jsx2(RadixToast2.Title, { className: "text-title-sm", children: t.title }),
|
|
149
|
+
t.description && /* @__PURE__ */ jsx2(RadixToast2.Description, { className: "text-body-sm text-[color-mix(in_srgb,var(--color-inverse-on-surface)_80%,transparent)]", children: t.description })
|
|
147
150
|
] }),
|
|
148
151
|
t.action && /* @__PURE__ */ jsx2(
|
|
149
152
|
RadixToast2.Action,
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
useClassScrollLock
|
|
4
|
+
} from "./chunk-47UGX37F.js";
|
|
5
|
+
import {
|
|
6
|
+
enterExit,
|
|
7
|
+
overlaySurface
|
|
8
|
+
} from "./chunk-KQPLFVFR.js";
|
|
9
|
+
import {
|
|
10
|
+
cn
|
|
11
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
12
|
+
|
|
13
|
+
// src/components/CommandPalette/CommandPalette.tsx
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
16
|
+
import { Command } from "cmdk";
|
|
17
|
+
import { Search } from "@nexub/icons";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var overlayClasses = "fixed inset-0 z-[var(--z-modal)] bg-[color-mix(in_srgb,#000_40%,transparent)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 duration-effects-default ease-effects-default";
|
|
20
|
+
function ClassLockOverlay() {
|
|
21
|
+
useClassScrollLock();
|
|
22
|
+
return /* @__PURE__ */ jsx("div", { "data-state": "open", className: overlayClasses });
|
|
23
|
+
}
|
|
24
|
+
var Root2 = React.forwardRef(
|
|
25
|
+
({ children, label = "Command palette", scrollLock = "style", shouldFilter, ...props }, ref) => {
|
|
26
|
+
const returnFocusRef = React.useRef(null);
|
|
27
|
+
return /* @__PURE__ */ jsx(RadixDialog.Root, { ...props, children: /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
|
|
28
|
+
scrollLock === "class" ? /* @__PURE__ */ jsx(ClassLockOverlay, {}) : /* @__PURE__ */ jsx(RadixDialog.Overlay, { className: overlayClasses }),
|
|
29
|
+
/* @__PURE__ */ jsxs(
|
|
30
|
+
RadixDialog.Content,
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
"aria-describedby": void 0,
|
|
34
|
+
onOpenAutoFocus: () => {
|
|
35
|
+
returnFocusRef.current = document.activeElement;
|
|
36
|
+
},
|
|
37
|
+
onCloseAutoFocus: (e) => {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
returnFocusRef.current?.focus();
|
|
40
|
+
},
|
|
41
|
+
className: cn(
|
|
42
|
+
"fixed left-1/2 top-[20%] z-[var(--z-modal)] w-[calc(100%-2rem)] max-w-xl -translate-x-1/2",
|
|
43
|
+
"overflow-hidden",
|
|
44
|
+
overlaySurface,
|
|
45
|
+
enterExit,
|
|
46
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
47
|
+
"data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
48
|
+
"data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"
|
|
49
|
+
),
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsx(RadixDialog.Title, { className: "sr-only", children: label }),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
Command,
|
|
54
|
+
{
|
|
55
|
+
label,
|
|
56
|
+
shouldFilter,
|
|
57
|
+
loop: true,
|
|
58
|
+
className: "flex h-full w-full flex-col overflow-hidden text-[var(--color-text-primary)]",
|
|
59
|
+
children
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }) });
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
Root2.displayName = "CommandPalette.Root";
|
|
69
|
+
var Input = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b border-[var(--color-border-default)] px-3", children: [
|
|
70
|
+
/* @__PURE__ */ jsx(Search, { size: "sm", className: "mr-2 shrink-0 opacity-50", "aria-hidden": "true" }),
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
Command.Input,
|
|
73
|
+
{
|
|
74
|
+
ref,
|
|
75
|
+
className: cn(
|
|
76
|
+
"flex h-control-xl w-full bg-transparent text-body-lg outline-none placeholder:text-[var(--color-text-placeholder)] disabled:cursor-not-allowed disabled:text-[var(--color-text-disabled)]",
|
|
77
|
+
className
|
|
78
|
+
),
|
|
79
|
+
...props
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }));
|
|
83
|
+
Input.displayName = "CommandPalette.Input";
|
|
84
|
+
var List = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
85
|
+
Command.List,
|
|
86
|
+
{
|
|
87
|
+
ref,
|
|
88
|
+
className: cn("max-h-[400px] overflow-y-auto overflow-x-hidden p-2", className),
|
|
89
|
+
...props
|
|
90
|
+
}
|
|
91
|
+
));
|
|
92
|
+
List.displayName = "CommandPalette.List";
|
|
93
|
+
var Empty = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
94
|
+
Command.Empty,
|
|
95
|
+
{
|
|
96
|
+
ref,
|
|
97
|
+
className: cn(
|
|
98
|
+
"py-8 text-center text-body-sm text-[var(--color-on-surface-muted)]",
|
|
99
|
+
className
|
|
100
|
+
),
|
|
101
|
+
...props
|
|
102
|
+
}
|
|
103
|
+
));
|
|
104
|
+
Empty.displayName = "CommandPalette.Empty";
|
|
105
|
+
var Group = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
106
|
+
Command.Group,
|
|
107
|
+
{
|
|
108
|
+
ref,
|
|
109
|
+
className: cn(
|
|
110
|
+
"overflow-hidden p-2 text-[var(--color-on-surface)]",
|
|
111
|
+
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-label-sm [&_[cmdk-group-heading]]:text-[var(--color-on-surface-muted)]",
|
|
112
|
+
className
|
|
113
|
+
),
|
|
114
|
+
...props
|
|
115
|
+
}
|
|
116
|
+
));
|
|
117
|
+
Group.displayName = "CommandPalette.Group";
|
|
118
|
+
var Item = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
119
|
+
Command.Item,
|
|
120
|
+
{
|
|
121
|
+
ref,
|
|
122
|
+
className: cn(
|
|
123
|
+
// Concentric: overlay 24px − 8px padding = 16px.
|
|
124
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-shape-container px-3 py-2.5 text-body-sm outline-none",
|
|
125
|
+
"aria-selected:bg-[color-mix(in_srgb,var(--color-on-surface)_8%,transparent)]",
|
|
126
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:text-[var(--color-text-disabled)]",
|
|
127
|
+
className
|
|
128
|
+
),
|
|
129
|
+
...props
|
|
130
|
+
}
|
|
131
|
+
));
|
|
132
|
+
Item.displayName = "CommandPalette.Item";
|
|
133
|
+
var Separator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
134
|
+
Command.Separator,
|
|
135
|
+
{
|
|
136
|
+
ref,
|
|
137
|
+
className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
|
|
138
|
+
...props
|
|
139
|
+
}
|
|
140
|
+
));
|
|
141
|
+
Separator.displayName = "CommandPalette.Separator";
|
|
142
|
+
var CommandPalette = { Root: Root2, Input, List, Empty, Group, Item, Separator };
|
|
143
|
+
|
|
144
|
+
export {
|
|
145
|
+
CommandPalette
|
|
146
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IK23Q2OF.js";
|
|
5
5
|
import {
|
|
6
6
|
cn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q7G5WGYV.js";
|
|
8
8
|
|
|
9
9
|
// src/components/PasswordInput/PasswordInput.tsx
|
|
10
10
|
import * as React from "react";
|