@ztwoint/z-ui 0.1.129 → 0.1.131

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 (75) hide show
  1. package/dist/components/button/button.d.ts +1 -1
  2. package/dist/components/button/button.js +30 -12
  3. package/dist/components/checkbox-filter/checkbox-filter-popover-field.d.ts +8 -0
  4. package/dist/components/checkbox-filter/checkbox-filter-popover-field.hook.d.ts +11 -0
  5. package/dist/components/checkbox-filter/checkbox-filter-popover-field.hook.js +23 -0
  6. package/dist/components/checkbox-filter/checkbox-filter-popover-field.js +44 -0
  7. package/dist/components/checkbox-filter/checkbox-filter.d.ts +2 -0
  8. package/dist/components/checkbox-filter/checkbox-filter.hook.d.ts +11 -0
  9. package/dist/components/checkbox-filter/checkbox-filter.hook.js +31 -0
  10. package/dist/components/checkbox-filter/checkbox-filter.js +64 -0
  11. package/dist/components/checkbox-filter/checkbox-filter.type.d.ts +2 -0
  12. package/dist/components/checkbox-filter/index.d.ts +7 -0
  13. package/dist/components/checkbox-filter/index.js +7 -0
  14. package/dist/components/column-reorder/column-reorder.js +14 -14
  15. package/dist/components/dropdown/z2-dropdown.js +3 -3
  16. package/dist/components/input/input.js +1 -1
  17. package/dist/components/number-badge/index.d.ts +2 -0
  18. package/dist/components/number-badge/number-badge.d.ts +10 -0
  19. package/dist/components/number-badge/number-badge.js +27 -0
  20. package/dist/components/primitives/popover-compact/index.d.ts +2 -0
  21. package/dist/components/primitives/popover-compact/popover-compact.d.ts +12 -0
  22. package/dist/components/primitives/popover-compact/popover-compact.js +30 -0
  23. package/dist/components/primitives/table-card/table-card.js +5 -4
  24. package/dist/components/tab/tab.js +57 -27
  25. package/dist/components/table/components/cell/avatar-cell.js +5 -4
  26. package/dist/components/table/components/cell/description-cell.js +3 -3
  27. package/dist/components/table/components/cell/label-cell.js +9 -9
  28. package/dist/components/table/components/cell/link-cell.js +17 -17
  29. package/dist/components/table/components/cell/number-cell.js +17 -17
  30. package/dist/components/table/table-provider.js +2 -1
  31. package/dist/components/table/table.const.d.ts +1 -1
  32. package/dist/components/table/table.const.js +1 -1
  33. package/dist/components/table-filter/filters/index.d.ts +0 -1
  34. package/dist/components/table-filter/table-filter-button.js +56 -55
  35. package/dist/components/table-filter/table-filter-column-button.js +51 -51
  36. package/dist/css/config/colors/semantic/base.css +6 -6
  37. package/dist/css/config/config.css +2 -1
  38. package/dist/css/config/other-variables.css +1 -1
  39. package/dist/css/styles/tailwind.css +1 -1
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +319 -315
  42. package/dist/types/components/button/button.d.ts +1 -1
  43. package/dist/types/components/checkbox-filter/checkbox-filter-popover-field.d.ts +8 -0
  44. package/dist/types/components/checkbox-filter/checkbox-filter-popover-field.hook.d.ts +11 -0
  45. package/dist/types/components/checkbox-filter/checkbox-filter.d.ts +2 -0
  46. package/dist/types/components/checkbox-filter/checkbox-filter.hook.d.ts +11 -0
  47. package/dist/types/components/checkbox-filter/checkbox-filter.type.d.ts +2 -0
  48. package/dist/types/components/checkbox-filter/index.d.ts +7 -0
  49. package/dist/types/components/number-badge/index.d.ts +2 -0
  50. package/dist/types/components/number-badge/number-badge.d.ts +10 -0
  51. package/dist/types/components/primitives/popover-compact/index.d.ts +2 -0
  52. package/dist/types/components/primitives/popover-compact/popover-compact.d.ts +12 -0
  53. package/dist/types/components/table/table.const.d.ts +1 -1
  54. package/dist/types/components/table-filter/filters/index.d.ts +0 -1
  55. package/dist/types/index.d.ts +2 -0
  56. package/package.json +1 -1
  57. package/dist/components/table-filter/filters/checkbox.js +0 -70
  58. package/dist/css/config/colors/backgrounds.css +0 -32
  59. package/dist/css/config/colors/components/avatar.css +0 -53
  60. package/dist/css/config/colors/components/badge.css +0 -137
  61. package/dist/css/config/colors/components/checkbox.css +0 -7
  62. package/dist/css/config/colors/components/featured-icon.css +0 -80
  63. package/dist/css/config/colors/components/progress-bar.css +0 -7
  64. package/dist/css/config/colors/components/radio-button.css +0 -7
  65. package/dist/css/config/colors/components/scroll-overlay.css +0 -17
  66. package/dist/css/config/colors/components/tab.css +0 -59
  67. package/dist/css/config/colors/components/toggle-switch.css +0 -3
  68. package/dist/css/config/colors/components/toggle.css +0 -25
  69. package/dist/css/config/colors/icons.css +0 -81
  70. package/dist/css/config/colors/overlay.css +0 -3
  71. package/dist/css/config/colors/shape.css +0 -163
  72. package/dist/css/config/colors/stroke.css +0 -79
  73. package/dist/css/config/colors/surfaces.css +0 -199
  74. package/dist/css/config/colors/text.css +0 -160
  75. package/dist/css/config/config-deprecated.css +0 -39
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "stroke" | "filled" | "ghost" | null | undefined;
4
+ variant?: "stroke" | "filled" | "colored-stroke" | "ghost" | null | undefined;
5
5
  shade?: "danger" | "neutral" | "brand" | null | undefined;
6
6
  size?: "small" | "large" | "medium" | null | undefined;
7
7
  iconOnly?: boolean | null | undefined;
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as x, Fragment as h } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as f, Fragment as h } from "react/jsx-runtime";
2
2
  import k from "react";
3
3
  import { Slot as w } from "@radix-ui/react-slot";
4
4
  import { cva as N } from "class-variance-authority";
@@ -10,9 +10,12 @@ const C = N(
10
10
  variant: {
11
11
  filled: [""],
12
12
  stroke: [
13
- "ring-[0.5px] ring-btn-secondary-stroke-default hover:ring-btn-secondary-stroke-hover active:ring-btn-secondary-stroke-pressed disabled:ring-btn-secondary-stroke-disabled",
13
+ "ring-[1px] ring-btn-secondary-stroke-default hover:ring-btn-secondary-stroke-hover active:ring-btn-secondary-stroke-pressed disabled:ring-btn-secondary-stroke-disabled",
14
14
  "bg-btn-secondary-surface-default hover:bg-btn-secondary-surface-hover active:bg-btn-secondary-surface-pressed disabled:bg-btn-secondary-surface-disabled"
15
15
  ],
16
+ "colored-stroke": [
17
+ "ring-[1px] bg-btn-secondary-surface-default hover:bg-btn-secondary-surface-hover active:bg-btn-secondary-surface-pressed disabled:bg-btn-secondary-surface-disabled"
18
+ ],
16
19
  ghost: [
17
20
  "hover:text-text-neutral-secondary active:text-text-neutral-muted disabled:text-text-neutral-muted"
18
21
  ]
@@ -35,17 +38,17 @@ const C = N(
35
38
  {
36
39
  variant: "filled",
37
40
  shade: "brand",
38
- class: "bg-btn-primary-brand-surface-default hover:bg-btn-primary-brand-surface-hover active:bg-btn-primary-brand-surface-pressed disabled:bg-btn-primary-brand-surface-disabled ring-[0.5px] ring-btn-primary-brand-stroke-default hover:ring-btn-primary-brand-stroke-hover active:ring-btn-primary-brand-stroke-pressed disabled:ring-btn-primary-brand-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
41
+ class: "bg-btn-primary-brand-surface-default hover:bg-btn-primary-brand-surface-hover active:bg-btn-primary-brand-surface-pressed disabled:bg-btn-primary-brand-surface-disabled ring-[1px] ring-btn-primary-brand-stroke-default hover:ring-btn-primary-brand-stroke-hover active:ring-btn-primary-brand-stroke-pressed disabled:ring-btn-primary-brand-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
39
42
  },
40
43
  {
41
44
  variant: "filled",
42
45
  shade: "neutral",
43
- class: "bg-btn-primary-neutral-surface-default hover:bg-btn-primary-neutral-surface-hover active:bg-btn-primary-neutral-surface-pressed disabled:bg-btn-primary-neutral-surface-disabled ring-[0.5px] ring-btn-primary-neutral-stroke-default hover:ring-btn-primary-neutral-stroke-hover active:ring-btn-primary-neutral-stroke-pressed disabled:ring-btn-primary-neutral-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
46
+ class: "bg-btn-primary-neutral-surface-default hover:bg-btn-primary-neutral-surface-hover active:bg-btn-primary-neutral-surface-pressed disabled:bg-btn-primary-neutral-surface-disabled ring-[1px] ring-btn-primary-neutral-stroke-default hover:ring-btn-primary-neutral-stroke-hover active:ring-btn-primary-neutral-stroke-pressed disabled:ring-btn-primary-neutral-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
44
47
  },
45
48
  {
46
49
  variant: "filled",
47
50
  shade: "danger",
48
- class: "bg-btn-primary-danger-surface-default hover:bg-btn-primary-danger-surface-hover active:bg-btn-primary-danger-surface-pressed disabled:bg-btn-primary-danger-surface-disabled ring-[0.5px] ring-btn-primary-danger-stroke-default hover:ring-btn-primary-danger-stroke-hover active:ring-btn-primary-danger-stroke-pressed disabled:ring-btn-primary-danger-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
51
+ class: "bg-btn-primary-danger-surface-default hover:bg-btn-primary-danger-surface-hover active:bg-btn-primary-danger-surface-pressed disabled:bg-btn-primary-danger-surface-disabled ring-[1px] ring-btn-primary-danger-stroke-default hover:ring-btn-primary-danger-stroke-hover active:ring-btn-primary-danger-stroke-pressed disabled:ring-btn-primary-danger-stroke-disabled text-text-inverted-primary disabled:text-text-neutral-muted"
49
52
  },
50
53
  {
51
54
  variant: "stroke",
@@ -62,6 +65,21 @@ const C = N(
62
65
  shade: "danger",
63
66
  class: "text-text-danger-secondary disabled:text-text-neutral-muted"
64
67
  },
68
+ {
69
+ variant: "colored-stroke",
70
+ shade: "neutral",
71
+ class: "text-text-neutral-primary ring-text-neutral-primary hover:ring-text-neutral-primary active:ring-text-neutral-primary disabled:text-text-neutral-muted disabled:ring-text-neutral-muted"
72
+ },
73
+ {
74
+ variant: "colored-stroke",
75
+ shade: "brand",
76
+ class: "text-text-neutral-primary ring-text-brand-secondary hover:ring-text-brand-secondary active:ring-text-brand-secondary disabled:text-text-neutral-muted disabled:ring-text-neutral-muted"
77
+ },
78
+ {
79
+ variant: "colored-stroke",
80
+ shade: "danger",
81
+ class: "text-text-neutral-primary ring-text-danger-secondary hover:ring-text-danger-secondary active:ring-text-danger-secondary disabled:text-text-neutral-muted disabled:ring-text-neutral-muted"
82
+ },
65
83
  {
66
84
  variant: "ghost",
67
85
  shade: "neutral",
@@ -90,19 +108,19 @@ const C = N(
90
108
  className: b,
91
109
  shade: u = "neutral",
92
110
  size: c,
93
- variant: m = "filled",
111
+ variant: g = "filled",
94
112
  asChild: i = !1,
95
113
  leftIcon: r,
96
114
  rightIcon: t,
97
- label: p,
115
+ label: m,
98
116
  children: l,
99
- ...g
100
- }, y) => {
101
- const f = i ? w : "button", a = p || l, n = !a && !!(r || t), o = n ? r || t : null, v = d(
102
- C({ shade: u, size: c, variant: m, iconOnly: n }),
117
+ ...p
118
+ }, x) => {
119
+ const y = i ? w : "button", a = m || l, n = !a && !!(r || t), o = n ? r || t : null, v = d(
120
+ C({ shade: u, size: c, variant: g, iconOnly: n }),
103
121
  b
104
122
  ), s = "w-3.5 h-3.5 min-w-max";
105
- return /* @__PURE__ */ e(f, { className: v, ref: y, ...g, children: i ? l : n ? o ? /* @__PURE__ */ e("span", { className: s, children: o }) : null : /* @__PURE__ */ x(h, { children: [
123
+ return /* @__PURE__ */ e(y, { className: v, ref: x, ...p, children: i ? l : n ? o ? /* @__PURE__ */ e("span", { className: s, children: o }) : null : /* @__PURE__ */ f(h, { children: [
106
124
  r && /* @__PURE__ */ e("span", { className: d(s), children: r }),
107
125
  a && /* @__PURE__ */ e("span", { children: a }),
108
126
  t && /* @__PURE__ */ e("span", { className: d(s), children: t })
@@ -0,0 +1,8 @@
1
+ import { CheckboxFilterProps } from './checkbox-filter.type';
2
+ interface CheckboxFilterPopoverFieldProps extends Omit<CheckboxFilterProps, 'value' | 'onChange'> {
3
+ placeholder?: string;
4
+ value?: string[];
5
+ onChange: (value: string[]) => void;
6
+ }
7
+ export declare const CheckboxFilterPopoverField: React.FC<CheckboxFilterPopoverFieldProps>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ interface UseCheckboxFilterPopoverFieldProps {
2
+ placeholder?: string;
3
+ value?: string | string[];
4
+ }
5
+ export declare const useCheckboxFilterPopoverField: ({ value, placeholder, }: UseCheckboxFilterPopoverFieldProps) => {
6
+ isOpen: boolean;
7
+ displayText: string;
8
+ handleOpenChange: (open: boolean) => void;
9
+ handleInputClick: () => void;
10
+ };
11
+ export {};
@@ -0,0 +1,23 @@
1
+ import { useState as c } from "react";
2
+ const h = ({
3
+ value: t,
4
+ placeholder: n = "Search options"
5
+ }) => {
6
+ const [r, s] = c(!1), o = (() => {
7
+ const e = t && Array.isArray(t) ? t.length : 0;
8
+ return e === 0 ? n : `${n} (${e} selected)`;
9
+ })();
10
+ return {
11
+ isOpen: r,
12
+ displayText: o,
13
+ handleOpenChange: (e) => {
14
+ s(e);
15
+ },
16
+ handleInputClick: () => {
17
+ s(!0);
18
+ }
19
+ };
20
+ };
21
+ export {
22
+ h as useCheckboxFilterPopoverField
23
+ };
@@ -0,0 +1,44 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { PopoverCompact as s } from "../primitives/popover-compact/popover-compact.js";
3
+ import { CheckboxFilter as m } from "./checkbox-filter.js";
4
+ import { Input as h } from "../input/input.js";
5
+ import { MagnifierIcon as d } from "../assets/icons/magnifier-icon.js";
6
+ import v from "../assets/icons/chevron-down.js";
7
+ import { useCheckboxFilterPopoverField as g } from "./checkbox-filter-popover-field.hook.js";
8
+ const O = ({
9
+ value: n,
10
+ onChange: r,
11
+ filterOptions: i = [],
12
+ placeholder: p = "Search options"
13
+ }) => {
14
+ const { isOpen: t, displayText: l, handleOpenChange: c, handleInputClick: a } = g(
15
+ {
16
+ value: n,
17
+ placeholder: p
18
+ }
19
+ );
20
+ return /* @__PURE__ */ e(s, { trigger: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
21
+ h,
22
+ {
23
+ leftIcon: /* @__PURE__ */ e(d, {}),
24
+ size: "large",
25
+ placeholder: l,
26
+ rightIcon: /* @__PURE__ */ e(v, {}),
27
+ readOnly: !0,
28
+ onClick: a,
29
+ className: "cursor-pointer"
30
+ }
31
+ ) }), open: t, onOpenChange: c, children: /* @__PURE__ */ e("div", { className: "h-[400px] flex flex-col", children: /* @__PURE__ */ e(
32
+ m,
33
+ {
34
+ value: { value: n },
35
+ onChange: (o) => {
36
+ Array.isArray(o.value) ? r(o.value) : o.value !== void 0 && o.value !== null ? r([o.value]) : r([]);
37
+ },
38
+ filterOptions: i
39
+ }
40
+ ) }) });
41
+ };
42
+ export {
43
+ O as CheckboxFilterPopoverField
44
+ };
@@ -0,0 +1,2 @@
1
+ import { CheckboxFilterProps } from './checkbox-filter.type';
2
+ export declare const CheckboxFilter: React.FC<CheckboxFilterProps>;
@@ -0,0 +1,11 @@
1
+ import { FilterOption } from '../table-filter/table-filter.type';
2
+ import { CheckboxFilterProps } from './checkbox-filter.type';
3
+ export declare const useCheckboxFilter: ({ value, onChange, filterOptions }: CheckboxFilterProps) => {
4
+ selectedValues: string[];
5
+ searchValue: string;
6
+ filteredOptions: FilterOption[];
7
+ onSearchChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ handleCheckboxChange: (optionValue: string, checked: boolean) => void;
9
+ onClearSearch: () => void;
10
+ isSelected: (optionValue: string) => boolean;
11
+ };
@@ -0,0 +1,31 @@
1
+ import { useState as o, useEffect as u } from "react";
2
+ const k = ({ value: s, onChange: d, filterOptions: a = [] }) => {
3
+ const [c, l] = o([]), [C, h] = o(""), [S, r] = o(a);
4
+ return u(() => {
5
+ s && Array.isArray(s.value) ? l(s.value.filter(Boolean) ?? []) : l([]);
6
+ }, [s]), u(() => {
7
+ r(a);
8
+ }, [a]), {
9
+ selectedValues: c,
10
+ searchValue: C,
11
+ filteredOptions: S,
12
+ onSearchChange: (e) => {
13
+ h(e.target.value);
14
+ const n = a.filter(
15
+ (t) => t.label.toLowerCase().includes(e.target.value.toLowerCase())
16
+ );
17
+ r(n);
18
+ },
19
+ handleCheckboxChange: (e, n) => {
20
+ let t;
21
+ n ? t = [...c, e] : t = c.filter((i) => i !== e), l(t), d({ value: t });
22
+ },
23
+ onClearSearch: () => {
24
+ h(""), r(a);
25
+ },
26
+ isSelected: (e) => c.includes(e)
27
+ };
28
+ };
29
+ export {
30
+ k as useCheckboxFilter
31
+ };
@@ -0,0 +1,64 @@
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { Virtuoso as x } from "react-virtuoso";
3
+ import { MagnifierIcon as p } from "../assets/icons/magnifier-icon.js";
4
+ import f from "../assets/icons/x.js";
5
+ import { Z2Checkbox as b } from "../checkbox/checkbox.js";
6
+ import { useCheckboxFilter as C } from "./checkbox-filter.hook.js";
7
+ const w = ({
8
+ value: n,
9
+ onChange: s,
10
+ filterOptions: a = []
11
+ }) => {
12
+ const {
13
+ searchValue: r,
14
+ filteredOptions: o,
15
+ onSearchChange: i,
16
+ handleCheckboxChange: c,
17
+ onClearSearch: m,
18
+ isSelected: d
19
+ } = C({ value: n, onChange: s, filterOptions: a }), h = (N, t) => /* @__PURE__ */ l("div", { className: "flex justify-between items-center py-2 px-3", children: [
20
+ /* @__PURE__ */ l("label", { className: "flex items-center space-x-2 cursor-pointer", children: [
21
+ /* @__PURE__ */ e(
22
+ b,
23
+ {
24
+ checked: d(t.value),
25
+ onCheckedChange: (u) => c(t.value, u === !0)
26
+ }
27
+ ),
28
+ /* @__PURE__ */ e("span", { className: "text-text-neutral-primary leading-none-medium-sm", children: t.label })
29
+ ] }),
30
+ t.total && /* @__PURE__ */ l("span", { className: "text-text-neutral-muted text-sm", children: [
31
+ "[",
32
+ t.total,
33
+ "]"
34
+ ] })
35
+ ] });
36
+ return a.length === 0 ? /* @__PURE__ */ e("div", { className: "text-text-neutral-muted text-sm p-4", children: "No filter options available for this column" }) : /* @__PURE__ */ l("div", { className: "flex flex-col h-full", children: [
37
+ /* @__PURE__ */ l("div", { className: "relative border-b border-stroke-solid-medium", children: [
38
+ /* @__PURE__ */ e(p, { className: "absolute left-3 top-3.5 text-text-neutral-muted" }),
39
+ /* @__PURE__ */ e(
40
+ "input",
41
+ {
42
+ placeholder: "Search options",
43
+ value: r,
44
+ onChange: i,
45
+ className: "border-none outline-none bg-surface-neutral-default text-text-neutral-primary rounded p-3 pl-8 leading-none-medium-sm w-full"
46
+ }
47
+ ),
48
+ r && /* @__PURE__ */ e("span", { className: "absolute right-3 top-3.5", onClick: m, children: /* @__PURE__ */ e(f, {}) })
49
+ ] }),
50
+ /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e(
51
+ x,
52
+ {
53
+ data: o,
54
+ itemContent: h,
55
+ className: "h-full min-h-60",
56
+ style: { height: "100%" },
57
+ overscan: 5
58
+ }
59
+ ) })
60
+ ] });
61
+ };
62
+ export {
63
+ w as CheckboxFilter
64
+ };
@@ -0,0 +1,2 @@
1
+ import { FilterComponentProps } from '../table-filter/table-filter.type';
2
+ export type CheckboxFilterProps = FilterComponentProps;
@@ -0,0 +1,7 @@
1
+ import { CheckboxFilter } from './checkbox-filter';
2
+ import { CheckboxFilterPopoverField } from './checkbox-filter-popover-field';
3
+ declare const CheckboxFilterComponent: typeof CheckboxFilter & {
4
+ PopoverField: typeof CheckboxFilterPopoverField;
5
+ };
6
+ export { CheckboxFilterComponent as CheckboxFilter };
7
+ export type { CheckboxFilterProps } from './checkbox-filter.type';
@@ -0,0 +1,7 @@
1
+ import { CheckboxFilter as o } from "./checkbox-filter.js";
2
+ import { CheckboxFilterPopoverField as e } from "./checkbox-filter-popover-field.js";
3
+ const r = o;
4
+ r.PopoverField = e;
5
+ export {
6
+ r as CheckboxFilter
7
+ };
@@ -4,35 +4,35 @@ import { cn as f } from "../../lib/utils.js";
4
4
  import { ColumnItem as p } from "./components/column-item/column-item.js";
5
5
  import { useColumnReorder as c } from "./column-reorder.hook.js";
6
6
  const C = ({
7
- columns: o,
7
+ columns: e,
8
8
  onReorder: d,
9
9
  onRemove: i,
10
10
  onEdit: l,
11
- renderAction: t,
12
- className: m,
13
- disabled: n = !1,
14
- editable: s = !1
11
+ renderAction: m,
12
+ className: t,
13
+ disabled: s = !1,
14
+ editable: n = !1
15
15
  }) => {
16
- const { internalColumns: a } = c({ columns: o, onReorder: d });
16
+ const { internalColumns: a } = c({ columns: e, onReorder: d });
17
17
  return /* @__PURE__ */ r(
18
18
  "div",
19
19
  {
20
20
  className: f(
21
- "rounded-2xl border-[0.5px] border-stroke-solid-light bg-background-neutral-default overflow-hidden",
22
- m
21
+ "rounded-2xl border-[1px] border-stroke-solid-light bg-background-neutral-default overflow-hidden box-shadow-medium-10",
22
+ t
23
23
  ),
24
- children: /* @__PURE__ */ r("div", { className: "divide-y divide-stroke-solid-light", children: a.map((e, u) => /* @__PURE__ */ r(
24
+ children: /* @__PURE__ */ r("div", { className: "divide-y divide-stroke-solid-light", children: a.map((o, u) => /* @__PURE__ */ r(
25
25
  p,
26
26
  {
27
- column: e,
27
+ column: o,
28
28
  index: u,
29
29
  onRemove: i,
30
30
  onEdit: l,
31
- renderAction: t,
32
- disabled: n,
33
- editable: s
31
+ renderAction: m,
32
+ disabled: s,
33
+ editable: n
34
34
  },
35
- e.id
35
+ o.id
36
36
  )) })
37
37
  }
38
38
  );
@@ -71,7 +71,7 @@ function B({
71
71
  "div",
72
72
  {
73
73
  className: d(
74
- "flex items-center justify-center gap-1.5 p-2 self-stretch relative cursor-pointer rounded-lg bg-white border-[0.5px] border-[#E0E0E0] shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] hover:border-neutral-300 ",
74
+ "flex items-center justify-center gap-1.5 p-2 self-stretch relative cursor-pointer rounded-lg bg-white border-[1px] border-[#E0E0E0] shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] hover:border-neutral-300 ",
75
75
  o
76
76
  ),
77
77
  children: [
@@ -133,7 +133,7 @@ function F({
133
133
  align: a,
134
134
  sideOffset: 8,
135
135
  className: d(
136
- "bg-white max-w-fit w-[var(--radix-popover-trigger-width)] p-1 flex flex-col items-start rounded-2xl border-[0.5px] border-[#E0E0E0] shadow-lg min-w-fit",
136
+ "bg-white max-w-fit w-[var(--radix-popover-trigger-width)] p-1 flex flex-col items-start rounded-2xl border-[1px] border-[#E0E0E0] shadow-lg min-w-fit",
137
137
  e
138
138
  ),
139
139
  ...o
@@ -222,7 +222,7 @@ function L({
222
222
  side: l,
223
223
  className: d(
224
224
  "min-w-md min-h-fit h-[var(--radix-popover-content-height)]",
225
- "bg-white w-full p-1 flex flex-col items-start rounded-2xl border-[0.5px] border-[#E0E0E0] shadow-lg",
225
+ "bg-white w-full p-1 flex flex-col items-start rounded-2xl border-[1px] border-[#E0E0E0] shadow-lg",
226
226
  e
227
227
  ),
228
228
  ...r
@@ -15,7 +15,7 @@ const d = _("", {
15
15
  "div",
16
16
  {
17
17
  className: e(
18
- "rounded-lg bg-input-surface-default flex items-center shadow-[inset_0_0_0_0.5px_theme(colors.input.stroke.default)] hover:shadow-[inset_0_0_0_0.5px_theme(colors.input.stroke.hover)] focus-within:shadow-[inset_0_0_0_0.5px_theme(colors.input.stroke.active),0_1px_2px_0_rgba(0,0,0,0.05)] focus-within:hover:shadow-[inset_0_0_0_0.5px_theme(colors.input.stroke.active),0_1px_2px_0_rgba(0,0,0,0.05)] has-[:disabled]:shadow-[inset_0_0_0_0.5px_theme(colors.input.stroke.disabled)]",
18
+ "rounded-lg bg-input-surface-default flex items-center shadow-[inset_0_0_0_1px_theme(colors.input.stroke.default)] hover:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.hover)] focus-within:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.active),0_1px_2px_0_rgba(0,0,0,0.05)] focus-within:hover:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.active),0_1px_2px_0_rgba(0,0,0,0.05)] has-[:disabled]:shadow-[inset_0_0_0_1px_theme(colors.input.stroke.disabled)]",
19
19
  d({ size: s }),
20
20
  o
21
21
  ),
@@ -0,0 +1,2 @@
1
+ export { NumberBadge, numberBadgeVariants } from './number-badge';
2
+ export type { NumberBadgeProps } from './number-badge';
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const numberBadgeVariants: (props?: ({
4
+ textColor?: "danger" | "neutral" | "brand" | null | undefined;
5
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
6
+ export interface NumberBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof numberBadgeVariants> {
7
+ number: number;
8
+ }
9
+ declare const NumberBadge: React.ForwardRefExoticComponent<NumberBadgeProps & React.RefAttributes<HTMLSpanElement>>;
10
+ export { NumberBadge, numberBadgeVariants };
@@ -0,0 +1,27 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { cva as d } from "class-variance-authority";
4
+ import { cn as o } from "../../lib/utils.js";
5
+ const i = d("inline-flex items-center leading-none-medium-sm", {
6
+ variants: {
7
+ textColor: {
8
+ neutral: "text-text-neutral-primary",
9
+ brand: "text-text-brand-secondary",
10
+ danger: "text-text-danger-secondary"
11
+ }
12
+ },
13
+ defaultVariants: {
14
+ textColor: "neutral"
15
+ }
16
+ }), x = m.forwardRef(
17
+ ({ className: t, textColor: r = "neutral", number: a, ...n }, s) => /* @__PURE__ */ l("span", { className: o(i({ textColor: r }), t), ref: s, ...n, children: [
18
+ /* @__PURE__ */ e("span", { className: "text-text-neutral-muted pr-[1px]", children: "[" }),
19
+ /* @__PURE__ */ e("span", { children: a }),
20
+ /* @__PURE__ */ e("span", { className: "text-text-neutral-muted pl-[1px]", children: "]" })
21
+ ] })
22
+ );
23
+ x.displayName = "NumberBadge";
24
+ export {
25
+ x as NumberBadge,
26
+ i as numberBadgeVariants
27
+ };
@@ -0,0 +1,2 @@
1
+ export { PopoverCompact } from './popover-compact';
2
+ export type { PopoverCompactProps } from './popover-compact';
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export interface PopoverCompactProps {
3
+ trigger: ReactNode;
4
+ children: ReactNode;
5
+ open?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ contentClassName?: string;
8
+ sideOffset?: number;
9
+ align?: 'start' | 'center' | 'end';
10
+ width?: string;
11
+ }
12
+ export declare function PopoverCompact({ trigger, children, open: controlledOpen, onOpenChange: controlledOnOpenChange, contentClassName, sideOffset, align, width, }: PopoverCompactProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsxs as u, jsx as o } from "react/jsx-runtime";
2
+ import { useState as g } from "react";
3
+ import * as e from "@radix-ui/react-popover";
4
+ function x({
5
+ trigger: t,
6
+ children: s,
7
+ open: r,
8
+ onOpenChange: i,
9
+ contentClassName: a,
10
+ sideOffset: l = 8,
11
+ align: d = "start",
12
+ width: p = "w-80"
13
+ }) {
14
+ const [c, h] = g(!1), n = r !== void 0, m = n ? r : c, f = n ? i : h;
15
+ return /* @__PURE__ */ u(e.Root, { open: m, onOpenChange: f, children: [
16
+ /* @__PURE__ */ o(e.Trigger, { asChild: !0, children: t }),
17
+ /* @__PURE__ */ o(e.Portal, { children: /* @__PURE__ */ o(
18
+ e.Content,
19
+ {
20
+ className: `${p} bg-surface-neutral-default border border-stroke-solid-light rounded-2xl overflow-hidden shadow-lg z-50 ${a || ""}`,
21
+ sideOffset: l,
22
+ align: d,
23
+ children: s
24
+ }
25
+ ) })
26
+ ] });
27
+ }
28
+ export {
29
+ x as PopoverCompact
30
+ };
@@ -18,6 +18,7 @@ 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
+ import "../../checkbox-filter/index.js";
21
22
  import "@radix-ui/react-dialog";
22
23
  import "../../dropdown/z2-dropdown.js";
23
24
  import "@radix-ui/react-dropdown-menu";
@@ -27,6 +28,7 @@ import "../../input/input.js";
27
28
  import "../../nav-header/nav-header.js";
28
29
  import "../../nav-header/nav-item/nav-item.js";
29
30
  import "@radix-ui/react-select";
31
+ import "@radix-ui/react-popover";
30
32
  import "../../stepper/stepper.js";
31
33
  import "../../stepper-item/stepper-item.js";
32
34
  import "@radix-ui/react-tabs";
@@ -41,7 +43,6 @@ import "../../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/
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";
45
46
  import "../popconfirm/popconfirm.js";
46
47
  import "../../dynamic-table/z2-table.js";
47
48
  import "../../dynamic-table/z2-table-context.js";
@@ -56,7 +57,7 @@ import "../../z2map/components/map-controls.js";
56
57
  import "../../z2map/components/map-zoom-control.js";
57
58
  import "../../z2map/components/map-style-control.js";
58
59
  import "../../table/table.context.js";
59
- const Dt = ({
60
+ const Gt = ({
60
61
  dataSource: w,
61
62
  schema: B,
62
63
  loading: b,
@@ -164,7 +165,7 @@ const Dt = ({
164
165
  r.Footer,
165
166
  {
166
167
  className: d(
167
- "flex-shrink-0 border-stroke-solid-light border-t-[0.5px] mt-[-2px]",
168
+ "flex-shrink-0 border-stroke-solid-light border-t-[1px] mt-[-2px]",
168
169
  n && "border",
169
170
  c && "rounded-b-xl",
170
171
  T
@@ -212,5 +213,5 @@ const Dt = ({
212
213
  ] });
213
214
  };
214
215
  export {
215
- Dt as default
216
+ Gt as default
216
217
  };