@middag-io/react 0.40.0 → 0.40.1

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.
@@ -7914,10 +7914,16 @@ function Sg({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
7914
7914
  "aria-required": o || void 0,
7915
7915
  "aria-describedby": d,
7916
7916
  children: /* @__PURE__ */ H(Np, { placeholder: i ?? u("middag.ui.form.select_placeholder") })
7917
- }), /* @__PURE__ */ H(Fp, { children: r.map((e) => /* @__PURE__ */ H(Lp, {
7918
- value: e.value,
7919
- children: e.label
7920
- }, e.value)) })]
7917
+ }), /* @__PURE__ */ H(Fp, {
7918
+ position: "popper",
7919
+ sideOffset: 4,
7920
+ align: "start",
7921
+ className: "w-full",
7922
+ children: r.map((e) => /* @__PURE__ */ H(Lp, {
7923
+ value: e.value,
7924
+ children: e.label
7925
+ }, e.value))
7926
+ })]
7921
7927
  });
7922
7928
  }
7923
7929
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Bt as e, F as t, K as n, Q as r, Rt as i, Y as a, Z as o, a as s, at as c, et as l, i as u, it as d, n as f, nt as p, o as m, ot as h, r as g, s as _, st as v, t as y, ut as b, zt as x } from "./FormField-DnDEEbyM.js";
1
+ import { Bt as e, F as t, K as n, Q as r, Rt as i, Y as a, Z as o, a as s, at as c, et as l, i as u, it as d, n as f, nt as p, o as m, ot as h, r as g, s as _, st as v, t as y, ut as b, zt as x } from "./FormField-BDWkyFcl.js";
2
2
  import { t as S } from "./button-CxyXN3nw.js";
3
3
  import { t as ee } from "./useTranslation-D-tjJhTn.js";
4
4
  import { t as C } from "./utils-CpaZ5_iF.js";
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../src/base/form/fields/SelectField.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW1C,MAAM,WAAW,YAAY;IA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U,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,KAAK,EACL,QAAQ,EACR,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,gBAAgB,GAAG,YAAY,CA6BjC"}
@@ -772,10 +772,16 @@ function We({ id: e, value: t, onChange: n, options: r, placeholder: i, disabled
772
772
  "aria-required": o || void 0,
773
773
  "aria-describedby": d,
774
774
  children: /* @__PURE__ */ K(C, { placeholder: i ?? u("middag.ui.form.select_placeholder") })
775
- }), /* @__PURE__ */ K(b, { children: r.map((e) => /* @__PURE__ */ K(x, {
776
- value: e.value,
777
- children: e.label
778
- }, e.value)) })]
775
+ }), /* @__PURE__ */ K(b, {
776
+ position: "popper",
777
+ sideOffset: 4,
778
+ align: "start",
779
+ className: "w-full",
780
+ children: r.map((e) => /* @__PURE__ */ K(x, {
781
+ value: e.value,
782
+ children: e.label
783
+ }, e.value))
784
+ })]
779
785
  });
780
786
  }
781
787
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { i as e, n as t, r as n, t as r } from "./chunk-DeC0fbbY.js";
2
- import { $ as i, A as a, At as o, B as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, M as w, Mt as T, N as E, Nt as D, O, Ot as k, P as ee, Pt as A, Q as te, R as j, S as ne, St as re, T as ie, Tt as ae, U as oe, V as se, W as ce, X as le, Y as ue, Z as de, _ as fe, _t as pe, a as me, at as he, b as ge, bt as _e, c as ve, ct as ye, d as be, dt as xe, et as M, f as Se, ft as Ce, g as we, gt as Te, h as Ee, ht as De, it as Oe, j as ke, jt as Ae, k as je, kt as N, l as Me, lt as Ne, m as Pe, mt as Fe, n as Ie, nt as Le, o as Re, ot as ze, p as Be, pt as Ve, q as He, rt as Ue, s as We, st as Ge, t as Ke, tt as qe, u as Je, ut as Ye, v as Xe, vt as Ze, w as Qe, wt as P, x as $e, xt as et, y as tt, yt as nt, z as rt } from "./FormField-DnDEEbyM.js";
2
+ import { $ as i, A as a, At as o, B as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, M as w, Mt as T, N as E, Nt as D, O, Ot as k, P as ee, Pt as A, Q as te, R as j, S as ne, St as re, T as ie, Tt as ae, U as oe, V as se, W as ce, X as le, Y as ue, Z as de, _ as fe, _t as pe, a as me, at as he, b as ge, bt as _e, c as ve, ct as ye, d as be, dt as xe, et as M, f as Se, ft as Ce, g as we, gt as Te, h as Ee, ht as De, it as Oe, j as ke, jt as Ae, k as je, kt as N, l as Me, lt as Ne, m as Pe, mt as Fe, n as Ie, nt as Le, o as Re, ot as ze, p as Be, pt as Ve, q as He, rt as Ue, s as We, st as Ge, t as Ke, tt as qe, u as Je, ut as Ye, v as Xe, vt as Ze, w as Qe, wt as P, x as $e, xt as et, y as tt, yt as nt, z as rt } from "./FormField-BDWkyFcl.js";
3
3
  import { a as it, c as at, d as ot, f as st, g as ct, i as lt, l as ut, m as dt, n as ft, o as F, p as pt, r as mt, t as ht, u as gt } from "./button-CxyXN3nw.js";
4
4
  import { a as _t, c as vt, d as yt, f as bt, g as xt, h as St, i as Ct, it as wt, l as Tt, m as Et, n as Dt, o as Ot, ot as kt, p as At, r as jt, rt as Mt, s as Nt, st as Pt, t as Ft, u as It } from "./combobox-RfE54yDL.js";
5
5
  import { t as Lt } from "./chevron-right-t5ALKicc.js";
@@ -24542,7 +24542,7 @@ function LX({ block: e }) {
24542
24542
  }
24543
24543
  //#endregion
24544
24544
  //#region src/base/blocks/FormPanelBlock.lazy.tsx
24545
- var RX = Lr(() => import("./FormPanelBlock-C2AneajG.js").then((e) => ({ default: e.FormPanelBlock })));
24545
+ var RX = Lr(() => import("./FormPanelBlock-CuXijdeH.js").then((e) => ({ default: e.FormPanelBlock })));
24546
24546
  function zX() {
24547
24547
  return /* @__PURE__ */ K("div", {
24548
24548
  className: "mx-auto max-w-[720px] space-y-6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middag-io/react",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "type": "module",
5
5
  "description": "MIDDAG shared React UI library for Moodle, WordPress and other Inertia hosts",
6
6
  "license": "Apache-2.0",