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,130 +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';
10
-
11
- $title-text-color: base.$color-fg !default;
12
- $background-color: base.$color-bg-section !default;
13
- $separator-color: colors.$primary !default;
14
-
15
- .section {
16
- position: relative;
17
- margin-bottom: 0.5em;
18
- background-color: functions.fake-alpha($background-color, base.$color-bg);
19
- background-color: $background-color;
20
- box-sizing: border-box;
21
-
22
- &:last-child {
23
- margin-bottom: 0;
24
- }
25
- }
26
-
27
- .title {
28
- position: relative;
29
- padding: 0.5em;
30
- border-bottom: base.em(2px) solid $separator-color;
31
- }
32
-
33
- .titleText {
34
- font-size: base.em(14px);
35
- font-weight: bold;
36
- color: $title-text-color;
37
- }
38
-
39
- .buttons {
40
- position: absolute;
41
- display: inline-block;
42
- right: 0.5em;
43
- margin-top: base.em(-1px);
44
- }
45
-
46
- .rest {
47
- position: relative;
48
- }
49
-
50
- .content {
51
- padding: 0.66em 0.5em;
52
- }
53
-
54
- .fitted > .rest > .content {
55
- padding: 0;
56
- }
57
-
58
- .fill {
59
- display: flex;
60
- flex-direction: column;
61
- height: 100%;
62
- }
63
-
64
- .fill > .rest {
65
- flex-grow: 1;
66
- }
67
-
68
- .fill > .rest > .content {
69
- height: 100%;
70
- }
71
-
72
- .fill.scrollable > .rest > .content {
73
- position: absolute;
74
- top: 0;
75
- left: 0;
76
- right: 0;
77
- bottom: 0;
78
- }
79
-
80
- .scrollable {
81
- overflow-x: hidden;
82
- overflow-y: hidden;
83
-
84
- & > .rest > .content {
85
- overflow-y: scroll;
86
- overflow-x: hidden;
87
- }
88
- }
89
-
90
- .scrollableHorizontal {
91
- overflow-x: hidden;
92
- overflow-y: hidden;
93
-
94
- & > .rest > .content {
95
- overflow-y: hidden;
96
- overflow-x: scroll;
97
- }
98
- }
99
-
100
- .scrollable.scrollableHorizontal {
101
- overflow-x: hidden;
102
- overflow-y: hidden;
103
-
104
- & > .rest > .content {
105
- overflow-y: scroll;
106
- overflow-x: scroll;
107
- }
108
- }
109
-
110
- // Nested sections
111
- .section .section {
112
- background-color: transparent;
113
- margin-left: -0.5em;
114
- margin-right: -0.5em;
115
-
116
- // Remove extra space above the first nested section
117
- &:first-child {
118
- margin-top: -0.5em;
119
- }
120
- }
121
-
122
- // Level 2 section title
123
- .section .section .titleText {
124
- font-size: base.em(13px);
125
- }
126
-
127
- // Level 3 section title
128
- .section .section .section .titleText {
129
- font-size: base.em(12px);
130
- }
@@ -1,13 +0,0 @@
1
- declare const classNames: {
2
- readonly buttons: 'buttons';
3
- readonly content: 'content';
4
- readonly fill: 'fill';
5
- readonly fitted: 'fitted';
6
- readonly rest: 'rest';
7
- readonly scrollable: 'scrollable';
8
- readonly scrollableHorizontal: 'scrollableHorizontal';
9
- readonly section: 'section';
10
- readonly title: 'title';
11
- readonly titleText: 'titleText';
12
- };
13
- export = classNames;
@@ -1,54 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use '../base.scss';
7
-
8
- $cursor-color: base.$color-fg !default;
9
- $popup-background-color: #000000 !default;
10
- $popup-text-color: #ffffff !default;
11
-
12
- .slider {
13
- cursor: e-resize;
14
- }
15
-
16
- .cursorOffset {
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- bottom: 0;
21
- transition: none !important;
22
- }
23
-
24
- .cursor {
25
- position: absolute;
26
- top: 0;
27
- right: base.em(-1px);
28
- bottom: 0;
29
- width: 0;
30
- border-left: base.em(2px) solid $cursor-color;
31
- }
32
-
33
- .pointer {
34
- position: absolute;
35
- right: base.em(-5px);
36
- bottom: base.em(-4px);
37
- width: 0;
38
- height: 0;
39
- border-left: base.em(5px) solid transparent;
40
- border-right: base.em(5px) solid transparent;
41
- border-bottom: base.em(5px) solid $cursor-color;
42
- }
43
-
44
- .popupValue {
45
- position: absolute;
46
- right: 0;
47
- top: -2rem;
48
- font-size: 1rem;
49
- padding: 0.25rem 0.5rem;
50
- color: $popup-text-color;
51
- background-color: $popup-background-color;
52
- transform: translateX(50%);
53
- white-space: nowrap;
54
- }
@@ -1,8 +0,0 @@
1
- declare const classNames: {
2
- readonly cursor: "cursor";
3
- readonly cursorOffset: "cursorOffset";
4
- readonly pointer: "pointer";
5
- readonly popupValue: "popupValue";
6
- readonly slider: "slider";
7
- };
8
- export = classNames;
@@ -1,60 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use '../base.scss';
7
-
8
- $zebra-background-color: base.$color-bg-section !default;
9
- $color: rgba(255, 255, 255, 0.1) !default;
10
- $thickness: base.em(2px) !default;
11
-
12
- .fill {
13
- height: 100%;
14
- }
15
-
16
- .horizontal > .item {
17
- margin-left: 0.5em;
18
-
19
- &:first-child {
20
- margin-left: 0;
21
- }
22
- }
23
-
24
- .vertical > .item {
25
- margin-top: 0.5em;
26
-
27
- &:first-child {
28
- margin-top: 0;
29
- }
30
- }
31
-
32
- .reverse > .item {
33
- margin-left: 0;
34
- margin-right: 0.5em;
35
-
36
- &:first-child {
37
- margin-right: 0;
38
- }
39
- }
40
-
41
- .reverse__vertical > .item {
42
- margin-top: 0;
43
- margin-bottom: 0.5em;
44
-
45
- &:first-child {
46
- margin-bottom: 0;
47
- }
48
- }
49
-
50
- .zebra > .item:nth-child(even) {
51
- background-color: $zebra-background-color;
52
- }
53
-
54
- .horizontal > .divider:not(.divider__hidden) {
55
- border-left: $thickness solid $color;
56
- }
57
-
58
- .vertical > .divider:not(.divider__hidden) {
59
- border-top: $thickness solid $color;
60
- }
@@ -1,12 +0,0 @@
1
- declare const classNames: {
2
- readonly divider: "divider";
3
- readonly divider__hidden: "divider__hidden";
4
- readonly fill: "fill";
5
- readonly horizontal: "horizontal";
6
- readonly item: "item";
7
- readonly reverse: "reverse";
8
- readonly reverse__vertical: "reverse__vertical";
9
- readonly vertical: "vertical";
10
- readonly zebra: "zebra";
11
- };
12
- export = classNames;
@@ -1,44 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- .table {
7
- display: table;
8
- width: 100%;
9
- border-collapse: collapse;
10
- border-spacing: 0;
11
- margin: 0;
12
- }
13
-
14
- .collapsing {
15
- width: auto;
16
- }
17
-
18
- .row {
19
- display: table-row;
20
- }
21
-
22
- .cell {
23
- display: table-cell;
24
- padding: 0 0.25em;
25
-
26
- &:first-child {
27
- padding-left: 0;
28
- }
29
-
30
- &:last-child {
31
- padding-right: 0;
32
- }
33
- }
34
-
35
- .row__header .cell,
36
- .cell__header {
37
- font-weight: bold;
38
- padding-bottom: 0.5em;
39
- }
40
-
41
- .cell__collapsing {
42
- width: 1%;
43
- white-space: nowrap;
44
- }
@@ -1,10 +0,0 @@
1
- declare const classNames: {
2
- readonly cell: "cell";
3
- readonly cell__collapsing: "cell__collapsing";
4
- readonly cell__header: "cell__header";
5
- readonly collapsing: "collapsing";
6
- readonly row: "row";
7
- readonly row__header: "row__header";
8
- readonly table: "table";
9
- };
10
- export = classNames;
@@ -1,144 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 Aleksej Komarov
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- @use 'sass:color';
7
- @use 'sass:math';
8
- @use '../base.scss';
9
- @use '../colors.scss';
10
-
11
- $color-default: color.scale(
12
- colors.fg(colors.$primary),
13
- $lightness: 75%
14
- ) !default;
15
- $text-color: rgba(255, 255, 255, 0.5) !default;
16
- $text-color-selected: color.scale($color-default, $lightness: 25%) !default;
17
- $tab-color: transparent !default;
18
- $tab-color-hovered: rgba(255, 255, 255, 0.075) !default;
19
- $tab-color-selected: rgba(255, 255, 255, 0.125) !default;
20
- $border-radius: base.$border-radius !default;
21
- $fg-map: colors.$fg-map !default;
22
-
23
- .tabs {
24
- display: flex;
25
- align-items: stretch;
26
- overflow: hidden;
27
- background-color: base.$color-bg-section;
28
- }
29
-
30
- .fill {
31
- height: 100%;
32
- }
33
-
34
- // Interoperability with sections
35
- :global(.section) .tabs {
36
- background-color: transparent;
37
- }
38
-
39
- :global(.section):not(:global(.section--fitted)) .tabs {
40
- margin: 0 -0.5em 0.5em;
41
-
42
- &:first-child {
43
- margin-top: -0.5em;
44
- }
45
- }
46
-
47
- .vertical {
48
- flex-direction: column;
49
- padding: 0.25em 0 0.25em 0.25em;
50
- }
51
-
52
- .horizontal {
53
- margin-bottom: 0.5em;
54
- padding: 0.25em 0.25em 0 0.25em;
55
-
56
- &:last-child {
57
- margin-bottom: 0;
58
- }
59
- }
60
-
61
- .tabs__tab {
62
- flex-grow: 0;
63
- }
64
-
65
- .fluid .tabs__tab {
66
- flex-grow: 1;
67
- }
68
-
69
- .tab {
70
- display: flex;
71
- align-items: center;
72
- justify-content: space-between;
73
- background-color: $tab-color;
74
- color: $text-color;
75
- min-height: 2.25em;
76
- min-width: 4em;
77
- }
78
-
79
- .tab:not(.selected):hover {
80
- background-color: $tab-color-hovered;
81
- }
82
-
83
- .selected {
84
- background-color: $tab-color-selected;
85
- color: $text-color-selected;
86
- }
87
-
88
- .tab__text {
89
- flex-grow: 1;
90
- margin: 0 0.5em;
91
- }
92
-
93
- .tab__left {
94
- min-width: 1.5em;
95
- text-align: center;
96
- margin-left: 0.25em;
97
- }
98
-
99
- .tab__right {
100
- min-width: 1.5em;
101
- text-align: center;
102
- margin-right: 0.25em;
103
- }
104
-
105
- .horizontal {
106
- .tab {
107
- border-top: math.div(1em, 6) solid transparent;
108
- border-bottom: math.div(1em, 6) solid transparent;
109
- border-top-left-radius: 0.25em;
110
- border-top-right-radius: 0.25em;
111
- }
112
-
113
- .selected {
114
- border-bottom: math.div(1em, 6) solid $color-default;
115
- }
116
- }
117
-
118
- .vertical {
119
- .tab {
120
- min-height: 2em;
121
- border-left: math.div(1em, 6) solid transparent;
122
- border-right: math.div(1em, 6) solid transparent;
123
- border-top-left-radius: 0.25em;
124
- border-bottom-left-radius: 0.25em;
125
- }
126
-
127
- .selected {
128
- border-right: math.div(1em, 6) solid $color-default;
129
- }
130
- }
131
-
132
- @each $color-name, $color-value in $fg-map {
133
- .selected.color__#{$color-name} {
134
- color: color.scale($color-value, $lightness: 25%);
135
- }
136
-
137
- .horizontal .selected .color__#{$color-name} {
138
- border-bottom-color: $color-value;
139
- }
140
-
141
- .vertical .selected .color__#{$color-name} {
142
- border-right-color: $color-value;
143
- }
144
- }
@@ -1,35 +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 fill: 'fill';
22
- readonly fluid: 'fluid';
23
- readonly horizontal: 'horizontal';
24
- readonly section: 'section';
25
- readonly 'section--fitted': 'section--fitted';
26
- readonly selected: 'selected';
27
- readonly tab: 'tab';
28
- readonly tab__left: 'tab__left';
29
- readonly tab__right: 'tab__right';
30
- readonly tab__text: 'tab__text';
31
- readonly tabs: 'tabs';
32
- readonly tabs__tab: 'tabs__tab';
33
- readonly vertical: 'vertical';
34
- };
35
- export = classNames;
@@ -1,86 +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
- .textArea {
11
- position: relative;
12
- display: inline-block;
13
- border: base.em(1px) solid input.$border-color;
14
- border: base.em(1px) solid rgba(input.$border-color, 0.75);
15
- border-radius: input.$border-radius;
16
- background-color: input.$background-color;
17
- margin-right: base.em(2px);
18
- line-height: base.em(17px);
19
- box-sizing: border-box;
20
- width: 100%;
21
- }
22
-
23
- .fluid {
24
- display: block;
25
- width: auto;
26
- height: auto;
27
- }
28
-
29
- .noborder {
30
- border: 0px;
31
- }
32
-
33
- .inner .scrollable {
34
- overflow: auto;
35
- overflow-x: hidden;
36
- overflow-y: scroll;
37
- }
38
-
39
- .inner {
40
- display: block;
41
- position: absolute;
42
- top: 0;
43
- bottom: 0;
44
- left: 0;
45
- right: 0;
46
- border: 0;
47
- outline: 0;
48
- width: 100%;
49
- height: 100%;
50
- font-size: 1em;
51
- line-height: base.em(17px);
52
- min-height: base.em(17px);
53
- margin: 0;
54
- padding: 0 0.5em;
55
- font-family: inherit;
56
- background-color: transparent;
57
- color: inherit;
58
- box-sizing: border-box;
59
- // Make sure the div and the textarea wrap words in the same way
60
- word-wrap: break-word;
61
- overflow: hidden;
62
-
63
- &:-ms-input-placeholder {
64
- font-style: italic;
65
- color: #777;
66
- color: rgba(255, 255, 255, 0.45);
67
- }
68
- }
69
-
70
- .custom {
71
- overflow: visible;
72
- white-space: pre-wrap;
73
- }
74
-
75
- .nowrap {
76
- white-space: nowrap;
77
- overflow-wrap: normal;
78
- overflow-x: scroll;
79
- }
80
-
81
- .wrapper {
82
- overflow: hidden;
83
- height: 100%;
84
- width: 100%;
85
- position: absolute;
86
- }
@@ -1,11 +0,0 @@
1
- declare const classNames: {
2
- readonly custom: 'custom';
3
- readonly fluid: 'fluid';
4
- readonly inner: 'inner';
5
- readonly noborder: 'noborder';
6
- readonly nowrap: 'nowrap';
7
- readonly scrollable: 'scrollable';
8
- readonly textArea: 'textArea';
9
- readonly wrapper: 'wrapper';
10
- };
11
- export = classNames;
@@ -1,24 +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
-
9
- $color: #ffffff !default;
10
- $background-color: #000000 !default;
11
- $border-radius: base.$border-radius !default;
12
-
13
- .tooltip {
14
- z-index: 2;
15
- padding: 0.5em 0.75em;
16
- pointer-events: none;
17
- text-align: left;
18
- transition: opacity 150ms ease-out;
19
- background-color: $background-color;
20
- color: $color;
21
- box-shadow: 0.1em 0.1em 1.25em -0.1em rgba(0, 0, 0, 0.5);
22
- border-radius: $border-radius;
23
- max-width: base.em(250px);
24
- }
@@ -1,4 +0,0 @@
1
- declare const classNames: {
2
- readonly tooltip: "tooltip";
3
- };
4
- export = classNames;