@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,165 +1,134 @@
1
- var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "onClose", "onHelp", "defaultPosition", "positionOffset", "height", "icon", "menu", "title", "width"];
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
- 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."); }
5
- 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); }
6
- 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; }
7
- 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; } }
8
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
- 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; }
10
- 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; }
11
- import * as React from 'react';
12
- import Draggable from 'react-draggable';
13
- import Button from '../Button';
14
- import TitleBar from '../TitleBar';
15
- import ModalContext from './ModalContext';
16
- import * as styles from './Modal.css';
17
- import { Frame } from '../Frame/Frame';
18
- import close from './close.svg';
19
- import help from './help.svg';
20
- var ModalRenderer = function ModalRenderer(_ref, ref) {
21
- var _ref$hasWindowButton = _ref.hasWindowButton,
22
- hasButton = _ref$hasWindowButton === void 0 ? true : _ref$hasWindowButton,
23
- _ref$buttons = _ref.buttons,
24
- buttons = _ref$buttons === void 0 ? [] : _ref$buttons,
25
- _ref$buttonsAlignment = _ref.buttonsAlignment,
26
- buttonsAlignment = _ref$buttonsAlignment === void 0 ? 'flex-end' : _ref$buttonsAlignment,
27
- children = _ref.children,
28
- _ref$onClose = _ref.onClose,
29
- onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
30
- onHelp = _ref.onHelp,
31
- _ref$defaultPosition = _ref.defaultPosition,
32
- defaultPosition = _ref$defaultPosition === void 0 ? {
33
- x: 0,
34
- y: 0
35
- } : _ref$defaultPosition,
36
- positionOffset = _ref.positionOffset,
37
- height = _ref.height,
38
- icon = _ref.icon,
39
- _ref$menu = _ref.menu,
40
- menu = _ref$menu === void 0 ? [] : _ref$menu,
41
- title = _ref.title,
42
- width = _ref.width,
43
- rest = _objectWithoutProperties(_ref, _excluded);
44
- var _React$useContext = React.useContext(ModalContext),
45
- addWindows = _React$useContext.addWindows,
46
- removeWindow = _React$useContext.removeWindow,
47
- updateWindow = _React$useContext.updateWindow,
48
- setActiveWindow = _React$useContext.setActiveWindow,
49
- activeWindow = _React$useContext.activeWindow;
50
- var _React$useState = React.useState(null),
51
- _React$useState2 = _slicedToArray(_React$useState, 2),
52
- id = _React$useState2[0],
53
- setId = _React$useState2[1];
54
- var _React$useState3 = React.useState(''),
55
- _React$useState4 = _slicedToArray(_React$useState3, 2),
56
- menuOpened = _React$useState4[0],
57
- setMenuOpened = _React$useState4[1];
58
- var _React$useState5 = React.useState(false),
59
- _React$useState6 = _slicedToArray(_React$useState5, 2),
60
- isActive = _React$useState6[0],
61
- setIsActive = _React$useState6[1];
62
- React.useEffect(function () {
1
+ import * as React from "react";
2
+ import Draggable from "react-draggable";
3
+ import { Button } from "../Button/Button.js";
4
+ import { TitleBar } from "../TitleBar/TitleBar.js";
5
+ import { ModalContext } from "./ModalContext.js";
6
+ import { modalWrapper, menuWrapper, menuItem, content, buttonWrapper } from "./Modal.css.js";
7
+ import { Frame } from "../Frame/Frame.js";
8
+ import close from "./close.svg.js";
9
+ import help from "./help.svg.js";
10
+ const ModalRenderer = ({
11
+ hasWindowButton: hasButton = true,
12
+ buttons = [],
13
+ buttonsAlignment = "flex-end",
14
+ children,
15
+ onClose = () => {
16
+ },
17
+ onHelp,
18
+ defaultPosition = { x: 0, y: 0 },
19
+ positionOffset,
20
+ height,
21
+ icon,
22
+ menu = [],
23
+ title,
24
+ width,
25
+ ...rest
26
+ }, ref) => {
27
+ const {
28
+ addWindows,
29
+ removeWindow,
30
+ updateWindow,
31
+ setActiveWindow,
32
+ activeWindow
33
+ } = React.useContext(ModalContext);
34
+ const [id, setId] = React.useState(null);
35
+ const [menuOpened, setMenuOpened] = React.useState("");
36
+ const [isActive, setIsActive] = React.useState(false);
37
+ React.useEffect(() => {
63
38
  if (!id) {
64
- var newId = addWindows({
65
- icon: icon,
66
- title: title,
67
- hasButton: hasButton
68
- });
39
+ const newId = addWindows({ icon, title, hasButton });
69
40
  if (newId) {
70
41
  setId(newId);
71
42
  setActiveWindow(newId);
72
43
  }
73
44
  } else {
74
- updateWindow(id, {
75
- icon: icon,
76
- title: title,
77
- hasButton: hasButton
78
- });
45
+ updateWindow(id, { icon, title, hasButton });
79
46
  }
80
47
  }, [id, icon, title, hasButton]);
81
- React.useEffect(function () {
82
- return function () {
48
+ React.useEffect(() => {
49
+ return () => {
83
50
  if (id) {
84
51
  removeWindow(id);
85
52
  }
86
53
  };
87
54
  }, [id]);
88
- React.useEffect(function () {
89
- return setIsActive(id === activeWindow);
90
- }, [id, activeWindow]);
91
- return /*#__PURE__*/React.createElement(Draggable, {
92
- handle: ".draggable",
93
- defaultPosition: defaultPosition,
94
- positionOffset: positionOffset,
95
- onMouseDown: id ? function () {
96
- return setActiveWindow(id);
97
- } : undefined
98
- }, /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
99
- width: width,
100
- height: height,
101
- className: styles.modalWrapper({
102
- active: isActive
103
- }),
104
- ref: ref
105
- }), /*#__PURE__*/React.createElement(TitleBar, {
106
- active: isActive,
107
- icon: icon,
108
- title: title,
109
- className: "draggable"
110
- }, /*#__PURE__*/React.createElement(TitleBar.OptionsBox, null, onHelp && /*#__PURE__*/React.createElement(TitleBar.Option, null, /*#__PURE__*/React.createElement("img", {
111
- src: help,
112
- alt: "help",
113
- onClick: onHelp
114
- })), /*#__PURE__*/React.createElement(TitleBar.Option, {
115
- onClick: onClose
116
- }, /*#__PURE__*/React.createElement("img", {
117
- src: close,
118
- alt: "close"
119
- })))), menu && menu.length > 0 && /*#__PURE__*/React.createElement("ul", {
120
- className: styles.menuWrapper
121
- }, menu.map(function (_ref2) {
122
- var name = _ref2.name,
123
- list = _ref2.list;
124
- var active = menuOpened === name;
125
- return /*#__PURE__*/React.createElement("li", {
126
- key: name,
127
- onMouseDown: function onMouseDown() {
128
- return setMenuOpened(name);
55
+ React.useEffect(() => setIsActive(id === activeWindow), [id, activeWindow]);
56
+ return /* @__PURE__ */ React.createElement(
57
+ Draggable,
58
+ {
59
+ handle: ".draggable",
60
+ defaultPosition,
61
+ positionOffset,
62
+ onMouseDown: id ? () => setActiveWindow(id) : void 0
63
+ },
64
+ /* @__PURE__ */ React.createElement(
65
+ Frame,
66
+ {
67
+ ...rest,
68
+ width,
69
+ height,
70
+ className: modalWrapper({ active: isActive }),
71
+ ref
129
72
  },
130
- className: styles.menuItem({
131
- active: active
132
- })
133
- }, name, active && list);
134
- })), /*#__PURE__*/React.createElement("div", {
135
- className: styles.content,
136
- onClick: function onClick() {
137
- return setMenuOpened('');
138
- }
139
- }, children), buttons && buttons.length > 0 && /*#__PURE__*/React.createElement(Frame, {
140
- className: styles.buttonWrapper,
141
- justifyContent: buttonsAlignment
142
- }, buttons.map(function (button) {
143
- return /*#__PURE__*/React.createElement(Button, {
144
- key: button.value,
145
- onClick: button.onClick,
146
- value: button.value
147
- }, button.value);
148
- }))));
73
+ /* @__PURE__ */ React.createElement(
74
+ TitleBar,
75
+ {
76
+ active: isActive,
77
+ icon,
78
+ title,
79
+ className: "draggable"
80
+ },
81
+ /* @__PURE__ */ React.createElement(TitleBar.OptionsBox, null, onHelp && /* @__PURE__ */ React.createElement(TitleBar.Option, null, /* @__PURE__ */ React.createElement("img", { src: help, alt: "help", onClick: onHelp })), /* @__PURE__ */ React.createElement(TitleBar.Option, { onClick: onClose }, /* @__PURE__ */ React.createElement("img", { src: close, alt: "close" })))
82
+ ),
83
+ menu && menu.length > 0 && /* @__PURE__ */ React.createElement("ul", { className: menuWrapper }, menu.map(({ name, list }) => {
84
+ const active = menuOpened === name;
85
+ return /* @__PURE__ */ React.createElement(
86
+ "li",
87
+ {
88
+ key: name,
89
+ onMouseDown: () => setMenuOpened(name),
90
+ className: menuItem({ active })
91
+ },
92
+ name,
93
+ active && list
94
+ );
95
+ })),
96
+ /* @__PURE__ */ React.createElement("div", { className: content, onClick: () => setMenuOpened("") }, children),
97
+ buttons && buttons.length > 0 && /* @__PURE__ */ React.createElement(
98
+ Frame,
99
+ {
100
+ className: buttonWrapper,
101
+ justifyContent: buttonsAlignment
102
+ },
103
+ buttons.map((button) => /* @__PURE__ */ React.createElement(
104
+ Button,
105
+ {
106
+ key: button.value,
107
+ onClick: button.onClick,
108
+ value: button.value
109
+ },
110
+ button.value
111
+ ))
112
+ )
113
+ )
114
+ );
149
115
  };
150
- export var Modal = /*#__PURE__*/React.forwardRef(ModalRenderer);
151
- Modal.displayName = 'Modal';
116
+ const Modal = React.forwardRef(
117
+ ModalRenderer
118
+ );
119
+ Modal.displayName = "Modal";
152
120
  Modal.defaultProps = {
153
- icon: undefined,
154
- title: 'Modal',
121
+ icon: void 0,
122
+ title: "Modal",
155
123
  children: null,
156
- defaultPosition: {
157
- x: 0,
158
- y: 0
159
- },
124
+ defaultPosition: { x: 0, y: 0 },
160
125
  buttons: [],
161
126
  menu: [],
162
- width: undefined,
163
- height: undefined,
164
- onClose: function onClose() {}
165
- };
127
+ width: void 0,
128
+ height: void 0,
129
+ onClose: () => {
130
+ }
131
+ };
132
+ export {
133
+ Modal
134
+ };
@@ -1,11 +1,16 @@
1
- /* eslint-disable no-unused-vars */
2
- import { createContext } from 'react';
3
- var ModalContext = /*#__PURE__*/createContext({
1
+ import { createContext } from "react";
2
+ const ModalContext = createContext({
4
3
  windows: {},
5
- addWindows: function addWindows() {},
6
- removeWindow: function removeWindow() {},
7
- updateWindow: function updateWindow() {},
8
- setActiveWindow: function setActiveWindow() {},
9
- activeWindow: ''
4
+ addWindows: () => {
5
+ },
6
+ removeWindow: () => {
7
+ },
8
+ updateWindow: () => {
9
+ },
10
+ setActiveWindow: () => {
11
+ },
12
+ activeWindow: ""
10
13
  });
11
- export default ModalContext;
14
+ export {
15
+ ModalContext
16
+ };
@@ -1,84 +1,54 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
- 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."); }
4
- 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); }
5
- 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; }
6
- 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; } }
7
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- import { nanoid } from 'nanoid';
14
- import * as React from 'react';
15
- import ModalContext from './ModalContext';
16
-
17
- // eslint-disable-next-line @typescript-eslint/ban-types
18
-
19
- var windowStackReducer = function windowStackReducer(state, action) {
20
- var newWindows = _objectSpread({}, state);
1
+ import { nanoid } from "nanoid";
2
+ import * as React from "react";
3
+ import { ModalContext } from "./ModalContext.js";
4
+ const windowStackReducer = (state, action) => {
5
+ const newWindows = { ...state };
21
6
  switch (action.type) {
22
- case 'ADD_WINDOW':
23
- {
24
- newWindows[action.id] = action.window;
25
- return newWindows;
26
- }
27
- case 'REMOVE_WINDOW':
28
- {
29
- delete newWindows[action.id];
30
- return newWindows;
31
- }
32
- case 'UPDATE_WINDOW':
33
- {
34
- newWindows[action.id] = action.window;
35
- return newWindows;
36
- }
7
+ case "ADD_WINDOW": {
8
+ newWindows[action.id] = action.window;
9
+ return newWindows;
10
+ }
11
+ case "REMOVE_WINDOW": {
12
+ delete newWindows[action.id];
13
+ return newWindows;
14
+ }
15
+ case "UPDATE_WINDOW": {
16
+ newWindows[action.id] = action.window;
17
+ return newWindows;
18
+ }
37
19
  default:
38
20
  return state;
39
21
  }
40
22
  };
41
- var ModalProvider = function ModalProvider(_ref) {
42
- var children = _ref.children;
43
- var _React$useReducer = React.useReducer(windowStackReducer, {}),
44
- _React$useReducer2 = _slicedToArray(_React$useReducer, 2),
45
- windows = _React$useReducer2[0],
46
- dispatch = _React$useReducer2[1];
47
- var _React$useState = React.useState(),
48
- _React$useState2 = _slicedToArray(_React$useState, 2),
49
- activeWindow = _React$useState2[0],
50
- setActiveWindow = _React$useState2[1];
51
- var addWindows = function addWindows(window) {
52
- var id = nanoid();
53
- dispatch({
54
- type: 'ADD_WINDOW',
55
- id: id,
56
- window: window
57
- });
23
+ const ModalProvider = ({ children }) => {
24
+ const [windows, dispatch] = React.useReducer(windowStackReducer, {});
25
+ const [activeWindow, setActiveWindow] = React.useState();
26
+ const addWindows = (window) => {
27
+ const id = nanoid();
28
+ dispatch({ type: "ADD_WINDOW", id, window });
58
29
  return id;
59
30
  };
60
- var removeWindow = function removeWindow(id) {
61
- dispatch({
62
- type: 'REMOVE_WINDOW',
63
- id: id
64
- });
31
+ const removeWindow = (id) => {
32
+ dispatch({ type: "REMOVE_WINDOW", id });
65
33
  };
66
- var updateWindow = function updateWindow(id, window) {
67
- dispatch({
68
- type: 'UPDATE_WINDOW',
69
- id: id,
70
- window: window
71
- });
34
+ const updateWindow = (id, window) => {
35
+ dispatch({ type: "UPDATE_WINDOW", id, window });
72
36
  };
73
- return /*#__PURE__*/React.createElement(ModalContext.Provider, {
74
- value: {
75
- windows: windows,
76
- addWindows: addWindows,
77
- removeWindow: removeWindow,
78
- updateWindow: updateWindow,
79
- setActiveWindow: setActiveWindow,
80
- activeWindow: activeWindow
81
- }
82
- }, children);
37
+ return /* @__PURE__ */ React.createElement(
38
+ ModalContext.Provider,
39
+ {
40
+ value: {
41
+ windows,
42
+ addWindows,
43
+ removeWindow,
44
+ updateWindow,
45
+ setActiveWindow,
46
+ activeWindow
47
+ }
48
+ },
49
+ children
50
+ );
51
+ };
52
+ export {
53
+ ModalProvider
83
54
  };
84
- export default ModalProvider;
@@ -0,0 +1,4 @@
1
+ const close = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nOCcgaGVpZ2h0PSc3JyBmaWxsPSdjdXJyZW50Q29sb3InIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZmlsbC1ydWxlPSdldmVub2RkJyBjbGlwLXJ1bGU9J2V2ZW5vZGQnIGQ9J00wIDBoMnYxaDF2MWgyVjFoMVYwaDJ2MUg3djFINnYxSDV2MWgxdjFoMXYxaDF2MUg2VjZINVY1SDN2MUgydjFIMFY2aDFWNWgxVjRoMVYzSDJWMkgxVjFIMFYweicgLz48L3N2Zz4=";
2
+ export {
3
+ close as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const help = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNicgaGVpZ2h0PSc5JyBmaWxsPSdjdXJyZW50Q29sb3InIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTTAgMWgydjJIMHpNMSAwaDR2MUgxek00IDFoMnYySDR6TTMgM2gydjFIM3pNMiA0aDJ2Mkgyek0yIDdoMnYySDJ6Jy8+PC9zdmc+";
2
+ export {
3
+ help as default
4
+ };
@@ -1,34 +1,11 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { contract } from '../themes/contract.css';
3
- export var wrapper = style({
4
- height: contract.space[20],
5
- position: 'relative',
6
- textAlign: 'center'
7
- });
8
- export var whiteBar = style({
9
- height: contract.space[20],
10
- lineHeight: contract.space[20],
11
- borderLeft: contract.space[1],
12
- borderLeftStyle: 'solid',
13
- borderLeftColor: contract.colors.borderDark,
14
- borderTop: contract.space[1],
15
- borderTopStyle: 'solid',
16
- borderTopColor: contract.colors.borderDark,
17
- backgroundColor: contract.colors.inputBackground,
18
- color: contract.colors.materialText,
19
- boxShadow: contract.shadows.input
20
- });
21
- export var container = style({
22
- position: 'absolute',
23
- top: '0',
24
- left: '0',
25
- overflow: 'hidden'
26
- });
27
- export var progress = style({
28
- height: contract.space[17],
29
- lineHeight: contract.space[18],
30
- marginLeft: contract.space[2],
31
- marginTop: contract.space[2],
32
- backgroundColor: contract.colors.progress,
33
- color: contract.colors.materialTextInvert
34
- });
1
+ import './ProgressBar.css.ts.vanilla.css';
2
+ /* empty css */var container = "r95_1drc6y72";
3
+ var progress = "r95_1drc6y73";
4
+ var whiteBar = "r95_1drc6y71";
5
+ var wrapper = "r95_1drc6y70";
6
+ export {
7
+ container,
8
+ progress,
9
+ whiteBar,
10
+ wrapper
11
+ };
@@ -0,0 +1,32 @@
1
+ .r95_1drc6y70 {
2
+ height: var(--r95-space-20);
3
+ position: relative;
4
+ text-align: center;
5
+ }
6
+ .r95_1drc6y71 {
7
+ height: var(--r95-space-20);
8
+ line-height: var(--r95-space-20);
9
+ border-left: var(--r95-space-1);
10
+ border-left-style: solid;
11
+ border-left-color: var(--r95-color-borderDark);
12
+ border-top: var(--r95-space-1);
13
+ border-top-style: solid;
14
+ border-top-color: var(--r95-color-borderDark);
15
+ background-color: var(--r95-color-inputBackground);
16
+ color: var(--r95-color-materialText);
17
+ box-shadow: var(--r95-shadow-input);
18
+ }
19
+ .r95_1drc6y72 {
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ overflow: hidden;
24
+ }
25
+ .r95_1drc6y73 {
26
+ height: var(--r95-space-17);
27
+ line-height: var(--r95-space-18);
28
+ margin-left: var(--r95-space-2);
29
+ margin-top: var(--r95-space-2);
30
+ background-color: var(--r95-color-progress);
31
+ color: var(--r95-color-materialTextInvert);
32
+ }
@@ -1,29 +1,20 @@
1
- var _excluded = ["width", "percent"];
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 cn from 'classnames';
7
- import { Frame } from '../Frame/Frame';
8
- import * as styles from './ProgressBar.css';
9
- export var ProgressBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
10
- var _ref$width = _ref.width,
11
- width = _ref$width === void 0 ? '150px' : _ref$width,
12
- _ref$percent = _ref.percent,
13
- percent = _ref$percent === void 0 ? 0 : _ref$percent,
14
- rest = _objectWithoutProperties(_ref, _excluded);
15
- return /*#__PURE__*/React.createElement(Frame, _extends({}, rest, {
16
- width: width,
17
- className: cn(styles.wrapper, rest.className),
18
- ref: ref
19
- }), /*#__PURE__*/React.createElement(Frame, {
20
- className: styles.whiteBar,
21
- width: width
22
- }, "".concat(percent, "%")), /*#__PURE__*/React.createElement(Frame, {
23
- className: styles.container,
24
- width: "".concat(percent, "%")
25
- }, /*#__PURE__*/React.createElement(Frame, {
26
- className: styles.progress,
27
- width: width
28
- }, "".concat(percent, "%"))));
29
- });
1
+ import React__default, { forwardRef } from "react";
2
+ import cn from "classnames";
3
+ import { Frame } from "../Frame/Frame.js";
4
+ import { wrapper, whiteBar, container, progress } from "./ProgressBar.css.js";
5
+ const ProgressBar = forwardRef(
6
+ ({ width = "150px", percent = 0, ...rest }, ref) => /* @__PURE__ */ React__default.createElement(
7
+ Frame,
8
+ {
9
+ ...rest,
10
+ width,
11
+ className: cn(wrapper, rest.className),
12
+ ref
13
+ },
14
+ /* @__PURE__ */ React__default.createElement(Frame, { className: whiteBar, width }, `${percent}%`),
15
+ /* @__PURE__ */ React__default.createElement(Frame, { className: container, width: `${percent}%` }, /* @__PURE__ */ React__default.createElement(Frame, { className: progress, width }, `${percent}%`))
16
+ )
17
+ );
18
+ export {
19
+ ProgressBar
20
+ };
@@ -1,49 +1,11 @@
1
- import { radioChecked, radioCheckedDisabled, radioUnchecked, radioUncheckedDisabled } from './radioButtonStates';
2
- import { globalStyle, style } from '@vanilla-extract/css';
3
- import { contract } from '../themes/contract.css';
4
- export var icon = style({
5
- width: contract.space[12],
6
- height: contract.space[12],
7
- display: 'inline-block',
8
- position: 'absolute',
9
- left: contract.space[0],
10
- top: contract.space[0],
11
- backgroundImage: "url('".concat(radioUnchecked, "')"),
12
- imageRendering: 'pixelated'
13
- });
14
- export var text = style({
15
- padding: contract.space[1],
16
- userSelect: 'none',
17
- position: 'absolute',
18
- top: '0',
19
- left: contract.space[18]
20
- });
21
- export var label = style({
22
- position: 'relative',
23
- marginBottom: contract.space[10],
24
- display: 'block',
25
- selectors: {
26
- '&:has(:disabled)': {
27
- color: contract.colors.materialTextDisabled,
28
- textShadow: "0.5px 0.5px ".concat(contract.colors.materialTextDisabledShadow)
29
- }
30
- }
31
- });
32
- export var field = style({
33
- margin: 0,
34
- opacity: 0
35
- });
36
- globalStyle("".concat(field, ":focus ~ ").concat(text, ", &:active + ").concat(text), {
37
- borderWidth: contract.space[1],
38
- borderStyle: 'dotted',
39
- padding: 0
40
- });
41
- globalStyle("".concat(field, ":checked + ").concat(icon), {
42
- backgroundImage: "url('".concat(radioChecked, "')")
43
- });
44
- globalStyle("".concat(field, ":disabled + ").concat(icon), {
45
- backgroundImage: "url('".concat(radioUncheckedDisabled, "')")
46
- });
47
- globalStyle("".concat(field, ":checked:disabled + ").concat(icon), {
48
- backgroundImage: "url('".concat(radioCheckedDisabled, "')")
49
- });
1
+ import './RadioButton.css.ts.vanilla.css';
2
+ /* empty css */var field = "r95_1rnz0nz3";
3
+ var icon = "r95_1rnz0nz0";
4
+ var label = "r95_1rnz0nz2";
5
+ var text = "r95_1rnz0nz1";
6
+ export {
7
+ field,
8
+ icon,
9
+ label,
10
+ text
11
+ };