@react95/core 7.0.2 → 8.0.0-alpha.1

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 (724) hide show
  1. package/@types/Alert/Alert.css.d.ts +3 -0
  2. package/@types/Alert/Alert.d.ts +2 -9
  3. package/@types/Avatar/Avatar.css.d.ts +15 -0
  4. package/@types/Avatar/Avatar.d.ts +3 -4
  5. package/@types/Button/Button.css.d.ts +1 -0
  6. package/@types/Button/Button.d.ts +4 -2
  7. package/@types/Checkbox/Checkbox.css.d.ts +4 -0
  8. package/@types/Checkbox/Checkbox.d.ts +2 -9
  9. package/@types/Cursor/Cursor.css.d.ts +1 -0
  10. package/@types/Dropdown/Dropdown.css.d.ts +2 -0
  11. package/@types/Dropdown/Dropdown.d.ts +5 -4
  12. package/@types/Fieldset/Fieldset.css.d.ts +2 -0
  13. package/@types/Fieldset/Fieldset.d.ts +3 -5
  14. package/@types/Frame/Frame.d.ts +2251 -5
  15. package/@types/Frame/props.d.ts +977 -0
  16. package/@types/Frame/sprinkles.css.d.ts +2271 -0
  17. package/@types/Input/Input.css.d.ts +1 -0
  18. package/@types/Input/Input.d.ts +3 -4
  19. package/@types/List/List.css.d.ts +3 -0
  20. package/@types/List/List.d.ts +9 -9
  21. package/@types/List/ListDivider.d.ts +4 -2
  22. package/@types/List/ListItem.d.ts +1 -2
  23. package/@types/Modal/Modal.css.d.ts +18 -0
  24. package/@types/Modal/Modal.d.ts +7 -23
  25. package/@types/Modal/ModalContext.d.ts +1 -2
  26. package/@types/Modal/ModalProvider.d.ts +1 -2
  27. package/@types/ProgressBar/ProgressBar.css.d.ts +4 -0
  28. package/@types/ProgressBar/ProgressBar.d.ts +3 -4
  29. package/@types/RadioButton/RadioButton.css.d.ts +4 -0
  30. package/@types/RadioButton/RadioButton.d.ts +1 -2
  31. package/@types/Range/Range.css.d.ts +1 -0
  32. package/@types/Range/Range.d.ts +4 -4
  33. package/@types/Tabs/Tab.d.ts +4 -4
  34. package/@types/Tabs/Tabs.css.d.ts +15 -0
  35. package/@types/Tabs/Tabs.d.ts +4 -5
  36. package/@types/TaskBar/Clock.d.ts +1 -2
  37. package/@types/TaskBar/TaskBar.css.d.ts +21 -0
  38. package/@types/TaskBar/TaskBar.d.ts +2 -3
  39. package/@types/TaskBar/WindowButton.d.ts +5 -4
  40. package/@types/TextArea/TextArea.d.ts +4 -5
  41. package/@types/TitleBar/TitleBar.css.d.ts +15 -0
  42. package/@types/TitleBar/TitleBar.d.ts +5 -7
  43. package/@types/Tooltip/Tooltip.css.d.ts +2 -0
  44. package/@types/Tooltip/Tooltip.d.ts +1 -2
  45. package/@types/Tree/Node.d.ts +5 -3
  46. package/@types/Tree/Tree.css.d.ts +16 -0
  47. package/@types/Tree/Tree.d.ts +5 -3
  48. package/@types/Video/Video.css.d.ts +18 -0
  49. package/@types/Video/Video.d.ts +2 -9
  50. package/@types/index.d.ts +25 -24
  51. package/@types/shared/font-names.d.ts +2 -0
  52. package/@types/themes/all.d.ts +36 -0
  53. package/@types/themes/azureOrange.css.d.ts +1 -0
  54. package/@types/themes/baseTheme.d.ts +88 -0
  55. package/@types/themes/bee.css.d.ts +1 -0
  56. package/@types/themes/blackAndWhite.css.d.ts +1 -0
  57. package/@types/themes/brick.css.d.ts +1 -0
  58. package/@types/themes/candy.css.d.ts +1 -0
  59. package/@types/themes/coldGray.css.d.ts +1 -0
  60. package/@types/themes/contract.css.d.ts +116 -0
  61. package/@types/themes/counterStrike.css.d.ts +1 -0
  62. package/@types/themes/eggplant.css.d.ts +1 -0
  63. package/@types/themes/highContrast.css.d.ts +1 -0
  64. package/@types/themes/lilac.css.d.ts +1 -0
  65. package/@types/themes/lilacRoseDark.css.d.ts +1 -0
  66. package/@types/themes/maple.css.d.ts +1 -0
  67. package/@types/themes/marine.css.d.ts +1 -0
  68. package/@types/themes/matrix.css.d.ts +1 -0
  69. package/@types/themes/millenium.css.d.ts +1 -0
  70. package/@types/themes/modernDark.css.d.ts +1 -0
  71. package/@types/themes/molecule.css.d.ts +1 -0
  72. package/@types/themes/ninjaTurtles.css.d.ts +1 -0
  73. package/@types/themes/olive.css.d.ts +1 -0
  74. package/@types/themes/pamelaAnderson.css.d.ts +1 -0
  75. package/@types/themes/plum.css.d.ts +1 -0
  76. package/@types/themes/rainyDay.css.d.ts +1 -0
  77. package/@types/themes/rose.css.d.ts +1 -0
  78. package/@types/themes/slate.css.d.ts +1 -0
  79. package/@types/themes/spruce.css.d.ts +1 -0
  80. package/@types/themes/storm.css.d.ts +1 -0
  81. package/@types/themes/theSixtiesUSA.css.d.ts +1 -0
  82. package/@types/themes/tokyoDark.css.d.ts +1 -0
  83. package/@types/themes/tooSexy.css.d.ts +1 -0
  84. package/@types/themes/travel.css.d.ts +1 -0
  85. package/@types/themes/vaporTeal.css.d.ts +1 -0
  86. package/@types/themes/vermillion.css.d.ts +1 -0
  87. package/@types/themes/violetDark.css.d.ts +1 -0
  88. package/@types/themes/water.css.d.ts +1 -0
  89. package/@types/themes/win95.css.d.ts +1 -0
  90. package/cjs/Alert/Alert.css.js +9 -0
  91. package/cjs/Alert/Alert.css.ts.vanilla.css +15 -0
  92. package/cjs/Alert/Alert.js +32 -90
  93. package/cjs/Alert/assets/chord.mp3.js +3 -0
  94. package/cjs/Avatar/Avatar.css.js +8 -0
  95. package/cjs/Avatar/Avatar.css.ts.vanilla.css +24 -0
  96. package/cjs/Avatar/Avatar.js +25 -49
  97. package/cjs/Button/Button.css.js +5 -0
  98. package/cjs/Button/Button.css.ts.vanilla.css +31 -0
  99. package/cjs/Button/Button.js +19 -17
  100. package/cjs/Checkbox/Checkbox.css.js +11 -0
  101. package/cjs/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
  102. package/cjs/Checkbox/Checkbox.js +16 -58
  103. package/cjs/Cursor/Cursor.css.js +5 -0
  104. package/cjs/Cursor/Cursor.css.ts.vanilla.css +96 -0
  105. package/cjs/Dropdown/Dropdown.css.js +7 -0
  106. package/cjs/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
  107. package/cjs/Dropdown/Dropdown.js +19 -40
  108. package/cjs/Fieldset/Fieldset.css.js +7 -0
  109. package/cjs/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
  110. package/cjs/Fieldset/Fieldset.js +8 -31
  111. package/cjs/Frame/Frame.js +21 -19
  112. package/cjs/Frame/sprinkles.css.js +47 -0
  113. package/cjs/GlobalStyle/GlobalStyle.css.js +3 -0
  114. package/cjs/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
  115. package/cjs/GlobalStyle.js +4 -0
  116. package/cjs/Input/Input.css.js +5 -0
  117. package/cjs/Input/Input.css.ts.vanilla.css +21 -0
  118. package/cjs/Input/Input.js +25 -14
  119. package/cjs/List/List.css.js +9 -0
  120. package/cjs/List/List.css.ts.vanilla.css +66 -0
  121. package/cjs/List/List.js +14 -27
  122. package/cjs/List/ListDivider.js +18 -13
  123. package/cjs/List/ListItem.js +11 -44
  124. package/cjs/Modal/Modal.css.js +14 -0
  125. package/cjs/Modal/Modal.css.ts.vanilla.css +55 -0
  126. package/cjs/Modal/Modal.js +130 -165
  127. package/cjs/Modal/ModalContext.js +13 -15
  128. package/cjs/Modal/ModalProvider.js +60 -81
  129. package/cjs/Modal/close.svg.js +3 -0
  130. package/cjs/Modal/help.svg.js +3 -0
  131. package/cjs/ProgressBar/ProgressBar.css.js +11 -0
  132. package/cjs/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
  133. package/cjs/ProgressBar/ProgressBar.js +19 -63
  134. package/cjs/RadioButton/RadioButton.css.js +11 -0
  135. package/cjs/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
  136. package/cjs/RadioButton/RadioButton.js +16 -53
  137. package/cjs/Range/Range.css.js +5 -0
  138. package/cjs/Range/Range.css.ts.vanilla.css +84 -0
  139. package/cjs/Range/Range.js +35 -18
  140. package/cjs/Tabs/Tab.js +17 -31
  141. package/cjs/Tabs/Tabs.css.js +10 -0
  142. package/cjs/Tabs/Tabs.css.ts.vanilla.css +54 -0
  143. package/cjs/Tabs/Tabs.js +48 -73
  144. package/cjs/TaskBar/Clock.js +28 -50
  145. package/cjs/TaskBar/TaskBar.css.js +12 -0
  146. package/cjs/TaskBar/TaskBar.css.ts.vanilla.css +51 -0
  147. package/cjs/TaskBar/TaskBar.js +72 -96
  148. package/cjs/TaskBar/WindowButton.js +16 -59
  149. package/cjs/TextArea/TextArea.js +25 -25
  150. package/cjs/TitleBar/TitleBar.css.js +12 -0
  151. package/cjs/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
  152. package/cjs/TitleBar/TitleBar.js +44 -58
  153. package/cjs/Tooltip/Tooltip.css.js +7 -0
  154. package/cjs/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
  155. package/cjs/Tooltip/Tooltip.js +68 -65
  156. package/cjs/Tree/Node.js +122 -122
  157. package/cjs/Tree/Tree.css.js +18 -0
  158. package/cjs/Tree/Tree.css.ts.vanilla.css +90 -0
  159. package/cjs/Tree/Tree.js +12 -33
  160. package/cjs/Video/Video.css.js +22 -0
  161. package/cjs/Video/Video.css.ts.vanilla.css +83 -0
  162. package/cjs/Video/Video.js +207 -270
  163. package/cjs/Video/buttons/Fullscreen.js +33 -20
  164. package/cjs/Video/buttons/Pause.js +28 -18
  165. package/cjs/Video/buttons/Play.js +28 -18
  166. package/cjs/Video/buttons/Stop.js +28 -18
  167. package/cjs/index.js +49 -178
  168. package/cjs/theme.js +72 -0
  169. package/cjs/themes/azureOrange.css.js +3 -0
  170. package/cjs/themes/azureOrange.css.ts.vanilla.css +58 -0
  171. package/cjs/themes/bee.css.js +3 -0
  172. package/cjs/themes/bee.css.ts.vanilla.css +58 -0
  173. package/cjs/themes/blackAndWhite.css.js +3 -0
  174. package/cjs/themes/blackAndWhite.css.ts.vanilla.css +58 -0
  175. package/cjs/themes/brick.css.js +3 -0
  176. package/cjs/themes/brick.css.ts.vanilla.css +58 -0
  177. package/cjs/themes/candy.css.js +3 -0
  178. package/cjs/themes/candy.css.ts.vanilla.css +58 -0
  179. package/cjs/themes/coldGray.css.js +3 -0
  180. package/cjs/themes/coldGray.css.ts.vanilla.css +58 -0
  181. package/cjs/themes/counterStrike.css.js +3 -0
  182. package/cjs/themes/counterStrike.css.ts.vanilla.css +58 -0
  183. package/cjs/themes/eggplant.css.js +3 -0
  184. package/cjs/themes/eggplant.css.ts.vanilla.css +58 -0
  185. package/cjs/themes/highContrast.css.js +3 -0
  186. package/cjs/themes/highContrast.css.ts.vanilla.css +58 -0
  187. package/cjs/themes/lilac.css.js +3 -0
  188. package/cjs/themes/lilac.css.ts.vanilla.css +58 -0
  189. package/cjs/themes/lilacRoseDark.css.js +3 -0
  190. package/cjs/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
  191. package/cjs/themes/maple.css.js +3 -0
  192. package/cjs/themes/maple.css.ts.vanilla.css +58 -0
  193. package/cjs/themes/marine.css.js +3 -0
  194. package/cjs/themes/marine.css.ts.vanilla.css +58 -0
  195. package/cjs/themes/matrix.css.js +3 -0
  196. package/cjs/themes/matrix.css.ts.vanilla.css +58 -0
  197. package/cjs/themes/millenium.css.js +3 -0
  198. package/cjs/themes/millenium.css.ts.vanilla.css +58 -0
  199. package/cjs/themes/modernDark.css.js +3 -0
  200. package/cjs/themes/modernDark.css.ts.vanilla.css +58 -0
  201. package/cjs/themes/molecule.css.js +3 -0
  202. package/cjs/themes/molecule.css.ts.vanilla.css +58 -0
  203. package/cjs/themes/ninjaTurtles.css.js +3 -0
  204. package/cjs/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
  205. package/cjs/themes/olive.css.js +3 -0
  206. package/cjs/themes/olive.css.ts.vanilla.css +58 -0
  207. package/cjs/themes/pamelaAnderson.css.js +3 -0
  208. package/cjs/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
  209. package/cjs/themes/plum.css.js +3 -0
  210. package/cjs/themes/plum.css.ts.vanilla.css +58 -0
  211. package/cjs/themes/rainyDay.css.js +3 -0
  212. package/cjs/themes/rainyDay.css.ts.vanilla.css +58 -0
  213. package/cjs/themes/rose.css.js +3 -0
  214. package/cjs/themes/rose.css.ts.vanilla.css +58 -0
  215. package/cjs/themes/slate.css.js +3 -0
  216. package/cjs/themes/slate.css.ts.vanilla.css +58 -0
  217. package/cjs/themes/sprinkles.css.ts.vanilla.css +399 -0
  218. package/cjs/themes/spruce.css.js +3 -0
  219. package/cjs/themes/spruce.css.ts.vanilla.css +58 -0
  220. package/cjs/themes/storm.css.js +3 -0
  221. package/cjs/themes/storm.css.ts.vanilla.css +58 -0
  222. package/cjs/themes/theSixtiesUSA.css.js +3 -0
  223. package/cjs/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
  224. package/cjs/themes/tokyoDark.css.js +3 -0
  225. package/cjs/themes/tokyoDark.css.ts.vanilla.css +58 -0
  226. package/cjs/themes/tooSexy.css.js +3 -0
  227. package/cjs/themes/tooSexy.css.ts.vanilla.css +58 -0
  228. package/cjs/themes/travel.css.js +3 -0
  229. package/cjs/themes/travel.css.ts.vanilla.css +58 -0
  230. package/cjs/themes/vaporTeal.css.js +3 -0
  231. package/cjs/themes/vaporTeal.css.ts.vanilla.css +58 -0
  232. package/cjs/themes/vermillion.css.js +3 -0
  233. package/cjs/themes/vermillion.css.ts.vanilla.css +58 -0
  234. package/cjs/themes/violetDark.css.js +3 -0
  235. package/cjs/themes/violetDark.css.ts.vanilla.css +58 -0
  236. package/cjs/themes/water.css.js +3 -0
  237. package/cjs/themes/water.css.ts.vanilla.css +58 -0
  238. package/cjs/themes/win95.css.js +3 -0
  239. package/cjs/themes/win95.css.ts.vanilla.css +58 -0
  240. package/esm/Alert/Alert.css.js +9 -0
  241. package/esm/Alert/Alert.css.ts.vanilla.css +15 -0
  242. package/esm/Alert/Alert.js +33 -81
  243. package/esm/Alert/assets/chord.mp3.js +4 -0
  244. package/esm/Avatar/Avatar.css.js +8 -0
  245. package/esm/Avatar/Avatar.css.ts.vanilla.css +24 -0
  246. package/esm/Avatar/Avatar.js +9 -40
  247. package/esm/Button/Button.css.js +5 -0
  248. package/esm/Button/Button.css.ts.vanilla.css +31 -0
  249. package/esm/Button/Button.js +19 -8
  250. package/esm/Checkbox/Checkbox.css.js +11 -0
  251. package/esm/Checkbox/Checkbox.css.ts.vanilla.css +59 -0
  252. package/esm/Checkbox/Checkbox.js +17 -49
  253. package/esm/Cursor/Cursor.css.js +5 -0
  254. package/esm/Cursor/Cursor.css.ts.vanilla.css +96 -0
  255. package/esm/Dropdown/Dropdown.css.js +7 -0
  256. package/esm/Dropdown/Dropdown.css.ts.vanilla.css +50 -0
  257. package/esm/Dropdown/Dropdown.js +19 -30
  258. package/esm/Fieldset/Fieldset.css.js +7 -0
  259. package/esm/Fieldset/Fieldset.css.ts.vanilla.css +19 -0
  260. package/esm/Fieldset/Fieldset.js +9 -23
  261. package/esm/Frame/Frame.js +22 -11
  262. package/esm/Frame/sprinkles.css.js +47 -0
  263. package/esm/GlobalStyle/GlobalStyle.css.js +2 -0
  264. package/esm/GlobalStyle/GlobalStyle.css.ts.vanilla.css +122 -0
  265. package/esm/GlobalStyle.js +4 -0
  266. package/esm/Input/Input.css.js +5 -0
  267. package/esm/Input/Input.css.ts.vanilla.css +21 -0
  268. package/esm/Input/Input.js +9 -8
  269. package/esm/List/List.css.js +9 -0
  270. package/esm/List/List.css.ts.vanilla.css +66 -0
  271. package/esm/List/List.js +13 -16
  272. package/esm/List/ListDivider.js +19 -7
  273. package/esm/List/ListItem.js +12 -35
  274. package/esm/Modal/Modal.css.js +14 -0
  275. package/esm/Modal/Modal.css.ts.vanilla.css +55 -0
  276. package/esm/Modal/Modal.js +114 -156
  277. package/esm/Modal/ModalContext.js +14 -9
  278. package/esm/Modal/ModalProvider.js +44 -74
  279. package/esm/Modal/close.svg.js +4 -0
  280. package/esm/Modal/help.svg.js +4 -0
  281. package/esm/ProgressBar/ProgressBar.css.js +11 -0
  282. package/esm/ProgressBar/ProgressBar.css.ts.vanilla.css +32 -0
  283. package/esm/ProgressBar/ProgressBar.js +19 -54
  284. package/esm/RadioButton/RadioButton.css.js +11 -0
  285. package/esm/RadioButton/RadioButton.css.ts.vanilla.css +44 -0
  286. package/esm/RadioButton/RadioButton.js +16 -44
  287. package/esm/Range/Range.css.js +5 -0
  288. package/esm/Range/Range.css.ts.vanilla.css +84 -0
  289. package/esm/Range/Range.js +19 -10
  290. package/esm/Tabs/Tab.js +18 -23
  291. package/esm/Tabs/Tabs.css.js +10 -0
  292. package/esm/Tabs/Tabs.css.ts.vanilla.css +54 -0
  293. package/esm/Tabs/Tabs.js +49 -64
  294. package/esm/TaskBar/Clock.js +29 -41
  295. package/esm/TaskBar/TaskBar.css.js +12 -0
  296. package/esm/TaskBar/TaskBar.css.ts.vanilla.css +51 -0
  297. package/esm/TaskBar/TaskBar.js +72 -87
  298. package/esm/TaskBar/WindowButton.js +16 -49
  299. package/esm/TextArea/TextArea.js +9 -16
  300. package/esm/TitleBar/TitleBar.css.js +12 -0
  301. package/esm/TitleBar/TitleBar.css.ts.vanilla.css +62 -0
  302. package/esm/TitleBar/TitleBar.js +44 -48
  303. package/esm/Tooltip/Tooltip.css.js +7 -0
  304. package/esm/Tooltip/Tooltip.css.ts.vanilla.css +25 -0
  305. package/esm/Tooltip/Tooltip.js +51 -55
  306. package/esm/Tree/Node.js +98 -105
  307. package/esm/Tree/Tree.css.js +18 -0
  308. package/esm/Tree/Tree.css.ts.vanilla.css +90 -0
  309. package/esm/Tree/Tree.js +12 -23
  310. package/esm/Video/Video.css.js +22 -0
  311. package/esm/Video/Video.css.ts.vanilla.css +83 -0
  312. package/esm/Video/Video.js +191 -262
  313. package/esm/Video/buttons/Fullscreen.js +17 -11
  314. package/esm/Video/buttons/Pause.js +12 -9
  315. package/esm/Video/buttons/Play.js +12 -9
  316. package/esm/Video/buttons/Stop.js +12 -9
  317. package/esm/index.js +50 -24
  318. package/esm/theme.js +72 -0
  319. package/esm/themes/azureOrange.css.js +2 -0
  320. package/esm/themes/azureOrange.css.ts.vanilla.css +58 -0
  321. package/esm/themes/bee.css.js +2 -0
  322. package/esm/themes/bee.css.ts.vanilla.css +58 -0
  323. package/esm/themes/blackAndWhite.css.js +2 -0
  324. package/esm/themes/blackAndWhite.css.ts.vanilla.css +58 -0
  325. package/esm/themes/brick.css.js +2 -0
  326. package/esm/themes/brick.css.ts.vanilla.css +58 -0
  327. package/esm/themes/candy.css.js +2 -0
  328. package/esm/themes/candy.css.ts.vanilla.css +58 -0
  329. package/esm/themes/coldGray.css.js +2 -0
  330. package/esm/themes/coldGray.css.ts.vanilla.css +58 -0
  331. package/esm/themes/counterStrike.css.js +2 -0
  332. package/esm/themes/counterStrike.css.ts.vanilla.css +58 -0
  333. package/esm/themes/eggplant.css.js +2 -0
  334. package/esm/themes/eggplant.css.ts.vanilla.css +58 -0
  335. package/esm/themes/highContrast.css.js +2 -0
  336. package/esm/themes/highContrast.css.ts.vanilla.css +58 -0
  337. package/esm/themes/lilac.css.js +2 -0
  338. package/esm/themes/lilac.css.ts.vanilla.css +58 -0
  339. package/esm/themes/lilacRoseDark.css.js +2 -0
  340. package/esm/themes/lilacRoseDark.css.ts.vanilla.css +58 -0
  341. package/esm/themes/maple.css.js +2 -0
  342. package/esm/themes/maple.css.ts.vanilla.css +58 -0
  343. package/esm/themes/marine.css.js +2 -0
  344. package/esm/themes/marine.css.ts.vanilla.css +58 -0
  345. package/esm/themes/matrix.css.js +2 -0
  346. package/esm/themes/matrix.css.ts.vanilla.css +58 -0
  347. package/esm/themes/millenium.css.js +2 -0
  348. package/esm/themes/millenium.css.ts.vanilla.css +58 -0
  349. package/esm/themes/modernDark.css.js +2 -0
  350. package/esm/themes/modernDark.css.ts.vanilla.css +58 -0
  351. package/esm/themes/molecule.css.js +2 -0
  352. package/esm/themes/molecule.css.ts.vanilla.css +58 -0
  353. package/esm/themes/ninjaTurtles.css.js +2 -0
  354. package/esm/themes/ninjaTurtles.css.ts.vanilla.css +58 -0
  355. package/esm/themes/olive.css.js +2 -0
  356. package/esm/themes/olive.css.ts.vanilla.css +58 -0
  357. package/esm/themes/pamelaAnderson.css.js +2 -0
  358. package/esm/themes/pamelaAnderson.css.ts.vanilla.css +58 -0
  359. package/esm/themes/plum.css.js +2 -0
  360. package/esm/themes/plum.css.ts.vanilla.css +58 -0
  361. package/esm/themes/rainyDay.css.js +2 -0
  362. package/esm/themes/rainyDay.css.ts.vanilla.css +58 -0
  363. package/esm/themes/rose.css.js +2 -0
  364. package/esm/themes/rose.css.ts.vanilla.css +58 -0
  365. package/esm/themes/slate.css.js +2 -0
  366. package/esm/themes/slate.css.ts.vanilla.css +58 -0
  367. package/esm/themes/sprinkles.css.ts.vanilla.css +399 -0
  368. package/esm/themes/spruce.css.js +2 -0
  369. package/esm/themes/spruce.css.ts.vanilla.css +58 -0
  370. package/esm/themes/storm.css.js +2 -0
  371. package/esm/themes/storm.css.ts.vanilla.css +58 -0
  372. package/esm/themes/theSixtiesUSA.css.js +2 -0
  373. package/esm/themes/theSixtiesUSA.css.ts.vanilla.css +58 -0
  374. package/esm/themes/tokyoDark.css.js +2 -0
  375. package/esm/themes/tokyoDark.css.ts.vanilla.css +58 -0
  376. package/esm/themes/tooSexy.css.js +2 -0
  377. package/esm/themes/tooSexy.css.ts.vanilla.css +58 -0
  378. package/esm/themes/travel.css.js +2 -0
  379. package/esm/themes/travel.css.ts.vanilla.css +58 -0
  380. package/esm/themes/vaporTeal.css.js +2 -0
  381. package/esm/themes/vaporTeal.css.ts.vanilla.css +58 -0
  382. package/esm/themes/vermillion.css.js +2 -0
  383. package/esm/themes/vermillion.css.ts.vanilla.css +58 -0
  384. package/esm/themes/violetDark.css.js +2 -0
  385. package/esm/themes/violetDark.css.ts.vanilla.css +58 -0
  386. package/esm/themes/water.css.js +2 -0
  387. package/esm/themes/water.css.ts.vanilla.css +58 -0
  388. package/esm/themes/win95.css.js +2 -0
  389. package/esm/themes/win95.css.ts.vanilla.css +58 -0
  390. package/package.json +23 -9
  391. package/@types/Alert/index.d.ts +0 -2
  392. package/@types/Avatar/index.d.ts +0 -2
  393. package/@types/Button/index.d.ts +0 -2
  394. package/@types/Checkbox/index.d.ts +0 -2
  395. package/@types/Cursor/Cursor.d.ts +0 -38
  396. package/@types/Cursor/index.d.ts +0 -2
  397. package/@types/Dropdown/index.d.ts +0 -2
  398. package/@types/Fieldset/index.d.ts +0 -2
  399. package/@types/Frame/index.d.ts +0 -2
  400. package/@types/GlobalStyle/Borders.d.ts +0 -15
  401. package/@types/GlobalStyle/GlobalStyle.d.ts +0 -2
  402. package/@types/GlobalStyle/Scrollbar.d.ts +0 -7
  403. package/@types/GlobalStyle/index.d.ts +0 -2
  404. package/@types/Input/index.d.ts +0 -2
  405. package/@types/List/index.d.ts +0 -2
  406. package/@types/Modal/index.d.ts +0 -4
  407. package/@types/ProgressBar/index.d.ts +0 -2
  408. package/@types/RadioButton/index.d.ts +0 -2
  409. package/@types/Range/index.d.ts +0 -2
  410. package/@types/Tabs/index.d.ts +0 -3
  411. package/@types/TaskBar/index.d.ts +0 -2
  412. package/@types/TextArea/index.d.ts +0 -2
  413. package/@types/ThemeProvider/ThemeProvider.d.ts +0 -7
  414. package/@types/ThemeProvider/index.d.ts +0 -2
  415. package/@types/ThemeProvider/themes/azureOrange.d.ts +0 -3
  416. package/@types/ThemeProvider/themes/baseTheme.d.ts +0 -9
  417. package/@types/ThemeProvider/themes/bee.d.ts +0 -3
  418. package/@types/ThemeProvider/themes/blackAndWhite.d.ts +0 -3
  419. package/@types/ThemeProvider/themes/brick.d.ts +0 -3
  420. package/@types/ThemeProvider/themes/candy.d.ts +0 -3
  421. package/@types/ThemeProvider/themes/coldGray.d.ts +0 -3
  422. package/@types/ThemeProvider/themes/counterStrike.d.ts +0 -3
  423. package/@types/ThemeProvider/themes/eggplant.d.ts +0 -3
  424. package/@types/ThemeProvider/themes/highContrast.d.ts +0 -3
  425. package/@types/ThemeProvider/themes/lilac.d.ts +0 -3
  426. package/@types/ThemeProvider/themes/lilacRoseDark.d.ts +0 -3
  427. package/@types/ThemeProvider/themes/maple.d.ts +0 -3
  428. package/@types/ThemeProvider/themes/marine.d.ts +0 -3
  429. package/@types/ThemeProvider/themes/matrix.d.ts +0 -3
  430. package/@types/ThemeProvider/themes/millenium.d.ts +0 -3
  431. package/@types/ThemeProvider/themes/modernDark.d.ts +0 -3
  432. package/@types/ThemeProvider/themes/molecule.d.ts +0 -3
  433. package/@types/ThemeProvider/themes/ninjaTurtles.d.ts +0 -3
  434. package/@types/ThemeProvider/themes/olive.d.ts +0 -3
  435. package/@types/ThemeProvider/themes/pamelaAnderson.d.ts +0 -3
  436. package/@types/ThemeProvider/themes/plum.d.ts +0 -3
  437. package/@types/ThemeProvider/themes/rainyDay.d.ts +0 -3
  438. package/@types/ThemeProvider/themes/rose.d.ts +0 -3
  439. package/@types/ThemeProvider/themes/slate.d.ts +0 -3
  440. package/@types/ThemeProvider/themes/spruce.d.ts +0 -3
  441. package/@types/ThemeProvider/themes/storm.d.ts +0 -3
  442. package/@types/ThemeProvider/themes/theSixtiesUSA.d.ts +0 -3
  443. package/@types/ThemeProvider/themes/tokyoDark.d.ts +0 -3
  444. package/@types/ThemeProvider/themes/tooSexy.d.ts +0 -3
  445. package/@types/ThemeProvider/themes/travel.d.ts +0 -3
  446. package/@types/ThemeProvider/themes/vaporTeal.d.ts +0 -3
  447. package/@types/ThemeProvider/themes/vermillion.d.ts +0 -3
  448. package/@types/ThemeProvider/themes/violetDark.d.ts +0 -3
  449. package/@types/ThemeProvider/themes/water.d.ts +0 -3
  450. package/@types/ThemeProvider/themes/win95.d.ts +0 -3
  451. package/@types/ThemeProvider/themes.d.ts +0 -38
  452. package/@types/TitleBar/index.d.ts +0 -2
  453. package/@types/Tooltip/index.d.ts +0 -2
  454. package/@types/Tree/index.d.ts +0 -2
  455. package/@types/Video/index.d.ts +0 -2
  456. package/@types/shared/test/utils.d.ts +0 -5
  457. package/cjs/Alert/assets/chord.mp3 +0 -0
  458. package/cjs/Alert/index.js +0 -9
  459. package/cjs/Avatar/index.js +0 -9
  460. package/cjs/Button/index.js +0 -9
  461. package/cjs/Checkbox/imgs/check-disabled.svg +0 -1
  462. package/cjs/Checkbox/imgs/check.svg +0 -1
  463. package/cjs/Checkbox/index.js +0 -9
  464. package/cjs/Cursor/Cursor.js +0 -86
  465. package/cjs/Cursor/cursors/AngleUpLeft.png +0 -0
  466. package/cjs/Cursor/cursors/AngleUpRight.png +0 -0
  467. package/cjs/Cursor/cursors/AppStarting.png +0 -0
  468. package/cjs/Cursor/cursors/Arrow.png +0 -0
  469. package/cjs/Cursor/cursors/ArrowRight.png +0 -0
  470. package/cjs/Cursor/cursors/Circle.png +0 -0
  471. package/cjs/Cursor/cursors/ColRezise.png +0 -0
  472. package/cjs/Cursor/cursors/Copy.png +0 -0
  473. package/cjs/Cursor/cursors/Cross.png +0 -0
  474. package/cjs/Cursor/cursors/Crosshair.png +0 -0
  475. package/cjs/Cursor/cursors/DND-ask.png +0 -0
  476. package/cjs/Cursor/cursors/DND-copy.png +0 -0
  477. package/cjs/Cursor/cursors/DND-link.png +0 -0
  478. package/cjs/Cursor/cursors/DownArrow.png +0 -0
  479. package/cjs/Cursor/cursors/DownLeftArrow.png +0 -0
  480. package/cjs/Cursor/cursors/DownRightArrow.png +0 -0
  481. package/cjs/Cursor/cursors/Hand.png +0 -0
  482. package/cjs/Cursor/cursors/HandPointer.png +0 -0
  483. package/cjs/Cursor/cursors/Handsqueezed.png +0 -0
  484. package/cjs/Cursor/cursors/Handwriting.png +0 -0
  485. package/cjs/Cursor/cursors/Help.png +0 -0
  486. package/cjs/Cursor/cursors/LeftArrow.png +0 -0
  487. package/cjs/Cursor/cursors/LeftRight.png +0 -0
  488. package/cjs/Cursor/cursors/LeftRightArrow.png +0 -0
  489. package/cjs/Cursor/cursors/Link.png +0 -0
  490. package/cjs/Cursor/cursors/Move.png +0 -0
  491. package/cjs/Cursor/cursors/NO.png +0 -0
  492. package/cjs/Cursor/cursors/RightArrow.png +0 -0
  493. package/cjs/Cursor/cursors/RowResize.png +0 -0
  494. package/cjs/Cursor/cursors/SizeAll.png +0 -0
  495. package/cjs/Cursor/cursors/Text.png +0 -0
  496. package/cjs/Cursor/cursors/UpArrow.png +0 -0
  497. package/cjs/Cursor/cursors/UpDownArrow.png +0 -0
  498. package/cjs/Cursor/cursors/UpLeftArrow.png +0 -0
  499. package/cjs/Cursor/cursors/UpRightArrow.png +0 -0
  500. package/cjs/Cursor/cursors/VText.png +0 -0
  501. package/cjs/Cursor/cursors/Wait.png +0 -0
  502. package/cjs/Cursor/cursors/X.png +0 -0
  503. package/cjs/Cursor/cursors/ZoomIn.png +0 -0
  504. package/cjs/Cursor/cursors/ZoomOut.png +0 -0
  505. package/cjs/Cursor/index.js +0 -9
  506. package/cjs/Dropdown/imgs/downcaret.png +0 -0
  507. package/cjs/Dropdown/imgs/downcaret.svg +0 -1
  508. package/cjs/Dropdown/index.js +0 -9
  509. package/cjs/Fieldset/index.js +0 -9
  510. package/cjs/Frame/index.js +0 -9
  511. package/cjs/GlobalStyle/Borders.js +0 -88
  512. package/cjs/GlobalStyle/GlobalStyle.js +0 -18
  513. package/cjs/GlobalStyle/Scrollbar.js +0 -59
  514. package/cjs/GlobalStyle/font/MS-Sans-Serif-8pt-bold.ttf +0 -0
  515. package/cjs/GlobalStyle/font/MS-Sans-Serif-8pt.ttf +0 -0
  516. package/cjs/GlobalStyle/font/React95Video-Numbers.eot +0 -0
  517. package/cjs/GlobalStyle/font/React95Video-Numbers.ttf +0 -0
  518. package/cjs/GlobalStyle/font/React95Video-Numbers.woff +0 -0
  519. package/cjs/GlobalStyle/font/React95Video-Numbers.woff2 +0 -0
  520. package/cjs/GlobalStyle/imgs/downcaret.svg +0 -1
  521. package/cjs/GlobalStyle/imgs/dropdown.png +0 -0
  522. package/cjs/GlobalStyle/imgs/leftcaret.svg +0 -1
  523. package/cjs/GlobalStyle/imgs/rightcaret.svg +0 -1
  524. package/cjs/GlobalStyle/imgs/upcaret.svg +0 -1
  525. package/cjs/GlobalStyle/index.js +0 -9
  526. package/cjs/Input/index.js +0 -9
  527. package/cjs/List/index.js +0 -9
  528. package/cjs/Modal/index.js +0 -27
  529. package/cjs/ProgressBar/index.js +0 -9
  530. package/cjs/RadioButton/imgs/radio-checked-disabled.png +0 -0
  531. package/cjs/RadioButton/imgs/radio-checked.png +0 -0
  532. package/cjs/RadioButton/imgs/radio-unchecked-disabled.png +0 -0
  533. package/cjs/RadioButton/imgs/radio-unchecked.png +0 -0
  534. package/cjs/RadioButton/index.js +0 -9
  535. package/cjs/RadioButton/radioButtonStates.js +0 -34
  536. package/cjs/Range/index.js +0 -9
  537. package/cjs/Tabs/index.js +0 -20
  538. package/cjs/TaskBar/index.js +0 -9
  539. package/cjs/TextArea/index.js +0 -9
  540. package/cjs/ThemeProvider/ThemeProvider.js +0 -25
  541. package/cjs/ThemeProvider/index.js +0 -9
  542. package/cjs/ThemeProvider/themes/azureOrange.js +0 -48
  543. package/cjs/ThemeProvider/themes/baseTheme.js +0 -28
  544. package/cjs/ThemeProvider/themes/bee.js +0 -48
  545. package/cjs/ThemeProvider/themes/blackAndWhite.js +0 -48
  546. package/cjs/ThemeProvider/themes/brick.js +0 -48
  547. package/cjs/ThemeProvider/themes/candy.js +0 -48
  548. package/cjs/ThemeProvider/themes/coldGray.js +0 -48
  549. package/cjs/ThemeProvider/themes/counterStrike.js +0 -48
  550. package/cjs/ThemeProvider/themes/eggplant.js +0 -48
  551. package/cjs/ThemeProvider/themes/highContrast.js +0 -48
  552. package/cjs/ThemeProvider/themes/lilac.js +0 -48
  553. package/cjs/ThemeProvider/themes/lilacRoseDark.js +0 -48
  554. package/cjs/ThemeProvider/themes/maple.js +0 -48
  555. package/cjs/ThemeProvider/themes/marine.js +0 -48
  556. package/cjs/ThemeProvider/themes/matrix.js +0 -48
  557. package/cjs/ThemeProvider/themes/millenium.js +0 -48
  558. package/cjs/ThemeProvider/themes/modernDark.js +0 -48
  559. package/cjs/ThemeProvider/themes/molecule.js +0 -48
  560. package/cjs/ThemeProvider/themes/ninjaTurtles.js +0 -48
  561. package/cjs/ThemeProvider/themes/olive.js +0 -48
  562. package/cjs/ThemeProvider/themes/pamelaAnderson.js +0 -48
  563. package/cjs/ThemeProvider/themes/plum.js +0 -48
  564. package/cjs/ThemeProvider/themes/rainyDay.js +0 -48
  565. package/cjs/ThemeProvider/themes/rose.js +0 -48
  566. package/cjs/ThemeProvider/themes/slate.js +0 -48
  567. package/cjs/ThemeProvider/themes/spruce.js +0 -48
  568. package/cjs/ThemeProvider/themes/storm.js +0 -48
  569. package/cjs/ThemeProvider/themes/theSixtiesUSA.js +0 -48
  570. package/cjs/ThemeProvider/themes/tokyoDark.js +0 -48
  571. package/cjs/ThemeProvider/themes/tooSexy.js +0 -48
  572. package/cjs/ThemeProvider/themes/travel.js +0 -48
  573. package/cjs/ThemeProvider/themes/vaporTeal.js +0 -48
  574. package/cjs/ThemeProvider/themes/vermillion.js +0 -48
  575. package/cjs/ThemeProvider/themes/violetDark.js +0 -48
  576. package/cjs/ThemeProvider/themes/water.js +0 -48
  577. package/cjs/ThemeProvider/themes/win95.js +0 -48
  578. package/cjs/ThemeProvider/themes.js +0 -80
  579. package/cjs/TitleBar/index.js +0 -9
  580. package/cjs/Tooltip/index.js +0 -9
  581. package/cjs/Tree/imgs/tree-first.png +0 -0
  582. package/cjs/Tree/imgs/tree-folder-closed.png +0 -0
  583. package/cjs/Tree/imgs/tree-folder-opened.png +0 -0
  584. package/cjs/Tree/imgs/tree-last.png +0 -0
  585. package/cjs/Tree/imgs/tree-mid.png +0 -0
  586. package/cjs/Tree/imgs/tree-node-children.png +0 -0
  587. package/cjs/Tree/index.js +0 -9
  588. package/cjs/Video/buttons/index.js +0 -34
  589. package/cjs/Video/index.js +0 -9
  590. package/cjs/shared/test/utils.js +0 -76
  591. package/esm/Alert/assets/chord.mp3 +0 -0
  592. package/esm/Alert/index.js +0 -2
  593. package/esm/Avatar/index.js +0 -2
  594. package/esm/Button/index.js +0 -2
  595. package/esm/Checkbox/imgs/check-disabled.svg +0 -1
  596. package/esm/Checkbox/imgs/check.svg +0 -1
  597. package/esm/Checkbox/index.js +0 -2
  598. package/esm/Cursor/Cursor.js +0 -79
  599. package/esm/Cursor/cursors/AngleUpLeft.png +0 -0
  600. package/esm/Cursor/cursors/AngleUpRight.png +0 -0
  601. package/esm/Cursor/cursors/AppStarting.png +0 -0
  602. package/esm/Cursor/cursors/Arrow.png +0 -0
  603. package/esm/Cursor/cursors/ArrowRight.png +0 -0
  604. package/esm/Cursor/cursors/Circle.png +0 -0
  605. package/esm/Cursor/cursors/ColRezise.png +0 -0
  606. package/esm/Cursor/cursors/Copy.png +0 -0
  607. package/esm/Cursor/cursors/Cross.png +0 -0
  608. package/esm/Cursor/cursors/Crosshair.png +0 -0
  609. package/esm/Cursor/cursors/DND-ask.png +0 -0
  610. package/esm/Cursor/cursors/DND-copy.png +0 -0
  611. package/esm/Cursor/cursors/DND-link.png +0 -0
  612. package/esm/Cursor/cursors/DownArrow.png +0 -0
  613. package/esm/Cursor/cursors/DownLeftArrow.png +0 -0
  614. package/esm/Cursor/cursors/DownRightArrow.png +0 -0
  615. package/esm/Cursor/cursors/Hand.png +0 -0
  616. package/esm/Cursor/cursors/HandPointer.png +0 -0
  617. package/esm/Cursor/cursors/Handsqueezed.png +0 -0
  618. package/esm/Cursor/cursors/Handwriting.png +0 -0
  619. package/esm/Cursor/cursors/Help.png +0 -0
  620. package/esm/Cursor/cursors/LeftArrow.png +0 -0
  621. package/esm/Cursor/cursors/LeftRight.png +0 -0
  622. package/esm/Cursor/cursors/LeftRightArrow.png +0 -0
  623. package/esm/Cursor/cursors/Link.png +0 -0
  624. package/esm/Cursor/cursors/Move.png +0 -0
  625. package/esm/Cursor/cursors/NO.png +0 -0
  626. package/esm/Cursor/cursors/RightArrow.png +0 -0
  627. package/esm/Cursor/cursors/RowResize.png +0 -0
  628. package/esm/Cursor/cursors/SizeAll.png +0 -0
  629. package/esm/Cursor/cursors/Text.png +0 -0
  630. package/esm/Cursor/cursors/UpArrow.png +0 -0
  631. package/esm/Cursor/cursors/UpDownArrow.png +0 -0
  632. package/esm/Cursor/cursors/UpLeftArrow.png +0 -0
  633. package/esm/Cursor/cursors/UpRightArrow.png +0 -0
  634. package/esm/Cursor/cursors/VText.png +0 -0
  635. package/esm/Cursor/cursors/Wait.png +0 -0
  636. package/esm/Cursor/cursors/X.png +0 -0
  637. package/esm/Cursor/cursors/ZoomIn.png +0 -0
  638. package/esm/Cursor/cursors/ZoomOut.png +0 -0
  639. package/esm/Cursor/index.js +0 -2
  640. package/esm/Dropdown/imgs/downcaret.png +0 -0
  641. package/esm/Dropdown/imgs/downcaret.svg +0 -1
  642. package/esm/Dropdown/index.js +0 -2
  643. package/esm/Fieldset/index.js +0 -2
  644. package/esm/Frame/index.js +0 -2
  645. package/esm/GlobalStyle/Borders.js +0 -82
  646. package/esm/GlobalStyle/GlobalStyle.js +0 -11
  647. package/esm/GlobalStyle/Scrollbar.js +0 -53
  648. package/esm/GlobalStyle/font/MS-Sans-Serif-8pt-bold.ttf +0 -0
  649. package/esm/GlobalStyle/font/MS-Sans-Serif-8pt.ttf +0 -0
  650. package/esm/GlobalStyle/font/React95Video-Numbers.eot +0 -0
  651. package/esm/GlobalStyle/font/React95Video-Numbers.ttf +0 -0
  652. package/esm/GlobalStyle/font/React95Video-Numbers.woff +0 -0
  653. package/esm/GlobalStyle/font/React95Video-Numbers.woff2 +0 -0
  654. package/esm/GlobalStyle/imgs/downcaret.svg +0 -1
  655. package/esm/GlobalStyle/imgs/dropdown.png +0 -0
  656. package/esm/GlobalStyle/imgs/leftcaret.svg +0 -1
  657. package/esm/GlobalStyle/imgs/rightcaret.svg +0 -1
  658. package/esm/GlobalStyle/imgs/upcaret.svg +0 -1
  659. package/esm/GlobalStyle/index.js +0 -2
  660. package/esm/Input/index.js +0 -2
  661. package/esm/List/index.js +0 -2
  662. package/esm/Modal/index.js +0 -4
  663. package/esm/ProgressBar/index.js +0 -2
  664. package/esm/RadioButton/imgs/radio-checked-disabled.png +0 -0
  665. package/esm/RadioButton/imgs/radio-checked.png +0 -0
  666. package/esm/RadioButton/imgs/radio-unchecked-disabled.png +0 -0
  667. package/esm/RadioButton/imgs/radio-unchecked.png +0 -0
  668. package/esm/RadioButton/index.js +0 -2
  669. package/esm/RadioButton/radioButtonStates.js +0 -5
  670. package/esm/Range/index.js +0 -2
  671. package/esm/Tabs/index.js +0 -3
  672. package/esm/TaskBar/index.js +0 -2
  673. package/esm/TextArea/index.js +0 -2
  674. package/esm/ThemeProvider/ThemeProvider.js +0 -15
  675. package/esm/ThemeProvider/index.js +0 -2
  676. package/esm/ThemeProvider/themes/azureOrange.js +0 -40
  677. package/esm/ThemeProvider/themes/baseTheme.js +0 -22
  678. package/esm/ThemeProvider/themes/bee.js +0 -40
  679. package/esm/ThemeProvider/themes/blackAndWhite.js +0 -40
  680. package/esm/ThemeProvider/themes/brick.js +0 -40
  681. package/esm/ThemeProvider/themes/candy.js +0 -40
  682. package/esm/ThemeProvider/themes/coldGray.js +0 -40
  683. package/esm/ThemeProvider/themes/counterStrike.js +0 -40
  684. package/esm/ThemeProvider/themes/eggplant.js +0 -40
  685. package/esm/ThemeProvider/themes/highContrast.js +0 -40
  686. package/esm/ThemeProvider/themes/lilac.js +0 -40
  687. package/esm/ThemeProvider/themes/lilacRoseDark.js +0 -40
  688. package/esm/ThemeProvider/themes/maple.js +0 -40
  689. package/esm/ThemeProvider/themes/marine.js +0 -40
  690. package/esm/ThemeProvider/themes/matrix.js +0 -40
  691. package/esm/ThemeProvider/themes/millenium.js +0 -40
  692. package/esm/ThemeProvider/themes/modernDark.js +0 -40
  693. package/esm/ThemeProvider/themes/molecule.js +0 -40
  694. package/esm/ThemeProvider/themes/ninjaTurtles.js +0 -40
  695. package/esm/ThemeProvider/themes/olive.js +0 -40
  696. package/esm/ThemeProvider/themes/pamelaAnderson.js +0 -40
  697. package/esm/ThemeProvider/themes/plum.js +0 -40
  698. package/esm/ThemeProvider/themes/rainyDay.js +0 -40
  699. package/esm/ThemeProvider/themes/rose.js +0 -40
  700. package/esm/ThemeProvider/themes/slate.js +0 -40
  701. package/esm/ThemeProvider/themes/spruce.js +0 -40
  702. package/esm/ThemeProvider/themes/storm.js +0 -40
  703. package/esm/ThemeProvider/themes/theSixtiesUSA.js +0 -40
  704. package/esm/ThemeProvider/themes/tokyoDark.js +0 -40
  705. package/esm/ThemeProvider/themes/tooSexy.js +0 -40
  706. package/esm/ThemeProvider/themes/travel.js +0 -40
  707. package/esm/ThemeProvider/themes/vaporTeal.js +0 -40
  708. package/esm/ThemeProvider/themes/vermillion.js +0 -40
  709. package/esm/ThemeProvider/themes/violetDark.js +0 -40
  710. package/esm/ThemeProvider/themes/water.js +0 -40
  711. package/esm/ThemeProvider/themes/win95.js +0 -40
  712. package/esm/ThemeProvider/themes.js +0 -73
  713. package/esm/TitleBar/index.js +0 -2
  714. package/esm/Tooltip/index.js +0 -2
  715. package/esm/Tree/imgs/tree-first.png +0 -0
  716. package/esm/Tree/imgs/tree-folder-closed.png +0 -0
  717. package/esm/Tree/imgs/tree-folder-opened.png +0 -0
  718. package/esm/Tree/imgs/tree-last.png +0 -0
  719. package/esm/Tree/imgs/tree-mid.png +0 -0
  720. package/esm/Tree/imgs/tree-node-children.png +0 -0
  721. package/esm/Tree/index.js +0 -2
  722. package/esm/Video/buttons/index.js +0 -5
  723. package/esm/Video/index.js +0 -2
  724. package/esm/shared/test/utils.js +0 -56
@@ -0,0 +1,4 @@
1
+ import * as GlobalStyle_css from "./GlobalStyle/GlobalStyle.css.js";
2
+ export {
3
+ GlobalStyle_css as GlobalStyle
4
+ };
@@ -0,0 +1,5 @@
1
+ import './Input.css.ts.vanilla.css';
2
+ /* empty css *//* empty css */var input = "r95_taf7or0 r95_22fi81";
3
+ export {
4
+ input
5
+ };
@@ -0,0 +1,21 @@
1
+ .r95_taf7or0 {
2
+ outline: none;
3
+ border: none;
4
+ padding-top: var(--r95-space-3);
5
+ padding-right: var(--r95-space-3);
6
+ padding-bottom: var(--r95-space-5);
7
+ padding-left: var(--r95-space-3);
8
+ color: var(--r95-color-materialText);
9
+ background-color: var(--r95-color-inputBackground);
10
+ border-radius: 0;
11
+ border-top-width: var(--r95-space-1);
12
+ border-top-style: solid;
13
+ border-top-color: var(--r95-color-borderDark);
14
+ border-right-width: 0;
15
+ border-bottom-width: 0;
16
+ border-left-width: var(--r95-space-1);
17
+ border-left-style: solid;
18
+ border-left-color: var(--r95-color-borderDark);
19
+ box-shadow: var(--r95-shadow-input);
20
+ -webkit-appearance: none;
21
+ }
@@ -1,8 +1,9 @@
1
- import styled from '@xstyled/styled-components';
2
- import { padding, borders, shadow } from 'styled-system';
3
- import Cursor from '../Cursor';
4
- var Input = styled.input.withConfig({
5
- displayName: "Input",
6
- componentId: "sc-1thk6g5-0"
7
- })(["\n outline: none;\n border: none;\n cursor: text;\n\n padding: 3 3 5 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-radius: 0;\n\n border-top-width: 1;\n border-top-style: 1;\n border-top-color: borderDark;\n\n border-right-width: 0;\n border-bottom-width: 0;\n\n border-left-width: 1;\n border-left-style: 1;\n border-left-color: borderDark;\n\n box-shadow: input;\n\n -webkit-appearance: none;\n\n ", ";\n\n ", "\n ", "\n ", "\n"], Cursor.Text, padding, borders, shadow);
8
- export default Input;
1
+ import * as React from "react";
2
+ import { Frame } from "../Frame/Frame.js";
3
+ import { input } from "./Input.css.js";
4
+ const Input = React.forwardRef(
5
+ (rest, ref) => /* @__PURE__ */ React.createElement(Frame, { ...rest, ref, className: input, as: "input" })
6
+ );
7
+ export {
8
+ Input
9
+ };
@@ -0,0 +1,9 @@
1
+ import './List.css.ts.vanilla.css';
2
+ /* empty css */var divider = "r95_1lxkvz41";
3
+ var list = "r95_1lxkvz42";
4
+ var listItem = "r95_1lxkvz40";
5
+ export {
6
+ divider,
7
+ list,
8
+ listItem
9
+ };
@@ -0,0 +1,66 @@
1
+ .r95_1lxkvz40 {
2
+ position: relative;
3
+ display: flex;
4
+ align-items: center;
5
+ user-select: none;
6
+ margin: var(--r95-space-0);
7
+ padding-block: var(--r95-space-2);
8
+ padding-inline: var(--r95-space-6);
9
+ color: var(--r95-color-materialText);
10
+ }
11
+ .r95_1lxkvz40:hover {
12
+ background-color: var(--r95-color-headerBackground);
13
+ color: var(--r95-color-materialTextInvert);
14
+ }
15
+ .r95_1lxkvz40:not(:has(svg)) {
16
+ padding-inline-start: 26px;
17
+ }
18
+ .r95_1lxkvz40:has(ul):after {
19
+ content: '';
20
+ position: absolute;
21
+ width: var(--r95-space-5);
22
+ height: var(--r95-space-8);
23
+ right: var(--r95-space-8);
24
+ background-color: var(--r95-color-materialText);
25
+ mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTS4wMDQgMTguMDA3bDMuMDE2LS4wMTMuMDEtMy4wMSAyLjE4Ni4wMXYtMi4wMjVsMi44MTYtLjAxLS4wMDktMi45NEgxMHYtMmMuMDEtLjAxLTEuOTktLjAzNi0yLS4wMjYuMDEtLjAxLjAzNS0zLjAxLjAyNi0zIC4wMS0uMDEtMi44NDUtLjAxMS0yLjg1NS0uMDAxdi0yTDMgMi45OWMuMDEtLjAxLjAzNS0zLjAxMS4wMjUtMy4wMDEuMDEtLjAxLTMuMDQuMDEzLTMuMDI1LjAyM2wuMDA0IDE3Ljk5NHoiIGZpbGwtb3BhY2l0eT0ibnVsbCIvPjwvc3ZnPg==');
26
+ mask-position: center center;
27
+ mask-size: var(--r95-space-5) var(--r95-space-8);
28
+ mask-repeat: no-repeat;
29
+ }
30
+ .r95_1lxkvz40:has(ul):hover:after {
31
+ background-color: var(--r95-color-materialTextInvert);
32
+ }
33
+ .r95_1lxkvz40 svg {
34
+ margin-right: var(--r95-space-10);
35
+ min-width: var(--r95-space-16);
36
+ }
37
+ .r95_1lxkvz40 ul {
38
+ display: none;
39
+ position: absolute;
40
+ top: calc(var(--r95-space-2) * -1);
41
+ left: 97%;
42
+ color: var(--r95-color-materialText);
43
+ z-index: var(--r95-zIndex-taskbar);
44
+ }
45
+ .r95_1lxkvz40:has(ul):hover > ul {
46
+ display: block;
47
+ }
48
+ .r95_1lxkvz41 {
49
+ height: var(--r95-space-1);
50
+ border-top-style: solid;
51
+ border-top-width: var(--r95-space-1);
52
+ border-top-color: var(--r95-color-borderDark);
53
+ border-bottom-width: var(--r95-space-1);
54
+ border-bottom-style: solid;
55
+ border-bottom-color: var(--r95-color-borderLightest);
56
+ width: 98%;
57
+ margin-left: var(--r95-space-2);
58
+ }
59
+ .r95_1lxkvz42 {
60
+ background-color: var(--r95-color-material);
61
+ padding: var(--r95-space-2);
62
+ border: none;
63
+ margin: 0;
64
+ list-style: none;
65
+ box-shadow: var(--r95-shadow-out);
66
+ }
package/esm/List/List.js CHANGED
@@ -1,19 +1,16 @@
1
- import styled, { th } from '@xstyled/styled-components';
2
- import ListItem from './ListItem';
3
- import Divider from './ListDivider';
4
- var StyledList = styled.ul.withConfig({
5
- displayName: "List__StyledList",
6
- componentId: "sc-11tpq62-0"
7
- })(["\n background-color: material;\n padding: 5 20 6;\n border: none;\n\n margin: 0;\n padding: 2;\n list-style: none;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", ";\n"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
8
- var width = _ref.width;
9
- return "\n width: ".concat(width, "px;\n ");
10
- });
11
- var List = Object.assign(StyledList, {
1
+ import { ListItem } from "./ListItem.js";
2
+ import { Divider } from "./ListDivider.js";
3
+ import { Frame } from "../Frame/Frame.js";
4
+ import React__default from "react";
5
+ import { list } from "./List.css.js";
6
+ import cn from "classnames";
7
+ const ListRenderer = React__default.forwardRef(
8
+ (rest, ref) => /* @__PURE__ */ React__default.createElement(Frame, { ...rest, ref, className: cn(list, rest.className), as: "ul" })
9
+ );
10
+ const List = Object.assign(ListRenderer, {
12
11
  Item: ListItem,
13
- Divider: Divider
12
+ Divider
14
13
  });
15
- List.displayName = 'List';
16
- List.defaultProps = {
17
- width: 200
14
+ export {
15
+ List
18
16
  };
19
- export default List;
@@ -1,7 +1,19 @@
1
- import styled from '@xstyled/styled-components';
2
- var Divider = styled.li.withConfig({
3
- displayName: "ListDivider__Divider",
4
- componentId: "sc-mgbvoj-0"
5
- })(["\n height: 1px;\n border-top: 1;\n border-top-color: borderDark;\n border-bottom: 1;\n border-bottom-color: borderLightest;\n\n width: 98%;\n margin-left: 2;\n"]);
6
- Divider.displayName = 'List.Divider';
7
- export default Divider;
1
+ import React__default from "react";
2
+ import { Frame } from "../Frame/Frame.js";
3
+ import { divider } from "./List.css.js";
4
+ import cn from "classnames";
5
+ const Divider = React__default.forwardRef(
6
+ (rest, ref) => /* @__PURE__ */ React__default.createElement(
7
+ Frame,
8
+ {
9
+ ...rest,
10
+ ref,
11
+ className: cn(divider, rest.className),
12
+ as: "li"
13
+ }
14
+ )
15
+ );
16
+ Divider.displayName = "List.Divider";
17
+ export {
18
+ Divider
19
+ };
@@ -1,35 +1,12 @@
1
- var _excluded = ["icon", "children"];
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 styled, { css } from '@xstyled/styled-components';
7
- import rightcaret from '../GlobalStyle/imgs/rightcaret.svg';
8
- var Item = styled.li.withConfig({
9
- displayName: "ListItem__Item",
10
- componentId: "sc-1k1qq02-0"
11
- })(["\n position: relative;\n\n display: flex;\n align-items: center;\n margin: 0;\n padding: 2 6;\n\n color: materialText;\n\n svg {\n margin-right: 10;\n }\n\n &:hover {\n background-color: headerBackground;\n color: materialTextInvert;\n }\n\n ul {\n display: none;\n position: absolute;\n top: -2px;\n left: 97%;\n color: materialText;\n z-index: taskbar;\n\n svg {\n width: 16px;\n height: 16px;\n margin-right: 6;\n }\n }\n\n ", ";\n\n ", ";\n"], function (_ref) {
12
- var icon = _ref.icon;
13
- return !icon && 'padding-left: 26px;';
14
- }, function (_ref2) {
15
- var hasList = _ref2.hasList;
16
- return hasList && css(["\n &:after {\n position: absolute;\n width: 5px;\n height: 8px;\n right: 8px;\n\n content: '';\n background-color: materialText;\n mask-image: url('", "');\n mask-position: center center;\n mask-size: 5px 8px;\n mask-repeat: no-repeat;\n\n svg {\n fill: materialTextInvert;\n }\n }\n\n &:hover {\n &:after {\n background-color: materialTextInvert;\n }\n\n ul {\n display: block;\n }\n }\n "], rightcaret);
17
- });
18
- var ListItem = /*#__PURE__*/forwardRef(function (_ref3, ref) {
19
- var icon = _ref3.icon,
20
- _ref3$children = _ref3.children,
21
- children = _ref3$children === void 0 ? [] : _ref3$children,
22
- rest = _objectWithoutProperties(_ref3, _excluded);
23
- return /*#__PURE__*/React.createElement(Item, _extends({}, rest, {
24
- icon: !!icon,
25
- ref: ref,
26
- hasList: Boolean(children && React.Children.map(children, function (child) {
27
- return /*#__PURE__*/React.isValidElement(child);
28
- }).some(function (child) {
29
- return child;
30
- })),
31
- className: "default"
32
- }), icon, children);
33
- });
34
- ListItem.displayName = 'List.Item';
35
- export default ListItem;
1
+ import React__default, { forwardRef } from "react";
2
+ import cn from "classnames";
3
+ import { Frame } from "../Frame/Frame.js";
4
+ import { listItem } from "./List.css.js";
5
+ const Item = React__default.forwardRef((rest, ref) => /* @__PURE__ */ React__default.createElement(Frame, { ...rest, ref, className: cn(listItem, rest.className), as: "li" }));
6
+ const ListItem = forwardRef(
7
+ ({ icon, children = [], ...rest }, ref) => /* @__PURE__ */ React__default.createElement(Item, { ...rest, ref }, icon, children)
8
+ );
9
+ ListItem.displayName = "List.Item";
10
+ export {
11
+ ListItem
12
+ };
@@ -0,0 +1,14 @@
1
+ import './Modal.css.ts.vanilla.css';
2
+ /* empty css */import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
+ var buttonWrapper = "r95_1txblt62";
4
+ var content = "r95_1txblt63";
5
+ var menuItem = createRuntimeFn({ defaultClassName: "r95_1txblt65", variantClassNames: { active: { true: "r95_1txblt66" } }, defaultVariants: {}, compoundVariants: [] });
6
+ var menuWrapper = "r95_1txblt64";
7
+ var modalWrapper = createRuntimeFn({ defaultClassName: "r95_1txblt60", variantClassNames: { active: { true: "r95_1txblt61" } }, defaultVariants: {}, compoundVariants: [] });
8
+ export {
9
+ buttonWrapper,
10
+ content,
11
+ menuItem,
12
+ menuWrapper,
13
+ modalWrapper
14
+ };
@@ -0,0 +1,55 @@
1
+ .r95_1txblt60 {
2
+ display: flex;
3
+ flex-direction: column;
4
+ position: fixed;
5
+ padding: 2px 2px 8px;
6
+ top: 50px;
7
+ background-color: var(--r95-color-material);
8
+ box-shadow: var(--r95-shadow-out);
9
+ }
10
+ .r95_1txblt61 {
11
+ z-index: var(--r95-zIndex-modal);
12
+ }
13
+ .r95_1txblt62 {
14
+ display: flex;
15
+ gap: 6px;
16
+ flex-direction: row;
17
+ padding: 0 6px 6px 6px;
18
+ }
19
+ .r95_1txblt62 button {
20
+ min-width: 70px;
21
+ }
22
+ .r95_1txblt63 {
23
+ flex-grow: 1;
24
+ display: flex;
25
+ flex-direction: column;
26
+ padding: 6px;
27
+ }
28
+ .r95_1txblt64 {
29
+ display: flex;
30
+ flex-direction: row;
31
+ list-style: none;
32
+ margin: 0;
33
+ padding-left: 0;
34
+ padding-top: 1px;
35
+ padding-bottom: 1px;
36
+ border-bottom-style: solid;
37
+ border-width: 1px;
38
+ border-bottom-color: var(--r95-color-borderDark);
39
+ box-shadow: 0 1px 0 0 var(--r95-color-borderLighter);
40
+ }
41
+ .r95_1txblt65 {
42
+ position: relative;
43
+ padding-left: 6px;
44
+ padding-right: 6px;
45
+ user-select: none;
46
+ }
47
+ .r95_1txblt66 {
48
+ background-color: var(--r95-color-material);
49
+ color: var(--r95-color-materialTextInvert);
50
+ }
51
+ .r95_1txblt65 ul {
52
+ position: absolute;
53
+ left: 0;
54
+ color: var(--r95-color-materialText);
55
+ }
@@ -1,176 +1,134 @@
1
- var _excluded = ["hasWindowButton", "buttons", "buttonsAlignment", "children", "closeModal", "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 styled, { css, th } from '@xstyled/styled-components';
12
- import * as React from 'react';
13
- import Draggable from 'react-draggable';
14
- import Button from '../Button';
15
- import TitleBar from '../TitleBar';
16
- import ModalContext from './ModalContext';
17
- var ModalWrapper = styled.div.withConfig({
18
- displayName: "Modal__ModalWrapper",
19
- componentId: "sc-4ouk59-0"
20
- })(["\n display: flex;\n flex-direction: column;\n\n position: fixed;\n\n padding: 2 2 8;\n\n top: 50px;\n\n background-color: material;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 1px ", ";\n\n ", "\n ", "\n"], th('colors.borderLightest'), th('colors.borderDark'), th('colors.borderDarkest'), function (_ref) {
21
- var width = _ref.width,
22
- height = _ref.height;
23
- return "\n width: ".concat(width ? "".concat(width, "px") : 'auto', ";\n height: ").concat(height ? "".concat(height, "px") : 'auto', ";\n ");
24
- }, function (_ref2) {
25
- var active = _ref2.active;
26
- return active ? css(["\n z-index: modal;\n "]) : '';
27
- });
28
- var Content = styled.div.withConfig({
29
- displayName: "Modal__Content",
30
- componentId: "sc-4ouk59-1"
31
- })(["\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n padding: 6;\n"]);
32
- var ButtonWrapper = styled.div.withConfig({
33
- displayName: "Modal__ButtonWrapper",
34
- componentId: "sc-4ouk59-2"
35
- })(["\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n\n padding: 0 6 6 6;\n\n & ", " {\n margin-right: 6;\n min-width: 70px;\n\n &:last-child {\n margin-right: 0;\n }\n }\n"], function (_ref3) {
36
- var _ref3$buttonsAlignmen = _ref3.buttonsAlignment,
37
- buttonsAlignment = _ref3$buttonsAlignmen === void 0 ? 'center' : _ref3$buttonsAlignmen;
38
- return buttonsAlignment;
39
- }, Button);
40
- var MenuWrapper = styled.ul.withConfig({
41
- displayName: "Modal__MenuWrapper",
42
- componentId: "sc-4ouk59-3"
43
- })(["\n display: flex;\n flex-direction: row;\n\n list-style: none;\n margin: 0;\n padding-left: 0;\n padding-bottom: 3;\n\n border-bottom-style: solid;\n border-width: 1;\n border-bottom-color: borderDark;\n\n box-shadow: 0 1px 0 0 ", ";\n"], th('colors.borderLighter'));
44
- var MenuItem = styled.li.withConfig({
45
- displayName: "Modal__MenuItem",
46
- componentId: "sc-4ouk59-4"
47
- })(["\n position: relative;\n padding-left: 6;\n padding-right: 6;\n\n user-select: none;\n\n ul {\n position: absolute;\n left: 0;\n color: ", ";\n }\n\n ", ";\n"], th('colors.materialText'), function (_ref4) {
48
- var active = _ref4.active;
49
- return active && css(["\n background-color: primary;\n color: materialTextInvert;\n "]);
50
- });
51
- MenuItem.displayName = 'MenuItem';
52
- var ModalRenderer = function ModalRenderer(_ref5, ref) {
53
- var _ref5$hasWindowButton = _ref5.hasWindowButton,
54
- hasButton = _ref5$hasWindowButton === void 0 ? true : _ref5$hasWindowButton,
55
- buttons = _ref5.buttons,
56
- buttonsAlignment = _ref5.buttonsAlignment,
57
- children = _ref5.children,
58
- closeModal = _ref5.closeModal,
59
- defaultPosition = _ref5.defaultPosition,
60
- positionOffset = _ref5.positionOffset,
61
- height = _ref5.height,
62
- icon = _ref5.icon,
63
- menu = _ref5.menu,
64
- title = _ref5.title,
65
- width = _ref5.width,
66
- rest = _objectWithoutProperties(_ref5, _excluded);
67
- var _React$useContext = React.useContext(ModalContext),
68
- addWindows = _React$useContext.addWindows,
69
- removeWindow = _React$useContext.removeWindow,
70
- updateWindow = _React$useContext.updateWindow,
71
- setActiveWindow = _React$useContext.setActiveWindow,
72
- activeWindow = _React$useContext.activeWindow;
73
- var _React$useState = React.useState(null),
74
- _React$useState2 = _slicedToArray(_React$useState, 2),
75
- id = _React$useState2[0],
76
- setId = _React$useState2[1];
77
- var _React$useState3 = React.useState(''),
78
- _React$useState4 = _slicedToArray(_React$useState3, 2),
79
- menuOpened = _React$useState4[0],
80
- setMenuOpened = _React$useState4[1];
81
- var _React$useState5 = React.useState(false),
82
- _React$useState6 = _slicedToArray(_React$useState5, 2),
83
- isActive = _React$useState6[0],
84
- setIsActive = _React$useState6[1];
85
- 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(() => {
86
38
  if (!id) {
87
- var newId = addWindows({
88
- icon: icon,
89
- title: title,
90
- hasButton: hasButton
91
- });
39
+ const newId = addWindows({ icon, title, hasButton });
92
40
  if (newId) {
93
41
  setId(newId);
94
42
  setActiveWindow(newId);
95
43
  }
96
44
  } else {
97
- updateWindow(id, {
98
- icon: icon,
99
- title: title,
100
- hasButton: hasButton
101
- });
45
+ updateWindow(id, { icon, title, hasButton });
102
46
  }
103
47
  }, [id, icon, title, hasButton]);
104
- React.useEffect(function () {
105
- return function () {
48
+ React.useEffect(() => {
49
+ return () => {
106
50
  if (id) {
107
51
  removeWindow(id);
108
52
  }
109
53
  };
110
54
  }, [id]);
111
- React.useEffect(function () {
112
- return setIsActive(id === activeWindow);
113
- }, [id, activeWindow]);
114
- return /*#__PURE__*/React.createElement(Draggable, {
115
- handle: ".draggable",
116
- defaultPosition: defaultPosition,
117
- positionOffset: positionOffset,
118
- onMouseDown: id ? function () {
119
- return setActiveWindow(id);
120
- } : undefined
121
- }, /*#__PURE__*/React.createElement(ModalWrapper, _extends({
122
- width: width,
123
- height: height
124
- }, rest, {
125
- active: isActive,
126
- ref: ref
127
- }), /*#__PURE__*/React.createElement(TitleBar, {
128
- active: isActive,
129
- icon: icon,
130
- title: title,
131
- className: "draggable"
132
- }, /*#__PURE__*/React.createElement(TitleBar.OptionsBox, null, /*#__PURE__*/React.createElement(TitleBar.Option, null, "?"), /*#__PURE__*/React.createElement(TitleBar.Option, {
133
- onClick: closeModal
134
- }, "X"))), menu && menu.length > 0 && /*#__PURE__*/React.createElement(MenuWrapper, null, menu.map(function (_ref6) {
135
- var name = _ref6.name,
136
- list = _ref6.list;
137
- var active = menuOpened === name;
138
- return /*#__PURE__*/React.createElement(MenuItem, {
139
- key: name,
140
- onMouseDown: function onMouseDown() {
141
- 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
142
72
  },
143
- active: active
144
- }, name, active && list);
145
- })), /*#__PURE__*/React.createElement(Content, {
146
- onClick: function onClick() {
147
- return setMenuOpened('');
148
- }
149
- }, children), buttons && buttons.length > 0 && /*#__PURE__*/React.createElement(ButtonWrapper, {
150
- buttonsAlignment: buttonsAlignment
151
- }, buttons.map(function (button) {
152
- return /*#__PURE__*/React.createElement(Button, {
153
- key: button.value,
154
- onClick: button.onClick,
155
- value: button.value
156
- }, button.value);
157
- }))));
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
+ );
158
115
  };
159
- var Modal = /*#__PURE__*/React.forwardRef(ModalRenderer);
160
- Modal.displayName = 'Modal';
116
+ const Modal = React.forwardRef(
117
+ ModalRenderer
118
+ );
119
+ Modal.displayName = "Modal";
161
120
  Modal.defaultProps = {
162
- icon: undefined,
163
- title: 'Modal',
164
- buttonsAlignment: 'flex-end',
121
+ icon: void 0,
122
+ title: "Modal",
165
123
  children: null,
166
- defaultPosition: {
167
- x: 0,
168
- y: 0
169
- },
124
+ defaultPosition: { x: 0, y: 0 },
170
125
  buttons: [],
171
126
  menu: [],
172
- width: undefined,
173
- height: undefined,
174
- closeModal: function closeModal() {}
127
+ width: void 0,
128
+ height: void 0,
129
+ onClose: () => {
130
+ }
131
+ };
132
+ export {
133
+ Modal
175
134
  };
176
- export default Modal;
@@ -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
+ };