@xqmsg/ui-core 0.18.3 → 0.18.5

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.
@@ -1,17 +1,18 @@
1
1
  import React from 'react';
2
- export interface GroupedMenuItems {
2
+ export declare type GroupMenuItems = {
3
3
  leftIcon: JSX.Element;
4
4
  label: string;
5
5
  href?: string;
6
6
  rightIcon?: JSX.Element;
7
7
  isExternal?: boolean;
8
- }
8
+ };
9
+ export declare type GroupedMenuItem = {
10
+ groupSortValue: number;
11
+ groupHeader?: string;
12
+ groupMenuItems: GroupMenuItems[];
13
+ };
9
14
  export interface NavigationMenuProps {
10
- groupedMenuItems: {
11
- groupSortValue: number;
12
- groupHeader?: string;
13
- groupMenuItems: GroupedMenuItems[];
14
- }[];
15
+ groupedMenuItems: GroupedMenuItem[];
15
16
  defaultSelectedMenuItem?: string;
16
17
  }
17
18
  /**
@@ -2,7 +2,7 @@
2
2
  import { ReadonlyTableColumns, TableBody, TableColumns, TableHeaders } from './TableTypes';
3
3
  export interface TableProps<T extends ReadonlyTableColumns> {
4
4
  columns: TableColumns;
5
- headers: TableHeaders<T>;
5
+ headers?: TableHeaders<T>;
6
6
  body: TableBody<T>;
7
7
  loading?: boolean;
8
8
  loadMore?: () => void;
@@ -6,8 +6,6 @@ export declare type ToolbarLabelAndHandler = {
6
6
  export interface ToolbarProps extends PropsWithChildren {
7
7
  pageList: ToolbarLabelAndHandler[];
8
8
  currentPage: string;
9
- searchValue: string;
10
- onChangeSearch: (value: string) => void;
11
9
  }
12
10
  /**
13
11
  * A functional React component utilized to render the `Toolbar` component
@@ -2217,7 +2217,7 @@ var SvgFolderFill = function SvgFolderFill(props, ref) {
2217
2217
  ref: ref
2218
2218
  }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
2219
2219
  d: "M2 .4A1.4 1.4 0 0 0 .6 1.8v2.609A2.588 2.588 0 0 1 2 4h10c.516 0 .996.15 1.4.409V3.4A1.4 1.4 0 0 0 12 2H8.131a.2.2 0 0 1-.141-.059L6.859.81a1.4 1.4 0 0 0-.99-.41H2ZM2 5.2A1.4 1.4 0 0 0 .6 6.6v3.6A1.4 1.4 0 0 0 2 11.6h10a1.4 1.4 0 0 0 1.4-1.4V6.6A1.4 1.4 0 0 0 12 5.2H2Z",
2220
- fill: "#fff"
2220
+ fill: "#0082ff"
2221
2221
  })));
2222
2222
  };
2223
2223
  var ForwardRef$e = /*#__PURE__*/React.forwardRef(SvgFolderFill);
@@ -2246,7 +2246,7 @@ var SvgFolderOutline = function SvgFolderOutline(props, ref) {
2246
2246
  ref: ref
2247
2247
  }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
2248
2248
  d: "M1 6.538v-.461c0-.765.62-1.385 1.385-1.385h9.23c.765 0 1.385.62 1.385 1.385v.461M7.653 2.576 6.347 1.27A.923.923 0 0 0 5.695 1h-3.31C1.62 1 1 1.62 1 2.385v7.384c0 .765.62 1.385 1.385 1.385h9.23c.765 0 1.385-.62 1.385-1.385V4.231c0-.765-.62-1.385-1.385-1.385h-3.31a.923.923 0 0 1-.652-.27Z",
2249
- stroke: "#fff",
2249
+ stroke: "#0082ff",
2250
2250
  strokeLinecap: "round",
2251
2251
  strokeLinejoin: "round"
2252
2252
  })));
@@ -3101,7 +3101,7 @@ function Table(_ref) {
3101
3101
  borderCollapse: 'separate',
3102
3102
  borderSpacing: '0px'
3103
3103
  }
3104
- }, /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, {
3104
+ }, headers && /*#__PURE__*/React__default.createElement(react.Thead, null, /*#__PURE__*/React__default.createElement(react.Tr, {
3105
3105
  _odd: {
3106
3106
  bg: colors.label.primary.dark
3107
3107
  }