@konstructio/ui 0.1.2-alpha.65 → 0.1.2-alpha.67

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 (89) hide show
  1. package/dist/{DayPicker-PUEUVAST.js → DayPicker-CaeUXRCF.js} +475 -470
  2. package/dist/assets/icons/components/AlertOutline.d.ts +3 -0
  3. package/dist/assets/icons/components/AlertOutline.js +28 -0
  4. package/dist/assets/icons/components/index.d.ts +1 -0
  5. package/dist/assets/icons/components/index.js +126 -124
  6. package/dist/assets/icons/index.js +122 -120
  7. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  8. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  9. package/dist/components/AlertDialog/components/index.js +1 -1
  10. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  11. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  12. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  13. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  14. package/dist/components/Checkbox/Checkbox.js +51 -51
  15. package/dist/components/Command/Command.js +1 -1
  16. package/dist/components/Command/components/Command.js +1 -1
  17. package/dist/components/Command/components/CommandEmpty.js +1 -1
  18. package/dist/components/Command/components/CommandGroup.js +1 -1
  19. package/dist/components/Command/components/CommandInput.js +1 -1
  20. package/dist/components/Command/components/CommandItem.js +1 -1
  21. package/dist/components/Command/components/CommandList.js +1 -1
  22. package/dist/components/Command/components/CommandSeparator.js +1 -1
  23. package/dist/components/Command/components/DialogContent.js +1 -1
  24. package/dist/components/Command/components/DialogOverlay.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
  26. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  27. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  28. package/dist/components/Datepicker/DatePicker.js +1 -1
  29. package/dist/components/Drawer/components/index.js +6 -6
  30. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -0
  31. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  32. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  33. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  34. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -17
  35. package/dist/components/ProgressBar/ProgressBar.js +38 -59
  36. package/dist/components/ProgressBar/ProgressBar.types.d.ts +12 -28
  37. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +3 -3
  38. package/dist/components/ProgressBar/ProgressBar.variants.js +23 -24
  39. package/dist/components/Range/Range.js +1 -1
  40. package/dist/components/Slider/Slider.js +1 -1
  41. package/dist/components/Spinner/Spinner.d.ts +4 -0
  42. package/dist/components/Spinner/Spinner.js +57 -0
  43. package/dist/components/Spinner/Spinner.types.d.ts +13 -0
  44. package/dist/components/Spinner/Spinner.variants.d.ts +6 -0
  45. package/dist/components/Spinner/Spinner.variants.js +54 -0
  46. package/dist/components/Switch/Switch.js +47 -47
  47. package/dist/components/Tabs/Tabs.js +1 -1
  48. package/dist/components/Tabs/components/Content.js +1 -1
  49. package/dist/components/Tabs/components/List.js +1 -1
  50. package/dist/components/Tabs/components/Trigger.js +1 -1
  51. package/dist/components/Toast/Toast.js +9 -9
  52. package/dist/components/VirtualizedTable/VirtualizedTable.d.ts +5 -0
  53. package/dist/components/VirtualizedTable/VirtualizedTable.js +83 -71
  54. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
  55. package/dist/components/VirtualizedTable/components/Body/Body.js +56 -53
  56. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  57. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +2 -2
  58. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +4 -1
  59. package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  60. package/dist/components/VirtualizedTable/contexts/table.provider.js +192 -108
  61. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +4 -1
  62. package/dist/components/VirtualizedTable/events/index.d.ts +12 -0
  63. package/dist/components/VirtualizedTable/events/index.js +29 -0
  64. package/dist/components/index.d.ts +3 -0
  65. package/dist/components/index.js +98 -91
  66. package/dist/icons.d.ts +1 -1
  67. package/dist/icons.js +122 -120
  68. package/dist/{index-DKfEnhKr.js → index--l0zux8V.js} +2 -2
  69. package/dist/{index-AV6ZtGhy.js → index-3fEdeexs.js} +1 -1
  70. package/dist/{index-CeZcoQDw.js → index-9a-FL_6D.js} +6 -6
  71. package/dist/{index-Dy59FQl5.js → index-BKMaItIC.js} +1 -1
  72. package/dist/{index-DtEcCIrM.js → index-BRXMsxSL.js} +1 -1
  73. package/dist/{index-DMb4KD0b.js → index-CESXsoMn.js} +1 -1
  74. package/dist/{index-BG8O18ZY.js → index-CJnS4BVW.js} +1 -1
  75. package/dist/{index-vcSp8YRZ.js → index-Cmf-IG4l.js} +10 -10
  76. package/dist/{index-Byr10W8m.js → index-DPcwqB8q.js} +618 -613
  77. package/dist/{index-BqhYevy7.js → index-Dd_ZmIqU.js} +19 -19
  78. package/dist/{index-D9SSJ6om.js → index-Dfq4O3b4.js} +3 -3
  79. package/dist/{index-gSPwC-1I.js → index-Jr0cra7i.js} +9 -9
  80. package/dist/{index-BlSRBdPy.js → index-URQGEGX7.js} +1 -1
  81. package/dist/index.js +142 -135
  82. package/dist/{libphonenumber-C9G59k5J.js → libphonenumber-aZ-2KWIf.js} +3 -3
  83. package/dist/package.json +21 -21
  84. package/dist/{proxy-BhEKW5n7.js → proxy-BIRlSMN_.js} +856 -851
  85. package/dist/styles.css +1 -1
  86. package/dist/useBreadcrumb-C_Wb2cXs.js +1435 -0
  87. package/dist/utils/index.js +514 -355
  88. package/package.json +21 -21
  89. package/dist/useBreadcrumb-vSs0pRo3.js +0 -1412
@@ -1,87 +1,150 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { V as ae } from "../../../index-BKjcReYh.js";
3
- import { useQuery as se } from "@tanstack/react-query";
4
- import { u as le, g as ie, a as ce } from "../../../index-CSWGJT-v.js";
5
- import { useState as n, useMemo as C, useCallback as a } from "react";
6
- import { cn as P } from "../../../utils/index.js";
7
- import { TableContext as ue } from "./table.context.js";
8
- import { C as de } from "../../../chevron-right-DvXGOiS_.js";
9
- import { DEFAULT_PAGE_SIZE as me } from "../constants/pagination.js";
10
- const Me = ({
11
- children: F,
12
- classNameExpandedCell: O,
13
- classNameExpandedContent: T,
14
- classNameExpandedRow: v,
15
- classNameExpandedHeader: w,
16
- classNameActiveExpandedRow: L,
17
- classNameHoverRow: _,
18
- columns: u = [],
19
- data: x = [],
20
- defaultExpanded: j,
21
- enableExpandedRow: o,
22
- enableHoverRow: k,
23
- expandedState: S,
1
+ import { jsx as O } from "react/jsx-runtime";
2
+ import { V as Le } from "../../../index-BKjcReYh.js";
3
+ import { useQuery as Te } from "@tanstack/react-query";
4
+ import { u as Ae, g as Fe, a as Me } from "../../../index-CSWGJT-v.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
+ import { VirtualizedTableEvent as W } from "../events/index.js";
8
+ import { TableContext as Pe } from "./table.context.js";
9
+ import { C as je } from "../../../chevron-right-DvXGOiS_.js";
10
+ import { DEFAULT_PAGE_SIZE as _e } from "../constants/pagination.js";
11
+ const Re = ({
12
+ children: Z,
13
+ classNameExpandedCell: J,
14
+ classNameExpandedContent: Y,
15
+ classNameExpandedRow: k,
16
+ classNameExpandedHeader: D,
17
+ classNameActiveExpandedRow: ee,
18
+ classNameHoverRow: te,
19
+ columns: T = [],
20
+ data: G = [],
21
+ defaultExpanded: ne,
22
+ enableExpandedRow: i,
23
+ enableHoverRow: oe,
24
+ expandedState: Q,
24
25
  id: s,
25
- isPaginationEnabled: z,
26
- queryOptions: K = {},
27
- totalItems: N,
28
- fetchData: y,
29
- onExpandedChange: E
26
+ isPaginationEnabled: re,
27
+ queryOptions: se = {},
28
+ totalItems: B,
29
+ getRowId: f,
30
+ fetchData: l,
31
+ onExpandedChange: $,
32
+ renderExpandedRow: x,
33
+ keepExpandColumnVisible: a
30
34
  }) => {
31
- const [M, b] = n([]), [q, R] = n(!0), [d, I] = n(0), [l, V] = n(), [r, A] = n(me), [m, D] = n(N), Q = C(
32
- () => Math.ceil(m / r),
33
- [m, r]
34
- ), [i, $] = n({}), G = () => {
35
- const e = typeof s == "string" || typeof s == "number" ? [s] : s;
36
- return z && e.push(d, r), l && e.push(l), Object.entries(i).forEach(([t, h]) => {
37
- e.push(`${t}:${h.join(",")}`);
38
- }), e;
39
- }, { data: H, isLoading: U, isFetching: W } = se({
40
- queryKey: G(),
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
+ queryKey: (() => {
40
+ const e = typeof s == "string" || typeof s == "number" ? [s] : s;
41
+ return re && e.push(A, g), C && e.push(C), Object.entries(I).forEach(([t, u]) => {
42
+ e.push(`${t}:${u.join(",")}`);
43
+ }), e;
44
+ })(),
41
45
  refetchOnMount: !1,
42
46
  refetchOnWindowFocus: !1,
43
- initialData: x,
44
- queryFn: async () => y ? y({
45
- page: Math.max(d + 1, 1),
46
- pageSize: r,
47
- termOfSearch: l,
48
- ...Object.keys(i).length > 0 ? i : {}
49
- }).then(({ data: e, totalItemsCount: t }) => (R(!1), t && D(t), e)) : x ?? [],
50
- ...K
51
- }), Z = a((e) => {
52
- V(e), I(0);
53
- }, []), B = a((e, t) => {
54
- const h = e.toLowerCase().replace(/\s+/g, "_");
55
- $((re) => ({
56
- ...re,
57
- [h]: t
47
+ initialData: G,
48
+ enabled: !!l,
49
+ queryFn: async () => l({
50
+ page: Math.max(A + 1, 1),
51
+ pageSize: g,
52
+ termOfSearch: C,
53
+ ...Object.keys(I).length > 0 ? I : {}
54
+ }).then(({ data: e, totalItemsCount: t }) => (ie(!1), t && ue(t), e)),
55
+ ...se
56
+ }), h = l ? M.data : G, ge = l ? M.isLoading : !1, P = l ? M.isFetching : !1, he = b((e) => {
57
+ le(e), U(0);
58
+ }, []), pe = b((e, t) => {
59
+ const u = e.toLowerCase().replace(/\s+/g, "_");
60
+ fe((q) => ({
61
+ ...q,
62
+ [u]: t
58
63
  }));
59
- }, []), J = a((e) => I(e), []), X = a(
60
- (e) => A(e),
64
+ }, []), ye = b((e) => U(e), []), be = b(
65
+ (e) => ce(e),
61
66
  []
62
- ), [Y, ee] = n(
63
- j ?? {}
64
- ), g = S !== void 0, f = g ? S : Y, te = a(
67
+ ), [xe, Ce] = r(
68
+ ne ?? {}
69
+ ), j = Q !== void 0, c = j ? Q : xe, p = b(
65
70
  (e) => {
66
- const t = typeof e == "function" ? e(f) : e;
67
- g || ee(t), E?.(e);
71
+ const t = typeof e == "function" ? e(c) : e;
72
+ j || Ce(t), $?.(e);
68
73
  },
69
- [f, g, E]
70
- ), p = C(() => o ? {
74
+ [c, j, $]
75
+ );
76
+ N(() => {
77
+ if (!i) return;
78
+ const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), u = (y) => {
79
+ const { detail: n } = y;
80
+ n.tableId === e && p((o) => typeof o == "boolean" ? { [n.rowId]: !0 } : { ...o, [n.rowId]: !0 });
81
+ }, q = (y) => {
82
+ const { detail: n } = y;
83
+ n.tableId === e && p((o) => {
84
+ if (typeof o == "boolean") return {};
85
+ const E = { ...o };
86
+ return delete E[n.rowId], E;
87
+ });
88
+ }, Oe = (y) => {
89
+ const { detail: n } = y;
90
+ n.tableId === e && p((o) => {
91
+ if (typeof o == "boolean") return { [n.rowId]: !o };
92
+ const E = !!o[n.rowId], z = { ...o };
93
+ return E ? delete z[n.rowId] : z[n.rowId] = !0, z;
94
+ });
95
+ };
96
+ return document.addEventListener(W.EXPAND_ROW, u, {
97
+ signal: t.signal
98
+ }), document.addEventListener(
99
+ W.COLLAPSE_ROW,
100
+ q,
101
+ { signal: t.signal }
102
+ ), document.addEventListener(W.TOGGLE_ROW, Oe, {
103
+ signal: t.signal
104
+ }), () => t.abort();
105
+ }, [i, s, p]);
106
+ const _ = m(
107
+ () => h.some((e) => !!e.meta?.expandedRow),
108
+ [h]
109
+ ), S = m(
110
+ () => P ? [] : h.map(
111
+ (e, t) => f ? f(e, t) : String(t)
112
+ ),
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
+ N(() => {
116
+ if (v) {
117
+ const e = requestAnimationFrame(() => V(!0));
118
+ return () => cancelAnimationFrame(e);
119
+ } else
120
+ V(!1);
121
+ }, [v]);
122
+ const [w, X] = r(
123
+ !d
124
+ );
125
+ N(() => {
126
+ if (d)
127
+ X(!1);
128
+ else {
129
+ const e = setTimeout(() => X(!0), 300);
130
+ return () => clearTimeout(e);
131
+ }
132
+ }, [d]);
133
+ const K = m(() => !i || !_ && !x ? null : {
71
134
  id: "__expand",
72
- header: () => /* @__PURE__ */ c(ae, { children: "Expand Column" }),
135
+ header: () => /* @__PURE__ */ O(Le, { children: "Expand Column" }),
73
136
  cell: ({ row: e }) => {
74
- const { meta: t } = e.original;
75
- return t?.expandedRow ? /* @__PURE__ */ c(
137
+ const { meta: t } = e.original, u = typeof a == "object" && !!a[e.id];
138
+ return !t?.expandedRow && !e.getIsExpanded() && !u ? null : /* @__PURE__ */ O(
76
139
  "button",
77
140
  {
78
141
  className: "hover:cursor-pointer",
79
142
  onClick: () => e.toggleExpanded(),
80
143
  "aria-label": e.getIsExpanded() ? "Collapse row" : "Expand row",
81
- children: /* @__PURE__ */ c(
82
- de,
144
+ children: /* @__PURE__ */ O(
145
+ je,
83
146
  {
84
- className: P(
147
+ className: L(
85
148
  "size-4 transition-transform text-slate-400 dark:text-metal-400",
86
149
  {
87
150
  "-rotate-90": e.getIsExpanded()
@@ -90,60 +153,81 @@ const Me = ({
90
153
  }
91
154
  )
92
155
  }
93
- ) : null;
156
+ );
94
157
  },
95
158
  enableSorting: !1,
96
159
  meta: {
97
- headerClassName: "w-10",
98
- className: P("w-10 px-1 text-center", w)
160
+ headerClassName: L(
161
+ "transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
162
+ // Width: immediate change, CSS transition handles animation
163
+ d ? "w-10 max-w-10 px-2" : "w-0 max-w-0 !p-0",
164
+ // Border/radius: deferred on collapse so border stays during exit
165
+ w && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
166
+ ),
167
+ className: L(
168
+ "transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
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
+ )
99
172
  }
100
- } : null, [o]), ne = C(() => p ? [p, ...u] : u, [u, p]), oe = le({
101
- data: H,
102
- columns: ne,
173
+ }, [
174
+ i,
175
+ _,
176
+ x,
177
+ d,
178
+ w,
179
+ a
180
+ ]), we = m(() => K ? [K, ...T] : T, [T, K]), Ee = Ae({
181
+ data: h,
182
+ columns: we,
183
+ ...f ? { getRowId: f } : {},
103
184
  state: {
104
- sorting: M,
105
- ...o ? { expanded: f } : {}
185
+ sorting: H,
186
+ ...i ? { expanded: c } : {}
106
187
  },
107
- onSortingChange: b,
108
- ...o ? {
109
- onExpandedChange: te,
188
+ onSortingChange: R,
189
+ ...i ? {
190
+ onExpandedChange: p,
110
191
  manualExpanding: !0
111
192
  } : {},
112
- getCoreRowModel: ce(),
113
- getSortedRowModel: ie()
193
+ getCoreRowModel: Me(),
194
+ getSortedRowModel: Fe()
114
195
  });
115
- return /* @__PURE__ */ c(
116
- ue.Provider,
196
+ return /* @__PURE__ */ O(
197
+ Pe.Provider,
117
198
  {
118
199
  value: {
119
- sortedData: M,
120
- table: oe,
121
- tableFetching: W,
122
- tableLoading: U,
123
- totalItems: m,
124
- termOfSearch: l,
125
- page: d,
126
- multiselectSelected: i,
127
- pageSize: r,
128
- totalPages: Q,
129
- isFirstLoad: q,
130
- enableExpandedRow: o,
131
- classNameExpandedRow: v,
132
- classNameExpandedCell: O,
133
- classNameExpandedContent: T,
134
- classNameActiveExpandedRow: L,
135
- enableHoverRow: k,
136
- classNameHoverRow: _,
137
- handlePage: J,
138
- onPageSize: X,
139
- onChangeTermOfSearch: Z,
140
- onSorting: b,
141
- onSelectMultiselect: B
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,
213
+ sortedData: H,
214
+ table: Ee,
215
+ tableFetching: P,
216
+ tableLoading: ge,
217
+ termOfSearch: C,
218
+ totalItems: F,
219
+ totalPages: me,
220
+ handlePage: ye,
221
+ onChangeTermOfSearch: he,
222
+ onPageSize: be,
223
+ onSelectMultiselect: pe,
224
+ onSorting: R,
225
+ renderExpandedRow: x
142
226
  },
143
- children: F
227
+ children: Z
144
228
  }
145
229
  );
146
230
  };
147
231
  export {
148
- Me as TableProvider
232
+ Re as TableProvider
149
233
  };
@@ -1,5 +1,5 @@
1
1
  import { ColumnDef, ExpandedState, OnChangeFn } from '@tanstack/react-table';
2
- import { PropsWithChildren } from 'react';
2
+ import { PropsWithChildren, ReactNode } from 'react';
3
3
  import { RowData, Props as TableProps } from '../VirtualizedTable.types';
4
4
  export type Props<TData extends RowData = RowData> = PropsWithChildren & {
5
5
  id: string | string[] | number | number[];
@@ -19,6 +19,9 @@ export type Props<TData extends RowData = RowData> = PropsWithChildren & {
19
19
  enableHoverRow?: boolean;
20
20
  classNameHoverRow?: string;
21
21
  onExpandedChange?: OnChangeFn<ExpandedState>;
22
+ renderExpandedRow?: (data: TData) => ReactNode;
23
+ keepExpandColumnVisible?: boolean | Record<string, boolean>;
24
+ getRowId?: (originalRow: TData, index: number) => string;
22
25
  fetchData?: (params: Record<string, string | number | string[] | number[] | undefined>) => Promise<{
23
26
  data: TData[];
24
27
  totalItemsCount?: number;
@@ -0,0 +1,12 @@
1
+ export declare enum VirtualizedTableEvent {
2
+ EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW",
3
+ COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW",
4
+ TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW"
5
+ }
6
+ export type VirtualizedTableEventDetail = {
7
+ tableId: string;
8
+ rowId: string;
9
+ };
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;
@@ -0,0 +1,29 @@
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) => {
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
+ };
24
+ export {
25
+ n as VirtualizedTableEvent,
26
+ i as sendCollapseRowEvent,
27
+ o as sendExpandRowEvent,
28
+ s as sendToggleRowEvent
29
+ };
@@ -31,6 +31,7 @@ export * from './Range/Range';
31
31
  export * from './Select/Select';
32
32
  export * from './Sidebar/Sidebar';
33
33
  export * from './Slider/Slider';
34
+ export * from './Spinner/Spinner';
34
35
  export * from './Stepper/Stepper';
35
36
  export * from './Switch/Switch';
36
37
  export * from './Table/Table';
@@ -43,6 +44,8 @@ export * from './Toast/Toast';
43
44
  export * from './Tooltip/Tooltip';
44
45
  export * from './Typography/Typography';
45
46
  export * from './VirtualizedTable/VirtualizedTable';
47
+ export { sendExpandRowEvent, sendCollapseRowEvent, sendToggleRowEvent, VirtualizedTableEvent, } from './VirtualizedTable/events';
48
+ export type { VirtualizedTableEventDetail } from './VirtualizedTable/events';
46
49
  export type { ColumnDef, RowData, } from './VirtualizedTable/VirtualizedTable.types';
47
50
  export type { Step, StepperClassNames, StepperIcons, StepperProps, StepSize, StepStatus, StepVariant, } from './Stepper/Stepper.types';
48
51
  export { horizontalConnectorWrapperVariants, stepConnectorVariants, stepContentVariants, stepDescriptionVariants, stepIndicatorVariants, stepItemVariants, stepLabelVariants, stepListVariants, stepperVariants, stepVariants, } from './Stepper/Stepper.variants';