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.
Files changed (181) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +7 -0
  3. package/dist/_virtual/index2.js +7 -0
  4. package/dist/_virtual/index3.js +4 -0
  5. package/dist/_virtual/papaparse.min.js +7 -0
  6. package/dist/_virtual/papaparse.min2.js +4 -0
  7. package/dist/_virtual/react-paginate.js +7 -0
  8. package/dist/_virtual/react-paginate2.js +4 -0
  9. package/dist/assets/fonts/FiraCode-Regular.ttf +0 -0
  10. package/dist/assets/fonts/Manrope-Bold.ttf +0 -0
  11. package/dist/assets/fonts/Manrope-Regular.ttf +0 -0
  12. package/dist/assets/fonts/Manrope-SemiBold.ttf +0 -0
  13. package/dist/assets/fonts/RobotoSlab-SemiBold.ttf +0 -0
  14. package/dist/assets/src/components/Ui/Accordeon/Accordeon.css +1 -0
  15. package/dist/assets/src/components/Ui/Alert/Alert.css +1 -0
  16. package/dist/assets/src/components/Ui/Avatar/Avatar.css +1 -0
  17. package/dist/assets/src/components/Ui/Badge/Badge.module.css +1 -0
  18. package/dist/assets/src/components/Ui/Button/Button.css +1 -0
  19. package/dist/assets/src/components/Ui/ButtonsArray/ButtonsArray.css +1 -0
  20. package/dist/assets/src/components/Ui/Checkbox/Checkbox.css +1 -0
  21. package/dist/assets/src/components/Ui/CliTextareaInput/CliTextareaInput.css +1 -0
  22. package/dist/assets/src/components/Ui/CustomLink/CustomLink.css +1 -0
  23. package/dist/assets/src/components/Ui/DatePicker/DatePicker.css +1 -0
  24. package/dist/assets/src/components/Ui/DropdownInput/DropdownInput.css +1 -0
  25. package/dist/assets/src/components/Ui/DropdownMenu/DropdownMenu.css +1 -0
  26. package/dist/assets/src/components/Ui/FileUpload/FileUpload.css +1 -0
  27. package/dist/assets/src/components/Ui/Form/FormRoot/Form.css +1 -0
  28. package/dist/assets/src/components/Ui/Loader/Loader.css +1 -0
  29. package/dist/assets/src/components/Ui/ModalWindow/ModalWindow.css +1 -0
  30. package/dist/assets/src/components/Ui/Pagination/Pagination.css +1 -0
  31. package/dist/assets/src/components/Ui/Radio/Radio.css +1 -0
  32. package/dist/assets/src/components/Ui/SearchInput/SearchInput.css +1 -0
  33. package/dist/assets/src/components/Ui/Skeleton/Skeleton.module.css +1 -0
  34. package/dist/assets/src/components/Ui/Switch/Switch.css +1 -0
  35. package/dist/assets/src/components/Ui/Table/Table.css +1 -0
  36. package/dist/assets/src/components/Ui/Tabs/Tabs.css +1 -0
  37. package/dist/assets/src/components/Ui/TextInput/TextInput.css +1 -0
  38. package/dist/assets/src/components/Ui/TextareaInput/TextareaInput.css +1 -0
  39. package/dist/assets/src/components/Ui/Tooltip/Tooltip.css +1 -0
  40. package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +1 -0
  41. package/dist/assets/src/context/ToastContext/ToastContext.module.css +1 -0
  42. package/dist/components/Ui/Accordeon/Accordeon.js +34 -0
  43. package/dist/components/Ui/Accordeon/Accordeon.stories.js +72 -0
  44. package/dist/components/Ui/Accordeon/index.js +4 -0
  45. package/dist/components/Ui/Alert/Alert.js +15 -0
  46. package/dist/components/Ui/Alert/index.js +4 -0
  47. package/dist/components/Ui/Avatar/Avatar.js +11 -0
  48. package/dist/components/Ui/Avatar/index.js +4 -0
  49. package/dist/components/Ui/Badge/Badge.js +30 -0
  50. package/dist/components/Ui/Badge/index.js +4 -0
  51. package/dist/components/Ui/Button/Button.js +50 -0
  52. package/dist/components/Ui/Button/index.js +4 -0
  53. package/dist/components/Ui/ButtonsArray/ButtonsArray.js +29 -0
  54. package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +78 -0
  55. package/dist/components/Ui/ButtonsArray/index.js +4 -0
  56. package/dist/components/Ui/Checkbox/Checkbox.js +40 -0
  57. package/dist/components/Ui/Checkbox/Checkbox.stories.js +120 -0
  58. package/dist/components/Ui/Checkbox/index.js +4 -0
  59. package/dist/components/Ui/CliTextareaInput/CliTextareaInput.js +122 -0
  60. package/dist/components/Ui/CliTextareaInput/index.js +23 -0
  61. package/dist/components/Ui/CliTextareaInput/utils/escapeHtml/escapeHtml.js +4 -0
  62. package/dist/components/Ui/CliTextareaInput/utils/fixJson/fixJson.js +12 -0
  63. package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/highlightSyntax.js +20 -0
  64. package/dist/components/Ui/CliTextareaInput/utils/highlightSyntax/index.js +4 -0
  65. package/dist/components/Ui/CliTextareaInput/utils/hooks/index.js +17 -0
  66. package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/index.js +4 -0
  67. package/dist/components/Ui/CliTextareaInput/utils/hooks/useFixFormat/useFixFormat.js +29 -0
  68. package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/index.js +4 -0
  69. package/dist/components/Ui/CliTextareaInput/utils/hooks/useHistoryNavigation/useHistoryNavigation.js +34 -0
  70. package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/index.js +4 -0
  71. package/dist/components/Ui/CliTextareaInput/utils/hooks/useKeyHandlers/useKeyHandlers.js +45 -0
  72. package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/index.js +5 -0
  73. package/dist/components/Ui/CliTextareaInput/utils/hooks/useLineNumbers/useLineNumbers.js +17 -0
  74. package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/index.js +4 -0
  75. package/dist/components/Ui/CliTextareaInput/utils/hooks/useScrollSync/useScrollSync.js +13 -0
  76. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/index.js +4 -0
  77. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextActions/useTextActions.js +37 -0
  78. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/index.js +4 -0
  79. package/dist/components/Ui/CliTextareaInput/utils/hooks/useTextCoursore/useTextCoursore.js +14 -0
  80. package/dist/components/Ui/CliTextareaInput/utils/index.js +21 -0
  81. package/dist/components/Ui/CliTextareaInput/utils/processJson/index.js +4 -0
  82. package/dist/components/Ui/CliTextareaInput/utils/processJson/processJson.js +11 -0
  83. package/dist/components/Ui/CliTextareaInput/utils/processXml/processXml.js +8 -0
  84. package/dist/components/Ui/CliTextareaInput/utils/processYml/processYml.js +27 -0
  85. package/dist/components/Ui/CliTextareaInput/utils/types.js +1 -0
  86. package/dist/components/Ui/CustomLink/CustomLink.js +50 -0
  87. package/dist/components/Ui/CustomLink/index.js +4 -0
  88. package/dist/components/Ui/DatePicker/DatePicker.js +183 -0
  89. package/dist/components/Ui/DatePicker/DatePicker.stories.js +120 -0
  90. package/dist/components/Ui/DropdownInput/DropdownInput.js +92 -0
  91. package/dist/components/Ui/DropdownInput/DropdownInput.stories.js +77 -0
  92. package/dist/components/Ui/DropdownInput/index.js +4 -0
  93. package/dist/components/Ui/DropdownMenu/DropdownMenu.js +84 -0
  94. package/dist/components/Ui/DropdownMenu/DropdownMenu.stories.js +50 -0
  95. package/dist/components/Ui/DropdownMenu/index.js +4 -0
  96. package/dist/components/Ui/FileUpload/FileUpload.js +197 -0
  97. package/dist/components/Ui/FileUpload/fn.js +10 -0
  98. package/dist/components/Ui/FileUpload/index.js +4 -0
  99. package/dist/components/Ui/FileUpload/types.js +1 -0
  100. package/dist/components/Ui/Form/FormContext/FormContext.js +5 -0
  101. package/dist/components/Ui/Form/FormItem/FormItem.js +107 -0
  102. package/dist/components/Ui/Form/FormItem/fn.js +25 -0
  103. package/dist/components/Ui/Form/FormItem/types.js +1 -0
  104. package/dist/components/Ui/Form/FormRoot/FormRoot.js +26 -0
  105. package/dist/components/Ui/Form/FormRoot/index.js +4 -0
  106. package/dist/components/Ui/Form/FormRoot/types.js +1 -0
  107. package/dist/components/Ui/Form/index.js +6 -0
  108. package/dist/components/Ui/Form/useForm/index.js +4 -0
  109. package/dist/components/Ui/Form/useForm/useForm.js +111 -0
  110. package/dist/components/Ui/Form/utils/fn.js +31 -0
  111. package/dist/components/Ui/Form/utils/types.js +1 -0
  112. package/dist/components/Ui/Icons/Icons.js +577 -0
  113. package/dist/components/Ui/Icons/index.js +97 -0
  114. package/dist/components/Ui/Icons/utils/CreateIcon.js +23 -0
  115. package/dist/components/Ui/Loader/Loader.js +7 -0
  116. package/dist/components/Ui/Loader/index.js +4 -0
  117. package/dist/components/Ui/ModalWindow/ModalWindow.js +51 -0
  118. package/dist/components/Ui/ModalWindow/index.js +4 -0
  119. package/dist/components/Ui/Pagination/Pagination.js +39 -0
  120. package/dist/components/Ui/Pagination/index.js +4 -0
  121. package/dist/components/Ui/Radio/Radio.js +31 -0
  122. package/dist/components/Ui/Radio/Radio.stories.js +42 -0
  123. package/dist/components/Ui/Radio/index.js +4 -0
  124. package/dist/components/Ui/SearchInput/SearchData.js +30 -0
  125. package/dist/components/Ui/SearchInput/SearchInput.js +110 -0
  126. package/dist/components/Ui/Skeleton/Skeleton.js +26 -0
  127. package/dist/components/Ui/Skeleton/index.js +4 -0
  128. package/dist/components/Ui/Switch/Switch.js +26 -0
  129. package/dist/components/Ui/Switch/index.js +4 -0
  130. package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.js +50 -0
  131. package/dist/components/Ui/Table/Table.js +161 -0
  132. package/dist/components/Ui/Table/TableTypes.js +1 -0
  133. package/dist/components/Ui/Table/index.js +4 -0
  134. package/dist/components/Ui/Tabs/Tabs.js +25 -0
  135. package/dist/components/Ui/Tabs/Tabs.stories.js +67 -0
  136. package/dist/components/Ui/Tabs/index.js +4 -0
  137. package/dist/components/Ui/TextInput/TextInput.js +86 -0
  138. package/dist/components/Ui/TextInput/TextInput.stories.js +225 -0
  139. package/dist/components/Ui/TextInput/index.js +4 -0
  140. package/dist/components/Ui/TextareaInput/TextareaInput.js +69 -0
  141. package/dist/components/Ui/TextareaInput/TextareaInput.stories.js +19 -0
  142. package/dist/components/Ui/TextareaInput/index.js +4 -0
  143. package/dist/components/Ui/Tooltip/Tooltip.js +93 -0
  144. package/dist/components/Ui/Tooltip/Tooltip.stories.js +87 -0
  145. package/dist/components/Ui/Tooltip/index.js +4 -0
  146. package/dist/context/ToastContext/ToastContext.js +38 -0
  147. package/dist/context/ToastContext/index.js +5 -0
  148. package/dist/context/TriaflyContext/TriaflyContext.types.js +1 -0
  149. package/dist/context/TriaflyContext/TriaflyProvider.js +27 -0
  150. package/dist/context/TriaflyContext/hooks/index.js +8 -0
  151. package/dist/context/TriaflyContext/hooks/useBreakpointValue/index.js +4 -0
  152. package/dist/context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js +11 -0
  153. package/dist/context/TriaflyContext/hooks/useModal/index.js +4 -0
  154. package/dist/context/TriaflyContext/hooks/useModal/useModal.js +16 -0
  155. package/dist/context/TriaflyContext/hooks/useTheme/index.js +4 -0
  156. package/dist/context/TriaflyContext/hooks/useTheme/useTheme.js +17 -0
  157. package/dist/context/TriaflyContext/index.js +12 -0
  158. package/dist/main.d.ts +1229 -0
  159. package/dist/main.js +162 -0
  160. package/dist/node_modules/classnames/index.js +42 -0
  161. package/dist/node_modules/fast-deep-equal/index.js +31 -0
  162. package/dist/node_modules/papaparse/papaparse.min.js +421 -0
  163. package/dist/node_modules/react-paginate/dist/react-paginate.js +259 -0
  164. package/dist/src/components/Ui/Badge/Badge.module.scss.js +30 -0
  165. package/dist/src/components/Ui/Skeleton/Skeleton.module.scss.js +9 -0
  166. package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +15 -0
  167. package/dist/src/context/ToastContext/ToastContext.module.scss.js +9 -0
  168. package/dist/styles/_mixins.scss +22 -0
  169. package/dist/styles/fix.scss +4 -0
  170. package/dist/styles/main.scss +27 -0
  171. package/dist/styles/reset.scss +106 -0
  172. package/dist/styles/typography.scss +102 -0
  173. package/dist/styles/variables.scss +278 -0
  174. package/dist/vite-env.d.js +1 -0
  175. package/package.json +6 -2
  176. package/src/styles/_mixins.scss +22 -0
  177. package/src/styles/fix.scss +4 -0
  178. package/src/styles/main.scss +27 -0
  179. package/src/styles/reset.scss +106 -0
  180. package/src/styles/typography.scss +102 -0
  181. 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,4 @@
1
+ import { Loader as e } from "./Loader.js";
2
+ export {
3
+ e as Loader
4
+ };
@@ -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,4 @@
1
+ import { ModalWindow as r } from "./ModalWindow.js";
2
+ export {
3
+ r as ModalWindow
4
+ };
@@ -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,4 @@
1
+ import { Pagination as i } from "./Pagination.js";
2
+ export {
3
+ i as Pagination
4
+ };
@@ -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,4 @@
1
+ import { Radio as a } from "./Radio.js";
2
+ export {
3
+ a as Radio
4
+ };
@@ -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,4 @@
1
+ import { Skeleton as r } from "./Skeleton.js";
2
+ export {
3
+ r as Skeleton
4
+ };
@@ -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,4 @@
1
+ import { Switch as t } from "./Switch.js";
2
+ export {
3
+ t as Switch
4
+ };
@@ -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
+ };