triafly-ui-kit 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
2
|
-
import { createContext as s,
|
2
|
+
import { createContext as s, useMemo as m, useContext as a } from "react";
|
3
3
|
import { useBreakpointValueTriafly as u } from "./hooks/useBreakpointValue/useBreakpointValue.js";
|
4
4
|
import { useThemeLogic as f } from "./hooks/useTheme/useTheme.js";
|
5
5
|
import { useModalState as l } from "./hooks/useModal/useModal.js";
|
6
6
|
const t = s(void 0), y = () => {
|
7
|
-
const e =
|
7
|
+
const e = a(t);
|
8
8
|
if (!e)
|
9
9
|
throw new Error("useTriafly must be used within a TriaflyProvider");
|
10
10
|
return e;
|
11
11
|
}, h = ({ children: e }) => {
|
12
|
-
const { theme: o, toggleTheme: r } = f(), i =
|
12
|
+
const { theme: o, toggleTheme: r } = f(), i = m(
|
13
13
|
() => ({
|
14
14
|
theme: o,
|
15
15
|
toggleTheme: r,
|
@@ -23,4 +23,4 @@ export { Tooltip } from './components/Ui/Tooltip';
|
|
23
23
|
export { Tree } from './components/Ui/Tree';
|
24
24
|
export * from './components/Ui/Icons';
|
25
25
|
export { ToastProvider } from './context/ToastContext';
|
26
|
-
export { TriaflyContext } from './context/TriaflyContext';
|
26
|
+
export { TriaflyContext, TriaflyProvider } from './context/TriaflyContext';
|
@@ -1,19 +1,19 @@
|
|
1
1
|
import { Accordeon as c } from "./components/Ui/Accordeon/Accordeon.js";
|
2
2
|
import { Alert as t } from "./components/Ui/Alert/Alert.js";
|
3
|
-
import { Avatar as
|
3
|
+
import { Avatar as a } from "./components/Ui/Avatar/Avatar.js";
|
4
4
|
import { Badge as l } from "./components/Ui/Badge/Badge.js";
|
5
5
|
import { Button as x } from "./components/Ui/Button/Button.js";
|
6
6
|
import { Checkbox as s } from "./components/Ui/Checkbox/Checkbox.js";
|
7
7
|
import { CliTextareaInput as u } from "./components/Ui/CliTextareaInput/CliTextareaInput.js";
|
8
8
|
import "react";
|
9
|
-
import { CustomLink as
|
9
|
+
import { CustomLink as w } from "./components/Ui/CustomLink/CustomLink.js";
|
10
10
|
import { DropdownInput as S } from "./components/Ui/DropdownInput/DropdownInput.js";
|
11
11
|
import { DropdownMenu as A } from "./components/Ui/DropdownMenu/DropdownMenu.js";
|
12
12
|
import { FileUpload as L } from "./components/Ui/FileUpload/FileUpload.js";
|
13
|
-
import { Form as
|
13
|
+
import { Form as k } from "./components/Ui/Form/FormRoot/FormRoot.js";
|
14
14
|
import { useForm as U } from "./components/Ui/Form/useForm/useForm.js";
|
15
|
-
import { Loader as
|
16
|
-
import { Pagination as
|
15
|
+
import { Loader as y } from "./components/Ui/Loader/Loader.js";
|
16
|
+
import { Pagination as v } from "./components/Ui/Pagination/Pagination.js";
|
17
17
|
import { Radio as M } from "./components/Ui/Radio/Radio.js";
|
18
18
|
import { SearchInput as b } from "./components/Ui/SearchInput/SearchInput.js";
|
19
19
|
import { Skeleton as N } from "./components/Ui/Skeleton/Skeleton.js";
|
@@ -23,23 +23,23 @@ import { TextInput as z } from "./components/Ui/TextInput/TextInput.js";
|
|
23
23
|
import { TextareaInput as V } from "./components/Ui/TextareaInput/TextareaInput.js";
|
24
24
|
import { Tooltip as j } from "./components/Ui/Tooltip/Tooltip.js";
|
25
25
|
import { Tree as K } from "./components/Ui/Tree/TreeEl/Tree.js";
|
26
|
-
import { IconArrowBendUpRight as _, IconArrowClockwise as $, IconArrowDown as oo, IconArrowLeft as no, IconArrowLineDown as ro, IconArrowLineLeft as eo, IconArrowLineRight as co, IconArrowLineUp as Io, IconArrowRight as to, IconArrowUp as io, IconArrowsOut as
|
26
|
+
import { IconArrowBendUpRight as _, IconArrowClockwise as $, IconArrowDown as oo, IconArrowLeft as no, IconArrowLineDown as ro, IconArrowLineLeft as eo, IconArrowLineRight as co, IconArrowLineUp as Io, IconArrowRight as to, IconArrowUp as io, IconArrowsOut as ao, IconArticle as po, IconAt as lo, IconBellSimple as mo, IconBookOpenText as xo, IconCalendarBlank as fo, IconCaretDown as so, IconCaretLeft as Co, IconCaretRight as uo, IconCaretUp as wo, IconCaretUpDown as ho, IconChartPieSlice as So, IconChatText as go, IconCheck as Ao, IconCheckCircle as Do, IconChecks as Lo, IconCircleNotch as To, IconCopy as ko, IconCornersOut as Po, IconCsv as Uo, IconCube as Fo, IconDatabase as yo, IconDotsNine as Bo, IconDotsThreeVertical as vo, IconExport as Ro, IconEye as Mo, IconEyeSlash as Xo, IconFile as bo, IconFiles as Ho, IconFloppyDisk as No, IconFolderSimple as Oo, IconFolderSimpleX as Qo, IconFunnel as Eo, IconGauge as Go, IconGear as Wo, IconGoogleDrive as zo, IconHand as Jo, IconHeadCircuit as Vo, IconHouse as Yo, IconIcon as jo, IconInfo as qo, IconJoin as Ko, IconLanguage as Zo, IconLink as _o, IconList as $o, IconLock as on, IconLockOpen as nn, IconMariaDB as rn, IconMinus as en, IconMongoDB as cn, IconMoon as In, IconMySQL as tn, IconNavigationArrow as an, IconNotePencil as pn, IconPassword as ln, IconPen as mn, IconPlay as xn, IconPlugsX as fn, IconPlus as sn, IconPorsgteSQL as Cn, IconPresentationChart as un, IconQuestion as dn, IconQuestionFullfilled as wn, IconRedo as hn, IconRoleX as Sn, IconSearch as gn, IconSearchX as An, IconSelection as Dn, IconServer as Ln, IconSlidersHorizontal as Tn, IconSticker as kn, IconSun as Pn, IconThreeDot as Un, IconTrash as Fn, IconTriangleDown as yn, IconTriangleUp as Bn, IconUndo as vn, IconUploadSimple as Rn, IconUser as Mn, IconUserX as Xn, IconWarningCircle as bn, IconWrench as Hn, IconX as Nn, IconYandexDisk as On } from "./components/Ui/Icons/Icons.js";
|
27
27
|
import { ToastProvider as En } from "./context/ToastContext/ToastContext.js";
|
28
|
-
import { TriaflyContext as Wn } from "./context/TriaflyContext/TriaflyProvider.js";
|
28
|
+
import { TriaflyContext as Wn, TriaflyProvider as zn } from "./context/TriaflyContext/TriaflyProvider.js";
|
29
29
|
import "./context/TriaflyContext/hooks/useTheme/useTheme.js";
|
30
30
|
export {
|
31
31
|
c as Accordeon,
|
32
32
|
t as Alert,
|
33
|
-
|
33
|
+
a as Avatar,
|
34
34
|
l as Badge,
|
35
35
|
x as Button,
|
36
36
|
s as Checkbox,
|
37
37
|
u as CliTextareaInput,
|
38
|
-
|
38
|
+
w as CustomLink,
|
39
39
|
S as DropdownInput,
|
40
40
|
A as DropdownMenu,
|
41
41
|
L as FileUpload,
|
42
|
-
|
42
|
+
k as Form,
|
43
43
|
_ as IconArrowBendUpRight,
|
44
44
|
$ as IconArrowClockwise,
|
45
45
|
oo as IconArrowDown,
|
@@ -50,8 +50,8 @@ export {
|
|
50
50
|
Io as IconArrowLineUp,
|
51
51
|
to as IconArrowRight,
|
52
52
|
io as IconArrowUp,
|
53
|
-
|
54
|
-
|
53
|
+
ao as IconArrowsOut,
|
54
|
+
po as IconArticle,
|
55
55
|
lo as IconAt,
|
56
56
|
mo as IconBellSimple,
|
57
57
|
xo as IconBookOpenText,
|
@@ -66,15 +66,15 @@ export {
|
|
66
66
|
Ao as IconCheck,
|
67
67
|
Do as IconCheckCircle,
|
68
68
|
Lo as IconChecks,
|
69
|
-
|
70
|
-
|
69
|
+
To as IconCircleNotch,
|
70
|
+
ko as IconCopy,
|
71
71
|
Po as IconCornersOut,
|
72
72
|
Uo as IconCsv,
|
73
73
|
Fo as IconCube,
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
74
|
+
yo as IconDatabase,
|
75
|
+
Bo as IconDotsNine,
|
76
|
+
vo as IconDotsThreeVertical,
|
77
|
+
Ro as IconExport,
|
78
78
|
Mo as IconEye,
|
79
79
|
Xo as IconEyeSlash,
|
80
80
|
bo as IconFile,
|
@@ -102,8 +102,8 @@ export {
|
|
102
102
|
cn as IconMongoDB,
|
103
103
|
In as IconMoon,
|
104
104
|
tn as IconMySQL,
|
105
|
-
|
106
|
-
|
105
|
+
an as IconNavigationArrow,
|
106
|
+
pn as IconNotePencil,
|
107
107
|
ln as IconPassword,
|
108
108
|
mn as IconPen,
|
109
109
|
xn as IconPlay,
|
@@ -111,31 +111,31 @@ export {
|
|
111
111
|
sn as IconPlus,
|
112
112
|
Cn as IconPorsgteSQL,
|
113
113
|
un as IconPresentationChart,
|
114
|
-
|
115
|
-
|
114
|
+
dn as IconQuestion,
|
115
|
+
wn as IconQuestionFullfilled,
|
116
116
|
hn as IconRedo,
|
117
117
|
Sn as IconRoleX,
|
118
118
|
gn as IconSearch,
|
119
119
|
An as IconSearchX,
|
120
120
|
Dn as IconSelection,
|
121
121
|
Ln as IconServer,
|
122
|
-
|
123
|
-
|
122
|
+
Tn as IconSlidersHorizontal,
|
123
|
+
kn as IconSticker,
|
124
124
|
Pn as IconSun,
|
125
125
|
Un as IconThreeDot,
|
126
126
|
Fn as IconTrash,
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
127
|
+
yn as IconTriangleDown,
|
128
|
+
Bn as IconTriangleUp,
|
129
|
+
vn as IconUndo,
|
130
|
+
Rn as IconUploadSimple,
|
131
131
|
Mn as IconUser,
|
132
132
|
Xn as IconUserX,
|
133
133
|
bn as IconWarningCircle,
|
134
134
|
Hn as IconWrench,
|
135
135
|
Nn as IconX,
|
136
136
|
On as IconYandexDisk,
|
137
|
-
|
138
|
-
|
137
|
+
y as Loader,
|
138
|
+
v as Pagination,
|
139
139
|
M as Radio,
|
140
140
|
b as SearchInput,
|
141
141
|
N as Skeleton,
|
@@ -147,5 +147,6 @@ export {
|
|
147
147
|
j as Tooltip,
|
148
148
|
K as Tree,
|
149
149
|
Wn as TriaflyContext,
|
150
|
+
zn as TriaflyProvider,
|
150
151
|
U as useForm
|
151
152
|
};
|
package/dist/vite-env.d.js
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
|
package/package.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "triafly-ui-kit",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.2",
|
4
4
|
"description": "UI Kit from Triafly",
|
5
|
-
"main": "./dist/
|
6
|
-
"module": "./dist/
|
7
|
-
"types": "./dist/
|
5
|
+
"main": "./dist/main.js",
|
6
|
+
"module": "./dist/main.js",
|
7
|
+
"types": "./dist/main.d.ts",
|
8
8
|
"type": "module",
|
9
9
|
"exports": {
|
10
10
|
".": {
|
11
|
-
"import": "./dist/
|
12
|
-
"types": "./dist/
|
11
|
+
"import": "./dist/main.js",
|
12
|
+
"types": "./dist/main.d.ts"
|
13
13
|
}
|
14
14
|
},
|
15
15
|
"files": [
|
package/dist/common.d.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|