@hitachivantara/uikit-react-lab 2.6.18

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 (388) hide show
  1. package/CHANGELOG.md +2334 -0
  2. package/LICENSE.txt +201 -0
  3. package/README.md +11 -0
  4. package/dist/AppSwitcherPanel/Action/Action.d.ts +67 -0
  5. package/dist/AppSwitcherPanel/Action/Action.js +255 -0
  6. package/dist/AppSwitcherPanel/Action/Action.js.map +1 -0
  7. package/dist/AppSwitcherPanel/Action/index.d.ts +2 -0
  8. package/dist/AppSwitcherPanel/Action/index.js +21 -0
  9. package/dist/AppSwitcherPanel/Action/index.js.map +1 -0
  10. package/dist/AppSwitcherPanel/Action/styles.js +91 -0
  11. package/dist/AppSwitcherPanel/Action/styles.js.map +1 -0
  12. package/dist/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
  13. package/dist/AppSwitcherPanel/AppSwitcherPanel.js +230 -0
  14. package/dist/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
  15. package/dist/AppSwitcherPanel/index.d.ts +2 -0
  16. package/dist/AppSwitcherPanel/index.js +21 -0
  17. package/dist/AppSwitcherPanel/index.js.map +1 -0
  18. package/dist/AppSwitcherPanel/styles.js +83 -0
  19. package/dist/AppSwitcherPanel/styles.js.map +1 -0
  20. package/dist/CodeEditor/CodeEditor.d.ts +14 -0
  21. package/dist/CodeEditor/CodeEditor.js +144 -0
  22. package/dist/CodeEditor/CodeEditor.js.map +1 -0
  23. package/dist/CodeEditor/index.d.ts +2 -0
  24. package/dist/CodeEditor/index.js +16 -0
  25. package/dist/CodeEditor/index.js.map +1 -0
  26. package/dist/CodeEditor/styles.js +53 -0
  27. package/dist/CodeEditor/styles.js.map +1 -0
  28. package/dist/Footer/Footer.d.ts +12 -0
  29. package/dist/Footer/Footer.js +67 -0
  30. package/dist/Footer/Footer.js.map +1 -0
  31. package/dist/Footer/index.d.ts +2 -0
  32. package/dist/Footer/index.js +16 -0
  33. package/dist/Footer/index.js.map +1 -0
  34. package/dist/Footer/styles.js +54 -0
  35. package/dist/Footer/styles.js.map +1 -0
  36. package/dist/FormComposer/FormComposer.d.ts +41 -0
  37. package/dist/FormComposer/FormComposer.js +258 -0
  38. package/dist/FormComposer/FormComposer.js.map +1 -0
  39. package/dist/FormComposer/index.d.ts +2 -0
  40. package/dist/FormComposer/index.js +16 -0
  41. package/dist/FormComposer/index.js.map +1 -0
  42. package/dist/FormComposer/styles.js +39 -0
  43. package/dist/FormComposer/styles.js.map +1 -0
  44. package/dist/Loading/Loading.d.ts +32 -0
  45. package/dist/Loading/Loading.js +89 -0
  46. package/dist/Loading/Loading.js.map +1 -0
  47. package/dist/Loading/LoadingWithDelay.d.ts +12 -0
  48. package/dist/Loading/LoadingWithDelay.js +135 -0
  49. package/dist/Loading/LoadingWithDelay.js.map +1 -0
  50. package/dist/Loading/index.d.ts +2 -0
  51. package/dist/Loading/index.js +16 -0
  52. package/dist/Loading/index.js.map +1 -0
  53. package/dist/Loading/styles.js +85 -0
  54. package/dist/Loading/styles.js.map +1 -0
  55. package/dist/NavigationAnchors/NavigationAnchors.d.ts +46 -0
  56. package/dist/NavigationAnchors/NavigationAnchors.js +297 -0
  57. package/dist/NavigationAnchors/NavigationAnchors.js.map +1 -0
  58. package/dist/NavigationAnchors/index.d.ts +2 -0
  59. package/dist/NavigationAnchors/index.js +16 -0
  60. package/dist/NavigationAnchors/index.js.map +1 -0
  61. package/dist/NavigationAnchors/styles.js +87 -0
  62. package/dist/NavigationAnchors/styles.js.map +1 -0
  63. package/dist/NotificationPanel/Notification/Notification.js +153 -0
  64. package/dist/NotificationPanel/Notification/Notification.js.map +1 -0
  65. package/dist/NotificationPanel/Notification/index.js +21 -0
  66. package/dist/NotificationPanel/Notification/index.js.map +1 -0
  67. package/dist/NotificationPanel/Notification/styles.js +73 -0
  68. package/dist/NotificationPanel/Notification/styles.js.map +1 -0
  69. package/dist/NotificationPanel/NotificationPanel.d.ts +49 -0
  70. package/dist/NotificationPanel/NotificationPanel.js +219 -0
  71. package/dist/NotificationPanel/NotificationPanel.js.map +1 -0
  72. package/dist/NotificationPanel/Panel/Panel.js +202 -0
  73. package/dist/NotificationPanel/Panel/Panel.js.map +1 -0
  74. package/dist/NotificationPanel/Panel/index.js +21 -0
  75. package/dist/NotificationPanel/Panel/index.js.map +1 -0
  76. package/dist/NotificationPanel/Panel/styles.js +84 -0
  77. package/dist/NotificationPanel/Panel/styles.js.map +1 -0
  78. package/dist/NotificationPanel/index.d.ts +2 -0
  79. package/dist/NotificationPanel/index.js +16 -0
  80. package/dist/NotificationPanel/index.js.map +1 -0
  81. package/dist/NotificationPanel/styles.js +16 -0
  82. package/dist/NotificationPanel/styles.js.map +1 -0
  83. package/dist/Slider/KnobRing/KnobRing.js +26 -0
  84. package/dist/Slider/KnobRing/KnobRing.js.map +1 -0
  85. package/dist/Slider/KnobRing/index.js +19 -0
  86. package/dist/Slider/KnobRing/index.js.map +1 -0
  87. package/dist/Slider/KnobRing/styles.js +40 -0
  88. package/dist/Slider/KnobRing/styles.js.map +1 -0
  89. package/dist/Slider/Slider.d.ts +133 -0
  90. package/dist/Slider/Slider.js +607 -0
  91. package/dist/Slider/Slider.js.map +1 -0
  92. package/dist/Slider/index.d.ts +2 -0
  93. package/dist/Slider/index.js +16 -0
  94. package/dist/Slider/index.js.map +1 -0
  95. package/dist/Slider/styles.js +125 -0
  96. package/dist/Slider/styles.js.map +1 -0
  97. package/dist/TimePicker/PeriodPicker/PeriodPicker.js +128 -0
  98. package/dist/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
  99. package/dist/TimePicker/PeriodPicker/index.js +21 -0
  100. package/dist/TimePicker/PeriodPicker/index.js.map +1 -0
  101. package/dist/TimePicker/PeriodPicker/styles.js +63 -0
  102. package/dist/TimePicker/PeriodPicker/styles.js.map +1 -0
  103. package/dist/TimePicker/TimePicker.d.ts +77 -0
  104. package/dist/TimePicker/TimePicker.js +425 -0
  105. package/dist/TimePicker/TimePicker.js.map +1 -0
  106. package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js +225 -0
  107. package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
  108. package/dist/TimePicker/UnitTimePicker/index.js +21 -0
  109. package/dist/TimePicker/UnitTimePicker/index.js.map +1 -0
  110. package/dist/TimePicker/UnitTimePicker/styles.js +80 -0
  111. package/dist/TimePicker/UnitTimePicker/styles.js.map +1 -0
  112. package/dist/TimePicker/enums.js +40 -0
  113. package/dist/TimePicker/enums.js.map +1 -0
  114. package/dist/TimePicker/index.d.ts +2 -0
  115. package/dist/TimePicker/index.js +16 -0
  116. package/dist/TimePicker/index.js.map +1 -0
  117. package/dist/TimePicker/styles.js +113 -0
  118. package/dist/TimePicker/styles.js.map +1 -0
  119. package/dist/TimePicker/timePickerConverter.js +90 -0
  120. package/dist/TimePicker/timePickerConverter.js.map +1 -0
  121. package/dist/TimePicker/timePickerFormatter.js +77 -0
  122. package/dist/TimePicker/timePickerFormatter.js.map +1 -0
  123. package/dist/TimePicker/timePickerUtils.js +36 -0
  124. package/dist/TimePicker/timePickerUtils.js.map +1 -0
  125. package/dist/index.d.ts +26 -0
  126. package/dist/index.js +80 -0
  127. package/dist/index.js.map +1 -0
  128. package/dist/legacy/AppSwitcherPanel/Action/Action.d.ts +67 -0
  129. package/dist/legacy/AppSwitcherPanel/Action/Action.js +214 -0
  130. package/dist/legacy/AppSwitcherPanel/Action/Action.js.map +1 -0
  131. package/dist/legacy/AppSwitcherPanel/Action/index.d.ts +2 -0
  132. package/dist/legacy/AppSwitcherPanel/Action/index.js +7 -0
  133. package/dist/legacy/AppSwitcherPanel/Action/index.js.map +1 -0
  134. package/dist/legacy/AppSwitcherPanel/Action/styles.js +83 -0
  135. package/dist/legacy/AppSwitcherPanel/Action/styles.js.map +1 -0
  136. package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
  137. package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.js +195 -0
  138. package/dist/legacy/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
  139. package/dist/legacy/AppSwitcherPanel/index.d.ts +2 -0
  140. package/dist/legacy/AppSwitcherPanel/index.js +7 -0
  141. package/dist/legacy/AppSwitcherPanel/index.js.map +1 -0
  142. package/dist/legacy/AppSwitcherPanel/styles.js +65 -0
  143. package/dist/legacy/AppSwitcherPanel/styles.js.map +1 -0
  144. package/dist/legacy/CodeEditor/CodeEditor.d.ts +14 -0
  145. package/dist/legacy/CodeEditor/CodeEditor.js +114 -0
  146. package/dist/legacy/CodeEditor/CodeEditor.js.map +1 -0
  147. package/dist/legacy/CodeEditor/index.d.ts +2 -0
  148. package/dist/legacy/CodeEditor/index.js +2 -0
  149. package/dist/legacy/CodeEditor/index.js.map +1 -0
  150. package/dist/legacy/CodeEditor/styles.js +45 -0
  151. package/dist/legacy/CodeEditor/styles.js.map +1 -0
  152. package/dist/legacy/Footer/Footer.d.ts +12 -0
  153. package/dist/legacy/Footer/Footer.js +51 -0
  154. package/dist/legacy/Footer/Footer.js.map +1 -0
  155. package/dist/legacy/Footer/index.d.ts +2 -0
  156. package/dist/legacy/Footer/index.js +2 -0
  157. package/dist/legacy/Footer/index.js.map +1 -0
  158. package/dist/legacy/Footer/styles.js +44 -0
  159. package/dist/legacy/Footer/styles.js.map +1 -0
  160. package/dist/legacy/FormComposer/FormComposer.d.ts +41 -0
  161. package/dist/legacy/FormComposer/FormComposer.js +218 -0
  162. package/dist/legacy/FormComposer/FormComposer.js.map +1 -0
  163. package/dist/legacy/FormComposer/index.d.ts +2 -0
  164. package/dist/legacy/FormComposer/index.js +2 -0
  165. package/dist/legacy/FormComposer/index.js.map +1 -0
  166. package/dist/legacy/FormComposer/styles.js +31 -0
  167. package/dist/legacy/FormComposer/styles.js.map +1 -0
  168. package/dist/legacy/Loading/Loading.d.ts +32 -0
  169. package/dist/legacy/Loading/Loading.js +71 -0
  170. package/dist/legacy/Loading/Loading.js.map +1 -0
  171. package/dist/legacy/Loading/LoadingWithDelay.d.ts +12 -0
  172. package/dist/legacy/Loading/LoadingWithDelay.js +97 -0
  173. package/dist/legacy/Loading/LoadingWithDelay.js.map +1 -0
  174. package/dist/legacy/Loading/index.d.ts +2 -0
  175. package/dist/legacy/Loading/index.js +2 -0
  176. package/dist/legacy/Loading/index.js.map +1 -0
  177. package/dist/legacy/Loading/styles.js +78 -0
  178. package/dist/legacy/Loading/styles.js.map +1 -0
  179. package/dist/legacy/NavigationAnchors/NavigationAnchors.d.ts +46 -0
  180. package/dist/legacy/NavigationAnchors/NavigationAnchors.js +275 -0
  181. package/dist/legacy/NavigationAnchors/NavigationAnchors.js.map +1 -0
  182. package/dist/legacy/NavigationAnchors/index.d.ts +2 -0
  183. package/dist/legacy/NavigationAnchors/index.js +2 -0
  184. package/dist/legacy/NavigationAnchors/index.js.map +1 -0
  185. package/dist/legacy/NavigationAnchors/styles.js +70 -0
  186. package/dist/legacy/NavigationAnchors/styles.js.map +1 -0
  187. package/dist/legacy/NotificationPanel/Notification/Notification.js +119 -0
  188. package/dist/legacy/NotificationPanel/Notification/Notification.js.map +1 -0
  189. package/dist/legacy/NotificationPanel/Notification/index.js +7 -0
  190. package/dist/legacy/NotificationPanel/Notification/index.js.map +1 -0
  191. package/dist/legacy/NotificationPanel/Notification/styles.js +56 -0
  192. package/dist/legacy/NotificationPanel/Notification/styles.js.map +1 -0
  193. package/dist/legacy/NotificationPanel/NotificationPanel.d.ts +49 -0
  194. package/dist/legacy/NotificationPanel/NotificationPanel.js +182 -0
  195. package/dist/legacy/NotificationPanel/NotificationPanel.js.map +1 -0
  196. package/dist/legacy/NotificationPanel/Panel/Panel.js +166 -0
  197. package/dist/legacy/NotificationPanel/Panel/Panel.js.map +1 -0
  198. package/dist/legacy/NotificationPanel/Panel/index.js +7 -0
  199. package/dist/legacy/NotificationPanel/Panel/index.js.map +1 -0
  200. package/dist/legacy/NotificationPanel/Panel/styles.js +66 -0
  201. package/dist/legacy/NotificationPanel/Panel/styles.js.map +1 -0
  202. package/dist/legacy/NotificationPanel/index.d.ts +2 -0
  203. package/dist/legacy/NotificationPanel/index.js +2 -0
  204. package/dist/legacy/NotificationPanel/index.js.map +1 -0
  205. package/dist/legacy/NotificationPanel/styles.js +9 -0
  206. package/dist/legacy/NotificationPanel/styles.js.map +1 -0
  207. package/dist/legacy/Slider/KnobRing/KnobRing.js +15 -0
  208. package/dist/legacy/Slider/KnobRing/KnobRing.js.map +1 -0
  209. package/dist/legacy/Slider/KnobRing/index.js +5 -0
  210. package/dist/legacy/Slider/KnobRing/index.js.map +1 -0
  211. package/dist/legacy/Slider/KnobRing/styles.js +32 -0
  212. package/dist/legacy/Slider/KnobRing/styles.js.map +1 -0
  213. package/dist/legacy/Slider/Slider.d.ts +133 -0
  214. package/dist/legacy/Slider/Slider.js +583 -0
  215. package/dist/legacy/Slider/Slider.js.map +1 -0
  216. package/dist/legacy/Slider/index.d.ts +2 -0
  217. package/dist/legacy/Slider/index.js +2 -0
  218. package/dist/legacy/Slider/index.js.map +1 -0
  219. package/dist/legacy/Slider/styles.js +108 -0
  220. package/dist/legacy/Slider/styles.js.map +1 -0
  221. package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js +110 -0
  222. package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
  223. package/dist/legacy/TimePicker/PeriodPicker/index.js +7 -0
  224. package/dist/legacy/TimePicker/PeriodPicker/index.js.map +1 -0
  225. package/dist/legacy/TimePicker/PeriodPicker/styles.js +46 -0
  226. package/dist/legacy/TimePicker/PeriodPicker/styles.js.map +1 -0
  227. package/dist/legacy/TimePicker/TimePicker.d.ts +77 -0
  228. package/dist/legacy/TimePicker/TimePicker.js +402 -0
  229. package/dist/legacy/TimePicker/TimePicker.js.map +1 -0
  230. package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js +207 -0
  231. package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
  232. package/dist/legacy/TimePicker/UnitTimePicker/index.js +7 -0
  233. package/dist/legacy/TimePicker/UnitTimePicker/index.js.map +1 -0
  234. package/dist/legacy/TimePicker/UnitTimePicker/styles.js +63 -0
  235. package/dist/legacy/TimePicker/UnitTimePicker/styles.js.map +1 -0
  236. package/dist/legacy/TimePicker/enums.js +32 -0
  237. package/dist/legacy/TimePicker/enums.js.map +1 -0
  238. package/dist/legacy/TimePicker/index.d.ts +2 -0
  239. package/dist/legacy/TimePicker/index.js +2 -0
  240. package/dist/legacy/TimePicker/index.js.map +1 -0
  241. package/dist/legacy/TimePicker/styles.js +96 -0
  242. package/dist/legacy/TimePicker/styles.js.map +1 -0
  243. package/dist/legacy/TimePicker/timePickerConverter.js +71 -0
  244. package/dist/legacy/TimePicker/timePickerConverter.js.map +1 -0
  245. package/dist/legacy/TimePicker/timePickerFormatter.js +63 -0
  246. package/dist/legacy/TimePicker/timePickerFormatter.js.map +1 -0
  247. package/dist/legacy/TimePicker/timePickerUtils.js +27 -0
  248. package/dist/legacy/TimePicker/timePickerUtils.js.map +1 -0
  249. package/dist/legacy/index.d.ts +26 -0
  250. package/dist/legacy/index.js +11 -0
  251. package/dist/legacy/index.js.map +1 -0
  252. package/dist/legacy/withStyleProps/WithStyleProps.js +14 -0
  253. package/dist/legacy/withStyleProps/WithStyleProps.js.map +1 -0
  254. package/dist/legacy/withStyleProps/index.js +2 -0
  255. package/dist/legacy/withStyleProps/index.js.map +1 -0
  256. package/dist/modern/AppSwitcherPanel/Action/Action.d.ts +67 -0
  257. package/dist/modern/AppSwitcherPanel/Action/Action.js +177 -0
  258. package/dist/modern/AppSwitcherPanel/Action/Action.js.map +1 -0
  259. package/dist/modern/AppSwitcherPanel/Action/index.d.ts +2 -0
  260. package/dist/modern/AppSwitcherPanel/Action/index.js +7 -0
  261. package/dist/modern/AppSwitcherPanel/Action/index.js.map +1 -0
  262. package/dist/modern/AppSwitcherPanel/Action/styles.js +77 -0
  263. package/dist/modern/AppSwitcherPanel/Action/styles.js.map +1 -0
  264. package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.d.ts +50 -0
  265. package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.js +167 -0
  266. package/dist/modern/AppSwitcherPanel/AppSwitcherPanel.js.map +1 -0
  267. package/dist/modern/AppSwitcherPanel/index.d.ts +2 -0
  268. package/dist/modern/AppSwitcherPanel/index.js +7 -0
  269. package/dist/modern/AppSwitcherPanel/index.js.map +1 -0
  270. package/dist/modern/AppSwitcherPanel/styles.js +55 -0
  271. package/dist/modern/AppSwitcherPanel/styles.js.map +1 -0
  272. package/dist/modern/CodeEditor/CodeEditor.d.ts +14 -0
  273. package/dist/modern/CodeEditor/CodeEditor.js +109 -0
  274. package/dist/modern/CodeEditor/CodeEditor.js.map +1 -0
  275. package/dist/modern/CodeEditor/index.d.ts +2 -0
  276. package/dist/modern/CodeEditor/index.js +2 -0
  277. package/dist/modern/CodeEditor/index.js.map +1 -0
  278. package/dist/modern/CodeEditor/styles.js +43 -0
  279. package/dist/modern/CodeEditor/styles.js.map +1 -0
  280. package/dist/modern/Footer/Footer.d.ts +12 -0
  281. package/dist/modern/Footer/Footer.js +51 -0
  282. package/dist/modern/Footer/Footer.js.map +1 -0
  283. package/dist/modern/Footer/index.d.ts +2 -0
  284. package/dist/modern/Footer/index.js +2 -0
  285. package/dist/modern/Footer/index.js.map +1 -0
  286. package/dist/modern/Footer/styles.js +43 -0
  287. package/dist/modern/Footer/styles.js.map +1 -0
  288. package/dist/modern/FormComposer/FormComposer.d.ts +41 -0
  289. package/dist/modern/FormComposer/FormComposer.js +183 -0
  290. package/dist/modern/FormComposer/FormComposer.js.map +1 -0
  291. package/dist/modern/FormComposer/index.d.ts +2 -0
  292. package/dist/modern/FormComposer/index.js +2 -0
  293. package/dist/modern/FormComposer/index.js.map +1 -0
  294. package/dist/modern/FormComposer/styles.js +29 -0
  295. package/dist/modern/FormComposer/styles.js.map +1 -0
  296. package/dist/modern/Loading/Loading.d.ts +32 -0
  297. package/dist/modern/Loading/Loading.js +72 -0
  298. package/dist/modern/Loading/Loading.js.map +1 -0
  299. package/dist/modern/Loading/LoadingWithDelay.d.ts +12 -0
  300. package/dist/modern/Loading/LoadingWithDelay.js +92 -0
  301. package/dist/modern/Loading/LoadingWithDelay.js.map +1 -0
  302. package/dist/modern/Loading/index.d.ts +2 -0
  303. package/dist/modern/Loading/index.js +2 -0
  304. package/dist/modern/Loading/index.js.map +1 -0
  305. package/dist/modern/Loading/styles.js +76 -0
  306. package/dist/modern/Loading/styles.js.map +1 -0
  307. package/dist/modern/NavigationAnchors/NavigationAnchors.d.ts +46 -0
  308. package/dist/modern/NavigationAnchors/NavigationAnchors.js +243 -0
  309. package/dist/modern/NavigationAnchors/NavigationAnchors.js.map +1 -0
  310. package/dist/modern/NavigationAnchors/index.d.ts +2 -0
  311. package/dist/modern/NavigationAnchors/index.js +2 -0
  312. package/dist/modern/NavigationAnchors/index.js.map +1 -0
  313. package/dist/modern/NavigationAnchors/styles.js +61 -0
  314. package/dist/modern/NavigationAnchors/styles.js.map +1 -0
  315. package/dist/modern/NotificationPanel/Notification/Notification.js +90 -0
  316. package/dist/modern/NotificationPanel/Notification/Notification.js.map +1 -0
  317. package/dist/modern/NotificationPanel/Notification/index.js +7 -0
  318. package/dist/modern/NotificationPanel/Notification/index.js.map +1 -0
  319. package/dist/modern/NotificationPanel/Notification/styles.js +45 -0
  320. package/dist/modern/NotificationPanel/Notification/styles.js.map +1 -0
  321. package/dist/modern/NotificationPanel/NotificationPanel.d.ts +49 -0
  322. package/dist/modern/NotificationPanel/NotificationPanel.js +153 -0
  323. package/dist/modern/NotificationPanel/NotificationPanel.js.map +1 -0
  324. package/dist/modern/NotificationPanel/Panel/Panel.js +133 -0
  325. package/dist/modern/NotificationPanel/Panel/Panel.js.map +1 -0
  326. package/dist/modern/NotificationPanel/Panel/index.js +7 -0
  327. package/dist/modern/NotificationPanel/Panel/index.js.map +1 -0
  328. package/dist/modern/NotificationPanel/Panel/styles.js +56 -0
  329. package/dist/modern/NotificationPanel/Panel/styles.js.map +1 -0
  330. package/dist/modern/NotificationPanel/index.d.ts +2 -0
  331. package/dist/modern/NotificationPanel/index.js +2 -0
  332. package/dist/modern/NotificationPanel/index.js.map +1 -0
  333. package/dist/modern/NotificationPanel/styles.js +9 -0
  334. package/dist/modern/NotificationPanel/styles.js.map +1 -0
  335. package/dist/modern/Slider/KnobRing/KnobRing.js +17 -0
  336. package/dist/modern/Slider/KnobRing/KnobRing.js.map +1 -0
  337. package/dist/modern/Slider/KnobRing/index.js +5 -0
  338. package/dist/modern/Slider/KnobRing/index.js.map +1 -0
  339. package/dist/modern/Slider/KnobRing/styles.js +34 -0
  340. package/dist/modern/Slider/KnobRing/styles.js.map +1 -0
  341. package/dist/modern/Slider/Slider.d.ts +133 -0
  342. package/dist/modern/Slider/Slider.js +542 -0
  343. package/dist/modern/Slider/Slider.js.map +1 -0
  344. package/dist/modern/Slider/index.d.ts +2 -0
  345. package/dist/modern/Slider/index.js +2 -0
  346. package/dist/modern/Slider/index.js.map +1 -0
  347. package/dist/modern/Slider/styles.js +99 -0
  348. package/dist/modern/Slider/styles.js.map +1 -0
  349. package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js +88 -0
  350. package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
  351. package/dist/modern/TimePicker/PeriodPicker/index.js +7 -0
  352. package/dist/modern/TimePicker/PeriodPicker/index.js.map +1 -0
  353. package/dist/modern/TimePicker/PeriodPicker/styles.js +37 -0
  354. package/dist/modern/TimePicker/PeriodPicker/styles.js.map +1 -0
  355. package/dist/modern/TimePicker/TimePicker.d.ts +77 -0
  356. package/dist/modern/TimePicker/TimePicker.js +394 -0
  357. package/dist/modern/TimePicker/TimePicker.js.map +1 -0
  358. package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js +186 -0
  359. package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
  360. package/dist/modern/TimePicker/UnitTimePicker/index.js +7 -0
  361. package/dist/modern/TimePicker/UnitTimePicker/index.js.map +1 -0
  362. package/dist/modern/TimePicker/UnitTimePicker/styles.js +54 -0
  363. package/dist/modern/TimePicker/UnitTimePicker/styles.js.map +1 -0
  364. package/dist/modern/TimePicker/enums.js +32 -0
  365. package/dist/modern/TimePicker/enums.js.map +1 -0
  366. package/dist/modern/TimePicker/index.d.ts +2 -0
  367. package/dist/modern/TimePicker/index.js +2 -0
  368. package/dist/modern/TimePicker/index.js.map +1 -0
  369. package/dist/modern/TimePicker/styles.js +87 -0
  370. package/dist/modern/TimePicker/styles.js.map +1 -0
  371. package/dist/modern/TimePicker/timePickerConverter.js +66 -0
  372. package/dist/modern/TimePicker/timePickerConverter.js.map +1 -0
  373. package/dist/modern/TimePicker/timePickerFormatter.js +62 -0
  374. package/dist/modern/TimePicker/timePickerFormatter.js.map +1 -0
  375. package/dist/modern/TimePicker/timePickerUtils.js +26 -0
  376. package/dist/modern/TimePicker/timePickerUtils.js.map +1 -0
  377. package/dist/modern/index.d.ts +26 -0
  378. package/dist/modern/index.js +11 -0
  379. package/dist/modern/index.js.map +1 -0
  380. package/dist/modern/withStyleProps/WithStyleProps.js +10 -0
  381. package/dist/modern/withStyleProps/WithStyleProps.js.map +1 -0
  382. package/dist/modern/withStyleProps/index.js +2 -0
  383. package/dist/modern/withStyleProps/index.js.map +1 -0
  384. package/dist/withStyleProps/WithStyleProps.js +25 -0
  385. package/dist/withStyleProps/WithStyleProps.js.map +1 -0
  386. package/dist/withStyleProps/index.js +16 -0
  387. package/dist/withStyleProps/index.js.map +1 -0
  388. package/package.json +72 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["selected","theme","background","hv","palette","accent","acce1","color","atmosphere","atmo1","cursor","fill","hover","atmo4","styles","typography","display","width","justifyContent","alignItems","height","marginBottom","overflow","whiteSpace","textOverflow","dummyImage","link","textDecoration","iconInfo","marginLeft","iconUrl","margin"],"sources":["../../../src/AppSwitcherPanel/Action/styles.js"],"sourcesContent":["const selected = (theme) => ({\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n cursor: \"default\",\n \"& *\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n cursor: \"default\",\n },\n \"& svg *.color0\": {\n fill: theme.hv.palette.atmosphere.atmo1,\n },\n // hover\n \"&:hover\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n \"& *\": {\n background: theme.hv.palette.accent.acce1,\n color: theme.hv.palette.atmosphere.atmo1,\n },\n },\n});\n\nconst hover = (theme) => ({\n background: theme.hv.palette.atmosphere.atmo4,\n \"& *\": {\n background: theme.hv.palette.atmosphere.atmo4,\n },\n});\n\nconst styles = (theme) => ({\n typography: {\n display: \"flex\",\n background: theme.hv.palette.atmosphere.atmo1,\n width: \"100%\",\n justifyContent: \"flex-start\",\n alignItems: \"center\",\n height: \"32px\",\n color: theme.hv.palette.atmosphere.acce1,\n marginBottom: \"8px\",\n\n // hover\n \"&:hover\": hover(theme),\n\n // cursor\n cursor: \"pointer\",\n \"& *\": {\n cursor: \"pointer\",\n },\n\n \"& span\": {\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n width: \"calc(100% - 64px)\", // The with of both icons, 32px each.\n },\n },\n selected: selected(theme),\n\n dummyImage: {\n width: \"8px\",\n },\n\n link: {\n color: \"inherit\",\n textDecoration: \"inherit\",\n },\n\n iconInfo: {\n width: \"32px\",\n height: \"32px\",\n marginLeft: \"auto\",\n },\n\n iconUrl: {\n width: \"16px\",\n height: \"16px\",\n margin: \"8px\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD;EAAA,OAAY;IAC3BC,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KADT;IAE3BC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAFR;IAG3BC,MAAM,EAAE,SAHmB;IAI3B,OAAO;MACLR,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAD/B;MAELC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAF9B;MAGLC,MAAM,EAAE;IAHH,CAJoB;IAS3B,kBAAkB;MAChBC,IAAI,EAAEV,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC;IADlB,CATS;IAY3B;IACA,WAAW;MACTP,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAD3B;MAETC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAF1B;MAGT,OAAO;QACLP,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAD/B;QAELC,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC;MAF9B;IAHE;EAbgB,CAAZ;AAAA,CAAjB;;AAuBA,IAAMG,KAAK,GAAG,SAARA,KAAQ,CAACX,KAAD;EAAA,OAAY;IACxBC,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BK,KADhB;IAExB,OAAO;MACLX,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BK;IADnC;EAFiB,CAAZ;AAAA,CAAd;;AAOA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACb,KAAD;EAAA,OAAY;IACzBc,UAAU,EAAE;MACVC,OAAO,EAAE,MADC;MAEVd,UAAU,EAAED,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BC,KAF9B;MAGVQ,KAAK,EAAE,MAHG;MAIVC,cAAc,EAAE,YAJN;MAKVC,UAAU,EAAE,QALF;MAMVC,MAAM,EAAE,MANE;MAOVb,KAAK,EAAEN,KAAK,CAACE,EAAN,CAASC,OAAT,CAAiBI,UAAjB,CAA4BF,KAPzB;MAQVe,YAAY,EAAE,KARJ;MAUV;MACA,WAAWT,KAAK,CAACX,KAAD,CAXN;MAaV;MACAS,MAAM,EAAE,SAdE;MAeV,OAAO;QACLA,MAAM,EAAE;MADH,CAfG;MAmBV,UAAU;QACRY,QAAQ,EAAE,QADF;QAERC,UAAU,EAAE,QAFJ;QAGRC,YAAY,EAAE,UAHN;QAIRP,KAAK,EAAE,mBAJC,CAIoB;;MAJpB;IAnBA,CADa;IA2BzBjB,QAAQ,EAAEA,QAAQ,CAACC,KAAD,CA3BO;IA6BzBwB,UAAU,EAAE;MACVR,KAAK,EAAE;IADG,CA7Ba;IAiCzBS,IAAI,EAAE;MACJnB,KAAK,EAAE,SADH;MAEJoB,cAAc,EAAE;IAFZ,CAjCmB;IAsCzBC,QAAQ,EAAE;MACRX,KAAK,EAAE,MADC;MAERG,MAAM,EAAE,MAFA;MAGRS,UAAU,EAAE;IAHJ,CAtCe;IA4CzBC,OAAO,EAAE;MACPb,KAAK,EAAE,MADA;MAEPG,MAAM,EAAE,MAFD;MAGPW,MAAM,EAAE;IAHD;EA5CgB,CAAZ;AAAA,CAAf;;eAmDejB,M"}
@@ -0,0 +1,50 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+
4
+ import { HvAppSwitcherPanelActionApplication } from "./Action";
5
+
6
+ export type HvAppSwitcherPanelClassKey =
7
+ | "root"
8
+ | "open"
9
+ | "headerContainer"
10
+ | "titleContainer"
11
+ | "title"
12
+ | "actionsContainer"
13
+ | "footerContainer";
14
+
15
+ export interface HvAppSwitcherPanelProps
16
+ extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherPanelClassKey> {
17
+ /**
18
+ * Flag stating if the panel is opened or closed.
19
+ */
20
+ isOpen?: boolean;
21
+ /**
22
+ * Title to be displayed on the header of the component.
23
+ */
24
+ title?: string;
25
+ /**
26
+ * The list of applications to be used to render the actions on the component.
27
+ */
28
+ applications: HvAppSwitcherPanelActionApplication[];
29
+ /**
30
+ * Element to be added to the header container, if none is provided a label with the title will be added.
31
+ */
32
+ header?: React.ReactNode;
33
+ /**
34
+ * Element to be added to the footer container.
35
+ */
36
+ footer?: React.ReactNode;
37
+ /**
38
+ * Triggered when an action is clicked.
39
+ */
40
+ onActionClickedCallback?: (
41
+ event: MouseEvent,
42
+ application?: HvAppSwitcherPanelActionApplication
43
+ ) => void;
44
+ /**
45
+ * Must return a boolean stating if the action element is selected or not.
46
+ */
47
+ isActionSelectedCallback?: (application?: HvAppSwitcherPanelActionApplication) => boolean;
48
+ }
49
+
50
+ export default function HvAppSwitcherPanel(props: HvAppSwitcherPanelProps): JSX.Element | null;
@@ -0,0 +1,230 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.to-string.js");
4
+
5
+ require("core-js/modules/es.reflect.construct.js");
6
+
7
+ require("core-js/modules/es.array.iterator.js");
8
+
9
+ require("core-js/modules/es.string.iterator.js");
10
+
11
+ require("core-js/modules/es.weak-map.js");
12
+
13
+ require("core-js/modules/web.dom-collections.iterator.js");
14
+
15
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
16
+
17
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
+
19
+ var _typeof = require("@babel/runtime/helpers/typeof");
20
+
21
+ Object.defineProperty(exports, "__esModule", {
22
+ value: true
23
+ });
24
+ exports.default = void 0;
25
+
26
+ require("core-js/modules/es.array.map.js");
27
+
28
+ require("core-js/modules/es.function.name.js");
29
+
30
+ require("core-js/modules/es.array.concat.js");
31
+
32
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
33
+
34
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
35
+
36
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
37
+
38
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
39
+
40
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
41
+
42
+ var _react = _interopRequireWildcard(require("react"));
43
+
44
+ var _propTypes = _interopRequireDefault(require("prop-types"));
45
+
46
+ var _uniqueId = _interopRequireDefault(require("lodash/uniqueId"));
47
+
48
+ var _Action = _interopRequireDefault(require("./Action"));
49
+
50
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
51
+
52
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
53
+
54
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
55
+
56
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
57
+
58
+ var AppSwitcherPanel = /*#__PURE__*/function (_Component) {
59
+ (0, _inherits2.default)(AppSwitcherPanel, _Component);
60
+
61
+ var _super = _createSuper(AppSwitcherPanel);
62
+
63
+ function AppSwitcherPanel(props) {
64
+ var _this;
65
+
66
+ (0, _classCallCheck2.default)(this, AppSwitcherPanel);
67
+ _this = _super.call(this, props);
68
+ var id = _this.props.id;
69
+ _this.state = {
70
+ internalId: id || (0, _uniqueId.default)("hv-appswitcherpanel-")
71
+ };
72
+ return _this;
73
+ }
74
+
75
+ (0, _createClass2.default)(AppSwitcherPanel, [{
76
+ key: "render",
77
+ value: function render() {
78
+ var internalId = this.state.internalId;
79
+ var _this$props = this.props,
80
+ classes = _this$props.classes,
81
+ isOpen = _this$props.isOpen,
82
+ title = _this$props.title,
83
+ applications = _this$props.applications,
84
+ header = _this$props.header,
85
+ footer = _this$props.footer,
86
+ onActionClickedCallback = _this$props.onActionClickedCallback,
87
+ isActionSelectedCallback = _this$props.isActionSelectedCallback;
88
+
89
+ var actionClicked = function actionClicked(event, application) {
90
+ if (onActionClickedCallback) {
91
+ onActionClickedCallback(event, application);
92
+ }
93
+ };
94
+
95
+ var panelActions = applications.map(function (application) {
96
+ if (application.name && application.url) {
97
+ return /*#__PURE__*/_react.default.createElement(_Action.default, {
98
+ key: application.url,
99
+ application: application,
100
+ onClickCallback: actionClicked,
101
+ isSelectedCallback: isActionSelectedCallback
102
+ });
103
+ }
104
+
105
+ return undefined;
106
+ });
107
+ return /*#__PURE__*/_react.default.createElement("div", {
108
+ id: internalId,
109
+ className: "".concat(classes.root, " ").concat(isOpen ? classes.open : "")
110
+ }, /*#__PURE__*/_react.default.createElement("div", {
111
+ className: classes.headerContainer
112
+ }, header || /*#__PURE__*/_react.default.createElement("div", {
113
+ className: classes.titleContainer
114
+ }, /*#__PURE__*/_react.default.createElement("div", {
115
+ className: classes.title,
116
+ title: title
117
+ }, title))), /*#__PURE__*/_react.default.createElement("div", {
118
+ className: classes.actionsContainer
119
+ }, panelActions), footer && /*#__PURE__*/_react.default.createElement("div", {
120
+ className: classes.footerContainer
121
+ }, footer));
122
+ }
123
+ }]);
124
+ return AppSwitcherPanel;
125
+ }(_react.Component);
126
+
127
+ exports.default = AppSwitcherPanel;
128
+ process.env.NODE_ENV !== "production" ? AppSwitcherPanel.propTypes = {
129
+ id: _propTypes.default.string,
130
+
131
+ /**
132
+ * A Jss Object used to override or extend the styles applied.
133
+ */
134
+ classes: _propTypes.default.shape({
135
+ root: _propTypes.default.string,
136
+ open: _propTypes.default.string,
137
+ headerContainer: _propTypes.default.string,
138
+ titleContainer: _propTypes.default.string,
139
+ title: _propTypes.default.string,
140
+ actionsContainer: _propTypes.default.string,
141
+ footerContainer: _propTypes.default.string
142
+ }).isRequired,
143
+
144
+ /**
145
+ * Flag stating if the panel is opened or closed.
146
+ */
147
+ isOpen: _propTypes.default.bool,
148
+
149
+ /**
150
+ * Title to be displayed on the header of the component.
151
+ */
152
+ title: _propTypes.default.string,
153
+
154
+ /**
155
+ * The list of applications to be used to render the actions on the component.
156
+ */
157
+ applications: _propTypes.default.arrayOf(_propTypes.default.shape({
158
+ /**
159
+ * Id of the application.
160
+ */
161
+ id: _propTypes.default.string.isRequired,
162
+
163
+ /**
164
+ * Name of the application, this is the value that will be displayed on the component.
165
+ */
166
+ name: _propTypes.default.string.isRequired,
167
+
168
+ /**
169
+ * URL with the icon location to be used to represent the application.
170
+ * iconUrl will only be used if no iconElement is provided.
171
+ */
172
+ iconUrl: _propTypes.default.string,
173
+
174
+ /**
175
+ * Element to be added as the icon representing the application.
176
+ * The iconElement will be the primary option to be displayed.
177
+ */
178
+ iconElement: _propTypes.default.element,
179
+
180
+ /**
181
+ * Small description of the application.
182
+ */
183
+ description: _propTypes.default.string,
184
+
185
+ /**
186
+ * URL where the application is accesible.
187
+ */
188
+ url: _propTypes.default.string.isRequired,
189
+
190
+ /**
191
+ * Defines if the application should be opened in the same tab or in a new one.
192
+ */
193
+ target: _propTypes.default.oneOf(["_top", "_blank"]),
194
+
195
+ /**
196
+ * True when the application is selected, false otherwise.
197
+ */
198
+ isSelected: _propTypes.default.bool
199
+ })).isRequired,
200
+
201
+ /**
202
+ * Element to be added to the header container, if none is provided a label with the title will be added.
203
+ */
204
+ header: _propTypes.default.element,
205
+
206
+ /**
207
+ * Element to be added to the footer container.
208
+ */
209
+ footer: _propTypes.default.element,
210
+
211
+ /**
212
+ * Triggered when an action is clicked.
213
+ */
214
+ onActionClickedCallback: _propTypes.default.func,
215
+
216
+ /**
217
+ * Must return a boolean stating if the action element is selected or not.
218
+ */
219
+ isActionSelectedCallback: _propTypes.default.func
220
+ } : void 0;
221
+ AppSwitcherPanel.defaultProps = {
222
+ isOpen: false,
223
+ title: "Apps",
224
+ footer: undefined,
225
+ onActionClickedCallback: function onActionClickedCallback() {},
226
+ isActionSelectedCallback: function isActionSelectedCallback() {
227
+ return false;
228
+ }
229
+ };
230
+ //# sourceMappingURL=AppSwitcherPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppSwitcherPanel.js","names":["AppSwitcherPanel","props","id","state","internalId","uniqueId","classes","isOpen","title","applications","header","footer","onActionClickedCallback","isActionSelectedCallback","actionClicked","event","application","panelActions","map","name","url","undefined","root","open","headerContainer","titleContainer","actionsContainer","footerContainer","Component","propTypes","PropTypes","string","shape","isRequired","bool","arrayOf","iconUrl","iconElement","element","description","target","oneOf","isSelected","func","defaultProps"],"sources":["../../src/AppSwitcherPanel/AppSwitcherPanel.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport uniqueId from \"lodash/uniqueId\";\n\nimport Action from \"./Action\";\n\nexport default class AppSwitcherPanel extends Component {\n constructor(props) {\n super(props);\n\n const { id } = this.props;\n\n this.state = {\n internalId: id || uniqueId(\"hv-appswitcherpanel-\"),\n };\n }\n\n render() {\n const { internalId } = this.state;\n const {\n classes,\n isOpen,\n title,\n applications,\n header,\n footer,\n onActionClickedCallback,\n isActionSelectedCallback,\n } = this.props;\n\n const actionClicked = (event, application) => {\n if (onActionClickedCallback) {\n onActionClickedCallback(event, application);\n }\n };\n\n const panelActions = applications.map((application) => {\n if (application.name && application.url) {\n return (\n <Action\n key={application.url}\n application={application}\n onClickCallback={actionClicked}\n isSelectedCallback={isActionSelectedCallback}\n />\n );\n }\n\n return undefined;\n });\n\n return (\n <div id={internalId} className={`${classes.root} ${isOpen ? classes.open : \"\"}`}>\n <div className={classes.headerContainer}>\n {header || (\n <div className={classes.titleContainer}>\n <div className={classes.title} title={title}>\n {title}\n </div>\n </div>\n )}\n </div>\n <div className={classes.actionsContainer}>{panelActions}</div>\n {footer && <div className={classes.footerContainer}>{footer}</div>}\n </div>\n );\n }\n}\n\nAppSwitcherPanel.propTypes = {\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n root: PropTypes.string,\n open: PropTypes.string,\n headerContainer: PropTypes.string,\n titleContainer: PropTypes.string,\n title: PropTypes.string,\n actionsContainer: PropTypes.string,\n footerContainer: PropTypes.string,\n }).isRequired,\n /**\n * Flag stating if the panel is opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * Title to be displayed on the header of the component.\n */\n title: PropTypes.string,\n /**\n * The list of applications to be used to render the actions on the component.\n */\n applications: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * Id of the application.\n */\n id: PropTypes.string.isRequired,\n /**\n * Name of the application, this is the value that will be displayed on the component.\n */\n name: PropTypes.string.isRequired,\n /**\n * URL with the icon location to be used to represent the application.\n * iconUrl will only be used if no iconElement is provided.\n */\n iconUrl: PropTypes.string,\n /**\n * Element to be added as the icon representing the application.\n * The iconElement will be the primary option to be displayed.\n */\n iconElement: PropTypes.element,\n /**\n * Small description of the application.\n */\n description: PropTypes.string,\n /**\n * URL where the application is accesible.\n */\n url: PropTypes.string.isRequired,\n /**\n * Defines if the application should be opened in the same tab or in a new one.\n */\n target: PropTypes.oneOf([\"_top\", \"_blank\"]),\n /**\n * True when the application is selected, false otherwise.\n */\n isSelected: PropTypes.bool,\n })\n ).isRequired,\n /**\n * Element to be added to the header container, if none is provided a label with the title will be added.\n */\n header: PropTypes.element,\n /**\n * Element to be added to the footer container.\n */\n footer: PropTypes.element,\n /**\n * Triggered when an action is clicked.\n */\n onActionClickedCallback: PropTypes.func,\n /**\n * Must return a boolean stating if the action element is selected or not.\n */\n isActionSelectedCallback: PropTypes.func,\n};\n\nAppSwitcherPanel.defaultProps = {\n isOpen: false,\n title: \"Apps\",\n footer: undefined,\n onActionClickedCallback: () => {},\n isActionSelectedCallback: () => false,\n};\n"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./AppSwitcherPanel";
2
+ export * from "./AppSwitcherPanel";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _withStyles = _interopRequireDefault(require("@material-ui/core/styles/withStyles"));
11
+
12
+ var _styles = _interopRequireDefault(require("./styles"));
13
+
14
+ var _AppSwitcherPanel = _interopRequireDefault(require("./AppSwitcherPanel"));
15
+
16
+ var _default = (0, _withStyles.default)(_styles.default, {
17
+ withTheme: true
18
+ })(_AppSwitcherPanel.default);
19
+
20
+ exports.default = _default;
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["withStyles","styles","withTheme","AppSwitcherPanel"],"sources":["../../src/AppSwitcherPanel/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport AppSwitcherPanel from \"./AppSwitcherPanel\";\n\nexport default withStyles(styles, { withTheme: true })(AppSwitcherPanel);\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;eAEe,IAAAA,mBAAA,EAAWC,eAAX,EAAmB;EAAEC,SAAS,EAAE;AAAb,CAAnB,EAAwCC,yBAAxC,C"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.keys.js");
4
+
5
+ require("core-js/modules/es.symbol.js");
6
+
7
+ require("core-js/modules/es.array.filter.js");
8
+
9
+ require("core-js/modules/es.object.to-string.js");
10
+
11
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
12
+
13
+ require("core-js/modules/web.dom-collections.for-each.js");
14
+
15
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
16
+
17
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
+
19
+ Object.defineProperty(exports, "__esModule", {
20
+ value: true
21
+ });
22
+ exports.default = void 0;
23
+
24
+ require("core-js/modules/es.array.concat.js");
25
+
26
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
27
+
28
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
+
30
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31
+
32
+ var styles = function styles(theme) {
33
+ return {
34
+ root: {
35
+ display: "none",
36
+ width: "320px",
37
+ backgroundColor: theme.hv.palette.atmosphere.atmo1,
38
+ boxShadow: "0 2px 12px rgba(65, 65, 65, 0.12)" // rgb color corresponds to #414141;
39
+
40
+ },
41
+ open: {
42
+ display: "flex",
43
+ zIndex: "1200",
44
+ flexDirection: "column",
45
+ position: "absolute",
46
+ top: "50px",
47
+ overflowX: "hidden"
48
+ },
49
+ headerContainer: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
50
+ display: "flex",
51
+ justifyContent: "space-between",
52
+ alignItems: "center",
53
+ padding: "".concat(theme.hv.spacing.sm, "px"),
54
+ borderBottom: "3px solid ".concat(theme.hv.palette.atmosphere.atmo2)
55
+ }),
56
+ titleContainer: {
57
+ width: "100%",
58
+ display: "flex",
59
+ alignItems: "center"
60
+ },
61
+ title: {
62
+ overflow: "hidden",
63
+ whiteSpace: "nowrap",
64
+ textOverflow: "ellipsis"
65
+ },
66
+ actionsContainer: {
67
+ flex: 1,
68
+ padding: "".concat(theme.hv.spacing.sm, "px"),
69
+ overflowY: "auto"
70
+ },
71
+ footerContainer: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
72
+ display: "flex",
73
+ alignItems: "center",
74
+ height: "52px",
75
+ borderTop: "3px solid ".concat(theme.hv.palette.atmosphere.atmo2),
76
+ padding: "".concat(theme.hv.spacing.xs, "px ").concat(theme.hv.spacing.sm, "px")
77
+ })
78
+ };
79
+ };
80
+
81
+ var _default = styles;
82
+ exports.default = _default;
83
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["styles","theme","root","display","width","backgroundColor","hv","palette","atmosphere","atmo1","boxShadow","open","zIndex","flexDirection","position","top","overflowX","headerContainer","typography","highlightText","justifyContent","alignItems","padding","spacing","sm","borderBottom","atmo2","titleContainer","title","overflow","whiteSpace","textOverflow","actionsContainer","flex","overflowY","footerContainer","height","borderTop","xs"],"sources":["../../src/AppSwitcherPanel/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n display: \"none\",\n width: \"320px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n boxShadow: `0 2px 12px rgba(65, 65, 65, 0.12)`, // rgb color corresponds to #414141;\n },\n open: {\n display: \"flex\",\n zIndex: \"1200\",\n flexDirection: \"column\",\n position: \"absolute\",\n top: \"50px\",\n overflowX: \"hidden\",\n },\n\n headerContainer: {\n ...theme.hv.typography.highlightText,\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: `${theme.hv.spacing.sm}px`,\n borderBottom: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n },\n titleContainer: {\n width: \"100%\",\n display: \"flex\",\n alignItems: \"center\",\n },\n title: {\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n },\n\n actionsContainer: {\n flex: 1,\n padding: `${theme.hv.spacing.sm}px`,\n overflowY: \"auto\",\n },\n\n footerContainer: {\n ...theme.hv.typography.highlightText,\n display: \"flex\",\n alignItems: \"center\",\n height: \"52px\",\n borderTop: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n padding: `${theme.hv.spacing.xs}px ${theme.hv.spacing.sm}px`,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,MADL;MAEJC,KAAK,EAAE,OAFH;MAGJC,eAAe,EAAEJ,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC,KAHzC;MAIJC,SAAS,qCAJL,CAI4C;;IAJ5C,CADmB;IAOzBC,IAAI,EAAE;MACJR,OAAO,EAAE,MADL;MAEJS,MAAM,EAAE,MAFJ;MAGJC,aAAa,EAAE,QAHX;MAIJC,QAAQ,EAAE,UAJN;MAKJC,GAAG,EAAE,MALD;MAMJC,SAAS,EAAE;IANP,CAPmB;IAgBzBC,eAAe,kCACVhB,KAAK,CAACK,EAAN,CAASY,UAAT,CAAoBC,aADV;MAEbhB,OAAO,EAAE,MAFI;MAGbiB,cAAc,EAAE,eAHH;MAIbC,UAAU,EAAE,QAJC;MAKbC,OAAO,YAAKrB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAtB,OALM;MAMbC,YAAY,sBAAexB,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BkB,KAA3C;IANC,EAhBU;IAwBzBC,cAAc,EAAE;MACdvB,KAAK,EAAE,MADO;MAEdD,OAAO,EAAE,MAFK;MAGdkB,UAAU,EAAE;IAHE,CAxBS;IA6BzBO,KAAK,EAAE;MACLC,QAAQ,EAAE,QADL;MAELC,UAAU,EAAE,QAFP;MAGLC,YAAY,EAAE;IAHT,CA7BkB;IAmCzBC,gBAAgB,EAAE;MAChBC,IAAI,EAAE,CADU;MAEhBX,OAAO,YAAKrB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAAtB,OAFS;MAGhBU,SAAS,EAAE;IAHK,CAnCO;IAyCzBC,eAAe,kCACVlC,KAAK,CAACK,EAAN,CAASY,UAAT,CAAoBC,aADV;MAEbhB,OAAO,EAAE,MAFI;MAGbkB,UAAU,EAAE,QAHC;MAIbe,MAAM,EAAE,MAJK;MAKbC,SAAS,sBAAepC,KAAK,CAACK,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BkB,KAA3C,CALI;MAMbJ,OAAO,YAAKrB,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBe,EAAtB,gBAA8BrC,KAAK,CAACK,EAAN,CAASiB,OAAT,CAAiBC,EAA/C;IANM;EAzCU,CAAZ;AAAA,CAAf;;eAmDexB,M"}
@@ -0,0 +1,14 @@
1
+ import { MonacoEditorProps } from "react-monaco-editor";
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
3
+ import { editor } from "monaco-editor";
4
+
5
+ export type HvCodeEditorProps = {
6
+ editorProps: MonacoEditorProps;
7
+ defaultValue?: string;
8
+ onChange?(value: string): void;
9
+ options?: editor.IEditorConstructionOptions;
10
+ };
11
+
12
+ export type HvCodeEditorClassKey = "root";
13
+
14
+ export default function HvCodeEditor(props: HvCodeEditorProps): JSX.Element | null;
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.keys.js");
4
+
5
+ require("core-js/modules/es.symbol.js");
6
+
7
+ require("core-js/modules/es.array.filter.js");
8
+
9
+ require("core-js/modules/es.object.to-string.js");
10
+
11
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
12
+
13
+ require("core-js/modules/web.dom-collections.for-each.js");
14
+
15
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
16
+
17
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
+
19
+ Object.defineProperty(exports, "__esModule", {
20
+ value: true
21
+ });
22
+ exports.default = exports.DefaultCodeEditorOptions = void 0;
23
+
24
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
25
+
26
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
27
+
28
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
29
+
30
+ var _react = _interopRequireDefault(require("react"));
31
+
32
+ var _propTypes = _interopRequireDefault(require("prop-types"));
33
+
34
+ var _reactMonacoEditor = _interopRequireDefault(require("react-monaco-editor"));
35
+
36
+ var _withTheme = _interopRequireDefault(require("@material-ui/core/styles/withTheme"));
37
+
38
+ var _withStyles = _interopRequireDefault(require("@material-ui/core/styles/withStyles"));
39
+
40
+ var _styles = _interopRequireDefault(require("./styles"));
41
+
42
+ var _excluded = ["classes", "theme", "defaultValue", "options", "editorProps"];
43
+
44
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
45
+
46
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
47
+
48
+ var DefaultCodeEditorOptions = {
49
+ automaticLayout: true,
50
+ // TODO add a resize event listener and manually resize?
51
+ overviewRulerLanes: 0,
52
+ minimap: {
53
+ enabled: true
54
+ },
55
+ scrollBeyondLastLine: false,
56
+ scrollbar: {
57
+ horizontal: "visible",
58
+ vertical: "visible",
59
+ verticalScrollbarSize: 20,
60
+ horizontalScrollbarSize: 20,
61
+ verticalSliderSize: 5,
62
+ horizontalSliderSize: 5
63
+ }
64
+ };
65
+ /**
66
+ * A wrapper to the React Monaco editor (https://github.com/react-monaco-editor/react-monaco-editor) with our styles.
67
+ * Please make sure you follow the instructions (found in the repository) to include the component. Webpack configurations, and MonacoWebpackPlugin, are required to see the editor syntax highlight.
68
+ */
69
+
70
+ exports.DefaultCodeEditorOptions = DefaultCodeEditorOptions;
71
+
72
+ var CodeEditor = function CodeEditor(_ref) {
73
+ var classes = _ref.classes,
74
+ theme = _ref.theme,
75
+ defaultValue = _ref.defaultValue,
76
+ options = _ref.options,
77
+ editorProps = _ref.editorProps,
78
+ others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
79
+
80
+ // merges the 2 objects together, overriding defaults with passed in options
81
+ var mergedOptions = _objectSpread(_objectSpread({}, DefaultCodeEditorOptions), options);
82
+
83
+ return /*#__PURE__*/_react.default.createElement("div", {
84
+ className: classes.root
85
+ }, /*#__PURE__*/_react.default.createElement(_reactMonacoEditor.default, (0, _extends2.default)({
86
+ defaultValue: defaultValue,
87
+ options: mergedOptions,
88
+ editorWillMount: function editorWillMount(monaco) {
89
+ monaco.editor.defineTheme("hv", {
90
+ base: theme.hv.type === "light" ? "vs" : "vs-dark",
91
+ inherit: true,
92
+ rules: [],
93
+ colors: {
94
+ "editor.background": theme.hv.palette.atmosphere.atmo1,
95
+ "editorLineNumber.foreground": theme.hv.palette.atmosphere.atmo7
96
+ }
97
+ });
98
+ },
99
+ theme: "hv"
100
+ }, editorProps, others)));
101
+ };
102
+
103
+ process.env.NODE_ENV !== "production" ? CodeEditor.propTypes = {
104
+ /*
105
+ * A Jss Object used to override or extend the styles applied.
106
+ */
107
+ classes: _propTypes.default.shape({
108
+ /**
109
+ * Styles applied to the component root class.
110
+ */
111
+ root: _propTypes.default.string
112
+ }).isRequired,
113
+
114
+ /**
115
+ * styling theme to be applied to the code editor
116
+ */
117
+ theme: _propTypes.default.any.isRequired,
118
+
119
+ /**
120
+ * The properties of the Monaco editor. Please check MonacoEditorProps from https://microsoft.github.io/monaco-editor/api/index.html
121
+ */
122
+ editorProps: _propTypes.default.instanceOf(Object).isRequired,
123
+
124
+ /**
125
+ * The initial value of the code editor
126
+ */
127
+ defaultValue: _propTypes.default.string,
128
+
129
+ /**
130
+ * The function called when the written code changes
131
+ * @param {*} value
132
+ */
133
+ onChange: _propTypes.default.func,
134
+
135
+ /**
136
+ * The properties of the editor object in Monaco. Please check editor.IEditorConstructionOptions in https://microsoft.github.io/monaco-editor/api/index.html
137
+ */
138
+ options: _propTypes.default.instanceOf(Object)
139
+ } : void 0;
140
+
141
+ var _default = (0, _withStyles.default)(_styles.default)((0, _withTheme.default)(CodeEditor));
142
+
143
+ exports.default = _default;
144
+ //# sourceMappingURL=CodeEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeEditor.js","names":["DefaultCodeEditorOptions","automaticLayout","overviewRulerLanes","minimap","enabled","scrollBeyondLastLine","scrollbar","horizontal","vertical","verticalScrollbarSize","horizontalScrollbarSize","verticalSliderSize","horizontalSliderSize","CodeEditor","classes","theme","defaultValue","options","editorProps","others","mergedOptions","root","monaco","editor","defineTheme","base","hv","type","inherit","rules","colors","palette","atmosphere","atmo1","atmo7","propTypes","PropTypes","shape","string","isRequired","any","instanceOf","Object","onChange","func","withStyles","styles","withTheme"],"sources":["../../src/CodeEditor/CodeEditor.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nimport MonacoEditor from \"react-monaco-editor\";\n\nimport withTheme from \"@material-ui/core/styles/withTheme\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\n\nexport const DefaultCodeEditorOptions = {\n automaticLayout: true, // TODO add a resize event listener and manually resize?\n overviewRulerLanes: 0,\n minimap: {\n enabled: true,\n },\n scrollBeyondLastLine: false,\n scrollbar: {\n horizontal: \"visible\",\n vertical: \"visible\",\n verticalScrollbarSize: 20,\n horizontalScrollbarSize: 20,\n verticalSliderSize: 5,\n horizontalSliderSize: 5,\n },\n};\n\n/**\n * A wrapper to the React Monaco editor (https://github.com/react-monaco-editor/react-monaco-editor) with our styles.\n * Please make sure you follow the instructions (found in the repository) to include the component. Webpack configurations, and MonacoWebpackPlugin, are required to see the editor syntax highlight.\n */\nconst CodeEditor = ({ classes, theme, defaultValue, options, editorProps, ...others }) => {\n // merges the 2 objects together, overriding defaults with passed in options\n const mergedOptions = {\n ...DefaultCodeEditorOptions,\n ...options,\n };\n\n return (\n <div className={classes.root}>\n <MonacoEditor\n defaultValue={defaultValue}\n options={mergedOptions}\n editorWillMount={(monaco) => {\n monaco.editor.defineTheme(\"hv\", {\n base: theme.hv.type === \"light\" ? \"vs\" : \"vs-dark\",\n inherit: true,\n rules: [],\n colors: {\n \"editor.background\": theme.hv.palette.atmosphere.atmo1,\n \"editorLineNumber.foreground\": theme.hv.palette.atmosphere.atmo7,\n },\n });\n }}\n theme=\"hv\"\n {...editorProps}\n {...others}\n />\n </div>\n );\n};\n\nCodeEditor.propTypes = {\n /*\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n }).isRequired,\n /**\n * styling theme to be applied to the code editor\n */\n theme: PropTypes.any.isRequired,\n /**\n * The properties of the Monaco editor. Please check MonacoEditorProps from https://microsoft.github.io/monaco-editor/api/index.html\n */\n editorProps: PropTypes.instanceOf(Object).isRequired,\n /**\n * The initial value of the code editor\n */\n defaultValue: PropTypes.string,\n /**\n * The function called when the written code changes\n * @param {*} value\n */\n onChange: PropTypes.func,\n /**\n * The properties of the editor object in Monaco. Please check editor.IEditorConstructionOptions in https://microsoft.github.io/monaco-editor/api/index.html\n */\n options: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles)(withTheme(CodeEditor));\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;;;;;;;AAEO,IAAMA,wBAAwB,GAAG;EACtCC,eAAe,EAAE,IADqB;EACf;EACvBC,kBAAkB,EAAE,CAFkB;EAGtCC,OAAO,EAAE;IACPC,OAAO,EAAE;EADF,CAH6B;EAMtCC,oBAAoB,EAAE,KANgB;EAOtCC,SAAS,EAAE;IACTC,UAAU,EAAE,SADH;IAETC,QAAQ,EAAE,SAFD;IAGTC,qBAAqB,EAAE,EAHd;IAITC,uBAAuB,EAAE,EAJhB;IAKTC,kBAAkB,EAAE,CALX;IAMTC,oBAAoB,EAAE;EANb;AAP2B,CAAjC;AAiBP;AACA;AACA;AACA;;;;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAa,OAAuE;EAAA,IAApEC,OAAoE,QAApEA,OAAoE;EAAA,IAA3DC,KAA2D,QAA3DA,KAA2D;EAAA,IAApDC,YAAoD,QAApDA,YAAoD;EAAA,IAAtCC,OAAsC,QAAtCA,OAAsC;EAAA,IAA7BC,WAA6B,QAA7BA,WAA6B;EAAA,IAAbC,MAAa;;EACxF;EACA,IAAMC,aAAa,mCACdpB,wBADc,GAEdiB,OAFc,CAAnB;;EAKA,oBACE;IAAK,SAAS,EAAEH,OAAO,CAACO;EAAxB,gBACE,6BAAC,0BAAD;IACE,YAAY,EAAEL,YADhB;IAEE,OAAO,EAAEI,aAFX;IAGE,eAAe,EAAE,yBAACE,MAAD,EAAY;MAC3BA,MAAM,CAACC,MAAP,CAAcC,WAAd,CAA0B,IAA1B,EAAgC;QAC9BC,IAAI,EAAEV,KAAK,CAACW,EAAN,CAASC,IAAT,KAAkB,OAAlB,GAA4B,IAA5B,GAAmC,SADX;QAE9BC,OAAO,EAAE,IAFqB;QAG9BC,KAAK,EAAE,EAHuB;QAI9BC,MAAM,EAAE;UACN,qBAAqBf,KAAK,CAACW,EAAN,CAASK,OAAT,CAAiBC,UAAjB,CAA4BC,KAD3C;UAEN,+BAA+BlB,KAAK,CAACW,EAAN,CAASK,OAAT,CAAiBC,UAAjB,CAA4BE;QAFrD;MAJsB,CAAhC;IASD,CAbH;IAcE,KAAK,EAAC;EAdR,GAeMhB,WAfN,EAgBMC,MAhBN,EADF,CADF;AAsBD,CA7BD;;AA+BA,wCAAAN,UAAU,CAACsB,SAAX,GAAuB;EACrB;AACF;AACA;EACErB,OAAO,EAAEsB,kBAAA,CAAUC,KAAV,CAAgB;IACvB;AACJ;AACA;IACIhB,IAAI,EAAEe,kBAAA,CAAUE;EAJO,CAAhB,EAKNC,UATkB;;EAUrB;AACF;AACA;EACExB,KAAK,EAAEqB,kBAAA,CAAUI,GAAV,CAAcD,UAbA;;EAcrB;AACF;AACA;EACErB,WAAW,EAAEkB,kBAAA,CAAUK,UAAV,CAAqBC,MAArB,EAA6BH,UAjBrB;;EAkBrB;AACF;AACA;EACEvB,YAAY,EAAEoB,kBAAA,CAAUE,MArBH;;EAsBrB;AACF;AACA;AACA;EACEK,QAAQ,EAAEP,kBAAA,CAAUQ,IA1BC;;EA2BrB;AACF;AACA;EACE3B,OAAO,EAAEmB,kBAAA,CAAUK,UAAV,CAAqBC,MAArB;AA9BY,CAAvB;;eAiCe,IAAAG,mBAAA,EAAWC,eAAX,EAAmB,IAAAC,kBAAA,EAAUlC,UAAV,CAAnB,C"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./CodeEditor";
2
+ export * from "./CodeEditor";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "default", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _CodeEditor.default;
12
+ }
13
+ });
14
+
15
+ var _CodeEditor = _interopRequireDefault(require("./CodeEditor"));
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/CodeEditor/index.js"],"sourcesContent":["export { default } from \"./CodeEditor\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}