nntc-ui 0.0.91 → 0.0.93

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.
@@ -255,6 +255,15 @@ var VisibilityIcon = (props) => /* @__PURE__ */ jsx41(Icon, { ...props, children
255
255
  }
256
256
  ) });
257
257
 
258
+ // src/icons/PointIcon.tsx
259
+ import { jsx as jsx42 } from "react/jsx-runtime";
260
+ var PointIcon = (props) => /* @__PURE__ */ jsx42(Icon, { ...props, children: /* @__PURE__ */ jsx42(
261
+ "path",
262
+ {
263
+ d: "M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"
264
+ }
265
+ ) });
266
+
258
267
  export {
259
268
  __export,
260
269
  CheckboxDeselectedIcon,
@@ -296,5 +305,6 @@ export {
296
305
  BookmarkAddIcon,
297
306
  ExportTableIcon,
298
307
  DownloadIcon,
299
- VisibilityIcon
308
+ VisibilityIcon,
309
+ PointIcon
300
310
  };
package/icons/index.d.ts CHANGED
@@ -86,4 +86,6 @@ declare const DownloadIcon: React__default.FC<IconProps>;
86
86
 
87
87
  declare const VisibilityIcon: React__default.FC<IconProps>;
88
88
 
89
- 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, RadioDeselectedIcon, RadioSelectedIcon, SearchIcon, SettingsIcon, SortDownIcon, SortUpIcon, TableChartIcon, UploadIcon, VisibilityIcon, WellIcon };
89
+ declare const PointIcon: React__default.FC<IconProps>;
90
+
91
+ 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, PointIcon, RadioDeselectedIcon, RadioSelectedIcon, SearchIcon, SettingsIcon, SortDownIcon, SortUpIcon, TableChartIcon, UploadIcon, VisibilityIcon, WellIcon };
package/icons/index.js CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  KeyboardArrowDownIcon,
30
30
  ListIcon,
31
31
  MoreVerticalIcon,
32
+ PointIcon,
32
33
  RadioDeselectedIcon,
33
34
  RadioSelectedIcon,
34
35
  SearchIcon,
@@ -39,7 +40,7 @@ import {
39
40
  UploadIcon,
40
41
  VisibilityIcon,
41
42
  WellIcon
42
- } from "../chunk-OJNXOQUW.js";
43
+ } from "../chunk-SQXO2GJK.js";
43
44
  export {
44
45
  AddIcon,
45
46
  AlertIcon,
@@ -71,6 +72,7 @@ export {
71
72
  KeyboardArrowDownIcon,
72
73
  ListIcon,
73
74
  MoreVerticalIcon,
75
+ PointIcon,
74
76
  RadioDeselectedIcon,
75
77
  RadioSelectedIcon,
76
78
  SearchIcon,
package/index.css CHANGED
@@ -1302,6 +1302,9 @@
1302
1302
  .multiSelect_label {
1303
1303
  color: var(--theme-text-secondary);
1304
1304
  }
1305
+ .multiSelect_labelSelectedCount {
1306
+ color: var(--theme-text-secondary);
1307
+ }
1305
1308
  .multiSelect_wrapper {
1306
1309
  position: relative;
1307
1310
  width: 100%;
package/index.d.ts CHANGED
@@ -173,6 +173,7 @@ interface Props$g {
173
173
  onValueChange?: (newItem: Item$4[] | null) => void;
174
174
  selected: string[] | null;
175
175
  titleType?: TitleVariant;
176
+ showSelectedCount?: boolean;
176
177
  enableSearch?: boolean;
177
178
  popoverInComponent?: boolean;
178
179
  }
package/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  SortDownIcon,
20
20
  SortUpIcon,
21
21
  __export
22
- } from "./chunk-OJNXOQUW.js";
22
+ } from "./chunk-SQXO2GJK.js";
23
23
 
24
24
  // src/components/common/Button/Button.tsx
25
25
  import classnames from "classnames";
@@ -2153,6 +2153,7 @@ __export(multiSelect_exports, {
2153
2153
  input: () => input7,
2154
2154
  itemIcon: () => itemIcon3,
2155
2155
  label: () => label6,
2156
+ labelSelectedCount: () => labelSelectedCount,
2156
2157
  medium: () => medium10,
2157
2158
  outlined: () => outlined7,
2158
2159
  popoverContent: () => popoverContent4,
@@ -2169,6 +2170,7 @@ var fullWidth3 = "multiSelect_fullWidth";
2169
2170
  var medium10 = "multiSelect_medium";
2170
2171
  var small10 = "multiSelect_small";
2171
2172
  var label6 = "multiSelect_label";
2173
+ var labelSelectedCount = "multiSelect_labelSelectedCount";
2172
2174
  var wrapper5 = "multiSelect_wrapper";
2173
2175
  var input7 = "multiSelect_input";
2174
2176
  var withIcon4 = "multiSelect_withIcon";
@@ -2191,6 +2193,7 @@ var multiSelect_default = {
2191
2193
  medium: medium10,
2192
2194
  small: small10,
2193
2195
  label: label6,
2196
+ labelSelectedCount,
2194
2197
  wrapper: wrapper5,
2195
2198
  input: input7,
2196
2199
  withIcon: withIcon4,
@@ -2429,6 +2432,7 @@ function MultiSelect(props) {
2429
2432
  disabled: disabled2,
2430
2433
  id,
2431
2434
  titleType = "allValue",
2435
+ showSelectedCount = false,
2432
2436
  enableSearch = false,
2433
2437
  popoverInComponent = false,
2434
2438
  ...inputProps
@@ -2477,7 +2481,7 @@ function MultiSelect(props) {
2477
2481
  if (!activeItems.length)
2478
2482
  return "";
2479
2483
  return getTitle(titleType, activeItems, t);
2480
- }, [titleType, activeItems]);
2484
+ }, [titleType, activeItems, t]);
2481
2485
  const clearHandler = () => {
2482
2486
  onValueChange?.(null);
2483
2487
  };
@@ -2492,7 +2496,7 @@ function MultiSelect(props) {
2492
2496
  classes?.root
2493
2497
  ),
2494
2498
  children: [
2495
- !!label10 && /* @__PURE__ */ jsx22(
2499
+ !!label10 && /* @__PURE__ */ jsxs12(
2496
2500
  Typography,
2497
2501
  {
2498
2502
  className: classnames12(label6, classes?.label),
@@ -2500,7 +2504,16 @@ function MultiSelect(props) {
2500
2504
  variant: "caption",
2501
2505
  htmlFor: inputId,
2502
2506
  onClick: inputClickHandler,
2503
- children: label10
2507
+ children: [
2508
+ label10,
2509
+ showSelectedCount && activeItems.length > 0 && /* @__PURE__ */ jsx22(
2510
+ "span",
2511
+ {
2512
+ className: classnames12(labelSelectedCount, classes?.labelSelectedCount),
2513
+ children: ` (${activeItems.length})`
2514
+ }
2515
+ )
2516
+ ]
2504
2517
  }
2505
2518
  ),
2506
2519
  /* @__PURE__ */ jsxs12(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nntc-ui",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "author": "NNTC",
5
5
  "description": "React UI-kit for NNTC",
6
6
  "type": "module",