@starasia/admin 3.21.9 → 3.22.0

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.es.js CHANGED
@@ -2565,30 +2565,31 @@ const sn = te(
2565
2565
  }, _r = ({
2566
2566
  action: t,
2567
2567
  rightContent: r,
2568
- advanceFilter: n,
2569
- showFilter: l = !0
2568
+ leftContent: n,
2569
+ advanceFilter: l,
2570
+ showFilter: i = !0
2570
2571
  }) => {
2571
- const i = ee("md"), o = () => t ? rt(t) ? t : /* @__PURE__ */ e(
2572
+ const o = ee("md"), s = () => t ? rt(t) ? t : /* @__PURE__ */ e(
2572
2573
  u,
2573
2574
  {
2574
2575
  style: {
2575
2576
  display: "flex",
2576
- flexDirection: i ? "row" : "column",
2577
+ flexDirection: o ? "row" : "column",
2577
2578
  gap: "8px",
2578
- width: i ? "auto" : "100%",
2579
+ width: o ? "auto" : "100%",
2579
2580
  textWrap: "nowrap"
2580
2581
  },
2581
2582
  children: t.map(
2582
- ({ title: s, icon: a, buttonProps: h, onClick: f }, g) => !s && !a ? null : /* @__PURE__ */ e(
2583
+ ({ title: a, icon: h, buttonProps: f, onClick: g }, p) => !a && !h ? null : /* @__PURE__ */ e(
2583
2584
  B,
2584
2585
  {
2585
- fullWidth: !i,
2586
- iconLeft: a ? /* @__PURE__ */ e(k, { name: a }) : void 0,
2587
- onClick: f,
2588
- ...h,
2589
- children: s
2586
+ fullWidth: !o,
2587
+ iconLeft: h ? /* @__PURE__ */ e(k, { name: h }) : void 0,
2588
+ onClick: g,
2589
+ ...f,
2590
+ children: a
2590
2591
  },
2591
- `action-${g}`
2592
+ `action-${p}`
2592
2593
  )
2593
2594
  )
2594
2595
  }
@@ -2609,14 +2610,17 @@ const sn = te(
2609
2610
  flexShrink: 0,
2610
2611
  position: "relative",
2611
2612
  zIndex: 10,
2612
- flexDirection: i ? "row" : "column-reverse",
2613
+ flexDirection: o ? "row" : "column-reverse",
2613
2614
  gap: "16px"
2614
2615
  },
2615
2616
  children: [
2616
- l && /* @__PURE__ */ e(jr, { ...n }),
2617
- /* @__PURE__ */ d(u, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center" }, children: [
2617
+ /* @__PURE__ */ d(u, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
2618
+ i && /* @__PURE__ */ e(jr, { ...l }),
2619
+ n
2620
+ ] }),
2621
+ /* @__PURE__ */ d(u, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
2618
2622
  r,
2619
- o()
2623
+ s()
2620
2624
  ] })
2621
2625
  ]
2622
2626
  }