@nexub/react 2.4.0 → 2.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.
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ warnDeprecated
4
+ } from "./chunk-VLME3JFF.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -30,6 +33,7 @@ var calloutVariants = cva(
30
33
  );
31
34
  var Callout = React.forwardRef(
32
35
  ({ className, tone = "neutral", icon, children, ...props }, ref) => {
36
+ warnDeprecated("Callout", "Alert");
33
37
  return /* @__PURE__ */ jsxs(
34
38
  "div",
35
39
  {
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ warnDeprecated
4
+ } from "./chunk-VLME3JFF.js";
2
5
  import {
3
6
  useNexubMessages
4
7
  } from "./chunk-VMSWIC3O.js";
@@ -46,6 +49,7 @@ var Banner = React.forwardRef(
46
49
  children,
47
50
  ...props
48
51
  }, ref) => {
52
+ warnDeprecated("Banner", "Alert");
49
53
  const messages = useNexubMessages();
50
54
  return /* @__PURE__ */ jsxs(
51
55
  "div",
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ warnDeprecated
4
+ } from "./chunk-VLME3JFF.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -36,6 +39,7 @@ var tagVariants = cva(
36
39
  );
37
40
  var Tag = React.forwardRef(
38
41
  ({ className, size, tone = "neutral", children, ...props }, ref) => {
42
+ warnDeprecated("Tag", "Badge");
39
43
  return /* @__PURE__ */ jsx(
40
44
  "span",
41
45
  {
@@ -1,4 +1,7 @@
1
1
  'use client';
2
+ import {
3
+ warnDeprecated
4
+ } from "./chunk-VLME3JFF.js";
2
5
  import {
3
6
  cn
4
7
  } from "./chunk-Q7G5WGYV.js";
@@ -42,6 +45,7 @@ var dotColorMap = {
42
45
  var pulseTones = ["success", "info"];
43
46
  var StatusPill = React.forwardRef(
44
47
  ({ className, tone = "neutral", label, dot = false, ...props }, ref) => {
48
+ warnDeprecated("StatusPill", "Badge");
45
49
  const shouldPulse = dot && pulseTones.includes(tone);
46
50
  return /* @__PURE__ */ jsxs(
47
51
  "span",
@@ -0,0 +1,20 @@
1
+ 'use client';
2
+
3
+ // src/utils/deprecated.ts
4
+ var warned = /* @__PURE__ */ new Set();
5
+ function warnDeprecated(name, replacement) {
6
+ try {
7
+ if (process.env.NODE_ENV === "production") return;
8
+ } catch {
9
+ return;
10
+ }
11
+ if (warned.has(name)) return;
12
+ warned.add(name);
13
+ console.warn(
14
+ `[@nexub/react] ${name} is deprecated and will be removed in 3.0. Use ${replacement} instead.`
15
+ );
16
+ }
17
+
18
+ export {
19
+ warnDeprecated
20
+ };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  AvatarGroup,
4
4
  avatarGroupVariants
5
- } from "../../chunk-BSS7QNC5.js";
6
- import "../../chunk-QUYOV2ZJ.js";
5
+ } from "../../chunk-BYGCN24N.js";
7
6
  import "../../chunk-VMSWIC3O.js";
7
+ import "../../chunk-QUYOV2ZJ.js";
8
8
  import "../../chunk-Q7G5WGYV.js";
9
9
  export {
10
10
  AvatarGroup,
@@ -2,7 +2,8 @@
2
2
  import {
3
3
  Banner,
4
4
  bannerVariants
5
- } from "../../chunk-EA4JBLWK.js";
5
+ } from "../../chunk-E47UI7TJ.js";
6
+ import "../../chunk-VLME3JFF.js";
6
7
  import "../../chunk-VMSWIC3O.js";
7
8
  import "../../chunk-Q7G5WGYV.js";
8
9
  export {
@@ -2,7 +2,8 @@
2
2
  import {
3
3
  Callout,
4
4
  calloutVariants
5
- } from "../../chunk-2DYKENBM.js";
5
+ } from "../../chunk-5DNT5CN3.js";
6
+ import "../../chunk-VLME3JFF.js";
6
7
  import "../../chunk-Q7G5WGYV.js";
7
8
  export {
8
9
  Callout,
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  FormField
4
- } from "../../chunk-G4RLUGE3.js";
5
- import "../../chunk-ZLW7IBXK.js";
4
+ } from "../../chunk-LYOU2D5N.js";
6
5
  import "../../chunk-PGD246WD.js";
7
6
  import "../../chunk-QVTVDL6Y.js";
7
+ import "../../chunk-ZLW7IBXK.js";
8
8
  import "../../chunk-22BGPRJZ.js";
9
9
  import "../../chunk-5W3AOOYS.js";
10
10
  import "../../chunk-DEIBF3P7.js";
@@ -2,7 +2,8 @@
2
2
  import {
3
3
  StatusPill,
4
4
  statusPillVariants
5
- } from "../../chunk-77LYWSJW.js";
5
+ } from "../../chunk-OZOC4NRX.js";
6
+ import "../../chunk-VLME3JFF.js";
6
7
  import "../../chunk-Q7G5WGYV.js";
7
8
  export {
8
9
  StatusPill,
@@ -2,7 +2,8 @@
2
2
  import {
3
3
  Tag,
4
4
  tagVariants
5
- } from "../../chunk-NA5UMOE5.js";
5
+ } from "../../chunk-MBA5P4ET.js";
6
+ import "../../chunk-VLME3JFF.js";
6
7
  import "../../chunk-Q7G5WGYV.js";
7
8
  export {
8
9
  Tag,
package/dist/index.js CHANGED
@@ -14,15 +14,15 @@ import {
14
14
  ThemeScript,
15
15
  useTheme
16
16
  } from "./chunk-3XX45SUC.js";
17
- import {
18
- ThinkingIndicator
19
- } from "./chunk-D7HMUIA5.js";
20
17
  import {
21
18
  Toast,
22
19
  Toaster,
23
20
  toast,
24
21
  useToastStore
25
22
  } from "./chunk-I6ELDWZE.js";
23
+ import {
24
+ ThinkingIndicator
25
+ } from "./chunk-D7HMUIA5.js";
26
26
  import "./chunk-YJU4ZRQZ.js";
27
27
  import {
28
28
  ToggleGroup
@@ -36,9 +36,8 @@ import {
36
36
  } from "./chunk-2ZBJOUJ7.js";
37
37
  import "./chunk-XYXMPHND.js";
38
38
  import {
39
- StatusPill,
40
- statusPillVariants
41
- } from "./chunk-77LYWSJW.js";
39
+ Stack
40
+ } from "./chunk-I6CAF7C5.js";
42
41
  import {
43
42
  StreamingText
44
43
  } from "./chunk-5QEARXY3.js";
@@ -52,7 +51,7 @@ import {
52
51
  import {
53
52
  Tag,
54
53
  tagVariants
55
- } from "./chunk-NA5UMOE5.js";
54
+ } from "./chunk-MBA5P4ET.js";
56
55
  import {
57
56
  Text,
58
57
  textVariants
@@ -60,36 +59,34 @@ import {
60
59
  import {
61
60
  TextGradient
62
61
  } from "./chunk-HH7EHNOW.js";
63
- import {
64
- Select
65
- } from "./chunk-R6VLSYXK.js";
66
62
  import {
67
63
  Separator,
68
64
  separatorVariants
69
65
  } from "./chunk-CUOASXI7.js";
66
+ import {
67
+ Sidebar
68
+ } from "./chunk-5HEMUXSR.js";
70
69
  import {
71
70
  Skeleton,
72
71
  skeletonVariants
73
72
  } from "./chunk-DGCAM2UJ.js";
73
+ import {
74
+ Slider
75
+ } from "./chunk-TNBBQ7IP.js";
74
76
  import {
75
77
  Spinner,
76
78
  spinnerVariants
77
79
  } from "./chunk-P37ABUFD.js";
78
80
  import {
79
- Slider
80
- } from "./chunk-TNBBQ7IP.js";
81
+ Accordion
82
+ } from "./chunk-T7RLPFGX.js";
81
83
  import {
82
84
  SplitButton
83
85
  } from "./chunk-DFCHCYNT.js";
84
86
  import {
85
- Stack
86
- } from "./chunk-I6CAF7C5.js";
87
- import {
88
- Sidebar
89
- } from "./chunk-5HEMUXSR.js";
90
- import {
91
- PromptInput
92
- } from "./chunk-VMMZHSZL.js";
87
+ StatusPill,
88
+ statusPillVariants
89
+ } from "./chunk-OZOC4NRX.js";
93
90
  import {
94
91
  RadioCard,
95
92
  RadioCardGroup
@@ -116,9 +113,8 @@ import {
116
113
  } from "./chunk-3E7X3YK3.js";
117
114
  import "./chunk-6UKNUI46.js";
118
115
  import {
119
- useMergedRefs
120
- } from "./chunk-MNEXMMLM.js";
121
- import "./chunk-A3O23F2B.js";
116
+ Select
117
+ } from "./chunk-R6VLSYXK.js";
122
118
  import {
123
119
  NumberInput
124
120
  } from "./chunk-7JXJOYM6.js";
@@ -141,9 +137,11 @@ import {
141
137
  progressTrackVariants
142
138
  } from "./chunk-PBPUSRTJ.js";
143
139
  import {
144
- Logo,
145
- logoVariants
146
- } from "./chunk-6ECOCGZG.js";
140
+ PromptInput
141
+ } from "./chunk-VMMZHSZL.js";
142
+ import {
143
+ useMergedRefs
144
+ } from "./chunk-MNEXMMLM.js";
147
145
  import {
148
146
  MediaCard
149
147
  } from "./chunk-3QD76BKT.js";
@@ -184,7 +182,7 @@ import {
184
182
  import {
185
183
  NavigationRail
186
184
  } from "./chunk-Q4CEJZY6.js";
187
- import "./chunk-PICMOOAZ.js";
185
+ import "./chunk-A3O23F2B.js";
188
186
  import "./chunk-ZT3NWE5U.js";
189
187
  import "./chunk-CAOLGXA5.js";
190
188
  import {
@@ -211,8 +209,9 @@ import {
211
209
  linkVariants
212
210
  } from "./chunk-6BGUZQAX.js";
213
211
  import {
214
- FilterChip
215
- } from "./chunk-NN7SNECM.js";
212
+ Logo,
213
+ logoVariants
214
+ } from "./chunk-6ECOCGZG.js";
216
215
  import "./chunk-BV3U3ATL.js";
217
216
  import {
218
217
  Flex
@@ -220,10 +219,7 @@ import {
220
219
  import "./chunk-ADO2DB6Q.js";
221
220
  import {
222
221
  FormField
223
- } from "./chunk-G4RLUGE3.js";
224
- import {
225
- HelperText
226
- } from "./chunk-ZLW7IBXK.js";
222
+ } from "./chunk-LYOU2D5N.js";
227
223
  import {
228
224
  Label,
229
225
  labelVariants
@@ -242,6 +238,10 @@ import {
242
238
  Heading,
243
239
  headingVariants
244
240
  } from "./chunk-SKIJVVBU.js";
241
+ import "./chunk-PICMOOAZ.js";
242
+ import {
243
+ HelperText
244
+ } from "./chunk-ZLW7IBXK.js";
245
245
  import {
246
246
  Dialog
247
247
  } from "./chunk-ZGZQZG6S.js";
@@ -249,9 +249,6 @@ import {
249
249
  Drawer,
250
250
  Sheet
251
251
  } from "./chunk-6ALDF3XF.js";
252
- import {
253
- Collapsible
254
- } from "./chunk-3LP2CR7F.js";
255
252
  import "./chunk-HI7GBSW2.js";
256
253
  import {
257
254
  DropdownMenu
@@ -268,6 +265,9 @@ import {
268
265
  import {
269
266
  FileUpload
270
267
  } from "./chunk-D6HHYT2S.js";
268
+ import {
269
+ FilterChip
270
+ } from "./chunk-NN7SNECM.js";
271
271
  import "./chunk-HY3JWSG4.js";
272
272
  import {
273
273
  CommandPalette
@@ -299,10 +299,6 @@ import {
299
299
  import {
300
300
  DatePicker
301
301
  } from "./chunk-5QZVFW4H.js";
302
- import {
303
- Callout,
304
- calloutVariants
305
- } from "./chunk-2DYKENBM.js";
306
302
  import {
307
303
  Card,
308
304
  CardLink,
@@ -316,6 +312,10 @@ import {
316
312
  import {
317
313
  Checkbox
318
314
  } from "./chunk-I4U36P54.js";
315
+ import {
316
+ CheckboxCard
317
+ } from "./chunk-AT2DSFP3.js";
318
+ import "./chunk-K5FKEAAK.js";
319
319
  import {
320
320
  Chip,
321
321
  chipVariants
@@ -329,22 +329,16 @@ import {
329
329
  import {
330
330
  HoverCard
331
331
  } from "./chunk-X3B2MTX6.js";
332
- import {
333
- CheckboxCard
334
- } from "./chunk-AT2DSFP3.js";
335
- import "./chunk-K5FKEAAK.js";
336
332
  import {
337
333
  Code
338
334
  } from "./chunk-DDRYT3SY.js";
339
- import "./chunk-IZ6ZPEZ2.js";
335
+ import {
336
+ Collapsible
337
+ } from "./chunk-3LP2CR7F.js";
340
338
  import {
341
339
  AvatarGroup,
342
340
  avatarGroupVariants
343
- } from "./chunk-BSS7QNC5.js";
344
- import {
345
- Avatar,
346
- avatarVariants
347
- } from "./chunk-QUYOV2ZJ.js";
341
+ } from "./chunk-BYGCN24N.js";
348
342
  import {
349
343
  Badge,
350
344
  badgeVariants
@@ -352,7 +346,7 @@ import {
352
346
  import {
353
347
  Banner,
354
348
  bannerVariants
355
- } from "./chunk-EA4JBLWK.js";
349
+ } from "./chunk-E47UI7TJ.js";
356
350
  import {
357
351
  Box
358
352
  } from "./chunk-M7YB3MSW.js";
@@ -365,8 +359,10 @@ import {
365
359
  ButtonGroup
366
360
  } from "./chunk-WHTLXQB6.js";
367
361
  import {
368
- Accordion
369
- } from "./chunk-T7RLPFGX.js";
362
+ Callout,
363
+ calloutVariants
364
+ } from "./chunk-5DNT5CN3.js";
365
+ import "./chunk-VLME3JFF.js";
370
366
  import {
371
367
  Alert,
372
368
  alertVariants
@@ -406,6 +402,11 @@ import {
406
402
  useLocale,
407
403
  useNexubMessages
408
404
  } from "./chunk-VMSWIC3O.js";
405
+ import "./chunk-IZ6ZPEZ2.js";
406
+ import {
407
+ Avatar,
408
+ avatarVariants
409
+ } from "./chunk-QUYOV2ZJ.js";
409
410
  import {
410
411
  cn
411
412
  } from "./chunk-Q7G5WGYV.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/react",
3
- "version": "2.4.0",
3
+ "version": "2.5.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",
@@ -68,13 +68,13 @@
68
68
  "date-fns": "^4.4.0",
69
69
  "react-day-picker": "^9.14.0",
70
70
  "tailwind-merge": "^2.6.1",
71
- "@nexub/core": "2.4.0",
72
- "@nexub/icons": "2.4.0"
71
+ "@nexub/core": "2.5.0",
72
+ "@nexub/icons": "2.5.0"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "react": ">=18 <20",
76
76
  "react-dom": ">=18 <20",
77
- "@nexub/tokens": "^2.4.0"
77
+ "@nexub/tokens": "^2.5.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@playwright/test": "1.64.0",
@@ -99,8 +99,8 @@
99
99
  "vaul": "1.1.2",
100
100
  "vite": "^7.3.7",
101
101
  "vitest": "^5.0.5",
102
- "@nexub/themes": "2.4.0",
103
- "@nexub/tokens": "2.4.0"
102
+ "@nexub/themes": "2.5.0",
103
+ "@nexub/tokens": "2.5.0"
104
104
  },
105
105
  "scripts": {
106
106
  "build": "tsup && node scripts/check-dts.mjs",
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import {
3
- avatarVariants
4
- } from "./chunk-QUYOV2ZJ.js";
5
2
  import {
6
3
  useNexubMessages
7
4
  } from "./chunk-VMSWIC3O.js";
5
+ import {
6
+ avatarVariants
7
+ } from "./chunk-QUYOV2ZJ.js";
8
8
  import {
9
9
  cn
10
10
  } from "./chunk-Q7G5WGYV.js";
@@ -1,13 +1,13 @@
1
1
  'use client';
2
- import {
3
- HelperText
4
- } from "./chunk-ZLW7IBXK.js";
5
2
  import {
6
3
  Label
7
4
  } from "./chunk-PGD246WD.js";
8
5
  import {
9
6
  FormError
10
7
  } from "./chunk-QVTVDL6Y.js";
8
+ import {
9
+ HelperText
10
+ } from "./chunk-ZLW7IBXK.js";
11
11
  import {
12
12
  cn
13
13
  } from "./chunk-Q7G5WGYV.js";