Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
8d43b2f
build(components): include primitives in PREBUILD_CSS rollup pass
nad182 May 6, 2026
3223eb0
feat(components): add InputNumberExperimental primitive on Base UI
nad182 May 6, 2026
b92e7b7
docs(components): add InputNumberExperimental Storybook stories
nad182 May 6, 2026
30bf91a
fix(components): match v1 affix label color in InputNumberExperimental
nad182 May 6, 2026
7e372d6
fix(components): scope size variant padding to affix labels in InputN…
nad182 May 7, 2026
0c28497
Cleaning up InputNumberExperimental to leverage some more built in fe…
MichaelParadis May 7, 2026
d1f6ea7
fix(components): preserve InputGroup overrides in InputNumberExperime…
nad182 May 7, 2026
c1df7eb
fix(components): match V1/V2 onChange commit timing in InputNumberExp…
nad182 May 7, 2026
256df2a
fix(components): hide compound Stepper when InputNumberExperimental i…
nad182 May 7, 2026
7605562
fix(components): require ariaLabel on clickable compound .Affix
nad182 May 7, 2026
da94341
build(components): use object form for PREBUILD_CSS_INPUTS
nad182 May 7, 2026
04701fe
fix(components): use icon name as ariaLabel fallback on clickable affix
nad182 May 7, 2026
e113a45
refactor(components): trim verbose comments on InputNumberExperimental
nad182 May 7, 2026
1262f40
refactor(components): drop redundant inline comments in InputNumberEx…
nad182 May 7, 2026
84426a5
fix(components): use generic Action fallback on clickable affix ariaL…
nad182 May 8, 2026
a8e11dc
fix(components): commit InputNumberExperimental on Enter for V1 parity
nad182 May 8, 2026
6e6290a
Merge branch 'master' into JOB-145723/input-number-experimental
nad182 May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions packages/components/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,25 @@ const createMultiInput =
typeof multiInput === "function" ? multiInput : multiInput.default;

/**
* When PREBUILD_CSS is supplied, only build the main index.ts file.
* When PREBUILD_CSS is supplied, only build the main barrels.
* This ensures postcss maintains consistent ordering of styles across builds.
*
* Using multiInput (input with globs) produces inconsistent ordering within styles.css
* because files are loaded in a non-deterministic order, and postcss bundles them in
* that order.
*
* The primitives barrel is included in addition to the main barrel so that styled
* primitives (under `src/primitives/`) contribute their CSS module hashes to the
* extracted styles.css. Without this, primitives' class hashes appear in the JS
* bundle but not in the stylesheet, so consumers see no styles applied.
*/
const PREBUILD_CSS = process.env.PREBUILD_CSS === "true";
// Object form gives each entry a unique `[name]` for output filenames; both
// inputs share the basename `index.ts`, so the array form would collide.
const PREBUILD_CSS_INPUTS = {
index: "src/index.ts",
"primitives/index": "src/primitives/index.ts",
};

/**
* PostCSS plugin to remove @charset declarations.
Expand Down Expand Up @@ -52,7 +63,7 @@ export default {

warn(warning);
},
input: PREBUILD_CSS ? "src/index.ts" : `src/**/index.{ts,tsx}`,
input: PREBUILD_CSS ? PREBUILD_CSS_INPUTS : `src/**/index.{ts,tsx}`,
plugins: [
nodePolyfills(),
nodeResolve(),
Expand Down
Loading