@oliasoft-open-source/react-ui-library 5.15.1 → 5.15.2
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/index.d.ts +2 -1
- package/dist/index.js +5 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ declare type FilterToggle = {
|
|
|
137
137
|
onChange: () => void;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
export declare const Flex: ({ alignItems, justifyContent, direction, height, children, wrap, gap, }: IFlexProps) => JSX_2.Element;
|
|
140
|
+
export declare const Flex: ({ alignItems, justifyContent, direction, height, width, children, wrap, gap, }: IFlexProps) => JSX_2.Element;
|
|
141
141
|
|
|
142
142
|
export declare const FormRow: ({ children }: IFormRowProps) => JSX_2.Element;
|
|
143
143
|
|
|
@@ -541,6 +541,7 @@ export declare interface IFlexProps {
|
|
|
541
541
|
justifyContent?: string;
|
|
542
542
|
direction?: Property.FlexDirection;
|
|
543
543
|
height?: TStringOrNumber;
|
|
544
|
+
width?: TStringOrNumber;
|
|
544
545
|
children?: default_2.ReactNode;
|
|
545
546
|
wrap?: boolean;
|
|
546
547
|
gap?: boolean | TStringOrNumber;
|
package/dist/index.js
CHANGED
|
@@ -5463,17 +5463,18 @@ const Field = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children:
|
|
|
5463
5463
|
className: form_module_default.fieldInput,
|
|
5464
5464
|
children: r
|
|
5465
5465
|
})]
|
|
5466
|
-
}), Flex = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial",
|
|
5466
|
+
}), Flex = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ jsx("div", {
|
|
5467
5467
|
style: {
|
|
5468
5468
|
display: "flex",
|
|
5469
5469
|
flexDirection: n,
|
|
5470
5470
|
alignItems: e,
|
|
5471
5471
|
justifyContent: t,
|
|
5472
5472
|
height: typeof r == "number" ? `${r}px` : r,
|
|
5473
|
-
|
|
5474
|
-
|
|
5473
|
+
width: typeof i == "number" ? `${i}px` : i,
|
|
5474
|
+
flexWrap: o ? "wrap" : "nowrap",
|
|
5475
|
+
gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
|
|
5475
5476
|
},
|
|
5476
|
-
children:
|
|
5477
|
+
children: a
|
|
5477
5478
|
});
|
|
5478
5479
|
var form_row_module_default = { formRow: "_formRow_odewu_1" };
|
|
5479
5480
|
const FormRow = ({ children: e }) => /* @__PURE__ */ jsx("div", {
|
package/package.json
CHANGED