triafly-ui-kit 1.0.78 → 1.0.79

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 +1 @@
1
- button.btn{--height-sm: 28px;--height-md: 36px;--height-lg: 44px;--height: var(--height-md);flex-shrink:0;background-color:var(--color-bg-brand-default);color:var(--light-color-static)!important;display:flex;justify-content:center;align-items:center;height:var(--height);border-radius:calc(var(--height) / 2);border:none;padding:10px 16px;cursor:pointer;transition:.15s all}button.btn:hover{background-color:var(--color-bg-brand-hover)}button.btn svg *{fill:var(--light-color-static)}button.btn span{color:var(--light-color-static)}button.btn[disabled]{opacity:50%;cursor:default;pointer-events:none}button.btn.brand-light{background-color:var(--color-button-brandlight-filled-bg);color:var(--color-button-brandlight-filled-text)!important}button.btn.brand-light:hover{background-color:var(--color-button-brandlight-filled-hover)}button.btn.brand-light svg *{fill:var(--color-button-brandlight-filled-text)}button.btn.brand-light span{color:var(--color-button-brandlight-filled-text)}button.btn.gray{background-color:var(--color-bg-neutral-lightest-default);color:var(--color-text-primary-default)!important}button.btn.gray:hover{background-color:var(--color-bg-neutral-medium-default)}button.btn.gray svg *{fill:var(--color-text-primary-default)}button.btn.gray span{color:var(--color-text-primary-default)}button.btn.danger{background-color:var(--color-bg-error-default);color:var(--light-color-static)!important}button.btn.danger:hover{background-color:var(--color-bg-error-hover)}button.btn.danger svg *{fill:var(--light-color-static)}button.btn.danger span{color:var(--light-color-static)}button.btn.outlined{background-color:transparent!important;border:1px solid var(--color-border-brand-default);color:var(--color-border-brand-default)}button.btn.outlined[disabled]{pointer-events:none}button.btn.outlined:hover{background-color:transparent;box-shadow:inset 0 0 0 1px var(--color-border-brand-default)}button.btn.outlined span{color:var(--color-border-brand-default)}button.btn.outlined svg *{fill:var(--color-border-brand-default)}button.btn.outlined.gray{background-color:transparent!important;border:1px solid var(--color-border-secondary-default);color:var(--color-text-primary-default)}button.btn.outlined.gray[disabled]{pointer-events:none}button.btn.outlined.gray:hover{background-color:transparent;box-shadow:inset 0 0 0 1px var(--color-border-secondary-default)}button.btn.outlined.gray span{color:var(--color-text-primary-default)}button.btn.outlined.gray svg *{fill:var(--color-text-primary-default)}button.btn.outlined.danger{background-color:transparent!important;border:1px solid var(--color-bg-error-default);color:var(--color-bg-error-default)}button.btn.outlined.danger[disabled]{pointer-events:none}button.btn.outlined.danger:hover{background-color:transparent;box-shadow:inset 0 0 0 1px var(--color-bg-error-default)}button.btn.outlined.danger span{color:var(--color-bg-error-default)}button.btn.outlined.danger svg *{fill:var(--color-bg-error-default)}button.btn.sm{--height: var(--height-sm);padding:6px 12px}button.btn.sm span{font-size:12px}button.btn.lg{--height: var(--height-lg);padding:12px 20px}button.btn.icon-button{width:var(--height);height:var(--height);padding:0;border-radius:50%;display:flex;justify-content:center;align-items:center}button.btn.icon-button *{margin:0!important}button.btn.semiround{border-radius:6px}button.btn.semiround.lg{border-radius:8px}button.btn.loading .btn-label{color:transparent}button.btn .arrow{margin:0 10px 0 0}button.btn .arrow:last-child{margin:0 0 0 10px;transform:rotate(180deg)}button.btn .icon,button.btn .icon-tail,button.btn .icon span,button.btn .icon-tail span{display:flex}button.btn .icon{margin:0 8px 0 0}button.btn .icon-tail{margin:0 0 0 8px}
1
+ button.btn{--height-sm: 28px;--height-md: 36px;--height-lg: 44px;--height: var(--height-md);flex-shrink:0;background-color:var(--color-bg-brand-default);color:var(--light-color-static)!important;display:flex;justify-content:center;align-items:center;height:var(--height);border-radius:calc(var(--height) / 2);border:none;padding:10px 16px;cursor:pointer;transition:.15s all}button.btn:hover{background-color:var(--color-bg-brand-hover)}button.btn svg *{fill:var(--light-color-static)}button.btn span{color:var(--light-color-static)}button.btn[disabled]{opacity:50%;cursor:default;pointer-events:none}button.btn.brand-light{background-color:var(--color-bg-brand-lightest-default);color:var(--light-color-static-brand)!important}button.btn.brand-light:hover{background-color:var(--color-button-brandlight-filled-hover)}button.btn.brand-light svg *{fill:var(--light-color-static-brand)}button.btn.brand-light span{color:var(--light-color-static-brand)}button.btn.gray{background-color:var(--color-bg-neutral-lightest-default);color:var(--color-text-primary-default)!important}button.btn.gray:hover{background-color:var(--color-bg-neutral-medium-default)}button.btn.gray svg *{fill:var(--color-text-primary-default)}button.btn.gray span{color:var(--color-text-primary-default)}button.btn.danger{background-color:var(--color-bg-error-default);color:var(--light-color-static)!important}button.btn.danger:hover{background-color:var(--color-bg-error-hover)}button.btn.danger svg *{fill:var(--light-color-static)}button.btn.danger span{color:var(--light-color-static)}button.btn.outlined{background-color:transparent!important;border:1px solid var(--color-border-brand-default);color:var(--color-border-brand-default)}button.btn.outlined[disabled]{pointer-events:none}button.btn.outlined:hover{background-color:transparent;box-shadow:inset 0 0 0 1px var(--color-border-brand-default)}button.btn.outlined span{color:var(--color-border-brand-default)}button.btn.outlined svg *{fill:var(--color-border-brand-default)}button.btn.outlined.gray{background-color:transparent!important;border:1px solid var(--color-border-secondary-default);color:var(--color-text-primary-default)}button.btn.outlined.gray[disabled]{pointer-events:none}button.btn.outlined.gray:hover{background-color:transparent;box-shadow:inset 0 0 0 1px var(--color-border-secondary-default)}button.btn.outlined.gray span{color:var(--color-text-primary-default)}button.btn.outlined.gray svg *{fill:var(--color-text-primary-default)}button.btn.outlined.danger{background-color:transparent!important;border:1px solid var(--color-bg-error-default);color:var(--color-bg-error-default)}button.btn.outlined.danger[disabled]{pointer-events:none}button.btn.outlined.danger:hover{background-color:transparent;box-shadow:inset 0 0 0 1px var(--color-bg-error-default)}button.btn.outlined.danger span{color:var(--color-bg-error-default)}button.btn.outlined.danger svg *{fill:var(--color-bg-error-default)}button.btn.sm{--height: var(--height-sm);padding:6px 12px}button.btn.sm span{font-size:12px}button.btn.lg{--height: var(--height-lg);padding:12px 20px}button.btn.icon-button{width:var(--height);height:var(--height);padding:0;border-radius:50%;display:flex;justify-content:center;align-items:center}button.btn.icon-button *{margin:0!important}button.btn.semiround{border-radius:6px}button.btn.semiround.lg{border-radius:8px}button.btn.loading .btn-label{color:transparent}button.btn .arrow{margin:0 10px 0 0}button.btn .arrow:last-child{margin:0 0 0 10px;transform:rotate(180deg)}button.btn .icon{margin:0 8px 0 0;display:flex}button.btn .icon-tail{display:flex;margin:0 0 0 8px}
@@ -1 +1 @@
1
- .buttons .buttons-bar{display:flex}.buttons .buttons-label{margin:0 0 8px;display:flex}.buttons .button{height:44px;padding:0 12px;display:flex;justify-content:center;align-items:center;border:1px solid var(--color-border-primary-default);background-color:var(--color-bg-neutral-basic-default);cursor:pointer}.buttons .button:not(:last-of-type){border-right:0 solid}.buttons .button:first-of-type{border-radius:8px 0 0 8px}.buttons .button:last-of-type{border-radius:0 8px 8px 0}.buttons .button:hover{background:#ddd}.buttons .button.active{background:var(--color-bg-neutral-light-default);font-weight:600}.buttons .button.status-error{color:var(--color-status-error-foreground)}.buttons .button.status-warning{color:var(--color-status-warning-foreground)}.buttons .button.status-success{color:var(--color-status-success-foreground)}
1
+ .buttons .buttons-bar{display:flex}.buttons .buttons-label{margin:0 0 8px;display:flex}.buttons .button{height:44px;padding:0 12px;display:flex;justify-content:center;align-items:center;border:1px solid var(--color-border-primary-default);background-color:var(--color-bg-neutral-basic-default);cursor:pointer}.buttons .button:not(:last-of-type){border-right:0 solid}.buttons .button:first-of-type{border-radius:8px 0 0 8px}.buttons .button:last-of-type{border-radius:0 8px 8px 0}.buttons .button:not(:disabled):hover{background:#ddd}.buttons .button:disabled{cursor:not-allowed;opacity:.6}.buttons .button.active{background:var(--color-bg-neutral-light-default);font-weight:600}.buttons .button.status-error{color:var(--color-status-error-foreground)}.buttons .button.status-warning{color:var(--color-status-warning-foreground)}.buttons .button.status-success{color:var(--color-status-success-foreground)}
@@ -1 +1 @@
1
- @font-face{font-family:Roboto Slab;src:url(../assets/fonts/RobotoSlab-SemiBold.ttf) format("truetype");font-weight:600}@font-face{font-family:Manrope;src:url(../assets/fonts/Manrope-Regular.ttf) format("truetype");font-weight:400}@font-face{font-family:Manrope;src:url(../assets/fonts/Manrope-Semibold.ttf) format("truetype");font-weight:600}@font-face{font-family:Manrope;src:url(../assets/fonts/Manrope-Bold.ttf) format("truetype");font-weight:700}@font-face{font-family:Fira Code;src:url(../assets/fonts/FiraCode-Regular.ttf) format("truetype");font-weight:400}*{font-family:Manrope,sans-serif;font-size:14px;line-height:1.2em;letter-spacing:.02em;font-weight:400;color:var(--color-text-primary-default)}h1,h2,h3,h4,h5,h6{margin:0}a{color:var(--color-text-brand-default);text-decoration:none}a:hover{color:var(--color-text-brand-hover)}a[href=""]{opacity:40%;cursor:default;pointer-events:none}p:not(:last-child){margin:0 0 8px}.modal-window.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--color-fader-20);display:flex;z-index:100}.modal-window.position-center{justify-content:center;align-items:center}.modal-window.position-right{justify-content:flex-end;align-items:center}.modal-window.position-left{justify-content:flex-start;align-items:center}.modal-window.position-top{justify-content:center;align-items:flex-start}.modal-window.position-bottom{justify-content:center;align-items:flex-end}.modal-window__body{background:var(--color-bg-neutral-basic-default);max-height:100vh;position:relative}.modal-window__body.size-sm{border-radius:8px;width:360px;padding:10px 12px}.modal-window__body.size-md{width:460px;border-radius:16px;padding:20px 24px}.modal-window__body.size-lg{width:600px;border-radius:16px;padding:24px 28px}.modal-window__body.size-full{width:100%;height:100%}.modal-window__body.foolHeight{height:100vh;border-radius:0}.modal-window__header{display:flex;justify-content:space-between;padding-bottom:28px;align-items:center;gap:12px}.modal-window__header .btn{background:none}.modal-window__header .btn .icon svg *{fill:var(--color-icon-secondary-default)}.modal-window__header .btn:hover{background:none}.modal-window__header__title{font-size:20px;font-weight:600;flex:1;word-break:break-word;overflow-wrap:break-word;white-space:normal;min-width:0}.modal-window__header__icon{border-radius:100%;height:36px;width:36px;display:flex;align-items:center;justify-content:center}.modal-window__header__icon.status-error{background:var(--color-status-error-background)}.modal-window__header__icon.status-error svg *{color:var(--color-bg-error-default)}.modal-window__header__icon.status-warning{background:var(--color-status-warning-background)}.modal-window__header__icon.status-warning svg *{color:var(--color-status-warning-background)}.modal-window__header__icon.status-success{background:var(--color-status-success-background)}.modal-window__header__icon.status-success svg *{color:var(--color-border-success-default)}.modal-window__header__icon.status-info{background:var(--dark-color-static-brand)}.modal-window__header__icon.status-info svg *{color:var(--light-color-static-brand)}
1
+ @font-face{font-family:Roboto Slab;src:url(../assets/fonts/RobotoSlab-SemiBold.ttf) format("truetype");font-weight:600}@font-face{font-family:Manrope;src:url(../assets/fonts/Manrope-Regular.ttf) format("truetype");font-weight:400}@font-face{font-family:Manrope;src:url(../assets/fonts/Manrope-Semibold.ttf) format("truetype");font-weight:600}@font-face{font-family:Manrope;src:url(../assets/fonts/Manrope-Bold.ttf) format("truetype");font-weight:700}@font-face{font-family:Fira Code;src:url(../assets/fonts/FiraCode-Regular.ttf) format("truetype");font-weight:400}*{font-family:Manrope,sans-serif;font-size:14px;line-height:1.2em;letter-spacing:.02em;font-weight:400;color:var(--color-text-primary-default)}h1,h2,h3,h4,h5,h6{margin:0}a{color:var(--color-text-brand-default);text-decoration:none}a:hover{color:var(--color-text-brand-hover)}a[href=""]{opacity:40%;cursor:default;pointer-events:none}p:not(:last-child){margin:0 0 8px}.modal-window.overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--color-fader);display:flex;z-index:100}.modal-window.position-center{justify-content:center;align-items:center}.modal-window.position-right{justify-content:flex-end;align-items:center}.modal-window.position-left{justify-content:flex-start;align-items:center}.modal-window.position-top{justify-content:center;align-items:flex-start}.modal-window.position-bottom{justify-content:center;align-items:flex-end}.modal-window__body{background:var(--color-bg-island-default);max-height:100vh;position:relative}.modal-window__body.size-inner{border-radius:16px;padding:24px 28px}.modal-window__body.size-sm{border-radius:8px;width:360px;padding:10px 12px}.modal-window__body.size-md{width:460px;border-radius:16px;padding:20px 24px}.modal-window__body.size-lg{width:600px;border-radius:16px;padding:24px 28px}.modal-window__body.size-full{width:100%;height:100%}.modal-window__body.foolHeight{height:100vh;border-radius:0}.modal-window__header{display:flex;justify-content:space-between;padding-bottom:28px;align-items:center;gap:12px}.modal-window__header .btn{background:none}.modal-window__header .btn .icon svg *{fill:var(--color-icon-secondary-default)}.modal-window__header .btn:hover{background:none}.modal-window__header__title{font-size:20px;font-weight:600;flex:1;word-break:break-word;overflow-wrap:break-word;white-space:normal;min-width:0}.modal-window__header__icon{border-radius:100%;height:36px;width:36px;display:flex;align-items:center;justify-content:center}.modal-window__header__icon.status-error{background:var(--color-status-error-background)}.modal-window__header__icon.status-error svg *{color:var(--color-bg-error-default)}.modal-window__header__icon.status-warning{background:var(--color-status-warning-background)}.modal-window__header__icon.status-warning svg *{color:var(--color-status-warning-background)}.modal-window__header__icon.status-success{background:var(--color-status-success-background)}.modal-window__header__icon.status-success svg *{color:var(--color-border-success-default)}.modal-window__header__icon.status-info{background:var(--dark-color-static-brand)}.modal-window__header__icon.status-info svg *{color:var(--light-color-static-brand)}
@@ -0,0 +1 @@
1
+ .toast-provider{position:fixed;bottom:20px;right:20px;z-index:101;display:flex;flex-direction:column;gap:10px}.toast-provider__element{color:var(--color-text-primary-inversed);padding:20px 24px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;min-width:250px;max-width:400px;font-size:16px;box-shadow:0 6px 15px -2px var(--effect-shadow-L, rgba(18, 18, 18, .08));animation:fadeIn .5s ease-in-out;background-color:var(--color-bg-neutral-basic-inversed)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@@ -1,28 +1,31 @@
1
- import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
- import { useState as d, useEffect as u } from "react";
1
+ import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as f, useState as p, useEffect as k } from "react";
3
3
  import '../../../assets/src/components/Ui/ButtonsArray/ButtonsArray.css';/* empty css */
4
- const p = ({ tabs: t, label: o, onChange: i, activeKey: e }) => {
5
- const [r, l] = d(e ?? t[0].key);
6
- u(() => {
7
- e != null ? l(e) : l(t[0].key);
8
- }, [e]);
9
- const c = (s) => {
10
- l(s), i && i(s);
11
- };
12
- return /* @__PURE__ */ a("div", { className: "buttons", children: [
13
- o && /* @__PURE__ */ n("span", { className: "buttons-label", children: o }),
14
- /* @__PURE__ */ n("div", { className: "buttons-bar", children: t.map((s) => /* @__PURE__ */ n(
15
- "button",
16
- {
17
- disabled: s.disabled,
18
- onClick: () => c(s.key),
19
- className: `button ${s.key === r ? "active" : ""} status-${s.status}`,
20
- children: s.label
21
- },
22
- s.key
23
- )) })
24
- ] });
25
- };
4
+ const h = f(
5
+ ({ tabs: e, label: o, onChange: a, activeKey: t, isDisabled: i }, u) => {
6
+ const [c, l] = p(t ?? e[0].key);
7
+ k(() => {
8
+ t != null ? l(t) : l(e[0].key);
9
+ }, [t]);
10
+ const d = (s, r) => {
11
+ s.stopPropagation(), s.preventDefault(), l(r), a && a(r);
12
+ };
13
+ return e.length === 0 ? null : /* @__PURE__ */ m("div", { className: "buttons", ref: u, children: [
14
+ o && /* @__PURE__ */ n("span", { className: "buttons-label", children: o }),
15
+ /* @__PURE__ */ n("div", { className: "buttons-bar", children: e.map((s) => /* @__PURE__ */ n(
16
+ "button",
17
+ {
18
+ disabled: i || s.disabled,
19
+ onClick: (r) => d(r, s.key),
20
+ className: `button ${s.key === c ? "active" : ""} status-${s.status}`,
21
+ children: s.label
22
+ },
23
+ s.key
24
+ )) })
25
+ ] });
26
+ }
27
+ );
28
+ h.displayName = "ButtonsArray";
26
29
  export {
27
- p as ButtonsArray
30
+ h as ButtonsArray
28
31
  };
@@ -1,107 +1,123 @@
1
1
  import { jsx as k } from "react/jsx-runtime";
2
- import d, { useContext as A, useMemo as C, useEffect as E, useCallback as I } from "react";
2
+ import p, { useContext as A, useMemo as C, useEffect as I, useCallback as E } from "react";
3
3
  import { FormContext as f } from "../FormContext/FormContext.js";
4
4
  import { validateRule as D } from "../utils/fn.js";
5
5
  import { getChildType as R } from "./fn.js";
6
- const N = d.memo(
6
+ const B = p.memo(
7
7
  ({
8
- name: t,
9
- children: r,
10
- rules: c,
11
- label: h,
12
- isDisabled: p,
8
+ name: o,
9
+ children: t,
10
+ rules: l,
11
+ label: d,
12
+ isDisabled: h,
13
13
  style: b,
14
- classNameItem: m
14
+ classNameItem: v
15
15
  }) => {
16
- const e = A(f), [, v] = d.useReducer((a) => a + 1, 0), u = p || (e == null ? void 0 : e.disabled), s = C(() => Array.isArray(t) ? t : [t], [t]);
17
- E(() => {
16
+ const e = A(f), [, m] = p.useReducer((a) => a + 1, 0), c = h || (e == null ? void 0 : e.disabled), u = C(() => Array.isArray(o) ? o : [o], [o]);
17
+ I(() => {
18
18
  if (e)
19
- return e.setFieldRules(s, c || []), e.subscribe(s, v);
20
- }, [s, c, e]);
21
- const n = e == null ? void 0 : e.getFieldValue(s), l = e == null ? void 0 : e.getFieldError(s), o = I(
19
+ return e.setFieldRules(u, l || []), e.subscribe(u, m);
20
+ }, [u, l, e]);
21
+ const r = e == null ? void 0 : e.getFieldValue(u), i = e == null ? void 0 : e.getFieldError(u), n = E(
22
22
  (a) => {
23
- if (!u && (e == null || e.setFieldValue(s, a), c)) {
24
- const i = c.map((F) => D(F, a)).filter(Boolean);
25
- e == null || e.setFieldError(s, i);
23
+ if (console.log(a), !c && (e == null || e.setFieldValue(u, a), l)) {
24
+ const s = l.map((F) => D(F, a)).filter(Boolean);
25
+ e == null || e.setFieldError(u, s);
26
26
  }
27
27
  },
28
- [s, c, u]
29
- ), g = R(r), y = C(() => {
28
+ [u, l, c]
29
+ ), g = R(t), y = C(() => {
30
30
  const a = {
31
- name: s,
32
- label: h,
33
- isDisabled: u,
34
- hasError: !!(l != null && l.length),
35
- errorMessage: l == null ? void 0 : l[0]
31
+ name: u,
32
+ label: d,
33
+ isDisabled: c,
34
+ hasError: !!(i != null && i.length),
35
+ errorMessage: (i == null ? void 0 : i[0]) || t.props.errorMessage
36
36
  };
37
37
  switch (g) {
38
38
  case "TextareaInput":
39
39
  return {
40
40
  ...a,
41
- value: n || "",
42
- onChange: o
41
+ value: r || "",
42
+ onChange: n
43
43
  };
44
44
  case "DropdownInput":
45
45
  return {
46
46
  ...a,
47
- value: n,
48
- onChange: o
47
+ value: r,
48
+ onChange: n
49
49
  };
50
50
  case "TextInput":
51
51
  return {
52
52
  ...a,
53
- value: n || "",
54
- onChange: (i) => o(i.target.value)
53
+ ...t.props,
54
+ value: r || "",
55
+ onChange: (s) => n(s.target.value)
56
+ };
57
+ case "NumberInput":
58
+ return {
59
+ ...a,
60
+ ...t.props,
61
+ value: r || Number(r) || 0,
62
+ onChange: (s) => n(s.target.value)
63
+ };
64
+ case "ButtonsArray":
65
+ return {
66
+ ...a,
67
+ ...t.props,
68
+ tabs: t.props.tabs || [],
69
+ activeKey: r !== void 0 ? r : null,
70
+ onChange: (s) => n(s)
55
71
  };
56
72
  case "Checkbox":
57
73
  return {
58
74
  ...a,
59
- isChecked: !!n,
60
- onChange: (i) => o(i.target.checked)
75
+ isChecked: !!r,
76
+ onChange: (s) => n(s.target.checked)
61
77
  };
62
78
  case "Radio":
63
79
  return {
64
80
  ...a,
65
- radioId: `radio-${Array.isArray(t) ? t.join("-") : t}`,
66
- value: r.props.value,
67
- isChecked: n === r.props.value,
68
- onChange: () => o(r.props.value)
81
+ radioId: `radio-${Array.isArray(o) ? o.join("-") : o}`,
82
+ value: t.props.value,
83
+ isChecked: r === t.props.value,
84
+ onChange: () => n(t.props.value)
69
85
  };
70
86
  case "SearchInput":
71
87
  return {
72
88
  ...a,
73
- value: n,
74
- onChange: o
89
+ value: r,
90
+ onChange: n
75
91
  };
76
92
  case "Switch":
77
93
  return {
78
94
  ...a,
79
- isChecked: !!n,
80
- onChange: (i) => o(i.target.checked)
95
+ isChecked: !!r,
96
+ onChange: (s) => n(s.target.checked)
81
97
  };
82
98
  case "FileUpload":
83
99
  return {
84
100
  ...a,
85
- value: Array.isArray(n) ? n : [],
86
- onChange: (i) => o(i)
101
+ value: Array.isArray(r) ? r : [],
102
+ onChange: (s) => n(s)
87
103
  };
88
104
  default:
89
105
  return a;
90
106
  }
91
107
  }, [
92
- s,
93
- h,
94
- l,
95
- n,
108
+ u,
109
+ d,
110
+ i,
111
+ r,
96
112
  g,
97
- o,
98
- r.props.value,
99
- u
113
+ n,
114
+ t.props.value,
115
+ c
100
116
  ]);
101
- return /* @__PURE__ */ k("div", { className: m, style: b, children: d.cloneElement(r, y) });
117
+ return /* @__PURE__ */ k("div", { className: v, style: b, children: p.cloneElement(t, y) });
102
118
  },
103
- (t, r) => t.name === r.name && t.rules === r.rules && t.label === r.label && t.isDisabled === r.isDisabled
119
+ (o, t) => o.name === t.name && o.rules === t.rules && o.label === t.label && o.isDisabled === t.isDisabled
104
120
  );
105
121
  export {
106
- N as FormItem
122
+ B as FormItem
107
123
  };
@@ -484,13 +484,6 @@ const L = C({
484
484
  }), W1 = C({
485
485
  displayName: "GitBranchX",
486
486
  path: "M43.375 7.49988C43.3743 6.09729 42.9803 4.723 42.2378 3.53309C41.4952 2.34318 40.4339 1.38533 39.1743 0.768328C37.9147 0.151323 36.5073 -0.100112 35.112 0.0425782C33.7167 0.185268 32.3894 0.716365 31.2807 1.57555C30.1721 2.43474 29.3266 3.58759 28.8403 4.90317C28.354 6.21875 28.2463 7.64434 28.5295 9.01804C28.8127 10.3917 29.4754 11.6585 30.4424 12.6745C31.4094 13.6904 32.642 14.4149 34 14.7655V18.7499C34 19.2472 33.8025 19.7241 33.4508 20.0757C33.0992 20.4273 32.6223 20.6249 32.125 20.6249H11.5C10.8611 20.6247 10.2269 20.7341 9.62502 20.9483V14.7655C11.3925 14.3091 12.9329 13.2238 13.9574 11.713C14.9819 10.2022 15.4203 8.36954 15.1902 6.55863C14.9602 4.74773 14.0777 3.08288 12.708 1.87616C11.3383 0.669427 9.57547 0.00366557 7.75002 0.00366557C5.92457 0.00366557 4.16178 0.669427 2.79208 1.87616C1.42238 3.08288 0.53981 4.74773 0.309796 6.55863C0.0797809 8.36954 0.518117 10.2022 1.54264 11.713C2.56716 13.2238 4.10753 14.3091 5.87502 14.7655V30.2343C4.10753 30.6906 2.56716 31.7759 1.54264 33.2868C0.518117 34.7976 0.0797809 36.6302 0.309796 38.4411C0.53981 40.252 1.42238 41.9169 2.79208 43.1236C4.16178 44.3303 5.92457 44.9961 7.75002 44.9961C9.57547 44.9961 11.3383 44.3303 12.708 43.1236C14.0777 41.9169 14.9602 40.252 15.1902 38.4411C15.4203 36.6302 14.9819 34.7976 13.9574 33.2868C12.9329 31.7759 11.3925 30.6906 9.62502 30.2343V26.2499C9.62502 25.7526 9.82256 25.2757 10.1742 24.9241C10.5258 24.5724 11.0027 24.3749 11.5 24.3749H32.125C33.6169 24.3749 35.0476 23.7823 36.1025 22.7274C37.1574 21.6725 37.75 20.2417 37.75 18.7499V14.7655C39.3594 14.3475 40.7846 13.4075 41.8025 12.0927C42.8204 10.7779 43.3734 9.16264 43.375 7.49988ZM4.00002 7.49988C4.00002 6.7582 4.21995 6.03318 4.63201 5.4165C5.04406 4.79981 5.62973 4.31916 6.31496 4.03534C7.00018 3.75151 7.75418 3.67724 8.48161 3.82194C9.20903 3.96663 9.87722 4.32379 10.4017 4.84823C10.9261 5.37268 11.2833 6.04087 11.428 6.7683C11.5727 7.49572 11.4984 8.24972 11.2146 8.93495C10.9307 9.62017 10.4501 10.2058 9.83341 10.6179C9.21672 11.03 8.4917 11.2499 7.75002 11.2499C6.75546 11.2499 5.80163 10.8548 5.09837 10.1515C4.39511 9.44827 4.00002 8.49445 4.00002 7.49988ZM11.5 37.4999C11.5 38.2416 11.2801 38.9666 10.868 39.5833C10.456 40.2 9.8703 40.6806 9.18508 40.9644C8.49986 41.2483 7.74586 41.3225 7.01843 41.1778C6.291 41.0331 5.62282 40.676 5.09837 40.1515C4.57392 39.6271 4.21677 38.9589 4.07207 38.2315C3.92738 37.504 4.00164 36.75 4.28547 36.0648C4.5693 35.3796 5.04995 34.7939 5.66663 34.3819C6.28331 33.9698 7.00834 33.7499 7.75002 33.7499C8.74458 33.7499 9.69841 34.145 10.4017 34.8482C11.1049 35.5515 11.5 36.5053 11.5 37.4999ZM35.875 11.2499C35.1333 11.2499 34.4083 11.03 33.7916 10.6179C33.1749 10.2058 32.6943 9.62017 32.4105 8.93495C32.1266 8.24972 32.0524 7.49572 32.1971 6.7683C32.3418 6.04087 32.6989 5.37268 33.2234 4.84823C33.7478 4.32379 34.416 3.96663 35.1434 3.82194C35.8709 3.67724 36.6249 3.75151 37.3101 4.03534C37.9953 4.31916 38.581 4.79981 38.993 5.4165C39.4051 6.03318 39.625 6.7582 39.625 7.49988C39.625 8.49445 39.2299 9.44827 38.5267 10.1515C37.8234 10.8548 36.8696 11.2499 35.875 11.2499Z"
487
- }), F1 = C({
488
- viewBox: "0 0 40 26",
489
- displayName: "Users",
490
- path: "M18.3203 17.675C19.9956 16.5597 21.2675 14.9348 21.9479 13.0407C22.6284 11.1466 22.6812 9.0838 22.0986 7.15735C21.516 5.2309 20.3289 3.54308 18.7128 2.34349C17.0968 1.14389 15.1376 0.496201 13.125 0.496201C11.1123 0.496201 9.15314 1.14389 7.5371 2.34349C5.92105 3.54308 4.73395 5.2309 4.15135 7.15735C3.56874 9.0838 3.62156 11.1466 4.30198 13.0407C4.98241 14.9348 6.25433 16.5597 7.92964 17.675C4.89916 18.7919 2.31106 20.8588 0.551518 23.5672C0.459043 23.7046 0.394809 23.8591 0.362551 24.0216C0.330293 24.1841 0.330654 24.3513 0.363614 24.5137C0.396573 24.676 0.461473 24.8302 0.554541 24.9672C0.647609 25.1043 0.766989 25.2215 0.905741 25.312C1.04449 25.4025 1.19985 25.4645 1.36278 25.4944C1.52571 25.5243 1.69297 25.5216 1.85482 25.4863C2.01668 25.451 2.16991 25.3839 2.30561 25.2889C2.44131 25.1939 2.55676 25.0729 2.64527 24.9328C3.78025 23.1872 5.33333 21.7527 7.16345 20.7597C8.99358 19.7666 11.0428 19.2465 13.125 19.2465C15.2071 19.2465 17.2563 19.7666 19.0865 20.7597C20.9166 21.7527 22.4697 23.1872 23.6046 24.9328C23.788 25.2053 24.0712 25.3947 24.393 25.46C24.7149 25.5254 25.0496 25.4614 25.3246 25.282C25.5997 25.1026 25.7931 24.8221 25.8631 24.5012C25.933 24.1803 25.8739 23.8448 25.6984 23.5672C23.9389 20.8588 21.3507 18.7919 18.3203 17.675ZM6.24996 9.87501C6.24996 8.51526 6.65317 7.18605 7.4086 6.05546C8.16404 4.92487 9.23776 4.04369 10.494 3.52333C11.7502 3.00298 13.1326 2.86683 14.4662 3.13211C15.7998 3.39738 17.0248 4.05216 17.9863 5.01365C18.9478 5.97513 19.6026 7.20014 19.8679 8.53376C20.1331 9.86738 19.997 11.2497 19.4766 12.506C18.9563 13.7622 18.0751 14.8359 16.9445 15.5914C15.8139 16.3468 14.4847 16.75 13.125 16.75C11.3022 16.7479 9.55474 16.0229 8.26588 14.7341C6.97702 13.4452 6.25202 11.6977 6.24996 9.87501ZM39.0843 25.2969C38.8067 25.4779 38.4685 25.5413 38.1441 25.473C37.8197 25.4048 37.5358 25.2104 37.3546 24.9328C36.221 23.1861 34.6681 21.751 32.8376 20.7584C31.0071 19.7658 28.9573 19.2472 26.875 19.25C26.5434 19.25 26.2255 19.1183 25.9911 18.8839C25.7567 18.6495 25.625 18.3315 25.625 18C25.625 17.6685 25.7567 17.3505 25.9911 17.1161C26.2255 16.8817 26.5434 16.75 26.875 16.75C27.8874 16.7491 28.8872 16.5245 29.8028 16.0924C30.7184 15.6603 31.5272 15.0312 32.1716 14.2503C32.8159 13.4693 33.2798 12.5557 33.5301 11.5747C33.7804 10.5936 33.8109 9.56943 33.6195 8.57524C33.4281 7.58104 33.0194 6.6414 32.4228 5.82344C31.8261 5.00548 31.0562 4.32939 30.1679 3.84349C29.2797 3.3576 28.2951 3.07388 27.2845 3.01261C26.2739 2.95134 25.2623 3.11403 24.3218 3.48907C24.1685 3.55535 24.0034 3.59023 23.8364 3.59164C23.6693 3.59305 23.5037 3.56097 23.3493 3.49729C23.1949 3.4336 23.0548 3.33961 22.9373 3.22086C22.8198 3.10212 22.7273 2.96103 22.6652 2.80593C22.6032 2.65083 22.5729 2.48486 22.5761 2.31785C22.5792 2.15083 22.6159 1.98614 22.6838 1.83352C22.7517 1.6809 22.8495 1.54344 22.9714 1.42926C23.0934 1.31508 23.237 1.2265 23.3937 1.16875C25.546 0.310397 27.9399 0.279508 30.1136 1.08205C32.2873 1.88458 34.0868 3.46369 35.165 5.51472C36.2431 7.56575 36.5235 9.94338 35.952 12.1889C35.3805 14.4345 33.9977 16.3889 32.0703 17.675C35.1007 18.7919 37.6889 20.8588 39.4484 23.5672C39.6295 23.8449 39.6928 24.1831 39.6245 24.5074C39.5563 24.8318 39.362 25.1158 39.0843 25.2969Z"
491
- }), K1 = C({
492
- displayName: "GitBranch",
493
- path: "M29.25 5C29.2495 4.06494 28.9869 3.14875 28.4918 2.35547C27.9968 1.5622 27.2893 0.923631 26.4495 0.512295C25.6098 0.100958 24.6716 -0.066665 23.7413 0.0284617C22.8111 0.123589 21.9262 0.477653 21.1872 1.05044C20.4481 1.62324 19.8844 2.3918 19.5602 3.26886C19.236 4.14591 19.1642 5.0963 19.353 6.0121C19.5418 6.92791 19.9836 7.77241 20.6283 8.44972C21.273 9.12702 22.0946 9.60998 23 9.84375V12.5C23 12.8315 22.8683 13.1495 22.6339 13.3839C22.3995 13.6183 22.0815 13.75 21.75 13.75H8.00001C7.57408 13.7499 7.15129 13.8228 6.75001 13.9656V9.84375C7.92834 9.53951 8.95525 8.81596 9.63826 7.80874C10.3213 6.80152 10.6135 5.57977 10.4602 4.3725C10.3068 3.16523 9.71844 2.05533 8.8053 1.25085C7.89217 0.446361 6.71698 0.00252001 5.50001 0.00252001C4.28304 0.00252001 3.10785 0.446361 2.19472 1.25085C1.28159 2.05533 0.693207 3.16523 0.539864 4.3725C0.386521 5.57977 0.678744 6.80152 1.36176 7.80874C2.04478 8.81596 3.07169 9.53951 4.25001 9.84375V20.1562C3.07169 20.4605 2.04478 21.184 1.36176 22.1913C0.678744 23.1985 0.386521 24.4202 0.539864 25.6275C0.693207 26.8348 1.28159 27.9447 2.19472 28.7492C3.10785 29.5536 4.28304 29.9975 5.50001 29.9975C6.71698 29.9975 7.89217 29.5536 8.8053 28.7492C9.71844 27.9447 10.3068 26.8348 10.4602 25.6275C10.6135 24.4202 10.3213 23.1985 9.63826 22.1913C8.95525 21.184 7.92834 20.4605 6.75001 20.1562V17.5C6.75001 17.1685 6.88171 16.8505 7.11613 16.6161C7.35055 16.3817 7.66849 16.25 8.00001 16.25H21.75C22.7446 16.25 23.6984 15.8549 24.4017 15.1516C25.1049 14.4484 25.5 13.4946 25.5 12.5V9.84375C26.5729 9.56507 27.5231 8.93839 28.2017 8.06187C28.8803 7.18535 29.249 6.1085 29.25 5ZM3.00001 5C3.00001 4.50555 3.14663 4.0222 3.42134 3.61107C3.69604 3.19995 4.08649 2.87952 4.5433 2.6903C5.00012 2.50108 5.50279 2.45157 5.98774 2.54804C6.47269 2.6445 6.91815 2.8826 7.26778 3.23223C7.61741 3.58186 7.85551 4.02732 7.95198 4.51227C8.04844 4.99723 7.99893 5.49989 7.80971 5.95671C7.62049 6.41352 7.30006 6.80397 6.88894 7.07867C6.47781 7.35338 5.99447 7.5 5.50001 7.5C4.83697 7.5 4.20109 7.23661 3.73225 6.76777C3.2634 6.29892 3.00001 5.66304 3.00001 5ZM8.00001 25C8.00001 25.4945 7.85339 25.9778 7.57869 26.3889C7.30398 26.8 6.91354 27.1205 6.45672 27.3097C5.9999 27.4989 5.49724 27.5484 5.01229 27.452C4.52733 27.3555 4.08188 27.1174 3.73225 26.7678C3.38261 26.4181 3.14451 25.9727 3.04805 25.4877C2.95159 25.0028 3.00109 24.5001 3.19031 24.0433C3.37953 23.5865 3.69996 23.196 4.11109 22.9213C4.52221 22.6466 5.00556 22.5 5.50001 22.5C6.16305 22.5 6.79894 22.7634 7.26778 23.2322C7.73662 23.7011 8.00001 24.337 8.00001 25ZM24.25 7.5C23.7556 7.5 23.2722 7.35338 22.8611 7.07867C22.45 6.80397 22.1295 6.41352 21.9403 5.95671C21.7511 5.49989 21.7016 4.99723 21.798 4.51227C21.8945 4.02732 22.1326 3.58186 22.4822 3.23223C22.8319 2.8826 23.2773 2.6445 23.7623 2.54804C24.2472 2.45157 24.7499 2.50108 25.2067 2.6903C25.6635 2.87952 26.054 3.19995 26.3287 3.61107C26.6034 4.0222 26.75 4.50555 26.75 5C26.75 5.66304 26.4866 6.29892 26.0178 6.76777C25.5489 7.23661 24.9131 7.5 24.25 7.5Z"
494
487
  });
495
488
  export {
496
489
  i1 as IconArrowBendUpRight,
@@ -539,7 +532,6 @@ export {
539
532
  f1 as IconFunnel,
540
533
  T as IconGauge,
541
534
  O as IconGear,
542
- K1 as IconGitBranch,
543
535
  W1 as IconGitBranchX,
544
536
  D1 as IconGoogleDrive,
545
537
  V1 as IconHand,
@@ -586,7 +578,6 @@ export {
586
578
  Y1 as IconUploadSimple,
587
579
  a1 as IconUser,
588
580
  L1 as IconUserX,
589
- F1 as IconUsers,
590
581
  e1 as IconWarningCircle,
591
582
  n1 as IconWrench,
592
583
  t1 as IconX,
@@ -1,4 +1,4 @@
1
- import { IconArrowBendUpRight as c, IconArrowClockwise as I, IconArrowDown as e, IconArrowLeft as r, IconArrowLineDown as i, IconArrowLineLeft as t, IconArrowLineRight as a, IconArrowLineUp as l, IconArrowRight as s, IconArrowUp as C, IconArrowsOut as h, IconArticle as w, IconAt as p, IconBellSimple as u, IconBookOpenText as g, IconCalendarBlank as S, IconCaretDown as A, IconCaretLeft as D, IconCaretRight as L, IconCaretUp as d, IconCaretUpDown as k, IconChartPieSlice as U, IconChatText as P, IconCheck as B, IconCheckCircle as F, IconChecks as T, IconCircleNotch as X, IconClickHouse as f, IconCopy as y, IconCornersOut as R, IconCsv as m, IconCube as x, IconDatabase as G, IconDotsNine as H, IconDotsThreeVertical as M, IconExport as v, IconEye as N, IconEyeSlash as O, IconFile as Q, IconFiles as E, IconFloppyDisk as b, IconFolderSimple as W, IconFolderSimpleX as z, IconFunnel as J, IconGauge as V, IconGear as Y, IconGitBranch as j, IconGitBranchX as q, IconGoogleDrive as K, IconHand as Z, IconHeadCircuit as _, IconHouse as $, IconIcon as oo, IconInfo as no, IconJoin as co, IconLanguage as Io, IconLink as eo, IconList as ro, IconLock as io, IconLockOpen as to, IconMariaDB as ao, IconMinus as lo, IconMongoDB as so, IconMoon as Co, IconMySQL as ho, IconNavigationArrow as wo, IconNotePencil as po, IconPassword as uo, IconPen as go, IconPlay as So, IconPlugsX as Ao, IconPlus as Do, IconPorsgteSQL as Lo, IconPresentationChart as ko, IconQuestion as Uo, IconQuestionFullfilled as Po, IconRedo as Bo, IconRoleX as Fo, IconSearch as To, IconSearchX as Xo, IconSelection as fo, IconServer as yo, IconSlidersHorizontal as Ro, IconSticker as mo, IconSun as xo, IconThreeDot as Go, IconTrash as Ho, IconTriangleDown as Mo, IconTriangleUp as vo, IconUndo as No, IconUploadSimple as Oo, IconUser as Qo, IconUserX as Eo, IconUsers as bo, IconWarningCircle as Wo, IconWrench as zo, IconX as Jo, IconYandexDisk as Vo } from "./Icons.js";
1
+ import { IconArrowBendUpRight as c, IconArrowClockwise as I, IconArrowDown as e, IconArrowLeft as r, IconArrowLineDown as i, IconArrowLineLeft as t, IconArrowLineRight as a, IconArrowLineUp as l, IconArrowRight as s, IconArrowUp as C, IconArrowsOut as h, IconArticle as w, IconAt as p, IconBellSimple as u, IconBookOpenText as g, IconCalendarBlank as S, IconCaretDown as A, IconCaretLeft as D, IconCaretRight as L, IconCaretUp as d, IconCaretUpDown as k, IconChartPieSlice as U, IconChatText as P, IconCheck as B, IconCheckCircle as F, IconChecks as T, IconCircleNotch as X, IconClickHouse as f, IconCopy as y, IconCornersOut as R, IconCsv as m, IconCube as x, IconDatabase as H, IconDotsNine as M, IconDotsThreeVertical as v, IconExport as G, IconEye as N, IconEyeSlash as O, IconFile as Q, IconFiles as E, IconFloppyDisk as b, IconFolderSimple as W, IconFolderSimpleX as z, IconFunnel as J, IconGauge as V, IconGear as Y, IconGitBranchX as j, IconGoogleDrive as q, IconHand as K, IconHeadCircuit as Z, IconHouse as _, IconIcon as $, IconInfo as oo, IconJoin as no, IconLanguage as co, IconLink as Io, IconList as eo, IconLock as ro, IconLockOpen as io, IconMariaDB as to, IconMinus as ao, IconMongoDB as lo, IconMoon as so, IconMySQL as Co, IconNavigationArrow as ho, IconNotePencil as wo, IconPassword as po, IconPen as uo, IconPlay as go, IconPlugsX as So, IconPlus as Ao, IconPorsgteSQL as Do, IconPresentationChart as Lo, IconQuestion as ko, IconQuestionFullfilled as Uo, IconRedo as Po, IconRoleX as Bo, IconSearch as Fo, IconSearchX as To, IconSelection as Xo, IconServer as fo, IconSlidersHorizontal as yo, IconSticker as Ro, IconSun as mo, IconThreeDot as xo, IconTrash as Ho, IconTriangleDown as Mo, IconTriangleUp as vo, IconUndo as Go, IconUploadSimple as No, IconUser as Oo, IconUserX as Qo, IconWarningCircle as Eo, IconWrench as bo, IconX as Wo, IconYandexDisk as zo } from "./Icons.js";
2
2
  export {
3
3
  c as IconArrowBendUpRight,
4
4
  I as IconArrowClockwise,
@@ -32,10 +32,10 @@ export {
32
32
  R as IconCornersOut,
33
33
  m as IconCsv,
34
34
  x as IconCube,
35
- G as IconDatabase,
36
- H as IconDotsNine,
37
- M as IconDotsThreeVertical,
38
- v as IconExport,
35
+ H as IconDatabase,
36
+ M as IconDotsNine,
37
+ v as IconDotsThreeVertical,
38
+ G as IconExport,
39
39
  N as IconEye,
40
40
  O as IconEyeSlash,
41
41
  Q as IconFile,
@@ -46,56 +46,54 @@ export {
46
46
  J as IconFunnel,
47
47
  V as IconGauge,
48
48
  Y as IconGear,
49
- j as IconGitBranch,
50
- q as IconGitBranchX,
51
- K as IconGoogleDrive,
52
- Z as IconHand,
53
- _ as IconHeadCircuit,
54
- $ as IconHouse,
55
- oo as IconIcon,
56
- no as IconInfo,
57
- co as IconJoin,
58
- Io as IconLanguage,
59
- eo as IconLink,
60
- ro as IconList,
61
- io as IconLock,
62
- to as IconLockOpen,
63
- ao as IconMariaDB,
64
- lo as IconMinus,
65
- so as IconMongoDB,
66
- Co as IconMoon,
67
- ho as IconMySQL,
68
- wo as IconNavigationArrow,
69
- po as IconNotePencil,
70
- uo as IconPassword,
71
- go as IconPen,
72
- So as IconPlay,
73
- Ao as IconPlugsX,
74
- Do as IconPlus,
75
- Lo as IconPorsgteSQL,
76
- ko as IconPresentationChart,
77
- Uo as IconQuestion,
78
- Po as IconQuestionFullfilled,
79
- Bo as IconRedo,
80
- Fo as IconRoleX,
81
- To as IconSearch,
82
- Xo as IconSearchX,
83
- fo as IconSelection,
84
- yo as IconServer,
85
- Ro as IconSlidersHorizontal,
86
- mo as IconSticker,
87
- xo as IconSun,
88
- Go as IconThreeDot,
49
+ j as IconGitBranchX,
50
+ q as IconGoogleDrive,
51
+ K as IconHand,
52
+ Z as IconHeadCircuit,
53
+ _ as IconHouse,
54
+ $ as IconIcon,
55
+ oo as IconInfo,
56
+ no as IconJoin,
57
+ co as IconLanguage,
58
+ Io as IconLink,
59
+ eo as IconList,
60
+ ro as IconLock,
61
+ io as IconLockOpen,
62
+ to as IconMariaDB,
63
+ ao as IconMinus,
64
+ lo as IconMongoDB,
65
+ so as IconMoon,
66
+ Co as IconMySQL,
67
+ ho as IconNavigationArrow,
68
+ wo as IconNotePencil,
69
+ po as IconPassword,
70
+ uo as IconPen,
71
+ go as IconPlay,
72
+ So as IconPlugsX,
73
+ Ao as IconPlus,
74
+ Do as IconPorsgteSQL,
75
+ Lo as IconPresentationChart,
76
+ ko as IconQuestion,
77
+ Uo as IconQuestionFullfilled,
78
+ Po as IconRedo,
79
+ Bo as IconRoleX,
80
+ Fo as IconSearch,
81
+ To as IconSearchX,
82
+ Xo as IconSelection,
83
+ fo as IconServer,
84
+ yo as IconSlidersHorizontal,
85
+ Ro as IconSticker,
86
+ mo as IconSun,
87
+ xo as IconThreeDot,
89
88
  Ho as IconTrash,
90
89
  Mo as IconTriangleDown,
91
90
  vo as IconTriangleUp,
92
- No as IconUndo,
93
- Oo as IconUploadSimple,
94
- Qo as IconUser,
95
- Eo as IconUserX,
96
- bo as IconUsers,
97
- Wo as IconWarningCircle,
98
- zo as IconWrench,
99
- Jo as IconX,
100
- Vo as IconYandexDisk
91
+ Go as IconUndo,
92
+ No as IconUploadSimple,
93
+ Oo as IconUser,
94
+ Qo as IconUserX,
95
+ Eo as IconWarningCircle,
96
+ bo as IconWrench,
97
+ Wo as IconX,
98
+ zo as IconYandexDisk
101
99
  };
@@ -1,12 +1,12 @@
1
- import { jsx as s, Fragment as h, jsxs as m } from "react/jsx-runtime";
2
- import { createElement as f } from "react";
3
- import { createPortal as u } from "react-dom";
1
+ import { jsx as s, Fragment as h, jsxs as i } from "react/jsx-runtime";
2
+ import { createElement as u } from "react";
3
+ import { createPortal as f } from "react-dom";
4
4
  import '../../../assets/src/components/Ui/ModalWindow/ModalWindow.css';/* empty css */
5
5
  import { Button as v } from "../Button/Button.js";
6
6
  import { IconX as N } from "../Icons/Icons.js";
7
- const x = ({
8
- isOpen: l,
9
- onClose: i,
7
+ const j = ({
8
+ isOpen: m,
9
+ onClose: l,
10
10
  width: a,
11
11
  size: r = "md",
12
12
  iconHeader: o,
@@ -16,8 +16,8 @@ const x = ({
16
16
  foolHeight: c,
17
17
  position: p = "center"
18
18
  }) => {
19
- if (!l) return null;
20
- const w = (o == null ? void 0 : o.size) ?? 20, n = /* @__PURE__ */ s(h, { children: /* @__PURE__ */ s("div", { className: `modal-window overlay position-${p}`, onClick: () => i(!1), children: /* @__PURE__ */ m(
19
+ if (!m) return null;
20
+ const w = (o == null ? void 0 : o.size) ?? 20, n = /* @__PURE__ */ s(h, { children: /* @__PURE__ */ s("div", { className: `modal-window overlay position-${p}`, children: /* @__PURE__ */ i(
21
21
  "div",
22
22
  {
23
23
  className: `modal-window__body size-${r} ${c ? "foolHeight" : ""}`,
@@ -27,8 +27,8 @@ const x = ({
27
27
  pointerEvents: "auto"
28
28
  },
29
29
  children: [
30
- /* @__PURE__ */ m("div", { className: "modal-window__header", children: [
31
- (o == null ? void 0 : o.view) && /* @__PURE__ */ s("div", { className: `modal-window__header__icon status-${o.status}`, children: f(o.icon, { size: w }) }),
30
+ /* @__PURE__ */ i("div", { className: "modal-window__header", children: [
31
+ (o == null ? void 0 : o.view) && /* @__PURE__ */ s("div", { className: `modal-window__header__icon status-${o.status}`, children: u(o.icon, { size: w }) }),
32
32
  t != null && t.toString() ? /* @__PURE__ */ s("span", { className: "modal-window__header__title", children: t }) : t,
33
33
  /* @__PURE__ */ s(
34
34
  v,
@@ -36,7 +36,7 @@ const x = ({
36
36
  type: "button",
37
37
  icon: /* @__PURE__ */ s(N, { size: 24 }),
38
38
  className: "icon-button",
39
- onClick: () => i(!1)
39
+ onClick: () => l(!1)
40
40
  }
41
41
  )
42
42
  ] }),
@@ -44,8 +44,8 @@ const x = ({
44
44
  ]
45
45
  }
46
46
  ) }) });
47
- return e ? u(n, document.body) : n;
47
+ return e ? f(n, document.body) : n;
48
48
  };
49
49
  export {
50
- x as ModalWindow
50
+ j as ModalWindow
51
51
  };
@@ -0,0 +1,49 @@
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { forwardRef as o } from "react";
3
+ import { TextInput as h } from "../TextInput/TextInput.js";
4
+ const l = [
5
+ "0",
6
+ "1",
7
+ "2",
8
+ "3",
9
+ "4",
10
+ "5",
11
+ "6",
12
+ "7",
13
+ "8",
14
+ "9",
15
+ "Backspace",
16
+ "Delete",
17
+ "Tab",
18
+ "ArrowLeft",
19
+ "ArrowRight"
20
+ ], s = o(
21
+ ({ allowNegative: r = !1, allowDecimal: c = !1, ...n }, f) => /* @__PURE__ */ g(
22
+ h,
23
+ {
24
+ ...n,
25
+ ref: f,
26
+ type: "text",
27
+ onKeyDown: (t) => {
28
+ var a;
29
+ c && t.key === "." && !t.currentTarget.value.includes(".") && l.push("."), r && t.key === "-" && (t.currentTarget.selectionStart === 0 || t.currentTarget.value === "") && l.push("-"), !l.includes(t.key) && !(t.ctrlKey && ["a", "c", "v", "x"].includes(t.key.toLowerCase())) && t.preventDefault(), (a = n.onKeyDown) == null || a.call(n, t);
30
+ },
31
+ onChange: (t) => {
32
+ var u;
33
+ const a = t.target.value;
34
+ let e = a.replace(/[^-0-9.]/g, "");
35
+ if (r ? (e.match(/-/g) || []).length > 1 && (e = e.replace(/-/g, ""), e.length > 0 && (e = "-" + e)) : e = e.replace(/-/g, ""), !c)
36
+ e = e.replace(/\./g, "");
37
+ else if ((e.match(/\./g) || []).length > 1) {
38
+ const i = e.split(".");
39
+ e = i[0] + "." + i.slice(1).join("");
40
+ }
41
+ a !== e && (t.target.value = e), (u = n.onChange) == null || u.call(n, t);
42
+ }
43
+ }
44
+ )
45
+ );
46
+ s.displayName = "NumberInput";
47
+ export {
48
+ s as NumberInput
49
+ };
@@ -0,0 +1,4 @@
1
+ import { NumberInput as m } from "./NumberInput.js";
2
+ export {
3
+ m as NumberInput
4
+ };