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

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 (85) hide show
  1. package/dist/assets/icons/components/AlertOutline.d.ts +3 -0
  2. package/dist/assets/icons/components/AlertOutline.js +28 -0
  3. package/dist/assets/icons/components/index.d.ts +1 -0
  4. package/dist/assets/icons/components/index.js +126 -124
  5. package/dist/assets/icons/index.js +122 -120
  6. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  10. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  11. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  12. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  13. package/dist/components/Checkbox/Checkbox.js +51 -51
  14. package/dist/components/Command/Command.js +1 -1
  15. package/dist/components/Command/components/Command.js +1 -1
  16. package/dist/components/Command/components/CommandEmpty.js +1 -1
  17. package/dist/components/Command/components/CommandGroup.js +1 -1
  18. package/dist/components/Command/components/CommandInput.js +1 -1
  19. package/dist/components/Command/components/CommandItem.js +1 -1
  20. package/dist/components/Command/components/CommandList.js +1 -1
  21. package/dist/components/Command/components/CommandSeparator.js +1 -1
  22. package/dist/components/Command/components/DialogContent.js +1 -1
  23. package/dist/components/Command/components/DialogOverlay.js +1 -1
  24. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  26. package/dist/components/Drawer/components/index.js +6 -6
  27. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -0
  28. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  29. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  30. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  31. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -17
  32. package/dist/components/ProgressBar/ProgressBar.js +38 -59
  33. package/dist/components/ProgressBar/ProgressBar.types.d.ts +12 -28
  34. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +3 -3
  35. package/dist/components/ProgressBar/ProgressBar.variants.js +23 -24
  36. package/dist/components/Range/Range.js +1 -1
  37. package/dist/components/Slider/Slider.js +1 -1
  38. package/dist/components/Spinner/Spinner.d.ts +4 -0
  39. package/dist/components/Spinner/Spinner.js +57 -0
  40. package/dist/components/Spinner/Spinner.types.d.ts +13 -0
  41. package/dist/components/Spinner/Spinner.variants.d.ts +6 -0
  42. package/dist/components/Spinner/Spinner.variants.js +54 -0
  43. package/dist/components/Switch/Switch.js +47 -47
  44. package/dist/components/Tabs/Tabs.js +1 -1
  45. package/dist/components/Tabs/components/Content.js +1 -1
  46. package/dist/components/Tabs/components/List.js +1 -1
  47. package/dist/components/Tabs/components/Trigger.js +1 -1
  48. package/dist/components/Toast/Toast.js +9 -9
  49. package/dist/components/VirtualizedTable/VirtualizedTable.js +71 -65
  50. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
  51. package/dist/components/VirtualizedTable/components/Body/Body.js +42 -41
  52. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  53. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +2 -2
  54. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +2 -1
  55. package/dist/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
  56. package/dist/components/VirtualizedTable/contexts/table.provider.js +190 -108
  57. package/dist/components/VirtualizedTable/contexts/table.types.d.ts +4 -1
  58. package/dist/components/VirtualizedTable/events/index.d.ts +12 -0
  59. package/dist/components/VirtualizedTable/events/index.js +23 -0
  60. package/dist/components/index.d.ts +3 -0
  61. package/dist/components/index.js +98 -91
  62. package/dist/icons.d.ts +1 -1
  63. package/dist/icons.js +122 -120
  64. package/dist/{index-DKfEnhKr.js → index--l0zux8V.js} +2 -2
  65. package/dist/{index-AV6ZtGhy.js → index-3fEdeexs.js} +1 -1
  66. package/dist/{index-CeZcoQDw.js → index-9a-FL_6D.js} +6 -6
  67. package/dist/{index-Dy59FQl5.js → index-BKMaItIC.js} +1 -1
  68. package/dist/{index-DtEcCIrM.js → index-BRXMsxSL.js} +1 -1
  69. package/dist/{index-DMb4KD0b.js → index-CESXsoMn.js} +1 -1
  70. package/dist/{index-BG8O18ZY.js → index-CJnS4BVW.js} +1 -1
  71. package/dist/{index-vcSp8YRZ.js → index-Cmf-IG4l.js} +10 -10
  72. package/dist/{index-Byr10W8m.js → index-DPcwqB8q.js} +618 -613
  73. package/dist/{index-BqhYevy7.js → index-Dd_ZmIqU.js} +19 -19
  74. package/dist/{index-D9SSJ6om.js → index-Dfq4O3b4.js} +3 -3
  75. package/dist/{index-gSPwC-1I.js → index-Jr0cra7i.js} +9 -9
  76. package/dist/{index-BlSRBdPy.js → index-URQGEGX7.js} +1 -1
  77. package/dist/index.js +142 -135
  78. package/dist/{libphonenumber-C9G59k5J.js → libphonenumber-aZ-2KWIf.js} +3 -3
  79. package/dist/package.json +2 -2
  80. package/dist/{proxy-BhEKW5n7.js → proxy-BIRlSMN_.js} +856 -851
  81. package/dist/styles.css +1 -1
  82. package/dist/useBreadcrumb-C_Wb2cXs.js +1435 -0
  83. package/dist/utils/index.js +514 -355
  84. package/package.json +2 -2
  85. 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 E } 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 u, useCallback as b, useEffect as N } from "react";
6
+ import { cn as O } 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: L = [],
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), [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({
39
+ queryKey: (() => {
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(",")}`);
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(T + 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 ? F.data : G, ge = l ? F.isLoading : !1, M = l ? F.isFetching : !1, he = b((e) => {
57
+ le(e), U(0);
58
+ }, []), pe = b((e, t) => {
59
+ const d = e.toLowerCase().replace(/\s+/g, "_");
60
+ fe((q) => ({
61
+ ...q,
62
+ [d]: 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
+ ), P = Q !== void 0, c = P ? 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
+ P || Ce(t), $?.(e);
68
73
  },
69
- [f, g, E]
70
- ), p = C(() => o ? {
74
+ [c, P, $]
75
+ );
76
+ N(() => {
77
+ if (!i) return;
78
+ const e = Array.isArray(s) ? s.join(",") : String(s), t = new AbortController(), d = (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 w = { ...o };
86
+ return delete w[n.rowId], w;
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 w = !!o[n.rowId], z = { ...o };
93
+ return w ? delete z[n.rowId] : z[n.rowId] = !0, z;
94
+ });
95
+ };
96
+ return document.addEventListener(W.EXPAND_ROW, d, {
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 j = u(
107
+ () => h.some((e) => !!e.meta?.expandedRow),
108
+ [h]
109
+ ), S = u(
110
+ () => M ? [] : h.map(
111
+ (e, t) => f ? f(e, t) : String(t)
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(!!_);
115
+ N(() => {
116
+ if (_) {
117
+ const e = requestAnimationFrame(() => V(!0));
118
+ return () => cancelAnimationFrame(e);
119
+ } else
120
+ V(!1);
121
+ }, [_]);
122
+ const [v, X] = r(
123
+ !m
124
+ );
125
+ N(() => {
126
+ if (m)
127
+ X(!1);
128
+ else {
129
+ const e = setTimeout(() => X(!0), 300);
130
+ return () => clearTimeout(e);
131
+ }
132
+ }, [m]);
133
+ const K = u(() => !i || !j && !x ? null : {
71
134
  id: "__expand",
72
- header: () => /* @__PURE__ */ c(ae, { children: "Expand Column" }),
135
+ header: () => /* @__PURE__ */ E(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, d = typeof a == "object" && !!a[e.id];
138
+ return !t?.expandedRow && !e.getIsExpanded() && !d ? null : /* @__PURE__ */ E(
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__ */ E(
145
+ je,
83
146
  {
84
- className: P(
147
+ className: O(
85
148
  "size-4 transition-transform text-slate-400 dark:text-metal-400",
86
149
  {
87
150
  "-rotate-90": e.getIsExpanded()
@@ -90,60 +153,79 @@ 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: O(
161
+ "transition-[width,max-width,padding] duration-300 ease-in-out overflow-hidden",
162
+ // Width: immediate change, CSS transition handles animation
163
+ m ? "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
+ v && "!border-0 !rounded-none [&+th]:rounded-tl-lg dark:[&+th]:border-l"
166
+ ),
167
+ className: O(
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"
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
+ j,
176
+ x,
177
+ m,
178
+ v,
179
+ a
180
+ ]), we = u(() => K ? [K, ...L] : L, [L, 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__ */ E(
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
+ sortedData: H,
201
+ table: Ee,
202
+ tableFetching: M,
203
+ tableLoading: ge,
204
+ totalItems: A,
205
+ termOfSearch: C,
206
+ page: T,
207
+ multiselectSelected: I,
208
+ pageSize: g,
209
+ 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
+ handlePage: ye,
220
+ onPageSize: be,
221
+ onChangeTermOfSearch: he,
222
+ onSorting: R,
223
+ onSelectMultiselect: pe
142
224
  },
143
- children: F
225
+ children: Z
144
226
  }
145
227
  );
146
228
  };
147
229
  export {
148
- Me as TableProvider
230
+ Re as TableProvider
149
231
  };
@@ -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) => boolean;
11
+ export declare const sendCollapseRowEvent: (tableId: string, rowId: string) => boolean;
12
+ export declare const sendToggleRowEvent: (tableId: string, rowId: string) => boolean;
@@ -0,0 +1,23 @@
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
+ );
18
+ export {
19
+ n as VirtualizedTableEvent,
20
+ i as sendCollapseRowEvent,
21
+ o as sendExpandRowEvent,
22
+ s as sendToggleRowEvent
23
+ };
@@ -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';
@@ -1,95 +1,97 @@
1
- import { Alert as t } from "./Alert/Alert.js";
1
+ import { Alert as e } from "./Alert/Alert.js";
2
2
  import { AlertDialog as p } from "./AlertDialog/AlertDialog.js";
3
3
  import { Autocomplete as m } from "./Autocomplete/Autocomplete.js";
4
4
  import { Badge as f } from "./Badge/Badge.js";
5
- import { Breadcrumb as n } from "./Breadcrumb/Breadcrumb.js";
5
+ import { Breadcrumb as i } from "./Breadcrumb/Breadcrumb.js";
6
6
  import { Button as d } from "./Button/Button.js";
7
- import { ButtonGroup as u } from "./ButtonGroup/ButtonGroup.js";
7
+ import { ButtonGroup as g } from "./ButtonGroup/ButtonGroup.js";
8
8
  import { Card as c } from "./Card/Card.js";
9
- import { Checkbox as T } from "./Checkbox/Checkbox.js";
9
+ import { Checkbox as D } from "./Checkbox/Checkbox.js";
10
10
  import { Counter as V, Counter as S } from "./Counter/Counter.js";
11
11
  import { DatePicker as w } from "./Datepicker/DatePicker.js";
12
- import { DateRangePicker as R } from "./DateRangePicker/DateRangePicker.js";
13
- import { Divider as I } from "./Divider/Divider.js";
14
- import { Drawer as P } from "./Drawer/Drawer.js";
15
- import { DropdownButton as L } from "./DropdownButton/DropdownButton.js";
16
- import { Filter as A } from "./Filter/Filter.js";
17
- import { ImageUpload as G } from "./ImageUpload/ImageUpload.js";
18
- import { Input as y } from "./Input/Input.js";
19
- import { Loading as O } from "./Loading/Loading.js";
20
- import { M as W } from "../Modal--z642-Wv.js";
21
- import { MultiSelectDropdown as q } from "./MultiSelectDropdown/MultiSelectDropdown.js";
12
+ import { DateRangePicker as v } from "./DateRangePicker/DateRangePicker.js";
13
+ import { Divider as h } from "./Divider/Divider.js";
14
+ import { Drawer as N } from "./Drawer/Drawer.js";
15
+ import { DropdownButton as E } from "./DropdownButton/DropdownButton.js";
16
+ import { Filter as k } from "./Filter/Filter.js";
17
+ import { ImageUpload as F } from "./ImageUpload/ImageUpload.js";
18
+ import { Input as M } from "./Input/Input.js";
19
+ import { Loading as y } from "./Loading/Loading.js";
20
+ import { M as U } from "../Modal--z642-Wv.js";
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";
24
24
  import { ProgressBar as X } from "./ProgressBar/ProgressBar.js";
25
25
  import { Radio as Z } from "./Radio/Radio.js";
26
26
  import { RadioCard as $ } from "./RadioCard/RadioCard.js";
27
27
  import { RadioCardGroup as or } from "./RadioCardGroup/RadioCardGroup.js";
28
- import { RadioGroup as er } from "./RadioGroup/RadioGroup.js";
28
+ import { RadioGroup as tr } from "./RadioGroup/RadioGroup.js";
29
29
  import { Range as ar } from "./Range/Range.js";
30
30
  import { Select as xr, Select as fr } from "./Select/Select.js";
31
- import { Sidebar as nr } from "./Sidebar/Sidebar.js";
31
+ import { Sidebar as ir } from "./Sidebar/Sidebar.js";
32
32
  import { Slider as dr } from "./Slider/Slider.js";
33
- import { Stepper as ur } from "./Stepper/Stepper.js";
34
- import { Switch as cr } from "./Switch/Switch.js";
35
- import { Table as Tr } from "./Table/Table.js";
36
- import { Tabs as Vr } from "./Tabs/Tabs.js";
37
- import { Tag as br } from "./Tag/Tag.js";
33
+ import { Spinner as gr } from "./Spinner/Spinner.js";
34
+ import { Stepper as cr } from "./Stepper/Stepper.js";
35
+ import { Switch as Dr } from "./Switch/Switch.js";
36
+ import { Table as Vr } from "./Table/Table.js";
37
+ import { Tabs as br } from "./Tabs/Tabs.js";
38
+ import { Tag as Rr } from "./Tag/Tag.js";
38
39
  import { TagSelect as Br } from "./TagSelect/TagSelect.js";
39
- import { TextArea as hr } from "./TextArea/TextArea.js";
40
- import { TimePicker as Nr } from "./TimePicker/TimePicker.js";
41
- import { Toast as vr } from "./Toast/Toast.js";
42
- import { Tooltip as kr } from "./Tooltip/Tooltip.js";
43
- import { Typography as Fr } from "./Typography/Typography.js";
44
- import { VirtualizedTable as Mr } from "./VirtualizedTable/VirtualizedTable.js";
45
- import { horizontalConnectorWrapperVariants as zr, stepConnectorVariants as Or, stepContentVariants as Ur, stepDescriptionVariants as Wr, stepIndicatorVariants as jr, stepItemVariants as qr, stepLabelVariants as Er, stepListVariants as Hr, stepVariants as Jr, stepperVariants as Kr } from "./Stepper/Stepper.variants.js";
46
- import { BadgeMultiSelect as Xr } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
47
- import { DateFilterDropdown as Zr } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
48
- import { DateRangeFilterDropdown as $r } from "./Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
49
- import { Footer as oo } from "./Sidebar/components/Footer/Footer.js";
50
- import { Logo as eo } from "./Sidebar/components/Logo/Logo.js";
51
- import { Navigation as ao } from "./Sidebar/components/Navigation/Navigation.js";
52
- import { NavigationGroup as xo } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
53
- import { NavigationOption as io } from "./Sidebar/components/NavigationOption/NavigationOption.js";
54
- import { NavigationSeparator as so } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
55
- import { Content as uo } from "./Tabs/components/Content.js";
56
- import { List as co } from "./Tabs/components/List.js";
57
- import { Trigger as To } from "./Tabs/components/Trigger.js";
58
- import { TruncateText as Vo } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
40
+ import { TextArea as Ir } from "./TextArea/TextArea.js";
41
+ import { TimePicker as Pr } from "./TimePicker/TimePicker.js";
42
+ import { Toast as Lr } from "./Toast/Toast.js";
43
+ import { Tooltip as Ar } from "./Tooltip/Tooltip.js";
44
+ import { Typography as Gr } from "./Typography/Typography.js";
45
+ import { VirtualizedTable as zr } from "./VirtualizedTable/VirtualizedTable.js";
46
+ import { VirtualizedTableEvent as Or, sendCollapseRowEvent as Ur, sendExpandRowEvent as Wr, sendToggleRowEvent as jr } from "./VirtualizedTable/events/index.js";
47
+ import { horizontalConnectorWrapperVariants as Hr, stepConnectorVariants as Jr, stepContentVariants as Kr, stepDescriptionVariants as Qr, stepIndicatorVariants as Xr, stepItemVariants as Yr, stepLabelVariants as Zr, stepListVariants as _r, stepVariants as $r, stepperVariants as ro } from "./Stepper/Stepper.variants.js";
48
+ import { BadgeMultiSelect as eo } from "./Filter/components/BadgeDropdown/BadgeMultiSelect.js";
49
+ import { Content as po } from "./Tabs/components/Content.js";
50
+ import { DateFilterDropdown as mo } from "./Filter/components/DateFilterDropdown/DateFilterDropdown.js";
51
+ import { DateRangeFilterDropdown as fo } from "./Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
52
+ import { Footer as io } from "./Sidebar/components/Footer/Footer.js";
53
+ import { List as lo } from "./Tabs/components/List.js";
54
+ import { Logo as uo } from "./Sidebar/components/Logo/Logo.js";
55
+ import { Navigation as To } from "./Sidebar/components/Navigation/Navigation.js";
56
+ import { NavigationGroup as Co } from "./Sidebar/components/NavigationGroup/NavigationGroup.js";
57
+ import { NavigationOption as So } from "./Sidebar/components/NavigationOption/NavigationOption.js";
58
+ import { NavigationSeparator as wo } from "./Sidebar/components/NavigationSeparator/NavigationSeparator.js";
59
+ import { Trigger as vo } from "./Tabs/components/Trigger.js";
60
+ import { TruncateText as ho } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
59
61
  export {
60
- t as Alert,
62
+ e as Alert,
61
63
  p as AlertDialog,
62
64
  m as Autocomplete,
63
65
  f as Badge,
64
- Xr as BadgeMultiSelect,
65
- n as Breadcrumb,
66
+ eo as BadgeMultiSelect,
67
+ i as Breadcrumb,
66
68
  d as Button,
67
- u as ButtonGroup,
69
+ g as ButtonGroup,
68
70
  c as Card,
69
- T as Checkbox,
70
- uo as Content,
71
+ D as Checkbox,
72
+ po as Content,
71
73
  V as Counter,
72
- Zr as DateFilterDropdown,
74
+ mo as DateFilterDropdown,
73
75
  w as DatePicker,
74
- $r as DateRangeFilterDropdown,
75
- R as DateRangePicker,
76
- I as Divider,
77
- P as Drawer,
76
+ fo as DateRangeFilterDropdown,
77
+ v as DateRangePicker,
78
+ h as Divider,
79
+ N as Drawer,
78
80
  xr as Dropdown,
79
- L as DropdownButton,
80
- A as Filter,
81
- oo as Footer,
82
- G as ImageUpload,
83
- y as Input,
84
- co as List,
85
- O as Loading,
86
- eo as Logo,
87
- W as Modal,
88
- q as MultiSelectDropdown,
89
- ao as Navigation,
90
- xo as NavigationGroup,
91
- io as NavigationOption,
92
- so as NavigationSeparator,
81
+ E as DropdownButton,
82
+ k as Filter,
83
+ io as Footer,
84
+ F as ImageUpload,
85
+ M as Input,
86
+ lo as List,
87
+ y as Loading,
88
+ uo as Logo,
89
+ U as Modal,
90
+ j as MultiSelectDropdown,
91
+ To as Navigation,
92
+ Co as NavigationGroup,
93
+ So as NavigationOption,
94
+ wo as NavigationSeparator,
93
95
  S as NumberInput,
94
96
  H as PhoneNumberInput,
95
97
  K as PieChart,
@@ -97,33 +99,38 @@ export {
97
99
  Z as Radio,
98
100
  $ as RadioCard,
99
101
  or as RadioCardGroup,
100
- er as RadioGroup,
102
+ tr as RadioGroup,
101
103
  ar as Range,
102
104
  fr as Select,
103
- nr as Sidebar,
105
+ ir as Sidebar,
104
106
  dr as Slider,
105
- ur as Stepper,
106
- cr as Switch,
107
- Tr as Table,
108
- Vr as Tabs,
109
- br as Tag,
107
+ gr as Spinner,
108
+ cr as Stepper,
109
+ Dr as Switch,
110
+ Vr as Table,
111
+ br as Tabs,
112
+ Rr as Tag,
110
113
  Br as TagSelect,
111
- hr as TextArea,
112
- Nr as TimePicker,
113
- vr as Toast,
114
- kr as Tooltip,
115
- To as Trigger,
116
- Vo as TruncateText,
117
- Fr as Typography,
118
- Mr as VirtualizedTable,
119
- zr as horizontalConnectorWrapperVariants,
120
- Or as stepConnectorVariants,
121
- Ur as stepContentVariants,
122
- Wr as stepDescriptionVariants,
123
- jr as stepIndicatorVariants,
124
- qr as stepItemVariants,
125
- Er as stepLabelVariants,
126
- Hr as stepListVariants,
127
- Jr as stepVariants,
128
- Kr as stepperVariants
114
+ Ir as TextArea,
115
+ Pr as TimePicker,
116
+ Lr as Toast,
117
+ Ar as Tooltip,
118
+ vo as Trigger,
119
+ ho as TruncateText,
120
+ Gr as Typography,
121
+ zr as VirtualizedTable,
122
+ Or as VirtualizedTableEvent,
123
+ Hr as horizontalConnectorWrapperVariants,
124
+ Ur as sendCollapseRowEvent,
125
+ Wr as sendExpandRowEvent,
126
+ jr as sendToggleRowEvent,
127
+ Jr as stepConnectorVariants,
128
+ Kr as stepContentVariants,
129
+ Qr as stepDescriptionVariants,
130
+ Xr as stepIndicatorVariants,
131
+ Yr as stepItemVariants,
132
+ Zr as stepLabelVariants,
133
+ _r as stepListVariants,
134
+ $r as stepVariants,
135
+ ro as stepperVariants
129
136
  };