@solexllc/usx-react 0.3.0 → 0.3.1

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
@@ -98,7 +98,8 @@ loading component styles. Existing `$max-layout-width` and `$max-sidebar-width`
98
98
  remain the static defaults when the new width settings are unset. Runtime gutter
99
99
  hooks take precedence in the themed build. `$usx-layout-breakpoint` defaults to
100
100
  `$breakpoint-desktop` (1024px) and accepts a CSS length such as `880px`.
101
- It controls the outer gutters, not sidebar visibility. Configure it at
101
+ It controls outer gutters and USX-owned desktop transitions, including Hero,
102
+ MiscBanner, Pagination, and `at-media('desktop')`, not sidebar visibility. Configure it at
102
103
  compile time, since CSS custom properties cannot set media-query thresholds.
103
104
 
104
105
  CSS container queries show the expand/contract button only when the two widths
@@ -108,18 +109,36 @@ The expanded state is preserved when resizing temporarily removes the difference
108
109
  Django and static HTML use the same sizing and visibility rules.
109
110
 
110
111
  The `layout.sizing()` mixin accepts `$gutter-mobile` and `$gutter` lengths
111
- (defaults: 12px and 32px). It uses these for static padding and subtracts them
112
+ (defaults: `$usx-layout-gutter-mobile-default`, 12px, and
113
+ `$usx-layout-gutter-default`, 32px). It uses these for static padding and subtracts them
112
114
  from the expansion thresholds at the corresponding viewport breakpoint.
113
115
  For custom gutters, pass the same lengths used by your runtime gutter tokens
114
116
  or static Sass overrides. CSS size queries cannot read custom properties, so
115
117
  changing runtime gutters alone does not update the compiled button threshold.
116
118
  The compact comparison uses `$gutter-mobile: 1rem` and `$gutter: 2.5rem`.
117
119
 
118
- The custom grid does not require `grid-row`, `grid-col`, or `grid-gap`. USWDS's
119
- site-margin settings still control its own containers; align those settings
120
- with the USX gutter values when mixing both container types. Do not add a
120
+ The custom grid does not require `grid-row`, `grid-col`, or `grid-gap`. Shared
121
+ `grid-container`, Banner, Header, Hero, MiscBanner, and Identifier containers use
122
+ the same maximum and responsive gutters. Hero's horizontal tablet padding now
123
+ matches Layout rather than adding a separate intermediate gutter. Do not add a
121
124
  second padded `grid-container` around Layout unless nested gutters are intended.
122
125
 
126
+ Use `@include layout-container` for new page-shell containers, or
127
+ `@include layout-gutters` for padding alone. `at-media('desktop', 'max')` emits
128
+ an exclusive below-desktop query; `at-media('tablet')` reads
129
+ `$breakpoint-tablet`. The legacy `at-media('mobile')` means below tablet.
130
+ Legacy width and breakpoint variables remain default aliases, but new styles
131
+ should consume the `$usx-layout-*` settings and media helpers.
132
+
133
+ Load USWDS's precompiled CSS unchanged, then load USX as an overlay. No USWDS Sass
134
+ configuration or compilation is required. USX settings do not redefine upstream
135
+ `desktop:*` or `tablet:*` utilities. Header's mobile drawer and desktop structure
136
+ remain controlled by upstream CSS; use `at-media('uswds-header')` for appearance
137
+ overrides that must follow that transition. Its shared 64em compatibility value
138
+ is not a USWDS customization. Header container widths and gutters still use USX
139
+ layout settings. Use USX-owned selectors and media helpers when custom responsive
140
+ behavior is needed rather than changing the meaning of upstream utility classes.
141
+
123
142
  Layout stories use fullscreen previews. `ResponsiveComparison` and
124
143
  `ThemedComparison` cover no, left, right, and both sidebars. When checking
125
144
  expansion, expand at desktop width and resize without reloading the story.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solexllc/usx-react",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "React component library for USX.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@solexllc/usx": "0.3.0",
29
- "@solexllc/usx-theme": "0.4.0",
30
- "@solexllc/usx-uswds-fixes": "0.1.8",
28
+ "@solexllc/usx": "0.4.0",
29
+ "@solexllc/usx-theme": "0.5.0",
30
+ "@solexllc/usx-uswds-fixes": "0.1.9",
31
31
  "classnames": "^2.5.1",
32
32
  "prop-types": "^15.8.1"
33
33
  },
@@ -1,6 +1,5 @@
1
- // Sass entry for the core package: theme variables, the themed USX component
1
+ // Sass entry for the core package: the themed USX component
2
2
  // styles and the USWDS fix-ups. Component styles live in packages/usx.
3
- @use 'pkg:@solexllc/usx-theme/variables' as *;
4
3
 
5
4
  // Themed entry = runtime theming opt-in (loads usx-theme's hooks before the
6
5
  // component styles). Swap to 'pkg:@solexllc/usx' for a fully static build.