@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.
@@ -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
@@ -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";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fabio.caffarello/react-design-system",
3
3
  "private": false,
4
- "version": "4.0.0",
4
+ "version": "4.1.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",