triafly-ui-kit 1.0.14 → 1.0.16
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.
@@ -0,0 +1 @@
|
|
1
|
+
.buttons .buttons-bar{display:flex}.buttons .button{height:44px;padding:0 12px;display:flex;justify-content:center;align-items:center;border:1px solid var(--color-border-primary-default);background-color:var(--color-bg-neutral-basic-default);cursor:pointer}.buttons .button:not(:last-of-type){border-right:0 solid}.buttons .button:first-of-type{border-radius:8px 0 0 8px}.buttons .button:last-of-type{border-radius:0 8px 8px 0}.buttons .button:hover{background:#ddd}.buttons .button.active{background:var(--color-bg-neutral-light-default);font-weight:600}
|
package/dist/assets/Tabs.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.tabs .tabs-bar{display:flex}.tabs .tab-button{
|
1
|
+
.tabs .tabs-bar{display:flex}.tabs .tab-button{padding:0 8px 4px;display:flex;justify-content:center;align-items:center;border:none;border-bottom:1px solid var(--color-border-primary-default);background-color:transparent;cursor:pointer}.tabs .tab-button:first-of-type{padding:0 8px 4px 0}.tabs .tab-button:last-of-type{padding:0 0 4px 8px}.tabs .tab-button:hover,.tabs .tab-button.active{color:var(--color-border-brand-default);border-bottom:1px solid var(--color-border-brand-default)}.tabs .tab-button.disabled{pointer-events:none}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { useState as r } from "react";
|
3
|
+
import '../../../assets/ButtonsArray.css';const m = ({ buttonsArray: e }) => {
|
4
|
+
const [a, c] = r(0);
|
5
|
+
return /* @__PURE__ */ o("div", { className: "buttons", children: [
|
6
|
+
/* @__PURE__ */ s("div", { className: "buttons-bar", children: e.map((n, t) => /* @__PURE__ */ s(
|
7
|
+
"button",
|
8
|
+
{
|
9
|
+
onClick: () => c(t),
|
10
|
+
className: `button ${t === a ? "active" : ""}`,
|
11
|
+
children: n.label
|
12
|
+
},
|
13
|
+
t
|
14
|
+
)) }),
|
15
|
+
/* @__PURE__ */ s("div", { className: "buttons-content", children: e[a].content })
|
16
|
+
] });
|
17
|
+
};
|
18
|
+
export {
|
19
|
+
m as ButtonsArray
|
20
|
+
};
|
package/dist/main.d.ts
CHANGED
@@ -56,6 +56,11 @@ declare type BreakpointValuesTriafly<T> = {
|
|
56
56
|
|
57
57
|
export declare const Button: default_2.FC<ButtonProps>;
|
58
58
|
|
59
|
+
declare interface Button_2 {
|
60
|
+
label: string;
|
61
|
+
content: React.ReactNode;
|
62
|
+
}
|
63
|
+
|
59
64
|
declare type ButtonProps = {
|
60
65
|
style?: default_2.CSSProperties;
|
61
66
|
label?: string;
|
@@ -71,6 +76,12 @@ declare type ButtonProps = {
|
|
71
76
|
iconTail?: ReactElement;
|
72
77
|
};
|
73
78
|
|
79
|
+
export declare const ButtonsArray: React.FC<ButtonsArrayProps>;
|
80
|
+
|
81
|
+
export declare interface ButtonsArrayProps {
|
82
|
+
buttonsArray: Button_2[];
|
83
|
+
}
|
84
|
+
|
74
85
|
export declare const Checkbox: React.FC<CheckboxProps>;
|
75
86
|
|
76
87
|
declare type CheckboxProps = {
|
package/dist/main.js
CHANGED
@@ -3,156 +3,158 @@ import { Alert as I } from "./components/Ui/Alert/Alert.js";
|
|
3
3
|
import { Avatar as i } from "./components/Ui/Avatar/Avatar.js";
|
4
4
|
import { Badge as p } from "./components/Ui/Badge/Badge.js";
|
5
5
|
import { Button as f } from "./components/Ui/Button/Button.js";
|
6
|
-
import {
|
7
|
-
import {
|
6
|
+
import { ButtonsArray as x } from "./components/Ui/ButtonsArray/ButtonsArray.js";
|
7
|
+
import { Checkbox as u } from "./components/Ui/Checkbox/Checkbox.js";
|
8
|
+
import { CliTextareaInput as d } from "./components/Ui/CliTextareaInput/CliTextareaInput.js";
|
8
9
|
import "react";
|
9
|
-
import { CustomLink as
|
10
|
-
import { DropdownInput as
|
11
|
-
import { DropdownMenu as
|
12
|
-
import { FileUpload as
|
13
|
-
import { Form as
|
14
|
-
import { useForm as
|
15
|
-
import { Loader as
|
16
|
-
import { Pagination as
|
17
|
-
import { Radio as
|
18
|
-
import { SearchInput as
|
19
|
-
import { Skeleton as
|
20
|
-
import { Switch as
|
21
|
-
import { Table as
|
22
|
-
import { TextInput as
|
23
|
-
import { TextareaInput as
|
24
|
-
import { Tooltip as
|
25
|
-
import { Tabs as
|
26
|
-
import { IconArrowBendUpRight as
|
27
|
-
import { ToastProvider as
|
28
|
-
import { TriaflyContext as
|
29
|
-
import { useBreakpointValueTriafly as
|
30
|
-
import { useThemeLogic as
|
31
|
-
import { useModalState as
|
10
|
+
import { CustomLink as w } from "./components/Ui/CustomLink/CustomLink.js";
|
11
|
+
import { DropdownInput as T } from "./components/Ui/DropdownInput/DropdownInput.js";
|
12
|
+
import { DropdownMenu as A } from "./components/Ui/DropdownMenu/DropdownMenu.js";
|
13
|
+
import { FileUpload as k } from "./components/Ui/FileUpload/FileUpload.js";
|
14
|
+
import { Form as P } from "./components/Ui/Form/FormRoot/FormRoot.js";
|
15
|
+
import { useForm as U } from "./components/Ui/Form/useForm/useForm.js";
|
16
|
+
import { Loader as F } from "./components/Ui/Loader/Loader.js";
|
17
|
+
import { Pagination as M } from "./components/Ui/Pagination/Pagination.js";
|
18
|
+
import { Radio as X } from "./components/Ui/Radio/Radio.js";
|
19
|
+
import { SearchInput as H } from "./components/Ui/SearchInput/SearchInput.js";
|
20
|
+
import { Skeleton as O } from "./components/Ui/Skeleton/Skeleton.js";
|
21
|
+
import { Switch as E } from "./components/Ui/Switch/Switch.js";
|
22
|
+
import { Table as V } from "./components/Ui/Table/Table.js";
|
23
|
+
import { TextInput as z } from "./components/Ui/TextInput/TextInput.js";
|
24
|
+
import { TextareaInput as Y } from "./components/Ui/TextareaInput/TextareaInput.js";
|
25
|
+
import { Tooltip as q } from "./components/Ui/Tooltip/Tooltip.js";
|
26
|
+
import { Tabs as Z } from "./components/Ui/Tabs/Tabs.js";
|
27
|
+
import { IconArrowBendUpRight as $, IconArrowClockwise as oo, IconArrowDown as no, IconArrowLeft as ro, IconArrowLineDown as eo, IconArrowLineLeft as co, IconArrowLineRight as Io, IconArrowLineUp as to, IconArrowRight as io, IconArrowUp as ao, IconArrowsOut as po, IconArticle as lo, IconAt as fo, IconBellSimple as mo, IconBookOpenText as xo, IconCalendarBlank as so, IconCaretDown as uo, IconCaretLeft as Co, IconCaretRight as ho, IconCaretUp as wo, IconCaretUpDown as So, IconChartPieSlice as To, IconChatText as go, IconCheck as Ao, IconCheckCircle as Lo, IconChecks as ko, IconCircleNotch as Do, IconCopy as Po, IconCornersOut as yo, IconCsv as Uo, IconCube as Bo, IconDatabase as Fo, IconDotsNine as vo, IconDotsThreeVertical as Mo, IconExport as Ro, IconEye as Xo, IconEyeSlash as bo, IconFile as Ho, IconFiles as No, IconFloppyDisk as Oo, IconFolderSimple as Qo, IconFolderSimpleX as Eo, IconFunnel as Go, IconGauge as Vo, IconGear as Wo, IconGoogleDrive as zo, IconHand as Jo, IconHeadCircuit as Yo, IconHouse as jo, IconIcon as qo, IconInfo as Ko, IconJoin as Zo, IconLanguage as _o, IconLink as $o, IconList as on, IconLock as nn, IconLockOpen as rn, IconMariaDB as en, IconMinus as cn, IconMongoDB as In, IconMoon as tn, IconMySQL as an, IconNavigationArrow as pn, IconNotePencil as ln, IconPassword as fn, IconPen as mn, IconPlay as xn, IconPlugsX as sn, IconPlus as un, IconPorsgteSQL as Cn, IconPresentationChart as dn, IconQuestion as hn, IconQuestionFullfilled as wn, IconRedo as Sn, IconRoleX as Tn, IconSearch as gn, IconSearchX as An, IconSelection as Ln, IconServer as kn, IconSlidersHorizontal as Dn, IconSticker as Pn, IconSun as yn, IconThreeDot as Un, IconTrash as Bn, IconTriangleDown as Fn, IconTriangleUp as vn, IconUndo as Mn, IconUploadSimple as Rn, IconUser as Xn, IconUserX as bn, IconWarningCircle as Hn, IconWrench as Nn, IconX as On, IconYandexDisk as Qn } from "./components/Ui/Icons/Icons.js";
|
28
|
+
import { ToastProvider as Gn } from "./context/ToastContext/ToastContext.js";
|
29
|
+
import { TriaflyContext as Wn, TriaflyProvider as zn, useTriafly as Jn } from "./context/TriaflyContext/TriaflyProvider.js";
|
30
|
+
import { useBreakpointValueTriafly as jn } from "./context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js";
|
31
|
+
import { useThemeLogic as Kn } from "./context/TriaflyContext/hooks/useTheme/useTheme.js";
|
32
|
+
import { useModalState as _n } from "./context/TriaflyContext/hooks/useModal/useModal.js";
|
32
33
|
export {
|
33
34
|
e as Accordeon,
|
34
35
|
I as Alert,
|
35
36
|
i as Avatar,
|
36
37
|
p as Badge,
|
37
38
|
f as Button,
|
38
|
-
x as
|
39
|
-
u as
|
40
|
-
d as
|
41
|
-
w as
|
42
|
-
T as
|
43
|
-
A as
|
44
|
-
k as
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
Uo as
|
76
|
-
|
77
|
-
Fo as
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
Un as
|
129
|
-
|
130
|
-
Fn as
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
M as
|
142
|
-
X as
|
143
|
-
H as
|
144
|
-
O as
|
145
|
-
E as
|
146
|
-
|
147
|
-
|
148
|
-
z as
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
39
|
+
x as ButtonsArray,
|
40
|
+
u as Checkbox,
|
41
|
+
d as CliTextareaInput,
|
42
|
+
w as CustomLink,
|
43
|
+
T as DropdownInput,
|
44
|
+
A as DropdownMenu,
|
45
|
+
k as FileUpload,
|
46
|
+
P as Form,
|
47
|
+
$ as IconArrowBendUpRight,
|
48
|
+
oo as IconArrowClockwise,
|
49
|
+
no as IconArrowDown,
|
50
|
+
ro as IconArrowLeft,
|
51
|
+
eo as IconArrowLineDown,
|
52
|
+
co as IconArrowLineLeft,
|
53
|
+
Io as IconArrowLineRight,
|
54
|
+
to as IconArrowLineUp,
|
55
|
+
io as IconArrowRight,
|
56
|
+
ao as IconArrowUp,
|
57
|
+
po as IconArrowsOut,
|
58
|
+
lo as IconArticle,
|
59
|
+
fo as IconAt,
|
60
|
+
mo as IconBellSimple,
|
61
|
+
xo as IconBookOpenText,
|
62
|
+
so as IconCalendarBlank,
|
63
|
+
uo as IconCaretDown,
|
64
|
+
Co as IconCaretLeft,
|
65
|
+
ho as IconCaretRight,
|
66
|
+
wo as IconCaretUp,
|
67
|
+
So as IconCaretUpDown,
|
68
|
+
To as IconChartPieSlice,
|
69
|
+
go as IconChatText,
|
70
|
+
Ao as IconCheck,
|
71
|
+
Lo as IconCheckCircle,
|
72
|
+
ko as IconChecks,
|
73
|
+
Do as IconCircleNotch,
|
74
|
+
Po as IconCopy,
|
75
|
+
yo as IconCornersOut,
|
76
|
+
Uo as IconCsv,
|
77
|
+
Bo as IconCube,
|
78
|
+
Fo as IconDatabase,
|
79
|
+
vo as IconDotsNine,
|
80
|
+
Mo as IconDotsThreeVertical,
|
81
|
+
Ro as IconExport,
|
82
|
+
Xo as IconEye,
|
83
|
+
bo as IconEyeSlash,
|
84
|
+
Ho as IconFile,
|
85
|
+
No as IconFiles,
|
86
|
+
Oo as IconFloppyDisk,
|
87
|
+
Qo as IconFolderSimple,
|
88
|
+
Eo as IconFolderSimpleX,
|
89
|
+
Go as IconFunnel,
|
90
|
+
Vo as IconGauge,
|
91
|
+
Wo as IconGear,
|
92
|
+
zo as IconGoogleDrive,
|
93
|
+
Jo as IconHand,
|
94
|
+
Yo as IconHeadCircuit,
|
95
|
+
jo as IconHouse,
|
96
|
+
qo as IconIcon,
|
97
|
+
Ko as IconInfo,
|
98
|
+
Zo as IconJoin,
|
99
|
+
_o as IconLanguage,
|
100
|
+
$o as IconLink,
|
101
|
+
on as IconList,
|
102
|
+
nn as IconLock,
|
103
|
+
rn as IconLockOpen,
|
104
|
+
en as IconMariaDB,
|
105
|
+
cn as IconMinus,
|
106
|
+
In as IconMongoDB,
|
107
|
+
tn as IconMoon,
|
108
|
+
an as IconMySQL,
|
109
|
+
pn as IconNavigationArrow,
|
110
|
+
ln as IconNotePencil,
|
111
|
+
fn as IconPassword,
|
112
|
+
mn as IconPen,
|
113
|
+
xn as IconPlay,
|
114
|
+
sn as IconPlugsX,
|
115
|
+
un as IconPlus,
|
116
|
+
Cn as IconPorsgteSQL,
|
117
|
+
dn as IconPresentationChart,
|
118
|
+
hn as IconQuestion,
|
119
|
+
wn as IconQuestionFullfilled,
|
120
|
+
Sn as IconRedo,
|
121
|
+
Tn as IconRoleX,
|
122
|
+
gn as IconSearch,
|
123
|
+
An as IconSearchX,
|
124
|
+
Ln as IconSelection,
|
125
|
+
kn as IconServer,
|
126
|
+
Dn as IconSlidersHorizontal,
|
127
|
+
Pn as IconSticker,
|
128
|
+
yn as IconSun,
|
129
|
+
Un as IconThreeDot,
|
130
|
+
Bn as IconTrash,
|
131
|
+
Fn as IconTriangleDown,
|
132
|
+
vn as IconTriangleUp,
|
133
|
+
Mn as IconUndo,
|
134
|
+
Rn as IconUploadSimple,
|
135
|
+
Xn as IconUser,
|
136
|
+
bn as IconUserX,
|
137
|
+
Hn as IconWarningCircle,
|
138
|
+
Nn as IconWrench,
|
139
|
+
On as IconX,
|
140
|
+
Qn as IconYandexDisk,
|
141
|
+
F as Loader,
|
142
|
+
M as Pagination,
|
143
|
+
X as Radio,
|
144
|
+
H as SearchInput,
|
145
|
+
O as Skeleton,
|
146
|
+
E as Switch,
|
147
|
+
V as Table,
|
148
|
+
Z as Tabs,
|
149
|
+
z as TextInput,
|
150
|
+
Y as TextareaInput,
|
151
|
+
Gn as ToastProvider,
|
152
|
+
q as Tooltip,
|
153
|
+
Wn as TriaflyContext,
|
154
|
+
zn as TriaflyProvider,
|
155
|
+
jn as useBreakpointValueTriafly,
|
156
|
+
U as useForm,
|
157
|
+
_n as useModalState,
|
158
|
+
Kn as useThemeLogic,
|
159
|
+
Jn as useTriafly
|
158
160
|
};
|