@nexub/react 6.8.0 → 7.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.
package/accessibility.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "7.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.",
|
|
@@ -1522,15 +1522,6 @@
|
|
|
1522
1522
|
"keyboard": [],
|
|
1523
1523
|
"screenReader": []
|
|
1524
1524
|
},
|
|
1525
|
-
{
|
|
1526
|
-
"slug": "step-indicator",
|
|
1527
|
-
"name": "StepIndicator",
|
|
1528
|
-
"package": "@nexub/patterns",
|
|
1529
|
-
"automated": "pass",
|
|
1530
|
-
"exceptions": [],
|
|
1531
|
-
"keyboard": [],
|
|
1532
|
-
"screenReader": []
|
|
1533
|
-
},
|
|
1534
1525
|
{
|
|
1535
1526
|
"slug": "testimonial-grid",
|
|
1536
1527
|
"name": "TestimonialGrid",
|
|
@@ -17,18 +17,13 @@ export interface AutocompleteProps {
|
|
|
17
17
|
* filtered (fetched for this text), so the built-in filtering is off.
|
|
18
18
|
*/
|
|
19
19
|
onInputChange?: (text: string) => void;
|
|
20
|
-
/**
|
|
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).
|
|
23
|
-
*/
|
|
24
|
-
mode?: 'inline' | 'popover';
|
|
25
20
|
/** Adds a "Create “text”" option when the text matches no option exactly. */
|
|
26
21
|
onCreate?: (text: string) => void;
|
|
27
22
|
disabled?: boolean;
|
|
28
23
|
className?: string;
|
|
29
24
|
'aria-label'?: string;
|
|
30
25
|
}
|
|
31
|
-
export declare function Autocomplete({ options, value, onValueChange, placeholder, emptyText, loading, inputValue, onInputChange,
|
|
26
|
+
export declare function Autocomplete({ options, value, onValueChange, placeholder, emptyText, loading, inputValue, onInputChange, onCreate, disabled, className, 'aria-label': ariaLabel, }: AutocompleteProps): React.JSX.Element;
|
|
32
27
|
export declare namespace Autocomplete {
|
|
33
28
|
var displayName: string;
|
|
34
29
|
}
|
|
@@ -15,7 +15,6 @@ function Autocomplete({
|
|
|
15
15
|
loading = false,
|
|
16
16
|
inputValue,
|
|
17
17
|
onInputChange,
|
|
18
|
-
mode = "popover",
|
|
19
18
|
onCreate,
|
|
20
19
|
disabled,
|
|
21
20
|
className,
|
|
@@ -79,21 +78,15 @@ function Autocomplete({
|
|
|
79
78
|
setOpen(true);
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
return /* @__PURE__ */ jsxs(Combobox.Root, { label: ariaLabel, className, shouldFilter: !onInputChange, children: [
|
|
94
|
-
/* @__PURE__ */ jsx(Combobox.Input, { ...input, disabled }),
|
|
95
|
-
list
|
|
96
|
-
] });
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
Combobox.Root,
|
|
83
|
+
{
|
|
84
|
+
label: ariaLabel,
|
|
85
|
+
className: cn("overflow-visible rounded-none bg-transparent", className),
|
|
86
|
+
shouldFilter: !onInputChange,
|
|
87
|
+
children: /* @__PURE__ */ jsx(ComboboxPopover, { open: open && !disabled, onOpenChange: setOpen, input, disabled, children: list })
|
|
88
|
+
}
|
|
89
|
+
);
|
|
97
90
|
}
|
|
98
91
|
Autocomplete.displayName = "Autocomplete";
|
|
99
92
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexub/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.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": "
|
|
85
|
-
"@nexub/icons": "
|
|
84
|
+
"@nexub/core": "7.0.0",
|
|
85
|
+
"@nexub/icons": "7.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": "^
|
|
91
|
+
"@nexub/tokens": "^7.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": "
|
|
124
|
-
"@nexub/tokens": "
|
|
123
|
+
"@nexub/themes": "7.0.0",
|
|
124
|
+
"@nexub/tokens": "7.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",
|