nntc-ui 0.0.56 → 0.0.58

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.
@@ -111,53 +111,64 @@ var InfoIcon = (props) => /* @__PURE__ */ jsx20(Icon, { ...props, children: /* @
111
111
  }
112
112
  ) });
113
113
 
114
- // src/icons/KeyboardArrowDownIcon.tsx
114
+ // src/icons/AlertIcon.tsx
115
115
  import { jsx as jsx21 } from "react/jsx-runtime";
116
- 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" }) });
116
+ var AlertIcon = (props) => /* @__PURE__ */ jsx21(Icon, { ...props, children: /* @__PURE__ */ jsx21(
117
+ "path",
118
+ {
119
+ fillRule: "evenodd",
120
+ clipRule: "evenodd",
121
+ d: "M23 21.5L12 2.5L1 21.5H23ZM11 18.5V16.5H13V18.5H11ZM11 14.5H13V10.5H11V14.5Z"
122
+ }
123
+ ) });
117
124
 
118
- // src/icons/ListIcon.tsx
125
+ // src/icons/KeyboardArrowDownIcon.tsx
119
126
  import { jsx as jsx22 } from "react/jsx-runtime";
120
- var ListIcon = (props) => /* @__PURE__ */ jsx22(Icon, { ...props, children: /* @__PURE__ */ jsx22("path", { d: "M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z" }) });
127
+ var KeyboardArrowDownIcon = (props) => /* @__PURE__ */ jsx22(Icon, { ...props, children: /* @__PURE__ */ jsx22("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }) });
121
128
 
122
- // src/icons/MoreVerticalIcon.tsx
129
+ // src/icons/ListIcon.tsx
123
130
  import { jsx as jsx23 } from "react/jsx-runtime";
124
- 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" }) });
131
+ var ListIcon = (props) => /* @__PURE__ */ jsx23(Icon, { ...props, children: /* @__PURE__ */ jsx23("path", { d: "M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z" }) });
125
132
 
126
- // src/icons/SearchIcon.tsx
133
+ // src/icons/MoreVerticalIcon.tsx
127
134
  import { jsx as jsx24 } from "react/jsx-runtime";
128
- 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" }) });
135
+ var MoreVerticalIcon = (props) => /* @__PURE__ */ jsx24(Icon, { ...props, children: /* @__PURE__ */ jsx24("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" }) });
129
136
 
130
- // src/icons/SettingsIcon.tsx
137
+ // src/icons/SearchIcon.tsx
131
138
  import { jsx as jsx25 } from "react/jsx-runtime";
132
- 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" }) });
139
+ var SearchIcon = (props) => /* @__PURE__ */ jsx25(Icon, { ...props, children: /* @__PURE__ */ jsx25("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" }) });
133
140
 
134
- // src/icons/SortDownIcon.tsx
141
+ // src/icons/SettingsIcon.tsx
135
142
  import { jsx as jsx26 } from "react/jsx-runtime";
136
- var SortDownIcon = (props) => /* @__PURE__ */ jsx26(Icon, { ...props, children: /* @__PURE__ */ jsx26("path", { d: "M7 10l5 5 5-5z" }) });
143
+ var SettingsIcon = (props) => /* @__PURE__ */ jsx26(Icon, { ...props, children: /* @__PURE__ */ jsx26("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" }) });
137
144
 
138
- // src/icons/SortUpIcon.tsx
145
+ // src/icons/SortDownIcon.tsx
139
146
  import { jsx as jsx27 } from "react/jsx-runtime";
140
- var SortUpIcon = (props) => /* @__PURE__ */ jsx27(Icon, { ...props, children: /* @__PURE__ */ jsx27("path", { d: "M7 14l5-5 5 5z" }) });
147
+ var SortDownIcon = (props) => /* @__PURE__ */ jsx27(Icon, { ...props, children: /* @__PURE__ */ jsx27("path", { d: "M7 10l5 5 5-5z" }) });
141
148
 
142
- // src/icons/TableChartIcon.tsx
149
+ // src/icons/SortUpIcon.tsx
143
150
  import { jsx as jsx28 } from "react/jsx-runtime";
144
- var TableChartIcon = (props) => /* @__PURE__ */ jsx28(Icon, { ...props, children: /* @__PURE__ */ jsx28("path", { d: "M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z" }) });
151
+ var SortUpIcon = (props) => /* @__PURE__ */ jsx28(Icon, { ...props, children: /* @__PURE__ */ jsx28("path", { d: "M7 14l5-5 5 5z" }) });
145
152
 
146
- // src/icons/UploadIcon.tsx
153
+ // src/icons/TableChartIcon.tsx
147
154
  import { jsx as jsx29 } from "react/jsx-runtime";
148
- var UploadIcon = (props) => /* @__PURE__ */ jsx29(Icon, { ...props, children: /* @__PURE__ */ jsx29("path", { d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" }) });
155
+ var TableChartIcon = (props) => /* @__PURE__ */ jsx29(Icon, { ...props, children: /* @__PURE__ */ jsx29("path", { d: "M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z" }) });
149
156
 
150
- // src/icons/WellIcon.tsx
157
+ // src/icons/UploadIcon.tsx
151
158
  import { jsx as jsx30 } from "react/jsx-runtime";
152
- 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" }) });
159
+ var UploadIcon = (props) => /* @__PURE__ */ jsx30(Icon, { ...props, children: /* @__PURE__ */ jsx30("path", { d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z" }) });
153
160
 
154
- // src/icons/EditIcon.tsx
161
+ // src/icons/WellIcon.tsx
155
162
  import { jsx as jsx31 } from "react/jsx-runtime";
156
- var EditIcon = (props) => /* @__PURE__ */ jsx31(Icon, { ...props, children: /* @__PURE__ */ jsx31("path", { d: "M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z" }) });
163
+ var WellIcon = (props) => /* @__PURE__ */ jsx31(Icon, { ...props, children: /* @__PURE__ */ jsx31("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" }) });
157
164
 
158
- // src/icons/FullScreenOnIcon.tsx
165
+ // src/icons/EditIcon.tsx
159
166
  import { jsx as jsx32 } from "react/jsx-runtime";
160
- var FullScreenOnIcon = (props) => /* @__PURE__ */ jsx32(Icon, { ...props, children: /* @__PURE__ */ jsx32(
167
+ var EditIcon = (props) => /* @__PURE__ */ jsx32(Icon, { ...props, children: /* @__PURE__ */ jsx32("path", { d: "M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z" }) });
168
+
169
+ // src/icons/FullScreenOnIcon.tsx
170
+ import { jsx as jsx33 } from "react/jsx-runtime";
171
+ var FullScreenOnIcon = (props) => /* @__PURE__ */ jsx33(Icon, { ...props, children: /* @__PURE__ */ jsx33(
161
172
  "path",
162
173
  {
163
174
  d: `M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2
@@ -166,16 +177,16 @@ var FullScreenOnIcon = (props) => /* @__PURE__ */ jsx32(Icon, { ...props, childr
166
177
  ) });
167
178
 
168
179
  // src/icons/FullScreenOffIcon.tsx
169
- import { jsx as jsx33 } from "react/jsx-runtime";
170
- var FullScreenOffIcon = (props) => /* @__PURE__ */ jsx33(Icon, { ...props, children: /* @__PURE__ */ jsx33("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" }) });
180
+ import { jsx as jsx34 } from "react/jsx-runtime";
181
+ var FullScreenOffIcon = (props) => /* @__PURE__ */ jsx34(Icon, { ...props, children: /* @__PURE__ */ jsx34("path", { d: "M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z" }) });
171
182
 
172
183
  // src/icons/BookmarkIcon.tsx
173
- import { jsx as jsx34 } from "react/jsx-runtime";
174
- var BookmarkIcon = (props) => /* @__PURE__ */ jsx34(Icon, { ...props, children: /* @__PURE__ */ jsx34("path", { d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z" }) });
184
+ import { jsx as jsx35 } from "react/jsx-runtime";
185
+ var BookmarkIcon = (props) => /* @__PURE__ */ jsx35(Icon, { ...props, children: /* @__PURE__ */ jsx35("path", { d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z" }) });
175
186
 
176
187
  // src/icons/BookmarkAddIcon.tsx
177
- import { jsx as jsx35 } from "react/jsx-runtime";
178
- var BookmarkAddIcon = (props) => /* @__PURE__ */ jsx35(Icon, { ...props, children: /* @__PURE__ */ jsx35(
188
+ import { jsx as jsx36 } from "react/jsx-runtime";
189
+ var BookmarkAddIcon = (props) => /* @__PURE__ */ jsx36(Icon, { ...props, children: /* @__PURE__ */ jsx36(
179
190
  "path",
180
191
  {
181
192
  d: `M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2
@@ -184,8 +195,8 @@ var BookmarkAddIcon = (props) => /* @__PURE__ */ jsx35(Icon, { ...props, childre
184
195
  ) });
185
196
 
186
197
  // src/icons/ExportTableIcon.tsx
187
- import { jsx as jsx36 } from "react/jsx-runtime";
188
- var ExportTableIcon = (props) => /* @__PURE__ */ jsx36(Icon, { ...props, children: /* @__PURE__ */ jsx36(
198
+ import { jsx as jsx37 } from "react/jsx-runtime";
199
+ var ExportTableIcon = (props) => /* @__PURE__ */ jsx37(Icon, { ...props, children: /* @__PURE__ */ jsx37(
189
200
  "path",
190
201
  {
191
202
  fill: "currentColor",
@@ -201,12 +212,12 @@ var ExportTableIcon = (props) => /* @__PURE__ */ jsx36(Icon, { ...props, childre
201
212
  ) });
202
213
 
203
214
  // src/icons/DownloadIcon.tsx
204
- import { jsx as jsx37 } from "react/jsx-runtime";
205
- var DownloadIcon = (props) => /* @__PURE__ */ jsx37(Icon, { ...props, children: /* @__PURE__ */ jsx37("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z" }) });
215
+ import { jsx as jsx38 } from "react/jsx-runtime";
216
+ var DownloadIcon = (props) => /* @__PURE__ */ jsx38(Icon, { ...props, children: /* @__PURE__ */ jsx38("path", { d: "M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z" }) });
206
217
 
207
218
  // src/icons/VisibilityIcon.tsx
208
- import { jsx as jsx38 } from "react/jsx-runtime";
209
- var VisibilityIcon = (props) => /* @__PURE__ */ jsx38(Icon, { ...props, children: /* @__PURE__ */ jsx38(
219
+ import { jsx as jsx39 } from "react/jsx-runtime";
220
+ var VisibilityIcon = (props) => /* @__PURE__ */ jsx39(Icon, { ...props, children: /* @__PURE__ */ jsx39(
210
221
  "path",
211
222
  {
212
223
  d: `M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25
@@ -241,6 +252,7 @@ export {
241
252
  FilterIcon,
242
253
  FilterClearIcon,
243
254
  InfoIcon,
255
+ AlertIcon,
244
256
  KeyboardArrowDownIcon,
245
257
  ListIcon,
246
258
  MoreVerticalIcon,
package/icons/index.d.ts CHANGED
@@ -44,6 +44,8 @@ declare const FilterClearIcon: React__default.FC<IconProps>;
44
44
 
45
45
  declare const InfoIcon: React__default.FC<IconProps>;
46
46
 
47
+ declare const AlertIcon: React__default.FC<IconProps>;
48
+
47
49
  declare const KeyboardArrowDownIcon: React__default.FC<IconProps>;
48
50
 
49
51
  declare const ListIcon: React__default.FC<IconProps>;
@@ -80,4 +82,4 @@ declare const DownloadIcon: React__default.FC<IconProps>;
80
82
 
81
83
  declare const VisibilityIcon: React__default.FC<IconProps>;
82
84
 
83
- export { AddIcon, ArrowDropDownIcon, ArrowDropUpIcon, AttachIcon, BarChartIcon, BookmarkAddIcon, BookmarkIcon, CheckboxDeselectedIcon, CheckboxIcon, CheckboxSeveralIcon, ChevronLeftIcon, ChevronRightIcon, CircleFilledIcon, CloseIcon, DateRangeIcon, DeleteIcon, DoneIcon, DownloadIcon, EditIcon, ExportTableIcon, FileUploadIcon, FilterClearIcon, FilterIcon, FullScreenOffIcon, FullScreenOnIcon, InfoIcon, KeyboardArrowDownIcon, ListIcon, MoreVerticalIcon, SearchIcon, SettingsIcon, SortDownIcon, SortUpIcon, TableChartIcon, UploadIcon, VisibilityIcon, WellIcon };
85
+ export { AddIcon, AlertIcon, ArrowDropDownIcon, ArrowDropUpIcon, AttachIcon, BarChartIcon, BookmarkAddIcon, BookmarkIcon, CheckboxDeselectedIcon, CheckboxIcon, CheckboxSeveralIcon, ChevronLeftIcon, ChevronRightIcon, CircleFilledIcon, CloseIcon, DateRangeIcon, DeleteIcon, DoneIcon, DownloadIcon, EditIcon, ExportTableIcon, FileUploadIcon, FilterClearIcon, FilterIcon, FullScreenOffIcon, FullScreenOnIcon, InfoIcon, KeyboardArrowDownIcon, ListIcon, MoreVerticalIcon, SearchIcon, SettingsIcon, SortDownIcon, SortUpIcon, TableChartIcon, UploadIcon, VisibilityIcon, WellIcon };
package/icons/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  AddIcon,
3
+ AlertIcon,
3
4
  ArrowDropDownIcon,
4
5
  ArrowDropUpIcon,
5
6
  AttachIcon,
@@ -36,9 +37,10 @@ import {
36
37
  UploadIcon,
37
38
  VisibilityIcon,
38
39
  WellIcon
39
- } from "../chunk-CVFNR56A.js";
40
+ } from "../chunk-3HESG6EU.js";
40
41
  export {
41
42
  AddIcon,
43
+ AlertIcon,
42
44
  ArrowDropDownIcon,
43
45
  ArrowDropUpIcon,
44
46
  AttachIcon,
package/index.css CHANGED
@@ -2033,11 +2033,11 @@
2033
2033
  }
2034
2034
  .chip_medium,
2035
2035
  .chip_medium > .chip_stateLayer {
2036
- height: 40px;
2036
+ height: 32px;
2037
2037
  }
2038
2038
  .chip_small,
2039
2039
  .chip_small > .chip_stateLayer {
2040
- height: 32px;
2040
+ height: 24px;
2041
2041
  }
2042
2042
  .chip_medium > .chip_stateLayer {
2043
2043
  padding: 0 16px;
@@ -2075,13 +2075,13 @@
2075
2075
  cursor: pointer;
2076
2076
  }
2077
2077
  .chip_medium .chip_icon {
2078
- width: 32px;
2079
- height: 32px;
2080
- }
2081
- .chip_small .chip_icon {
2082
2078
  width: 24px;
2083
2079
  height: 24px;
2084
2080
  }
2081
+ .chip_small .chip_icon {
2082
+ width: 18px;
2083
+ height: 18px;
2084
+ }
2085
2085
  .chip_icon.chip_iconClickable:hover {
2086
2086
  background-color: var(--theme-overlay-8);
2087
2087
  }
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ButtonHTMLAttributes, ReactNode, DetailedHTMLProps, InputHTMLAttributes, PropsWithChildren, ChangeEvent, JSX, MutableRefObject, CSSProperties, HTMLProps, ElementType } from 'react';
2
+ import { ButtonHTMLAttributes, ReactNode, DetailedHTMLProps, InputHTMLAttributes, PropsWithChildren, ChangeEvent, JSX, MutableRefObject, ReactElement, CSSProperties, HTMLProps, ElementType } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { Placement } from '@floating-ui/react';
5
5
 
@@ -135,7 +135,7 @@ interface Props$f {
135
135
  label?: string;
136
136
  placeholder?: string;
137
137
  items: Item$4[];
138
- onValueChange?: (newItem: string[] | null) => void;
138
+ onValueChange?: (newItem: Item$4[] | null) => void;
139
139
  selected: string[] | null;
140
140
  titleType?: TitleVariant;
141
141
  enableSearch?: boolean;
@@ -359,7 +359,7 @@ interface Props$6 {
359
359
  alertType?: 'success' | 'warning' | 'error' | 'info' | 'default';
360
360
  root?: HTMLElement | MutableRefObject<HTMLElement | null> | null;
361
361
  }
362
- declare function Tooltip(props: PropsWithChildren<UiProps<Props$6>>): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
362
+ declare function Tooltip(props: PropsWithChildren<UiProps<Props$6>>): ReactElement | null;
363
363
 
364
364
  interface Props$5 {
365
365
  description?: ReactNode | string;
package/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  SortDownIcon,
17
17
  SortUpIcon,
18
18
  __export
19
- } from "./chunk-CVFNR56A.js";
19
+ } from "./chunk-3HESG6EU.js";
20
20
 
21
21
  // src/components/common/Button/Button.tsx
22
22
  import classnames from "classnames";
@@ -1809,13 +1809,16 @@ function SelectPopover2(props) {
1809
1809
  (newSelected) => {
1810
1810
  const values = Object.entries(newSelected).reduce((acc, [value, isSelected]) => {
1811
1811
  if (isSelected) {
1812
- acc.push(value);
1812
+ const item3 = items2.find((i) => i.value === value);
1813
+ if (item3) {
1814
+ acc.push(item3);
1815
+ }
1813
1816
  }
1814
1817
  return acc;
1815
1818
  }, []);
1816
1819
  onSelectedChange(values);
1817
1820
  },
1818
- [onSelectedChange]
1821
+ [onSelectedChange, items2]
1819
1822
  );
1820
1823
  const { checklistWrapper: checklistWrapper2, ...checklistClasses } = classes ?? {};
1821
1824
  return /* @__PURE__ */ jsx20("div", { className: classNames4(checklistWrapper2), children: /* @__PURE__ */ jsx20(
@@ -1903,8 +1906,8 @@ function MultiSelect(props) {
1903
1906
  [disabled2]
1904
1907
  );
1905
1908
  const handleSelectedChange = useCallback8(
1906
- (newValues) => {
1907
- onValueChange?.(newValues);
1909
+ (newItems) => {
1910
+ onValueChange?.(newItems);
1908
1911
  },
1909
1912
  [onValueChange]
1910
1913
  );
@@ -2292,7 +2295,7 @@ var TooltipTrigger = forwardRef6(
2292
2295
  );
2293
2296
 
2294
2297
  // src/components/view/Tooltip/Tooltip.tsx
2295
- import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
2298
+ import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
2296
2299
  function Tooltip(props) {
2297
2300
  const {
2298
2301
  label: label8,
@@ -2309,7 +2312,7 @@ function Tooltip(props) {
2309
2312
  const [showTooltip, setShowTooltip] = useState10(false);
2310
2313
  const arrowRef = useRef8(null);
2311
2314
  if (!label8) {
2312
- return children2;
2315
+ return children2 ? /* @__PURE__ */ jsx27(Fragment4, { children: children2 }) : null;
2313
2316
  }
2314
2317
  if (!children2) {
2315
2318
  return null;
@@ -2532,7 +2535,7 @@ import { flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-tabl
2532
2535
  import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual";
2533
2536
  import classnames22 from "classnames";
2534
2537
  import dayjs4 from "dayjs";
2535
- import { Fragment as Fragment7, useCallback as useCallback9, useEffect as useEffect8, useMemo as useMemo8, useRef as useRef11, useState as useState15 } from "react";
2538
+ import { Fragment as Fragment8, useCallback as useCallback9, useEffect as useEffect8, useMemo as useMemo8, useRef as useRef11, useState as useState15 } from "react";
2536
2539
 
2537
2540
  // src/utils/toFirstLetterUpperCase.ts
2538
2541
  var toFirstLetterUpperCase = (name) => {
@@ -2708,7 +2711,7 @@ var virtualTable_default = {
2708
2711
  };
2709
2712
 
2710
2713
  // src/components/view/VirtualTable/ui/DefaultColumn/DefaultColumn.tsx
2711
- import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
2714
+ import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
2712
2715
  var DefaultColumn = {
2713
2716
  cell: ({ getValue, row: { index, original }, column: { id, columnDef }, table: table2 }) => {
2714
2717
  const initialValue = getValue();
@@ -2733,7 +2736,7 @@ var DefaultColumn = {
2733
2736
  const onChange = (e) => {
2734
2737
  setValue(e.target.value);
2735
2738
  };
2736
- return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error ?? "", alertType: "error", children: additionalViewResult?.edit !== null && additionalViewResult?.edit !== void 0 ? additionalViewResult.edit(onChange, onBlur) : /* @__PURE__ */ jsx30(Fragment4, { children: /* @__PURE__ */ jsx30("input", { onChange, onBlur, value: value ?? "", autoFocus: true }) }) });
2739
+ return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error ?? "", alertType: "error", children: additionalViewResult?.edit !== null && additionalViewResult?.edit !== void 0 ? additionalViewResult.edit(onChange, onBlur) : /* @__PURE__ */ jsx30(Fragment5, { children: /* @__PURE__ */ jsx30("input", { onChange, onBlur, value: value ?? "", autoFocus: true }) }) });
2737
2740
  }
2738
2741
  const shownValue = additionalViewResult?.view !== null && additionalViewResult?.view !== void 0 ? additionalViewResult.view : meta?.valueFormat ? meta.valueFormat(initialValue?.toString() ?? "") : meta?.toFixed !== void 0 && !Number.isNaN(parseFloat(initialValue)) ? parseFloat(Number(initialValue).toFixed(meta.toFixed)) : initialValue;
2739
2742
  return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error, alertType: "error", children: /* @__PURE__ */ jsxs16(
@@ -2837,7 +2840,7 @@ var inputsContainer = "numberFiltration_inputsContainer";
2837
2840
  var input8 = "numberFiltration_input";
2838
2841
 
2839
2842
  // src/components/view/VirtualTable/ui/NumberFiltration/NumberFiltration.tsx
2840
- import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
2843
+ import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
2841
2844
  var items = [
2842
2845
  { type: "item", name: "\u041E\u0442 \u2014 \u0434\u043E", value: "range" },
2843
2846
  { type: "item", name: "\u0411\u043E\u043B\u044C\u0448\u0435", value: "more" },
@@ -2891,7 +2894,7 @@ function NumberFiltration(props) {
2891
2894
  tabIndex: -1
2892
2895
  }
2893
2896
  ),
2894
- /* @__PURE__ */ jsx32("div", { className: classnames20(inputsContainer), children: selectedItem.value === "range" ? /* @__PURE__ */ jsxs17(Fragment5, { children: [
2897
+ /* @__PURE__ */ jsx32("div", { className: classnames20(inputsContainer), children: selectedItem.value === "range" ? /* @__PURE__ */ jsxs17(Fragment6, { children: [
2895
2898
  /* @__PURE__ */ jsx32(
2896
2899
  Input,
2897
2900
  {
@@ -2956,7 +2959,7 @@ function NumberFiltration(props) {
2956
2959
  }
2957
2960
 
2958
2961
  // src/components/view/VirtualTable/ui/HeaderDropdown/HeaderDropdown.tsx
2959
- import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
2962
+ import { Fragment as Fragment7, jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
2960
2963
  function HeaderDropdown(props) {
2961
2964
  const {
2962
2965
  headerMeta: {
@@ -3108,7 +3111,7 @@ function HeaderDropdown(props) {
3108
3111
  placement: "bottom-end",
3109
3112
  wrapTrigger: true,
3110
3113
  root: containerRef,
3111
- description: /* @__PURE__ */ jsxs18(Fragment6, { children: [
3114
+ description: /* @__PURE__ */ jsxs18(Fragment7, { children: [
3112
3115
  filtrationByNumber && /* @__PURE__ */ jsx33(NumberFiltration, { defaultValues: filterNumbers, actionWithSelected: actionWithSelectedNumbers }),
3113
3116
  filtrationByDate && /* @__PURE__ */ jsx33(DateFiltration, { defaultValues: filterDates, actionWithSelected: actionWithSelectedDates }),
3114
3117
  filtrationByValue && /* @__PURE__ */ jsx33("div", { className: classnames21(checklistWrap), children: /* @__PURE__ */ jsx33(
@@ -3265,7 +3268,7 @@ var recursiveSort = (items2, sortBy) => {
3265
3268
  };
3266
3269
 
3267
3270
  // src/components/view/VirtualTable/VirtualTable.tsx
3268
- import { Fragment as Fragment8, jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
3271
+ import { Fragment as Fragment9, jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
3269
3272
  function VirtualTable(props) {
3270
3273
  const {
3271
3274
  rows,
@@ -3511,7 +3514,7 @@ function VirtualTable(props) {
3511
3514
  }
3512
3515
  ) });
3513
3516
  };
3514
- return /* @__PURE__ */ jsxs19(Fragment7, { children: [
3517
+ return /* @__PURE__ */ jsxs19(Fragment8, { children: [
3515
3518
  [...Array(fixedColumnsCount)].map((_, index) => {
3516
3519
  const header2 = headerGroup.headers[index];
3517
3520
  const nextHorizontalHeaders = getNextHorizontalHeaders(
@@ -3662,7 +3665,7 @@ function VirtualTable(props) {
3662
3665
  overflow: "hidden"
3663
3666
  }
3664
3667
  },
3665
- children: rowButtons?.(row.original)?.map((ab) => /* @__PURE__ */ jsx34(Fragment7, { children: ab.template ? ab.template(ab) : /* @__PURE__ */ jsx34(
3668
+ children: rowButtons?.(row.original)?.map((ab) => /* @__PURE__ */ jsx34(Fragment8, { children: ab.template ? ab.template(ab) : /* @__PURE__ */ jsx34(
3666
3669
  Tooltip,
3667
3670
  {
3668
3671
  label: ab.title,
@@ -3691,7 +3694,7 @@ function VirtualTable(props) {
3691
3694
  ]
3692
3695
  }
3693
3696
  ),
3694
- borders !== "none" && /* @__PURE__ */ jsxs19(Fragment8, { children: [
3697
+ borders !== "none" && /* @__PURE__ */ jsxs19(Fragment9, { children: [
3695
3698
  /* @__PURE__ */ jsx34("div", { className: rightBorder, style: { height: `${rowsTotalSize + summaryHeaderHeight}px` } }),
3696
3699
  /* @__PURE__ */ jsx34("div", { className: bottomBorder, style: { width: `${columnsTotalSize}px` } })
3697
3700
  ] })
@@ -3791,7 +3794,7 @@ var getFilteredTree = (tree, search2) => {
3791
3794
  };
3792
3795
 
3793
3796
  // src/components/view/TreeView/TreeView.tsx
3794
- import { Fragment as Fragment9, jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
3797
+ import { Fragment as Fragment10, jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
3795
3798
  var TreeView_default = memo2(function TreeView({ data, selected: selected5, startIcons, onSelect, withSearch = false }) {
3796
3799
  const [searchValue, setSearchValue] = useState17("");
3797
3800
  const onChangeSearchValue = useCallback10((e) => setSearchValue(e.target.value), []);
@@ -3808,7 +3811,7 @@ var TreeView_default = memo2(function TreeView({ data, selected: selected5, star
3808
3811
  const filteredData = useMemo9(() => {
3809
3812
  return getFilteredTree(data, searchValue);
3810
3813
  }, [data, searchValue]);
3811
- return /* @__PURE__ */ jsxs21(Fragment9, { children: [
3814
+ return /* @__PURE__ */ jsxs21(Fragment10, { children: [
3812
3815
  withSearch && /* @__PURE__ */ jsx36(
3813
3816
  SearchInput,
3814
3817
  {
@@ -3871,7 +3874,7 @@ function TypographyWithTooltip(props) {
3871
3874
  }
3872
3875
 
3873
3876
  // src/components/view/Pairs/Pairs.tsx
3874
- import { Fragment as Fragment10, jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
3877
+ import { Fragment as Fragment11, jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
3875
3878
  function Pairs(props) {
3876
3879
  const { pairs, column1Width = "50%", column2Width = "50%", showBorder, minRowHeight, classes } = props;
3877
3880
  return /* @__PURE__ */ jsx38("div", { className: classNames6(classes?.root), children: pairs.map((pair, i) => /* @__PURE__ */ jsx38(
@@ -3881,7 +3884,7 @@ function Pairs(props) {
3881
3884
  className: classNames6(classes?.rowContainer, {
3882
3885
  [rowContainerBorders]: showBorder
3883
3886
  }),
3884
- children: pair && /* @__PURE__ */ jsxs22(Fragment10, { children: [
3887
+ children: pair && /* @__PURE__ */ jsxs22(Fragment11, { children: [
3885
3888
  /* @__PURE__ */ jsx38(
3886
3889
  "div",
3887
3890
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nntc-ui",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "author": "NNTC",
5
5
  "description": "React UI-kit for NNTC",
6
6
  "type": "module",