business-obligations-ui 0.4.1 → 0.6.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/README.md CHANGED
@@ -106,11 +106,13 @@ const [choices] = useProfileChoices(); // { entityType, naics, employeeCount, se
106
106
 
107
107
  ## Conditionally applicable obligations
108
108
 
109
- `ObligationsList` takes an optional `conditional` list and shows it in its own section after the others: items that are
109
+ `ObligationsList` takes an optional `conditional` list and shows each of them inside the group of the level that requires it (city, county, state or federal), after the items
110
+ that do apply, dimmed and with what would bring it in: items that are
110
111
  not in `items` now, but would be if a detail that was left blank turned out a certain way. Each is a `ConditionalItem`,
111
112
  `{ item, when: [{ field, values }] }`, and its card says what would bring it in ("Applies if number of employees: 1, 2,
112
113
  3 …"). The package does not compute them; the playground does, from `analyzeInputs` and `evaluate`
113
- (`conditionalItems` in `apps/web/src/lib/plan.ts`). The list's filters apply to the section too.
114
+ (`conditionalItems` in `apps/web/src/lib/plan.ts`). `LaunchList` takes the same list as `conditional` and shows it after the phases, in a section grouped by level, each with
115
+ what would bring it in and no checkbox. The list's filters apply to them too. Groups run from the most local level to the widest: city, county, state, federal.
114
116
 
115
117
  ## Bundle size
116
118