@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 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", children: i = null, wrap: a = !0, gap: o = !1 }) => /* @__PURE__ */ jsx("div", {
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
- flexWrap: a ? "wrap" : "nowrap",
5474
- gap: o === !1 ? 0 : o === !0 ? "var(--padding)" : typeof o == "number" ? `${o}px` : o
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: i
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.15.1",
3
+ "version": "5.15.2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {