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 @@
|
|
|
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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ButtonDemo = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const index_js_1 = require("../../../../index.js");
|
|
9
|
+
const ButtonDemo = () => {
|
|
10
|
+
return (react_1.default.createElement("div", null,
|
|
11
|
+
react_1.default.createElement(index_js_1.Button, null, "Basic button"),
|
|
12
|
+
react_1.default.createElement("br", null),
|
|
13
|
+
react_1.default.createElement(index_js_1.Button, { disabled: true }, "Disabled button"),
|
|
14
|
+
react_1.default.createElement("br", null),
|
|
15
|
+
react_1.default.createElement(index_js_1.Button, { variant: "inline" }, "Inline button"),
|
|
16
|
+
react_1.default.createElement("br", null),
|
|
17
|
+
react_1.default.createElement(index_js_1.Button, { variant: "outline" }, "Outline button")));
|
|
18
|
+
};
|
|
19
|
+
exports.ButtonDemo = ButtonDemo;
|
|
20
|
+
//# 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,kDAA0B;AAC1B,mDAA8C;AAE9C,MAAM,UAAU,GAAG,GAAG,EAAE;IACpB,OAAO,CACH;QACI,8BAAC,iBAAM,uBAAsB;QAC7B,yCAAM;QACN,8BAAC,iBAAM,IAAC,QAAQ,EAAE,IAAI,sBAA0B;QAChD,yCAAM;QACN,8BAAC,iBAAM,IAAC,OAAO,EAAE,QAAQ,oBAAwB;QACjD,yCAAM;QACN,8BAAC,iBAAM,IAAC,OAAO,EAAE,SAAS,qBAAyB,CACjD,CACT,CAAC;AACN,CAAC,CAAC;AAEO,gCAAU"}
|
|
@@ -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,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.DirectionPadDemo = void 0;
|
|
23
|
+
const react_1 = __importStar(require("react"));
|
|
24
|
+
const __1 = require("../../../..");
|
|
25
|
+
const DirectionPadDemo = (props) => {
|
|
26
|
+
const [lastClick, setLastClick] = react_1.useState("<none>");
|
|
27
|
+
const handleLeftClick = react_1.useCallback(() => {
|
|
28
|
+
setLastClick("left");
|
|
29
|
+
}, []);
|
|
30
|
+
const handleRightClick = react_1.useCallback(() => {
|
|
31
|
+
setLastClick("right");
|
|
32
|
+
}, []);
|
|
33
|
+
const handleUpClick = react_1.useCallback(() => {
|
|
34
|
+
setLastClick("up");
|
|
35
|
+
}, []);
|
|
36
|
+
const handleDownClick = react_1.useCallback(() => {
|
|
37
|
+
setLastClick("down");
|
|
38
|
+
}, []);
|
|
39
|
+
const handleMiddleClick = react_1.useCallback(() => {
|
|
40
|
+
setLastClick("res");
|
|
41
|
+
}, []);
|
|
42
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
43
|
+
react_1.default.createElement(__1.DirectionPad, { onLeftPress: handleLeftClick, onRightPress: handleRightClick, onUpPress: handleUpClick, onDownPress: handleDownClick, onMiddlePress: handleMiddleClick, middleLabel: "RES" }),
|
|
44
|
+
react_1.default.createElement("div", null,
|
|
45
|
+
"Last clicked button: ",
|
|
46
|
+
lastClick)));
|
|
47
|
+
};
|
|
48
|
+
exports.DirectionPadDemo = DirectionPadDemo;
|
|
49
|
+
//# sourceMappingURL=Pad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pad.js","sourceRoot":"","sources":["../../../../../src/demo/components/ui/directionPad/Pad.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqD;AACrD,mCAA2C;AAE3C,MAAM,gBAAgB,GAAa,CAAC,KAAK,EAAE,EAAE;IACzC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,gBAAQ,CAAC,QAAQ,CAAC,CAAC;IAErD,MAAM,eAAe,GAAG,mBAAW,CAAC,GAAG,EAAE;QACrC,YAAY,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,gBAAgB,GAAG,mBAAW,CAAC,GAAG,EAAE;QACtC,YAAY,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,aAAa,GAAG,mBAAW,CAAC,GAAG,EAAE;QACnC,YAAY,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,eAAe,GAAG,mBAAW,CAAC,GAAG,EAAE;QACrC,YAAY,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,iBAAiB,GAAG,mBAAW,CAAC,GAAG,EAAE;QACvC,YAAY,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH;QACI,8BAAC,gBAAY,IACT,WAAW,EAAE,eAAe,EAC5B,YAAY,EAAE,gBAAgB,EAC9B,SAAS,EAAE,aAAa,EACxB,WAAW,EAAE,eAAe,EAC5B,aAAa,EAAE,iBAAiB,EAChC,WAAW,EAAE,KAAK,GACpB;QACF;;YAC0B,SAAS,CAC7B,CACP,CACN,CAAC;AACN,CAAC,CAAC;AAEO,4CAAgB"}
|
|
@@ -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,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IconsDemo = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const index_js_1 = require("../../../../index.js");
|
|
9
|
+
const Icons_module_scss_1 = __importDefault(require("./Icons.module.scss"));
|
|
10
|
+
const IconsDemo = () => {
|
|
11
|
+
const icons = Object.values(index_js_1.ICON).map((value) => {
|
|
12
|
+
return (react_1.default.createElement(index_js_1.Item, { key: value },
|
|
13
|
+
react_1.default.createElement("div", { className: Icons_module_scss_1.default.row },
|
|
14
|
+
value,
|
|
15
|
+
react_1.default.createElement(index_js_1.Icon, { name: value }))));
|
|
16
|
+
});
|
|
17
|
+
return (react_1.default.createElement(index_js_1.List, null, icons));
|
|
18
|
+
};
|
|
19
|
+
exports.IconsDemo = IconsDemo;
|
|
20
|
+
//# 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,kDAA0B;AAC1B,mDAA8D;AAE9D,4EAAyC;AAEzC,MAAM,SAAS,GAAa,GAAG,EAAE;IAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,eAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC5C,OAAO,CACH,8BAAC,eAAI,IAAC,GAAG,EAAE,KAAK;YACZ,uCAAK,SAAS,EAAE,2BAAM,CAAC,GAAG;gBACrB,KAAK;gBACN,8BAAC,eAAI,IAAC,IAAI,EAAE,KAAK,GAAI,CACnB,CACH,CACV,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,8BAAC,eAAI,QACA,KAAK,CACH,CACV,CAAC;AACN,CAAC,CAAC;AAEO,8BAAS"}
|
|
@@ -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,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.componentsMap = void 0;
|
|
4
|
+
const Checkbox_1 = require("./components/form/Checkbox");
|
|
5
|
+
const Header_1 = require("./components/layout/header/Header");
|
|
6
|
+
const StickyHeader_1 = require("./components/layout/header/StickyHeader");
|
|
7
|
+
const List_Item_1 = require("./components/layout/list/List.Item");
|
|
8
|
+
const Pad_1 = require("./components/ui/directionPad/Pad");
|
|
9
|
+
const Icons_1 = require("./components/ui/icons/Icons");
|
|
10
|
+
const ButtonDemo_1 = require("./components/ui/button/ButtonDemo");
|
|
11
|
+
const Action_1 = require("./components/ui/action/Action");
|
|
12
|
+
const Toggle_1 = require("./components/form/Toggle");
|
|
13
|
+
const componentsMap = {
|
|
14
|
+
Button: {
|
|
15
|
+
name: "Button",
|
|
16
|
+
Component: ButtonDemo_1.ButtonDemo,
|
|
17
|
+
},
|
|
18
|
+
Checkbox: {
|
|
19
|
+
name: "Checkbox",
|
|
20
|
+
Component: Checkbox_1.CheckboxDemo,
|
|
21
|
+
},
|
|
22
|
+
Toggle: {
|
|
23
|
+
name: "Toggle",
|
|
24
|
+
Component: Toggle_1.ToggleDemo,
|
|
25
|
+
},
|
|
26
|
+
Header: {
|
|
27
|
+
name: "Header",
|
|
28
|
+
Component: Header_1.HeaderDemo,
|
|
29
|
+
children: {
|
|
30
|
+
Centered: {
|
|
31
|
+
name: "Centered",
|
|
32
|
+
Component: Header_1.CenteredHeaderDemo,
|
|
33
|
+
},
|
|
34
|
+
Toolbar: {
|
|
35
|
+
name: "Toolbar",
|
|
36
|
+
Component: Header_1.ToolbarVariantDemo,
|
|
37
|
+
},
|
|
38
|
+
WithButtons: {
|
|
39
|
+
name: "With buttons",
|
|
40
|
+
Component: Header_1.HeaderWithButtonsDemo,
|
|
41
|
+
children: {
|
|
42
|
+
OnLeft: {
|
|
43
|
+
name: "On the side",
|
|
44
|
+
Component: Header_1.HeaderWithButtonsOnSideDemo,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
Sticky: {
|
|
49
|
+
name: "Sticky",
|
|
50
|
+
Component: StickyHeader_1.StickyHeaderDemo,
|
|
51
|
+
children: {
|
|
52
|
+
StickyBottom: {
|
|
53
|
+
name: "On bottom",
|
|
54
|
+
Component: StickyHeader_1.StickyHeaderBottomDemo,
|
|
55
|
+
},
|
|
56
|
+
StickyTopBottom: {
|
|
57
|
+
name: "On top & bottom",
|
|
58
|
+
Component: StickyHeader_1.StickyHeaderTopBottomDemo,
|
|
59
|
+
},
|
|
60
|
+
StickyLeft: {
|
|
61
|
+
name: "On left",
|
|
62
|
+
Component: StickyHeader_1.StickyHeaderLeftDemo,
|
|
63
|
+
},
|
|
64
|
+
StickyRight: {
|
|
65
|
+
name: "On right",
|
|
66
|
+
Component: StickyHeader_1.StickyHeaderRightDemo,
|
|
67
|
+
},
|
|
68
|
+
StickyLeftCentered: {
|
|
69
|
+
name: "On left centered",
|
|
70
|
+
Component: StickyHeader_1.StickyHeaderLeftCenterDemo,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
Action: {
|
|
77
|
+
name: "Action",
|
|
78
|
+
Component: Action_1.ActionDemo,
|
|
79
|
+
children: {
|
|
80
|
+
ActionOnBottom: {
|
|
81
|
+
name: "Actions on header",
|
|
82
|
+
Component: Action_1.ActionsOnBottom,
|
|
83
|
+
},
|
|
84
|
+
ActionLabelsOnBottom: {
|
|
85
|
+
name: "Actions with labels on header",
|
|
86
|
+
Component: Action_1.ActionLabelsOnBottom,
|
|
87
|
+
},
|
|
88
|
+
ActionOnLeft: {
|
|
89
|
+
name: "Actions on left header",
|
|
90
|
+
Component: Action_1.ActionsOnLeft,
|
|
91
|
+
},
|
|
92
|
+
EqualActions: {
|
|
93
|
+
name: "EqualActions (wrapper)",
|
|
94
|
+
Component: Action_1.ActionsDemo,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
ListItem: {
|
|
99
|
+
name: "List & Item",
|
|
100
|
+
Component: List_Item_1.ListItemDemo,
|
|
101
|
+
},
|
|
102
|
+
Pad: {
|
|
103
|
+
name: "Direction pad",
|
|
104
|
+
Component: Pad_1.DirectionPadDemo,
|
|
105
|
+
},
|
|
106
|
+
Icons: {
|
|
107
|
+
name: "Icons",
|
|
108
|
+
Component: Icons_1.IconsDemo,
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
exports.componentsMap = componentsMap;
|
|
112
|
+
//# sourceMappingURL=componentsMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentsMap.js","sourceRoot":"","sources":["../../src/demo/componentsMap.ts"],"names":[],"mappings":";;;AACA,yDAA0D;AAC1D,8DAK2C;AAC3C,0EAIiD;AACjD,kEAAkE;AAClE,0DAAoE;AACpE,uDAAwD;AACxD,kEAA+D;AAC/D,0DAMuC;AACvC,qDAAsD;AAatD,MAAM,aAAa,GAAW;IAC1B,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,uBAAU;KACxB;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,uBAAY;KAC1B;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,mBAAU;KACxB;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,mBAAU;QACrB,QAAQ,EAAE;YACN,QAAQ,EAAE;gBACN,IAAI,EAAE,UAAU;gBAChB,SAAS,EAAE,2BAAkB;aAChC;YACD,OAAO,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,2BAAkB;aAChC;YACD,WAAW,EAAE;gBACT,IAAI,EAAE,cAAc;gBACpB,SAAS,EAAE,8BAAqB;gBAChC,QAAQ,EAAE;oBACN,MAAM,EAAE;wBACJ,IAAI,EAAE,aAAa;wBACnB,SAAS,EAAE,oCAA2B;qBACzC;iBACJ;aACJ;YACD,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,+BAAgB;gBAC3B,QAAQ,EAAE;oBACN,YAAY,EAAE;wBACV,IAAI,EAAE,WAAW;wBACjB,SAAS,EAAE,qCAAsB;qBACpC;oBACD,eAAe,EAAE;wBACb,IAAI,EAAE,iBAAiB;wBACvB,SAAS,EAAE,wCAAyB;qBACvC;oBACD,UAAU,EAAE;wBACR,IAAI,EAAE,SAAS;wBACf,SAAS,EAAE,mCAAoB;qBAClC;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,oCAAqB;qBACnC;oBACD,kBAAkB,EAAE;wBAChB,IAAI,EAAE,kBAAkB;wBACxB,SAAS,EAAE,yCAA0B;qBACxC;iBACJ;aACJ;SACJ;KACJ;IACD,MAAM,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,mBAAU;QACrB,QAAQ,EAAE;YACN,cAAc,EAAE;gBACZ,IAAI,EAAE,mBAAmB;gBACzB,SAAS,EAAE,wBAAe;aAC7B;YACD,oBAAoB,EAAE;gBAClB,IAAI,EAAE,+BAA+B;gBACrC,SAAS,EAAE,6BAAoB;aAClC;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,wBAAwB;gBAC9B,SAAS,EAAE,sBAAa;aAC3B;YACD,YAAY,EAAE;gBACV,IAAI,EAAE,wBAAwB;gBAC9B,SAAS,EAAE,oBAAW;aACzB;SACJ;KACJ;IACD,QAAQ,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,wBAAY;KAC1B;IACD,GAAG,EAAE;QACD,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,sBAAgB;KAC9B;IACD,KAAK,EAAE;QACH,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,iBAAS;KACvB;CACJ,CAAC;AAGE,sCAAa"}
|
|
@@ -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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeVariants = void 0;
|
|
4
|
+
const makeVariants = (variants) => {
|
|
5
|
+
if (!variants) {
|
|
6
|
+
return [];
|
|
7
|
+
}
|
|
8
|
+
if (typeof variants === "string") {
|
|
9
|
+
return variants.split(" ").filter(Boolean);
|
|
10
|
+
}
|
|
11
|
+
return variants;
|
|
12
|
+
};
|
|
13
|
+
exports.makeVariants = makeVariants;
|
|
14
|
+
//# sourceMappingURL=makeVariants.js.map
|
|
@@ -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;AAGE,oCAAY"}
|
package/dist/global.scss
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
// Font-size ratio: 1,6 (666?)
|
|
2
|
-
// Border ratio: 2,6666
|
|
3
|
-
// Dimensions ratio: 3
|
|
4
|
-
|
|
5
1
|
// @TODO prefix variable names
|
|
6
2
|
:root {
|
|
3
|
+
--ratio-dimensions: 3;
|
|
4
|
+
--ratio-border: 2.666666;
|
|
5
|
+
--ratio-font: 1.666666;
|
|
6
|
+
|
|
7
7
|
--main-color: #008ad2; // used
|
|
8
8
|
--main-color-alt: #006AA9;
|
|
9
9
|
|
|
10
10
|
--active-bg: #d3d3d3;
|
|
11
11
|
--inactive-bg: #d3d3d3; // used
|
|
12
12
|
|
|
13
|
+
--toggle-handle-bg: #e0e0e0;
|
|
14
|
+
--toggle-handle-border: #cdcdcd;
|
|
15
|
+
|
|
13
16
|
--icon: #636363;
|
|
14
17
|
--border: #d5d5d5;
|
|
15
18
|
--button-border: #bababa;
|
|
@@ -18,17 +21,35 @@
|
|
|
18
21
|
--header-bg: #efeff0;
|
|
19
22
|
--header-text: #484848;
|
|
20
23
|
|
|
21
|
-
--toolbar
|
|
22
|
-
--toolbar
|
|
24
|
+
--toolbar-border: #ababab;
|
|
25
|
+
--toolbar-bg: #f8f8f8;
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
--
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
27
|
+
// Shades: https://maketintsandshades.com/#038bf4,ff7200,7357e8,3ec234,3ec234,ff388f,ea2700
|
|
28
|
+
--blue1: #038bf4;
|
|
29
|
+
--orange1: #ff7200;
|
|
30
|
+
--orange1-darker: #cc5b00;
|
|
31
|
+
--purple1: #7357e8;
|
|
32
|
+
--green1: #3ec234;
|
|
33
|
+
--green1-darker: #38af2f;
|
|
34
|
+
--pink1: #ff388f;
|
|
35
|
+
--red1: #ea2700;
|
|
36
|
+
|
|
37
|
+
--grey1: #737373;
|
|
38
|
+
|
|
39
|
+
--focus-color: #dcaf00;
|
|
30
40
|
}
|
|
31
41
|
|
|
32
|
-
*:focus {
|
|
42
|
+
*:focus {
|
|
33
43
|
outline: none!important;
|
|
34
44
|
}
|
|
45
|
+
|
|
46
|
+
*:focus-visible:focus-visible {
|
|
47
|
+
outline: none!important;
|
|
48
|
+
border-color: var(--focus-color);
|
|
49
|
+
background-color: var(--focus-bg-set);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
body {
|
|
54
|
+
font-size: 15px;
|
|
55
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
export * from "./components/form/Checkbox";
|
|
1
|
+
export * from "./components/form/Checkbox.js";
|
|
2
|
+
export * from "./components/icons/Icon.js";
|
|
3
|
+
export * from "./components/layout/header/Header.js";
|
|
4
|
+
export * from "./components/layout/header/StickyHeader.js";
|
|
5
|
+
export * from "./components/layout/list/List.js";
|
|
6
|
+
export * from "./components/layout/list/Item.js";
|
|
7
|
+
export * from "./components/ui/button/Button.js";
|
|
8
|
+
export * from "./components/ui/directionPad/Pad.js";
|
|
2
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAE9C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,5 +10,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./components/form/Checkbox"), exports);
|
|
13
|
+
__exportStar(require("./components/form/Checkbox.js"), exports);
|
|
14
|
+
__exportStar(require("./components/icons/Icon.js"), exports);
|
|
15
|
+
__exportStar(require("./components/layout/header/Header.js"), exports);
|
|
16
|
+
__exportStar(require("./components/layout/header/StickyHeader.js"), exports);
|
|
17
|
+
__exportStar(require("./components/layout/list/List.js"), exports);
|
|
18
|
+
__exportStar(require("./components/layout/list/Item.js"), exports);
|
|
19
|
+
__exportStar(require("./components/ui/button/Button.js"), exports);
|
|
20
|
+
__exportStar(require("./components/ui/directionPad/Pad.js"), exports);
|
|
14
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA8C;AAE9C,6DAA2C;AAE3C,uEAAqD;AACrD,6EAA2D;AAC3D,mEAAiD;AACjD,mEAAiD;AAEjD,mEAAiD;AACjD,sEAAoD"}
|
package/dist/pages/_app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/pages/_app.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/pages/_app.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,gBAAgB,CAAC;AACxB,OAAO,qBAAqB,CAAC;AAE7B,QAAA,MAAM,KAAK,6BAA8B,QAAQ,gBAOhD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/pages/_app.js
CHANGED
|
@@ -4,8 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const head_1 = __importDefault(require("next/head"));
|
|
7
8
|
require("../global.scss");
|
|
8
9
|
require("../demo-global.scss");
|
|
9
|
-
const MyApp = ({ Component, pageProps }) => (react_1.default.createElement(
|
|
10
|
+
const MyApp = ({ Component, pageProps }) => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
11
|
+
react_1.default.createElement(head_1.default, null,
|
|
12
|
+
react_1.default.createElement("title", null, "MIUI in React")),
|
|
13
|
+
react_1.default.createElement(Component, Object.assign({}, pageProps))));
|
|
10
14
|
exports.default = MyApp;
|
|
11
15
|
//# sourceMappingURL=_app.js.map
|
package/dist/pages/_app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.js","sourceRoot":"","sources":["../../src/pages/_app.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;
|
|
1
|
+
{"version":3,"file":"_app.js","sourceRoot":"","sources":["../../src/pages/_app.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,qDAA6B;AAG7B,0BAAwB;AACxB,+BAA6B;AAE7B,MAAM,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,SAAS,EAAY,EAAE,EAAE,CAAC,CAClD;IACI,8BAAC,cAAI;QACD,6DAA4B,CACzB;IACP,8BAAC,SAAS,oBAAK,SAAS,EAAI,CAC7B,CACN,CAAC;AAEF,kBAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-miui.d.ts","sourceRoot":"","sources":["../../src/pages/react-miui.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,aAAa,mBAOlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const ReactMiuiPage = () => {
|
|
8
|
+
return (react_1.default.createElement("div", null, "Hi. This is an example page to demonstrate application level routing."));
|
|
9
|
+
};
|
|
10
|
+
exports.default = ReactMiuiPage;
|
|
11
|
+
//# sourceMappingURL=react-miui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-miui.js","sourceRoot":"","sources":["../../src/pages/react-miui.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,MAAM,aAAa,GAAG,GAAG,EAAE;IAEvB,OAAO,CACH,mHAEM,CACT,CAAC;AACN,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,aAAK,YAAY,GAAG,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC;AAEhE,YAAY,EACR,YAAY,GACf,CAAC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/docs/assets/js/search.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
window.searchData = {"kinds":{"32":"Variable"},"rows":[{"id":0,"kind":32,"name":"Checkbox","url":"modules.html#Checkbox","classes":"tsd-kind-variable"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,2.
|
|
1
|
+
window.searchData = {"kinds":{"2":"Namespace","4":"Enumeration","16":"Enumeration member","32":"Variable","64":"Function"},"rows":[{"id":0,"kind":32,"name":"Checkbox","url":"modules.html#Checkbox","classes":"tsd-kind-variable"},{"id":1,"kind":32,"name":"Icon","url":"modules.html#Icon","classes":"tsd-kind-variable"},{"id":2,"kind":4,"name":"ICON","url":"enums/ICON.html","classes":"tsd-kind-enum"},{"id":3,"kind":16,"name":"checkmark","url":"enums/ICON.html#checkmark","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ICON"},{"id":4,"kind":16,"name":"back","url":"enums/ICON.html#back","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ICON"},{"id":5,"kind":32,"name":"Header","url":"modules.html#Header","classes":"tsd-kind-variable"},{"id":6,"kind":32,"name":"StickyHeader","url":"modules.html#StickyHeader","classes":"tsd-kind-variable"},{"id":7,"kind":2,"name":"StickyHeader","url":"modules/StickyHeader.html","classes":"tsd-kind-namespace"},{"id":8,"kind":64,"name":"Content","url":"modules/StickyHeader.html#Content","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"StickyHeader"},{"id":9,"kind":32,"name":"List","url":"modules.html#List","classes":"tsd-kind-variable"},{"id":10,"kind":32,"name":"Item","url":"modules.html#Item","classes":"tsd-kind-variable"},{"id":11,"kind":32,"name":"Button","url":"modules.html#Button","classes":"tsd-kind-variable"},{"id":12,"kind":32,"name":"DirectionPad","url":"modules.html#DirectionPad","classes":"tsd-kind-variable"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,22.336]],["parent/0",[]],["name/1",[1,11.35]],["parent/1",[]],["name/2",[1,11.35]],["parent/2",[]],["name/3",[2,22.336]],["parent/3",[1,0.48]],["name/4",[3,22.336]],["parent/4",[1,0.48]],["name/5",[4,22.336]],["parent/5",[]],["name/6",[5,13.863]],["parent/6",[]],["name/7",[5,13.863]],["parent/7",[]],["name/8",[6,22.336]],["parent/8",[5,0.587]],["name/9",[7,22.336]],["parent/9",[]],["name/10",[8,22.336]],["parent/10",[]],["name/11",[9,22.336]],["parent/11",[]],["name/12",[10,22.336]],["parent/12",[]]],"invertedIndex":[["back",{"_index":3,"name":{"4":{}},"parent":{}}],["button",{"_index":9,"name":{"11":{}},"parent":{}}],["checkbox",{"_index":0,"name":{"0":{}},"parent":{}}],["checkmark",{"_index":2,"name":{"3":{}},"parent":{}}],["content",{"_index":6,"name":{"8":{}},"parent":{}}],["directionpad",{"_index":10,"name":{"12":{}},"parent":{}}],["header",{"_index":4,"name":{"5":{}},"parent":{}}],["icon",{"_index":1,"name":{"1":{},"2":{}},"parent":{"3":{},"4":{}}}],["item",{"_index":8,"name":{"10":{}},"parent":{}}],["list",{"_index":7,"name":{"9":{}},"parent":{}}],["stickyheader",{"_index":5,"name":{"6":{},"7":{}},"parent":{"8":{}}}]],"pipeline":[]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"kinds":{"32":"Variable","9999999":"Page"},"rows":[{"id":0,"kind":32,"name":"Checkbox","url":"modules.html#Checkbox","classes":"tsd-kind-variable"},{"id":1,"kind":1,"name":"Test","url":"pages/Tutorials/Test.html","classes":"tsd-kind-page","pagesPluginContent":"This is example tutorial page.\n","pagesPluginParent":"Tutorials / "}],"index":{"version":"2.3.9","fields":["pagesPluginContent","name","parent"],"fieldVectors":[["pagesPluginContent/0",[]],["name/0",[0,
|
|
1
|
+
{"kinds":{"2":"Namespace","4":"Enumeration","16":"Enumeration member","32":"Variable","64":"Function","9999999":"Page"},"rows":[{"id":0,"kind":32,"name":"Checkbox","url":"modules.html#Checkbox","classes":"tsd-kind-variable"},{"id":1,"kind":32,"name":"Icon","url":"modules.html#Icon","classes":"tsd-kind-variable"},{"id":2,"kind":4,"name":"ICON","url":"enums/ICON.html","classes":"tsd-kind-enum"},{"id":3,"kind":16,"name":"checkmark","url":"enums/ICON.html#checkmark","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ICON","pagesPluginParent":"ICON."},{"id":4,"kind":16,"name":"back","url":"enums/ICON.html#back","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ICON","pagesPluginParent":"ICON."},{"id":5,"kind":32,"name":"Header","url":"modules.html#Header","classes":"tsd-kind-variable"},{"id":6,"kind":32,"name":"StickyHeader","url":"modules.html#StickyHeader","classes":"tsd-kind-variable"},{"id":7,"kind":2,"name":"StickyHeader","url":"modules/StickyHeader.html","classes":"tsd-kind-namespace"},{"id":8,"kind":64,"name":"Content","url":"modules/StickyHeader.html#Content","classes":"tsd-kind-function tsd-parent-kind-namespace","parent":"StickyHeader","pagesPluginParent":"StickyHeader."},{"id":9,"kind":32,"name":"List","url":"modules.html#List","classes":"tsd-kind-variable"},{"id":10,"kind":32,"name":"Item","url":"modules.html#Item","classes":"tsd-kind-variable"},{"id":11,"kind":32,"name":"Button","url":"modules.html#Button","classes":"tsd-kind-variable"},{"id":12,"kind":32,"name":"DirectionPad","url":"modules.html#DirectionPad","classes":"tsd-kind-variable"},{"id":13,"kind":1,"name":"Test","url":"pages/Tutorials/Test.html","classes":"tsd-kind-page","pagesPluginContent":"This is example tutorial page.\n","pagesPluginParent":"Tutorials / "}],"index":{"version":"2.3.9","fields":["pagesPluginContent","name","parent"],"fieldVectors":[["pagesPluginContent/0",[]],["name/0",[0,23.026]],["parent/0",[]],["pagesPluginContent/1",[]],["name/1",[1,12.04]],["parent/1",[]],["pagesPluginContent/2",[]],["name/2",[1,12.04]],["parent/2",[]],["pagesPluginContent/3",[]],["name/3",[2,23.026]],["parent/3",[1,0.482]],["pagesPluginContent/4",[]],["name/4",[3,23.026]],["parent/4",[1,0.482]],["pagesPluginContent/5",[]],["name/5",[4,23.026]],["parent/5",[]],["pagesPluginContent/6",[]],["name/6",[5,14.553]],["parent/6",[]],["pagesPluginContent/7",[]],["name/7",[5,14.553]],["parent/7",[]],["pagesPluginContent/8",[]],["name/8",[6,23.026]],["parent/8",[5,0.582]],["pagesPluginContent/9",[]],["name/9",[7,23.026]],["parent/9",[]],["pagesPluginContent/10",[]],["name/10",[8,23.026]],["parent/10",[]],["pagesPluginContent/11",[]],["name/11",[9,23.026]],["parent/11",[]],["pagesPluginContent/12",[]],["name/12",[10,23.026]],["parent/12",[]],["pagesPluginContent/13",[11,5.467,12,5.467,13,5.467,14,5.467,15,5.467]],["name/13",[16,23.026]],["parent/13",[]]],"invertedIndex":[["back",{"_index":3,"pagesPluginContent":{},"name":{"4":{}},"parent":{}}],["button",{"_index":9,"pagesPluginContent":{},"name":{"11":{}},"parent":{}}],["checkbox",{"_index":0,"pagesPluginContent":{},"name":{"0":{}},"parent":{}}],["checkmark",{"_index":2,"pagesPluginContent":{},"name":{"3":{}},"parent":{}}],["content",{"_index":6,"pagesPluginContent":{},"name":{"8":{}},"parent":{}}],["directionpad",{"_index":10,"pagesPluginContent":{},"name":{"12":{}},"parent":{}}],["example",{"_index":13,"pagesPluginContent":{"13":{}},"name":{},"parent":{}}],["header",{"_index":4,"pagesPluginContent":{},"name":{"5":{}},"parent":{}}],["icon",{"_index":1,"pagesPluginContent":{},"name":{"1":{},"2":{}},"parent":{"3":{},"4":{}}}],["is",{"_index":12,"pagesPluginContent":{"13":{}},"name":{},"parent":{}}],["item",{"_index":8,"pagesPluginContent":{},"name":{"10":{}},"parent":{}}],["list",{"_index":7,"pagesPluginContent":{},"name":{"9":{}},"parent":{}}],["page",{"_index":15,"pagesPluginContent":{"13":{}},"name":{},"parent":{}}],["stickyheader",{"_index":5,"pagesPluginContent":{},"name":{"6":{},"7":{}},"parent":{"8":{}}}],["test",{"_index":16,"pagesPluginContent":{},"name":{"13":{}},"parent":{}}],["this",{"_index":11,"pagesPluginContent":{"13":{}},"name":{},"parent":{}}],["tutorial",{"_index":14,"pagesPluginContent":{"13":{}},"name":{},"parent":{}}]],"pipeline":[]}}
|