@dyrected/admin 2.5.20 → 2.5.21
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/index.mjs +31 -31
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -108632,12 +108632,12 @@ function POe({ tabs: e, tabErrorsCount: t, activeTab: n, setActiveTab: r }) {
|
|
|
108632
108632
|
};
|
|
108633
108633
|
}, [e]);
|
|
108634
108634
|
let c = e.slice(o), l = c.includes(n);
|
|
108635
|
-
return /* @__PURE__ */ (0, V.
|
|
108635
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
108636
108636
|
ref: i,
|
|
108637
108637
|
className: "dy-flex dy-w-full dy-items-center dy-justify-between dy-rounded-xl dy-bg-muted dy-p-1 dy-text-muted-foreground dy-mb-2",
|
|
108638
|
-
children: /* @__PURE__ */ (0, V.
|
|
108639
|
-
className: "dy-flex dy-items-center dy-flex-1 dy-min-w-0 dy-gap-1",
|
|
108640
|
-
children:
|
|
108638
|
+
children: [/* @__PURE__ */ (0, V.jsx)(SK, {
|
|
108639
|
+
className: "dy-flex dy-items-center dy-flex-1 dy-min-w-0 dy-gap-1 dy-bg-transparent dy-h-auto dy-p-0 dy-justify-start",
|
|
108640
|
+
children: e.map((e, n) => {
|
|
108641
108641
|
let i = n < o, s = t.get(e) || 0;
|
|
108642
108642
|
return /* @__PURE__ */ (0, V.jsxs)(CK, {
|
|
108643
108643
|
value: e,
|
|
@@ -108654,33 +108654,33 @@ function POe({ tabs: e, tabErrorsCount: t, activeTab: n, setActiveTab: r }) {
|
|
|
108654
108654
|
children: s
|
|
108655
108655
|
})]
|
|
108656
108656
|
}, e);
|
|
108657
|
-
})
|
|
108658
|
-
|
|
108659
|
-
|
|
108660
|
-
|
|
108661
|
-
|
|
108662
|
-
|
|
108663
|
-
|
|
108664
|
-
})
|
|
108665
|
-
})
|
|
108666
|
-
|
|
108667
|
-
|
|
108668
|
-
|
|
108669
|
-
|
|
108670
|
-
|
|
108671
|
-
|
|
108672
|
-
|
|
108673
|
-
|
|
108674
|
-
|
|
108675
|
-
|
|
108676
|
-
|
|
108677
|
-
|
|
108678
|
-
|
|
108679
|
-
|
|
108680
|
-
}
|
|
108681
|
-
})
|
|
108682
|
-
})
|
|
108683
|
-
})
|
|
108657
|
+
})
|
|
108658
|
+
}), c.length > 0 && /* @__PURE__ */ (0, V.jsxs)(rU, { children: [/* @__PURE__ */ (0, V.jsx)(iU, {
|
|
108659
|
+
asChild: !0,
|
|
108660
|
+
children: /* @__PURE__ */ (0, V.jsxs)(q, {
|
|
108661
|
+
variant: "ghost",
|
|
108662
|
+
size: "sm",
|
|
108663
|
+
className: K("dy-h-8 dy-rounded-lg dy-px-3 dy-text-xs dy-font-medium dy-flex dy-items-center dy-gap-1 dy-transition-all hover:dy-bg-background/40", l && "dy-bg-background dy-text-foreground dy-shadow-sm hover:dy-bg-background"),
|
|
108664
|
+
children: [/* @__PURE__ */ (0, V.jsx)("span", { children: l ? n : "More" }), /* @__PURE__ */ (0, V.jsx)(Nd, { className: "dy-h-3 dy-w-3 dy-opacity-50" })]
|
|
108665
|
+
})
|
|
108666
|
+
}), /* @__PURE__ */ (0, V.jsx)(aU, {
|
|
108667
|
+
align: "end",
|
|
108668
|
+
className: "dy-min-w-[150px] dy-rounded-xl dy-border-border/40 dy-shadow-lg",
|
|
108669
|
+
children: c.map((e) => {
|
|
108670
|
+
let i = t.get(e) || 0;
|
|
108671
|
+
return /* @__PURE__ */ (0, V.jsxs)(oU, {
|
|
108672
|
+
onClick: () => r(e),
|
|
108673
|
+
className: K("dy-flex dy-items-center dy-justify-between dy-py-2.5 dy-rounded-lg", n === e && "dy-bg-accent dy-text-foreground"),
|
|
108674
|
+
children: [/* @__PURE__ */ (0, V.jsx)("span", {
|
|
108675
|
+
className: "dy-truncate",
|
|
108676
|
+
children: e
|
|
108677
|
+
}), i > 0 && /* @__PURE__ */ (0, V.jsx)("span", {
|
|
108678
|
+
className: "dy-flex dy-h-5 dy-w-5 dy-items-center dy-justify-center dy-rounded-full dy-bg-destructive dy-text-[10px] dy-font-semibold dy-text-destructive-foreground",
|
|
108679
|
+
children: i
|
|
108680
|
+
})]
|
|
108681
|
+
}, e);
|
|
108682
|
+
})
|
|
108683
|
+
})] })]
|
|
108684
108684
|
});
|
|
108685
108685
|
}
|
|
108686
108686
|
function B9({ collection: e, fields: t, defaultValues: n = {}, onSubmit: r, onChange: i, isLoading: a, submitLabel: o = "Save", readOnly: s, onDataChange: c, passwordChangeMode: l = null }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/admin",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"tailwind-merge": "^3.5.0",
|
|
63
63
|
"tailwindcss-animate": "^1.0.7",
|
|
64
64
|
"zod": "^3.25.76",
|
|
65
|
-
"@dyrected/
|
|
66
|
-
"@dyrected/
|
|
65
|
+
"@dyrected/core": "^2.5.21",
|
|
66
|
+
"@dyrected/sdk": "^2.5.21"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@tanstack/react-query": "^5.0.0",
|