welcome-ui 10.0.0-alpha.10 → 10.0.0-alpha.11

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/Checkbox.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import './Checkbox.css';
3
- import { jsxs as b, jsx as s } from "react/jsx-runtime";
3
+ import { jsxs as b, jsx as i } from "react/jsx-runtime";
4
4
  import { a as x } from "./KPUWHTQJ-Dv3cAqjP.js";
5
5
  import { forwardRef as C, useState as l } from "react";
6
6
  import { useField as g } from "./Field.js";
@@ -14,9 +14,9 @@ const y = "_root_luk8p_2", F = "_indeterminate_luk8p_67", I = {
14
14
  "variant-success": "_variant-success_luk8p_61",
15
15
  indeterminate: F
16
16
  }, N = w(I), j = C(
17
- ({ checked: m = !1, className: u, indeterminate: a = !1, onChange: i, variant: f, ...o }, p) => {
18
- const [e, _] = l(m), [k, t] = l(!1), { getInputProps: n, variant: v } = g(), r = v || f, { disabled: c } = n(o), h = () => {
19
- _(!e), i && i(!e);
17
+ ({ checked: m = !1, className: u, indeterminate: s = !1, onChange: a, variant: f, ...t }, p) => {
18
+ const [e, _] = l(m), [k, n] = l(!1), { getInputProps: o, variant: v } = g(), r = v || f, { disabled: c } = o(t), h = () => {
19
+ _(!e), a && a(!e);
20
20
  };
21
21
  return /* @__PURE__ */ b(
22
22
  "div",
@@ -26,24 +26,25 @@ const y = "_root_luk8p_2", F = "_indeterminate_luk8p_67", I = {
26
26
  className: N(
27
27
  "root",
28
28
  r && `variant-${r}`,
29
- a && "indeterminate",
29
+ s && "indeterminate",
30
+ "field-input",
30
31
  u
31
32
  ),
32
33
  "data-focus-visible": k || void 0,
33
34
  onClick: c ? void 0 : h,
34
35
  children: [
35
- /* @__PURE__ */ s(V, { children: /* @__PURE__ */ s(
36
+ /* @__PURE__ */ i(V, { children: /* @__PURE__ */ i(
36
37
  x,
37
38
  {
38
- ...n(o),
39
+ ...o(t),
39
40
  checked: e,
40
- onBlur: () => t(!1),
41
- onFocusVisible: () => t(!0),
41
+ onBlur: () => n(!1),
42
+ onFocusVisible: () => n(!0),
42
43
  ref: p
43
44
  }
44
45
  ) }),
45
- e ? /* @__PURE__ */ s(d, { name: "check", size: "sm" }) : null,
46
- !e && a ? /* @__PURE__ */ s(d, { name: "minus", size: "sm" }) : null
46
+ e ? /* @__PURE__ */ i(d, { name: "check", size: "sm" }) : null,
47
+ !e && s ? /* @__PURE__ */ i(d, { name: "minus", size: "sm" }) : null
47
48
  ]
48
49
  }
49
50
  );
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import './DatePicker.css';
3
- import { jsxs as q, jsx as l } from "react/jsx-runtime";
4
- import { useState as $, useMemo as k, useEffect as j, forwardRef as G, useRef as J } from "react";
5
- import { D as Q, C as V } from "./CustomPopper-C1wIDHbM.js";
6
- import { Button as F } from "./Button.js";
7
- import { Icon as M } from "./Icon.js";
8
- import { Select as w } from "./Select.js";
9
- import { c as P } from "./index-PAaZGbyz.js";
10
- import { g as W, a as X, s as v, b as Z, D as K } from "./utils-BD597oo6.js";
11
- import { InputText as Y } from "./InputText.js";
12
- const g = P(v), B = ({
3
+ import { jsxs as G, jsx as l } from "react/jsx-runtime";
4
+ import { useState as A, useMemo as $, useEffect as S, forwardRef as J, useRef as Q } from "react";
5
+ import { D as V, C as W } from "./CustomPopper-C1wIDHbM.js";
6
+ import { Button as j } from "./Button.js";
7
+ import { Icon as F } from "./Icon.js";
8
+ import { Select as M } from "./Select.js";
9
+ import { c as v } from "./index-PAaZGbyz.js";
10
+ import { g as X, a as Z, s as B, b as Y, D as K } from "./utils-BD597oo6.js";
11
+ import { InputText as g } from "./InputText.js";
12
+ const C = v(B), L = ({
13
13
  changeMonth: x,
14
14
  changeYear: N,
15
15
  date: f,
@@ -22,49 +22,49 @@ const g = P(v), B = ({
22
22
  locale: D,
23
23
  startYear: a
24
24
  }) => {
25
- const [u, R] = $(null), [i, E] = $(null), o = k(() => W(D), [D]), r = k(() => X(a, c), [a, c]), m = (t || u === o[0].label) && i === a, H = (t || u === o[o.length - 1].label) && i === c;
26
- return j(() => {
27
- const b = new Date(f), d = o[b.getMonth()].label, A = b.getFullYear();
28
- R(d), E(A);
29
- }, [f, o]), /* @__PURE__ */ q("div", { className: g("custom-header"), children: [
25
+ const [p, R] = A(null), [m, w] = A(null), i = $(() => X(D), [D]), r = $(() => Z(a, c), [a, c]), o = (t || p === i[0].label) && m === a, E = (t || p === i[i.length - 1].label) && m === c;
26
+ return S(() => {
27
+ const b = new Date(f), u = i[b.getMonth()].label, H = b.getFullYear();
28
+ R(u), w(H);
29
+ }, [f, i]), /* @__PURE__ */ G("div", { className: C("custom-header"), children: [
30
30
  /* @__PURE__ */ l(
31
- F,
31
+ j,
32
32
  {
33
- disabled: m,
33
+ disabled: o,
34
34
  onClick: t ? z : T,
35
35
  size: "sm",
36
36
  title: `Previous ${t ? "year" : "month"}`,
37
37
  variant: "tertiary",
38
- children: /* @__PURE__ */ l(M, { name: "angle-left-b", size: "xs" })
38
+ children: /* @__PURE__ */ l(F, { name: "angle-left-b", size: "xs" })
39
39
  }
40
40
  ),
41
41
  !t && /* @__PURE__ */ l(
42
- w,
42
+ M,
43
43
  {
44
44
  id: "month",
45
45
  name: "month",
46
46
  onChange: x,
47
- options: o,
47
+ options: i,
48
48
  size: "md",
49
- value: u
49
+ value: p
50
50
  }
51
51
  ),
52
- /* @__PURE__ */ l(w, { id: "year", name: "year", onChange: N, options: r, size: "md", value: i }),
52
+ /* @__PURE__ */ l(M, { id: "year", name: "year", onChange: N, options: r, size: "md", value: m }),
53
53
  /* @__PURE__ */ l(
54
- F,
54
+ j,
55
55
  {
56
- disabled: H,
56
+ disabled: E,
57
57
  onClick: t ? y : I,
58
58
  size: "sm",
59
59
  title: `Next ${t ? "year" : "month"}`,
60
60
  variant: "tertiary",
61
- children: /* @__PURE__ */ l(M, { name: "angle-right-b", size: "xs" })
61
+ children: /* @__PURE__ */ l(F, { name: "angle-right-b", size: "xs" })
62
62
  }
63
63
  )
64
64
  ] });
65
65
  };
66
- B.displayName = "DateTimePicker.CustomHeader";
67
- const h = P(v), C = G(
66
+ L.displayName = "DateTimePicker.CustomHeader";
67
+ const P = v(B), h = J(
68
68
  ({
69
69
  autoFocus: x,
70
70
  className: N,
@@ -77,93 +77,94 @@ const h = P(v), C = G(
77
77
  onChange: t,
78
78
  placeholder: D,
79
79
  preventVirtualKeyboard: a = !1,
80
- showMonthYearPicker: u,
80
+ showMonthYearPicker: p,
81
81
  size: R = "md",
82
- startYear: i = 1900,
83
- transparent: E,
84
- useWeekdaysShort: o = !0,
82
+ startYear: m = 1900,
83
+ transparent: w,
84
+ useWeekdaysShort: i = !0,
85
85
  value: r = K,
86
- ...m
87
- }, H) => {
88
- const b = m == null ? void 0 : m.timeIntervals, d = (e) => Z(e, b), [A, n] = $(d(r)), L = J(), S = H || L;
89
- j(() => {
90
- t == null || t(d(r));
91
- }, []), j(() => {
92
- var p;
93
- const e = d(r), s = typeof r == "object" ? r == null ? void 0 : r.toISOString() : r;
94
- ((p = new Date(Date.parse(s))) == null ? void 0 : p.getTime()) - (e == null ? void 0 : e.getTime()) !== 0 && (t == null || t(e)), n(e);
86
+ ...o
87
+ }, E) => {
88
+ const b = o == null ? void 0 : o.timeIntervals, u = (e) => Y(e, b), [H, d] = A(u(r)), O = Q(), k = E || O;
89
+ S(() => {
90
+ t == null || t(u(r));
91
+ }, []), S(() => {
92
+ var n;
93
+ const e = u(r), s = typeof r == "object" ? r == null ? void 0 : r.toISOString() : r;
94
+ ((n = new Date(Date.parse(s))) == null ? void 0 : n.getTime()) - (e == null ? void 0 : e.getTime()) !== 0 && (t == null || t(e)), d(e);
95
95
  }, [r]);
96
- const O = (e) => {
96
+ const U = (e) => {
97
97
  var s;
98
- ["Enter", "Escape"].includes(e.key) && ((s = S.current) == null || s.blur());
99
- }, U = (e) => {
100
- var s;
101
- e.preventDefault(), (s = S.current) == null || s.blur(), n(null), t == null || t(null);
98
+ ["Enter", "Escape"].includes(e.key) && ((s = k.current) == null || s.blur());
102
99
  }, _ = (e) => {
100
+ var s;
101
+ e.preventDefault(), (s = k.current) == null || s.blur(), d(null), t == null || t(null);
102
+ }, q = (e) => {
103
103
  if (!e) {
104
- n(null), t == null || t(null);
104
+ d(null), t == null || t(null);
105
105
  return;
106
106
  }
107
107
  const s = Array.isArray(e) ? e[0] : e;
108
108
  if (!s) {
109
- n(null), t == null || t(null);
109
+ d(null), t == null || t(null);
110
110
  return;
111
111
  }
112
- const p = d(s);
113
- s.setHours(p.getHours(), p.getMinutes()), n(s), t == null || t(new Date(s));
112
+ const n = u(s);
113
+ s.setHours(n.getHours(), n.getMinutes()), d(s), t == null || t(new Date(s));
114
114
  };
115
115
  return (
116
116
  // type issue in react-datepicker (https://github.com/Hacker0x01/react-datepicker/issues/5391)
117
117
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
118
118
  // @ts-expect-error
119
119
  /* @__PURE__ */ l(
120
- Q,
120
+ V,
121
121
  {
122
122
  autoComplete: "off",
123
123
  calendarClassName: "date-picker-popper",
124
124
  customInput: /* @__PURE__ */ l(
125
- Y,
125
+ g,
126
126
  {
127
127
  autoFocus: x,
128
- className: h("date-picker", N),
129
- "data-testid": m["data-testid"],
128
+ className: P("date-picker", N),
129
+ "data-testid": o["data-testid"],
130
130
  disabled: T,
131
131
  icon: c,
132
132
  iconPlacement: I,
133
133
  inputMode: a ? "none" : "text",
134
134
  isClearable: !0,
135
- onReset: U,
135
+ onReset: _,
136
136
  placeholder: D,
137
- ref: S,
137
+ ref: k,
138
138
  size: R,
139
- transparent: E
139
+ transparent: w
140
140
  }
141
141
  ),
142
142
  dateFormat: f,
143
143
  locale: y,
144
- onChange: _,
145
- onKeyDown: O,
146
- popperContainer: V,
144
+ onChange: q,
145
+ onKeyDown: U,
146
+ popperContainer: W,
147
147
  renderCustomHeader: (e) => /* @__PURE__ */ l(
148
- B,
148
+ L,
149
149
  {
150
150
  endYear: z,
151
- isMonthYearPicker: u,
151
+ isMonthYearPicker: p,
152
152
  locale: y,
153
- startYear: i,
153
+ startYear: m,
154
154
  ...e
155
155
  }
156
156
  ),
157
- selected: A,
158
- showMonthYearPicker: u,
159
- useWeekdaysShort: o,
160
- ...m
157
+ selected: H,
158
+ showMonthYearPicker: p,
159
+ useWeekdaysShort: i,
160
+ ...o,
161
+ wrapperClassName: P(o.wrapperClassName, "date-picker-wrapper", "field-input")
161
162
  }
162
163
  )
163
164
  );
164
165
  }
165
166
  );
166
- C.displayName = "DatePicker";
167
+ h.displayName = "DatePicker";
167
168
  export {
168
- C as DatePicker
169
+ h as DatePicker
169
170
  };
@@ -10,11 +10,11 @@ const L = F(j), M = E(
10
10
  locale: p,
11
11
  onChange: s,
12
12
  size: D = "md",
13
- transparent: k,
14
- value: r = b,
13
+ transparent: n,
14
+ value: i = b,
15
15
  ...l
16
- }, n) => {
17
- const u = l == null ? void 0 : l.timeIntervals, i = (t) => I(t, u), [T, c] = P(i(r)), y = x(), R = n || y, m = (t) => {
16
+ }, k) => {
17
+ const u = l == null ? void 0 : l.timeIntervals, r = (t) => I(t, u), [T, c] = P(r(i)), y = x(), R = k || y, m = (t) => {
18
18
  if (!t) {
19
19
  c(null), s == null || s(null);
20
20
  return;
@@ -24,16 +24,16 @@ const L = F(j), M = E(
24
24
  c(null), s == null || s(null);
25
25
  return;
26
26
  }
27
- const f = i(e);
27
+ const f = r(e);
28
28
  e.setHours(f.getHours(), f.getMinutes()), c(e), s == null || s(new Date(e));
29
29
  };
30
30
  return a(() => {
31
- m(i(r));
31
+ m(r(i));
32
32
  }, []), a(() => {
33
33
  var e;
34
- const t = i(r);
35
- ((e = new Date(r)) == null ? void 0 : e.getTime()) - (t == null ? void 0 : t.getTime()) !== 0 && m(t), c(t);
36
- }, [r]), /* @__PURE__ */ A("div", { className: L("date-time-picker"), children: N.map(o, (t, e) => H(t, {
34
+ const t = r(i);
35
+ ((e = new Date(i)) == null ? void 0 : e.getTime()) - (t == null ? void 0 : t.getTime()) !== 0 && m(t), c(t);
36
+ }, [i]), /* @__PURE__ */ A("div", { className: L("date-time-picker", "field-input"), children: N.map(o, (t, e) => H(t, {
37
37
  disabled: d,
38
38
  inputRef: e === 0 ? R : null,
39
39
  // give ref only to the DatePicker
@@ -42,7 +42,7 @@ const L = F(j), M = E(
42
42
  onChange: m,
43
43
  size: D,
44
44
  timeIntervals: u,
45
- transparent: k,
45
+ transparent: n,
46
46
  value: T
47
47
  })) });
48
48
  }
package/dist/Field.css CHANGED
@@ -1 +1 @@
1
- @layer components{._root_6ifwm_2{display:grid;grid-template-areas:"label" "input";width:100%}._root_6ifwm_2:has(._label_6ifwm_7):has(._hint_6ifwm_7){grid-template-areas:"label" "input" "hint"}._root_6ifwm_2:not(:has(._label_6ifwm_7)):has(._hint_6ifwm_7){grid-template-areas:"input" "hint"}._root_6ifwm_2:not(._inline_6ifwm_13) ._hint_6ifwm_7{margin-top:var(--components-dimensions-field-gap-assistive)}._root_6ifwm_2:not(._inline_6ifwm_13) ._label_6ifwm_7{margin-bottom:var(--components-dimensions-field-gap-label)}._inline_6ifwm_13{grid-template-areas:"input label";grid-template-columns:min-content 1fr;height:fit-content;grid-row-gap:var(--components-dimensions-field-gap-assistive);grid-column-gap:var(--components-dimensions-field-gap-label)}._inline_6ifwm_13:has(._label_6ifwm_7):has(._hint_6ifwm_7){grid-template-areas:"input label" ". hint"}._inline_6ifwm_13:not(:has(._label_6ifwm_7)):has(._hint_6ifwm_7){grid-template-areas:"input ." ". hint"}._label_6ifwm_7{grid-area:label}._input_6ifwm_35{display:flex;align-items:center;grid-area:input;width:100%}._hint_6ifwm_7{grid-area:hint}._visuallyHidden_6ifwm_44{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}}
1
+ @layer components{._root_wx4cj_2{display:grid;grid-template-areas:"label" "input";width:100%}._root_wx4cj_2:has(._label_wx4cj_7):has(._hint_wx4cj_7){grid-template-areas:"label" "input" "hint"}._root_wx4cj_2:not(:has(._label_wx4cj_7)):has(._hint_wx4cj_7){grid-template-areas:"input" "hint"}._root_wx4cj_2:not(._inline_wx4cj_13) ._hint_wx4cj_7{margin-top:var(--components-dimensions-field-gap-assistive)}._root_wx4cj_2:not(._inline_wx4cj_13) ._label_wx4cj_7{margin-bottom:var(--components-dimensions-field-gap-label)}._root_wx4cj_2 .field-input{align-self:center;grid-area:input}._root_wx4cj_2 .field-input.date-picker-wrapper{justify-self:start}._inline_wx4cj_13{grid-template-areas:"input label";grid-template-columns:min-content 1fr;height:fit-content;grid-row-gap:var(--components-dimensions-field-gap-assistive);grid-column-gap:var(--components-dimensions-field-gap-label)}._inline_wx4cj_13:has(._label_wx4cj_7):has(._hint_wx4cj_7){grid-template-areas:"input label" ". hint"}._inline_wx4cj_13:not(:has(._label_wx4cj_7)):has(._hint_wx4cj_7){grid-template-areas:"input ." ". hint"}._label_wx4cj_7{grid-area:label}._hint_wx4cj_7{grid-area:hint}._visuallyHidden_wx4cj_45{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}}
package/dist/Field.js CHANGED
@@ -1,90 +1,89 @@
1
1
  "use client";
2
2
  import './Field.css';
3
- import { jsx as r, jsxs as C } from "react/jsx-runtime";
3
+ import { jsx as m, jsxs as C } from "react/jsx-runtime";
4
4
  import { createContext as L, useMemo as q, useId as A, useContext as M } from "react";
5
5
  import { Hint as R } from "./Hint.js";
6
6
  import { Label as S } from "./Label.js";
7
7
  import { c as T } from "./index-PAaZGbyz.js";
8
8
  import { f as W } from "./forwardRefWithAs-8eP3ZN15.js";
9
- const k = "_root_6ifwm_2", z = "_label_6ifwm_7", E = "_hint_6ifwm_7", G = "_inline_6ifwm_13", J = "_input_6ifwm_35", K = "_visuallyHidden_6ifwm_44", O = {
9
+ const k = "_root_wx4cj_2", z = "_label_wx4cj_7", E = "_hint_wx4cj_7", G = "_inline_wx4cj_13", J = "_visuallyHidden_wx4cj_45", K = {
10
10
  root: k,
11
11
  label: z,
12
12
  hint: E,
13
13
  inline: G,
14
- input: J,
15
- visuallyHidden: K
16
- }, o = T(O), p = L({
17
- getInputProps: (i) => i,
14
+ visuallyHidden: J
15
+ }, b = T(K), x = L({
16
+ getInputProps: (e) => e,
18
17
  hintID: "",
19
18
  labelID: "",
20
19
  variant: void 0
21
20
  });
22
- function b(i) {
23
- const d = A();
24
- return i || d;
21
+ function f(e) {
22
+ const s = A();
23
+ return e || s;
25
24
  }
26
- function P() {
27
- return M(p);
25
+ function $() {
26
+ return M(x);
28
27
  }
29
- const Q = W((i, d) => {
28
+ const O = W((e, s) => {
30
29
  const {
31
30
  children: y,
32
31
  className: I,
33
- disabled: c,
34
- error: _,
35
- hideLabel: x,
36
- hint: D,
32
+ disabled: o,
33
+ error: h,
34
+ hideLabel: j,
35
+ hint: p,
37
36
  hintProps: n,
38
- id: g,
39
- inline: w,
40
- label: N,
37
+ id: D,
38
+ inline: g,
39
+ label: w,
41
40
  labelProps: t,
42
- required: u,
43
- success: h,
41
+ required: d,
42
+ success: _,
44
43
  warning: v,
45
- ...F
46
- } = i, e = _ ? "danger" : h ? "success" : v ? "warning" : void 0, l = _ ?? v ?? h ?? D, a = b(t == null ? void 0 : t.id), s = b(n == null ? void 0 : n.id), m = b(g), H = q(
44
+ ...N
45
+ } = e, i = h ? "danger" : _ ? "success" : v ? "warning" : void 0, l = h ?? v ?? _ ?? p, a = f(t == null ? void 0 : t.id), r = f(n == null ? void 0 : n.id), c = f(D), F = q(
47
46
  () => ({
48
- getInputProps(f) {
49
- const j = [f["aria-describedby"], l && s].filter(Boolean).join(" ") || void 0, B = [f["aria-labelledby"], a].filter(Boolean).join(" ");
47
+ getInputProps(u) {
48
+ const H = [u["aria-describedby"], l && r].filter(Boolean).join(" ") || void 0, B = [u["aria-labelledby"], a].filter(Boolean).join(" ");
50
49
  return {
51
- ...f,
52
- "aria-describedby": j,
53
- "aria-invalid": e === "danger" ? !0 : void 0,
50
+ ...u,
51
+ "aria-describedby": H,
52
+ "aria-invalid": i === "danger" ? !0 : void 0,
54
53
  "aria-labelledby": B,
55
- disabled: c,
56
- id: m,
57
- required: u
54
+ disabled: o,
55
+ id: c,
56
+ required: d
58
57
  };
59
58
  },
60
- hintID: s,
59
+ hintID: r,
61
60
  labelID: a,
62
- variant: e
61
+ variant: i
63
62
  }),
64
- [s, a, e, l, c, m, u]
63
+ [r, a, i, l, o, c, d]
65
64
  );
66
- return /* @__PURE__ */ r(p.Provider, { value: H, children: /* @__PURE__ */ C("div", { ref: d, ...F, className: o("root", w && "inline", I), children: [
67
- /* @__PURE__ */ r(
65
+ return /* @__PURE__ */ m(x.Provider, { value: F, children: /* @__PURE__ */ C("div", { ref: s, ...N, className: b("root", g && "inline", I), children: [
66
+ /* @__PURE__ */ m(
68
67
  S,
69
68
  {
70
- className: o("label", x && "visuallyHidden"),
71
- disabled: c,
72
- htmlFor: m,
69
+ className: b("label", j && "visuallyHidden"),
70
+ disabled: o,
71
+ htmlFor: c,
73
72
  id: a,
74
- required: u,
75
- variant: e,
73
+ required: d,
74
+ variant: i,
76
75
  ...t,
77
- children: N
76
+ children: w
78
77
  }
79
78
  ),
80
- /* @__PURE__ */ r("div", { className: o("input"), children: y }),
81
- l ? /* @__PURE__ */ r(R, { className: o("hint"), id: s, variant: e, ...n, children: l }) : null
79
+ y,
80
+ l ? /* @__PURE__ */ m(R, { className: b("hint"), id: r, variant: i, ...n, children: l }) : null
82
81
  ] }) });
83
82
  });
84
- Q.displayName = "Field";
83
+ O.displayName = "Field";
85
84
  export {
86
- Q as Field,
87
- p as FieldContext,
88
- b as useDefaultID,
89
- P as useField
85
+ O as Field,
86
+ x as FieldContext,
87
+ f as useDefaultID,
88
+ $ as useField
90
89
  };
package/dist/FileDrop.js CHANGED
@@ -2273,7 +2273,13 @@ const vi = /\.(jpeg|jpg|gif|png|webp)$/, Nt = (a) => a ? typeof a == "string" ?
2273
2273
  return /* @__PURE__ */ L(
2274
2274
  "div",
2275
2275
  {
2276
- className: ha("root", n && "disabled", U && "drag-reject", t),
2276
+ className: ha(
2277
+ "root",
2278
+ n && "disabled",
2279
+ U && "drag-reject",
2280
+ "field-input",
2281
+ t
2282
+ ),
2277
2283
  ...f({
2278
2284
  disabled: n,
2279
2285
  handleRemoveFile: h,
package/dist/InputText.js CHANGED
@@ -27,11 +27,11 @@ const D = "_root_13hsf_8", F = "_transparent_13hsf_68", L = "_clearable_13hsf_88
27
27
  "icon-placement-right-md": "_icon-placement-right-md_13hsf_124"
28
28
  }, a = B(C), O = { lg: "md", md: "md", sm: "sm" }, V = T(
29
29
  ({
30
- children: c,
30
+ children: p,
31
31
  className: v,
32
32
  icon: t,
33
33
  iconPlacement: s = "left",
34
- isClearable: p,
34
+ isClearable: c,
35
35
  name: _,
36
36
  onChange: r,
37
37
  size: m = "lg",
@@ -41,13 +41,13 @@ const D = "_root_13hsf_8", F = "_transparent_13hsf_68", L = "_clearable_13hsf_88
41
41
  variant: z,
42
42
  ...I
43
43
  }, b) => {
44
- const { getInputProps: N, variant: $ } = y(), d = $ || z, i = t && s, h = i && s === "right", R = i && s === "left", n = O[m], l = N(I), o = !!c, S = p || h || o, E = () => {
44
+ const { getInputProps: N, variant: $ } = y(), d = $ || z, i = t && s, h = i && s === "right", R = i && s === "left", n = O[m], l = N(I), o = !!p, S = c || h || o, E = () => {
45
45
  r && r({
46
46
  preventDefault: () => null,
47
47
  target: { name: _, value: "" }
48
48
  });
49
49
  };
50
- return /* @__PURE__ */ u("div", { className: a("input-text-wrapper"), children: [
50
+ return /* @__PURE__ */ u("div", { className: a("input-text-wrapper", "field-input"), children: [
51
51
  /* @__PURE__ */ e(
52
52
  "input",
53
53
  {
@@ -87,9 +87,9 @@ const D = "_root_13hsf_8", F = "_transparent_13hsf_68", L = "_clearable_13hsf_88
87
87
  l.disabled && "disabled"
88
88
  ),
89
89
  children: [
90
- p && f ? /* @__PURE__ */ e(j, { onClick: E, size: "sm" }) : null,
90
+ c && f ? /* @__PURE__ */ e(j, { onClick: E, size: "sm" }) : null,
91
91
  h && !o ? /* @__PURE__ */ e(g, { ...t.props, name: t.props.name, size: n }) : null,
92
- o ? c : null
92
+ o ? p : null
93
93
  ]
94
94
  }
95
95
  ) : null
package/dist/Modal.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import './Modal.css';
3
- import { jsx as s, jsxs as _ } from "react/jsx-runtime";
3
+ import { jsx as o, jsxs as _ } from "react/jsx-runtime";
4
4
  import { b as R } from "./RTNCFSKZ-BywELldk.js";
5
5
  import { D as V, u as q } from "./NI3IVY7K-Dy240mkD.js";
6
- import { forwardRef as l, isValidElement as G, cloneElement as J, useState as K, useEffect as L } from "react";
6
+ import { forwardRef as i, isValidElement as G, cloneElement as J, useState as K, useEffect as L } from "react";
7
7
  import { c as r } from "./index-PAaZGbyz.js";
8
8
  import { f as j } from "./forwardRefWithAs-8eP3ZN15.js";
9
9
  import { D as y } from "./DSAASPLT-Fx1kuAsk.js";
@@ -12,7 +12,7 @@ import { Button as Q } from "./Button.js";
12
12
  import { Text as m } from "./Text.js";
13
13
  import { CloseButton as U } from "./CloseButton.js";
14
14
  import { D as X } from "./ZTXFEM5L-WGHY_jqg.js";
15
- const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_1ruus_117", i = {
15
+ const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_1ruus_117", c = {
16
16
  root: Y,
17
17
  "asset-backdrop": "_asset-backdrop_1ruus_8",
18
18
  hideOnInteractOutside: Z,
@@ -23,49 +23,50 @@ const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_
23
23
  "asset-content": "_asset-content_1ruus_96",
24
24
  dialog: ee,
25
25
  "close-button": "_close-button_1ruus_159"
26
- }, te = r(i), x = ({ children: e, ...t }) => /* @__PURE__ */ s(Q, { className: te("close-button"), variant: "primary-neutral", ...t, children: e });
26
+ }, te = r(c), x = ({ children: e, ...t }) => /* @__PURE__ */ o(Q, { className: te("close-button"), variant: "primary-neutral", ...t, children: e });
27
27
  x.displayName = "AssetModal.Close";
28
- const se = r(i), M = l(
29
- ({ hideOnInteractOutside: e, ...t }, o) => /* @__PURE__ */ s(
28
+ const se = r(c), M = i(
29
+ ({ hideOnInteractOutside: e, ...t }, s) => /* @__PURE__ */ o(
30
30
  "div",
31
31
  {
32
32
  className: se("asset-backdrop", e && "hideOnInteractOutside"),
33
33
  ...t,
34
- ref: o,
35
- children: /* @__PURE__ */ s(
34
+ ref: s,
35
+ children: /* @__PURE__ */ o(
36
36
  y,
37
37
  {
38
- render: /* @__PURE__ */ s(x, { children: /* @__PURE__ */ s(P, { name: "times" }) })
38
+ render: /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(P, { name: "times" }) })
39
39
  }
40
40
  )
41
41
  }
42
42
  )
43
43
  );
44
44
  M.displayName = "AssetModal.Backdrop";
45
- const oe = r(i), $ = ({
45
+ const oe = r(c), $ = ({
46
46
  children: e,
47
- ...t
48
- }) => /* @__PURE__ */ s("div", { className: oe("root", "asset-content"), ...t, children: e });
47
+ className: t,
48
+ ...s
49
+ }) => /* @__PURE__ */ o("div", { className: oe("root", "asset-content", t), ...s, children: e });
49
50
  $.displayName = "AssetModal.Content";
50
- const ae = r(i), f = ({ children: e, ...t }) => /* @__PURE__ */ s(m, { as: "p", className: ae("asset-title"), lines: 2, variant: "heading-md-strong", ...t, children: e });
51
+ const ae = r(c), f = ({ children: e, ...t }) => /* @__PURE__ */ o(m, { as: "p", className: ae("asset-title"), lines: 2, variant: "heading-md-strong", ...t, children: e });
51
52
  f.displayName = "AssetModal.Title";
52
- const g = r(i), v = l(
53
- ({ children: e, customContent: t, subtitle: o, title: a, ...d }, n) => /* @__PURE__ */ _("div", { className: g("root", "asset-wrapper"), ref: n, ...d, children: [
53
+ const g = r(c), v = i(
54
+ ({ children: e, customContent: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("div", { className: g("root", "asset-wrapper"), ref: l, ...n, children: [
54
55
  e,
55
56
  /* @__PURE__ */ _("div", { className: g("root", "asset-title-wrapper"), children: [
56
57
  t,
57
- !t && o ? /* @__PURE__ */ s(m, { variant: "label-md", children: o }) : null,
58
- !t && a ? /* @__PURE__ */ s(f, { children: a }) : null
58
+ !t && s ? /* @__PURE__ */ o(m, { variant: "label-md", children: s }) : null,
59
+ !t && a ? /* @__PURE__ */ o(f, { children: a }) : null
59
60
  ] })
60
61
  ] })
61
62
  );
62
63
  v.displayName = "AssetModal.AssetWithTitle";
63
- const re = r(i), w = ({
64
+ const re = r(c), w = ({
64
65
  children: e,
65
66
  ...t
66
- }) => /* @__PURE__ */ s("div", { className: re("root", "dialog"), ...t, children: e });
67
+ }) => /* @__PURE__ */ o("div", { className: re("root", "dialog"), ...t, children: e });
67
68
  w.displayName = "AssetModal";
68
- const ne = r(i), O = ({ children: e }) => /* @__PURE__ */ s("div", { className: ne("root", "iframe-wrapper"), children: e });
69
+ const ne = r(c), O = ({ children: e }) => /* @__PURE__ */ o("div", { className: ne("root", "iframe-wrapper"), children: e });
69
70
  O.displayName = "AssetModal.Iframe";
70
71
  const le = Object.assign(w, {
71
72
  AssetWithTitle: v,
@@ -73,7 +74,7 @@ const le = Object.assign(w, {
73
74
  Content: $,
74
75
  Iframe: O,
75
76
  Title: f
76
- }), ie = "_root_a4zjh_4", ce = "_body_a4zjh_48", de = "_footer_a4zjh_48", _e = "_header_a4zjh_48", me = "_scrollable_a4zjh_60", ue = "_content_a4zjh_66", pe = "_close_a4zjh_66", he = "_backdrop_a4zjh_85", fe = "_hideOnInteractOutside_a4zjh_96", Ne = "_icon_a4zjh_127", c = {
77
+ }), ie = "_root_a4zjh_4", ce = "_body_a4zjh_48", de = "_footer_a4zjh_48", _e = "_header_a4zjh_48", me = "_scrollable_a4zjh_60", ue = "_content_a4zjh_66", pe = "_close_a4zjh_66", he = "_backdrop_a4zjh_85", fe = "_hideOnInteractOutside_a4zjh_96", Ne = "_icon_a4zjh_127", d = {
77
78
  root: ie,
78
79
  body: ce,
79
80
  footer: de,
@@ -95,57 +96,65 @@ const le = Object.assign(w, {
95
96
  "footer-information": "_footer-information_a4zjh_163",
96
97
  "footer-information-title": "_footer-information-title_a4zjh_170",
97
98
  "footer-information-subtitle": "_footer-information-subtitle_a4zjh_174"
98
- }, be = r(c), A = l(
99
- ({ backdrop: e, hideOnInteractOutside: t, ...o }, a) => e === !0 ? /* @__PURE__ */ s(
99
+ }, be = r(d), A = i(
100
+ ({ backdrop: e, hideOnInteractOutside: t, ...s }, a) => e === !0 ? /* @__PURE__ */ o(
100
101
  "div",
101
102
  {
102
103
  className: be("backdrop", t && "hideOnInteractOutside"),
103
104
  ref: a,
104
- ...o
105
+ ...s
105
106
  }
106
- ) : G(e) ? J(e, { ref: a, ...o }) : null
107
+ ) : G(e) ? J(e, { ref: a, ...s }) : null
107
108
  );
108
109
  A.displayName = "Modal.Backdrop";
109
- const ze = r(c), k = l((e, t) => /* @__PURE__ */ s("section", { className: ze("body"), ref: t, ...e }));
110
+ const ze = r(d), k = i(({ className: e, ...t }, s) => /* @__PURE__ */ o("section", { className: ze("body", e), ref: s, ...t }));
110
111
  k.displayName = "Modal.Body";
111
- const ge = r(c), N = (e) => /* @__PURE__ */ s(y, { render: /* @__PURE__ */ s(U, { className: ge("close"), ...e }) });
112
+ const ge = r(d), N = (e) => /* @__PURE__ */ o(y, { render: /* @__PURE__ */ o(U, { className: ge("close"), ...e }) });
112
113
  N.displayName = "Modal.Close";
113
- const je = r(c), B = l(
114
- ({ children: e, withClosingButton: t = !0, ...o }, a) => /* @__PURE__ */ _("div", { className: je("content", t && "with-close-button"), ref: a, ...o, children: [
115
- /* @__PURE__ */ s(N, {}),
116
- e
117
- ] })
114
+ const je = r(d), B = i(
115
+ ({ children: e, className: t, withClosingButton: s = !0, ...a }, n) => /* @__PURE__ */ _(
116
+ "div",
117
+ {
118
+ className: (je("content", s && "with-close-button"), t),
119
+ ref: n,
120
+ ...a,
121
+ children: [
122
+ /* @__PURE__ */ o(N, {}),
123
+ e
124
+ ]
125
+ }
126
+ )
118
127
  );
119
128
  B.displayName = "Modal.Content";
120
- const u = r(c), C = l(
121
- ({ children: e, information: t, ...o }, a) => /* @__PURE__ */ _("footer", { className: u("footer"), ref: a, ...o, children: [
122
- e ? /* @__PURE__ */ s("div", { className: u("footer-children-wrapper"), children: e }) : null,
123
- t ? /* @__PURE__ */ _("div", { className: u("footer-information"), children: [
124
- /* @__PURE__ */ s(m, { className: u("footer-information-title"), variant: "label-md", children: t.title }),
125
- /* @__PURE__ */ s(m, { className: u("footer-information-subtitle"), variant: "body-md", children: t.subtitle })
129
+ const u = r(d), C = i(
130
+ ({ children: e, className: t, information: s, ...a }, n) => /* @__PURE__ */ _("footer", { className: u("footer", t), ref: n, ...a, children: [
131
+ e ? /* @__PURE__ */ o("div", { className: u("footer-children-wrapper"), children: e }) : null,
132
+ s ? /* @__PURE__ */ _("div", { className: u("footer-information"), children: [
133
+ /* @__PURE__ */ o(m, { className: u("footer-information-title"), variant: "label-md", children: s.title }),
134
+ /* @__PURE__ */ o(m, { className: u("footer-information-subtitle"), variant: "body-md", children: s.subtitle })
126
135
  ] }) : null
127
136
  ] })
128
137
  );
129
138
  C.displayName = "Modal.Footer";
130
- const h = r(c), D = l(
131
- ({ icon: e, subtitle: t, title: o, ...a }, d) => /* @__PURE__ */ _("header", { className: h("header", e && "icon"), ref: d, ...a, children: [
132
- /* @__PURE__ */ s(N, {}),
133
- e,
134
- /* @__PURE__ */ s(m, { as: "h4", className: h("header-title"), variant: "heading-md-strong", children: o }),
135
- t ? /* @__PURE__ */ s(m, { className: h("header-subtitle"), children: t }) : null
139
+ const h = r(d), D = i(
140
+ ({ className: e, icon: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("header", { className: h("header", t && "icon", e), ref: l, ...n, children: [
141
+ /* @__PURE__ */ o(N, {}),
142
+ t,
143
+ /* @__PURE__ */ o(m, { as: "h4", className: h("header-title"), variant: "heading-md-strong", children: a }),
144
+ s ? /* @__PURE__ */ o(m, { className: h("header-subtitle"), children: s }) : null
136
145
  ] })
137
146
  );
138
147
  D.displayName = "Modal.Header";
139
148
  const I = j(
140
- ({ as: e, store: t, ...o }, a) => /* @__PURE__ */ s(X, { ref: a, render: e ? /* @__PURE__ */ s(e, {}) : void 0, store: t, ...o })
149
+ ({ as: e, store: t, ...s }, a) => /* @__PURE__ */ o(X, { ref: a, render: e ? /* @__PURE__ */ o(e, {}) : void 0, store: t, ...s })
141
150
  );
142
151
  I.displayName = "Modal.Trigger";
143
- const ye = r(c);
152
+ const ye = r(d);
144
153
  function Te(e) {
145
- const { onClose: t, setOpen: o, ...a } = e || {};
154
+ const { onClose: t, setOpen: s, ...a } = e || {};
146
155
  return q({
147
- setOpen: (n) => {
148
- !n && t && t(), o == null || o(n);
156
+ setOpen: (l) => {
157
+ !l && t && t(), s == null || s(l);
149
158
  },
150
159
  ...a
151
160
  });
@@ -155,10 +164,10 @@ const T = j(
155
164
  ariaLabel: e,
156
165
  /** for render property */
157
166
  as: t,
158
- backdrop: o = !0,
167
+ backdrop: s = !0,
159
168
  children: a,
160
- className: d,
161
- hideOnInteractOutside: n = !0,
169
+ className: n,
170
+ hideOnInteractOutside: l = !0,
162
171
  size: S = "lg",
163
172
  store: b,
164
173
  ...E
@@ -166,13 +175,13 @@ const T = j(
166
175
  const [W, F] = K(!1), { contentElement: p, open: z } = R(b);
167
176
  return L(() => {
168
177
  z && p && F(p.scrollHeight > p.offsetHeight);
169
- }, [p, z]), /* @__PURE__ */ s(
178
+ }, [p, z]), /* @__PURE__ */ o(
170
179
  V,
171
180
  {
172
- backdrop: /* @__PURE__ */ s(A, { backdrop: o, hideOnInteractOutside: n }),
173
- hideOnInteractOutside: n,
181
+ backdrop: /* @__PURE__ */ o(A, { backdrop: s, hideOnInteractOutside: l }),
182
+ hideOnInteractOutside: l,
174
183
  ref: H,
175
- render: t ? /* @__PURE__ */ s(t, {}) : /* @__PURE__ */ s("div", { className: ye("root", `size-${S}`, W && "scrollable", d) }),
184
+ render: t ? /* @__PURE__ */ o(t, {}) : /* @__PURE__ */ o("div", { className: ye("root", `size-${S}`, W && "scrollable", n) }),
176
185
  store: b,
177
186
  ...E,
178
187
  "aria-label": e,
package/dist/Search.js CHANGED
@@ -126,7 +126,7 @@ const qe = "_wrapper_qaadj_2", we = "_indicators_qaadj_5", Ne = "_root_qaadj_33"
126
126
  variant: b ? "focused" : f,
127
127
  ...j
128
128
  });
129
- return /* @__PURE__ */ w("div", { ...se, className: t("wrapper"), children: [
129
+ return /* @__PURE__ */ w("div", { ...se, className: t("wrapper", "field-input"), children: [
130
130
  /* @__PURE__ */ w("div", { className: t("input-wrapper"), children: [
131
131
  /* @__PURE__ */ a(
132
132
  "input",
package/dist/Select.js CHANGED
@@ -967,7 +967,7 @@ const ee = "", xt = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|
967
967
  variant: N ? "focused" : ae,
968
968
  ...oe
969
969
  });
970
- return /* @__PURE__ */ L("div", { ...We, className: w("wrapper", i && "disabled"), children: [
970
+ return /* @__PURE__ */ L("div", { ...We, className: w("wrapper", i && "disabled", "field-input"), children: [
971
971
  m ? /* @__PURE__ */ v(
972
972
  "input",
973
973
  {
package/dist/Slider.js CHANGED
@@ -337,7 +337,7 @@ const _e = 20, q = (d, _) => Math.round(d / _) * _, F = (d, _, p, y) => (d = q(d
337
337
  !isNaN(f) && f !== v && f && (A(f), z(f));
338
338
  }, [f]);
339
339
  const j = ee();
340
- return /* @__PURE__ */ D("div", { className: N("slider-root", _), ref: G, children: [
340
+ return /* @__PURE__ */ D("div", { className: N("slider-root", "field-input", _), ref: G, children: [
341
341
  h ? /* @__PURE__ */ l(re, { as: "label", htmlFor: j, variant: "body-md", children: h }) : null,
342
342
  /* @__PURE__ */ D("div", { className: N("input-wrapper"), children: [
343
343
  (m === "inline" || m === "left-field") && (m === "left-field" ? /* @__PURE__ */ l(
package/dist/Textarea.js CHANGED
@@ -2,34 +2,35 @@
2
2
  import './Textarea.css';
3
3
  import { jsx as _ } from "react/jsx-runtime";
4
4
  import { forwardRef as f } from "react";
5
- import { useField as v } from "./Field.js";
6
- import { c as p } from "./index-PAaZGbyz.js";
7
- const m = "_root_161f5_2", d = "_adaptative_161f5_45", l = {
8
- root: m,
5
+ import { useField as p } from "./Field.js";
6
+ import { c as v } from "./index-PAaZGbyz.js";
7
+ const d = "_root_161f5_2", m = "_adaptative_161f5_45", l = {
8
+ root: d,
9
9
  "variant-danger": "_variant-danger_161f5_36",
10
10
  "variant-warning": "_variant-warning_161f5_39",
11
11
  "variant-success": "_variant-success_161f5_42",
12
- adaptative: d
13
- }, x = p(l), u = f(
14
- ({ className: t, isAdaptative: r = !1, minRows: e = 5, variant: o, ...s }, n) => {
15
- const { getInputProps: i, variant: c } = v(), a = c || o;
12
+ adaptative: m
13
+ }, u = v(l), x = f(
14
+ ({ className: t, isAdaptative: r = !1, minRows: e = 5, variant: n, ...o }, s) => {
15
+ const { getInputProps: i, variant: c } = p(), a = c || n;
16
16
  return /* @__PURE__ */ _(
17
17
  "textarea",
18
18
  {
19
- className: x(
19
+ className: u(
20
20
  "root",
21
21
  a && `variant-${a}`,
22
22
  r && "adaptative",
23
+ "field-input",
23
24
  t
24
25
  ),
25
- ref: n,
26
+ ref: s,
26
27
  rows: e,
27
- ...i(s)
28
+ ...i(o)
28
29
  }
29
30
  );
30
31
  }
31
32
  );
32
- u.displayName = "Textarea";
33
+ x.displayName = "Textarea";
33
34
  export {
34
- u as Textarea
35
+ x as Textarea
35
36
  };
@@ -1,83 +1,84 @@
1
1
  "use client";
2
2
  import { jsx as f } from "react/jsx-runtime";
3
- import { forwardRef as S, useState as w, useRef as j, useEffect as d } from "react";
4
- import { D as F, C as I } from "./CustomPopper-C1wIDHbM.js";
5
- import { b as L, D as M, s as O } from "./utils-BD597oo6.js";
6
- import { InputText as U } from "./InputText.js";
7
- import { c as _ } from "./index-PAaZGbyz.js";
8
- const q = _(O), z = S(
3
+ import { forwardRef as S, useState as j, useRef as F, useEffect as d } from "react";
4
+ import { D as I, C as L } from "./CustomPopper-C1wIDHbM.js";
5
+ import { b as M, D as O, s as U } from "./utils-BD597oo6.js";
6
+ import { InputText as _ } from "./InputText.js";
7
+ import { c as q } from "./index-PAaZGbyz.js";
8
+ const a = q(U), z = S(
9
9
  ({
10
10
  autoFocus: o,
11
11
  className: T,
12
12
  dateFormat: D = "HH:mm",
13
- disabled: a,
14
- icon: R,
15
- iconPlacement: k = "left",
13
+ disabled: k,
14
+ icon: N,
15
+ iconPlacement: R = "left",
16
16
  onChange: t,
17
- placeholder: x,
18
- size: y = "md",
19
- timeIntervals: i = 15,
20
- transparent: A,
21
- value: r = M,
22
- ...m
17
+ placeholder: w,
18
+ size: x = "md",
19
+ timeIntervals: m = 15,
20
+ transparent: y,
21
+ value: r = O,
22
+ ...c
23
23
  }, p) => {
24
- const l = (s) => L(s, i), [H, c] = w(l(r)), N = j(), P = p || N;
24
+ const i = (e) => M(e, m), [A, l] = j(i(r)), H = F(), P = p || H;
25
25
  d(() => {
26
- t == null || t(l(r));
26
+ t == null || t(i(r));
27
27
  }, []), d(() => {
28
- var e;
29
- const s = l(r);
30
- ((e = new Date(r)) == null ? void 0 : e.getTime()) - (s == null ? void 0 : s.getTime()) !== 0 && (t == null || t(s)), c(s);
28
+ var s;
29
+ const e = i(r);
30
+ ((s = new Date(r)) == null ? void 0 : s.getTime()) - (e == null ? void 0 : e.getTime()) !== 0 && (t == null || t(e)), l(e);
31
31
  }, [r]);
32
- const b = (s) => {
33
- var e;
34
- s.preventDefault(), (e = P.current) == null || e.blur(), c(null), t == null || t(null);
35
- }, E = (s) => {
36
- if (!s) {
37
- c(null), t == null || t(null);
32
+ const b = (e) => {
33
+ var s;
34
+ e.preventDefault(), (s = P.current) == null || s.blur(), l(null), t == null || t(null);
35
+ }, E = (e) => {
36
+ if (!e) {
37
+ l(null), t == null || t(null);
38
38
  return;
39
39
  }
40
- const e = Array.isArray(s) ? s[0] : s;
41
- if (!e) {
42
- c(null), t == null || t(null);
40
+ const s = Array.isArray(e) ? e[0] : e;
41
+ if (!s) {
42
+ l(null), t == null || t(null);
43
43
  return;
44
44
  }
45
- const u = l(e);
46
- e.setHours(u.getHours(), u.getMinutes()), c(e), t == null || t(new Date(e));
45
+ const u = i(s);
46
+ s.setHours(u.getHours(), u.getMinutes()), l(s), t == null || t(new Date(s));
47
47
  };
48
48
  return (
49
49
  // type issue in react-datepicker (https://github.com/Hacker0x01/react-datepicker/issues/5391)
50
50
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
51
51
  // @ts-expect-error
52
52
  /* @__PURE__ */ f(
53
- F,
53
+ I,
54
54
  {
55
55
  calendarClassName: "time-picker-popper",
56
56
  customInput: /* @__PURE__ */ f(
57
- U,
57
+ _,
58
58
  {
59
59
  autoFocus: o,
60
- className: q("time-picker", T),
61
- "data-testid": m["data-testid"],
62
- disabled: a,
63
- icon: R,
64
- iconPlacement: k,
60
+ className: a("time-picker", T),
61
+ "data-testid": c["data-testid"],
62
+ disabled: k,
63
+ icon: N,
64
+ iconPlacement: R,
65
65
  isClearable: !1,
66
66
  onReset: b,
67
67
  ref: p,
68
- size: y,
69
- transparent: A
68
+ size: x,
69
+ transparent: y
70
70
  }
71
71
  ),
72
72
  dateFormat: D,
73
73
  onChange: E,
74
- placeholderText: x,
75
- popperContainer: I,
76
- selected: H,
74
+ placeholderText: w,
75
+ popperContainer: L,
76
+ selected: A,
77
77
  showTimeSelect: !0,
78
78
  showTimeSelectOnly: !0,
79
- timeIntervals: i,
80
- ...m
79
+ timeIntervals: m,
80
+ ...c,
81
+ wrapperClassName: a(c.wrapperClassName, "date-picker-wrapper", "field-input")
81
82
  }
82
83
  )
83
84
  );
package/dist/Toggle.js CHANGED
@@ -2,24 +2,24 @@
2
2
  import './Toggle.css';
3
3
  import { jsxs as z, jsx as e } from "react/jsx-runtime";
4
4
  import { a as v } from "./KPUWHTQJ-Dv3cAqjP.js";
5
- import { forwardRef as g } from "react";
6
- import { useField as f } from "./Field.js";
5
+ import { forwardRef as f } from "react";
6
+ import { useField as g } from "./Field.js";
7
7
  import { Icon as n } from "./Icon.js";
8
8
  import { c as h } from "./index-PAaZGbyz.js";
9
- const w = "_root_1czvn_2", k = "_wrapper_1czvn_100", u = "_checked_1czvn_120", x = "_disabled_1czvn_124", N = {
9
+ const w = "_root_1czvn_2", u = "_wrapper_1czvn_100", k = "_checked_1czvn_120", x = "_disabled_1czvn_124", N = {
10
10
  root: w,
11
11
  "size-sm": "_size-sm_1czvn_82",
12
12
  "size-md": "_size-md_1czvn_88",
13
13
  "size-lg": "_size-lg_1czvn_94",
14
- wrapper: k,
14
+ wrapper: u,
15
15
  "icon-wrapper": "_icon-wrapper_1czvn_106",
16
- checked: u,
16
+ checked: k,
17
17
  disabled: x
18
- }, c = h(N), b = g(
19
- ({ checked: o, className: a, disabled: s, onClick: i, size: r = "md", withVisibilityIcon: t, ...l }, p) => {
20
- const { getInputProps: m } = f(), _ = m(l), d = s ? null : i;
21
- return /* @__PURE__ */ z("div", { className: c("wrapper"), onClick: d, children: [
22
- t ? /* @__PURE__ */ e(
18
+ }, c = h(N), b = f(
19
+ ({ checked: o, className: i, disabled: s, onClick: t, size: r = "md", withVisibilityIcon: a, ...l }, p) => {
20
+ const { getInputProps: m } = g(), _ = m(l), d = s ? null : t;
21
+ return /* @__PURE__ */ z("div", { className: c("wrapper", "field-input"), onClick: d, children: [
22
+ a ? /* @__PURE__ */ e(
23
23
  "div",
24
24
  {
25
25
  className: c(
@@ -35,7 +35,7 @@ const w = "_root_1czvn_2", k = "_wrapper_1czvn_100", u = "_checked_1czvn_120", x
35
35
  v,
36
36
  {
37
37
  checked: o,
38
- className: c("root", `size-${r}`, a),
38
+ className: c("root", `size-${r}`, i),
39
39
  disabled: s,
40
40
  ref: p,
41
41
  ..._
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, default as React } from 'react';
2
2
  export declare const AssetContent: {
3
- ({ children, ...rest }: React.PropsWithChildren<HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
3
+ ({ children, className, ...rest }: React.PropsWithChildren<HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
@@ -5,7 +5,7 @@ export declare const Assets: {
5
5
  AssetWithTitle: import('react').ForwardRefExoticComponent<Omit<import('./types').AssetWithTitleProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
6
  Backdrop: import('react').ForwardRefExoticComponent<import('../types').BackdropProps & import('react').RefAttributes<HTMLDivElement>>;
7
7
  Content: {
8
- ({ children, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
8
+ ({ children, className, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
9
9
  displayName: string;
10
10
  };
11
11
  Iframe: {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name Modal.Content
3
3
  */
4
- export declare const Content: import('react').ForwardRefExoticComponent<{
4
+ export declare const Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
5
5
  withClosingButton?: boolean;
6
6
  } & {
7
7
  children?: import('react').ReactNode | undefined;
@@ -4,7 +4,7 @@ export declare const Modal: import('../../utils').FunctionComponentWithAs<"div",
4
4
  Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLElement> & {
5
5
  children?: import('react').ReactNode | undefined;
6
6
  } & import('react').RefAttributes<HTMLElement>>;
7
- Content: import('react').ForwardRefExoticComponent<{
7
+ Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
8
8
  withClosingButton?: boolean;
9
9
  } & {
10
10
  children?: import('react').ReactNode | undefined;
@@ -20,7 +20,7 @@ export declare const AssetModal: {
20
20
  AssetWithTitle: import('react').ForwardRefExoticComponent<Omit<import('./Assets/types').AssetWithTitleProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
21
21
  Backdrop: import('react').ForwardRefExoticComponent<import('./types').BackdropProps & import('react').RefAttributes<HTMLDivElement>>;
22
22
  Content: {
23
- ({ children, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
23
+ ({ children, className, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  Iframe: {
@@ -27,7 +27,7 @@ export interface HeaderOptions {
27
27
  }
28
28
  export type HeaderProps = MergeProps<HeaderOptions, HTMLAttributes<HTMLDivElement>>;
29
29
  export type BodyProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
30
- export type ContentProps = PropsWithChildren<{
30
+ export type ContentProps = PropsWithChildren<HTMLAttributes<HTMLDivElement> & {
31
31
  /**
32
32
  * show or hide the closing button
33
33
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "10.0.0-alpha.10",
3
+ "version": "10.0.0-alpha.11",
4
4
  "description": "Customizable design system with react, typescript, tailwindcss and ariakit.",
5
5
  "files": [
6
6
  "dist"