@gisce/react-ooui 2.0.5 → 2.0.6-rc.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeViewButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/ChangeViewButton.tsx"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChangeViewButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/ChangeViewButton.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,IAAI,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,IAAI,CAAC;CACrB,CAAC;AAiBF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,KAAK,2CAiGrC;AAED,eAAe,gBAAgB,CAAC"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -6729,18 +6729,21 @@ function or(e) {
|
|
|
6729
6729
|
previousView: a
|
|
6730
6730
|
} = e, { t: l, lang: c } = H(he);
|
|
6731
6731
|
function d() {
|
|
6732
|
-
const m = r.map((g, h) =>
|
|
6733
|
-
|
|
6734
|
-
/* @__PURE__ */ n(
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
{
|
|
6738
|
-
|
|
6739
|
-
|
|
6732
|
+
const m = r.map((g, h) => {
|
|
6733
|
+
const p = g.type.charAt(0).toUpperCase() + g.type.slice(1);
|
|
6734
|
+
return /* @__PURE__ */ n(He.Item, { children: /* @__PURE__ */ A(Te, { wrap: !1, children: [
|
|
6735
|
+
/* @__PURE__ */ n(ce, { flex: "none", style: { paddingRight: 20 }, children: Vr(g) }),
|
|
6736
|
+
/* @__PURE__ */ n(ce, { flex: "auto", style: { paddingRight: 20 }, children: g.title || p }),
|
|
6737
|
+
/* @__PURE__ */ n(ce, { flex: "none", children: /* @__PURE__ */ n(
|
|
6738
|
+
Mt,
|
|
6739
|
+
{
|
|
6740
|
+
style: {
|
|
6741
|
+
opacity: t.view_id === g.view_id ? 1 : 0
|
|
6742
|
+
}
|
|
6740
6743
|
}
|
|
6741
|
-
}
|
|
6742
|
-
) })
|
|
6743
|
-
|
|
6744
|
+
) })
|
|
6745
|
+
] }) }, g.view_id || h);
|
|
6746
|
+
});
|
|
6744
6747
|
return /* @__PURE__ */ n(He, { onClick: f, children: /* @__PURE__ */ n(He.ItemGroup, { title: l("viewAs"), children: m }) });
|
|
6745
6748
|
}
|
|
6746
6749
|
function u(m) {
|