triafly-ui-kit 1.0.43 → 1.0.45
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/README.md +93 -93
- package/dist/_virtual/index2.js +2 -5
- package/dist/assets/src/components/Ui/Skeleton/Skeleton.module.css +1 -1
- package/dist/assets/src/components/Ui/Table/Table.css +1 -1
- package/dist/assets/src/components/Ui/Table/TableSkeletonRow/TableSkeletonRow.css +1 -0
- package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +1 -1
- package/dist/components/Ui/ButtonsArray/ButtonsArray.js +15 -16
- package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +8 -8
- package/dist/components/Ui/Icons/Icons.js +32 -24
- package/dist/components/Ui/Icons/index.js +69 -67
- package/dist/components/Ui/ModalWindow/ModalWindow.stories.js +89 -0
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.js +30 -31
- package/dist/components/Ui/Table/Table.js +147 -112
- package/dist/components/Ui/Table/TableSkeletonRow/TableSkeletonRow.js +11 -0
- package/dist/main.d.ts +26 -4
- package/dist/main.js +105 -103
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/src/components/Ui/Skeleton/Skeleton.module.scss.js +5 -5
- package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +1 -1
- package/package.json +112 -112
- package/src/styles/_mixins.scss +21 -21
- package/src/styles/fix.scss +3 -3
- package/src/styles/main.scss +26 -26
- package/src/styles/reset.scss +105 -105
- package/src/styles/typography.scss +106 -106
- package/src/styles/variables.scss +277 -277
- package/dist/_virtual/index3.js +0 -4
- package/dist/node_modules/fast-deep-equal/index.js +0 -31
- package/dist/styles/_mixins.scss +0 -22
- package/dist/styles/fix.scss +0 -4
- package/dist/styles/main.scss +0 -27
- package/dist/styles/reset.scss +0 -106
- package/dist/styles/typography.scss +0 -106
- package/dist/styles/variables.scss +0 -277
@@ -0,0 +1,11 @@
|
|
1
|
+
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
2
|
+
import { Skeleton as e } from "../../Skeleton/Skeleton.js";
|
3
|
+
import '../../../../assets/src/components/Ui/Table/TableSkeletonRow/TableSkeletonRow.css';/* empty css */
|
4
|
+
const n = ({ colSpan: r }) => /* @__PURE__ */ o("tr", { className: "skeleton-row", children: /* @__PURE__ */ t("td", { colSpan: r, children: [
|
5
|
+
/* @__PURE__ */ o(e, {}),
|
6
|
+
/* @__PURE__ */ o(e, {}),
|
7
|
+
/* @__PURE__ */ o(e, {})
|
8
|
+
] }) });
|
9
|
+
export {
|
10
|
+
n as TableSkeletonRow
|
11
|
+
};
|
package/dist/main.d.ts
CHANGED
@@ -79,8 +79,8 @@ export declare const ButtonsArray: React.FC<ButtonsArrayProps>;
|
|
79
79
|
export declare interface ButtonsArrayProps {
|
80
80
|
tabs: ButtonTab[];
|
81
81
|
label?: string;
|
82
|
-
|
83
|
-
|
82
|
+
onChange?: (key: string | number) => void;
|
83
|
+
activeKey?: string | number | null | undefined;
|
84
84
|
}
|
85
85
|
|
86
86
|
declare interface ButtonTab {
|
@@ -516,6 +516,13 @@ className?: string;
|
|
516
516
|
viewBox?: string;
|
517
517
|
}>;
|
518
518
|
|
519
|
+
export declare const IconClickHouse: FC< {
|
520
|
+
size?: number;
|
521
|
+
color?: string;
|
522
|
+
className?: string;
|
523
|
+
viewBox?: string;
|
524
|
+
}>;
|
525
|
+
|
519
526
|
export declare const IconCopy: FC< {
|
520
527
|
size?: number;
|
521
528
|
color?: string;
|
@@ -642,6 +649,13 @@ className?: string;
|
|
642
649
|
viewBox?: string;
|
643
650
|
}>;
|
644
651
|
|
652
|
+
export declare const IconGitBranchX: FC< {
|
653
|
+
size?: number;
|
654
|
+
color?: string;
|
655
|
+
className?: string;
|
656
|
+
viewBox?: string;
|
657
|
+
}>;
|
658
|
+
|
645
659
|
export declare const IconGoogleDrive: FC< {
|
646
660
|
size?: number;
|
647
661
|
color?: string;
|
@@ -1135,11 +1149,13 @@ export declare interface TabItem {
|
|
1135
1149
|
disabled?: boolean;
|
1136
1150
|
}
|
1137
1151
|
|
1138
|
-
export declare const Table: <T extends object>(props: TablesProps<T>
|
1152
|
+
export declare const Table: <T extends object>(props: TablesProps<T> & {
|
1153
|
+
ref?: default_2.ForwardedRef<HTMLTableElement>;
|
1154
|
+
}) => JSX.Element;
|
1139
1155
|
|
1140
1156
|
declare type TablesProps<T extends object = Record<string, unknown>> = {
|
1141
1157
|
columns: Column<T>[];
|
1142
|
-
dataSource
|
1158
|
+
dataSource?: T[];
|
1143
1159
|
rowKey: keyof T | ((record: T) => string);
|
1144
1160
|
tableClassName?: string;
|
1145
1161
|
trTheadClassNames?: string;
|
@@ -1159,6 +1175,12 @@ declare type TablesProps<T extends object = Record<string, unknown>> = {
|
|
1159
1175
|
onClickTr?: (record: T) => void;
|
1160
1176
|
onClickTrHeader?: () => void;
|
1161
1177
|
loading?: boolean;
|
1178
|
+
hasMore?: boolean;
|
1179
|
+
loadingIndicator?: default_2.ReactNode;
|
1180
|
+
loaderRef?: default_2.Ref<HTMLTableRowElement>;
|
1181
|
+
entities?: Record<string, T>;
|
1182
|
+
sortedIds?: string[];
|
1183
|
+
externalSorting?: boolean;
|
1162
1184
|
};
|
1163
1185
|
|
1164
1186
|
export declare const Tabs: React.FC<TabsProps>;
|
package/dist/main.js
CHANGED
@@ -1,58 +1,58 @@
|
|
1
1
|
import { Accordeon as e } 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 i } from "./components/Ui/Avatar/Avatar.js";
|
4
4
|
import { ModalWindow as p } from "./components/Ui/ModalWindow/ModalWindow.js";
|
5
5
|
import { Badge as f } from "./components/Ui/Badge/Badge.js";
|
6
6
|
import { DatePicker as x } from "./components/Ui/DatePicker/DatePicker.js";
|
7
7
|
import { DateRangePicker as u } from "./components/Ui/DateRangePicker/DateRangePicker.js";
|
8
|
-
import { Button as
|
9
|
-
import { ButtonsArray as
|
10
|
-
import { Checkbox as
|
11
|
-
import { CliTextareaInput as
|
8
|
+
import { Button as d } from "./components/Ui/Button/Button.js";
|
9
|
+
import { ButtonsArray as w } from "./components/Ui/ButtonsArray/ButtonsArray.js";
|
10
|
+
import { Checkbox as k } from "./components/Ui/Checkbox/Checkbox.js";
|
11
|
+
import { CliTextareaInput as T } from "./components/Ui/CliTextareaInput/CliTextareaInput.js";
|
12
12
|
import "react";
|
13
13
|
import { CustomLink as D } from "./components/Ui/CustomLink/CustomLink.js";
|
14
14
|
import { DropdownInput as P } from "./components/Ui/DropdownInput/DropdownInput.js";
|
15
|
-
import { DropdownMenu as
|
15
|
+
import { DropdownMenu as B } from "./components/Ui/DropdownMenu/DropdownMenu.js";
|
16
16
|
import { FileUpload as F } from "./components/Ui/FileUpload/FileUpload.js";
|
17
17
|
import { Form as R } from "./components/Ui/Form/FormRoot/FormRoot.js";
|
18
18
|
import { useForm as X } from "./components/Ui/Form/useForm/useForm.js";
|
19
19
|
import { Loader as H } from "./components/Ui/Loader/Loader.js";
|
20
|
-
import { Pagination as
|
21
|
-
import { Radio as
|
20
|
+
import { Pagination as N } from "./components/Ui/Pagination/Pagination.js";
|
21
|
+
import { Radio as Q } from "./components/Ui/Radio/Radio.js";
|
22
22
|
import { SearchInput as W } from "./components/Ui/SearchInput/SearchInput.js";
|
23
23
|
import { Skeleton as z } from "./components/Ui/Skeleton/Skeleton.js";
|
24
24
|
import { Switch as Y } from "./components/Ui/Switch/Switch.js";
|
25
25
|
import { Table as q } from "./components/Ui/Table/Table.js";
|
26
26
|
import { TextInput as Z } from "./components/Ui/TextInput/TextInput.js";
|
27
27
|
import { TextareaInput as $ } from "./components/Ui/TextareaInput/TextareaInput.js";
|
28
|
-
import { Tooltip as
|
28
|
+
import { Tooltip as no } from "./components/Ui/Tooltip/Tooltip.js";
|
29
29
|
import { Tabs as eo } from "./components/Ui/Tabs/Tabs.js";
|
30
|
-
import { IconArrowBendUpRight as to, IconArrowClockwise as Io, IconArrowDown as
|
31
|
-
import { ToastProvider as
|
32
|
-
import { TriaflyContext as
|
33
|
-
import { useBreakpointValueTriafly as
|
34
|
-
import { useThemeLogic as
|
35
|
-
import { useModalState as
|
30
|
+
import { IconArrowBendUpRight as to, IconArrowClockwise as Io, IconArrowDown as io, IconArrowLeft as ao, IconArrowLineDown as po, IconArrowLineLeft as lo, IconArrowLineRight as fo, IconArrowLineUp as mo, IconArrowRight as xo, IconArrowUp as so, IconArrowsOut as uo, IconArticle as Co, IconAt as ho, IconBellSimple as wo, IconBookOpenText as go, IconCalendarBlank as ko, IconCaretDown as So, IconCaretLeft as To, IconCaretRight as Ao, IconCaretUp as Do, IconCaretUpDown as Lo, IconChartPieSlice as Po, IconChatText as yo, IconCheck as Bo, IconCheckCircle as Uo, IconChecks as Fo, IconCircleNotch as Mo, IconClickHouse as Ro, IconCopy as vo, IconCornersOut as Xo, IconCsv as bo, IconCube as Ho, IconDatabase as Go, IconDotsNine as No, IconDotsThreeVertical as Oo, IconExport as Qo, IconEye as Eo, IconEyeSlash as Wo, IconFile as Vo, IconFiles as zo, IconFloppyDisk as Jo, IconFolderSimple as Yo, IconFolderSimpleX as jo, IconFunnel as qo, IconGauge as Ko, IconGear as Zo, IconGitBranchX as _o, IconGoogleDrive as $o, IconHand as on, IconHeadCircuit as nn, IconHouse as rn, IconIcon as en, IconInfo as cn, IconJoin as tn, IconLanguage as In, IconLink as an, IconList as pn, IconLock as ln, IconLockOpen as fn, IconMariaDB as mn, IconMinus as xn, IconMongoDB as sn, IconMoon as un, IconMySQL as Cn, IconNavigationArrow as dn, IconNotePencil as hn, IconPassword as wn, IconPen as gn, IconPlay as kn, IconPlugsX as Sn, IconPlus as Tn, IconPorsgteSQL as An, IconPresentationChart as Dn, IconQuestion as Ln, IconQuestionFullfilled as Pn, IconRedo as yn, IconRoleX as Bn, IconSearch as Un, IconSearchX as Fn, IconSelection as Mn, IconServer as Rn, IconSlidersHorizontal as vn, IconSticker as Xn, IconSun as bn, IconThreeDot as Hn, IconTrash as Gn, IconTriangleDown as Nn, IconTriangleUp as On, IconUndo as Qn, IconUploadSimple as En, IconUser as Wn, IconUserX as Vn, IconWarningCircle as zn, IconWrench as Jn, IconX as Yn, IconYandexDisk as jn } from "./components/Ui/Icons/Icons.js";
|
31
|
+
import { ToastProvider as Kn } from "./context/ToastContext/ToastContext.js";
|
32
|
+
import { TriaflyContext as _n, TriaflyProvider as $n, useTriafly as or } from "./context/TriaflyContext/TriaflyProvider.js";
|
33
|
+
import { useBreakpointValueTriafly as rr } from "./context/TriaflyContext/hooks/useBreakpointValue/useBreakpointValue.js";
|
34
|
+
import { useThemeLogic as cr } from "./context/TriaflyContext/hooks/useTheme/useTheme.js";
|
35
|
+
import { useModalState as Ir } from "./context/TriaflyContext/hooks/useModal/useModal.js";
|
36
36
|
export {
|
37
37
|
e as Accordeon,
|
38
38
|
t as Alert,
|
39
|
-
|
39
|
+
i as Avatar,
|
40
40
|
f as Badge,
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
d as Button,
|
42
|
+
w as ButtonsArray,
|
43
|
+
k as Checkbox,
|
44
|
+
T as CliTextareaInput,
|
45
45
|
D as CustomLink,
|
46
46
|
x as DatePicker,
|
47
47
|
u as DateRangePicker,
|
48
48
|
P as DropdownInput,
|
49
|
-
|
49
|
+
B as DropdownMenu,
|
50
50
|
F as FileUpload,
|
51
51
|
R as Form,
|
52
52
|
to as IconArrowBendUpRight,
|
53
53
|
Io as IconArrowClockwise,
|
54
|
-
|
55
|
-
|
54
|
+
io as IconArrowDown,
|
55
|
+
ao as IconArrowLeft,
|
56
56
|
po as IconArrowLineDown,
|
57
57
|
lo as IconArrowLineLeft,
|
58
58
|
fo as IconArrowLineRight,
|
@@ -61,92 +61,94 @@ export {
|
|
61
61
|
so as IconArrowUp,
|
62
62
|
uo as IconArrowsOut,
|
63
63
|
Co as IconArticle,
|
64
|
-
|
65
|
-
|
64
|
+
ho as IconAt,
|
65
|
+
wo as IconBellSimple,
|
66
66
|
go as IconBookOpenText,
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
ko as IconCalendarBlank,
|
68
|
+
So as IconCaretDown,
|
69
|
+
To as IconCaretLeft,
|
70
70
|
Ao as IconCaretRight,
|
71
71
|
Do as IconCaretUp,
|
72
72
|
Lo as IconCaretUpDown,
|
73
73
|
Po as IconChartPieSlice,
|
74
74
|
yo as IconChatText,
|
75
|
-
|
76
|
-
|
75
|
+
Bo as IconCheck,
|
76
|
+
Uo as IconCheckCircle,
|
77
77
|
Fo as IconChecks,
|
78
78
|
Mo as IconCircleNotch,
|
79
|
-
Ro as
|
80
|
-
vo as
|
81
|
-
Xo as
|
82
|
-
bo as
|
83
|
-
Ho as
|
79
|
+
Ro as IconClickHouse,
|
80
|
+
vo as IconCopy,
|
81
|
+
Xo as IconCornersOut,
|
82
|
+
bo as IconCsv,
|
83
|
+
Ho as IconCube,
|
84
|
+
Go as IconDatabase,
|
84
85
|
No as IconDotsNine,
|
85
86
|
Oo as IconDotsThreeVertical,
|
86
87
|
Qo as IconExport,
|
87
88
|
Eo as IconEye,
|
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
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
89
|
+
Wo as IconEyeSlash,
|
90
|
+
Vo as IconFile,
|
91
|
+
zo as IconFiles,
|
92
|
+
Jo as IconFloppyDisk,
|
93
|
+
Yo as IconFolderSimple,
|
94
|
+
jo as IconFolderSimpleX,
|
95
|
+
qo as IconFunnel,
|
96
|
+
Ko as IconGauge,
|
97
|
+
Zo as IconGear,
|
98
|
+
_o as IconGitBranchX,
|
99
|
+
$o as IconGoogleDrive,
|
100
|
+
on as IconHand,
|
101
|
+
nn as IconHeadCircuit,
|
102
|
+
rn as IconHouse,
|
103
|
+
en as IconIcon,
|
104
|
+
cn as IconInfo,
|
105
|
+
tn as IconJoin,
|
106
|
+
In as IconLanguage,
|
107
|
+
an as IconLink,
|
108
|
+
pn as IconList,
|
109
|
+
ln as IconLock,
|
110
|
+
fn as IconLockOpen,
|
111
|
+
mn as IconMariaDB,
|
112
|
+
xn as IconMinus,
|
113
|
+
sn as IconMongoDB,
|
114
|
+
un as IconMoon,
|
115
|
+
Cn as IconMySQL,
|
116
|
+
dn as IconNavigationArrow,
|
117
|
+
hn as IconNotePencil,
|
118
|
+
wn as IconPassword,
|
119
|
+
gn as IconPen,
|
120
|
+
kn as IconPlay,
|
121
|
+
Sn as IconPlugsX,
|
122
|
+
Tn as IconPlus,
|
123
|
+
An as IconPorsgteSQL,
|
124
|
+
Dn as IconPresentationChart,
|
125
|
+
Ln as IconQuestion,
|
126
|
+
Pn as IconQuestionFullfilled,
|
127
|
+
yn as IconRedo,
|
128
|
+
Bn as IconRoleX,
|
129
|
+
Un as IconSearch,
|
130
|
+
Fn as IconSearchX,
|
131
|
+
Mn as IconSelection,
|
132
|
+
Rn as IconServer,
|
133
|
+
vn as IconSlidersHorizontal,
|
134
|
+
Xn as IconSticker,
|
135
|
+
bn as IconSun,
|
136
|
+
Hn as IconThreeDot,
|
137
|
+
Gn as IconTrash,
|
138
|
+
Nn as IconTriangleDown,
|
139
|
+
On as IconTriangleUp,
|
140
|
+
Qn as IconUndo,
|
141
|
+
En as IconUploadSimple,
|
142
|
+
Wn as IconUser,
|
143
|
+
Vn as IconUserX,
|
144
|
+
zn as IconWarningCircle,
|
145
|
+
Jn as IconWrench,
|
146
|
+
Yn as IconX,
|
147
|
+
jn as IconYandexDisk,
|
146
148
|
H as Loader,
|
147
149
|
p as ModalWindow,
|
148
|
-
|
149
|
-
|
150
|
+
N as Pagination,
|
151
|
+
Q as Radio,
|
150
152
|
W as SearchInput,
|
151
153
|
z as Skeleton,
|
152
154
|
Y as Switch,
|
@@ -154,13 +156,13 @@ export {
|
|
154
156
|
eo as Tabs,
|
155
157
|
Z as TextInput,
|
156
158
|
$ as TextareaInput,
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
159
|
+
Kn as ToastProvider,
|
160
|
+
no as Tooltip,
|
161
|
+
_n as TriaflyContext,
|
162
|
+
$n as TriaflyProvider,
|
163
|
+
rr as useBreakpointValueTriafly,
|
162
164
|
X as useForm,
|
163
|
-
|
164
|
-
|
165
|
-
|
165
|
+
Ir as useModalState,
|
166
|
+
cr as useThemeLogic,
|
167
|
+
or as useTriafly
|
166
168
|
};
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import '../../../../assets/src/components/Ui/Skeleton/Skeleton.module.css';const
|
2
|
-
skeleton:
|
3
|
-
animated:
|
1
|
+
import '../../../../assets/src/components/Ui/Skeleton/Skeleton.module.css';const e = "_skeleton_1xagr_1", t = "_animated_1xagr_6", a = {
|
2
|
+
skeleton: e,
|
3
|
+
animated: t
|
4
4
|
};
|
5
5
|
export {
|
6
|
-
|
6
|
+
t as animated,
|
7
7
|
a as default,
|
8
|
-
|
8
|
+
e as skeleton
|
9
9
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import '../../../../assets/src/components/Ui/Tooltip/Tooltip.stories.module.css';const i = "
|
1
|
+
import '../../../../assets/src/components/Ui/Tooltip/Tooltip.stories.module.css';const i = "_container_193w2_1", o = "_trigger_193w2_14", t = "_clickTrigger_193w2_29 _trigger_193w2_14", n = "_positionsContainer_193w2_38", r = "_positionGroup_193w2_42", s = {
|
2
2
|
container: i,
|
3
3
|
trigger: o,
|
4
4
|
clickTrigger: t,
|
package/package.json
CHANGED
@@ -1,112 +1,112 @@
|
|
1
|
-
{
|
2
|
-
"name": "triafly-ui-kit",
|
3
|
-
"version": "1.0.
|
4
|
-
"description": "UI Kit from Triafly",
|
5
|
-
"main": "./dist/main.js",
|
6
|
-
"module": "./dist/main.js",
|
7
|
-
"types": "./dist/main.d.ts",
|
8
|
-
"type": "module",
|
9
|
-
"exports": {
|
10
|
-
".": {
|
11
|
-
"import": "./dist/main.js",
|
12
|
-
"types": "./dist/main.d.ts"
|
13
|
-
},
|
14
|
-
"./dist/*": {
|
15
|
-
"types": "./dist/*.d.ts"
|
16
|
-
},
|
17
|
-
"./variables.scss": {
|
18
|
-
"default": "./src/styles/variables.scss"
|
19
|
-
}
|
20
|
-
},
|
21
|
-
"files": [
|
22
|
-
"dist",
|
23
|
-
"src/styles",
|
24
|
-
"src/assets/fonts"
|
25
|
-
],
|
26
|
-
"scripts": {
|
27
|
-
"build": "npm run build:types && vite build",
|
28
|
-
"build:types": "tsc --build tsconfig.build.json",
|
29
|
-
"dev": "vite",
|
30
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
|
31
|
-
"preview": "vite preview",
|
32
|
-
"prepare": "husky install",
|
33
|
-
"precommit": "npm run lint-staged",
|
34
|
-
"lint-staged": "lint-staged",
|
35
|
-
"storybook": "storybook dev -p 6006",
|
36
|
-
"build-storybook": "storybook build",
|
37
|
-
"prepublish": "npm run build",
|
38
|
-
"release-patch": "npm run build && npm version patch && git push && npm publish"
|
39
|
-
},
|
40
|
-
"browserslist": [
|
41
|
-
"cover 99.5%"
|
42
|
-
],
|
43
|
-
"peerDependencies": {
|
44
|
-
"classnames": "^2.5.1",
|
45
|
-
"react": "^18.0.0",
|
46
|
-
"react-dom": "^18.0.0",
|
47
|
-
"react-router-dom": "6.26.1"
|
48
|
-
},
|
49
|
-
"dependencies": {
|
50
|
-
"dayjs": "^1.11.13",
|
51
|
-
"fast-deep-equal": "^3.1.3",
|
52
|
-
"papaparse": "^5.4.1",
|
53
|
-
"react-paginate": "^8.2.0"
|
54
|
-
},
|
55
|
-
"devDependencies": {
|
56
|
-
"@chromatic-com/storybook": "^3.2.3",
|
57
|
-
"@eslint/js": "^9.25.0",
|
58
|
-
"@storybook/addon-backgrounds": "^8.5.2",
|
59
|
-
"@storybook/addon-essentials": "^8.4.7",
|
60
|
-
"@storybook/addon-interactions": "^8.4.7",
|
61
|
-
"@storybook/addon-onboarding": "^8.4.7",
|
62
|
-
"@storybook/blocks": "^8.4.7",
|
63
|
-
"@storybook/react": "^8.4.7",
|
64
|
-
"@storybook/react-vite": "^8.4.7",
|
65
|
-
"@storybook/test": "^8.4.7",
|
66
|
-
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
67
|
-
"@types/eslint-plugin-prettier": "^3.1.3",
|
68
|
-
"@types/node": "^22.15.21",
|
69
|
-
"@types/papaparse": "^5.3.16",
|
70
|
-
"@types/react": "^18.2.25",
|
71
|
-
"@types/react-dom": "^18.2.25",
|
72
|
-
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
73
|
-
"@typescript-eslint/parser": "^6.21.0",
|
74
|
-
"@vitejs/plugin-react-swc": "^3.9.0",
|
75
|
-
"autoprefixer": "^10.4.21",
|
76
|
-
"eslint": "^8.57.0",
|
77
|
-
"eslint-config-airbnb-typescript": "^17.1.0",
|
78
|
-
"eslint-config-prettier": "^9.1.0",
|
79
|
-
"eslint-import-resolver-typescript": "^4.4.1",
|
80
|
-
"eslint-plugin-import": "^2.29.1",
|
81
|
-
"eslint-plugin-jsx-a11y": "^6.8.0",
|
82
|
-
"eslint-plugin-prettier": "^5.2.1",
|
83
|
-
"eslint-plugin-react": "^7.34.1",
|
84
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
85
|
-
"eslint-plugin-react-refresh": "^0.4.19",
|
86
|
-
"glob": "^11.0.2",
|
87
|
-
"globals": "^16.0.0",
|
88
|
-
"husky": "^9.1.7",
|
89
|
-
"lint-staged": "^16.0.0",
|
90
|
-
"react": "18.2.0",
|
91
|
-
"react-dom": "18.2.0",
|
92
|
-
"react-router-dom": "6.26.1",
|
93
|
-
"sass": "^1.89.0",
|
94
|
-
"storybook": "^8.6.14",
|
95
|
-
"typescript": "~5.8.3",
|
96
|
-
"typescript-eslint": "^8.30.1",
|
97
|
-
"vite": "^6.3.5",
|
98
|
-
"vite-plugin-dts": "^4.5.4",
|
99
|
-
"vite-plugin-lib-inject-css": "^2.2.2",
|
100
|
-
"vite-plugin-static-copy": "^3.0.0",
|
101
|
-
"vite-plugin-svgr": "^4.3.0"
|
102
|
-
},
|
103
|
-
"publishConfig": {
|
104
|
-
"access": "public"
|
105
|
-
},
|
106
|
-
"lint-staged": {
|
107
|
-
"src/**/*.{ts,tsx}": [
|
108
|
-
"eslint --fix",
|
109
|
-
"prettier --write --ignore-unknown"
|
110
|
-
]
|
111
|
-
}
|
112
|
-
}
|
1
|
+
{
|
2
|
+
"name": "triafly-ui-kit",
|
3
|
+
"version": "1.0.45",
|
4
|
+
"description": "UI Kit from Triafly",
|
5
|
+
"main": "./dist/main.js",
|
6
|
+
"module": "./dist/main.js",
|
7
|
+
"types": "./dist/main.d.ts",
|
8
|
+
"type": "module",
|
9
|
+
"exports": {
|
10
|
+
".": {
|
11
|
+
"import": "./dist/main.js",
|
12
|
+
"types": "./dist/main.d.ts"
|
13
|
+
},
|
14
|
+
"./dist/*": {
|
15
|
+
"types": "./dist/*.d.ts"
|
16
|
+
},
|
17
|
+
"./variables.scss": {
|
18
|
+
"default": "./src/styles/variables.scss"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
"files": [
|
22
|
+
"dist",
|
23
|
+
"src/styles",
|
24
|
+
"src/assets/fonts"
|
25
|
+
],
|
26
|
+
"scripts": {
|
27
|
+
"build": "npm run build:types && vite build",
|
28
|
+
"build:types": "tsc --build tsconfig.build.json",
|
29
|
+
"dev": "vite",
|
30
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
|
31
|
+
"preview": "vite preview",
|
32
|
+
"prepare": "husky install",
|
33
|
+
"precommit": "npm run lint-staged",
|
34
|
+
"lint-staged": "lint-staged",
|
35
|
+
"storybook": "storybook dev -p 6006",
|
36
|
+
"build-storybook": "storybook build",
|
37
|
+
"prepublish": "npm run build",
|
38
|
+
"release-patch": "npm run build && npm version patch && git push && npm publish"
|
39
|
+
},
|
40
|
+
"browserslist": [
|
41
|
+
"cover 99.5%"
|
42
|
+
],
|
43
|
+
"peerDependencies": {
|
44
|
+
"classnames": "^2.5.1",
|
45
|
+
"react": "^18.0.0",
|
46
|
+
"react-dom": "^18.0.0",
|
47
|
+
"react-router-dom": "6.26.1"
|
48
|
+
},
|
49
|
+
"dependencies": {
|
50
|
+
"dayjs": "^1.11.13",
|
51
|
+
"fast-deep-equal": "^3.1.3",
|
52
|
+
"papaparse": "^5.4.1",
|
53
|
+
"react-paginate": "^8.2.0"
|
54
|
+
},
|
55
|
+
"devDependencies": {
|
56
|
+
"@chromatic-com/storybook": "^3.2.3",
|
57
|
+
"@eslint/js": "^9.25.0",
|
58
|
+
"@storybook/addon-backgrounds": "^8.5.2",
|
59
|
+
"@storybook/addon-essentials": "^8.4.7",
|
60
|
+
"@storybook/addon-interactions": "^8.4.7",
|
61
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
62
|
+
"@storybook/blocks": "^8.4.7",
|
63
|
+
"@storybook/react": "^8.4.7",
|
64
|
+
"@storybook/react-vite": "^8.4.7",
|
65
|
+
"@storybook/test": "^8.4.7",
|
66
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
67
|
+
"@types/eslint-plugin-prettier": "^3.1.3",
|
68
|
+
"@types/node": "^22.15.21",
|
69
|
+
"@types/papaparse": "^5.3.16",
|
70
|
+
"@types/react": "^18.2.25",
|
71
|
+
"@types/react-dom": "^18.2.25",
|
72
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
73
|
+
"@typescript-eslint/parser": "^6.21.0",
|
74
|
+
"@vitejs/plugin-react-swc": "^3.9.0",
|
75
|
+
"autoprefixer": "^10.4.21",
|
76
|
+
"eslint": "^8.57.0",
|
77
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
78
|
+
"eslint-config-prettier": "^9.1.0",
|
79
|
+
"eslint-import-resolver-typescript": "^4.4.1",
|
80
|
+
"eslint-plugin-import": "^2.29.1",
|
81
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
82
|
+
"eslint-plugin-prettier": "^5.2.1",
|
83
|
+
"eslint-plugin-react": "^7.34.1",
|
84
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
85
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
86
|
+
"glob": "^11.0.2",
|
87
|
+
"globals": "^16.0.0",
|
88
|
+
"husky": "^9.1.7",
|
89
|
+
"lint-staged": "^16.0.0",
|
90
|
+
"react": "18.2.0",
|
91
|
+
"react-dom": "18.2.0",
|
92
|
+
"react-router-dom": "6.26.1",
|
93
|
+
"sass": "^1.89.0",
|
94
|
+
"storybook": "^8.6.14",
|
95
|
+
"typescript": "~5.8.3",
|
96
|
+
"typescript-eslint": "^8.30.1",
|
97
|
+
"vite": "^6.3.5",
|
98
|
+
"vite-plugin-dts": "^4.5.4",
|
99
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
100
|
+
"vite-plugin-static-copy": "^3.0.0",
|
101
|
+
"vite-plugin-svgr": "^4.3.0"
|
102
|
+
},
|
103
|
+
"publishConfig": {
|
104
|
+
"access": "public"
|
105
|
+
},
|
106
|
+
"lint-staged": {
|
107
|
+
"src/**/*.{ts,tsx}": [
|
108
|
+
"eslint --fix",
|
109
|
+
"prettier --write --ignore-unknown"
|
110
|
+
]
|
111
|
+
}
|
112
|
+
}
|