react-miui 0.23.0 → 0.23.2
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 +10 -1
- package/dist/components/form/Checkbox.module.scss +71 -0
- package/dist/components/form/Label.module.scss +15 -0
- package/dist/components/form/Toggle.module.scss +55 -0
- package/dist/components/form/choice/Choice.module.scss +56 -0
- package/dist/components/form/input/Input.module.scss +7 -0
- package/dist/components/layout/card/Card.module.scss +15 -0
- package/dist/components/layout/header/Header.module.scss +108 -0
- package/dist/components/layout/header/HeaderIconAction.module.scss +26 -0
- package/dist/components/layout/header/StickyHeader.module.scss +18 -0
- package/dist/components/layout/list/Header.d.ts.map +1 -1
- package/dist/components/layout/list/Header.js +3 -1
- package/dist/components/layout/list/Header.js.map +1 -1
- package/dist/components/layout/section/SearchContainer.module.scss +3 -0
- package/dist/components/layout/section/SectionContainer.js +1 -1
- package/dist/components/layout/section/SectionContainer.js.map +1 -1
- package/dist/components/layout/table/Table.module.scss +30 -0
- package/dist/components/ui/action/Action.module.scss +26 -0
- package/dist/components/ui/action/EqualActions.module.scss +11 -0
- package/dist/components/ui/directionPad/Pad.module.scss +45 -0
- package/dist/components/ui/drawer/Drawer.module.scss +15 -0
- package/dist/components/ui/keyValue/KeyValue.module.scss +57 -0
- package/dist/components/ui/message/Message.module.scss +31 -0
- package/dist/components/ui/pop/Pop.module.scss +60 -0
- package/dist/components/ui/stats/Stats.module.scss +48 -0
- package/dist/components/ui/tabs/Item.module.scss +11 -0
- package/dist/components/ui/tabs/Selector.module.scss +6 -0
- package/dist/components/ui/toaster/Toaster.module.scss +32 -0
- package/dist/components/utils/Spacer.module.scss +3 -0
- package/dist/global.scss +95 -0
- package/dist/scrollbars.scss +22 -0
- package/docs/classes/Drawer.html +14 -14
- package/docs/classes/Pop.html +14 -14
- package/docs/classes/ToasterProvider.html +10 -10
- package/docs/enums/ICON.html +14 -14
- package/docs/functions/Action.html +4 -4
- package/docs/functions/Button.html +4 -4
- package/docs/functions/Card.html +4 -4
- package/docs/functions/Checkbox.html +4 -4
- package/docs/functions/Choice.html +5 -5
- package/docs/functions/CoveringLoader.html +4 -4
- package/docs/functions/DirectionPad.html +4 -4
- package/docs/functions/EqualActions.html +4 -4
- package/docs/functions/FullLoader.html +4 -4
- package/docs/functions/HandleEsc.html +4 -4
- package/docs/functions/Header.html +4 -4
- package/docs/functions/HeaderIconAction.html +4 -4
- package/docs/functions/Icon-1.html +4 -4
- package/docs/functions/If.html +4 -4
- package/docs/functions/Input.html +5 -5
- package/docs/functions/KeyValue.html +4 -4
- package/docs/functions/Label.html +4 -4
- package/docs/functions/List-1.html +4 -4
- package/docs/functions/Loader.html +4 -4
- package/docs/functions/Loading.html +4 -4
- package/docs/functions/Message.html +4 -4
- package/docs/functions/Modal-1.html +4 -4
- package/docs/functions/ModalButtons.html +4 -4
- package/docs/functions/PopLoader.html +4 -4
- package/docs/functions/PopOption.html +4 -4
- package/docs/functions/SearchContainer.html +4 -4
- package/docs/functions/Section.html +4 -4
- package/docs/functions/Select.html +4 -4
- package/docs/functions/Selector.html +5 -5
- package/docs/functions/Spacer.html +4 -4
- package/docs/functions/Stats.html +4 -4
- package/docs/functions/StickyHeader-1.html +4 -4
- package/docs/functions/StickyHeader.Content.html +5 -5
- package/docs/functions/Table.html +4 -4
- package/docs/functions/TextArea.html +4 -4
- package/docs/functions/Toggle.html +4 -4
- package/docs/functions/getCssText.html +4 -4
- package/docs/functions/styled.html +4 -4
- package/docs/functions/useToaster.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/ActionProps.html +12 -12
- 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 +4 -4
- package/docs/pages/tutorials/Test.html +4 -4
- package/docs/types/ThemeCSS.html +5 -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 +5 -5
- package/docs/variables/miuiScrollbars.html +5 -5
- package/esm/components/form/Checkbox.module.scss +71 -0
- package/esm/components/form/Label.module.scss +15 -0
- package/esm/components/form/Toggle.module.scss +55 -0
- package/esm/components/form/choice/Choice.module.scss +56 -0
- package/esm/components/form/input/Input.module.scss +7 -0
- package/esm/components/layout/card/Card.module.scss +15 -0
- package/esm/components/layout/header/Header.module.scss +108 -0
- package/esm/components/layout/header/HeaderIconAction.module.scss +26 -0
- package/esm/components/layout/header/StickyHeader.module.scss +18 -0
- package/esm/components/layout/list/Header.d.ts.map +1 -1
- package/esm/components/layout/list/Header.js +3 -1
- package/esm/components/layout/list/Header.js.map +1 -1
- package/esm/components/layout/section/SearchContainer.module.scss +3 -0
- package/esm/components/layout/section/SectionContainer.js +1 -1
- package/esm/components/layout/section/SectionContainer.js.map +1 -1
- package/esm/components/layout/table/Table.module.scss +30 -0
- package/esm/components/ui/action/Action.module.scss +26 -0
- package/esm/components/ui/action/EqualActions.module.scss +11 -0
- package/esm/components/ui/directionPad/Pad.module.scss +45 -0
- package/esm/components/ui/drawer/Drawer.module.scss +15 -0
- package/esm/components/ui/keyValue/KeyValue.module.scss +57 -0
- package/esm/components/ui/message/Message.module.scss +31 -0
- package/esm/components/ui/pop/Pop.module.scss +60 -0
- package/esm/components/ui/stats/Stats.module.scss +48 -0
- package/esm/components/ui/tabs/Item.module.scss +11 -0
- package/esm/components/ui/tabs/Selector.module.scss +6 -0
- package/esm/components/ui/toaster/Toaster.module.scss +32 -0
- package/esm/components/utils/Spacer.module.scss +3 -0
- package/esm/global.scss +95 -0
- package/esm/scrollbars.scss +22 -0
- package/package.json +1 -1
- package/src/components/layout/list/Header.tsx +3 -1
- package/src/components/layout/section/SectionContainer.tsx +1 -1
|
@@ -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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/list/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsBhB,CAAC;AAEH,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,KAAK,QAAQ,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAMlD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,GAAG,QAAQ,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAMpE,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { dimensionsPxToRem, fontPxToRem, styled } from "../../../theme.js";
|
|
3
3
|
import { Item, ItemInnerContainerClassName } from "./Item.js";
|
|
4
|
-
const StyledContent = styled("div", {
|
|
4
|
+
const StyledContent = styled("div", {
|
|
5
|
+
flex: 1,
|
|
6
|
+
});
|
|
5
7
|
const StyledHeader = styled(Item, {
|
|
6
8
|
paddingTop: dimensionsPxToRem(80),
|
|
7
9
|
paddingBottom: dimensionsPxToRem(40),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAE9D,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/components/layout/list/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3E,OAAO,EAAE,IAAI,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAE9D,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE;IAChC,IAAI,EAAE,CAAC;CACV,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,EAAE;IAE9B,UAAU,EAAE,iBAAiB,CAAC,EAAE,CAAC;IAEjC,aAAa,EAAE,iBAAiB,CAAC,EAAE,CAAC;IAEpC,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM;IACb,aAAa,EAAE,WAAW;IAE1B,CAAC,KAAK,2BAA2B,EAAE,CAAC,EAAE;QAClC,SAAS,EAAE,CAAC;KACf;IAED,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,IAAI,EAAE;gBACF,WAAW,EAAE,CAAC;gBACd,YAAY,EAAE,CAAC;aAClB;SACJ;KACJ;CACJ,CAAC,CAAC;AASH,MAAM,MAAM,GAA6D,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC1F,OAAO,CACH,oBAAC,YAAY,OAAK,KAAK;QACnB,oBAAC,aAAa,OAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAG,KAAK,CAAC,QAAQ,CAAiB,CACnE,CAClB,CAAC;AACN,CAAC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionContainer.js","sourceRoot":"","sources":["../../../../src/components/layout/section/SectionContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,EAAE;IACnC,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,CAAC;IACP,
|
|
1
|
+
{"version":3,"file":"SectionContainer.js","sourceRoot":"","sources":["../../../../src/components/layout/section/SectionContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,EAAE;IACnC,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,CAAC;IACP,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,GAAG,EAAE,EAAE;CACV,CAAC,CAAC;AAEH,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.table {
|
|
2
|
+
border-spacing: 10px;
|
|
3
|
+
border-collapse: collapse;
|
|
4
|
+
|
|
5
|
+
> * > tr > * {
|
|
6
|
+
text-align: left;
|
|
7
|
+
padding: 0.75em 0.5em;
|
|
8
|
+
border-bottom: 1px solid var(--border);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
> thead > tr:last-child > * {
|
|
12
|
+
border-bottom: 2px solid var(--border);
|
|
13
|
+
box-shadow: 0 4px 10px -10px rgba(0, 0, 0, 0.6);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.striped {
|
|
18
|
+
> tbody > tr:nth-child(even) > * {
|
|
19
|
+
background: var(--table-striped-bg);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.centered {
|
|
24
|
+
margin-left: auto;
|
|
25
|
+
margin-right: auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wide {
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.action {
|
|
2
|
+
height: calc(102px / var(--ratio-dimensions));
|
|
3
|
+
width: calc(102px / var(--ratio-dimensions));
|
|
4
|
+
border-radius: 100px;
|
|
5
|
+
border: calc(1px / var(--ratio-border)) solid var(--button-border);
|
|
6
|
+
background: white;
|
|
7
|
+
padding: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.a {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.button {
|
|
19
|
+
border: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
background: none;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: calc(18px / var(--ratio-dimensions));
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.actions {
|
|
2
|
+
--actions-count: 1;
|
|
3
|
+
display: inline-grid;
|
|
4
|
+
grid-template-columns: repeat(var(--actions-count), 1fr);
|
|
5
|
+
gap: calc(56px / var(--ratio-dimensions));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.vertical {
|
|
9
|
+
grid-template-columns: auto;
|
|
10
|
+
grid-template-rows: repeat(var(--actions-count), 1fr);
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.pad {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
height: 150px;
|
|
7
|
+
border-radius: 666px;
|
|
8
|
+
width: 150px;
|
|
9
|
+
border: 1px solid #aaa;
|
|
10
|
+
background: white;
|
|
11
|
+
|
|
12
|
+
&__line {
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__button {
|
|
17
|
+
height: 50px;
|
|
18
|
+
width: 50px;
|
|
19
|
+
margin: 0;
|
|
20
|
+
border-radius: 666px;
|
|
21
|
+
border: none;
|
|
22
|
+
display: block;
|
|
23
|
+
background: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__middle {
|
|
27
|
+
display: block;
|
|
28
|
+
margin: 0;
|
|
29
|
+
height: 50px;
|
|
30
|
+
width: 50px;
|
|
31
|
+
border: 1px solid #999;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
border-radius: 666px;
|
|
34
|
+
background: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__dot {
|
|
38
|
+
display: block;
|
|
39
|
+
width: 4px;
|
|
40
|
+
height: 4px;
|
|
41
|
+
border-radius: 666px;
|
|
42
|
+
background: black;
|
|
43
|
+
margin: auto;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
--kv-border-color: var(--header-border);
|
|
3
|
+
--kv-border: calc(1px / var(--ratio-border)) solid var(--kv-border-color);
|
|
4
|
+
--kv-background-color: white;
|
|
5
|
+
--kv-hover-background-color: var(--active-bg);
|
|
6
|
+
border: 1px solid var(--kv-border-color);
|
|
7
|
+
background-color: var(--kv-background-color);
|
|
8
|
+
border-radius: 5px;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.item {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 10px;
|
|
19
|
+
border: none;
|
|
20
|
+
background: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
button.item:hover {
|
|
24
|
+
background: var(--kv-hover-background-color)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.kv {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 3px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.key {
|
|
34
|
+
font-size: calc(22px / var(--ratio-font));
|
|
35
|
+
color: var(--sub);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.value {
|
|
39
|
+
font-size: calc(29px / var(--ratio-font));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.itemNotFirstRow {
|
|
43
|
+
border-top: var(--kv-border);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.itemNotFirstCol {
|
|
47
|
+
border-left: var(--kv-border);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.itemLastWithoutFullRow {
|
|
51
|
+
border-right: var(--kv-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.missingItem {
|
|
55
|
+
border-top: var(--kv-border);
|
|
56
|
+
border-left: var(--kv-border);
|
|
57
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
border-top: 1px solid var(--border);
|
|
3
|
+
border-bottom: 1px solid var(--border);
|
|
4
|
+
padding: calc(47px / var(--ratio-dimensions)) calc(83px / var(--ratio-dimensions));
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
line-height: 1.25;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.box {
|
|
10
|
+
border-left: 1px solid var(--border);
|
|
11
|
+
border-right: 1px solid var(--border);
|
|
12
|
+
margin: 12px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.warning {
|
|
16
|
+
background-color: var(--yellow3);
|
|
17
|
+
border-color: var(--yellow1);
|
|
18
|
+
color: var(--yellow2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.error {
|
|
22
|
+
background-color: var(--pinky3);
|
|
23
|
+
border-color: var(--pinky1);
|
|
24
|
+
color: var(--pinky2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.info {
|
|
28
|
+
background-color: var(--blue3);
|
|
29
|
+
border-color: var(--blue2);
|
|
30
|
+
color: var(--blue1);
|
|
31
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
font-weight: revert;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
background: var(--active-bg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.icon {
|
|
51
|
+
fill: currentColor;
|
|
52
|
+
margin-right: calc(42px / var(--ratio-dimensions));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.fakeIcon {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
width: 16px;
|
|
58
|
+
height: 16px;
|
|
59
|
+
margin-right: calc(42px / var(--ratio-dimensions));
|
|
60
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,9 @@ import { dimensionsPxToRem, fontPxToRem, styled } from "../../../theme.js";
|
|
|
6
6
|
|
|
7
7
|
import { Item, ItemInnerContainerClassName } from "./Item.js";
|
|
8
8
|
|
|
9
|
-
const StyledContent = styled("div", {
|
|
9
|
+
const StyledContent = styled("div", {
|
|
10
|
+
flex: 1,
|
|
11
|
+
});
|
|
10
12
|
|
|
11
13
|
const StyledHeader = styled(Item, {
|
|
12
14
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|