@godxjp/ui 5.0.0 → 5.0.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/CHANGELOG.md +12 -0
- package/dist/components/primitives.js +3 -1
- package/dist/components/primitives.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to `@godxjp/ui`. Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
4
4
|
and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [5.0.1] — 2026-05-18
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- **`<Col>` no longer wipes `flex-basis` on default-span renders.** React
|
|
11
|
+
19 serializes `flex: undefined` as `element.style.flex = ""`, and
|
|
12
|
+
because `flex` is a CSS shorthand it clears the `flex-basis: ${span}%`
|
|
13
|
+
longhand set on the line above. Result: every `<Row gutter><Col xs=
|
|
14
|
+
{24} md={12}>` was collapsing to content width instead of the
|
|
15
|
+
half-width the API promised. Conditional spread keeps the `flex` key
|
|
16
|
+
out of the style object unless actually defined (#70).
|
|
17
|
+
|
|
6
18
|
## [5.0.0] — 2026-05-18
|
|
7
19
|
|
|
8
20
|
### BREAKING CHANGES
|
|
@@ -159,11 +159,13 @@ function Col({
|
|
|
159
159
|
const merged = {
|
|
160
160
|
flexBasis: flex !== void 0 ? void 0 : `${SPAN_TO_PCT(resolved)}%`,
|
|
161
161
|
maxWidth: flex !== void 0 ? void 0 : `${SPAN_TO_PCT(resolved)}%`,
|
|
162
|
-
flex: typeof flex === "number" ? `${flex} ${flex} auto` : flex,
|
|
163
162
|
paddingLeft: h ? `${h / 2}px` : void 0,
|
|
164
163
|
paddingRight: h ? `${h / 2}px` : void 0,
|
|
165
164
|
marginLeft: offset ? `${SPAN_TO_PCT(offset)}%` : void 0,
|
|
166
165
|
order,
|
|
166
|
+
...flex !== void 0 && {
|
|
167
|
+
flex: typeof flex === "number" ? `${flex} ${flex} auto` : flex
|
|
168
|
+
},
|
|
167
169
|
...style
|
|
168
170
|
};
|
|
169
171
|
return /* @__PURE__ */ jsx("div", { className: cn("min-w-0", className), style: merged, ...rest, children });
|