@ztwoint/z-ui 0.1.33 → 0.1.35

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 (46) hide show
  1. package/dist/components/table/components/table-cell.js +25 -24
  2. package/dist/components/table/components/table-filter/filters/boolean.js +60 -28
  3. package/dist/components/table/components/table-filter/filters/checkbox.d.ts +3 -0
  4. package/dist/components/table/components/table-filter/filters/checkbox.js +76 -0
  5. package/dist/components/table/components/table-filter/filters/index.d.ts +1 -0
  6. package/dist/components/table/components/table-filter/filters/number/filter-input-field.d.ts +11 -0
  7. package/dist/components/table/components/table-filter/filters/number/filter-input-field.js +38 -0
  8. package/dist/components/table/components/table-filter/filters/number/index.d.ts +1 -0
  9. package/dist/components/table/components/table-filter/filters/{number.d.ts → number/number.d.ts} +1 -1
  10. package/dist/components/table/components/table-filter/filters/number/number.hook.d.ts +23 -0
  11. package/dist/components/table/components/table-filter/filters/number/number.hook.js +33 -0
  12. package/dist/components/table/components/table-filter/filters/number/number.js +55 -0
  13. package/dist/components/table/components/table-filter/filters/text.js +49 -26
  14. package/dist/components/table/components/table-filter/table-filter.hook.d.ts +6 -3
  15. package/dist/components/table/components/table-filter/table-filter.hook.js +49 -29
  16. package/dist/components/table/components/table-filter/table-filter.js +93 -79
  17. package/dist/components/table/components/table-filter/table-filter.type.d.ts +4 -3
  18. package/dist/components/table/components/table-footer.js +1 -1
  19. package/dist/components/table/components/table-header/table-header.js +1 -1
  20. package/dist/components/table/index.d.ts +1 -1
  21. package/dist/components/table/table.const.d.ts +1 -1
  22. package/dist/components/table/table.const.js +1 -1
  23. package/dist/components/table/table.type.d.ts +6 -1
  24. package/dist/components/table-card/index.d.ts +1 -1
  25. package/dist/components/table-card/table-card.js +114 -0
  26. package/dist/components/table-card/table-card.type.d.ts +19 -27
  27. package/dist/css/config/colors/semantic-colors.css +28 -27
  28. package/dist/css/styles/tailwind.css +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +19 -17
  31. package/dist/types/components/table/components/table-filter/filters/checkbox.d.ts +3 -0
  32. package/dist/types/components/table/components/table-filter/filters/index.d.ts +1 -0
  33. package/dist/types/components/table/components/table-filter/filters/number/filter-input-field.d.ts +11 -0
  34. package/dist/types/components/table/components/table-filter/filters/number/index.d.ts +1 -0
  35. package/dist/types/components/table/components/table-filter/filters/{number.d.ts → number/number.d.ts} +1 -1
  36. package/dist/types/components/table/components/table-filter/filters/number/number.hook.d.ts +23 -0
  37. package/dist/types/components/table/components/table-filter/table-filter.hook.d.ts +6 -3
  38. package/dist/types/components/table/components/table-filter/table-filter.type.d.ts +4 -3
  39. package/dist/types/components/table/index.d.ts +1 -1
  40. package/dist/types/components/table/table.const.d.ts +1 -1
  41. package/dist/types/components/table/table.type.d.ts +6 -1
  42. package/dist/types/components/table-card/index.d.ts +1 -1
  43. package/dist/types/components/table-card/table-card.type.d.ts +19 -27
  44. package/dist/types/index.d.ts +1 -0
  45. package/package.json +1 -1
  46. package/dist/components/table/components/table-filter/filters/number.js +0 -28
@@ -1,105 +1,119 @@
1
- import { jsxs as r, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as l } from "react/jsx-runtime";
2
2
  import { Button as s } from "../../../button/button.js";
3
- import N from "./table-filter.hook.js";
3
+ import C from "./table-filter.hook.js";
4
4
  import T from "./filters/text.js";
5
- import z from "./filters/boolean.js";
6
- import w from "./filters/number.js";
7
- const C = ({
8
- filterComponents: o = {},
9
- schema: c,
10
- filter: n
5
+ import j from "./filters/boolean.js";
6
+ import z from "./filters/number/number.js";
7
+ import A from "./filters/checkbox.js";
8
+ import O from "../../../assets/icons/circle-check-filled.js";
9
+ const E = ({
10
+ filterComponents: n = {},
11
+ schema: d,
12
+ filter: o
11
13
  }) => {
12
14
  const {
13
- addFilterRule: b,
14
- applyFilters: y,
15
- filterableFields: k,
16
- hasActiveFilters: d,
15
+ selectedColumn: r,
16
+ setSelectedColumn: p,
17
+ getFilterForColumn: x,
18
+ hasFilterForColumn: b,
19
+ updateColumnFilter: f,
20
+ clearAllFilters: v,
21
+ applyFilters: k,
22
+ hasActiveFilters: i,
17
23
  isOpen: m,
18
- removeFilterRule: F,
19
- setIsOpen: p,
20
- tempFilters: x,
21
- updateFilterRule: u
22
- } = N({ schema: c, filter: n || { value: [], onChange: () => {
24
+ setIsOpen: u,
25
+ filterableFields: y
26
+ } = C({ schema: d, filter: o || { value: [], onChange: () => {
23
27
  } } });
24
- return n ? /* @__PURE__ */ r("div", { className: "relative", children: [
25
- /* @__PURE__ */ r(
28
+ if (!o)
29
+ return null;
30
+ const N = () => {
31
+ if (!r) return null;
32
+ const e = d.find((c) => c.key === r), F = {
33
+ boolean: j,
34
+ text: T,
35
+ number: z,
36
+ checkbox: A
37
+ }, h = (n == null ? void 0 : n[(e == null ? void 0 : e.cellType) || ""]) || F[(e == null ? void 0 : e.cellType) || "text"];
38
+ if (!h)
39
+ return console.warn(
40
+ `No filter component found for column "${e == null ? void 0 : e.key}" with cellType "${e == null ? void 0 : e.cellType}". Provide a custom filter component or use supported types: "text", "number", "boolean", "checkbox".`
41
+ ), null;
42
+ const a = x(r), g = {
43
+ condition: (a == null ? void 0 : a.condition) || "",
44
+ value: (a == null ? void 0 : a.value) || ""
45
+ };
46
+ return /* @__PURE__ */ l("div", { className: "flex-1", children: /* @__PURE__ */ l("div", { className: "mb-4", children: /* @__PURE__ */ l("div", { className: "", children: /* @__PURE__ */ l(
47
+ h,
48
+ {
49
+ value: g,
50
+ onChange: ({ condition: c, value: w }) => f(r, c, w),
51
+ filterOptions: e == null ? void 0 : e.filterOptions
52
+ }
53
+ ) }) }) });
54
+ };
55
+ return /* @__PURE__ */ t("div", { className: "relative", children: [
56
+ /* @__PURE__ */ t(
26
57
  s,
27
58
  {
28
- onClick: () => p(!m),
29
- variant: d ? "filled" : "stroke",
30
- shade: d ? "brand" : "neutral",
59
+ onClick: () => u(!m),
60
+ variant: i ? "filled" : "stroke",
61
+ shade: i ? "brand" : "neutral",
31
62
  size: "small",
32
63
  children: [
33
64
  "Filter ",
34
- d && `(${n.value.length})`
65
+ i && `(${o.value.length})`
35
66
  ]
36
67
  }
37
68
  ),
38
- m && /* @__PURE__ */ t("div", { className: "absolute top-full left-0 mt-2 min-w-96 bg-surface-neutral-default border border-stroke-solid-medium rounded-md shadow-default z-10 p-4", children: /* @__PURE__ */ r("div", { className: "space-y-4", children: [
39
- x.map((i, a) => {
40
- const e = c.find((l) => l.key === i.field), h = {
41
- boolean: z,
42
- text: T,
43
- number: w
44
- }, v = (o == null ? void 0 : o[(e == null ? void 0 : e.cellType) || ""]) || h[(e == null ? void 0 : e.cellType) || "text"];
45
- v || console.warn(
46
- `No filter component found for column "${e == null ? void 0 : e.key}" with cellType "${e == null ? void 0 : e.cellType}". Provide a custom filter component or use supported types: "text", "number", "boolean".`
47
- );
48
- const g = v ?? h.text;
49
- return /* @__PURE__ */ r("div", { className: "flex gap-2 items-center", children: [
50
- /* @__PURE__ */ t(
51
- "select",
52
- {
53
- value: i.field,
54
- onChange: (l) => u(a, { field: l.target.value, condition: void 0 }),
55
- className: "border border-stroke-solid-medium bg-surface-neutral-default text-text-neutral-primary rounded px-2 py-1 text-sm flex-1",
56
- children: k.map((l) => /* @__PURE__ */ t("option", { value: l.key, children: l.title }, l.key))
57
- }
58
- ),
59
- /* @__PURE__ */ t(
60
- g,
69
+ m && /* @__PURE__ */ t("div", { className: "absolute top-full left-0 mt-2 min-w-[600px] bg-surface-neutral-default border border-stroke-solid-medium rounded-md shadow-default z-10", children: [
70
+ /* @__PURE__ */ t("div", { className: "flex min-h-[300px]", children: [
71
+ /* @__PURE__ */ t("div", { className: "w-48 border-r border-stroke-solid-medium", children: [
72
+ /* @__PURE__ */ l("div", { className: "p-3 border-b border-stroke-solid-medium", children: /* @__PURE__ */ l("h3", { className: "text-sm font-medium text-text-neutral-primary", children: "Columns" }) }),
73
+ /* @__PURE__ */ l("div", { className: "py-2", children: y.map((e) => /* @__PURE__ */ t(
74
+ "button",
61
75
  {
62
- onChange: ({ condition: l, value: f }) => {
63
- u(a, {
64
- ...l ? { condition: l } : {},
65
- ...f ? { value: f } : {}
66
- });
67
- },
68
- value: { value: i.value, condition: i.condition }
76
+ onClick: () => p(e.key),
77
+ className: `w-full text-left px-3 py-2 text-sm flex items-center justify-between hover:bg-surface-neutral-hovered transition-colors ${r === e.key ? "bg-surface-brand-subtle text-text-brand-primary" : "text-text-neutral-primary"}`,
78
+ children: [
79
+ /* @__PURE__ */ l("span", { className: "truncate", children: e.title }),
80
+ b(e.key) && /* @__PURE__ */ l(O, { className: "w-4 h-4 text-icon-brand-primary flex-shrink-0 ml-2" })
81
+ ]
69
82
  },
70
- a
71
- ),
72
- /* @__PURE__ */ t(
73
- s,
74
- {
75
- onClick: () => F(a),
76
- variant: "ghost",
77
- shade: "danger",
78
- size: "small",
79
- className: "!px-2 !py-1",
80
- children: "×"
81
- }
82
- )
83
- ] }, a);
84
- }),
85
- /* @__PURE__ */ r("div", { className: "flex gap-2", children: [
86
- /* @__PURE__ */ t(s, { onClick: b, variant: "stroke", shade: "neutral", size: "small", children: "+ Add" }),
87
- /* @__PURE__ */ t("div", { className: "flex-1" }),
88
- /* @__PURE__ */ t(
83
+ e.key
84
+ )) })
85
+ ] }),
86
+ /* @__PURE__ */ l("div", { className: "flex-1 flex flex-col", children: r ? N() : /* @__PURE__ */ l("div", { className: "flex-1 flex items-center justify-center text-text-neutral-muted", children: "Select a column to configure its filter" }) })
87
+ ] }),
88
+ /* @__PURE__ */ t("div", { className: "flex justify-between items-center p-4 border-t border-stroke-solid-medium", children: [
89
+ /* @__PURE__ */ l(
89
90
  s,
90
91
  {
91
- onClick: () => p(!1),
92
- variant: "stroke",
92
+ onClick: v,
93
+ variant: "ghost",
93
94
  shade: "neutral",
94
95
  size: "small",
95
- children: "Cancel"
96
+ disabled: !i,
97
+ children: "Clear All"
96
98
  }
97
99
  ),
98
- /* @__PURE__ */ t(s, { onClick: y, variant: "filled", shade: "brand", size: "small", children: "Apply" })
100
+ /* @__PURE__ */ t("div", { className: "flex gap-2", children: [
101
+ /* @__PURE__ */ l(
102
+ s,
103
+ {
104
+ onClick: () => u(!1),
105
+ variant: "stroke",
106
+ shade: "neutral",
107
+ size: "small",
108
+ children: "Cancel"
109
+ }
110
+ ),
111
+ /* @__PURE__ */ l(s, { onClick: k, variant: "filled", shade: "neutral", size: "small", children: "Apply" })
112
+ ] })
99
113
  ] })
100
- ] }) })
101
- ] }) : null;
114
+ ] })
115
+ ] });
102
116
  };
103
117
  export {
104
- C as TableFilter
118
+ E as TableFilter
105
119
  };
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { TableFilter, TableSchema } from '../../table.type';
2
+ import { TableFilter, TableSchema, FilterOption } from '../../table.type';
3
3
  export interface TableFilterProps {
4
4
  schema: TableSchema;
5
5
  filter: TableFilter;
@@ -8,11 +8,12 @@ export interface TableFilterProps {
8
8
  export type FilterComponentProps = {
9
9
  onChange: (input: {
10
10
  condition?: string;
11
- value?: string;
11
+ value?: string | string[];
12
12
  }) => void;
13
13
  value: {
14
14
  condition?: string;
15
- value: string;
15
+ value: string | string[];
16
16
  };
17
+ filterOptions?: FilterOption[];
17
18
  };
18
19
  export type FilterComponentType = FC<FilterComponentProps>;
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  const l = ({ children: e, className: r = "" }) => /* @__PURE__ */ t(
3
3
  "div",
4
4
  {
5
- className: `flex justify-between items-center bg-neutral-default border-stroke-solid-light border border-t-[0.5px] gap-3 p-2 pl-4 rounded-b-xl ${r} `,
5
+ className: `flex justify-between items-center bg-neutral-surface-default border-stroke-solid-light border border-t-[0.5px] gap-3 p-2 pl-4 rounded-b-xl ${r} `,
6
6
  children: e
7
7
  }
8
8
  );
@@ -12,7 +12,7 @@ const x = ({
12
12
  }) => /* @__PURE__ */ r(
13
13
  "thead",
14
14
  {
15
- className: `${t.header} ${s ? "sticky top-[-1.5px] z-10" : ""}`,
15
+ className: `${t.header} ${s ? "sticky top-[-1.5px] z-1" : ""}`,
16
16
  children: /* @__PURE__ */ r("tr", { children: a.map((e) => {
17
17
  const l = h(e.key, i), d = p(e.key, i);
18
18
  return /* @__PURE__ */ r(
@@ -1,6 +1,6 @@
1
1
  export { Table as default, Table, TableProvider } from './table-provider';
2
2
  export { TableBody } from './table';
3
- export type { TableProps, TableSchema, TableSchemaColumn, CellType, CellValue, CellRenderer, CellRendererProps, FilterRule, FilterCondition, TableFilter as TableFilterType, TablePaginationConfig, SortDirection, SortColumn, TableSort, } from './table.type';
3
+ export type { TableProps, TableSchema, TableSchemaColumn, CellType, CellValue, CellRenderer, CellRendererProps, FilterRule, FilterCondition, FilterOption, TableFilter as TableFilterType, TablePaginationConfig, SortDirection, SortColumn, TableSort, } from './table.type';
4
4
  export { getNestedValue, extractCellValue } from './table.utils';
5
5
  export { DEFAULT_EMPTY_MESSAGE, TABLE_CSS_CLASSES } from './table.const';
6
6
  export { TableContext, useTableContext } from './table.context';
@@ -1,7 +1,7 @@
1
1
  export declare const DEFAULT_EMPTY_MESSAGE = "No data available";
2
2
  export declare const TABLE_CSS_CLASSES: {
3
3
  readonly table: "w-full";
4
- readonly header: "bg-neutral-25 text-text-neutral-secondary";
4
+ readonly header: "bg-background-neutral-medium text-text-neutral-secondary";
5
5
  readonly cell: {
6
6
  readonly default: "px-4 py-3 text-sm";
7
7
  readonly cellHeight: {
@@ -1,6 +1,6 @@
1
1
  const e = "No data available", t = {
2
2
  table: "w-full",
3
- header: "bg-neutral-25 text-text-neutral-secondary",
3
+ header: "bg-background-neutral-medium text-text-neutral-secondary",
4
4
  cell: {
5
5
  default: "px-4 py-3 text-sm",
6
6
  cellHeight: {
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { FilterComponentType } from './components/table-filter/table-filter.type';
3
- export type CellType = 'text' | 'number' | 'boolean';
3
+ export type CellType = 'text' | 'number' | 'boolean' | 'checkbox';
4
4
  export type CellValue = string | number | boolean | null | undefined;
5
5
  export type CellRendererProps = {
6
6
  value: CellValue;
@@ -12,6 +12,10 @@ export type FilterCondition = 'contains' | 'notEqual' | 'equal' | '>' | '<' | '=
12
12
  export type FilterRule = {
13
13
  field: string;
14
14
  condition?: string;
15
+ value: string | string[];
16
+ };
17
+ export type FilterOption = {
18
+ label: string;
15
19
  value: string;
16
20
  };
17
21
  export type TableFilter = {
@@ -49,6 +53,7 @@ export type TableSchemaColumn = {
49
53
  filterable?: boolean;
50
54
  hideable?: boolean;
51
55
  sortable?: boolean;
56
+ filterOptions?: FilterOption[];
52
57
  };
53
58
  export type TableSchema = TableSchemaColumn[];
54
59
  export type TableProps = {
@@ -1,2 +1,2 @@
1
1
  export { default as TableCard } from './table-card';
2
- export type { TableCardProps, TableCardSearch, TableCardFilter, TableCardPaginationInfo, TableCardPaginationQuickJumper, TableCardPagination, TableCardBodyProps, } from './table-card.type';
2
+ export type { TableCardProps } from './table-card.type';
@@ -0,0 +1,114 @@
1
+ import { jsx as l, jsxs as d } from "react/jsx-runtime";
2
+ import { Table as e } from "../table/table-provider.js";
3
+ import "react";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ import "../table/table.context.js";
6
+ import "../button/button.js";
7
+ import "../input/input.js";
8
+ const S = ({
9
+ dataSource: f,
10
+ schema: m,
11
+ loading: u,
12
+ emptyMessage: N,
13
+ className: H,
14
+ showHeader: P = !0,
15
+ headerClassName: v,
16
+ search: s,
17
+ filter: h,
18
+ headerActions: n,
19
+ body: r = {
20
+ cell: { cellHeight: "small", hasBorder: !0 },
21
+ className: "",
22
+ stickyHeader: !0
23
+ },
24
+ showFooter: C = !0,
25
+ footerClassName: _,
26
+ pagination: a,
27
+ paginationInfo: c,
28
+ paginationQuickJumper: t
29
+ }) => {
30
+ const x = a || c || t, g = s || h || n;
31
+ return /* @__PURE__ */ l("div", { className: o("flex flex-col overflow-hidden", H), children: /* @__PURE__ */ d(e, { dataSource: f, schema: m, loading: u, emptyMessage: N, children: [
32
+ P && g && /* @__PURE__ */ d(e.Header, { className: o("flex-shrink-0", v), children: [
33
+ /* @__PURE__ */ d(e.HeaderContent, { children: [
34
+ s && /* @__PURE__ */ l(
35
+ e.Search,
36
+ {
37
+ search: {
38
+ value: s.value || "",
39
+ onChange: s.onChange || (() => {
40
+ }),
41
+ placeholder: s.placeholder
42
+ },
43
+ className: s.className
44
+ }
45
+ ),
46
+ h && /* @__PURE__ */ l(
47
+ e.Filter,
48
+ {
49
+ schema: m,
50
+ filter: {
51
+ value: h.value || [],
52
+ onChange: h.onChange || (() => {
53
+ })
54
+ }
55
+ }
56
+ )
57
+ ] }),
58
+ n && /* @__PURE__ */ l(e.HeaderContent, { children: n })
59
+ ] }),
60
+ /* @__PURE__ */ l(
61
+ e.Body,
62
+ {
63
+ cell: r == null ? void 0 : r.cell,
64
+ sort: r == null ? void 0 : r.sort,
65
+ className: o(
66
+ "flex-1 min-h-0",
67
+ "border-stroke-solid-light border-b-1 border-x-1 border-t-0",
68
+ !(P && g) && "rounded-t-xl",
69
+ !(C && x) && "rounded-b-xl",
70
+ "[&_td:first-child]:border-l-0 [&_td:last-child]:border-r-0",
71
+ "[&_th:first-child]:border-l-0 [&_th:last-child]:border-r-0",
72
+ "[&_tr:last-child_td]:border-b-0",
73
+ r == null ? void 0 : r.className
74
+ ),
75
+ stickyHeader: r == null ? void 0 : r.stickyHeader
76
+ }
77
+ ),
78
+ C && x && /* @__PURE__ */ d(e.Footer, { className: o("flex-shrink-0", _), children: [
79
+ c && /* @__PURE__ */ l(e.FooterContent, { children: /* @__PURE__ */ l(
80
+ e.PaginationInfo,
81
+ {
82
+ showTotal: c.showTotal || !1,
83
+ totalItems: c.totalItems || 0,
84
+ currentPage: c.currentPage || 1,
85
+ itemsPerPage: c.itemsPerPage || 10
86
+ }
87
+ ) }),
88
+ (t || a) && /* @__PURE__ */ d(e.FooterContent, { children: [
89
+ t && /* @__PURE__ */ l(
90
+ e.PaginationQuickJumper,
91
+ {
92
+ currentPage: t.currentPage || 1,
93
+ totalPage: t.totalPage || 1,
94
+ onChange: t.onChange || (() => {
95
+ }),
96
+ disabled: t.disabled || !1
97
+ }
98
+ ),
99
+ a && /* @__PURE__ */ l(
100
+ e.Pagination,
101
+ {
102
+ currentPage: a.currentPage || 1,
103
+ totalPage: a.totalPage || 1,
104
+ onChange: a.onChange || (() => {
105
+ })
106
+ }
107
+ )
108
+ ] })
109
+ ] })
110
+ ] }) });
111
+ };
112
+ export {
113
+ S as default
114
+ };
@@ -1,36 +1,28 @@
1
- import { TableProps, TableSchema, TableFilter as TableFilterType, TableSearch as TableSearchType } from '../table/table.type';
1
+ import { default as React } from 'react';
2
+ import { TableProps, TableSchema, TableFilter, TableSearch, TableSort } from '../table/table.type';
2
3
  import { PaginationProps, PaginationInfoProps, PaginationQuickJumperProps } from '../table/components/pagination/pagination.type';
3
- export interface TableCardSearch extends Partial<TableSearchType> {
4
- className?: string;
5
- }
6
- export type TableCardFilter = Partial<TableFilterType>;
7
- export type TableCardPaginationInfo = Partial<PaginationInfoProps>;
8
- export type TableCardPaginationQuickJumper = Partial<PaginationQuickJumperProps>;
9
- export type TableCardPagination = Partial<PaginationProps>;
10
- export type TableCardBodyProps = Pick<TableProps, 'cell' | 'sort'> & {
11
- className?: string;
12
- stickyHeader?: boolean;
13
- };
14
- export interface TableCardProps extends Omit<TableProps, 'filter' | 'pagination' | 'sort'> {
4
+ export interface TableCardProps {
15
5
  dataSource: Record<string, unknown>[];
16
6
  schema: TableSchema;
17
7
  className?: string;
18
8
  showHeader?: boolean;
19
9
  headerClassName?: string;
20
- search?: TableCardSearch;
21
- filter?: TableCardFilter;
22
- body?: TableCardBodyProps;
10
+ search?: Partial<TableSearch> & {
11
+ className?: string;
12
+ };
13
+ filter?: Partial<TableFilter>;
14
+ headerActions?: React.ReactNode;
15
+ body?: {
16
+ cell?: TableProps['cell'];
17
+ sort?: TableSort;
18
+ className?: string;
19
+ stickyHeader?: boolean;
20
+ };
23
21
  showFooter?: boolean;
24
22
  footerClassName?: string;
25
- paginationInfo?: TableCardPaginationInfo;
26
- paginationQuickJumper?: TableCardPaginationQuickJumper;
27
- pagination?: TableCardPagination;
28
- overrides?: {
29
- search?: Partial<TableCardSearch>;
30
- filter?: Partial<TableCardFilter>;
31
- body?: Partial<TableCardBodyProps>;
32
- paginationInfo?: Partial<TableCardPaginationInfo>;
33
- paginationQuickJumper?: Partial<TableCardPaginationQuickJumper>;
34
- pagination?: Partial<TableCardPagination>;
35
- };
23
+ pagination?: Partial<PaginationProps>;
24
+ paginationInfo?: Partial<PaginationInfoProps>;
25
+ paginationQuickJumper?: Partial<PaginationQuickJumperProps>;
26
+ loading?: boolean;
27
+ emptyMessage?: string;
36
28
  }
@@ -1,16 +1,16 @@
1
1
  /* Semantic Colors - Design System Foundation */
2
2
 
3
3
  :root {
4
- /* Background Colors */
5
- --background-default: var(--neutral-0);
6
- --background-on-top: var(--neutral-0);
7
- --background-light: var(--neutral-25);
8
- --background-medium: var(--neutral-50);
9
- --background-high: var(--neutral-100);
10
- --background-inverted-elevated: rgba(255, 255, 255, 0.1);
11
- --background-attention: var(--neutral-200);
12
- --background-brand: #001534;
13
4
 
5
+ /* Background Colors - Neutral */
6
+ --background-neutral-default: var(--neutral-0);
7
+ --background-neutral-on-top: var(--neutral-0);
8
+ --background-neutral-light: var(--neutral-25);
9
+ --background-neutral-medium: var(--neutral-50);
10
+ --background-neutral-high: var(--neutral-100);
11
+ --background-neutral-pressed: var(--neutral-75);
12
+ --background-neutral-hover: var(--neutral-50);
13
+ --background-neutral-focused: var(--neutral-25);
14
14
  /* Surface Colors - Neutral */
15
15
  --surface-neutral-default: var(--neutral-0);
16
16
  --surface-neutral-hover: var(--neutral-75);
@@ -119,16 +119,17 @@
119
119
  }
120
120
 
121
121
  .dark {
122
- /* Background Colors - Dark Mode */
123
- --background-default: var(--neutral-0);
124
- --background-on-top: var(--neutral-50);
125
- --background-light: var(--neutral-25);
126
- --background-medium: var(--neutral-25);
127
- --background-high: var(--neutral-100);
128
- --background-inverted-elevated: rgba(20, 20, 20, 0.1);
129
- --background-attention: var(--neutral-200);
130
- --background-brand: #0f0f0f;
131
122
 
123
+
124
+ /* Background Colors - Neutral - Dark Mode */
125
+ --background-neutral-default: var(--neutral-0);
126
+ --background-neutral-on-top: var(--neutral-50);
127
+ --background-neutral-light: var(--neutral-25);
128
+ --background-neutral-medium: var(--neutral-25);
129
+ --background-neutral-high: var(--neutral-100);
130
+ --background-neutral-pressed: var(--neutral-75);
131
+ --background-neutral-hover: var(--neutral-50);
132
+ --background-neutral-focused: var(--neutral-25);
132
133
  /* Surface Colors - Neutral - Dark Mode */
133
134
  --surface-neutral-default: var(--neutral-0);
134
135
  --surface-neutral-hover: var(--neutral-75);
@@ -238,16 +239,16 @@
238
239
 
239
240
  /* Tailwind v4 Theme Integration */
240
241
  @theme inline {
241
- /* Background Colors */
242
- --color-background-default: var(--background-default);
243
- --color-background-on-top: var(--background-on-top);
244
- --color-background-light: var(--background-light);
245
- --color-background-medium: var(--background-medium);
246
- --color-background-high: var(--background-high);
247
- --color-background-inverted-elevated: var(--background-inverted-elevated);
248
- --color-background-attention: var(--background-attention);
249
- --color-background-brand: var(--background-brand);
250
242
 
243
+ /* Background Colors - Neutral */
244
+ --color-background-neutral-default: var(--background-neutral-default);
245
+ --color-background-neutral-on-top: var(--background-neutral-on-top);
246
+ --color-background-neutral-light: var(--background-neutral-light);
247
+ --color-background-neutral-medium: var(--background-neutral-medium);
248
+ --color-background-neutral-high: var(--background-neutral-high);
249
+ --color-background-neutral-pressed: var(--background-neutral-pressed);
250
+ --color-background-neutral-hover: var(--background-neutral-hover);
251
+ --color-background-neutral-focused: var(--background-neutral-focused);
251
252
  /* Surface Colors - Neutral */
252
253
  --color-surface-neutral-default: var(--surface-neutral-default);
253
254
  --color-surface-neutral-hover: var(--surface-neutral-hover);