@konstructio/ui 0.1.2-alpha.110 → 0.1.2-alpha.112
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.
- package/dist/{AnimatePresence-V0yte2ER.js → AnimatePresence-BsUYG9bm.js} +1 -1
- package/dist/{Modal-B6lSyPYQ.js → Modal-Bk1I_NCC.js} +1 -1
- package/dist/Toast-CRPLONv9.js +77 -0
- package/dist/assets/icons/components/InformationFilled.js +20 -0
- package/dist/assets/icons/components/index.js +108 -106
- package/dist/assets/icons/index.js +108 -106
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +2 -2
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +2 -2
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +32 -19
- package/dist/components/Toast/components/ToastCard/ToastCard.js +43 -43
- package/dist/components/Toast/constants/index.js +7 -7
- package/dist/components/index.js +2 -2
- package/dist/icons.js +108 -106
- package/dist/index.js +2 -2
- package/dist/lib/assets/icons/components/InformationFilled.d.ts +3 -0
- package/dist/lib/assets/icons/components/index.d.ts +1 -0
- package/dist/lib/components/Toast/Toast.types.d.ts +5 -0
- package/dist/lib/components/Toast/Toast.variants.d.ts +1 -3
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
- package/dist/lib/icons.d.ts +1 -1
- package/dist/package.json +9 -10
- package/dist/{react-DpRKGbW_.js → react-C685EsYG.js} +1511 -1574
- package/dist/styles.css +1 -1
- package/package.json +9 -10
- package/dist/Toast-DTb03cfB.js +0 -76
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.
|
|
5
|
+
"version": "0.1.2-alpha.112",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"@radix-ui/react-slot": "^1.3.3",
|
|
88
88
|
"@radix-ui/react-switch": "^1.3.7",
|
|
89
89
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
90
|
-
"@radix-ui/react-toast": "^1.2.23",
|
|
91
90
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
92
91
|
"@radix-ui/react-visually-hidden": "^1.2.11",
|
|
93
92
|
"@react-input/mask": "^2.0.4",
|
|
@@ -103,8 +102,8 @@
|
|
|
103
102
|
"google-libphonenumber": "^3.2.47",
|
|
104
103
|
"i18n-iso-countries": "^7.14.0",
|
|
105
104
|
"js-cookie": "^3.0.8",
|
|
106
|
-
"lucide-react": "^1.
|
|
107
|
-
"motion": "^
|
|
105
|
+
"lucide-react": "^1.52.0",
|
|
106
|
+
"motion": "^14.0.0",
|
|
108
107
|
"react-chartjs-2": "^5.3.1",
|
|
109
108
|
"react-day-picker": "^10.0.2",
|
|
110
109
|
"react-feather": "^2.0.10",
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
"@storybook/addon-links": "^10.6.1",
|
|
152
151
|
"@storybook/react-vite": "^10.6.1",
|
|
153
152
|
"@tailwindcss/vite": "^4.3.3",
|
|
154
|
-
"@tanstack/react-query": "^5.104.
|
|
153
|
+
"@tanstack/react-query": "^5.104.1",
|
|
155
154
|
"@testing-library/jest-dom": "^7.0.1",
|
|
156
155
|
"@testing-library/react": "^16.3.3",
|
|
157
156
|
"@testing-library/user-event": "^14.6.7",
|
|
@@ -163,7 +162,7 @@
|
|
|
163
162
|
"@types/react-dom": "^19.3.0",
|
|
164
163
|
"@typescript-eslint/eslint-plugin": "^8.71.0",
|
|
165
164
|
"@typescript-eslint/parser": "^8.71.0",
|
|
166
|
-
"@vitejs/plugin-react": "^6.1.
|
|
165
|
+
"@vitejs/plugin-react": "^6.1.2",
|
|
167
166
|
"@vitest/coverage-v8": "^5.0.3",
|
|
168
167
|
"autoprefixer": "^10.6.1",
|
|
169
168
|
"eslint": "^9.39.5",
|
|
@@ -175,17 +174,17 @@
|
|
|
175
174
|
"glob": "^13.0.6",
|
|
176
175
|
"husky": "^9.1.7",
|
|
177
176
|
"jest-axe": "^11.0.0",
|
|
178
|
-
"jsdom": "^30.1.
|
|
177
|
+
"jsdom": "^30.1.2",
|
|
179
178
|
"lodash": "^4.18.1",
|
|
180
|
-
"postcss": "^8.5.
|
|
179
|
+
"postcss": "^8.5.29",
|
|
181
180
|
"prettier": "^3.9.9",
|
|
182
181
|
"rimraf": "^6.1.3",
|
|
183
182
|
"storybook": "^10.6.1",
|
|
184
183
|
"tailwindcss": "^4.3.3",
|
|
185
184
|
"ts-node": "^10.9.2",
|
|
186
185
|
"typescript": "^6.0.3",
|
|
187
|
-
"vite": "^8.3.
|
|
188
|
-
"vite-plugin-dts": "^5.1.
|
|
186
|
+
"vite": "^8.3.2",
|
|
187
|
+
"vite-plugin-dts": "^5.1.2",
|
|
189
188
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
190
189
|
"vite-plugin-svgr": "^5.2.0",
|
|
191
190
|
"vitest": "^5.0.3"
|
package/dist/Toast-DTb03cfB.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as I } from "./utils-DnIJruo0.js";
|
|
3
|
-
import { useIsHydrated as O } from "./hooks/useIsHydrated/useIsHydrated.js";
|
|
4
|
-
import { a as b, c as D, i as L, o as w, t as C } from "./react-DpRKGbW_.js";
|
|
5
|
-
import { t as P } from "./AnimatePresence-V0yte2ER.js";
|
|
6
|
-
import { TOAST_TRANSITION as k } from "./components/Toast/constants/index.js";
|
|
7
|
-
import { useStackExpansion as B } from "./components/Toast/hooks/useStackExpansion/useStackExpansion.js";
|
|
8
|
-
import { useToastHeights as G } from "./components/Toast/hooks/useToastHeights/useToastHeights.js";
|
|
9
|
-
import { useToastSource as j } from "./components/Toast/hooks/useToastSource/useToastSource.js";
|
|
10
|
-
import { ToastCard as z } from "./components/Toast/components/ToastCard/ToastCard.js";
|
|
11
|
-
import { computeStackLayout as F } from "./components/Toast/utils/compute-stack-layout/compute-stack-layout.js";
|
|
12
|
-
import { useEffect as K, useState as U } from "react";
|
|
13
|
-
import { createPortal as V } from "react-dom";
|
|
14
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
15
|
-
function X() {
|
|
16
|
-
!b.current && L();
|
|
17
|
-
const [t] = U(w.current);
|
|
18
|
-
return process.env.NODE_ENV !== "production" && D(t !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), t;
|
|
19
|
-
}
|
|
20
|
-
var Y = ({ className: t, closeLabel: p = "Close toast", container: l, duration: a, hoverBehavior: h = "resume", isPortal: g = !0, label: S = "Notifications", limit: c, maxVisible: d = 3, theme: T, toasts: s, onDismiss: v }) => {
|
|
21
|
-
const m = X(), M = O(), { heights: E, setHeight: y, removeHeight: A } = G(), { expanded: H, regionHandlers: R } = B(), o = j({
|
|
22
|
-
toasts: s,
|
|
23
|
-
onDismiss: v
|
|
24
|
-
});
|
|
25
|
-
K(() => {
|
|
26
|
-
s || o.configure({
|
|
27
|
-
duration: a,
|
|
28
|
-
limit: c
|
|
29
|
-
});
|
|
30
|
-
}, [
|
|
31
|
-
s,
|
|
32
|
-
o.configure,
|
|
33
|
-
a,
|
|
34
|
-
c
|
|
35
|
-
]);
|
|
36
|
-
const e = o.toasts.slice().reverse(), u = H && e.length > 0, { offsets: N, frontHeight: _, regionHeight: x } = F({
|
|
37
|
-
toasts: e,
|
|
38
|
-
heights: E,
|
|
39
|
-
expanded: u,
|
|
40
|
-
maxVisible: d
|
|
41
|
-
}), f = /* @__PURE__ */ n("section", {
|
|
42
|
-
"aria-label": S,
|
|
43
|
-
"data-theme": T,
|
|
44
|
-
className: I("fixed right-6 bottom-6 z-100 w-97.5 max-w-[calc(100vw-3rem)]", t),
|
|
45
|
-
style: { pointerEvents: e.length > 0 ? void 0 : "none" },
|
|
46
|
-
...R,
|
|
47
|
-
children: /* @__PURE__ */ n(C.ol, {
|
|
48
|
-
className: "relative m-0 list-none p-0",
|
|
49
|
-
animate: { height: x },
|
|
50
|
-
transition: m ? { duration: 0 } : k,
|
|
51
|
-
children: /* @__PURE__ */ n(P, { children: e.map((i, r) => /* @__PURE__ */ n(z, {
|
|
52
|
-
closeLabel: p,
|
|
53
|
-
expanded: u,
|
|
54
|
-
frontHeight: _,
|
|
55
|
-
index: r,
|
|
56
|
-
offset: N[r] ?? 0,
|
|
57
|
-
reducedMotion: !!m,
|
|
58
|
-
restartOnLeave: h === "restart",
|
|
59
|
-
resumeDelay: (e.length - 1 - r) * 300,
|
|
60
|
-
toast: i,
|
|
61
|
-
total: e.length,
|
|
62
|
-
visible: r < d,
|
|
63
|
-
onDismiss: () => {
|
|
64
|
-
o.dismiss(i.id);
|
|
65
|
-
},
|
|
66
|
-
onExited: A,
|
|
67
|
-
onHeightChange: y
|
|
68
|
-
}, i.id)) })
|
|
69
|
-
})
|
|
70
|
-
});
|
|
71
|
-
return g ? M ? V(f, l ?? document.body) : null : f;
|
|
72
|
-
};
|
|
73
|
-
Y.displayName = "KonstructToast";
|
|
74
|
-
export {
|
|
75
|
-
Y as t
|
|
76
|
-
};
|