@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.mjs
CHANGED
|
@@ -3811,7 +3811,14 @@ function Stack(props) {
|
|
|
3811
3811
|
const { items, hideBadge, hideLesson } = props;
|
|
3812
3812
|
if (!items.length)
|
|
3813
3813
|
return null;
|
|
3814
|
-
|
|
3814
|
+
const visibleColumns = [
|
|
3815
|
+
true,
|
|
3816
|
+
!hideBadge,
|
|
3817
|
+
!hideLesson,
|
|
3818
|
+
true
|
|
3819
|
+
].filter(Boolean).length;
|
|
3820
|
+
const span = 12 / visibleColumns;
|
|
3821
|
+
return /* @__PURE__ */ React.createElement(Grid, { gutter: "md", sx: { padding: 20, minWidth: 700 } }, /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, { weight: "bold" }, "Link")), !hideBadge && /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, { weight: "bold" }, "Badge")), !hideLesson && /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, { weight: "bold" }, "Lesson")), /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, { weight: "bold" }, "Question")), items.map((row, i) => /* @__PURE__ */ React.createElement(React.Fragment, { key: i }, /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(
|
|
3815
3822
|
Button,
|
|
3816
3823
|
{
|
|
3817
3824
|
component: "a",
|
|
@@ -3822,7 +3829,7 @@ function Stack(props) {
|
|
|
3822
3829
|
variant: "light"
|
|
3823
3830
|
},
|
|
3824
3831
|
"View File"
|
|
3825
|
-
)), !hideBadge && /* @__PURE__ */ React.createElement(Grid.Col, { span
|
|
3832
|
+
)), !hideBadge && /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, null, row.badgeName)), !hideLesson && /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, null, row.lessonName)), /* @__PURE__ */ React.createElement(Grid.Col, { span }, /* @__PURE__ */ React.createElement(Text, null, row.question)))));
|
|
3826
3833
|
}
|
|
3827
3834
|
|
|
3828
3835
|
var __defProp$1 = Object.defineProperty;
|