@ztwoint/z-ui 0.1.126 → 0.1.127

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 (84) hide show
  1. package/dist/components/primitives/chart-card/builders/chart-builder-factory.js +17 -0
  2. package/dist/components/{chart-card → primitives/chart-card}/chart-card.js +2 -2
  3. package/dist/components/primitives/chart-card/config/colors.js +39 -0
  4. package/dist/components/primitives/popconfirm/popconfirm.const.d.ts +20 -0
  5. package/dist/components/primitives/popconfirm/popconfirm.const.js +22 -0
  6. package/dist/components/primitives/popconfirm/popconfirm.d.ts +4 -0
  7. package/dist/components/primitives/popconfirm/popconfirm.hook.d.ts +14 -0
  8. package/dist/components/primitives/popconfirm/popconfirm.hook.js +32 -0
  9. package/dist/components/primitives/popconfirm/popconfirm.js +78 -0
  10. package/dist/components/primitives/popconfirm/popconfirm.type.d.ts +24 -0
  11. package/dist/components/primitives/popconfirm/popconfirm.utils.d.ts +3 -0
  12. package/dist/components/primitives/popconfirm/popconfirm.utils.js +6 -0
  13. package/dist/components/primitives/select-compact/select-compact.js +17 -0
  14. package/dist/components/{table-card → primitives/table-card}/table-card.type.d.ts +3 -3
  15. package/dist/components/table/components/cell/avatar-cell.js +4 -4
  16. package/dist/components/table/table-provider.js +4 -4
  17. package/dist/components/table-filter/table-filter.context.js +3 -12
  18. package/dist/css/styles/tailwind.css +1 -1
  19. package/dist/index.d.ts +4 -3
  20. package/dist/index.js +346 -362
  21. package/dist/types/components/primitives/popconfirm/popconfirm.const.d.ts +20 -0
  22. package/dist/types/components/primitives/popconfirm/popconfirm.d.ts +4 -0
  23. package/dist/types/components/primitives/popconfirm/popconfirm.hook.d.ts +14 -0
  24. package/dist/types/components/primitives/popconfirm/popconfirm.type.d.ts +24 -0
  25. package/dist/types/components/primitives/popconfirm/popconfirm.utils.d.ts +3 -0
  26. package/dist/types/components/{table-card → primitives/table-card}/table-card.type.d.ts +4 -4
  27. package/dist/types/index.d.ts +4 -3
  28. package/package.json +1 -1
  29. package/dist/components/chart-card/builders/chart-builder-factory.js +0 -23
  30. package/dist/components/chart-card/config/colors.js +0 -49
  31. package/dist/components/select-compact/select-compact.js +0 -17
  32. package/dist/components/table-card/table-card.js +0 -215
  33. package/dist/components/table-filter/close-filter-confirm/filter-confirmation-dialog.js +0 -20
  34. package/dist/components/table-filter/close-filter-confirm/filter-confirmation-dialog.utils.js +0 -20
  35. package/dist/components/table-filter/filters/boolean.js +0 -67
  36. package/dist/components/table-filter/filters/checkbox.js +0 -70
  37. package/dist/components/table-filter/filters/number/filter-input-field.js +0 -38
  38. package/dist/components/table-filter/filters/number/number.hook.js +0 -33
  39. package/dist/components/table-filter/filters/number/number.js +0 -55
  40. package/dist/components/table-filter/filters/text.js +0 -50
  41. package/dist/components/table-filter/index.js +0 -11
  42. package/dist/components/table-filter/selected-filters-display/selected-filters-display.js +0 -31
  43. package/dist/components/table-filter/selected-filters-display/selected-filters-display.utils.js +0 -23
  44. package/dist/components/table-filter/table-filter-button.js +0 -181
  45. package/dist/components/table-filter/table-filter-column-button.js +0 -113
  46. package/dist/components/table-filter/table-filter-provider.js +0 -32
  47. package/dist/components/table-filter/table-filter.hook.js +0 -72
  48. package/dist/components/table-filter/table-filter.utils.js +0 -12
  49. /package/dist/components/{chart-card → primitives/chart-card}/builders/bar-chart-builder.d.ts +0 -0
  50. /package/dist/components/{chart-card → primitives/chart-card}/builders/bar-chart-builder.js +0 -0
  51. /package/dist/components/{chart-card → primitives/chart-card}/builders/chart-builder-factory.d.ts +0 -0
  52. /package/dist/components/{chart-card → primitives/chart-card}/builders/line-chart-builder.d.ts +0 -0
  53. /package/dist/components/{chart-card → primitives/chart-card}/builders/line-chart-builder.js +0 -0
  54. /package/dist/components/{chart-card → primitives/chart-card}/builders/pie-chart-builder.d.ts +0 -0
  55. /package/dist/components/{chart-card → primitives/chart-card}/builders/pie-chart-builder.js +0 -0
  56. /package/dist/components/{chart-card → primitives/chart-card}/chart-card-states.d.ts +0 -0
  57. /package/dist/components/{chart-card → primitives/chart-card}/chart-card-states.js +0 -0
  58. /package/dist/components/{chart-card → primitives/chart-card}/chart-card.config.types.d.ts +0 -0
  59. /package/dist/components/{chart-card → primitives/chart-card}/chart-card.d.ts +0 -0
  60. /package/dist/components/{chart-card → primitives/chart-card}/chart-card.types.d.ts +0 -0
  61. /package/dist/components/{chart-card → primitives/chart-card}/config/colors.d.ts +0 -0
  62. /package/dist/components/{chart-card → primitives/chart-card}/config/defaults.d.ts +0 -0
  63. /package/dist/components/{chart-card → primitives/chart-card}/config/defaults.js +0 -0
  64. /package/dist/components/{chart-card → primitives/chart-card}/index.d.ts +0 -0
  65. /package/dist/components/{chart-card → primitives/chart-card}/validators/config-validator.d.ts +0 -0
  66. /package/dist/components/{chart-card → primitives/chart-card}/validators/config-validator.js +0 -0
  67. /package/dist/components/{select-compact → primitives/select-compact}/select-compact.d.ts +0 -0
  68. /package/dist/components/{table-card → primitives/table-card}/index.d.ts +0 -0
  69. /package/dist/components/{table-card → primitives/table-card}/table-card.d.ts +0 -0
  70. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/bar-chart-builder.d.ts +0 -0
  71. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/chart-builder-factory.d.ts +0 -0
  72. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/line-chart-builder.d.ts +0 -0
  73. /package/dist/types/components/{chart-card → primitives/chart-card}/builders/pie-chart-builder.d.ts +0 -0
  74. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card-states.d.ts +0 -0
  75. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card.config.types.d.ts +0 -0
  76. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card.d.ts +0 -0
  77. /package/dist/types/components/{chart-card → primitives/chart-card}/chart-card.types.d.ts +0 -0
  78. /package/dist/types/components/{chart-card → primitives/chart-card}/config/colors.d.ts +0 -0
  79. /package/dist/types/components/{chart-card → primitives/chart-card}/config/defaults.d.ts +0 -0
  80. /package/dist/types/components/{chart-card → primitives/chart-card}/index.d.ts +0 -0
  81. /package/dist/types/components/{chart-card → primitives/chart-card}/validators/config-validator.d.ts +0 -0
  82. /package/dist/types/components/{select-compact → primitives/select-compact}/select-compact.d.ts +0 -0
  83. /package/dist/types/components/{table-card → primitives/table-card}/index.d.ts +0 -0
  84. /package/dist/types/components/{table-card → primitives/table-card}/table-card.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ import { buildBarChartOptions as e } from "./bar-chart-builder.js";
2
+ import { buildLineChartOptions as n } from "./line-chart-builder.js";
3
+ import { buildPieChartOptions as u } from "./pie-chart-builder.js";
4
+ const a = {
5
+ line: n,
6
+ bar: e,
7
+ pie: u
8
+ };
9
+ function h(r, i, o, p) {
10
+ const t = a[r.type];
11
+ if (!t)
12
+ throw new Error(`Unsupported chart type: ${r.type}`);
13
+ return t(r, i, o, p);
14
+ }
15
+ export {
16
+ h as buildChartOptions
17
+ };
@@ -1,9 +1,9 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
- import { cn as w } from "../../lib/utils.js";
3
+ import { cn as w } from "../../../lib/utils.js";
4
4
  import { validateChartConfig as S, validateChartData as E } from "./validators/config-validator.js";
5
5
  import { buildChartOptions as O } from "./builders/chart-builder-factory.js";
6
- import { Chart as R } from "../chart/chart.js";
6
+ import { Chart as R } from "../../chart/chart.js";
7
7
  import { LoadingState as V, ErrorState as l, EmptyState as $ } from "./chart-card-states.js";
8
8
  function D({
9
9
  config: t,
@@ -0,0 +1,39 @@
1
+ const e = {
2
+ default: ["#2563eb", "#7c3aed", "#d97706", "#16a34a", "#dc2626", "#0284c7"]
3
+ }, f = {
4
+ basic: e.default,
5
+ smooth: ["#1d4ed8", "#38bdf8", "#22d3ee", "#6366f1"]
6
+ }, E = {
7
+ basic: e.default,
8
+ stacked: ["#0284c7", "#38bdf8", "#60a5fa", "#93c5fd"]
9
+ }, o = {
10
+ basic: e.default,
11
+ donut: ["#2563eb", "#7c3aed", "#d97706", "#16a34a", "#dc2626", "#0284c7", "#8b5cf6", "#f59e0b"]
12
+ }, T = {
13
+ line: f,
14
+ bar: E,
15
+ pie: o
16
+ }, n = {
17
+ text: {
18
+ primary: "#000000",
19
+ secondary: "#5d5d5d"
20
+ },
21
+ border: {
22
+ light: "#e7e7e7",
23
+ default: "#d1d1d1"
24
+ },
25
+ background: {
26
+ default: "#ffffff"
27
+ }
28
+ };
29
+ function r(t, a) {
30
+ var d;
31
+ const c = ((d = T[t]) == null ? void 0 : d[a]) ?? e.default;
32
+ return Array.from(c);
33
+ }
34
+ export {
35
+ T as CHART_THEME_PALETTES,
36
+ e as COLOR_PALETTES,
37
+ n as UI_COLORS,
38
+ r as getThemePalette
39
+ };
@@ -0,0 +1,20 @@
1
+ export declare const POPCONFIRM_PLACEMENTS: {
2
+ readonly TOP: "top";
3
+ readonly TOP_LEFT: "topLeft";
4
+ readonly TOP_RIGHT: "topRight";
5
+ readonly BOTTOM: "bottom";
6
+ readonly BOTTOM_LEFT: "bottomLeft";
7
+ readonly BOTTOM_RIGHT: "bottomRight";
8
+ readonly LEFT: "left";
9
+ readonly LEFT_TOP: "leftTop";
10
+ readonly LEFT_BOTTOM: "leftBottom";
11
+ readonly RIGHT: "right";
12
+ readonly RIGHT_TOP: "rightTop";
13
+ readonly RIGHT_BOTTOM: "rightBottom";
14
+ };
15
+ export type PopconfirmPlacement = (typeof POPCONFIRM_PLACEMENTS)[keyof typeof POPCONFIRM_PLACEMENTS];
16
+ export declare const POPCONFIRM_DEFAULT_CONFIG: {
17
+ readonly okText: "OK";
18
+ readonly cancelText: "Cancel";
19
+ readonly placement: PopconfirmPlacement;
20
+ };
@@ -0,0 +1,22 @@
1
+ const T = {
2
+ TOP: "top",
3
+ TOP_LEFT: "topLeft",
4
+ TOP_RIGHT: "topRight",
5
+ BOTTOM: "bottom",
6
+ BOTTOM_LEFT: "bottomLeft",
7
+ BOTTOM_RIGHT: "bottomRight",
8
+ LEFT: "left",
9
+ LEFT_TOP: "leftTop",
10
+ LEFT_BOTTOM: "leftBottom",
11
+ RIGHT: "right",
12
+ RIGHT_TOP: "rightTop",
13
+ RIGHT_BOTTOM: "rightBottom"
14
+ }, t = {
15
+ okText: "OK",
16
+ cancelText: "Cancel",
17
+ placement: T.TOP
18
+ };
19
+ export {
20
+ t as POPCONFIRM_DEFAULT_CONFIG,
21
+ T as POPCONFIRM_PLACEMENTS
22
+ };
@@ -0,0 +1,4 @@
1
+ import { PopconfirmProps } from './popconfirm.type';
2
+ import * as React from 'react';
3
+ declare const Popconfirm: React.FC<PopconfirmProps>;
4
+ export { Popconfirm };
@@ -0,0 +1,14 @@
1
+ interface UsePopconfirmProps {
2
+ open?: boolean;
3
+ onOpenChange?: (open: boolean) => void;
4
+ onConfirm?: () => void | Promise<void>;
5
+ onCancel?: () => void;
6
+ }
7
+ export declare const usePopconfirm: (props: UsePopconfirmProps) => {
8
+ open: boolean;
9
+ confirmLoading: boolean;
10
+ handleOpenChange: (newOpen: boolean) => void;
11
+ handleConfirm: () => Promise<void>;
12
+ handleCancel: () => void;
13
+ };
14
+ export {};
@@ -0,0 +1,32 @@
1
+ import { useState as i, useCallback as a } from "react";
2
+ const g = (f) => {
3
+ const { open: c, onOpenChange: o, onConfirm: t, onCancel: e } = f, [m, d] = i(!1), [p, l] = i(!1), s = c !== void 0, u = s ? c : m, n = a(
4
+ (r) => {
5
+ s || d(r), o == null || o(r);
6
+ },
7
+ [s, o]
8
+ ), C = a(async () => {
9
+ if (t) {
10
+ l(!0);
11
+ try {
12
+ await t(), n(!1);
13
+ } catch (r) {
14
+ console.error("Popconfirm confirm error:", r);
15
+ } finally {
16
+ l(!1);
17
+ }
18
+ }
19
+ }, [t, n]), h = a(() => {
20
+ e == null || e(), n(!1);
21
+ }, [e, n]);
22
+ return {
23
+ open: u,
24
+ confirmLoading: p,
25
+ handleOpenChange: n,
26
+ handleConfirm: C,
27
+ handleCancel: h
28
+ };
29
+ };
30
+ export {
31
+ g as usePopconfirm
32
+ };
@@ -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,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;
@@ -32,7 +32,9 @@ import "../../table-provider.js";
32
32
  import { Avatar as l } from "../../../avatar/avatar.js";
33
33
  import "../../table.context.js";
34
34
  import "../../../tooltip/tooltip.js";
35
- import "../../../table-filter/index.js";
35
+ import "../../../table-filter/table-filter.context.js";
36
+ import "@radix-ui/react-popover";
37
+ import "react-virtuoso";
36
38
  import "../../../badge/badge.js";
37
39
  import "../../../text-preset/text-preset.js";
38
40
  import "react-dom";
@@ -41,12 +43,10 @@ import "../../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledg
41
43
  import "@radix-ui/react-slot";
42
44
  import "../../../radio/z2-radio.js";
43
45
  import "../../../segmented-control/item.js";
44
- import "@radix-ui/react-popover";
46
+ import "../../../primitives/popconfirm/popconfirm.js";
45
47
  import "../../../dynamic-table/z2-table.js";
46
48
  import "../../../dynamic-table/z2-table-context.js";
47
49
  import "../../../chart/chart.js";
48
- import "../../../chart-card/config/defaults.js";
49
- import "../../../chart-card/config/colors.js";
50
50
  import "../../../z2map/map.js";
51
51
  import "../../../z2map/map.constants.js";
52
52
  import "../../../z2map/components/map-pin.js";
@@ -36,7 +36,9 @@ import "../stepper/stepper.js";
36
36
  import "../stepper-item/stepper-item.js";
37
37
  import "@radix-ui/react-tabs";
38
38
  import "../tooltip/tooltip.js";
39
- import "../table-filter/index.js";
39
+ import "../table-filter/table-filter.context.js";
40
+ import "@radix-ui/react-popover";
41
+ import "react-virtuoso";
40
42
  import "../badge/badge.js";
41
43
  import "../avatar/avatar.js";
42
44
  import "../text-preset/text-preset.js";
@@ -46,12 +48,10 @@ import "../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dis
46
48
  import "@radix-ui/react-slot";
47
49
  import "../radio/z2-radio.js";
48
50
  import "../segmented-control/item.js";
49
- import "@radix-ui/react-popover";
51
+ import "../primitives/popconfirm/popconfirm.js";
50
52
  import "../dynamic-table/z2-table.js";
51
53
  import "../dynamic-table/z2-table-context.js";
52
54
  import "../chart/chart.js";
53
- import "../chart-card/config/defaults.js";
54
- import "../chart-card/config/colors.js";
55
55
  import "../z2map/map.js";
56
56
  import "../z2map/map.constants.js";
57
57
  import "../z2map/components/map-pin.js";
@@ -1,13 +1,4 @@
1
- import * as e from "react";
2
- const o = e.createContext(
1
+ import * as t from "react";
2
+ t.createContext(
3
3
  void 0
4
- ), r = () => {
5
- const t = e.useContext(o);
6
- if (t === void 0)
7
- throw new Error("useTableFilterContext must be used within a TableFilterProvider");
8
- return t;
9
- };
10
- export {
11
- o as TableFilterContext,
12
- r as useTableFilterContext
13
- };
4
+ );