react-miui 0.4.0 → 0.4.1

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 (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/components/layout/list/Item.d.ts +7 -1
  3. package/dist/components/layout/list/Item.d.ts.map +1 -1
  4. package/dist/components/layout/list/Item.js +3 -0
  5. package/dist/components/layout/list/Item.js.map +1 -1
  6. package/dist/components/layout/list/List.d.ts +5 -1
  7. package/dist/components/layout/list/List.d.ts.map +1 -1
  8. package/dist/components/layout/list/List.js +2 -0
  9. package/dist/components/layout/list/List.js.map +1 -1
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +4 -0
  13. package/dist/index.js.map +1 -1
  14. package/docs/assets/js/search.js +1 -1
  15. package/docs/assets/js/search.json +1 -1
  16. package/docs/enums/ICON.html +18 -6
  17. package/docs/index.html +22 -4
  18. package/docs/modules/Item.html +155 -0
  19. package/docs/modules/List.html +144 -0
  20. package/docs/modules/StickyHeader.html +10 -4
  21. package/docs/modules.html +78 -14
  22. package/docs/pages/Tutorials/Test.html +9 -3
  23. package/esm/components/layout/list/Item.d.ts +7 -1
  24. package/esm/components/layout/list/Item.d.ts.map +1 -1
  25. package/esm/components/layout/list/Item.js +3 -0
  26. package/esm/components/layout/list/Item.js.map +1 -1
  27. package/esm/components/layout/list/List.d.ts +5 -1
  28. package/esm/components/layout/list/List.d.ts.map +1 -1
  29. package/esm/components/layout/list/List.js +2 -0
  30. package/esm/components/layout/list/List.js.map +1 -1
  31. package/esm/index.d.ts +4 -0
  32. package/esm/index.d.ts.map +1 -1
  33. package/esm/index.js +4 -0
  34. package/esm/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/components/layout/list/Item.tsx +10 -1
  37. package/src/components/layout/list/List.tsx +8 -1
  38. package/src/demo/components/layout/list/Label.tsx +2 -1
  39. package/src/demo/components/layout/list/Value.tsx +3 -3
  40. package/src/index.ts +4 -0
@@ -1,11 +1,18 @@
1
1
  import React from "react";
2
+ import { Header } from "./Header";
2
3
 
3
4
  import styles from "./List.module.scss";
4
5
 
5
- const List: React.FC = (props) => {
6
+ interface SubComponents {
7
+ Header: typeof Header;
8
+ }
9
+
10
+ const List: React.FC & SubComponents = (props) => {
6
11
  return (
7
12
  <ul className={styles.list}>{props.children}</ul>
8
13
  );
9
14
  };
10
15
 
16
+ List.Header = Header;
17
+
11
18
  export { List };
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import { List } from "../../../../components/layout/list/List";
3
3
  import { Item } from "../../../../components/layout/list/Item";
4
- import { Label } from "../../../../components/layout/list/Label";
4
+
5
+ const Label = Item.Label;
5
6
 
6
7
  const ItemLabelDemo = () => {
7
8
  return (
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
+
2
3
  import { List } from "../../../../components/layout/list/List";
3
4
  import { Item } from "../../../../components/layout/list/Item";
4
- import { Value } from "../../../../components/layout/list/Value";
5
- import { Label } from "../../../../components/layout/list/Label";
6
5
  import { ICON, Icon } from "../../../../components/icons/Icon";
7
-
8
6
  import styles from "./Value.module.scss";
9
7
 
8
+ const { Label, Value } = Item;
9
+
10
10
  const ValueDemo = () => {
11
11
  return (
12
12
  <List>
package/src/index.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  export * from "./components/form/Checkbox.js";
2
+ export * from "./components/form/Toggle.js";
2
3
 
3
4
  export * from "./components/icons/Icon.js";
4
5
 
5
6
  export * from "./components/layout/header/Header.js";
7
+ export * from "./components/layout/header/HeaderIconAction.js";
6
8
  export * from "./components/layout/header/StickyHeader.js";
7
9
  export * from "./components/layout/list/List.js";
8
10
  export * from "./components/layout/list/Item.js";
9
11
 
12
+ export * from "./components/ui/action/Action.js";
13
+ export * from "./components/ui/action/EqualActions.js";
10
14
  export * from "./components/ui/button/Button.js";
11
15
  export * from "./components/ui/directionPad/Pad.js";