@gpichot/spectacle-deck 1.1.5 → 1.1.6

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.
Files changed (3) hide show
  1. package/index.cjs +2 -6
  2. package/index.mjs +2 -6
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -67,7 +67,6 @@ var Margins = {
67
67
  };
68
68
  function getHeading(children) {
69
69
  const allChild = import_react.default.Children.toArray(children);
70
- console.log(allChild);
71
70
  if (allChild.length === 0)
72
71
  return [null, allChild];
73
72
  const [candidate, ...rest] = allChild;
@@ -128,7 +127,6 @@ var CenteredLayoutContent = import_styled_components.default.div`
128
127
  }
129
128
  `;
130
129
  var CenteredLayout = (props) => {
131
- console.log(props);
132
130
  const [heading, rest] = getHeading(props.children);
133
131
  return /* @__PURE__ */ import_react2.default.createElement(
134
132
  "div",
@@ -703,7 +701,7 @@ var SidedImageLayout = ({
703
701
  "div",
704
702
  {
705
703
  style: {
706
- flex: 1,
704
+ flex: "6 0",
707
705
  display: "flex",
708
706
  flexDirection: "column",
709
707
  justifyContent: "center",
@@ -716,8 +714,7 @@ var SidedImageLayout = ({
716
714
  "div",
717
715
  {
718
716
  style: {
719
- flex: 1,
720
- maxWidth: "40vw",
717
+ flex: "4 0",
721
718
  display: "flex",
722
719
  flexDirection: "column",
723
720
  justifyContent: "center",
@@ -1662,7 +1659,6 @@ function Layout({
1662
1659
  }) {
1663
1660
  const layout = (frontmatter == null ? void 0 : frontmatter.layout) || "default";
1664
1661
  const Layout2 = layout in layouts_default ? layouts_default[layout] : null;
1665
- console.log(layout, Layout2);
1666
1662
  if (layout && !Layout2) {
1667
1663
  console.warn(`Layout ${layout} not found`);
1668
1664
  }
package/index.mjs CHANGED
@@ -16,7 +16,6 @@ var Margins = {
16
16
  };
17
17
  function getHeading(children) {
18
18
  const allChild = React.Children.toArray(children);
19
- console.log(allChild);
20
19
  if (allChild.length === 0)
21
20
  return [null, allChild];
22
21
  const [candidate, ...rest] = allChild;
@@ -77,7 +76,6 @@ var CenteredLayoutContent = styled.div`
77
76
  }
78
77
  `;
79
78
  var CenteredLayout = (props) => {
80
- console.log(props);
81
79
  const [heading, rest] = getHeading(props.children);
82
80
  return /* @__PURE__ */ React2.createElement(
83
81
  "div",
@@ -652,7 +650,7 @@ var SidedImageLayout = ({
652
650
  "div",
653
651
  {
654
652
  style: {
655
- flex: 1,
653
+ flex: "6 0",
656
654
  display: "flex",
657
655
  flexDirection: "column",
658
656
  justifyContent: "center",
@@ -665,8 +663,7 @@ var SidedImageLayout = ({
665
663
  "div",
666
664
  {
667
665
  style: {
668
- flex: 1,
669
- maxWidth: "40vw",
666
+ flex: "4 0",
670
667
  display: "flex",
671
668
  flexDirection: "column",
672
669
  justifyContent: "center",
@@ -1615,7 +1612,6 @@ function Layout({
1615
1612
  }) {
1616
1613
  const layout = (frontmatter == null ? void 0 : frontmatter.layout) || "default";
1617
1614
  const Layout2 = layout in layouts_default ? layouts_default[layout] : null;
1618
- console.log(layout, Layout2);
1619
1615
  if (layout && !Layout2) {
1620
1616
  console.warn(`Layout ${layout} not found`);
1621
1617
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpichot/spectacle-deck",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "index.cjs",