tgui-core 1.1.11 → 1.1.13
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/dist/ProgressBar.module-BkAFfFy0.js +29 -0
- package/dist/Section.module-CLVHJ4yA.js +15 -0
- package/dist/assets/BlockQuote.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/ColorBox.css +1 -0
- package/dist/assets/Dialog.css +1 -0
- package/dist/assets/Dimmer.css +1 -0
- package/dist/assets/Divider.css +1 -0
- package/dist/assets/Flex.css +1 -0
- package/dist/assets/Icon.css +6 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/Knob.css +1 -0
- package/dist/assets/LabeledList.css +1 -0
- package/dist/assets/MenuBar.css +1 -0
- package/dist/assets/Modal.css +1 -0
- package/dist/assets/NoticeBox.css +1 -0
- package/dist/assets/NumberInput.css +1 -0
- package/dist/assets/ProgressBar.css +1 -0
- package/dist/assets/RoundGauge.css +1 -0
- package/dist/assets/Section.css +1 -0
- package/dist/assets/Slider.css +1 -0
- package/dist/assets/Stack.css +1 -0
- package/dist/assets/Table.css +1 -0
- package/dist/assets/Tabs.css +1 -0
- package/dist/assets/TextArea.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/common/assets.d.ts +4 -0
- package/dist/common/assets.js +25 -0
- package/dist/common/collections.d.ts +10 -0
- package/dist/common/collections.js +15 -0
- package/dist/common/color.d.ts +25 -0
- package/dist/common/color.js +69 -0
- package/dist/common/constants.d.ts +102 -0
- package/dist/common/constants.js +312 -0
- package/dist/common/events.d.ts +33 -0
- package/dist/common/events.js +147 -0
- package/{lib/common/exhaustive.ts → dist/common/exhaustive.d.ts} +1 -3
- package/dist/common/exhaustive.js +6 -0
- package/dist/common/format.d.ts +11 -0
- package/dist/common/format.js +114 -0
- package/{lib/common/fp.ts → dist/common/fp.d.ts} +2 -16
- package/dist/common/fp.js +9 -0
- package/dist/common/hotkeys.d.ts +25 -0
- package/dist/common/hotkeys.js +112 -0
- package/dist/common/http.d.ts +4 -0
- package/dist/common/http.js +10 -0
- package/dist/common/keycodes.d.ts +85 -0
- package/dist/common/keycodes.js +88 -0
- package/{lib/common/keys.ts → dist/common/keys.d.ts} +21 -24
- package/dist/common/keys.js +8 -0
- package/dist/common/math.d.ts +39 -0
- package/dist/common/math.js +41 -0
- package/dist/common/perf.d.ts +24 -0
- package/dist/common/perf.js +33 -0
- package/dist/common/random.d.ts +16 -0
- package/dist/common/random.js +18 -0
- package/dist/common/react.d.ts +23 -0
- package/dist/common/react.js +30 -0
- package/dist/common/redux.d.ts +64 -0
- package/dist/common/redux.js +72 -0
- package/dist/common/storage.d.ts +24 -0
- package/dist/common/storage.js +133 -0
- package/dist/common/string.d.ts +65 -0
- package/dist/common/string.js +83 -0
- package/dist/common/timer.d.ts +18 -0
- package/dist/common/timer.js +28 -0
- package/dist/common/type-utils.d.ts +9 -0
- package/dist/common/type-utils.js +25 -0
- package/dist/common/uuid.d.ts +9 -0
- package/dist/common/uuid.js +10 -0
- package/dist/components/AnimatedNumber.d.ts +60 -0
- package/dist/components/AnimatedNumber.js +76 -0
- package/dist/components/Autofocus.d.ts +4 -0
- package/dist/components/Autofocus.js +17 -0
- package/dist/components/Blink.d.ts +26 -0
- package/dist/components/Blink.js +56 -0
- package/dist/components/BlockQuote.d.ts +3 -0
- package/dist/components/BlockQuote.js +13 -0
- package/dist/components/BodyZoneSelector.d.ts +28 -0
- package/dist/components/BodyZoneSelector.js +115 -0
- package/dist/components/Box.d.ts +91 -0
- package/dist/components/Box.js +133 -0
- package/dist/components/Button.d.ts +93 -0
- package/dist/components/Button.js +298 -0
- package/dist/components/ByondUi.js +73 -0
- package/dist/components/Chart.d.ts +28 -0
- package/dist/components/Chart.js +95 -0
- package/dist/components/Collapsible.d.ts +15 -0
- package/dist/components/Collapsible.js +27 -0
- package/dist/components/ColorBox.d.ts +8 -0
- package/dist/components/ColorBox.js +24 -0
- package/dist/components/Dialog.d.ts +24 -0
- package/dist/components/Dialog.js +67 -0
- package/dist/components/Dimmer.d.ts +3 -0
- package/dist/components/Dimmer.js +13 -0
- package/dist/components/Divider.d.ts +6 -0
- package/dist/components/Divider.js +22 -0
- package/dist/components/DmIcon.d.ts +33 -0
- package/dist/components/DmIcon.js +29 -0
- package/dist/components/DraggableControl.js +176 -0
- package/dist/components/Dropdown.d.ts +48 -0
- package/dist/components/Dropdown.js +152 -0
- package/dist/components/FakeTerminal.js +38 -0
- package/dist/components/FitText.d.ts +22 -0
- package/dist/components/FitText.js +63 -0
- package/dist/components/Flex.d.ts +93 -0
- package/dist/components/Flex.js +72 -0
- package/dist/components/Icon.d.ts +30 -0
- package/dist/components/Icon.js +51 -0
- package/dist/components/Image.d.ts +14 -0
- package/dist/components/Image.js +35 -0
- package/dist/components/InfinitePlane.js +139 -0
- package/dist/components/Input.d.ts +61 -0
- package/dist/components/Input.js +89 -0
- package/dist/components/KeyListener.d.ts +15 -0
- package/dist/components/KeyListener.js +23 -0
- package/dist/components/Knob.d.ts +49 -0
- package/dist/components/Knob.js +162 -0
- package/dist/components/LabeledControls.d.ts +11 -0
- package/dist/components/LabeledControls.js +39 -0
- package/dist/components/LabeledList.d.ts +57 -0
- package/dist/components/LabeledList.js +94 -0
- package/dist/components/MenuBar.d.ts +28 -0
- package/dist/components/MenuBar.js +174 -0
- package/dist/components/Modal.d.ts +3 -0
- package/dist/components/Modal.js +25 -0
- package/dist/components/NoticeBox.d.ts +20 -0
- package/dist/components/NoticeBox.js +49 -0
- package/dist/components/NumberInput.d.ts +45 -0
- package/dist/components/NumberInput.js +221 -0
- package/dist/components/Popper.d.ts +27 -0
- package/dist/components/Popper.js +177 -0
- package/dist/components/ProgressBar.d.ts +46 -0
- package/dist/components/ProgressBar.js +37 -0
- package/dist/components/RestrictedInput.js +155 -0
- package/dist/components/RoundGauge.d.ts +53 -0
- package/dist/components/RoundGauge.js +147 -0
- package/dist/components/Section.d.ts +63 -0
- package/dist/components/Section.js +62 -0
- package/dist/components/Slider.d.ts +46 -0
- package/dist/components/Slider.js +124 -0
- package/dist/components/Stack.d.ts +27 -0
- package/dist/components/Stack.js +67 -0
- package/dist/components/StyleableSection.d.ts +11 -0
- package/dist/components/StyleableSection.js +16 -0
- package/dist/components/Table.d.ts +29 -0
- package/dist/components/Table.js +67 -0
- package/dist/components/Tabs.d.ts +23 -0
- package/dist/components/Tabs.js +89 -0
- package/dist/components/TextArea.d.ts +39 -0
- package/dist/components/TextArea.js +118 -0
- package/dist/components/TimeDisplay.js +34 -0
- package/dist/components/Tooltip.d.ts +29 -0
- package/dist/components/Tooltip.js +83 -0
- package/dist/components/TrackOutsideClicks.d.ts +13 -0
- package/dist/components/TrackOutsideClicks.js +24 -0
- package/dist/components/VirtualList.d.ts +8 -0
- package/dist/components/VirtualList.js +34 -0
- package/dist/components/index.js +92 -0
- package/dist/popper-CiqSDJTE.js +906 -0
- package/package.json +8 -10
- package/lib/common/assets.ts +0 -38
- package/lib/common/collections.ts +0 -27
- package/lib/common/color.ts +0 -88
- package/lib/common/constants.ts +0 -349
- package/lib/common/events.ts +0 -262
- package/lib/common/format.ts +0 -167
- package/lib/common/hotkeys.ts +0 -207
- package/lib/common/http.ts +0 -16
- package/lib/common/keycodes.ts +0 -86
- package/lib/common/math.ts +0 -76
- package/lib/common/perf.ts +0 -72
- package/lib/common/random.ts +0 -32
- package/lib/common/react.ts +0 -59
- package/lib/common/redux.ts +0 -187
- package/lib/common/storage.ts +0 -207
- package/lib/common/string.ts +0 -169
- package/lib/common/timer.ts +0 -63
- package/lib/common/type-utils.ts +0 -41
- package/lib/common/types.d.ts +0 -12
- package/lib/common/uuid.ts +0 -18
- package/lib/components/AnimatedNumber.tsx +0 -180
- package/lib/components/Autofocus.tsx +0 -23
- package/lib/components/Blink.tsx +0 -91
- package/lib/components/BlockQuote.tsx +0 -9
- package/lib/components/BodyZoneSelector.tsx +0 -149
- package/lib/components/Box.tsx +0 -252
- package/lib/components/Button.tsx +0 -425
- package/lib/components/ByondUi.jsx +0 -110
- package/lib/components/Chart.tsx +0 -155
- package/lib/components/Collapsible.tsx +0 -43
- package/lib/components/ColorBox.tsx +0 -29
- package/lib/components/Dialog.tsx +0 -81
- package/lib/components/Dimmer.tsx +0 -13
- package/lib/components/Divider.tsx +0 -20
- package/lib/components/DmIcon.tsx +0 -86
- package/lib/components/DraggableControl.jsx +0 -276
- package/lib/components/Dropdown.tsx +0 -246
- package/lib/components/FakeTerminal.jsx +0 -52
- package/lib/components/FitText.tsx +0 -99
- package/lib/components/Flex.tsx +0 -159
- package/lib/components/Icon.tsx +0 -95
- package/lib/components/Image.tsx +0 -54
- package/lib/components/InfinitePlane.jsx +0 -192
- package/lib/components/Input.tsx +0 -176
- package/lib/components/KeyListener.tsx +0 -40
- package/lib/components/Knob.tsx +0 -178
- package/lib/components/LabeledControls.tsx +0 -44
- package/lib/components/LabeledList.tsx +0 -154
- package/lib/components/MenuBar.tsx +0 -228
- package/lib/components/Modal.tsx +0 -23
- package/lib/components/NoticeBox.tsx +0 -45
- package/lib/components/NumberInput.tsx +0 -328
- package/lib/components/Popper.tsx +0 -100
- package/lib/components/ProgressBar.tsx +0 -105
- package/lib/components/RestrictedInput.jsx +0 -301
- package/lib/components/RoundGauge.tsx +0 -180
- package/lib/components/Section.tsx +0 -120
- package/lib/components/Slider.tsx +0 -169
- package/lib/components/Stack.tsx +0 -96
- package/lib/components/StyleableSection.tsx +0 -33
- package/lib/components/Table.tsx +0 -84
- package/lib/components/Tabs.tsx +0 -89
- package/lib/components/TextArea.tsx +0 -182
- package/lib/components/TimeDisplay.jsx +0 -64
- package/lib/components/Tooltip.tsx +0 -152
- package/lib/components/TrackOutsideClicks.tsx +0 -35
- package/lib/components/VirtualList.tsx +0 -69
- package/lib/styles/atomic/candystripe.scss +0 -8
- package/lib/styles/atomic/centered-image.scss +0 -7
- package/lib/styles/atomic/color.scss +0 -21
- package/lib/styles/atomic/debug-layout.scss +0 -17
- package/lib/styles/atomic/fit-text.scss +0 -14
- package/lib/styles/atomic/links.scss +0 -12
- package/lib/styles/atomic/outline.scss +0 -47
- package/lib/styles/atomic/text.scss +0 -44
- package/lib/styles/base.scss +0 -32
- package/lib/styles/colors.scss +0 -92
- package/lib/styles/components/BlockQuote.module.scss +0 -20
- package/lib/styles/components/BlockQuote.module.scss.d.ts +0 -4
- package/lib/styles/components/Button.module.scss +0 -157
- package/lib/styles/components/Button.module.scss.d.ts +0 -46
- package/lib/styles/components/ColorBox.module.scss +0 -12
- package/lib/styles/components/ColorBox.module.scss.d.ts +0 -4
- package/lib/styles/components/Dialog.module.scss +0 -60
- package/lib/styles/components/Dialog.module.scss.d.ts +0 -10
- package/lib/styles/components/Dimmer.module.scss +0 -22
- package/lib/styles/components/Dimmer.module.scss.d.ts +0 -4
- package/lib/styles/components/Divider.module.scss +0 -27
- package/lib/styles/components/Divider.module.scss.d.ts +0 -6
- package/lib/styles/components/Dropdown.scss +0 -72
- package/lib/styles/components/Flex.module.scss +0 -13
- package/lib/styles/components/Flex.module.scss.d.ts +0 -5
- package/lib/styles/components/Icon.module.scss +0 -25
- package/lib/styles/components/Icon.module.scss.d.ts +0 -5
- package/lib/styles/components/Input.module.scss +0 -64
- package/lib/styles/components/Input.module.scss.d.ts +0 -8
- package/lib/styles/components/Knob.module.scss +0 -131
- package/lib/styles/components/Knob.module.scss.d.ts +0 -33
- package/lib/styles/components/LabeledList.module.scss +0 -49
- package/lib/styles/components/LabeledList.module.scss.d.ts +0 -8
- package/lib/styles/components/MenuBar.module.scss +0 -75
- package/lib/styles/components/MenuBar.module.scss.d.ts +0 -14
- package/lib/styles/components/Modal.module.scss +0 -14
- package/lib/styles/components/Modal.module.scss.d.ts +0 -4
- package/lib/styles/components/NoticeBox.module.scss +0 -65
- package/lib/styles/components/NoticeBox.module.scss.d.ts +0 -27
- package/lib/styles/components/NumberInput.module.scss +0 -71
- package/lib/styles/components/NumberInput.module.scss.d.ts +0 -9
- package/lib/styles/components/ProgressBar.module.scss +0 -63
- package/lib/styles/components/ProgressBar.module.scss.d.ts +0 -27
- package/lib/styles/components/RoundGauge.module.scss +0 -85
- package/lib/styles/components/RoundGauge.module.scss.d.ts +0 -49
- package/lib/styles/components/Section.module.scss +0 -130
- package/lib/styles/components/Section.module.scss.d.ts +0 -13
- package/lib/styles/components/Slider.module.scss +0 -54
- package/lib/styles/components/Slider.module.scss.d.ts +0 -8
- package/lib/styles/components/Stack.module.scss +0 -60
- package/lib/styles/components/Stack.module.scss.d.ts +0 -12
- package/lib/styles/components/Table.module.scss +0 -44
- package/lib/styles/components/Table.module.scss.d.ts +0 -10
- package/lib/styles/components/Tabs.module.scss +0 -144
- package/lib/styles/components/Tabs.module.scss.d.ts +0 -35
- package/lib/styles/components/TextArea.module.scss +0 -86
- package/lib/styles/components/TextArea.module.scss.d.ts +0 -11
- package/lib/styles/components/Tooltip.module.scss +0 -24
- package/lib/styles/components/Tooltip.module.scss.d.ts +0 -4
- package/lib/styles/functions.scss +0 -79
- package/lib/styles/input.scss +0 -9
- package/lib/styles/main.scss +0 -20
- package/lib/styles/reset.scss +0 -68
- /package/{lib/components/index.ts → dist/components/index.d.ts} +0 -0
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Aleksej Komarov
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use '../base.scss';
|
|
7
|
-
@use '../colors.scss';
|
|
8
|
-
@use '../functions.scss' as *;
|
|
9
|
-
|
|
10
|
-
$color-default: colors.bg(colors.$primary) !default;
|
|
11
|
-
$color-disabled: #999999 !default;
|
|
12
|
-
$color-selected: colors.bg(colors.$green) !default;
|
|
13
|
-
$color-caution: colors.bg(colors.$yellow) !default;
|
|
14
|
-
$color-danger: colors.bg(colors.$red) !default;
|
|
15
|
-
$color-transparent-text: rgba(255, 255, 255, 0.5) !default;
|
|
16
|
-
$border-radius: base.$border-radius !default;
|
|
17
|
-
$bg-map: colors.$bg-map !default;
|
|
18
|
-
|
|
19
|
-
@mixin button-color($color) {
|
|
20
|
-
// Adapt text color to background luminance to ensure high contast
|
|
21
|
-
$luminance: luminance($color);
|
|
22
|
-
$text-color: if($luminance > 0.4, rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
|
|
23
|
-
|
|
24
|
-
transition:
|
|
25
|
-
color 50ms,
|
|
26
|
-
background-color 50ms;
|
|
27
|
-
background-color: $color;
|
|
28
|
-
color: $text-color;
|
|
29
|
-
|
|
30
|
-
&:focus {
|
|
31
|
-
transition:
|
|
32
|
-
color 100ms,
|
|
33
|
-
background-color 100ms;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
background-color: lighten($color, 30%);
|
|
38
|
-
color: $text-color;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.button {
|
|
43
|
-
position: relative;
|
|
44
|
-
display: inline-block;
|
|
45
|
-
line-height: 1.667em;
|
|
46
|
-
padding: 0 0.5em;
|
|
47
|
-
margin-right: base.em(2px);
|
|
48
|
-
white-space: nowrap;
|
|
49
|
-
outline: 0;
|
|
50
|
-
border-radius: $border-radius;
|
|
51
|
-
margin-bottom: base.em(2px);
|
|
52
|
-
// Disable selection in buttons
|
|
53
|
-
user-select: none;
|
|
54
|
-
-ms-user-select: none;
|
|
55
|
-
|
|
56
|
-
&:last-child {
|
|
57
|
-
margin-right: 0;
|
|
58
|
-
margin-bottom: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.fa,
|
|
62
|
-
.fas,
|
|
63
|
-
.far {
|
|
64
|
-
margin-left: -0.25em;
|
|
65
|
-
margin-right: -0.25em;
|
|
66
|
-
min-width: 1.333em;
|
|
67
|
-
text-align: center;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.dropdown {
|
|
72
|
-
line-height: base.em(16px);
|
|
73
|
-
height: base.em(22px);
|
|
74
|
-
padding: 0.2rem 0.5rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ellipsis {
|
|
78
|
-
text-overflow: ellipsis;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.fluid {
|
|
83
|
-
display: block;
|
|
84
|
-
margin-left: 0;
|
|
85
|
-
margin-right: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.circular {
|
|
89
|
-
border-radius: 50%;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.compact {
|
|
93
|
-
padding: 0 0.25em;
|
|
94
|
-
line-height: 1.333em;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@each $color-name, $color-value in $bg-map {
|
|
98
|
-
.color__#{$color-name} {
|
|
99
|
-
@include button-color($color-value);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.color__default {
|
|
104
|
-
@include button-color($color-default);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.color__caution {
|
|
108
|
-
@include button-color($color-caution);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.color__danger {
|
|
112
|
-
@include button-color($color-danger);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.color__transparent {
|
|
116
|
-
@include button-color(base.$color-bg);
|
|
117
|
-
background-color: rgba(base.$color-bg, 0);
|
|
118
|
-
color: $color-transparent-text;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.disabled {
|
|
122
|
-
background-color: $color-disabled !important;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.selected {
|
|
126
|
-
@include button-color($color-selected);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.flex {
|
|
130
|
-
display: inline-flex; //Inline even for fluid
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.flex__fluid {
|
|
135
|
-
width: 100%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.verticalAlignContent__top {
|
|
139
|
-
justify-content: flex-start;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.verticalAlignContent__middle {
|
|
143
|
-
justify-content: center;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.verticalAlignContent__bottom {
|
|
147
|
-
justify-content: flex-end;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.content {
|
|
151
|
-
display: block;
|
|
152
|
-
align-self: stretch;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.textMargin {
|
|
156
|
-
margin-left: 0.4rem;
|
|
157
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
declare const classNames: {
|
|
2
|
-
readonly button: "button";
|
|
3
|
-
readonly circular: "circular";
|
|
4
|
-
readonly color__average: "color__average";
|
|
5
|
-
readonly color__bad: "color__bad";
|
|
6
|
-
readonly color__black: "color__black";
|
|
7
|
-
readonly color__blue: "color__blue";
|
|
8
|
-
readonly color__brown: "color__brown";
|
|
9
|
-
readonly color__caution: "color__caution";
|
|
10
|
-
readonly color__danger: "color__danger";
|
|
11
|
-
readonly color__default: "color__default";
|
|
12
|
-
readonly color__good: "color__good";
|
|
13
|
-
readonly color__green: "color__green";
|
|
14
|
-
readonly color__grey: "color__grey";
|
|
15
|
-
readonly color__label: "color__label";
|
|
16
|
-
readonly "color__light-grey": "color__light-grey";
|
|
17
|
-
readonly color__olive: "color__olive";
|
|
18
|
-
readonly color__orange: "color__orange";
|
|
19
|
-
readonly color__pink: "color__pink";
|
|
20
|
-
readonly color__purple: "color__purple";
|
|
21
|
-
readonly color__red: "color__red";
|
|
22
|
-
readonly color__teal: "color__teal";
|
|
23
|
-
readonly color__transparent: "color__transparent";
|
|
24
|
-
readonly color__violet: "color__violet";
|
|
25
|
-
readonly color__white: "color__white";
|
|
26
|
-
readonly color__yellow: "color__yellow";
|
|
27
|
-
readonly compact: "compact";
|
|
28
|
-
readonly content: "content";
|
|
29
|
-
readonly disabled: "disabled";
|
|
30
|
-
readonly dropdown: "dropdown";
|
|
31
|
-
readonly ellipsis: "ellipsis";
|
|
32
|
-
readonly fa: "fa";
|
|
33
|
-
readonly far: "far";
|
|
34
|
-
readonly fas: "fas";
|
|
35
|
-
readonly flex: "flex";
|
|
36
|
-
readonly flex__fluid: "flex__fluid";
|
|
37
|
-
readonly fluid: "fluid";
|
|
38
|
-
readonly hasContent: "hasContent";
|
|
39
|
-
readonly iconPosition__right: "iconPosition__right";
|
|
40
|
-
readonly selected: "selected";
|
|
41
|
-
readonly textMargin: "textMargin";
|
|
42
|
-
readonly verticalAlignContent__bottom: "verticalAlignContent__bottom";
|
|
43
|
-
readonly verticalAlignContent__middle: "verticalAlignContent__middle";
|
|
44
|
-
readonly verticalAlignContent__top: "verticalAlignContent__top";
|
|
45
|
-
};
|
|
46
|
-
export = classNames;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@use '../base';
|
|
2
|
-
|
|
3
|
-
$background-color: base.$color-bg !default;
|
|
4
|
-
|
|
5
|
-
.dialog {
|
|
6
|
-
position: fixed;
|
|
7
|
-
left: 0;
|
|
8
|
-
top: 0;
|
|
9
|
-
right: 0;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.content {
|
|
18
|
-
background-color: $background-color;
|
|
19
|
-
font-family: Consolas, monospace;
|
|
20
|
-
font-size: base.em(14px);
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.header {
|
|
26
|
-
display: flex;
|
|
27
|
-
height: 2em;
|
|
28
|
-
line-height: 1.928em;
|
|
29
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
30
|
-
user-select: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.title {
|
|
34
|
-
display: inline;
|
|
35
|
-
font-style: italic;
|
|
36
|
-
margin-left: 1rem;
|
|
37
|
-
margin-right: 2rem;
|
|
38
|
-
flex-grow: 1;
|
|
39
|
-
opacity: 0.33;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.body {
|
|
43
|
-
margin: 2rem 1rem 2rem 1rem;
|
|
44
|
-
flex-grow: 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.footer {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: row;
|
|
50
|
-
justify-content: flex-end;
|
|
51
|
-
padding: 1rem;
|
|
52
|
-
background-color: rgba(0, 0, 0, 0.25);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.button {
|
|
56
|
-
margin: 0 1rem 0 1rem;
|
|
57
|
-
height: 2rem;
|
|
58
|
-
min-width: 6rem;
|
|
59
|
-
text-align: center;
|
|
60
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Aleksej Komarov
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
$background-dimness: 0.75 !default;
|
|
6
|
-
|
|
7
|
-
.dimmer {
|
|
8
|
-
// Align everything in the middle.
|
|
9
|
-
// A fat middle finger for anything less than IE11.
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
align-items: center;
|
|
13
|
-
// Fill positioned parent
|
|
14
|
-
position: absolute;
|
|
15
|
-
top: 0;
|
|
16
|
-
bottom: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
right: 0;
|
|
19
|
-
// Dim everything around it
|
|
20
|
-
background-color: rgba(0, 0, 0, $background-dimness);
|
|
21
|
-
z-index: 1;
|
|
22
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Aleksej Komarov
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use '../base.scss';
|
|
7
|
-
|
|
8
|
-
$color: rgba(255, 255, 255, 0.1) !default;
|
|
9
|
-
$thickness: base.em(2px) !default;
|
|
10
|
-
$spacing: 0.5em;
|
|
11
|
-
|
|
12
|
-
.horizontal {
|
|
13
|
-
margin: $spacing 0;
|
|
14
|
-
|
|
15
|
-
&:not(.hidden) {
|
|
16
|
-
border-top: $thickness solid $color;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.vertical {
|
|
21
|
-
height: 100%;
|
|
22
|
-
margin: 0 $spacing;
|
|
23
|
-
|
|
24
|
-
&:not(.hidden) {
|
|
25
|
-
border-left: $thickness solid $color;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Aleksej Komarov
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use '../base.scss';
|
|
7
|
-
|
|
8
|
-
.Dropdown {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: flex-start;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.Dropdown__control {
|
|
14
|
-
flex: 1;
|
|
15
|
-
font-family: Verdana, sans-serif;
|
|
16
|
-
font-size: base.em(12px);
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
user-select: none;
|
|
19
|
-
width: base.em(100px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.Dropdown__arrow-button {
|
|
23
|
-
float: right;
|
|
24
|
-
padding-left: 0.35em;
|
|
25
|
-
width: 1.2em;
|
|
26
|
-
border-left: base.em(1px) solid rgba(0, 0, 0, 0.25);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.Dropdown__menu {
|
|
30
|
-
overflow-y: auto;
|
|
31
|
-
align-items: center;
|
|
32
|
-
max-height: base.em(200px);
|
|
33
|
-
border-radius: 0 0 base.em(2px) base.em(2px);
|
|
34
|
-
color: #fff;
|
|
35
|
-
background-color: #000;
|
|
36
|
-
background-color: rgba(0, 0, 0, 0.75);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.Dropdown__menu-scroll {
|
|
40
|
-
overflow-y: scroll;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.Dropdown__menuentry {
|
|
44
|
-
padding: base.em(2px) base.em(4px);
|
|
45
|
-
font-family: Verdana, sans-serif;
|
|
46
|
-
font-size: base.em(12px);
|
|
47
|
-
line-height: base.em(17px);
|
|
48
|
-
transition: background-color 100ms ease-out;
|
|
49
|
-
|
|
50
|
-
&.selected {
|
|
51
|
-
background-color: rgba(255, 255, 255, 0.5) !important;
|
|
52
|
-
transition: background-color 0ms;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:hover {
|
|
56
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
57
|
-
transition: background-color 0ms;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.Dropdown__over {
|
|
62
|
-
top: auto;
|
|
63
|
-
bottom: 100%;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.Dropdown__selected-text {
|
|
67
|
-
display: inline-block;
|
|
68
|
-
text-overflow: ellipsis;
|
|
69
|
-
white-space: nowrap;
|
|
70
|
-
height: base.em(17px);
|
|
71
|
-
width: calc(100% - 1.2em);
|
|
72
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
* @copyright 2020
|
|
4
|
-
* @author ThePotato97 (https://github.com/ThePotato97)
|
|
5
|
-
* @license ISC
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
.iconStack > .icon {
|
|
9
|
-
position: absolute;
|
|
10
|
-
width: 100%;
|
|
11
|
-
text-align: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.iconStack {
|
|
15
|
-
position: relative;
|
|
16
|
-
display: inline-block;
|
|
17
|
-
height: 1.2em;
|
|
18
|
-
line-height: 2em;
|
|
19
|
-
vertical-align: middle;
|
|
20
|
-
|
|
21
|
-
&:after {
|
|
22
|
-
color: transparent;
|
|
23
|
-
content: '.';
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Aleksej Komarov
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use '../base.scss';
|
|
7
|
-
@use '../functions.scss' as *;
|
|
8
|
-
@use '../input.scss';
|
|
9
|
-
|
|
10
|
-
.input {
|
|
11
|
-
position: relative;
|
|
12
|
-
display: inline-block;
|
|
13
|
-
width: base.em(120px);
|
|
14
|
-
border: base.em(1px) solid input.$border-color;
|
|
15
|
-
border: base.em(1px) solid rgba(input.$border-color, 0.75);
|
|
16
|
-
border-radius: input.$border-radius;
|
|
17
|
-
color: input.$text-color;
|
|
18
|
-
background-color: input.$background-color;
|
|
19
|
-
padding: 0 base.em(4px);
|
|
20
|
-
margin-right: base.em(2px);
|
|
21
|
-
line-height: base.em(17px);
|
|
22
|
-
overflow: visible;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.fluid {
|
|
26
|
-
display: block;
|
|
27
|
-
width: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.baseline {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
color: transparent;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.inner {
|
|
36
|
-
display: block;
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 0;
|
|
39
|
-
bottom: 0;
|
|
40
|
-
left: 0;
|
|
41
|
-
right: 0;
|
|
42
|
-
border: 0;
|
|
43
|
-
outline: 0;
|
|
44
|
-
width: 100%;
|
|
45
|
-
font-size: base.em(12px);
|
|
46
|
-
line-height: base.em(17px);
|
|
47
|
-
height: base.em(17px);
|
|
48
|
-
margin: 0;
|
|
49
|
-
padding: 0 0.5em;
|
|
50
|
-
font-family: Verdana, sans-serif;
|
|
51
|
-
background-color: transparent;
|
|
52
|
-
color: input.$text-color;
|
|
53
|
-
color: inherit;
|
|
54
|
-
|
|
55
|
-
&:-ms-input-placeholder {
|
|
56
|
-
font-style: italic;
|
|
57
|
-
color: #777;
|
|
58
|
-
color: rgba(255, 255, 255, 0.45);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.monospace .inner {
|
|
63
|
-
font-family: 'Consolas', monospace;
|
|
64
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020 Aleksej Komarov
|
|
3
|
-
* SPDX-License-Identifier: MIT
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use '../base.scss';
|
|
7
|
-
@use '../colors.scss';
|
|
8
|
-
@use '../functions.scss' as *;
|
|
9
|
-
|
|
10
|
-
$bg-map: colors.$bg-map !default;
|
|
11
|
-
$fg-map: colors.$fg-map !default;
|
|
12
|
-
$ring-color: #6a96c9 !default;
|
|
13
|
-
$knob-color: #333333 !default;
|
|
14
|
-
$popup-background-color: #000000 !default;
|
|
15
|
-
$popup-text-color: #ffffff !default;
|
|
16
|
-
|
|
17
|
-
$inner-padding: 0.1em;
|
|
18
|
-
|
|
19
|
-
.knob {
|
|
20
|
-
position: relative;
|
|
21
|
-
font-size: 1rem;
|
|
22
|
-
width: 2.6em;
|
|
23
|
-
height: 2.6em;
|
|
24
|
-
margin: 0 auto;
|
|
25
|
-
margin-bottom: -0.2em;
|
|
26
|
-
cursor: n-resize;
|
|
27
|
-
|
|
28
|
-
// Adjusts a baseline in a way, that makes knob middle-aligned
|
|
29
|
-
// when it flows with the text.
|
|
30
|
-
&:after {
|
|
31
|
-
content: '.';
|
|
32
|
-
color: transparent;
|
|
33
|
-
line-height: 2.5em;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.circle {
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: $inner-padding;
|
|
40
|
-
bottom: $inner-padding;
|
|
41
|
-
left: $inner-padding;
|
|
42
|
-
right: $inner-padding;
|
|
43
|
-
margin: 0.3em;
|
|
44
|
-
background-color: $knob-color;
|
|
45
|
-
background-image: linear-gradient(
|
|
46
|
-
to bottom,
|
|
47
|
-
rgba(255, 255, 255, 0.15) 0%,
|
|
48
|
-
rgba(255, 255, 255, 0) 100%
|
|
49
|
-
);
|
|
50
|
-
border-radius: 50%;
|
|
51
|
-
box-shadow: 0 0.05em 0.5em 0 rgba(0, 0, 0, 0.5);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cursorBox {
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: 0;
|
|
57
|
-
bottom: 0;
|
|
58
|
-
left: 0;
|
|
59
|
-
right: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.cursor {
|
|
63
|
-
position: relative;
|
|
64
|
-
top: 0.05em;
|
|
65
|
-
margin: 0 auto;
|
|
66
|
-
width: 0.2em;
|
|
67
|
-
height: 0.8em;
|
|
68
|
-
background-color: rgba(255, 255, 255, 0.9);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.popupValue {
|
|
72
|
-
position: absolute;
|
|
73
|
-
top: -2rem;
|
|
74
|
-
right: 50%;
|
|
75
|
-
font-size: 1rem;
|
|
76
|
-
text-align: center;
|
|
77
|
-
padding: 0.25rem 0.5rem;
|
|
78
|
-
color: $popup-text-color;
|
|
79
|
-
background-color: $popup-background-color;
|
|
80
|
-
transform: translateX(50%);
|
|
81
|
-
white-space: nowrap;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ring {
|
|
85
|
-
position: absolute;
|
|
86
|
-
top: 0;
|
|
87
|
-
bottom: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
right: 0;
|
|
90
|
-
padding: $inner-padding;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
$pi: 3.1416;
|
|
94
|
-
|
|
95
|
-
.ringTrackPivot {
|
|
96
|
-
transform: rotateZ(135deg);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.ringTrack {
|
|
100
|
-
// transform-origin: 50% 50%;
|
|
101
|
-
fill: transparent;
|
|
102
|
-
stroke: rgba(255, 255, 255, 0.1);
|
|
103
|
-
stroke-width: 8;
|
|
104
|
-
stroke-linecap: round;
|
|
105
|
-
stroke-dasharray: 75 * $pi;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.ringFillPivot {
|
|
109
|
-
transform: rotateZ(135deg);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.bipolar .ringFillPivot {
|
|
113
|
-
transform: rotateZ(270deg);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ringFill {
|
|
117
|
-
fill: transparent;
|
|
118
|
-
stroke: $ring-color;
|
|
119
|
-
stroke-width: 8;
|
|
120
|
-
stroke-linecap: round;
|
|
121
|
-
stroke-dasharray: 100 * $pi;
|
|
122
|
-
transition: stroke 50ms ease-out;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@each $color-name, $color-value in $fg-map {
|
|
126
|
-
.color__#{$color-name} {
|
|
127
|
-
.ringFill {
|
|
128
|
-
stroke: $color-value;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|