@middag-io/react 0.31.1 → 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.
- package/README.md +2 -2
- package/dist-lib/{FormPanelBlock-BW2oi2_O.js → FormPanelBlock-BYyMr-xN.js} +401 -401
- package/dist-lib/{PhoneField-D_djeYhK.js → PhoneField-BF70G_PS.js} +7 -7
- package/dist-lib/app/register-defaults.d.ts +2 -2
- package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
- package/dist-lib/{combobox-yfHHEi6f.js → combobox-BRe2Y-kB.js} +1438 -1196
- package/dist-lib/components/reui/index.d.ts +28 -0
- package/dist-lib/components/reui/index.d.ts.map +1 -0
- package/dist-lib/contracts/block-data/index.d.ts +1 -1
- package/dist-lib/index.d.ts +2 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/middag-react.js +4357 -3835
- package/dist-lib/{resolve-field-error-dbUy6DeX.js → resolve-field-error-DLX1h_6J.js} +1018 -986
- package/package.json +1 -1
|
@@ -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 {
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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: [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* register-defaults — populates the registries with core shells,
|
|
3
|
-
* layouts and the
|
|
3
|
+
* layouts and the standard Community block types available out-of-the-box.
|
|
4
4
|
*
|
|
5
5
|
* The 6 heavy/interactive blocks (chart_panel, flow_editor, condition_tree,
|
|
6
6
|
* sentence_builder, form_builder, kanban_board) and the rich ProductShell +
|
|
7
7
|
* chrome are Pro: they register via @middag-io/react-pro's registerProDefaults()
|
|
8
8
|
* (which overrides the `product` shell fallback). The Community engine ships the
|
|
9
|
-
* ImmersiveShell +
|
|
9
|
+
* ImmersiveShell + the standard Community blocks (form_panel included — heavy deps lazy).
|
|
10
10
|
*
|
|
11
11
|
* IIFE consumers (WordPress) should NOT call this function. Instead, import
|
|
12
12
|
* individual blocks from the barrel and call registerBlock() selectively to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DenseTableBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/DenseTableBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAA4C,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAGpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAKtF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"DenseTableBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/DenseTableBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAA4C,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAGpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQnD,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAKtF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAAG,YAAY,CA8TxF"}
|