@selectwin/kit 0.1.124 → 0.1.125
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/dist/SelectLayout.d.ts +7 -1
- package/dist/index.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectLayout.d.ts
CHANGED
|
@@ -19,9 +19,15 @@ type SelectStackOwnProps = {
|
|
|
19
19
|
* extra room lands BETWEEN them instead of as an empty band under the content.
|
|
20
20
|
*/
|
|
21
21
|
fill?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The LAST child takes the height left over (0.1.125) — a column of cards beside a taller grid
|
|
24
|
+
* neighbour: the last card grows (its white body box goes to the foot, SelectListCard/SelectSection
|
|
25
|
+
* already flex) instead of the column ending short. Use with `fill`.
|
|
26
|
+
*/
|
|
27
|
+
growLast?: boolean;
|
|
22
28
|
};
|
|
23
29
|
export type SelectStackProps = SelectStackOwnProps & Omit<HTMLAttributes<HTMLElement>, keyof SelectStackOwnProps>;
|
|
24
|
-
export declare function SelectStack({ children, gap, align, inlineAlign, as, className, fill, ...rest }: SelectStackProps): import("react").JSX.Element;
|
|
30
|
+
export declare function SelectStack({ children, gap, align, inlineAlign, as, className, fill, growLast, ...rest }: SelectStackProps): import("react").JSX.Element;
|
|
25
31
|
type SelectInlineOwnProps = {
|
|
26
32
|
children: ReactNode;
|
|
27
33
|
gap?: SelectSpace;
|
package/dist/index.js
CHANGED
|
@@ -4529,8 +4529,8 @@ var fr = {
|
|
|
4529
4529
|
function mr(...e) {
|
|
4530
4530
|
return e.filter(Boolean).join(" ");
|
|
4531
4531
|
}
|
|
4532
|
-
function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", className: a, fill: o = !1,
|
|
4533
|
-
let
|
|
4532
|
+
function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", className: a, fill: o = !1, growLast: s = !1, ...c }) {
|
|
4533
|
+
let l = i, u = {
|
|
4534
4534
|
rowGap: t ? fr[t] : void 0,
|
|
4535
4535
|
justifyContent: n ? pr[n] : void 0,
|
|
4536
4536
|
alignItems: r ? pr[r] : void 0,
|
|
@@ -4539,10 +4539,10 @@ function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", clas
|
|
|
4539
4539
|
flex: "1 1 auto"
|
|
4540
4540
|
} : null
|
|
4541
4541
|
};
|
|
4542
|
-
return /* @__PURE__ */ m(
|
|
4543
|
-
...
|
|
4544
|
-
className: mr("select-stack", a),
|
|
4545
|
-
style:
|
|
4542
|
+
return /* @__PURE__ */ m(l, {
|
|
4543
|
+
...c,
|
|
4544
|
+
className: mr("select-stack", s && "select-stack--grow-last", a),
|
|
4545
|
+
style: u,
|
|
4546
4546
|
children: e
|
|
4547
4547
|
});
|
|
4548
4548
|
}
|