@bedrock-layout/solid 0.11.0 → 0.11.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/lib/index.cjs.js +2 -1
- package/lib/index.m.js +2 -1
- package/lib/index.umd.js +2 -1
- package/package.json +2 -2
package/lib/index.cjs.js
CHANGED
|
@@ -146,8 +146,9 @@
|
|
|
146
146
|
inherits: true;
|
|
147
147
|
initial-value: 0;
|
|
148
148
|
}
|
|
149
|
+
|
|
149
150
|
flex-wrap: nowrap;
|
|
150
|
-
${e=>e.stretch==="all"?"> * { flex: 1 }":e.stretch==="start"?"> :first-child { flex: 1 }":e.stretch==="end"?"> :last-child { flex: 1 }":typeof e.stretch=="number"
|
|
151
|
+
${e=>e.stretch==="all"?"& > * { flex: 1 }":e.stretch==="start"?"& > :first-child { flex: 1 }":e.stretch==="end"?"& > :last-child { flex: 1 }":typeof e.stretch=="number"?`& > :nth-child(${e.stretch+1}) { flex: 1 }`:""}
|
|
151
152
|
|
|
152
153
|
${e=>ae(e.switchAt)?`
|
|
153
154
|
--switchAt: ${typeof e.switchAt=="string"?e.switchAt:`${e.switchAt}px`};
|
package/lib/index.m.js
CHANGED
|
@@ -410,8 +410,9 @@ const Inline = styled(InlineCluster)`
|
|
|
410
410
|
inherits: true;
|
|
411
411
|
initial-value: 0;
|
|
412
412
|
}
|
|
413
|
+
|
|
413
414
|
flex-wrap: nowrap;
|
|
414
|
-
${(props) => props.stretch === "all" ?
|
|
415
|
+
${(props) => props.stretch === "all" ? `& > * { flex: 1 }` : props.stretch === "start" ? `& > :first-child { flex: 1 }` : props.stretch === "end" ? `& > :last-child { flex: 1 }` : typeof props.stretch === "number" ? `& > :nth-child(${props.stretch + 1}) { flex: 1 }` : ""}
|
|
415
416
|
|
|
416
417
|
${(props) => shouldUseSwitch(props.switchAt) ? `
|
|
417
418
|
--switchAt: ${typeof props.switchAt === "string" ? props.switchAt : `${props.switchAt}px`};
|
package/lib/index.umd.js
CHANGED
|
@@ -146,8 +146,9 @@ var ve=Object.defineProperty,we=Object.defineProperties;var $e=Object.getOwnProp
|
|
|
146
146
|
inherits: true;
|
|
147
147
|
initial-value: 0;
|
|
148
148
|
}
|
|
149
|
+
|
|
149
150
|
flex-wrap: nowrap;
|
|
150
|
-
${e=>e.stretch==="all"?"> * { flex: 1 }":e.stretch==="start"?"> :first-child { flex: 1 }":e.stretch==="end"?"> :last-child { flex: 1 }":typeof e.stretch=="number"
|
|
151
|
+
${e=>e.stretch==="all"?"& > * { flex: 1 }":e.stretch==="start"?"& > :first-child { flex: 1 }":e.stretch==="end"?"& > :last-child { flex: 1 }":typeof e.stretch=="number"?`& > :nth-child(${e.stretch+1}) { flex: 1 }`:""}
|
|
151
152
|
|
|
152
153
|
${e=>te(e.switchAt)?`
|
|
153
154
|
--switchAt: ${typeof e.switchAt=="string"?e.switchAt:`${e.switchAt}px`};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock-layout/solid",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "solid.js port of bedrock-layout primitives",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"bugs": {
|
|
63
63
|
"url": "https://github.com/Bedrock-Layouts/Solid-Bedrock/issues"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "369e7e9cd75c55400dfc6879d75ed96d9036ab22"
|
|
66
66
|
}
|