@konstructio/ui 0.1.2-alpha.66 → 0.1.2-alpha.68

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 (50) hide show
  1. package/dist/AdditionalOptions-C2FDVZhu.js +45 -0
  2. package/dist/{DayPicker-PUEUVAST.js → DayPicker-CaeUXRCF.js} +475 -470
  3. package/dist/{Modal--z642-Wv.js → Modal-mwLmWbnA.js} +23 -20
  4. package/dist/assets/icons/components/CloudLockOutline.d.ts +3 -0
  5. package/dist/assets/icons/components/CloudLockOutline.js +28 -0
  6. package/dist/assets/icons/components/index.d.ts +1 -0
  7. package/dist/assets/icons/components/index.js +106 -104
  8. package/dist/assets/icons/index.js +106 -104
  9. package/dist/components/ButtonGroup/ButtonGroup.js +65 -61
  10. package/dist/components/ButtonGroup/ButtonGroup.types.d.ts +6 -0
  11. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +32 -30
  12. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +3 -1
  13. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +4 -1
  14. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +37 -17
  15. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  16. package/dist/components/Datepicker/DatePicker.js +1 -1
  17. package/dist/components/Modal/Modal.js +1 -1
  18. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -2
  19. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +2 -2
  20. package/dist/components/Modal/components/index.js +1 -1
  21. package/dist/components/Select/Select.d.ts +1 -0
  22. package/dist/components/Select/Select.js +54 -40
  23. package/dist/components/Select/Select.types.d.ts +18 -2
  24. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.d.ts +3 -0
  25. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +11 -0
  26. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +4 -0
  27. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.d.ts +1 -0
  28. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +26 -0
  29. package/dist/components/Select/components/List/List.js +131 -132
  30. package/dist/components/Select/components/List/List.types.d.ts +1 -0
  31. package/dist/components/Select/components/List/List.variants.d.ts +1 -0
  32. package/dist/components/Select/components/List/List.variants.js +17 -2
  33. package/dist/components/Select/components/Wrapper.d.ts +3 -1
  34. package/dist/components/Select/components/Wrapper.js +65 -63
  35. package/dist/components/Select/components/index.d.ts +1 -0
  36. package/dist/components/Select/components/index.js +8 -6
  37. package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +5 -0
  38. package/dist/components/VirtualizedTable/VirtualizedTable.js +86 -80
  39. package/dist/components/VirtualizedTable/components/Body/Body.js +51 -49
  40. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
  41. package/dist/components/VirtualizedTable/contexts/table.provider.js +69 -67
  42. package/dist/components/VirtualizedTable/events/index.d.ts +3 -3
  43. package/dist/components/VirtualizedTable/events/index.js +22 -16
  44. package/dist/components/index.js +1 -1
  45. package/dist/icons.d.ts +1 -1
  46. package/dist/icons.js +106 -104
  47. package/dist/index.js +1 -1
  48. package/dist/package.json +21 -21
  49. package/dist/styles.css +1 -1
  50. package/package.json +21 -21
@@ -1,63 +1,65 @@
1
- import { jsx as a, jsxs as S } from "react/jsx-runtime";
2
- import { f as j } from "../../../../index-CSWGJT-v.js";
1
+ import { jsx as a, jsxs as A } from "react/jsx-runtime";
2
+ import { f as B } from "../../../../index-CSWGJT-v.js";
3
3
  import { Fragment as H } from "react";
4
4
  import { Skeleton as M } from "../Skeleton/Skeleton.js";
5
- import { cn as s } from "../../../../utils/index.js";
6
- import { ExpandableRow as A } from "../ExpandableRow/ExpandableRow.js";
7
- import { useTableContext as B } from "../../contexts/table.hook.js";
8
- const J = ({
9
- isLoading: f,
5
+ import { cn as l } from "../../../../utils/index.js";
6
+ import { ExpandableRow as O } from "../ExpandableRow/ExpandableRow.js";
7
+ import { useTableContext as V } from "../../contexts/table.hook.js";
8
+ const U = ({
9
+ isLoading: g,
10
10
  showPagination: t
11
11
  }) => {
12
12
  const {
13
- table: b,
14
- pageSize: u,
15
- tableFetching: h,
16
- enableExpandedRow: w,
17
- classNameExpandedRow: N,
18
- classNameExpandedCell: R,
19
- classNameExpandedContent: k,
13
+ table: i,
14
+ pageSize: h,
15
+ tableFetching: w,
16
+ enableExpandedRow: N,
17
+ classNameExpandedRow: R,
18
+ classNameExpandedCell: k,
19
+ classNameExpandedContent: E,
20
20
  enableHoverRow: p,
21
- classNameHoverRow: E,
21
+ classNameHoverRow: C,
22
22
  classNameActiveExpandedRow: v,
23
- renderExpandedRow: i
24
- } = B();
25
- if (f || h)
26
- return /* @__PURE__ */ a(M, { numberOfRows: u, table: b });
27
- const o = b.getRowModel().rows ?? [];
23
+ renderExpandedRow: b,
24
+ isBorderOnAdjacentCell: D,
25
+ isExpandColumnVisible: y
26
+ } = V();
27
+ if (g || w)
28
+ return /* @__PURE__ */ a(M, { numberOfRows: h, table: i });
29
+ const d = i.getRowModel().rows ?? [];
28
30
  return /* @__PURE__ */ a(
29
31
  "tbody",
30
32
  {
31
- className: s(
33
+ className: l(
32
34
  "text-slate-800",
33
35
  "text-sm",
34
36
  "font-normal",
35
37
  "relative",
36
38
  "dark:border-x"
37
39
  ),
38
- children: o.map((g, l) => {
39
- const { id: n, original: m, getVisibleCells: y } = g, { meta: d = {} } = m, c = y(), e = w && g.getIsExpanded(), C = !!d.expandedRow || !!i;
40
- return /* @__PURE__ */ S(H, { children: [
40
+ children: d.map((x, s) => {
41
+ const { id: m, original: c, getVisibleCells: j } = x, { meta: o = {} } = c, n = j(), e = N && x.getIsExpanded(), z = !!o.expandedRow || !!b, u = n[0]?.column.id !== "__expand" || y ? 0 : D ? 1 : null;
42
+ return /* @__PURE__ */ A(H, { children: [
41
43
  /* @__PURE__ */ a(
42
44
  "tr",
43
45
  {
44
- className: s(
46
+ className: l(
45
47
  { "group/row": p },
46
48
  "border-b",
47
49
  "border-b-gray-200",
48
50
  "dark:text-metal-50",
49
51
  "dark:border-b-metal-700",
50
52
  "bg-transparent",
51
- d.className
53
+ o.className
52
54
  ),
53
- "data-row-id": n,
54
- ...d.attributes ?? {},
55
- children: c.map(({ id: D, column: r, getContext: z }, x) => {
56
- const F = typeof r.columnDef.meta?.className == "function" ? r.columnDef.meta?.className(m) : r.columnDef.meta?.className;
55
+ "data-row-id": m,
56
+ ...o.attributes ?? {},
57
+ children: n.map(({ id: F, column: r, getContext: S }, f) => {
58
+ const _ = typeof r.columnDef.meta?.className == "function" ? r.columnDef.meta?.className(c) : r.columnDef.meta?.className;
57
59
  return /* @__PURE__ */ a(
58
60
  "td",
59
61
  {
60
- className: s(
62
+ className: l(
61
63
  "px-4",
62
64
  "py-1",
63
65
  "text-sm",
@@ -69,46 +71,46 @@ const J = ({
69
71
  "dark:last:border-r",
70
72
  {
71
73
  "group-hover/row:bg-zinc-100 dark:group-hover/row:bg-metal-800": p,
72
- [s(
74
+ [l(
73
75
  "bg-zinc-100 dark:bg-metal-800",
74
76
  v
75
77
  )]: !!e
76
78
  },
77
- E,
78
- F,
79
+ C,
80
+ _,
79
81
  {
80
- "first:rounded-bl-lg": l === o.length - 1 && x === 0 && !t && !e,
81
- "last:rounded-br-lg": l === o.length - 1 && x === c.length - 1 && !t && !e,
82
+ "rounded-bl-lg": s === d.length - 1 && u !== null && f === u && !t && !e,
83
+ "rounded-br-lg": s === d.length - 1 && f === n.length - 1 && !t && !e,
82
84
  "dark:[tr:last-child_&]:border-b": !t
83
85
  }
84
86
  ),
85
87
  "data-expanded": e ? !0 : void 0,
86
88
  ...r.columnDef.meta?.attributes ?? {},
87
- children: j(r.columnDef.cell, z())
89
+ children: B(r.columnDef.cell, S())
88
90
  },
89
- D
91
+ F
90
92
  );
91
93
  })
92
94
  }
93
95
  ),
94
- C && /* @__PURE__ */ a(
95
- A,
96
+ z && /* @__PURE__ */ a(
97
+ O,
96
98
  {
97
- classNameExpandedCell: R,
98
- classNameExpandedContent: k,
99
- classNameExpandedRow: N,
100
- colSpan: c.length,
101
- id: n,
99
+ classNameExpandedCell: k,
100
+ classNameExpandedContent: E,
101
+ classNameExpandedRow: R,
102
+ colSpan: n.length,
103
+ id: m,
102
104
  isExpanded: !!e,
103
- isLastRow: l === o.length - 1 && !t,
104
- children: d.expandedRow ?? i?.(m)
105
+ isLastRow: s === d.length - 1 && !t,
106
+ children: o.expandedRow ?? b?.(c)
105
107
  }
106
108
  )
107
- ] }, n);
109
+ ] }, m);
108
110
  })
109
111
  }
110
112
  );
111
113
  };
112
114
  export {
113
- J as Body
115
+ U as Body
114
116
  };
@@ -20,6 +20,8 @@ export type ContextType<TData extends RowData = RowData> = {
20
20
  classNameActiveExpandedRow?: string;
21
21
  enableHoverRow?: boolean;
22
22
  classNameHoverRow?: string;
23
+ isBorderOnAdjacentCell?: boolean;
24
+ isExpandColumnVisible?: boolean;
23
25
  renderExpandedRow?: (data: RowData) => ReactNode;
24
26
  handlePage: (newPage: number) => void;
25
27
  onPageSize: (newPageSize: number) => void;
@@ -1,9 +1,9 @@
1
- import { jsx as E } from "react/jsx-runtime";
1
+ import { jsx as O } from "react/jsx-runtime";
2
2
  import { V as Le } from "../../../index-BKjcReYh.js";
3
3
  import { useQuery as Te } from "@tanstack/react-query";
4
4
  import { u as Ae, g as Fe, a as Me } from "../../../index-CSWGJT-v.js";
5
- import { useState as r, useMemo as u, useCallback as b, useEffect as N } from "react";
6
- import { cn as O } from "../../../utils/index.js";
5
+ import { useState as r, useMemo as m, useCallback as b, useEffect as N } from "react";
6
+ import { cn as L } from "../../../utils/index.js";
7
7
  import { VirtualizedTableEvent as W } from "../events/index.js";
8
8
  import { TableContext as Pe } from "./table.context.js";
9
9
  import { C as je } from "../../../chevron-right-DvXGOiS_.js";
@@ -16,7 +16,7 @@ const Re = ({
16
16
  classNameExpandedHeader: D,
17
17
  classNameActiveExpandedRow: ee,
18
18
  classNameHoverRow: te,
19
- columns: L = [],
19
+ columns: T = [],
20
20
  data: G = [],
21
21
  defaultExpanded: ne,
22
22
  enableExpandedRow: i,
@@ -32,14 +32,14 @@ const Re = ({
32
32
  renderExpandedRow: x,
33
33
  keepExpandColumnVisible: a
34
34
  }) => {
35
- const [H, R] = r([]), [ae, ie] = r(!!l), [T, U] = r(0), [C, le] = r(), [g, ce] = r(_e), [de, ue] = r(B), A = l ? de : B, me = u(
36
- () => Math.ceil(A / g),
37
- [A, g]
38
- ), [I, fe] = r({}), F = Te({
35
+ const [H, R] = r([]), [ae, ie] = r(!!l), [A, U] = r(0), [C, le] = r(), [g, ce] = r(_e), [de, ue] = r(B), F = l ? de : B, me = m(
36
+ () => Math.ceil(F / g),
37
+ [F, g]
38
+ ), [I, fe] = r({}), M = Te({
39
39
  queryKey: (() => {
40
40
  const e = typeof s == "string" || typeof s == "number" ? [s] : s;
41
- return re && e.push(T, g), C && e.push(C), Object.entries(I).forEach(([t, d]) => {
42
- e.push(`${t}:${d.join(",")}`);
41
+ return re && e.push(A, g), C && e.push(C), Object.entries(I).forEach(([t, u]) => {
42
+ e.push(`${t}:${u.join(",")}`);
43
43
  }), e;
44
44
  })(),
45
45
  refetchOnMount: !1,
@@ -47,53 +47,53 @@ const Re = ({
47
47
  initialData: G,
48
48
  enabled: !!l,
49
49
  queryFn: async () => l({
50
- page: Math.max(T + 1, 1),
50
+ page: Math.max(A + 1, 1),
51
51
  pageSize: g,
52
52
  termOfSearch: C,
53
53
  ...Object.keys(I).length > 0 ? I : {}
54
54
  }).then(({ data: e, totalItemsCount: t }) => (ie(!1), t && ue(t), e)),
55
55
  ...se
56
- }), h = l ? F.data : G, ge = l ? F.isLoading : !1, M = l ? F.isFetching : !1, he = b((e) => {
56
+ }), h = l ? M.data : G, ge = l ? M.isLoading : !1, P = l ? M.isFetching : !1, he = b((e) => {
57
57
  le(e), U(0);
58
58
  }, []), pe = b((e, t) => {
59
- const d = e.toLowerCase().replace(/\s+/g, "_");
59
+ const u = e.toLowerCase().replace(/\s+/g, "_");
60
60
  fe((q) => ({
61
61
  ...q,
62
- [d]: t
62
+ [u]: t
63
63
  }));
64
64
  }, []), ye = b((e) => U(e), []), be = b(
65
65
  (e) => ce(e),
66
66
  []
67
67
  ), [xe, Ce] = r(
68
68
  ne ?? {}
69
- ), P = Q !== void 0, c = P ? Q : xe, p = b(
69
+ ), j = Q !== void 0, c = j ? Q : xe, p = b(
70
70
  (e) => {
71
71
  const t = typeof e == "function" ? e(c) : e;
72
- P || Ce(t), $?.(e);
72
+ j || Ce(t), $?.(e);
73
73
  },
74
- [c, P, $]
74
+ [c, j, $]
75
75
  );
76
76
  N(() => {
77
77
  if (!i) return;
78
- const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), d = (y) => {
78
+ const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), u = (y) => {
79
79
  const { detail: n } = y;
80
80
  n.tableId === e && p((o) => typeof o == "boolean" ? { [n.rowId]: !0 } : { ...o, [n.rowId]: !0 });
81
81
  }, q = (y) => {
82
82
  const { detail: n } = y;
83
83
  n.tableId === e && p((o) => {
84
84
  if (typeof o == "boolean") return {};
85
- const w = { ...o };
86
- return delete w[n.rowId], w;
85
+ const E = { ...o };
86
+ return delete E[n.rowId], E;
87
87
  });
88
88
  }, Oe = (y) => {
89
89
  const { detail: n } = y;
90
90
  n.tableId === e && p((o) => {
91
91
  if (typeof o == "boolean") return { [n.rowId]: !o };
92
- const w = !!o[n.rowId], z = { ...o };
93
- return w ? delete z[n.rowId] : z[n.rowId] = !0, z;
92
+ const E = !!o[n.rowId], z = { ...o };
93
+ return E ? delete z[n.rowId] : z[n.rowId] = !0, z;
94
94
  });
95
95
  };
96
- return document.addEventListener(W.EXPAND_ROW, d, {
96
+ return document.addEventListener(W.EXPAND_ROW, u, {
97
97
  signal: t.signal
98
98
  }), document.addEventListener(
99
99
  W.COLLAPSE_ROW,
@@ -103,48 +103,48 @@ const Re = ({
103
103
  signal: t.signal
104
104
  }), () => t.abort();
105
105
  }, [i, s, p]);
106
- const j = u(
106
+ const _ = m(
107
107
  () => h.some((e) => !!e.meta?.expandedRow),
108
108
  [h]
109
- ), S = u(
110
- () => M ? [] : h.map(
109
+ ), S = m(
110
+ () => P ? [] : h.map(
111
111
  (e, t) => f ? f(e, t) : String(t)
112
112
  ),
113
- [h, f, M]
114
- ), Ie = u(() => typeof c == "boolean" ? c : S.some((e) => !!c[e]), [c, S]), Se = u(() => typeof a == "boolean" ? a : typeof a == "object" ? S.some((e) => !!a[e]) : !1, [a, S]), _ = j || x && (Ie || Se), [m, V] = r(!!_);
113
+ [h, f, P]
114
+ ), Ie = m(() => typeof c == "boolean" ? c : S.some((e) => !!c[e]), [c, S]), Se = m(() => typeof a == "boolean" ? a : typeof a == "object" ? S.some((e) => !!a[e]) : !1, [a, S]), v = _ || x && (Ie || Se), [d, V] = r(!!v);
115
115
  N(() => {
116
- if (_) {
116
+ if (v) {
117
117
  const e = requestAnimationFrame(() => V(!0));
118
118
  return () => cancelAnimationFrame(e);
119
119
  } else
120
120
  V(!1);
121
- }, [_]);
122
- const [v, X] = r(
123
- !m
121
+ }, [v]);
122
+ const [w, X] = r(
123
+ !d
124
124
  );
125
125
  N(() => {
126
- if (m)
126
+ if (d)
127
127
  X(!1);
128
128
  else {
129
129
  const e = setTimeout(() => X(!0), 300);
130
130
  return () => clearTimeout(e);
131
131
  }
132
- }, [m]);
133
- const K = u(() => !i || !j && !x ? null : {
132
+ }, [d]);
133
+ const K = m(() => !i || !_ && !x ? null : {
134
134
  id: "__expand",
135
- header: () => /* @__PURE__ */ E(Le, { children: "Expand Column" }),
135
+ header: () => /* @__PURE__ */ O(Le, { children: "Expand Column" }),
136
136
  cell: ({ row: e }) => {
137
- const { meta: t } = e.original, d = typeof a == "object" && !!a[e.id];
138
- return !t?.expandedRow && !e.getIsExpanded() && !d ? null : /* @__PURE__ */ E(
137
+ const { meta: t } = e.original, u = typeof a == "object" && !!a[e.id];
138
+ return !t?.expandedRow && !e.getIsExpanded() && !u ? null : /* @__PURE__ */ O(
139
139
  "button",
140
140
  {
141
141
  className: "hover:cursor-pointer",
142
142
  onClick: () => e.toggleExpanded(),
143
143
  "aria-label": e.getIsExpanded() ? "Collapse row" : "Expand row",
144
- children: /* @__PURE__ */ E(
144
+ children: /* @__PURE__ */ O(
145
145
  je,
146
146
  {
147
- className: O(
147
+ className: L(
148
148
  "size-4 transition-transform text-slate-400 dark:text-metal-400",
149
149
  {
150
150
  "-rotate-90": e.getIsExpanded()
@@ -157,27 +157,27 @@ const Re = ({
157
157
  },
158
158
  enableSorting: !1,
159
159
  meta: {
160
- headerClassName: O(
160
+ headerClassName: L(
161
161
  "transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
162
162
  // Width: immediate change, CSS transition handles animation
163
- m ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0",
163
+ d ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0",
164
164
  // Border/radius: deferred on collapse so border stays during exit
165
- v && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
165
+ w && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
166
166
  ),
167
- className: O(
167
+ className: L(
168
168
  "transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
169
- m ? O("w-10 max-w-10 px-1 text-center", D) : "w-0 max-w-0 !p-0",
170
- v && "!border-0 dark:[&+td]:border-l"
169
+ d ? L("w-10 max-w-10 px-1 text-center", D) : "w-0 max-w-0 !p-0",
170
+ w && "!border-0 dark:[&+td]:border-l"
171
171
  )
172
172
  }
173
173
  }, [
174
174
  i,
175
- j,
175
+ _,
176
176
  x,
177
- m,
178
- v,
177
+ d,
178
+ w,
179
179
  a
180
- ]), we = u(() => K ? [K, ...L] : L, [L, K]), Ee = Ae({
180
+ ]), we = m(() => K ? [K, ...T] : T, [T, K]), Ee = Ae({
181
181
  data: h,
182
182
  columns: we,
183
183
  ...f ? { getRowId: f } : {},
@@ -193,34 +193,36 @@ const Re = ({
193
193
  getCoreRowModel: Me(),
194
194
  getSortedRowModel: Fe()
195
195
  });
196
- return /* @__PURE__ */ E(
196
+ return /* @__PURE__ */ O(
197
197
  Pe.Provider,
198
198
  {
199
199
  value: {
200
+ classNameActiveExpandedRow: ee,
201
+ classNameExpandedCell: J,
202
+ classNameExpandedContent: Y,
203
+ classNameExpandedRow: k,
204
+ classNameHoverRow: te,
205
+ enableExpandedRow: i,
206
+ enableHoverRow: oe,
207
+ isBorderOnAdjacentCell: w,
208
+ isExpandColumnVisible: d,
209
+ isFirstLoad: ae,
210
+ multiselectSelected: I,
211
+ page: A,
212
+ pageSize: g,
200
213
  sortedData: H,
201
214
  table: Ee,
202
- tableFetching: M,
215
+ tableFetching: P,
203
216
  tableLoading: ge,
204
- totalItems: A,
205
217
  termOfSearch: C,
206
- page: T,
207
- multiselectSelected: I,
208
- pageSize: g,
218
+ totalItems: F,
209
219
  totalPages: me,
210
- isFirstLoad: ae,
211
- enableExpandedRow: i,
212
- classNameExpandedRow: k,
213
- classNameExpandedCell: J,
214
- classNameExpandedContent: Y,
215
- classNameActiveExpandedRow: ee,
216
- renderExpandedRow: x,
217
- enableHoverRow: oe,
218
- classNameHoverRow: te,
219
220
  handlePage: ye,
220
- onPageSize: be,
221
221
  onChangeTermOfSearch: he,
222
+ onPageSize: be,
223
+ onSelectMultiselect: pe,
222
224
  onSorting: R,
223
- onSelectMultiselect: pe
225
+ renderExpandedRow: x
224
226
  },
225
227
  children: Z
226
228
  }
@@ -7,6 +7,6 @@ export type VirtualizedTableEventDetail = {
7
7
  tableId: string;
8
8
  rowId: string;
9
9
  };
10
- export declare const sendExpandRowEvent: (tableId: string, rowId: string) => boolean;
11
- export declare const sendCollapseRowEvent: (tableId: string, rowId: string) => boolean;
12
- export declare const sendToggleRowEvent: (tableId: string, rowId: string) => boolean;
10
+ export declare const sendExpandRowEvent: (tableId: string, rowId: string) => void;
11
+ export declare const sendCollapseRowEvent: (tableId: string, rowId: string) => void;
12
+ export declare const sendToggleRowEvent: (tableId: string, rowId: string) => void;
@@ -1,20 +1,26 @@
1
1
  var n = /* @__PURE__ */ ((t) => (t.EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW", t.COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW", t.TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW", t))(n || {});
2
- const o = (t, e) => document.dispatchEvent(
3
- new CustomEvent(
4
- "@konstructio/VirtualizedTable/event-EXPAND_ROW",
5
- { detail: { tableId: t, rowId: e } }
6
- )
7
- ), i = (t, e) => document.dispatchEvent(
8
- new CustomEvent(
9
- "@konstructio/VirtualizedTable/event-COLLAPSE_ROW",
10
- { detail: { tableId: t, rowId: e } }
11
- )
12
- ), s = (t, e) => document.dispatchEvent(
13
- new CustomEvent(
14
- "@konstructio/VirtualizedTable/event-TOGGLE_ROW",
15
- { detail: { tableId: t, rowId: e } }
16
- )
17
- );
2
+ const o = (t, e) => {
3
+ document.dispatchEvent(
4
+ new CustomEvent(
5
+ "@konstructio/VirtualizedTable/event-EXPAND_ROW",
6
+ { detail: { tableId: t, rowId: e } }
7
+ )
8
+ );
9
+ }, i = (t, e) => {
10
+ document.dispatchEvent(
11
+ new CustomEvent(
12
+ "@konstructio/VirtualizedTable/event-COLLAPSE_ROW",
13
+ { detail: { tableId: t, rowId: e } }
14
+ )
15
+ );
16
+ }, s = (t, e) => {
17
+ document.dispatchEvent(
18
+ new CustomEvent(
19
+ "@konstructio/VirtualizedTable/event-TOGGLE_ROW",
20
+ { detail: { tableId: t, rowId: e } }
21
+ )
22
+ );
23
+ };
18
24
  export {
19
25
  n as VirtualizedTableEvent,
20
26
  i as sendCollapseRowEvent,
@@ -17,7 +17,7 @@ import { Filter as k } from "./Filter/Filter.js";
17
17
  import { ImageUpload as F } from "./ImageUpload/ImageUpload.js";
18
18
  import { Input as M } from "./Input/Input.js";
19
19
  import { Loading as y } from "./Loading/Loading.js";
20
- import { M as U } from "../Modal--z642-Wv.js";
20
+ import { M as U } from "../Modal-mwLmWbnA.js";
21
21
  import { MultiSelectDropdown as j } from "./MultiSelectDropdown/MultiSelectDropdown.js";
22
22
  import { PhoneNumberInput as H } from "./PhoneNumberInput/PhoneNumberInput.js";
23
23
  import { PieChart as K } from "./PieChart/PieChart.js";
package/dist/icons.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { AccountsIcon, AddChartIcon, AlertOutlineIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BookOpenIcon, CalendarMonthIcon, CheckIcon, CheckCircleIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, ClustersIcon, CogOutlineIcon, CopyIcon, CpuIcon, CubeIcon, DatacenterIcon, DeleteIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, GitIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, HomeIcon, IdIcon, InformationOutlineIcon, InvoiceListIcon, KeyIcon, LoaderIcon, LightBulbIcon, NetworkIcon, PagesStackIcon, PageviewIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, ReceiptLongIcon, RefreshIcon, ScatterPlotIcon, SearchIcon, ServerIcon, StartIcon, TabNewIcon, TeamsIcon, WarningIcon, XIcon, } from './assets/icons/components';
1
+ export { AccountsIcon, AddChartIcon, AlertOutlineIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BookOpenIcon, CalendarMonthIcon, CheckIcon, CheckCircleIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, CloudLockOutlineIcon, ClustersIcon, CogOutlineIcon, CopyIcon, CpuIcon, CubeIcon, DatacenterIcon, DeleteIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, GitIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, HomeIcon, IdIcon, InformationOutlineIcon, InvoiceListIcon, KeyIcon, LoaderIcon, LightBulbIcon, NetworkIcon, PagesStackIcon, PageviewIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, ReceiptLongIcon, RefreshIcon, ScatterPlotIcon, SearchIcon, ServerIcon, StartIcon, TabNewIcon, TeamsIcon, WarningIcon, XIcon, } from './assets/icons/components';
2
2
  export type { IconProps, IconComponent } from './assets/icons/components';