- 2a7b7b2: Fix release pipeline:
build:packagesnow matches all packages (filter was missing one-segment-deep paths, soreact,compat,themeshipped withoutdist/). Publish step now passes--tag alphaso prereleases stop hijacking thelatestdist-tag.
- 65ce7ca: CI tweaks and readme updates
- dd6574d: Add package readmes
-
Simpler consumer install and CSS setup. Reverses the peer-dep split introduced in
alpha.2.Install (1 package):
{ "dependencies": { "@uswds-tailwind/react": "alpha" } }@uswds-tailwind/themeis now a regular dependency of@uswds-tailwind/react, so it installs transitively. Consumers no longer need to list it explicitly.CSS (2 lines):
@import "tailwindcss"; @import "@uswds-tailwind/react";
@uswds-tailwind/reactnow declares a"style"export condition that points at its bundled stylesheet. CSS bundlers (Vite +@tailwindcss/vite, Parcel, PostCSS with@tailwindcss/postcss) resolve@import "@uswds-tailwind/react"to that file automatically. The previous@import "@uswds-tailwind/react/styles.css"form still works.Theme dependency cleanup:
tailwindcssmoved fromdependencies→peerDependencieson@uswds-tailwind/theme. Consumers always have their owntailwindcssin their app build; pinning a copy inside theme risked installing a duplicate that wouldn't share the consumer's plugin registry.- The five
@fontsource-variable/*and four@iconify-json/*/@iconify/tailwind4packages moved fromdependencies→optionalDependencies. They install by default (no consumer-facing change), but can be opted out of withpnpm install --no-optionalornpm install --omit=optionalfor consumers who want to provide their own fonts/icons.
Webpack note: the
styleexport condition needsresolve.conditionNames: ['style', '...'](or use@tailwindcss/postcss). Vite users get it for free.
-
78f422a: Breaking for consumers:
@uswds-tailwind/themeis now a peer dependency of@uswds-tailwind/react, not a transitive dependency. Consumers must now list both packages explicitly:{ "dependencies": { "@uswds-tailwind/react": "alpha", "@uswds-tailwind/theme": "alpha" } }This gives consumers direct control over the theme version and makes the dependency chain visible. The CSS import story is unchanged:
@import "tailwindcss"; @import "@uswds-tailwind/react/styles.css";
Fixes:
@uswds-tailwind/combobox-compatwas missing@zag-js/utilsin itsdependencies, causing Rollup-based builds (Storybook, Vite production builds in some layouts) to fail with "Cannot resolve import '@zag-js/utils'". Now declared correctly.
-
0290ac1: Per-component subpath imports and bundled fonts/icons.
@uswds-tailwind/reactnow emits a per-component entry for each component directory, soimport { Button } from '@uswds-tailwind/react/button'works alongside the root barrel import.sideEffectsis configured so bundlers can tree-shake unused components.@uswds-tailwind/react/styles.cssis the single stylesheet consumers import. It pulls in@uswds-tailwind/themeand registers its own@sourcedirective so Tailwind v4 picks up component classes without any path juggling on the consumer side.@uswds-tailwind/themenow owns the font & iconify dependencies. The five USWDS variable fonts are@import'd automatically, and the@iconify-json/*data packages install with the theme so icon utility classes render out of the box.
Consumer install is two lines:
@import "tailwindcss"; @import "@uswds-tailwind/react/styles.css";
Apply
font-source-sans(orfont-public-sans, etc.) on elements where USWDS typography should take effect.
-
31de347: First public alpha of the USWDS + Tailwind component system. The
@uswds-tailwind/reactpackage ships React components matching USWDS behavior via Zag-based state machines, with parity tests mirroring USWDS's own legacy JS. The@uswds-tailwind/compatpackage provides a vanilla-JS bridge for progressive enhancement of existing USWDS markup.@uswds-tailwind/themebundles the Tailwind config + design tokens.Alpha quality: APIs may change based on consumer feedback. Expect per-prop renames, compound-part ergonomics polish, and small fixes between
-alpha.Nreleases.
- f1236e1: Basic working components with all USWDS tests passing
- 67ca090: Test
- Test