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.
Files changed (83) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/components/layout/card/Card.d.ts +8 -0
  3. package/dist/components/layout/card/Card.d.ts.map +1 -0
  4. package/dist/components/layout/card/Card.js +19 -0
  5. package/dist/components/layout/card/Card.js.map +1 -0
  6. package/dist/components/layout/card/Card.module.scss +15 -0
  7. package/dist/components/layout/section/Section.d.ts +12 -0
  8. package/dist/components/layout/section/Section.d.ts.map +1 -0
  9. package/dist/components/layout/section/Section.js +22 -0
  10. package/dist/components/layout/section/Section.js.map +1 -0
  11. package/dist/components/layout/section/Section.module.scss +17 -0
  12. package/dist/components/layout/section/SectionContainer.d.ts +4 -0
  13. package/dist/components/layout/section/SectionContainer.d.ts.map +1 -0
  14. package/dist/components/layout/section/SectionContainer.js +13 -0
  15. package/dist/components/layout/section/SectionContainer.js.map +1 -0
  16. package/dist/components/layout/section/SectionContainer.module.scss +4 -0
  17. package/dist/components/ui/button/Button.d.ts +1 -2
  18. package/dist/components/ui/button/Button.d.ts.map +1 -1
  19. package/dist/components/ui/button/Button.js +16 -4
  20. package/dist/components/ui/button/Button.js.map +1 -1
  21. package/dist/global.scss +2 -0
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +2 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/utils/makeVariants.d.ts +3 -0
  27. package/dist/utils/makeVariants.d.ts.map +1 -0
  28. package/dist/utils/makeVariants.js +14 -0
  29. package/dist/utils/makeVariants.js.map +1 -0
  30. package/docs/assets/js/search.js +1 -1
  31. package/docs/assets/js/search.json +1 -1
  32. package/docs/enums/ICON.html +12 -6
  33. package/docs/index.html +13 -4
  34. package/docs/modules/Item.html +6 -3
  35. package/docs/modules/List.html +6 -3
  36. package/docs/modules/Section.html +147 -0
  37. package/docs/modules/StickyHeader.html +7 -4
  38. package/docs/modules.html +49 -17
  39. package/docs/pages/Tutorials/Test.html +6 -3
  40. package/esm/components/layout/card/Card.d.ts +8 -0
  41. package/esm/components/layout/card/Card.d.ts.map +1 -0
  42. package/esm/components/layout/card/Card.js +13 -0
  43. package/esm/components/layout/card/Card.js.map +1 -0
  44. package/esm/components/layout/card/Card.module.scss +15 -0
  45. package/esm/components/layout/section/Section.d.ts +12 -0
  46. package/esm/components/layout/section/Section.d.ts.map +1 -0
  47. package/esm/components/layout/section/Section.js +16 -0
  48. package/esm/components/layout/section/Section.js.map +1 -0
  49. package/esm/components/layout/section/Section.module.scss +17 -0
  50. package/esm/components/layout/section/SectionContainer.d.ts +4 -0
  51. package/esm/components/layout/section/SectionContainer.d.ts.map +1 -0
  52. package/esm/components/layout/section/SectionContainer.js +7 -0
  53. package/esm/components/layout/section/SectionContainer.js.map +1 -0
  54. package/esm/components/layout/section/SectionContainer.module.scss +4 -0
  55. package/esm/components/ui/button/Button.d.ts +1 -2
  56. package/esm/components/ui/button/Button.d.ts.map +1 -1
  57. package/esm/components/ui/button/Button.js +4 -4
  58. package/esm/components/ui/button/Button.js.map +1 -1
  59. package/esm/global.scss +2 -0
  60. package/esm/index.d.ts +2 -0
  61. package/esm/index.d.ts.map +1 -1
  62. package/esm/index.js +2 -0
  63. package/esm/index.js.map +1 -1
  64. package/esm/utils/makeVariants.d.ts +3 -0
  65. package/esm/utils/makeVariants.d.ts.map +1 -0
  66. package/esm/utils/makeVariants.js +11 -0
  67. package/esm/utils/makeVariants.js.map +1 -0
  68. package/package.json +2 -2
  69. package/src/components/layout/card/Card.module.scss +15 -0
  70. package/src/components/layout/card/Card.tsx +26 -0
  71. package/src/components/layout/section/Section.module.scss +17 -0
  72. package/src/components/layout/section/Section.tsx +34 -0
  73. package/src/components/layout/section/SectionContainer.module.scss +4 -0
  74. package/src/components/layout/section/SectionContainer.tsx +11 -0
  75. package/src/components/ui/button/Button.tsx +9 -5
  76. package/src/demo/Main.module.scss +2 -0
  77. package/src/demo/components/layout/card/Card.tsx +21 -0
  78. package/src/demo/components/layout/section/Section.tsx +34 -0
  79. package/src/demo/components/ui/button/ButtonDemo.tsx +9 -5
  80. package/src/demo/componentsMap.ts +10 -0
  81. package/src/global.scss +2 -0
  82. package/src/index.ts +2 -0
  83. /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 "../../../demo/utils/makeVariants.js";
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 }, props.children));
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,qCAAqC,CAAC;AAOnE,MAAM,MAAM,GAAoB,CAAC,KAAK,EAAE,EAAE;IACtC,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,CAAC,CAAC;IAEH,OAAO,CACH,gCAAQ,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAG,KAAK,CAAC,QAAQ,CAAU,CAC9E,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
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
@@ -4,6 +4,8 @@
4
4
  --ratio-border: 2.666666;
5
5
  --ratio-font: 1.666666;
6
6
 
7
+ --background: white;
8
+
7
9
  --main-color: #008ad2; // used
8
10
  --main-color-alt: #006AA9;
9
11
 
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";
@@ -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;AAEjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,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;AAEjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,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,3 @@
1
+ declare const makeVariants: <T extends string>(variants: T | T[] | undefined) => T[];
2
+ export { makeVariants, };
3
+ //# sourceMappingURL=makeVariants.d.ts.map
@@ -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,11 @@
1
+ const makeVariants = (variants) => {
2
+ if (!variants) {
3
+ return [];
4
+ }
5
+ if (typeof variants === "string") {
6
+ return variants.split(" ").filter(Boolean);
7
+ }
8
+ return variants;
9
+ };
10
+ export { makeVariants, };
11
+ //# sourceMappingURL=makeVariants.js.map
@@ -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.4.2",
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.2",
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,15 @@
1
+ .card {
2
+ background: var(--background);
3
+ border-radius: 5px;
4
+ display: flex;
5
+ flex-direction: column;
6
+
7
+ + .card {
8
+ margin-top: 23px;
9
+ }
10
+ }
11
+
12
+ .margin {
13
+ margin-left: 23px;
14
+ margin-right: 23px;
15
+ }
@@ -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,17 @@
1
+ .section {
2
+ background: var(--background);
3
+ }
4
+
5
+ .section + .section {
6
+ margin-top: 23px;
7
+ }
8
+
9
+ .vertical {
10
+ margin-top: 23px;
11
+ margin-bottom: 23px;
12
+ }
13
+
14
+ .horizontal {
15
+ margin-left: 23px;
16
+ margin-right: 23px;
17
+ }
@@ -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 };
@@ -0,0 +1,4 @@
1
+ .container {
2
+ background: var(--toolbar-bg);
3
+ flex: 1;
4
+ }
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+
3
+ import styles from "./SectionContainer.module.scss";
4
+
5
+ const SectionContainer: React.FC = (props) => {
6
+ return (
7
+ <div className={styles.container}>{props.children}</div>
8
+ );
9
+ };
10
+
11
+ export { SectionContainer };
@@ -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 "../../../demo/utils/makeVariants.js";
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 className={cls} disabled={props.disabled}>{props.children}</button>
20
+ <button
21
+ {...props}
22
+ className={cls}
23
+ disabled={props.disabled}
24
+ >{children}
25
+ </button>
22
26
  );
23
27
  };
24
28
 
@@ -9,6 +9,8 @@
9
9
  padding: 20px;
10
10
  flex: 1;
11
11
  overflow: auto;
12
+ display: flex;
13
+ flex-direction: column;
12
14
 
13
15
  &--transparent {
14
16
  background-position: 0px 0px, 10px 10px;
@@ -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
@@ -4,6 +4,8 @@
4
4
  --ratio-border: 2.666666;
5
5
  --ratio-font: 1.666666;
6
6
 
7
+ --background: white;
8
+
7
9
  --main-color: #008ad2; // used
8
10
  --main-color-alt: #006AA9;
9
11
 
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