@remvst/design-system 0.0.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/.github/workflows/check.yaml +22 -0
- package/README.md +5 -0
- package/lib/alignment/alignment.css +24 -0
- package/lib/alignment/alignment.d.ts +14 -0
- package/lib/alignment/alignment.js +33 -0
- package/lib/animations/animations.css +125 -0
- package/lib/animations/animations.d.ts +8 -0
- package/lib/animations/animations.js +23 -0
- package/lib/balanced-row/balanced-row.css +9 -0
- package/lib/balanced-row/balanced-row.d.ts +5 -0
- package/lib/balanced-row/balanced-row.js +16 -0
- package/lib/balanced-stack/balanced-stack.css +10 -0
- package/lib/balanced-stack/balanced-stack.d.ts +5 -0
- package/lib/balanced-stack/balanced-stack.js +16 -0
- package/lib/buttons/buttons.css +10 -0
- package/lib/buttons/buttons.d.ts +5 -0
- package/lib/buttons/buttons.js +12 -0
- package/lib/component-with-class-name.d.ts +5 -0
- package/lib/component-with-class-name.js +15 -0
- package/lib/dim/dim.css +5 -0
- package/lib/dim/dim.d.ts +5 -0
- package/lib/dim/dim.js +12 -0
- package/lib/flow-list/flow-list.css +10 -0
- package/lib/flow-list/flow-list.d.ts +5 -0
- package/lib/flow-list/flow-list.js +16 -0
- package/lib/focusable.d.ts +13 -0
- package/lib/focusable.js +31 -0
- package/lib/frame/frame.css +3 -0
- package/lib/frame/frame.d.ts +5 -0
- package/lib/frame/frame.js +12 -0
- package/lib/gauge/gauge.css +24 -0
- package/lib/gauge/gauge.d.ts +10 -0
- package/lib/gauge/gauge.js +18 -0
- package/lib/highlightable-row/highlightable-row.css +11 -0
- package/lib/highlightable-row/highlightable-row.d.ts +11 -0
- package/lib/highlightable-row/highlightable-row.js +15 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.js +38 -0
- package/lib/key-value-layout/key-value-layout.css +15 -0
- package/lib/key-value-layout/key-value-layout.d.ts +5 -0
- package/lib/key-value-layout/key-value-layout.js +12 -0
- package/lib/labels/labels.css +39 -0
- package/lib/labels/labels.d.ts +23 -0
- package/lib/labels/labels.js +54 -0
- package/lib/reset/reset.css +13 -0
- package/lib/screen-column-layout/screen-column-layout.css +126 -0
- package/lib/screen-column-layout/screen-column-layout.d.ts +20 -0
- package/lib/screen-column-layout/screen-column-layout.js +47 -0
- package/lib/screen-stack-layout/screen-stack-layout.css +26 -0
- package/lib/screen-stack-layout/screen-stack-layout.d.ts +14 -0
- package/lib/screen-stack-layout/screen-stack-layout.js +33 -0
- package/lib/scrollable-content/scrollable-content.css +5 -0
- package/lib/scrollable-content/scrollable-content.d.ts +5 -0
- package/lib/scrollable-content/scrollable-content.js +12 -0
- package/lib/slider/slider.css +85 -0
- package/lib/slider/slider.d.ts +18 -0
- package/lib/slider/slider.js +47 -0
- package/lib/spacing/spacing.css +9 -0
- package/lib/spacing/spacing.d.ts +10 -0
- package/lib/spacing/spacing.js +14 -0
- package/lib/stack-list/stack-list.css +4 -0
- package/lib/stack-list/stack-list.d.ts +5 -0
- package/lib/stack-list/stack-list.js +16 -0
- package/lib/tabs/tabs.css +24 -0
- package/lib/tabs/tabs.d.ts +13 -0
- package/lib/tabs/tabs.js +25 -0
- package/lib/typography/typography.css +9 -0
- package/lib/typography/typography.d.ts +10 -0
- package/lib/typography/typography.js +14 -0
- package/package.json +27 -0
- package/src/alignment/alignment.css +24 -0
- package/src/alignment/alignment.tsx +18 -0
- package/src/animations/animations.css +125 -0
- package/src/animations/animations.ts +21 -0
- package/src/assets.d.ts +1 -0
- package/src/balanced-row/balanced-row.css +9 -0
- package/src/balanced-row/balanced-row.tsx +16 -0
- package/src/balanced-stack/balanced-stack.css +10 -0
- package/src/balanced-stack/balanced-stack.tsx +16 -0
- package/src/buttons/buttons.css +10 -0
- package/src/buttons/buttons.tsx +6 -0
- package/src/component-with-class-name.tsx +15 -0
- package/src/dim/dim.css +5 -0
- package/src/dim/dim.tsx +6 -0
- package/src/flow-list/flow-list.css +10 -0
- package/src/flow-list/flow-list.tsx +16 -0
- package/src/focusable.tsx +48 -0
- package/src/frame/frame.css +3 -0
- package/src/frame/frame.tsx +6 -0
- package/src/gauge/gauge.css +24 -0
- package/src/gauge/gauge.tsx +25 -0
- package/src/highlightable-row/highlightable-row.css +11 -0
- package/src/highlightable-row/highlightable-row.tsx +17 -0
- package/src/index.ts +23 -0
- package/src/key-value-layout/key-value-layout.css +15 -0
- package/src/key-value-layout/key-value-layout.tsx +6 -0
- package/src/labels/labels.css +39 -0
- package/src/labels/labels.tsx +30 -0
- package/src/reset/reset.css +13 -0
- package/src/screen-column-layout/screen-column-layout.css +126 -0
- package/src/screen-column-layout/screen-column-layout.tsx +26 -0
- package/src/screen-stack-layout/screen-stack-layout.css +26 -0
- package/src/screen-stack-layout/screen-stack-layout.tsx +18 -0
- package/src/scrollable-content/scrollable-content.css +5 -0
- package/src/scrollable-content/scrollable-content.tsx +6 -0
- package/src/slider/slider.css +85 -0
- package/src/slider/slider.tsx +61 -0
- package/src/spacing/spacing.css +9 -0
- package/src/spacing/spacing.ts +11 -0
- package/src/stack-list/stack-list.css +4 -0
- package/src/stack-list/stack-list.tsx +16 -0
- package/src/tabs/tabs.css +24 -0
- package/src/tabs/tabs.tsx +29 -0
- package/src/typography/typography.css +9 -0
- package/src/typography/typography.ts +11 -0
- package/tsconfig.json +13 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
require("./reset/reset.css");
|
|
18
|
+
__exportStar(require("./animations/animations"), exports);
|
|
19
|
+
__exportStar(require("./alignment/alignment"), exports);
|
|
20
|
+
__exportStar(require("./balanced-row/balanced-row"), exports);
|
|
21
|
+
__exportStar(require("./balanced-stack/balanced-stack"), exports);
|
|
22
|
+
__exportStar(require("./buttons/buttons"), exports);
|
|
23
|
+
__exportStar(require("./dim/dim"), exports);
|
|
24
|
+
__exportStar(require("./flow-list/flow-list"), exports);
|
|
25
|
+
__exportStar(require("./focusable"), exports);
|
|
26
|
+
__exportStar(require("./frame/frame"), exports);
|
|
27
|
+
__exportStar(require("./gauge/gauge"), exports);
|
|
28
|
+
__exportStar(require("./highlightable-row/highlightable-row"), exports);
|
|
29
|
+
__exportStar(require("./key-value-layout/key-value-layout"), exports);
|
|
30
|
+
__exportStar(require("./labels/labels"), exports);
|
|
31
|
+
__exportStar(require("./screen-column-layout/screen-column-layout"), exports);
|
|
32
|
+
__exportStar(require("./screen-stack-layout/screen-stack-layout"), exports);
|
|
33
|
+
__exportStar(require("./scrollable-content/scrollable-content"), exports);
|
|
34
|
+
__exportStar(require("./slider/slider"), exports);
|
|
35
|
+
__exportStar(require("./spacing/spacing"), exports);
|
|
36
|
+
__exportStar(require("./stack-list/stack-list"), exports);
|
|
37
|
+
__exportStar(require("./tabs/tabs"), exports);
|
|
38
|
+
__exportStar(require("./typography/typography"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.key-value-layout {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
flex-wrap: nowrap;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.key-value-layout > *:first-child {
|
|
9
|
+
flex: 1 0 auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.key-value-layout > * {
|
|
13
|
+
align-self: center;
|
|
14
|
+
max-width: 50%;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyValueLayout = void 0;
|
|
4
|
+
const component_with_class_name_1 = require("../component-with-class-name");
|
|
5
|
+
require("./key-value-layout.css");
|
|
6
|
+
class KeyValueLayout extends component_with_class_name_1.ComponentWithClassName {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.className = "key-value-layout";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.KeyValueLayout = KeyValueLayout;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.label-giant {
|
|
2
|
+
font-size: 100px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.label-large {
|
|
6
|
+
font-size: var(--font-size-l);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.label-medium {
|
|
10
|
+
font-size: var(--font-size-m);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.label-small {
|
|
14
|
+
font-size: var(--font-size-s);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.label-tiny {
|
|
18
|
+
font-size: var(--font-size-xs);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.main-title {
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: var(--font-size-xxl);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.text-block {
|
|
27
|
+
font-size: var(--font-size-m);
|
|
28
|
+
color: white;
|
|
29
|
+
padding: 10px 10%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.text-block p {
|
|
33
|
+
margin: 10px 0px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.text-block ul {
|
|
37
|
+
margin-left: 20px;
|
|
38
|
+
list-style-type: square;
|
|
39
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentWithClassName } from "../component-with-class-name";
|
|
2
|
+
import "./labels.css";
|
|
3
|
+
export declare class GiantLabel extends ComponentWithClassName {
|
|
4
|
+
readonly className = "label label-giant";
|
|
5
|
+
}
|
|
6
|
+
export declare class LargeLabel extends ComponentWithClassName {
|
|
7
|
+
readonly className = "label label-large";
|
|
8
|
+
}
|
|
9
|
+
export declare class MediumLabel extends ComponentWithClassName {
|
|
10
|
+
readonly className = "label label-medium";
|
|
11
|
+
}
|
|
12
|
+
export declare class SmallLabel extends ComponentWithClassName {
|
|
13
|
+
readonly className = "label label-small";
|
|
14
|
+
}
|
|
15
|
+
export declare class TinyLabel extends ComponentWithClassName {
|
|
16
|
+
readonly className = "label label-tiny";
|
|
17
|
+
}
|
|
18
|
+
export declare class MainTitle extends ComponentWithClassName {
|
|
19
|
+
readonly className = "label main-title";
|
|
20
|
+
}
|
|
21
|
+
export declare class TextBlock extends ComponentWithClassName {
|
|
22
|
+
readonly className = "text-block";
|
|
23
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextBlock = exports.MainTitle = exports.TinyLabel = exports.SmallLabel = exports.MediumLabel = exports.LargeLabel = exports.GiantLabel = void 0;
|
|
4
|
+
const component_with_class_name_1 = require("../component-with-class-name");
|
|
5
|
+
require("./labels.css");
|
|
6
|
+
class GiantLabel extends component_with_class_name_1.ComponentWithClassName {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.className = "label label-giant";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.GiantLabel = GiantLabel;
|
|
13
|
+
class LargeLabel extends component_with_class_name_1.ComponentWithClassName {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.className = "label label-large";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.LargeLabel = LargeLabel;
|
|
20
|
+
class MediumLabel extends component_with_class_name_1.ComponentWithClassName {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.className = "label label-medium";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.MediumLabel = MediumLabel;
|
|
27
|
+
class SmallLabel extends component_with_class_name_1.ComponentWithClassName {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.className = "label label-small";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.SmallLabel = SmallLabel;
|
|
34
|
+
class TinyLabel extends component_with_class_name_1.ComponentWithClassName {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.className = "label label-tiny";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.TinyLabel = TinyLabel;
|
|
41
|
+
class MainTitle extends component_with_class_name_1.ComponentWithClassName {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
44
|
+
this.className = "label main-title";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.MainTitle = MainTitle;
|
|
48
|
+
class TextBlock extends component_with_class_name_1.ComponentWithClassName {
|
|
49
|
+
constructor() {
|
|
50
|
+
super(...arguments);
|
|
51
|
+
this.className = "text-block";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.TextBlock = TextBlock;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
.screen-layout-column {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.screen-layout-column > * {
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.screen-layout-column > .screen-layout-column-main-column {
|
|
12
|
+
flex: 0 0 45%;
|
|
13
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.screen-layout-column
|
|
19
|
+
> .screen-layout-column-main-column
|
|
20
|
+
> .screen-layout-column-main-column-header {
|
|
21
|
+
flex-basis: 40%;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding-left: 5%;
|
|
27
|
+
padding-right: 5%;
|
|
28
|
+
text-align: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.screen-layout-column
|
|
32
|
+
> .screen-layout-column-main-column
|
|
33
|
+
> .screen-layout-column-main-column-footer {
|
|
34
|
+
flex-basis: 100px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.screen-layout-column
|
|
41
|
+
> .screen-layout-column-main-column
|
|
42
|
+
> .screen-layout-column-main-column-content {
|
|
43
|
+
flex: 1 0 0;
|
|
44
|
+
overflow: hidden auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.screen-layout-column > .screen-layout-column-central-content {
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
padding: 10%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mobile .screen-layout-column > .screen-central-content {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mobile .screen-layout-column > .screen-layout-column-main-column {
|
|
59
|
+
flex-basis: 100%;
|
|
60
|
+
background: transparent;
|
|
61
|
+
justify-content: start;
|
|
62
|
+
padding-left: 10px;
|
|
63
|
+
padding-right: 10px;
|
|
64
|
+
margin-left: auto;
|
|
65
|
+
margin-right: auto;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mobile
|
|
69
|
+
.screen-layout-column
|
|
70
|
+
> .screen-layout-column-main-column
|
|
71
|
+
> .screen-layout-column-main-column-header {
|
|
72
|
+
flex-basis: 30%;
|
|
73
|
+
flex-shrink: 1;
|
|
74
|
+
justify-content: end;
|
|
75
|
+
padding-left: 20px;
|
|
76
|
+
padding-right: 20px;
|
|
77
|
+
position: relative;
|
|
78
|
+
z-index: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.mobile
|
|
82
|
+
.screen-layout-column
|
|
83
|
+
> .screen-layout-column-main-column
|
|
84
|
+
> .screen-layout-column-main-column-content {
|
|
85
|
+
flex: 0 1 auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.mobile
|
|
89
|
+
.screen-layout-column
|
|
90
|
+
> .screen-layout-column-main-column
|
|
91
|
+
> .screen-layout-column-main-column-footer {
|
|
92
|
+
padding-top: 50px;
|
|
93
|
+
justify-content: end;
|
|
94
|
+
flex-basis: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.mobile .screen-layout-column .screen-layout-column-main-column-content,
|
|
98
|
+
.mobile .screen-layout-column .screen-layout-column-main-column-footer {
|
|
99
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
100
|
+
padding: 5px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.mobile
|
|
104
|
+
.screen-layout-column
|
|
105
|
+
> .screen-layout-column-main-column
|
|
106
|
+
> .screen-layout-column-main-column-header
|
|
107
|
+
.main-title {
|
|
108
|
+
color: black;
|
|
109
|
+
text-shadow: none;
|
|
110
|
+
background: white;
|
|
111
|
+
margin: 0px;
|
|
112
|
+
|
|
113
|
+
position: relative;
|
|
114
|
+
top: 20px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.mobile .screen-layout-column .screen-layout-column-main-column-content {
|
|
118
|
+
padding-top: 30px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.mobile
|
|
122
|
+
.main-menu
|
|
123
|
+
.screen-layout-column
|
|
124
|
+
.screen-layout-column-main-column-content {
|
|
125
|
+
padding: 5px;
|
|
126
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentWithClassName } from "../component-with-class-name";
|
|
2
|
+
import "./screen-column-layout.css";
|
|
3
|
+
export declare class ScreenColumnLayout extends ComponentWithClassName {
|
|
4
|
+
protected readonly className = "screen-layout-column";
|
|
5
|
+
}
|
|
6
|
+
export declare class ScreenColumnLayoutMainColumn extends ComponentWithClassName {
|
|
7
|
+
protected readonly className = "screen-layout-column-main-column";
|
|
8
|
+
}
|
|
9
|
+
export declare class ScreenColumnLayoutMainColumnHeader extends ComponentWithClassName {
|
|
10
|
+
protected readonly className = "screen-layout-column-main-column-header";
|
|
11
|
+
}
|
|
12
|
+
export declare class ScreenColumnLayoutMainColumnFooter extends ComponentWithClassName {
|
|
13
|
+
protected readonly className = "screen-layout-column-main-column-footer";
|
|
14
|
+
}
|
|
15
|
+
export declare class ScreenColumnLayoutMainColumnContent extends ComponentWithClassName {
|
|
16
|
+
protected readonly className = "screen-layout-column-main-column-content";
|
|
17
|
+
}
|
|
18
|
+
export declare class ScreenColumnLayoutCentralContent extends ComponentWithClassName {
|
|
19
|
+
protected readonly className = "screen-layout-column-central-content";
|
|
20
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScreenColumnLayoutCentralContent = exports.ScreenColumnLayoutMainColumnContent = exports.ScreenColumnLayoutMainColumnFooter = exports.ScreenColumnLayoutMainColumnHeader = exports.ScreenColumnLayoutMainColumn = exports.ScreenColumnLayout = void 0;
|
|
4
|
+
const component_with_class_name_1 = require("../component-with-class-name");
|
|
5
|
+
require("./screen-column-layout.css");
|
|
6
|
+
class ScreenColumnLayout extends component_with_class_name_1.ComponentWithClassName {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.className = "screen-layout-column";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ScreenColumnLayout = ScreenColumnLayout;
|
|
13
|
+
class ScreenColumnLayoutMainColumn extends component_with_class_name_1.ComponentWithClassName {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.className = "screen-layout-column-main-column";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ScreenColumnLayoutMainColumn = ScreenColumnLayoutMainColumn;
|
|
20
|
+
class ScreenColumnLayoutMainColumnHeader extends component_with_class_name_1.ComponentWithClassName {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.className = "screen-layout-column-main-column-header";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.ScreenColumnLayoutMainColumnHeader = ScreenColumnLayoutMainColumnHeader;
|
|
27
|
+
class ScreenColumnLayoutMainColumnFooter extends component_with_class_name_1.ComponentWithClassName {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.className = "screen-layout-column-main-column-footer";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ScreenColumnLayoutMainColumnFooter = ScreenColumnLayoutMainColumnFooter;
|
|
34
|
+
class ScreenColumnLayoutMainColumnContent extends component_with_class_name_1.ComponentWithClassName {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.className = "screen-layout-column-main-column-content";
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.ScreenColumnLayoutMainColumnContent = ScreenColumnLayoutMainColumnContent;
|
|
41
|
+
class ScreenColumnLayoutCentralContent extends component_with_class_name_1.ComponentWithClassName {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
44
|
+
this.className = "screen-layout-column-central-content";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ScreenColumnLayoutCentralContent = ScreenColumnLayoutCentralContent;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.screen-stack-layout {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
margin: auto;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.screen-stack-layout-top,
|
|
9
|
+
.screen-stack-layout-bottom {
|
|
10
|
+
flex: 0 0 100px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.screen-stack-layout-content {
|
|
17
|
+
flex: 1 1 auto;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.screen-stack-layout-content > * {
|
|
24
|
+
flex: 1 1 auto;
|
|
25
|
+
max-height: 100%;
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentWithClassName } from "../component-with-class-name";
|
|
2
|
+
import "./screen-stack-layout.css";
|
|
3
|
+
export declare class ScreenStackLayout extends ComponentWithClassName {
|
|
4
|
+
protected readonly className = "screen-stack-layout";
|
|
5
|
+
}
|
|
6
|
+
export declare class ScreenStackLayoutTop extends ComponentWithClassName {
|
|
7
|
+
protected readonly className = "screen-stack-layout-top";
|
|
8
|
+
}
|
|
9
|
+
export declare class ScreenStackLayoutContent extends ComponentWithClassName {
|
|
10
|
+
protected readonly className = "screen-stack-layout-content";
|
|
11
|
+
}
|
|
12
|
+
export declare class ScreenStackLayoutBottom extends ComponentWithClassName {
|
|
13
|
+
protected readonly className = "screen-stack-layout-bottom";
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScreenStackLayoutBottom = exports.ScreenStackLayoutContent = exports.ScreenStackLayoutTop = exports.ScreenStackLayout = void 0;
|
|
4
|
+
const component_with_class_name_1 = require("../component-with-class-name");
|
|
5
|
+
require("./screen-stack-layout.css");
|
|
6
|
+
class ScreenStackLayout extends component_with_class_name_1.ComponentWithClassName {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.className = "screen-stack-layout";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ScreenStackLayout = ScreenStackLayout;
|
|
13
|
+
class ScreenStackLayoutTop extends component_with_class_name_1.ComponentWithClassName {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.className = "screen-stack-layout-top";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ScreenStackLayoutTop = ScreenStackLayoutTop;
|
|
20
|
+
class ScreenStackLayoutContent extends component_with_class_name_1.ComponentWithClassName {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.className = "screen-stack-layout-content";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.ScreenStackLayoutContent = ScreenStackLayoutContent;
|
|
27
|
+
class ScreenStackLayoutBottom extends component_with_class_name_1.ComponentWithClassName {
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.className = "screen-stack-layout-bottom";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ScreenStackLayoutBottom = ScreenStackLayoutBottom;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScrollableContent = void 0;
|
|
4
|
+
const component_with_class_name_1 = require("../component-with-class-name");
|
|
5
|
+
require("./scrollable-content.css");
|
|
6
|
+
class ScrollableContent extends component_with_class_name_1.ComponentWithClassName {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.className = "scrollable-content";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ScrollableContent = ScrollableContent;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
input[type="range"] {
|
|
2
|
+
background: transparent;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
appearance: none;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
8
|
+
-webkit-appearance: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
input[type="range"]:focus {
|
|
12
|
+
outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
16
|
+
-webkit-appearance: none;
|
|
17
|
+
border: none;
|
|
18
|
+
background: #000;
|
|
19
|
+
margin-top: -10px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
|
|
20
|
+
width: 20px;
|
|
21
|
+
height: 20px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
input[type="range"]::-moz-range-thumb {
|
|
25
|
+
border: none;
|
|
26
|
+
box-shadow: 0px 2px #000;
|
|
27
|
+
height: 15px;
|
|
28
|
+
width: 15px;
|
|
29
|
+
background: #fff;
|
|
30
|
+
border-radius: 0px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
input[type="range"]::-webkit-slider-runnable-track {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 0px;
|
|
36
|
+
background-color: #fff;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
input[type="range"]::-moz-range-track {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 2px;
|
|
42
|
+
background-color: #fff;
|
|
43
|
+
box-shadow: 0px 2px #000;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.labelled-slider {
|
|
47
|
+
background-color: white;
|
|
48
|
+
padding: 1px;
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.labelled-slider > *:nth-child(1) {
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.labelled-slider > *:nth-child(2) {
|
|
59
|
+
min-width: 50px;
|
|
60
|
+
text-align: right;
|
|
61
|
+
position: absolute;
|
|
62
|
+
right: 0;
|
|
63
|
+
top: 100%;
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.labelled-slider input[type="range"] {
|
|
68
|
+
height: 20px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.labelled-slider input[type="range"]::-moz-range-thumb {
|
|
72
|
+
width: 0px;
|
|
73
|
+
box-shadow: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.labelled-slider input[type="range"]::-moz-range-progress {
|
|
77
|
+
background: black;
|
|
78
|
+
height: 100%;
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.labelled-slider input[type="range"]::-moz-range-track {
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./slider.css";
|
|
3
|
+
export default class Slider extends React.Component<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
4
|
+
render(): React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
interface Props extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
7
|
+
label: (value: number) => string;
|
|
8
|
+
}
|
|
9
|
+
interface State {
|
|
10
|
+
value: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class LabelledSlider extends React.Component<Props, State> {
|
|
13
|
+
constructor(props: Props);
|
|
14
|
+
static percentageLabel(value: number): string;
|
|
15
|
+
static rawValue(value: number): string;
|
|
16
|
+
render(): React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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.LabelledSlider = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const labels_1 = require("../labels/labels");
|
|
9
|
+
require("./slider.css");
|
|
10
|
+
class Slider extends react_1.default.Component {
|
|
11
|
+
render() {
|
|
12
|
+
return react_1.default.createElement("input", { type: "range", ...this.props });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = Slider;
|
|
16
|
+
class LabelledSlider extends react_1.default.Component {
|
|
17
|
+
constructor(props) {
|
|
18
|
+
super(props);
|
|
19
|
+
this.state = {
|
|
20
|
+
value: props.value || 0,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static percentageLabel(value) {
|
|
24
|
+
return `${Math.round(value * 100)}%`;
|
|
25
|
+
}
|
|
26
|
+
static rawValue(value) {
|
|
27
|
+
return value.toString();
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const sliderProps = {
|
|
31
|
+
value: this.props.value,
|
|
32
|
+
step: this.props.step,
|
|
33
|
+
min: this.props.min,
|
|
34
|
+
max: this.props.max,
|
|
35
|
+
onChange: (e) => {
|
|
36
|
+
this.setState({ value: parseFloat(e.target.value) });
|
|
37
|
+
if (this.props.onChange) {
|
|
38
|
+
this.props.onChange(e);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
return (react_1.default.createElement("div", { className: "labelled-slider" },
|
|
43
|
+
react_1.default.createElement(Slider, { ...sliderProps }),
|
|
44
|
+
react_1.default.createElement(labels_1.TinyLabel, null, this.props.label ? this.props.label(this.state.value) : "")));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.LabelledSlider = LabelledSlider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./spacing.css";
|
|
2
|
+
export declare class Spacing {
|
|
3
|
+
static readonly xxl = "var(--spacing-xxl)";
|
|
4
|
+
static readonly xl = "var(--spacing-xl)";
|
|
5
|
+
static readonly l = "var(--spacing-l)";
|
|
6
|
+
static readonly m = "var(--spacing-m)";
|
|
7
|
+
static readonly s = "var(--spacing-s)";
|
|
8
|
+
static readonly xs = "var(--spacing-xs)";
|
|
9
|
+
static readonly xxs = "var(--spacing-xxs)";
|
|
10
|
+
}
|