@reportportal/ui-kit 0.0.1-alpha.5 → 0.0.1-alpha.50
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/LICENSE +201 -201
- package/README.md +252 -3
- package/dist/arrowUp-4a5caee7.js +6 -0
- package/dist/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +7 -0
- package/dist/bubblesLoader-a7e709d4.js +17 -0
- package/dist/bubblesLoader.js +7 -0
- package/dist/button-33c88abf.js +62 -0
- package/dist/button.js +1 -1
- package/dist/calendar-f154eb78.js +6 -0
- package/dist/checkbox-9a6c7ce1.js +73 -0
- package/dist/checkbox.js +2 -2
- package/dist/close-4b33d7c1.js +5 -0
- package/dist/common/constants/keyCodes.d.ts +24 -0
- package/dist/common/types.d.ts +3 -0
- package/dist/components/baseIconButton/baseIconButton.d.ts +8 -0
- package/dist/components/baseIconButton/index.d.ts +4 -0
- package/dist/components/bubblesLoader/bubblesLoader.d.ts +7 -0
- package/dist/components/bubblesLoader/index.d.ts +3 -0
- package/dist/components/button/button.d.ts +0 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -1
- package/dist/components/datePicker/datePicker.d.ts +24 -0
- package/dist/components/datePicker/header/datePickerHeader.d.ts +15 -0
- package/dist/components/datePicker/header/index.d.ts +3 -0
- package/dist/components/datePicker/index.d.ts +3 -0
- package/dist/components/datePicker/utils.d.ts +3 -0
- package/dist/components/dropdown/constants.d.ts +7 -0
- package/dist/components/dropdown/dropdown.d.ts +28 -0
- package/dist/components/dropdown/dropdownOption/dropdownOption.d.ts +3 -0
- package/dist/components/dropdown/dropdownOption/index.d.ts +3 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/types.d.ts +22 -0
- package/dist/components/dropdown/utils.d.ts +4 -0
- package/dist/components/fieldNumber/constants.d.ts +4 -0
- package/dist/components/fieldNumber/fieldNumber.d.ts +18 -0
- package/dist/components/fieldNumber/index.d.ts +3 -0
- package/dist/components/fieldText/fieldText.d.ts +10 -3
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +15 -0
- package/dist/components/fieldTextFlex/index.d.ts +3 -0
- package/dist/components/icons/index.d.ts +22 -0
- package/dist/components/index.d.ts +15 -0
- package/dist/components/maxValueDisplay/index.d.ts +3 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +7 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/modal/modal.d.ts +6 -2
- package/dist/components/modal/modalContent/modalContent.d.ts +1 -0
- package/dist/components/modal/modalHeader/modalHeader.d.ts +1 -1
- package/dist/components/pagination/index.d.ts +4 -0
- package/dist/components/pagination/itemsCounter/index.d.ts +1 -0
- package/dist/components/pagination/itemsCounter/itemCounter.d.ts +9 -0
- package/dist/components/pagination/pageControls/activePage/activePage.d.ts +12 -0
- package/dist/components/pagination/pageControls/activePage/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/activePage/pageSelector/pageSelector.d.ts +10 -0
- package/dist/components/pagination/pageControls/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageControls.d.ts +16 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/bar.d.ts +11 -0
- package/dist/components/pagination/pageControls/pageNavigator/bar/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/index.d.ts +1 -0
- package/dist/components/pagination/pageControls/pageNavigator/pageNavigator.d.ts +11 -0
- package/dist/components/pagination/pageSizeControl/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/pageSizeControl.d.ts +10 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/index.d.ts +1 -0
- package/dist/components/pagination/pageSizeControl/sizeSelector/sizeSelector.d.ts +8 -0
- package/dist/components/pagination/pagination.d.ts +22 -0
- package/dist/components/pagination/types.d.ts +2 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/popover.d.ts +18 -0
- package/dist/components/radio/index.d.ts +4 -0
- package/dist/components/radio/radio.d.ts +16 -0
- package/dist/components/radio/radioGroup.d.ts +8 -0
- package/dist/components/spinLoader/index.d.ts +3 -0
- package/dist/components/spinLoader/spinLoader.d.ts +7 -0
- package/dist/components/systemAlert/index.d.ts +1 -0
- package/dist/components/systemAlert/systemAlert.d.ts +3 -0
- package/dist/components/systemAlert/types.d.ts +15 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/table.d.ts +3 -0
- package/dist/components/table/types.d.ts +53 -0
- package/dist/components/table/utils.d.ts +3 -0
- package/dist/components/themeProvider/themeProvider.d.ts +2 -1
- package/dist/components/toggle/index.d.ts +3 -0
- package/dist/components/toggle/toggle.d.ts +11 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/tooltip.d.ts +19 -0
- package/dist/datePicker-12aff50c.js +193 -0
- package/dist/datePicker.js +24 -0
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-6edea86c.js +263 -0
- package/dist/dropdown.js +16 -0
- package/dist/error-4f493850.js +7 -0
- package/dist/fieldNumber-d517a095.js +125 -0
- package/dist/fieldNumber.js +11 -0
- package/dist/fieldText-43787c48.js +160 -0
- package/dist/fieldText.js +5 -1
- package/dist/fieldTextFlex-23d6ecce.js +78 -0
- package/dist/fieldTextFlex.js +9 -0
- package/dist/icons.js +34 -0
- package/dist/index.js +77 -12
- package/dist/keyCodes-f63c0e11.js +4 -0
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/minus-660ea0d6.js +6 -0
- package/dist/modal.js +111 -102
- package/dist/openEye-7b9cf080.js +7 -0
- package/dist/pagination-f3d85a63.js +345 -0
- package/dist/pagination.js +18 -0
- package/dist/popover.js +95 -0
- package/dist/prevChapter-ebd5a3a7.js +6 -0
- package/dist/radio-bccc84f2.js +76 -0
- package/dist/radio.js +9 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/systemAlert.js +63 -0
- package/dist/systemMessage-1ced6079.js +30 -0
- package/dist/systemMessage.js +1 -1
- package/dist/table-32fc8c70.js +144 -0
- package/dist/table.js +11 -0
- package/dist/themeProvider-46c2be7b.js +23 -0
- package/dist/themeProvider.js +4 -3
- package/dist/toggle-1a3aacb5.js +59 -0
- package/dist/toggle.js +9 -0
- package/dist/tooltip.js +96 -0
- package/dist/useOnClickOutside-c332f7d3.js +16 -0
- package/package.json +54 -15
- package/dist/button-d4944dbc.js +0 -64
- package/dist/checkbox-7736509c.js +0 -70
- package/dist/common/constants/key-codes.d.ts +0 -5
- package/dist/fieldText-9621b0b7.js +0 -99
- package/dist/key-codes-abbe7725.js +0 -4
- package/dist/systemMessage-62c3133d.js +0 -30
- package/dist/themeProvider-5800417e.js +0 -19
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsx as n, jsxs as s, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Q, useRef as W, useState as M } from "react";
|
|
3
|
+
import { c as X } from "./bind-06a7ff84.js";
|
|
4
|
+
import { b as Y, a as Z, S as q } from "./openEye-7b9cf080.js";
|
|
5
|
+
import { B as nn } from "./button-33c88abf.js";
|
|
6
|
+
import { S as en } from "./spinLoader-c4a53718.js";
|
|
7
|
+
import { M as an } from "./maxValueDisplay-9be01a75.js";
|
|
8
|
+
const tn = "_collapsed_11ank_13", sn = "_label_11ank_21", on = "_asterisk_11ank_30", cn = "_disabled_11ank_36", rn = "_field_11ank_41", ln = "_placeholder_11ank_62", _n = "_error_11ank_69", dn = "_touched_11ank_69", pn = "_input_11ank_84", un = "_icon_11ank_1", mn = "_text_11ank_190", fn = {
|
|
9
|
+
"icon-container": "_icon-container_11ank_1",
|
|
10
|
+
"icon-container-end": "_icon-container-end_11ank_1",
|
|
11
|
+
"icon-container-start": "_icon-container-start_11ank_1",
|
|
12
|
+
collapsed: tn,
|
|
13
|
+
label: sn,
|
|
14
|
+
asterisk: on,
|
|
15
|
+
disabled: cn,
|
|
16
|
+
field: rn,
|
|
17
|
+
"default-width": "_default-width_11ank_53",
|
|
18
|
+
placeholder: ln,
|
|
19
|
+
error: _n,
|
|
20
|
+
touched: dn,
|
|
21
|
+
"input-container": "_input-container_11ank_84",
|
|
22
|
+
"type-password": "_type-password_11ank_88",
|
|
23
|
+
input: pn,
|
|
24
|
+
"eye-icon": "_eye-icon_11ank_92",
|
|
25
|
+
icon: un,
|
|
26
|
+
"start-icon": "_start-icon_11ank_146",
|
|
27
|
+
"clear-icon": "_clear-icon_11ank_147",
|
|
28
|
+
"additional-content": "_additional-content_11ank_183",
|
|
29
|
+
text: mn,
|
|
30
|
+
"max-length-display": "_max-length-display_11ank_191",
|
|
31
|
+
"error-text": "_error-text_11ank_208",
|
|
32
|
+
"help-text": "_help-text_11ank_212"
|
|
33
|
+
}, e = X.bind(fn), Sn = Q(
|
|
34
|
+
({
|
|
35
|
+
value: t = "",
|
|
36
|
+
className: v,
|
|
37
|
+
classNameHelpText: B,
|
|
38
|
+
error: i,
|
|
39
|
+
placeholder: u,
|
|
40
|
+
disabled: o = !1,
|
|
41
|
+
onChange: C,
|
|
42
|
+
touched: m = !1,
|
|
43
|
+
title: D,
|
|
44
|
+
label: l,
|
|
45
|
+
helpText: _,
|
|
46
|
+
defaultWidth: T = !0,
|
|
47
|
+
startIcon: f,
|
|
48
|
+
endIcon: h,
|
|
49
|
+
clearable: V = !1,
|
|
50
|
+
onClear: k,
|
|
51
|
+
isRequired: x = !1,
|
|
52
|
+
hasDoubleMessage: P = !1,
|
|
53
|
+
type: c = "text",
|
|
54
|
+
displayError: R = !0,
|
|
55
|
+
collapsible: j = !1,
|
|
56
|
+
loading: H = !1,
|
|
57
|
+
maxLengthDisplay: L,
|
|
58
|
+
onFocus: O = () => {
|
|
59
|
+
},
|
|
60
|
+
onBlur: U = () => {
|
|
61
|
+
},
|
|
62
|
+
...$
|
|
63
|
+
}, z) => {
|
|
64
|
+
const A = W(null), d = z || A, [N, w] = M(!1), [y, g] = M(!1), G = (a) => {
|
|
65
|
+
w(!0), O(a);
|
|
66
|
+
}, I = (a) => {
|
|
67
|
+
w(!1), U(a);
|
|
68
|
+
}, J = () => {
|
|
69
|
+
var a;
|
|
70
|
+
k && (k(t), (a = d.current) == null || a.focus());
|
|
71
|
+
}, S = R && i && m, b = /* @__PURE__ */ n("span", { className: e("text", "help-text", B), children: _ }), K = () => c !== "password" ? c : y ? "text" : "password", F = (a) => {
|
|
72
|
+
a.preventDefault(), g(!0);
|
|
73
|
+
}, r = (a) => {
|
|
74
|
+
a.preventDefault(), g(!1);
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ s(E, { children: [
|
|
77
|
+
l && /* @__PURE__ */ s("span", { className: e("label", { disabled: o }), children: [
|
|
78
|
+
l,
|
|
79
|
+
x && /* @__PURE__ */ n("span", { className: e("asterisk"), children: "*" })
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ s(
|
|
82
|
+
"div",
|
|
83
|
+
{
|
|
84
|
+
className: e("field", v, {
|
|
85
|
+
error: i,
|
|
86
|
+
touched: m,
|
|
87
|
+
disabled: o,
|
|
88
|
+
"default-width": T,
|
|
89
|
+
collapsed: j && !N && !t
|
|
90
|
+
}),
|
|
91
|
+
title: D,
|
|
92
|
+
children: [
|
|
93
|
+
H ? /* @__PURE__ */ n(en, {}) : f && /* @__PURE__ */ n(
|
|
94
|
+
"span",
|
|
95
|
+
{
|
|
96
|
+
className: e("icon-container-start"),
|
|
97
|
+
onClick: () => {
|
|
98
|
+
var p;
|
|
99
|
+
(p = d.current) == null || p.focus();
|
|
100
|
+
},
|
|
101
|
+
children: /* @__PURE__ */ n("span", { className: e("icon", { "start-icon": !N }), children: f })
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ s("span", { className: e("input-container", `type-${c}`), children: [
|
|
105
|
+
/* @__PURE__ */ n(
|
|
106
|
+
"input",
|
|
107
|
+
{
|
|
108
|
+
ref: d,
|
|
109
|
+
type: K(),
|
|
110
|
+
className: e("input"),
|
|
111
|
+
value: t,
|
|
112
|
+
disabled: o,
|
|
113
|
+
onChange: C,
|
|
114
|
+
onFocus: G,
|
|
115
|
+
onBlur: I,
|
|
116
|
+
...$
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
c === "password" && t && /* @__PURE__ */ n(
|
|
120
|
+
nn,
|
|
121
|
+
{
|
|
122
|
+
icon: y ? /* @__PURE__ */ n(Y, {}) : /* @__PURE__ */ n(Z, {}),
|
|
123
|
+
variant: "text",
|
|
124
|
+
className: e("eye-icon"),
|
|
125
|
+
onMouseDown: F,
|
|
126
|
+
onMouseLeave: r,
|
|
127
|
+
onMouseUp: r,
|
|
128
|
+
onTouchStart: F,
|
|
129
|
+
onTouchEnd: r,
|
|
130
|
+
onTouchCancel: r
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
u && !t && /* @__PURE__ */ s("span", { className: e("placeholder"), children: [
|
|
134
|
+
u,
|
|
135
|
+
x && !l && /* @__PURE__ */ n("span", { className: e("asterisk") })
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ n(
|
|
139
|
+
an,
|
|
140
|
+
{
|
|
141
|
+
className: e("max-length-display"),
|
|
142
|
+
value: t.length,
|
|
143
|
+
maxValue: L
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
h && /* @__PURE__ */ n("span", { className: e("icon-container-end"), children: /* @__PURE__ */ n("span", { className: e("icon"), children: h }) }),
|
|
147
|
+
V && t.length > 0 && /* @__PURE__ */ n("span", { className: e("icon-container-end"), children: /* @__PURE__ */ n("button", { type: "button", className: e("clear-icon", { disabled: o }), onClick: J, children: /* @__PURE__ */ n(q, {}) }) })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
(S || _) && /* @__PURE__ */ n("div", { className: e("additional-content", { disabled: o }), children: S ? /* @__PURE__ */ s(E, { children: [
|
|
152
|
+
/* @__PURE__ */ n("span", { className: e("text", "error-text"), children: i }),
|
|
153
|
+
P && b
|
|
154
|
+
] }) : _ && b })
|
|
155
|
+
] });
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
export {
|
|
159
|
+
Sn as F
|
|
160
|
+
};
|
package/dist/fieldText.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { F as o } from "./fieldText-
|
|
1
|
+
import { F as o } from "./fieldText-43787c48.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "./bind-06a7ff84.js";
|
|
5
|
+
import "./openEye-7b9cf080.js";
|
|
6
|
+
import "./button-33c88abf.js";
|
|
7
|
+
import "./spinLoader-c4a53718.js";
|
|
8
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
5
9
|
export {
|
|
6
10
|
o as FieldText,
|
|
7
11
|
o as default
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsxs as d, Fragment as b, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as F } from "./bind-06a7ff84.js";
|
|
3
|
+
import { forwardRef as H, useId as I } from "react";
|
|
4
|
+
import { M as E } from "./maxValueDisplay-9be01a75.js";
|
|
5
|
+
const R = "_error_1slzk_19", j = "_touched_1slzk_19", D = "_label_1slzk_33", M = "_disabled_1slzk_71", O = {
|
|
6
|
+
"text-area": "_text-area_1slzk_1",
|
|
7
|
+
error: R,
|
|
8
|
+
touched: j,
|
|
9
|
+
"max-length-display": "_max-length-display_1slzk_29",
|
|
10
|
+
label: D,
|
|
11
|
+
"additional-content": "_additional-content_1slzk_42",
|
|
12
|
+
"error-text": "_error-text_1slzk_42",
|
|
13
|
+
"help-text": "_help-text_1slzk_50",
|
|
14
|
+
disabled: M
|
|
15
|
+
}, t = F.bind(O), V = 72, $ = 2, q = H(
|
|
16
|
+
({
|
|
17
|
+
value: a = "",
|
|
18
|
+
readonly: x = !1,
|
|
19
|
+
error: l = "",
|
|
20
|
+
placeholder: h = "",
|
|
21
|
+
disabled: s = !1,
|
|
22
|
+
touched: n = !1,
|
|
23
|
+
className: m = "",
|
|
24
|
+
label: c = "",
|
|
25
|
+
helpText: r = "",
|
|
26
|
+
maxLengthDisplay: p,
|
|
27
|
+
onChange: g,
|
|
28
|
+
onFocus: z,
|
|
29
|
+
onBlur: f,
|
|
30
|
+
onKeyUp: k,
|
|
31
|
+
...y
|
|
32
|
+
}, N) => {
|
|
33
|
+
const i = I(), _ = l && n, u = (o) => {
|
|
34
|
+
o.target.style.height = `${V}px`, o.target.style.height = `${o.target.scrollHeight + $}px`;
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ d(b, { children: [
|
|
37
|
+
c && /* @__PURE__ */ e("label", { htmlFor: i, className: t("label", { disabled: s }), children: c }),
|
|
38
|
+
/* @__PURE__ */ e(
|
|
39
|
+
"textarea",
|
|
40
|
+
{
|
|
41
|
+
id: i,
|
|
42
|
+
ref: N,
|
|
43
|
+
className: t("text-area", m, {
|
|
44
|
+
disabled: s,
|
|
45
|
+
error: l,
|
|
46
|
+
touched: n
|
|
47
|
+
}),
|
|
48
|
+
value: a,
|
|
49
|
+
placeholder: h,
|
|
50
|
+
disabled: s,
|
|
51
|
+
readOnly: x,
|
|
52
|
+
onChange: g,
|
|
53
|
+
onFocus: z,
|
|
54
|
+
onBlur: f,
|
|
55
|
+
onKeyUp: k,
|
|
56
|
+
onInput: u,
|
|
57
|
+
...y,
|
|
58
|
+
children: a
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ e(
|
|
62
|
+
E,
|
|
63
|
+
{
|
|
64
|
+
className: t("max-length-display"),
|
|
65
|
+
value: a.length,
|
|
66
|
+
maxValue: p
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
(_ || r) && /* @__PURE__ */ d("div", { className: t("additional-content", { disabled: s }), children: [
|
|
70
|
+
_ && /* @__PURE__ */ e("span", { className: t("error-text"), children: l }),
|
|
71
|
+
r && /* @__PURE__ */ e("span", { className: t("help-text"), children: r })
|
|
72
|
+
] })
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
export {
|
|
77
|
+
q as F
|
|
78
|
+
};
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { S as i, a as w, b as L } from "./openEye-7b9cf080.js";
|
|
2
|
+
import { S as h } from "./close-4b33d7c1.js";
|
|
3
|
+
import { a as v, S as g } from "./minus-660ea0d6.js";
|
|
4
|
+
import * as e from "react";
|
|
5
|
+
import { S as f } from "./dropdown-0260bb66.js";
|
|
6
|
+
import { a as I, S as E } from "./prevChapter-ebd5a3a7.js";
|
|
7
|
+
import { S, a as B } from "./arrowUp-4a5caee7.js";
|
|
8
|
+
import { S as A, a as V } from "./calendar-f154eb78.js";
|
|
9
|
+
import { b as Z, S as F, a as R } from "./error-4f493850.js";
|
|
10
|
+
const t = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { d: "M9.80051 6.3661C9.95672 6.20989 10.21 6.20989 10.3662 6.3661L10.6338 6.63375C10.7901 6.78996 10.7901 7.04323 10.6338 7.19944L8.83331 8.99996L10.6338 10.8005C10.79 10.9567 10.79 11.2099 10.6338 11.3662L10.3662 11.6338C10.21 11.79 9.95669 11.79 9.80048 11.6338L7.99998 9.8333L6.19953 11.6338C6.04332 11.79 5.79005 11.79 5.63384 11.6338L5.36619 11.3661C5.20998 11.2099 5.20998 10.9566 5.36619 10.8004L7.16665 8.99996L5.36617 7.19949C5.20996 7.04328 5.20996 6.79001 5.36617 6.6338L5.63382 6.36615C5.79003 6.20994 6.04329 6.20994 6.1995 6.36615L7.99998 8.16663L9.80051 6.3661Z", fill: "#A2AAB5" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.99878 3V2C4.99878 1.44772 5.44649 1 5.99878 1H9.99878C10.5511 1 10.9988 1.44772 10.9988 2V3H14.5C14.7761 3 15 3.22386 15 3.5C15 3.77614 14.7761 4 14.5 4H13.4167L12.6146 13.6246C12.5498 14.402 11.8999 15 11.1198 15H4.8802C4.10007 15 3.45017 14.402 3.38538 13.6246L2.58333 4H1.5C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3H4.99878ZM5.99878 2H9.99878V3H5.99878V2ZM3.5868 4L4.38193 13.5415C4.40352 13.8007 4.62016 14 4.8802 14H11.1198C11.3798 14 11.5965 13.8007 11.6181 13.5415L12.4132 4H3.5868Z", fill: "#A2AAB5" })), l = (C) => /* @__PURE__ */ e.createElement("svg", { width: 14, height: 3, viewBox: "0 0 14 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.30811 2.47803C1.72868 2.47803 2.05339 2.36206 2.28223 2.13013C2.51107 1.89819 2.62549 1.60596 2.62549 1.25342C2.62549 0.894694 2.51107 0.596273 2.28223 0.358154C2.05339 0.120036 1.72868 0.000976562 1.30811 0.000976562C0.893717 0.000976562 0.572103 0.120036 0.343262 0.358154C0.114421 0.596273 0 0.894694 0 1.25342C0 1.61214 0.117513 1.90592 0.352539 2.13477C0.587565 2.36361 0.906087 2.47803 1.30811 2.47803ZM6.61475 2.47803C7.03532 2.47803 7.36003 2.36206 7.58887 2.13013C7.81771 1.89819 7.93213 1.60596 7.93213 1.25342C7.93213 0.894694 7.81771 0.596273 7.58887 0.358154C7.36003 0.120036 7.03532 0.000976562 6.61475 0.000976562C6.20036 0.000976562 5.87874 0.120036 5.6499 0.358154C5.42106 0.596273 5.30664 0.894694 5.30664 1.25342C5.30664 1.61214 5.42415 1.90592 5.65918 2.13477C5.89421 2.36361 6.21273 2.47803 6.61475 2.47803ZM12.8955 2.13013C12.6667 2.36206 12.342 2.47803 11.9214 2.47803C11.5194 2.47803 11.2008 2.36361 10.9658 2.13477C10.7308 1.90592 10.6133 1.61214 10.6133 1.25342C10.6133 0.894694 10.7277 0.596273 10.9565 0.358154C11.1854 0.120036 11.507 0.000976562 11.9214 0.000976562C12.342 0.000976562 12.6667 0.120036 12.8955 0.358154C13.1243 0.596273 13.2388 0.894694 13.2388 1.25342C13.2388 1.60596 13.1243 1.89819 12.8955 2.13013Z", fill: "#A2AAB5" })), o = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13 7C13 8.47663 12.4666 9.82867 11.5819 10.874L12.3288 11.6208C12.663 11.5307 13.0348 11.6168 13.2971 11.8792L14.7113 13.2934C15.1019 13.6839 15.1019 14.3171 14.7113 14.7076C14.3208 15.0981 13.6877 15.0981 13.2971 14.7076L11.8829 13.2934C11.622 13.0325 11.5354 12.6632 11.6231 12.3304L10.8743 11.5816C9.829 12.4665 8.47681 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM2.00071 7C2.00071 9.76103 4.23897 11.9993 7 11.9993C9.76103 11.9993 11.9993 9.76103 11.9993 7C11.9993 4.23897 9.76103 2.00071 7 2.00071C4.23897 2.00071 2.00071 4.23897 2.00071 7Z", fill: "#CFCFCF" })), n = (C) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 15, height: 14, viewBox: "0 0 15 14", fill: "none", ...C }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.2817 1.08596L8.58993 6.67232C8.43153 6.85569 8.33732 7.08554 8.33732 7.33504V12.9126L6.66254 12V7.69689C6.66254 7.22695 6.49186 6.76969 6.17611 6.39374L1.71829 1.08596L13.2817 1.08596ZM13.2817 0H1.71829C0.716181 0 0.144162 1.02163 0.745424 1.73753L5.20324 7.04531C5.36112 7.23329 5.44646 7.46192 5.44646 7.69689V12C5.44646 12.4113 5.7067 12.7874 6.11869 12.9713L7.79347 13.884C8.60204 14.245 9.5534 13.7199 9.5534 12.9126V7.33504L14.2546 1.73753C14.8558 1.02163 14.2838 0 13.2817 0Z", fill: "#A2AAB5" })), a = (C) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", ...C }, /* @__PURE__ */ e.createElement("path", { d: "M6.82255 13.5148L6.84059 13.5228L6.85794 13.5323L8.51335 14.4344C8.76171 14.5391 9.02975 14.512 9.23505 14.3987C9.44387 14.2834 9.5534 14.103 9.5534 13.9126V8.33504V8.15292L9.67052 8.01347L14.3717 2.41597C14.3717 2.41597 14.3717 2.41597 14.3717 2.41597C14.5301 2.22732 14.5313 2.01991 14.4331 1.84458C14.3308 1.66184 14.1067 1.5 13.7817 1.5H2.21829C1.89331 1.5 1.66918 1.66184 1.56686 1.84457C1.46869 2.01991 1.46986 2.22732 1.6283 2.41597L6.08612 7.72374C6.31597 7.99742 6.44646 8.3387 6.44646 8.69689V13C6.44646 13.1908 6.56846 13.4013 6.82255 13.5148Z", fill: "#009DBB", stroke: "#009DBB" })), r = (C) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C }, /* @__PURE__ */ e.createElement("path", { d: "M8.35343 1.64645C8.23928 1.5323 8.08367 1.48488 7.93508 1.50419C7.84679 1.51567 7.76098 1.5507 7.68781 1.60929C7.67171 1.62216 7.65643 1.636 7.64204 1.65073L4.64633 4.64645C4.45106 4.84171 4.45106 5.15829 4.64633 5.35355C4.84159 5.54882 5.15817 5.54882 5.35343 5.35355L7.49979 3.2072L7.49979 9.99996C7.49979 10.2761 7.72365 10.5 7.99979 10.5C8.27593 10.5 8.49979 10.2761 8.49979 9.99996L8.49979 3.20701L10.6463 5.35355C10.8416 5.54881 11.1582 5.54881 11.3534 5.35355C11.5487 5.15829 11.5487 4.84171 11.3534 4.64644L8.35343 1.64645Z", fill: "#00829B" }), /* @__PURE__ */ e.createElement("path", { d: "M2 9.99996C2 9.72381 1.77614 9.49996 1.5 9.49996C1.22386 9.49996 1 9.72381 1 9.99996V13.1666C1 13.6529 1.19315 14.1192 1.53697 14.463C1.88079 14.8068 2.3471 15 2.83333 15H13.1667C13.6529 15 14.1192 14.8068 14.463 14.463C14.8068 14.1192 15 13.6529 15 13.1666V9.99996C15 9.72381 14.7761 9.49996 14.5 9.49996C14.2239 9.49996 14 9.72381 14 9.99996V13.1666C14 13.3876 13.9122 13.5996 13.7559 13.7559C13.5996 13.9122 13.3877 14 13.1667 14H2.83333C2.61232 14 2.40036 13.9122 2.24408 13.7559C2.0878 13.5996 2 13.3876 2 13.1666V9.99996Z", fill: "#00829B" }));
|
|
11
|
+
export {
|
|
12
|
+
S as ArrowDownIcon,
|
|
13
|
+
B as ArrowUpIcon,
|
|
14
|
+
A as CalendarArrowIcon,
|
|
15
|
+
V as CalendarIcon,
|
|
16
|
+
i as ClearIcon,
|
|
17
|
+
w as CloseEyeIcon,
|
|
18
|
+
h as CloseIcon,
|
|
19
|
+
t as DeleteIcon,
|
|
20
|
+
f as DropdownIcon,
|
|
21
|
+
Z as ErrorIcon,
|
|
22
|
+
r as ExportIcon,
|
|
23
|
+
a as FilterFilledIcon,
|
|
24
|
+
n as FilterOutlineIcon,
|
|
25
|
+
F as InfoIcon,
|
|
26
|
+
l as MeatballMenuIcon,
|
|
27
|
+
v as MinusIcon,
|
|
28
|
+
L as OpenEyeIcon,
|
|
29
|
+
g as PlusIcon,
|
|
30
|
+
I as PrevChapterIcon,
|
|
31
|
+
E as PrevPageIcon,
|
|
32
|
+
o as SearchIcon,
|
|
33
|
+
R as SuccessIcon
|
|
34
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,85 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { B as I } from "./button-33c88abf.js";
|
|
2
|
+
import { B as d } from "./baseIconButton-251479f7.js";
|
|
3
|
+
import { C as u } from "./checkbox-9a6c7ce1.js";
|
|
4
|
+
import { S as T } from "./systemMessage-1ced6079.js";
|
|
5
|
+
import { F as C } from "./fieldText-43787c48.js";
|
|
6
|
+
import { T as D } from "./themeProvider-46c2be7b.js";
|
|
7
|
+
import { Modal as g } from "./modal.js";
|
|
8
|
+
import { D as h } from "./dropdown-6edea86c.js";
|
|
9
|
+
import { T as y } from "./toggle-1a3aacb5.js";
|
|
10
|
+
import { F as E } from "./fieldNumber-d517a095.js";
|
|
11
|
+
import { B as L } from "./bubblesLoader-a7e709d4.js";
|
|
12
|
+
import { S as R } from "./spinLoader-c4a53718.js";
|
|
13
|
+
import { F as U } from "./fieldTextFlex-23d6ecce.js";
|
|
14
|
+
import { R as q } from "./radio-bccc84f2.js";
|
|
15
|
+
import { Tooltip as G } from "./tooltip.js";
|
|
16
|
+
import { Popover as J } from "./popover.js";
|
|
17
|
+
import { P as Q } from "./pagination-f3d85a63.js";
|
|
18
|
+
import { T as W } from "./table-32fc8c70.js";
|
|
19
|
+
import { D as Y } from "./datePicker-12aff50c.js";
|
|
20
|
+
import { SystemAlert as _ } from "./systemAlert.js";
|
|
21
|
+
import { S as oo, a as ro, b as eo } from "./openEye-7b9cf080.js";
|
|
22
|
+
import { S as ao } from "./close-4b33d7c1.js";
|
|
23
|
+
import { a as mo, S as so } from "./minus-660ea0d6.js";
|
|
24
|
+
import { DeleteIcon as xo, ExportIcon as fo, FilterFilledIcon as co, FilterOutlineIcon as io, MeatballMenuIcon as lo, SearchIcon as Io } from "./icons.js";
|
|
25
|
+
import { S as Fo } from "./dropdown-0260bb66.js";
|
|
26
|
+
import { a as Po, S as To } from "./prevChapter-ebd5a3a7.js";
|
|
27
|
+
import { S as Co, a as Bo } from "./arrowUp-4a5caee7.js";
|
|
28
|
+
import { S as wo, a as go } from "./calendar-f154eb78.js";
|
|
29
|
+
import { b as ho, S as vo, a as yo } from "./error-4f493850.js";
|
|
7
30
|
import "react/jsx-runtime";
|
|
8
31
|
import "react";
|
|
9
32
|
import "./bind-06a7ff84.js";
|
|
10
|
-
import "./
|
|
33
|
+
import "./keyCodes-f63c0e11.js";
|
|
34
|
+
import "./maxValueDisplay-9be01a75.js";
|
|
11
35
|
import "rc-scrollbars";
|
|
12
36
|
import "framer-motion";
|
|
37
|
+
import "./useOnClickOutside-c332f7d3.js";
|
|
38
|
+
import "@floating-ui/react-dom";
|
|
39
|
+
import "downshift";
|
|
40
|
+
import "@floating-ui/react";
|
|
41
|
+
import "react-datepicker";
|
|
13
42
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
43
|
+
Co as ArrowDownIcon,
|
|
44
|
+
Bo as ArrowUpIcon,
|
|
45
|
+
d as BaseIconButton,
|
|
46
|
+
L as BubblesLoader,
|
|
47
|
+
I as Button,
|
|
48
|
+
wo as CalendarArrowIcon,
|
|
49
|
+
go as CalendarIcon,
|
|
50
|
+
u as Checkbox,
|
|
51
|
+
oo as ClearIcon,
|
|
52
|
+
ro as CloseEyeIcon,
|
|
53
|
+
ao as CloseIcon,
|
|
54
|
+
Y as DatePicker,
|
|
55
|
+
xo as DeleteIcon,
|
|
56
|
+
h as Dropdown,
|
|
57
|
+
Fo as DropdownIcon,
|
|
58
|
+
ho as ErrorIcon,
|
|
59
|
+
fo as ExportIcon,
|
|
60
|
+
E as FieldNumber,
|
|
61
|
+
C as FieldText,
|
|
62
|
+
U as FieldTextFlex,
|
|
63
|
+
co as FilterFilledIcon,
|
|
64
|
+
io as FilterOutlineIcon,
|
|
65
|
+
vo as InfoIcon,
|
|
66
|
+
lo as MeatballMenuIcon,
|
|
67
|
+
mo as MinusIcon,
|
|
68
|
+
g as Modal,
|
|
69
|
+
eo as OpenEyeIcon,
|
|
70
|
+
Q as Pagination,
|
|
71
|
+
so as PlusIcon,
|
|
72
|
+
J as Popover,
|
|
73
|
+
Po as PrevChapterIcon,
|
|
74
|
+
To as PrevPageIcon,
|
|
75
|
+
q as Radio,
|
|
76
|
+
Io as SearchIcon,
|
|
77
|
+
R as SpinLoader,
|
|
78
|
+
yo as SuccessIcon,
|
|
79
|
+
_ as SystemAlert,
|
|
18
80
|
T as SystemMessage,
|
|
19
|
-
|
|
81
|
+
W as Table,
|
|
82
|
+
D as ThemeProvider,
|
|
83
|
+
y as Toggle,
|
|
84
|
+
G as Tooltip
|
|
20
85
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var E = /* @__PURE__ */ ((_) => (_[_.BACKSPACE_KEY_CODE = 8] = "BACKSPACE_KEY_CODE", _[_.TAB_KEY_CODE = 9] = "TAB_KEY_CODE", _[_.ENTER_KEY_CODE = 13] = "ENTER_KEY_CODE", _[_.ESCAPE_KEY_CODE = 27] = "ESCAPE_KEY_CODE", _[_.SPACE_KEY_CODE = 32] = "SPACE_KEY_CODE", _[_.ARROW_LEFT_KEY_CODE = 37] = "ARROW_LEFT_KEY_CODE", _[_.ARROW_UP_KEY_CODE = 38] = "ARROW_UP_KEY_CODE", _[_.ARROW_RIGHT_KEY_CODE = 39] = "ARROW_RIGHT_KEY_CODE", _[_.ARROW_DOWN_KEY_CODE = 40] = "ARROW_DOWN_KEY_CODE", _[_.DELETE_KEY_CODE = 46] = "DELETE_KEY_CODE", _[_.NUMBER_START_KEY_CODE = 48] = "NUMBER_START_KEY_CODE", _[_.NUMBER_END_KEY_CODE = 57] = "NUMBER_END_KEY_CODE", _[_.NUM_LOCK_0_KEY_CODE = 96] = "NUM_LOCK_0_KEY_CODE", _[_.NUM_LOCK_1_KEY_CODE = 97] = "NUM_LOCK_1_KEY_CODE", _[_.NUM_LOCK_2_KEY_CODE = 98] = "NUM_LOCK_2_KEY_CODE", _[_.NUM_LOCK_3_KEY_CODE = 99] = "NUM_LOCK_3_KEY_CODE", _[_.NUM_LOCK_4_KEY_CODE = 100] = "NUM_LOCK_4_KEY_CODE", _[_.NUM_LOCK_5_KEY_CODE = 101] = "NUM_LOCK_5_KEY_CODE", _[_.NUM_LOCK_6_KEY_CODE = 102] = "NUM_LOCK_6_KEY_CODE", _[_.NUM_LOCK_7_KEY_CODE = 103] = "NUM_LOCK_7_KEY_CODE", _[_.NUM_LOCK_8_KEY_CODE = 104] = "NUM_LOCK_8_KEY_CODE", _[_.NUM_LOCK_9_KEY_CODE = 105] = "NUM_LOCK_9_KEY_CODE", _))(E || {});
|
|
2
|
+
export {
|
|
3
|
+
E as K
|
|
4
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
const t = (s) => typeof s == "number" && Number.isFinite(s) && Number.isInteger(s) && s > 0, p = ({
|
|
3
|
+
className: s,
|
|
4
|
+
value: e,
|
|
5
|
+
maxValue: n
|
|
6
|
+
}) => t(n) ? /* @__PURE__ */ r("span", { className: s, children: [
|
|
7
|
+
e,
|
|
8
|
+
"/",
|
|
9
|
+
n
|
|
10
|
+
] }) : null;
|
|
11
|
+
export {
|
|
12
|
+
p as M
|
|
13
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.00117 2.62046C7.63142 2.6189 7.33294 2.91738 7.3345 3.28712L7.35159 7.35159L3.28712 7.3345C2.91738 7.33295 2.6189 7.63142 2.62045 8.00117C2.62201 8.37091 2.92301 8.67191 3.29275 8.67346L7.35722 8.69056L7.37391 12.6599C7.37547 13.0296 7.67647 13.3306 8.04621 13.3322C8.41596 13.3337 8.71443 13.0352 8.71288 12.6655L8.69619 8.69619L12.6655 8.71288C13.0352 8.71444 13.3337 8.41596 13.3322 8.04621C13.3306 7.67647 13.0296 7.37547 12.6599 7.37392L8.69056 7.35722L8.67346 3.29275C8.67191 2.92301 8.37091 2.62201 8.00117 2.62046Z" })), C = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#C1C7D0", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.31082 7.31081C2.94108 7.30926 2.6426 7.60773 2.64415 7.97748C2.64571 8.34722 2.9467 8.64822 3.31645 8.64977L12.6892 8.68919C13.0589 8.69074 13.3574 8.39227 13.3559 8.02252C13.3543 7.65278 13.0533 7.35178 12.6836 7.35023L3.31082 7.31081Z" }));
|
|
3
|
+
export {
|
|
4
|
+
l as S,
|
|
5
|
+
C as a
|
|
6
|
+
};
|