triafly-ui-kit 1.0.23 → 1.0.25
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/papaparse.min.js +7 -0
- package/dist/_virtual/papaparse.min2.js +4 -0
- package/dist/_virtual/react-paginate.js +7 -0
- package/dist/_virtual/react-paginate2.js +4 -0
- package/dist/assets/fonts/FiraCode-Regular.ttf +0 -0
- package/dist/assets/fonts/Manrope-Bold.ttf +0 -0
- package/dist/assets/fonts/Manrope-Regular.ttf +0 -0
- package/dist/assets/fonts/Manrope-SemiBold.ttf +0 -0
- package/dist/assets/fonts/RobotoSlab-SemiBold.ttf +0 -0
- package/dist/assets/src/components/Ui/Accordeon/Accordeon.css +1 -0
- package/dist/assets/src/components/Ui/Alert/Alert.css +1 -0
- package/dist/assets/src/components/Ui/Avatar/Avatar.css +1 -0
- package/dist/assets/src/components/Ui/Badge/Badge.module.css +1 -0
- package/dist/assets/src/components/Ui/Button/Button.css +1 -0
- package/dist/assets/src/components/Ui/ButtonsArray/ButtonsArray.css +1 -0
- package/dist/assets/src/components/Ui/Checkbox/Checkbox.css +1 -0
- package/dist/assets/src/components/Ui/CliTextareaInput/CliTextareaInput.css +1 -0
- package/dist/assets/src/components/Ui/CustomLink/CustomLink.css +1 -0
- package/dist/assets/src/components/Ui/DatePicker/DatePicker.css +1 -0
- package/dist/assets/src/components/Ui/DropdownInput/DropdownInput.css +1 -0
- package/dist/assets/src/components/Ui/DropdownMenu/DropdownMenu.css +1 -0
- package/dist/assets/src/components/Ui/FileUpload/FileUpload.css +1 -0
- package/dist/assets/src/components/Ui/Form/FormRoot/Form.css +1 -0
- package/dist/assets/src/components/Ui/Loader/Loader.css +1 -0
- package/dist/assets/src/components/Ui/ModalWindow/ModalWindow.css +1 -0
- package/dist/assets/src/components/Ui/Pagination/Pagination.css +1 -0
- package/dist/assets/src/components/Ui/Radio/Radio.css +1 -0
- package/dist/assets/src/components/Ui/SearchInput/SearchInput.css +1 -0
- package/dist/assets/src/components/Ui/Skeleton/Skeleton.module.css +1 -0
- package/dist/assets/src/components/Ui/Switch/Switch.css +1 -0
- package/dist/assets/src/components/Ui/Table/Table.css +1 -0
- package/dist/assets/src/components/Ui/Tabs/Tabs.css +1 -0
- package/dist/assets/src/components/Ui/TextInput/TextInput.css +1 -0
- package/dist/assets/src/components/Ui/TextareaInput/TextareaInput.css +1 -0
- package/dist/assets/src/components/Ui/Tooltip/Tooltip.css +1 -0
- package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +1 -0
- package/dist/assets/src/context/ToastContext/ToastContext.module.css +1 -0
- package/dist/components/Ui/Accordeon/Accordeon.js +34 -0
- package/dist/components/Ui/Accordeon/Accordeon.stories.js +72 -0
- package/dist/components/Ui/Accordeon/index.js +4 -0
- package/dist/components/Ui/Alert/Alert.js +15 -0
- package/dist/components/Ui/Alert/index.js +4 -0
- package/dist/components/Ui/Avatar/Avatar.js +11 -0
- package/dist/components/Ui/Avatar/index.js +4 -0
- package/dist/components/Ui/Badge/Badge.js +30 -0
- package/dist/components/Ui/Badge/index.js +4 -0
- package/dist/components/Ui/Button/Button.js +50 -0
- package/dist/components/Ui/Button/index.js +4 -0
- package/dist/components/Ui/ButtonsArray/ButtonsArray.js +29 -0
- package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +78 -0
- package/dist/components/Ui/ButtonsArray/index.js +4 -0
- package/dist/components/Ui/Checkbox/Checkbox.js +40 -0
- package/dist/components/Ui/Checkbox/Checkbox.stories.js +120 -0
- package/dist/components/Ui/Checkbox/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/CliTextareaInput.js +122 -0
- package/dist/components/Ui/CliTextareaInput/index.js +23 -0
- package/dist/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/fixJson/fixJson.js +12 -0
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.js +20 -0
- package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/index.js +17 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.js +29 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.js +34 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.js +45 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.js +5 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/useLineNumbers.js +17 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/useScrollSync.js +13 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/useTextActions.js +37 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/useTextCoursore.js +14 -0
- package/dist/components/Ui/CliTextareaInput/utils/index.js +21 -0
- package/dist/components/Ui/CliTextareaInput/utils/processJson/index.js +4 -0
- package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.js +11 -0
- package/dist/components/Ui/CliTextareaInput/utils/processXml/processXml.js +8 -0
- package/dist/components/Ui/CliTextareaInput/utils/processYml/processYml.js +27 -0
- package/dist/components/Ui/CliTextareaInput/utils/types.js +1 -0
- package/dist/components/Ui/CustomLink/CustomLink.js +50 -0
- package/dist/components/Ui/CustomLink/index.js +4 -0
- package/dist/components/Ui/DatePicker/DatePicker.js +183 -0
- package/dist/components/Ui/DatePicker/DatePicker.stories.js +120 -0
- package/dist/components/Ui/DropdownInput/DropdownInput.js +92 -0
- package/dist/components/Ui/DropdownInput/DropdownInput.stories.js +77 -0
- package/dist/components/Ui/DropdownInput/index.js +4 -0
- package/dist/components/Ui/DropdownMenu/DropdownMenu.js +84 -0
- package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.js +50 -0
- package/dist/components/Ui/DropdownMenu/index.js +4 -0
- package/dist/components/Ui/FileUpload/FileUpload.js +197 -0
- package/dist/components/Ui/FileUpload/fn.js +10 -0
- package/dist/components/Ui/FileUpload/index.js +4 -0
- package/dist/components/Ui/FileUpload/types.js +1 -0
- package/dist/components/Ui/Form/FormContext/FormContext.js +5 -0
- package/dist/components/Ui/Form/FormItem/FormItem.js +107 -0
- package/dist/components/Ui/Form/FormItem/fn.js +25 -0
- package/dist/components/Ui/Form/FormItem/types.js +1 -0
- package/dist/components/Ui/Form/FormRoot/FormRoot.js +26 -0
- package/dist/components/Ui/Form/FormRoot/index.js +4 -0
- package/dist/components/Ui/Form/FormRoot/types.js +1 -0
- package/dist/components/Ui/Form/index.js +6 -0
- package/dist/components/Ui/Form/useForm/index.js +4 -0
- package/dist/components/Ui/Form/useForm/useForm.js +111 -0
- package/dist/components/Ui/Form/utils/fn.js +31 -0
- package/dist/components/Ui/Form/utils/types.js +1 -0
- package/dist/components/Ui/Icons/Icons.js +577 -0
- package/dist/components/Ui/Icons/index.js +97 -0
- package/dist/components/Ui/Icons/utils/CreateIcon.js +23 -0
- package/dist/components/Ui/Loader/Loader.js +7 -0
- package/dist/components/Ui/Loader/index.js +4 -0
- package/dist/components/Ui/ModalWindow/ModalWindow.js +51 -0
- package/dist/components/Ui/ModalWindow/index.js +4 -0
- package/dist/components/Ui/Pagination/Pagination.js +39 -0
- package/dist/components/Ui/Pagination/index.js +4 -0
- package/dist/components/Ui/Radio/Radio.js +31 -0
- package/dist/components/Ui/Radio/Radio.stories.js +42 -0
- package/dist/components/Ui/Radio/index.js +4 -0
- package/dist/components/Ui/SearchInput/SearchData.js +30 -0
- package/dist/components/Ui/SearchInput/SearchInput.js +110 -0
- package/dist/components/Ui/Skeleton/Skeleton.js +26 -0
- package/dist/components/Ui/Skeleton/index.js +4 -0
- package/dist/components/Ui/Switch/Switch.js +26 -0
- package/dist/components/Ui/Switch/index.js +4 -0
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.js +50 -0
- package/dist/components/Ui/Table/Table.js +161 -0
- package/dist/components/Ui/Table/TableTypes.js +1 -0
- package/dist/components/Ui/Table/index.js +4 -0
- package/dist/components/Ui/Tabs/Tabs.js +25 -0
- package/dist/components/Ui/Tabs/Tabs.stories.js +67 -0
- package/dist/components/Ui/Tabs/index.js +4 -0
- package/dist/components/Ui/TextInput/TextInput.js +86 -0
- package/dist/components/Ui/TextInput/TextInput.stories.js +225 -0
- package/dist/components/Ui/TextInput/index.js +4 -0
- package/dist/components/Ui/TextareaInput/TextareaInput.js +69 -0
- package/dist/components/Ui/TextareaInput/TextareaInput.stories.js +19 -0
- package/dist/components/Ui/TextareaInput/index.js +4 -0
- package/dist/components/Ui/Tooltip/Tooltip.js +93 -0
- package/dist/components/Ui/Tooltip/Tooltip.stories.js +87 -0
- package/dist/components/Ui/Tooltip/index.js +4 -0
- package/dist/context/ToastContext/ToastContext.js +38 -0
- package/dist/context/ToastContext/index.js +5 -0
- package/dist/context/TriaflyContext/TriaflyContext.types.js +1 -0
- package/dist/context/TriaflyContext/TriaflyProvider.js +27 -0
- package/dist/context/TriaflyContext/hooks/index.js +8 -0
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.js +4 -0
- package/dist/context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js +11 -0
- package/dist/context/TriaflyContext/hooks/useModal/index.js +4 -0
- package/dist/context/TriaflyContext/hooks/useModal/useModal.js +16 -0
- package/dist/context/TriaflyContext/hooks/useTheme/index.js +4 -0
- package/dist/context/TriaflyContext/hooks/useTheme/useTheme.js +17 -0
- package/dist/context/TriaflyContext/index.js +12 -0
- package/dist/main.d.ts +1229 -0
- package/dist/main.js +162 -0
- package/dist/node_modules/classnames/index.js +42 -0
- package/dist/node_modules/fast-deep-equal/index.js +31 -0
- package/dist/node_modules/papaparse/papaparse.min.js +421 -0
- package/dist/node_modules/react-paginate/dist/react-paginate.js +259 -0
- package/dist/src/components/Ui/Badge/Badge.module.scss.js +30 -0
- package/dist/src/components/Ui/Skeleton/Skeleton.module.scss.js +9 -0
- package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +15 -0
- package/dist/src/context/ToastContext/ToastContext.module.scss.js +9 -0
- package/dist/styles/_mixins.scss +22 -0
- package/dist/styles/fix.scss +4 -0
- package/dist/styles/main.scss +27 -0
- package/dist/styles/reset.scss +106 -0
- package/dist/styles/typography.scss +102 -0
- package/dist/styles/variables.scss +278 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +6 -2
- package/src/styles/_mixins.scss +22 -0
- package/src/styles/fix.scss +4 -0
- package/src/styles/main.scss +27 -0
- package/src/styles/reset.scss +106 -0
- package/src/styles/typography.scss +102 -0
- package/src/styles/variables.scss +278 -0
@@ -0,0 +1,97 @@
|
|
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 w, IconArticle as h, IconAt as p, IconBellSimple as g, IconBookOpenText as u, 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 F, IconCheckCircle as T, IconChecks as f, IconCircleNotch as y, IconCopy as B, IconCornersOut as R, IconCsv as X, IconCube as m, IconDatabase as x, IconDotsNine as M, IconDotsThreeVertical as v, IconExport as H, IconEye as N, IconEyeSlash as O, IconFile as Q, IconFiles as E, IconFloppyDisk as G, IconFolderSimple as b, IconFolderSimpleX as W, IconFunnel as z, IconGauge as J, IconGear as V, IconGoogleDrive as Y, IconHand as j, IconHeadCircuit as q, IconHouse as K, IconIcon as Z, IconInfo as _, IconJoin as $, IconLanguage as oo, IconLink as no, IconList as co, IconLock as Io, IconLockOpen as eo, IconMariaDB as ro, IconMinus as io, IconMongoDB as to, IconMoon as ao, IconMySQL as lo, IconNavigationArrow as so, IconNotePencil as Co, IconPassword as wo, IconPen as ho, IconPlay as po, IconPlugsX as go, IconPlus as uo, IconPorsgteSQL as So, IconPresentationChart as Ao, IconQuestion as Do, IconQuestionFullfilled as Lo, IconRedo as ko, IconRoleX as Uo, IconSearch as Po, IconSearchX as Fo, IconSelection as To, IconServer as fo, IconSlidersHorizontal as yo, IconSticker as Bo, IconSun as Ro, IconThreeDot as Xo, IconTrash as mo, IconTriangleDown as xo, IconTriangleUp as Mo, IconUndo as vo, IconUploadSimple as Ho, IconUser as No, IconUserX as Oo, IconWarningCircle as Qo, IconWrench as Eo, IconX as Go, IconYandexDisk as bo } from "./Icons.js";
|
2
|
+
export {
|
3
|
+
c as IconArrowBendUpRight,
|
4
|
+
I as IconArrowClockwise,
|
5
|
+
e as IconArrowDown,
|
6
|
+
r as IconArrowLeft,
|
7
|
+
i as IconArrowLineDown,
|
8
|
+
t as IconArrowLineLeft,
|
9
|
+
a as IconArrowLineRight,
|
10
|
+
l as IconArrowLineUp,
|
11
|
+
s as IconArrowRight,
|
12
|
+
C as IconArrowUp,
|
13
|
+
w as IconArrowsOut,
|
14
|
+
h as IconArticle,
|
15
|
+
p as IconAt,
|
16
|
+
g as IconBellSimple,
|
17
|
+
u as IconBookOpenText,
|
18
|
+
S as IconCalendarBlank,
|
19
|
+
A as IconCaretDown,
|
20
|
+
D as IconCaretLeft,
|
21
|
+
L as IconCaretRight,
|
22
|
+
d as IconCaretUp,
|
23
|
+
k as IconCaretUpDown,
|
24
|
+
U as IconChartPieSlice,
|
25
|
+
P as IconChatText,
|
26
|
+
F as IconCheck,
|
27
|
+
T as IconCheckCircle,
|
28
|
+
f as IconChecks,
|
29
|
+
y as IconCircleNotch,
|
30
|
+
B as IconCopy,
|
31
|
+
R as IconCornersOut,
|
32
|
+
X as IconCsv,
|
33
|
+
m as IconCube,
|
34
|
+
x as IconDatabase,
|
35
|
+
M as IconDotsNine,
|
36
|
+
v as IconDotsThreeVertical,
|
37
|
+
H as IconExport,
|
38
|
+
N as IconEye,
|
39
|
+
O as IconEyeSlash,
|
40
|
+
Q as IconFile,
|
41
|
+
E as IconFiles,
|
42
|
+
G as IconFloppyDisk,
|
43
|
+
b as IconFolderSimple,
|
44
|
+
W as IconFolderSimpleX,
|
45
|
+
z as IconFunnel,
|
46
|
+
J as IconGauge,
|
47
|
+
V as IconGear,
|
48
|
+
Y as IconGoogleDrive,
|
49
|
+
j as IconHand,
|
50
|
+
q as IconHeadCircuit,
|
51
|
+
K as IconHouse,
|
52
|
+
Z as IconIcon,
|
53
|
+
_ as IconInfo,
|
54
|
+
$ as IconJoin,
|
55
|
+
oo as IconLanguage,
|
56
|
+
no as IconLink,
|
57
|
+
co as IconList,
|
58
|
+
Io as IconLock,
|
59
|
+
eo as IconLockOpen,
|
60
|
+
ro as IconMariaDB,
|
61
|
+
io as IconMinus,
|
62
|
+
to as IconMongoDB,
|
63
|
+
ao as IconMoon,
|
64
|
+
lo as IconMySQL,
|
65
|
+
so as IconNavigationArrow,
|
66
|
+
Co as IconNotePencil,
|
67
|
+
wo as IconPassword,
|
68
|
+
ho as IconPen,
|
69
|
+
po as IconPlay,
|
70
|
+
go as IconPlugsX,
|
71
|
+
uo as IconPlus,
|
72
|
+
So as IconPorsgteSQL,
|
73
|
+
Ao as IconPresentationChart,
|
74
|
+
Do as IconQuestion,
|
75
|
+
Lo as IconQuestionFullfilled,
|
76
|
+
ko as IconRedo,
|
77
|
+
Uo as IconRoleX,
|
78
|
+
Po as IconSearch,
|
79
|
+
Fo as IconSearchX,
|
80
|
+
To as IconSelection,
|
81
|
+
fo as IconServer,
|
82
|
+
yo as IconSlidersHorizontal,
|
83
|
+
Bo as IconSticker,
|
84
|
+
Ro as IconSun,
|
85
|
+
Xo as IconThreeDot,
|
86
|
+
mo as IconTrash,
|
87
|
+
xo as IconTriangleDown,
|
88
|
+
Mo as IconTriangleUp,
|
89
|
+
vo as IconUndo,
|
90
|
+
Ho as IconUploadSimple,
|
91
|
+
No as IconUser,
|
92
|
+
Oo as IconUserX,
|
93
|
+
Qo as IconWarningCircle,
|
94
|
+
Eo as IconWrench,
|
95
|
+
Go as IconX,
|
96
|
+
bo as IconYandexDisk
|
97
|
+
};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
2
|
+
const g = ({
|
3
|
+
displayName: r,
|
4
|
+
path: o,
|
5
|
+
viewBox: i = "0 0 24 24"
|
6
|
+
}) => {
|
7
|
+
const n = ({ size: t = 20, color: l = "currentColor", className: c = "", viewBox: s }) => /* @__PURE__ */ e(
|
8
|
+
"svg",
|
9
|
+
{
|
10
|
+
width: t,
|
11
|
+
height: t,
|
12
|
+
viewBox: s || i,
|
13
|
+
fill: "none",
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
15
|
+
className: c,
|
16
|
+
children: typeof o == "string" ? /* @__PURE__ */ e("path", { d: o, fill: l }) : o
|
17
|
+
}
|
18
|
+
);
|
19
|
+
return n.displayName = r, n;
|
20
|
+
};
|
21
|
+
export {
|
22
|
+
g as createIcon
|
23
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
2
|
+
import { IconCircleNotch as e } from "../Icons/Icons.js";
|
3
|
+
import '../../../assets/src/components/Ui/Loader/Loader.css';/* empty css */
|
4
|
+
const s = ({ size: o, color: r, viewBox: m, className: t }) => /* @__PURE__ */ c(e, { size: o, color: r, viewBox: m, className: `loader ${t}` });
|
5
|
+
export {
|
6
|
+
s as Loader
|
7
|
+
};
|
@@ -0,0 +1,51 @@
|
|
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";
|
4
|
+
import '../../../assets/src/components/Ui/ModalWindow/ModalWindow.css';/* empty css */
|
5
|
+
import { Button as v } from "../Button/Button.js";
|
6
|
+
import { IconX as N } from "../Icons/Icons.js";
|
7
|
+
const x = ({
|
8
|
+
isOpen: l,
|
9
|
+
onClose: i,
|
10
|
+
width: a,
|
11
|
+
size: r = "md",
|
12
|
+
iconHeader: o,
|
13
|
+
title: t,
|
14
|
+
children: d,
|
15
|
+
usePortal: e = !1,
|
16
|
+
foolHeight: c,
|
17
|
+
position: p = "center"
|
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(
|
21
|
+
"div",
|
22
|
+
{
|
23
|
+
className: `modal-window__body size-${r} ${c ? "foolHeight" : ""}`,
|
24
|
+
onClick: (_) => _.stopPropagation(),
|
25
|
+
style: {
|
26
|
+
width: `${a}`,
|
27
|
+
pointerEvents: "auto"
|
28
|
+
},
|
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 }) }),
|
32
|
+
t != null && t.toString() ? /* @__PURE__ */ s("span", { className: "modal-window__header__title", children: t }) : t,
|
33
|
+
/* @__PURE__ */ s(
|
34
|
+
v,
|
35
|
+
{
|
36
|
+
type: "button",
|
37
|
+
icon: /* @__PURE__ */ s(N, { size: 24 }),
|
38
|
+
className: "icon-button",
|
39
|
+
onClick: () => i(!1)
|
40
|
+
}
|
41
|
+
)
|
42
|
+
] }),
|
43
|
+
d
|
44
|
+
]
|
45
|
+
}
|
46
|
+
) }) });
|
47
|
+
return e ? u(n, document.body) : n;
|
48
|
+
};
|
49
|
+
export {
|
50
|
+
x as ModalWindow
|
51
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
import p from "../../../_virtual/react-paginate.js";
|
3
|
+
import '../../../assets/src/components/Ui/Pagination/Pagination.css';/* empty css */
|
4
|
+
import { IconCaretRight as r, IconCaretLeft as t } from "../Icons/Icons.js";
|
5
|
+
const c = ({
|
6
|
+
currentPage: i,
|
7
|
+
totalPages: e,
|
8
|
+
onPageChange: n
|
9
|
+
}) => {
|
10
|
+
const s = (g) => {
|
11
|
+
n(g.selected + 1);
|
12
|
+
};
|
13
|
+
return /* @__PURE__ */ a("div", { className: "Pagination__Wrap", children: /* @__PURE__ */ a(
|
14
|
+
p,
|
15
|
+
{
|
16
|
+
previousLabel: /* @__PURE__ */ a(t, {}),
|
17
|
+
nextLabel: /* @__PURE__ */ a(r, {}),
|
18
|
+
breakLabel: "...",
|
19
|
+
pageCount: e,
|
20
|
+
marginPagesDisplayed: e > 7 ? 1 : 0,
|
21
|
+
pageRangeDisplayed: e > 7 ? 5 : e,
|
22
|
+
onPageChange: s,
|
23
|
+
containerClassName: "pagination",
|
24
|
+
pageClassName: "page-item",
|
25
|
+
pageLinkClassName: "page-link",
|
26
|
+
previousClassName: "page-item page-toggler",
|
27
|
+
previousLinkClassName: "page-link",
|
28
|
+
nextClassName: "page-item page-toggler",
|
29
|
+
nextLinkClassName: "page-link",
|
30
|
+
breakClassName: "page-item",
|
31
|
+
breakLinkClassName: "page-link",
|
32
|
+
activeClassName: "active",
|
33
|
+
forcePage: i - 1
|
34
|
+
}
|
35
|
+
) });
|
36
|
+
};
|
37
|
+
export {
|
38
|
+
c as Pagination
|
39
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
2
|
+
import '../../../assets/src/components/Ui/Radio/Radio.css';/* empty css */
|
3
|
+
const m = ({
|
4
|
+
label: s,
|
5
|
+
value: l,
|
6
|
+
name: d = "Radio",
|
7
|
+
isDisabled: e = !1,
|
8
|
+
isChecked: i,
|
9
|
+
radioId: c,
|
10
|
+
onChange: o
|
11
|
+
}) => /* @__PURE__ */ a("div", { className: `radio ${e ? "disabled" : ""}`, children: /* @__PURE__ */ r("label", { className: "radio-label", children: [
|
12
|
+
/* @__PURE__ */ a(
|
13
|
+
"input",
|
14
|
+
{
|
15
|
+
className: "",
|
16
|
+
id: c,
|
17
|
+
type: "radio",
|
18
|
+
name: d,
|
19
|
+
value: l,
|
20
|
+
disabled: e,
|
21
|
+
checked: i,
|
22
|
+
onChange: o
|
23
|
+
}
|
24
|
+
),
|
25
|
+
/* @__PURE__ */ a("span", { className: "checkmark" }),
|
26
|
+
/* @__PURE__ */ a("span", { className: "label", children: s })
|
27
|
+
] }) });
|
28
|
+
m.displayName = "Radio";
|
29
|
+
export {
|
30
|
+
m as Radio
|
31
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
2
|
+
import { Radio as a } from "./Radio.js";
|
3
|
+
const d = {
|
4
|
+
title: "UIKit/Radio",
|
5
|
+
component: a
|
6
|
+
}, e = {
|
7
|
+
render: (o) => /* @__PURE__ */ i(a, { ...o })
|
8
|
+
}, l = {
|
9
|
+
...e,
|
10
|
+
args: {
|
11
|
+
label: "Опция 1",
|
12
|
+
name: "options",
|
13
|
+
value: "3",
|
14
|
+
isChecked: !1,
|
15
|
+
radioId: "id1"
|
16
|
+
}
|
17
|
+
}, r = {
|
18
|
+
...e,
|
19
|
+
args: {
|
20
|
+
label: "Опция 2",
|
21
|
+
name: "options",
|
22
|
+
value: "1",
|
23
|
+
isChecked: !1,
|
24
|
+
isDisabled: !0,
|
25
|
+
radioId: "id2"
|
26
|
+
}
|
27
|
+
}, n = {
|
28
|
+
...e,
|
29
|
+
args: {
|
30
|
+
label: "Опция 3",
|
31
|
+
name: "options",
|
32
|
+
value: "2",
|
33
|
+
isChecked: !0,
|
34
|
+
radioId: "id3"
|
35
|
+
}
|
36
|
+
};
|
37
|
+
export {
|
38
|
+
n as Checked,
|
39
|
+
l as Default,
|
40
|
+
r as Disabled,
|
41
|
+
d as default
|
42
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
const e = [
|
2
|
+
"Apple",
|
3
|
+
"Banana",
|
4
|
+
"Cherry",
|
5
|
+
"Date",
|
6
|
+
"Elderberry",
|
7
|
+
"Fig",
|
8
|
+
"Grape",
|
9
|
+
"Honeydew",
|
10
|
+
"Kiwi",
|
11
|
+
"Lemon",
|
12
|
+
"Mango",
|
13
|
+
"Nectarine",
|
14
|
+
"Orange",
|
15
|
+
"Peach",
|
16
|
+
"Quince",
|
17
|
+
"Raspberry",
|
18
|
+
"Strawberry",
|
19
|
+
"Tangerine",
|
20
|
+
"Watermelon",
|
21
|
+
"Blueberry",
|
22
|
+
"Blackberry",
|
23
|
+
"Pineapple",
|
24
|
+
"Papaya",
|
25
|
+
"Apricot",
|
26
|
+
"Plum"
|
27
|
+
];
|
28
|
+
export {
|
29
|
+
e as demoSearchData
|
30
|
+
};
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { jsxs as I, Fragment as T, jsx as l } from "react/jsx-runtime";
|
2
|
+
import { useState as o, useRef as H, useEffect as w } from "react";
|
3
|
+
import { TextInput as U } from "../TextInput/TextInput.js";
|
4
|
+
import '../../../assets/src/components/Ui/SearchInput/SearchInput.css';/* empty css */
|
5
|
+
import { IconCaretUpDown as q } from "../Icons/Icons.js";
|
6
|
+
const z = ({
|
7
|
+
name: k = "SearchInput",
|
8
|
+
label: x,
|
9
|
+
placeholder: y = "",
|
10
|
+
type: N = "text",
|
11
|
+
id: $,
|
12
|
+
isDisabled: h = !1,
|
13
|
+
errorMessage: F = "",
|
14
|
+
hasError: V = !1,
|
15
|
+
className: D = "",
|
16
|
+
isClearable: E,
|
17
|
+
isLoading: L,
|
18
|
+
value: r = "",
|
19
|
+
onChange: s,
|
20
|
+
options: n = []
|
21
|
+
}) => {
|
22
|
+
const [m, v] = o(r), [j, i] = o(""), [u, p] = o([]), [d, c] = o(!1), [g, A] = o(!1), [B, C] = o(!1), f = H(null);
|
23
|
+
w(() => {
|
24
|
+
if (r) {
|
25
|
+
const e = n.find((t) => t.value === r);
|
26
|
+
i(e ? e.label : r);
|
27
|
+
} else
|
28
|
+
i("");
|
29
|
+
}, [r, n]), w(() => {
|
30
|
+
if (m.trim() === "" && g) {
|
31
|
+
p(n);
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
const e = n.filter(
|
35
|
+
(t) => t.label.toLowerCase().includes(m.toLowerCase())
|
36
|
+
);
|
37
|
+
p(e);
|
38
|
+
}, [m, n, g]), w(() => {
|
39
|
+
const e = (t) => {
|
40
|
+
f.current && !f.current.contains(t.target) && c(!1);
|
41
|
+
};
|
42
|
+
return document.addEventListener("mousedown", e), () => {
|
43
|
+
document.removeEventListener("mousedown", e);
|
44
|
+
};
|
45
|
+
}, []);
|
46
|
+
const K = (e) => {
|
47
|
+
const t = e.target.value;
|
48
|
+
v(t), i(t), s == null || s(t), c(!0);
|
49
|
+
}, b = (e) => {
|
50
|
+
v(e.value), i(e.label), s == null || s(e.value), c(!1);
|
51
|
+
}, O = () => {
|
52
|
+
A(!0), c(!0), p(n);
|
53
|
+
}, P = (e) => {
|
54
|
+
e.key === "Enter" && u.length > 0 && d && b(u[0]);
|
55
|
+
}, S = (e) => {
|
56
|
+
var t;
|
57
|
+
if (e.stopPropagation(), !d) {
|
58
|
+
const a = (t = f.current) == null ? void 0 : t.getBoundingClientRect(), R = window.innerHeight - ((a == null ? void 0 : a.bottom) || 0);
|
59
|
+
C(R < 304);
|
60
|
+
}
|
61
|
+
c((a) => !a);
|
62
|
+
};
|
63
|
+
return /* @__PURE__ */ I(T, { children: [
|
64
|
+
/* @__PURE__ */ l(
|
65
|
+
U,
|
66
|
+
{
|
67
|
+
name: k,
|
68
|
+
label: x,
|
69
|
+
type: N,
|
70
|
+
className: `${D}`,
|
71
|
+
value: j,
|
72
|
+
onChange: K,
|
73
|
+
placeholder: y,
|
74
|
+
id: $,
|
75
|
+
isDisabled: h,
|
76
|
+
isClearable: E,
|
77
|
+
hasError: V,
|
78
|
+
errorMessage: F,
|
79
|
+
isLoading: L,
|
80
|
+
onFocus: O,
|
81
|
+
onKeyDown: P
|
82
|
+
}
|
83
|
+
),
|
84
|
+
/* @__PURE__ */ I("div", { className: "dropdown-input-test", children: [
|
85
|
+
/* @__PURE__ */ l("div", { className: "caret", onClick: S, children: /* @__PURE__ */ l(q, {}) }),
|
86
|
+
d && g && u.length > 0 && /* @__PURE__ */ l(
|
87
|
+
"div",
|
88
|
+
{
|
89
|
+
className: `input-box
|
90
|
+
${d ? "opened" : ""}
|
91
|
+
${h ? "disabled" : ""}`,
|
92
|
+
ref: f,
|
93
|
+
onClick: S,
|
94
|
+
children: /* @__PURE__ */ l("ul", { className: `options ${B ? "above" : ""}`, children: u.map((e, t) => /* @__PURE__ */ l(
|
95
|
+
"li",
|
96
|
+
{
|
97
|
+
onClick: () => b(e),
|
98
|
+
children: e.label
|
99
|
+
},
|
100
|
+
`${e.value}-${t}`
|
101
|
+
)) })
|
102
|
+
}
|
103
|
+
)
|
104
|
+
] })
|
105
|
+
] });
|
106
|
+
};
|
107
|
+
z.displayName = "SearchInput";
|
108
|
+
export {
|
109
|
+
z as SearchInput
|
110
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
2
|
+
import p from "../../../_virtual/index.js";
|
3
|
+
import e from "../../../src/components/Ui/Skeleton/Skeleton.module.scss.js";
|
4
|
+
const c = ({
|
5
|
+
width: s = "100%",
|
6
|
+
height: o = "100%",
|
7
|
+
borderRadius: t = "4px",
|
8
|
+
circle: r = !1,
|
9
|
+
animated: m = !0,
|
10
|
+
className: a,
|
11
|
+
style: l
|
12
|
+
}) => /* @__PURE__ */ i(
|
13
|
+
"div",
|
14
|
+
{
|
15
|
+
className: p(e.skeleton, { [e.animated]: m }, a),
|
16
|
+
style: {
|
17
|
+
width: s,
|
18
|
+
height: o,
|
19
|
+
borderRadius: r ? "50%" : t,
|
20
|
+
...l
|
21
|
+
}
|
22
|
+
}
|
23
|
+
);
|
24
|
+
export {
|
25
|
+
c as Skeleton
|
26
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
2
|
+
import '../../../assets/src/components/Ui/Switch/Switch.css';/* empty css */
|
3
|
+
const d = ({
|
4
|
+
label: s,
|
5
|
+
isDisabled: e,
|
6
|
+
isChecked: i = !1,
|
7
|
+
onChange: a,
|
8
|
+
name: t = "Switch"
|
9
|
+
}) => /* @__PURE__ */ c("div", { className: "switch-container", children: /* @__PURE__ */ l("label", { className: `switch ${e ? "disabled" : ""}`, children: [
|
10
|
+
/* @__PURE__ */ c(
|
11
|
+
"input",
|
12
|
+
{
|
13
|
+
name: t,
|
14
|
+
type: "checkbox",
|
15
|
+
checked: i,
|
16
|
+
onChange: a,
|
17
|
+
disabled: e
|
18
|
+
}
|
19
|
+
),
|
20
|
+
s,
|
21
|
+
/* @__PURE__ */ c("span", { className: "slider" })
|
22
|
+
] }) });
|
23
|
+
d.displayName = "Switch";
|
24
|
+
export {
|
25
|
+
d as Switch
|
26
|
+
};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
2
|
+
import c from "react";
|
3
|
+
import m from "../../../../_virtual/index2.js";
|
4
|
+
import d from "../../../../_virtual/index.js";
|
5
|
+
const h = c.memo(
|
6
|
+
({
|
7
|
+
record: t,
|
8
|
+
columns: _,
|
9
|
+
rowKey: a,
|
10
|
+
rowClassName: n,
|
11
|
+
index: l,
|
12
|
+
stickyLeft: r,
|
13
|
+
onClickTr: b,
|
14
|
+
bordered: i
|
15
|
+
}) => {
|
16
|
+
const s = (e) => {
|
17
|
+
!e.target.closest("[data-no-bubble]") && b && b(t);
|
18
|
+
};
|
19
|
+
return /* @__PURE__ */ p(
|
20
|
+
"tr",
|
21
|
+
{
|
22
|
+
className: d(
|
23
|
+
"table-component__wrapper__table__tbody__tr",
|
24
|
+
n == null ? void 0 : n(t, l),
|
25
|
+
{
|
26
|
+
"table-component__wrapper__table__tbody__tr--hoverable": !!b
|
27
|
+
}
|
28
|
+
),
|
29
|
+
onClick: s,
|
30
|
+
children: _.map((e, o) => /* @__PURE__ */ p(
|
31
|
+
"td",
|
32
|
+
{
|
33
|
+
className: d("table-component__wrapper__table__tbody__td", e.className, {
|
34
|
+
"table-component__wrapper__table__tbody__td--bordered": i,
|
35
|
+
"table-component__wrapper__table__tbody__td--sticky-left": r && o === 0
|
36
|
+
}),
|
37
|
+
align: e.align,
|
38
|
+
children: e.render ? e.render(t[e.dataIndex], t) : String(t[e.dataIndex] ?? "")
|
39
|
+
},
|
40
|
+
`${e.key}-${o}`
|
41
|
+
))
|
42
|
+
},
|
43
|
+
typeof a == "function" ? a(t) : String(t[a])
|
44
|
+
);
|
45
|
+
},
|
46
|
+
(t, _) => m(t.columns, _.columns) && m(t.record, _.record)
|
47
|
+
);
|
48
|
+
export {
|
49
|
+
h as MemoizedRow
|
50
|
+
};
|