@etsoo/materialui 1.4.92 → 1.4.93

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.
@@ -5,6 +5,12 @@ import { StackProps } from "@mui/material";
5
5
  * @returns Component
6
6
  */
7
7
  export declare function HBox(props: Omit<StackProps, "ref">): import("react/jsx-runtime").JSX.Element;
8
+ /**
9
+ * Horizonal box with list items
10
+ * @param props Props
11
+ * @returns Component
12
+ */
13
+ export declare function HBoxList(props: Omit<StackProps, "direction">): import("react/jsx-runtime").JSX.Element;
8
14
  /**
9
15
  * Vertial box
10
16
  * @param props Props
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HBox = HBox;
4
+ exports.HBoxList = HBoxList;
4
5
  exports.VBox = VBox;
5
6
  const jsx_runtime_1 = require("react/jsx-runtime");
6
7
  const material_1 = require("@mui/material");
@@ -12,6 +13,14 @@ const material_1 = require("@mui/material");
12
13
  function HBox(props) {
13
14
  return (0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", width: "100%", ...props });
14
15
  }
16
+ /**
17
+ * Horizonal box with list items
18
+ * @param props Props
19
+ * @returns Component
20
+ */
21
+ function HBoxList(props) {
22
+ return ((0, jsx_runtime_1.jsx)(material_1.Stack, { spacing: 1, gap: 1, direction: "row", flexWrap: "wrap", width: "100%", ...props }));
23
+ }
15
24
  /**
16
25
  * Vertial box
17
26
  * @param props Props
@@ -5,6 +5,12 @@ import { StackProps } from "@mui/material";
5
5
  * @returns Component
6
6
  */
7
7
  export declare function HBox(props: Omit<StackProps, "ref">): import("react/jsx-runtime").JSX.Element;
8
+ /**
9
+ * Horizonal box with list items
10
+ * @param props Props
11
+ * @returns Component
12
+ */
13
+ export declare function HBoxList(props: Omit<StackProps, "direction">): import("react/jsx-runtime").JSX.Element;
8
14
  /**
9
15
  * Vertial box
10
16
  * @param props Props
@@ -8,6 +8,14 @@ import { Stack } from "@mui/material";
8
8
  export function HBox(props) {
9
9
  return _jsx(Stack, { direction: "row", width: "100%", ...props });
10
10
  }
11
+ /**
12
+ * Horizonal box with list items
13
+ * @param props Props
14
+ * @returns Component
15
+ */
16
+ export function HBoxList(props) {
17
+ return (_jsx(Stack, { spacing: 1, gap: 1, direction: "row", flexWrap: "wrap", width: "100%", ...props }));
18
+ }
11
19
  /**
12
20
  * Vertial box
13
21
  * @param props Props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.4.92",
3
+ "version": "1.4.93",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -76,13 +76,13 @@
76
76
  "@types/pica": "^9.0.5",
77
77
  "@types/pulltorefreshjs": "^0.1.7",
78
78
  "@types/react": "^18.3.18",
79
- "@types/react-avatar-editor": "^13.0.3",
79
+ "@types/react-avatar-editor": "^13.0.4",
80
80
  "@types/react-dom": "^18.3.5",
81
81
  "@types/react-input-mask": "^3.0.6",
82
82
  "@types/react-window": "^1.8.8",
83
83
  "@vitejs/plugin-react": "^4.3.4",
84
84
  "jsdom": "^26.0.0",
85
85
  "typescript": "^5.7.3",
86
- "vitest": "^3.0.6"
86
+ "vitest": "^3.0.7"
87
87
  }
88
88
  }
package/src/FlexBox.tsx CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Stack, StackProps } from "@mui/material";
2
- import React from "react";
3
2
 
4
3
  /**
5
4
  * Horizonal box
@@ -10,6 +9,24 @@ export function HBox(props: Omit<StackProps, "ref">) {
10
9
  return <Stack direction="row" width="100%" {...props} />;
11
10
  }
12
11
 
12
+ /**
13
+ * Horizonal box with list items
14
+ * @param props Props
15
+ * @returns Component
16
+ */
17
+ export function HBoxList(props: Omit<StackProps, "direction">) {
18
+ return (
19
+ <Stack
20
+ spacing={1}
21
+ gap={1}
22
+ direction="row"
23
+ flexWrap="wrap"
24
+ width="100%"
25
+ {...props}
26
+ />
27
+ );
28
+ }
29
+
13
30
  /**
14
31
  * Vertial box
15
32
  * @param props Props