@nar-bus/lena-ui-shared 1.3.1 → 1.3.2

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.d.ts CHANGED
@@ -2634,7 +2634,7 @@ export declare function Table({ className, ...props }: React_2.ComponentProps<"t
2634
2634
 
2635
2635
  export declare const TABLE_CELL_CLASSES = "px-2.5 py-1.5 text-xs";
2636
2636
 
2637
- export declare const TABLE_CONTAINER_CLASSES = "rounded-lg border border-border/80 bg-card overflow-hidden shadow-sm";
2637
+ export declare const TABLE_CONTAINER_CLASSES = "isolate rounded-lg border border-border/80 bg-card overflow-clip shadow-sm";
2638
2638
 
2639
2639
  export declare const TABLE_HEADER_CLASSES = "px-2 py-0.5 text-xs font-semibold uppercase tracking-wider transition-colors";
2640
2640
 
@@ -3191,7 +3191,7 @@ export declare function usePrefetch<TData>({ detailKey, listKey, fetchDetail, fe
3191
3191
 
3192
3192
  declare interface UsePrefetchOptions<TData> {
3193
3193
  /** Query key factory for detail queries */
3194
- detailKey: (id: number) => QueryKey;
3194
+ detailKey?: (id: number) => QueryKey;
3195
3195
  /** Query key factory for list queries */
3196
3196
  listKey: (params: SearchRequest) => QueryKey;
3197
3197
  /** Function to fetch detail data */
package/dist/index.js CHANGED
@@ -6435,7 +6435,7 @@ function Ve({
6435
6435
  }
6436
6436
  function Ye({
6437
6437
  className: e,
6438
- sideOffset: t = 0,
6438
+ sideOffset: t = 4,
6439
6439
  children: r,
6440
6440
  ...n
6441
6441
  }) {
@@ -9438,7 +9438,7 @@ const qn = {
9438
9438
  totalPages: 0,
9439
9439
  hasNext: !1,
9440
9440
  hasPrevious: !1
9441
- }, Vi = "rounded-lg border border-border/80 bg-card overflow-hidden shadow-sm", Yi = "hover:bg-transparent border-b border-border/80", qi = "px-2 py-0.5 text-xs font-semibold uppercase tracking-wider transition-colors", Ki = "px-2.5 py-1.5 text-xs", Ji = "sticky right-0 z-20 border-l border-border/60", Qi = "sticky right-0 z-[1] bg-card group-hover:bg-muted border-l border-border/60", fp = "flex flex-wrap items-center gap-2";
9441
+ }, Vi = "isolate rounded-lg border border-border/80 bg-card overflow-clip shadow-sm", Yi = "hover:bg-transparent border-b border-border/80", qi = "px-2 py-0.5 text-xs font-semibold uppercase tracking-wider transition-colors", Ki = "px-2.5 py-1.5 text-xs", Ji = "sticky right-0 z-20 border-l border-border/60", Qi = "sticky right-0 z-[1] bg-card group-hover:bg-muted border-l border-border/60", fp = "flex flex-wrap items-center gap-2";
9442
9442
  function Jn({
9443
9443
  value: e,
9444
9444
  onChange: t,
@@ -10063,7 +10063,7 @@ function Sp({
10063
10063
  "flex flex-col gap-1.5 border-b border-border/60 bg-muted/20",
10064
10064
  d
10065
10065
  ),
10066
- style: { padding: "var(--toolbar-padding)" },
10066
+ style: { padding: "var(--toolbar-padding)", minHeight: "var(--toolbar-min-height)" },
10067
10067
  children: [
10068
10068
  /* @__PURE__ */ u("div", { className: "flex items-center gap-1.5", children: [
10069
10069
  i,
@@ -10093,7 +10093,7 @@ function Sp({
10093
10093
  "flex items-center gap-1.5 border-b border-border/60 bg-muted/20",
10094
10094
  d
10095
10095
  ),
10096
- style: { padding: "var(--toolbar-padding)" },
10096
+ style: { padding: "var(--toolbar-padding)", minHeight: "var(--toolbar-min-height)" },
10097
10097
  children: [
10098
10098
  i,
10099
10099
  m && /* @__PURE__ */ a(
@@ -10640,7 +10640,7 @@ function Op({
10640
10640
  description: U
10641
10641
  }
10642
10642
  ) : /* @__PURE__ */ u(vi, { children: [
10643
- /* @__PURE__ */ a(yi, { className: "sticky top-0 z-10 backdrop-blur-sm", children: tt.getHeaderGroups().map((te) => /* @__PURE__ */ a(Qr, { className: Yi, children: te.headers.map((Z) => {
10643
+ /* @__PURE__ */ a(yi, { className: "sticky top-0 z-10 bg-card", children: tt.getHeaderGroups().map((te) => /* @__PURE__ */ a(Qr, { className: Yi, children: te.headers.map((Z) => {
10644
10644
  const q = Z.column.columnDef.meta;
10645
10645
  return /* @__PURE__ */ a(
10646
10646
  Ni,
@@ -12368,7 +12368,7 @@ function yh({
12368
12368
  }) {
12369
12369
  const l = Ss(), i = ee(/* @__PURE__ */ new Set()), c = ee(/* @__PURE__ */ new Set()), d = z(
12370
12370
  (p) => {
12371
- !r || i.current.has(p) || (i.current.add(p), l.prefetchQuery({
12371
+ !e || !r || i.current.has(p) || (i.current.add(p), l.prefetchQuery({
12372
12372
  queryKey: e(p),
12373
12373
  queryFn: () => r(p),
12374
12374
  staleTime: s
@@ -13341,7 +13341,15 @@ function Zx({
13341
13341
  type: "submit",
13342
13342
  onClick: s,
13343
13343
  disabled: i,
13344
- className: "h-8 px-4",
13344
+ className: f(
13345
+ "h-8 px-4 transition-all duration-200",
13346
+ S && "hover:brightness-110 shadow-sm border"
13347
+ ),
13348
+ style: S ? {
13349
+ background: `var(--gradient-${v})`,
13350
+ color: `var(--gradient-${v}-text)`,
13351
+ borderColor: `var(--gradient-${v}-border)`
13352
+ } : void 0,
13345
13353
  children: i ? /* @__PURE__ */ u(le, { children: [
13346
13354
  /* @__PURE__ */ a(Dt, { className: "mr-2 h-4 w-4 animate-spin" }),
13347
13355
  x.processing
@@ -16516,17 +16524,17 @@ function wv({
16516
16524
  );
16517
16525
  }) }),
16518
16526
  /* @__PURE__ */ a("div", { ...C, children: n })
16519
- ] }) : o === "segmented" ? /* @__PURE__ */ u("div", { className: f("shadow-md rounded-xl", l), children: [
16527
+ ] }) : o === "segmented" ? /* @__PURE__ */ u("div", { className: f("shadow-sm rounded-xl", l), children: [
16520
16528
  /* @__PURE__ */ a("div", { className: "overflow-x-auto scrollbar-none bg-muted rounded-t-xl p-1.5", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-0.5", children: e.map((N, _) => {
16521
16529
  const D = t === N.id, A = _ > 0 && t === e[_ - 1]?.id, P = N.icon, E = s?.(N.id) ?? N.count;
16522
16530
  return /* @__PURE__ */ u(ql, { children: [
16523
- _ > 0 && !D && !A && /* @__PURE__ */ a("div", { className: "w-px h-4 bg-border shrink-0" }),
16531
+ _ > 0 && !D && !A && /* @__PURE__ */ a("div", { className: "w-px h-4 bg-slate-300 dark:bg-slate-500 shrink-0" }),
16524
16532
  /* @__PURE__ */ u(
16525
16533
  "button",
16526
16534
  {
16527
16535
  onClick: () => r(N.id),
16528
16536
  className: f(
16529
- "relative flex items-center gap-1.5 px-3.5 py-2 text-sm-minus font-medium whitespace-nowrap transition-all duration-200 rounded-lg",
16537
+ "relative flex items-center gap-1.5 px-3.5 py-2 text-[13px] font-medium whitespace-nowrap transition-all duration-200 rounded-lg",
16530
16538
  D ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
16531
16539
  ),
16532
16540
  children: [
@@ -18097,7 +18105,7 @@ function Gv({
18097
18105
  "header",
18098
18106
  {
18099
18107
  className: f(
18100
- "relative z-10 flex h-14 items-center border-b border-border/60 bg-card/50 backdrop-blur-sm",
18108
+ "relative z-40 flex h-14 items-center border-b border-border/60 bg-card/50 backdrop-blur-sm",
18101
18109
  h
18102
18110
  ),
18103
18111
  children: [
@@ -18236,7 +18244,7 @@ function Hv({
18236
18244
  )?.focus(), o(!0));
18237
18245
  };
18238
18246
  return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
18239
- }, [l, o]), /* @__PURE__ */ a("div", { ref: m, className: f("relative w-full max-w-64", c), children: /* @__PURE__ */ u(
18247
+ }, [l, o]), /* @__PURE__ */ a("div", { ref: m, className: f("relative w-full max-w-80", c), children: /* @__PURE__ */ u(
18240
18248
  jt,
18241
18249
  {
18242
18250
  shouldFilter: i,