nntc-ui 0.0.1

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 ADDED
@@ -0,0 +1,52 @@
1
+ # NNTC UI Kit
2
+
3
+ React компонентная библиотека для создания пользовательских интерфейсов.
4
+
5
+ ## Установка
6
+
7
+ ```bash
8
+ npm install nntc-ui-kit
9
+ ```
10
+
11
+ ## Использование
12
+
13
+ ```tsx
14
+ import 'nntc-ui-kit/index.css';
15
+ import 'nntc-ui-kit/themes/dark.css'; или import 'nntc-ui-kit/themes/light.css';
16
+ import 'nntc-ui-kit/styles/global.css';
17
+ import { InfoIcon } from 'nntc-ui-kit/icons';
18
+ import { Button } from 'nntc-ui-kit';
19
+
20
+ function App() {
21
+ return (
22
+ <Button variant="primary" icon={<InfoIcon />} onClick={() => console.log('clicked')}>
23
+ Нажми меня
24
+ </Button>
25
+ );
26
+ }
27
+ ```
28
+
29
+ ## Разработка
30
+
31
+ 1. Клонируйте репозиторий
32
+ 2. Установите зависимости:
33
+
34
+ ```bash
35
+ npm install
36
+ ```
37
+
38
+ 3. Запустите сервер разработки:
39
+
40
+ ```bash
41
+ npm run dev
42
+ ```
43
+
44
+ ## Сборка
45
+
46
+ ```bash
47
+ npm run build
48
+ ```
49
+
50
+ ## Лицензия
51
+
52
+ MIT
@@ -0,0 +1,172 @@
1
+ // src/icons/Icon.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var Icon = ({
4
+ size = 24,
5
+ color = "currentColor",
6
+ className,
7
+ children
8
+ }) => {
9
+ return /* @__PURE__ */ jsx(
10
+ "svg",
11
+ {
12
+ width: size,
13
+ height: size,
14
+ viewBox: "0 0 24 24",
15
+ fill: color,
16
+ className,
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ children
19
+ }
20
+ );
21
+ };
22
+
23
+ // src/icons/AddIcon.tsx
24
+ import { jsx as jsx2 } from "react/jsx-runtime";
25
+ var AddIcon = (props) => /* @__PURE__ */ jsx2(Icon, { ...props, children: /* @__PURE__ */ jsx2("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) });
26
+
27
+ // src/icons/ArrowDropDownIcon.tsx
28
+ import { jsx as jsx3 } from "react/jsx-runtime";
29
+ var ArrowDropDownIcon = (props) => /* @__PURE__ */ jsx3(Icon, { ...props, children: /* @__PURE__ */ jsx3("path", { d: "M7 10l5 5 5-5z" }) });
30
+
31
+ // src/icons/ArrowDropUpIcon.tsx
32
+ import { jsx as jsx4 } from "react/jsx-runtime";
33
+ var ArrowDropUpIcon = (props) => /* @__PURE__ */ jsx4(Icon, { ...props, children: /* @__PURE__ */ jsx4("path", { d: "M7 14l5-5 5 5z" }) });
34
+
35
+ // src/icons/AttachIcon.tsx
36
+ import { jsx as jsx5 } from "react/jsx-runtime";
37
+ var AttachIcon = (props) => /* @__PURE__ */ jsx5(Icon, { ...props, children: /* @__PURE__ */ jsx5("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z" }) });
38
+
39
+ // src/icons/BarChartIcon.tsx
40
+ import { jsx as jsx6 } from "react/jsx-runtime";
41
+ var BarChartIcon = (props) => /* @__PURE__ */ jsx6(Icon, { ...props, children: /* @__PURE__ */ jsx6("path", { d: "M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z" }) });
42
+
43
+ // src/icons/CheckboxIcon.tsx
44
+ import { jsx as jsx7 } from "react/jsx-runtime";
45
+ var CheckboxIcon = (props) => /* @__PURE__ */ jsx7(Icon, { ...props, children: /* @__PURE__ */ jsx7("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) });
46
+
47
+ // src/icons/CheckboxDeselectedIcon.tsx
48
+ import { jsx as jsx8 } from "react/jsx-runtime";
49
+ var CheckboxDeselectedIcon = (props) => /* @__PURE__ */ jsx8(Icon, { ...props, children: /* @__PURE__ */ jsx8("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" }) });
50
+
51
+ // src/icons/CheckboxSeveralIcon.tsx
52
+ import { jsx as jsx9 } from "react/jsx-runtime";
53
+ var CheckboxSeveralIcon = (props) => /* @__PURE__ */ jsx9(Icon, { ...props, children: /* @__PURE__ */ jsx9("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z" }) });
54
+
55
+ // src/icons/ChevronLeftIcon.tsx
56
+ import { jsx as jsx10 } from "react/jsx-runtime";
57
+ var ChevronLeftIcon = (props) => /* @__PURE__ */ jsx10(Icon, { ...props, children: /* @__PURE__ */ jsx10("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" }) });
58
+
59
+ // src/icons/ChevronRightIcon.tsx
60
+ import { jsx as jsx11 } from "react/jsx-runtime";
61
+ var ChevronRightIcon = (props) => /* @__PURE__ */ jsx11(Icon, { ...props, children: /* @__PURE__ */ jsx11("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }) });
62
+
63
+ // src/icons/CircleFilledIcon.tsx
64
+ import { jsx as jsx12 } from "react/jsx-runtime";
65
+ var CircleFilledIcon = (props) => /* @__PURE__ */ jsx12(Icon, { ...props, children: /* @__PURE__ */ jsx12("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z" }) });
66
+
67
+ // src/icons/CloseIcon.tsx
68
+ import { jsx as jsx13 } from "react/jsx-runtime";
69
+ var CloseIcon = (props) => /* @__PURE__ */ jsx13(Icon, { ...props, children: /* @__PURE__ */ jsx13("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) });
70
+
71
+ // src/icons/DateRangeIcon.tsx
72
+ import { jsx as jsx14 } from "react/jsx-runtime";
73
+ var DateRangeIcon = (props) => /* @__PURE__ */ jsx14(Icon, { ...props, children: /* @__PURE__ */ jsx14("path", { d: "M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z" }) });
74
+
75
+ // src/icons/DeleteIcon.tsx
76
+ import { jsx as jsx15 } from "react/jsx-runtime";
77
+ var DeleteIcon = (props) => /* @__PURE__ */ jsx15(Icon, { ...props, children: /* @__PURE__ */ jsx15("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" }) });
78
+
79
+ // src/icons/DoneIcon.tsx
80
+ import { jsx as jsx16 } from "react/jsx-runtime";
81
+ var DoneIcon = (props) => /* @__PURE__ */ jsx16(Icon, { ...props, children: /* @__PURE__ */ jsx16("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }) });
82
+
83
+ // src/icons/FileUploadIcon.tsx
84
+ import { jsx as jsx17 } from "react/jsx-runtime";
85
+ var FileUploadIcon = (props) => /* @__PURE__ */ jsx17(Icon, { ...props, children: /* @__PURE__ */ jsx17("path", { d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" }) });
86
+
87
+ // src/icons/FilterIcon.tsx
88
+ import { jsx as jsx18 } from "react/jsx-runtime";
89
+ var FilterIcon = (props) => /* @__PURE__ */ jsx18(Icon, { ...props, children: /* @__PURE__ */ jsx18("path", { d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z" }) });
90
+
91
+ // src/icons/FilterClearIcon.tsx
92
+ import { jsx as jsx19, jsxs } from "react/jsx-runtime";
93
+ var FilterClearIcon = (props) => /* @__PURE__ */ jsxs(Icon, { ...props, children: [
94
+ /* @__PURE__ */ jsx19("path", { d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z" }),
95
+ /* @__PURE__ */ jsx19("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
96
+ ] });
97
+
98
+ // src/icons/InfoIcon.tsx
99
+ import { jsx as jsx20 } from "react/jsx-runtime";
100
+ var InfoIcon = (props) => /* @__PURE__ */ jsx20(Icon, { ...props, children: /* @__PURE__ */ jsx20("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) });
101
+
102
+ // src/icons/KeyboardArrowDownIcon.tsx
103
+ import { jsx as jsx21 } from "react/jsx-runtime";
104
+ var KeyboardArrowDownIcon = (props) => /* @__PURE__ */ jsx21(Icon, { ...props, children: /* @__PURE__ */ jsx21("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }) });
105
+
106
+ // src/icons/ListIcon.tsx
107
+ import { jsx as jsx22 } from "react/jsx-runtime";
108
+ var ListIcon = (props) => /* @__PURE__ */ jsx22(Icon, { ...props, children: /* @__PURE__ */ jsx22("path", { d: "M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z" }) });
109
+
110
+ // src/icons/MoreVerticalIcon.tsx
111
+ import { jsx as jsx23 } from "react/jsx-runtime";
112
+ var MoreVerticalIcon = (props) => /* @__PURE__ */ jsx23(Icon, { ...props, children: /* @__PURE__ */ jsx23("path", { d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }) });
113
+
114
+ // src/icons/SearchIcon.tsx
115
+ import { jsx as jsx24 } from "react/jsx-runtime";
116
+ var SearchIcon = (props) => /* @__PURE__ */ jsx24(Icon, { ...props, children: /* @__PURE__ */ jsx24("path", { d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" }) });
117
+
118
+ // src/icons/SettingsIcon.tsx
119
+ import { jsx as jsx25 } from "react/jsx-runtime";
120
+ var SettingsIcon = (props) => /* @__PURE__ */ jsx25(Icon, { ...props, children: /* @__PURE__ */ jsx25("path", { d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" }) });
121
+
122
+ // src/icons/SortDownIcon.tsx
123
+ import { jsx as jsx26 } from "react/jsx-runtime";
124
+ var SortDownIcon = (props) => /* @__PURE__ */ jsx26(Icon, { ...props, children: /* @__PURE__ */ jsx26("path", { d: "M7 10l5 5 5-5z" }) });
125
+
126
+ // src/icons/SortUpIcon.tsx
127
+ import { jsx as jsx27 } from "react/jsx-runtime";
128
+ var SortUpIcon = (props) => /* @__PURE__ */ jsx27(Icon, { ...props, children: /* @__PURE__ */ jsx27("path", { d: "M7 14l5-5 5 5z" }) });
129
+
130
+ // src/icons/TableChartIcon.tsx
131
+ import { jsx as jsx28 } from "react/jsx-runtime";
132
+ var TableChartIcon = (props) => /* @__PURE__ */ jsx28(Icon, { ...props, children: /* @__PURE__ */ jsx28("path", { d: "M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z" }) });
133
+
134
+ // src/icons/UploadIcon.tsx
135
+ import { jsx as jsx29 } from "react/jsx-runtime";
136
+ var UploadIcon = (props) => /* @__PURE__ */ jsx29(Icon, { ...props, children: /* @__PURE__ */ jsx29("path", { d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" }) });
137
+
138
+ // src/icons/WellIcon.tsx
139
+ import { jsx as jsx30 } from "react/jsx-runtime";
140
+ var WellIcon = (props) => /* @__PURE__ */ jsx30(Icon, { ...props, children: /* @__PURE__ */ jsx30("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z" }) });
141
+
142
+ export {
143
+ CheckboxDeselectedIcon,
144
+ CheckboxIcon,
145
+ CheckboxSeveralIcon,
146
+ AddIcon,
147
+ ArrowDropDownIcon,
148
+ ArrowDropUpIcon,
149
+ AttachIcon,
150
+ BarChartIcon,
151
+ ChevronLeftIcon,
152
+ ChevronRightIcon,
153
+ CircleFilledIcon,
154
+ CloseIcon,
155
+ DateRangeIcon,
156
+ DeleteIcon,
157
+ DoneIcon,
158
+ FileUploadIcon,
159
+ FilterIcon,
160
+ FilterClearIcon,
161
+ InfoIcon,
162
+ KeyboardArrowDownIcon,
163
+ ListIcon,
164
+ MoreVerticalIcon,
165
+ SearchIcon,
166
+ SettingsIcon,
167
+ SortDownIcon,
168
+ SortUpIcon,
169
+ TableChartIcon,
170
+ UploadIcon,
171
+ WellIcon
172
+ };
@@ -0,0 +1,67 @@
1
+ import React__default from 'react';
2
+
3
+ interface IconProps {
4
+ size?: number;
5
+ color?: string;
6
+ className?: string;
7
+ }
8
+
9
+ declare const AddIcon: React__default.FC<IconProps>;
10
+
11
+ declare const ArrowDropDownIcon: React__default.FC<IconProps>;
12
+
13
+ declare const ArrowDropUpIcon: React__default.FC<IconProps>;
14
+
15
+ declare const AttachIcon: React__default.FC<IconProps>;
16
+
17
+ declare const BarChartIcon: React__default.FC<IconProps>;
18
+
19
+ declare const CheckboxIcon: React__default.FC<IconProps>;
20
+
21
+ declare const CheckboxDeselectedIcon: React__default.FC<IconProps>;
22
+
23
+ declare const CheckboxSeveralIcon: React__default.FC<IconProps>;
24
+
25
+ declare const ChevronLeftIcon: React__default.FC<IconProps>;
26
+
27
+ declare const ChevronRightIcon: React__default.FC<IconProps>;
28
+
29
+ declare const CircleFilledIcon: React__default.FC<IconProps>;
30
+
31
+ declare const CloseIcon: React__default.FC<IconProps>;
32
+
33
+ declare const DateRangeIcon: React__default.FC<IconProps>;
34
+
35
+ declare const DeleteIcon: React__default.FC<IconProps>;
36
+
37
+ declare const DoneIcon: React__default.FC<IconProps>;
38
+
39
+ declare const FileUploadIcon: React__default.FC<IconProps>;
40
+
41
+ declare const FilterIcon: React__default.FC<IconProps>;
42
+
43
+ declare const FilterClearIcon: React__default.FC<IconProps>;
44
+
45
+ declare const InfoIcon: React__default.FC<IconProps>;
46
+
47
+ declare const KeyboardArrowDownIcon: React__default.FC<IconProps>;
48
+
49
+ declare const ListIcon: React__default.FC<IconProps>;
50
+
51
+ declare const MoreVerticalIcon: React__default.FC<IconProps>;
52
+
53
+ declare const SearchIcon: React__default.FC<IconProps>;
54
+
55
+ declare const SettingsIcon: React__default.FC<IconProps>;
56
+
57
+ declare const SortDownIcon: React__default.FC<IconProps>;
58
+
59
+ declare const SortUpIcon: React__default.FC<IconProps>;
60
+
61
+ declare const TableChartIcon: React__default.FC<IconProps>;
62
+
63
+ declare const UploadIcon: React__default.FC<IconProps>;
64
+
65
+ declare const WellIcon: React__default.FC<IconProps>;
66
+
67
+ export { AddIcon, ArrowDropDownIcon, ArrowDropUpIcon, AttachIcon, BarChartIcon, CheckboxDeselectedIcon, CheckboxIcon, CheckboxSeveralIcon, ChevronLeftIcon, ChevronRightIcon, CircleFilledIcon, CloseIcon, DateRangeIcon, DeleteIcon, DoneIcon, FileUploadIcon, FilterClearIcon, FilterIcon, InfoIcon, KeyboardArrowDownIcon, ListIcon, MoreVerticalIcon, SearchIcon, SettingsIcon, SortDownIcon, SortUpIcon, TableChartIcon, UploadIcon, WellIcon };
package/icons/index.js ADDED
@@ -0,0 +1,62 @@
1
+ import {
2
+ AddIcon,
3
+ ArrowDropDownIcon,
4
+ ArrowDropUpIcon,
5
+ AttachIcon,
6
+ BarChartIcon,
7
+ CheckboxDeselectedIcon,
8
+ CheckboxIcon,
9
+ CheckboxSeveralIcon,
10
+ ChevronLeftIcon,
11
+ ChevronRightIcon,
12
+ CircleFilledIcon,
13
+ CloseIcon,
14
+ DateRangeIcon,
15
+ DeleteIcon,
16
+ DoneIcon,
17
+ FileUploadIcon,
18
+ FilterClearIcon,
19
+ FilterIcon,
20
+ InfoIcon,
21
+ KeyboardArrowDownIcon,
22
+ ListIcon,
23
+ MoreVerticalIcon,
24
+ SearchIcon,
25
+ SettingsIcon,
26
+ SortDownIcon,
27
+ SortUpIcon,
28
+ TableChartIcon,
29
+ UploadIcon,
30
+ WellIcon
31
+ } from "../chunk-RKPZOIBV.js";
32
+ export {
33
+ AddIcon,
34
+ ArrowDropDownIcon,
35
+ ArrowDropUpIcon,
36
+ AttachIcon,
37
+ BarChartIcon,
38
+ CheckboxDeselectedIcon,
39
+ CheckboxIcon,
40
+ CheckboxSeveralIcon,
41
+ ChevronLeftIcon,
42
+ ChevronRightIcon,
43
+ CircleFilledIcon,
44
+ CloseIcon,
45
+ DateRangeIcon,
46
+ DeleteIcon,
47
+ DoneIcon,
48
+ FileUploadIcon,
49
+ FilterClearIcon,
50
+ FilterIcon,
51
+ InfoIcon,
52
+ KeyboardArrowDownIcon,
53
+ ListIcon,
54
+ MoreVerticalIcon,
55
+ SearchIcon,
56
+ SettingsIcon,
57
+ SortDownIcon,
58
+ SortUpIcon,
59
+ TableChartIcon,
60
+ UploadIcon,
61
+ WellIcon
62
+ };