@cronocode/react-box 0.2.8 → 0.3.1

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.
@@ -1,29 +1,29 @@
1
- import e from "../box.js";
2
- import { jsx as a } from "react/jsx-runtime";
1
+ import i from "../box.js";
2
+ import { jsx as u } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import "../utils/utils.js";
5
- function b(o) {
5
+ function l(t) {
6
6
  const {
7
- props: t,
7
+ props: o,
8
8
  onClick: r,
9
9
  type: n,
10
10
  disabled: p
11
- } = o, s = {
11
+ } = t, e = {
12
12
  onClick: r,
13
13
  type: n || "button",
14
14
  disabled: p,
15
- ...t
16
- }, i = {
17
- ...o,
18
- props: s
15
+ ...o
16
+ }, s = {
17
+ ...t,
18
+ props: e
19
19
  };
20
- return /* @__PURE__ */ a(e, {
20
+ return /* @__PURE__ */ u(i, {
21
21
  tag: "button",
22
22
  cursor: "pointer",
23
- display: "inline-block",
24
- ...i
23
+ inline: !0,
24
+ ...s
25
25
  });
26
26
  }
27
27
  export {
28
- b as default
28
+ l as default
29
29
  };
@@ -1,31 +1,32 @@
1
- import x from "../box.js";
2
- import { jsx as m } from "react/jsx-runtime";
1
+ import m from "../box.js";
2
+ import { jsx as s } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import "../utils/utils.js";
5
- function g(t) {
5
+ function u(i) {
6
6
  const {
7
- wrap: i,
8
- jc: r,
9
- ai: n,
10
- ac: o,
11
- d: e,
12
- grow: a,
13
- shrink: l,
14
- as: f
15
- } = t;
16
- return /* @__PURE__ */ m(x, {
17
- display: "flex",
18
- flexWrap: i,
19
- justifyContent: r,
20
- alignItems: n,
21
- alignContent: o,
22
- direction: e,
23
- flexGrow: a,
24
- flexShrink: l,
7
+ wrap: n,
8
+ jc: e,
9
+ ai: t,
10
+ ac: r,
11
+ d: l,
12
+ grow: o,
13
+ shrink: a,
14
+ as: f,
15
+ inline: x
16
+ } = i;
17
+ return /* @__PURE__ */ s(m, {
18
+ display: x ? "inline-flex" : "flex",
19
+ flexWrap: n,
20
+ justifyContent: e,
21
+ alignItems: t,
22
+ alignContent: r,
23
+ direction: l,
24
+ flexGrow: o,
25
+ flexShrink: a,
25
26
  alignSelf: f,
26
- ...t
27
+ ...i
27
28
  });
28
29
  }
29
30
  export {
30
- g as default
31
+ u as default
31
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "0.2.8",
3
+ "version": "0.3.1",
4
4
  "main": "./box.js",
5
5
  "module": "./box.js",
6
6
  "types": "./box.d.ts",