bmi-next 1.0.13 → 1.0.15
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/dist/assets/index.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/components/DatePicker/index.d.ts +3 -1
- package/dist/components/DatePicker/index.js +85 -84
- package/dist/components/Navbar/index.js +13 -14
- package/dist/components/Select/index.d.ts +3 -1
- package/dist/components/Select/index.js +58 -53
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +41 -39
- package/dist/main.d.ts +1 -0
- package/dist/main.js +12 -10
- package/package.json +1 -1
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { FieldError as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import '../../assets/index.css';const
|
|
6
|
-
container:
|
|
7
|
-
textareaContainer:
|
|
8
|
-
textarea:
|
|
9
|
-
prefix:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as y } from "../../icons/icons.js";
|
|
3
|
+
import { FieldError as h } from "../FieldError/index.js";
|
|
4
|
+
import { useRef as p } from "react";
|
|
5
|
+
import '../../assets/index.css';const b = "_container_j48yi_1", j = "_textareaContainer_j48yi_8", v = "_textarea_j48yi_8", C = "_prefix_j48yi_52", N = "_labelContainer_j48yi_66", L = "_invalidLabel_j48yi_79", a = {
|
|
6
|
+
container: b,
|
|
7
|
+
textareaContainer: j,
|
|
8
|
+
textarea: v,
|
|
9
|
+
prefix: C,
|
|
10
|
+
labelContainer: N,
|
|
11
|
+
invalidLabel: L
|
|
12
|
+
}, $ = ({
|
|
13
|
+
icon: t,
|
|
14
|
+
error: i,
|
|
15
|
+
prefix: l,
|
|
16
|
+
className: r,
|
|
17
|
+
onChange: n,
|
|
18
|
+
label: s,
|
|
19
|
+
...o
|
|
17
20
|
}) => {
|
|
18
|
-
var
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
+
var c;
|
|
22
|
+
const x = p(null), _ = `${a.textarea} ${r || ""}`, m = (f) => {
|
|
23
|
+
n == null || n(f);
|
|
21
24
|
};
|
|
22
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ d(
|
|
23
26
|
"div",
|
|
24
27
|
{
|
|
25
28
|
className: a.container,
|
|
26
|
-
style: ((
|
|
29
|
+
style: ((c = o.style) == null ? void 0 : c.display) === "none" ? { display: "none" } : {},
|
|
27
30
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
/* @__PURE__ */ e("div", { className: a.labelContainer, children: s && /* @__PURE__ */ e("label", { className: i ? a.invalidLabel : "", children: s }) }),
|
|
32
|
+
/* @__PURE__ */ d("div", { className: a.textareaContainer, children: [
|
|
33
|
+
t && /* @__PURE__ */ e("div", { style: { marginTop: "9px" }, children: /* @__PURE__ */ e(
|
|
34
|
+
y,
|
|
31
35
|
{
|
|
32
|
-
name:
|
|
33
|
-
fill:
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
36
|
+
name: t.name,
|
|
37
|
+
fill: t.fill,
|
|
38
|
+
width: t.width,
|
|
39
|
+
height: t.height
|
|
36
40
|
}
|
|
37
41
|
) }),
|
|
38
|
-
|
|
42
|
+
l && /* @__PURE__ */ e(
|
|
39
43
|
"span",
|
|
40
44
|
{
|
|
41
45
|
className: a.prefix,
|
|
42
|
-
|
|
43
|
-
children: i
|
|
46
|
+
children: l
|
|
44
47
|
}
|
|
45
48
|
),
|
|
46
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ e(
|
|
47
50
|
"textarea",
|
|
48
51
|
{
|
|
49
|
-
ref:
|
|
50
|
-
className:
|
|
51
|
-
onChange:
|
|
52
|
-
...
|
|
53
|
-
style: { fontFamily: "Palanquin BMI" }
|
|
52
|
+
ref: x,
|
|
53
|
+
className: _,
|
|
54
|
+
onChange: m,
|
|
55
|
+
...o
|
|
54
56
|
}
|
|
55
57
|
)
|
|
56
58
|
] }),
|
|
57
|
-
|
|
59
|
+
i && /* @__PURE__ */ e(h, { error: i })
|
|
58
60
|
]
|
|
59
61
|
}
|
|
60
62
|
);
|
|
61
63
|
};
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
$ as TextArea
|
|
64
66
|
};
|
package/dist/main.d.ts
CHANGED
package/dist/main.js
CHANGED
|
@@ -4,22 +4,24 @@ import { Input as x } from "./components/Input/index.js";
|
|
|
4
4
|
import { Icon as f } from "./icons/icons.js";
|
|
5
5
|
import { Radio as n } from "./components/Radio/index.js";
|
|
6
6
|
import { Checkbox as i } from "./components/Checkbox/index.js";
|
|
7
|
-
import { Navbar as
|
|
7
|
+
import { Navbar as b } from "./components/Navbar/index.js";
|
|
8
8
|
import { Spinner as u } from "./components/Spinner/index.js";
|
|
9
|
-
import { TextArea as
|
|
10
|
-
import { FakeLoader as
|
|
11
|
-
import { Select as
|
|
12
|
-
import { Drawer as
|
|
9
|
+
import { TextArea as I } from "./components/TextArea/index.js";
|
|
10
|
+
import { FakeLoader as h } from "./components/FakeLoader/index.js";
|
|
11
|
+
import { Select as v } from "./components/Select/index.js";
|
|
12
|
+
import { Drawer as A } from "./components/Drawer/index.js";
|
|
13
|
+
import { DatePicker as C } from "./components/DatePicker/index.js";
|
|
13
14
|
export {
|
|
14
15
|
t as Button,
|
|
15
16
|
i as Checkbox,
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
C as DatePicker,
|
|
18
|
+
A as Drawer,
|
|
19
|
+
h as FakeLoader,
|
|
18
20
|
f as Icon,
|
|
19
21
|
x as Input,
|
|
20
|
-
|
|
22
|
+
b as Navbar,
|
|
21
23
|
n as Radio,
|
|
22
|
-
|
|
24
|
+
v as Select,
|
|
23
25
|
u as Spinner,
|
|
24
|
-
|
|
26
|
+
I as TextArea
|
|
25
27
|
};
|
package/package.json
CHANGED