@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.
- package/{box.js → box.mjs} +2 -2
- package/components/{baseSvg.js → baseSvg.mjs} +1 -1
- package/components/{buttonCore.js → buttonCore.mjs} +3 -3
- package/components/{flex.js → flex.mjs} +3 -3
- package/components/{formAsync.js → formAsync.mjs} +3 -3
- package/components/{uncontrolledCheckboxCore.js → uncontrolledCheckboxCore.mjs} +3 -3
- package/components/{uncontrolledRadioButtonCore.js → uncontrolledRadioButtonCore.mjs} +3 -3
- package/components/{uncontrolledTextareaCore.js → uncontrolledTextareaCore.mjs} +3 -3
- package/components/{uncontrolledTextboxCore.js → uncontrolledTextboxCore.mjs} +3 -3
- package/package.json +7 -7
- /package/{box.module.css.js → box.module.css.mjs} +0 -0
- /package/utils/{utils.js → utils.mjs} +0 -0
package/{box.js → box.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import x, { useState as N } from "react";
|
|
2
|
-
import { c as a } from "./box.module.css.
|
|
3
|
-
import { C as b, t as g } from "./utils/utils.
|
|
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.
|
|
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.
|
|
2
|
+
import u from "../box.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../box.module.css.
|
|
5
|
-
import "../utils/utils.
|
|
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.
|
|
2
|
+
import r from "../box.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../box.module.css.
|
|
5
|
-
import "../utils/utils.
|
|
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.
|
|
4
|
-
import { F as c } from "../utils/utils.
|
|
5
|
-
import "../box.module.css.
|
|
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.
|
|
4
|
-
import "../box.module.css.
|
|
5
|
-
import "../utils/utils.
|
|
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.
|
|
4
|
-
import "../box.module.css.
|
|
5
|
-
import "../utils/utils.
|
|
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.
|
|
4
|
-
import "../box.module.css.
|
|
5
|
-
import "../utils/utils.
|
|
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.
|
|
4
|
-
import "../box.module.css.
|
|
5
|
-
import "../utils/utils.
|
|
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.
|
|
4
|
-
"main": "./box.
|
|
5
|
-
"module": "./box.
|
|
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.
|
|
10
|
-
"require": "./box.
|
|
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/*.
|
|
16
|
-
"require": "./components/*.
|
|
15
|
+
"import": "./components/*.mjs",
|
|
16
|
+
"require": "./components/*.mjs",
|
|
17
17
|
"types": "./components/*.d.ts"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
File without changes
|
|
File without changes
|