@konstructio/ui 0.1.2-alpha.68 → 0.1.2-alpha.69
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/Modal-BGcucTHv.js +120 -0
- 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/Modal/Modal.js +1 -1
- package/dist/components/Modal/Modal.types.d.ts +7 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +3 -0
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/Select/Select.js +20 -11
- package/dist/components/Select/Select.variants.js +1 -1
- package/dist/components/Select/components/List/List.variants.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +3 -3
- package/dist/{proxy-BIRlSMN_.js → proxy-CngVm5qA.js} +1834 -1852
- package/package.json +3 -3
- package/dist/Modal-mwLmWbnA.js +0 -115
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.69",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"i18n-iso-countries": "^7.14.0",
|
|
101
101
|
"js-cookie": "^3.0.5",
|
|
102
102
|
"lucide-react": "^0.576.0",
|
|
103
|
-
"motion": "^12.34.
|
|
103
|
+
"motion": "^12.34.5",
|
|
104
104
|
"react-chartjs-2": "^5.3.1",
|
|
105
105
|
"react-day-picker": "^9.14.0",
|
|
106
106
|
"react-feather": "^2.0.10",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"jest-axe": "^10.0.0",
|
|
174
174
|
"jsdom": "^28.1.0",
|
|
175
175
|
"lodash": "^4.17.23",
|
|
176
|
-
"postcss": "^8.5.
|
|
176
|
+
"postcss": "^8.5.8",
|
|
177
177
|
"prettier": "^3.8.1",
|
|
178
178
|
"rimraf": "^6.1.3",
|
|
179
179
|
"storybook": "^10.2.14",
|
package/dist/Modal-mwLmWbnA.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Body as R } from "./components/Modal/components/Body/Body.js";
|
|
2
|
-
import { Footer as g } from "./components/Modal/components/Footer/Footer.js";
|
|
3
|
-
import { Header as k } from "./components/Modal/components/Header/Header.js";
|
|
4
|
-
import { jsx as n, jsxs as c, Fragment as v } from "react/jsx-runtime";
|
|
5
|
-
import { Children as d, isValidElement as m, useRef as w, useState as A, useEffect as b } from "react";
|
|
6
|
-
import { createPortal as F } from "react-dom";
|
|
7
|
-
import { R as N } from "./index-BKjcReYh.js";
|
|
8
|
-
import { R as x } from "./Combination-BtmnusWq.js";
|
|
9
|
-
import { cn as h } from "./utils/index.js";
|
|
10
|
-
import { buttonCloseVariants as B, modalVariants as C } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
|
|
11
|
-
import { m as E } from "./proxy-BIRlSMN_.js";
|
|
12
|
-
import { X as H } from "./x-Eoa9FJjA.js";
|
|
13
|
-
const V = ({
|
|
14
|
-
buttonCloseClassName: l,
|
|
15
|
-
children: o,
|
|
16
|
-
className: s,
|
|
17
|
-
showCloseButton: i = !0,
|
|
18
|
-
theme: f,
|
|
19
|
-
onClose: a
|
|
20
|
-
}) => {
|
|
21
|
-
const p = d.toArray(o).find(
|
|
22
|
-
(e) => m(e) && e.type === t.Header
|
|
23
|
-
), u = d.toArray(o).find(
|
|
24
|
-
(e) => m(e) && e.type === t.Body
|
|
25
|
-
), r = d.toArray(o).find(
|
|
26
|
-
(e) => m(e) && e.type === t.Footer
|
|
27
|
-
), y = d.toArray(o).filter(
|
|
28
|
-
(e) => !m(e) || ![t.Header, t.Body, t.Footer].includes(
|
|
29
|
-
e.type
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
return /* @__PURE__ */ n(x, { children: /* @__PURE__ */ c(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
className: "fixed inset-0 grid place-content-center",
|
|
36
|
-
"data-theme": f,
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ n(
|
|
39
|
-
"div",
|
|
40
|
-
{
|
|
41
|
-
className: "absolute inset-0 bg-black opacity-70 dark:opacity-85 animate-in fade-in-0",
|
|
42
|
-
onClick: a,
|
|
43
|
-
role: "presentation"
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
/* @__PURE__ */ c(
|
|
47
|
-
E.div,
|
|
48
|
-
{
|
|
49
|
-
className: h(
|
|
50
|
-
C({
|
|
51
|
-
className: s
|
|
52
|
-
})
|
|
53
|
-
),
|
|
54
|
-
role: "dialog",
|
|
55
|
-
"aria-modal": "true",
|
|
56
|
-
layout: "size",
|
|
57
|
-
transition: { duration: 0.25, ease: "easeInOut" },
|
|
58
|
-
children: [
|
|
59
|
-
p,
|
|
60
|
-
i && /* @__PURE__ */ c(
|
|
61
|
-
"button",
|
|
62
|
-
{
|
|
63
|
-
className: h(
|
|
64
|
-
B({
|
|
65
|
-
className: l
|
|
66
|
-
})
|
|
67
|
-
),
|
|
68
|
-
onClick: a,
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ n(H, {}),
|
|
71
|
-
/* @__PURE__ */ n(N, { children: "Dismiss modal" })
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
u ?? y,
|
|
76
|
-
r
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
) });
|
|
83
|
-
}, t = ({ isOpen: l, onClose: o, container: s, theme: i, ...f }) => {
|
|
84
|
-
const a = w(null), [p, u] = A(
|
|
85
|
-
null
|
|
86
|
-
);
|
|
87
|
-
return b(() => {
|
|
88
|
-
if (!a.current || i || s)
|
|
89
|
-
return;
|
|
90
|
-
const r = a.current.closest("[data-theme]");
|
|
91
|
-
r && u(r);
|
|
92
|
-
}, [i, s]), b(() => {
|
|
93
|
-
const r = new AbortController(), y = (e) => {
|
|
94
|
-
e.code === "Escape" && o?.();
|
|
95
|
-
};
|
|
96
|
-
return window.addEventListener("keydown", y, {
|
|
97
|
-
signal: r.signal
|
|
98
|
-
}), () => {
|
|
99
|
-
r.abort();
|
|
100
|
-
};
|
|
101
|
-
}, [o]), /* @__PURE__ */ c(v, { children: [
|
|
102
|
-
/* @__PURE__ */ n("span", { ref: a, "data-testid": "modal-anchor", hidden: !0 }),
|
|
103
|
-
l && F(
|
|
104
|
-
/* @__PURE__ */ n(V, { ...f, theme: i, onClose: o }),
|
|
105
|
-
s || p || document.body
|
|
106
|
-
)
|
|
107
|
-
] });
|
|
108
|
-
};
|
|
109
|
-
t.Header = k;
|
|
110
|
-
t.Body = R;
|
|
111
|
-
t.Footer = g;
|
|
112
|
-
export {
|
|
113
|
-
t as M,
|
|
114
|
-
V as W
|
|
115
|
-
};
|