Skip to content

Commit bca07a9

Browse files
feat: add country subdivision question (#232)
* feat(wip): add new country subdivision question * chore: get rid of unused uuid * feat(wip): map regions to value label for options * ci: fix release config * feat(wip): connect subdivision question to country question current value * fix: sort by priority after alphabetical sort * chore: add more use cases to the example form for country subdivisions * feat: add valueType config parameter to customize return value * feat: reset select value when linked country changes value * fix: avoid using toReversed as it's recent node feature * chore: remove tests in example app * chore: add example of country subdivision for a fix country * chore: declare CountrySubdivisionValueType enum * refactor: move buildCountrySubdivisonOptions to a separate file * chore: export CountrySubdivisionValueType * test: add buildCountrySubdivisonOptions unit tests * test: add basic unit test of the QuestionCountrySubdivision component * docs: add documentation for country_subdivision question * docs: add documentation for country_subdivision question * docs: improve documentation * chore: update minor dependencies
1 parent feb3a74 commit bca07a9

File tree

22 files changed

+1892
-1102
lines changed

22 files changed

+1892
-1102
lines changed

README.md

Lines changed: 99 additions & 46 deletions
Large diffs are not rendered by default.

example/package-lock.json

Lines changed: 83 additions & 84 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/src/App.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ const App = () => {
1515
<li>
1616
<Link to={'countries'}>Countries form</Link>
1717
</li>
18+
<li>
19+
<Link to={'country_subdivisions'}>Country subdivision form</Link>
20+
</li>
1821
</ul>
1922
</nav>
2023
<div>

example/src/forms/Contact/Contact.test.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)