@stokelp/ui 2.22.0 → 2.24.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/ui.js CHANGED
@@ -558,20 +558,20 @@ const C9 = f("input", ga, {
558
558
  if (!c)
559
559
  throw new Error("useTable must be used within a <TableProvider/>");
560
560
  return c;
561
- }, mu = ({ children: c, onSortChange: s }) => {
562
- const [n, m] = qa(vu, {
563
- sortDescriptor: null
561
+ }, mu = ({ children: c, onSortChange: s, descriptor: n }) => {
562
+ const [m, b] = qa(vu, {
563
+ sortDescriptor: n ?? null
564
564
  });
565
565
  z0(() => {
566
- s == null || s(n.sortDescriptor);
567
- }, [JSON.stringify(n.sortDescriptor)]);
568
- const b = {
569
- ...n,
570
- dispatch: m
566
+ s == null || s(m.sortDescriptor);
567
+ }, [JSON.stringify(m.sortDescriptor)]);
568
+ const H = {
569
+ ...m,
570
+ dispatch: b
571
571
  };
572
- return /* @__PURE__ */ r(Y0.Provider, { value: b, children: c });
572
+ return /* @__PURE__ */ r(Y0.Provider, { value: H, children: c });
573
573
  }, { withProvider: bu, withContext: s2 } = e1(Pa), sf = f("div", Sa), Ru = bu(f("table"), "root"), yu = j(
574
- ({ children: c, onSortChange: s, ...n }, m) => /* @__PURE__ */ r(mu, { onSortChange: s, children: /* @__PURE__ */ r(Ru, { ref: m, ...n, children: c }) })
574
+ ({ children: c, onSortChange: s, descriptor: n, ...m }, b) => /* @__PURE__ */ r(mu, { descriptor: n, onSortChange: s, children: /* @__PURE__ */ r(Ru, { ref: b, ...m, children: c }) })
575
575
  );
576
576
  yu.displayName = "Table";
577
577
  const pf = s2(f("thead"), "thead"), j7 = s2(f("div"), "sortIndicatorRoot"), L3 = s2(f("svg"), "sortIndicator"), ff = s2(f("tbody"), "tbody"), hf = s2(f("tr"), "tr"), xu = s2(f("th"), "th"), wu = j(
@@ -15639,6 +15639,16 @@ const { withProvider: rL, withContext: v4 } = e1(Ga), tL = rL(f("div"), "root"),
15639
15639
  badge: {
15640
15640
  bg: "grey.400"
15641
15641
  }
15642
+ },
15643
+ info: {
15644
+ root: {
15645
+ bg: "secondary.100",
15646
+ borderColor: "secondary.500",
15647
+ color: "secondary.500"
15648
+ },
15649
+ badge: {
15650
+ bg: "secondary.500"
15651
+ }
15642
15652
  }
15643
15653
  }
15644
15654
  }
@@ -16670,6 +16680,17 @@ const Rs = q({
16670
16680
  ringColor: "error.200"
16671
16681
  }
16672
16682
  },
16683
+ info: {
16684
+ indicator: {
16685
+ color: "secondary.500"
16686
+ },
16687
+ trigger: {
16688
+ backgroundColor: "secondary.100",
16689
+ borderColor: "secondary.500",
16690
+ color: "secondary.500",
16691
+ ringColor: "secondary.300"
16692
+ }
16693
+ },
16673
16694
  neutral: {
16674
16695
  indicator: {
16675
16696
  color: "grey.400"