@middag-io/react 0.31.2 → 0.31.3

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.
@@ -1,6 +1,6 @@
1
1
  import { i as e, t } from "./chunk-DeC0fbbY.js";
2
2
  import { t as n } from "./button-Bm0X9WO5.js";
3
- import { a as r, c as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d } from "./combobox-yfHHEi6f.js";
3
+ import { f as r, h as i, l as a, m as o, o as s, p as c, s as l, t as u, u as d } from "./combobox-BRe2Y-kB.js";
4
4
  import { t as f } from "./useTranslation-BuyMWJ9T.js";
5
5
  import { t as p, z as m } from "./HugeiconsIcon-CKqc2W1S.js";
6
6
  import { t as h } from "./utils-CpaZ5_iF.js";
@@ -18492,20 +18492,20 @@ function ap({ className: e, ...t }) {
18492
18492
  }
18493
18493
  function op({ disabled: e, value: t, options: f, onChange: p }) {
18494
18494
  let { variant: m, popupClassName: _ } = x(rp), [v, y] = ee(""), b = S(() => v ? f.filter(({ label: e }) => e.toLowerCase().includes(v.toLowerCase())) : f, [f, v]);
18495
- return /* @__PURE__ */ T(d, {
18495
+ return /* @__PURE__ */ T(u, {
18496
18496
  items: b,
18497
18497
  value: t || "",
18498
18498
  onValueChange: (e) => {
18499
18499
  e && p(e);
18500
18500
  },
18501
- children: [/* @__PURE__ */ w(i, { render: /* @__PURE__ */ T(n, {
18501
+ children: [/* @__PURE__ */ w(o, { render: /* @__PURE__ */ T(n, {
18502
18502
  variant: "outline",
18503
18503
  size: m,
18504
18504
  className: h("rounded-s-4xl rounded-e-none flex gap-1 border-e-0 px-2.5 py-0 leading-none hover:bg-transparent focus:z-10 data-pressed:bg-transparent", e && "opacity-50"),
18505
18505
  disabled: e,
18506
18506
  children: [/* @__PURE__ */ w("span", {
18507
18507
  className: "sr-only",
18508
- children: /* @__PURE__ */ w(o, {})
18508
+ children: /* @__PURE__ */ w(i, {})
18509
18509
  }), /* @__PURE__ */ w(sp, {
18510
18510
  country: t,
18511
18511
  countryName: t
@@ -18520,18 +18520,18 @@ function op({ disabled: e, value: t, options: f, onChange: p }) {
18520
18520
  showTrigger: !1,
18521
18521
  className: "border-input focus-visible:border-border rounded-none border-0 px-0 py-2.5 shadow-none ring-0! outline-none! focus-visible:ring-0 focus-visible:ring-offset-0"
18522
18522
  }),
18523
- /* @__PURE__ */ w(u, {}),
18523
+ /* @__PURE__ */ w(c, {}),
18524
18524
  /* @__PURE__ */ w(l, {
18525
18525
  className: "px-4 py-2.5 text-sm",
18526
18526
  children: "No country found."
18527
18527
  }),
18528
- /* @__PURE__ */ w(c, { children: /* @__PURE__ */ w("div", {
18528
+ /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w("div", {
18529
18529
  className: "relative flex max-h-full",
18530
18530
  children: /* @__PURE__ */ w("div", {
18531
18531
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
18532
18532
  children: /* @__PURE__ */ w(g, {
18533
18533
  className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 [&_[data-slot=scroll-area-viewport]]:h-full [&_[data-slot=scroll-area-viewport]]:overscroll-contain",
18534
- children: b.map((e) => e.value ? /* @__PURE__ */ T(r, {
18534
+ children: b.map((e) => e.value ? /* @__PURE__ */ T(d, {
18535
18535
  value: e.value,
18536
18536
  className: "flex items-center gap-2",
18537
18537
  children: [