react-miui 0.22.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 +6 -0
- package/dist/components/form/Checkbox.js.map +1 -1
- package/dist/components/form/Label.js.map +1 -1
- 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/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.map +1 -1
- package/dist/components/ui/modal/Modal.js.map +1 -1
- package/dist/components/ui/modal/ModalButton.js.map +1 -1
- 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 -30
- package/docs/classes/Pop.html +32 -32
- package/docs/classes/ToasterProvider.html +29 -29
- package/docs/enums/ICON.html +14 -14
- package/docs/functions/Action.html +8 -7
- package/docs/functions/Button.html +8 -7
- package/docs/functions/Card.html +6 -5
- package/docs/functions/Checkbox.html +6 -5
- package/docs/functions/Choice.html +6 -5
- package/docs/functions/CoveringLoader.html +6 -5
- package/docs/functions/DirectionPad.html +6 -5
- package/docs/functions/EqualActions.html +6 -5
- package/docs/functions/FullLoader.html +6 -5
- package/docs/functions/HandleEsc.html +6 -5
- package/docs/functions/Header.html +6 -5
- package/docs/functions/HeaderIconAction.html +6 -5
- package/docs/functions/Icon-1.html +6 -5
- package/docs/functions/If.html +6 -5
- package/docs/functions/Input.html +6 -5
- package/docs/functions/KeyValue.html +6 -5
- package/docs/functions/Label.html +6 -5
- package/docs/functions/List-1.html +6 -5
- package/docs/functions/Loader.html +6 -5
- package/docs/functions/Loading.html +6 -5
- package/docs/functions/Message.html +8 -7
- package/docs/functions/Modal-1.html +6 -5
- package/docs/functions/ModalButtons.html +8 -7
- package/docs/functions/PopLoader.html +6 -5
- package/docs/functions/PopOption.html +6 -5
- package/docs/functions/SearchContainer.html +6 -5
- package/docs/functions/Section.html +8 -7
- package/docs/functions/Select.html +8 -7
- package/docs/functions/Selector.html +6 -5
- package/docs/functions/Spacer.html +6 -5
- package/docs/functions/Stats.html +6 -5
- package/docs/functions/StickyHeader-1.html +6 -5
- package/docs/functions/StickyHeader.Content.html +5 -5
- package/docs/functions/Table.html +6 -5
- package/docs/functions/TextArea.html +6 -5
- package/docs/functions/Toggle.html +6 -5
- package/docs/functions/getCssText.html +6 -5
- package/docs/functions/styled.html +6 -5
- package/docs/functions/useToaster.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/ActionProps.html +122 -0
- package/docs/modules/List.html +7 -7
- package/docs/modules/Modal.html +6 -6
- package/docs/modules/StickyHeader.html +6 -6
- package/docs/modules.html +9 -4
- package/docs/pages/tutorials/Test.html +5 -4
- package/docs/types/ThemeCSS.html +6 -5
- package/docs/variables/List.Header.html +5 -5
- package/docs/variables/List.Item.html +5 -5
- package/docs/variables/Modal.RemovePadding.html +5 -5
- package/docs/variables/cssReset.html +6 -5
- package/docs/variables/miuiScrollbars.html +6 -5
- package/esm/components/form/Checkbox.js.map +1 -1
- package/esm/components/form/Label.js.map +1 -1
- 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/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.map +1 -1
- package/esm/components/ui/modal/Modal.js +1 -1
- package/esm/components/ui/modal/Modal.js.map +1 -1
- package/esm/components/ui/modal/Modal.stories.js +1 -1
- package/esm/components/ui/modal/ModalButton.js.map +1 -1
- package/esm/components/ui/modal/ModalButtons.styled.js +1 -1
- 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 +17 -16
- 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/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/directionPad/Pad.tsx +1 -0
- package/src/components/ui/keyValue/KeyValue.tsx +2 -2
- package/src/components/ui/modal/Modal.tsx +0 -1
- package/src/components/ui/modal/ModalButton.tsx +1 -1
- 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/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/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/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/pop/Pop.module.scss +0 -60
- 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/esm/components/form/Checkbox.module.scss +0 -71
- package/esm/components/form/Label.module.scss +0 -15
- 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/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/pop/Pop.module.scss +0 -60
- 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
|
@@ -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
|
-
}
|