@readme/markdown 7.1.0 → 7.2.0
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/components/Accordion/index.tsx +17 -0
- package/components/Accordion/style.scss +40 -0
- package/components/Cards/index.tsx +25 -0
- package/components/Cards/style.scss +47 -0
- package/components/Tabs/style.scss +1 -0
- package/components/index.ts +2 -1
- package/dist/components/Accordion/index.d.ts +9 -0
- package/dist/components/Cards/index.d.ts +15 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/example/RenderError.d.ts +1 -1
- package/dist/main.css +3 -2
- package/dist/main.js +29 -8
- package/dist/main.node.js +28 -7
- package/package.json +1 -1
- package/components/CardsGrid/index.tsx +0 -18
- package/components/CardsGrid/style.scss +0 -12
- package/dist/components/CardsGrid/index.d.ts +0 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import './style.scss';
|
|
4
|
+
|
|
5
|
+
const Accordion = ({ children, icon, iconColor, title }) => {
|
|
6
|
+
return (
|
|
7
|
+
<details className="Accordion">
|
|
8
|
+
<summary className="Accordion-title">
|
|
9
|
+
{icon && <i className={`Accordion-icon fa ${icon}`} style={{ color: `${iconColor}` }}></i>}
|
|
10
|
+
{title}
|
|
11
|
+
</summary>
|
|
12
|
+
<div className="Accordion-content">{children}</div>
|
|
13
|
+
</details>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default Accordion;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.Accordion {
|
|
2
|
+
background: rgba(var(--color-bg-page-rgb, white), 1);
|
|
3
|
+
border: 1px solid var(--color-border-default, rgba(black, 0.1));
|
|
4
|
+
border-radius: 5px;
|
|
5
|
+
|
|
6
|
+
&-title {
|
|
7
|
+
align-items: center;
|
|
8
|
+
background: white;
|
|
9
|
+
border: 0;
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
color: var(--color-text-default, #384248);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: flex;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
padding: 15px;
|
|
16
|
+
position: relative;
|
|
17
|
+
text-align: left;
|
|
18
|
+
width: 100%;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background: var(--color-bg-hover, #{rgba(black, 0.05)});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.Accordion[open] & {
|
|
25
|
+
border-bottom-left-radius: 0;
|
|
26
|
+
border-bottom-right-radius: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-icon {
|
|
31
|
+
color: var(--project-color-primary, inherit);
|
|
32
|
+
margin-left: 5px;
|
|
33
|
+
margin-right: 5px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-content {
|
|
37
|
+
color: var(--color-text-muted, #4f5a66);
|
|
38
|
+
padding: 10px 15px 0 15px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import './style.scss';
|
|
4
|
+
|
|
5
|
+
export const Card = ({ children, href, icon, iconColor, target, title }) => {
|
|
6
|
+
const Tag = href ? 'a' : 'div';
|
|
7
|
+
return (
|
|
8
|
+
<Tag className="Card" href={href} target={target}>
|
|
9
|
+
{icon && <i className={`Card-icon fa ${icon}`} style={{ color: `${iconColor}` }}></i>}
|
|
10
|
+
{title && <h3 className='Card-title'>{title}</h3>}
|
|
11
|
+
<div className="Card-content">{children}</div>
|
|
12
|
+
</Tag>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const CardsGrid = ({ columns = 2, children }) => {
|
|
17
|
+
columns = columns >= 2 ? columns : 2;
|
|
18
|
+
return (
|
|
19
|
+
<div className="CardsGrid" style={{ gridTemplateColumns: `repeat(${columns}, 1fr)` }}>
|
|
20
|
+
{children}
|
|
21
|
+
</div>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default CardsGrid;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.CardsGrid {
|
|
2
|
+
display: grid;
|
|
3
|
+
gap: 20px;
|
|
4
|
+
|
|
5
|
+
.Card {
|
|
6
|
+
padding: 15px;
|
|
7
|
+
padding-bottom: 0;
|
|
8
|
+
backdrop-filter: blur(20px);
|
|
9
|
+
background: rgba(var(--color-bg-page-rgb, white), 1);
|
|
10
|
+
border: 1px solid var(--color-border-default, rgba(black, 0.1));
|
|
11
|
+
border-radius: 5px;
|
|
12
|
+
box-shadow: 0 1px 2px #{rgba(black, 0.05)}, 0 2px 5px #{rgba(black, 0.02)};
|
|
13
|
+
|
|
14
|
+
&-top {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-icon {
|
|
20
|
+
color: var(--project-color-primary, inherit);
|
|
21
|
+
font-size: 20px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-title {
|
|
25
|
+
color: var(--color-text-default, #384248);
|
|
26
|
+
|
|
27
|
+
&:first-child {
|
|
28
|
+
margin-top: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-content {
|
|
33
|
+
color: var(--color-text-muted, #4f5a66);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
a.Card:not([href=""]) {
|
|
38
|
+
text-decoration: none;
|
|
39
|
+
color: inherit;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
background: var(--color-bg-hover, #{rgba(black, 0.05)});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
}
|
package/components/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export { default as Accordion } from './Accordion';
|
|
1
2
|
export { default as Anchor } from './Anchor';
|
|
2
3
|
export { default as Callout } from './Callout';
|
|
3
|
-
export { default as Cards } from './
|
|
4
|
+
export { default as Cards, Card } from './Cards';
|
|
4
5
|
export { default as Code } from './Code';
|
|
5
6
|
export { default as CodeTabs } from './CodeTabs';
|
|
6
7
|
export { default as Embed } from './Embed';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export declare const Card: ({ children, href, icon, iconColor, target, title }: {
|
|
4
|
+
children: any;
|
|
5
|
+
href: any;
|
|
6
|
+
icon: any;
|
|
7
|
+
iconColor: any;
|
|
8
|
+
target: any;
|
|
9
|
+
title: any;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
declare const CardsGrid: ({ columns, children }: {
|
|
12
|
+
columns?: number;
|
|
13
|
+
children: any;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export default CardsGrid;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export { default as Accordion } from './Accordion';
|
|
1
2
|
export { default as Anchor } from './Anchor';
|
|
2
3
|
export { default as Callout } from './Callout';
|
|
3
|
-
export { default as Cards } from './
|
|
4
|
+
export { default as Cards, Card } from './Cards';
|
|
4
5
|
export { default as Code } from './Code';
|
|
5
6
|
export { default as CodeTabs } from './CodeTabs';
|
|
6
7
|
export { default as Embed } from './Embed';
|
|
@@ -18,6 +18,6 @@ declare class RenderError extends React.Component<PropsWithChildren<Props>, Stat
|
|
|
18
18
|
componentDidCatch(error: any, info: {
|
|
19
19
|
componentStack: any;
|
|
20
20
|
}): void;
|
|
21
|
-
render(): string | number | boolean |
|
|
21
|
+
render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode>;
|
|
22
22
|
}
|
|
23
23
|
export default RenderError;
|
package/dist/main.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
.Accordion{background:rgba(var(--color-bg-page-rgb, white), 1);border:1px solid var(--color-border-default, rgba(0, 0, 0, 0.1));border-radius:5px}.Accordion-title{align-items:center;background:#fff;border:0;border-radius:5px;color:var(--color-text-default, #384248);cursor:pointer;display:flex;font-size:16px;padding:15px;position:relative;text-align:left;width:100%}.Accordion-title:hover{background:var(--color-bg-hover, rgba(0, 0, 0, 0.05))}.Accordion[open] .Accordion-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.Accordion-icon{color:var(--project-color-primary, inherit);margin-left:5px;margin-right:5px}.Accordion-content{color:var(--color-text-muted, #4f5a66);padding:10px 15px 0 15px}
|
|
2
|
+
.CardsGrid{display:grid;gap:20px}.CardsGrid .Card{padding:15px;padding-bottom:0;backdrop-filter:blur(20px);background:rgba(var(--color-bg-page-rgb, white), 1);border:1px solid var(--color-border-default, rgba(0, 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)}.CardsGrid .Card-top{display:inline-flex;flex-direction:row}.CardsGrid .Card-icon{color:var(--project-color-primary, inherit);font-size:20px}.CardsGrid .Card-title{color:var(--color-text-default, #384248)}.CardsGrid .Card-title:first-child{margin-top:0}.CardsGrid .Card-content{color:var(--color-text-muted, #4f5a66)}.CardsGrid a.Card:not([href=""]){text-decoration:none;color:inherit}.CardsGrid a.Card:not([href=""]):hover{background:var(--color-bg-hover, rgba(0, 0, 0, 0.05))}
|
|
3
|
+
.TabGroup-nav{border-bottom:solid var(--color-border-default, rgba(0, 0, 0, 0.1));margin-bottom:15px}.TabGroup-tab{background:none;border:0;color:var(--color-text-minimum, #637288);cursor:pointer;font-weight:600;padding:10px}.TabGroup-tab_active{background:none;border:0;border-bottom:solid var(--blue, #118cfd);color:var(--blue, #118cfd);font-weight:600;padding:10px;margin-bottom:-2px}.TabGroup-tab:hover{color:var(--color-text-muted, #4f5a66)}
|
|
3
4
|
/* BASICS */
|
|
4
5
|
|
|
5
6
|
.CodeMirror {
|
package/dist/main.js
CHANGED
|
@@ -13254,9 +13254,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13254
13254
|
var components_namespaceObject = {};
|
|
13255
13255
|
__webpack_require__.r(components_namespaceObject);
|
|
13256
13256
|
__webpack_require__.d(components_namespaceObject, {
|
|
13257
|
+
Accordion: () => (components_Accordion),
|
|
13257
13258
|
Anchor: () => (components_Anchor),
|
|
13258
13259
|
Callout: () => (components_Callout),
|
|
13259
|
-
|
|
13260
|
+
Card: () => (Card),
|
|
13261
|
+
Cards: () => (Cards),
|
|
13260
13262
|
Code: () => (components_Code),
|
|
13261
13263
|
CodeTabs: () => (components_CodeTabs),
|
|
13262
13264
|
Embed: () => (components_Embed),
|
|
@@ -13298,6 +13300,21 @@ __webpack_require__.d(util_types_namespaceObject, {
|
|
|
13298
13300
|
spaceSeparated: () => (spaceSeparated)
|
|
13299
13301
|
});
|
|
13300
13302
|
|
|
13303
|
+
// EXTERNAL MODULE: external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React","umd":"react"}
|
|
13304
|
+
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_ = __webpack_require__(1307);
|
|
13305
|
+
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default = /*#__PURE__*/__webpack_require__.n(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_);
|
|
13306
|
+
;// CONCATENATED MODULE: ./components/Accordion/index.tsx
|
|
13307
|
+
|
|
13308
|
+
|
|
13309
|
+
const Accordion = ({ children, icon, iconColor, title }) => {
|
|
13310
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("details", { className: "Accordion" },
|
|
13311
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("summary", { className: "Accordion-title" },
|
|
13312
|
+
icon && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("i", { className: `Accordion-icon fa ${icon}`, style: { color: `${iconColor}` } }),
|
|
13313
|
+
title),
|
|
13314
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Accordion-content" }, children)));
|
|
13315
|
+
};
|
|
13316
|
+
/* harmony default export */ const components_Accordion = (Accordion);
|
|
13317
|
+
|
|
13301
13318
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
13302
13319
|
var es_symbol = __webpack_require__(3534);
|
|
13303
13320
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
@@ -13340,9 +13357,6 @@ var es_regexp_exec = __webpack_require__(7136);
|
|
|
13340
13357
|
var es_string_match = __webpack_require__(8636);
|
|
13341
13358
|
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
13342
13359
|
var prop_types = __webpack_require__(5556);
|
|
13343
|
-
// EXTERNAL MODULE: external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React","umd":"react"}
|
|
13344
|
-
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_ = __webpack_require__(1307);
|
|
13345
|
-
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default = /*#__PURE__*/__webpack_require__.n(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_);
|
|
13346
13360
|
;// CONCATENATED MODULE: ./contexts/BaseUrl.js
|
|
13347
13361
|
|
|
13348
13362
|
var BaseUrlContext = /*#__PURE__*/external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createContext('/');
|
|
@@ -13483,15 +13497,21 @@ const Callout = (props) => {
|
|
|
13483
13497
|
};
|
|
13484
13498
|
/* harmony default export */ const components_Callout = (Callout);
|
|
13485
13499
|
|
|
13486
|
-
;// CONCATENATED MODULE: ./components/
|
|
13500
|
+
;// CONCATENATED MODULE: ./components/Cards/index.tsx
|
|
13487
13501
|
|
|
13488
13502
|
|
|
13489
|
-
const Card = ({ children
|
|
13503
|
+
const Card = ({ children, href, icon, iconColor, target, title }) => {
|
|
13504
|
+
const Tag = href ? 'a' : 'div';
|
|
13505
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Tag, { className: "Card", href: href, target: target },
|
|
13506
|
+
icon && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("i", { className: `Card-icon fa ${icon}`, style: { color: `${iconColor}` } }),
|
|
13507
|
+
title && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("h3", { className: 'Card-title' }, title),
|
|
13508
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Card-content" }, children)));
|
|
13509
|
+
};
|
|
13490
13510
|
const CardsGrid = ({ columns = 2, children }) => {
|
|
13491
13511
|
columns = columns >= 2 ? columns : 2;
|
|
13492
|
-
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "CardsGrid", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` } },
|
|
13512
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "CardsGrid", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` } }, children));
|
|
13493
13513
|
};
|
|
13494
|
-
/* harmony default export */ const
|
|
13514
|
+
/* harmony default export */ const Cards = (CardsGrid);
|
|
13495
13515
|
|
|
13496
13516
|
// EXTERNAL MODULE: ./node_modules/copy-to-clipboard/index.js
|
|
13497
13517
|
var copy_to_clipboard = __webpack_require__(7965);
|
|
@@ -13808,6 +13828,7 @@ function TableOfContents({ children }) {
|
|
|
13808
13828
|
|
|
13809
13829
|
|
|
13810
13830
|
|
|
13831
|
+
|
|
13811
13832
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.to-primitive.js
|
|
13812
13833
|
var es_symbol_to_primitive = __webpack_require__(6611);
|
|
13813
13834
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
package/dist/main.node.js
CHANGED
|
@@ -7801,9 +7801,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
7801
7801
|
var components_namespaceObject = {};
|
|
7802
7802
|
__webpack_require__.r(components_namespaceObject);
|
|
7803
7803
|
__webpack_require__.d(components_namespaceObject, {
|
|
7804
|
+
Accordion: () => (components_Accordion),
|
|
7804
7805
|
Anchor: () => (components_Anchor),
|
|
7805
7806
|
Callout: () => (components_Callout),
|
|
7806
|
-
|
|
7807
|
+
Card: () => (Card),
|
|
7808
|
+
Cards: () => (Cards),
|
|
7807
7809
|
Code: () => (components_Code),
|
|
7808
7810
|
CodeTabs: () => (components_CodeTabs),
|
|
7809
7811
|
Embed: () => (components_Embed),
|
|
@@ -7845,11 +7847,23 @@ __webpack_require__.d(util_types_namespaceObject, {
|
|
|
7845
7847
|
spaceSeparated: () => (spaceSeparated)
|
|
7846
7848
|
});
|
|
7847
7849
|
|
|
7848
|
-
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
7849
|
-
var prop_types = __webpack_require__(556);
|
|
7850
7850
|
// EXTERNAL MODULE: external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React","umd":"react"}
|
|
7851
7851
|
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_ = __webpack_require__(137);
|
|
7852
7852
|
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default = /*#__PURE__*/__webpack_require__.n(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_);
|
|
7853
|
+
;// CONCATENATED MODULE: ./components/Accordion/index.tsx
|
|
7854
|
+
|
|
7855
|
+
|
|
7856
|
+
const Accordion = ({ children, icon, iconColor, title }) => {
|
|
7857
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("details", { className: "Accordion" },
|
|
7858
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("summary", { className: "Accordion-title" },
|
|
7859
|
+
icon && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("i", { className: `Accordion-icon fa ${icon}`, style: { color: `${iconColor}` } }),
|
|
7860
|
+
title),
|
|
7861
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Accordion-content" }, children)));
|
|
7862
|
+
};
|
|
7863
|
+
/* harmony default export */ const components_Accordion = (Accordion);
|
|
7864
|
+
|
|
7865
|
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
7866
|
+
var prop_types = __webpack_require__(556);
|
|
7853
7867
|
;// CONCATENATED MODULE: ./contexts/BaseUrl.js
|
|
7854
7868
|
|
|
7855
7869
|
const BaseUrlContext = /*#__PURE__*/external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createContext('/');
|
|
@@ -7963,15 +7977,21 @@ const Callout = (props) => {
|
|
|
7963
7977
|
};
|
|
7964
7978
|
/* harmony default export */ const components_Callout = (Callout);
|
|
7965
7979
|
|
|
7966
|
-
;// CONCATENATED MODULE: ./components/
|
|
7980
|
+
;// CONCATENATED MODULE: ./components/Cards/index.tsx
|
|
7967
7981
|
|
|
7968
7982
|
|
|
7969
|
-
const Card = ({ children
|
|
7983
|
+
const Card = ({ children, href, icon, iconColor, target, title }) => {
|
|
7984
|
+
const Tag = href ? 'a' : 'div';
|
|
7985
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement(Tag, { className: "Card", href: href, target: target },
|
|
7986
|
+
icon && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("i", { className: `Card-icon fa ${icon}`, style: { color: `${iconColor}` } }),
|
|
7987
|
+
title && external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("h3", { className: 'Card-title' }, title),
|
|
7988
|
+
external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "Card-content" }, children)));
|
|
7989
|
+
};
|
|
7970
7990
|
const CardsGrid = ({ columns = 2, children }) => {
|
|
7971
7991
|
columns = columns >= 2 ? columns : 2;
|
|
7972
|
-
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "CardsGrid", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` } },
|
|
7992
|
+
return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default().createElement("div", { className: "CardsGrid", style: { gridTemplateColumns: `repeat(${columns}, 1fr)` } }, children));
|
|
7973
7993
|
};
|
|
7974
|
-
/* harmony default export */ const
|
|
7994
|
+
/* harmony default export */ const Cards = (CardsGrid);
|
|
7975
7995
|
|
|
7976
7996
|
// EXTERNAL MODULE: ./node_modules/copy-to-clipboard/index.js
|
|
7977
7997
|
var copy_to_clipboard = __webpack_require__(965);
|
|
@@ -13232,6 +13252,7 @@ function TableOfContents({ children }) {
|
|
|
13232
13252
|
|
|
13233
13253
|
|
|
13234
13254
|
|
|
13255
|
+
|
|
13235
13256
|
;// CONCATENATED MODULE: ./options.js
|
|
13236
13257
|
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; }
|
|
13237
13258
|
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
|
@@ -1,18 +0,0 @@
|
|
|
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;
|