wcz-layout 7.6.3 → 7.6.4
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/DialogsContext-BIhId-r8.js.map +1 -1
- package/dist/components.js +16 -15
- package/dist/components.js.map +1 -1
- package/dist/contexts/DialogsContext.d.ts +1 -1
- package/dist/exports/hooks.d.ts +3 -3
- package/dist/exports/utils.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts +1 -0
- package/dist/hooks.js +5 -5
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/{queries-D-DV5lCw.js → queries-D8Ys1kLs.js} +370 -375
- package/dist/{queries-D-DV5lCw.js.map → queries-D8Ys1kLs.js.map} +1 -1
- package/dist/query.js +1 -1
- package/dist/{DialogsHooks-CZVdKmPv.js → useDialogs-CX8kuAuA.js} +3 -2
- package/dist/useDialogs-CX8kuAuA.js.map +1 -0
- package/dist/utils.js +14 -14
- package/package.json +9 -9
- package/skills/template-init.md +146 -0
- package/dist/DialogsHooks-CZVdKmPv.js.map +0 -1
- package/dist/lib/theme.d.ts +0 -1
- /package/dist/hooks/{DialogsHooks.d.ts → useDialogs.d.ts} +0 -0
- /package/dist/hooks/{FormHooks.d.ts → useForm.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogsContext-BIhId-r8.js","names":["createContext","CloseDialog","OpenDialog","DialogsContextValue","open","close","DialogsContext"],"sources":["../src/contexts/DialogsContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { CloseDialog, OpenDialog } from \"../hooks/
|
|
1
|
+
{"version":3,"file":"DialogsContext-BIhId-r8.js","names":["createContext","CloseDialog","OpenDialog","DialogsContextValue","open","close","DialogsContext"],"sources":["../src/contexts/DialogsContext.ts"],"sourcesContent":["import { createContext } from \"react\";\nimport type { CloseDialog, OpenDialog } from \"../hooks/useDialogs\";\n\nexport interface DialogsContextValue {\n open: OpenDialog;\n close: CloseDialog;\n}\n\nexport const DialogsContext = createContext<DialogsContextValue>({} as DialogsContextValue);\n"],"mappings":";;AAQA,IAAaM,IAAiBN,EAAmC,EAAE,CAAwB"}
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "./queries-
|
|
1
|
+
import { i as e, r as t, t as n } from "./queries-D8Ys1kLs.js";
|
|
2
2
|
import { n as r, t as i } from "./RouterListItemButton-DeaQB4ym.js";
|
|
3
|
-
import { n as a, t as o } from "./
|
|
3
|
+
import { n as a, t as o } from "./useDialogs-CX8kuAuA.js";
|
|
4
4
|
import { c as s } from "react/compiler-runtime";
|
|
5
5
|
import { Box as c, Button as l, Chip as u, Dialog as d, Divider as f, Fab as p, IconButton as m, ImageListItem as h, ImageListItemBar as g, Link as _, List as v, ListItemButton as y, ListItemIcon as b, ListItemText as x, Menu as S, Stack as C, Tab as w, Tooltip as T, Typography as E, useTheme as D } from "@mui/material";
|
|
6
6
|
import { useTranslation as O } from "react-i18next";
|
|
@@ -2694,35 +2694,36 @@ var en = {
|
|
|
2694
2694
|
transition: "border .24s ease-in-out",
|
|
2695
2695
|
cursor: "pointer"
|
|
2696
2696
|
}, tn = (e) => {
|
|
2697
|
-
let t = s(
|
|
2697
|
+
let t = s(29), n, r;
|
|
2698
2698
|
t[0] === e ? (n = t[1], r = t[2]) : ({sx: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2699
2699
|
let { getRootProps: i, getInputProps: a, isFocused: o, isDragAccept: l, isDragReject: u } = Zt(n), { t: d } = O(), f = D(), p, m;
|
|
2700
|
-
if (t[3] !== i || t[4] !== l || t[5] !== u || t[6] !== o || t[7] !== f) {
|
|
2700
|
+
if (t[3] !== i || t[4] !== l || t[5] !== u || t[6] !== o || t[7] !== f.palette.divider || t[8] !== f.palette.error || t[9] !== f.palette.primary || t[10] !== f.palette.success) {
|
|
2701
2701
|
let e = {
|
|
2702
2702
|
...en,
|
|
2703
|
+
borderColor: f.palette.divider,
|
|
2703
2704
|
...o ? { borderColor: f.palette.primary.main } : {},
|
|
2704
2705
|
...l ? { borderColor: f.palette.success.main } : {},
|
|
2705
2706
|
...u ? { borderColor: f.palette.error.main } : {}
|
|
2706
2707
|
};
|
|
2707
|
-
p = c, m = i({ style: e }), t[3] = i, t[4] = l, t[5] = u, t[6] = o, t[7] = f, t[8] =
|
|
2708
|
-
} else p = t[
|
|
2708
|
+
p = c, m = i({ style: e }), t[3] = i, t[4] = l, t[5] = u, t[6] = o, t[7] = f.palette.divider, t[8] = f.palette.error, t[9] = f.palette.primary, t[10] = f.palette.success, t[11] = p, t[12] = m;
|
|
2709
|
+
} else p = t[11], m = t[12];
|
|
2709
2710
|
let h;
|
|
2710
|
-
t[
|
|
2711
|
+
t[13] === a ? h = t[14] : (h = a(), t[13] = a, t[14] = h);
|
|
2711
2712
|
let g;
|
|
2712
|
-
t[
|
|
2713
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (g = { display: "none" }, t[15] = g) : g = t[15];
|
|
2713
2714
|
let _;
|
|
2714
|
-
t[
|
|
2715
|
+
t[16] === h ? _ = t[17] : (_ = /* @__PURE__ */ B("input", {
|
|
2715
2716
|
...h,
|
|
2716
2717
|
style: g
|
|
2717
|
-
}), t[
|
|
2718
|
+
}), t[16] = h, t[17] = _);
|
|
2718
2719
|
let v;
|
|
2719
|
-
t[
|
|
2720
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ B(ae, {}), t[18] = v) : v = t[18];
|
|
2720
2721
|
let y;
|
|
2721
|
-
t[
|
|
2722
|
+
t[19] === d ? y = t[20] : (y = d("Layout.File.DragSomeFilesHereOrClickToSelectThem"), t[19] = d, t[20] = y);
|
|
2722
2723
|
let b;
|
|
2723
|
-
t[
|
|
2724
|
+
t[21] === y ? b = t[22] : (b = /* @__PURE__ */ B(E, { children: y }), t[21] = y, t[22] = b);
|
|
2724
2725
|
let x;
|
|
2725
|
-
return t[
|
|
2726
|
+
return t[23] !== p || t[24] !== r || t[25] !== m || t[26] !== _ || t[27] !== b ? (x = /* @__PURE__ */ V(p, {
|
|
2726
2727
|
...m,
|
|
2727
2728
|
sx: r,
|
|
2728
2729
|
children: [
|
|
@@ -2730,7 +2731,7 @@ var en = {
|
|
|
2730
2731
|
v,
|
|
2731
2732
|
b
|
|
2732
2733
|
]
|
|
2733
|
-
}), t[
|
|
2734
|
+
}), t[23] = p, t[24] = r, t[25] = m, t[26] = _, t[27] = b, t[28] = x) : x = t[28], x;
|
|
2734
2735
|
}, nn = j(null), rn = () => {
|
|
2735
2736
|
let e = P(nn);
|
|
2736
2737
|
if (!e) throw Error("FileViewer components must be used within FileViewer");
|