@ztwoint/z-ui 0.1.126 → 0.1.128

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 (77) hide show
  1. package/dist/components/column-reorder/column-reorder.hook.js +11 -9
  2. package/dist/components/column-reorder/column-reorder.js +23 -19
  3. package/dist/components/column-reorder/column-reorder.type.d.ts +3 -0
  4. package/dist/components/column-reorder/components/column-item/column-item.hook.d.ts +13 -2
  5. package/dist/components/column-reorder/components/column-item/column-item.hook.js +57 -39
  6. package/dist/components/column-reorder/components/column-item/column-item.js +111 -45
  7. package/dist/components/column-reorder/components/column-item/column-item.type.d.ts +2 -0
  8. package/dist/components/{chart-card → primitives/chart-card}/chart-card.js +2 -2
  9. package/dist/components/primitives/index.d.ts +2 -0
  10. package/dist/components/primitives/popconfirm/popconfirm.const.d.ts +20 -0
  11. package/dist/components/primitives/popconfirm/popconfirm.const.js +22 -0
  12. package/dist/components/primitives/popconfirm/popconfirm.d.ts +4 -0
  13. package/dist/components/primitives/popconfirm/popconfirm.hook.d.ts +14 -0
  14. package/dist/components/primitives/popconfirm/popconfirm.hook.js +32 -0
  15. package/dist/components/primitives/popconfirm/popconfirm.js +78 -0
  16. package/dist/components/primitives/popconfirm/popconfirm.type.d.ts +24 -0
  17. package/dist/components/primitives/popconfirm/popconfirm.utils.d.ts +3 -0
  18. package/dist/components/primitives/popconfirm/popconfirm.utils.js +6 -0
  19. package/dist/components/primitives/select-compact/select-compact.js +17 -0
  20. package/dist/components/{table-card → primitives/table-card}/table-card.js +74 -73
  21. package/dist/components/{table-card → primitives/table-card}/table-card.type.d.ts +3 -3
  22. package/dist/components/table/components/cell/avatar-cell.js +5 -4
  23. package/dist/components/table/table-provider.js +3 -2
  24. package/dist/css/styles/tailwind.css +1 -1
  25. package/dist/index.d.ts +4 -3
  26. package/dist/index.js +80 -78
  27. package/dist/types/components/column-reorder/column-reorder.type.d.ts +3 -0
  28. package/dist/types/components/column-reorder/components/column-item/column-item.hook.d.ts +13 -2
  29. package/dist/types/components/column-reorder/components/column-item/column-item.type.d.ts +2 -0
  30. package/dist/types/components/primitives/index.d.ts +2 -0
  31. package/dist/types/components/primitives/popconfirm/popconfirm.const.d.ts +20 -0
  32. package/dist/types/components/primitives/popconfirm/popconfirm.d.ts +4 -0
  33. package/dist/types/components/primitives/popconfirm/popconfirm.hook.d.ts +14 -0
  34. package/dist/types/components/primitives/popconfirm/popconfirm.type.d.ts +24 -0
  35. package/dist/types/components/primitives/popconfirm/popconfirm.utils.d.ts +3 -0
  36. package/dist/types/components/{table-card → primitives/table-card}/table-card.type.d.ts +4 -4
  37. package/dist/types/index.d.ts +4 -3
  38. package/package.json +1 -1
  39. package/dist/components/select-compact/select-compact.js +0 -17
  40. /package/dist/components/{chart-card → primitives/chart-card}/builders/bar-chart-builder.d.ts +0 -0
  41. /package/dist/components/{chart-card → primitives/chart-card}/builders/bar-chart-builder.js +0 -0
  42. /package/dist/components/{chart-card → primitives/chart-card}/builders/chart-builder-factory.d.ts +0 -0
  43. /package/dist/components/{chart-card → primitives/chart-card}/builders/chart-builder-factory.js +0 -0
  44. /package/dist/components/{chart-card → primitives/chart-card}/builders/line-chart-builder.d.ts +0 -0
  45. /package/dist/components/{chart-card → primitives/chart-card}/builders/line-chart-builder.js +0 -0
  46. /package/dist/components/{chart-card → primitives/chart-card}/builders/pie-chart-builder.d.ts +0 -0
  47. /package/dist/components/{chart-card → primitives/chart-card}/builders/pie-chart-builder.js +0 -0
  48. /package/dist/components/{chart-card → primitives/chart-card}/chart-card-states.d.ts +0 -0
  49. /package/dist/components/{chart-card → primitives/chart-card}/chart-card-states.js +0 -0
  50. /package/dist/components/{chart-card → primitives/chart-card}/chart-card.config.types.d.ts +0 -0
  51. /package/dist/components/{chart-card → primitives/chart-card}/chart-card.d.ts +0 -0
  52. /package/dist/components/{chart-card → primitives/chart-card}/chart-card.types.d.ts +0 -0
  53. /package/dist/components/{chart-card → primitives/chart-card}/config/colors.d.ts +0 -0
  54. /package/dist/components/{chart-card → primitives/chart-card}/config/colors.js +0 -0
  55. /package/dist/components/{chart-card → primitives/chart-card}/config/defaults.d.ts +0 -0
  56. /package/dist/components/{chart-card → primitives/chart-card}/config/defaults.js +0 -0
  57. /package/dist/components/{chart-card → primitives/chart-card}/index.d.ts +0 -0
  58. /package/dist/components/{chart-card → primitives/chart-card}/validators/config-validator.d.ts +0 -0
  59. /package/dist/components/{chart-card → primitives/chart-card}/validators/config-validator.js +0 -0
  60. /package/dist/components/{select-compact → primitives/select-compact}/select-compact.d.ts +0 -0
  61. /package/dist/components/{table-card → primitives/table-card}/index.d.ts +0 -0
  62. /package/dist/components/{table-card → primitives/table-card}/table-card.d.ts +0 -0
  63. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/bar-chart-builder.d.ts +0 -0
  64. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/chart-builder-factory.d.ts +0 -0
  65. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/line-chart-builder.d.ts +0 -0
  66. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/pie-chart-builder.d.ts +0 -0
  67. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card-states.d.ts +0 -0
  68. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card.config.types.d.ts +0 -0
  69. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card.d.ts +0 -0
  70. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card.types.d.ts +0 -0
  71. /package/dist/types/components/{chart-card → primitives/chart-card}/config/colors.d.ts +0 -0
  72. /package/dist/types/components/{chart-card → primitives/chart-card}/config/defaults.d.ts +0 -0
  73. /package/dist/types/components/{chart-card → primitives/chart-card}/index.d.ts +0 -0
  74. /package/dist/types/components/{chart-card → primitives/chart-card}/validators/config-validator.d.ts +0 -0
  75. /package/dist/types/components/{select-compact → primitives/select-compact}/select-compact.d.ts +0 -0
  76. /package/dist/types/components/{table-card → primitives/table-card}/index.d.ts +0 -0
  77. /package/dist/types/components/{table-card → primitives/table-card}/table-card.d.ts +0 -0
@@ -0,0 +1,78 @@
1
+ import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
+ import { Popover as L, PopoverTrigger as R, PopoverContent as z } from "../../popover/popover.js";
3
+ import { Button as s } from "../../button/button.js";
4
+ import { POPCONFIRM_DEFAULT_CONFIG as l } from "./popconfirm.const.js";
5
+ import { usePopconfirm as A } from "./popconfirm.hook.js";
6
+ import { mapPlacementToRadixAlign as I, mapPlacementToRadixSide as _ } from "./popconfirm.utils.js";
7
+ import "react";
8
+ import { cn as f } from "../../../lib/utils.js";
9
+ const D = ({
10
+ title: h,
11
+ children: g,
12
+ onConfirm: x,
13
+ onCancel: c,
14
+ okText: N = l.okText,
15
+ cancelText: C = l.cancelText,
16
+ placement: r = l.placement,
17
+ open: p,
18
+ onOpenChange: v,
19
+ disabled: n = !1,
20
+ okButtonProps: e,
21
+ cancelButtonProps: i,
22
+ className: b
23
+ }) => {
24
+ const { open: O, confirmLoading: m, handleOpenChange: T, handleConfirm: w, handleCancel: j } = A({
25
+ open: p,
26
+ onOpenChange: v,
27
+ onConfirm: x,
28
+ onCancel: c
29
+ }), y = _(r), F = I(r);
30
+ return /* @__PURE__ */ d(L, { open: n ? !1 : O, onOpenChange: T, children: [
31
+ /* @__PURE__ */ a(R, { asChild: !0, disabled: n, "data-slot": "popconfirm-trigger", children: g }),
32
+ /* @__PURE__ */ a(
33
+ z,
34
+ {
35
+ side: y,
36
+ align: F,
37
+ sideOffset: 8,
38
+ className: f("p-3 w-auto min-w-[200px]", b),
39
+ "data-slot": "popconfirm-content",
40
+ children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-3", children: [
41
+ /* @__PURE__ */ a("div", { className: "text-text-neutral-primary text-sm leading-medium-sm", children: h }),
42
+ /* @__PURE__ */ d("div", { className: "flex justify-end gap-2", children: [
43
+ /* @__PURE__ */ a(
44
+ s,
45
+ {
46
+ onClick: j,
47
+ variant: "stroke",
48
+ shade: "neutral",
49
+ size: "small",
50
+ disabled: m || (i == null ? void 0 : i.disabled),
51
+ className: f("min-w-16", i == null ? void 0 : i.className),
52
+ "data-slot": "popconfirm-cancel-button",
53
+ children: C
54
+ }
55
+ ),
56
+ /* @__PURE__ */ a(
57
+ s,
58
+ {
59
+ onClick: w,
60
+ variant: "filled",
61
+ shade: "brand",
62
+ size: "small",
63
+ disabled: m || (e == null ? void 0 : e.disabled) || (i == null ? void 0 : i.disabled),
64
+ className: f("min-w-16", e == null ? void 0 : e.className),
65
+ "data-slot": "popconfirm-ok-button",
66
+ children: e != null && e.loading || m ? "Loading..." : N
67
+ }
68
+ )
69
+ ] })
70
+ ] })
71
+ }
72
+ )
73
+ ] });
74
+ };
75
+ D.displayName = "Popconfirm";
76
+ export {
77
+ D as Popconfirm
78
+ };
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ import { PopconfirmPlacement } from './popconfirm.const';
3
+ export interface PopconfirmProps {
4
+ title: ReactNode;
5
+ children: ReactNode;
6
+ onConfirm?: () => void | Promise<void>;
7
+ onCancel?: () => void;
8
+ okText?: string;
9
+ cancelText?: string;
10
+ placement?: PopconfirmPlacement;
11
+ open?: boolean;
12
+ onOpenChange?: (open: boolean) => void;
13
+ disabled?: boolean;
14
+ okButtonProps?: {
15
+ loading?: boolean;
16
+ disabled?: boolean;
17
+ className?: string;
18
+ };
19
+ cancelButtonProps?: {
20
+ disabled?: boolean;
21
+ className?: string;
22
+ };
23
+ className?: string;
24
+ }
@@ -0,0 +1,3 @@
1
+ import { PopconfirmPlacement } from './popconfirm.const';
2
+ export declare const mapPlacementToRadixSide: (placement: PopconfirmPlacement) => "top" | "bottom" | "left" | "right";
3
+ export declare const mapPlacementToRadixAlign: (placement: PopconfirmPlacement) => "start" | "center" | "end";
@@ -0,0 +1,6 @@
1
+ import { POPCONFIRM_PLACEMENTS as O } from "./popconfirm.const.js";
2
+ const _ = (T) => T === O.TOP || T === O.TOP_LEFT || T === O.TOP_RIGHT ? "top" : T === O.BOTTOM || T === O.BOTTOM_LEFT || T === O.BOTTOM_RIGHT ? "bottom" : T === O.LEFT || T === O.LEFT_TOP || T === O.LEFT_BOTTOM ? "left" : T === O.RIGHT || T === O.RIGHT_TOP || T === O.RIGHT_BOTTOM ? "right" : "top", P = (T) => T === O.TOP_LEFT || T === O.BOTTOM_LEFT || T === O.LEFT_TOP || T === O.RIGHT_TOP ? "start" : T === O.TOP_RIGHT || T === O.BOTTOM_RIGHT || T === O.LEFT_BOTTOM || T === O.RIGHT_BOTTOM ? "end" : "center";
3
+ export {
4
+ P as mapPlacementToRadixAlign,
5
+ _ as mapPlacementToRadixSide
6
+ };
@@ -0,0 +1,17 @@
1
+ import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
+ import { Z2Select as m, Z2SelectTrigger as S, Z2SelectValue as i, Z2SelectContent as Z, Z2SelectItem as d } from "../../select/z2-select.js";
3
+ function v({
4
+ value: r,
5
+ onChange: t,
6
+ options: c,
7
+ placeholder: a = "Select field",
8
+ className: n
9
+ }) {
10
+ return /* @__PURE__ */ u(m, { value: r || "", onValueChange: t, children: [
11
+ /* @__PURE__ */ e(S, { className: n, children: /* @__PURE__ */ e(i, { placeholder: a }) }),
12
+ /* @__PURE__ */ e(Z, { children: !!c && c.map((l) => /* @__PURE__ */ e(d, { value: l.value, children: l.label }, l.value)) })
13
+ ] });
14
+ }
15
+ export {
16
+ v as Z2SelectCompact
17
+ };
@@ -1,61 +1,62 @@
1
1
  import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
- import { Table as r } from "../table/table-provider.js";
2
+ import { Table as r } from "../../table/table-provider.js";
3
3
  import "react";
4
- import { cn as d } from "../../lib/utils.js";
5
- /* empty css */
6
- import "../alert/alert.const.js";
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";
4
+ import { cn as d } from "../../../lib/utils.js";
5
+ /* empty css */
6
+ import "../../alert/alert.const.js";
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
18
  import "react-country-flag";
19
19
  import "classnames";
20
20
  import "@radix-ui/react-checkbox";
21
21
  import "@radix-ui/react-dialog";
22
- import "../dropdown/z2-dropdown.js";
22
+ import "../../dropdown/z2-dropdown.js";
23
23
  import "@radix-ui/react-dropdown-menu";
24
24
  import "lucide-react";
25
- import S from "../assets/icons/octagon-warning-Copy.js";
26
- import "../input/input.js";
27
- import "../nav-header/nav-header.js";
28
- import "../nav-header/nav-item/nav-item.js";
25
+ import S from "../../assets/icons/octagon-warning-Copy.js";
26
+ import "../../input/input.js";
27
+ import "../../nav-header/nav-header.js";
28
+ import "../../nav-header/nav-item/nav-item.js";
29
29
  import "@radix-ui/react-select";
30
- import "../stepper/stepper.js";
31
- import "../stepper-item/stepper-item.js";
30
+ import "../../stepper/stepper.js";
31
+ import "../../stepper-item/stepper-item.js";
32
32
  import "@radix-ui/react-tabs";
33
- import "../tooltip/tooltip.js";
34
- import { Filter as x } from "../table-filter/index.js";
35
- import "../badge/badge.js";
36
- import "../avatar/avatar.js";
37
- import "../text-preset/text-preset.js";
33
+ import "../../tooltip/tooltip.js";
34
+ import { Filter as x } from "../../table-filter/index.js";
35
+ import "../../badge/badge.js";
36
+ import "../../avatar/avatar.js";
37
+ import "../../text-preset/text-preset.js";
38
38
  import "react-dom";
39
- import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js";
40
- import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
39
+ import "../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js";
40
+ import "../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js";
41
41
  import "@radix-ui/react-slot";
42
- import "../radio/z2-radio.js";
43
- import "../segmented-control/item.js";
42
+ import "../../radio/z2-radio.js";
43
+ import "../../segmented-control/item.js";
44
44
  import "@radix-ui/react-popover";
45
- import "../dynamic-table/z2-table.js";
46
- import "../dynamic-table/z2-table-context.js";
47
- import "../chart/chart.js";
45
+ import "../popconfirm/popconfirm.js";
46
+ import "../../dynamic-table/z2-table.js";
47
+ import "../../dynamic-table/z2-table-context.js";
48
+ import "../../chart/chart.js";
48
49
  import "../chart-card/config/defaults.js";
49
50
  import "../chart-card/config/colors.js";
50
- import "../z2map/map.js";
51
- import "../z2map/map.constants.js";
52
- import "../z2map/components/map-pin.js";
53
- import "../z2map/components/map-pin-content.js";
54
- import "../z2map/components/map-controls.js";
55
- import "../z2map/components/map-zoom-control.js";
56
- import "../z2map/components/map-style-control.js";
57
- import "../table/table.context.js";
58
- const zt = ({
51
+ import "../../z2map/map.js";
52
+ import "../../z2map/map.constants.js";
53
+ import "../../z2map/components/map-pin.js";
54
+ import "../../z2map/components/map-pin-content.js";
55
+ import "../../z2map/components/map-controls.js";
56
+ import "../../z2map/components/map-zoom-control.js";
57
+ import "../../z2map/components/map-style-control.js";
58
+ import "../../table/table.context.js";
59
+ const Dt = ({
59
60
  dataSource: w,
60
61
  schema: B,
61
62
  loading: b,
@@ -65,20 +66,20 @@ const zt = ({
65
66
  bordered: n = !0,
66
67
  showHeader: g = !0,
67
68
  headerClassName: j,
68
- search: a,
69
+ search: s,
69
70
  filter: e,
70
71
  headerLeftContent: h,
71
72
  headerActions: p,
72
- body: l = {
73
+ body: o = {
73
74
  cell: { hasBorder: !0 },
74
75
  className: "",
75
76
  stickyHeader: !0
76
77
  },
77
78
  showFooter: P = !0,
78
79
  footerClassName: T,
79
- pagination: o,
80
+ pagination: l,
80
81
  paginationInfo: i,
81
- paginationQuickJumper: s,
82
+ paginationQuickJumper: a,
82
83
  error: u = !1,
83
84
  dataSourceError: _ = !1
84
85
  }) => {
@@ -92,7 +93,7 @@ const zt = ({
92
93
  typeof u == "string" && /* @__PURE__ */ t("div", { className: "text-text-warning-secondary text-sm", children: u })
93
94
  ] })
94
95
  ] }) });
95
- const C = s && s.totalPage && s.totalPage >= 2, N = o && o.totalPage && o.totalPage >= 2 || !!i || C, v = a || e || h || p, R = typeof (e == null ? void 0 : e.showFilterButton) > "u" ? !0 : e == null ? void 0 : e.showFilterButton;
96
+ const N = a && a.totalPage && a.totalPage >= 2, C = l && l.totalPage && l.totalPage >= 2 || !!i || N, v = s || e || h || p, R = typeof (e == null ? void 0 : e.showFilterButton) > "u" ? !0 : e == null ? void 0 : e.showFilterButton;
96
97
  return /* @__PURE__ */ m("div", { className: d("flex flex-col overflow-hidden relative", H), children: [
97
98
  /* @__PURE__ */ m(r, { dataSource: w, schema: B, emptyMessage: k, children: [
98
99
  g && v && /* @__PURE__ */ m(
@@ -105,18 +106,18 @@ const zt = ({
105
106
  j
106
107
  ),
107
108
  children: [
108
- /* @__PURE__ */ m(r.HeaderContent, { children: [
109
+ /* @__PURE__ */ m(r.HeaderContent, { className: "overflow-x-auto p-[1px]", children: [
109
110
  h && h,
110
- a && /* @__PURE__ */ t(
111
+ s && /* @__PURE__ */ t(
111
112
  r.Search,
112
113
  {
113
114
  search: {
114
- value: a.value || "",
115
- onChange: a.onChange || (() => {
115
+ value: s.value || "",
116
+ onChange: s.onChange || (() => {
116
117
  }),
117
- placeholder: a.placeholder
118
+ placeholder: s.placeholder
118
119
  },
119
- className: a.className
120
+ className: s.className
120
121
  }
121
122
  ),
122
123
  e && /* @__PURE__ */ m(
@@ -145,21 +146,21 @@ const zt = ({
145
146
  r.Body,
146
147
  {
147
148
  dataSourceError: _,
148
- cell: l == null ? void 0 : l.cell,
149
- sort: l == null ? void 0 : l.sort,
149
+ cell: o == null ? void 0 : o.cell,
150
+ sort: o == null ? void 0 : o.sort,
150
151
  className: d(
151
152
  "flex-1 min-h-0",
152
153
  n && "border-stroke-solid-light border-1",
153
154
  c && !(g && v) && "rounded-t-xl",
154
- c && !(P && N) && "rounded-b-xl",
155
+ c && !(P && C) && "rounded-b-xl",
155
156
  n && "[&_td:first-child]:border-l-0 [&_td:last-child]:border-r-0",
156
157
  n && "[&_th:first-child]:border-l-0 [&_th:last-child]:border-r-0",
157
- l == null ? void 0 : l.className
158
+ o == null ? void 0 : o.className
158
159
  ),
159
- stickyHeader: l == null ? void 0 : l.stickyHeader
160
+ stickyHeader: o == null ? void 0 : o.stickyHeader
160
161
  }
161
162
  ),
162
- P && N && /* @__PURE__ */ m(
163
+ P && C && /* @__PURE__ */ m(
163
164
  r.Footer,
164
165
  {
165
166
  className: d(
@@ -177,26 +178,26 @@ const zt = ({
177
178
  currentPage: i.currentPage,
178
179
  itemsPerPage: i.itemsPerPage
179
180
  }
180
- ) }) : s || o ? /* @__PURE__ */ t(r.FooterContent, { children: null }) : null,
181
- (s || o) && /* @__PURE__ */ m(r.FooterContent, { children: [
182
- C && /* @__PURE__ */ t(
181
+ ) }) : a || l ? /* @__PURE__ */ t(r.FooterContent, { children: null }) : null,
182
+ (a || l) && /* @__PURE__ */ m(r.FooterContent, { children: [
183
+ N && /* @__PURE__ */ t(
183
184
  r.PaginationQuickJumper,
184
185
  {
185
- currentPage: s.currentPage,
186
- totalPage: s.totalPage,
187
- onChange: s.onChange || (() => {
186
+ currentPage: a.currentPage,
187
+ totalPage: a.totalPage,
188
+ onChange: a.onChange || (() => {
188
189
  }),
189
- disabled: s.disabled
190
+ disabled: a.disabled
190
191
  }
191
192
  ),
192
- o && /* @__PURE__ */ t(
193
+ l && /* @__PURE__ */ t(
193
194
  r.Pagination,
194
195
  {
195
- currentPage: o.currentPage,
196
- totalPage: o.totalPage,
197
- onChange: o.onChange || (() => {
196
+ currentPage: l.currentPage,
197
+ totalPage: l.totalPage,
198
+ onChange: l.onChange || (() => {
198
199
  }),
199
- totalItems: o.totalItems
200
+ totalItems: l.totalItems
200
201
  }
201
202
  )
202
203
  ] })
@@ -211,5 +212,5 @@ const zt = ({
211
212
  ] });
212
213
  };
213
214
  export {
214
- zt as default
215
+ Dt as default
215
216
  };
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
- import { TableProps, TableSchema, TableSearch, TableSort } from '../table/table.type';
3
- import { TableFilter, FilterRule, FilterSchema } from '../table-filter/table-filter.type';
4
- import { PaginationProps, PaginationInfoProps, PaginationQuickJumperProps } from '../table/components/pagination/pagination.type';
2
+ import { TableProps, TableSchema, TableSearch, TableSort } from '../../table/table.type';
3
+ import { TableFilter, FilterRule, FilterSchema } from '../../table-filter/table-filter.type';
4
+ import { PaginationProps, PaginationInfoProps, PaginationQuickJumperProps } from '../../table/components/pagination/pagination.type';
5
5
  export interface TableCardProps {
6
6
  dataSource: Record<string, unknown>[];
7
7
  schema: TableSchema;
@@ -42,11 +42,12 @@ import "@radix-ui/react-slot";
42
42
  import "../../../radio/z2-radio.js";
43
43
  import "../../../segmented-control/item.js";
44
44
  import "@radix-ui/react-popover";
45
+ import "../../../primitives/popconfirm/popconfirm.js";
45
46
  import "../../../dynamic-table/z2-table.js";
46
47
  import "../../../dynamic-table/z2-table-context.js";
47
48
  import "../../../chart/chart.js";
48
- import "../../../chart-card/config/defaults.js";
49
- import "../../../chart-card/config/colors.js";
49
+ import "../../../primitives/chart-card/config/defaults.js";
50
+ import "../../../primitives/chart-card/config/colors.js";
50
51
  import "../../../z2map/map.js";
51
52
  import "../../../z2map/map.constants.js";
52
53
  import "../../../z2map/components/map-pin.js";
@@ -54,7 +55,7 @@ import "../../../z2map/components/map-pin-content.js";
54
55
  import "../../../z2map/components/map-controls.js";
55
56
  import "../../../z2map/components/map-zoom-control.js";
56
57
  import "../../../z2map/components/map-style-control.js";
57
- const xt = ({
58
+ const ft = ({
58
59
  avatar: m,
59
60
  value: a,
60
61
  rightIcon: o,
@@ -92,5 +93,5 @@ const xt = ({
92
93
  }
93
94
  );
94
95
  export {
95
- xt as AvatarCell
96
+ ft as AvatarCell
96
97
  };
@@ -47,11 +47,12 @@ import "@radix-ui/react-slot";
47
47
  import "../radio/z2-radio.js";
48
48
  import "../segmented-control/item.js";
49
49
  import "@radix-ui/react-popover";
50
+ import "../primitives/popconfirm/popconfirm.js";
50
51
  import "../dynamic-table/z2-table.js";
51
52
  import "../dynamic-table/z2-table-context.js";
52
53
  import "../chart/chart.js";
53
- import "../chart-card/config/defaults.js";
54
- import "../chart-card/config/colors.js";
54
+ import "../primitives/chart-card/config/defaults.js";
55
+ import "../primitives/chart-card/config/colors.js";
55
56
  import "../z2map/map.js";
56
57
  import "../z2map/map.constants.js";
57
58
  import "../z2map/components/map-pin.js";