@code0-tech/pictor 0.8.0 → 0.9.0

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.
Files changed (31) hide show
  1. package/dist/assets/components/progress/Progress.style.css +1 -0
  2. package/dist/components/breadcrumb/Breadcrumb.js +7 -7
  3. package/dist/components/button/Button.js +11 -11
  4. package/dist/components/data-table/DataTable.js +15 -15
  5. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +15 -15
  6. package/dist/components/editor/Editor.js +13 -13
  7. package/dist/components/form/CheckboxInput.js +4 -4
  8. package/dist/components/form/EmailInput.js +9 -9
  9. package/dist/components/form/InputContentEditable.hook.js +11 -11
  10. package/dist/components/form/InputWrapper.js +15 -15
  11. package/dist/components/form/NumberInput.js +9 -9
  12. package/dist/components/form/PasswordInput.js +4 -4
  13. package/dist/components/form/SwitchInput.js +7 -7
  14. package/dist/components/form/TextAreaInput.js +6 -6
  15. package/dist/components/form/TextInput.js +6 -6
  16. package/dist/components/form/useForm.js +2 -2
  17. package/dist/components/fullscreen/FullScreen.js +2 -2
  18. package/dist/components/gantt/GanttGroup.js +17 -17
  19. package/dist/components/progress/Progress.d.ts +8 -0
  20. package/dist/components/progress/Progress.js +42 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +67 -65
  23. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +25 -0
  24. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +81 -0
  25. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +55 -0
  26. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  27. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +58 -0
  28. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  29. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  30. package/dist/utils/reactiveArrayService.js +4 -4
  31. package/package.json +10 -7
@@ -0,0 +1 @@
1
+ .progress{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;box-sizing:border-box;border-radius:1rem;width:100%;height:10px;position:relative;transform:translateZ(0)}.progress__dot{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;background:#393743;position:absolute;max-width:100%;aspect-ratio:1/1;height:200%;z-index:2;top:50%;transform:translate(50%) translateY(-50%);border-radius:50rem;right:calc(100% - 1% * (var(--progress, 0)));overflow:hidden}.progress__dot:after{content:"";position:absolute;top:50%;left:50%;border-radius:inherit;width:60%;height:60%;transform:translate(-50%,-50%);background:var(--color);background-repeat:no-repeat}.progress__indicator{position:absolute;background:var(--color);background-position:left center;background-repeat:no-repeat;background-size:calc(100% * 100 / var(--progress, 100)) 100%;width:100%;height:100%;z-index:1}.progress__indicator--prediction{background:repeating-linear-gradient(-45deg,rgba(0,0,0,.5),rgba(0,0,0,.5) 2.5px,transparent 2.5px,transparent 5px),var(--color);z-index:0;opacity:.5;background-position:left center;background-repeat:no-repeat;background-size:calc(100% * 100 / var(--progressPrediction, 100)) 100%}
@@ -5,17 +5,17 @@ import { mergeComponentProps as l } from "../../utils/component.js";
5
5
  import "js-md5";
6
6
  import '../../assets/components/breadcrumb/Breadcrumb.style.css';/* empty css */
7
7
  import { IconChevronRight as a } from "@tabler/icons-react";
8
- const j = (m) => {
8
+ const g = (m) => {
9
9
  const {
10
10
  splitter: n = /* @__PURE__ */ r(a, { size: 16 }),
11
- children: o,
11
+ children: e,
12
12
  ...i
13
- } = m, c = t.Children.count(o);
14
- return /* @__PURE__ */ r("div", { ...l("breadcrumb", i), children: t.Children.map(o, (p, e) => /* @__PURE__ */ s(t.Fragment, { children: [
13
+ } = m, c = t.Children.count(e);
14
+ return /* @__PURE__ */ r("div", { ...l("breadcrumb", i), children: t.Children.map(e, (p, o) => /* @__PURE__ */ s(t.Fragment, { children: [
15
15
  p,
16
- e < c - 1 ? /* @__PURE__ */ r("span", { className: "breadcrumb__splitter", children: n }) : null
17
- ] }, e)) });
16
+ o < c - 1 ? /* @__PURE__ */ r("span", { className: "breadcrumb__splitter", children: n }) : null
17
+ ] }, o)) });
18
18
  };
19
19
  export {
20
- j as Breadcrumb
20
+ g as Breadcrumb
21
21
  };
@@ -5,28 +5,28 @@ import z from "react";
5
5
  import "../../utils/contextStore.js";
6
6
  import { mergeComponentProps as S } from "../../utils/component.js";
7
7
  import "js-md5";
8
- const k = z.forwardRef((a, s) => {
8
+ const P = z.forwardRef((a, d) => {
9
9
  const t = h.c(11);
10
10
  let o, n, e, i;
11
- if (t[0] !== a || t[1] !== s) {
11
+ if (t[0] !== a || t[1] !== d) {
12
12
  const {
13
13
  children: f,
14
- variant: c,
15
- color: l,
14
+ variant: l,
15
+ color: c,
16
16
  paddingSize: m,
17
- active: b,
18
- disabled: u,
17
+ active: u,
18
+ disabled: b,
19
19
  ...p
20
20
  } = a;
21
21
  o = f;
22
- const v = c === void 0 ? "normal" : c, $ = l === void 0 ? "secondary" : l, g = m === void 0 ? "xs" : m, x = b === void 0 ? !1 : b;
23
- n = u === void 0 ? !1 : u, e = s, i = S(`button button--${$} ${x ? "button--active" : ""} ${n ? "button--disabled" : ""} button--${v} button--${g}`, p), t[0] = a, t[1] = s, t[2] = o, t[3] = n, t[4] = e, t[5] = i;
22
+ const v = l === void 0 ? "normal" : l, $ = c === void 0 ? "secondary" : c, g = m === void 0 ? "xs" : m, x = u === void 0 ? !1 : u;
23
+ n = b === void 0 ? !1 : b, e = d, i = S(`button button--${$} ${x ? "button--active" : ""} ${n ? "button--disabled" : ""} button--${v} button--${g}`, p), t[0] = a, t[1] = d, t[2] = o, t[3] = n, t[4] = e, t[5] = i;
24
24
  } else
25
25
  o = t[2], n = t[3], e = t[4], i = t[5];
26
- const d = n ? "true" : "false";
26
+ const s = n ? "true" : "false";
27
27
  let r;
28
- return t[6] !== o || t[7] !== e || t[8] !== i || t[9] !== d ? (r = /* @__PURE__ */ R("button", { ref: e, ...i, "aria-disabled": d, children: o }), t[6] = o, t[7] = e, t[8] = i, t[9] = d, t[10] = r) : r = t[10], r;
28
+ return t[6] !== o || t[7] !== e || t[8] !== i || t[9] !== s ? (r = /* @__PURE__ */ R("button", { ref: e, ...i, "aria-disabled": s, children: o }), t[6] = o, t[7] = e, t[8] = i, t[9] = s, t[10] = r) : r = t[10], r;
29
29
  });
30
30
  export {
31
- k as Button
31
+ P as Button
32
32
  };
@@ -1,40 +1,40 @@
1
- import { jsxs as g, jsx as p } from "react/jsx-runtime";
2
- import h from "react";
1
+ import { jsxs as _, jsx as p } from "react/jsx-runtime";
2
+ import g from "react";
3
3
  import '../../assets/components/data-table/DataTable.style.css';/* empty css */
4
4
  import "../../utils/contextStore.js";
5
- import { mergeComponentProps as C } from "../../utils/component.js";
5
+ import { mergeComponentProps as h } from "../../utils/component.js";
6
6
  import "js-md5";
7
- const A = (l, m) => m.split(".").reduce((t, f) => {
7
+ const d = (l, m) => m.split(".").reduce((t, f) => {
8
8
  if (t != null)
9
- return Array.isArray(t) ? t.map((o) => o?.[f]).filter((o) => o !== void 0) : t[f];
9
+ return Array.isArray(t) ? t.map((a) => a?.[f]).filter((a) => a !== void 0) : t[f];
10
10
  }, l), w = (l) => {
11
11
  const {
12
12
  data: m,
13
13
  sort: t,
14
14
  filter: f,
15
- loading: o,
16
- loadingComponent: j,
17
- emptyComponent: d,
15
+ loading: a,
16
+ loadingComponent: C,
17
+ emptyComponent: A,
18
18
  onSelect: u,
19
19
  children: O,
20
20
  ...b
21
- } = l, y = m.filter((i) => Object.entries(f || {}).every(([a, {
21
+ } = l, y = m.filter((i) => Object.entries(f || {}).every(([o, {
22
22
  operator: n,
23
23
  value: r
24
24
  }]) => {
25
- const e = A(i, a);
25
+ const e = d(i, o);
26
26
  return n === "isOneOf" && !Array.isArray(r) && !Array.isArray(e) ? e === r : n === "isOneOf" && !Array.isArray(r) && Array.isArray(e) ? Array.from(e).includes(r) : n === "isOneOf" && Array.isArray(r) && !Array.isArray(e) ? Array.from(r).some((s) => s === e) : n === "isOneOf" && Array.isArray(r) && Array.isArray(e) ? Array.from(r).some((s) => Array.from(e).includes(s)) : !1;
27
- })), c = h.useMemo(() => t ? [...y].sort((i, a) => {
27
+ })), c = g.useMemo(() => t ? [...y].sort((i, o) => {
28
28
  for (const [n, r] of Object.entries(t)) {
29
- const e = A(i, n), s = A(a, n);
29
+ const e = d(i, n), s = d(o, n);
30
30
  if (e < s) return r === "asc" ? -1 : 1;
31
31
  if (e > s) return r === "asc" ? 1 : -1;
32
32
  }
33
33
  return 0;
34
34
  }) : y, [y, t]);
35
- return /* @__PURE__ */ g("table", { ...C("data-table", b), children: [
36
- c.map((i, a) => /* @__PURE__ */ p("tr", { className: "data-table__row", onClick: () => u?.(i), children: O?.(i, a) })),
37
- c.length === 0 && !o && d ? /* @__PURE__ */ p("tr", { className: "data-table__row", onClick: () => u?.(void 0), children: d }) : null
35
+ return /* @__PURE__ */ _("table", { ...h("data-table", b), children: [
36
+ c.map((i, o) => /* @__PURE__ */ p("tr", { className: "data-table__row", onClick: () => u?.(i), children: O?.(i, o) })),
37
+ c.length === 0 && !a && A ? /* @__PURE__ */ p("tr", { className: "data-table__row", onClick: () => u?.(void 0), children: A }) : null
38
38
  ] });
39
39
  };
40
40
  export {
@@ -1,16 +1,16 @@
1
1
  import { jsx as f, jsxs as d } from "react/jsx-runtime";
2
- import { c as v } from "../../_virtual/compiler-runtime.js";
3
- import w from "react";
4
- import { MenuTrigger as y, MenuContent as _, Menu as g } from "../menu/Menu.js";
2
+ import { c as _ } from "../../_virtual/compiler-runtime.js";
3
+ import v from "react";
4
+ import { MenuTrigger as w, MenuContent as y, Menu as g } from "../menu/Menu.js";
5
5
  const T = (t) => {
6
- const e = v.c(11), {
7
- children: l,
8
- context: m
9
- } = t, [u, p] = w.useState(!0), h = _;
6
+ const e = _.c(11), {
7
+ children: c,
8
+ context: u
9
+ } = t, [m, p] = v.useState(!0), h = y;
10
10
  let r;
11
11
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (a) => p(a), e[0] = r) : r = e[0];
12
12
  let i;
13
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ f(y, { asChild: !0, children: /* @__PURE__ */ f("div", { style: {
13
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ f(w, { asChild: !0, children: /* @__PURE__ */ f("div", { style: {
14
14
  position: "absolute",
15
15
  top: 0,
16
16
  left: 0,
@@ -18,9 +18,9 @@ const T = (t) => {
18
18
  height: 0
19
19
  } }) }), e[1] = i) : i = e[1];
20
20
  let n;
21
- e[2] !== m?.view ? (n = (a) => {
22
- ["Escape", "ArrowUp", "ArrowDown"].includes(a.key) || m?.view?.focus();
23
- }, e[2] = m?.view, e[3] = n) : n = e[3];
21
+ e[2] !== u?.view ? (n = (a) => {
22
+ ["Escape", "ArrowUp", "ArrowDown"].includes(a.key) || u?.view?.focus();
23
+ }, e[2] = u?.view, e[3] = n) : n = e[3];
24
24
  let s;
25
25
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
26
26
  position: "fixed",
@@ -29,12 +29,12 @@ const T = (t) => {
29
29
  pointerEvents: "auto"
30
30
  }, e[4] = s) : s = e[4];
31
31
  let o;
32
- e[5] !== l || e[6] !== n ? (o = /* @__PURE__ */ f(h, { miw: "200px", onInteractOutside: b, onOpenAutoFocus: D, onKeyDown: n, style: s, children: l }), e[5] = l, e[6] = n, e[7] = o) : o = e[7];
33
- let c;
34
- return e[8] !== u || e[9] !== o ? (c = /* @__PURE__ */ d(g, { open: u, onOpenChange: r, modal: !1, children: [
32
+ e[5] !== c || e[6] !== n ? (o = /* @__PURE__ */ f(h, { miw: "200px", onInteractOutside: b, onOpenAutoFocus: D, onKeyDown: n, style: s, children: c }), e[5] = c, e[6] = n, e[7] = o) : o = e[7];
33
+ let l;
34
+ return e[8] !== m || e[9] !== o ? (l = /* @__PURE__ */ d(g, { open: m, onOpenChange: r, modal: !1, children: [
35
35
  i,
36
36
  o
37
- ] }), e[8] = u, e[9] = o, e[10] = c) : c = e[10], c;
37
+ ] }), e[8] = m, e[9] = o, e[10] = l) : l = e[10], l;
38
38
  };
39
39
  function x(t) {
40
40
  return t;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import m, { isValidElement as me } from "react";
3
- import { createPortal as K } from "react-dom";
3
+ import { createPortal as H } from "react-dom";
4
4
  import "../../utils/contextStore.js";
5
5
  import { mergeComponentProps as he } from "../../utils/component.js";
6
6
  import { hashToColor as w } from "../../utils/color.js";
7
- import fe, { Prec as _, keymap as J, ViewPlugin as ge, RangeSetBuilder as pe, Decoration as F, EditorView as ye, WidgetType as be } from "@uiw/react-codemirror";
7
+ import fe, { Prec as K, keymap as J, ViewPlugin as ge, RangeSetBuilder as pe, Decoration as F, EditorView as ye, WidgetType as be } from "@uiw/react-codemirror";
8
8
  import { json as ve, jsonParseLinter as Se } from "@codemirror/lang-json";
9
9
  import { syntaxTree as L } from "@codemirror/language";
10
10
  import { linter as we } from "@codemirror/lint";
@@ -53,7 +53,7 @@ class X extends be {
53
53
  return t.type === this.type && t.rawValue === this.rawValue;
54
54
  }
55
55
  }
56
- const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array.isArray(i), dr = (i) => {
56
+ const _e = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array.isArray(i), dr = (i) => {
57
57
  const {
58
58
  language: t,
59
59
  tokenizer: f,
@@ -70,9 +70,9 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
70
70
  showValidation: U = !0,
71
71
  readonly: ee,
72
72
  basicSetup: re,
73
- customSuggestionComponent: D = !1,
73
+ customSuggestionComponent: _ = !1,
74
74
  ...te
75
- } = i, [oe, I] = m.useState(), R = m.useRef(null), [ne, ie] = m.useState(/* @__PURE__ */ new Map()), [u, se] = m.useState([]), [T, le] = m.useState(null), [g, y] = m.useState(null), H = m.useRef(null);
75
+ } = i, [oe, I] = m.useState(), R = m.useRef(null), [ne, ie] = m.useState(/* @__PURE__ */ new Map()), [u, se] = m.useState([]), [T, le] = m.useState(null), [g, y] = m.useState(null), D = m.useRef(null);
76
76
  m.useEffect(() => {
77
77
  (async () => {
78
78
  try {
@@ -92,7 +92,7 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
92
92
  if (V) {
93
93
  const n = (o) => {
94
94
  const c = V(o);
95
- if (c && De(c)) {
95
+ if (c && _e(c)) {
96
96
  const l = o.view?.coordsAtPos(o.pos);
97
97
  return l && y({
98
98
  component: c,
@@ -105,15 +105,15 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
105
105
  return y(null), c;
106
106
  };
107
107
  e.push(Be({
108
- ...D ? {
108
+ ..._ ? {
109
109
  override: [n]
110
110
  } : {
111
111
  override: [V]
112
112
  }
113
- })), e.push(_.highest(J.of([{
113
+ })), e.push(K.highest(J.of([{
114
114
  key: "Tab",
115
115
  run: Fe
116
- }]))), D && e.push(_.highest(J.of([{
116
+ }]))), _ && e.push(K.highest(J.of([{
117
117
  key: "ArrowUp",
118
118
  run: (o) => (g || E(o), !0)
119
119
  }, {
@@ -177,7 +177,7 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
177
177
  to: c
178
178
  });
179
179
  } else e.selectionSet && (y(null), E(e.view));
180
- const d = H.current?.querySelectorAll(".cm-react-anchor"), n = /* @__PURE__ */ new Map();
180
+ const d = D.current?.querySelectorAll(".cm-react-anchor"), n = /* @__PURE__ */ new Map();
181
181
  d?.forEach((o) => {
182
182
  n.set(o, {
183
183
  type: o.dataset.type,
@@ -291,7 +291,7 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
291
291
  ] }),
292
292
  /* @__PURE__ */ r(a, { children: "suggestions" })
293
293
  ] }) }),
294
- /* @__PURE__ */ r(Me, { asChild: !0, children: /* @__PURE__ */ s("div", { ref: H, ...he("editor", te), children: [
294
+ /* @__PURE__ */ r(Me, { asChild: !0, children: /* @__PURE__ */ s("div", { ref: D, ...he("editor", te), children: [
295
295
  /* @__PURE__ */ r(fe, { width: "100%", height: "100%", value: oe, theme: ue, readOnly: N || ee, editable: !N, extensions: ae, "aria-disabled": N, className: "editor__control", onChange: (e) => {
296
296
  if (I(e), t === "json")
297
297
  try {
@@ -304,13 +304,13 @@ const De = (i) => me(i) || typeof i == "string" || typeof i == "number" || Array
304
304
  }, onUpdate: ce, basicSetup: re }),
305
305
  p && Array.from(ne.entries()).map(([e, d]) => {
306
306
  const n = p[d.type];
307
- return n ? K(/* @__PURE__ */ r("div", { style: {
307
+ return n ? H(/* @__PURE__ */ r("div", { style: {
308
308
  display: "contents"
309
309
  }, children: n({
310
310
  content: d.value
311
311
  }) }, e.outerHTML + d.value), e) : null;
312
312
  }),
313
- g && K(/* @__PURE__ */ r("div", { ref: R, style: {
313
+ g && H(/* @__PURE__ */ r("div", { ref: R, style: {
314
314
  position: "fixed",
315
315
  top: g.position.top,
316
316
  left: g.position.left,
@@ -12,8 +12,8 @@ import '../../assets/components/form/Input.style.css';/* empty css
12
12
  import { IconMinus as T, IconCheck as q } from "@tabler/icons-react";
13
13
  const ee = (l) => {
14
14
  const e = $.c(40), {
15
- title: b,
16
- description: _,
15
+ title: _,
16
+ description: b,
17
17
  formValidation: k,
18
18
  ...N
19
19
  } = l;
@@ -31,9 +31,9 @@ const ee = (l) => {
31
31
  let v;
32
32
  e[5] !== t ? (v = [t], e[5] = t, e[6] = v) : v = e[6], z.useEffect(g, v);
33
33
  let o;
34
- e[7] !== b ? (o = b ? /* @__PURE__ */ n(F, { children: b }) : null, e[7] = b, e[8] = o) : o = e[8];
34
+ e[7] !== _ ? (o = _ ? /* @__PURE__ */ n(F, { children: _ }) : null, e[7] = _, e[8] = o) : o = e[8];
35
35
  let c;
36
- e[9] !== _ ? (c = _ ? /* @__PURE__ */ n(L, { children: _ }) : null, e[9] = _, e[10] = c) : c = e[10];
36
+ e[9] !== b ? (c = b ? /* @__PURE__ */ n(L, { children: b }) : null, e[9] = b, e[10] = c) : c = e[10];
37
37
  const V = `input ${i?.valid ? "" : "input--not-valid"} checkbox-input`;
38
38
  let r;
39
39
  e[11] !== V ? (r = E(V, {}), e[11] = V, e[12] = r) : r = e[12];
@@ -1,21 +1,21 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import r from "react";
3
- import { Input as m } from "./Input.js";
4
- import { IconX as l } from "@tabler/icons-react";
2
+ import e from "react";
3
+ import { Input as l } from "./Input.js";
4
+ import { IconX as m } from "@tabler/icons-react";
5
5
  import { Button as f } from "../button/Button.js";
6
6
  import { clearInputElement as s } from "./Input.utils.js";
7
- const p = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/, d = (t) => p.test(t), R = r.forwardRef((t, x) => {
8
- x = x || r.useRef(null);
7
+ const p = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/, I = (t) => p.test(t), _ = e.forwardRef((t, x) => {
8
+ x = x || e.useRef(null);
9
9
  const {
10
- clearable: e = !1,
10
+ clearable: r = !1,
11
11
  right: n,
12
12
  ...c
13
13
  } = t, i = () => {
14
14
  s(x.current);
15
15
  }, a = [n];
16
- return e && a.push(/* @__PURE__ */ o(f, { onClick: i, children: /* @__PURE__ */ o(l, { size: 13 }) })), /* @__PURE__ */ o(m, { right: a, type: "email", ref: x, ...c });
16
+ return r && a.push(/* @__PURE__ */ o(f, { onClick: i, children: /* @__PURE__ */ o(m, { size: 13 }) })), /* @__PURE__ */ o(l, { right: a, type: "email", ref: x, ...c });
17
17
  });
18
18
  export {
19
- R as EmailInput,
20
- d as emailValidation
19
+ _ as EmailInput,
20
+ I as emailValidation
21
21
  };
@@ -401,8 +401,8 @@ const F = "input__token", K = "input__token--selected", q = "aria-data", O = "
401
401
  s(r.current);
402
402
  }, e[15] = r, e[16] = s, e[17] = w) : w = e[17];
403
403
  const V = w, G = me;
404
- let L;
405
- e[18] !== r || e[19] !== s ? (L = (i) => {
404
+ let _;
405
+ e[18] !== r || e[19] !== s ? (_ = (i) => {
406
406
  const g = r.current;
407
407
  if (!g || document.activeElement !== g)
408
408
  return !1;
@@ -414,26 +414,26 @@ const F = "input__token", K = "input__token--selected", q = "aria-data", O = "
414
414
  return i.preventDefault(), i.stopPropagation(), $(g), !0;
415
415
  }
416
416
  return i.key === "Enter" ? (i.preventDefault(), !0) : !1;
417
- }, e[18] = r, e[19] = s, e[20] = L) : L = e[20];
418
- const X = L;
419
- let M;
420
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = () => {
417
+ }, e[18] = r, e[19] = s, e[20] = _) : _ = e[20];
418
+ const X = _;
419
+ let L;
420
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = () => {
421
421
  const i = u.current;
422
422
  return u.current = null, i;
423
- }, e[21] = M) : M = e[21];
424
- let _;
425
- return e[22] !== y || e[23] !== d || e[24] !== V || e[25] !== X || e[26] !== S || e[27] !== p || e[28] !== s ? (_ = {
423
+ }, e[21] = L) : L = e[21];
424
+ let M;
425
+ return e[22] !== y || e[23] !== d || e[24] !== V || e[25] !== X || e[26] !== S || e[27] !== p || e[28] !== s ? (M = {
426
426
  editorHtml: d,
427
427
  setEditorHtml: c,
428
428
  initializeFromExternalValue: p,
429
429
  updateEditorState: s,
430
- takePendingSelection: M,
430
+ takePendingSelection: L,
431
431
  applySuggestionValueSyntax: y,
432
432
  handlePaste: S,
433
433
  handleChange: V,
434
434
  handleKeyDownCapture: G,
435
435
  handleKeyDown: X
436
- }, e[22] = y, e[23] = d, e[24] = V, e[25] = X, e[26] = S, e[27] = p, e[28] = s, e[29] = _) : _ = e[29], _;
436
+ }, e[22] = y, e[23] = d, e[24] = V, e[25] = X, e[26] = S, e[27] = p, e[28] = s, e[29] = M) : M = e[29], M;
437
437
  };
438
438
  function pe(t) {
439
439
  return typeof t != "string";
@@ -10,18 +10,18 @@ import { InputDescription as F } from "./InputDescription.js";
10
10
  import '../../assets/components/form/InputWrapper.style.css';/* empty css */
11
11
  const K = N.forwardRef((C, L) => {
12
12
  const e = j.c(29), {
13
- children: _,
14
- wrapperComponent: m,
15
- left: f,
16
- right: c,
13
+ children: w,
14
+ wrapperComponent: f,
15
+ left: m,
16
+ right: d,
17
17
  leftType: M,
18
18
  rightType: T,
19
- title: d,
19
+ title: c,
20
20
  description: u,
21
21
  formValidation: h
22
22
  } = C;
23
23
  let g;
24
- e[0] !== m ? (g = m === void 0 ? {} : m, e[0] = m, e[1] = g) : g = e[1];
24
+ e[0] !== f ? (g = f === void 0 ? {} : f, e[0] = f, e[1] = g) : g = e[1];
25
25
  const V = g, x = M === void 0 ? "icon" : M, y = T === void 0 ? "action" : T;
26
26
  let v;
27
27
  e[2] !== h ? (v = h === void 0 ? {
@@ -31,31 +31,31 @@ const K = N.forwardRef((C, L) => {
31
31
  } : h, e[2] = h, e[3] = v) : v = e[3];
32
32
  const t = v;
33
33
  let i;
34
- e[4] !== d ? (i = d && /* @__PURE__ */ a(E, { children: d }), e[4] = d, e[5] = i) : i = e[5];
34
+ e[4] !== c ? (i = c && /* @__PURE__ */ a(E, { children: c }), e[4] = c, e[5] = i) : i = e[5];
35
35
  let r;
36
36
  e[6] !== u ? (r = u && /* @__PURE__ */ a(F, { children: u }), e[6] = u, e[7] = r) : r = e[7];
37
37
  const I = `input-wrapper ${t?.valid ? "" : "input-wrapper--not-valid"}`;
38
38
  let l;
39
39
  e[8] !== I || e[9] !== V ? (l = b(I, V), e[8] = I, e[9] = V, e[10] = l) : l = e[10];
40
40
  let o;
41
- e[11] !== f || e[12] !== x ? (o = f && /* @__PURE__ */ a("div", { className: `input-wrapper__left input__left--${x}`, children: f }), e[11] = f, e[12] = x, e[13] = o) : o = e[13];
41
+ e[11] !== m || e[12] !== x ? (o = m && /* @__PURE__ */ a("div", { className: `input-wrapper__left input__left--${x}`, children: m }), e[11] = m, e[12] = x, e[13] = o) : o = e[13];
42
42
  let p;
43
- e[14] !== c || e[15] !== y ? (p = c && /* @__PURE__ */ a("div", { className: `input-wrapper__right input-wrapper__right--${y}`, children: c }), e[14] = c, e[15] = y, e[16] = p) : p = e[16];
43
+ e[14] !== d || e[15] !== y ? (p = d && /* @__PURE__ */ a("div", { className: `input-wrapper__right input-wrapper__right--${y}`, children: d }), e[14] = d, e[15] = y, e[16] = p) : p = e[16];
44
44
  let n;
45
- e[17] !== _ || e[18] !== o || e[19] !== p || e[20] !== l ? (n = /* @__PURE__ */ $("div", { ...l, children: [
45
+ e[17] !== w || e[18] !== o || e[19] !== p || e[20] !== l ? (n = /* @__PURE__ */ $("div", { ...l, children: [
46
46
  o,
47
- _,
47
+ w,
48
48
  p
49
- ] }), e[17] = _, e[18] = o, e[19] = p, e[20] = l, e[21] = n) : n = e[21];
49
+ ] }), e[17] = w, e[18] = o, e[19] = p, e[20] = l, e[21] = n) : n = e[21];
50
50
  let s;
51
51
  e[22] !== t ? (s = !t?.valid && t?.notValidMessage && /* @__PURE__ */ a(D, { children: t.notValidMessage }), e[22] = t, e[23] = s) : s = e[23];
52
- let w;
53
- return e[24] !== n || e[25] !== s || e[26] !== i || e[27] !== r ? (w = /* @__PURE__ */ $(R, { children: [
52
+ let _;
53
+ return e[24] !== n || e[25] !== s || e[26] !== i || e[27] !== r ? (_ = /* @__PURE__ */ $(R, { children: [
54
54
  i,
55
55
  r,
56
56
  n,
57
57
  s
58
- ] }), e[24] = n, e[25] = s, e[26] = i, e[27] = r, e[28] = w) : w = e[28], w;
58
+ ] }), e[24] = n, e[25] = s, e[26] = i, e[27] = r, e[28] = _) : _ = e[28], _;
59
59
  });
60
60
  export {
61
61
  K as InputWrapper
@@ -1,20 +1,20 @@
1
- import { jsx as t } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import u from "react";
3
3
  import { Input as i } from "./Input.js";
4
4
  import { IconMinus as a, IconPlus as l } from "@tabler/icons-react";
5
5
  import { Button as e } from "../button/Button.js";
6
- const d = u.forwardRef((o, n) => {
7
- n = n || u.useRef(null);
6
+ const N = u.forwardRef((o, t) => {
7
+ t = t || u.useRef(null);
8
8
  const {
9
9
  step: r = 1,
10
10
  ...c
11
11
  } = o;
12
- return /* @__PURE__ */ t(i, { className: "number-input", right: /* @__PURE__ */ t(e, { variant: "none", onClick: () => {
13
- n.current && (n.current.value || (n.current.value = "0"), n.current.value = (Number.parseInt(n.current.value) + r).toString());
14
- }, children: /* @__PURE__ */ t(l, { size: 13 }) }), left: /* @__PURE__ */ t(e, { variant: "none", onClick: () => {
15
- n.current && (n.current.value || (n.current.value = "0"), n.current.value = (Number.parseInt(n.current.value) - r).toString());
16
- }, children: /* @__PURE__ */ t(a, { size: 13 }) }), leftType: "action", type: "number", ref: n, ...c });
12
+ return /* @__PURE__ */ n(i, { className: "number-input", right: /* @__PURE__ */ n(e, { variant: "none", onClick: () => {
13
+ t.current && (t.current.value || (t.current.value = "0"), t.current.value = (Number.parseInt(t.current.value) + r).toString());
14
+ }, children: /* @__PURE__ */ n(l, { size: 13 }) }), left: /* @__PURE__ */ n(e, { variant: "none", onClick: () => {
15
+ t.current && (t.current.value || (t.current.value = "0"), t.current.value = (Number.parseInt(t.current.value) - r).toString());
16
+ }, children: /* @__PURE__ */ n(a, { size: 13 }) }), leftType: "action", type: "number", ref: t, ...c });
17
17
  });
18
18
  export {
19
- d as NumberInput
19
+ N as NumberInput
20
20
  };
@@ -6,7 +6,7 @@ import { Button as p } from "../button/Button.js";
6
6
  import { clearInputElement as w } from "./Input.utils.js";
7
7
  import { Flex as o } from "../flex/Flex.js";
8
8
  import { Text as a } from "../text/Text.js";
9
- const A = u.forwardRef((n, e) => {
9
+ const v = u.forwardRef((n, e) => {
10
10
  e = e || u.useRef(null);
11
11
  const {
12
12
  clearable: m = !0,
@@ -57,12 +57,12 @@ const A = u.forwardRef((n, e) => {
57
57
  ] })
58
58
  ] })
59
59
  ] });
60
- }), E = (n) => {
60
+ }), A = (n) => {
61
61
  if (!n) return "12345";
62
62
  let e = null;
63
63
  return n.length < 8 && (e = (e ?? "") + "1"), /[a-z]/.test(n) || (e = (e ?? "") + "2"), /[A-Z]/.test(n) || (e = (e ?? "") + "3"), /[0-9]/.test(n) || (e = (e ?? "") + "4"), /[^A-Za-z0-9]/.test(n) || (e = (e ?? "") + "5"), e;
64
64
  };
65
65
  export {
66
- A as PasswordInput,
67
- E as passwordValidation
66
+ v as PasswordInput,
67
+ A as passwordValidation
68
68
  };
@@ -1,18 +1,18 @@
1
- import { jsx as u } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import e from "react";
3
3
  import { Input as p } from "./Input.js";
4
4
  const m = e.forwardRef((r, t) => {
5
5
  t = t || e.useRef(null);
6
6
  const {
7
- value: o,
8
- initialValue: l,
9
- ...n
7
+ value: l,
8
+ initialValue: o,
9
+ ...u
10
10
  } = r;
11
- return /* @__PURE__ */ u(p, { wrapperComponent: {
11
+ return /* @__PURE__ */ n(p, { wrapperComponent: {
12
12
  className: "switch-input"
13
- }, type: "checkbox", right: null, left: null, ref: t, value: o, ...l ? {
13
+ }, type: "checkbox", right: null, left: null, ref: t, value: l, ...o ? {
14
14
  defaultChecked: !0
15
- } : {}, ...n });
15
+ } : {}, ...u });
16
16
  });
17
17
  export {
18
18
  m as SwitchInput
@@ -1,20 +1,20 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import a from "react";
3
3
  import { Input as u } from "./Input.js";
4
4
  import { IconX as f } from "@tabler/icons-react";
5
5
  import { Button as p } from "../button/Button.js";
6
6
  import { clearInputElement as s } from "./Input.utils.js";
7
- const b = a.forwardRef((r, t) => {
7
+ const R = a.forwardRef((r, t) => {
8
8
  t = t || a.useRef(null);
9
9
  const {
10
10
  clearable: i = !1,
11
11
  right: l,
12
12
  ...m
13
- } = r, c = (o) => {
14
- s(t.current), r.onClear && r.onClear(o);
13
+ } = r, c = (e) => {
14
+ s(t.current), r.onClear && r.onClear(e);
15
15
  }, n = [l];
16
- return i && n.push(/* @__PURE__ */ e(p, { variant: "none", onClick: (o) => c(o), children: /* @__PURE__ */ e(f, { size: 13 }) })), /* @__PURE__ */ e(u, { right: n, type: "textarea", ref: t, ...m });
16
+ return i && n.push(/* @__PURE__ */ o(p, { variant: "none", onClick: (e) => c(e), children: /* @__PURE__ */ o(f, { size: 13 }) })), /* @__PURE__ */ o(u, { right: n, type: "textarea", ref: t, ...m });
17
17
  });
18
18
  export {
19
- b as TextAreaInput
19
+ R as TextAreaInput
20
20
  };
@@ -4,17 +4,17 @@ import { Input as u } from "./Input.js";
4
4
  import { IconX as f } from "@tabler/icons-react";
5
5
  import { Button as p } from "../button/Button.js";
6
6
  import { clearInputElement as s } from "./Input.utils.js";
7
- const b = i.forwardRef((r, t) => {
7
+ const R = i.forwardRef((r, t) => {
8
8
  t = t || i.useRef(null);
9
9
  const {
10
10
  clearable: l = !1,
11
- right: m,
12
- ...a
11
+ right: a,
12
+ ...m
13
13
  } = r, c = (o) => {
14
14
  s(t.current), r.onClear && r.onClear(o);
15
- }, n = [m];
16
- return l && n.push(/* @__PURE__ */ e(p, { variant: "none", onClick: (o) => c(o), children: /* @__PURE__ */ e(f, { size: 13 }) })), /* @__PURE__ */ e(u, { right: n, type: "text", ref: t, ...a });
15
+ }, n = [a];
16
+ return l && n.push(/* @__PURE__ */ e(p, { variant: "none", onClick: (o) => c(o), children: /* @__PURE__ */ e(f, { size: 13 }) })), /* @__PURE__ */ e(u, { right: n, type: "text", ref: t, ...m });
17
17
  });
18
18
  export {
19
- b as TextInput
19
+ R as TextInput
20
20
  };
@@ -49,7 +49,7 @@ class f {
49
49
  };
50
50
  }
51
51
  }
52
- const E = (i) => {
52
+ const _ = (i) => {
53
53
  const {
54
54
  initialValues: e,
55
55
  validate: t = {},
@@ -72,5 +72,5 @@ const E = (i) => {
72
72
  return [b, M, s];
73
73
  };
74
74
  export {
75
- E as useForm
75
+ _ as useForm
76
76
  };
@@ -5,7 +5,7 @@ import l from "react";
5
5
  import { mergeComponentProps as f } from "../../utils/component.js";
6
6
  import "js-md5";
7
7
  import '../../assets/components/fullscreen/FullScreen.style.css';/* empty css */
8
- const R = (i) => {
8
+ const M = (i) => {
9
9
  const e = m.c(7), t = l.useRef(null);
10
10
  let r, o;
11
11
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = () => {
@@ -24,5 +24,5 @@ const R = (i) => {
24
24
  return e[4] !== i.children || e[5] !== n ? (d = /* @__PURE__ */ u("div", { ...n, ref: t, children: i.children }), e[4] = i.children, e[5] = n, e[6] = d) : d = e[6], d;
25
25
  };
26
26
  export {
27
- R as FullScreen
27
+ M as FullScreen
28
28
  };