@cronocode/react-box 1.1.3 → 1.1.4

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,6 +1,6 @@
1
1
  import x, { useState as N } from "react";
2
- import { c as a } from "./box.module.css.js";
3
- import { C as b, t as g } from "./utils/utils.js";
2
+ import { c as a } from "./box.module.css.mjs";
3
+ import { C as b, t as g } from "./utils/utils.mjs";
4
4
  function H(c) {
5
5
  const { tag: m, children: s, props: u, className: n, style: p } = c, e = n ? b.classNames(n, a.box) : [a.box];
6
6
  Object.entries(c).forEach(([o, i]) => {
@@ -1,5 +1,5 @@
1
1
  import g, { useState as w } from "react";
2
- import { C as v } from "../utils/utils.js";
2
+ import { C as v } from "../utils/utils.mjs";
3
3
  const s = { base: "cLD", fillnone: "cLE", fillHnone: "cLF", hovertrue: "d", filltransparent: "cLG", fillHtransparent: "cLH", fillblack: "cLI", fillHblack: "cLJ", fillwhite: "cLK", fillHwhite: "cLL", fillblue: "cLM", fillHblue: "cLN", fillred: "cLO", fillHred: "cLP", fillpurple: "cLQ", fillHpurple: "cLR", fillyellow: "cLS", fillHyellow: "cLT", fillpink: "cLU", fillHpink: "cLV", fillgreen: "cLW", fillHgreen: "cLX", fillorange: "cLY", fillHorange: "cLZ", fillnavy: "cL0", fillHnavy: "cL1", fillteal: "cL2", fillHteal: "cL3", fillviolet: "cL4", fillHviolet: "cL5", fillgray: "cL6", fillHgray: "cL7", fillbrown: "cL8", fillHbrown: "cL9", strokenone: "cMa", strokeHnone: "cMb", stroketransparent: "cMc", strokeHtransparent: "cMd", strokeblack: "cMe", strokeHblack: "cMf", strokewhite: "cMg", strokeHwhite: "cMh", strokeblue: "cMi", strokeHblue: "cMj", strokered: "cMk", strokeHred: "cMl", strokepurple: "cMm", strokeHpurple: "cMn", strokeyellow: "cMo", strokeHyellow: "cMp", strokepink: "cMq", strokeHpink: "cMr", strokegreen: "cMs", strokeHgreen: "cMt", strokeorange: "cMu", strokeHorange: "cMv", strokenavy: "cMw", strokeHnavy: "cMx", stroketeal: "cMy", strokeHteal: "cMz", strokeviolet: "cMA", strokeHviolet: "cMB", strokegray: "cMC", strokeHgray: "cMD", strokebrown: "cME", strokeHbrown: "cMF", rotate0: "cMG", rotateH0: "cMH", rotate90: "cMI", rotateH90: "cMJ", rotate180: "cMK", rotateH180: "cML", rotate270: "cMM", rotateH270: "cMN", flipxAxis: "cMO", flipHxAxis: "cMP", flipyAxis: "cMQ", flipHyAxis: "cMR" }, b = ["fill", "fillH", "stroke", "strokeH"];
4
4
  function m(o) {
5
5
  const { children: e, props: M, className: r, style: H, viewBox: k, width: L, height: p } = o, l = r ? v.classNames(r, s.base) : [s.base];
@@ -1,8 +1,8 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import u from "../box.js";
2
+ import u from "../box.mjs";
3
3
  import "react";
4
- import "../box.module.css.js";
5
- import "../utils/utils.js";
4
+ import "../box.module.css.mjs";
5
+ import "../utils/utils.mjs";
6
6
  function l(t) {
7
7
  const { tag: o, type: r, onClick: n, disabled: p, props: e } = t, i = { ...e, type: r || "button", onClick: n, disabled: p };
8
8
  return /* @__PURE__ */ s(u, { tag: o || "button", cursor: "pointer", inline: !0, ...t, props: i });
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import r from "../box.js";
2
+ import r from "../box.mjs";
3
3
  import "react";
4
- import "../box.module.css.js";
5
- import "../utils/utils.js";
4
+ import "../box.module.css.mjs";
5
+ import "../utils/utils.mjs";
6
6
  function x(i) {
7
7
  const { inline: o } = i;
8
8
  return /* @__PURE__ */ t(r, { display: o ? "inline-flex" : "flex", ...i });
@@ -1,8 +1,8 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { useRef as p, useCallback as u } from "react";
3
- import a from "../box.js";
4
- import { F as c } from "../utils/utils.js";
5
- import "../box.module.css.js";
3
+ import a from "../box.mjs";
4
+ import { F as c } from "../utils/utils.mjs";
5
+ import "../box.module.css.mjs";
6
6
  function S(o) {
7
7
  const { onSubmit: m, props: n } = o, r = p(null), s = u((t) => {
8
8
  t.preventDefault();
@@ -1,8 +1,8 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { forwardRef as h } from "react";
3
- import x from "../box.js";
4
- import "../box.module.css.js";
5
- import "../utils/utils.js";
3
+ import x from "../box.mjs";
4
+ import "../box.module.css.mjs";
5
+ import "../utils/utils.mjs";
6
6
  function C(o, e) {
7
7
  const { props: r, name: t, disabled: n, placeholder: a, value: p, onInput: c, onChange: l, autoFocus: u, readOnly: d, required: i, defaultChecked: s } = o, m = {
8
8
  ...r,
@@ -1,8 +1,8 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { forwardRef as g } from "react";
3
- import C from "../box.js";
4
- import "../box.module.css.js";
5
- import "../utils/utils.js";
3
+ import C from "../box.mjs";
4
+ import "../box.module.css.mjs";
5
+ import "../utils/utils.mjs";
6
6
  function h(o, r) {
7
7
  const { props: t, name: e, disabled: n, placeholder: a, value: d, onInput: i, onChange: p, autoFocus: u, readOnly: l, required: s, defaultChecked: c } = o, m = {
8
8
  ...t,
@@ -1,8 +1,8 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as w } from "react";
3
- import C from "../box.js";
4
- import "../box.module.css.js";
5
- import "../utils/utils.js";
3
+ import C from "../box.mjs";
4
+ import "../box.module.css.mjs";
5
+ import "../utils/utils.mjs";
6
6
  function T(o, e) {
7
7
  const {
8
8
  props: r,
@@ -1,8 +1,8 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import { forwardRef as g } from "react";
3
- import b from "../box.js";
4
- import "../box.module.css.js";
5
- import "../utils/utils.js";
3
+ import b from "../box.mjs";
4
+ import "../box.module.css.mjs";
5
+ import "../utils/utils.mjs";
6
6
  function y(o, t) {
7
7
  const {
8
8
  props: e,
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@cronocode/react-box",
3
- "version": "1.1.3",
4
- "main": "./box.js",
5
- "module": "./box.js",
3
+ "version": "1.1.4",
4
+ "main": "./box.mjs",
5
+ "module": "./box.mjs",
6
6
  "types": "./box.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./box.js",
10
- "require": "./box.js",
9
+ "import": "./box.mjs",
10
+ "require": "./box.mjs",
11
11
  "types": "./box.d.ts"
12
12
  },
13
13
  "./style.css": "./style.css",
14
14
  "./components/*": {
15
- "import": "./components/*.js",
16
- "require": "./components/*.js",
15
+ "import": "./components/*.mjs",
16
+ "require": "./components/*.mjs",
17
17
  "types": "./components/*.d.ts"
18
18
  }
19
19
  },
File without changes
File without changes