react-miui 0.21.0 → 0.23.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 +18 -0
- package/dist/components/form/Checkbox.js.map +1 -1
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/Select.d.ts +1 -5
- package/dist/components/form/Select.d.ts.map +1 -1
- package/dist/components/form/Select.js +2 -23
- package/dist/components/form/Select.js.map +1 -1
- package/dist/components/form/Select.stories.d.ts +8 -0
- package/dist/components/form/Select.stories.d.ts.map +1 -0
- package/dist/components/form/Select.stories.js +26 -0
- package/dist/components/form/Select.stories.js.map +1 -0
- package/dist/components/form/Select.styled.d.ts +82 -0
- package/dist/components/form/Select.styled.d.ts.map +1 -0
- package/dist/components/form/Select.styled.js +24 -0
- package/dist/components/form/Select.styled.js.map +1 -0
- package/dist/components/form/Toggle.js.map +1 -1
- package/dist/components/form/choice/Choice.d.ts.map +1 -1
- package/dist/components/form/choice/Choice.js.map +1 -1
- package/dist/components/form/input/Input.d.ts.map +1 -1
- package/dist/components/form/input/Input.js +1 -1
- package/dist/components/form/input/Input.js.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/dist/components/form/textarea/TextArea.styled.js.map +1 -1
- package/dist/components/layout/card/Card.js.map +1 -1
- package/dist/components/layout/header/Header.js.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
- package/dist/components/layout/header/StickyHeader.d.ts.map +1 -1
- package/dist/components/layout/header/StickyHeader.js.map +1 -1
- package/dist/components/layout/table/Table.js.map +1 -1
- package/dist/components/ui/action/Action.d.ts +1 -0
- package/dist/components/ui/action/Action.d.ts.map +1 -1
- package/dist/components/ui/action/EqualActions.d.ts.map +1 -1
- package/dist/components/ui/action/EqualActions.js.map +1 -1
- package/dist/components/ui/button/Button.d.ts +1 -7
- package/dist/components/ui/button/Button.d.ts.map +1 -1
- package/dist/components/ui/button/Button.js +2 -28
- package/dist/components/ui/button/Button.js.map +1 -1
- package/dist/components/ui/button/Button.stories.d.ts +9 -0
- package/dist/components/ui/button/Button.stories.d.ts.map +1 -0
- package/dist/components/ui/button/Button.stories.js +62 -0
- package/dist/components/ui/button/Button.stories.js.map +1 -0
- package/dist/components/ui/button/Button.styled.d.ts +85 -0
- package/dist/components/ui/button/Button.styled.d.ts.map +1 -0
- package/dist/components/ui/button/Button.styled.js +38 -0
- package/dist/components/ui/button/Button.styled.js.map +1 -0
- package/dist/components/ui/directionPad/Pad.d.ts.map +1 -1
- package/dist/components/ui/directionPad/Pad.js.map +1 -1
- package/dist/components/ui/keyValue/KeyValue.js.map +1 -1
- package/dist/components/ui/modal/Modal.d.ts +6 -4
- package/dist/components/ui/modal/Modal.d.ts.map +1 -1
- package/dist/components/ui/modal/Modal.js +30 -21
- package/dist/components/ui/modal/Modal.js.map +1 -1
- package/dist/components/ui/modal/Modal.stories.d.ts +10 -0
- package/dist/components/ui/modal/Modal.stories.d.ts.map +1 -0
- package/dist/components/ui/modal/Modal.stories.js +112 -0
- package/dist/components/ui/modal/Modal.stories.js.map +1 -0
- package/dist/components/ui/modal/Modal.styled.d.ts +329 -0
- package/dist/components/ui/modal/Modal.styled.d.ts.map +1 -0
- package/dist/components/ui/modal/Modal.styled.js +90 -0
- package/dist/components/ui/modal/Modal.styled.js.map +1 -0
- package/dist/components/ui/modal/ModalButton.js.map +1 -1
- package/dist/components/ui/modal/ModalButtons.d.ts +1 -11
- package/dist/components/ui/modal/ModalButtons.d.ts.map +1 -1
- package/dist/components/ui/modal/ModalButtons.js +2 -12
- package/dist/components/ui/modal/ModalButtons.js.map +1 -1
- package/dist/components/ui/modal/ModalButtons.stories.d.ts +8 -0
- package/dist/components/ui/modal/ModalButtons.stories.d.ts.map +1 -0
- package/dist/components/ui/modal/ModalButtons.stories.js +25 -0
- package/dist/components/ui/modal/ModalButtons.stories.js.map +1 -0
- package/dist/components/ui/modal/ModalButtons.styled.d.ts +166 -0
- package/dist/components/ui/modal/ModalButtons.styled.d.ts.map +1 -0
- package/dist/components/ui/modal/ModalButtons.styled.js +42 -0
- package/dist/components/ui/modal/ModalButtons.styled.js.map +1 -0
- package/dist/components/ui/pop/Pop.d.ts.map +1 -1
- package/dist/components/ui/pop/Pop.js.map +1 -1
- package/dist/components/ui/stats/Stats.js.map +1 -1
- package/dist/components/ui/tabs/Item.js.map +1 -1
- package/dist/components/ui/tabs/Selector.d.ts.map +1 -1
- package/dist/components/ui/tabs/Selector.js.map +1 -1
- package/dist/components/ui/toaster/Notification.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Drawer.html +30 -31
- package/docs/classes/Pop.html +32 -33
- package/docs/classes/ToasterProvider.html +29 -30
- package/docs/enums/ICON.html +14 -15
- package/docs/functions/Action.html +9 -9
- package/docs/functions/Button.html +44 -11
- package/docs/functions/Card.html +7 -7
- package/docs/functions/Checkbox.html +7 -7
- package/docs/functions/Choice.html +7 -7
- package/docs/functions/CoveringLoader.html +7 -7
- package/docs/functions/DirectionPad.html +7 -7
- package/docs/functions/EqualActions.html +7 -7
- package/docs/functions/FullLoader.html +7 -7
- package/docs/functions/HandleEsc.html +7 -7
- package/docs/functions/Header.html +7 -7
- package/docs/functions/HeaderIconAction.html +7 -7
- package/docs/functions/Icon-1.html +7 -7
- package/docs/functions/If.html +7 -7
- package/docs/functions/Input.html +7 -7
- package/docs/functions/KeyValue.html +7 -7
- package/docs/functions/Label.html +7 -7
- package/docs/functions/List-1.html +7 -7
- package/docs/functions/Loader.html +7 -7
- package/docs/functions/Loading.html +7 -7
- package/docs/functions/Message.html +9 -9
- package/docs/functions/Modal-1.html +7 -7
- package/docs/functions/ModalButtons.html +136 -0
- package/docs/functions/PopLoader.html +7 -7
- package/docs/functions/PopOption.html +7 -7
- package/docs/functions/SearchContainer.html +7 -7
- package/docs/functions/Section.html +9 -9
- package/docs/functions/Select.html +40 -11
- package/docs/functions/Selector.html +7 -7
- package/docs/functions/Spacer.html +7 -7
- package/docs/functions/Stats.html +7 -7
- package/docs/functions/StickyHeader-1.html +7 -7
- package/docs/functions/StickyHeader.Content.html +5 -6
- package/docs/functions/Table.html +7 -7
- package/docs/functions/TextArea.html +7 -7
- package/docs/functions/Toggle.html +7 -7
- package/docs/functions/getCssText.html +7 -7
- package/docs/functions/styled.html +7 -7
- package/docs/functions/useToaster.html +7 -7
- package/docs/index.html +6 -6
- package/docs/interfaces/ActionProps.html +122 -0
- package/docs/modules/List.html +7 -8
- package/docs/modules/Modal.html +8 -9
- package/docs/modules/StickyHeader.html +6 -7
- package/docs/modules.html +11 -8
- package/docs/pages/tutorials/Test.html +6 -6
- package/docs/types/ThemeCSS.html +7 -7
- package/docs/variables/List.Header.html +5 -6
- package/docs/variables/List.Item.html +5 -6
- package/docs/variables/{ModalButtons.Button.html → Modal.RemovePadding.html} +11 -12
- package/docs/variables/cssReset.html +7 -7
- package/docs/variables/miuiScrollbars.html +7 -7
- package/esm/components/form/Checkbox.js.map +1 -1
- package/esm/components/form/Label.js.map +1 -1
- package/esm/components/form/Select.d.ts +1 -5
- package/esm/components/form/Select.d.ts.map +1 -1
- package/esm/components/form/Select.js +1 -8
- package/esm/components/form/Select.js.map +1 -1
- package/esm/components/form/Select.stories.d.ts +8 -0
- package/esm/components/form/Select.stories.d.ts.map +1 -0
- package/esm/components/form/Select.stories.js +20 -0
- package/esm/components/form/Select.stories.js.map +1 -0
- package/esm/components/form/Select.styled.d.ts +82 -0
- package/esm/components/form/Select.styled.d.ts.map +1 -0
- package/esm/components/form/Select.styled.js +21 -0
- package/esm/components/form/Select.styled.js.map +1 -0
- package/esm/components/form/Toggle.js.map +1 -1
- package/esm/components/form/choice/Choice.d.ts.map +1 -1
- package/esm/components/form/choice/Choice.js.map +1 -1
- package/esm/components/form/input/Input.d.ts.map +1 -1
- package/esm/components/form/input/Input.js +1 -1
- package/esm/components/form/input/Input.js.map +1 -1
- package/esm/components/form/input/Input.stories.js +1 -1
- package/esm/components/form/textarea/TextArea.js +1 -1
- package/esm/components/form/textarea/TextArea.styled.d.ts.map +1 -1
- package/esm/components/form/textarea/TextArea.styled.js +2 -2
- package/esm/components/form/textarea/TextArea.styled.js.map +1 -1
- package/esm/components/layout/card/Card.js.map +1 -1
- package/esm/components/layout/header/Header.js.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
- package/esm/components/layout/header/StickyHeader.d.ts.map +1 -1
- package/esm/components/layout/header/StickyHeader.js.map +1 -1
- package/esm/components/layout/table/Table.js.map +1 -1
- package/esm/components/ui/action/Action.d.ts +1 -0
- package/esm/components/ui/action/Action.d.ts.map +1 -1
- package/esm/components/ui/action/EqualActions.d.ts.map +1 -1
- package/esm/components/ui/action/EqualActions.js.map +1 -1
- package/esm/components/ui/button/Button.d.ts +1 -7
- package/esm/components/ui/button/Button.d.ts.map +1 -1
- package/esm/components/ui/button/Button.js +1 -13
- package/esm/components/ui/button/Button.js.map +1 -1
- package/esm/components/ui/button/Button.stories.d.ts +9 -0
- package/esm/components/ui/button/Button.stories.d.ts.map +1 -0
- package/esm/components/ui/button/Button.stories.js +35 -0
- package/esm/components/ui/button/Button.stories.js.map +1 -0
- package/esm/components/ui/button/Button.styled.d.ts +85 -0
- package/esm/components/ui/button/Button.styled.d.ts.map +1 -0
- package/esm/components/ui/button/Button.styled.js +35 -0
- package/esm/components/ui/button/Button.styled.js.map +1 -0
- package/esm/components/ui/directionPad/Pad.d.ts.map +1 -1
- package/esm/components/ui/directionPad/Pad.js.map +1 -1
- package/esm/components/ui/keyValue/KeyValue.js.map +1 -1
- package/esm/components/ui/modal/Modal.d.ts +6 -4
- package/esm/components/ui/modal/Modal.d.ts.map +1 -1
- package/esm/components/ui/modal/Modal.js +30 -18
- package/esm/components/ui/modal/Modal.js.map +1 -1
- package/esm/components/ui/modal/Modal.stories.d.ts +10 -0
- package/esm/components/ui/modal/Modal.stories.d.ts.map +1 -0
- package/esm/components/ui/modal/Modal.stories.js +84 -0
- package/esm/components/ui/modal/Modal.stories.js.map +1 -0
- package/esm/components/ui/modal/Modal.styled.d.ts +329 -0
- package/esm/components/ui/modal/Modal.styled.d.ts.map +1 -0
- package/esm/components/ui/modal/Modal.styled.js +83 -0
- package/esm/components/ui/modal/Modal.styled.js.map +1 -0
- package/esm/components/ui/modal/ModalButton.js.map +1 -1
- package/esm/components/ui/modal/ModalButtons.d.ts +1 -11
- package/esm/components/ui/modal/ModalButtons.d.ts.map +1 -1
- package/esm/components/ui/modal/ModalButtons.js +1 -9
- package/esm/components/ui/modal/ModalButtons.js.map +1 -1
- package/esm/components/ui/modal/ModalButtons.stories.d.ts +8 -0
- package/esm/components/ui/modal/ModalButtons.stories.d.ts.map +1 -0
- package/esm/components/ui/modal/ModalButtons.stories.js +19 -0
- package/esm/components/ui/modal/ModalButtons.stories.js.map +1 -0
- package/esm/components/ui/modal/ModalButtons.styled.d.ts +166 -0
- package/esm/components/ui/modal/ModalButtons.styled.d.ts.map +1 -0
- package/esm/components/ui/modal/ModalButtons.styled.js +39 -0
- package/esm/components/ui/modal/ModalButtons.styled.js.map +1 -0
- package/esm/components/ui/pop/Pop.d.ts.map +1 -1
- package/esm/components/ui/pop/Pop.js.map +1 -1
- package/esm/components/ui/stats/Stats.js.map +1 -1
- package/esm/components/ui/tabs/Item.js.map +1 -1
- package/esm/components/ui/tabs/Selector.d.ts.map +1 -1
- package/esm/components/ui/tabs/Selector.js.map +1 -1
- package/esm/components/ui/toaster/Notification.js.map +1 -1
- package/package.json +18 -17
- package/pnpm-lock.yaml +11957 -0
- package/src/components/form/Checkbox.tsx +5 -5
- package/src/components/form/Label.tsx +1 -1
- package/src/components/form/Select.stories.tsx +30 -0
- package/src/components/form/Select.styled.ts +25 -0
- package/src/components/form/Select.tsx +1 -22
- package/src/components/form/Toggle.tsx +1 -1
- package/src/components/form/choice/Choice.tsx +3 -2
- package/src/components/form/input/Input.tsx +2 -1
- package/src/components/form/textarea/TextArea.styled.ts +1 -0
- package/src/components/layout/card/Card.tsx +1 -1
- package/src/components/layout/header/Header.tsx +4 -4
- package/src/components/layout/header/HeaderIconAction.tsx +1 -1
- package/src/components/layout/header/StickyHeader.tsx +1 -0
- package/src/components/layout/table/Table.tsx +4 -4
- package/src/components/ui/action/Action.tsx +2 -0
- package/src/components/ui/action/EqualActions.tsx +2 -1
- package/src/components/ui/button/Button.stories.tsx +55 -0
- package/src/components/ui/button/Button.styled.ts +43 -0
- package/src/components/ui/button/Button.tsx +1 -35
- package/src/components/ui/directionPad/Pad.tsx +1 -0
- package/src/components/ui/keyValue/KeyValue.tsx +2 -2
- package/src/components/ui/modal/Modal.stories.tsx +143 -0
- package/src/components/ui/modal/Modal.styled.ts +100 -0
- package/src/components/ui/modal/Modal.tsx +48 -26
- package/src/components/ui/modal/ModalButton.tsx +1 -1
- package/src/components/ui/modal/ModalButtons.stories.tsx +40 -0
- package/src/components/ui/modal/ModalButtons.styled.ts +51 -0
- package/src/components/ui/modal/ModalButtons.tsx +1 -22
- package/src/components/ui/pop/Pop.module.scss +1 -0
- package/src/components/ui/pop/Pop.tsx +1 -0
- package/src/components/ui/stats/Stats.tsx +1 -1
- package/src/components/ui/tabs/Item.tsx +1 -1
- package/src/components/ui/tabs/Selector.tsx +1 -0
- package/src/components/ui/toaster/Notification.tsx +1 -1
- package/src/demo/Demo.tsx +3 -3
- package/src/demo/Main.tsx +4 -3
- package/src/demo/components/form/Choice.tsx +3 -3
- package/src/demo/components/layout/header/StickyHeader.tsx +1 -1
- package/src/demo/components/ui/action/Action.tsx +4 -4
- package/src/demo/components/ui/stats/Stats.tsx +2 -2
- package/src/demo/componentsMap.ts +0 -25
- package/src/pages/_app.tsx +2 -1
- package/dist/components/form/Checkbox.module.scss +0 -71
- package/dist/components/form/Label.module.scss +0 -15
- package/dist/components/form/Select.module.scss +0 -18
- package/dist/components/form/Toggle.module.scss +0 -55
- package/dist/components/form/choice/Choice.module.scss +0 -56
- package/dist/components/form/input/Input.module.scss +0 -7
- package/dist/components/layout/card/Card.module.scss +0 -15
- package/dist/components/layout/header/Header.module.scss +0 -108
- package/dist/components/layout/header/HeaderIconAction.module.scss +0 -26
- package/dist/components/layout/header/StickyHeader.module.scss +0 -18
- package/dist/components/layout/section/SearchContainer.module.scss +0 -3
- package/dist/components/layout/table/Table.module.scss +0 -30
- package/dist/components/ui/action/Action.module.scss +0 -26
- package/dist/components/ui/action/EqualActions.module.scss +0 -11
- package/dist/components/ui/button/Button.module.scss +0 -25
- package/dist/components/ui/directionPad/Pad.module.scss +0 -45
- package/dist/components/ui/drawer/Drawer.module.scss +0 -15
- package/dist/components/ui/keyValue/KeyValue.module.scss +0 -57
- package/dist/components/ui/message/Message.module.scss +0 -31
- package/dist/components/ui/modal/Modal.module.scss +0 -92
- package/dist/components/ui/modal/ModalButtons.module.scss +0 -32
- package/dist/components/ui/modal/ModalNoMargin.d.ts +0 -7
- package/dist/components/ui/modal/ModalNoMargin.d.ts.map +0 -1
- package/dist/components/ui/modal/ModalNoMargin.js +0 -22
- package/dist/components/ui/modal/ModalNoMargin.js.map +0 -1
- package/dist/components/ui/pop/Pop.module.scss +0 -59
- package/dist/components/ui/stats/Stats.module.scss +0 -48
- package/dist/components/ui/tabs/Item.module.scss +0 -11
- package/dist/components/ui/tabs/Selector.module.scss +0 -6
- package/dist/components/ui/toaster/Toaster.module.scss +0 -32
- package/dist/components/utils/Spacer.module.scss +0 -3
- package/dist/global.scss +0 -95
- package/dist/scrollbars.scss +0 -22
- package/docs/functions/ModalButtons-1.html +0 -107
- package/docs/modules/ModalButtons.html +0 -59
- package/docs/variables/Modal.NegateMargin.html +0 -53
- package/esm/components/form/Checkbox.module.scss +0 -71
- package/esm/components/form/Label.module.scss +0 -15
- package/esm/components/form/Select.module.scss +0 -18
- package/esm/components/form/Toggle.module.scss +0 -55
- package/esm/components/form/choice/Choice.module.scss +0 -56
- package/esm/components/form/input/Input.module.scss +0 -7
- package/esm/components/layout/card/Card.module.scss +0 -15
- package/esm/components/layout/header/Header.module.scss +0 -108
- package/esm/components/layout/header/HeaderIconAction.module.scss +0 -26
- package/esm/components/layout/header/StickyHeader.module.scss +0 -18
- package/esm/components/layout/section/SearchContainer.module.scss +0 -3
- package/esm/components/layout/table/Table.module.scss +0 -30
- package/esm/components/ui/action/Action.module.scss +0 -26
- package/esm/components/ui/action/EqualActions.module.scss +0 -11
- package/esm/components/ui/button/Button.module.scss +0 -25
- package/esm/components/ui/directionPad/Pad.module.scss +0 -45
- package/esm/components/ui/drawer/Drawer.module.scss +0 -15
- package/esm/components/ui/keyValue/KeyValue.module.scss +0 -57
- package/esm/components/ui/message/Message.module.scss +0 -31
- package/esm/components/ui/modal/Modal.module.scss +0 -92
- package/esm/components/ui/modal/ModalButtons.module.scss +0 -32
- package/esm/components/ui/modal/ModalNoMargin.d.ts +0 -7
- package/esm/components/ui/modal/ModalNoMargin.d.ts.map +0 -1
- package/esm/components/ui/modal/ModalNoMargin.js +0 -16
- package/esm/components/ui/modal/ModalNoMargin.js.map +0 -1
- package/esm/components/ui/pop/Pop.module.scss +0 -59
- package/esm/components/ui/stats/Stats.module.scss +0 -48
- package/esm/components/ui/tabs/Item.module.scss +0 -11
- package/esm/components/ui/tabs/Selector.module.scss +0 -6
- package/esm/components/ui/toaster/Toaster.module.scss +0 -32
- package/esm/components/utils/Spacer.module.scss +0 -3
- package/esm/global.scss +0 -95
- package/esm/scrollbars.scss +0 -22
- package/src/components/form/Select.module.scss +0 -18
- package/src/components/ui/button/Button.module.scss +0 -25
- package/src/components/ui/modal/Modal.module.scss +0 -92
- package/src/components/ui/modal/ModalButtons.module.scss +0 -32
- package/src/components/ui/modal/ModalNoMargin.tsx +0 -25
- package/src/demo/components/form/Select.tsx +0 -26
- package/src/demo/components/ui/button/ButtonDemo.tsx +0 -23
- package/src/demo/components/ui/modal/Modal.tsx +0 -106
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
@keyframes overlay {
|
|
2
|
-
from {
|
|
3
|
-
background: #00000000;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
to {
|
|
7
|
-
background: #0000004c;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.overlay {
|
|
12
|
-
position: fixed;
|
|
13
|
-
z-index: 4;
|
|
14
|
-
top: 0;
|
|
15
|
-
bottom: 0;
|
|
16
|
-
left: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
animation: overlay 300ms;
|
|
22
|
-
animation-fill-mode: forwards;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.overlayOnBottom {
|
|
26
|
-
align-items: flex-end;
|
|
27
|
-
padding-bottom: calc(24px / var(--ratio-dimensions));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@keyframes container {
|
|
31
|
-
from {
|
|
32
|
-
transform: translateY(30px);
|
|
33
|
-
opacity: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
to {
|
|
37
|
-
transform: translateY(0);
|
|
38
|
-
opacity: 1;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.container {
|
|
43
|
-
background: var(--modal-bg);
|
|
44
|
-
border-radius: calc(12px / var(--ratio-dimensions));
|
|
45
|
-
max-width: 333px;
|
|
46
|
-
width: calc(100% - 30px);
|
|
47
|
-
padding: 20px;
|
|
48
|
-
position: relative;
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
animation: container 300ms;
|
|
51
|
-
animation-fill-mode: forwards;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.full {
|
|
55
|
-
width: calc(100vw - 30px);
|
|
56
|
-
max-width: 1000px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.isClosing {
|
|
60
|
-
// keep this after .overlay .container to prevent overwriting
|
|
61
|
-
animation-direction: reverse;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.close {
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 20px;
|
|
67
|
-
right: 20px;
|
|
68
|
-
background: none;
|
|
69
|
-
border: none;
|
|
70
|
-
padding: 0;
|
|
71
|
-
margin: 0;
|
|
72
|
-
|
|
73
|
-
+ .title {
|
|
74
|
-
margin-right: 40px;
|
|
75
|
-
margin-top: -4px;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.title {
|
|
80
|
-
font-size: calc(40px / var(--ratio-font));
|
|
81
|
-
text-align: center;
|
|
82
|
-
color: black;
|
|
83
|
-
margin: calc(90px / var(--ratio-dimensions)) 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.negateMargin {
|
|
87
|
-
margin: 0 -20px -20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.removeMargin {
|
|
91
|
-
margin: 0;
|
|
92
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
display: flex;
|
|
3
|
-
margin-top: calc(100px / var(--ratio-dimensions));
|
|
4
|
-
margin-left: -20px;
|
|
5
|
-
margin-right: -20px;
|
|
6
|
-
margin-bottom: -20px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.button {
|
|
10
|
-
border: none;
|
|
11
|
-
border-top: 1px solid var(--modal-button-border);
|
|
12
|
-
background: var(--modal-button-bg);
|
|
13
|
-
flex: 1;
|
|
14
|
-
height: calc(156px / var(--ratio-dimensions));
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
|
|
17
|
-
&:not(:first-child) {
|
|
18
|
-
border-left: 1px solid var(--modal-button-border);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:first-child {
|
|
22
|
-
border-bottom-left-radius: calc(12px / var(--ratio-dimensions));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:last-child {
|
|
26
|
-
border-bottom-right-radius: calc(12px / var(--ratio-dimensions));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.buttonMain {
|
|
31
|
-
color: var(--main-color);
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModalNoMargin.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalNoMargin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,KAAK;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAYtC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { List } from "../../layout/list/List.js";
|
|
3
|
-
import styles from "./Modal.module.scss";
|
|
4
|
-
const ModalNegateMargin = (props) => {
|
|
5
|
-
const chld = React.Children.map(props.children, (child, index) => {
|
|
6
|
-
if (child && typeof child === "object" && "type" in child && child.type === List) {
|
|
7
|
-
return React.cloneElement(child, {
|
|
8
|
-
className: styles.removeMargin,
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
return child;
|
|
12
|
-
});
|
|
13
|
-
return React.createElement("div", { className: styles.negateMargin }, chld);
|
|
14
|
-
};
|
|
15
|
-
export { ModalNegateMargin };
|
|
16
|
-
//# sourceMappingURL=ModalNoMargin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModalNoMargin.js","sourceRoot":"","sources":["../../../../src/components/ui/modal/ModalNoMargin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,iBAAiB,GAAoB,CAAC,KAAK,EAAE,EAAE;IACjD,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC7D,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;YAC9E,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;gBAE7B,SAAS,EAAE,MAAM,CAAC,YAAY;aACjC,CAAC,CAAC;SACN;QAED,OAAO,KAAK,CAAC;IACjB,CAAC,CAAC,CAAC;IACH,OAAO,6BAAK,SAAS,EAAE,MAAM,CAAC,YAAY,IAAG,IAAI,CAAO,CAAC;AAC7D,CAAC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
.overlay {
|
|
2
|
-
position: fixed;
|
|
3
|
-
background: #0000004c;
|
|
4
|
-
top: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
bottom: 0;
|
|
8
|
-
z-index: 4;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.pop {
|
|
12
|
-
z-index: 5;
|
|
13
|
-
position: absolute;
|
|
14
|
-
background: white;
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
list-style-type: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.li {
|
|
21
|
-
margin: 0;
|
|
22
|
-
padding: 0;
|
|
23
|
-
list-style-type: none;
|
|
24
|
-
|
|
25
|
-
+ .li {
|
|
26
|
-
border-top: 1px solid var(--border);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.button {
|
|
31
|
-
border: none;
|
|
32
|
-
background: white;
|
|
33
|
-
height: calc(116px / var(--ratio-dimensions));
|
|
34
|
-
padding: 0 calc(42px / var(--ratio-dimensions));
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
width: 100%;
|
|
37
|
-
min-width: calc(460px / var(--ratio-dimensions));
|
|
38
|
-
text-align: left;
|
|
39
|
-
color: var(--pop-text);
|
|
40
|
-
font-size: calc(26px / var(--ratio-font));
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
background: var(--active-bg);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.icon {
|
|
50
|
-
fill: currentColor;
|
|
51
|
-
margin-right: calc(42px / var(--ratio-dimensions));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.fakeIcon {
|
|
55
|
-
display: inline-block;
|
|
56
|
-
width: 16px;
|
|
57
|
-
height: 16px;
|
|
58
|
-
margin-right: calc(42px / var(--ratio-dimensions));
|
|
59
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
.stats {
|
|
2
|
-
--stats-border: 1px solid rgba(255, 255, 255, .15);
|
|
3
|
-
--stats-bg: rgba(255, 255, 255, .05);
|
|
4
|
-
--stats-value-color: rgba(255, 255, 255, .9);
|
|
5
|
-
--stats-label-color: rgba(255, 255, 255, .61);
|
|
6
|
-
|
|
7
|
-
display: flex;
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding: calc(60px / var(--ratio-dimensions)) 0;
|
|
10
|
-
margin: 0;
|
|
11
|
-
border-top: var(--stats-border);
|
|
12
|
-
background: var(--stats-bg);
|
|
13
|
-
background-clip: padding-box;
|
|
14
|
-
list-style-type: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.stats-dark {
|
|
18
|
-
--stats-border: 1px solid rgba(0, 0, 0, .15);
|
|
19
|
-
--stats-bg: rgba(0, 0, 0, .05);
|
|
20
|
-
--stats-value-color: rgba(0, 0, 0, .9);
|
|
21
|
-
--stats-label-color: rgba(0, 0, 0, .61);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.item {
|
|
25
|
-
flex: 1;
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
text-align: center;
|
|
31
|
-
gap: calc(20px / var(--ratio-dimensions));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.separator {
|
|
35
|
-
border-left: var(--stats-border);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.label {
|
|
39
|
-
display: block;
|
|
40
|
-
color: var(--stats-label-color);
|
|
41
|
-
font-size: calc(22px / var(--ratio-font));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.value {
|
|
45
|
-
display: block;
|
|
46
|
-
color: var(--stats-value-color);
|
|
47
|
-
font-size: calc(30px / var(--ratio-font));
|
|
48
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@keyframes show {
|
|
2
|
-
from {
|
|
3
|
-
transform: translateY(calc(100% + calc(190px / var(--ratio-dimensions))))
|
|
4
|
-
}
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.toast {
|
|
8
|
-
position: fixed;
|
|
9
|
-
bottom: 0;
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
z-index: 6;
|
|
13
|
-
left: 50%;
|
|
14
|
-
transform: translateX(-50%);
|
|
15
|
-
|
|
16
|
-
span {
|
|
17
|
-
background: rgba(56, 50, 46, 0.85);
|
|
18
|
-
color: #F9F6F2;
|
|
19
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.37);
|
|
20
|
-
border-radius: 12px; // around 22 @TODO use calc here
|
|
21
|
-
display: inline-block;
|
|
22
|
-
padding: 1em 1em;
|
|
23
|
-
animation: show 500ms 1;
|
|
24
|
-
animation-fill-mode: forwards;
|
|
25
|
-
margin-bottom: calc(190px / var(--ratio-dimensions));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.hide {
|
|
30
|
-
transition: opacity 300ms;
|
|
31
|
-
opacity: 0;
|
|
32
|
-
}
|
package/esm/global.scss
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// @TODO prefix variable names
|
|
2
|
-
:root {
|
|
3
|
-
--ratio-dimensions: 3;
|
|
4
|
-
--ratio-border: 2.666666;
|
|
5
|
-
// font is calculated from top to bottom
|
|
6
|
-
--ratio-font: 1.666666;
|
|
7
|
-
|
|
8
|
-
--background: white;
|
|
9
|
-
|
|
10
|
-
--main-color: #008ad2;
|
|
11
|
-
--main-color-alt: #006AA9;
|
|
12
|
-
|
|
13
|
-
--active-bg: #e7e7e7;
|
|
14
|
-
--inactive-bg: #d3d3d3;
|
|
15
|
-
--inactive-dark-bg: #999;
|
|
16
|
-
|
|
17
|
-
--toggle-handle-bg: #e0e0e0;
|
|
18
|
-
--toggle-handle-border: #cdcdcd;
|
|
19
|
-
--toggle-bg-disabled: #f0f0f0;
|
|
20
|
-
--toggle-handle-border-disabled: #c29f7d;
|
|
21
|
-
--toggle-handle-bg-disabled: #deae84;
|
|
22
|
-
|
|
23
|
-
--icon: #636363;
|
|
24
|
-
--border: #d5d5d5;
|
|
25
|
-
--button-border: #bababa;
|
|
26
|
-
|
|
27
|
-
--header-border: #c8c8c9;
|
|
28
|
-
--header-bg: #efeff0;
|
|
29
|
-
--header-text: #484848;
|
|
30
|
-
--text: #323232;
|
|
31
|
-
--sub: #959595;
|
|
32
|
-
|
|
33
|
-
--pop-text: #666;
|
|
34
|
-
|
|
35
|
-
--toolbar-border: #ababab;
|
|
36
|
-
--toolbar-bg: #f8f8f8;
|
|
37
|
-
--modal-bg: #f7f7f7;
|
|
38
|
-
--modal-button-bg: #f8f8f8;
|
|
39
|
-
--modal-button-border: #c2c2c2;
|
|
40
|
-
|
|
41
|
-
--input-disabled-bg: #f3f3f3;
|
|
42
|
-
--input-disabled-text: #959595;
|
|
43
|
-
|
|
44
|
-
--choice-bg: #ffffff;
|
|
45
|
-
--choice-text: #999999;
|
|
46
|
-
--choice-active-bg: #f3f3f3;
|
|
47
|
-
--choice-active-text: #313131;
|
|
48
|
-
--choice-border: #cfcfcf;
|
|
49
|
-
|
|
50
|
-
--selector-text: #606060;
|
|
51
|
-
--selector-active: var(--main-color);
|
|
52
|
-
|
|
53
|
-
// Shades: https://maketintsandshades.com/#038bf4,ff7200,7357e8,3ec234,3ec234,ff388f,ea2700
|
|
54
|
-
--blue1: #038bf4;
|
|
55
|
-
--blue2: #b7d6f5;
|
|
56
|
-
--blue3: #dbe6ff;
|
|
57
|
-
--orange1: #ff7200;
|
|
58
|
-
--orange1-darker: #cc5b00;
|
|
59
|
-
--purple1: #7357e8;
|
|
60
|
-
--green1: #3ec234;
|
|
61
|
-
--green1-darker: #38af2f;
|
|
62
|
-
--pink1: #ff388f;
|
|
63
|
-
--red1: #ea2700;
|
|
64
|
-
--yellow1: #ffde9d;
|
|
65
|
-
--yellow2: #e4a429;
|
|
66
|
-
--yellow3: #fff5db;
|
|
67
|
-
--pinky1: #f5c0b7;
|
|
68
|
-
--pinky2: #e07b67;
|
|
69
|
-
--pinky3: #ffe1db;
|
|
70
|
-
|
|
71
|
-
--grey1: #737373;
|
|
72
|
-
|
|
73
|
-
--focus-color: #dcaf00;
|
|
74
|
-
|
|
75
|
-
--scrollbars-thumb: var(--grey1);
|
|
76
|
-
--scrollbars-bg: transparent;
|
|
77
|
-
|
|
78
|
-
--table-striped-bg: #fafafa;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
*:focus {
|
|
82
|
-
outline: none!important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
*:focus-visible:focus-visible {
|
|
86
|
-
outline: none!important;
|
|
87
|
-
border-color: var(--focus-color);
|
|
88
|
-
background-color: var(--focus-bg-set);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
body {
|
|
93
|
-
font-size: 15px;
|
|
94
|
-
color: var(--text);
|
|
95
|
-
}
|
package/esm/scrollbars.scss
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.miui-scrollbars {
|
|
2
|
-
overflow-y: auto;
|
|
3
|
-
scrollbar-color: var(--scrollbars-thumb) var(--scrollbars-bg);
|
|
4
|
-
scrollbar-width: thin !important;
|
|
5
|
-
|
|
6
|
-
&::-webkit-scrollbar {
|
|
7
|
-
width: 6px;
|
|
8
|
-
background-color: transparent;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&::-webkit-scrollbar-thumb:vertical {
|
|
12
|
-
background: var(--scrollbars-thumb);
|
|
13
|
-
background-clip: padding-box;
|
|
14
|
-
border: 2px solid var(--scrollbars-bg);
|
|
15
|
-
min-height: 10px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&::-webkit-scrollbar-thumb:vertical:active {
|
|
19
|
-
background: var(--scrollbars-thumb);
|
|
20
|
-
border: 2px solid var(--scrollbars-bg);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.select {
|
|
2
|
-
box-sizing: border-box;
|
|
3
|
-
height: calc(103px / var(--ratio-dimensions));
|
|
4
|
-
font-size: calc(34 / var(--ratio-font));
|
|
5
|
-
color: var(--text);
|
|
6
|
-
display: block;
|
|
7
|
-
width: 100%;
|
|
8
|
-
background: white;
|
|
9
|
-
font-family: inherit;
|
|
10
|
-
border-radius: 2px;
|
|
11
|
-
padding: 0 calc(36px / var(--ratio-dimensions));
|
|
12
|
-
border: calc(1px / var(--ratio-border)) solid var(--border);
|
|
13
|
-
|
|
14
|
-
&:disabled {
|
|
15
|
-
background: var(--input-disabled-bg);
|
|
16
|
-
color: var(--input-disabled-text);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.btn {
|
|
2
|
-
height: calc(118px / var(--ratio-dimensions));
|
|
3
|
-
background: var(--green1);
|
|
4
|
-
border: calc(1px / var(--ratio-border)) solid var(--green1-darker);
|
|
5
|
-
color: white;
|
|
6
|
-
border-radius: 1000px;
|
|
7
|
-
display: block;
|
|
8
|
-
width: 100%;
|
|
9
|
-
font-size: calc(26px / var(--ratio-font));
|
|
10
|
-
padding: 0 1em;
|
|
11
|
-
|
|
12
|
-
&:disabled {
|
|
13
|
-
opacity: 0.5;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.btn--inline {
|
|
18
|
-
width: auto;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.btn--outline {
|
|
22
|
-
background: white;
|
|
23
|
-
border-color: var(--button-border);
|
|
24
|
-
color: var(--grey1);
|
|
25
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
@keyframes overlay {
|
|
2
|
-
from {
|
|
3
|
-
background: #00000000;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
to {
|
|
7
|
-
background: #0000004c;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.overlay {
|
|
12
|
-
position: fixed;
|
|
13
|
-
z-index: 4;
|
|
14
|
-
top: 0;
|
|
15
|
-
bottom: 0;
|
|
16
|
-
left: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
animation: overlay 300ms;
|
|
22
|
-
animation-fill-mode: forwards;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.overlayOnBottom {
|
|
26
|
-
align-items: flex-end;
|
|
27
|
-
padding-bottom: calc(24px / var(--ratio-dimensions));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@keyframes container {
|
|
31
|
-
from {
|
|
32
|
-
transform: translateY(30px);
|
|
33
|
-
opacity: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
to {
|
|
37
|
-
transform: translateY(0);
|
|
38
|
-
opacity: 1;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.container {
|
|
43
|
-
background: var(--modal-bg);
|
|
44
|
-
border-radius: calc(12px / var(--ratio-dimensions));
|
|
45
|
-
max-width: 333px;
|
|
46
|
-
width: calc(100% - 30px);
|
|
47
|
-
padding: 20px;
|
|
48
|
-
position: relative;
|
|
49
|
-
box-sizing: border-box;
|
|
50
|
-
animation: container 300ms;
|
|
51
|
-
animation-fill-mode: forwards;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.full {
|
|
55
|
-
width: calc(100vw - 30px);
|
|
56
|
-
max-width: 1000px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.isClosing {
|
|
60
|
-
// keep this after .overlay .container to prevent overwriting
|
|
61
|
-
animation-direction: reverse;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.close {
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 20px;
|
|
67
|
-
right: 20px;
|
|
68
|
-
background: none;
|
|
69
|
-
border: none;
|
|
70
|
-
padding: 0;
|
|
71
|
-
margin: 0;
|
|
72
|
-
|
|
73
|
-
+ .title {
|
|
74
|
-
margin-right: 40px;
|
|
75
|
-
margin-top: -4px;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.title {
|
|
80
|
-
font-size: calc(40px / var(--ratio-font));
|
|
81
|
-
text-align: center;
|
|
82
|
-
color: black;
|
|
83
|
-
margin: calc(90px / var(--ratio-dimensions)) 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.negateMargin {
|
|
87
|
-
margin: 0 -20px -20px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.removeMargin {
|
|
91
|
-
margin: 0;
|
|
92
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
display: flex;
|
|
3
|
-
margin-top: calc(100px / var(--ratio-dimensions));
|
|
4
|
-
margin-left: -20px;
|
|
5
|
-
margin-right: -20px;
|
|
6
|
-
margin-bottom: -20px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.button {
|
|
10
|
-
border: none;
|
|
11
|
-
border-top: 1px solid var(--modal-button-border);
|
|
12
|
-
background: var(--modal-button-bg);
|
|
13
|
-
flex: 1;
|
|
14
|
-
height: calc(156px / var(--ratio-dimensions));
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
|
|
17
|
-
&:not(:first-child) {
|
|
18
|
-
border-left: 1px solid var(--modal-button-border);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:first-child {
|
|
22
|
-
border-bottom-left-radius: calc(12px / var(--ratio-dimensions));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:last-child {
|
|
26
|
-
border-bottom-right-radius: calc(12px / var(--ratio-dimensions));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.buttonMain {
|
|
31
|
-
color: var(--main-color);
|
|
32
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { List } from "../../layout/list/List.js";
|
|
4
|
-
|
|
5
|
-
import styles from "./Modal.module.scss";
|
|
6
|
-
|
|
7
|
-
interface Props {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const ModalNegateMargin: React.FC<Props> = (props) => {
|
|
12
|
-
const chld = React.Children.map(props.children, (child, index) => {
|
|
13
|
-
if (child && typeof child === "object" && "type" in child && child.type === List) {
|
|
14
|
-
return React.cloneElement(child, {
|
|
15
|
-
// @TODO this will overwrite className
|
|
16
|
-
className: styles.removeMargin,
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return child;
|
|
21
|
-
});
|
|
22
|
-
return <div className={styles.negateMargin}>{chld}</div>;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { ModalNegateMargin };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Label, Select } from "../../../index.js";
|
|
4
|
-
|
|
5
|
-
const SelectDemo: React.FC = () => {
|
|
6
|
-
return (
|
|
7
|
-
<>
|
|
8
|
-
<Label label={"Normal select"}>
|
|
9
|
-
<Select>
|
|
10
|
-
<option>Cookie</option>
|
|
11
|
-
<option>Ice cream</option>
|
|
12
|
-
<option>Sweets</option>
|
|
13
|
-
</Select>
|
|
14
|
-
</Label>
|
|
15
|
-
<Label label={"Disabled"}>
|
|
16
|
-
<Select disabled={true}>
|
|
17
|
-
<option>Cookie</option>
|
|
18
|
-
<option>Ice cream</option>
|
|
19
|
-
<option>Sweets</option>
|
|
20
|
-
</Select>
|
|
21
|
-
</Label>
|
|
22
|
-
</>
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { SelectDemo };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { useCallback } from "react";
|
|
2
|
-
|
|
3
|
-
import { Button } from "../../../../index.js";
|
|
4
|
-
|
|
5
|
-
const ButtonDemo = () => {
|
|
6
|
-
const handleClick = useCallback(() => {
|
|
7
|
-
alert("Clicked");
|
|
8
|
-
}, []);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div>
|
|
12
|
-
<Button onClick={handleClick}>Basic button</Button>
|
|
13
|
-
<br />
|
|
14
|
-
<Button disabled={true} onClick={handleClick}>Disabled button</Button>
|
|
15
|
-
<br />
|
|
16
|
-
<Button variant={"inline"} onClick={handleClick}>Inline button</Button>
|
|
17
|
-
<br />
|
|
18
|
-
<Button variant={"outline"} onClick={handleClick}>Outline button</Button>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { ButtonDemo };
|