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.
@@ -1,64 +1,66 @@
1
- import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
- import { Icon as _ } from "../../icons/icons.js";
3
- import { FieldError as p } from "../FieldError/index.js";
4
- import { useRef as y } from "react";
5
- import '../../assets/index.css';const h = "_container_2wurz_1", u = "_textareaContainer_2wurz_8", w = "_textarea_2wurz_8", z = "_prefix_2wurz_52", a = {
6
- container: h,
7
- textareaContainer: u,
8
- textarea: w,
9
- prefix: z
10
- }, N = ({
11
- icon: e,
12
- error: n,
13
- prefix: i,
14
- className: s,
15
- onChange: r,
16
- ...l
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 o;
19
- const c = y(null), m = `${a.textarea} ${s || ""}`, f = (d) => {
20
- r == null || r(d);
21
+ var c;
22
+ const x = p(null), _ = `${a.textarea} ${r || ""}`, m = (f) => {
23
+ n == null || n(f);
21
24
  };
22
- return /* @__PURE__ */ x(
25
+ return /* @__PURE__ */ d(
23
26
  "div",
24
27
  {
25
28
  className: a.container,
26
- style: ((o = l.style) == null ? void 0 : o.display) === "none" ? { display: "none" } : {},
29
+ style: ((c = o.style) == null ? void 0 : c.display) === "none" ? { display: "none" } : {},
27
30
  children: [
28
- /* @__PURE__ */ x("div", { className: a.textareaContainer, children: [
29
- e && /* @__PURE__ */ t("div", { style: { marginTop: "9px" }, children: /* @__PURE__ */ t(
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: e.name,
33
- fill: e.fill,
34
- width: e.width,
35
- height: e.height
36
+ name: t.name,
37
+ fill: t.fill,
38
+ width: t.width,
39
+ height: t.height
36
40
  }
37
41
  ) }),
38
- i && /* @__PURE__ */ t(
42
+ l && /* @__PURE__ */ e(
39
43
  "span",
40
44
  {
41
45
  className: a.prefix,
42
- style: { fontFamily: "Palanquin BMI" },
43
- children: i
46
+ children: l
44
47
  }
45
48
  ),
46
- /* @__PURE__ */ t(
49
+ /* @__PURE__ */ e(
47
50
  "textarea",
48
51
  {
49
- ref: c,
50
- className: m,
51
- onChange: f,
52
- ...l,
53
- style: { fontFamily: "Palanquin BMI" }
52
+ ref: x,
53
+ className: _,
54
+ onChange: m,
55
+ ...o
54
56
  }
55
57
  )
56
58
  ] }),
57
- n && /* @__PURE__ */ t(p, { error: n })
59
+ i && /* @__PURE__ */ e(h, { error: i })
58
60
  ]
59
61
  }
60
62
  );
61
63
  };
62
64
  export {
63
- N as TextArea
65
+ $ as TextArea
64
66
  };
package/dist/main.d.ts CHANGED
@@ -9,3 +9,4 @@ export { TextArea } from './components/TextArea';
9
9
  export { FakeLoader } from './components/FakeLoader';
10
10
  export { Select } from './components/Select';
11
11
  export { Drawer } from './components/Drawer';
12
+ export { DatePicker } from './components/DatePicker';
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 d } from "./components/Navbar/index.js";
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 S } from "./components/TextArea/index.js";
10
- import { FakeLoader as l } from "./components/FakeLoader/index.js";
11
- import { Select as w } from "./components/Select/index.js";
12
- import { Drawer as B } from "./components/Drawer/index.js";
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
- B as Drawer,
17
- l as FakeLoader,
17
+ C as DatePicker,
18
+ A as Drawer,
19
+ h as FakeLoader,
18
20
  f as Icon,
19
21
  x as Input,
20
- d as Navbar,
22
+ b as Navbar,
21
23
  n as Radio,
22
- w as Select,
24
+ v as Select,
23
25
  u as Spinner,
24
- S as TextArea
26
+ I as TextArea
25
27
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bmi-next",
3
3
  "description": "Componentes de UI para proyecto BMI Next",
4
- "version": "1.0.13",
4
+ "version": "1.0.15",
5
5
  "author": "David Fernández Bolaños <david@bmiahorro.com>",
6
6
  "contributors": [
7
7
  "Jorge Martín <jorge@bmiahorro.com>",