@ztwoint/z-ui 0.1.46 → 0.1.49
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/components/alert/alert.const.d.ts +0 -3
- package/dist/components/alert/alert.const.js +16 -31
- package/dist/components/alert/alert.js +32 -44
- package/dist/components/assets/icons/check.d.ts +8 -0
- package/dist/components/assets/icons/check.js +17 -0
- package/dist/components/assets/icons/x-mark.d.ts +8 -0
- package/dist/components/assets/icons/x-mark.js +17 -0
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/button/button.js +58 -58
- package/dist/components/collapsible-side-nav-bar/side-nav-bar-header.js +17 -17
- package/dist/components/nav-header/nav-item/nav-item.d.ts +4 -2
- package/dist/components/nav-header/nav-item/nav-item.js +29 -28
- package/dist/components/select/z2-select.js +131 -78
- package/dist/components/table/components/cell/avatar-cell.d.ts +15 -0
- package/dist/components/table/components/cell/avatar-cell.js +74 -0
- package/dist/components/table/components/cell/boolean-cell.d.ts +1 -2
- package/dist/components/table/components/cell/boolean-cell.js +5 -5
- package/dist/components/table/components/cell/description-cell.d.ts +7 -0
- package/dist/components/table/components/cell/description-cell.js +16 -0
- package/dist/components/table/components/cell/index.d.ts +10 -1
- package/dist/components/table/components/cell/label-cell.d.ts +10 -0
- package/dist/components/table/components/cell/label-cell.js +47 -0
- package/dist/components/table/components/cell/link-cell.d.ts +10 -0
- package/dist/components/table/components/cell/link-cell.js +35 -0
- package/dist/components/table/components/cell/number-cell.d.ts +5 -3
- package/dist/components/table/components/cell/number-cell.js +40 -3
- package/dist/components/table/components/index.d.ts +1 -1
- package/dist/components/table/components/table-cell.d.ts +1 -1
- package/dist/components/table/components/table-cell.js +41 -32
- package/dist/components/table/components/table-filter/close-filter-confirm/filter-confirmation-dialog.d.ts +10 -0
- package/dist/components/table/components/table-filter/close-filter-confirm/filter-confirmation-dialog.js +33 -0
- package/dist/components/table/components/table-filter/close-filter-confirm/filter-confirmation-dialog.utils.d.ts +13 -0
- package/dist/components/table/components/table-filter/close-filter-confirm/filter-confirmation-dialog.utils.js +20 -0
- package/dist/components/table/components/table-filter/filters/boolean.js +52 -44
- package/dist/components/table/components/table-filter/selected-filters-display/selected-filters-display.utils.js +16 -16
- package/dist/components/table/components/table-filter/table-filter-button.js +88 -57
- package/dist/components/table/components/table-filter/table-filter-column-button.js +81 -51
- package/dist/components/table/components/table-filter/table-filter.context.d.ts +1 -0
- package/dist/components/table/components/table-filter/table-filter.hook.d.ts +1 -0
- package/dist/components/table/components/table-filter/table-filter.hook.js +17 -14
- package/dist/components/table/components/table-footer.js +6 -6
- package/dist/components/table/components/table-header/stories/basic-header.d.ts +1 -1
- package/dist/components/table/components/table-header/table-header.js +27 -33
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/table-provider.js +37 -8
- package/dist/components/table/table.const.d.ts +15 -9
- package/dist/components/table/table.const.js +15 -9
- package/dist/components/table/table.js +39 -34
- package/dist/components/table/table.type.d.ts +36 -5
- package/dist/components/table/table.utils.d.ts +1 -1
- package/dist/components/table/table.utils.js +5 -3
- package/dist/components/table-card/table-card.js +116 -89
- package/dist/components/tooltip/tooltip.js +24 -22
- package/dist/css/config/colors/backgrounds.css +8 -8
- package/dist/css/config/colors/components/avatar.css +12 -12
- package/dist/css/config/colors/components/badge.css +42 -42
- package/dist/css/config/colors/components/checkbox.css +2 -2
- package/dist/css/config/colors/components/featured-icon.css +18 -18
- package/dist/css/config/colors/components/progress-bar.css +2 -2
- package/dist/css/config/colors/components/radio-button.css +2 -2
- package/dist/css/config/colors/components/scroll-overlay.css +4 -4
- package/dist/css/config/colors/components/tab.css +7 -7
- package/dist/css/config/colors/components/toggle-switch.css +1 -1
- package/dist/css/config/colors/components/toggle.css +6 -6
- package/dist/css/config/colors/icons.css +20 -20
- package/dist/css/config/colors/overlay.css +1 -1
- package/dist/css/config/colors/semantic/alert.css +44 -0
- package/dist/css/config/colors/semantic/background.css +51 -0
- package/dist/css/config/colors/semantic/base.css +395 -0
- package/dist/css/config/colors/semantic/button.css +131 -0
- package/dist/css/config/colors/semantic/drop-shadow.css +30 -0
- package/dist/css/config/colors/semantic/dropdown.css +12 -0
- package/dist/css/config/colors/semantic/index.css +16 -0
- package/dist/css/config/colors/semantic/input.css +56 -0
- package/dist/css/config/colors/semantic/overlay.css +13 -0
- package/dist/css/config/colors/semantic/stroke.css +90 -0
- package/dist/css/config/colors/semantic/surface.css +135 -0
- package/dist/css/config/colors/semantic/text.css +113 -0
- package/dist/css/config/colors/semantic/tooltip.css +12 -0
- package/dist/css/config/colors/shape.css +40 -40
- package/dist/css/config/colors/stroke.css +19 -19
- package/dist/css/config/colors/surfaces.css +47 -47
- package/dist/css/config/colors/text.css +37 -37
- package/dist/css/config/components/index.css +0 -2
- package/dist/css/config/config-deprecated.css +3 -5
- package/dist/css/config/config.css +5 -3
- package/dist/css/config/other-variables.css +9 -0
- package/dist/css/config/shadows.css +15 -0
- package/dist/css/config/typography/2xl.css +7 -14
- package/dist/css/config/typography/3xl.css +7 -14
- package/dist/css/config/typography/4xl.css +7 -14
- package/dist/css/config/typography/base.css +7 -14
- package/dist/css/config/typography/lg.css +7 -14
- package/dist/css/config/typography/sm.css +7 -14
- package/dist/css/config/typography/xl.css +7 -14
- package/dist/css/config/typography/xs.css +7 -14
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.js +62 -64
- package/dist/types/components/alert/alert.const.d.ts +0 -3
- package/dist/types/components/assets/icons/check.d.ts +8 -0
- package/dist/types/components/assets/icons/x-mark.d.ts +8 -0
- package/dist/types/components/button/button.d.ts +3 -3
- package/dist/types/components/nav-header/nav-item/nav-item.d.ts +4 -2
- package/dist/types/components/table/components/cell/avatar-cell.d.ts +15 -0
- package/dist/types/components/table/components/cell/boolean-cell.d.ts +1 -2
- package/dist/types/components/table/components/cell/description-cell.d.ts +7 -0
- package/dist/types/components/table/components/cell/index.d.ts +10 -1
- package/dist/types/components/table/components/cell/label-cell.d.ts +10 -0
- package/dist/types/components/table/components/cell/link-cell.d.ts +10 -0
- package/dist/types/components/table/components/cell/number-cell.d.ts +5 -3
- package/dist/types/components/table/components/index.d.ts +1 -1
- package/dist/types/components/table/components/table-cell.d.ts +1 -1
- package/dist/types/components/table/components/table-filter/close-filter-confirm/filter-confirmation-dialog.d.ts +10 -0
- package/dist/types/components/table/components/table-filter/close-filter-confirm/filter-confirmation-dialog.utils.d.ts +13 -0
- package/dist/types/components/table/components/table-filter/table-filter.context.d.ts +1 -0
- package/dist/types/components/table/components/table-filter/table-filter.hook.d.ts +1 -0
- package/dist/types/components/table/components/table-header/stories/basic-header.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/table/table.const.d.ts +15 -9
- package/dist/types/components/table/table.type.d.ts +36 -5
- package/dist/types/components/table/table.utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/table/components/cell/text-cell.d.ts +0 -7
- package/dist/components/table/components/cell/text-cell.js +0 -5
- package/dist/css/config/colors/components/alert.css +0 -84
- package/dist/css/config/colors/components/button.css +0 -93
- package/dist/css/config/colors/components/select.css +0 -128
- package/dist/css/config/colors/components/text-button.css +0 -67
- package/dist/css/config/colors/defaults.css +0 -393
- package/dist/css/config/colors/semantic-colors.css +0 -353
- package/dist/css/config/components/button.css +0 -160
- package/dist/css/config/components/input.css +0 -56
- package/dist/node_modules/@heroicons/react/24/solid/esm/CheckCircleIcon.js +0 -26
- package/dist/node_modules/@heroicons/react/24/solid/esm/XCircleIcon.js +0 -26
- package/dist/types/components/table/components/cell/text-cell.d.ts +0 -7
- /package/dist/css/config/typography/{typography.css → index.css} +0 -0
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { FilterComponentType } from './components/table-filter/table-filter.type';
|
|
3
|
-
|
|
3
|
+
import { NumberCellProps } from './components/cell/number-cell';
|
|
4
|
+
import { BooleanCellProps } from './components/cell/boolean-cell';
|
|
5
|
+
import { LinkCellProps } from './components/cell/link-cell';
|
|
6
|
+
import { AvatarCellProps } from './components/cell/avatar-cell';
|
|
7
|
+
import { LabelCellProps } from './components/cell/label-cell';
|
|
8
|
+
import { DescriptionCellProps } from './components/cell/description-cell';
|
|
9
|
+
export type CellType = 'number' | 'boolean' | 'checkbox' | 'link' | 'avatar' | 'label' | 'description' | 'text';
|
|
4
10
|
export type CellValue = string | number | boolean | null | undefined;
|
|
5
11
|
export type CellRendererProps = {
|
|
6
12
|
value: CellValue;
|
|
@@ -46,22 +52,46 @@ export type TableSort = {
|
|
|
46
52
|
sortedColumns: SortColumn[];
|
|
47
53
|
onSort: (field: string, direction: SortDirection) => void;
|
|
48
54
|
};
|
|
49
|
-
|
|
55
|
+
type CellPropsByType = {
|
|
56
|
+
number: Omit<NumberCellProps, 'value'>;
|
|
57
|
+
boolean: Omit<BooleanCellProps, 'value'>;
|
|
58
|
+
checkbox: Omit<BooleanCellProps, 'value'>;
|
|
59
|
+
link: Omit<LinkCellProps, 'value' | 'href'> & {
|
|
60
|
+
href: string;
|
|
61
|
+
};
|
|
62
|
+
avatar: Omit<AvatarCellProps, 'value'>;
|
|
63
|
+
label: Omit<LabelCellProps, 'value'>;
|
|
64
|
+
description: Omit<DescriptionCellProps, 'value'>;
|
|
65
|
+
};
|
|
66
|
+
type ColumnBase<T extends CellType> = {
|
|
50
67
|
key: string;
|
|
51
|
-
valueGetter?: (record: Record<string, any>) => string | number | boolean | null | undefined;
|
|
52
68
|
title: string;
|
|
53
|
-
cellType:
|
|
69
|
+
cellType: T;
|
|
54
70
|
cellRenderer?: CellRenderer;
|
|
55
71
|
filterable?: boolean;
|
|
56
72
|
hideable?: boolean;
|
|
57
73
|
sortable?: boolean;
|
|
58
74
|
filterOptions?: FilterOption[];
|
|
59
75
|
};
|
|
76
|
+
export type TableSchemaColumn = (ColumnBase<'number'> & {
|
|
77
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['number'];
|
|
78
|
+
}) | (ColumnBase<'boolean'> & {
|
|
79
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['boolean'];
|
|
80
|
+
}) | (ColumnBase<'checkbox'> & {
|
|
81
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['checkbox'];
|
|
82
|
+
}) | (ColumnBase<'link'> & {
|
|
83
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['link'];
|
|
84
|
+
}) | (ColumnBase<'avatar'> & {
|
|
85
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['avatar'];
|
|
86
|
+
}) | (ColumnBase<'label'> & {
|
|
87
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['label'];
|
|
88
|
+
}) | (ColumnBase<'description'> & {
|
|
89
|
+
valueGetter?: (record: Record<string, unknown>) => CellValue | CellPropsByType['description'];
|
|
90
|
+
});
|
|
60
91
|
export type TableSchema = TableSchemaColumn[];
|
|
61
92
|
export type TableProps = {
|
|
62
93
|
cell?: {
|
|
63
94
|
hasBorder?: boolean;
|
|
64
|
-
cellHeight?: 'small' | 'large';
|
|
65
95
|
};
|
|
66
96
|
dataSource: Record<string, unknown>[];
|
|
67
97
|
schema: TableSchema;
|
|
@@ -73,3 +103,4 @@ export type TableProps = {
|
|
|
73
103
|
sort?: TableSort;
|
|
74
104
|
customCells?: Record<string, CellRenderer>;
|
|
75
105
|
};
|
|
106
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CellValue, TableSchemaColumn } from './table.type';
|
|
2
|
-
export declare const extractCellValue: (record: Record<string, unknown>, column: TableSchemaColumn) => CellValue
|
|
2
|
+
export declare const extractCellValue: (record: Record<string, unknown>, column: TableSchemaColumn) => CellValue | Record<string, unknown>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
const a = (
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const a = (r, e) => {
|
|
2
|
+
if (e.valueGetter)
|
|
3
|
+
return e.valueGetter(r);
|
|
4
|
+
const t = r[e.key];
|
|
5
|
+
return t != null ? t ?? void 0 : void 0;
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
8
|
a as extractCellValue
|
|
@@ -1,137 +1,164 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Table as
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Table as t } from "../table/table-provider.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
4
|
+
import { cn as n } from "../../lib/utils.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import "../alert/alert.const.js";
|
|
6
7
|
import "../button/button.js";
|
|
8
|
+
import "../collapsible-side-nav-bar/side-nav-bar-provider.js";
|
|
9
|
+
import "../collapsible-side-nav-bar/side-nav-bar.js";
|
|
10
|
+
import "../collapsible-side-nav-bar/side-nav-bar-header.js";
|
|
11
|
+
import "../collapsible-side-nav-bar/side-nav-bar-content.js";
|
|
12
|
+
import "../collapsible-side-nav-bar/side-nav-bar-footer.js";
|
|
13
|
+
import "../collapsible-side-nav-bar/side-nav-bar-group.js";
|
|
14
|
+
import "../collapsible-side-nav-bar/side-nav-bar-item.js";
|
|
15
|
+
import "../collapsible-side-nav-bar/side-nav-bar-separator.js";
|
|
16
|
+
import "../collapsible-side-nav-bar/context.js";
|
|
17
|
+
import "../collapsible-side-nav-bar/popover/popover.js";
|
|
18
|
+
import "react-country-flag";
|
|
19
|
+
import "classnames";
|
|
20
|
+
import "@radix-ui/react-dialog";
|
|
21
|
+
import "../dropdown/z2-dropdown.js";
|
|
22
|
+
import "@radix-ui/react-dropdown-menu";
|
|
23
|
+
import "lucide-react";
|
|
7
24
|
import "../input/input.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
import "../nav-header/nav-header.js";
|
|
26
|
+
import "../nav-header/nav-item/nav-item.js";
|
|
27
|
+
import "@radix-ui/react-select";
|
|
28
|
+
import "../stepper/stepper.js";
|
|
29
|
+
import "../stepper-item/stepper-item.js";
|
|
30
|
+
import "@radix-ui/react-tabs";
|
|
31
|
+
import "../tooltip/tooltip.js";
|
|
32
|
+
import "../badge/badge.js";
|
|
33
|
+
import "../avatar/avatar.js";
|
|
34
|
+
import "../table/table.context.js";
|
|
35
|
+
const dt = ({
|
|
36
|
+
dataSource: v,
|
|
37
|
+
schema: i,
|
|
38
|
+
loading: H,
|
|
39
|
+
emptyMessage: w,
|
|
40
|
+
className: T,
|
|
41
|
+
rounded: d = !0,
|
|
42
|
+
bordered: h = !0,
|
|
43
|
+
showHeader: C = !0,
|
|
44
|
+
headerClassName: _,
|
|
45
|
+
search: m,
|
|
46
|
+
filter: e,
|
|
47
|
+
headerLeftContent: P,
|
|
21
48
|
headerActions: u,
|
|
22
|
-
body:
|
|
23
|
-
cell: {
|
|
49
|
+
body: r = {
|
|
50
|
+
cell: { hasBorder: !0 },
|
|
24
51
|
className: "",
|
|
25
52
|
stickyHeader: !0
|
|
26
53
|
},
|
|
27
|
-
showFooter:
|
|
28
|
-
footerClassName:
|
|
29
|
-
pagination:
|
|
30
|
-
paginationInfo:
|
|
31
|
-
paginationQuickJumper:
|
|
54
|
+
showFooter: x = !0,
|
|
55
|
+
footerClassName: k,
|
|
56
|
+
pagination: l,
|
|
57
|
+
paginationInfo: a,
|
|
58
|
+
paginationQuickJumper: s
|
|
32
59
|
}) => {
|
|
33
|
-
var
|
|
34
|
-
const
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
60
|
+
var B;
|
|
61
|
+
const F = s && s.totalPage && s.totalPage >= 2, p = l && l.totalPage && l.totalPage >= 2 || !!a || F, g = m || e || P || u, R = typeof (e == null ? void 0 : e.showFilterButton) > "u" ? !0 : e == null ? void 0 : e.showFilterButton;
|
|
62
|
+
return /* @__PURE__ */ o("div", { className: n("flex flex-col overflow-hidden", T), children: /* @__PURE__ */ c(t, { dataSource: v, schema: i, loading: H, emptyMessage: w, children: [
|
|
63
|
+
C && g && /* @__PURE__ */ c(
|
|
64
|
+
t.Header,
|
|
38
65
|
{
|
|
39
|
-
className:
|
|
66
|
+
className: n(
|
|
40
67
|
"flex-shrink-0",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
68
|
+
h && "border-stroke-solid-medium border-1 border-b-0",
|
|
69
|
+
d && "rounded-t-xl",
|
|
70
|
+
_
|
|
44
71
|
),
|
|
45
72
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
73
|
+
/* @__PURE__ */ c(t.HeaderContent, { children: [
|
|
74
|
+
P && P,
|
|
75
|
+
m && /* @__PURE__ */ o(
|
|
76
|
+
t.Search,
|
|
50
77
|
{
|
|
51
78
|
search: {
|
|
52
|
-
value:
|
|
53
|
-
onChange:
|
|
79
|
+
value: m.value || "",
|
|
80
|
+
onChange: m.onChange || (() => {
|
|
54
81
|
}),
|
|
55
|
-
placeholder:
|
|
82
|
+
placeholder: m.placeholder
|
|
56
83
|
},
|
|
57
|
-
className:
|
|
84
|
+
className: m.className
|
|
58
85
|
}
|
|
59
86
|
),
|
|
60
|
-
|
|
61
|
-
|
|
87
|
+
e && /* @__PURE__ */ c(
|
|
88
|
+
t.Filter,
|
|
62
89
|
{
|
|
63
|
-
schema:
|
|
90
|
+
schema: i,
|
|
64
91
|
filter: {
|
|
65
|
-
value:
|
|
66
|
-
onChange:
|
|
92
|
+
value: e.value || [],
|
|
93
|
+
onChange: e.onChange || (() => {
|
|
67
94
|
})
|
|
68
95
|
},
|
|
69
96
|
children: [
|
|
70
|
-
|
|
71
|
-
(
|
|
97
|
+
R && /* @__PURE__ */ o(t.Filter.FilterButton, {}),
|
|
98
|
+
(B = e == null ? void 0 : e.quickFilters) == null ? void 0 : B.map((N) => /* @__PURE__ */ o(t.Filter.FilterColumnButton, { filterName: N }, N))
|
|
72
99
|
]
|
|
73
100
|
}
|
|
74
101
|
)
|
|
75
102
|
] }),
|
|
76
|
-
u && /* @__PURE__ */
|
|
103
|
+
u && /* @__PURE__ */ o(t.HeaderContent, { children: u })
|
|
77
104
|
]
|
|
78
105
|
}
|
|
79
106
|
),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
107
|
+
/* @__PURE__ */ o(
|
|
108
|
+
t.Body,
|
|
82
109
|
{
|
|
83
|
-
cell:
|
|
84
|
-
sort:
|
|
85
|
-
className:
|
|
110
|
+
cell: r == null ? void 0 : r.cell,
|
|
111
|
+
sort: r == null ? void 0 : r.sort,
|
|
112
|
+
className: n(
|
|
86
113
|
"flex-1 min-h-0",
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
114
|
+
h && "border-stroke-solid-light border-1",
|
|
115
|
+
d && !(C && g) && "rounded-t-xl",
|
|
116
|
+
d && !(x && p) && "rounded-b-xl",
|
|
117
|
+
h && "[&_td:first-child]:border-l-0 [&_td:last-child]:border-r-0",
|
|
118
|
+
h && "[&_th:first-child]:border-l-0 [&_th:last-child]:border-r-0",
|
|
119
|
+
r == null ? void 0 : r.className
|
|
93
120
|
),
|
|
94
|
-
stickyHeader:
|
|
121
|
+
stickyHeader: r == null ? void 0 : r.stickyHeader
|
|
95
122
|
}
|
|
96
123
|
),
|
|
97
|
-
|
|
98
|
-
|
|
124
|
+
x && p && /* @__PURE__ */ c(
|
|
125
|
+
t.Footer,
|
|
99
126
|
{
|
|
100
|
-
className:
|
|
101
|
-
"flex-shrink-0",
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
127
|
+
className: n(
|
|
128
|
+
"flex-shrink-0 border-stroke-solid-light border-t-[0.5px] mt-[-2px]",
|
|
129
|
+
h && "border",
|
|
130
|
+
d && "rounded-b-xl",
|
|
131
|
+
k
|
|
105
132
|
),
|
|
106
133
|
children: [
|
|
107
|
-
|
|
108
|
-
|
|
134
|
+
a ? /* @__PURE__ */ o(t.FooterContent, { children: /* @__PURE__ */ o(
|
|
135
|
+
t.PaginationInfo,
|
|
109
136
|
{
|
|
110
|
-
showTotal:
|
|
111
|
-
totalItems:
|
|
112
|
-
currentPage:
|
|
113
|
-
itemsPerPage:
|
|
137
|
+
showTotal: a.showTotal,
|
|
138
|
+
totalItems: a.totalItems,
|
|
139
|
+
currentPage: a.currentPage,
|
|
140
|
+
itemsPerPage: a.itemsPerPage
|
|
114
141
|
}
|
|
115
|
-
) }) :
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
|
|
142
|
+
) }) : s || l ? /* @__PURE__ */ o(t.FooterContent, { children: null }) : null,
|
|
143
|
+
(s || l) && /* @__PURE__ */ c(t.FooterContent, { children: [
|
|
144
|
+
F && /* @__PURE__ */ o(
|
|
145
|
+
t.PaginationQuickJumper,
|
|
119
146
|
{
|
|
120
|
-
currentPage:
|
|
121
|
-
totalPage:
|
|
122
|
-
onChange:
|
|
147
|
+
currentPage: s.currentPage,
|
|
148
|
+
totalPage: s.totalPage,
|
|
149
|
+
onChange: s.onChange || (() => {
|
|
123
150
|
}),
|
|
124
|
-
disabled:
|
|
151
|
+
disabled: s.disabled
|
|
125
152
|
}
|
|
126
153
|
),
|
|
127
|
-
|
|
128
|
-
|
|
154
|
+
l && /* @__PURE__ */ o(
|
|
155
|
+
t.Pagination,
|
|
129
156
|
{
|
|
130
|
-
currentPage:
|
|
131
|
-
totalPage:
|
|
132
|
-
onChange:
|
|
157
|
+
currentPage: l.currentPage,
|
|
158
|
+
totalPage: l.totalPage,
|
|
159
|
+
onChange: l.onChange || (() => {
|
|
133
160
|
}),
|
|
134
|
-
totalItems:
|
|
161
|
+
totalItems: l.totalItems
|
|
135
162
|
}
|
|
136
163
|
)
|
|
137
164
|
] })
|
|
@@ -141,5 +168,5 @@ const M = ({
|
|
|
141
168
|
] }) });
|
|
142
169
|
};
|
|
143
170
|
export {
|
|
144
|
-
|
|
171
|
+
dt as default
|
|
145
172
|
};
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { cn as
|
|
4
|
-
const
|
|
5
|
-
message:
|
|
1
|
+
import { jsx as a, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "@radix-ui/react-tooltip";
|
|
3
|
+
import { cn as n } from "../../lib/utils.js";
|
|
4
|
+
const p = ({
|
|
5
|
+
message: d,
|
|
6
6
|
children: i,
|
|
7
|
-
delayDuration:
|
|
8
|
-
side:
|
|
9
|
-
className:
|
|
10
|
-
...
|
|
11
|
-
}) => /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
7
|
+
delayDuration: o = 300,
|
|
8
|
+
side: l = void 0,
|
|
9
|
+
className: r,
|
|
10
|
+
...s
|
|
11
|
+
}) => /* @__PURE__ */ a(e.Provider, { delayDuration: o, children: /* @__PURE__ */ t(e.Root, { children: [
|
|
12
|
+
/* @__PURE__ */ a(e.Trigger, { asChild: !0, children: i }),
|
|
13
|
+
/* @__PURE__ */ a(e.Portal, { children: /* @__PURE__ */ t(
|
|
14
|
+
e.Content,
|
|
15
15
|
{
|
|
16
|
-
side:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
side: l,
|
|
17
|
+
sideOffset: 4,
|
|
18
|
+
className: n(
|
|
19
|
+
"bg-tooltip-surface text-white leading-none-regular-sm rounded-md px-2 py-2",
|
|
20
|
+
"will-change-[transform,opacity] data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",
|
|
21
|
+
r
|
|
20
22
|
),
|
|
21
|
-
...
|
|
23
|
+
...s,
|
|
22
24
|
children: [
|
|
23
|
-
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
+
d,
|
|
26
|
+
/* @__PURE__ */ a(e.Arrow, { className: "fill-tooltip-surface" })
|
|
25
27
|
]
|
|
26
28
|
}
|
|
27
29
|
) })
|
|
28
30
|
] }) });
|
|
29
|
-
|
|
31
|
+
p.displayName = "Z2Tooltip";
|
|
30
32
|
export {
|
|
31
|
-
|
|
33
|
+
p as Z2Tooltip
|
|
32
34
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/* neutral */
|
|
2
2
|
@utility bg-neutral-default {
|
|
3
|
-
background-color: var(--color-neutral-
|
|
3
|
+
background-color: var(--color-background-neutral-default);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
@utility bg-neutral-on-top {
|
|
7
|
-
background-color: var(--color-neutral-
|
|
7
|
+
background-color: var(--color-background-neutral-on-top);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@utility bg-neutral-light {
|
|
11
|
-
background-color: var(--color-neutral-
|
|
11
|
+
background-color: var(--color-background-neutral-light);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@utility bg-neutral-high {
|
|
15
|
-
background-color: var(--color-neutral-
|
|
15
|
+
background-color: var(--color-background-neutral-high);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@utility bg-neutral-medium {
|
|
19
|
-
background-color: var(--color-neutral-
|
|
19
|
+
background-color: var(--color-background-neutral-medium);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@utility bg-neutral-inverted-elevated {
|
|
23
|
-
background-color: var(--color-
|
|
23
|
+
background-color: var(--color-surface-inverted-default);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@utility bg-neutral-inverted-attention {
|
|
27
|
-
background-color: var(--color-
|
|
27
|
+
background-color: var(--color-surface-inverted-hover);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
@utility bg-neutral-inverted-brand {
|
|
31
|
-
background-color:
|
|
31
|
+
background-color: var(--color-surface-accent-default);
|
|
32
32
|
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
/* blue */
|
|
2
2
|
.c-avatar-blue-surface {
|
|
3
|
-
background-color: var(--
|
|
3
|
+
background-color: var(--alert-surface-accent);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.c-avatar-blue-name {
|
|
7
|
-
color: var(--color-
|
|
7
|
+
color: var(--color-text-brand-primary);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* red */
|
|
11
11
|
.c-avatar-red-surface {
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--alert-surface-danger);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.c-avatar-red-name {
|
|
16
|
-
color: var(--color-danger-
|
|
16
|
+
color: var(--color-text-danger-primary);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/* yellow */
|
|
20
20
|
.c-avatar-yellow-surface {
|
|
21
|
-
background-color: var(--
|
|
21
|
+
background-color: var(--alert-surface-warning);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.c-avatar-yellow-name {
|
|
25
|
-
color: var(--color-warning-
|
|
25
|
+
color: var(--color-text-warning-primary);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* green */
|
|
29
29
|
.c-avatar-green-surface {
|
|
30
|
-
background-color: var(--
|
|
30
|
+
background-color: var(--alert-surface-success);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.c-avatar-green-name {
|
|
34
|
-
color: var(--color-success-
|
|
34
|
+
color: var(--color-text-success-primary);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* purple */
|
|
38
38
|
.c-avatar-purple-surface {
|
|
39
|
-
background-color: var(--color-purple-
|
|
39
|
+
background-color: var(--color-surface-purple-default);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.c-avatar-purple-name {
|
|
43
|
-
color: var(--color-purple-
|
|
43
|
+
color: var(--color-text-purple-primary);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/* sky */
|
|
47
47
|
.c-avatar-sky-surface {
|
|
48
|
-
background-color: var(--color-
|
|
48
|
+
background-color: var(--color-surface-accent-default);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.c-avatar-sky-name {
|
|
52
|
-
color: var(--color-
|
|
52
|
+
color: var(--color-text-brand-primary);
|
|
53
53
|
}
|