@nexub/react 5.9.0 → 6.0.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,5 +1,5 @@
1
1
  {
2
- "version": "5.9.0",
2
+ "version": "6.0.0",
3
3
  "standard": "WCAG 2.2 Level AA",
4
4
  "method": {
5
5
  "automated": "axe-core rules tagged wcag2a, wcag2aa, wcag21a, wcag21aa and wcag22aa, run on every Storybook story in light and dark, and on open popups (menus, listboxes, dialogs), on every pull request; a new violation fails the build.",
@@ -18,9 +18,8 @@ export interface AutocompleteProps {
18
18
  */
19
19
  onInputChange?: (text: string) => void;
20
20
  /**
21
- * `'inline'` (default in 5.x): the list always shows under the input.
22
- * `'popover'`: a field whose list opens below it while typing. The default from 6.0;
23
- * set `mode` explicitly to keep either behaviour across the upgrade.
21
+ * `'popover'` (default): a field whose list opens below it while typing.
22
+ * `'inline'`: the list always shows under the input (the 5.x default).
24
23
  */
25
24
  mode?: 'inline' | 'popover';
26
25
  /** Adds a "Create “text”" option when the text matches no option exactly. */
@@ -15,7 +15,7 @@ function Autocomplete({
15
15
  loading = false,
16
16
  inputValue,
17
17
  onInputChange,
18
- mode = "inline",
18
+ mode = "popover",
19
19
  onCreate,
20
20
  disabled,
21
21
  className,
@@ -32,7 +32,8 @@ export interface DataTableProps<TData> extends React.HTMLAttributes<HTMLDivEleme
32
32
  enableRowSelection?: boolean;
33
33
  /**
34
34
  * With `enableRowSelection`: a checkbox column with select-page in its
35
- * header, and "Select all N" across pages. On by default from 6.0.
35
+ * header, and "Select all N" across pages. Default true; false keeps selection
36
+ * without the column (you render your own checkboxes).
36
37
  */
37
38
  selectionColumn?: boolean;
38
39
  /** Controlled selection, keyed by row id (see `getRowId`). */
@@ -110,7 +110,7 @@ function DataTable({
110
110
  data,
111
111
  enableSorting = false,
112
112
  enableRowSelection = false,
113
- selectionColumn = false,
113
+ selectionColumn = true,
114
114
  rowSelection: rowSelectionProp,
115
115
  onRowSelectionChange,
116
116
  getRowId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/react",
3
- "version": "5.9.0",
3
+ "version": "6.0.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",
@@ -81,14 +81,14 @@
81
81
  "date-fns": "^4.4.0",
82
82
  "react-day-picker": "^10.0.2",
83
83
  "tailwind-merge": "^3.7.0",
84
- "@nexub/core": "5.9.0",
85
- "@nexub/icons": "5.9.0"
84
+ "@nexub/core": "6.0.0",
85
+ "@nexub/icons": "6.0.0"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "react": ">=19 <20",
89
89
  "react-dom": ">=19 <20",
90
90
  "@tanstack/react-virtual": "^3.14.22",
91
- "@nexub/tokens": "^5.9.0"
91
+ "@nexub/tokens": "^6.0.0"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@tanstack/react-virtual": {
@@ -120,8 +120,8 @@
120
120
  "vaul": "1.1.2",
121
121
  "vite": "^8.3.5",
122
122
  "vitest": "^5.0.5",
123
- "@nexub/themes": "5.9.0",
124
- "@nexub/tokens": "5.9.0"
123
+ "@nexub/themes": "6.0.0",
124
+ "@nexub/tokens": "6.0.0"
125
125
  },
126
126
  "scripts": {
127
127
  "build": "rm -rf dist && tsup && tsc -p tsconfig.build.json && rm -f dist/vendor/*.d.ts && node scripts/check-dts.mjs && tailwindcss -i src/styles.css -o dist/styles.css --minify && cp -R ../themes/src/fonts dist/fonts",