react-miui 0.0.1 → 0.3.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/CHANGELOG.md +46 -0
- package/README.md +10 -1
- package/assets/back.svg +1 -0
- package/dist/components/form/Checkbox.module.scss +13 -6
- package/dist/components/form/Toggle.d.ts +8 -0
- package/dist/components/form/Toggle.d.ts.map +1 -0
- package/dist/components/form/Toggle.js +40 -0
- package/dist/components/form/Toggle.js.map +1 -0
- package/dist/components/form/Toggle.module.scss +46 -0
- package/dist/components/icons/Back.d.ts +7 -0
- package/dist/components/icons/Back.d.ts.map +1 -0
- package/dist/components/icons/Back.js +13 -0
- package/dist/components/icons/Back.js.map +1 -0
- package/dist/components/icons/Checkmark.d.ts.map +1 -1
- package/dist/components/icons/Checkmark.js.map +1 -1
- package/dist/components/icons/Icon.d.ts +12 -0
- package/dist/components/icons/Icon.d.ts.map +1 -0
- package/dist/components/icons/Icon.js +40 -0
- package/dist/components/icons/Icon.js.map +1 -0
- package/dist/components/layout/header/Header.d.ts +13 -0
- package/dist/components/layout/header/Header.d.ts.map +1 -0
- package/dist/components/layout/header/Header.js +43 -0
- package/dist/components/layout/header/Header.js.map +1 -0
- package/dist/components/layout/header/Header.module.scss +89 -0
- package/dist/components/layout/header/HeaderIconAction.d.ts +17 -0
- package/dist/components/layout/header/HeaderIconAction.d.ts.map +1 -0
- package/dist/components/layout/header/HeaderIconAction.js +40 -0
- package/dist/components/layout/header/HeaderIconAction.js.map +1 -0
- package/dist/components/layout/header/HeaderIconAction.module.scss +22 -0
- package/dist/components/layout/header/StickyHeader.d.ts +10 -0
- package/dist/components/layout/header/StickyHeader.d.ts.map +1 -0
- package/dist/components/layout/header/StickyHeader.js +34 -0
- package/dist/components/layout/header/StickyHeader.js.map +1 -0
- package/dist/components/layout/header/StickyHeader.module.scss +18 -0
- package/dist/components/layout/list/Item.d.ts +14 -0
- package/dist/components/layout/list/Item.d.ts.map +1 -0
- package/dist/components/layout/list/Item.js +50 -0
- package/dist/components/layout/list/Item.js.map +1 -0
- package/dist/components/layout/list/Item.module.scss +23 -0
- package/dist/components/layout/list/List.d.ts +4 -0
- package/dist/components/layout/list/List.d.ts.map +1 -0
- package/dist/components/layout/list/List.js +13 -0
- package/dist/components/layout/list/List.js.map +1 -0
- package/dist/components/layout/list/List.module.scss +4 -0
- package/dist/components/ui/action/Action.d.ts +17 -0
- package/dist/components/ui/action/Action.d.ts.map +1 -0
- package/dist/components/ui/action/Action.js +44 -0
- package/dist/components/ui/action/Action.js.map +1 -0
- package/dist/components/ui/action/Action.module.scss +26 -0
- package/dist/components/ui/action/EqualActions.d.ts +7 -0
- package/dist/components/ui/action/EqualActions.d.ts.map +1 -0
- package/dist/components/ui/action/EqualActions.js +23 -0
- package/dist/components/ui/action/EqualActions.js.map +1 -0
- package/dist/components/ui/action/EqualActions.module.scss +6 -0
- package/dist/components/ui/button/Button.d.ts +8 -0
- package/dist/components/ui/button/Button.d.ts.map +1 -0
- package/dist/components/ui/button/Button.js +20 -0
- package/dist/components/ui/button/Button.js.map +1 -0
- package/dist/components/ui/button/Button.module.scss +25 -0
- package/dist/components/ui/directionPad/Button.d.ts +7 -0
- package/dist/components/ui/directionPad/Button.d.ts.map +1 -0
- package/dist/components/ui/directionPad/Button.js +14 -0
- package/dist/components/ui/directionPad/Button.js.map +1 -0
- package/dist/components/ui/directionPad/Middle.d.ts +8 -0
- package/dist/components/ui/directionPad/Middle.d.ts.map +1 -0
- package/dist/components/ui/directionPad/Middle.js +13 -0
- package/dist/components/ui/directionPad/Middle.js.map +1 -0
- package/dist/components/ui/directionPad/Pad.d.ts +12 -0
- package/dist/components/ui/directionPad/Pad.d.ts.map +1 -0
- package/dist/components/ui/directionPad/Pad.js +23 -0
- package/dist/components/ui/directionPad/Pad.js.map +1 -0
- package/dist/components/ui/directionPad/Pad.module.scss +45 -0
- package/dist/demo/Demo.d.ts.map +1 -1
- package/dist/demo/Demo.js +2 -1
- package/dist/demo/Demo.js.map +1 -1
- package/dist/demo/Main.d.ts.map +1 -1
- package/dist/demo/Main.js +36 -8
- package/dist/demo/Main.js.map +1 -1
- package/dist/demo/Main.module.scss +13 -0
- package/dist/demo/Menu.d.ts +6 -1
- package/dist/demo/Menu.d.ts.map +1 -1
- package/dist/demo/Menu.js +20 -4
- package/dist/demo/Menu.js.map +1 -1
- package/dist/demo/Menu.module.scss +30 -8
- package/dist/demo/components/form/Checkbox.d.ts.map +1 -1
- package/dist/demo/components/form/Checkbox.js +3 -2
- package/dist/demo/components/form/Checkbox.js.map +1 -1
- package/dist/demo/components/form/Toggle.d.ts +4 -0
- package/dist/demo/components/form/Toggle.d.ts.map +1 -0
- package/dist/demo/components/form/Toggle.js +65 -0
- package/dist/demo/components/form/Toggle.js.map +1 -0
- package/dist/demo/components/form/Toggle.module.scss +5 -0
- package/dist/demo/components/layout/header/Header.d.ts +8 -0
- package/dist/demo/components/layout/header/Header.d.ts.map +1 -0
- package/dist/demo/components/layout/header/Header.js +60 -0
- package/dist/demo/components/layout/header/Header.js.map +1 -0
- package/dist/demo/components/layout/header/StickyHeader.d.ts +9 -0
- package/dist/demo/components/layout/header/StickyHeader.d.ts.map +1 -0
- package/dist/demo/components/layout/header/StickyHeader.js +73 -0
- package/dist/demo/components/layout/header/StickyHeader.js.map +1 -0
- package/dist/demo/components/layout/list/List.Item.d.ts +4 -0
- package/dist/demo/components/layout/list/List.Item.d.ts.map +1 -0
- package/dist/demo/components/layout/list/List.Item.js +42 -0
- package/dist/demo/components/layout/list/List.Item.js.map +1 -0
- package/dist/demo/components/layout/list/List.Item.module.scss +3 -0
- package/dist/demo/components/ui/action/Action.d.ts +8 -0
- package/dist/demo/components/ui/action/Action.d.ts.map +1 -0
- package/dist/demo/components/ui/action/Action.js +83 -0
- package/dist/demo/components/ui/action/Action.js.map +1 -0
- package/dist/demo/components/ui/action/ActionDemo.module.scss +3 -0
- package/dist/demo/components/ui/button/ButtonDemo.d.ts +4 -0
- package/dist/demo/components/ui/button/ButtonDemo.d.ts.map +1 -0
- package/dist/demo/components/ui/button/ButtonDemo.js +20 -0
- package/dist/demo/components/ui/button/ButtonDemo.js.map +1 -0
- package/dist/demo/components/ui/directionPad/Pad.d.ts +4 -0
- package/dist/demo/components/ui/directionPad/Pad.d.ts.map +1 -0
- package/dist/demo/components/ui/directionPad/Pad.js +49 -0
- package/dist/demo/components/ui/directionPad/Pad.js.map +1 -0
- package/dist/demo/components/ui/icons/Icons.d.ts +4 -0
- package/dist/demo/components/ui/icons/Icons.d.ts.map +1 -0
- package/dist/demo/components/ui/icons/Icons.js +20 -0
- package/dist/demo/components/ui/icons/Icons.js.map +1 -0
- package/dist/demo/components/ui/icons/Icons.module.scss +4 -0
- package/dist/demo/componentsMap.d.ts +13 -0
- package/dist/demo/componentsMap.d.ts.map +1 -0
- package/dist/demo/componentsMap.js +112 -0
- package/dist/demo/componentsMap.js.map +1 -0
- package/dist/demo/utils/makeVariants.d.ts +3 -0
- package/dist/demo/utils/makeVariants.d.ts.map +1 -0
- package/dist/demo/utils/makeVariants.js +14 -0
- package/dist/demo/utils/makeVariants.js.map +1 -0
- package/dist/global.scss +34 -13
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/pages/_app.d.ts.map +1 -1
- package/dist/pages/_app.js +5 -1
- package/dist/pages/_app.js.map +1 -1
- package/dist/pages/react-miui.d.ts +4 -0
- package/dist/pages/react-miui.d.ts.map +1 -0
- package/dist/pages/react-miui.js +11 -0
- package/dist/pages/react-miui.js.map +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.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 +182 -0
- package/docs/index.html +38 -5
- package/docs/modules/StickyHeader.html +159 -0
- package/docs/modules.html +121 -5
- package/docs/pages/Tutorials/Test.html +6 -3
- package/esm/components/form/Checkbox.module.scss +13 -6
- package/esm/components/form/Toggle.d.ts +8 -0
- package/esm/components/form/Toggle.d.ts.map +1 -0
- package/esm/components/form/Toggle.js +15 -0
- package/esm/components/form/Toggle.js.map +1 -0
- package/esm/components/form/Toggle.module.scss +46 -0
- package/esm/components/icons/Back.d.ts +7 -0
- package/esm/components/icons/Back.d.ts.map +1 -0
- package/esm/components/icons/Back.js +7 -0
- package/esm/components/icons/Back.js.map +1 -0
- package/esm/components/icons/Checkmark.d.ts.map +1 -1
- package/esm/components/icons/Checkmark.js.map +1 -1
- package/esm/components/icons/Icon.d.ts +12 -0
- package/esm/components/icons/Icon.d.ts.map +1 -0
- package/esm/components/icons/Icon.js +21 -0
- package/esm/components/icons/Icon.js.map +1 -0
- package/esm/components/layout/header/Header.d.ts +13 -0
- package/esm/components/layout/header/Header.d.ts.map +1 -0
- package/esm/components/layout/header/Header.js +37 -0
- package/esm/components/layout/header/Header.js.map +1 -0
- package/esm/components/layout/header/Header.module.scss +89 -0
- package/esm/components/layout/header/HeaderIconAction.d.ts +17 -0
- package/esm/components/layout/header/HeaderIconAction.d.ts.map +1 -0
- package/esm/components/layout/header/HeaderIconAction.js +23 -0
- package/esm/components/layout/header/HeaderIconAction.js.map +1 -0
- package/esm/components/layout/header/HeaderIconAction.module.scss +22 -0
- package/esm/components/layout/header/StickyHeader.d.ts +10 -0
- package/esm/components/layout/header/StickyHeader.d.ts.map +1 -0
- package/esm/components/layout/header/StickyHeader.js +28 -0
- package/esm/components/layout/header/StickyHeader.js.map +1 -0
- package/esm/components/layout/header/StickyHeader.module.scss +18 -0
- package/esm/components/layout/list/Item.d.ts +14 -0
- package/esm/components/layout/list/Item.d.ts.map +1 -0
- package/esm/components/layout/list/Item.js +33 -0
- package/esm/components/layout/list/Item.js.map +1 -0
- package/esm/components/layout/list/Item.module.scss +23 -0
- package/esm/components/layout/list/List.d.ts +4 -0
- package/esm/components/layout/list/List.d.ts.map +1 -0
- package/esm/components/layout/list/List.js +7 -0
- package/esm/components/layout/list/List.js.map +1 -0
- package/esm/components/layout/list/List.module.scss +4 -0
- package/esm/components/ui/action/Action.d.ts +17 -0
- package/esm/components/ui/action/Action.d.ts.map +1 -0
- package/esm/components/ui/action/Action.js +27 -0
- package/esm/components/ui/action/Action.js.map +1 -0
- package/esm/components/ui/action/Action.module.scss +26 -0
- package/esm/components/ui/action/EqualActions.d.ts +7 -0
- package/esm/components/ui/action/EqualActions.d.ts.map +1 -0
- package/esm/components/ui/action/EqualActions.js +17 -0
- package/esm/components/ui/action/EqualActions.js.map +1 -0
- package/esm/components/ui/action/EqualActions.module.scss +6 -0
- package/esm/components/ui/button/Button.d.ts +8 -0
- package/esm/components/ui/button/Button.d.ts.map +1 -0
- package/esm/components/ui/button/Button.js +14 -0
- package/esm/components/ui/button/Button.js.map +1 -0
- package/esm/components/ui/button/Button.module.scss +25 -0
- package/esm/components/ui/directionPad/Button.d.ts +7 -0
- package/esm/components/ui/directionPad/Button.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Button.js +8 -0
- package/esm/components/ui/directionPad/Button.js.map +1 -0
- package/esm/components/ui/directionPad/Middle.d.ts +8 -0
- package/esm/components/ui/directionPad/Middle.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Middle.js +7 -0
- package/esm/components/ui/directionPad/Middle.js.map +1 -0
- package/esm/components/ui/directionPad/Pad.d.ts +12 -0
- package/esm/components/ui/directionPad/Pad.d.ts.map +1 -0
- package/esm/components/ui/directionPad/Pad.js +17 -0
- package/esm/components/ui/directionPad/Pad.js.map +1 -0
- package/esm/components/ui/directionPad/Pad.module.scss +45 -0
- package/esm/demo/Demo.d.ts.map +1 -1
- package/esm/demo/Demo.js +2 -1
- package/esm/demo/Demo.js.map +1 -1
- package/esm/demo/Main.d.ts.map +1 -1
- package/esm/demo/Main.js +37 -9
- package/esm/demo/Main.js.map +1 -1
- package/esm/demo/Main.module.scss +13 -0
- package/esm/demo/Menu.d.ts +6 -1
- package/esm/demo/Menu.d.ts.map +1 -1
- package/esm/demo/Menu.js +20 -4
- package/esm/demo/Menu.js.map +1 -1
- package/esm/demo/Menu.module.scss +30 -8
- package/esm/demo/components/form/Checkbox.d.ts.map +1 -1
- package/esm/demo/components/form/Checkbox.js +4 -3
- package/esm/demo/components/form/Checkbox.js.map +1 -1
- package/esm/demo/components/form/Toggle.d.ts +4 -0
- package/esm/demo/components/form/Toggle.d.ts.map +1 -0
- package/esm/demo/components/form/Toggle.js +40 -0
- package/esm/demo/components/form/Toggle.js.map +1 -0
- package/esm/demo/components/form/Toggle.module.scss +5 -0
- package/esm/demo/components/layout/header/Header.d.ts +8 -0
- package/esm/demo/components/layout/header/Header.d.ts.map +1 -0
- package/esm/demo/components/layout/header/Header.js +50 -0
- package/esm/demo/components/layout/header/Header.js.map +1 -0
- package/esm/demo/components/layout/header/StickyHeader.d.ts +9 -0
- package/esm/demo/components/layout/header/StickyHeader.d.ts.map +1 -0
- package/esm/demo/components/layout/header/StickyHeader.js +62 -0
- package/esm/demo/components/layout/header/StickyHeader.js.map +1 -0
- package/esm/demo/components/layout/list/List.Item.d.ts +4 -0
- package/esm/demo/components/layout/list/List.Item.d.ts.map +1 -0
- package/esm/demo/components/layout/list/List.Item.js +17 -0
- package/esm/demo/components/layout/list/List.Item.js.map +1 -0
- package/esm/demo/components/layout/list/List.Item.module.scss +3 -0
- package/esm/demo/components/ui/action/Action.d.ts +8 -0
- package/esm/demo/components/ui/action/Action.d.ts.map +1 -0
- package/esm/demo/components/ui/action/Action.js +73 -0
- package/esm/demo/components/ui/action/Action.js.map +1 -0
- package/esm/demo/components/ui/action/ActionDemo.module.scss +3 -0
- package/esm/demo/components/ui/button/ButtonDemo.d.ts +4 -0
- package/esm/demo/components/ui/button/ButtonDemo.d.ts.map +1 -0
- package/esm/demo/components/ui/button/ButtonDemo.js +14 -0
- package/esm/demo/components/ui/button/ButtonDemo.js.map +1 -0
- package/esm/demo/components/ui/directionPad/Pad.d.ts +4 -0
- package/esm/demo/components/ui/directionPad/Pad.d.ts.map +1 -0
- package/esm/demo/components/ui/directionPad/Pad.js +27 -0
- package/esm/demo/components/ui/directionPad/Pad.js.map +1 -0
- package/esm/demo/components/ui/icons/Icons.d.ts +4 -0
- package/esm/demo/components/ui/icons/Icons.d.ts.map +1 -0
- package/esm/demo/components/ui/icons/Icons.js +14 -0
- package/esm/demo/components/ui/icons/Icons.js.map +1 -0
- package/esm/demo/components/ui/icons/Icons.module.scss +4 -0
- package/esm/demo/componentsMap.d.ts +13 -0
- package/esm/demo/componentsMap.d.ts.map +1 -0
- package/esm/demo/componentsMap.js +109 -0
- package/esm/demo/componentsMap.js.map +1 -0
- package/esm/demo/utils/makeVariants.d.ts +3 -0
- package/esm/demo/utils/makeVariants.d.ts.map +1 -0
- package/esm/demo/utils/makeVariants.js +11 -0
- package/esm/demo/utils/makeVariants.js.map +1 -0
- package/esm/global.scss +34 -13
- package/esm/index.d.ts +8 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +8 -1
- package/esm/index.js.map +1 -1
- package/esm/pages/_app.d.ts.map +1 -1
- package/esm/pages/_app.js +5 -1
- package/esm/pages/_app.js.map +1 -1
- package/esm/pages/react-miui.d.ts +4 -0
- package/esm/pages/react-miui.d.ts.map +1 -0
- package/esm/pages/react-miui.js +6 -0
- package/esm/pages/react-miui.js.map +1 -0
- package/esm/types.d.ts +4 -0
- package/esm/types.d.ts.map +1 -0
- package/esm/types.js +2 -0
- package/esm/types.js.map +1 -0
- package/package.json +9 -7
- package/src/components/form/Checkbox.module.scss +13 -6
- package/src/components/form/Toggle.module.scss +46 -0
- package/src/components/form/Toggle.tsx +33 -0
- package/src/components/icons/Back.tsx +15 -0
- package/src/components/icons/Checkmark.tsx +5 -2
- package/src/components/icons/Icon.tsx +30 -0
- package/src/components/layout/header/Header.module.scss +89 -0
- package/src/components/layout/header/Header.tsx +65 -0
- package/src/components/layout/header/HeaderIconAction.module.scss +22 -0
- package/src/components/layout/header/HeaderIconAction.tsx +49 -0
- package/src/components/layout/header/StickyHeader.module.scss +18 -0
- package/src/components/layout/header/StickyHeader.tsx +54 -0
- package/src/components/layout/list/Item.module.scss +23 -0
- package/src/components/layout/list/Item.tsx +50 -0
- package/src/components/layout/list/List.module.scss +4 -0
- package/src/components/layout/list/List.tsx +11 -0
- package/src/components/ui/action/Action.module.scss +26 -0
- package/src/components/ui/action/Action.tsx +58 -0
- package/src/components/ui/action/EqualActions.module.scss +6 -0
- package/src/components/ui/action/EqualActions.tsx +30 -0
- package/src/components/ui/button/Button.module.scss +25 -0
- package/src/components/ui/button/Button.tsx +25 -0
- package/src/components/ui/directionPad/Button.tsx +15 -0
- package/src/components/ui/directionPad/Middle.tsx +16 -0
- package/src/components/ui/directionPad/Pad.module.scss +45 -0
- package/src/components/ui/directionPad/Pad.tsx +35 -0
- package/src/demo/Demo.tsx +2 -1
- package/src/demo/Main.module.scss +13 -0
- package/src/demo/Main.tsx +53 -10
- package/src/demo/Menu.module.scss +30 -8
- package/src/demo/Menu.tsx +33 -7
- package/src/demo/components/form/Checkbox.tsx +7 -3
- package/src/demo/components/form/Toggle.module.scss +5 -0
- package/src/demo/components/form/Toggle.tsx +59 -0
- package/src/demo/components/layout/header/Header.tsx +119 -0
- package/src/demo/components/layout/header/StickyHeader.tsx +85 -0
- package/src/demo/components/layout/list/List.Item.module.scss +3 -0
- package/src/demo/components/layout/list/List.Item.tsx +23 -0
- package/src/demo/components/ui/action/Action.tsx +112 -0
- package/src/demo/components/ui/action/ActionDemo.module.scss +3 -0
- package/src/demo/components/ui/button/ButtonDemo.tsx +18 -0
- package/src/demo/components/ui/directionPad/Pad.tsx +40 -0
- package/src/demo/components/ui/icons/Icons.module.scss +4 -0
- package/src/demo/components/ui/icons/Icons.tsx +25 -0
- package/src/demo/componentsMap.ts +144 -0
- package/src/demo/utils/makeVariants.ts +13 -0
- package/src/global.scss +34 -13
- package/src/index.ts +11 -1
- package/src/pages/_app.tsx +7 -1
- package/src/pages/react-miui.tsx +12 -0
- package/src/types.ts +7 -0
- package/.postcssrc +0 -9
- package/src/pages/index.html +0 -14
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const HeaderDemo: () => JSX.Element;
|
|
3
|
+
declare const CenteredHeaderDemo: () => JSX.Element;
|
|
4
|
+
declare const ToolbarVariantDemo: () => JSX.Element;
|
|
5
|
+
declare const HeaderWithButtonsDemo: () => JSX.Element;
|
|
6
|
+
declare const HeaderWithButtonsOnSideDemo: () => JSX.Element;
|
|
7
|
+
export { HeaderDemo, CenteredHeaderDemo, ToolbarVariantDemo, HeaderWithButtonsDemo, HeaderWithButtonsOnSideDemo };
|
|
8
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/Header.tsx"],"names":[],"mappings":";AAMA,QAAA,MAAM,UAAU,mBAUf,CAAC;AAEF,QAAA,MAAM,kBAAkB,mBASvB,CAAC;AAEF,QAAA,MAAM,kBAAkB,mBAMvB,CAAC;AAKF,QAAA,MAAM,qBAAqB,mBAqD1B,CAAC;AAEF,QAAA,MAAM,2BAA2B,mBAqBhC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import { Header, ICON, StickyHeader } from "../../../../index.js";
|
|
4
|
+
import { HeaderIconAction } from "../../../../components/layout/header/HeaderIconAction";
|
|
5
|
+
const HeaderDemo = () => {
|
|
6
|
+
const longContent = new Array(1000).fill(null).map((_, key) => React.createElement("div", { key: key }, "content"));
|
|
7
|
+
return (React.createElement(React.Fragment, null,
|
|
8
|
+
React.createElement(Header, null, "Some place"),
|
|
9
|
+
longContent));
|
|
10
|
+
};
|
|
11
|
+
const CenteredHeaderDemo = () => {
|
|
12
|
+
return (React.createElement(React.Fragment, null,
|
|
13
|
+
React.createElement(Header, { center: true }, "Messages"),
|
|
14
|
+
React.createElement("div", null, "Header text is centered")));
|
|
15
|
+
};
|
|
16
|
+
const ToolbarVariantDemo = () => {
|
|
17
|
+
return (React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement(Header, { center: true, variant: "toolbar" }, "Toolbar version")));
|
|
19
|
+
};
|
|
20
|
+
const handleClick = () => { alert(1); };
|
|
21
|
+
const HeaderWithButtonsDemo = () => {
|
|
22
|
+
const demo = (React.createElement(React.Fragment, null,
|
|
23
|
+
React.createElement(HeaderIconAction, { icon: ICON.back, onClick: handleClick }),
|
|
24
|
+
React.createElement(HeaderIconAction, { icon: ICON.checkmark, onClick: handleClick })));
|
|
25
|
+
return (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement(Header, { center: true, before: "A text" }, "Messages"),
|
|
27
|
+
React.createElement("div", null, "Header text is centered"),
|
|
28
|
+
React.createElement(Header, { before: "A text" }, "Messages"),
|
|
29
|
+
React.createElement("div", null, "Header text is start aligned"),
|
|
30
|
+
React.createElement(Header, { before: demo }, "Messages"),
|
|
31
|
+
React.createElement("div", null, "Some button icons are added on the left to left aligned title"),
|
|
32
|
+
React.createElement(Header, { before: demo, center: true }, "Messages"),
|
|
33
|
+
React.createElement("div", null, "Some button icons are added on the left to centered aligned title"),
|
|
34
|
+
React.createElement(Header, { before: React.createElement(HeaderIconAction, { icon: ICON.back, to: "/react-miui", Link: Link }), center: true }, "Messages"),
|
|
35
|
+
React.createElement("div", null, "Some internal link icons are added on the left to centered aligned title"),
|
|
36
|
+
React.createElement(Header, { before: React.createElement(HeaderIconAction, { icon: ICON.back, href: "https://www.npmjs.com/package/react-miui" }), center: true }, "Messages"),
|
|
37
|
+
React.createElement("div", null, "Some external link icons are added on the left to centered aligned title"),
|
|
38
|
+
React.createElement(Header, { before: React.createElement(HeaderIconAction, { icon: ICON.back, href: "https://www.npmjs.com/package/react-miui" }), after: React.createElement(HeaderIconAction, { icon: ICON.checkmark, href: "https://www.npmjs.com/package/react-miui" }), center: true }, "Messages"),
|
|
39
|
+
React.createElement("div", null, "Some external link icons are added on both sides to centered aligned title")));
|
|
40
|
+
};
|
|
41
|
+
const HeaderWithButtonsOnSideDemo = () => {
|
|
42
|
+
const demo = (React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement(HeaderIconAction, { icon: ICON.back, onClick: handleClick }),
|
|
44
|
+
React.createElement(HeaderIconAction, { icon: ICON.checkmark, onClick: handleClick })));
|
|
45
|
+
return (React.createElement(StickyHeader, { position: "left" },
|
|
46
|
+
React.createElement(Header, { center: true, before: demo, after: demo }, "M"),
|
|
47
|
+
React.createElement(StickyHeader.Content, null, "Header is on the side")));
|
|
48
|
+
};
|
|
49
|
+
export { HeaderDemo, CenteredHeaderDemo, ToolbarVariantDemo, HeaderWithButtonsDemo, HeaderWithButtonsOnSideDemo };
|
|
50
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAEzF,MAAM,UAAU,GAAG,GAAG,EAAE;IAEpB,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,6BAAK,GAAG,EAAE,GAAG,cAAe,CAAC,CAAC;IAE7F,OAAO,CACH;QACI,oBAAC,MAAM,qBAAoB;QAC1B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H,MAAM,EAAE,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,0CAA0C,GAAI,EAC/F,MAAM,EAAE,IAAI,eAEP;QACT,4GAEM;QACN,oBAAC,MAAM,IACH,MAAM,EAAE,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,0CAA0C,GAAI,EAC/F,KAAK,EAAE,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,0CAA0C,GAAI,EACnG,MAAM,EAAE,IAAI,eAEP;QACT,8GAEM,CACP,CACN,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACrC,MAAM,IAAI,GAAG,CACT;QACI,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,WAAW,GAAI;QAC3D,oBAAC,gBAAgB,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,GAAI,CACjE,CACN,CAAC;IAEF,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,MAAM;QAC1B,oBAAC,MAAM,IACH,MAAM,EAAE,IAAI,EACZ,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,QAEN;QACT,oBAAC,YAAY,CAAC,OAAO,gCAEE,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const StickyHeaderDemo: () => JSX.Element;
|
|
3
|
+
declare const StickyHeaderBottomDemo: () => JSX.Element;
|
|
4
|
+
declare const StickyHeaderTopBottomDemo: () => JSX.Element;
|
|
5
|
+
declare const StickyHeaderLeftDemo: () => JSX.Element;
|
|
6
|
+
declare const StickyHeaderRightDemo: () => JSX.Element;
|
|
7
|
+
declare const StickyHeaderLeftCenterDemo: () => JSX.Element;
|
|
8
|
+
export { StickyHeaderDemo, StickyHeaderBottomDemo, StickyHeaderTopBottomDemo, StickyHeaderLeftDemo, StickyHeaderRightDemo, StickyHeaderLeftCenterDemo, };
|
|
9
|
+
//# sourceMappingURL=StickyHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":";AAUA,QAAA,MAAM,gBAAgB,mBASrB,CAAC;AAEF,QAAA,MAAM,sBAAsB,mBAS3B,CAAC;AAEF,QAAA,MAAM,yBAAyB,mBAc9B,CAAC;AAEF,QAAA,MAAM,oBAAoB,mBASzB,CAAC;AAEF,QAAA,MAAM,qBAAqB,mBAS1B,CAAC;AAEF,QAAA,MAAM,0BAA0B,mBAS/B,CAAC;AAEF,OAAO,EACH,gBAAgB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAChH,0BAA0B,GAC7B,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Header, StickyHeader } from "../../../../index.js";
|
|
3
|
+
const LongContent = () => {
|
|
4
|
+
const longContent = new Array(1000).fill(null).map((_, key) => React.createElement("div", { key: key }, "content"));
|
|
5
|
+
return React.createElement(React.Fragment, null, longContent);
|
|
6
|
+
};
|
|
7
|
+
const StickyHeaderDemo = () => {
|
|
8
|
+
return (React.createElement(StickyHeader, null,
|
|
9
|
+
React.createElement(Header, null, "Some place"),
|
|
10
|
+
React.createElement(StickyHeader.Content, null,
|
|
11
|
+
React.createElement(LongContent, null))));
|
|
12
|
+
};
|
|
13
|
+
const StickyHeaderBottomDemo = () => {
|
|
14
|
+
return (React.createElement(StickyHeader, { position: "bottom" },
|
|
15
|
+
React.createElement(Header, null, "Some place"),
|
|
16
|
+
React.createElement(StickyHeader.Content, null,
|
|
17
|
+
React.createElement(LongContent, null))));
|
|
18
|
+
};
|
|
19
|
+
const StickyHeaderTopBottomDemo = () => {
|
|
20
|
+
return (React.createElement(StickyHeader, { position: "top" },
|
|
21
|
+
React.createElement(Header, null, "Some place"),
|
|
22
|
+
React.createElement(StickyHeader.Content, null,
|
|
23
|
+
React.createElement(StickyHeader, { position: "bottom" },
|
|
24
|
+
React.createElement(Header, null, "Some place"),
|
|
25
|
+
React.createElement(StickyHeader.Content, null,
|
|
26
|
+
React.createElement(LongContent, null))))));
|
|
27
|
+
};
|
|
28
|
+
const StickyHeaderLeftDemo = () => {
|
|
29
|
+
return (React.createElement(StickyHeader, { position: "left" },
|
|
30
|
+
React.createElement(Header, null,
|
|
31
|
+
"x",
|
|
32
|
+
React.createElement("br", null),
|
|
33
|
+
"x",
|
|
34
|
+
React.createElement("br", null),
|
|
35
|
+
"x"),
|
|
36
|
+
React.createElement(StickyHeader.Content, null,
|
|
37
|
+
React.createElement(LongContent, null))));
|
|
38
|
+
};
|
|
39
|
+
const StickyHeaderRightDemo = () => {
|
|
40
|
+
return (React.createElement(StickyHeader, { position: "right" },
|
|
41
|
+
React.createElement(Header, null,
|
|
42
|
+
"x",
|
|
43
|
+
React.createElement("br", null),
|
|
44
|
+
"x",
|
|
45
|
+
React.createElement("br", null),
|
|
46
|
+
"x"),
|
|
47
|
+
React.createElement(StickyHeader.Content, null,
|
|
48
|
+
React.createElement(LongContent, null))));
|
|
49
|
+
};
|
|
50
|
+
const StickyHeaderLeftCenterDemo = () => {
|
|
51
|
+
return (React.createElement(StickyHeader, { position: "left" },
|
|
52
|
+
React.createElement(Header, { center: true },
|
|
53
|
+
"x",
|
|
54
|
+
React.createElement("br", null),
|
|
55
|
+
"x",
|
|
56
|
+
React.createElement("br", null),
|
|
57
|
+
"x"),
|
|
58
|
+
React.createElement(StickyHeader.Content, null,
|
|
59
|
+
React.createElement(LongContent, null))));
|
|
60
|
+
};
|
|
61
|
+
export { StickyHeaderDemo, StickyHeaderBottomDemo, StickyHeaderTopBottomDemo, StickyHeaderLeftDemo, StickyHeaderRightDemo, StickyHeaderLeftCenterDemo, };
|
|
62
|
+
//# sourceMappingURL=StickyHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.js","sourceRoot":"","sources":["../../../../../src/demo/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,WAAW,GAAa,GAAG,EAAE;IAE/B,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,6BAAK,GAAG,EAAE,GAAG,cAAe,CAAC,CAAC;IAC7F,OAAO,0CAAG,WAAW,CAAI,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC1B,OAAO,CACH,oBAAC,YAAY;QACT,oBAAC,MAAM,qBAAoB;QAC3B,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAChC,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,QAAQ;QAC5B,oBAAC,MAAM,qBAAoB;QAC3B,oBAAC,YAAY,CAAC,OAAO;YACjB,oBAAC,WAAW,OAAG,CACI,CACZ,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,GAAG,EAAE;IACnC,OAAO,CACH,oBAAC,YAAY,IAAC,QAAQ,EAAE,KAAK;QACzB,oBAAC,MAAM,qBA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QAAA,MAAM,YAAY,mBAcjB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import { Item, List } from "../../../../index.js";
|
|
4
|
+
import styles from "./List.Item.module.scss";
|
|
5
|
+
const ListItemDemo = () => {
|
|
6
|
+
const handleClick = useCallback(() => { window.alert("Clicked"); }, []);
|
|
7
|
+
return (React.createElement(List, null,
|
|
8
|
+
React.createElement(Item, null, "I am an item"),
|
|
9
|
+
React.createElement(Item, null, "I am an item"),
|
|
10
|
+
React.createElement(Item, { href: "https://www.npmjs.com/package/react-miui" }, "I am clickable item"),
|
|
11
|
+
React.createElement(Item, { to: "/react-miui", Link: Link }, "I am local link item"),
|
|
12
|
+
React.createElement(Item, { onClick: handleClick }, "Click me to see my action"),
|
|
13
|
+
React.createElement(Item, { className: styles.custom }, "I'm a custom item"),
|
|
14
|
+
React.createElement(Item, null, "I am an item")));
|
|
15
|
+
};
|
|
16
|
+
export { ListItemDemo };
|
|
17
|
+
//# sourceMappingURL=List.Item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.Item.js","sourceRoot":"","sources":["../../../../../src/demo/components/layout/list/List.Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAE7C,MAAM,YAAY,GAAG,GAAG,EAAE;IACtB,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAExE,OAAO,CACH,oBAAC,IAAI;QACD,oBAAC,IAAI,uBAAoB;QACzB,oBAAC,IAAI,uBAAoB;QACzB,oBAAC,IAAI,IAAC,IAAI,EAAE,0CAA0C,0BAA4B;QAClF,oBAAC,IAAI,IAAC,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,2BAA6B;QAChE,oBAAC,IAAI,IAAC,OAAO,EAAE,WAAW,gCAAkC;QAC5D,oBAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,wBAA0B;QACxD,oBAAC,IAAI,uBAAoB,CACtB,CACV,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ActionDemo: React.FC;
|
|
3
|
+
declare const ActionsOnLeft: () => JSX.Element;
|
|
4
|
+
declare const ActionsOnBottom: () => JSX.Element;
|
|
5
|
+
declare const ActionLabelsOnBottom: () => JSX.Element;
|
|
6
|
+
declare const ActionsDemo: () => JSX.Element;
|
|
7
|
+
export { ActionDemo, ActionsOnLeft, ActionsOnBottom, ActionLabelsOnBottom, ActionsDemo };
|
|
8
|
+
//# sourceMappingURL=Action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAoBvB,CAAC;AAEF,QAAA,MAAM,aAAa,mBAclB,CAAC;AAEF,QAAA,MAAM,eAAe,mBAcpB,CAAC;AAEF,QAAA,MAAM,oBAAoB,mBAyBzB,CAAC;AAEF,QAAA,MAAM,WAAW,mBAgBhB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Link from "next/link";
|
|
3
|
+
import { Action } from "../../../../components/ui/action/Action";
|
|
4
|
+
import { ICON } from "../../../../components/icons/Icon";
|
|
5
|
+
import { StickyHeader } from "../../../../components/layout/header/StickyHeader";
|
|
6
|
+
import { Header } from "../../../../components/layout/header/Header";
|
|
7
|
+
import styles from "./ActionDemo.module.scss";
|
|
8
|
+
import { EqualActions } from "../../../../components/ui/action/EqualActions";
|
|
9
|
+
const handleClick = () => { alert(1); };
|
|
10
|
+
const ActionDemo = () => {
|
|
11
|
+
return (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement("div", null,
|
|
13
|
+
React.createElement(Action, { icon: ICON.checkmark }),
|
|
14
|
+
" - action without action"),
|
|
15
|
+
React.createElement("div", null,
|
|
16
|
+
React.createElement(Action, { icon: ICON.checkmark, Link: Link, to: "react-miui" }),
|
|
17
|
+
" - internal link action"),
|
|
18
|
+
React.createElement("div", null,
|
|
19
|
+
React.createElement(Action, { icon: ICON.checkmark, href: "https://www.npmjs.com/package/react-miui" }),
|
|
20
|
+
" - external link action"),
|
|
21
|
+
React.createElement("div", null,
|
|
22
|
+
React.createElement(Action, { icon: ICON.checkmark, onClick: handleClick }),
|
|
23
|
+
" - onClick action"),
|
|
24
|
+
React.createElement("div", null,
|
|
25
|
+
React.createElement(Action, { icon: ICON.checkmark, onClick: handleClick, label: "Pineapple" }),
|
|
26
|
+
" - onClick action with label")));
|
|
27
|
+
};
|
|
28
|
+
const ActionsOnLeft = () => {
|
|
29
|
+
return (React.createElement(StickyHeader, { position: "left" },
|
|
30
|
+
React.createElement(Header, { center: true, className: styles.header },
|
|
31
|
+
React.createElement(Action, { icon: ICON.checkmark }),
|
|
32
|
+
React.createElement(Action, { icon: ICON.checkmark }),
|
|
33
|
+
React.createElement(Action, { icon: ICON.checkmark })),
|
|
34
|
+
React.createElement(StickyHeader.Content, null, "content")));
|
|
35
|
+
};
|
|
36
|
+
const ActionsOnBottom = () => {
|
|
37
|
+
return (React.createElement(StickyHeader, { position: "bottom" },
|
|
38
|
+
React.createElement(Header, { center: true, className: styles.header },
|
|
39
|
+
React.createElement(Action, { icon: ICON.checkmark }),
|
|
40
|
+
React.createElement(Action, { icon: ICON.checkmark }),
|
|
41
|
+
React.createElement(Action, { icon: ICON.checkmark })),
|
|
42
|
+
React.createElement(StickyHeader.Content, null, "content")));
|
|
43
|
+
};
|
|
44
|
+
const ActionLabelsOnBottom = () => {
|
|
45
|
+
return (React.createElement(StickyHeader, { position: "bottom" },
|
|
46
|
+
React.createElement(Header, { center: true, className: styles.header },
|
|
47
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Add" }),
|
|
48
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Delete" }),
|
|
49
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Share on Web" })),
|
|
50
|
+
React.createElement(StickyHeader.Content, null,
|
|
51
|
+
React.createElement(StickyHeader, { position: "top" },
|
|
52
|
+
React.createElement(Header, { center: true, className: styles.header },
|
|
53
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Add" }),
|
|
54
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Delete" }),
|
|
55
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Share" })),
|
|
56
|
+
React.createElement(StickyHeader.Content, null,
|
|
57
|
+
"When you put just `Action`s into Header it will be automatically wrapped with EqualActions so if labels width are not equal each action will take the same space as the most wide item. If you don't like this behavior - wrap your actions into React.Fragment ",
|
|
58
|
+
"<></>",
|
|
59
|
+
" or pass extra",
|
|
60
|
+
"<span />",
|
|
61
|
+
".")))));
|
|
62
|
+
};
|
|
63
|
+
const ActionsDemo = () => {
|
|
64
|
+
return (React.createElement("div", null,
|
|
65
|
+
"To make every action take the same amount of horizontal space you need to wrap every Action with EqualActions wrapper. Some components (like Header) will do that automatically for you. If you need to use Actions outside of such components - manually wrap them with EqualActions.",
|
|
66
|
+
React.createElement("div", null,
|
|
67
|
+
React.createElement(EqualActions, null,
|
|
68
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Add" }),
|
|
69
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Delete" }),
|
|
70
|
+
React.createElement(Action, { icon: ICON.checkmark, label: "Share on Web" })))));
|
|
71
|
+
};
|
|
72
|
+
export { ActionDemo, ActionsOnLeft, ActionsOnBottom, ActionLabelsOnBottom, ActionsDemo };
|
|
73
|
+
//# sourceMappingURL=Action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/action/Action.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAC;AAErE,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,MAAM,WAAW,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,UAAU,GAAa,GAAG,EAAE;IAC9B,OAAO,CACH;QACI;YACI,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,GAAI;uCAC9B;QACN;YACI,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,YAAY,GAAI;sCAC5D;QACN;YACI,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,0CAA0C,GAAI;sCAChF;QACN;YACI,oBAAC,MAAM,IAA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C;AAEF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonDemo.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/button/ButtonDemo.tsx"],"names":[],"mappings":";AAGA,QAAA,MAAM,UAAU,mBAYf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button } from "../../../../index.js";
|
|
3
|
+
const ButtonDemo = () => {
|
|
4
|
+
return (React.createElement("div", null,
|
|
5
|
+
React.createElement(Button, null, "Basic button"),
|
|
6
|
+
React.createElement("br", null),
|
|
7
|
+
React.createElement(Button, { disabled: true }, "Disabled button"),
|
|
8
|
+
React.createElement("br", null),
|
|
9
|
+
React.createElement(Button, { variant: "inline" }, "Inline button"),
|
|
10
|
+
React.createElement("br", null),
|
|
11
|
+
React.createElement(Button, { variant: "outline" }, "Outline button")));
|
|
12
|
+
};
|
|
13
|
+
export { ButtonDemo };
|
|
14
|
+
//# sourceMappingURL=ButtonDemo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonDemo.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/button/ButtonDemo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,UAAU,GAAG,GAAG,EAAE;IACpB,OAAO,CACH;QACI,oBAAC,MAAM,uBAAsB;QAC7B,+BAAM;QACN,oBAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,sBAA0B;QAChD,+BAAM;QACN,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,oBAAwB;QACjD,+BAAM;QACN,oBAAC,MAAM,IAAC,OAAO,EAAE,SAAS,qBAAyB,CACjD,CACT,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pad.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/directionPad/Pad.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAGrD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAkC7B,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useCallback, useState } from "react";
|
|
2
|
+
import { DirectionPad } from "../../../..";
|
|
3
|
+
const DirectionPadDemo = (props) => {
|
|
4
|
+
const [lastClick, setLastClick] = useState("<none>");
|
|
5
|
+
const handleLeftClick = useCallback(() => {
|
|
6
|
+
setLastClick("left");
|
|
7
|
+
}, []);
|
|
8
|
+
const handleRightClick = useCallback(() => {
|
|
9
|
+
setLastClick("right");
|
|
10
|
+
}, []);
|
|
11
|
+
const handleUpClick = useCallback(() => {
|
|
12
|
+
setLastClick("up");
|
|
13
|
+
}, []);
|
|
14
|
+
const handleDownClick = useCallback(() => {
|
|
15
|
+
setLastClick("down");
|
|
16
|
+
}, []);
|
|
17
|
+
const handleMiddleClick = useCallback(() => {
|
|
18
|
+
setLastClick("res");
|
|
19
|
+
}, []);
|
|
20
|
+
return (React.createElement(React.Fragment, null,
|
|
21
|
+
React.createElement(DirectionPad, { onLeftPress: handleLeftClick, onRightPress: handleRightClick, onUpPress: handleUpClick, onDownPress: handleDownClick, onMiddlePress: handleMiddleClick, middleLabel: "RES" }),
|
|
22
|
+
React.createElement("div", null,
|
|
23
|
+
"Last clicked button: ",
|
|
24
|
+
lastClick)));
|
|
25
|
+
};
|
|
26
|
+
export { DirectionPadDemo };
|
|
27
|
+
//# sourceMappingURL=Pad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file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0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../../src/demo/components/ui/icons/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAiBtB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icon, ICON, Item, List } from "../../../../index.js";
|
|
3
|
+
import styles from "./Icons.module.scss";
|
|
4
|
+
const IconsDemo = () => {
|
|
5
|
+
const icons = Object.values(ICON).map((value) => {
|
|
6
|
+
return (React.createElement(Item, { key: value },
|
|
7
|
+
React.createElement("div", { className: styles.row },
|
|
8
|
+
value,
|
|
9
|
+
React.createElement(Icon, { name: value }))));
|
|
10
|
+
});
|
|
11
|
+
return (React.createElement(List, null, icons));
|
|
12
|
+
};
|
|
13
|
+
export { IconsDemo };
|
|
14
|
+
//# sourceMappingURL=Icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/icons/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,SAAS,GAAa,GAAG,EAAE;IAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5C,OAAO,CACH,oBAAC,IAAI,IAAC,GAAG,EAAE,KAAK;YACZ,6BAAK,SAAS,EAAE,MAAM,CAAC,GAAG;gBACrB,KAAK;gBACN,oBAAC,IAAI,IAAC,IAAI,EAAE,KAAK,GAAI,CACnB,CACH,CACV,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,oBAAC,IAAI,QACA,KAAK,CACH,CACV,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnyComponent } from "../types";
|
|
2
|
+
interface TheMap {
|
|
3
|
+
[key: string]: TheMapItem;
|
|
4
|
+
}
|
|
5
|
+
interface TheMapItem {
|
|
6
|
+
name: string;
|
|
7
|
+
Component: AnyComponent;
|
|
8
|
+
children?: TheMap;
|
|
9
|
+
}
|
|
10
|
+
declare const componentsMap: TheMap;
|
|
11
|
+
export { componentsMap, };
|
|
12
|
+
export type { TheMap, TheMapItem, };
|
|
13
|
+
//# sourceMappingURL=componentsMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentsMap.d.ts","sourceRoot":"","sources":["../../src/demo/componentsMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA0B7C,UAAU,MAAM;IAEZ,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC7B;AAED,UAAU,UAAU;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,MAiGpB,CAAC;AAEF,OAAO,EACH,aAAa,GAChB,CAAC;AAEF,YAAY,EACR,MAAM,EACN,UAAU,GACb,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { CheckboxDemo } from "./components/form/Checkbox";
|
|
2
|
+
import { CenteredHeaderDemo, HeaderDemo, HeaderWithButtonsDemo, HeaderWithButtonsOnSideDemo, ToolbarVariantDemo, } from "./components/layout/header/Header";
|
|
3
|
+
import { StickyHeaderBottomDemo, StickyHeaderDemo, StickyHeaderLeftCenterDemo, StickyHeaderLeftDemo, StickyHeaderRightDemo, StickyHeaderTopBottomDemo, } from "./components/layout/header/StickyHeader";
|
|
4
|
+
import { ListItemDemo } from "./components/layout/list/List.Item";
|
|
5
|
+
import { DirectionPadDemo } from "./components/ui/directionPad/Pad";
|
|
6
|
+
import { IconsDemo } from "./components/ui/icons/Icons";
|
|
7
|
+
import { ButtonDemo } from "./components/ui/button/ButtonDemo";
|
|
8
|
+
import { ActionDemo, ActionLabelsOnBottom, ActionsDemo, ActionsOnBottom, ActionsOnLeft, } from "./components/ui/action/Action";
|
|
9
|
+
import { ToggleDemo } from "./components/form/Toggle";
|
|
10
|
+
const componentsMap = {
|
|
11
|
+
Button: {
|
|
12
|
+
name: "Button",
|
|
13
|
+
Component: ButtonDemo,
|
|
14
|
+
},
|
|
15
|
+
Checkbox: {
|
|
16
|
+
name: "Checkbox",
|
|
17
|
+
Component: CheckboxDemo,
|
|
18
|
+
},
|
|
19
|
+
Toggle: {
|
|
20
|
+
name: "Toggle",
|
|
21
|
+
Component: ToggleDemo,
|
|
22
|
+
},
|
|
23
|
+
Header: {
|
|
24
|
+
name: "Header",
|
|
25
|
+
Component: HeaderDemo,
|
|
26
|
+
children: {
|
|
27
|
+
Centered: {
|
|
28
|
+
name: "Centered",
|
|
29
|
+
Component: CenteredHeaderDemo,
|
|
30
|
+
},
|
|
31
|
+
Toolbar: {
|
|
32
|
+
name: "Toolbar",
|
|
33
|
+
Component: ToolbarVariantDemo,
|
|
34
|
+
},
|
|
35
|
+
WithButtons: {
|
|
36
|
+
name: "With buttons",
|
|
37
|
+
Component: HeaderWithButtonsDemo,
|
|
38
|
+
children: {
|
|
39
|
+
OnLeft: {
|
|
40
|
+
name: "On the side",
|
|
41
|
+
Component: HeaderWithButtonsOnSideDemo,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
Sticky: {
|
|
46
|
+
name: "Sticky",
|
|
47
|
+
Component: StickyHeaderDemo,
|
|
48
|
+
children: {
|
|
49
|
+
StickyBottom: {
|
|
50
|
+
name: "On bottom",
|
|
51
|
+
Component: StickyHeaderBottomDemo,
|
|
52
|
+
},
|
|
53
|
+
StickyTopBottom: {
|
|
54
|
+
name: "On top & bottom",
|
|
55
|
+
Component: StickyHeaderTopBottomDemo,
|
|
56
|
+
},
|
|
57
|
+
StickyLeft: {
|
|
58
|
+
name: "On left",
|
|
59
|
+
Component: StickyHeaderLeftDemo,
|
|
60
|
+
},
|
|
61
|
+
StickyRight: {
|
|
62
|
+
name: "On right",
|
|
63
|
+
Component: StickyHeaderRightDemo,
|
|
64
|
+
},
|
|
65
|
+
StickyLeftCentered: {
|
|
66
|
+
name: "On left centered",
|
|
67
|
+
Component: StickyHeaderLeftCenterDemo,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
Action: {
|
|
74
|
+
name: "Action",
|
|
75
|
+
Component: ActionDemo,
|
|
76
|
+
children: {
|
|
77
|
+
ActionOnBottom: {
|
|
78
|
+
name: "Actions on header",
|
|
79
|
+
Component: ActionsOnBottom,
|
|
80
|
+
},
|
|
81
|
+
ActionLabelsOnBottom: {
|
|
82
|
+
name: "Actions with labels on header",
|
|
83
|
+
Component: ActionLabelsOnBottom,
|
|
84
|
+
},
|
|
85
|
+
ActionOnLeft: {
|
|
86
|
+
name: "Actions on left header",
|
|
87
|
+
Component: ActionsOnLeft,
|
|
88
|
+
},
|
|
89
|
+
EqualActions: {
|
|
90
|
+
name: "EqualActions (wrapper)",
|
|
91
|
+
Component: ActionsDemo,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
ListItem: {
|
|
96
|
+
name: "List & Item",
|
|
97
|
+
Component: ListItemDemo,
|
|
98
|
+
},
|
|
99
|
+
Pad: {
|
|
100
|
+
name: "Direction pad",
|
|
101
|
+
Component: DirectionPadDemo,
|
|
102
|
+
},
|
|
103
|
+
Icons: {
|
|
104
|
+
name: "Icons",
|
|
105
|
+
Component: IconsDemo,
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
export { componentsMap, };
|
|
109
|
+
//# sourceMappingURL=componentsMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentsMap.js","sourceRoot":"","sources":["../../src/demo/componentsMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,2BAA2B,EAAE,kBAAkB,GAClD,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,sBAAsB,EACtB,gBAAgB,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,qBAAqB,EACzF,yBAAyB,GAC5B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EACH,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,aAAa,GAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAatD,MAAM,aAAa,GAAW;IAC1B,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;KACxB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,YAAY;KAC1B;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;KACxB;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE;YACN,QAAQ,EAAE;gBACN,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,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,YAAY;KAC1B;IACD,GAAG,EAAE;QACD,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,gBAAgB;KAC9B;IACD,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,SAAS;KACvB;CACJ,CAAC;AAEF,OAAO,EACH,aAAa,GAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"makeVariants.d.ts","sourceRoot":"","sources":["../../../src/demo/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/demo/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"}
|