@konstructio/ui 0.1.2-alpha.6 → 0.1.2-alpha.8

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 (47) hide show
  1. package/dist/{Modal-D-NOEWMX.js → Modal-B8jrP02v.js} +20 -20
  2. package/dist/components/Alert/Alert.js +1 -1
  3. package/dist/components/AlertDialog/AlertDialog.js +1 -1
  4. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  5. package/dist/components/AlertDialog/components/index.js +1 -1
  6. package/dist/components/Checkbox/Checkbox.js +1 -1
  7. package/dist/components/Command/Command.js +2 -2
  8. package/dist/components/Command/components/Command.js +1 -1
  9. package/dist/components/Command/components/CommandEmpty.js +1 -1
  10. package/dist/components/Command/components/CommandGroup.js +1 -1
  11. package/dist/components/Command/components/CommandInput.js +1 -1
  12. package/dist/components/Command/components/CommandItem.js +1 -1
  13. package/dist/components/Command/components/CommandList.js +1 -1
  14. package/dist/components/Command/components/CommandSeparator.js +1 -1
  15. package/dist/components/Command/components/DialogContent.js +1 -1
  16. package/dist/components/Command/components/DialogOverlay.js +1 -1
  17. package/dist/components/Modal/Modal.js +2 -2
  18. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
  19. package/dist/components/Modal/components/index.js +1 -1
  20. package/dist/components/NumberInput/NumberInput.js +1 -1
  21. package/dist/components/Range/Range.js +1 -1
  22. package/dist/components/Slider/Slider.js +1 -1
  23. package/dist/components/Switch/Switch.js +1 -1
  24. package/dist/components/Tabs/Tabs.js +1 -1
  25. package/dist/components/Tabs/components/Content.js +1 -1
  26. package/dist/components/Tabs/components/List.js +1 -1
  27. package/dist/components/Tabs/components/Trigger.js +1 -1
  28. package/dist/components/Toast/Toast.js +54 -53
  29. package/dist/components/VirtualizedTable/VirtualizedTable.js +72 -58
  30. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +4 -3
  31. package/dist/components/VirtualizedTable/contexts/table.provider.js +64 -760
  32. package/dist/components/index.js +1 -1
  33. package/dist/{index-B7t8D14s.js → index-0XtjXVpJ.js} +2 -2
  34. package/dist/index-BVRIAMfe.js +36 -0
  35. package/dist/{index-os7vysFS.js → index-Bn4c-gww.js} +1 -1
  36. package/dist/{index-Cd2vhaop.js → index-CffpTFMi.js} +1 -1
  37. package/dist/{index-Bnb0ezr3.js → index-DQJhMz8c.js} +1 -1
  38. package/dist/index-DdXGVVBv.js +15 -0
  39. package/dist/{index-DzIBBMjs.js → index-amYX3uxF.js} +3 -3
  40. package/dist/{index-C84F4YyO.js → index-l3NwplN0.js} +1 -1
  41. package/dist/{index-DBbEcSUG.js → index-sp5ZfG6g.js} +1 -1
  42. package/dist/index.d.ts +8 -4
  43. package/dist/index.js +1 -1
  44. package/dist/package.json +6 -2
  45. package/package.json +6 -2
  46. package/dist/index-BITvcJAz.js +0 -423
  47. package/dist/index-ti1b9kqV.js +0 -14
@@ -13,7 +13,7 @@ import { DropdownButton as N } from "./DropdownButton/DropdownButton.js";
13
13
  import { Filter as h } from "./Filter/Filter.js";
14
14
  import { Input as A } from "./Input/Input.js";
15
15
  import { Loading as k } from "./Loading/Loading.js";
16
- import { M as G } from "../Modal-D-NOEWMX.js";
16
+ import { M as G } from "../Modal-B8jrP02v.js";
17
17
  import { NumberInput as M } from "./NumberInput/NumberInput.js";
18
18
  import { PieChart as I } from "./PieChart/PieChart.js";
19
19
  import { ProgressBar as O } from "./ProgressBar/ProgressBar.js";
@@ -1,6 +1,6 @@
1
- import { R as Ee, P as ke, O as Se, C as Ie } from "./index-DzIBBMjs.js";
1
+ import { R as Ee, P as ke, O as Se, C as Ie } from "./index-amYX3uxF.js";
2
2
  import * as n from "react";
3
- import { P as C } from "./index-BITvcJAz.js";
3
+ import { P as C } from "./index-BVRIAMfe.js";
4
4
  import { u as P } from "./index-bwWKd82e.js";
5
5
  import { a as j } from "./index-DQH6odE9.js";
6
6
  var de = 1, xe = 0.9, Re = 0.8, Ce = 0.17, Q = 0.1, Z = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, me = /[\s-]/g;
@@ -0,0 +1,36 @@
1
+ import * as c from "react";
2
+ import * as f from "react-dom";
3
+ import { c as p } from "./index-DQH6odE9.js";
4
+ import { jsx as l } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], h = u.reduce((t, i) => {
24
+ const o = p(`Primitive.${i}`), r = c.forwardRef((e, s) => {
25
+ const { asChild: a, ...m } = e, n = a ? o : i;
26
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...m, ref: s });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
30
+ function w(t, i) {
31
+ t && f.flushSync(() => t.dispatchEvent(i));
32
+ }
33
+ export {
34
+ h as P,
35
+ w as d
36
+ };
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as O } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import { c as w, b as M } from "./index-BfXxHr_2.js";
4
4
  import { u, b as x } from "./index-DQH6odE9.js";
5
- import { c as A, R as I, P as $, O as L, W as F, C as G, T as W, d as j, b as v, e as B } from "./index-DzIBBMjs.js";
5
+ import { c as A, R as I, P as $, O as L, W as F, C as G, T as W, d as j, b as v, e as B } from "./index-amYX3uxF.js";
6
6
  import { Button as Y } from "./components/Button/Button.js";
7
7
  import { cn as k } from "./utils/index.js";
8
8
  var D = "AlertDialog", [q, le] = w(D, [
@@ -1,6 +1,6 @@
1
1
  import * as i from "react";
2
2
  import { b as h } from "./index-BfXxHr_2.js";
3
- import { P as R, d as z } from "./index-BITvcJAz.js";
3
+ import { P as R, d as z } from "./index-BVRIAMfe.js";
4
4
  import { u as g } from "./index-DQH6odE9.js";
5
5
  import { u as m } from "./index-0ioNhtNM.js";
6
6
  import { jsx as B } from "react/jsx-runtime";
@@ -3,7 +3,7 @@ import { c as K, b as I, a as L } from "./index-BfXxHr_2.js";
3
3
  import { c as ce } from "./index-Cvx4lqTq.js";
4
4
  import { u as ie } from "./index-DQH6odE9.js";
5
5
  import { u as O } from "./index-bwWKd82e.js";
6
- import { P as C } from "./index-BITvcJAz.js";
6
+ import { P as C } from "./index-BVRIAMfe.js";
7
7
  import { u as ue } from "./index-0ioNhtNM.js";
8
8
  import { u as k } from "./index-BdMNhZnh.js";
9
9
  import { jsx as l } from "react/jsx-runtime";
@@ -0,0 +1,15 @@
1
+ import * as o from "react";
2
+ import n from "react-dom";
3
+ import { P as f } from "./index-BVRIAMfe.js";
4
+ import { u as c } from "./index-BfXxHr_2.js";
5
+ import { jsx as l } from "react/jsx-runtime";
6
+ var u = "Portal", p = o.forwardRef((r, a) => {
7
+ const { container: e, ...s } = r, [i, m] = o.useState(!1);
8
+ c(() => m(!0), []);
9
+ const t = e || i && globalThis?.document?.body;
10
+ return t ? n.createPortal(/* @__PURE__ */ l(f.div, { ...s, ref: a }), t) : null;
11
+ });
12
+ p.displayName = u;
13
+ export {
14
+ p as P
15
+ };
@@ -2,11 +2,11 @@ import * as i from "react";
2
2
  import { a as Ee, c as he, b as _, d as ye } from "./index-BfXxHr_2.js";
3
3
  import { u as S, c as De } from "./index-DQH6odE9.js";
4
4
  import { u as w } from "./index-bwWKd82e.js";
5
- import { D as be } from "./index-Cd2vhaop.js";
6
- import { P as N } from "./index-BITvcJAz.js";
5
+ import { D as be } from "./index-CffpTFMi.js";
6
+ import { P as N } from "./index-BVRIAMfe.js";
7
7
  import { u as j } from "./index-0ioNhtNM.js";
8
8
  import { jsx as l, jsxs as q, Fragment as B } from "react/jsx-runtime";
9
- import { P as Ce } from "./index-ti1b9kqV.js";
9
+ import { P as Ce } from "./index-DdXGVVBv.js";
10
10
  import { P as U } from "./index-C1g_chDT.js";
11
11
  import { R as Ae } from "./Combination-VYaRRJBZ.js";
12
12
  var x = "focusScope.autoFocusOnMount", L = "focusScope.autoFocusOnUnmount", V = { bubbles: !1, cancelable: !0 }, Re = "FocusScope", Q = i.forwardRef((e, o) => {
@@ -4,7 +4,7 @@ import { u as M } from "./index-DQH6odE9.js";
4
4
  import { u as de } from "./index-BdMNhZnh.js";
5
5
  import { u as ue } from "./index-BZPx6jYI.js";
6
6
  import { u as fe } from "./index-BAEWsOG1.js";
7
- import { P as T } from "./index-BITvcJAz.js";
7
+ import { P as T } from "./index-BVRIAMfe.js";
8
8
  import { c as me } from "./index-Cvx4lqTq.js";
9
9
  import { jsx as g, jsxs as Se } from "react/jsx-runtime";
10
10
  function $(e, [t, n]) {
@@ -1,5 +1,5 @@
1
1
  import * as i from "react";
2
- import { P as o } from "./index-BITvcJAz.js";
2
+ import { P as o } from "./index-BVRIAMfe.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  var d = Object.freeze({
5
5
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
package/dist/index.d.ts CHANGED
@@ -571,14 +571,16 @@ declare type Props_4<TData extends RowData_2> = VariantProps<typeof virtualizeTa
571
571
  ariaLabel?: string;
572
572
  columns: ColumnDef<TData, string>[];
573
573
  data: TData[];
574
- totalItems: number;
574
+ className?: string;
575
+ classNameHeaderActiveArrows?: string;
576
+ classNameHeaderArrows?: string;
577
+ classNameHeaderTable?: string;
578
+ classNameTable?: string;
579
+ classNameWrapperTable?: string;
575
580
  fetchData: (params: Record<string, string | number | string[] | number[] | undefined>) => Promise<{
576
581
  data: TData[];
577
582
  totalItemsCount: number;
578
583
  }>;
579
- classNameHeaderTable?: string;
580
- classNameHeaderArrows?: string;
581
- classNameHeaderActiveArrows?: string;
582
584
  } & ({
583
585
  showPagination: true;
584
586
  showTotalItems?: boolean;
@@ -586,6 +588,7 @@ declare type Props_4<TData extends RowData_2> = VariantProps<typeof virtualizeTa
586
588
  showDotPagination?: boolean;
587
589
  showFormPagination?: boolean;
588
590
  pageSizes?: number[] | string[];
591
+ totalItems: number;
589
592
  } | {
590
593
  showPagination?: false | undefined;
591
594
  showTotalItems?: never;
@@ -593,6 +596,7 @@ declare type Props_4<TData extends RowData_2> = VariantProps<typeof virtualizeTa
593
596
  showDotPagination?: never;
594
597
  showFormPagination?: never;
595
598
  pageSizes?: never;
599
+ totalItems: never;
596
600
  }) & ({
597
601
  filterSearchPlaceholder?: string;
598
602
  multiSelectFilter?: MultiSelectFilter[];
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import { BadgeMultiSelect as w } from "./components/Filter/components/BadgeDropd
15
15
  import { DateFilterDropdown as k } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
16
16
  import { Input as G } from "./components/Input/Input.js";
17
17
  import { Loading as M } from "./components/Loading/Loading.js";
18
- import { M as I } from "./Modal-D-NOEWMX.js";
18
+ import { M as I } from "./Modal-B8jrP02v.js";
19
19
  import { NumberInput as O } from "./components/NumberInput/NumberInput.js";
20
20
  import { PieChart as j } from "./components/PieChart/PieChart.js";
21
21
  import { ProgressBar as E } from "./components/ProgressBar/ProgressBar.js";
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.5",
5
+ "version": "0.1.2-alpha.7",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -65,7 +65,6 @@
65
65
  "@radix-ui/react-toast": "^1.2.15",
66
66
  "@radix-ui/react-tooltip": "^1.2.8",
67
67
  "@radix-ui/react-visually-hidden": "^1.2.3",
68
- "@tanstack/react-query": "^5.90.3",
69
68
  "@tanstack/react-table": "^8.21.3",
70
69
  "chart.js": "^4.5.1",
71
70
  "class-variance-authority": "^0.7.1",
@@ -82,6 +81,7 @@
82
81
  "tailwind-merge": "^3.3.1"
83
82
  },
84
83
  "peerDependencies": {
84
+ "@tanstack/react-query": "^5.90",
85
85
  "@types/react": "*",
86
86
  "@types/react-dom": "*",
87
87
  "react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
@@ -107,6 +107,9 @@
107
107
  },
108
108
  "@types/react-router-dom": {
109
109
  "optional": true
110
+ },
111
+ "@tanstack/react-query": {
112
+ "optional": false
110
113
  }
111
114
  },
112
115
  "devDependencies": {
@@ -116,6 +119,7 @@
116
119
  "@storybook/addon-links": "^9.1.10",
117
120
  "@storybook/react-vite": "^9.1.10",
118
121
  "@tailwindcss/vite": "^4.1.14",
122
+ "@tanstack/react-query": "^5.90.4",
119
123
  "@testing-library/jest-dom": "^6.9.1",
120
124
  "@testing-library/react": "^16.3.0",
121
125
  "@testing-library/user-event": "^14.6.1",
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.6",
5
+ "version": "0.1.2-alpha.8",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "main": "dist/index.js",
@@ -65,7 +65,6 @@
65
65
  "@radix-ui/react-toast": "^1.2.15",
66
66
  "@radix-ui/react-tooltip": "^1.2.8",
67
67
  "@radix-ui/react-visually-hidden": "^1.2.3",
68
- "@tanstack/react-query": "^5.90.3",
69
68
  "@tanstack/react-table": "^8.21.3",
70
69
  "chart.js": "^4.5.1",
71
70
  "class-variance-authority": "^0.7.1",
@@ -82,6 +81,7 @@
82
81
  "tailwind-merge": "^3.3.1"
83
82
  },
84
83
  "peerDependencies": {
84
+ "@tanstack/react-query": "^5.90",
85
85
  "@types/react": "*",
86
86
  "@types/react-dom": "*",
87
87
  "react": "^16.8 || ^17.0 || ^18.0 || ^19.0",
@@ -107,6 +107,9 @@
107
107
  },
108
108
  "@types/react-router-dom": {
109
109
  "optional": true
110
+ },
111
+ "@tanstack/react-query": {
112
+ "optional": false
110
113
  }
111
114
  },
112
115
  "devDependencies": {
@@ -116,6 +119,7 @@
116
119
  "@storybook/addon-links": "^9.1.10",
117
120
  "@storybook/react-vite": "^9.1.10",
118
121
  "@tailwindcss/vite": "^4.1.14",
122
+ "@tanstack/react-query": "^5.90.4",
119
123
  "@testing-library/jest-dom": "^6.9.1",
120
124
  "@testing-library/react": "^16.3.0",
121
125
  "@testing-library/user-event": "^14.6.1",