@krosoft/react 0.0.290 → 0.0.291
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/components/core/filters/SearchableFilterPill.d.ts.map +1 -1
- package/dist/components/core/filters/index.js +25 -18
- package/dist/components/core/index.js +1 -1
- package/dist/components/core/navbar/SidebarNavItem.d.ts.map +1 -1
- package/dist/components/core/navbar/index.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{navbar-B7PMh_S2.js → navbar-CCHGdEzE.js} +6 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchableFilterPill.d.ts","sourceRoot":"","sources":["../../../../src/components/core/filters/SearchableFilterPill.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,EACrD,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,iBAAiB,GAClB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"SearchableFilterPill.d.ts","sourceRoot":"","sources":["../../../../src/components/core/filters/SearchableFilterPill.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,EACrD,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,UAAkB,EAClB,iBAAiB,GAClB,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,KAAK,CAAC,YAAY,CAqIrB"}
|
|
@@ -22,7 +22,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
|
|
|
22
22
|
className: "flex flex-wrap items-center gap-2 mb-4",
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ A("span", {
|
|
25
|
-
className: "text-sm text-
|
|
25
|
+
className: "text-sm text-muted-foreground font-medium",
|
|
26
26
|
children: s("filters.active")
|
|
27
27
|
}),
|
|
28
28
|
c.flatMap(([e, t]) => {
|
|
@@ -31,7 +31,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
|
|
|
31
31
|
let i = L(e, t, s, o);
|
|
32
32
|
return /* @__PURE__ */ j(r, {
|
|
33
33
|
variant: "secondary",
|
|
34
|
-
className: "flex items-center gap-1 px-3 py-1 bg-
|
|
34
|
+
className: "flex items-center gap-1 px-3 py-1 bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",
|
|
35
35
|
children: [
|
|
36
36
|
c,
|
|
37
37
|
": ",
|
|
@@ -40,7 +40,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
|
|
|
40
40
|
onClick: () => {
|
|
41
41
|
n(e, t);
|
|
42
42
|
},
|
|
43
|
-
className: "ml-1 hover:bg-
|
|
43
|
+
className: "ml-1 hover:bg-primary/20 rounded-full p-0.5",
|
|
44
44
|
children: /* @__PURE__ */ A(I, { className: "size-4" })
|
|
45
45
|
})
|
|
46
46
|
]
|
|
@@ -49,7 +49,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
|
|
|
49
49
|
let l = L(e, t, s, o);
|
|
50
50
|
return /* @__PURE__ */ j(r, {
|
|
51
51
|
variant: "secondary",
|
|
52
|
-
className: "flex items-center gap-1 px-3 py-1 bg-
|
|
52
|
+
className: "flex items-center gap-1 px-3 py-1 bg-primary/10 text-primary border border-primary/20 hover:bg-primary/20",
|
|
53
53
|
children: [
|
|
54
54
|
c,
|
|
55
55
|
": ",
|
|
@@ -58,7 +58,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
|
|
|
58
58
|
onClick: () => {
|
|
59
59
|
n(e);
|
|
60
60
|
},
|
|
61
|
-
className: "ml-1 hover:bg-
|
|
61
|
+
className: "ml-1 hover:bg-primary/20 rounded-full p-0.5",
|
|
62
62
|
children: /* @__PURE__ */ A(I, { className: "size-4" })
|
|
63
63
|
})
|
|
64
64
|
]
|
|
@@ -66,7 +66,7 @@ function R({ filters: e, onRemoveFilter: n, onClearAll: i, filterLabelKeys: a =
|
|
|
66
66
|
}),
|
|
67
67
|
c.length > 0 && /* @__PURE__ */ A("button", {
|
|
68
68
|
onClick: i,
|
|
69
|
-
className: "text-xs text-
|
|
69
|
+
className: "text-xs text-destructive hover:text-destructive/80 transition-colors font-medium ml-auto",
|
|
70
70
|
children: s("filters.clearAll")
|
|
71
71
|
})
|
|
72
72
|
]
|
|
@@ -189,7 +189,7 @@ function V({ sections: e, filters: r, onFiltersChange: i, buttonText: a, sheetTi
|
|
|
189
189
|
children: e.map((e, t) => /* @__PURE__ */ j("div", {
|
|
190
190
|
className: "space-y-4",
|
|
191
191
|
children: [/* @__PURE__ */ A("h3", {
|
|
192
|
-
className: "font-semibold text-sm text-
|
|
192
|
+
className: "font-semibold text-sm text-foreground border-b pb-2",
|
|
193
193
|
children: l(e.titleKey)
|
|
194
194
|
}), e.filters.map((e) => /* @__PURE__ */ j("div", {
|
|
195
195
|
className: "space-y-2",
|
|
@@ -211,14 +211,14 @@ function V({ sections: e, filters: r, onFiltersChange: i, buttonText: a, sheetTi
|
|
|
211
211
|
})
|
|
212
212
|
}),
|
|
213
213
|
/* @__PURE__ */ j(s, {
|
|
214
|
-
className: "gap-2 p-6 border-t bg-
|
|
214
|
+
className: "gap-2 p-6 border-t bg-background",
|
|
215
215
|
children: [/* @__PURE__ */ A(o, {
|
|
216
216
|
variant: "outline",
|
|
217
217
|
className: "flex-1",
|
|
218
218
|
onClick: S,
|
|
219
219
|
children: l("filters.clear")
|
|
220
220
|
}), /* @__PURE__ */ A(o, {
|
|
221
|
-
className: "flex-1
|
|
221
|
+
className: "flex-1",
|
|
222
222
|
onClick: x,
|
|
223
223
|
children: l("filters.apply")
|
|
224
224
|
})]
|
|
@@ -295,7 +295,7 @@ function K({ labelKey: n, options: r, selected: o, onToggle: s, onClear: c, onSe
|
|
|
295
295
|
]
|
|
296
296
|
})
|
|
297
297
|
}), /* @__PURE__ */ j(d, {
|
|
298
|
-
className: "w-
|
|
298
|
+
className: "w-72 max-w-[var(--radix-popover-content-available-width)] p-0",
|
|
299
299
|
align: "start",
|
|
300
300
|
children: [
|
|
301
301
|
f ? /* @__PURE__ */ A("div", {
|
|
@@ -314,7 +314,7 @@ function K({ labelKey: n, options: r, selected: o, onToggle: s, onClear: c, onSe
|
|
|
314
314
|
})
|
|
315
315
|
}) : null,
|
|
316
316
|
/* @__PURE__ */ j("div", {
|
|
317
|
-
className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto p-1.5",
|
|
317
|
+
className: "flex flex-col gap-0.5 max-h-56 overflow-y-auto overflow-x-hidden p-1.5",
|
|
318
318
|
children: [
|
|
319
319
|
y.length > 0 && /* @__PURE__ */ j("label", {
|
|
320
320
|
className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
|
|
@@ -344,19 +344,26 @@ function K({ labelKey: n, options: r, selected: o, onToggle: s, onClear: c, onSe
|
|
|
344
344
|
children: h("states.noResult")
|
|
345
345
|
}),
|
|
346
346
|
y.map((e) => /* @__PURE__ */ j("label", {
|
|
347
|
-
className: "flex items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
|
|
347
|
+
className: "flex min-w-0 items-center gap-2.5 rounded-md px-2 py-2 text-sm hover:bg-muted cursor-pointer transition-colors",
|
|
348
348
|
children: [
|
|
349
|
-
/* @__PURE__ */ A(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
349
|
+
/* @__PURE__ */ A("span", {
|
|
350
|
+
className: "shrink-0",
|
|
351
|
+
children: /* @__PURE__ */ A(i, {
|
|
352
|
+
checked: o.includes(e.value),
|
|
353
|
+
onCheckedChange: () => {
|
|
354
|
+
s(e.value);
|
|
355
|
+
}
|
|
356
|
+
})
|
|
354
357
|
}),
|
|
355
358
|
e.color && /* @__PURE__ */ A("span", {
|
|
356
359
|
className: "size-2.5 shrink-0 rounded-full",
|
|
357
360
|
style: { backgroundColor: e.color }
|
|
358
361
|
}),
|
|
359
|
-
|
|
362
|
+
/* @__PURE__ */ A("span", {
|
|
363
|
+
className: "min-w-0 flex-1 truncate",
|
|
364
|
+
title: e.label,
|
|
365
|
+
children: e.label
|
|
366
|
+
})
|
|
360
367
|
]
|
|
361
368
|
}, e.value))
|
|
362
369
|
]
|
|
@@ -17,7 +17,7 @@ import { t as K } from "../../language-DOGOdjzx.js";
|
|
|
17
17
|
import { t as q } from "../../AppTitle-BZ5jQWbs.js";
|
|
18
18
|
import { n as J, t as Y } from "../../states-BQK9jqS4.js";
|
|
19
19
|
import { AppPageHeader as X, KpiCardsLayout as Z } from "./layouts/index.js";
|
|
20
|
-
import { a as Q, i as $, n as ee, o as te, r as ne, t as re } from "../../navbar-
|
|
20
|
+
import { a as Q, i as $, n as ee, o as te, r as ne, t as re } from "../../navbar-CCHGdEzE.js";
|
|
21
21
|
import { DataTable as ie, JsonTableOutput as ae, TableActions as oe, TableBody as se, TableBulkActions as ce, TableHeader as le, TablePagination as ue, TableSettings as de } from "./table/index.js";
|
|
22
22
|
import { AppTabContainer as fe, AppTabHeader as pe, AppTabs as me, AppVerticalTabs as he } from "./tabs/index.js";
|
|
23
23
|
import { t as ge } from "../../theme-q2uzluEd.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/core/navbar/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAiBD,eAAO,MAAM,cAAc,GAAI,2FAW5B,mBAAmB,KAAG,KAAK,CAAC,YAkH9B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-CCHGdEzE.js";
|
|
2
2
|
export { r as GlobalSearch, e as NotificationsBell, i as Sidebar, n as SidebarHeader, t as SidebarNavItem, a as Topbar };
|
package/dist/components/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { t as Yr } from "../language-DOGOdjzx.js";
|
|
|
21
21
|
import { t as Xr } from "../AppTitle-BZ5jQWbs.js";
|
|
22
22
|
import { n as Zr, t as Qr } from "../states-BQK9jqS4.js";
|
|
23
23
|
import { AppPageHeader as $r, KpiCardsLayout as ei } from "./core/layouts/index.js";
|
|
24
|
-
import { a as ti, i as ni, n as ri, o as ii, r as ai, t as oi } from "../navbar-
|
|
24
|
+
import { a as ti, i as ni, n as ri, o as ii, r as ai, t as oi } from "../navbar-CCHGdEzE.js";
|
|
25
25
|
import { DataTable as si, JsonTableOutput as ci, TableActions as li, TableBody as ui, TableBulkActions as di, TableHeader as fi, TablePagination as pi, TableSettings as mi } from "./core/table/index.js";
|
|
26
26
|
import { AppTabContainer as hi, AppTabHeader as gi, AppTabs as _i, AppVerticalTabs as vi } from "./core/tabs/index.js";
|
|
27
27
|
import { t as yi } from "../theme-q2uzluEd.js";
|
|
@@ -213,18 +213,18 @@ var P = ({ groups: n, search: r, onSearch: i, onSelect: o, loading: u = !1, open
|
|
|
213
213
|
})]
|
|
214
214
|
});
|
|
215
215
|
}, L = (e, t, n) => t === e ? !0 : e === "/" || !t.startsWith(`${e}/`) ? !1 : !n.some((n) => n !== e && n.startsWith(`${e}/`) && (t === n || t.startsWith(`${n}/`))), R = ({ path: t, icon: i, label: a, badge: s, subItems: c, currentPath: l, collapsed: u, dense: d = !1, onItemClick: f }) => {
|
|
216
|
-
let p = c?.map((e) => e.path) ?? [], [m, h] = w.useState(c?.some((e) => L(e.path, l, p)) ?? !1), g = t ? l === t || t !== "/" && l.startsWith(`${t}/`) : !1, _ = c?.some((e) => L(e.path, l, p)), v = /* @__PURE__ */ D("a", {
|
|
216
|
+
let p = c?.map((e) => e.path) ?? [], [m, h] = w.useState(c?.some((e) => L(e.path, l, p)) ?? !1), g = t ? l === t || t !== "/" && l.startsWith(`${t}/`) : !1, _ = c?.some((e) => L(e.path, l, p)), v = g || !u && _, y = /* @__PURE__ */ D("a", {
|
|
217
217
|
href: t ?? "#",
|
|
218
218
|
onClick: (e) => {
|
|
219
219
|
e.ctrlKey || e.metaKey || e.button === 1 || (e.preventDefault(), c && c.length > 0 ? u || h(!m) : t && f(t));
|
|
220
220
|
},
|
|
221
|
-
className: e("flex items-center cursor-pointer transition-all duration-200 group rounded-control", d ? "gap-2.5 mb-0.5" : "gap-3 mb-1", u ? d ? "justify-center p-2 h-9 w-9 mx-auto" : "justify-center p-3 h-12 w-12 mx-auto" : d ? "px-3 py-1.5 h-9" : "px-4 py-3 h-12",
|
|
221
|
+
className: e("flex items-center cursor-pointer transition-all duration-200 group rounded-control", d ? "gap-2.5 mb-0.5" : "gap-3 mb-1", u ? d ? "justify-center p-2 h-9 w-9 mx-auto" : "justify-center p-3 h-12 w-12 mx-auto" : d ? "px-3 py-1.5 h-9" : "px-4 py-3 h-12", v ? "bg-sidebar-primary/10 text-sidebar-primary font-semibold border border-sidebar-primary/40 [&_svg]:text-sidebar-primary" : "border border-transparent hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground"),
|
|
222
222
|
children: [/* @__PURE__ */ E("div", {
|
|
223
223
|
className: e("flex-shrink-0 transition-transform group-hover:scale-110", u ? "flex items-center justify-center" : ""),
|
|
224
|
-
children: /* @__PURE__ */ E(i, { className: "size-4" })
|
|
224
|
+
children: /* @__PURE__ */ E(i, { className: e("size-4", v && "text-sidebar-primary") })
|
|
225
225
|
}), !u && /* @__PURE__ */ D(T, { children: [
|
|
226
226
|
/* @__PURE__ */ E("span", {
|
|
227
|
-
className: e("flex-grow transition-opacity duration-150 font-medium", d ? "text-sm" : ""),
|
|
227
|
+
className: e("flex-grow transition-opacity duration-150", v ? "font-semibold" : "font-medium", d ? "text-sm" : ""),
|
|
228
228
|
children: a
|
|
229
229
|
}),
|
|
230
230
|
s !== void 0 && /* @__PURE__ */ E("span", {
|
|
@@ -236,7 +236,7 @@ var P = ({ groups: n, search: r, onSearch: i, onSelect: o, loading: u = !1, open
|
|
|
236
236
|
});
|
|
237
237
|
return /* @__PURE__ */ D(T, { children: [u ? /* @__PURE__ */ D(o, { children: [/* @__PURE__ */ E(n, {
|
|
238
238
|
asChild: !0,
|
|
239
|
-
children:
|
|
239
|
+
children: y
|
|
240
240
|
}), /* @__PURE__ */ E(r, {
|
|
241
241
|
side: "right",
|
|
242
242
|
sideOffset: 6,
|
|
@@ -258,7 +258,7 @@ var P = ({ groups: n, search: r, onSearch: i, onSelect: o, loading: u = !1, open
|
|
|
258
258
|
})]
|
|
259
259
|
})
|
|
260
260
|
})
|
|
261
|
-
})] }) :
|
|
261
|
+
})] }) : y, !u && c && c.length > 0 && m && /* @__PURE__ */ E("div", {
|
|
262
262
|
className: e("flex flex-col ml-4 pl-4 border-l-2 border-sidebar-border/50 animate-in slide-in-from-top-2 fade-in duration-200", d ? "gap-0.5 mb-0.5" : "gap-1 mb-2"),
|
|
263
263
|
children: c.map((t, n) => {
|
|
264
264
|
let r = L(t.path, l, p);
|