@nexub/react 1.1.0 → 1.2.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-AHZQQ7OT.js → chunk-DGJE5MX5.js} +26 -7
- package/dist/{chunk-S344IRK4.js → chunk-EVCTOIRS.js} +4 -1
- package/dist/{chunk-V6GZZFTV.js → chunk-QRZV2FLW.js} +1 -1
- package/dist/{chunk-2MKB5FQI.js → chunk-RIDDJUPA.js} +1 -1
- package/dist/chunk-WCJNZ5ME.js +1593 -0
- package/dist/{chunk-L6GBZ2HB.js → chunk-ZLSUVZM2.js} +1 -1
- package/dist/components/AlertDialog/index.js +1 -1
- package/dist/components/CommandPalette/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Logo/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js +28 -28
- package/package.json +6 -6
- package/dist/chunk-4BTP4464.js +0 -92
|
@@ -17,7 +17,7 @@ var Overlay2 = React.forwardRef(
|
|
|
17
17
|
{
|
|
18
18
|
ref,
|
|
19
19
|
className: cn(
|
|
20
|
-
"fixed inset-0 z-[var(--z-modal)] bg-
|
|
20
|
+
"fixed inset-0 z-[var(--z-modal)] bg-[var(--color-overlay)] backdrop-blur-sm",
|
|
21
21
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
22
22
|
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
23
23
|
className
|
package/dist/index.d.ts
CHANGED
|
@@ -512,7 +512,12 @@ declare const logoVariants: (props?: ({
|
|
|
512
512
|
tone?: "default" | "inverse" | null | undefined;
|
|
513
513
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
514
514
|
interface LogoProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof logoVariants> {
|
|
515
|
-
|
|
515
|
+
/** `full` = mark + wordmark; `icon` = mark only. `mark` is the old name for `icon`. */
|
|
516
|
+
variant?: 'full' | 'icon' | 'mark';
|
|
517
|
+
/** `color` (default) = the official mark in brand colours; `mono` = `currentColor`. */
|
|
518
|
+
mark?: 'color' | 'mono';
|
|
519
|
+
/** Product name shown after the wordmark, e.g. "Command Hub". Ignored for `variant="icon"`. */
|
|
520
|
+
product?: string;
|
|
516
521
|
}
|
|
517
522
|
declare const Logo: React.ForwardRefExoticComponent<LogoProps & React.RefAttributes<HTMLSpanElement>>;
|
|
518
523
|
|
|
@@ -645,7 +650,7 @@ declare const Drawer: {
|
|
|
645
650
|
Root: typeof vaul.Root;
|
|
646
651
|
Trigger: React.ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
647
652
|
Portal: typeof vaul.Portal;
|
|
648
|
-
Overlay: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
653
|
+
Overlay: React.ForwardRefExoticComponent<Omit<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
649
654
|
Content: React.ForwardRefExoticComponent<Omit<Omit<RadixDialog.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement> & {
|
|
650
655
|
side?: "left" | "right" | "top" | "bottom";
|
|
651
656
|
surface?: SurfaceValue;
|
|
@@ -660,7 +665,7 @@ declare const Sheet: {
|
|
|
660
665
|
Root: typeof vaul.Root;
|
|
661
666
|
Trigger: React.ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
662
667
|
Portal: typeof vaul.Portal;
|
|
663
|
-
Overlay: React.ForwardRefExoticComponent<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
668
|
+
Overlay: React.ForwardRefExoticComponent<Omit<Omit<RadixDialog.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
664
669
|
Content: React.ForwardRefExoticComponent<Omit<Omit<RadixDialog.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement> & {
|
|
665
670
|
side?: "left" | "right" | "top" | "bottom";
|
|
666
671
|
surface?: SurfaceValue;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
Toolbar
|
|
4
|
-
} from "./chunk-OZPPL76D.js";
|
|
5
2
|
import {
|
|
6
3
|
Provider,
|
|
7
4
|
Tooltip
|
|
8
5
|
} from "./chunk-46CFSBEO.js";
|
|
6
|
+
import {
|
|
7
|
+
Toolbar
|
|
8
|
+
} from "./chunk-OZPPL76D.js";
|
|
9
9
|
import {
|
|
10
10
|
TopNav
|
|
11
11
|
} from "./chunk-BTZW34TX.js";
|
|
@@ -23,24 +23,24 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
TextGradient
|
|
25
25
|
} from "./chunk-HW3I7I3R.js";
|
|
26
|
-
import {
|
|
27
|
-
Textarea,
|
|
28
|
-
textareaVariants
|
|
29
|
-
} from "./chunk-W4IEXUD4.js";
|
|
30
26
|
import {
|
|
31
27
|
ThemeProvider,
|
|
32
28
|
useTheme
|
|
33
29
|
} from "./chunk-YAGVMERC.js";
|
|
30
|
+
import {
|
|
31
|
+
Textarea,
|
|
32
|
+
textareaVariants
|
|
33
|
+
} from "./chunk-W4IEXUD4.js";
|
|
34
34
|
import {
|
|
35
35
|
Toast,
|
|
36
36
|
Toaster,
|
|
37
37
|
toast,
|
|
38
38
|
useToastStore
|
|
39
39
|
} from "./chunk-IHW2L532.js";
|
|
40
|
-
import "./chunk-YJU4ZRQZ.js";
|
|
41
40
|
import {
|
|
42
41
|
ToggleGroup
|
|
43
42
|
} from "./chunk-K7CUCLLI.js";
|
|
43
|
+
import "./chunk-YJU4ZRQZ.js";
|
|
44
44
|
import {
|
|
45
45
|
Toggle,
|
|
46
46
|
toggleVariants
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./chunk-ELC2NBGH.js";
|
|
72
72
|
import {
|
|
73
73
|
Tabs
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-EVCTOIRS.js";
|
|
75
75
|
import {
|
|
76
76
|
Rating,
|
|
77
77
|
ratingVariants,
|
|
@@ -104,8 +104,11 @@ import {
|
|
|
104
104
|
Sidebar
|
|
105
105
|
} from "./chunk-4NGB7XIM.js";
|
|
106
106
|
import {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
Collapse,
|
|
108
|
+
Fade,
|
|
109
|
+
Scale,
|
|
110
|
+
Slide
|
|
111
|
+
} from "./chunk-FS4XKWFA.js";
|
|
109
112
|
import {
|
|
110
113
|
NumberInput
|
|
111
114
|
} from "./chunk-52KTX5A7.js";
|
|
@@ -118,14 +121,14 @@ import {
|
|
|
118
121
|
import {
|
|
119
122
|
PasswordInput
|
|
120
123
|
} from "./chunk-XNDCVVNE.js";
|
|
121
|
-
import {
|
|
122
|
-
Popover
|
|
123
|
-
} from "./chunk-UALYS4XI.js";
|
|
124
124
|
import {
|
|
125
125
|
Progress,
|
|
126
126
|
progressFillVariants,
|
|
127
127
|
progressTrackVariants
|
|
128
128
|
} from "./chunk-BYF223HT.js";
|
|
129
|
+
import {
|
|
130
|
+
Popover
|
|
131
|
+
} from "./chunk-UALYS4XI.js";
|
|
129
132
|
import {
|
|
130
133
|
RadioGroup
|
|
131
134
|
} from "./chunk-WPPNDU2E.js";
|
|
@@ -137,13 +140,13 @@ import {
|
|
|
137
140
|
inputWrapperVariants
|
|
138
141
|
} from "./chunk-CVBAWKNG.js";
|
|
139
142
|
import "./chunk-KLTQJZOX.js";
|
|
143
|
+
import "./chunk-EV43I5J6.js";
|
|
140
144
|
import {
|
|
141
145
|
KeyboardShortcut
|
|
142
146
|
} from "./chunk-I5Z3A7N3.js";
|
|
143
147
|
import {
|
|
144
148
|
Kbd
|
|
145
149
|
} from "./chunk-PER3O4FD.js";
|
|
146
|
-
import "./chunk-EV43I5J6.js";
|
|
147
150
|
import {
|
|
148
151
|
Link,
|
|
149
152
|
linkVariants
|
|
@@ -151,16 +154,13 @@ import {
|
|
|
151
154
|
import {
|
|
152
155
|
Logo,
|
|
153
156
|
logoVariants
|
|
154
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-DGJE5MX5.js";
|
|
155
158
|
import {
|
|
156
159
|
Menubar
|
|
157
160
|
} from "./chunk-MY6XUJ5P.js";
|
|
158
161
|
import {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
Scale,
|
|
162
|
-
Slide
|
|
163
|
-
} from "./chunk-FS4XKWFA.js";
|
|
162
|
+
NavigationMenu
|
|
163
|
+
} from "./chunk-7W2YDJ5W.js";
|
|
164
164
|
import "./chunk-ADO2DB6Q.js";
|
|
165
165
|
import {
|
|
166
166
|
FormField
|
|
@@ -239,11 +239,11 @@ import {
|
|
|
239
239
|
} from "./chunk-TCTFQYLH.js";
|
|
240
240
|
import {
|
|
241
241
|
Dialog
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-RIDDJUPA.js";
|
|
243
243
|
import {
|
|
244
244
|
Drawer,
|
|
245
245
|
Sheet
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-WCJNZ5ME.js";
|
|
247
247
|
import {
|
|
248
248
|
Card,
|
|
249
249
|
cardVariants
|
|
@@ -253,13 +253,13 @@ import {
|
|
|
253
253
|
CheckList,
|
|
254
254
|
CheckListItem
|
|
255
255
|
} from "./chunk-PANDAMD2.js";
|
|
256
|
-
import {
|
|
257
|
-
Checkbox
|
|
258
|
-
} from "./chunk-VPZCQFVY.js";
|
|
259
256
|
import {
|
|
260
257
|
Chip,
|
|
261
258
|
chipVariants
|
|
262
259
|
} from "./chunk-DAXDAFNG.js";
|
|
260
|
+
import {
|
|
261
|
+
Checkbox
|
|
262
|
+
} from "./chunk-VPZCQFVY.js";
|
|
263
263
|
import {
|
|
264
264
|
Code
|
|
265
265
|
} from "./chunk-DEH2Z27F.js";
|
|
@@ -269,7 +269,7 @@ import {
|
|
|
269
269
|
import "./chunk-HY3JWSG4.js";
|
|
270
270
|
import {
|
|
271
271
|
CommandPalette
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-QRZV2FLW.js";
|
|
273
273
|
import {
|
|
274
274
|
AvatarGroup,
|
|
275
275
|
avatarGroupVariants
|
|
@@ -308,7 +308,7 @@ import {
|
|
|
308
308
|
} from "./chunk-24CZFBTG.js";
|
|
309
309
|
import {
|
|
310
310
|
AlertDialog
|
|
311
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-ZLSUVZM2.js";
|
|
312
312
|
import {
|
|
313
313
|
AppShell
|
|
314
314
|
} from "./chunk-KZW37FQZ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexub/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React component library for Nexub Design System — 90+ accessible, themeable UI components built on Radix UI primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,13 +67,12 @@
|
|
|
67
67
|
"date-fns": "^4.1.0",
|
|
68
68
|
"react-day-picker": "^9.14.0",
|
|
69
69
|
"tailwind-merge": "^2.5.4",
|
|
70
|
-
"
|
|
71
|
-
"@nexub/icons": "1.1.0"
|
|
70
|
+
"@nexub/icons": "1.2.0"
|
|
72
71
|
},
|
|
73
72
|
"peerDependencies": {
|
|
74
73
|
"react": ">=18 <20",
|
|
75
74
|
"react-dom": ">=18 <20",
|
|
76
|
-
"@nexub/tokens": "^1.
|
|
75
|
+
"@nexub/tokens": "^1.2.0"
|
|
77
76
|
},
|
|
78
77
|
"devDependencies": {
|
|
79
78
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -93,9 +92,10 @@
|
|
|
93
92
|
"tailwindcss": "^3.4.0",
|
|
94
93
|
"tsup": "^8.3.5",
|
|
95
94
|
"typescript": "^5.6.3",
|
|
95
|
+
"vaul": "1.1.2",
|
|
96
96
|
"vitest": "^2.1.8",
|
|
97
|
-
"@nexub/themes": "1.
|
|
98
|
-
"@nexub/tokens": "1.
|
|
97
|
+
"@nexub/themes": "1.2.0",
|
|
98
|
+
"@nexub/tokens": "1.2.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "tsup",
|
package/dist/chunk-4BTP4464.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
glassSurfaceClass
|
|
4
|
-
} from "./chunk-ROZVVWPV.js";
|
|
5
|
-
import {
|
|
6
|
-
cn
|
|
7
|
-
} from "./chunk-AT6RPKU3.js";
|
|
8
|
-
|
|
9
|
-
// src/components/Drawer/Drawer.tsx
|
|
10
|
-
import * as React from "react";
|
|
11
|
-
import { Drawer as VaulDrawer } from "vaul";
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
var Root = VaulDrawer.Root;
|
|
14
|
-
var Trigger = VaulDrawer.Trigger;
|
|
15
|
-
var Portal = VaulDrawer.Portal;
|
|
16
|
-
var Close = VaulDrawer.Close;
|
|
17
|
-
var Overlay = VaulDrawer.Overlay;
|
|
18
|
-
var Content = React.forwardRef(({ className, children, side = "right", surface = "solid", ...props }, ref) => {
|
|
19
|
-
const sideMap = {
|
|
20
|
-
right: "inset-y-0 right-0 h-full w-3/4 max-w-sm border-l",
|
|
21
|
-
left: "inset-y-0 left-0 h-full w-3/4 max-w-sm border-r",
|
|
22
|
-
top: "inset-x-0 top-0 w-full border-b",
|
|
23
|
-
bottom: "inset-x-0 bottom-0 w-full border-t rounded-t-2xl"
|
|
24
|
-
};
|
|
25
|
-
return /* @__PURE__ */ jsxs(
|
|
26
|
-
VaulDrawer.Content,
|
|
27
|
-
{
|
|
28
|
-
ref,
|
|
29
|
-
className: cn(
|
|
30
|
-
"fixed z-[var(--z-modal)] flex flex-col bg-[var(--color-bg-default)] shadow-xl focus:outline-none",
|
|
31
|
-
sideMap[side],
|
|
32
|
-
surface === "glass" && glassSurfaceClass,
|
|
33
|
-
className
|
|
34
|
-
),
|
|
35
|
-
"data-material": surface === "glass" ? "glass" : void 0,
|
|
36
|
-
...props,
|
|
37
|
-
children: [
|
|
38
|
-
side === "bottom" && /* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 h-2 w-20 rounded-full bg-[var(--color-border-default)]" }),
|
|
39
|
-
children
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
});
|
|
44
|
-
Content.displayName = "Drawer.Content";
|
|
45
|
-
var Title = React.forwardRef(
|
|
46
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
47
|
-
VaulDrawer.Title,
|
|
48
|
-
{
|
|
49
|
-
ref,
|
|
50
|
-
className: cn("text-lg font-semibold text-[var(--color-text-primary)]", className),
|
|
51
|
-
...props
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
);
|
|
55
|
-
Title.displayName = "Drawer.Title";
|
|
56
|
-
var Description = React.forwardRef(
|
|
57
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
58
|
-
VaulDrawer.Description,
|
|
59
|
-
{
|
|
60
|
-
ref,
|
|
61
|
-
className: cn("text-sm text-[var(--color-text-muted)]", className),
|
|
62
|
-
...props
|
|
63
|
-
}
|
|
64
|
-
)
|
|
65
|
-
);
|
|
66
|
-
Description.displayName = "Drawer.Description";
|
|
67
|
-
var Header = React.forwardRef(
|
|
68
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("flex flex-col gap-1.5 p-6", className), ...props })
|
|
69
|
-
);
|
|
70
|
-
Header.displayName = "Drawer.Header";
|
|
71
|
-
var Footer = React.forwardRef(
|
|
72
|
-
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mt-auto flex flex-col gap-2 p-6", className), ...props })
|
|
73
|
-
);
|
|
74
|
-
Footer.displayName = "Drawer.Footer";
|
|
75
|
-
var Drawer = {
|
|
76
|
-
Root,
|
|
77
|
-
Trigger,
|
|
78
|
-
Portal,
|
|
79
|
-
Overlay,
|
|
80
|
-
Content,
|
|
81
|
-
Close,
|
|
82
|
-
Title,
|
|
83
|
-
Description,
|
|
84
|
-
Header,
|
|
85
|
-
Footer
|
|
86
|
-
};
|
|
87
|
-
var Sheet = Drawer;
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
Drawer,
|
|
91
|
-
Sheet
|
|
92
|
-
};
|