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.
Files changed (292) hide show
  1. package/dist/ProgressBar.module-BkAFfFy0.js +29 -0
  2. package/dist/Section.module-CLVHJ4yA.js +15 -0
  3. package/dist/assets/BlockQuote.css +1 -0
  4. package/dist/assets/Button.css +1 -0
  5. package/dist/assets/ColorBox.css +1 -0
  6. package/dist/assets/Dialog.css +1 -0
  7. package/dist/assets/Dimmer.css +1 -0
  8. package/dist/assets/Divider.css +1 -0
  9. package/dist/assets/Flex.css +1 -0
  10. package/dist/assets/Icon.css +6 -0
  11. package/dist/assets/Input.css +1 -0
  12. package/dist/assets/Knob.css +1 -0
  13. package/dist/assets/LabeledList.css +1 -0
  14. package/dist/assets/MenuBar.css +1 -0
  15. package/dist/assets/Modal.css +1 -0
  16. package/dist/assets/NoticeBox.css +1 -0
  17. package/dist/assets/NumberInput.css +1 -0
  18. package/dist/assets/ProgressBar.css +1 -0
  19. package/dist/assets/RoundGauge.css +1 -0
  20. package/dist/assets/Section.css +1 -0
  21. package/dist/assets/Slider.css +1 -0
  22. package/dist/assets/Stack.css +1 -0
  23. package/dist/assets/Table.css +1 -0
  24. package/dist/assets/Tabs.css +1 -0
  25. package/dist/assets/TextArea.css +1 -0
  26. package/dist/assets/Tooltip.css +1 -0
  27. package/dist/common/assets.d.ts +4 -0
  28. package/dist/common/assets.js +25 -0
  29. package/dist/common/collections.d.ts +10 -0
  30. package/dist/common/collections.js +15 -0
  31. package/dist/common/color.d.ts +25 -0
  32. package/dist/common/color.js +69 -0
  33. package/dist/common/constants.d.ts +102 -0
  34. package/dist/common/constants.js +312 -0
  35. package/dist/common/events.d.ts +33 -0
  36. package/dist/common/events.js +147 -0
  37. package/{lib/common/exhaustive.ts → dist/common/exhaustive.d.ts} +1 -3
  38. package/dist/common/exhaustive.js +6 -0
  39. package/dist/common/format.d.ts +11 -0
  40. package/dist/common/format.js +114 -0
  41. package/{lib/common/fp.ts → dist/common/fp.d.ts} +2 -16
  42. package/dist/common/fp.js +9 -0
  43. package/dist/common/hotkeys.d.ts +25 -0
  44. package/dist/common/hotkeys.js +112 -0
  45. package/dist/common/http.d.ts +4 -0
  46. package/dist/common/http.js +10 -0
  47. package/dist/common/keycodes.d.ts +85 -0
  48. package/dist/common/keycodes.js +88 -0
  49. package/{lib/common/keys.ts → dist/common/keys.d.ts} +21 -24
  50. package/dist/common/keys.js +8 -0
  51. package/dist/common/math.d.ts +39 -0
  52. package/dist/common/math.js +41 -0
  53. package/dist/common/perf.d.ts +24 -0
  54. package/dist/common/perf.js +33 -0
  55. package/dist/common/random.d.ts +16 -0
  56. package/dist/common/random.js +18 -0
  57. package/dist/common/react.d.ts +23 -0
  58. package/dist/common/react.js +30 -0
  59. package/dist/common/redux.d.ts +64 -0
  60. package/dist/common/redux.js +72 -0
  61. package/dist/common/storage.d.ts +24 -0
  62. package/dist/common/storage.js +133 -0
  63. package/dist/common/string.d.ts +65 -0
  64. package/dist/common/string.js +83 -0
  65. package/dist/common/timer.d.ts +18 -0
  66. package/dist/common/timer.js +28 -0
  67. package/dist/common/type-utils.d.ts +9 -0
  68. package/dist/common/type-utils.js +25 -0
  69. package/dist/common/uuid.d.ts +9 -0
  70. package/dist/common/uuid.js +10 -0
  71. package/dist/components/AnimatedNumber.d.ts +60 -0
  72. package/dist/components/AnimatedNumber.js +76 -0
  73. package/dist/components/Autofocus.d.ts +4 -0
  74. package/dist/components/Autofocus.js +17 -0
  75. package/dist/components/Blink.d.ts +26 -0
  76. package/dist/components/Blink.js +56 -0
  77. package/dist/components/BlockQuote.d.ts +3 -0
  78. package/dist/components/BlockQuote.js +13 -0
  79. package/dist/components/BodyZoneSelector.d.ts +28 -0
  80. package/dist/components/BodyZoneSelector.js +115 -0
  81. package/dist/components/Box.d.ts +91 -0
  82. package/dist/components/Box.js +133 -0
  83. package/dist/components/Button.d.ts +93 -0
  84. package/dist/components/Button.js +298 -0
  85. package/dist/components/ByondUi.js +73 -0
  86. package/dist/components/Chart.d.ts +28 -0
  87. package/dist/components/Chart.js +95 -0
  88. package/dist/components/Collapsible.d.ts +15 -0
  89. package/dist/components/Collapsible.js +27 -0
  90. package/dist/components/ColorBox.d.ts +8 -0
  91. package/dist/components/ColorBox.js +24 -0
  92. package/dist/components/Dialog.d.ts +24 -0
  93. package/dist/components/Dialog.js +67 -0
  94. package/dist/components/Dimmer.d.ts +3 -0
  95. package/dist/components/Dimmer.js +13 -0
  96. package/dist/components/Divider.d.ts +6 -0
  97. package/dist/components/Divider.js +22 -0
  98. package/dist/components/DmIcon.d.ts +33 -0
  99. package/dist/components/DmIcon.js +29 -0
  100. package/dist/components/DraggableControl.js +176 -0
  101. package/dist/components/Dropdown.d.ts +48 -0
  102. package/dist/components/Dropdown.js +152 -0
  103. package/dist/components/FakeTerminal.js +38 -0
  104. package/dist/components/FitText.d.ts +22 -0
  105. package/dist/components/FitText.js +63 -0
  106. package/dist/components/Flex.d.ts +93 -0
  107. package/dist/components/Flex.js +72 -0
  108. package/dist/components/Icon.d.ts +30 -0
  109. package/dist/components/Icon.js +51 -0
  110. package/dist/components/Image.d.ts +14 -0
  111. package/dist/components/Image.js +35 -0
  112. package/dist/components/InfinitePlane.js +139 -0
  113. package/dist/components/Input.d.ts +61 -0
  114. package/dist/components/Input.js +89 -0
  115. package/dist/components/KeyListener.d.ts +15 -0
  116. package/dist/components/KeyListener.js +23 -0
  117. package/dist/components/Knob.d.ts +49 -0
  118. package/dist/components/Knob.js +162 -0
  119. package/dist/components/LabeledControls.d.ts +11 -0
  120. package/dist/components/LabeledControls.js +39 -0
  121. package/dist/components/LabeledList.d.ts +57 -0
  122. package/dist/components/LabeledList.js +94 -0
  123. package/dist/components/MenuBar.d.ts +28 -0
  124. package/dist/components/MenuBar.js +174 -0
  125. package/dist/components/Modal.d.ts +3 -0
  126. package/dist/components/Modal.js +25 -0
  127. package/dist/components/NoticeBox.d.ts +20 -0
  128. package/dist/components/NoticeBox.js +49 -0
  129. package/dist/components/NumberInput.d.ts +45 -0
  130. package/dist/components/NumberInput.js +221 -0
  131. package/dist/components/Popper.d.ts +27 -0
  132. package/dist/components/Popper.js +177 -0
  133. package/dist/components/ProgressBar.d.ts +46 -0
  134. package/dist/components/ProgressBar.js +37 -0
  135. package/dist/components/RestrictedInput.js +155 -0
  136. package/dist/components/RoundGauge.d.ts +53 -0
  137. package/dist/components/RoundGauge.js +147 -0
  138. package/dist/components/Section.d.ts +63 -0
  139. package/dist/components/Section.js +62 -0
  140. package/dist/components/Slider.d.ts +46 -0
  141. package/dist/components/Slider.js +124 -0
  142. package/dist/components/Stack.d.ts +27 -0
  143. package/dist/components/Stack.js +67 -0
  144. package/dist/components/StyleableSection.d.ts +11 -0
  145. package/dist/components/StyleableSection.js +16 -0
  146. package/dist/components/Table.d.ts +29 -0
  147. package/dist/components/Table.js +67 -0
  148. package/dist/components/Tabs.d.ts +23 -0
  149. package/dist/components/Tabs.js +89 -0
  150. package/dist/components/TextArea.d.ts +39 -0
  151. package/dist/components/TextArea.js +118 -0
  152. package/dist/components/TimeDisplay.js +34 -0
  153. package/dist/components/Tooltip.d.ts +29 -0
  154. package/dist/components/Tooltip.js +83 -0
  155. package/dist/components/TrackOutsideClicks.d.ts +13 -0
  156. package/dist/components/TrackOutsideClicks.js +24 -0
  157. package/dist/components/VirtualList.d.ts +8 -0
  158. package/dist/components/VirtualList.js +34 -0
  159. package/dist/components/index.js +92 -0
  160. package/dist/popper-CiqSDJTE.js +906 -0
  161. package/package.json +8 -10
  162. package/lib/common/assets.ts +0 -38
  163. package/lib/common/collections.ts +0 -27
  164. package/lib/common/color.ts +0 -88
  165. package/lib/common/constants.ts +0 -349
  166. package/lib/common/events.ts +0 -262
  167. package/lib/common/format.ts +0 -167
  168. package/lib/common/hotkeys.ts +0 -207
  169. package/lib/common/http.ts +0 -16
  170. package/lib/common/keycodes.ts +0 -86
  171. package/lib/common/math.ts +0 -76
  172. package/lib/common/perf.ts +0 -72
  173. package/lib/common/random.ts +0 -32
  174. package/lib/common/react.ts +0 -59
  175. package/lib/common/redux.ts +0 -187
  176. package/lib/common/storage.ts +0 -207
  177. package/lib/common/string.ts +0 -169
  178. package/lib/common/timer.ts +0 -63
  179. package/lib/common/type-utils.ts +0 -41
  180. package/lib/common/types.d.ts +0 -12
  181. package/lib/common/uuid.ts +0 -18
  182. package/lib/components/AnimatedNumber.tsx +0 -180
  183. package/lib/components/Autofocus.tsx +0 -23
  184. package/lib/components/Blink.tsx +0 -91
  185. package/lib/components/BlockQuote.tsx +0 -9
  186. package/lib/components/BodyZoneSelector.tsx +0 -149
  187. package/lib/components/Box.tsx +0 -252
  188. package/lib/components/Button.tsx +0 -425
  189. package/lib/components/ByondUi.jsx +0 -110
  190. package/lib/components/Chart.tsx +0 -155
  191. package/lib/components/Collapsible.tsx +0 -43
  192. package/lib/components/ColorBox.tsx +0 -29
  193. package/lib/components/Dialog.tsx +0 -81
  194. package/lib/components/Dimmer.tsx +0 -13
  195. package/lib/components/Divider.tsx +0 -20
  196. package/lib/components/DmIcon.tsx +0 -86
  197. package/lib/components/DraggableControl.jsx +0 -276
  198. package/lib/components/Dropdown.tsx +0 -246
  199. package/lib/components/FakeTerminal.jsx +0 -52
  200. package/lib/components/FitText.tsx +0 -99
  201. package/lib/components/Flex.tsx +0 -159
  202. package/lib/components/Icon.tsx +0 -95
  203. package/lib/components/Image.tsx +0 -54
  204. package/lib/components/InfinitePlane.jsx +0 -192
  205. package/lib/components/Input.tsx +0 -176
  206. package/lib/components/KeyListener.tsx +0 -40
  207. package/lib/components/Knob.tsx +0 -178
  208. package/lib/components/LabeledControls.tsx +0 -44
  209. package/lib/components/LabeledList.tsx +0 -154
  210. package/lib/components/MenuBar.tsx +0 -228
  211. package/lib/components/Modal.tsx +0 -23
  212. package/lib/components/NoticeBox.tsx +0 -45
  213. package/lib/components/NumberInput.tsx +0 -328
  214. package/lib/components/Popper.tsx +0 -100
  215. package/lib/components/ProgressBar.tsx +0 -105
  216. package/lib/components/RestrictedInput.jsx +0 -301
  217. package/lib/components/RoundGauge.tsx +0 -180
  218. package/lib/components/Section.tsx +0 -120
  219. package/lib/components/Slider.tsx +0 -169
  220. package/lib/components/Stack.tsx +0 -96
  221. package/lib/components/StyleableSection.tsx +0 -33
  222. package/lib/components/Table.tsx +0 -84
  223. package/lib/components/Tabs.tsx +0 -89
  224. package/lib/components/TextArea.tsx +0 -182
  225. package/lib/components/TimeDisplay.jsx +0 -64
  226. package/lib/components/Tooltip.tsx +0 -152
  227. package/lib/components/TrackOutsideClicks.tsx +0 -35
  228. package/lib/components/VirtualList.tsx +0 -69
  229. package/lib/styles/atomic/candystripe.scss +0 -8
  230. package/lib/styles/atomic/centered-image.scss +0 -7
  231. package/lib/styles/atomic/color.scss +0 -21
  232. package/lib/styles/atomic/debug-layout.scss +0 -17
  233. package/lib/styles/atomic/fit-text.scss +0 -14
  234. package/lib/styles/atomic/links.scss +0 -12
  235. package/lib/styles/atomic/outline.scss +0 -47
  236. package/lib/styles/atomic/text.scss +0 -44
  237. package/lib/styles/base.scss +0 -32
  238. package/lib/styles/colors.scss +0 -92
  239. package/lib/styles/components/BlockQuote.module.scss +0 -20
  240. package/lib/styles/components/BlockQuote.module.scss.d.ts +0 -4
  241. package/lib/styles/components/Button.module.scss +0 -157
  242. package/lib/styles/components/Button.module.scss.d.ts +0 -46
  243. package/lib/styles/components/ColorBox.module.scss +0 -12
  244. package/lib/styles/components/ColorBox.module.scss.d.ts +0 -4
  245. package/lib/styles/components/Dialog.module.scss +0 -60
  246. package/lib/styles/components/Dialog.module.scss.d.ts +0 -10
  247. package/lib/styles/components/Dimmer.module.scss +0 -22
  248. package/lib/styles/components/Dimmer.module.scss.d.ts +0 -4
  249. package/lib/styles/components/Divider.module.scss +0 -27
  250. package/lib/styles/components/Divider.module.scss.d.ts +0 -6
  251. package/lib/styles/components/Dropdown.scss +0 -72
  252. package/lib/styles/components/Flex.module.scss +0 -13
  253. package/lib/styles/components/Flex.module.scss.d.ts +0 -5
  254. package/lib/styles/components/Icon.module.scss +0 -25
  255. package/lib/styles/components/Icon.module.scss.d.ts +0 -5
  256. package/lib/styles/components/Input.module.scss +0 -64
  257. package/lib/styles/components/Input.module.scss.d.ts +0 -8
  258. package/lib/styles/components/Knob.module.scss +0 -131
  259. package/lib/styles/components/Knob.module.scss.d.ts +0 -33
  260. package/lib/styles/components/LabeledList.module.scss +0 -49
  261. package/lib/styles/components/LabeledList.module.scss.d.ts +0 -8
  262. package/lib/styles/components/MenuBar.module.scss +0 -75
  263. package/lib/styles/components/MenuBar.module.scss.d.ts +0 -14
  264. package/lib/styles/components/Modal.module.scss +0 -14
  265. package/lib/styles/components/Modal.module.scss.d.ts +0 -4
  266. package/lib/styles/components/NoticeBox.module.scss +0 -65
  267. package/lib/styles/components/NoticeBox.module.scss.d.ts +0 -27
  268. package/lib/styles/components/NumberInput.module.scss +0 -71
  269. package/lib/styles/components/NumberInput.module.scss.d.ts +0 -9
  270. package/lib/styles/components/ProgressBar.module.scss +0 -63
  271. package/lib/styles/components/ProgressBar.module.scss.d.ts +0 -27
  272. package/lib/styles/components/RoundGauge.module.scss +0 -85
  273. package/lib/styles/components/RoundGauge.module.scss.d.ts +0 -49
  274. package/lib/styles/components/Section.module.scss +0 -130
  275. package/lib/styles/components/Section.module.scss.d.ts +0 -13
  276. package/lib/styles/components/Slider.module.scss +0 -54
  277. package/lib/styles/components/Slider.module.scss.d.ts +0 -8
  278. package/lib/styles/components/Stack.module.scss +0 -60
  279. package/lib/styles/components/Stack.module.scss.d.ts +0 -12
  280. package/lib/styles/components/Table.module.scss +0 -44
  281. package/lib/styles/components/Table.module.scss.d.ts +0 -10
  282. package/lib/styles/components/Tabs.module.scss +0 -144
  283. package/lib/styles/components/Tabs.module.scss.d.ts +0 -35
  284. package/lib/styles/components/TextArea.module.scss +0 -86
  285. package/lib/styles/components/TextArea.module.scss.d.ts +0 -11
  286. package/lib/styles/components/Tooltip.module.scss +0 -24
  287. package/lib/styles/components/Tooltip.module.scss.d.ts +0 -4
  288. package/lib/styles/functions.scss +0 -79
  289. package/lib/styles/input.scss +0 -9
  290. package/lib/styles/main.scss +0 -20
  291. package/lib/styles/reset.scss +0 -68
  292. /package/{lib/components/index.ts → dist/components/index.d.ts} +0 -0
@@ -1,33 +0,0 @@
1
- declare const classNames: {
2
- readonly bipolar: 'bipolar';
3
- readonly circle: 'circle';
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__good: 'color__good';
10
- readonly color__green: 'color__green';
11
- readonly color__grey: 'color__grey';
12
- readonly color__label: 'color__label';
13
- readonly 'color__light-grey': 'color__light-grey';
14
- readonly color__olive: 'color__olive';
15
- readonly color__orange: 'color__orange';
16
- readonly color__pink: 'color__pink';
17
- readonly color__purple: 'color__purple';
18
- readonly color__red: 'color__red';
19
- readonly color__teal: 'color__teal';
20
- readonly color__violet: 'color__violet';
21
- readonly color__white: 'color__white';
22
- readonly color__yellow: 'color__yellow';
23
- readonly cursor: 'cursor';
24
- readonly cursorBox: 'cursorBox';
25
- readonly knob: 'knob';
26
- readonly popupValue: 'popupValue';
27
- readonly ring: 'ring';
28
- readonly ringFill: 'ringFill';
29
- readonly ringFillPivot: 'ringFillPivot';
30
- readonly ringTrack: 'ringTrack';
31
- readonly ringTrackPivot: 'ringTrackPivot';
32
- };
33
- export = classNames;
@@ -1,49 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use '../base.scss';
7
-
8
- .labeledList {
9
- display: table;
10
- // IE8: Does not support calc
11
- width: 100%;
12
- // Compensate for negative margin
13
- width: calc(100% + 1em);
14
- border-collapse: collapse;
15
- border-spacing: 0;
16
- margin: -0.25em -0.5em;
17
- margin-bottom: 0;
18
- padding: 0;
19
- }
20
-
21
- .row {
22
- display: table-row;
23
- }
24
-
25
- .row:last-child .cell {
26
- padding-bottom: 0;
27
- }
28
-
29
- .cell {
30
- display: table-cell;
31
- margin: 0;
32
- padding: 0.25em 0.5em;
33
- border: 0;
34
- text-align: left;
35
- }
36
-
37
- .label__nowrap {
38
- width: 1%;
39
- white-space: nowrap;
40
- min-width: 5em;
41
- }
42
-
43
- .buttons {
44
- width: 0.1%;
45
- white-space: nowrap;
46
- text-align: right;
47
- padding-top: base.em(1px);
48
- padding-bottom: 0;
49
- }
@@ -1,8 +0,0 @@
1
- declare const classNames: {
2
- readonly buttons: 'buttons';
3
- readonly cell: 'cell';
4
- readonly label__nowrap: 'label__nowrap';
5
- readonly labeledList: 'labeledList';
6
- readonly row: 'row';
7
- };
8
- export = classNames;
@@ -1,75 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use '../base.scss';
7
-
8
- $separator-color: base.$color-bg-section;
9
- $background-color: base.$color-bg !default;
10
- $dropdown-z-index: 5;
11
-
12
- .menuBar {
13
- display: flex;
14
- }
15
-
16
- .font {
17
- font-family: Verdana, sans-serif;
18
- font-size: base.em(12px);
19
- line-height: base.em(17px);
20
- }
21
-
22
- .hover {
23
- &:hover {
24
- background-color: lighten($background-color, 30%);
25
- transition: background-color 0ms;
26
- }
27
- }
28
-
29
- .button {
30
- padding: 0.2rem 0.5rem 0.2rem 0.5rem;
31
- }
32
-
33
- .menu {
34
- position: absolute;
35
- z-index: $dropdown-z-index;
36
- background-color: $background-color;
37
- padding: 0.3rem 0.3rem 0.3rem 0.3rem;
38
- box-shadow: 4px 6px 5px -2px rgba(0, 0, 0, 0.55);
39
- }
40
-
41
- .item {
42
- z-index: $dropdown-z-index;
43
- transition: background-color 100ms ease-out;
44
- background-color: $background-color;
45
- white-space: nowrap;
46
- padding: 0.3rem 2rem 0.3rem 3rem;
47
- }
48
-
49
- .toggle {
50
- padding: 0.3rem 2rem 0.3rem 0;
51
- }
52
-
53
- .toggle__check {
54
- display: inline-block;
55
- vertical-align: middle;
56
- min-width: 3rem;
57
- margin-left: 0.3rem;
58
- }
59
-
60
- .over {
61
- top: auto;
62
- bottom: 100%;
63
- }
64
-
65
- .button__text {
66
- text-overflow: clip;
67
- white-space: nowrap;
68
- height: base.em(17px);
69
- }
70
-
71
- .separator {
72
- display: block;
73
- margin: 0.3rem 0.3rem 0.3rem 2.3rem;
74
- border-top: 1px solid $separator-color;
75
- }
@@ -1,14 +0,0 @@
1
- declare const classNames: {
2
- readonly button: 'button';
3
- readonly button__text: 'button__text';
4
- readonly font: 'font';
5
- readonly hover: 'hover';
6
- readonly item: 'item';
7
- readonly menu: 'menu';
8
- readonly menuBar: 'menuBar';
9
- readonly over: 'over';
10
- readonly separator: 'separator';
11
- readonly toggle: 'toggle';
12
- readonly toggle__check: 'toggle__check';
13
- };
14
- export = classNames;
@@ -1,14 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use '../base.scss';
7
-
8
- $background-color: base.$color-bg !default;
9
-
10
- .modal {
11
- background-color: $background-color;
12
- max-width: calc(100% - 1rem);
13
- padding: 1rem;
14
- }
@@ -1,4 +0,0 @@
1
- declare const classNames: {
2
- readonly modal: "modal";
3
- };
4
- export = classNames;
@@ -1,65 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use 'sass:color';
7
- @use '../base.scss';
8
- @use '../colors.scss';
9
- @use '../functions.scss' as *;
10
-
11
- // NoticeBox
12
- $background-color: #bb9b68 !default;
13
- $color-stripes: rgba(0, 0, 0, 0.1) !default;
14
- $color-border: #272727 !default;
15
- $bg-map: colors.$bg-map !default;
16
-
17
- .noticeBox {
18
- // Adapt text color to background luminance to ensure high contast
19
- $luminance: luminance($background-color);
20
- $text-color: if($luminance > 0.35, rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
21
-
22
- padding: 0.33em 0.5em;
23
- margin-bottom: 0.5em;
24
- box-shadow: none;
25
- font-weight: bold;
26
- font-style: italic;
27
- color: $text-color;
28
- background-color: $background-color;
29
- background-image: repeating-linear-gradient(
30
- -45deg,
31
- transparent,
32
- transparent base.em(10px),
33
- $color-stripes base.em(10px),
34
- $color-stripes base.em(20px)
35
- );
36
- }
37
-
38
- @mixin box-color($color) {
39
- $luminance: luminance($color);
40
- $text-color: if($luminance > 0.35, rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
41
- color: $text-color;
42
- background-color: color.adjust($color, $saturation: -15%, $lightness: -15%);
43
- }
44
-
45
- @each $color-name, $color-value in $bg-map {
46
- .color__#{$color-name} {
47
- @include box-color($color-value);
48
- }
49
- }
50
-
51
- .info {
52
- @include box-color(colors.$blue);
53
- }
54
-
55
- .success {
56
- @include box-color(colors.$green);
57
- }
58
-
59
- .warning {
60
- @include box-color(colors.$orange);
61
- }
62
-
63
- .danger {
64
- @include box-color(colors.$red);
65
- }
@@ -1,27 +0,0 @@
1
- declare const classNames: {
2
- readonly color__average: 'color__average';
3
- readonly color__bad: 'color__bad';
4
- readonly color__black: 'color__black';
5
- readonly color__blue: 'color__blue';
6
- readonly color__brown: 'color__brown';
7
- readonly color__good: 'color__good';
8
- readonly color__green: 'color__green';
9
- readonly color__grey: 'color__grey';
10
- readonly color__label: 'color__label';
11
- readonly 'color__light-grey': 'color__light-grey';
12
- readonly color__olive: 'color__olive';
13
- readonly color__orange: 'color__orange';
14
- readonly color__pink: 'color__pink';
15
- readonly color__purple: 'color__purple';
16
- readonly color__red: 'color__red';
17
- readonly color__teal: 'color__teal';
18
- readonly color__violet: 'color__violet';
19
- readonly color__white: 'color__white';
20
- readonly color__yellow: 'color__yellow';
21
- readonly danger: 'danger';
22
- readonly info: 'info';
23
- readonly noticeBox: 'noticeBox';
24
- readonly success: 'success';
25
- readonly warning: 'warning';
26
- };
27
- export = classNames;
@@ -1,71 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use 'sass:color';
7
- @use '../base.scss';
8
- @use '../functions.scss' as *;
9
- @use '../input.scss';
10
-
11
- .numberInput {
12
- position: relative;
13
- display: inline-block;
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.$border-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
- text-align: right;
23
- overflow: visible;
24
- cursor: n-resize;
25
- }
26
-
27
- .fluid {
28
- display: block;
29
- }
30
-
31
- .content {
32
- margin-left: 0.5em;
33
- }
34
-
35
- .barContainer {
36
- position: absolute;
37
- top: base.em(2px);
38
- bottom: base.em(2px);
39
- left: base.em(2px);
40
- }
41
-
42
- .bar {
43
- position: absolute;
44
- bottom: 0;
45
- left: 0;
46
- width: base.em(3px);
47
- box-sizing: border-box;
48
- border-bottom: base.em(1px) solid input.$border-color;
49
- background-color: input.$border-color;
50
- }
51
-
52
- .inner {
53
- display: block;
54
- position: absolute;
55
- top: 0;
56
- bottom: 0;
57
- left: 0;
58
- right: 0;
59
- border: 0;
60
- outline: 0;
61
- width: 100%;
62
- font-size: base.em(12px);
63
- line-height: base.em(17px);
64
- height: base.em(17px);
65
- margin: 0;
66
- padding: 0 0.5em;
67
- font-family: Verdana, sans-serif;
68
- background-color: input.$background-color;
69
- color: input.$text-color;
70
- text-align: right;
71
- }
@@ -1,9 +0,0 @@
1
- declare const classNames: {
2
- readonly bar: 'bar';
3
- readonly barContainer: 'barContainer';
4
- readonly content: 'content';
5
- readonly fluid: 'fluid';
6
- readonly inner: 'inner';
7
- readonly numberInput: 'numberInput';
8
- };
9
- export = classNames;
@@ -1,63 +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-fill: colors.bg(colors.$primary) !default;
11
- $background-color: rgba(0, 0, 0, 0) !default;
12
- $border-radius: base.$border-radius !default;
13
- $bg-map: colors.$bg-map !default;
14
-
15
- .progressBar {
16
- display: inline-block;
17
- position: relative;
18
- width: 100%;
19
- padding: 0 0.5em;
20
- border-width: base.em(1px) !important;
21
- border-style: solid !important;
22
- border-radius: $border-radius;
23
- background-color: $background-color;
24
- transition: border-color 900ms ease-out;
25
- }
26
-
27
- .fill {
28
- position: absolute;
29
- top: -0.5px;
30
- left: 0px;
31
- bottom: -0.5px;
32
- }
33
-
34
- .fill__animated {
35
- transition:
36
- background-color 900ms ease-out,
37
- width 900ms ease-out;
38
- }
39
-
40
- .content {
41
- position: relative;
42
- line-height: base.em(17px);
43
- width: 100%;
44
- text-align: right;
45
- }
46
-
47
- .color__default {
48
- border: base.em(1px) solid $color-default-fill;
49
-
50
- .fill {
51
- background-color: $color-default-fill;
52
- }
53
- }
54
-
55
- @each $color-name, $color-value in $bg-map {
56
- .color__#{$color-name} {
57
- border-color: $color-value !important;
58
-
59
- .fill {
60
- background-color: $color-value;
61
- }
62
- }
63
- }
@@ -1,27 +0,0 @@
1
- declare const classNames: {
2
- readonly color__average: 'color__average';
3
- readonly color__bad: 'color__bad';
4
- readonly color__black: 'color__black';
5
- readonly color__blue: 'color__blue';
6
- readonly color__brown: 'color__brown';
7
- readonly color__default: 'color__default';
8
- readonly color__good: 'color__good';
9
- readonly color__green: 'color__green';
10
- readonly color__grey: 'color__grey';
11
- readonly color__label: 'color__label';
12
- readonly 'color__light-grey': 'color__light-grey';
13
- readonly color__olive: 'color__olive';
14
- readonly color__orange: 'color__orange';
15
- readonly color__pink: 'color__pink';
16
- readonly color__purple: 'color__purple';
17
- readonly color__red: 'color__red';
18
- readonly color__teal: 'color__teal';
19
- readonly color__violet: 'color__violet';
20
- readonly color__white: 'color__white';
21
- readonly color__yellow: 'color__yellow';
22
- readonly content: 'content';
23
- readonly fill: 'fill';
24
- readonly fill__animated: 'fill__animated';
25
- readonly progressBar: 'progressBar';
26
- };
27
- export = classNames;
@@ -1,85 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 bobbahbrown (https://github.com/bobbahbrown)
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use '../base.scss';
7
- @use '../colors.scss';
8
- @use '../functions.scss' as *;
9
-
10
- $fg-map: colors.$fg-map !default;
11
- $ring-color: #6a96c9 !default;
12
-
13
- .roundGauge {
14
- font-size: 1rem;
15
- width: 2.6em;
16
- height: 1.3em;
17
- margin: 0 auto;
18
- margin-bottom: 0.2em;
19
- }
20
-
21
- $pi: 3.1416;
22
-
23
- .ringTrack {
24
- fill: transparent;
25
- stroke: rgba(255, 255, 255, 0.1);
26
- stroke-width: 10;
27
- stroke-dasharray: 50 * $pi;
28
- stroke-dashoffset: 50 * $pi;
29
- }
30
-
31
- .ringFill {
32
- fill: transparent;
33
- stroke: $ring-color;
34
- stroke-width: 10;
35
- stroke-dasharray: 100 * $pi;
36
- transition: stroke 50ms ease-out;
37
- }
38
-
39
- .needle,
40
- .ringFill {
41
- transition: transform 50ms ease-in-out;
42
- }
43
-
44
- .needleLine,
45
- .needleMiddle {
46
- fill: colors.$bad;
47
- }
48
-
49
- .alert {
50
- fill-rule: evenodd;
51
- clip-rule: evenodd;
52
- stroke-linejoin: round;
53
- stroke-miterlimit: 2;
54
- fill: rgba(255, 255, 255, 0.1);
55
- }
56
-
57
- .alert.max {
58
- fill: colors.$bad;
59
- }
60
-
61
- @each $color-name, $color-value in $fg-map {
62
- .color__#{$color-name}.ringFill {
63
- stroke: $color-value;
64
- }
65
- }
66
-
67
- @each $color-name, $color-value in $fg-map {
68
- .alert__#{$color-name} {
69
- fill: $color-value;
70
- transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
71
- animation: alertAnim 1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
72
- }
73
- }
74
-
75
- @keyframes alertAnim {
76
- 0% {
77
- opacity: 0.1;
78
- }
79
- 50% {
80
- opacity: 1;
81
- }
82
- 100% {
83
- opacity: 0.1;
84
- }
85
- }
@@ -1,49 +0,0 @@
1
- declare const classNames: {
2
- readonly alert: 'alert';
3
- readonly alert__average: 'alert__average';
4
- readonly alert__bad: 'alert__bad';
5
- readonly alert__black: 'alert__black';
6
- readonly alert__blue: 'alert__blue';
7
- readonly alert__brown: 'alert__brown';
8
- readonly alert__good: 'alert__good';
9
- readonly alert__green: 'alert__green';
10
- readonly alert__grey: 'alert__grey';
11
- readonly alert__label: 'alert__label';
12
- readonly 'alert__light-grey': 'alert__light-grey';
13
- readonly alert__olive: 'alert__olive';
14
- readonly alert__orange: 'alert__orange';
15
- readonly alert__pink: 'alert__pink';
16
- readonly alert__purple: 'alert__purple';
17
- readonly alert__red: 'alert__red';
18
- readonly alert__teal: 'alert__teal';
19
- readonly alert__violet: 'alert__violet';
20
- readonly alert__white: 'alert__white';
21
- readonly alert__yellow: 'alert__yellow';
22
- readonly color__average: 'color__average';
23
- readonly color__bad: 'color__bad';
24
- readonly color__black: 'color__black';
25
- readonly color__blue: 'color__blue';
26
- readonly color__brown: 'color__brown';
27
- readonly color__good: 'color__good';
28
- readonly color__green: 'color__green';
29
- readonly color__grey: 'color__grey';
30
- readonly color__label: 'color__label';
31
- readonly 'color__light-grey': 'color__light-grey';
32
- readonly color__olive: 'color__olive';
33
- readonly color__orange: 'color__orange';
34
- readonly color__pink: 'color__pink';
35
- readonly color__purple: 'color__purple';
36
- readonly color__red: 'color__red';
37
- readonly color__teal: 'color__teal';
38
- readonly color__violet: 'color__violet';
39
- readonly color__white: 'color__white';
40
- readonly color__yellow: 'color__yellow';
41
- readonly max: 'max';
42
- readonly needle: 'needle';
43
- readonly needleLine: 'needleLine';
44
- readonly needleMiddle: 'needleMiddle';
45
- readonly ringFill: 'ringFill';
46
- readonly ringTrack: 'ringTrack';
47
- readonly roundGauge: 'roundGauge';
48
- };
49
- export = classNames;