ui-beyable 1.1.0-beta.18 → 1.1.0-beta.19
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.
|
@@ -8,6 +8,7 @@ interface StackType {
|
|
|
8
8
|
gap?: spaceType;
|
|
9
9
|
shouldWrap?: boolean;
|
|
10
10
|
alignInline?: alignInlineType;
|
|
11
|
+
flex?: flexType;
|
|
11
12
|
style?: React.CSSProperties;
|
|
12
13
|
}
|
|
13
14
|
interface StackRowType {
|
|
@@ -16,6 +17,6 @@ interface StackRowType {
|
|
|
16
17
|
flex?: flexType;
|
|
17
18
|
style?: React.CSSProperties;
|
|
18
19
|
}
|
|
19
|
-
declare function Stack({ children, className, gap, alignInline, style }: StackType): JSX.Element;
|
|
20
|
+
declare function Stack({ children, className, gap, alignInline, flex, style }: StackType): JSX.Element;
|
|
20
21
|
declare function StackRow({ children, className, flex, style }: StackRowType): JSX.Element;
|
|
21
22
|
export { Stack, StackRow };
|
package/lib/cjs/index.js
CHANGED
|
@@ -4131,7 +4131,7 @@ var getFlexClass = function (flex$1) {
|
|
|
4131
4131
|
return '';
|
|
4132
4132
|
};
|
|
4133
4133
|
function Stack(_a) {
|
|
4134
|
-
var children = _a.children, className = _a.className, _b = _a.gap, gap = _b === void 0 ? 'space.150' : _b, _c = _a.alignInline, alignInline = _c === void 0 ? 'stretch' : _c, _d = _a.style, style = _d === void 0 ? {} : _d;
|
|
4134
|
+
var children = _a.children, className = _a.className, _b = _a.gap, gap = _b === void 0 ? 'space.150' : _b, _c = _a.alignInline, alignInline = _c === void 0 ? 'stretch' : _c, flex$1 = _a.flex, _d = _a.style, style = _d === void 0 ? {} : _d;
|
|
4135
4135
|
var cssClass = [flex.flex, flex.flex_direction_column];
|
|
4136
4136
|
style.rowGap = token(gap);
|
|
4137
4137
|
if (className) {
|
|
@@ -4140,6 +4140,9 @@ function Stack(_a) {
|
|
|
4140
4140
|
if (alignInline) {
|
|
4141
4141
|
cssClass.push(getAlignInlineClass(alignInline));
|
|
4142
4142
|
}
|
|
4143
|
+
if (flex$1) {
|
|
4144
|
+
cssClass.push(getFlexClass(flex$1));
|
|
4145
|
+
}
|
|
4143
4146
|
return (React.createElement("div", { className: cssClass.join(' '), style: style }, children));
|
|
4144
4147
|
}
|
|
4145
4148
|
function StackRow(_a) {
|