@react95/core 8.0.0-alpha.0 → 8.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (557) hide show
  1. package/@types/Modal/Modal.d.ts +1 -1
  2. package/@types/Modal/ModalContext.d.ts +1 -2
  3. package/@types/Modal/ModalProvider.d.ts +1 -2
  4. package/@types/TaskBar/TaskBar.d.ts +1 -1
  5. package/@types/Tree/Node.d.ts +1 -2
  6. package/@types/index.d.ts +25 -23
  7. package/@types/themes/all.d.ts +36 -36
  8. package/@types/themes/azureOrange.css.d.ts +1 -1
  9. package/@types/themes/bee.css.d.ts +1 -1
  10. package/@types/themes/blackAndWhite.css.d.ts +1 -1
  11. package/@types/themes/brick.css.d.ts +1 -1
  12. package/@types/themes/candy.css.d.ts +1 -1
  13. package/@types/themes/coldGray.css.d.ts +1 -1
  14. package/@types/themes/contract.css.d.ts +66 -8
  15. package/@types/themes/counterStrike.css.d.ts +1 -1
  16. package/@types/themes/eggplant.css.d.ts +1 -1
  17. package/@types/themes/highContrast.css.d.ts +1 -1
  18. package/@types/themes/lilac.css.d.ts +1 -1
  19. package/@types/themes/lilacRoseDark.css.d.ts +1 -1
  20. package/@types/themes/maple.css.d.ts +1 -1
  21. package/@types/themes/marine.css.d.ts +1 -1
  22. package/@types/themes/matrix.css.d.ts +1 -1
  23. package/@types/themes/millenium.css.d.ts +1 -1
  24. package/@types/themes/modernDark.css.d.ts +1 -1
  25. package/@types/themes/molecule.css.d.ts +1 -1
  26. package/@types/themes/ninjaTurtles.css.d.ts +1 -1
  27. package/@types/themes/olive.css.d.ts +1 -1
  28. package/@types/themes/pamelaAnderson.css.d.ts +1 -1
  29. package/@types/themes/plum.css.d.ts +1 -1
  30. package/@types/themes/rainyDay.css.d.ts +1 -1
  31. package/@types/themes/rose.css.d.ts +1 -1
  32. package/@types/themes/slate.css.d.ts +1 -1
  33. package/@types/themes/spruce.css.d.ts +1 -1
  34. package/@types/themes/storm.css.d.ts +1 -1
  35. package/@types/themes/theSixtiesUSA.css.d.ts +1 -1
  36. package/@types/themes/tokyoDark.css.d.ts +1 -1
  37. package/@types/themes/tooSexy.css.d.ts +1 -1
  38. package/@types/themes/travel.css.d.ts +1 -1
  39. package/@types/themes/vaporTeal.css.d.ts +1 -1
  40. package/@types/themes/vermillion.css.d.ts +1 -1
  41. package/@types/themes/violetDark.css.d.ts +1 -1
  42. package/@types/themes/water.css.d.ts +1 -1
  43. package/@types/themes/win95.css.d.ts +1 -1
  44. package/cjs/Alert/Alert.css.js +8 -22
  45. package/cjs/Alert/Alert.css.ts.vanilla.css +15 -0
  46. package/cjs/Alert/Alert.js +33 -79
  47. package/cjs/Alert/assets/chord.mp3.js +3 -0
  48. package/cjs/Avatar/Avatar.css.js +7 -38
  49. package/cjs/Avatar/Avatar.css.ts.vanilla.css +24 -0
  50. package/cjs/Avatar/Avatar.js +25 -39
  51. package/cjs/Button/Button.css.js +4 -34
  52. package/cjs/Button/Button.css.ts.vanilla.css +31 -0
  53. package/cjs/Button/Button.js +19 -22
  54. package/cjs/Checkbox/Checkbox.css.js +10 -72
  55. package/cjs/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
  56. package/cjs/Checkbox/Checkbox.js +16 -36
  57. package/cjs/Cursor/Cursor.css.js +4 -136
  58. package/cjs/Cursor/Cursor.css.ts.vanilla.css +96 -0
  59. package/cjs/Dropdown/Dropdown.css.js +6 -55
  60. package/cjs/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
  61. package/cjs/Dropdown/Dropdown.js +19 -40
  62. package/cjs/Fieldset/Fieldset.css.js +6 -26
  63. package/cjs/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
  64. package/cjs/Fieldset/Fieldset.js +8 -28
  65. package/cjs/Frame/Frame.js +21 -37
  66. package/cjs/Frame/sprinkles.css.js +46 -72
  67. package/cjs/GlobalStyle/GlobalStyle.css.js +2 -129
  68. package/cjs/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
  69. package/cjs/GlobalStyle.js +4 -0
  70. package/cjs/Input/Input.css.js +4 -29
  71. package/cjs/Input/Input.css.ts.vanilla.css +21 -0
  72. package/cjs/Input/Input.js +25 -19
  73. package/cjs/List/List.css.js +8 -78
  74. package/cjs/List/List.css.ts.vanilla.css +66 -0
  75. package/cjs/List/List.js +14 -23
  76. package/cjs/List/ListDivider.js +18 -19
  77. package/cjs/List/ListItem.js +11 -34
  78. package/cjs/Modal/Modal.css.js +13 -75
  79. package/cjs/Modal/Modal.css.ts.vanilla.css +55 -0
  80. package/cjs/Modal/Modal.js +131 -155
  81. package/cjs/Modal/ModalContext.js +13 -15
  82. package/cjs/Modal/ModalProvider.js +60 -81
  83. package/cjs/Modal/close.svg.js +3 -0
  84. package/cjs/Modal/help.svg.js +3 -0
  85. package/cjs/ProgressBar/ProgressBar.css.js +10 -39
  86. package/cjs/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
  87. package/cjs/ProgressBar/ProgressBar.js +19 -38
  88. package/cjs/RadioButton/RadioButton.css.js +10 -54
  89. package/cjs/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
  90. package/cjs/RadioButton/RadioButton.js +16 -31
  91. package/cjs/Range/Range.css.js +4 -58
  92. package/cjs/Range/Range.css.ts.vanilla.css +84 -0
  93. package/cjs/Range/Range.js +35 -22
  94. package/cjs/Tabs/Tab.js +17 -28
  95. package/cjs/Tabs/Tabs.css.js +9 -55
  96. package/cjs/Tabs/Tabs.css.ts.vanilla.css +54 -0
  97. package/cjs/Tabs/Tabs.js +48 -63
  98. package/cjs/TaskBar/Clock.js +29 -45
  99. package/cjs/TaskBar/TaskBar.css.js +11 -81
  100. package/cjs/TaskBar/TaskBar.css.ts.vanilla.css +51 -0
  101. package/cjs/TaskBar/TaskBar.js +72 -91
  102. package/cjs/TaskBar/WindowButton.js +16 -33
  103. package/cjs/TextArea/TextArea.js +25 -19
  104. package/cjs/TitleBar/TitleBar.css.js +11 -77
  105. package/cjs/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
  106. package/cjs/TitleBar/TitleBar.js +44 -52
  107. package/cjs/Tooltip/Tooltip.css.js +6 -30
  108. package/cjs/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
  109. package/cjs/Tooltip/Tooltip.js +66 -54
  110. package/cjs/Tree/Node.js +116 -131
  111. package/cjs/Tree/Tree.css.js +17 -115
  112. package/cjs/Tree/Tree.css.ts.vanilla.css +90 -0
  113. package/cjs/Tree/Tree.js +12 -31
  114. package/cjs/Video/Video.css.js +21 -105
  115. package/cjs/Video/Video.css.ts.vanilla.css +83 -0
  116. package/cjs/Video/Video.js +207 -231
  117. package/cjs/Video/buttons/Fullscreen.js +33 -20
  118. package/cjs/Video/buttons/Pause.js +28 -18
  119. package/cjs/Video/buttons/Play.js +28 -18
  120. package/cjs/Video/buttons/Stop.js +28 -18
  121. package/cjs/index.js +49 -170
  122. package/cjs/themes/azureOrange.css.js +2 -41
  123. package/cjs/themes/azureOrange.css.ts.vanilla.css +58 -0
  124. package/cjs/themes/bee.css.js +2 -41
  125. package/cjs/themes/bee.css.ts.vanilla.css +58 -0
  126. package/cjs/themes/blackAndWhite.css.js +2 -41
  127. package/cjs/themes/blackAndWhite.css.ts.vanilla.css +58 -0
  128. package/cjs/themes/brick.css.js +2 -41
  129. package/cjs/themes/brick.css.ts.vanilla.css +58 -0
  130. package/cjs/themes/candy.css.js +2 -41
  131. package/cjs/themes/candy.css.ts.vanilla.css +58 -0
  132. package/cjs/themes/coldGray.css.js +2 -41
  133. package/cjs/themes/coldGray.css.ts.vanilla.css +58 -0
  134. package/cjs/themes/counterStrike.css.js +2 -41
  135. package/cjs/themes/counterStrike.css.ts.vanilla.css +58 -0
  136. package/cjs/themes/eggplant.css.js +2 -41
  137. package/cjs/themes/eggplant.css.ts.vanilla.css +58 -0
  138. package/cjs/themes/highContrast.css.js +2 -41
  139. package/cjs/themes/highContrast.css.ts.vanilla.css +58 -0
  140. package/cjs/themes/lilac.css.js +2 -41
  141. package/cjs/themes/lilac.css.ts.vanilla.css +58 -0
  142. package/cjs/themes/lilacRoseDark.css.js +2 -41
  143. package/cjs/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
  144. package/cjs/themes/maple.css.js +2 -41
  145. package/cjs/themes/maple.css.ts.vanilla.css +58 -0
  146. package/cjs/themes/marine.css.js +2 -41
  147. package/cjs/themes/marine.css.ts.vanilla.css +58 -0
  148. package/cjs/themes/matrix.css.js +2 -41
  149. package/cjs/themes/matrix.css.ts.vanilla.css +58 -0
  150. package/cjs/themes/millenium.css.js +2 -41
  151. package/cjs/themes/millenium.css.ts.vanilla.css +58 -0
  152. package/cjs/themes/modernDark.css.js +2 -41
  153. package/cjs/themes/modernDark.css.ts.vanilla.css +58 -0
  154. package/cjs/themes/molecule.css.js +2 -41
  155. package/cjs/themes/molecule.css.ts.vanilla.css +58 -0
  156. package/cjs/themes/ninjaTurtles.css.js +2 -41
  157. package/cjs/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
  158. package/cjs/themes/olive.css.js +2 -41
  159. package/cjs/themes/olive.css.ts.vanilla.css +58 -0
  160. package/cjs/themes/pamelaAnderson.css.js +2 -41
  161. package/cjs/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
  162. package/cjs/themes/plum.css.js +2 -41
  163. package/cjs/themes/plum.css.ts.vanilla.css +58 -0
  164. package/cjs/themes/rainyDay.css.js +2 -41
  165. package/cjs/themes/rainyDay.css.ts.vanilla.css +58 -0
  166. package/cjs/themes/rose.css.js +2 -41
  167. package/cjs/themes/rose.css.ts.vanilla.css +58 -0
  168. package/cjs/themes/slate.css.js +2 -41
  169. package/cjs/themes/slate.css.ts.vanilla.css +58 -0
  170. package/cjs/themes/sprinkles.css.ts.vanilla.css +399 -0
  171. package/cjs/themes/spruce.css.js +2 -41
  172. package/cjs/themes/spruce.css.ts.vanilla.css +58 -0
  173. package/cjs/themes/storm.css.js +2 -41
  174. package/cjs/themes/storm.css.ts.vanilla.css +58 -0
  175. package/cjs/themes/theSixtiesUSA.css.js +2 -41
  176. package/cjs/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
  177. package/cjs/themes/tokyoDark.css.js +2 -41
  178. package/cjs/themes/tokyoDark.css.ts.vanilla.css +58 -0
  179. package/cjs/themes/tooSexy.css.js +2 -41
  180. package/cjs/themes/tooSexy.css.ts.vanilla.css +58 -0
  181. package/cjs/themes/travel.css.js +2 -41
  182. package/cjs/themes/travel.css.ts.vanilla.css +58 -0
  183. package/cjs/themes/vaporTeal.css.js +2 -41
  184. package/cjs/themes/vaporTeal.css.ts.vanilla.css +58 -0
  185. package/cjs/themes/vermillion.css.js +2 -41
  186. package/cjs/themes/vermillion.css.ts.vanilla.css +58 -0
  187. package/cjs/themes/violetDark.css.js +2 -41
  188. package/cjs/themes/violetDark.css.ts.vanilla.css +58 -0
  189. package/cjs/themes/water.css.js +2 -41
  190. package/cjs/themes/water.css.ts.vanilla.css +58 -0
  191. package/cjs/themes/win95.css.js +2 -41
  192. package/cjs/themes/win95.css.ts.vanilla.css +58 -0
  193. package/cjs/themes.js +72 -0
  194. package/esm/Alert/Alert.css.js +9 -17
  195. package/esm/Alert/Alert.css.ts.vanilla.css +15 -0
  196. package/esm/Alert/Alert.js +34 -71
  197. package/esm/Alert/assets/chord.mp3.js +4 -0
  198. package/esm/Avatar/Avatar.css.js +8 -33
  199. package/esm/Avatar/Avatar.css.ts.vanilla.css +24 -0
  200. package/esm/Avatar/Avatar.js +9 -30
  201. package/esm/Button/Button.css.js +5 -29
  202. package/esm/Button/Button.css.ts.vanilla.css +31 -0
  203. package/esm/Button/Button.js +20 -13
  204. package/esm/Checkbox/Checkbox.css.js +11 -66
  205. package/esm/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
  206. package/esm/Checkbox/Checkbox.js +17 -28
  207. package/esm/Cursor/Cursor.css.js +5 -130
  208. package/esm/Cursor/Cursor.css.ts.vanilla.css +96 -0
  209. package/esm/Dropdown/Dropdown.css.js +7 -49
  210. package/esm/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
  211. package/esm/Dropdown/Dropdown.js +20 -31
  212. package/esm/Fieldset/Fieldset.css.js +7 -21
  213. package/esm/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
  214. package/esm/Fieldset/Fieldset.js +9 -20
  215. package/esm/Frame/Frame.js +22 -29
  216. package/esm/Frame/sprinkles.css.js +47 -67
  217. package/esm/GlobalStyle/GlobalStyle.css.js +2 -123
  218. package/esm/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
  219. package/esm/GlobalStyle.js +4 -0
  220. package/esm/Input/Input.css.js +5 -24
  221. package/esm/Input/Input.css.ts.vanilla.css +21 -0
  222. package/esm/Input/Input.js +9 -11
  223. package/esm/List/List.css.js +9 -72
  224. package/esm/List/List.css.ts.vanilla.css +66 -0
  225. package/esm/List/List.js +15 -17
  226. package/esm/List/ListDivider.js +19 -13
  227. package/esm/List/ListItem.js +12 -25
  228. package/esm/Modal/Modal.css.js +14 -70
  229. package/esm/Modal/Modal.css.ts.vanilla.css +55 -0
  230. package/esm/Modal/Modal.js +115 -146
  231. package/esm/Modal/ModalContext.js +14 -9
  232. package/esm/Modal/ModalProvider.js +44 -74
  233. package/esm/Modal/close.svg.js +4 -0
  234. package/esm/Modal/help.svg.js +4 -0
  235. package/esm/ProgressBar/ProgressBar.css.js +11 -34
  236. package/esm/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
  237. package/esm/ProgressBar/ProgressBar.js +20 -29
  238. package/esm/RadioButton/RadioButton.css.js +11 -49
  239. package/esm/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
  240. package/esm/RadioButton/RadioButton.js +17 -23
  241. package/esm/Range/Range.css.js +4 -52
  242. package/esm/Range/Range.css.ts.vanilla.css +84 -0
  243. package/esm/Range/Range.js +19 -13
  244. package/esm/Tabs/Tab.js +18 -19
  245. package/esm/Tabs/Tabs.css.js +10 -50
  246. package/esm/Tabs/Tabs.css.ts.vanilla.css +54 -0
  247. package/esm/Tabs/Tabs.js +49 -54
  248. package/esm/TaskBar/Clock.js +30 -36
  249. package/esm/TaskBar/TaskBar.css.js +12 -76
  250. package/esm/TaskBar/TaskBar.css.ts.vanilla.css +51 -0
  251. package/esm/TaskBar/TaskBar.js +73 -82
  252. package/esm/TaskBar/WindowButton.js +17 -25
  253. package/esm/TextArea/TextArea.js +9 -11
  254. package/esm/TitleBar/TitleBar.css.js +12 -72
  255. package/esm/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
  256. package/esm/TitleBar/TitleBar.js +44 -42
  257. package/esm/Tooltip/Tooltip.css.js +7 -25
  258. package/esm/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
  259. package/esm/Tooltip/Tooltip.js +50 -45
  260. package/esm/Tree/Node.js +92 -114
  261. package/esm/Tree/Tree.css.js +17 -109
  262. package/esm/Tree/Tree.css.ts.vanilla.css +90 -0
  263. package/esm/Tree/Tree.js +13 -23
  264. package/esm/Video/Video.css.js +22 -100
  265. package/esm/Video/Video.css.ts.vanilla.css +83 -0
  266. package/esm/Video/Video.js +191 -222
  267. package/esm/Video/buttons/Fullscreen.js +17 -11
  268. package/esm/Video/buttons/Pause.js +12 -9
  269. package/esm/Video/buttons/Play.js +12 -9
  270. package/esm/Video/buttons/Stop.js +12 -9
  271. package/esm/index.js +50 -23
  272. package/esm/themes/azureOrange.css.js +2 -36
  273. package/esm/themes/azureOrange.css.ts.vanilla.css +58 -0
  274. package/esm/themes/bee.css.js +2 -36
  275. package/esm/themes/bee.css.ts.vanilla.css +58 -0
  276. package/esm/themes/blackAndWhite.css.js +2 -36
  277. package/esm/themes/blackAndWhite.css.ts.vanilla.css +58 -0
  278. package/esm/themes/brick.css.js +2 -36
  279. package/esm/themes/brick.css.ts.vanilla.css +58 -0
  280. package/esm/themes/candy.css.js +2 -36
  281. package/esm/themes/candy.css.ts.vanilla.css +58 -0
  282. package/esm/themes/coldGray.css.js +2 -36
  283. package/esm/themes/coldGray.css.ts.vanilla.css +58 -0
  284. package/esm/themes/counterStrike.css.js +2 -36
  285. package/esm/themes/counterStrike.css.ts.vanilla.css +58 -0
  286. package/esm/themes/eggplant.css.js +2 -36
  287. package/esm/themes/eggplant.css.ts.vanilla.css +58 -0
  288. package/esm/themes/highContrast.css.js +2 -36
  289. package/esm/themes/highContrast.css.ts.vanilla.css +58 -0
  290. package/esm/themes/lilac.css.js +2 -36
  291. package/esm/themes/lilac.css.ts.vanilla.css +58 -0
  292. package/esm/themes/lilacRoseDark.css.js +2 -36
  293. package/esm/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
  294. package/esm/themes/maple.css.js +2 -36
  295. package/esm/themes/maple.css.ts.vanilla.css +58 -0
  296. package/esm/themes/marine.css.js +2 -36
  297. package/esm/themes/marine.css.ts.vanilla.css +58 -0
  298. package/esm/themes/matrix.css.js +2 -36
  299. package/esm/themes/matrix.css.ts.vanilla.css +58 -0
  300. package/esm/themes/millenium.css.js +2 -36
  301. package/esm/themes/millenium.css.ts.vanilla.css +58 -0
  302. package/esm/themes/modernDark.css.js +2 -36
  303. package/esm/themes/modernDark.css.ts.vanilla.css +58 -0
  304. package/esm/themes/molecule.css.js +2 -36
  305. package/esm/themes/molecule.css.ts.vanilla.css +58 -0
  306. package/esm/themes/ninjaTurtles.css.js +2 -36
  307. package/esm/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
  308. package/esm/themes/olive.css.js +2 -36
  309. package/esm/themes/olive.css.ts.vanilla.css +58 -0
  310. package/esm/themes/pamelaAnderson.css.js +2 -36
  311. package/esm/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
  312. package/esm/themes/plum.css.js +2 -36
  313. package/esm/themes/plum.css.ts.vanilla.css +58 -0
  314. package/esm/themes/rainyDay.css.js +2 -36
  315. package/esm/themes/rainyDay.css.ts.vanilla.css +58 -0
  316. package/esm/themes/rose.css.js +2 -36
  317. package/esm/themes/rose.css.ts.vanilla.css +58 -0
  318. package/esm/themes/slate.css.js +2 -36
  319. package/esm/themes/slate.css.ts.vanilla.css +58 -0
  320. package/esm/themes/sprinkles.css.ts.vanilla.css +399 -0
  321. package/esm/themes/spruce.css.js +2 -36
  322. package/esm/themes/spruce.css.ts.vanilla.css +58 -0
  323. package/esm/themes/storm.css.js +2 -36
  324. package/esm/themes/storm.css.ts.vanilla.css +58 -0
  325. package/esm/themes/theSixtiesUSA.css.js +2 -36
  326. package/esm/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
  327. package/esm/themes/tokyoDark.css.js +2 -36
  328. package/esm/themes/tokyoDark.css.ts.vanilla.css +58 -0
  329. package/esm/themes/tooSexy.css.js +2 -36
  330. package/esm/themes/tooSexy.css.ts.vanilla.css +58 -0
  331. package/esm/themes/travel.css.js +2 -36
  332. package/esm/themes/travel.css.ts.vanilla.css +58 -0
  333. package/esm/themes/vaporTeal.css.js +2 -36
  334. package/esm/themes/vaporTeal.css.ts.vanilla.css +58 -0
  335. package/esm/themes/vermillion.css.js +2 -36
  336. package/esm/themes/vermillion.css.ts.vanilla.css +58 -0
  337. package/esm/themes/violetDark.css.js +2 -36
  338. package/esm/themes/violetDark.css.ts.vanilla.css +58 -0
  339. package/esm/themes/water.css.js +2 -36
  340. package/esm/themes/water.css.ts.vanilla.css +58 -0
  341. package/esm/themes/win95.css.js +2 -36
  342. package/esm/themes/win95.css.ts.vanilla.css +58 -0
  343. package/esm/themes.js +72 -0
  344. package/package.json +20 -2
  345. package/@types/Alert/index.d.ts +0 -2
  346. package/@types/Avatar/index.d.ts +0 -2
  347. package/@types/Button/index.d.ts +0 -2
  348. package/@types/Checkbox/index.d.ts +0 -2
  349. package/@types/Cursor/index.d.ts +0 -2
  350. package/@types/Dropdown/index.d.ts +0 -2
  351. package/@types/Fieldset/index.d.ts +0 -2
  352. package/@types/Frame/index.d.ts +0 -2
  353. package/@types/GlobalStyle/utils.d.ts +0 -15
  354. package/@types/Input/index.d.ts +0 -2
  355. package/@types/List/index.d.ts +0 -2
  356. package/@types/Modal/index.d.ts +0 -4
  357. package/@types/ProgressBar/index.d.ts +0 -2
  358. package/@types/RadioButton/index.d.ts +0 -2
  359. package/@types/Range/index.d.ts +0 -2
  360. package/@types/Tabs/index.d.ts +0 -3
  361. package/@types/TaskBar/index.d.ts +0 -2
  362. package/@types/TextArea/index.d.ts +0 -2
  363. package/@types/TitleBar/index.d.ts +0 -2
  364. package/@types/Tooltip/index.d.ts +0 -2
  365. package/@types/Tree/index.d.ts +0 -2
  366. package/@types/Video/index.d.ts +0 -2
  367. package/@types/shared/test/utils.d.ts +0 -4
  368. package/cjs/Alert/assets/chord.mp3 +0 -0
  369. package/cjs/Alert/index.js +0 -8
  370. package/cjs/Avatar/index.js +0 -8
  371. package/cjs/Button/index.js +0 -8
  372. package/cjs/Checkbox/imgs/check-disabled.svg +0 -1
  373. package/cjs/Checkbox/imgs/check.svg +0 -1
  374. package/cjs/Checkbox/index.js +0 -8
  375. package/cjs/Cursor/cursors/AngleUpLeft.png +0 -0
  376. package/cjs/Cursor/cursors/AngleUpRight.png +0 -0
  377. package/cjs/Cursor/cursors/AppStarting.png +0 -0
  378. package/cjs/Cursor/cursors/Arrow.png +0 -0
  379. package/cjs/Cursor/cursors/ArrowRight.png +0 -0
  380. package/cjs/Cursor/cursors/Circle.png +0 -0
  381. package/cjs/Cursor/cursors/ColRezise.png +0 -0
  382. package/cjs/Cursor/cursors/Copy.png +0 -0
  383. package/cjs/Cursor/cursors/Cross.png +0 -0
  384. package/cjs/Cursor/cursors/Crosshair.png +0 -0
  385. package/cjs/Cursor/cursors/DND-ask.png +0 -0
  386. package/cjs/Cursor/cursors/DND-copy.png +0 -0
  387. package/cjs/Cursor/cursors/DND-link.png +0 -0
  388. package/cjs/Cursor/cursors/DownArrow.png +0 -0
  389. package/cjs/Cursor/cursors/DownLeftArrow.png +0 -0
  390. package/cjs/Cursor/cursors/DownRightArrow.png +0 -0
  391. package/cjs/Cursor/cursors/Hand.png +0 -0
  392. package/cjs/Cursor/cursors/HandPointer.png +0 -0
  393. package/cjs/Cursor/cursors/Handsqueezed.png +0 -0
  394. package/cjs/Cursor/cursors/Handwriting.png +0 -0
  395. package/cjs/Cursor/cursors/Help.png +0 -0
  396. package/cjs/Cursor/cursors/LeftArrow.png +0 -0
  397. package/cjs/Cursor/cursors/LeftRight.png +0 -0
  398. package/cjs/Cursor/cursors/LeftRightArrow.png +0 -0
  399. package/cjs/Cursor/cursors/Link.png +0 -0
  400. package/cjs/Cursor/cursors/Move.png +0 -0
  401. package/cjs/Cursor/cursors/NO.png +0 -0
  402. package/cjs/Cursor/cursors/RightArrow.png +0 -0
  403. package/cjs/Cursor/cursors/RowResize.png +0 -0
  404. package/cjs/Cursor/cursors/SizeAll.png +0 -0
  405. package/cjs/Cursor/cursors/Text.png +0 -0
  406. package/cjs/Cursor/cursors/UpArrow.png +0 -0
  407. package/cjs/Cursor/cursors/UpDownArrow.png +0 -0
  408. package/cjs/Cursor/cursors/UpLeftArrow.png +0 -0
  409. package/cjs/Cursor/cursors/UpRightArrow.png +0 -0
  410. package/cjs/Cursor/cursors/VText.png +0 -0
  411. package/cjs/Cursor/cursors/Wait.png +0 -0
  412. package/cjs/Cursor/cursors/X.png +0 -0
  413. package/cjs/Cursor/cursors/ZoomIn.png +0 -0
  414. package/cjs/Cursor/cursors/ZoomOut.png +0 -0
  415. package/cjs/Cursor/index.js +0 -8
  416. package/cjs/Dropdown/imgs/downcaret.png +0 -0
  417. package/cjs/Dropdown/imgs/downcaret.svg +0 -1
  418. package/cjs/Dropdown/index.js +0 -8
  419. package/cjs/Fieldset/index.js +0 -8
  420. package/cjs/Frame/index.js +0 -8
  421. package/cjs/Frame/props.js +0 -162
  422. package/cjs/GlobalStyle/font/MS-Sans-Serif-8pt-bold.ttf +0 -0
  423. package/cjs/GlobalStyle/font/MS-Sans-Serif-8pt.ttf +0 -0
  424. package/cjs/GlobalStyle/font/React95Video-Numbers.eot +0 -0
  425. package/cjs/GlobalStyle/font/React95Video-Numbers.ttf +0 -0
  426. package/cjs/GlobalStyle/font/React95Video-Numbers.woff +0 -0
  427. package/cjs/GlobalStyle/font/React95Video-Numbers.woff2 +0 -0
  428. package/cjs/GlobalStyle/imgs/downcaret.svg +0 -1
  429. package/cjs/GlobalStyle/imgs/dropdown.png +0 -0
  430. package/cjs/GlobalStyle/imgs/leftcaret.svg +0 -1
  431. package/cjs/GlobalStyle/imgs/rightcaret.svg +0 -1
  432. package/cjs/GlobalStyle/imgs/upcaret.svg +0 -1
  433. package/cjs/GlobalStyle/utils.js +0 -23
  434. package/cjs/Input/index.js +0 -8
  435. package/cjs/List/index.js +0 -8
  436. package/cjs/Modal/close.svg +0 -1
  437. package/cjs/Modal/help.svg +0 -1
  438. package/cjs/Modal/index.js +0 -27
  439. package/cjs/Modal/maximize.svg +0 -1
  440. package/cjs/Modal/minimize.svg +0 -1
  441. package/cjs/Modal/restore.svg +0 -1
  442. package/cjs/ProgressBar/index.js +0 -8
  443. package/cjs/RadioButton/imgs/radio-checked-disabled.png +0 -0
  444. package/cjs/RadioButton/imgs/radio-checked.png +0 -0
  445. package/cjs/RadioButton/imgs/radio-unchecked-disabled.png +0 -0
  446. package/cjs/RadioButton/imgs/radio-unchecked.png +0 -0
  447. package/cjs/RadioButton/index.js +0 -8
  448. package/cjs/RadioButton/radioButtonStates.js +0 -34
  449. package/cjs/Range/index.js +0 -8
  450. package/cjs/Tabs/index.js +0 -19
  451. package/cjs/TaskBar/index.js +0 -8
  452. package/cjs/TextArea/index.js +0 -8
  453. package/cjs/TitleBar/index.js +0 -8
  454. package/cjs/Tooltip/index.js +0 -8
  455. package/cjs/Tree/index.js +0 -8
  456. package/cjs/Video/buttons/index.js +0 -34
  457. package/cjs/Video/index.js +0 -8
  458. package/cjs/shared/test/utils.js +0 -74
  459. package/cjs/themes/all.js +0 -250
  460. package/cjs/themes/baseTheme.css.js +0 -69
  461. package/cjs/themes/contract.css.js +0 -21
  462. package/esm/Alert/assets/chord.mp3 +0 -0
  463. package/esm/Alert/index.js +0 -2
  464. package/esm/Avatar/index.js +0 -2
  465. package/esm/Button/index.js +0 -2
  466. package/esm/Checkbox/imgs/check-disabled.svg +0 -1
  467. package/esm/Checkbox/imgs/check.svg +0 -1
  468. package/esm/Checkbox/index.js +0 -2
  469. package/esm/Cursor/cursors/AngleUpLeft.png +0 -0
  470. package/esm/Cursor/cursors/AngleUpRight.png +0 -0
  471. package/esm/Cursor/cursors/AppStarting.png +0 -0
  472. package/esm/Cursor/cursors/Arrow.png +0 -0
  473. package/esm/Cursor/cursors/ArrowRight.png +0 -0
  474. package/esm/Cursor/cursors/Circle.png +0 -0
  475. package/esm/Cursor/cursors/ColRezise.png +0 -0
  476. package/esm/Cursor/cursors/Copy.png +0 -0
  477. package/esm/Cursor/cursors/Cross.png +0 -0
  478. package/esm/Cursor/cursors/Crosshair.png +0 -0
  479. package/esm/Cursor/cursors/DND-ask.png +0 -0
  480. package/esm/Cursor/cursors/DND-copy.png +0 -0
  481. package/esm/Cursor/cursors/DND-link.png +0 -0
  482. package/esm/Cursor/cursors/DownArrow.png +0 -0
  483. package/esm/Cursor/cursors/DownLeftArrow.png +0 -0
  484. package/esm/Cursor/cursors/DownRightArrow.png +0 -0
  485. package/esm/Cursor/cursors/Hand.png +0 -0
  486. package/esm/Cursor/cursors/HandPointer.png +0 -0
  487. package/esm/Cursor/cursors/Handsqueezed.png +0 -0
  488. package/esm/Cursor/cursors/Handwriting.png +0 -0
  489. package/esm/Cursor/cursors/Help.png +0 -0
  490. package/esm/Cursor/cursors/LeftArrow.png +0 -0
  491. package/esm/Cursor/cursors/LeftRight.png +0 -0
  492. package/esm/Cursor/cursors/LeftRightArrow.png +0 -0
  493. package/esm/Cursor/cursors/Link.png +0 -0
  494. package/esm/Cursor/cursors/Move.png +0 -0
  495. package/esm/Cursor/cursors/NO.png +0 -0
  496. package/esm/Cursor/cursors/RightArrow.png +0 -0
  497. package/esm/Cursor/cursors/RowResize.png +0 -0
  498. package/esm/Cursor/cursors/SizeAll.png +0 -0
  499. package/esm/Cursor/cursors/Text.png +0 -0
  500. package/esm/Cursor/cursors/UpArrow.png +0 -0
  501. package/esm/Cursor/cursors/UpDownArrow.png +0 -0
  502. package/esm/Cursor/cursors/UpLeftArrow.png +0 -0
  503. package/esm/Cursor/cursors/UpRightArrow.png +0 -0
  504. package/esm/Cursor/cursors/VText.png +0 -0
  505. package/esm/Cursor/cursors/Wait.png +0 -0
  506. package/esm/Cursor/cursors/X.png +0 -0
  507. package/esm/Cursor/cursors/ZoomIn.png +0 -0
  508. package/esm/Cursor/cursors/ZoomOut.png +0 -0
  509. package/esm/Cursor/index.js +0 -2
  510. package/esm/Dropdown/imgs/downcaret.png +0 -0
  511. package/esm/Dropdown/imgs/downcaret.svg +0 -1
  512. package/esm/Dropdown/index.js +0 -2
  513. package/esm/Fieldset/index.js +0 -2
  514. package/esm/Frame/index.js +0 -2
  515. package/esm/Frame/props.js +0 -156
  516. package/esm/GlobalStyle/font/MS-Sans-Serif-8pt-bold.ttf +0 -0
  517. package/esm/GlobalStyle/font/MS-Sans-Serif-8pt.ttf +0 -0
  518. package/esm/GlobalStyle/font/React95Video-Numbers.eot +0 -0
  519. package/esm/GlobalStyle/font/React95Video-Numbers.ttf +0 -0
  520. package/esm/GlobalStyle/font/React95Video-Numbers.woff +0 -0
  521. package/esm/GlobalStyle/font/React95Video-Numbers.woff2 +0 -0
  522. package/esm/GlobalStyle/imgs/downcaret.svg +0 -1
  523. package/esm/GlobalStyle/imgs/dropdown.png +0 -0
  524. package/esm/GlobalStyle/imgs/leftcaret.svg +0 -1
  525. package/esm/GlobalStyle/imgs/rightcaret.svg +0 -1
  526. package/esm/GlobalStyle/imgs/upcaret.svg +0 -1
  527. package/esm/GlobalStyle/utils.js +0 -17
  528. package/esm/Input/index.js +0 -2
  529. package/esm/List/index.js +0 -2
  530. package/esm/Modal/close.svg +0 -1
  531. package/esm/Modal/help.svg +0 -1
  532. package/esm/Modal/index.js +0 -4
  533. package/esm/Modal/maximize.svg +0 -1
  534. package/esm/Modal/minimize.svg +0 -1
  535. package/esm/Modal/restore.svg +0 -1
  536. package/esm/ProgressBar/index.js +0 -2
  537. package/esm/RadioButton/imgs/radio-checked-disabled.png +0 -0
  538. package/esm/RadioButton/imgs/radio-checked.png +0 -0
  539. package/esm/RadioButton/imgs/radio-unchecked-disabled.png +0 -0
  540. package/esm/RadioButton/imgs/radio-unchecked.png +0 -0
  541. package/esm/RadioButton/index.js +0 -2
  542. package/esm/RadioButton/radioButtonStates.js +0 -5
  543. package/esm/Range/index.js +0 -2
  544. package/esm/Tabs/index.js +0 -3
  545. package/esm/TaskBar/index.js +0 -2
  546. package/esm/TextArea/index.js +0 -2
  547. package/esm/TitleBar/index.js +0 -2
  548. package/esm/Tooltip/index.js +0 -2
  549. package/esm/Tree/index.js +0 -2
  550. package/esm/Video/buttons/index.js +0 -5
  551. package/esm/Video/index.js +0 -2
  552. package/esm/shared/test/utils.js +0 -49
  553. package/esm/themes/all.js +0 -36
  554. package/esm/themes/baseTheme.css.js +0 -63
  555. package/esm/themes/contract.css.js +0 -15
  556. /package/@types/{GlobalStyle/GlobalStyle.css.d.ts → shared/font-names.d.ts} +0 -0
  557. /package/@types/themes/{baseTheme.css.d.ts → baseTheme.d.ts} +0 -0
@@ -1,76 +1,12 @@
1
- import { globalStyle, style } from '@vanilla-extract/css';
2
- import { recipe } from '@vanilla-extract/recipes';
3
- import { contract } from '../themes/contract.css';
4
- import { calc } from '@vanilla-extract/css-utils';
5
- export var truncate = style({
6
- overflow: 'hidden',
7
- display: '-webkit-box',
8
- WebkitLineClamp: '1',
9
- WebkitBoxOrient: 'vertical',
10
- textAlign: 'left'
11
- });
12
- export var tooltip = style({});
13
- globalStyle("".concat(tooltip, " div:first-child"), {
14
- right: 0
15
- });
16
- export var windowsButton = recipe({
17
- base: {
18
- display: 'inline-flex',
19
- justifyContent: 'flex-start',
20
- alignItems: 'center',
21
- backgroundColor: contract.colors.material,
22
- paddingBlock: contract.space[2],
23
- paddingInline: contract.space[3],
24
- marginRight: contract.space[2],
25
- maxWidth: '150px',
26
- border: 'none',
27
- outline: 'none'
28
- },
29
- variants: {
30
- small: {
31
- "true": {
32
- paddingInline: contract.space[5]
33
- },
34
- "false": {
35
- width: '100%'
36
- }
37
- },
38
- active: {
39
- "true": {
40
- boxShadow: contract.shadows["in"]
41
- },
42
- "false": {
43
- boxShadow: contract.shadows.out
44
- }
45
- }
46
- },
47
- compoundVariants: [{
48
- variants: {
49
- active: true,
50
- small: true
51
- },
52
- style: {
53
- paddingTop: contract.space[4],
54
- paddingBottom: contract.space[0],
55
- outline: "".concat(contract.space[1], " dotted ").concat(contract.colors.borderDarkest),
56
- outlineOffset: calc.negate(contract.space[4])
57
- }
58
- }, {
59
- variants: {
60
- active: true,
61
- small: false
62
- },
63
- style: {
64
- backgroundColor: contract.colors.borderLighter
65
- }
66
- }]
67
- });
68
- export var icon = style({});
69
- globalStyle("".concat(icon, " svg"), {
70
- marginTop: contract.space[4],
71
- marginRight: contract.space[4],
72
- minWidth: contract.space[2],
73
- width: contract.space[20],
74
- height: contract.space[20],
75
- shapeRendering: 'auto'
76
- });
1
+ import './TaskBar.css.ts.vanilla.css';
2
+ /* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
+ var icon = "r95_1ct83mo9";
4
+ var tooltip = "r95_1ct83mo1";
5
+ var truncate = "r95_1ct83mo0";
6
+ var windowsButton = createRuntimeFn({ defaultClassName: "r95_1ct83mo2", variantClassNames: { small: { true: "r95_1ct83mo3", false: "r95_1ct83mo4" }, active: { true: "r95_1ct83mo5", false: "r95_1ct83mo6" } }, defaultVariants: {}, compoundVariants: [[{ active: true, small: true }, "r95_1ct83mo7"], [{ active: true, small: false }, "r95_1ct83mo8"]] });
7
+ export {
8
+ icon,
9
+ tooltip,
10
+ truncate,
11
+ windowsButton
12
+ };
@@ -0,0 +1,51 @@
1
+ .r95_1ct83mo0 {
2
+ overflow: hidden;
3
+ display: -webkit-box;
4
+ -webkit-line-clamp: 1;
5
+ -webkit-box-orient: vertical;
6
+ text-align: left;
7
+ }
8
+ .r95_1ct83mo1 div:first-child {
9
+ right: 0;
10
+ }
11
+ .r95_1ct83mo2 {
12
+ display: inline-flex;
13
+ justify-content: flex-start;
14
+ align-items: center;
15
+ background-color: var(--r95-color-material);
16
+ padding-block: var(--r95-space-2);
17
+ padding-inline: var(--r95-space-3);
18
+ margin-right: var(--r95-space-2);
19
+ max-width: 150px;
20
+ border: none;
21
+ outline: none;
22
+ }
23
+ .r95_1ct83mo3 {
24
+ padding-inline: var(--r95-space-5);
25
+ }
26
+ .r95_1ct83mo4 {
27
+ width: 100%;
28
+ }
29
+ .r95_1ct83mo5 {
30
+ box-shadow: var(--r95-shadow-in);
31
+ }
32
+ .r95_1ct83mo6 {
33
+ box-shadow: var(--r95-shadow-out);
34
+ }
35
+ .r95_1ct83mo7 {
36
+ padding-top: var(--r95-space-4);
37
+ padding-bottom: var(--r95-space-0);
38
+ outline: var(--r95-space-1) dotted var(--r95-color-borderDarkest);
39
+ outline-offset: calc(var(--r95-space-4) * -1);
40
+ }
41
+ .r95_1ct83mo8 {
42
+ background-color: var(--r95-color-borderLighter);
43
+ }
44
+ .r95_1ct83mo9 svg {
45
+ margin-top: var(--r95-space-4);
46
+ margin-right: var(--r95-space-4);
47
+ min-width: var(--r95-space-2);
48
+ width: var(--r95-space-20);
49
+ height: var(--r95-space-20);
50
+ shape-rendering: auto;
51
+ }
@@ -1,83 +1,74 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React, { forwardRef, useContext, useState } from 'react';
8
- import { ModalContext } from '../Modal';
9
- import Frame from '../Frame';
10
- import { Clock } from './Clock';
11
- import { WindowButton } from './WindowButton';
12
- import { Logo } from '@react95/icons';
13
- import { truncate } from './TaskBar.css';
14
- export var TaskBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
15
- var list = _ref.list;
16
- var _useState = useState(false),
17
- _useState2 = _slicedToArray(_useState, 2),
18
- showList = _useState2[0],
19
- toggleShowList = _useState2[1];
20
- var _useState3 = useState(false),
21
- _useState4 = _slicedToArray(_useState3, 2),
22
- activeStart = _useState4[0],
23
- toggleActiveStart = _useState4[1];
24
- var _useContext = useContext(ModalContext),
25
- windows = _useContext.windows,
26
- activeWindow = _useContext.activeWindow,
27
- setActiveWindow = _useContext.setActiveWindow;
28
- return /*#__PURE__*/React.createElement(Frame, {
29
- position: "fixed",
30
- bottom: "0px",
31
- left: "0px",
32
- right: "0px",
33
- display: "flex",
34
- justifyContent: "space-between",
35
- h: "28px",
36
- w: "100%",
37
- padding: "$2",
38
- zIndex: "$taskbar",
39
- backgroundColor: "$material",
40
- boxShadow: "$out",
41
- ref: ref
42
- }, showList && /*#__PURE__*/React.createElement(Frame, {
43
- position: "absolute",
44
- bottom: "28px",
45
- onClick: function onClick() {
46
- toggleActiveStart(false);
47
- toggleShowList(false);
48
- }
49
- }, list), /*#__PURE__*/React.createElement(WindowButton, {
50
- small: true,
51
- icon: /*#__PURE__*/React.createElement(Logo, {
52
- variant: "32x32_4"
53
- }),
54
- active: activeStart,
55
- onClick: function onClick() {
56
- toggleActiveStart(!activeStart);
57
- toggleShowList(!showList);
58
- }
59
- }, "Start"), /*#__PURE__*/React.createElement(Frame, {
60
- w: "100%",
61
- paddingLeft: "$0",
62
- ml: "$2",
63
- display: "flex"
64
- }, Object.entries(windows).map(function (_ref2) {
65
- var _ref3 = _slicedToArray(_ref2, 2),
66
- windowId = _ref3[0],
67
- _ref3$ = _ref3[1],
68
- icon = _ref3$.icon,
69
- title = _ref3$.title,
70
- hasButton = _ref3$.hasButton;
71
- return hasButton && /*#__PURE__*/React.createElement(WindowButton, {
72
- key: windowId,
73
- icon: icon,
74
- active: windowId === activeWindow,
75
- onClick: function onClick() {
76
- return setActiveWindow(windowId);
1
+ import React__default, { forwardRef, useState, useContext } from "react";
2
+ import { ModalContext } from "../Modal/ModalContext.js";
3
+ import { Frame } from "../Frame/Frame.js";
4
+ import { Clock } from "./Clock.js";
5
+ import { WindowButton } from "./WindowButton.js";
6
+ import { Logo } from "@react95/icons";
7
+ import { truncate } from "./TaskBar.css.js";
8
+ const TaskBar = forwardRef(
9
+ ({ list }, ref) => {
10
+ const [showList, toggleShowList] = useState(false);
11
+ const [activeStart, toggleActiveStart] = useState(false);
12
+ const { windows, activeWindow, setActiveWindow } = useContext(ModalContext);
13
+ return /* @__PURE__ */ React__default.createElement(
14
+ Frame,
15
+ {
16
+ position: "fixed",
17
+ bottom: "0px",
18
+ left: "0px",
19
+ right: "0px",
20
+ display: "flex",
21
+ justifyContent: "space-between",
22
+ h: "28px",
23
+ w: "100%",
24
+ padding: "$2",
25
+ zIndex: "$taskbar",
26
+ backgroundColor: "$material",
27
+ boxShadow: "$out",
28
+ ref
77
29
  },
78
- small: false
79
- }, /*#__PURE__*/React.createElement("div", {
80
- className: truncate
81
- }, title));
82
- })), /*#__PURE__*/React.createElement(Clock, null));
83
- });
30
+ showList && /* @__PURE__ */ React__default.createElement(
31
+ Frame,
32
+ {
33
+ position: "absolute",
34
+ bottom: "28px",
35
+ onClick: () => {
36
+ toggleActiveStart(false);
37
+ toggleShowList(false);
38
+ }
39
+ },
40
+ list
41
+ ),
42
+ /* @__PURE__ */ React__default.createElement(
43
+ WindowButton,
44
+ {
45
+ small: true,
46
+ icon: /* @__PURE__ */ React__default.createElement(Logo, { variant: "32x32_4" }),
47
+ active: activeStart,
48
+ onClick: () => {
49
+ toggleActiveStart(!activeStart);
50
+ toggleShowList(!showList);
51
+ }
52
+ },
53
+ "Start"
54
+ ),
55
+ /* @__PURE__ */ React__default.createElement(Frame, { w: "100%", paddingLeft: "$0", ml: "$2", display: "flex" }, Object.entries(windows).map(
56
+ ([windowId, { icon, title, hasButton }]) => hasButton && /* @__PURE__ */ React__default.createElement(
57
+ WindowButton,
58
+ {
59
+ key: windowId,
60
+ icon,
61
+ active: windowId === activeWindow,
62
+ onClick: () => setActiveWindow(windowId),
63
+ small: false
64
+ },
65
+ /* @__PURE__ */ React__default.createElement("div", { className: truncate }, title)
66
+ )
67
+ )),
68
+ /* @__PURE__ */ React__default.createElement(Clock, null)
69
+ );
70
+ }
71
+ );
72
+ export {
73
+ TaskBar
74
+ };
@@ -1,25 +1,17 @@
1
- var _excluded = ["children", "small", "icon", "active"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
- import React, { forwardRef } from 'react';
6
- import * as styles from './TaskBar.css';
7
- export var WindowButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
8
- var children = _ref.children,
9
- _ref$small = _ref.small,
10
- small = _ref$small === void 0 ? false : _ref$small,
11
- icon = _ref.icon,
12
- _ref$active = _ref.active,
13
- active = _ref$active === void 0 ? false : _ref$active,
14
- props = _objectWithoutProperties(_ref, _excluded);
15
- return /*#__PURE__*/React.createElement("button", _extends({
16
- className: styles.windowsButton({
17
- active: active,
18
- small: small
19
- })
20
- }, props, {
21
- ref: ref
22
- }), /*#__PURE__*/React.createElement("div", {
23
- className: styles.icon
24
- }, icon), children);
25
- });
1
+ import React__default, { forwardRef } from "react";
2
+ import { windowsButton, icon } from "./TaskBar.css.js";
3
+ const WindowButton = forwardRef(
4
+ ({ children, small = false, icon: icon$1, active = false, ...props }, ref) => /* @__PURE__ */ React__default.createElement(
5
+ "button",
6
+ {
7
+ className: windowsButton({ active, small }),
8
+ ...props,
9
+ ref
10
+ },
11
+ /* @__PURE__ */ React__default.createElement("div", { className: icon }, icon$1),
12
+ children
13
+ )
14
+ );
15
+ export {
16
+ WindowButton
17
+ };
@@ -1,11 +1,9 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import * as React from 'react';
3
- import { Frame } from '../Frame/Frame';
4
- import { input as textarea } from '../Input/Input.css';
5
- export var TextArea = /*#__PURE__*/React.forwardRef(function (rest, ref) {
6
- return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
7
- ref: ref,
8
- className: textarea,
9
- as: "textarea"
10
- }));
11
- });
1
+ import * as React from "react";
2
+ import { Frame } from "../Frame/Frame.js";
3
+ import { input } from "../Input/Input.css.js";
4
+ const TextArea = React.forwardRef(
5
+ (rest, ref) => /* @__PURE__ */ React.createElement(Frame, { ...rest, ref, className: input, as: "textarea" })
6
+ );
7
+ export {
8
+ TextArea
9
+ };
@@ -1,72 +1,12 @@
1
- import { globalStyle, style } from '@vanilla-extract/css';
2
- import { contract } from '../themes/contract.css';
3
- import { recipe } from '@vanilla-extract/recipes';
4
- export var optionsBox = style({
5
- listStyle: 'none',
6
- padding: 0,
7
- margin: 0,
8
- display: 'flex'
9
- });
10
- export var option = style({
11
- display: 'flex',
12
- alignItems: 'center',
13
- justifyContent: 'center',
14
- marginLeft: contract.space[2],
15
- padding: contract.space[0],
16
- width: contract.space[17],
17
- height: contract.space[14],
18
- minWidth: contract.space[0],
19
- fontWeight: 600,
20
- fontSize: 10,
21
- selectors: {
22
- '&:active': {
23
- paddingTop: contract.space[1],
24
- paddingRight: contract.space[0],
25
- paddingBottom: contract.space[0],
26
- paddingLeft: contract.space[1],
27
- outline: 'none'
28
- },
29
- '&:first-child': {
30
- marginRight: contract.space[0]
31
- },
32
- '&:focus': {
33
- boxShadow: "inset 1px 1px 0px 1px ".concat(contract.colors.borderLightest, ",\n inset -1px -1px 0px 1px ").concat(contract.colors.borderDark)
34
- }
35
- }
36
- });
37
- export var titleBarBackground = recipe({
38
- base: {
39
- height: contract.space[20],
40
- marginBottom: contract.space[2],
41
- padding: contract.space[2],
42
- display: 'flex',
43
- boxShadow: 'none',
44
- userSelect: 'none'
45
- },
46
- variants: {
47
- active: {
48
- "true": {
49
- background: contract.colors.headerBackground,
50
- color: contract.colors.headerText
51
- },
52
- "false": {
53
- background: contract.colors.headerNotActiveBackground,
54
- color: contract.colors.headerNotActiveText
55
- }
56
- }
57
- }
58
- });
59
- globalStyle("".concat(titleBarBackground.classNames.base, " svg"), {
60
- width: contract.space[16],
61
- height: contract.space[16],
62
- marginRight: contract.space[4]
63
- });
64
- export var title = style({
65
- flexGrow: 1,
66
- lineHeight: '1.4em',
67
- margin: '0',
68
- fontSize: '1em',
69
- textShadow: '0.5px 0px white, 1.5px 0px white',
70
- color: 'transparent',
71
- letterSpacing: '1px'
72
- });
1
+ import './TitleBar.css.ts.vanilla.css';
2
+ /* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
+ var option = "r95_1kpzw681";
4
+ var optionsBox = "r95_1kpzw680";
5
+ var title = "r95_1kpzw685";
6
+ var titleBarBackground = createRuntimeFn({ defaultClassName: "r95_1kpzw682", variantClassNames: { active: { true: "r95_1kpzw683", false: "r95_1kpzw684" } }, defaultVariants: {}, compoundVariants: [] });
7
+ export {
8
+ option,
9
+ optionsBox,
10
+ title,
11
+ titleBarBackground
12
+ };
@@ -0,0 +1,62 @@
1
+ .r95_1kpzw680 {
2
+ list-style: none;
3
+ padding: 0;
4
+ margin: 0;
5
+ display: flex;
6
+ }
7
+ .r95_1kpzw681 {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ margin-left: var(--r95-space-2);
12
+ padding: var(--r95-space-0);
13
+ width: var(--r95-space-17);
14
+ height: var(--r95-space-14);
15
+ min-width: var(--r95-space-0);
16
+ font-weight: 600;
17
+ font-size: 10px;
18
+ }
19
+ .r95_1kpzw681:active {
20
+ padding-top: var(--r95-space-1);
21
+ padding-right: var(--r95-space-0);
22
+ padding-bottom: var(--r95-space-0);
23
+ padding-left: var(--r95-space-1);
24
+ outline: none;
25
+ }
26
+ .r95_1kpzw681:first-child {
27
+ margin-right: var(--r95-space-0);
28
+ }
29
+ .r95_1kpzw681:focus {
30
+ box-shadow: inset 1px 1px 0px 1px var(--r95-color-borderLightest),
31
+ inset -1px -1px 0px 1px var(--r95-color-borderDark);
32
+ }
33
+ .r95_1kpzw682 {
34
+ height: var(--r95-space-20);
35
+ margin-bottom: var(--r95-space-2);
36
+ padding: var(--r95-space-2);
37
+ display: flex;
38
+ box-shadow: none;
39
+ user-select: none;
40
+ }
41
+ .r95_1kpzw683 {
42
+ background: var(--r95-color-headerBackground);
43
+ color: var(--r95-color-headerText);
44
+ }
45
+ .r95_1kpzw684 {
46
+ background: var(--r95-color-headerNotActiveBackground);
47
+ color: var(--r95-color-headerNotActiveText);
48
+ }
49
+ .r95_1kpzw682 svg {
50
+ width: var(--r95-space-16);
51
+ height: var(--r95-space-16);
52
+ margin-right: var(--r95-space-4);
53
+ }
54
+ .r95_1kpzw685 {
55
+ flex-grow: 1;
56
+ line-height: 1.4em;
57
+ margin: 0;
58
+ font-size: 1em;
59
+ text-shadow: 0.5px 0px white, 1.5px 0px white;
60
+ color: transparent;
61
+ letter-spacing: 1px;
62
+ }
@@ -1,43 +1,45 @@
1
- var _excluded = ["children", "title", "icon", "active"];
2
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
- import React from 'react';
6
- import { Frame } from '../Frame/Frame';
7
- import * as styles from './TitleBar.css';
8
- import { button } from '../Button/Button.css';
9
- import cn from 'classnames';
10
- var OptionsBox = /*#__PURE__*/React.forwardRef(function (rest, ref) {
11
- return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
12
- ref: ref,
13
- className: cn(styles.optionsBox, rest.className)
14
- }));
15
- });
16
- var Option = /*#__PURE__*/React.forwardRef(function (rest, ref) {
17
- return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
18
- ref: ref,
19
- as: "button",
20
- className: cn(styles.option, button, rest.className)
21
- }));
22
- });
23
- var TitleBarRenderer = function TitleBarRenderer(_ref, ref) {
24
- var children = _ref.children,
25
- _ref$title = _ref.title,
26
- title = _ref$title === void 0 ? 'UNKNOWN.EXE' : _ref$title,
27
- icon = _ref.icon,
28
- _ref$active = _ref.active,
29
- active = _ref$active === void 0 ? true : _ref$active,
30
- rest = _objectWithoutProperties(_ref, _excluded);
31
- return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
32
- className: cn(styles.titleBarBackground({
33
- active: active
34
- }), rest.className),
35
- ref: ref
36
- }), icon && icon, /*#__PURE__*/React.createElement("div", {
37
- className: styles.title
38
- }, title), children);
1
+ import React__default from "react";
2
+ import { Frame } from "../Frame/Frame.js";
3
+ import { optionsBox, option, titleBarBackground, title } from "./TitleBar.css.js";
4
+ import { button } from "../Button/Button.css.js";
5
+ import cn from "classnames";
6
+ const OptionsBox = React__default.forwardRef((rest, ref) => /* @__PURE__ */ React__default.createElement(
7
+ Frame,
8
+ {
9
+ ...rest,
10
+ ref,
11
+ className: cn(optionsBox, rest.className)
12
+ }
13
+ ));
14
+ const Option = React__default.forwardRef(
15
+ (rest, ref) => /* @__PURE__ */ React__default.createElement(
16
+ Frame,
17
+ {
18
+ ...rest,
19
+ ref,
20
+ as: "button",
21
+ className: cn(button, option, rest.className)
22
+ }
23
+ )
24
+ );
25
+ const TitleBarRenderer = ({ children, title: title$1 = "UNKNOWN.EXE", icon, active = true, ...rest }, ref) => /* @__PURE__ */ React__default.createElement(
26
+ Frame,
27
+ {
28
+ ...rest,
29
+ className: cn(titleBarBackground({ active }), rest.className),
30
+ ref
31
+ },
32
+ icon && icon,
33
+ /* @__PURE__ */ React__default.createElement("div", { className: title }, title$1),
34
+ children
35
+ );
36
+ const TitleBar = Object.assign(
37
+ React__default.forwardRef(TitleBarRenderer),
38
+ {
39
+ Option,
40
+ OptionsBox
41
+ }
42
+ );
43
+ export {
44
+ TitleBar
39
45
  };
40
- export var TitleBar = Object.assign( /*#__PURE__*/React.forwardRef(TitleBarRenderer), {
41
- Option: Option,
42
- OptionsBox: OptionsBox
43
- });
@@ -1,25 +1,7 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { contract } from '../themes/contract.css';
3
- import { calc } from '@vanilla-extract/css-utils';
4
- export var tip = style({
5
- background: "radial-gradient(#ff0 20%, transparent 20%) 0 0,\n radial-gradient(#ff0 20%, transparent 20%) 4px 4px,\n radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 0 1px,\n radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 3px 4px",
6
- backgroundSize: "".concat(contract.space[7], " ").concat(contract.space[7]),
7
- backgroundColor: contract.colors.borderLightest,
8
- borderWidth: contract.space[1],
9
- borderStyle: 'solid',
10
- paddingTop: contract.space[2],
11
- paddingRight: contract.space[2],
12
- paddingBottom: contract.space[2],
13
- paddingLeft: contract.space[4],
14
- boxShadow: 'none',
15
- position: 'absolute',
16
- top: calc.negate(contract.space[20]),
17
- textAlign: 'center',
18
- zIndex: contract.zIndices.taskbar
19
- });
20
- export var wrapper = style({
21
- display: 'inline-block',
22
- position: 'relative',
23
- cursor: 'default',
24
- whiteSpace: 'nowrap'
25
- });
1
+ import './Tooltip.css.ts.vanilla.css';
2
+ /* empty css */var tip = "r95_f5whxn0";
3
+ var wrapper = "r95_f5whxn1";
4
+ export {
5
+ tip,
6
+ wrapper
7
+ };