@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
package/cjs/Tabs/Tabs.js CHANGED
@@ -1,65 +1,50 @@
1
1
  "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Tabs = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _classnames = _interopRequireDefault(require("classnames"));
10
- var _Frame = _interopRequireDefault(require("../Frame"));
11
- var _Tab = require("./Tab");
12
- var _Tabs = require("./Tabs.css");
13
- var _excluded = ["children", "defaultActiveTab", "onChange"];
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
17
- 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); }
18
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
- 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."); }
20
- 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); }
21
- 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; }
22
- 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; } }
23
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
- 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; }
25
- 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; }
26
- var Tabs = exports.Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
27
- var children = _ref.children,
28
- defaultActiveTab = _ref.defaultActiveTab,
29
- onChange = _ref.onChange,
30
- rest = _objectWithoutProperties(_ref, _excluded);
31
- var _ref2 = _react["default"].Children.toArray(children),
32
- _ref3 = _slicedToArray(_ref2, 1),
33
- firstTab = _ref3[0];
34
- var _React$useState = _react["default"].useState(defaultActiveTab || firstTab.props.title),
35
- _React$useState2 = _slicedToArray(_React$useState, 2),
36
- activeTab = _React$useState2[0],
37
- setActiveTab = _React$useState2[1];
38
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Frame["default"], _extends({}, rest, {
39
- className: (0, _classnames["default"])(_Tabs.navbar, rest.className),
40
- as: "ol",
41
- ref: ref
42
- }), _react["default"].Children.map(children, function (child) {
43
- var _child$props = child.props,
44
- title = _child$props.title,
45
- disabled = _child$props.disabled;
46
- return /*#__PURE__*/_react["default"].createElement(_Tab.Tab, _extends({
47
- key: title
48
- }, child.props, {
49
- activeTab: activeTab,
50
- onClick: function onClick(e) {
51
- if (!disabled) {
52
- if (onChange) {
53
- onChange(title, e);
54
- }
55
- setActiveTab(title);
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const cn = require("classnames");
5
+ const Tab = require("./Tab.js");
6
+ const Tabs_css = require("./Tabs.css.js");
7
+ const Frame = require("../Frame/Frame.js");
8
+ const Tabs = React.forwardRef(
9
+ ({ children, defaultActiveTab, onChange, ...rest }, ref) => {
10
+ const [firstTab] = React.Children.toArray(children);
11
+ const [activeTab, setActiveTab] = React.useState(
12
+ defaultActiveTab || firstTab.props.title
13
+ );
14
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
15
+ Frame.Frame,
16
+ {
17
+ ...rest,
18
+ className: cn(Tabs_css.navbar, rest.className),
19
+ as: "ol",
20
+ ref
21
+ },
22
+ React.Children.map(
23
+ children,
24
+ (child) => {
25
+ const { title, disabled } = child.props;
26
+ return /* @__PURE__ */ React.createElement(
27
+ Tab.Tab,
28
+ {
29
+ key: title,
30
+ ...child.props,
31
+ activeTab,
32
+ onClick: (e) => {
33
+ if (!disabled) {
34
+ if (onChange) {
35
+ onChange(title, e);
36
+ }
37
+ setActiveTab(title);
38
+ }
39
+ }
40
+ }
41
+ );
56
42
  }
57
- }
58
- }));
59
- })), /*#__PURE__*/_react["default"].createElement(_Frame["default"], {
60
- className: _Tabs.navContainer,
61
- width: rest.width || rest.w
62
- }, _react["default"].Children.map(children, function (child) {
63
- return child.props.title === activeTab && child.props.children;
64
- })));
65
- });
43
+ )
44
+ ), /* @__PURE__ */ React.createElement(Frame.Frame, { className: Tabs_css.navContainer, width: rest.width || rest.w }, React.Children.map(
45
+ children,
46
+ (child) => child.props.title === activeTab && child.props.children
47
+ )));
48
+ }
49
+ );
50
+ exports.Tabs = Tabs;
@@ -1,50 +1,34 @@
1
1
  "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Clock = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _Frame = _interopRequireDefault(require("../Frame"));
10
- var _Tooltip = _interopRequireDefault(require("../Tooltip"));
11
- var _TaskBar = require("./TaskBar.css");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
- 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."); }
17
- 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); }
18
- 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; }
19
- 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; } }
20
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
- var Clock = exports.Clock = function Clock() {
22
- var _useState = (0, _react.useState)(''),
23
- _useState2 = _slicedToArray(_useState, 2),
24
- timer = _useState2[0],
25
- setTimer = _useState2[1];
26
- (0, _react.useEffect)(function () {
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const Frame = require("../Frame/Frame.js");
5
+ const Tooltip = require("../Tooltip/Tooltip.js");
6
+ const TaskBar_css = require("./TaskBar.css.js");
7
+ const Clock = () => {
8
+ const [timer, setTimer] = React.useState("");
9
+ React.useEffect(() => {
27
10
  function checkTime(i) {
28
- return i < 10 ? "0".concat(i) : i;
11
+ return i < 10 ? `0${i}` : i;
29
12
  }
30
- var interval = setInterval(function () {
31
- var today = new Date();
32
- var h = today.getHours();
33
- var m = today.getMinutes();
34
- setTimer("".concat(checkTime(h), ":").concat(checkTime(m)));
13
+ const interval = setInterval(() => {
14
+ const today = /* @__PURE__ */ new Date();
15
+ const h = today.getHours();
16
+ const m = today.getMinutes();
17
+ setTimer(`${checkTime(h)}:${checkTime(m)}`);
35
18
  });
36
- return function () {
37
- return clearInterval(interval);
38
- };
19
+ return () => clearInterval(interval);
39
20
  }, []);
40
- return /*#__PURE__*/_react["default"].createElement(_Frame["default"], {
41
- boxShadow: "$in",
42
- px: "$6",
43
- py: "$2",
44
- display: "flex",
45
- justifyContent: "center",
46
- alignItems: "center"
47
- }, /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
48
- className: _TaskBar.tooltip
49
- }, timer));
50
- };
21
+ return /* @__PURE__ */ React.createElement(
22
+ Frame.Frame,
23
+ {
24
+ boxShadow: "$in",
25
+ px: "$6",
26
+ py: "$2",
27
+ display: "flex",
28
+ justifyContent: "center",
29
+ alignItems: "center"
30
+ },
31
+ /* @__PURE__ */ React.createElement(Tooltip.Tooltip, { className: TaskBar_css.tooltip }, timer)
32
+ );
33
+ };
34
+ exports.Clock = Clock;
@@ -1,82 +1,12 @@
1
+ require('./TaskBar.css.ts.vanilla.css');
1
2
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.windowsButton = exports.truncate = exports.tooltip = exports.icon = void 0;
7
- var _css = require("@vanilla-extract/css");
8
- var _recipes = require("@vanilla-extract/recipes");
9
- var _contract = require("../themes/contract.css");
10
- var _cssUtils = require("@vanilla-extract/css-utils");
11
- var truncate = exports.truncate = (0, _css.style)({
12
- overflow: 'hidden',
13
- display: '-webkit-box',
14
- WebkitLineClamp: '1',
15
- WebkitBoxOrient: 'vertical',
16
- textAlign: 'left'
17
- });
18
- var tooltip = exports.tooltip = (0, _css.style)({});
19
- (0, _css.globalStyle)("".concat(tooltip, " div:first-child"), {
20
- right: 0
21
- });
22
- var windowsButton = exports.windowsButton = (0, _recipes.recipe)({
23
- base: {
24
- display: 'inline-flex',
25
- justifyContent: 'flex-start',
26
- alignItems: 'center',
27
- backgroundColor: _contract.contract.colors.material,
28
- paddingBlock: _contract.contract.space[2],
29
- paddingInline: _contract.contract.space[3],
30
- marginRight: _contract.contract.space[2],
31
- maxWidth: '150px',
32
- border: 'none',
33
- outline: 'none'
34
- },
35
- variants: {
36
- small: {
37
- "true": {
38
- paddingInline: _contract.contract.space[5]
39
- },
40
- "false": {
41
- width: '100%'
42
- }
43
- },
44
- active: {
45
- "true": {
46
- boxShadow: _contract.contract.shadows["in"]
47
- },
48
- "false": {
49
- boxShadow: _contract.contract.shadows.out
50
- }
51
- }
52
- },
53
- compoundVariants: [{
54
- variants: {
55
- active: true,
56
- small: true
57
- },
58
- style: {
59
- paddingTop: _contract.contract.space[4],
60
- paddingBottom: _contract.contract.space[0],
61
- outline: "".concat(_contract.contract.space[1], " dotted ").concat(_contract.contract.colors.borderDarkest),
62
- outlineOffset: _cssUtils.calc.negate(_contract.contract.space[4])
63
- }
64
- }, {
65
- variants: {
66
- active: true,
67
- small: false
68
- },
69
- style: {
70
- backgroundColor: _contract.contract.colors.borderLighter
71
- }
72
- }]
73
- });
74
- var icon = exports.icon = (0, _css.style)({});
75
- (0, _css.globalStyle)("".concat(icon, " svg"), {
76
- marginTop: _contract.contract.space[4],
77
- marginRight: _contract.contract.space[4],
78
- minWidth: _contract.contract.space[2],
79
- width: _contract.contract.space[20],
80
- height: _contract.contract.space[20],
81
- shapeRendering: 'auto'
82
- });
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ /* empty css */const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
5
+ var icon = "r95_1ct83mo9";
6
+ var tooltip = "r95_1ct83mo1";
7
+ var truncate = "r95_1ct83mo0";
8
+ var windowsButton = createRuntimeFn.createRuntimeFn({ defaultClassName: "r95_1ct83mo2", variantClassNames: { small: { true: "r95_1ct83mo3", false: "r95_1ct83mo4" }, active: { true: "r95_1ct83mo5", false: "r95_1ct83mo6" } }, defaultVariants: {}, compoundVariants: [[{ active: true, small: true }, "r95_1ct83mo7"], [{ active: true, small: false }, "r95_1ct83mo8"]] });
9
+ exports.icon = icon;
10
+ exports.tooltip = tooltip;
11
+ exports.truncate = truncate;
12
+ exports.windowsButton = windowsButton;
@@ -0,0 +1,51 @@
1
+ .r95_1ct83mo0 {
2
+ overflow: hidden;
3
+ display: -webkit-box;
4
+ -webkit-line-clamp: 1;
5
+ -webkit-box-orient: vertical;
6
+ text-align: left;
7
+ }
8
+ .r95_1ct83mo1 div:first-child {
9
+ right: 0;
10
+ }
11
+ .r95_1ct83mo2 {
12
+ display: inline-flex;
13
+ justify-content: flex-start;
14
+ align-items: center;
15
+ background-color: var(--r95-color-material);
16
+ padding-block: var(--r95-space-2);
17
+ padding-inline: var(--r95-space-3);
18
+ margin-right: var(--r95-space-2);
19
+ max-width: 150px;
20
+ border: none;
21
+ outline: none;
22
+ }
23
+ .r95_1ct83mo3 {
24
+ padding-inline: var(--r95-space-5);
25
+ }
26
+ .r95_1ct83mo4 {
27
+ width: 100%;
28
+ }
29
+ .r95_1ct83mo5 {
30
+ box-shadow: var(--r95-shadow-in);
31
+ }
32
+ .r95_1ct83mo6 {
33
+ box-shadow: var(--r95-shadow-out);
34
+ }
35
+ .r95_1ct83mo7 {
36
+ padding-top: var(--r95-space-4);
37
+ padding-bottom: var(--r95-space-0);
38
+ outline: var(--r95-space-1) dotted var(--r95-color-borderDarkest);
39
+ outline-offset: calc(var(--r95-space-4) * -1);
40
+ }
41
+ .r95_1ct83mo8 {
42
+ background-color: var(--r95-color-borderLighter);
43
+ }
44
+ .r95_1ct83mo9 svg {
45
+ margin-top: var(--r95-space-4);
46
+ margin-right: var(--r95-space-4);
47
+ min-width: var(--r95-space-2);
48
+ width: var(--r95-space-20);
49
+ height: var(--r95-space-20);
50
+ shape-rendering: auto;
51
+ }
@@ -1,93 +1,74 @@
1
1
  "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.TaskBar = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _Modal = require("../Modal");
10
- var _Frame = _interopRequireDefault(require("../Frame"));
11
- var _Clock = require("./Clock");
12
- var _WindowButton = require("./WindowButton");
13
- var _icons = require("@react95/icons");
14
- var _TaskBar = require("./TaskBar.css");
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
- 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."); }
20
- 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); }
21
- 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; }
22
- 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; } }
23
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
- var TaskBar = exports.TaskBar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
25
- var list = _ref.list;
26
- var _useState = (0, _react.useState)(false),
27
- _useState2 = _slicedToArray(_useState, 2),
28
- showList = _useState2[0],
29
- toggleShowList = _useState2[1];
30
- var _useState3 = (0, _react.useState)(false),
31
- _useState4 = _slicedToArray(_useState3, 2),
32
- activeStart = _useState4[0],
33
- toggleActiveStart = _useState4[1];
34
- var _useContext = (0, _react.useContext)(_Modal.ModalContext),
35
- windows = _useContext.windows,
36
- activeWindow = _useContext.activeWindow,
37
- setActiveWindow = _useContext.setActiveWindow;
38
- return /*#__PURE__*/_react["default"].createElement(_Frame["default"], {
39
- position: "fixed",
40
- bottom: "0px",
41
- left: "0px",
42
- right: "0px",
43
- display: "flex",
44
- justifyContent: "space-between",
45
- h: "28px",
46
- w: "100%",
47
- padding: "$2",
48
- zIndex: "$taskbar",
49
- backgroundColor: "$material",
50
- boxShadow: "$out",
51
- ref: ref
52
- }, showList && /*#__PURE__*/_react["default"].createElement(_Frame["default"], {
53
- position: "absolute",
54
- bottom: "28px",
55
- onClick: function onClick() {
56
- toggleActiveStart(false);
57
- toggleShowList(false);
58
- }
59
- }, list), /*#__PURE__*/_react["default"].createElement(_WindowButton.WindowButton, {
60
- small: true,
61
- icon: /*#__PURE__*/_react["default"].createElement(_icons.Logo, {
62
- variant: "32x32_4"
63
- }),
64
- active: activeStart,
65
- onClick: function onClick() {
66
- toggleActiveStart(!activeStart);
67
- toggleShowList(!showList);
68
- }
69
- }, "Start"), /*#__PURE__*/_react["default"].createElement(_Frame["default"], {
70
- w: "100%",
71
- paddingLeft: "$0",
72
- ml: "$2",
73
- display: "flex"
74
- }, Object.entries(windows).map(function (_ref2) {
75
- var _ref3 = _slicedToArray(_ref2, 2),
76
- windowId = _ref3[0],
77
- _ref3$ = _ref3[1],
78
- icon = _ref3$.icon,
79
- title = _ref3$.title,
80
- hasButton = _ref3$.hasButton;
81
- return hasButton && /*#__PURE__*/_react["default"].createElement(_WindowButton.WindowButton, {
82
- key: windowId,
83
- icon: icon,
84
- active: windowId === activeWindow,
85
- onClick: function onClick() {
86
- return setActiveWindow(windowId);
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const ModalContext = require("../Modal/ModalContext.js");
5
+ const Frame = require("../Frame/Frame.js");
6
+ const Clock = require("./Clock.js");
7
+ const WindowButton = require("./WindowButton.js");
8
+ const icons = require("@react95/icons");
9
+ const TaskBar_css = require("./TaskBar.css.js");
10
+ const TaskBar = React.forwardRef(
11
+ ({ list }, ref) => {
12
+ const [showList, toggleShowList] = React.useState(false);
13
+ const [activeStart, toggleActiveStart] = React.useState(false);
14
+ const { windows, activeWindow, setActiveWindow } = React.useContext(ModalContext.ModalContext);
15
+ return /* @__PURE__ */ React.createElement(
16
+ Frame.Frame,
17
+ {
18
+ position: "fixed",
19
+ bottom: "0px",
20
+ left: "0px",
21
+ right: "0px",
22
+ display: "flex",
23
+ justifyContent: "space-between",
24
+ h: "28px",
25
+ w: "100%",
26
+ padding: "$2",
27
+ zIndex: "$taskbar",
28
+ backgroundColor: "$material",
29
+ boxShadow: "$out",
30
+ ref
87
31
  },
88
- small: false
89
- }, /*#__PURE__*/_react["default"].createElement("div", {
90
- className: _TaskBar.truncate
91
- }, title));
92
- })), /*#__PURE__*/_react["default"].createElement(_Clock.Clock, null));
93
- });
32
+ showList && /* @__PURE__ */ React.createElement(
33
+ Frame.Frame,
34
+ {
35
+ position: "absolute",
36
+ bottom: "28px",
37
+ onClick: () => {
38
+ toggleActiveStart(false);
39
+ toggleShowList(false);
40
+ }
41
+ },
42
+ list
43
+ ),
44
+ /* @__PURE__ */ React.createElement(
45
+ WindowButton.WindowButton,
46
+ {
47
+ small: true,
48
+ icon: /* @__PURE__ */ React.createElement(icons.Logo, { variant: "32x32_4" }),
49
+ active: activeStart,
50
+ onClick: () => {
51
+ toggleActiveStart(!activeStart);
52
+ toggleShowList(!showList);
53
+ }
54
+ },
55
+ "Start"
56
+ ),
57
+ /* @__PURE__ */ React.createElement(Frame.Frame, { w: "100%", paddingLeft: "$0", ml: "$2", display: "flex" }, Object.entries(windows).map(
58
+ ([windowId, { icon, title, hasButton }]) => hasButton && /* @__PURE__ */ React.createElement(
59
+ WindowButton.WindowButton,
60
+ {
61
+ key: windowId,
62
+ icon,
63
+ active: windowId === activeWindow,
64
+ onClick: () => setActiveWindow(windowId),
65
+ small: false
66
+ },
67
+ /* @__PURE__ */ React.createElement("div", { className: TaskBar_css.truncate }, title)
68
+ )
69
+ )),
70
+ /* @__PURE__ */ React.createElement(Clock.Clock, null)
71
+ );
72
+ }
73
+ );
74
+ exports.TaskBar = TaskBar;
@@ -1,34 +1,17 @@
1
1
  "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.WindowButton = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var styles = _interopRequireWildcard(require("./TaskBar.css"));
10
- var _excluded = ["children", "small", "icon", "active"];
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
- 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); }
14
- 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; }
15
- 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; }
16
- var WindowButton = exports.WindowButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
17
- var children = _ref.children,
18
- _ref$small = _ref.small,
19
- small = _ref$small === void 0 ? false : _ref$small,
20
- icon = _ref.icon,
21
- _ref$active = _ref.active,
22
- active = _ref$active === void 0 ? false : _ref$active,
23
- props = _objectWithoutProperties(_ref, _excluded);
24
- return /*#__PURE__*/_react["default"].createElement("button", _extends({
25
- className: styles.windowsButton({
26
- active: active,
27
- small: small
28
- })
29
- }, props, {
30
- ref: ref
31
- }), /*#__PURE__*/_react["default"].createElement("div", {
32
- className: styles.icon
33
- }, icon), children);
34
- });
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const TaskBar_css = require("./TaskBar.css.js");
5
+ const WindowButton = React.forwardRef(
6
+ ({ children, small = false, icon, active = false, ...props }, ref) => /* @__PURE__ */ React.createElement(
7
+ "button",
8
+ {
9
+ className: TaskBar_css.windowsButton({ active, small }),
10
+ ...props,
11
+ ref
12
+ },
13
+ /* @__PURE__ */ React.createElement("div", { className: TaskBar_css.icon }, icon),
14
+ children
15
+ )
16
+ );
17
+ exports.WindowButton = WindowButton;
@@ -1,20 +1,26 @@
1
1
  "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.TextArea = void 0;
8
- var React = _interopRequireWildcard(require("react"));
9
- var _Frame = require("../Frame/Frame");
10
- var _Input = require("../Input/Input.css");
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
- 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); }
14
- var TextArea = exports.TextArea = /*#__PURE__*/React.forwardRef(function (rest, ref) {
15
- return /*#__PURE__*/React.createElement(_Frame.Frame, _extends({}, rest, {
16
- ref: ref,
17
- className: _Input.input,
18
- as: "textarea"
19
- }));
20
- });
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ const Frame = require("../Frame/Frame.js");
5
+ const Input_css = require("../Input/Input.css.js");
6
+ function _interopNamespaceDefault(e) {
7
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
8
+ if (e) {
9
+ for (const k in e) {
10
+ if (k !== "default") {
11
+ const d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: () => e[k]
15
+ });
16
+ }
17
+ }
18
+ }
19
+ n.default = e;
20
+ return Object.freeze(n);
21
+ }
22
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
23
+ const TextArea = React__namespace.forwardRef(
24
+ (rest, ref) => /* @__PURE__ */ React__namespace.createElement(Frame.Frame, { ...rest, ref, className: Input_css.input, as: "textarea" })
25
+ );
26
+ exports.TextArea = TextArea;