@local-civics/mgmt-ui 0.1.198 → 0.1.199
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/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3831,7 +3831,14 @@ function Stack(props) {
|
|
|
3831
3831
|
const { items, hideBadge, hideLesson } = props;
|
|
3832
3832
|
if (!items.length)
|
|
3833
3833
|
return null;
|
|
3834
|
-
|
|
3834
|
+
const visibleColumns = [
|
|
3835
|
+
true,
|
|
3836
|
+
!hideBadge,
|
|
3837
|
+
!hideLesson,
|
|
3838
|
+
true
|
|
3839
|
+
].filter(Boolean).length;
|
|
3840
|
+
const span = 12 / visibleColumns;
|
|
3841
|
+
return /* @__PURE__ */ React__namespace.createElement(core.Grid, { gutter: "md", sx: { padding: 20, minWidth: 700 } }, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Link")), !hideBadge && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Badge")), !hideLesson && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Lesson")), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, { weight: "bold" }, "Question")), items.map((row, i) => /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, { key: i }, /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(
|
|
3835
3842
|
core.Button,
|
|
3836
3843
|
{
|
|
3837
3844
|
component: "a",
|
|
@@ -3842,7 +3849,7 @@ function Stack(props) {
|
|
|
3842
3849
|
variant: "light"
|
|
3843
3850
|
},
|
|
3844
3851
|
"View File"
|
|
3845
|
-
)), !hideBadge && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span
|
|
3852
|
+
)), !hideBadge && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, null, row.badgeName)), !hideLesson && /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, null, row.lessonName)), /* @__PURE__ */ React__namespace.createElement(core.Grid.Col, { span }, /* @__PURE__ */ React__namespace.createElement(core.Text, null, row.question)))));
|
|
3846
3853
|
}
|
|
3847
3854
|
|
|
3848
3855
|
var __defProp$1 = Object.defineProperty;
|