@ztwoint/z-ui 0.1.118 → 0.1.119

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,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { default as React, FC } from 'react';
2
2
  import { NumberCellProps } from './components/cell/number-cell';
3
3
  import { BooleanCellProps } from './components/cell/boolean-cell';
4
4
  import { LinkCellProps } from './components/cell/link-cell';
@@ -49,7 +49,7 @@ type CellPropsByType = {
49
49
  };
50
50
  type ColumnBase<T extends CellType> = {
51
51
  key: string;
52
- title: string;
52
+ title: string | React.ReactNode;
53
53
  cellType: T;
54
54
  cellRenderer?: CellRenderer;
55
55
  hideable?: boolean;
@@ -13,7 +13,7 @@ export type FilterOption = {
13
13
  export type FilterFieldType = 'string' | 'number' | 'boolean' | 'checkbox';
14
14
  export type FilterSchemaField = {
15
15
  filterKey: string;
16
- title: string;
16
+ title: string | React.ReactNode;
17
17
  helperText?: string;
18
18
  type: FilterFieldType;
19
19
  options?: Record<string, number>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  export type CellType = 'number' | 'boolean' | 'checkbox' | 'link' | 'avatar' | 'label' | 'description' | 'text';
3
3
  export type CellValue = string | number | boolean | null | undefined;
4
4
  export type CellRendererProps = {
@@ -49,7 +49,7 @@ type CellPropsByType = {
49
49
  };
50
50
  type ColumnBase<T extends CellType> = {
51
51
  key: string;
52
- title: string;
52
+ title: string | React.ReactNode;
53
53
  cellType: T;
54
54
  cellRenderer?: CellRenderer;
55
55
  hideable?: boolean;
@@ -13,7 +13,7 @@ export type FilterOption = {
13
13
  export type FilterFieldType = 'string' | 'number' | 'boolean' | 'checkbox';
14
14
  export type FilterSchemaField = {
15
15
  filterKey: string;
16
- title: string;
16
+ title: string | React.ReactNode;
17
17
  helperText?: string;
18
18
  type: FilterFieldType;
19
19
  options?: Record<string, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztwoint/z-ui",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",