react-miui 0.4.2 → 0.5.2
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/CHANGELOG.md +17 -0
- package/dist/components/layout/card/Card.d.ts +8 -0
- package/dist/components/layout/card/Card.d.ts.map +1 -0
- package/dist/components/layout/card/Card.js +19 -0
- package/dist/components/layout/card/Card.js.map +1 -0
- package/dist/components/layout/card/Card.module.scss +15 -0
- package/dist/components/layout/section/Section.d.ts +12 -0
- package/dist/components/layout/section/Section.d.ts.map +1 -0
- package/dist/components/layout/section/Section.js +22 -0
- package/dist/components/layout/section/Section.js.map +1 -0
- package/dist/components/layout/section/Section.module.scss +17 -0
- package/dist/components/layout/section/SectionContainer.d.ts +4 -0
- package/dist/components/layout/section/SectionContainer.d.ts.map +1 -0
- package/dist/components/layout/section/SectionContainer.js +13 -0
- package/dist/components/layout/section/SectionContainer.js.map +1 -0
- package/dist/components/layout/section/SectionContainer.module.scss +4 -0
- package/dist/components/ui/button/Button.d.ts +1 -2
- package/dist/components/ui/button/Button.d.ts.map +1 -1
- package/dist/components/ui/button/Button.js +16 -4
- package/dist/components/ui/button/Button.js.map +1 -1
- package/dist/global.scss +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/makeVariants.d.ts +3 -0
- package/dist/utils/makeVariants.d.ts.map +1 -0
- package/dist/utils/makeVariants.js +14 -0
- package/dist/utils/makeVariants.js.map +1 -0
- package/docs/assets/js/search.js +1 -1
- package/docs/assets/js/search.json +1 -1
- package/docs/enums/ICON.html +12 -6
- package/docs/index.html +13 -4
- package/docs/modules/Item.html +6 -3
- package/docs/modules/List.html +6 -3
- package/docs/modules/Section.html +147 -0
- package/docs/modules/StickyHeader.html +7 -4
- package/docs/modules.html +49 -17
- package/docs/pages/Tutorials/Test.html +6 -3
- package/esm/components/layout/card/Card.d.ts +8 -0
- package/esm/components/layout/card/Card.d.ts.map +1 -0
- package/esm/components/layout/card/Card.js +13 -0
- package/esm/components/layout/card/Card.js.map +1 -0
- package/esm/components/layout/card/Card.module.scss +15 -0
- package/esm/components/layout/section/Section.d.ts +12 -0
- package/esm/components/layout/section/Section.d.ts.map +1 -0
- package/esm/components/layout/section/Section.js +16 -0
- package/esm/components/layout/section/Section.js.map +1 -0
- package/esm/components/layout/section/Section.module.scss +17 -0
- package/esm/components/layout/section/SectionContainer.d.ts +4 -0
- package/esm/components/layout/section/SectionContainer.d.ts.map +1 -0
- package/esm/components/layout/section/SectionContainer.js +7 -0
- package/esm/components/layout/section/SectionContainer.js.map +1 -0
- package/esm/components/layout/section/SectionContainer.module.scss +4 -0
- package/esm/components/ui/button/Button.d.ts +1 -2
- package/esm/components/ui/button/Button.d.ts.map +1 -1
- package/esm/components/ui/button/Button.js +4 -4
- package/esm/components/ui/button/Button.js.map +1 -1
- package/esm/global.scss +2 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/utils/makeVariants.d.ts +3 -0
- package/esm/utils/makeVariants.d.ts.map +1 -0
- package/esm/utils/makeVariants.js +11 -0
- package/esm/utils/makeVariants.js.map +1 -0
- package/package.json +2 -2
- package/src/components/layout/card/Card.module.scss +15 -0
- package/src/components/layout/card/Card.tsx +26 -0
- package/src/components/layout/section/Section.module.scss +17 -0
- package/src/components/layout/section/Section.tsx +34 -0
- package/src/components/layout/section/SectionContainer.module.scss +4 -0
- package/src/components/layout/section/SectionContainer.tsx +11 -0
- package/src/components/ui/button/Button.tsx +9 -5
- package/src/demo/Main.module.scss +2 -0
- package/src/demo/components/layout/card/Card.tsx +21 -0
- package/src/demo/components/layout/section/Section.tsx +34 -0
- package/src/demo/components/ui/button/ButtonDemo.tsx +9 -5
- package/src/demo/componentsMap.ts +10 -0
- package/src/global.scss +2 -0
- package/src/index.ts +2 -0
- /package/src/{demo/utils → utils}/makeVariants.ts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import styles from "./Button.module.scss";
|
|
4
|
-
import { makeVariants } from "../../../
|
|
5
|
-
const Button = (props) => {
|
|
4
|
+
import { makeVariants } from "../../../utils/makeVariants.js";
|
|
5
|
+
const Button = ({ className, children, ...props }) => {
|
|
6
6
|
const variants = makeVariants(props.variant);
|
|
7
7
|
const cls = classnames(styles.btn, {
|
|
8
8
|
[styles["btn--inline"]]: variants.includes("inline"),
|
|
9
9
|
[styles["btn--outline"]]: variants.includes("outline"),
|
|
10
|
-
});
|
|
11
|
-
return (React.createElement("button", { className: cls, disabled: props.disabled },
|
|
10
|
+
}, className);
|
|
11
|
+
return (React.createElement("button", { ...props, className: cls, disabled: props.disabled }, children));
|
|
12
12
|
};
|
|
13
13
|
export { Button };
|
|
14
14
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/components/ui/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAM9D,MAAM,MAAM,GAAoE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClH,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAE7C,MAAM,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpD,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;KACzD,EAAE,SAAS,CAAC,CAAC;IAEd,OAAO,CACH,mCACQ,KAAK,EACT,SAAS,EAAE,GAAG,EACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAC1B,QAAQ,CACD,CACZ,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/esm/global.scss
CHANGED
package/esm/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from "./components/form/Checkbox.js";
|
|
2
2
|
export * from "./components/form/Toggle.js";
|
|
3
3
|
export * from "./components/icons/Icon.js";
|
|
4
|
+
export * from "./components/layout/card/Card.js";
|
|
4
5
|
export * from "./components/layout/header/Header.js";
|
|
5
6
|
export * from "./components/layout/header/HeaderIconAction.js";
|
|
6
7
|
export * from "./components/layout/header/StickyHeader.js";
|
|
7
8
|
export * from "./components/layout/list/List.js";
|
|
8
9
|
export * from "./components/layout/list/Item.js";
|
|
10
|
+
export * from "./components/layout/section/Section.js";
|
|
9
11
|
export * from "./components/ui/action/Action.js";
|
|
10
12
|
export * from "./components/ui/action/EqualActions.js";
|
|
11
13
|
export * from "./components/ui/button/Button.js";
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from "./components/form/Checkbox.js";
|
|
2
2
|
export * from "./components/form/Toggle.js";
|
|
3
3
|
export * from "./components/icons/Icon.js";
|
|
4
|
+
export * from "./components/layout/card/Card.js";
|
|
4
5
|
export * from "./components/layout/header/Header.js";
|
|
5
6
|
export * from "./components/layout/header/HeaderIconAction.js";
|
|
6
7
|
export * from "./components/layout/header/StickyHeader.js";
|
|
7
8
|
export * from "./components/layout/list/List.js";
|
|
8
9
|
export * from "./components/layout/list/Item.js";
|
|
10
|
+
export * from "./components/layout/section/Section.js";
|
|
9
11
|
export * from "./components/ui/action/Action.js";
|
|
10
12
|
export * from "./components/ui/action/EqualActions.js";
|
|
11
13
|
export * from "./components/ui/button/Button.js";
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.d.ts","sourceRoot":"","sources":["../../src/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,0DAQjB,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.js","sourceRoot":"","sources":["../../src/utils/makeVariants.ts"],"names":[],"mappings":"AAAA,MAAM,YAAY,GAAG,CAAmB,QAA6B,EAAO,EAAE;IAC1E,IAAI,CAAC,QAAQ,EAAE;QACX,OAAO,EAAE,CAAC;KACb;IACD,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;QAC9B,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAQ,CAAC;KACrD;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAC;AAEF,OAAO,EACH,YAAY,GACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-miui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"author": "Jacek Nowacki",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"husky": "^4.3.0",
|
|
52
52
|
"jest": "^27.0.6",
|
|
53
53
|
"must": "^0.13.4",
|
|
54
|
-
"next": "^11.1.
|
|
54
|
+
"next": "^11.1.3",
|
|
55
55
|
"react": "^17.0.2",
|
|
56
56
|
"react-dom": "^17.0.2",
|
|
57
57
|
"react-use": "^17.2.4",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
|
|
4
|
+
import { makeVariants } from "../../../utils/makeVariants.js";
|
|
5
|
+
import styles from "./Card.module.scss";
|
|
6
|
+
|
|
7
|
+
type Variants = "margin";
|
|
8
|
+
|
|
9
|
+
interface Props {
|
|
10
|
+
variant?: Variants;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const Card: React.FC<Props> = (props) => {
|
|
14
|
+
const v = makeVariants(props.variant);
|
|
15
|
+
const cls = classnames(styles.card, {
|
|
16
|
+
[styles.margin]: v.includes("margin"),
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// @TODO auto wrap some children in Section
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div className={cls}>{props.children}</div>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { Card };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
|
|
4
|
+
import { SectionContainer } from "./SectionContainer.js";
|
|
5
|
+
import { makeVariants } from "../../../utils/makeVariants.js";
|
|
6
|
+
import styles from "./Section.module.scss";
|
|
7
|
+
|
|
8
|
+
interface SubComponents {
|
|
9
|
+
Container: typeof SectionContainer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type Variant = "horizontal" | "vertical";
|
|
13
|
+
|
|
14
|
+
interface Props {
|
|
15
|
+
variant?: Variant | Variant[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const Section: React.FC<Props> & SubComponents = (props) => {
|
|
19
|
+
const v = makeVariants(props.variant);
|
|
20
|
+
|
|
21
|
+
const cls = classnames(styles.section, {
|
|
22
|
+
[styles.vertical]: v.includes("vertical"),
|
|
23
|
+
[styles.horizontal]: v.includes("horizontal"),
|
|
24
|
+
});
|
|
25
|
+
return (
|
|
26
|
+
<section className={cls}>
|
|
27
|
+
{props.children}
|
|
28
|
+
</section>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
Section.Container = SectionContainer;
|
|
33
|
+
|
|
34
|
+
export { Section };
|
|
@@ -2,23 +2,27 @@ import React from "react";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
|
|
4
4
|
import styles from "./Button.module.scss";
|
|
5
|
-
import { makeVariants } from "../../../
|
|
5
|
+
import { makeVariants } from "../../../utils/makeVariants.js";
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
|
-
disabled?: boolean;
|
|
9
8
|
variant?: "inline" | "outline";
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
const Button: React.FC<Props> = (props) => {
|
|
11
|
+
const Button: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & Props> = ({ className, children, ...props }) => {
|
|
13
12
|
const variants = makeVariants(props.variant);
|
|
14
13
|
|
|
15
14
|
const cls = classnames(styles.btn, {
|
|
16
15
|
[styles["btn--inline"]]: variants.includes("inline"),
|
|
17
16
|
[styles["btn--outline"]]: variants.includes("outline"),
|
|
18
|
-
});
|
|
17
|
+
}, className);
|
|
19
18
|
|
|
20
19
|
return (
|
|
21
|
-
<button
|
|
20
|
+
<button
|
|
21
|
+
{...props}
|
|
22
|
+
className={cls}
|
|
23
|
+
disabled={props.disabled}
|
|
24
|
+
>{children}
|
|
25
|
+
</button>
|
|
22
26
|
);
|
|
23
27
|
};
|
|
24
28
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Card } from "../../../../components/layout/card/Card";
|
|
3
|
+
import { Section } from "../../../../components/layout/section/Section";
|
|
4
|
+
|
|
5
|
+
const CardDemo = () => {
|
|
6
|
+
return (
|
|
7
|
+
<Section.Container>
|
|
8
|
+
<Card>
|
|
9
|
+
<Section variant={["vertical", "horizontal"]}>Content</Section>
|
|
10
|
+
</Card>
|
|
11
|
+
<Card>
|
|
12
|
+
<Section variant={["vertical", "horizontal"]}>Content</Section>
|
|
13
|
+
</Card>
|
|
14
|
+
<Card variant={"margin"}>
|
|
15
|
+
<Section variant={["vertical", "horizontal"]}>Content</Section>
|
|
16
|
+
</Card>
|
|
17
|
+
</Section.Container>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { CardDemo };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Section } from "../../../../components/layout/section/Section.js";
|
|
3
|
+
import { List } from "../../../../components/layout/list/List";
|
|
4
|
+
import { Item } from "../../../../components/layout/list/Item";
|
|
5
|
+
|
|
6
|
+
const SectionDemo = () => {
|
|
7
|
+
return (
|
|
8
|
+
<Section.Container>
|
|
9
|
+
<Section>
|
|
10
|
+
<List>
|
|
11
|
+
<List.Header>Section name</List.Header>
|
|
12
|
+
<Item>Item</Item>
|
|
13
|
+
<Item>Item</Item>
|
|
14
|
+
</List>
|
|
15
|
+
</Section>
|
|
16
|
+
<Section>
|
|
17
|
+
<List>
|
|
18
|
+
<List.Header>Section name</List.Header>
|
|
19
|
+
<Item>Item</Item>
|
|
20
|
+
<Item>Item</Item>
|
|
21
|
+
</List>
|
|
22
|
+
</Section>
|
|
23
|
+
<Section>
|
|
24
|
+
<List>
|
|
25
|
+
<List.Header>Section name</List.Header>
|
|
26
|
+
<Item>Item</Item>
|
|
27
|
+
<Item>Item</Item>
|
|
28
|
+
</List>
|
|
29
|
+
</Section>
|
|
30
|
+
</Section.Container>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { SectionDemo };
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
2
|
import { Button } from "../../../../index.js";
|
|
3
3
|
|
|
4
4
|
const ButtonDemo = () => {
|
|
5
|
+
const handleClick = useCallback(() => {
|
|
6
|
+
alert("Clicked");
|
|
7
|
+
}, []);
|
|
8
|
+
|
|
5
9
|
return (
|
|
6
10
|
<div>
|
|
7
|
-
<Button>Basic button</Button>
|
|
11
|
+
<Button onClick={handleClick}>Basic button</Button>
|
|
8
12
|
<br />
|
|
9
|
-
<Button disabled={true}>Disabled button</Button>
|
|
13
|
+
<Button disabled={true} onClick={handleClick}>Disabled button</Button>
|
|
10
14
|
<br />
|
|
11
|
-
<Button variant={"inline"}>Inline button</Button>
|
|
15
|
+
<Button variant={"inline"} onClick={handleClick}>Inline button</Button>
|
|
12
16
|
<br />
|
|
13
|
-
<Button variant={"outline"}>Outline button</Button>
|
|
17
|
+
<Button variant={"outline"} onClick={handleClick}>Outline button</Button>
|
|
14
18
|
</div>
|
|
15
19
|
);
|
|
16
20
|
};
|
|
@@ -27,6 +27,8 @@ import { ItemRatioDemo } from "./components/layout/list/ItemRatio";
|
|
|
27
27
|
import { ItemLabelDemo } from "./components/layout/list/Label";
|
|
28
28
|
import { ListHeaderDemo } from "./components/layout/list/Header";
|
|
29
29
|
import { ValueDemo } from "./components/layout/list/Value";
|
|
30
|
+
import { SectionDemo } from "./components/layout/section/Section";
|
|
31
|
+
import { CardDemo } from "./components/layout/card/Card";
|
|
30
32
|
|
|
31
33
|
interface TheMap {
|
|
32
34
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
@@ -146,6 +148,14 @@ const componentsMap: TheMap = {
|
|
|
146
148
|
},
|
|
147
149
|
},
|
|
148
150
|
},
|
|
151
|
+
Section: {
|
|
152
|
+
name: "Section",
|
|
153
|
+
Component: SectionDemo,
|
|
154
|
+
},
|
|
155
|
+
Card: {
|
|
156
|
+
name: "Card",
|
|
157
|
+
Component: CardDemo,
|
|
158
|
+
},
|
|
149
159
|
Pad: {
|
|
150
160
|
name: "Direction pad",
|
|
151
161
|
Component: DirectionPadDemo,
|
package/src/global.scss
CHANGED
package/src/index.ts
CHANGED
|
@@ -3,11 +3,13 @@ export * from "./components/form/Toggle.js";
|
|
|
3
3
|
|
|
4
4
|
export * from "./components/icons/Icon.js";
|
|
5
5
|
|
|
6
|
+
export * from "./components/layout/card/Card.js";
|
|
6
7
|
export * from "./components/layout/header/Header.js";
|
|
7
8
|
export * from "./components/layout/header/HeaderIconAction.js";
|
|
8
9
|
export * from "./components/layout/header/StickyHeader.js";
|
|
9
10
|
export * from "./components/layout/list/List.js";
|
|
10
11
|
export * from "./components/layout/list/Item.js";
|
|
12
|
+
export * from "./components/layout/section/Section.js";
|
|
11
13
|
|
|
12
14
|
export * from "./components/ui/action/Action.js";
|
|
13
15
|
export * from "./components/ui/action/EqualActions.js";
|
|
File without changes
|