@readme/markdown 6.75.0-beta.58 → 6.75.0-beta.59

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.
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+
3
+ import './style.scss';
4
+
5
+ const Card = ({ children }) => <div className="Card">{children}</div>;
6
+
7
+ const CardsGrid = ({ columns = 2, children }) => {
8
+ columns = columns >= 2 ? columns : 2;
9
+ return (
10
+ <div className="CardsGrid" style={{ gridTemplateColumns: `repeat(${columns}, 1fr)` }}>
11
+ {React.Children.map(children, e => (
12
+ <Card>{e}</Card>
13
+ ))}
14
+ </div>
15
+ );
16
+ };
17
+
18
+ export default CardsGrid;
@@ -0,0 +1,12 @@
1
+ .CardsGrid {
2
+ display: grid;
3
+ gap: 20px;
4
+
5
+ .Card {
6
+ padding: 10px;
7
+ backdrop-filter: blur(20px);
8
+ border: 1px solid rgba(black, 0.1);
9
+ border-radius: 5px;
10
+ box-shadow: 0 1px 2px #{rgba(black, 0.05)}, 0 2px 5px #{rgba(black, 0.02)};
11
+ }
12
+ }
@@ -1,5 +1,6 @@
1
1
  export { default as Anchor } from './Anchor';
2
2
  export { default as Callout } from './Callout';
3
+ export { default as Cards } from './CardsGrid';
3
4
  export { default as Code } from './Code';
4
5
  export { default as CodeTabs } from './CodeTabs';
5
6
  export { default as Embed } from './Embed';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './style.scss';
3
+ declare const CardsGrid: ({ columns, children }: {
4
+ columns?: number;
5
+ children: any;
6
+ }) => React.JSX.Element;
7
+ export default CardsGrid;
@@ -1,5 +1,6 @@
1
1
  export { default as Anchor } from './Anchor';
2
2
  export { default as Callout } from './Callout';
3
+ export { default as Cards } from './CardsGrid';
3
4
  export { default as Code } from './Code';
4
5
  export { default as CodeTabs } from './CodeTabs';
5
6
  export { default as Embed } from './Embed';
package/dist/main.css CHANGED
@@ -1,3 +1,4 @@
1
+ .CardsGrid{display:grid;gap:20px}.CardsGrid .Card{padding:10px;backdrop-filter:blur(20px);border:1px solid rgba(0,0,0,.1);border-radius:5px;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05),0 2px 5px rgba(0, 0, 0, 0.02)}
1
2
  /* BASICS */
2
3
 
3
4
  .CodeMirror {
package/dist/main.js CHANGED
@@ -13984,6 +13984,7 @@ __webpack_require__.r(components_namespaceObject);
13984
13984
  __webpack_require__.d(components_namespaceObject, {
13985
13985
  Anchor: () => (components_Anchor),
13986
13986
  Callout: () => (components_Callout),
13987
+ Cards: () => (components_CardsGrid),
13987
13988
  Code: () => (components_Code),
13988
13989
  CodeTabs: () => (components_CodeTabs),
13989
13990
  Embed: () => (components_Embed),
@@ -14211,6 +14212,16 @@ const Callout = (props) => {
14211
14212
  };
14212
14213
  /* harmony default export */ const components_Callout = (Callout);
14213
14214
 
14215
+ ;// CONCATENATED MODULE: ./components/CardsGrid/index.tsx
14216
+
14217
+
14218
+ const Card = ({ children }) => external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Card" }, children);
14219
+ const CardsGrid = ({ columns = 2, children }) => {
14220
+ columns = columns >= 2 ? columns : 2;
14221
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "CardsGrid", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` } }, external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().Children.map(children, e => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Card, null, e)))));
14222
+ };
14223
+ /* harmony default export */ const components_CardsGrid = (CardsGrid);
14224
+
14214
14225
  // EXTERNAL MODULE: ./node_modules/copy-to-clipboard/index.js
14215
14226
  var copy_to_clipboard = __webpack_require__(7965);
14216
14227
  var copy_to_clipboard_default = /*#__PURE__*/__webpack_require__.n(copy_to_clipboard);
@@ -14509,6 +14520,7 @@ function TableOfContents({ children }) {
14509
14520
 
14510
14521
 
14511
14522
 
14523
+
14512
14524
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
14513
14525
  var es_symbol_to_primitive = __webpack_require__(6611);
14514
14526
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
package/dist/main.node.js CHANGED
@@ -8997,6 +8997,7 @@ __webpack_require__.r(components_namespaceObject);
8997
8997
  __webpack_require__.d(components_namespaceObject, {
8998
8998
  Anchor: () => (components_Anchor),
8999
8999
  Callout: () => (components_Callout),
9000
+ Cards: () => (components_CardsGrid),
9000
9001
  Code: () => (components_Code),
9001
9002
  CodeTabs: () => (components_CodeTabs),
9002
9003
  Embed: () => (components_Embed),
@@ -9157,6 +9158,16 @@ const Callout = (props) => {
9157
9158
  };
9158
9159
  /* harmony default export */ const components_Callout = (Callout);
9159
9160
 
9161
+ ;// CONCATENATED MODULE: ./components/CardsGrid/index.tsx
9162
+
9163
+
9164
+ const Card = ({ children }) => external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Card" }, children);
9165
+ const CardsGrid = ({ columns = 2, children }) => {
9166
+ columns = columns >= 2 ? columns : 2;
9167
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "CardsGrid", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` } }, external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().Children.map(children, e => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Card, null, e)))));
9168
+ };
9169
+ /* harmony default export */ const components_CardsGrid = (CardsGrid);
9170
+
9160
9171
  // EXTERNAL MODULE: ./node_modules/copy-to-clipboard/index.js
9161
9172
  var copy_to_clipboard = __webpack_require__(965);
9162
9173
  var copy_to_clipboard_default = /*#__PURE__*/__webpack_require__.n(copy_to_clipboard);
@@ -14399,6 +14410,7 @@ function TableOfContents({ children }) {
14399
14410
 
14400
14411
 
14401
14412
 
14413
+
14402
14414
  ;// CONCATENATED MODULE: ./options.js
14403
14415
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14404
14416
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.75.0-beta.58",
5
+ "version": "6.75.0-beta.59",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",