@fabio.caffarello/react-design-system 4.0.0 → 4.1.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/granular/ui/components/Autocomplete/Autocomplete.js +97 -86
- package/dist/granular/ui/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/granular/ui/primitives/Button/Button.js +86 -104
- package/dist/granular/ui/primitives/Button/Button.js.map +1 -1
- package/dist/index.cjs +82 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2130 -2137
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +13 -13
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +993 -752
- package/dist/server/index.js.map +1 -1
- package/dist/ui/components/Autocomplete/Autocomplete.d.ts +21 -0
- package/dist/ui/server.d.ts +2 -0
- package/package.json +1 -1
|
@@ -33,6 +33,27 @@ export interface AutocompleteProps {
|
|
|
33
33
|
*/
|
|
34
34
|
"aria-labelledby"?: string;
|
|
35
35
|
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the form field (issue #225). When set, the component renders
|
|
38
|
+
* a synchronized `<input type="hidden" name={name}>` carrying the
|
|
39
|
+
* **selected option value** (not the visible search text), so the
|
|
40
|
+
* Autocomplete participates in native form submission exactly like a
|
|
41
|
+
* `<select name>` — a `<form method="GET">` picks up `name=value` with
|
|
42
|
+
* no `onChange`/router wiring on the consumer side. This is the
|
|
43
|
+
* form-native integration the brasil-a-vera filter bars need.
|
|
44
|
+
*
|
|
45
|
+
* Caveat: the component is interactive (`"use client"`), so the hidden
|
|
46
|
+
* field is populated once hydrated — it is NOT a pre-hydration no-JS
|
|
47
|
+
* fallback. For a true zero-JS fallback, pair it with a `<noscript>`
|
|
48
|
+
* native `<select name>`.
|
|
49
|
+
*/
|
|
50
|
+
name?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Associates the hidden field with a form by id (the native `form`
|
|
53
|
+
* attribute), for when the Autocomplete renders outside the `<form>`
|
|
54
|
+
* it submits to. No effect unless `name` is also set.
|
|
55
|
+
*/
|
|
56
|
+
form?: string;
|
|
36
57
|
}
|
|
37
58
|
/**
|
|
38
59
|
* Autocomplete Component
|
package/dist/ui/server.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as Badge } from "./primitives/Badge/Badge";
|
|
2
2
|
export type { BadgeProps, BadgeSize, BadgeStyle, BadgeVariant, } from "./primitives/Badge/Badge";
|
|
3
|
+
export { default as Button } from "./primitives/Button/Button";
|
|
4
|
+
export type { ButtonProps, ButtonSize, ButtonVariant, } from "./primitives/Button/Button";
|
|
3
5
|
export { default as Chip } from "./primitives/Chip/Chip";
|
|
4
6
|
export type { ChipProps, ChipSize, ChipVariant } from "./primitives/Chip/Chip";
|
|
5
7
|
export { default as ErrorMessage } from "./primitives/ErrorMessage/ErrorMessage";
|