@bytebrand/fe-ui-core-autobahn 1.0.135 → 1.0.136

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ui/FormField.tsx +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.135",
3
+ "version": "1.0.136",
4
4
  "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
5
  "main": "index.ts",
6
6
  "license": "UNLICENSED",
package/ui/FormField.tsx CHANGED
@@ -21,7 +21,12 @@ export interface FormFieldProps {
21
21
  /** override the field's own type (e.g. force 'password'). */
22
22
  type?: string;
23
23
  id?: string;
24
- autoComplete?: 'on' | 'off';
24
+ /** Any WHATWG autofill-detail token ('given-name', 'family-name', 'email', 'tel', …), not
25
+ * just 'on'/'off' — narrower typing here previously blocked callers from disambiguating
26
+ * structurally-similar fields (e.g. firstName/lastName) for the browser's own autofill,
27
+ * which can otherwise fill the same value into both (confirmed live: Chrome's
28
+ * profile-autofill on RegistrationForm.tsx's firstName/lastName, corrupting Odoo leads). */
29
+ autoComplete?: string;
25
30
  disabled?: boolean;
26
31
  onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
27
32
  /** suppress the built-in label (for layouts that supply their own external label next to the field). */