@stokelp/ui 2.37.5 → 2.38.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
@@ -228,7 +228,7 @@ const KL = m4(f(eC), "list"), x4 = ({ children: h, when: p, wrapper: o }) => p =
228
228
  ] });
229
229
  function Xa({ renderTrigger: h, placeholder: p }) {
230
230
  const o = o9(), w = o.value && o.value.length > 0 ? o.collection.findMany(o.value) : [];
231
- return w.length === 0 ? /* @__PURE__ */ C(r9, { truncate: !0, placeholder: p }) : /* @__PURE__ */ C(r9, { placeholder: p, children: w.map((R) => /* @__PURE__ */ C("span", { children: h(R) }, R.value)) });
231
+ return w.length === 0 ? /* @__PURE__ */ C(r9, { className: "custom", truncate: !0, placeholder: p }) : /* @__PURE__ */ C(r9, { className: "custom", placeholder: p, children: w.map((R) => /* @__PURE__ */ C("span", { children: h(R) }, R.value)) });
232
232
  }
233
233
  function ja({ item: h, isMultiple: p, renderItem: o }) {
234
234
  const w = od();
@@ -18889,9 +18889,11 @@ const { withProvider: qu, withContext: R5 } = K(oa, {
18889
18889
  position: "relative"
18890
18890
  },
18891
18891
  valueText: {
18892
+ "&.custom": {
18893
+ display: "inline-flex",
18894
+ gap: "space-8"
18895
+ },
18892
18896
  flex: 1,
18893
- display: "flex",
18894
- gap: "space-8",
18895
18897
  pr: "space-28",
18896
18898
  textAlign: "left"
18897
18899
  },
@@ -19737,6 +19739,18 @@ const { withProvider: qu, withContext: R5 } = K(oa, {
19737
19739
  bg: "decorative.brown.mid",
19738
19740
  color: "white"
19739
19741
  }
19742
+ },
19743
+ error: {
19744
+ root: {
19745
+ bg: "error.500",
19746
+ color: "white"
19747
+ }
19748
+ },
19749
+ warning: {
19750
+ root: {
19751
+ bg: "warning.500",
19752
+ color: "white"
19753
+ }
19740
19754
  }
19741
19755
  }
19742
19756
  }