react-miui 0.0.1-beta.8 → 0.2.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 +43 -1
- package/README.md +10 -1
- package/assets/back.svg +1 -0
- package/dist/components/form/Checkbox.module.scss +13 -6
- 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/layout/header/Header.d.ts +7 -0
- package/dist/demo/components/layout/header/Header.d.ts.map +1 -0
- package/dist/demo/components/layout/header/Header.js +55 -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 +103 -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 +30 -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/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/layout/header/Header.d.ts +7 -0
- package/esm/demo/components/layout/header/Header.d.ts.map +1 -0
- package/esm/demo/components/layout/header/Header.js +46 -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 +100 -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 +30 -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/next-env.d.ts +3 -2
- package/package.json +9 -7
- package/src/components/form/Checkbox.module.scss +13 -6
- 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/layout/header/Header.tsx +111 -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 +135 -0
- package/src/demo/utils/makeVariants.ts +13 -0
- package/src/global.scss +30 -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
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,48 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
6
6
|
## [UNRELEASED]
|
|
7
7
|
(nothing yet)
|
|
8
8
|
|
|
9
|
-
## [
|
|
9
|
+
## [0.2.0] - 2021-11-21
|
|
10
|
+
### Added
|
|
11
|
+
- `back` icon
|
|
12
|
+
- support for button icons in the header
|
|
13
|
+
- basic, WIP support for focus indicator
|
|
14
|
+
### Changed
|
|
15
|
+
- Header component no longer has padding by default
|
|
16
|
+
### Fixed
|
|
17
|
+
- Actions should be named EqualActions everywhere, some texts were not updated before releasing
|
|
18
|
+
- some examples leading to 404 page (WIP)
|
|
19
|
+
|
|
20
|
+
## [0.1.0] - 2021-11-19
|
|
21
|
+
### Added
|
|
22
|
+
- Icon component
|
|
23
|
+
- Action component
|
|
24
|
+
- EqualActions component
|
|
25
|
+
- Button component
|
|
26
|
+
- Header will automatically wrap Action components with EqualActions
|
|
27
|
+
### Changed
|
|
28
|
+
- Header component now has padding by default
|
|
29
|
+
### Fixed
|
|
30
|
+
- checkbox dimensions
|
|
31
|
+
- header on the right had border on the wrong side
|
|
32
|
+
### Dev
|
|
33
|
+
- deps upgrade
|
|
34
|
+
|
|
35
|
+
## [0.0.3] - 2021-08-17
|
|
36
|
+
### Dev
|
|
37
|
+
- added react eslint rules, updated base eslint rules
|
|
38
|
+
- code style fixed for the rules
|
|
39
|
+
|
|
40
|
+
## [0.0.2] - 2021-08-17
|
|
41
|
+
### Added
|
|
42
|
+
- Header + StickyHeader component
|
|
43
|
+
- List + Item components
|
|
44
|
+
- Direction pad component
|
|
45
|
+
- multi-level menu support in demo
|
|
46
|
+
- mobile preview on demo
|
|
47
|
+
### Fixed
|
|
48
|
+
- scrolling on the demo page
|
|
49
|
+
|
|
50
|
+
## [0.0.1] - 2021-08-16
|
|
10
51
|
### Added
|
|
11
52
|
- first version
|
|
53
|
+
- Checkbox component
|
package/README.md
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
WIP.
|
|
2
2
|
|
|
3
|
-
Old
|
|
3
|
+
Old MIUI inspired design components for React.
|
|
4
4
|
|
|
5
5
|
Usage:
|
|
6
6
|
- Import `global.scss`
|
|
7
7
|
- Import any needed component from named exports
|
|
8
|
+
|
|
9
|
+
Your bundler needs to handle scss files, including scss modules.
|
|
10
|
+
|
|
11
|
+
For next.js projects use something like this with your next.config.js:
|
|
12
|
+
```typescript
|
|
13
|
+
const createTranspileModules = require("next-transpile-modules");
|
|
14
|
+
const withTM = createTranspileModules(["react-miui"]);
|
|
15
|
+
module.exports = withTM({});
|
|
16
|
+
```
|
package/assets/back.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="9" height="16" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M8.05.1L0 7.95l8.05 7.85v.05q.15.15.4.15t.4-.15q.15-.2.15-.4 0-.25-.15-.4V15H8.8L1.65 7.95l7.2-7Q9 .75 9 .55q0-.25-.2-.4Q8.65 0 8.4 0q-.2 0-.35.1"/></svg>
|
|
@@ -3,24 +3,31 @@
|
|
|
3
3
|
width: 0;
|
|
4
4
|
height: 0;
|
|
5
5
|
transform: scale(0);
|
|
6
|
+
margin: 0;
|
|
7
|
+
vertical-align: middle;
|
|
6
8
|
|
|
7
9
|
+ span {
|
|
8
10
|
border-radius: 100px;
|
|
9
11
|
background: var(--inactive-bg);
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
12
|
+
width: 18px;
|
|
13
|
+
height: 18px;
|
|
12
14
|
display: inline-flex;
|
|
13
15
|
justify-content: center;
|
|
14
16
|
align-items: center;
|
|
17
|
+
vertical-align: middle;
|
|
15
18
|
|
|
16
19
|
svg {
|
|
17
|
-
width:
|
|
18
|
-
height:
|
|
20
|
+
width: 9px;
|
|
21
|
+
height: 9px;
|
|
19
22
|
fill: white;
|
|
20
23
|
}
|
|
24
|
+
|
|
25
|
+
+ span {
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
}
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
&:focus {
|
|
30
|
+
&:focus-visible {
|
|
24
31
|
+ span {
|
|
25
32
|
box-shadow: 0 0 5px black;
|
|
26
33
|
}
|
|
@@ -34,7 +41,7 @@
|
|
|
34
41
|
}
|
|
35
42
|
|
|
36
43
|
+ span + span:not(:empty) {
|
|
37
|
-
margin-left:
|
|
44
|
+
margin-left: 0.5em;
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Back.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Back.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,KAAK;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAM1B,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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.Back = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Back = (props) => {
|
|
9
|
+
return (react_1.default.createElement("svg", { width: "9", height: "16", viewBox: "0 0 9 16", xmlns: "http://www.w3.org/2000/svg", className: props.className },
|
|
10
|
+
react_1.default.createElement("path", { fill: "currentColor", d: "M8.05.1L0 7.95l8.05 7.85v.05q.15.15.4.15t.4-.15q.15-.2.15-.4 0-.25-.15-.4V15H8.8L1.65 7.95l7.2-7Q9 .75 9 .55q0-.25-.2-.4Q8.65 0 8.4 0q-.2 0-.35.1" })));
|
|
11
|
+
};
|
|
12
|
+
exports.Back = Back;
|
|
13
|
+
//# sourceMappingURL=Back.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Back.js","sourceRoot":"","sources":["../../../src/components/icons/Back.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAM1B,MAAM,IAAI,GAAqB,CAAC,KAAK,EAAE,EAAE;IACrC,OAAO,CACH,uCAAK,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,4BAA4B,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS;QAC/G,wCAAM,IAAI,EAAE,cAAc,EAAE,CAAC,EAAE,mJAAmJ,GAAI,CACpL,CACT,CAAC;AACN,CAAC,CAAC;AAEO,oBAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkmark.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Checkmark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,KAAK;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Checkmark.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Checkmark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,KAAK;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAe9B,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkmark.js","sourceRoot":"","sources":["../../../src/components/icons/Checkmark.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAM1B,MAAM,SAAS,GAAoB,CAAC,KAAK,EAAE,EAAE;IACzC,OAAO,CACH,uCACI,KAAK,
|
|
1
|
+
{"version":3,"file":"Checkmark.js","sourceRoot":"","sources":["../../../src/components/icons/Checkmark.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAM1B,MAAM,SAAS,GAAoB,CAAC,KAAK,EAAE,EAAE;IACzC,OAAO,CACH,uCACI,KAAK,EAAE,4BAA4B,EACnC,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,iBAAiB,EAC1B,SAAS,EAAE,KAAK,CAAC,SAAS;QAE1B,wCACI,CAAC,EAAE,4KAA4K,GACjL,CACA,CAET,CAAC;AACN,CAAC,CAAC;AAEO,8BAAS"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare enum ICON {
|
|
3
|
+
checkmark = "checkmark",
|
|
4
|
+
back = "back"
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
name: ICON;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Icon: React.FC<Props>;
|
|
11
|
+
export { Icon, ICON };
|
|
12
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,aAAK,IAAI;IACL,SAAS,cAAc;IACvB,IAAI,SAAS;CAChB;AAED,UAAU,KAAK;IACX,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAMzB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ICON = exports.Icon = void 0;
|
|
18
|
+
const react_1 = __importDefault(require("react"));
|
|
19
|
+
const Checkmark_1 = require("./Checkmark");
|
|
20
|
+
const Back_1 = require("./Back");
|
|
21
|
+
var ICON;
|
|
22
|
+
(function (ICON) {
|
|
23
|
+
ICON["checkmark"] = "checkmark";
|
|
24
|
+
ICON["back"] = "back";
|
|
25
|
+
})(ICON || (ICON = {}));
|
|
26
|
+
exports.ICON = ICON;
|
|
27
|
+
const iconsMap = new Map([
|
|
28
|
+
[ICON.checkmark, Checkmark_1.Checkmark],
|
|
29
|
+
[ICON.back, Back_1.Back],
|
|
30
|
+
]);
|
|
31
|
+
const Icon = (_a) => {
|
|
32
|
+
var { name: iconName } = _a, props = __rest(_a, ["name"]);
|
|
33
|
+
const C = iconsMap.get(iconName);
|
|
34
|
+
if (!C) {
|
|
35
|
+
throw new TypeError("Unknown icon: " + iconName);
|
|
36
|
+
}
|
|
37
|
+
return react_1.default.createElement(C, Object.assign({}, props));
|
|
38
|
+
};
|
|
39
|
+
exports.Icon = Icon;
|
|
40
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/icons/Icon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,kDAA0B;AAC1B,2CAAwC;AACxC,iCAA8B;AAE9B,IAAK,IAGJ;AAHD,WAAK,IAAI;IACL,+BAAuB,CAAA;IACvB,qBAAa,CAAA;AACjB,CAAC,EAHI,IAAI,KAAJ,IAAI,QAGR;AAoBc,oBAAI;AAbnB,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAqB;IACzC,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAS,CAAC;IAC3B,CAAC,IAAI,CAAC,IAAI,EAAE,WAAI,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,IAAI,GAAoB,CAAC,EAA4B,EAAE,EAAE;QAAhC,EAAE,IAAI,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA1B,QAA4B,CAAF;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACjC,IAAI,CAAC,CAAC,EAAE;QACJ,MAAM,IAAI,SAAS,CAAC,gBAAgB,GAAG,QAAQ,CAAC,CAAC;KACpD;IACD,OAAO,8BAAC,CAAC,oBAAK,KAAK,EAAI,CAAC;AAC5B,CAAC,CAAC;AAEO,oBAAI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
interface Props {
|
|
4
|
+
center?: boolean;
|
|
5
|
+
variant?: "toolbar";
|
|
6
|
+
position?: "top" | "left" | "right" | "bottom";
|
|
7
|
+
className?: string;
|
|
8
|
+
before?: ReactNode;
|
|
9
|
+
after?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const Header: React.FC<Props>;
|
|
12
|
+
export { Header };
|
|
13
|
+
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,UAAU,KAAK;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IAKpB,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB;AAGD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwC3B,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.Header = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const Header_module_scss_1 = __importDefault(require("./Header.module.scss"));
|
|
10
|
+
const Action_1 = require("../../ui/action/Action");
|
|
11
|
+
const EqualActions_1 = require("../../ui/action/EqualActions");
|
|
12
|
+
const Header = (props) => {
|
|
13
|
+
const { center, children, variant, position = "top" } = props;
|
|
14
|
+
let justActions = false;
|
|
15
|
+
if (position === "top" || position === "bottom") {
|
|
16
|
+
const chld = react_1.default.Children.toArray(props.children);
|
|
17
|
+
justActions = chld.every(c => {
|
|
18
|
+
return c && typeof c === "object" && "type" in c && c.type === Action_1.Action;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const cls = classnames_1.default(Header_module_scss_1.default.header, {
|
|
22
|
+
[Header_module_scss_1.default["header--center"]]: center,
|
|
23
|
+
[Header_module_scss_1.default["header--toolbar"]]: variant === "toolbar",
|
|
24
|
+
}, Header_module_scss_1.default[`header--${position}`], props.className);
|
|
25
|
+
let contents = children;
|
|
26
|
+
if (justActions) {
|
|
27
|
+
contents = react_1.default.createElement(EqualActions_1.EqualActions, { className: Header_module_scss_1.default.actions }, contents);
|
|
28
|
+
}
|
|
29
|
+
let before;
|
|
30
|
+
if (props.before != null) {
|
|
31
|
+
before = react_1.default.createElement("div", { className: Header_module_scss_1.default.before }, props.before);
|
|
32
|
+
}
|
|
33
|
+
let after;
|
|
34
|
+
if (props.after != null) {
|
|
35
|
+
after = react_1.default.createElement("div", { className: Header_module_scss_1.default.after }, props.after);
|
|
36
|
+
}
|
|
37
|
+
return (react_1.default.createElement("div", { className: cls },
|
|
38
|
+
before,
|
|
39
|
+
react_1.default.createElement("div", { className: Header_module_scss_1.default.contents }, contents),
|
|
40
|
+
after));
|
|
41
|
+
};
|
|
42
|
+
exports.Header = Header;
|
|
43
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/layout/header/Header.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AAGpC,8EAA0C;AAC1C,mDAAgD;AAChD,+DAA4D;AAgB5D,MAAM,MAAM,GAAoB,CAAC,KAAK,EAAE,EAAE;IACtC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAE9D,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,QAAQ,EAAE;QAC7C,MAAM,IAAI,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACpD,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACzB,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,eAAM,CAAC;QAC1E,CAAC,CAAC,CAAC;KACN;IAED,MAAM,GAAG,GAAG,oBAAU,CAAC,4BAAM,CAAC,MAAM,EAAE;QAClC,CAAC,4BAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,MAAM;QAClC,CAAC,4BAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,OAAO,KAAK,SAAS;KACrD,EAAE,4BAAM,CAAC,WAAW,QAAQ,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAEnD,IAAI,QAAQ,GAAG,QAAQ,CAAC;IACxB,IAAI,WAAW,EAAE;QACb,QAAQ,GAAG,8BAAC,2BAAY,IAAC,SAAS,EAAE,4BAAM,CAAC,OAAO,IAAG,QAAQ,CAAgB,CAAC;KACjF;IAED,IAAI,MAAiB,CAAC;IACtB,IAAI,KAAK,CAAC,MAAM,IAAI,IAAI,EAAE;QACtB,MAAM,GAAG,uCAAK,SAAS,EAAE,4BAAM,CAAC,MAAM,IAAG,KAAK,CAAC,MAAM,CAAO,CAAC;KAChE;IAED,IAAI,KAAgB,CAAC;IACrB,IAAI,KAAK,CAAC,KAAK,IAAI,IAAI,EAAE;QACrB,KAAK,GAAG,uCAAK,SAAS,EAAE,4BAAM,CAAC,KAAK,IAAG,KAAK,CAAC,KAAK,CAAO,CAAC;KAC7D;IAED,OAAO,CACH,uCAAK,SAAS,EAAE,GAAG;QACd,MAAM;QACP,uCAAK,SAAS,EAAE,4BAAM,CAAC,QAAQ,IAC1B,QAAQ,CACP;QACL,KAAK,CACJ,CACT,CAAC;AACN,CAAC,CAAC;AAEO,wBAAM"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
--border-color: var(--header-border);
|
|
3
|
+
--background-color: var(--header-bg);
|
|
4
|
+
background: var(--background-color);
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
font-weight: bold;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
color: var(--header-text);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.header--toolbar {
|
|
14
|
+
--border-color: var(--toolbar-border);
|
|
15
|
+
--background-color: var(--toolbar-bg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.header--top, .header--bottom {
|
|
19
|
+
padding: 0 16.666px;
|
|
20
|
+
min-height: 44px;
|
|
21
|
+
}
|
|
22
|
+
.header--left, .header--right {
|
|
23
|
+
padding: 16.666px 0;
|
|
24
|
+
min-width: 44px;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
> .contents {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.header--top {
|
|
34
|
+
border-bottom: 0.37px solid var(--border-color);
|
|
35
|
+
}
|
|
36
|
+
.header--bottom {
|
|
37
|
+
border-top: 0.37px solid var(--border-color);
|
|
38
|
+
order: 2;
|
|
39
|
+
}
|
|
40
|
+
.header--left {
|
|
41
|
+
border-right: 0.37px solid var(--border-color);
|
|
42
|
+
}
|
|
43
|
+
.header--right {
|
|
44
|
+
border-left: 0.37px solid var(--border-color);
|
|
45
|
+
order: 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.contents {
|
|
49
|
+
flex: 1;
|
|
50
|
+
display: flex;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.header--center > .contents {
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.header--top, .header--bottom {
|
|
58
|
+
.before {
|
|
59
|
+
margin-right: calc(50px / var(--ratio-dimensions));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.after {
|
|
63
|
+
margin-left: calc(50px / var(--ratio-dimensions));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.actions {
|
|
67
|
+
margin: calc(56px / var(--ratio-dimensions)) 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.header--left, .header--right {
|
|
72
|
+
.before {
|
|
73
|
+
margin-bottom: calc(50px / var(--ratio-dimensions));
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.after {
|
|
78
|
+
margin-top: calc(50px / var(--ratio-dimensions));
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.actions {
|
|
83
|
+
margin: 0 calc(56px / var(--ratio-dimensions));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.before, .after {
|
|
88
|
+
display: flex;
|
|
89
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { ICON } from "../../icons/Icon";
|
|
4
|
+
interface LinkProps {
|
|
5
|
+
href: string;
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
icon?: ICON | Exclude<ReactNode, string>;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
href?: string;
|
|
11
|
+
to?: string;
|
|
12
|
+
Link?: React.ComponentClass<LinkProps> | React.FC<LinkProps>;
|
|
13
|
+
label?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const HeaderIconAction: React.VFC<Props>;
|
|
16
|
+
export { HeaderIconAction };
|
|
17
|
+
//# sourceMappingURL=HeaderIconAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,KAAK;IACX,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAC7D,KAAK,CAAC,EAAE,SAAS,CAAC;CAErB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAyBtC,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.HeaderIconAction = void 0;
|
|
18
|
+
const react_1 = __importDefault(require("react"));
|
|
19
|
+
const Icon_1 = require("../../icons/Icon");
|
|
20
|
+
const HeaderIconAction_module_scss_1 = __importDefault(require("./HeaderIconAction.module.scss"));
|
|
21
|
+
const HeaderIconAction = (props) => {
|
|
22
|
+
const { icon, label, href, to, Link } = props, restProps = __rest(props, ["icon", "label", "href", "to", "Link"]);
|
|
23
|
+
let content = icon;
|
|
24
|
+
if (typeof icon === "string") {
|
|
25
|
+
content = react_1.default.createElement(Icon_1.Icon, { className: HeaderIconAction_module_scss_1.default.icon, name: icon });
|
|
26
|
+
}
|
|
27
|
+
if (to) {
|
|
28
|
+
if (!Link) {
|
|
29
|
+
throw new TypeError("`to` prop given without `Link` component");
|
|
30
|
+
}
|
|
31
|
+
return react_1.default.createElement(Link, Object.assign({ href: to }, restProps),
|
|
32
|
+
react_1.default.createElement("a", { className: HeaderIconAction_module_scss_1.default.a }, content));
|
|
33
|
+
}
|
|
34
|
+
if (href) {
|
|
35
|
+
return react_1.default.createElement("a", Object.assign({ href: href, className: HeaderIconAction_module_scss_1.default.a }, restProps), content);
|
|
36
|
+
}
|
|
37
|
+
return (react_1.default.createElement("button", { className: HeaderIconAction_module_scss_1.default.btn, onClick: props.onClick }, content));
|
|
38
|
+
};
|
|
39
|
+
exports.HeaderIconAction = HeaderIconAction;
|
|
40
|
+
//# sourceMappingURL=HeaderIconAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAI1B,2CAAwC;AACxC,kGAAoD;AAgBpD,MAAM,gBAAgB,GAAqB,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAArD,uCAA6C,CAAQ,CAAC;IAE5D,IAAI,OAAO,GAAc,IAAI,CAAC;IAC9B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC1B,OAAO,GAAG,8BAAC,WAAI,IAAC,SAAS,EAAE,sCAAM,CAAC,IAAI,EAAE,IAAI,EAAE,IAAY,GAAI,CAAC;KAClE;IAED,IAAI,EAAE,EAAE;QACJ,IAAI,CAAC,IAAI,EAAE;YACP,MAAM,IAAI,SAAS,CAAC,0CAA0C,CAAC,CAAC;SACnE;QAED,OAAO,8BAAC,IAAI,kBAAC,IAAI,EAAE,EAAE,IAAM,SAAS;YAAE,qCAAG,SAAS,EAAE,sCAAM,CAAC,CAAC,IAAG,OAAO,CAAK,CAAO,CAAC;KACtF;IAED,IAAI,IAAI,EAAE;QACN,OAAO,mDAAG,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,sCAAM,CAAC,CAAC,IAAM,SAAS,GAAG,OAAO,CAAK,CAAC;KAC3E;IAED,OAAO,CACH,0CAAQ,SAAS,EAAE,sCAAM,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,IAChD,OAAO,CACH,CACZ,CAAC;AACN,CAAC,CAAC;AAEO,4CAAgB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.btn, .a {
|
|
2
|
+
padding: 7px;
|
|
3
|
+
background: none;
|
|
4
|
+
border-radius: 666px;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
border: calc(2px / var(--ratio-border)) solid transparent;
|
|
7
|
+
color: var(--header-text);
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
background: #00000022;
|
|
11
|
+
}
|
|
12
|
+
&:active {
|
|
13
|
+
background: #00000011;
|
|
14
|
+
color: currentColor;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.icon {
|
|
19
|
+
width: 16px;
|
|
20
|
+
height: 16px;
|
|
21
|
+
display: block;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Content {
|
|
3
|
+
Content: React.FC;
|
|
4
|
+
}
|
|
5
|
+
interface Props {
|
|
6
|
+
position?: "top" | "left" | "right" | "bottom";
|
|
7
|
+
}
|
|
8
|
+
declare const StickyHeader: React.FC<Props> & Content;
|
|
9
|
+
export { StickyHeader };
|
|
10
|
+
//# sourceMappingURL=StickyHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,UAAU,OAAO;IACb,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC;CACrB;AAED,UAAU,KAAK;IACX,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CAClD;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,OA+BrC,CAAC;AAMF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.StickyHeader = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
9
|
+
const Header_js_1 = require("./Header.js");
|
|
10
|
+
const StickyHeader_module_scss_1 = __importDefault(require("./StickyHeader.module.scss"));
|
|
11
|
+
const err = new TypeError("StickyHeader needs two children - Header and StickyHeader.Content");
|
|
12
|
+
const StickyHeader = (props) => {
|
|
13
|
+
const position = props.position || "top";
|
|
14
|
+
const children = react_1.default.Children.toArray(props.children);
|
|
15
|
+
if (children.length !== 2) {
|
|
16
|
+
throw err;
|
|
17
|
+
}
|
|
18
|
+
let header = children.find(c => typeof c === "object" && "type" in c && c.type === Header_js_1.Header), content = children.find(c => typeof c === "object" && "type" in c && c.type === StickyHeader.Content);
|
|
19
|
+
if (!header || !content) {
|
|
20
|
+
throw err;
|
|
21
|
+
}
|
|
22
|
+
header = header;
|
|
23
|
+
content = content;
|
|
24
|
+
const cls = classnames_1.default(StickyHeader_module_scss_1.default.stickyHeader, StickyHeader_module_scss_1.default[`stickyHeader--${position}`]);
|
|
25
|
+
const contentCls = classnames_1.default(StickyHeader_module_scss_1.default.stickyHeader__content, StickyHeader_module_scss_1.default[`stickyHeader__content--${position}`]);
|
|
26
|
+
return (react_1.default.createElement("div", { className: cls },
|
|
27
|
+
react_1.default.cloneElement(header, { position }),
|
|
28
|
+
react_1.default.createElement("div", { className: contentCls }, content)));
|
|
29
|
+
};
|
|
30
|
+
exports.StickyHeader = StickyHeader;
|
|
31
|
+
StickyHeader.Content = ({ children }) => {
|
|
32
|
+
return react_1.default.createElement(react_1.default.Fragment, null, children);
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=StickyHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.js","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AAEpC,2CAAqC;AACrC,0FAAgD;AAEhD,MAAM,GAAG,GAAG,IAAI,SAAS,CAAC,mEAAmE,CAAC,CAAC;AAU/F,MAAM,YAAY,GAA8B,CAAC,KAAK,EAAE,EAAE;IACtD,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC;IAEzC,MAAM,QAAQ,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAGxD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,MAAM,GAAG,CAAC;KACb;IAED,IAAI,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,kBAAM,CAAC,EACtF,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;IAE1G,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE;QACrB,MAAM,GAAG,CAAC;KACb;IAED,MAAM,GAAG,MAAe,CAAC;IACzB,OAAO,GAAG,OAAgB,CAAC;IAE3B,MAAM,GAAG,GAAG,oBAAU,CAAC,kCAAM,CAAC,YAAY,EAAE,kCAAM,CAAC,iBAAiB,QAAQ,EAAE,CAAC,CAAC,CAAC;IACjF,MAAM,UAAU,GAAG,oBAAU,CAAC,kCAAM,CAAC,qBAAqB,EAAE,kCAAM,CAAC,0BAA0B,QAAQ,EAAE,CAAC,CAAC,CAAC;IAE1G,OAAO,CACH,uCAAK,SAAS,EAAE,GAAG;QACd,eAAK,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC;QACzC,uCAAK,SAAS,EAAE,UAAU,IACrB,OAAO,CACN,CACJ,CACT,CAAC;AACN,CAAC,CAAC;AAMO,oCAAY;AAJrB,YAAY,CAAC,OAAO,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpC,OAAO,8DAAG,QAAQ,CAAI,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.stickyHeader {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
&__content {
|
|
7
|
+
flex: 1;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
|
|
10
|
+
&--bottom, &--right {
|
|
11
|
+
order: 1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.stickyHeader--left, .stickyHeader--right {
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LinkProps {
|
|
3
|
+
href: string;
|
|
4
|
+
}
|
|
5
|
+
interface Props {
|
|
6
|
+
href?: string;
|
|
7
|
+
to?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
Link?: React.ComponentClass<LinkProps> | React.FC<LinkProps>;
|
|
11
|
+
}
|
|
12
|
+
declare const Item: React.FC<Props>;
|
|
13
|
+
export { Item };
|
|
14
|
+
//# sourceMappingURL=Item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,KAAK;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;CAChE;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8BzB,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Item = void 0;
|
|
18
|
+
const react_1 = __importDefault(require("react"));
|
|
19
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
20
|
+
const Item_module_scss_1 = __importDefault(require("./Item.module.scss"));
|
|
21
|
+
const Item = (props) => {
|
|
22
|
+
const { className, children, href, to, onClick, Link } = props, restProps = __rest(props, ["className", "children", "href", "to", "onClick", "Link"]);
|
|
23
|
+
const cls = classnames_1.default(Item_module_scss_1.default.item, className);
|
|
24
|
+
const liProps = {
|
|
25
|
+
className: cls,
|
|
26
|
+
};
|
|
27
|
+
if (to) {
|
|
28
|
+
if (!Link) {
|
|
29
|
+
throw new TypeError("`to` prop given without `Link` component");
|
|
30
|
+
}
|
|
31
|
+
return react_1.default.createElement("li", Object.assign({}, liProps),
|
|
32
|
+
react_1.default.createElement(Link, Object.assign({ href: to }, restProps), children));
|
|
33
|
+
}
|
|
34
|
+
if (href) {
|
|
35
|
+
const aProps = Object.assign({}, restProps);
|
|
36
|
+
if (onClick) {
|
|
37
|
+
aProps.onClick = onClick;
|
|
38
|
+
}
|
|
39
|
+
return react_1.default.createElement("li", Object.assign({}, liProps),
|
|
40
|
+
react_1.default.createElement("a", Object.assign({ href: href }, aProps), children));
|
|
41
|
+
}
|
|
42
|
+
if (onClick) {
|
|
43
|
+
return (react_1.default.createElement("li", Object.assign({}, liProps),
|
|
44
|
+
react_1.default.createElement("button", Object.assign({ className: Item_module_scss_1.default.button, onClick: props.onClick }, restProps), children)));
|
|
45
|
+
}
|
|
46
|
+
return react_1.default.createElement("li", Object.assign({}, liProps),
|
|
47
|
+
react_1.default.createElement("div", Object.assign({}, restProps), children));
|
|
48
|
+
};
|
|
49
|
+
exports.Item = Item;
|
|
50
|
+
//# sourceMappingURL=Item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AAEpC,0EAAwC;AAcxC,MAAM,IAAI,GAAoB,CAAC,KAAK,EAAE,EAAE;IACpC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAtE,0DAA8D,CAAQ,CAAC;IAC7E,MAAM,GAAG,GAAG,oBAAU,CAAC,0BAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAE/C,MAAM,OAAO,GAAG;QACZ,SAAS,EAAE,GAAG;KACjB,CAAC;IAEF,IAAI,EAAE,EAAE;QACJ,IAAI,CAAC,IAAI,EAAE;YACP,MAAM,IAAI,SAAS,CAAC,0CAA0C,CAAC,CAAC;SACnE;QAED,OAAO,sDAAQ,OAAO;YAAE,8BAAC,IAAI,kBAAC,IAAI,EAAE,EAAE,IAAM,SAAS,GAAG,QAAQ,CAAQ,CAAK,CAAC;KACjF;IACD,IAAI,IAAI,EAAE;QACN,MAAM,MAAM,qBAA0D,SAAS,CAAE,CAAC;QAClF,IAAI,OAAO,EAAE;YACT,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;SAC5B;QACD,OAAO,sDAAQ,OAAO;YAAE,mDAAG,IAAI,EAAE,IAAI,IAAM,MAAM,GAAG,QAAQ,CAAK,CAAK,CAAC;KAC1E;IACD,IAAI,OAAO,EAAE;QACT,OAAO,CACH,sDAAQ,OAAO;YACX,wDAAQ,SAAS,EAAE,0BAAM,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,IAAM,SAAS,GAAG,QAAQ,CAAU,CAC3F,CACR,CAAC;KACL;IACD,OAAO,sDAAQ,OAAO;QAAE,uDAAS,SAAS,GAAG,QAAQ,CAAO,CAAK,CAAC;AACtE,CAAC,CAAC;AAEO,oBAAI"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.item {
|
|
2
|
+
list-style-type: none;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
font-size: 15px;
|
|
6
|
+
|
|
7
|
+
&:not(:first-child) > * {
|
|
8
|
+
border-top: 0.37px solid var(--header-border);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
> * {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: 20px 0;
|
|
14
|
+
text-decoration: none;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.button {
|
|
19
|
+
border: none;
|
|
20
|
+
background: none;
|
|
21
|
+
width: 100%;
|
|
22
|
+
text-align: left;
|
|
23
|
+
}
|