@companix/uikit 0.0.51 → 0.0.52
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/Select/SelectLoader.d.ts +1 -0
- package/dist/Select/SelectOptions.d.ts +3 -2
- package/dist/Select/index.d.ts +1 -0
- package/dist/SelectTags/index.d.ts +1 -0
- package/dist/bundle.es12.js +34 -32
- package/dist/bundle.es13.js +2 -2
- package/dist/bundle.es15.js +1 -1
- package/dist/bundle.es21.js +1 -1
- package/dist/bundle.es22.js +1 -1
- package/dist/bundle.es23.js +1 -1
- package/dist/bundle.es26.js +1 -1
- package/dist/bundle.es27.js +66 -69
- package/dist/bundle.es28.js +4 -4
- package/dist/bundle.es29.js +2 -2
- package/dist/bundle.es32.js +2 -2
- package/dist/bundle.es35.js +1 -1
- package/dist/bundle.es38.js +1 -1
- package/dist/bundle.es39.js +1 -1
- package/dist/bundle.es40.js +1 -1
- package/dist/bundle.es46.js +1 -1
- package/dist/bundle.es48.js +32 -30
- package/dist/bundle.es49.js +4 -24
- package/dist/bundle.es50.js +20 -35
- package/dist/bundle.es51.js +39 -5
- package/dist/bundle.es52.js +5 -14
- package/dist/bundle.es53.js +13 -13
- package/dist/bundle.es54.js +13 -69
- package/dist/bundle.es55.js +68 -66
- package/dist/bundle.es56.js +67 -69
- package/dist/bundle.es57.js +69 -10
- package/dist/bundle.es58.js +10 -42
- package/dist/bundle.es59.js +42 -14
- package/dist/bundle.es60.js +15 -32
- package/dist/bundle.es61.js +23 -61
- package/dist/bundle.es62.js +69 -13
- package/dist/bundle.es63.js +13 -74
- package/dist/bundle.es64.js +71 -45
- package/dist/bundle.es65.js +48 -13
- package/dist/bundle.es66.js +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SelectLoader: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,10 +9,11 @@ interface SelectPopoverProps<T> {
|
|
|
9
9
|
optionsWrapperRef?: React.RefObject<HTMLDivElement>;
|
|
10
10
|
options: Option<T>[];
|
|
11
11
|
minimalOptions?: boolean;
|
|
12
|
-
|
|
12
|
+
isActive: (value: T) => boolean;
|
|
13
13
|
onSelect?: (value: T) => void;
|
|
14
14
|
onOpened?: () => void;
|
|
15
15
|
addOption?: SelectAddOption;
|
|
16
|
+
emptyText?: string;
|
|
16
17
|
}
|
|
17
|
-
export declare const
|
|
18
|
+
export declare const SelectOptionsList: <T>(props: SelectPopoverProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface SelectParams {
|
|
|
19
19
|
}>;
|
|
20
20
|
addOption?: SelectAddOption;
|
|
21
21
|
isLoading?: boolean;
|
|
22
|
+
emptyText?: string;
|
|
22
23
|
}
|
|
23
24
|
export type SelectProps<T> = Omit<SelectFormProps, 'value' | 'onChange' | 'closeButton'> & DependedValueType<T> & SelectParams & {
|
|
24
25
|
value: T | null;
|
package/dist/bundle.es12.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as I, useImperativeHandle as
|
|
3
|
-
import { Popover as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as I, useImperativeHandle as b } from "react";
|
|
3
|
+
import { Popover as z } from "./bundle.es10.js";
|
|
4
4
|
import { useFroozeClosing as B } from "./bundle.es45.js";
|
|
5
5
|
import { SelectInput as D } from "./bundle.es46.js";
|
|
6
|
-
import { useScrollListController as
|
|
7
|
-
import {
|
|
8
|
-
import { mergeRefs as
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
6
|
+
import { useScrollListController as j } from "./bundle.es47.js";
|
|
7
|
+
import { SelectOptionsList as w } from "./bundle.es48.js";
|
|
8
|
+
import { mergeRefs as y } from "react-merge-refs";
|
|
9
|
+
import { SelectLoader as H } from "./bundle.es49.js";
|
|
10
|
+
const U = (a) => {
|
|
11
11
|
const {
|
|
12
12
|
options: t,
|
|
13
13
|
onChange: l,
|
|
@@ -19,57 +19,59 @@ const Q = (a) => {
|
|
|
19
19
|
scrollRef: d,
|
|
20
20
|
popoverRef: v,
|
|
21
21
|
clearButton: s,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
emptyText: h,
|
|
23
|
+
addOption: x,
|
|
24
|
+
isLoading: R,
|
|
25
|
+
...g
|
|
26
|
+
} = a, n = I(() => {
|
|
26
27
|
const o = i === null ? -1 : t.findIndex((e) => e.value === i);
|
|
27
28
|
return {
|
|
28
29
|
index: o,
|
|
29
30
|
option: t[o]
|
|
30
31
|
};
|
|
31
|
-
}, [t, i]),
|
|
32
|
-
|
|
32
|
+
}, [t, i]), C = n.option?.value ?? null, { popoverRef: O, froozePopoverPosition: P, handleAnimationEnd: S } = B(), { scrollToElement: c, optionsWrapperRef: A, scrollBoxRef: L } = j();
|
|
33
|
+
b(d, () => ({
|
|
33
34
|
scrollTo: (o) => c(o, "top")
|
|
34
35
|
}));
|
|
35
|
-
const
|
|
36
|
-
|
|
36
|
+
const T = (o, e) => {
|
|
37
|
+
P(), l(o), e();
|
|
37
38
|
}, E = (o) => {
|
|
38
39
|
o.stopPropagation(), s && l(null);
|
|
39
40
|
}, F = () => {
|
|
40
|
-
|
|
41
|
+
n.index !== -1 && c(n.index, "center");
|
|
41
42
|
};
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
43
|
+
return /* @__PURE__ */ r(
|
|
44
|
+
z,
|
|
44
45
|
{
|
|
45
46
|
minimal: !0,
|
|
46
|
-
ref:
|
|
47
|
+
ref: y([O, v]),
|
|
47
48
|
sideOffset: 0,
|
|
48
49
|
matchTarget: f,
|
|
49
|
-
onAnimationEnd:
|
|
50
|
+
onAnimationEnd: S,
|
|
50
51
|
onOpenAutoFocus: (o) => o.preventDefault(),
|
|
51
52
|
onCloseAutoFocus: (o) => o.preventDefault(),
|
|
52
53
|
disabled: p,
|
|
53
|
-
content: ({ close: o }) =>
|
|
54
|
-
|
|
54
|
+
content: ({ close: o }) => R ? /* @__PURE__ */ r(H, {}) : /* @__PURE__ */ r(
|
|
55
|
+
w,
|
|
55
56
|
{
|
|
56
57
|
options: t,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
isActive: (e) => e === C,
|
|
59
|
+
emptyText: h,
|
|
60
|
+
scrollboxRef: L,
|
|
61
|
+
optionsWrapperRef: A,
|
|
60
62
|
minimalOptions: m,
|
|
61
|
-
addOption:
|
|
63
|
+
addOption: x,
|
|
62
64
|
onOpened: F,
|
|
63
|
-
onSelect: (e) =>
|
|
65
|
+
onSelect: (e) => T(e, o)
|
|
64
66
|
}
|
|
65
67
|
),
|
|
66
|
-
children: u ?? /* @__PURE__ */
|
|
68
|
+
children: u ?? /* @__PURE__ */ r(
|
|
67
69
|
D,
|
|
68
70
|
{
|
|
69
|
-
...
|
|
71
|
+
...g,
|
|
70
72
|
disabled: p,
|
|
71
73
|
clearButton: s,
|
|
72
|
-
value:
|
|
74
|
+
value: n.option?.title ?? "",
|
|
73
75
|
onClear: E
|
|
74
76
|
}
|
|
75
77
|
)
|
|
@@ -77,5 +79,5 @@ const Q = (a) => {
|
|
|
77
79
|
);
|
|
78
80
|
};
|
|
79
81
|
export {
|
|
80
|
-
|
|
82
|
+
U as Select
|
|
81
83
|
};
|
package/dist/bundle.es13.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, useRef as R } from "react";
|
|
3
3
|
import { mergeRefs as c } from "react-merge-refs";
|
|
4
|
-
import { InputElement as x } from "./bundle.
|
|
5
|
-
import { InputContainer as I } from "./bundle.
|
|
4
|
+
import { InputElement as x } from "./bundle.es50.js";
|
|
5
|
+
import { InputContainer as I } from "./bundle.es51.js";
|
|
6
6
|
import g from "classnames";
|
|
7
7
|
const N = b(
|
|
8
8
|
({
|
package/dist/bundle.es15.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import C from "classnames";
|
|
3
3
|
import { forwardRef as j, useRef as w } from "react";
|
|
4
4
|
import { mergeRefs as y } from "react-merge-refs";
|
|
5
|
-
import { InputContainer as F } from "./bundle.
|
|
5
|
+
import { InputContainer as F } from "./bundle.es51.js";
|
|
6
6
|
import { NumericFormat as V } from "react-number-format";
|
|
7
7
|
const D = j(
|
|
8
8
|
({
|
package/dist/bundle.es21.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
|
2
2
|
import f from "classnames";
|
|
3
3
|
import * as o from "@radix-ui/react-dialog";
|
|
4
4
|
import { VisuallyHidden as a } from "@radix-ui/react-visually-hidden";
|
|
5
|
-
import { RemoveListener as v } from "./bundle.
|
|
5
|
+
import { RemoveListener as v } from "./bundle.es52.js";
|
|
6
6
|
const g = (l) => {
|
|
7
7
|
const { size: n = "s", open: r, onOpenChange: s, children: c, onClosed: t, disableEsc: p, className: d } = l, m = (h) => {
|
|
8
8
|
p && h.preventDefault();
|
package/dist/bundle.es22.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "@radix-ui/react-alert-dialog";
|
|
3
3
|
import { Button as c } from "./bundle.es4.js";
|
|
4
|
-
import { RemoveListener as N } from "./bundle.
|
|
4
|
+
import { RemoveListener as N } from "./bundle.es52.js";
|
|
5
5
|
import { VisuallyHidden as u } from "@radix-ui/react-visually-hidden";
|
|
6
6
|
const C = ({
|
|
7
7
|
open: d,
|
package/dist/bundle.es23.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Button as m } from "./bundle.es4.js";
|
|
3
|
-
import { useLoading as p } from "./bundle.
|
|
3
|
+
import { useLoading as p } from "./bundle.es53.js";
|
|
4
4
|
const g = ({ onClick: o, appearance: r = "primary", ...i }) => {
|
|
5
5
|
const { isLoading: n, isError: t, handleClick: a } = p({ onClick: o });
|
|
6
6
|
return /* @__PURE__ */ e(
|
package/dist/bundle.es26.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { useResizeTextarea as x } from "./bundle.
|
|
2
|
+
import { useResizeTextarea as x } from "./bundle.es54.js";
|
|
3
3
|
import { attr as e, callMultiple as u } from "@companix/utils-browser";
|
|
4
4
|
import { useEffect as z } from "react";
|
|
5
5
|
import { mergeRefs as R } from "react-merge-refs";
|
package/dist/bundle.es27.js
CHANGED
|
@@ -1,111 +1,108 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useFroozeClosing as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { OptionItem as B } from "./bundle.es14.js";
|
|
6
|
-
import { OptionsList as H } from "./bundle.es16.js";
|
|
1
|
+
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { useFroozeClosing as j } from "./bundle.es45.js";
|
|
3
|
+
import { Popover as q } from "./bundle.es10.js";
|
|
4
|
+
import { useState as V, useRef as f, useMemo as p } from "react";
|
|
7
5
|
import { Icon as d } from "./bundle.es33.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
6
|
+
import { attr as h, getActiveElementByAnotherElement as $, contains as B } from "@companix/utils-browser";
|
|
7
|
+
import { mergeRefs as X } from "react-merge-refs";
|
|
8
|
+
import { faXmark as G, faChevronDown as H } from "@companix/icons-solid";
|
|
9
|
+
import { matchPattern as J } from "@companix/utils-js";
|
|
10
|
+
import { SelectOptionsList as K } from "./bundle.es48.js";
|
|
11
|
+
import { SelectLoader as Q } from "./bundle.es49.js";
|
|
12
|
+
const ie = (g) => {
|
|
14
13
|
const {
|
|
15
14
|
options: r,
|
|
16
|
-
closeAfterSelect:
|
|
17
|
-
placeholder:
|
|
18
|
-
onChange:
|
|
19
|
-
emptyText:
|
|
20
|
-
readOnly:
|
|
21
|
-
size:
|
|
15
|
+
closeAfterSelect: v,
|
|
16
|
+
placeholder: x,
|
|
17
|
+
onChange: s,
|
|
18
|
+
emptyText: C = "Ничего не найдено",
|
|
19
|
+
readOnly: c,
|
|
20
|
+
size: N = "md",
|
|
22
21
|
value: n,
|
|
23
|
-
inputRef:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
inputRef: R,
|
|
23
|
+
minimalOptions: A,
|
|
24
|
+
isLoading: z,
|
|
25
|
+
disabled: m,
|
|
26
|
+
required: D
|
|
27
|
+
} = g, [a, P] = V(""), i = f(null), S = f(null), { popoverRef: l, froozePopoverPosition: b, handleAnimationEnd: E } = j(), k = p(() => {
|
|
28
28
|
const e = {};
|
|
29
29
|
return r.forEach((t) => {
|
|
30
30
|
e[t.value] = t;
|
|
31
31
|
}), e;
|
|
32
|
-
}, [r]),
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
if (
|
|
36
|
-
|
|
37
|
-
const t =
|
|
38
|
-
e.defaultPrevented ||
|
|
39
|
-
},
|
|
40
|
-
e.target !==
|
|
41
|
-
},
|
|
42
|
-
e.stopPropagation(),
|
|
32
|
+
}, [r]), y = (e) => n.includes(e) ? [...n] : [...n, e], O = (e) => n.filter((t) => e !== t), T = (e, t) => {
|
|
33
|
+
v ? (b(), s(e), t()) : s(e);
|
|
34
|
+
}, w = p(() => a.trim() ? r.filter(({ title: e }) => J(e, a)) : r, [a, r]), F = (e) => {
|
|
35
|
+
if (m) return;
|
|
36
|
+
l.current && l.current.getAttribute("data-state") === "open" && e.preventDefault();
|
|
37
|
+
const t = $(e.currentTarget);
|
|
38
|
+
e.defaultPrevented || B(e.currentTarget, t) || i.current && i.current.focus();
|
|
39
|
+
}, I = (e) => {
|
|
40
|
+
e.target !== i.current && e.preventDefault();
|
|
41
|
+
}, L = (e, t) => {
|
|
42
|
+
e.stopPropagation(), s(O(t));
|
|
43
43
|
};
|
|
44
44
|
return /* @__PURE__ */ o(
|
|
45
|
-
|
|
45
|
+
q,
|
|
46
46
|
{
|
|
47
47
|
minimal: !0,
|
|
48
|
-
ref:
|
|
48
|
+
ref: l,
|
|
49
49
|
sideOffset: 0,
|
|
50
50
|
matchTarget: "width",
|
|
51
51
|
onAnimationEnd: E,
|
|
52
52
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
53
53
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
54
|
-
content: ({ close: e }) =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
`option-item-${t}-${j}`
|
|
65
|
-
))
|
|
66
|
-
] }),
|
|
54
|
+
content: ({ close: e }) => z ? /* @__PURE__ */ o(Q, {}) : /* @__PURE__ */ o(
|
|
55
|
+
K,
|
|
56
|
+
{
|
|
57
|
+
isActive: (t) => n.includes(t),
|
|
58
|
+
options: w,
|
|
59
|
+
emptyText: C,
|
|
60
|
+
onSelect: (t) => T(y(t), e),
|
|
61
|
+
minimalOptions: A
|
|
62
|
+
}
|
|
63
|
+
),
|
|
67
64
|
children: /* @__PURE__ */ o(
|
|
68
65
|
"div",
|
|
69
66
|
{
|
|
70
67
|
className: "form",
|
|
71
|
-
onClick:
|
|
72
|
-
onMouseDown:
|
|
73
|
-
"data-size":
|
|
74
|
-
"data-required":
|
|
75
|
-
children: /* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
68
|
+
onClick: F,
|
|
69
|
+
onMouseDown: I,
|
|
70
|
+
"data-size": N,
|
|
71
|
+
"data-required": h(D),
|
|
72
|
+
children: /* @__PURE__ */ u("div", { className: "select-tags-container", children: [
|
|
73
|
+
/* @__PURE__ */ u("div", { className: "select-tags", children: [
|
|
77
74
|
n.length > 0 && /* @__PURE__ */ o(
|
|
78
75
|
"div",
|
|
79
76
|
{
|
|
80
77
|
className: "tag-container",
|
|
81
|
-
ref:
|
|
78
|
+
ref: S,
|
|
82
79
|
role: "listbox",
|
|
83
|
-
"data-readonly":
|
|
84
|
-
children: n.map((e, t) => /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */ o("span", { className: "tag-name", children:
|
|
86
|
-
/* @__PURE__ */ o("button", { className: "tag-close-button", onClick: (
|
|
80
|
+
"data-readonly": h(c),
|
|
81
|
+
children: n.map((e, t) => /* @__PURE__ */ u("div", { className: "tag", children: [
|
|
82
|
+
/* @__PURE__ */ o("span", { className: "tag-name", children: k[e].title }),
|
|
83
|
+
/* @__PURE__ */ o("button", { className: "tag-close-button", onClick: (M) => L(M, e), children: /* @__PURE__ */ o(d, { className: "tag-close-icon", icon: G, size: "xxxs" }) })
|
|
87
84
|
] }, `tag-option-${e}-${t}`))
|
|
88
85
|
}
|
|
89
86
|
),
|
|
90
|
-
(!
|
|
87
|
+
(!c || n.length === 0) && /* @__PURE__ */ o(
|
|
91
88
|
"input",
|
|
92
89
|
{
|
|
93
|
-
ref:
|
|
90
|
+
ref: X([R, i]),
|
|
94
91
|
type: "text",
|
|
95
92
|
autoCapitalize: "none",
|
|
96
93
|
autoComplete: "off",
|
|
97
94
|
autoCorrect: "off",
|
|
98
95
|
className: "form-input",
|
|
99
96
|
spellCheck: !1,
|
|
100
|
-
value:
|
|
101
|
-
disabled:
|
|
102
|
-
readOnly:
|
|
103
|
-
placeholder:
|
|
104
|
-
onChange: ({ target: e }) =>
|
|
97
|
+
value: a,
|
|
98
|
+
disabled: m,
|
|
99
|
+
readOnly: c,
|
|
100
|
+
placeholder: x,
|
|
101
|
+
onChange: ({ target: e }) => P(e.value)
|
|
105
102
|
}
|
|
106
103
|
)
|
|
107
104
|
] }),
|
|
108
|
-
/* @__PURE__ */ o(d, { className: "expand-icon", icon:
|
|
105
|
+
/* @__PURE__ */ o(d, { className: "expand-icon", icon: H, size: "xxxs" })
|
|
109
106
|
] })
|
|
110
107
|
}
|
|
111
108
|
)
|
|
@@ -113,5 +110,5 @@ const le = (x) => {
|
|
|
113
110
|
);
|
|
114
111
|
};
|
|
115
112
|
export {
|
|
116
|
-
|
|
113
|
+
ie as SelectTags
|
|
117
114
|
};
|
package/dist/bundle.es28.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { Popover as T } from "./bundle.es10.js";
|
|
3
3
|
import { Input as w } from "./bundle.es13.js";
|
|
4
4
|
import { useState as A, useRef as j } from "react";
|
|
5
|
-
import { Calendar as E } from "./bundle.
|
|
6
|
-
import { useDayDisableCheker as N } from "./bundle.
|
|
5
|
+
import { Calendar as E } from "./bundle.es55.js";
|
|
6
|
+
import { useDayDisableCheker as N } from "./bundle.es56.js";
|
|
7
7
|
import { getNum as h, formatTime as v } from "@companix/utils-js";
|
|
8
|
-
import { removeDigits as O } from "./bundle.
|
|
9
|
-
import { SelectRightElements as Y } from "./bundle.
|
|
8
|
+
import { removeDigits as O } from "./bundle.es57.js";
|
|
9
|
+
import { SelectRightElements as Y } from "./bundle.es58.js";
|
|
10
10
|
const i = {
|
|
11
11
|
char: "-",
|
|
12
12
|
toString: (e) => {
|
package/dist/bundle.es29.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as D, jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as M, useEffect as C } from "react";
|
|
3
3
|
import { Select as c } from "./bundle.es12.js";
|
|
4
|
-
import { createDateValidation as O, getMonthMaxDay as T } from "./bundle.
|
|
5
|
-
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.
|
|
4
|
+
import { createDateValidation as O, getMonthMaxDay as T } from "./bundle.es57.js";
|
|
5
|
+
import { defaultMin as j, defaultMax as N, useCalendarOptions as V } from "./bundle.es59.js";
|
|
6
6
|
const B = ({
|
|
7
7
|
min: o = j,
|
|
8
8
|
max: e = N,
|
package/dist/bundle.es32.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as _, useMemo as b, useState as P, useEffect as j } from "react";
|
|
3
3
|
import { getNum as v } from "@companix/utils-js";
|
|
4
|
-
import { getTimesOptions as D, getTimeValue as A, removeDigits as W, convertTimeToOption as q } from "./bundle.
|
|
5
|
-
import { SelectRightElements as w } from "./bundle.
|
|
4
|
+
import { getTimesOptions as D, getTimeValue as A, removeDigits as W, convertTimeToOption as q } from "./bundle.es57.js";
|
|
5
|
+
import { SelectRightElements as w } from "./bundle.es58.js";
|
|
6
6
|
import { Select as y } from "./bundle.es12.js";
|
|
7
7
|
import { Input as z } from "./bundle.es13.js";
|
|
8
8
|
const r = {
|
package/dist/bundle.es35.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useEffect as c, createContext as f, useContext as w } from "react";
|
|
3
|
-
import { getColorScheme as v, updateDOM as m } from "./bundle.
|
|
3
|
+
import { getColorScheme as v, updateDOM as m } from "./bundle.es60.js";
|
|
4
4
|
const i = f({
|
|
5
5
|
setColorScheme: () => {
|
|
6
6
|
}
|
package/dist/bundle.es38.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { hash as m } from "@companix/utils-js";
|
|
3
3
|
import { useRef as n, useMemo as s } from "react";
|
|
4
|
-
import { Viewport as p } from "./bundle.
|
|
4
|
+
import { Viewport as p } from "./bundle.es61.js";
|
|
5
5
|
const a = (t = {}) => {
|
|
6
6
|
const e = {
|
|
7
7
|
emit: (r) => {
|
package/dist/bundle.es39.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { hash as r } from "@companix/utils-js";
|
|
3
|
-
import { Viewport as a } from "./bundle.
|
|
3
|
+
import { Viewport as a } from "./bundle.es62.js";
|
|
4
4
|
import { useRef as c, useMemo as h } from "react";
|
|
5
5
|
const m = (i = {}) => {
|
|
6
6
|
const o = {
|
package/dist/bundle.es40.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import * as t from "@radix-ui/react-toast";
|
|
3
3
|
import { attr as T } from "@companix/utils-browser";
|
|
4
4
|
import { useState as d, useRef as b, useEffect as j, useLayoutEffect as E } from "react";
|
|
5
|
-
import { RemoveListener as I } from "./bundle.
|
|
5
|
+
import { RemoveListener as I } from "./bundle.es52.js";
|
|
6
6
|
const m = (o) => {
|
|
7
7
|
const [r, u] = d(!0), [p, f] = d(!1), s = b(null), {
|
|
8
8
|
appearance: C = "neutral",
|
package/dist/bundle.es46.js
CHANGED
|
@@ -4,7 +4,7 @@ import { attr as l } from "@companix/utils-browser";
|
|
|
4
4
|
import { forwardRef as y, useRef as S, useCallback as T } from "react";
|
|
5
5
|
import { VisuallyHidden as j } from "@radix-ui/react-visually-hidden";
|
|
6
6
|
import { mergeRefs as w } from "react-merge-refs";
|
|
7
|
-
import { SelectRightElements as z } from "./bundle.
|
|
7
|
+
import { SelectRightElements as z } from "./bundle.es58.js";
|
|
8
8
|
const V = y(
|
|
9
9
|
({
|
|
10
10
|
required: a,
|
package/dist/bundle.es48.js
CHANGED
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { OptionItem as
|
|
4
|
-
import { OptionsList as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { faPlus as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as x, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as O } from "react";
|
|
3
|
+
import { OptionItem as n } from "./bundle.es14.js";
|
|
4
|
+
import { OptionsList as u } from "./bundle.es16.js";
|
|
5
|
+
import { Icon as v } from "./bundle.es33.js";
|
|
6
|
+
import { faPlus as h } from "@companix/icons-solid";
|
|
7
|
+
const L = (s) => {
|
|
8
8
|
const {
|
|
9
|
-
|
|
10
|
-
onOpened:
|
|
11
|
-
addOption:
|
|
12
|
-
scrollboxRef:
|
|
9
|
+
isActive: m,
|
|
10
|
+
onOpened: c,
|
|
11
|
+
addOption: t,
|
|
12
|
+
scrollboxRef: l,
|
|
13
13
|
optionsWrapperRef: p,
|
|
14
|
-
options:
|
|
15
|
-
onSelect:
|
|
16
|
-
minimalOptions: a
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
options: i,
|
|
15
|
+
onSelect: r,
|
|
16
|
+
minimalOptions: a,
|
|
17
|
+
emptyText: f
|
|
18
|
+
} = s;
|
|
19
|
+
return O(() => {
|
|
20
|
+
c?.();
|
|
21
|
+
}, []), /* @__PURE__ */ x(u, { scrollboxRef: l, optionsWrapperRef: p, maxHeight: 300, children: [
|
|
22
|
+
t && /* @__PURE__ */ e(
|
|
23
|
+
n,
|
|
23
24
|
{
|
|
24
25
|
className: "select-add-option",
|
|
25
|
-
icon: /* @__PURE__ */
|
|
26
|
-
title:
|
|
27
|
-
onClick:
|
|
26
|
+
icon: /* @__PURE__ */ e(v, { icon: h }),
|
|
27
|
+
title: t.text,
|
|
28
|
+
onClick: t.onClick
|
|
28
29
|
}
|
|
29
30
|
),
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
i.length === 0 && !t && /* @__PURE__ */ e("div", { className: "select-tags-empty", children: f }),
|
|
32
|
+
i.map((o, d) => /* @__PURE__ */ e(
|
|
33
|
+
n,
|
|
32
34
|
{
|
|
33
|
-
active: m
|
|
34
|
-
onClick: () =>
|
|
35
|
+
active: m(o.value),
|
|
36
|
+
onClick: () => r?.(o.value),
|
|
35
37
|
minimal: a,
|
|
36
|
-
...
|
|
38
|
+
...o
|
|
37
39
|
},
|
|
38
|
-
`select-option-${
|
|
40
|
+
`select-option-${d}`
|
|
39
41
|
))
|
|
40
42
|
] });
|
|
41
43
|
};
|
|
42
44
|
export {
|
|
43
|
-
|
|
45
|
+
L as SelectOptionsList
|
|
44
46
|
};
|
package/dist/bundle.es49.js
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const I = m(
|
|
5
|
-
({ mask: r, maskChar: f = "_", onChange: n, onValueChange: o, ...a }, e) => {
|
|
6
|
-
const p = i(
|
|
7
|
-
(t) => {
|
|
8
|
-
n?.(t), o?.(t.target.value, t.target);
|
|
9
|
-
},
|
|
10
|
-
[n, o]
|
|
11
|
-
);
|
|
12
|
-
return r ? /* @__PURE__ */ u(
|
|
13
|
-
c,
|
|
14
|
-
{
|
|
15
|
-
inputRef: e,
|
|
16
|
-
mask: r,
|
|
17
|
-
maskChar: f,
|
|
18
|
-
onChange: p,
|
|
19
|
-
...a
|
|
20
|
-
}
|
|
21
|
-
) : /* @__PURE__ */ u("input", { ref: e, ...a, onChange: p });
|
|
22
|
-
}
|
|
23
|
-
);
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Spinner as r } from "./bundle.es6.js";
|
|
3
|
+
const t = () => /* @__PURE__ */ e("div", { className: "select-popover-loading", children: /* @__PURE__ */ e(r, { size: 24 }) });
|
|
24
4
|
export {
|
|
25
|
-
|
|
5
|
+
t as SelectLoader
|
|
26
6
|
};
|