@akinon/akitable 0.3.5 → 0.3.7

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 +1 @@
1
- {"version":3,"file":"theme-overrides.d.ts","sourceRoot":"","sources":["../../../src/common/theme-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,MAAM,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,WAsD5B,CAAC"}
1
+ {"version":3,"file":"theme-overrides.d.ts","sourceRoot":"","sources":["../../../src/common/theme-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,MAAM,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,WA2D5B,CAAC"}
@@ -5,7 +5,12 @@ const ui_theme_1 = require("@akinon/ui-theme");
5
5
  const antd_1 = require("antd");
6
6
  exports.themeOverrides = {
7
7
  algorithm: antd_1.theme.defaultAlgorithm,
8
+ token: {
9
+ colorTextBase: ui_theme_1.theme.colors.ebonyClay['900'],
10
+ colorText: ui_theme_1.theme.colors.ebonyClay['900']
11
+ },
8
12
  components: {
13
+ Badge: {},
9
14
  Checkbox: {
10
15
  colorBgBase: ui_theme_1.theme.colors.neutral['50'],
11
16
  algorithm: antd_1.theme.defaultAlgorithm
@@ -18,7 +18,7 @@ const AkitableDataTable = (props) => {
18
18
  onChange: onSelectChange
19
19
  };
20
20
  return (react_1.default.createElement("div", { className: "akitable-wrapper" },
21
- react_1.default.createElement(ui_table_1.Table, { columns: columns, dataSource: data, rowKey: (record) => record[rowKey], bordered: true, rowHoverable: true, pagination: false, scroll: { x: 1500 }, loading: isLoading, onRow: (record, rowIndex) => {
21
+ react_1.default.createElement(ui_table_1.Table, { columns: columns, dataSource: data, rowKey: (record) => record[rowKey], bordered: true, rowHoverable: true, pagination: false, scroll: { x: 'max-content' }, loading: isLoading, onRow: (record, rowIndex) => {
22
22
  return {
23
23
  onClick: (event) => {
24
24
  onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(record, event, rowIndex);
@@ -16,6 +16,8 @@
16
16
 
17
17
  .akitable-header-description {
18
18
  color: var(--color-gray-400);
19
+ display: block;
20
+ margin-top: 0.5rem;
19
21
  }
20
22
 
21
23
  .akitable-header-extra {
@@ -1 +1 @@
1
- {"version":3,"file":"theme-overrides.d.ts","sourceRoot":"","sources":["../../../src/common/theme-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,MAAM,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,WAsD5B,CAAC"}
1
+ {"version":3,"file":"theme-overrides.d.ts","sourceRoot":"","sources":["../../../src/common/theme-overrides.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,MAAM,CAAC;AAEvD,eAAO,MAAM,cAAc,EAAE,WA2D5B,CAAC"}
@@ -2,7 +2,12 @@ import { theme } from '@akinon/ui-theme';
2
2
  import { theme as antdTheme } from 'antd';
3
3
  export const themeOverrides = {
4
4
  algorithm: antdTheme.defaultAlgorithm,
5
+ token: {
6
+ colorTextBase: theme.colors.ebonyClay['900'],
7
+ colorText: theme.colors.ebonyClay['900']
8
+ },
5
9
  components: {
10
+ Badge: {},
6
11
  Checkbox: {
7
12
  colorBgBase: theme.colors.neutral['50'],
8
13
  algorithm: antdTheme.defaultAlgorithm
@@ -15,7 +15,7 @@ export const AkitableDataTable = (props) => {
15
15
  onChange: onSelectChange
16
16
  };
17
17
  return (React.createElement("div", { className: "akitable-wrapper" },
18
- React.createElement(Table, { columns: columns, dataSource: data, rowKey: (record) => record[rowKey], bordered: true, rowHoverable: true, pagination: false, scroll: { x: 1500 }, loading: isLoading, onRow: (record, rowIndex) => {
18
+ React.createElement(Table, { columns: columns, dataSource: data, rowKey: (record) => record[rowKey], bordered: true, rowHoverable: true, pagination: false, scroll: { x: 'max-content' }, loading: isLoading, onRow: (record, rowIndex) => {
19
19
  return {
20
20
  onClick: (event) => {
21
21
  onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(record, event, rowIndex);
@@ -16,6 +16,8 @@
16
16
 
17
17
  .akitable-header-description {
18
18
  color: var(--color-gray-400);
19
+ display: block;
20
+ margin-top: 0.5rem;
19
21
  }
20
22
 
21
23
  .akitable-header-extra {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/akitable",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -12,12 +12,12 @@
12
12
  "antd": "5.17.0",
13
13
  "clsx": "^2.0.0",
14
14
  "react-error-boundary": "^4.0.13",
15
- "@akinon/akilocale": "0.10.1",
16
15
  "@akinon/icons": "0.4.0",
16
+ "@akinon/akilocale": "0.10.1",
17
17
  "@akinon/ui-button": "0.5.0",
18
+ "@akinon/ui-card": "0.3.0",
18
19
  "@akinon/ui-pagination": "0.3.0",
19
20
  "@akinon/ui-result": "0.1.0",
20
- "@akinon/ui-card": "0.3.0",
21
21
  "@akinon/ui-select": "0.3.0",
22
22
  "@akinon/ui-skeleton": "0.3.0",
23
23
  "@akinon/ui-space": "0.3.0",
@@ -31,9 +31,9 @@
31
31
  "copyfiles": "^2.4.1",
32
32
  "rimraf": "^5.0.5",
33
33
  "typescript": "^5.2.2",
34
+ "@akinon/eslint-config": "0.1.0",
34
35
  "@akinon/typescript-config": "0.2.0",
35
- "@akinon/vite-config": "0.4.0",
36
- "@akinon/eslint-config": "0.1.0"
36
+ "@akinon/vite-config": "0.4.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=18",