nntc-ui 0.0.67 → 0.0.69

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.
Files changed (3) hide show
  1. package/index.d.ts +3 -1
  2. package/index.js +10 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -342,6 +342,8 @@ declare const VirtualTable: React.ForwardRefExoticComponent<Props$8 & {
342
342
  classes?: PropsObject;
343
343
  } & React.RefAttributes<VirtualTableRef>>;
344
344
 
345
+ declare const defaultRowHeight = 32;
346
+
345
347
  interface Item {
346
348
  id: string;
347
349
  name: string;
@@ -435,4 +437,4 @@ interface Props {
435
437
  }
436
438
  declare const Chip: (props: PropsWithChildren<UiProps<Props>>) => react_jsx_runtime.JSX.Element;
437
439
 
438
- export { type AdditionalButton, Button, ButtonsGroup, Card, Checkbox, Checklist, type Item$3 as ChecklistItem, type SelectedItems as ChecklistSelectedItems, Chip, ColorPicker, type ColumnAlign, DateTime, type FilterBy, Input, Layout, Menu, type Divider as MenuDivider, type Item$2 as MenuItem, Modal, MultiSelect, type Item$4 as MultiSelectItem, type TitleVariant as MultiSelectTitleVariant, type Pair, Pairs, Popover, SearchInput, Select, type Divider$1 as SelectDivider, type Item$5 as SelectItem, type SortBy, type SortType, Surface, type TableCell, type TableColumn, type TableRow, Tabs, type Item$1 as TabsItem, Tooltip, _default as TreeView, type Item as TreeViewItem, Typography, type VerticalAlign, VirtualTable, type VirtualTableRef, WrapForLabel };
440
+ export { type AdditionalButton, Button, ButtonsGroup, Card, Checkbox, Checklist, type Item$3 as ChecklistItem, type SelectedItems as ChecklistSelectedItems, Chip, ColorPicker, type ColumnAlign, DateTime, type FilterBy, Input, Layout, Menu, type Divider as MenuDivider, type Item$2 as MenuItem, Modal, MultiSelect, type Item$4 as MultiSelectItem, type TitleVariant as MultiSelectTitleVariant, type Pair, Pairs, Popover, SearchInput, Select, type Divider$1 as SelectDivider, type Item$5 as SelectItem, type SortBy, type SortType, Surface, type TableCell, type TableColumn, type TableRow, Tabs, type Item$1 as TabsItem, Tooltip, _default as TreeView, type Item as TreeViewItem, Typography, type VerticalAlign, VirtualTable, type VirtualTableRef, WrapForLabel, defaultRowHeight as virtualTableDefaultRowHeight };
package/index.js CHANGED
@@ -2987,7 +2987,15 @@ var DefaultColumn = {
2987
2987
  } : meta?.onClick && original[id]?.payload ? () => meta?.onClick?.(original[id]?.payload ?? {}) : void 0,
2988
2988
  children: [
2989
2989
  /* @__PURE__ */ jsx30("span", { className: viewSpan, children: shownValue }),
2990
- showModal && /* @__PURE__ */ jsx30(Modal, { open: showModal, onClose: () => closeModalRef.current?.(), children: /* @__PURE__ */ jsx30(Surface, { type: "panel", children: /* @__PURE__ */ jsx30("div", { className: modalContent, children: shownValue }) }) })
2990
+ showModal && /* @__PURE__ */ jsx30(
2991
+ Modal,
2992
+ {
2993
+ root: tableMeta?.tableContainerRef?.current,
2994
+ open: showModal,
2995
+ onClose: () => closeModalRef.current?.(),
2996
+ children: /* @__PURE__ */ jsx30(Surface, { type: "panel", children: /* @__PURE__ */ jsx30("div", { className: modalContent, children: shownValue }) })
2997
+ }
2998
+ )
2991
2999
  ]
2992
3000
  }
2993
3001
  ) });
@@ -3594,6 +3602,7 @@ var VirtualTable = forwardRef8((props, ref) => {
3594
3602
  updateData: (rowIndex, columnId, value, original) => {
3595
3603
  onChangeCell?.(rowIndex, columnId, value, original);
3596
3604
  },
3605
+ tableContainerRef,
3597
3606
  additionalColumnsViews
3598
3607
  }
3599
3608
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nntc-ui",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "author": "NNTC",
5
5
  "description": "React UI-kit for NNTC",
6
6
  "type": "module",