beca-ui 2.1.0-beta.2 → 2.1.0-beta.4

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/dist/beca-ui.js CHANGED
@@ -93328,16 +93328,16 @@ const KXe = (e) => {
93328
93328
  }
93329
93329
  }, []), /* @__PURE__ */ A(Pde, { ...n, className: KXe(e), ref: r });
93330
93330
  }, GXe = (e) => {
93331
- const { logoUrl: t, applicationsCardData: n, currentApp: r } = e;
93332
- return console.log(n), /* @__PURE__ */ hn("div", { className: "app-menu", children: [
93331
+ const { logoUrl: t, applicationsCardData: n, currentApp: r } = e, o = On(() => n.sort((i, a) => (i.order ?? 0) - (a.order ?? 0)), [n]);
93332
+ return /* @__PURE__ */ hn("div", { className: "app-menu", children: [
93333
93333
  /* @__PURE__ */ A("div", { className: "app-main-logo-wrap", children: /* @__PURE__ */ A("img", { src: t, className: "app-main-logo" }) }),
93334
- /* @__PURE__ */ A(dO, { children: /* @__PURE__ */ A("div", { className: "app-menu-items", children: n.map((o) => /* @__PURE__ */ A(
93334
+ /* @__PURE__ */ A(dO, { children: /* @__PURE__ */ A("div", { className: "app-menu-items", children: o.map((i) => /* @__PURE__ */ A(
93335
93335
  qXe,
93336
93336
  {
93337
- icon: o.image,
93338
- text: o.name,
93339
- url: o.href,
93340
- active: r === o.appId
93337
+ icon: i.image,
93338
+ text: i.name,
93339
+ url: i.href,
93340
+ active: r === i.appId
93341
93341
  }
93342
93342
  )) }) })
93343
93343
  ] });
@@ -1,6 +1,6 @@
1
1
  import { TableProps as AntTableProps } from "antd";
2
- import { ColumnGroupType, ColumnType as AntColumnType, TableRowSelection as AntTableRowSelection, ColumnTitle as AntColumnTitle, FilterDropdownProps } from "antd/lib/table/interface";
3
- export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelection"> {
2
+ import { ColumnType as AntColumnType, TableRowSelection as AntTableRowSelection, ColumnTitle as AntColumnTitle, FilterDropdownProps, ColumnsType as AntColumnsType } from "antd/lib/table/interface";
3
+ export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelection" | "columns"> {
4
4
  transparent?: boolean;
5
5
  rowSelection?: TableRowSelection<any>;
6
6
  onRowSelect?: (record: any) => void;
@@ -9,6 +9,7 @@ export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelectio
9
9
  isResizable?: boolean;
10
10
  isBodyCard?: boolean;
11
11
  onResizeColumns?: (columns: ColumnsType) => void;
12
+ columns?: ColumnsType;
12
13
  responsive?: {
13
14
  breakpoint?: number;
14
15
  dataLabel?: (column: any, record: any, rowIndex: number) => React.ReactNode | string;
@@ -24,7 +25,7 @@ export interface TableRef {
24
25
  export interface TableRowSelection<T> extends Omit<AntTableRowSelection<T>, "onSelectAll"> {
25
26
  onSelectAll?: (isSelectedAll: boolean, selectedRowKeys: any[], selectedRows?: any[]) => void;
26
27
  }
27
- export type ColumnsType<RecordType = any> = (ColumnGroupType<RecordType> | AntColumnType<RecordType>)[];
28
+ export type ColumnsType<T = any> = AntColumnsType<T>;
28
29
  export type ColumnType<RecordType = any> = AntColumnType<RecordType> & {
29
30
  editable?: boolean;
30
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.1.0-beta.2",
3
+ "version": "2.1.0-beta.4",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {