@rudra-studio/rudra-layout 1.0.23 → 1.0.25

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.
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,4 @@
1
+ //#region src/components/AspectRatio/styles.module.scss
2
+ var e = {};
3
+ //#endregion
4
+ export { e as default };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ export interface BoxProps {
3
3
  children?: React.ReactNode;
4
4
  /**
5
5
  * The Custom Attributes Dictionary
@@ -10,6 +10,17 @@ export interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
10
10
  customAttributes?: Record<string, string>;
11
11
  /** * @type|class
12
12
  * @schema [{
13
+ * "key": "Display",
14
+ * "type": "select",
15
+ * "options": [
16
+ * {"key": "flex", "label": "Flex"},
17
+ * {"key": "block", "label": "Block"},
18
+ * {"key": "grid", "label": "Grid"},
19
+ * {"key": "inline-flex", "label": "Inline Flex"},
20
+ * {"key": "inline-block", "label": "Inline Block"},
21
+ * {"key": "hidden", "label": "Hidden"}
22
+ * ]
23
+ * },{
13
24
  * "key": "Direction",
14
25
  * "prefix": "flex",
15
26
  * "type": "select",
@@ -59,6 +70,8 @@ export interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
59
70
  * }]
60
71
  */
61
72
  className?: string;
73
+ style?: React.CSSProperties;
74
+ onClick?: (e: any) => void;
62
75
  }
63
76
  export declare const Box: React.FC<BoxProps>;
64
77
  export default Box;
@@ -1,11 +1,23 @@
1
1
  import "react";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  //#region src/components/Box/index.tsx
4
- var t = ({ children: t, customAttributes: n = {}, className: r = "", ...i }) => /* @__PURE__ */ e("div", {
5
- className: `flex ${r}`.trim(),
6
- ...n,
7
- ...i,
8
- children: t
9
- });
4
+ var t = ({ children: t, customAttributes: n = {}, className: r = "", style: i, onClick: a, ...o }) => {
5
+ let s = [
6
+ "flex",
7
+ "block",
8
+ "grid",
9
+ "inline-flex",
10
+ "inline-block",
11
+ "hidden"
12
+ ];
13
+ return /* @__PURE__ */ e("div", {
14
+ className: r.split(" ").some((e) => s.includes(e)) ? r : `flex ${r}`.trim(),
15
+ style: i,
16
+ onClick: a,
17
+ ...n,
18
+ ...o,
19
+ children: t
20
+ });
21
+ };
10
22
  //#endregion
11
23
  export { t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/Box/styles.module.scss
2
+ var e = {};
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1 @@
1
+ ._container_1a7nx_1{background-color:#f0f0f0;padding:16px}
@@ -0,0 +1,4 @@
1
+ //#region src/components/Carousel/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/Container/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/DataCarousel/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/Flex/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1 @@
1
+ ._container_os1o1_1{background-color:#f0f0f0;padding:16px}
@@ -0,0 +1,4 @@
1
+ //#region src/components/Grid/styles.module.scss
2
+ var e = "_container_os1o1_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1 @@
1
+ ._container_1oozc_1{padding:16px}
@@ -0,0 +1,4 @@
1
+ //#region src/components/Repeater/styles.module.scss
2
+ var e = "_container_1oozc_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/RepeaterTable/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/ScrollArea/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/Section/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/Stack/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/StructuredGrid/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/Table/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/VirtualList/styles.module.scss
2
+ var e = "_container_1a7nx_1", t = { container: e };
3
+ //#endregion
4
+ export { e as container, t as default };
package/package.json CHANGED
@@ -25,7 +25,9 @@
25
25
  "import": "./*.js",
26
26
  "require": "./*.js",
27
27
  "types": "./*.d.ts"
28
- }
28
+ },
29
+ "./components/*/styles.css": "./components/*/styles.css",
30
+ "./global.css": "./global.css"
29
31
  },
30
32
  "jsdelivr": "./index.umd.js",
31
33
  "main": "./index.js",
@@ -43,5 +45,5 @@
43
45
  },
44
46
  "types": "./index.d.ts",
45
47
  "unpkg": "./index.umd.js",
46
- "version": "1.0.23"
48
+ "version": "1.0.25"
47
49
  }