@konstructio/ui 0.1.2-alpha.118 → 0.1.2-alpha.119

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,41 +1,44 @@
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";
1
+ import { i, t as n } from "../../utils-DnIJruo0.js";
2
+ import { Actions as l } from "./components/Actions/Actions.js";
3
+ import { sendResetFiltersEvent as m } from "./events/filters/filters.js";
4
+ import { sendRefreshEvent as s } from "./events/refresh/refresh.js";
5
+ import { sendCollapseRowEvent as d, sendExpandRowEvent as p, sendToggleRowEvent as u } from "./events/row/row.js";
6
+ import { EmptyState as f } from "./components/EmptyState/EmptyState.js";
7
+ import { EmptyResults as c } from "./components/EmptyResults/EmptyResults.js";
8
+ import { ErrorState as E } from "./components/ErrorState/ErrorState.js";
9
+ import { TruncateText as T } from "./components/TruncateText/TruncateText.js";
10
+ import { getLoadedVirtualizedTableContent as v, loadVirtualizedTableContent as o } from "./utils/load-content/load-content.js";
11
+ import { Suspense as b, lazy as z } from "react";
12
12
  import { jsx as r } from "react/jsx-runtime";
13
- a && o().catch(() => {
13
+ i && o().catch(() => {
14
14
  });
15
- var b = T(() => o().then((e) => ({ default: e.VirtualizedTableContent }))), y = (e) => /* @__PURE__ */ r(v, {
16
- fallback: /* @__PURE__ */ r("section", {
17
- className: i("kvt", "w-full min-w-fit", e.className),
18
- "aria-busy": "true"
19
- }),
20
- children: /* @__PURE__ */ r(b, { ...e })
21
- }), t = y;
15
+ var C = z(() => o().then((e) => ({ default: e.VirtualizedTableContent }))), V = (e) => {
16
+ const a = v()?.VirtualizedTableContent ?? C;
17
+ return /* @__PURE__ */ r(b, {
18
+ fallback: /* @__PURE__ */ r("section", {
19
+ className: n("kvt", "w-full min-w-fit", e.className),
20
+ "aria-busy": "true"
21
+ }),
22
+ children: /* @__PURE__ */ r(a, { ...e })
23
+ });
24
+ }, t = V;
22
25
  t.displayName = "KonstructVirtualizedTable";
23
- t.TruncateText = E;
24
- t.EmptyState = d;
25
- t.EmptyResults = u;
26
- t.ErrorState = c;
27
- t.Actions = m;
26
+ t.TruncateText = T;
27
+ t.EmptyState = f;
28
+ t.EmptyResults = c;
29
+ t.ErrorState = E;
30
+ t.Actions = l;
28
31
  t.Events = {
29
32
  sendExpandRowEvent: p,
30
- sendCollapseRowEvent: s,
31
- sendToggleRowEvent: f,
32
- sendResetFiltersEvent: n,
33
- sendRefreshEvent: l
33
+ sendCollapseRowEvent: d,
34
+ sendToggleRowEvent: u,
35
+ sendResetFiltersEvent: m,
36
+ sendRefreshEvent: s
34
37
  };
35
38
  export {
36
- u as EmptyResults,
37
- d as EmptyState,
38
- c as ErrorState,
39
- E as TruncateText,
39
+ c as EmptyResults,
40
+ f as EmptyState,
41
+ E as ErrorState,
42
+ T as TruncateText,
40
43
  t as VirtualizedTable
41
44
  };
@@ -1,11 +1,12 @@
1
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";
2
+ import { getLoadedVirtualizedTableContent as a, isVirtualizedTableContentLoaded as o, loadVirtualizedTableContent as r, preloadVirtualizedTable as l, subscribeToVirtualizedTableContent as d } from "./load-content/load-content.js";
3
3
  import { isPaginationBarVisible as b } from "./pagination.js";
4
4
  export {
5
+ a as getLoadedVirtualizedTableContent,
5
6
  i as getTableId,
6
7
  b as isPaginationBarVisible,
7
- a as isVirtualizedTableContentLoaded,
8
- o as loadVirtualizedTableContent,
9
- r as preloadVirtualizedTable,
10
- l as subscribeToVirtualizedTableContent
8
+ o as isVirtualizedTableContentLoaded,
9
+ r as loadVirtualizedTableContent,
10
+ l as preloadVirtualizedTable,
11
+ d as subscribeToVirtualizedTableContent
11
12
  };
@@ -1,7 +1,8 @@
1
- import { isVirtualizedTableContentLoaded as t, loadVirtualizedTableContent as a, preloadVirtualizedTable as i, subscribeToVirtualizedTableContent as l } from "./load-content.js";
1
+ import { getLoadedVirtualizedTableContent as t, isVirtualizedTableContentLoaded as a, loadVirtualizedTableContent as i, preloadVirtualizedTable as l, subscribeToVirtualizedTableContent as o } from "./load-content.js";
2
2
  export {
3
- t as isVirtualizedTableContentLoaded,
4
- a as loadVirtualizedTableContent,
5
- i as preloadVirtualizedTable,
6
- l as subscribeToVirtualizedTableContent
3
+ t as getLoadedVirtualizedTableContent,
4
+ a as isVirtualizedTableContentLoaded,
5
+ i as loadVirtualizedTableContent,
6
+ l as preloadVirtualizedTable,
7
+ o as subscribeToVirtualizedTableContent
7
8
  };
@@ -1,14 +1,15 @@
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();
1
+ var r, a, t = /* @__PURE__ */ new Set(), n = () => (r || (r = import("../../components/VirtualizedTableContent/VirtualizedTableContent.js").then((e) => (a = e, t.forEach((d) => {
2
+ d();
3
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(() => {
4
+ throw r = void 0, e;
5
+ })), r), o = () => a !== void 0, i = () => a, l = (e) => (t.add(e), () => {
6
+ t.delete(e);
7
+ }), u = () => n().then(() => {
8
8
  });
9
9
  export {
10
- d as isVirtualizedTableContentLoaded,
11
- o as loadVirtualizedTableContent,
12
- l as preloadVirtualizedTable,
13
- i as subscribeToVirtualizedTableContent
10
+ i as getLoadedVirtualizedTableContent,
11
+ o as isVirtualizedTableContentLoaded,
12
+ n as loadVirtualizedTableContent,
13
+ u as preloadVirtualizedTable,
14
+ l as subscribeToVirtualizedTableContent
14
15
  };
@@ -2,6 +2,7 @@ type ContentModule = typeof import('../../components/VirtualizedTableContent/Vir
2
2
  type Listener = () => void;
3
3
  export declare const loadVirtualizedTableContent: () => Promise<ContentModule>;
4
4
  export declare const isVirtualizedTableContentLoaded: () => boolean;
5
+ export declare const getLoadedVirtualizedTableContent: () => ContentModule | undefined;
5
6
  export declare const subscribeToVirtualizedTableContent: (listener: Listener) => (() => void);
6
7
  export declare const preloadVirtualizedTable: () => Promise<void>;
7
8
  export {};
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.117",
5
+ "version": "0.1.2-alpha.118",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -96,13 +96,13 @@
96
96
  "class-variance-authority": "^0.7.1",
97
97
  "clsx": "^2.1.1",
98
98
  "cmdk": "^1.1.1",
99
- "countries-and-timezones": "^3.10.0",
99
+ "countries-and-timezones": "^3.11.0",
100
100
  "country-flag-icons": "^1.6.20",
101
101
  "country-locale-map": "^1.9.14",
102
102
  "google-libphonenumber": "^3.2.47",
103
103
  "i18n-iso-countries": "^7.14.0",
104
104
  "js-cookie": "^3.0.8",
105
- "lucide-react": "^1.56.0",
105
+ "lucide-react": "^1.59.0",
106
106
  "react-chartjs-2": "^5.3.1",
107
107
  "react-day-picker": "^10.0.2",
108
108
  "react-feather": "^2.0.10",
@@ -150,7 +150,7 @@
150
150
  "@storybook/addon-links": "^10.6.2",
151
151
  "@storybook/react-vite": "^10.6.2",
152
152
  "@tailwindcss/vite": "^4.3.3",
153
- "@tanstack/react-query": "^5.104.2",
153
+ "@tanstack/react-query": "^5.104.5",
154
154
  "@testing-library/jest-dom": "^7.0.1",
155
155
  "@testing-library/react": "^16.3.3",
156
156
  "@testing-library/user-event": "^14.6.8",
@@ -160,10 +160,10 @@
160
160
  "@types/lodash": "^4.17.26",
161
161
  "@types/react": "^19.3.0",
162
162
  "@types/react-dom": "^19.3.0",
163
- "@typescript-eslint/eslint-plugin": "^8.71.2",
164
- "@typescript-eslint/parser": "^8.71.2",
163
+ "@typescript-eslint/eslint-plugin": "^8.72.0",
164
+ "@typescript-eslint/parser": "^8.72.0",
165
165
  "@vitejs/plugin-react": "^6.1.2",
166
- "@vitest/coverage-v8": "^5.0.4",
166
+ "@vitest/coverage-v8": "^5.0.5",
167
167
  "autoprefixer": "^10.6.1",
168
168
  "eslint": "^9.39.5",
169
169
  "eslint-plugin-react": "^7.37.5",
@@ -174,10 +174,10 @@
174
174
  "glob": "^13.0.6",
175
175
  "husky": "^9.1.7",
176
176
  "jest-axe": "^11.0.0",
177
- "jsdom": "^30.1.2",
177
+ "jsdom": "^30.1.3",
178
178
  "lodash": "^4.18.1",
179
- "motion": "^14.2.0",
180
- "postcss": "^8.5.30",
179
+ "motion": "^14.4.0",
180
+ "postcss": "^8.5.31",
181
181
  "prettier": "^3.9.10",
182
182
  "rimraf": "^6.1.3",
183
183
  "storybook": "^10.6.2",
@@ -188,7 +188,7 @@
188
188
  "vite-plugin-dts": "^5.1.2",
189
189
  "vite-plugin-lib-inject-css": "^2.2.2",
190
190
  "vite-plugin-svgr": "^5.2.0",
191
- "vitest": "^5.0.4"
191
+ "vitest": "^5.0.5"
192
192
  },
193
193
  "overrides": {
194
194
  "storybook": "$storybook",
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.118",
5
+ "version": "0.1.2-alpha.119",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -96,13 +96,13 @@
96
96
  "class-variance-authority": "^0.7.1",
97
97
  "clsx": "^2.1.1",
98
98
  "cmdk": "^1.1.1",
99
- "countries-and-timezones": "^3.10.0",
99
+ "countries-and-timezones": "^3.11.0",
100
100
  "country-flag-icons": "^1.6.20",
101
101
  "country-locale-map": "^1.9.14",
102
102
  "google-libphonenumber": "^3.2.47",
103
103
  "i18n-iso-countries": "^7.14.0",
104
104
  "js-cookie": "^3.0.8",
105
- "lucide-react": "^1.56.0",
105
+ "lucide-react": "^1.59.0",
106
106
  "react-chartjs-2": "^5.3.1",
107
107
  "react-day-picker": "^10.0.2",
108
108
  "react-feather": "^2.0.10",
@@ -150,7 +150,7 @@
150
150
  "@storybook/addon-links": "^10.6.2",
151
151
  "@storybook/react-vite": "^10.6.2",
152
152
  "@tailwindcss/vite": "^4.3.3",
153
- "@tanstack/react-query": "^5.104.2",
153
+ "@tanstack/react-query": "^5.104.5",
154
154
  "@testing-library/jest-dom": "^7.0.1",
155
155
  "@testing-library/react": "^16.3.3",
156
156
  "@testing-library/user-event": "^14.6.8",
@@ -160,10 +160,10 @@
160
160
  "@types/lodash": "^4.17.26",
161
161
  "@types/react": "^19.3.0",
162
162
  "@types/react-dom": "^19.3.0",
163
- "@typescript-eslint/eslint-plugin": "^8.71.2",
164
- "@typescript-eslint/parser": "^8.71.2",
163
+ "@typescript-eslint/eslint-plugin": "^8.72.0",
164
+ "@typescript-eslint/parser": "^8.72.0",
165
165
  "@vitejs/plugin-react": "^6.1.2",
166
- "@vitest/coverage-v8": "^5.0.4",
166
+ "@vitest/coverage-v8": "^5.0.5",
167
167
  "autoprefixer": "^10.6.1",
168
168
  "eslint": "^9.39.5",
169
169
  "eslint-plugin-react": "^7.37.5",
@@ -174,10 +174,10 @@
174
174
  "glob": "^13.0.6",
175
175
  "husky": "^9.1.7",
176
176
  "jest-axe": "^11.0.0",
177
- "jsdom": "^30.1.2",
177
+ "jsdom": "^30.1.3",
178
178
  "lodash": "^4.18.1",
179
- "motion": "^14.2.0",
180
- "postcss": "^8.5.30",
179
+ "motion": "^14.4.0",
180
+ "postcss": "^8.5.31",
181
181
  "prettier": "^3.9.10",
182
182
  "rimraf": "^6.1.3",
183
183
  "storybook": "^10.6.2",
@@ -188,7 +188,7 @@
188
188
  "vite-plugin-dts": "^5.1.2",
189
189
  "vite-plugin-lib-inject-css": "^2.2.2",
190
190
  "vite-plugin-svgr": "^5.2.0",
191
- "vitest": "^5.0.4"
191
+ "vitest": "^5.0.5"
192
192
  },
193
193
  "overrides": {
194
194
  "storybook": "$storybook",