@pnkx-lib/ui 1.5.7 → 1.5.9
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/es/chunks/{ConfirmModal-fbJXEktP.js → ConfirmModal-DOXemsDy.js} +5 -5
- package/es/chunks/ConfirmModal-DOXemsDy.js.map +1 -0
- package/es/index.js +1 -1
- package/es/ui/index.js +1 -1
- package/package.json +1 -1
- package/types/hooks.d.ts +5 -5
- package/types/index.d.ts +34 -34
- package/types/ui.d.ts +21 -21
- package/es/chunks/ConfirmModal-fbJXEktP.js.map +0 -1
@@ -2561,8 +2561,8 @@ const typeColorMap = {
|
|
2561
2561
|
success: "green",
|
2562
2562
|
warning: "yellow"
|
2563
2563
|
};
|
2564
|
-
const Badge = ({ type, children, ...rest }) => {
|
2565
|
-
const color = type ? typeColorMap[type] :
|
2564
|
+
const Badge = ({ type, children, customColor, ...rest }) => {
|
2565
|
+
const color = type ? typeColorMap[type] : customColor;
|
2566
2566
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Badge$1, { color, ...rest, children });
|
2567
2567
|
};
|
2568
2568
|
|
@@ -11803,14 +11803,14 @@ const Sidebar = ({ children, menu }) => {
|
|
11803
11803
|
const handleOpenSubmenu = (itemName) => {
|
11804
11804
|
setOpenSubmenu((prev) => prev === itemName ? null : itemName);
|
11805
11805
|
};
|
11806
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex relative h-
|
11806
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex relative h-full gap-8", children: [
|
11807
11807
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
11808
11808
|
"div",
|
11809
11809
|
{
|
11810
11810
|
onMouseEnter: () => setCollapse(true),
|
11811
11811
|
onMouseLeave: () => setCollapse(false),
|
11812
11812
|
className: twMerge(
|
11813
|
-
"flex flex-col gap-y-5 border-r border-gray-200 bg-[#
|
11813
|
+
"flex flex-col gap-y-5 border-r border-gray-200 bg-[#38c441] transition-all duration-300",
|
11814
11814
|
collapse ? "w-60" : "w-16"
|
11815
11815
|
),
|
11816
11816
|
children: [
|
@@ -12579,4 +12579,4 @@ const ConfirmModal = ({
|
|
12579
12579
|
};
|
12580
12580
|
|
12581
12581
|
export { Alert as A, Button as B, CascaderField as C, Dropdown as D, Anchor as E, Flex as F, Appfix as G, Heading as H, AutoComplete as I, PnkxCollapse as J, PnkxColorPicker as K, Layout as L, Modal as M, Empty as N, Image as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, BulkAction as U, ConfirmModal as V, Watermark as W, Tooltip as a, Tabs as b, SearchFiltersForm as c, Container as d, Badge as e, Col as f, Breadcrumb as g, Space as h, Splitter as i, Menu as j, Pagination as k, Steps as l, Sidebar as m, Tag as n, Divider as o, Spin as p, Drawer as q, Popconfirm as r, Result as s, typeColorMap as t, Rate as u, Segmented as v, Statistic as w, Timeline as x, Tour as y, Tree as z };
|
12582
|
-
//# sourceMappingURL=ConfirmModal-
|
12582
|
+
//# sourceMappingURL=ConfirmModal-DOXemsDy.js.map
|