@konstructio/ui 0.1.2-alpha.115 → 0.1.2-alpha.116

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.
@@ -1,38 +1,41 @@
1
- import { t as o } from "../../utils-DnIJruo0.js";
2
- import { Actions as a } from "./components/Actions/Actions.js";
3
- import { sendResetFiltersEvent as i } from "./events/filters/filters.js";
4
- import { sendRefreshEvent as m } from "./events/refresh/refresh.js";
5
- import { sendCollapseRowEvent as n, sendExpandRowEvent as s, sendToggleRowEvent as l } from "./events/row/row.js";
6
- import { EmptyState as p } from "./components/EmptyState/EmptyState.js";
7
- import { EmptyResults as f } from "./components/EmptyResults/EmptyResults.js";
8
- import { ErrorState as u } from "./components/ErrorState/ErrorState.js";
9
- import { TruncateText as d } from "./components/TruncateText/TruncateText.js";
10
- import { Suspense as E, lazy as c } from "react";
1
+ import { i as a, t as i } from "../../utils-DnIJruo0.js";
2
+ import { Actions as m } from "./components/Actions/Actions.js";
3
+ import { sendResetFiltersEvent as n } from "./events/filters/filters.js";
4
+ import { sendRefreshEvent as l } from "./events/refresh/refresh.js";
5
+ import { sendCollapseRowEvent as s, sendExpandRowEvent as p, sendToggleRowEvent as f } from "./events/row/row.js";
6
+ import { EmptyState as d } from "./components/EmptyState/EmptyState.js";
7
+ import { EmptyResults as u } from "./components/EmptyResults/EmptyResults.js";
8
+ import { ErrorState as c } from "./components/ErrorState/ErrorState.js";
9
+ import { TruncateText as E } from "./components/TruncateText/TruncateText.js";
10
+ import { loadVirtualizedTableContent as o } from "./utils/load-content/load-content.js";
11
+ import { Suspense as v, lazy as T } from "react";
11
12
  import { jsx as r } from "react/jsx-runtime";
12
- var v = c(() => import("./components/VirtualizedTableContent/VirtualizedTableContent.js").then((e) => ({ default: e.VirtualizedTableContent }))), T = (e) => /* @__PURE__ */ r(E, {
13
+ a && o().catch(() => {
14
+ });
15
+ var b = T(() => o().then((e) => ({ default: e.VirtualizedTableContent }))), y = (e) => /* @__PURE__ */ r(v, {
13
16
  fallback: /* @__PURE__ */ r("section", {
14
- className: o("kvt", "w-full min-w-fit", e.className),
17
+ className: i("kvt", "w-full min-w-fit", e.className),
15
18
  "aria-busy": "true"
16
19
  }),
17
- children: /* @__PURE__ */ r(v, { ...e })
18
- }), t = T;
20
+ children: /* @__PURE__ */ r(b, { ...e })
21
+ }), t = y;
19
22
  t.displayName = "KonstructVirtualizedTable";
20
- t.TruncateText = d;
21
- t.EmptyState = p;
22
- t.EmptyResults = f;
23
- t.ErrorState = u;
24
- t.Actions = a;
23
+ t.TruncateText = E;
24
+ t.EmptyState = d;
25
+ t.EmptyResults = u;
26
+ t.ErrorState = c;
27
+ t.Actions = m;
25
28
  t.Events = {
26
- sendExpandRowEvent: s,
27
- sendCollapseRowEvent: n,
28
- sendToggleRowEvent: l,
29
- sendResetFiltersEvent: i,
30
- sendRefreshEvent: m
29
+ sendExpandRowEvent: p,
30
+ sendCollapseRowEvent: s,
31
+ sendToggleRowEvent: f,
32
+ sendResetFiltersEvent: n,
33
+ sendRefreshEvent: l
31
34
  };
32
35
  export {
33
- f as EmptyResults,
34
- p as EmptyState,
35
- u as ErrorState,
36
- d as TruncateText,
36
+ u as EmptyResults,
37
+ d as EmptyState,
38
+ c as ErrorState,
39
+ E as TruncateText,
37
40
  t as VirtualizedTable
38
41
  };
@@ -0,0 +1,4 @@
1
+ import { useVirtualizedTableReady as r } from "./useVirtualizedTableReady/useVirtualizedTableReady.js";
2
+ export {
3
+ r as useVirtualizedTableReady
4
+ };
@@ -0,0 +1,4 @@
1
+ import { useVirtualizedTableReady as r } from "./useVirtualizedTableReady.js";
2
+ export {
3
+ r as useVirtualizedTableReady
4
+ };
@@ -0,0 +1,12 @@
1
+ import { isVirtualizedTableContentLoaded as t, loadVirtualizedTableContent as r, subscribeToVirtualizedTableContent as a } from "../../utils/load-content/load-content.js";
2
+ import { useEffect as i, useSyncExternalStore as o } from "react";
3
+ var n = () => !1, s = () => {
4
+ const e = o(a, t, n);
5
+ return i(() => {
6
+ e || r().catch(() => {
7
+ });
8
+ }, [e]), e;
9
+ };
10
+ export {
11
+ s as useVirtualizedTableReady
12
+ };
@@ -1,6 +1,11 @@
1
- import { isPaginationBarVisible as o } from "./pagination.js";
2
- import { getTableId as t } from "./get-table-id.js";
1
+ import { getTableId as i } from "./get-table-id.js";
2
+ import { isVirtualizedTableContentLoaded as a, loadVirtualizedTableContent as o, preloadVirtualizedTable as r, subscribeToVirtualizedTableContent as l } from "./load-content/load-content.js";
3
+ import { isPaginationBarVisible as b } from "./pagination.js";
3
4
  export {
4
- t as getTableId,
5
- o as isPaginationBarVisible
5
+ i as getTableId,
6
+ b as isPaginationBarVisible,
7
+ a as isVirtualizedTableContentLoaded,
8
+ o as loadVirtualizedTableContent,
9
+ r as preloadVirtualizedTable,
10
+ l as subscribeToVirtualizedTableContent
6
11
  };
@@ -0,0 +1,7 @@
1
+ import { isVirtualizedTableContentLoaded as t, loadVirtualizedTableContent as a, preloadVirtualizedTable as i, subscribeToVirtualizedTableContent as l } from "./load-content.js";
2
+ export {
3
+ t as isVirtualizedTableContentLoaded,
4
+ a as loadVirtualizedTableContent,
5
+ i as preloadVirtualizedTable,
6
+ l as subscribeToVirtualizedTableContent
7
+ };
@@ -0,0 +1,14 @@
1
+ var t, a = !1, r = /* @__PURE__ */ new Set(), o = () => (t || (t = import("../../components/VirtualizedTableContent/VirtualizedTableContent.js").then((e) => (a = !0, r.forEach((n) => {
2
+ n();
3
+ }), e)).catch((e) => {
4
+ throw t = void 0, e;
5
+ })), t), d = () => a, i = (e) => (r.add(e), () => {
6
+ r.delete(e);
7
+ }), l = () => o().then(() => {
8
+ });
9
+ export {
10
+ d as isVirtualizedTableContentLoaded,
11
+ o as loadVirtualizedTableContent,
12
+ l as preloadVirtualizedTable,
13
+ i as subscribeToVirtualizedTableContent
14
+ };
@@ -9,16 +9,16 @@ import { AlertDialog as g } from "./AlertDialog/AlertDialog.js";
9
9
  import { Autocomplete as D } from "./Autocomplete/Autocomplete.js";
10
10
  import { Avatar as C } from "./Avatar/Avatar.js";
11
11
  import { AvatarGroup as A } from "./AvatarGroup/AvatarGroup.js";
12
- import { t as E } from "../Loading-u8hXrFJR.js";
13
- import { Badge as I } from "./Badge/Badge.js";
14
- import { Tooltip as b } from "./Tooltip/Tooltip.js";
12
+ import { t as b } from "../Loading-u8hXrFJR.js";
13
+ import { Badge as E } from "./Badge/Badge.js";
14
+ import { Tooltip as I } from "./Tooltip/Tooltip.js";
15
15
  import { BadgeGroup as B } from "./BadgeGroup/BadgeGroup.js";
16
16
  import { Typography as h } from "./Typography/Typography.js";
17
17
  import { ButtonGroup as x } from "./ButtonGroup/ButtonGroup.js";
18
18
  import { Card as _ } from "./Card/Card.js";
19
- import { CheckboxCard as G } from "./CheckboxCard/CheckboxCard.js";
20
- import { Collapse as O } from "./Collapse/Collapse.js";
21
- import { CopyButton as U } from "./CopyButton/CopyButton.js";
19
+ import { CheckboxCard as y } from "./CheckboxCard/CheckboxCard.js";
20
+ import { Collapse as M } from "./Collapse/Collapse.js";
21
+ import { CopyButton as z } from "./CopyButton/CopyButton.js";
22
22
  import { t as W } from "../Modal-CysTe3zL.js";
23
23
  import { ConfirmDialog as j } from "./ConfirmDialog/ConfirmDialog.js";
24
24
  import { DatePicker as H } from "./Datepicker/DatePicker.js";
@@ -36,16 +36,16 @@ import { TextMultiSelect as gr } from "./Filter/components/TextMultiSelect/TextM
36
36
  import { TimeFilterDropdown as Dr } from "./Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
37
37
  import { Filter as Cr } from "./Filter/Filter.js";
38
38
  import { t as Ar } from "../ImageUpload-BNZjCUTX.js";
39
- import { LineChart as Er } from "./LineChart/LineChart.js";
40
- import { OtpInput as Ir } from "./OtpInput/OtpInput.js";
41
- import { PasswordRules as br } from "./PasswordRules/PasswordRules.js";
39
+ import { LineChart as br } from "./LineChart/LineChart.js";
40
+ import { OtpInput as Er } from "./OtpInput/OtpInput.js";
41
+ import { PasswordRules as Ir } from "./PasswordRules/PasswordRules.js";
42
42
  import { t as Br } from "../components-B_SWqhCL.js";
43
43
  import { PhoneNumberInput as hr } from "./PhoneNumberInput/PhoneNumberInput.js";
44
44
  import { PieChart as xr } from "./PieChart/PieChart.js";
45
45
  import { ProgressBar as _r } from "./ProgressBar/ProgressBar.js";
46
- import { RadioCard as Gr } from "./RadioCard/RadioCard.js";
47
- import { RadioCardGroup as Or } from "./RadioCardGroup/RadioCardGroup.js";
48
- import { Range as Ur } from "./Range/Range.js";
46
+ import { RadioCard as yr } from "./RadioCard/RadioCard.js";
47
+ import { RadioCardGroup as Mr } from "./RadioCardGroup/RadioCardGroup.js";
48
+ import { Range as zr } from "./Range/Range.js";
49
49
  import { Select as Wr } from "./Select/Select.js";
50
50
  import { CollapseTrigger as jr } from "./Sidebar/components/CollapseTrigger/CollapseTrigger.js";
51
51
  import { Footer as Hr } from "./Sidebar/components/Footer/Footer.js";
@@ -59,15 +59,15 @@ import { Sidebar as ao } from "./Sidebar/Sidebar.js";
59
59
  import { Skeleton as no } from "./Skeleton/Skeleton.js";
60
60
  import { Slider as lo } from "./Slider/Slider.js";
61
61
  import { t as uo } from "../Spinner-CTonkSzG.js";
62
- import { horizontalConnectorWrapperVariants as So, stepConnectorVariants as Do, stepContentVariants as co, stepDescriptionVariants as Co, stepIndicatorVariants as Ro, stepItemVariants as Ao, stepLabelVariants as vo, stepListVariants as Eo, stepVariants as wo, stepperVariants as Io } from "./Stepper/Stepper.variants.js";
63
- import { Stepper as bo } from "./Stepper/Stepper.js";
62
+ import { horizontalConnectorWrapperVariants as So, stepConnectorVariants as Do, stepContentVariants as co, stepDescriptionVariants as Co, stepIndicatorVariants as Ro, stepItemVariants as Ao, stepLabelVariants as Vo, stepListVariants as bo, stepVariants as vo, stepperVariants as Eo } from "./Stepper/Stepper.variants.js";
63
+ import { Stepper as Io } from "./Stepper/Stepper.js";
64
64
  import { t as Bo } from "../Switch-5cdUxbhX.js";
65
65
  import { Table as ho } from "./Table/Table.js";
66
66
  import { Content as xo } from "./Tabs/components/Content.js";
67
67
  import { List as _o } from "./Tabs/components/List.js";
68
- import { Trigger as Go } from "./Tabs/components/Trigger.js";
69
- import { Tabs as Oo } from "./Tabs/Tabs.js";
70
- import { Tag as Uo } from "./Tag/Tag.js";
68
+ import { Trigger as yo } from "./Tabs/components/Trigger.js";
69
+ import { Tabs as Mo } from "./Tabs/Tabs.js";
70
+ import { Tag as zo } from "./Tag/Tag.js";
71
71
  import { TagSelect as Wo } from "./TagSelect/TagSelect.js";
72
72
  import { TagsInput as jo } from "./TagsInput/TagsInput.js";
73
73
  import { TextArea as Ho } from "./TextArea/TextArea.js";
@@ -82,17 +82,19 @@ import { sendResetFiltersEvent as dt } from "./VirtualizedTable/events/filters/f
82
82
  import { sendRefreshEvent as ut } from "./VirtualizedTable/events/refresh/refresh.js";
83
83
  import { sendCollapseRowEvent as St, sendExpandRowEvent as Dt, sendToggleRowEvent as ct } from "./VirtualizedTable/events/row/row.js";
84
84
  import { EmptyState as Rt } from "./VirtualizedTable/components/EmptyState/EmptyState.js";
85
- import { EmptyResults as vt } from "./VirtualizedTable/components/EmptyResults/EmptyResults.js";
86
- import { ErrorState as wt } from "./VirtualizedTable/components/ErrorState/ErrorState.js";
87
- import { TruncateText as Vt } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
88
- import { VirtualizedTable as Lt } from "./VirtualizedTable/VirtualizedTable.js";
85
+ import { EmptyResults as Vt } from "./VirtualizedTable/components/EmptyResults/EmptyResults.js";
86
+ import { ErrorState as vt } from "./VirtualizedTable/components/ErrorState/ErrorState.js";
87
+ import { TruncateText as wt } from "./VirtualizedTable/components/TruncateText/TruncateText.js";
88
+ import { preloadVirtualizedTable as Lt } from "./VirtualizedTable/utils/load-content/load-content.js";
89
+ import { VirtualizedTable as Ft } from "./VirtualizedTable/VirtualizedTable.js";
90
+ import { useVirtualizedTableReady as Pt } from "./VirtualizedTable/hooks/useVirtualizedTableReady/useVirtualizedTableReady.js";
89
91
  export {
90
92
  l as Alert,
91
93
  g as AlertDialog,
92
94
  D as Autocomplete,
93
95
  C as Avatar,
94
96
  A as AvatarGroup,
95
- I as Badge,
97
+ E as Badge,
96
98
  B as BadgeGroup,
97
99
  ar as BadgeMultiSelect,
98
100
  p as Breadcrumb,
@@ -100,12 +102,12 @@ export {
100
102
  x as ButtonGroup,
101
103
  _ as Card,
102
104
  o as Checkbox,
103
- G as CheckboxCard,
104
- O as Collapse,
105
+ y as CheckboxCard,
106
+ M as Collapse,
105
107
  jr as CollapseTrigger,
106
108
  j as ConfirmDialog,
107
109
  xo as Content,
108
- U as CopyButton,
110
+ z as CopyButton,
109
111
  n as Counter,
110
112
  nr as CustomDateRangeFilterDropdown,
111
113
  Ko as DEFAULT_MAX_VISIBLE_TOASTS,
@@ -119,17 +121,17 @@ export {
119
121
  pr as Drawer,
120
122
  Wr as Dropdown,
121
123
  m as DropdownButton,
122
- vt as EmptyResults,
124
+ Vt as EmptyResults,
123
125
  Rt as EmptyState,
124
- wt as ErrorState,
126
+ vt as ErrorState,
125
127
  Cr as Filter,
126
128
  Hr as Footer,
127
129
  Ar as ImageUpload,
128
130
  a as Input,
129
131
  Kr as Label,
130
- Er as LineChart,
132
+ br as LineChart,
131
133
  _o as List,
132
- E as Loading,
134
+ b as Loading,
133
135
  Yr as Logo,
134
136
  W as Modal,
135
137
  Br as MultiSelectDropdown,
@@ -138,26 +140,26 @@ export {
138
140
  oo as NavigationOption,
139
141
  mo as NavigationSeparator,
140
142
  n as NumberInput,
141
- Ir as OtpInput,
142
- br as PasswordRules,
143
+ Er as OtpInput,
144
+ Ir as PasswordRules,
143
145
  hr as PhoneNumberInput,
144
146
  xr as PieChart,
145
147
  _r as ProgressBar,
146
148
  K as Radio,
147
- Gr as RadioCard,
148
- Or as RadioCardGroup,
149
+ yr as RadioCard,
150
+ Mr as RadioCardGroup,
149
151
  Y as RadioGroup,
150
- Ur as Range,
152
+ zr as Range,
151
153
  Wr as Select,
152
154
  ao as Sidebar,
153
155
  no as Skeleton,
154
156
  lo as Slider,
155
157
  uo as Spinner,
156
- bo as Stepper,
158
+ Io as Stepper,
157
159
  Bo as Switch,
158
160
  ho as Table,
159
- Oo as Tabs,
160
- Uo as Tag,
161
+ Mo as Tabs,
162
+ zo as Tag,
161
163
  Wo as TagSelect,
162
164
  jo as TagsInput,
163
165
  Ho as TextArea,
@@ -166,14 +168,15 @@ export {
166
168
  $ as TimePicker,
167
169
  et as Toast,
168
170
  ft as ToastProvider,
169
- b as Tooltip,
170
- Go as Trigger,
171
- Vt as TruncateText,
171
+ I as Tooltip,
172
+ yo as Trigger,
173
+ wt as TruncateText,
172
174
  h as Typography,
173
- Lt as VirtualizedTable,
175
+ Ft as VirtualizedTable,
174
176
  st as VirtualizedTableEvent,
175
177
  $o as createToastStore,
176
178
  So as horizontalConnectorWrapperVariants,
179
+ Lt as preloadVirtualizedTable,
177
180
  St as sendCollapseRowEvent,
178
181
  Dt as sendExpandRowEvent,
179
182
  ut as sendRefreshEvent,
@@ -184,11 +187,12 @@ export {
184
187
  Co as stepDescriptionVariants,
185
188
  Ro as stepIndicatorVariants,
186
189
  Ao as stepItemVariants,
187
- vo as stepLabelVariants,
188
- Eo as stepListVariants,
189
- wo as stepVariants,
190
- Io as stepperVariants,
190
+ Vo as stepLabelVariants,
191
+ bo as stepListVariants,
192
+ vo as stepVariants,
193
+ Eo as stepperVariants,
191
194
  it as useToast,
192
195
  ot as useToastStore,
193
- tt as useToastStoreApi
196
+ tt as useToastStoreApi,
197
+ Pt as useVirtualizedTableReady
194
198
  };
package/dist/index.js CHANGED
@@ -7,18 +7,18 @@ import { a as l, t as d } from "./utils-DnIJruo0.js";
7
7
  import { Alert as T } from "./components/Alert/Alert.js";
8
8
  import { Button as C } from "./components/Button/Button.js";
9
9
  import { AlertDialog as c } from "./components/AlertDialog/AlertDialog.js";
10
- import { useClickOutside as v } from "./hooks/useClickOutside.js";
10
+ import { useClickOutside as R } from "./hooks/useClickOutside.js";
11
11
  import { useIsHydrated as A } from "./hooks/useIsHydrated/useIsHydrated.js";
12
- import { useMediaQuery as I } from "./hooks/useMediaQuery.js";
13
- import { useToggle as V } from "./hooks/useToggle.js";
12
+ import { useMediaQuery as b } from "./hooks/useMediaQuery.js";
13
+ import { useToggle as I } from "./hooks/useToggle.js";
14
14
  import { Autocomplete as h } from "./components/Autocomplete/Autocomplete.js";
15
15
  import { Avatar as B } from "./components/Avatar/Avatar.js";
16
16
  import { AvatarGroup as P } from "./components/AvatarGroup/AvatarGroup.js";
17
- import { t as k } from "./Loading-u8hXrFJR.js";
17
+ import { t as y } from "./Loading-u8hXrFJR.js";
18
18
  import { Badge as M } from "./components/Badge/Badge.js";
19
19
  import { Tooltip as O } from "./components/Tooltip/Tooltip.js";
20
20
  import { BadgeGroup as G } from "./components/BadgeGroup/BadgeGroup.js";
21
- import { Typography as z } from "./components/Typography/Typography.js";
21
+ import { Typography as U } from "./components/Typography/Typography.js";
22
22
  import { ButtonGroup as Q } from "./components/ButtonGroup/ButtonGroup.js";
23
23
  import { Card as X } from "./components/Card/Card.js";
24
24
  import { CheckboxCard as q } from "./components/CheckboxCard/CheckboxCard.js";
@@ -34,18 +34,18 @@ import { DateRangePicker as dr } from "./components/DateRangePicker/DateRangePic
34
34
  import { Divider as Tr } from "./components/Divider/Divider.js";
35
35
  import { Drawer as Cr } from "./components/Drawer/Drawer.js";
36
36
  import { BadgeMultiSelect as cr } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
37
- import { CustomDateRangeFilterDropdown as vr } from "./components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js";
37
+ import { CustomDateRangeFilterDropdown as Rr } from "./components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js";
38
38
  import { DateFilterDropdown as Ar } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
39
- import { DateRangeFilterDropdown as Ir } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
40
- import { TextMultiSelect as Vr } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
39
+ import { DateRangeFilterDropdown as br } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
40
+ import { TextMultiSelect as Ir } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
41
41
  import { TimeFilterDropdown as hr } from "./components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
42
42
  import { Filter as Br } from "./components/Filter/Filter.js";
43
43
  import { t as Pr } from "./ImageUpload-BNZjCUTX.js";
44
- import { LineChart as kr } from "./components/LineChart/LineChart.js";
44
+ import { LineChart as yr } from "./components/LineChart/LineChart.js";
45
45
  import { OtpInput as Mr } from "./components/OtpInput/OtpInput.js";
46
46
  import { PasswordRules as Or } from "./components/PasswordRules/PasswordRules.js";
47
47
  import { t as Gr } from "./components-B_SWqhCL.js";
48
- import { PhoneNumberInput as zr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
48
+ import { PhoneNumberInput as Ur } from "./components/PhoneNumberInput/PhoneNumberInput.js";
49
49
  import { PieChart as Qr } from "./components/PieChart/PieChart.js";
50
50
  import { ProgressBar as Xr } from "./components/ProgressBar/ProgressBar.js";
51
51
  import { RadioCard as qr } from "./components/RadioCard/RadioCard.js";
@@ -61,13 +61,13 @@ import { NavigationOption as uo } from "./components/Sidebar/components/Navigati
61
61
  import { NavigationSeparator as go } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
62
62
  import { Navigation as So } from "./components/Sidebar/components/Navigation/Navigation.js";
63
63
  import { Sidebar as Do } from "./components/Sidebar/Sidebar.js";
64
- import { Skeleton as Ro } from "./components/Skeleton/Skeleton.js";
65
- import { Slider as Eo } from "./components/Slider/Slider.js";
66
- import { t as wo } from "./Spinner-CTonkSzG.js";
67
- import { horizontalConnectorWrapperVariants as bo, stepConnectorVariants as ho, stepContentVariants as Lo, stepDescriptionVariants as Bo, stepIndicatorVariants as Fo, stepItemVariants as Po, stepLabelVariants as xo, stepListVariants as ko, stepVariants as yo, stepperVariants as Mo } from "./components/Stepper/Stepper.variants.js";
64
+ import { Skeleton as vo } from "./components/Skeleton/Skeleton.js";
65
+ import { Slider as Vo } from "./components/Slider/Slider.js";
66
+ import { t as Eo } from "./Spinner-CTonkSzG.js";
67
+ import { horizontalConnectorWrapperVariants as wo, stepConnectorVariants as ho, stepContentVariants as Lo, stepDescriptionVariants as Bo, stepIndicatorVariants as Fo, stepItemVariants as Po, stepLabelVariants as xo, stepListVariants as yo, stepVariants as ko, stepperVariants as Mo } from "./components/Stepper/Stepper.variants.js";
68
68
  import { Stepper as Oo } from "./components/Stepper/Stepper.js";
69
69
  import { t as Go } from "./Switch-5cdUxbhX.js";
70
- import { Table as zo } from "./components/Table/Table.js";
70
+ import { Table as Uo } from "./components/Table/Table.js";
71
71
  import { Content as Qo } from "./components/Tabs/components/Content.js";
72
72
  import { List as Xo } from "./components/Tabs/components/List.js";
73
73
  import { Trigger as qo } from "./components/Tabs/components/Trigger.js";
@@ -82,18 +82,20 @@ import { useToastStore as dt, useToastStoreApi as ut } from "./components/Toast/
82
82
  import { useToast as gt } from "./components/Toast/hooks/useToast/useToast.js";
83
83
  import { Toast as St } from "./components/Toast/Toast.js";
84
84
  import { ToastProvider as Dt } from "./components/Toast/ToastProvider.js";
85
- import { t as Rt } from "./events.types-BG1Uh8i6.js";
86
- import { sendResetFiltersEvent as Et } from "./components/VirtualizedTable/events/filters/filters.js";
87
- import { sendRefreshEvent as wt } from "./components/VirtualizedTable/events/refresh/refresh.js";
88
- import { sendCollapseRowEvent as bt, sendExpandRowEvent as ht, sendToggleRowEvent as Lt } from "./components/VirtualizedTable/events/row/row.js";
85
+ import { t as vt } from "./events.types-BG1Uh8i6.js";
86
+ import { sendResetFiltersEvent as Vt } from "./components/VirtualizedTable/events/filters/filters.js";
87
+ import { sendRefreshEvent as Et } from "./components/VirtualizedTable/events/refresh/refresh.js";
88
+ import { sendCollapseRowEvent as wt, sendExpandRowEvent as ht, sendToggleRowEvent as Lt } from "./components/VirtualizedTable/events/row/row.js";
89
89
  import { EmptyState as Ft } from "./components/VirtualizedTable/components/EmptyState/EmptyState.js";
90
90
  import { EmptyResults as xt } from "./components/VirtualizedTable/components/EmptyResults/EmptyResults.js";
91
- import { ErrorState as yt } from "./components/VirtualizedTable/components/ErrorState/ErrorState.js";
91
+ import { ErrorState as kt } from "./components/VirtualizedTable/components/ErrorState/ErrorState.js";
92
92
  import { TruncateText as Nt } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
93
- import { VirtualizedTable as _t } from "./components/VirtualizedTable/VirtualizedTable.js";
94
- import { ThemeContext as Ut } from "./contexts/theme.context.js";
95
- import { useTheme as Ht } from "./contexts/theme.hook.js";
96
- import { t as Wt } from "./theme.provider-CvL6sqHq.js";
93
+ import { preloadVirtualizedTable as _t } from "./components/VirtualizedTable/utils/load-content/load-content.js";
94
+ import { VirtualizedTable as zt } from "./components/VirtualizedTable/VirtualizedTable.js";
95
+ import { useVirtualizedTableReady as Ht } from "./components/VirtualizedTable/hooks/useVirtualizedTableReady/useVirtualizedTableReady.js";
96
+ import { ThemeContext as Wt } from "./contexts/theme.context.js";
97
+ import { useTheme as jt } from "./contexts/theme.hook.js";
98
+ import { t as Jt } from "./theme.provider-CvL6sqHq.js";
97
99
  import "./contexts/index.js";
98
100
  export {
99
101
  T as Alert,
@@ -116,13 +118,13 @@ export {
116
118
  Qo as Content,
117
119
  Z as CopyButton,
118
120
  s as Counter,
119
- vr as CustomDateRangeFilterDropdown,
121
+ Rr as CustomDateRangeFilterDropdown,
120
122
  et as DEFAULT_MAX_VISIBLE_TOASTS,
121
123
  at as DEFAULT_TOAST_DURATION,
122
124
  ft as DEFAULT_TOAST_LIMIT,
123
125
  Ar as DateFilterDropdown,
124
126
  ir as DatePicker,
125
- Ir as DateRangeFilterDropdown,
127
+ br as DateRangeFilterDropdown,
126
128
  dr as DateRangePicker,
127
129
  Tr as Divider,
128
130
  Cr as Drawer,
@@ -130,15 +132,15 @@ export {
130
132
  m as DropdownButton,
131
133
  xt as EmptyResults,
132
134
  Ft as EmptyState,
133
- yt as ErrorState,
135
+ kt as ErrorState,
134
136
  Br as Filter,
135
137
  io as Footer,
136
138
  Pr as ImageUpload,
137
139
  a as Input,
138
140
  eo as Label,
139
- kr as LineChart,
141
+ yr as LineChart,
140
142
  Xo as List,
141
- k as Loading,
143
+ y as Loading,
142
144
  fo as Logo,
143
145
  rr as Modal,
144
146
  Gr as MultiSelectDropdown,
@@ -149,7 +151,7 @@ export {
149
151
  s as NumberInput,
150
152
  Mr as OtpInput,
151
153
  Or as PasswordRules,
152
- zr as PhoneNumberInput,
154
+ Ur as PhoneNumberInput,
153
155
  Qr as PieChart,
154
156
  Xr as ProgressBar,
155
157
  er as Radio,
@@ -159,20 +161,20 @@ export {
159
161
  Zr as Range,
160
162
  ro as Select,
161
163
  Do as Sidebar,
162
- Ro as Skeleton,
163
- Eo as Slider,
164
- wo as Spinner,
164
+ vo as Skeleton,
165
+ Vo as Slider,
166
+ Eo as Spinner,
165
167
  Oo as Stepper,
166
168
  Go as Switch,
167
- zo as Table,
169
+ Uo as Table,
168
170
  Ko as Tabs,
169
171
  Zo as Tag,
170
172
  rt as TagSelect,
171
173
  tt as TagsInput,
172
174
  it as TextArea,
173
- Vr as TextMultiSelect,
174
- Ut as ThemeContext,
175
- Wt as ThemeProvider,
175
+ Ir as TextMultiSelect,
176
+ Wt as ThemeContext,
177
+ Jt as ThemeProvider,
176
178
  hr as TimeFilterDropdown,
177
179
  nr as TimePicker,
178
180
  St as Toast,
@@ -180,17 +182,18 @@ export {
180
182
  O as Tooltip,
181
183
  qo as Trigger,
182
184
  Nt as TruncateText,
183
- z as Typography,
184
- _t as VirtualizedTable,
185
- Rt as VirtualizedTableEvent,
185
+ U as Typography,
186
+ zt as VirtualizedTable,
187
+ vt as VirtualizedTableEvent,
186
188
  d as cn,
187
189
  nt as createToastStore,
188
- bo as horizontalConnectorWrapperVariants,
190
+ wo as horizontalConnectorWrapperVariants,
191
+ _t as preloadVirtualizedTable,
189
192
  l as resolveColor,
190
- bt as sendCollapseRowEvent,
193
+ wt as sendCollapseRowEvent,
191
194
  ht as sendExpandRowEvent,
192
- wt as sendRefreshEvent,
193
- Et as sendResetFiltersEvent,
195
+ Et as sendRefreshEvent,
196
+ Vt as sendResetFiltersEvent,
194
197
  Lt as sendToggleRowEvent,
195
198
  ho as stepConnectorVariants,
196
199
  Lo as stepContentVariants,
@@ -198,15 +201,16 @@ export {
198
201
  Fo as stepIndicatorVariants,
199
202
  Po as stepItemVariants,
200
203
  xo as stepLabelVariants,
201
- ko as stepListVariants,
202
- yo as stepVariants,
204
+ yo as stepListVariants,
205
+ ko as stepVariants,
203
206
  Mo as stepperVariants,
204
- v as useClickOutside,
207
+ R as useClickOutside,
205
208
  A as useIsHydrated,
206
- I as useMediaQuery,
207
- Ht as useTheme,
209
+ b as useMediaQuery,
210
+ jt as useTheme,
208
211
  gt as useToast,
209
212
  dt as useToastStore,
210
213
  ut as useToastStoreApi,
211
- V as useToggle
214
+ I as useToggle,
215
+ Ht as useVirtualizedTableReady
212
216
  };
@@ -0,0 +1 @@
1
+ export * from './useVirtualizedTableReady';
@@ -0,0 +1 @@
1
+ export * from './useVirtualizedTableReady';
@@ -0,0 +1 @@
1
+ export declare const useVirtualizedTableReady: () => boolean;
@@ -1,2 +1,3 @@
1
1
  export * from './get-table-id';
2
+ export * from './load-content';
2
3
  export * from './pagination';
@@ -0,0 +1 @@
1
+ export * from './load-content';
@@ -0,0 +1,7 @@
1
+ type ContentModule = typeof import('../../components/VirtualizedTableContent/VirtualizedTableContent');
2
+ type Listener = () => void;
3
+ export declare const loadVirtualizedTableContent: () => Promise<ContentModule>;
4
+ export declare const isVirtualizedTableContentLoaded: () => boolean;
5
+ export declare const subscribeToVirtualizedTableContent: (listener: Listener) => (() => void);
6
+ export declare const preloadVirtualizedTable: () => Promise<void>;
7
+ export {};
@@ -65,6 +65,8 @@ export type { ToastActions, ToastStore, ToastStoreOptions, ToastStoreState, } fr
65
65
  export * from './Tooltip/Tooltip';
66
66
  export * from './Typography/Typography';
67
67
  export * from './VirtualizedTable/VirtualizedTable';
68
+ export * from './VirtualizedTable/hooks';
69
+ export { preloadVirtualizedTable } from './VirtualizedTable/utils/load-content';
68
70
  export { sendExpandRowEvent, sendCollapseRowEvent, sendToggleRowEvent, sendResetFiltersEvent, sendRefreshEvent, VirtualizedTableEvent, } from './VirtualizedTable/events';
69
71
  export type { VirtualizedTableEventDetail, VirtualizedTableRefreshEventDetail, } from './VirtualizedTable/events';
70
72
  export type { ColumnDef, RowData, FilterConfig, ActionFilterConfig, BadgeMultiSelectFilterConfig, TextMultiSelectFilterConfig, DateFilterConfig, DateRangeFilterConfig, CustomDateRangeFilterConfig, TimeFilterConfig, } from './VirtualizedTable/VirtualizedTable.types';
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.114",
5
+ "version": "0.1.2-alpha.115",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@konstructio/ui",
3
3
  "description": "A set of reusable and customizable React components built for konstruct.io",
4
4
  "private": false,
5
- "version": "0.1.2-alpha.115",
5
+ "version": "0.1.2-alpha.116",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",