teqo/src/components
Francisco Ignácio Fontoura Solla 712649eecf Replace state/city selects with type-to-filter comboboxes
Turn StateSelect and CitySelect into autocomplete comboboxes so long
lists no longer bias people toward the top option. A shared FormCombobox
wraps shadcn's (Base UI) Combobox and bridges it to react-hook-form via
useController, storing the state code / city name while displaying a
label. Matching is accent-insensitive and prefix-based; the list opens
after 1 character and results are alphabetical. State searches by both
full name and initials (new StateNames map).

Adds @base-ui/react + shadcn combobox/input-group primitives, and
documents our export-const and named-hook-import conventions in the
components rule (with the src/components/ui/* shadcn carve-out).
2026-07-15 14:41:58 -03:00
..
ui Replace state/city selects with type-to-filter comboboxes 2026-07-15 14:41:58 -03:00
CitySelect.tsx Replace state/city selects with type-to-filter comboboxes 2026-07-15 14:41:58 -03:00
EmailInput.tsx Improve Inputs 2026-03-20 12:36:16 -03:00
Footer.tsx feat(payload): add pt-BR admin/frontend copy and site settings social links 2026-02-15 01:17:26 -03:00
FormCombobox.tsx Replace state/city selects with type-to-filter comboboxes 2026-07-15 14:41:58 -03:00
FormInput.tsx Improve FormInput 2026-03-20 17:54:22 -03:00
Header.tsx fix: Create petition: Downgraded back to Next 15, removed revalidation on first draft save, chaged reavlidation patter to factory mode to support a revalidation tag per document 2026-03-08 22:53:57 -03:00
NameInput.tsx Improve NameInput 2026-03-20 15:44:11 -03:00
PetitionForm.tsx feat: Add signature counter and display 2026-05-01 01:51:07 -03:00
PetitionSuccessDialog.tsx feat: Add signature counter and display 2026-05-01 01:51:07 -03:00
PhoneInput.tsx Improve Inputs readability 2026-03-20 12:46:16 -03:00
PostalCodeInput.tsx fix zip code input field 2026-05-01 00:22:18 -03:00
SignatureCounter.tsx Fetch live count on mount to override stale initialCount 2026-05-01 10:21:55 -03:00
socialIcons.tsx Add ThankStep 2026-03-18 23:55:28 -03:00
socialLinks.tsx Add ThankStep 2026-03-18 23:55:28 -03:00
StateSelect.tsx Replace state/city selects with type-to-filter comboboxes 2026-07-15 14:41:58 -03:00
ThemeProvider.tsx Including page mandato-no-whatsapp 2026-03-14 18:07:40 -03:00
WhatsappForm.tsx Improve form field behavior, phone formatting 2026-03-20 12:17:16 -03:00