@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,61 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+
3
+ 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; }
4
+
5
+ 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) { _defineProperty(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; }
6
+
7
+ const styles = theme => ({
8
+ drawerPaper: {
9
+ width: 200,
10
+ marginLeft: `${theme.hv.spacing.xs}px`,
11
+ background: "none",
12
+ borderRight: "none"
13
+ },
14
+ drawerPaperPositionInherit: {
15
+ position: "inherit"
16
+ },
17
+ listRoot: {
18
+ borderLeft: `1px solid ${theme.hv.palette.atmosphere.atmo6}`
19
+ },
20
+ listDense: {
21
+ paddingTop: 0,
22
+ paddingBottom: 0
23
+ },
24
+ listItemRoot: {
25
+ minHeight: 32,
26
+ background: "none",
27
+ marginBottom: "8px",
28
+ "&:last-child": {
29
+ marginBottom: "0"
30
+ },
31
+ "&:hover": {
32
+ backgroundColor: `${theme.hv.palette.atmosphere.atmo4}`
33
+ },
34
+ "&$listItemSelected": {
35
+ backgroundColor: `${theme.hv.palette.atmosphere.atmo4}`
36
+ },
37
+ "&$listItemSelected:hover": {
38
+ backgroundColor: `${theme.hv.palette.atmosphere.atmo4}`
39
+ }
40
+ },
41
+ listItemGutters: {
42
+ "@media (min-width: 600px)": {
43
+ padding: `0 ${theme.hv.spacing.xs}px`
44
+ }
45
+ },
46
+ listItemSelected: {
47
+ left: "-1px",
48
+ borderLeft: `4px solid ${theme.hv.palette.accent.acce1}`,
49
+ "@media (min-width: 600px)": {
50
+ paddingLeft: 7
51
+ }
52
+ },
53
+ listItemTextDense: {
54
+ fontSize: theme.hv.typography.normalText.fontSize,
55
+ fontWeight: "inherit"
56
+ },
57
+ listItemTextSelected: _objectSpread({}, theme.hv.typography.highlightText)
58
+ });
59
+
60
+ export default styles;
61
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["styles","theme","drawerPaper","width","marginLeft","hv","spacing","xs","background","borderRight","drawerPaperPositionInherit","position","listRoot","borderLeft","palette","atmosphere","atmo6","listDense","paddingTop","paddingBottom","listItemRoot","minHeight","marginBottom","backgroundColor","atmo4","listItemGutters","padding","listItemSelected","left","accent","acce1","paddingLeft","listItemTextDense","fontSize","typography","normalText","fontWeight","listItemTextSelected","highlightText"],"sources":["../../../src/NavigationAnchors/styles.js"],"sourcesContent":["const styles = (theme) => ({\n drawerPaper: {\n width: 200,\n marginLeft: `${theme.hv.spacing.xs}px`,\n background: \"none\",\n borderRight: \"none\",\n },\n drawerPaperPositionInherit: {\n position: \"inherit\",\n },\n listRoot: {\n borderLeft: `1px solid ${theme.hv.palette.atmosphere.atmo6}`,\n },\n listDense: {\n paddingTop: 0,\n paddingBottom: 0,\n },\n listItemRoot: {\n minHeight: 32,\n background: \"none\",\n marginBottom: \"8px\",\n \"&:last-child\": {\n marginBottom: \"0\",\n },\n \"&:hover\": {\n backgroundColor: `${theme.hv.palette.atmosphere.atmo4}`,\n },\n \"&$listItemSelected\": {\n backgroundColor: `${theme.hv.palette.atmosphere.atmo4}`,\n },\n \"&$listItemSelected:hover\": {\n backgroundColor: `${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n listItemGutters: {\n \"@media (min-width: 600px)\": {\n padding: `0 ${theme.hv.spacing.xs}px`,\n },\n },\n listItemSelected: {\n left: \"-1px\",\n borderLeft: `4px solid ${theme.hv.palette.accent.acce1}`,\n \"@media (min-width: 600px)\": {\n paddingLeft: 7,\n },\n },\n listItemTextDense: {\n fontSize: theme.hv.typography.normalText.fontSize,\n fontWeight: \"inherit\",\n },\n listItemTextSelected: {\n ...theme.hv.typography.highlightText,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAIC,KAAD,KAAY;EACzBC,WAAW,EAAE;IACXC,KA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AiB,EAAE;IACjBC,QAAQ,EAAEhC,KAAK,CAACI,EAAN,CAAS6B,UAAT,CAAoBC,UAApB,CAA+BF,QADxB;IAEjBG,UAAU,EAAE;EAFK,CA9CM;EAkDzBC,oBAAoB,oBACfpC,KAAK,CAACI,EAAN,CAAS6B,UAAT,CAAoBI,aADL;AAlDK,CAAZ,CAAf;;AAuDA,eAAetC,MAAf"}
@@ -0,0 +1,90 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import "core-js/modules/web.dom-collections.iterator.js";
3
+ import React, { Component } from "react";
4
+ import PropTypes from "prop-types";
5
+ import clsx from "clsx";
6
+ import moment from "moment/moment";
7
+ export default class Notification extends Component {
8
+ constructor(...args) {
9
+ super(...args);
10
+
11
+ _defineProperty(this, "getTime", () => {
12
+ const {
13
+ notification: {
14
+ date,
15
+ isRead
16
+ }
17
+ } = this.props;
18
+
19
+ if (!isRead) {
20
+ return moment(date).fromNow();
21
+ }
22
+
23
+ const d = moment(date);
24
+ let format = "D MMMM YYYY, h:mm A";
25
+
26
+ if (d.isSame(Date.now(), "week")) {
27
+ format = "ddd, h:mm A";
28
+ }
29
+
30
+ return d.format(format);
31
+ });
32
+ }
33
+
34
+ render() {
35
+ const {
36
+ classes,
37
+ notification: {
38
+ title,
39
+ isRead,
40
+ icon
41
+ }
42
+ } = this.props;
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ className: clsx(classes.root, isRead && classes.read)
45
+ }, /*#__PURE__*/React.createElement("div", {
46
+ className: classes.iconContainer
47
+ }, icon), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
48
+ className: clsx(classes.title, isRead && classes.read)
49
+ }, title), /*#__PURE__*/React.createElement("div", {
50
+ className: clsx(classes.timeContainer, isRead && classes.read)
51
+ }, /*#__PURE__*/React.createElement("div", {
52
+ className: clsx(classes.bullet, isRead && classes.hide)
53
+ }), /*#__PURE__*/React.createElement("div", {
54
+ className: classes.time
55
+ }, this.getTime()))));
56
+ }
57
+
58
+ }
59
+ process.env.NODE_ENV !== "production" ? Notification.propTypes = {
60
+ /**
61
+ * A Jss Object used to override or extend the component styles.
62
+ */
63
+ classes: PropTypes.instanceOf(Object).isRequired,
64
+
65
+ /**
66
+ * Notification object to be rendered
67
+ */
68
+ notification: PropTypes.shape({
69
+ /**
70
+ * Title of the notification
71
+ */
72
+ title: PropTypes.string.isRequired,
73
+
74
+ /**
75
+ * 'true' if the notification has been read or 'false' if it has not been read
76
+ */
77
+ isRead: PropTypes.bool.isRequired,
78
+
79
+ /**
80
+ * date the notification was created
81
+ */
82
+ date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,
83
+
84
+ /**
85
+ * renderable icon that denotes the status of the notification
86
+ */
87
+ icon: PropTypes.element
88
+ }).isRequired
89
+ } : void 0;
90
+ //# sourceMappingURL=Notification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.js","names":["React","Component","PropTypes","clsx","moment","Notification","notification","date","isRead","props","fromNow","d","format","isSame","Date","now","render","classes","title","icon","root","read","iconContainer","timeContainer","bullet","hide","time","getTime","propTypes","instanceOf","Object","isRequired","shape","string","bool","oneOfType","number","object","element"],"sources":["../../../../src/NotificationPanel/Notification/Notification.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport moment from \"moment/moment\";\n\nexport default class Notification extends Component {\n // TODO: figure out rules for how time should be presented\n getTime = () => {\n const {\n notification: { date, isRead },\n } = this.props;\n\n if (!isRead) {\n return moment(date).fromNow();\n }\n\n const d = moment(date);\n let format = \"D MMMM YYYY, h:mm A\";\n\n if (d.isSame(Date.now(), \"week\")) {\n format = \"ddd, h:mm A\";\n }\n\n return d.format(format);\n };\n\n render() {\n const {\n classes,\n notification: { title, isRead, icon },\n } = this.props;\n\n return (\n <div className={clsx(classes.root, { [classes.read]: isRead })}>\n <div className={classes.iconContainer}>{icon}</div>\n <div>\n <div className={clsx(classes.title, { [classes.read]: isRead })}>{title}</div>\n <div className={clsx(classes.timeContainer, { [classes.read]: isRead })}>\n <div className={clsx(classes.bullet, { [classes.hide]: isRead })} />\n <div className={classes.time}>{this.getTime()}</div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nNotification.propTypes = {\n /**\n * A Jss Object used to override or extend the component styles.\n */\n classes: PropTypes.instanceOf(Object).isRequired,\n /**\n * Notification object to be rendered\n */\n notification: PropTypes.shape({\n /**\n * Title of the notification\n */\n title: PropTypes.string.isRequired,\n /**\n * 'true' if the notification has been read or 'false' if it has not been read\n */\n isRead: PropTypes.bool.isRequired,\n /**\n * date the notification was created\n */\n date: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).isRequired,\n /**\n * renderable icon that denotes the status of the notification\n */\n icon: PropTypes.element,\n }).isRequired,\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,OAAOC,MAAP,MAAmB,eAAnB;AAEA,eAAe,MAAMC,YAAN,SAA2BJ,SAA3B,CAAqC;EAAA;IAAA;;IAAA,iCAExC,MAAM;MACd,MAAM;QACJK,YAAY,EAAE;UAAEC,IAAF;UAAQC;QAAR;MADV,IAEF,KAAKC,KAFT;;MAIA,IAAI,CAACD,MAAL,EAAa;QACX,OAAOJ,MAAM,CAACG,IAAD,CAAN,CAAaG,OAAb,EAAP;MACD;;MAED,MAAMC,CAAC,GAAGP,MAAM,CAACG,IAAD,CAAhB;MACA,IAAIK,MAAM,GAAG,qBAAb;;MAEA,IAAID,CAAC,CAACE,MAAF,CAASC,IAAI,CAACC,GAAL,EAAT,EAAqB,MAArB,CAAJ,EAAkC;QAChCH,MAAM,GAAG,aAAT;MACD;;MAED,OAAOD,CAAC,CAACC,MAAF,CAASA,MAAT,CAAP;IACD,CAnBiD;EAAA;;EAqBlDI,MAAM,GAAG;IACP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CAApB,EAA4EN,UAZtD;;IAa5B;AACJ;AACA;IACIZ,IAAI,EAAEjB,SAAS,CAACoC;EAhBY,CAAhB,EAiBXP;AAzBoB,CAAzB"}
@@ -0,0 +1,7 @@
1
+ import withStyles from "@material-ui/core/styles/withStyles";
2
+ import styles from "./styles";
3
+ import Notification from "./Notification";
4
+ export default withStyles(styles, {
5
+ name: "HvNotificationPanelNotification"
6
+ })(Notification);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["withStyles","styles","Notification","name"],"sources":["../../../../src/NotificationPanel/Notification/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport Notification from \"./Notification\";\n\nexport default withStyles(styles, { name: \"HvNotificationPanelNotification\" })(Notification);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,IAAI,EAAE;AAAR,CAAT,CAAV,CAAgED,YAAhE,CAAf"}
@@ -0,0 +1,45 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+
3
+ 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; }
4
+
5
+ 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) { _defineProperty(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; }
6
+
7
+ const styles = theme => ({
8
+ root: {
9
+ display: "flex",
10
+ minHeight: "68px",
11
+ backgroundColor: theme.palette.common.white,
12
+ color: theme.hv.palette.accent.acce1,
13
+ padding: `${theme.hv.spacing.sm}px ${theme.hv.spacing.sm}px`,
14
+ "&$read": {
15
+ backgroundColor: theme.hv.palette.atmosphere.atmo2
16
+ }
17
+ },
18
+ read: {},
19
+ iconContainer: {
20
+ width: "32px",
21
+ marginRight: `${theme.hv.spacing.sm}px`
22
+ },
23
+ title: _objectSpread(_objectSpread({}, theme.hv.typography.highlightText), {}, {
24
+ marginBottom: "5px",
25
+ "&$read": _objectSpread({}, theme.hv.typography.normalText)
26
+ }),
27
+ timeContainer: _objectSpread(_objectSpread({}, theme.hv.typography.vizText), {}, {
28
+ display: "flex",
29
+ alignItems: "center"
30
+ }),
31
+ bullet: {
32
+ width: "6px",
33
+ height: "6px",
34
+ borderRadius: "50%",
35
+ marginRight: "6px",
36
+ backgroundColor: theme.palette.common.black,
37
+ "&$hide": {
38
+ display: "none"
39
+ }
40
+ },
41
+ hide: {}
42
+ });
43
+
44
+ export default styles;
45
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["styles","theme","root","display","minHeight","backgroundColor","palette","common","white","color","hv","accent","acce1","padding","spacing","sm","atmosphere","atmo2","read","iconContainer","width","marginRight","title","typography","highlightText","marginBottom","normalText","timeContainer","vizText","alignItems","bullet","height","borderRadius","black","hide"],"sources":["../../../../src/NotificationPanel/Notification/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n display: \"flex\",\n minHeight: \"68px\",\n backgroundColor: theme.palette.common.white,\n color: theme.hv.palette.accent.acce1,\n padding: `${theme.hv.spacing.sm}px ${theme.hv.spacing.sm}px`,\n\n \"&$read\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n },\n },\n read: {},\n iconContainer: {\n width: \"32px\",\n marginRight: `${theme.hv.spacing.sm}px`,\n },\n title: {\n ...theme.hv.typography.highlightText,\n marginBottom: \"5px\",\n\n \"&$read\": {\n ...theme.hv.typography.normalText,\n },\n },\n timeContainer: {\n ...theme.hv.typography.vizText,\n display: \"flex\",\n alignItems: \"center\",\n },\n bullet: {\n width: \"6px\",\n height: \"6px\",\n borderRadius: \"50%\",\n marginRight: \"6px\",\n backgroundColor: theme.palette.common.black,\n\n \"&$hide\": {\n display: \"none\",\n },\n },\n hide: {},\n});\n\nexport default styles;\n"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAIC,KAAD,KAAY;EACzBC,IAAI,EAAE;IACJC,OAAO,EAAE,MADL;IAEJC,SAAS,EAAE,MAFP;IAGJC,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAcC,MAAd,CAAqBC,KAHlC;IAIJC,KAAK,EAAER,KAAK,CAACS,EAAN,CAASJ,OAAT,CAAiBK,MAAjB,CAAwBC,KAJ3B;IAKJC,OAAO,EAAG,GAAEZ,KAAK,CAACS,EAAN,CAASI,OAAT,CAAiBC,EAAG,MAAKd,KAAK,CAACS,EAAN,CAASI,OAAT,CAAiBC,EAAG,IALrD;IAOJ,UAAU;MACRV,eAAe,EAAEJ,KAAK,CAACS,EAAN,CAASJ,OAAT,CAAiBU,UAAjB,CAA4BC;IADrC;EAPN,CADmB;EAYzBC,IAAI,EAAE,EAZmB;EAazBC,aAAa,EAAE;IACbC,KAAK,EAAE,MADM;IAEbC,WAAW,EAAG,GAAEpB,KAAK,CAACS,EAAN,CAASI,OAAT,CAAiBC,EAAG;EAFvB,CAbU;EAiBzBO,KAAK,kCACArB,KAAK,CAACS,EAAN,CAASa,UAAT,CAAoBC,aADpB;IAEHC,YAAY,EAAE,KAFX;IAIH,4BACKxB,KAAK,CAACS,EAAN,CAASa,UAAT,CAAoBG,UADzB;EAJG,EAjBoB;EAyBzBC,aAAa,kCACR1B,KAAK,CAACS,EAAN,CAASa,UAAT,CAAoBK,OADZ;IAEXzB,OAAO,EAAE,MAFE;IAGX0B,UAAU,EAAE;EAHD,EAzBY;EA8BzBC,MAAM,EAAE;IACNV,KAAK,EAAE,KADD;IAENW,MAAM,EAAE,KAFF;IAGNC,YAAY,EAAE,KAHR;IAINX,WAAW,EAAE,KAJP;IAKNhB,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAcC,MAAd,CAAqB0B,KALhC;IAON,UAAU;MACR9B,OAAO,EAAE;IADD;EAPJ,CA9BiB;EAyCzB+B,IAAI,EAAE;AAzCmB,CAAZ,CAAf;;AA4CA,eAAelC,MAAf"}
@@ -0,0 +1,49 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+
4
+ interface Header {
5
+ /**
6
+ * The title of the header
7
+ */
8
+ headerTitle: string;
9
+ /**
10
+ * The icon that denoted close functionality
11
+ */
12
+ headerCloseImg: React.ElementType<React.HTMLAttributes<HTMLElement>>;
13
+ }
14
+
15
+ interface Notification {
16
+ /**
17
+ * Id of notification
18
+ */
19
+ id: string;
20
+ }
21
+
22
+ export type HvNotificationPanelClassKey = "panel" | "badgeBorder";
23
+
24
+ export interface HvNotificationPanelProps
25
+ extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvNotificationPanelClassKey> {
26
+ /**
27
+ * 'true' if panel is open or 'false' if the panel is not open
28
+ */
29
+ open?: boolean;
30
+
31
+ /**
32
+ * renderable element that opens the notification panel
33
+ */
34
+ icon: React.ElementType<React.HTMLAttributes<HTMLElement>>;
35
+ /**
36
+ * Object that holds header properties
37
+ */
38
+ header: Header;
39
+ /**
40
+ * Array of notification object to be rendered inside the panel
41
+ */
42
+ notifications: Notification[];
43
+ /**
44
+ * renderable footer element
45
+ */
46
+ footer: React.ElementType<React.HTMLAttributes<HTMLElement>>;
47
+ }
48
+
49
+ export default function HvNotificationPanel(props: HvNotificationPanelProps): JSX.Element | null;
@@ -0,0 +1,153 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import React, { Component } from "react";
3
+ import PropTypes from "prop-types";
4
+ import map from "lodash/map";
5
+ import { withStyles } from "@material-ui/core";
6
+ import { HvBadge } from "@hitachivantara/uikit-react-core";
7
+ import Panel from "./Panel";
8
+ import Notification from "./Notification";
9
+ import styles from "./styles";
10
+ /**
11
+ * Notification Panel displays all of read and unread notifications. Still in development
12
+ */
13
+
14
+ class HvNotificationPanel extends Component {
15
+ constructor(props) {
16
+ super(props);
17
+
18
+ _defineProperty(this, "handleIconClick", () => {
19
+ this.setState(prevState => ({
20
+ open: !prevState.open
21
+ }));
22
+ });
23
+
24
+ _defineProperty(this, "handleIconKeyDown", e => {
25
+ if (e.keyCode === 13) {
26
+ this.setState(prevState => ({
27
+ open: !prevState.open
28
+ }));
29
+ }
30
+ });
31
+
32
+ _defineProperty(this, "onClose", () => {
33
+ this.setState({
34
+ open: false
35
+ });
36
+ });
37
+
38
+ this.state = {
39
+ open: props.open
40
+ };
41
+ }
42
+
43
+ render() {
44
+ const {
45
+ classes,
46
+ icon,
47
+ header,
48
+ footer,
49
+ notifications
50
+ } = this.props;
51
+ const {
52
+ open
53
+ } = this.state;
54
+ const n = map(notifications, notification => /*#__PURE__*/React.createElement(Notification, {
55
+ key: notification.id,
56
+ notification: notification
57
+ }));
58
+ const panelProps = {
59
+ open,
60
+ classes: {
61
+ panel: classes.panel
62
+ },
63
+ onClose: this.onClose,
64
+ header,
65
+ footer,
66
+ notifications
67
+ };
68
+ return /*#__PURE__*/React.createElement("div", {
69
+ className: classes.root
70
+ }, /*#__PURE__*/React.createElement("div", {
71
+ role: "button",
72
+ className: classes.iconWrapper,
73
+ tabIndex: "0",
74
+ onKeyDown: this.handleIconKeyDown,
75
+ onClick: this.handleIconClick
76
+ }, /*#__PURE__*/React.createElement(HvBadge, {
77
+ icon: icon,
78
+ showCount: true,
79
+ count: notifications.length,
80
+ classes: {
81
+ root: classes.badgeBorder
82
+ }
83
+ })), /*#__PURE__*/React.createElement(Panel, panelProps, n));
84
+ }
85
+
86
+ }
87
+
88
+ process.env.NODE_ENV !== "production" ? HvNotificationPanel.propTypes = {
89
+ /**
90
+ * 'true' if panel is open or 'false' if the panel is not open
91
+ */
92
+ open: PropTypes.bool,
93
+
94
+ /**
95
+ * A Jss Object used to override or extend the styles applied.
96
+ */
97
+ classes: PropTypes.shape({
98
+ root: PropTypes.string,
99
+ iconWrapper: PropTypes.string,
100
+
101
+ /**
102
+ * styles object applied to the panel
103
+ */
104
+ panel: PropTypes.any,
105
+
106
+ /**
107
+ * styles object applied to badgeContainer
108
+ */
109
+ badgeBorder: PropTypes.any
110
+ }).isRequired,
111
+
112
+ /**
113
+ * renderable element that opens the notification panel
114
+ */
115
+ icon: PropTypes.element.isRequired,
116
+
117
+ /**
118
+ * Object that holds header properties
119
+ */
120
+ header: PropTypes.shape({
121
+ /**
122
+ * The title of the header
123
+ */
124
+ headerTitle: PropTypes.string.isRequired,
125
+
126
+ /**
127
+ * The icon that denoted close functionality
128
+ */
129
+ headerCloseImg: PropTypes.element.isRequired
130
+ }).isRequired,
131
+
132
+ /**
133
+ * Array of notification object to be rendered inside the panel
134
+ */
135
+ notifications: PropTypes.arrayOf(PropTypes.shape({
136
+ /**
137
+ * Id of notification
138
+ */
139
+ id: PropTypes.string.isRequired
140
+ })).isRequired,
141
+
142
+ /**
143
+ * renderable footer element
144
+ */
145
+ footer: PropTypes.element.isRequired
146
+ } : void 0;
147
+ HvNotificationPanel.defaultProps = {
148
+ open: false
149
+ };
150
+ export default withStyles(styles, {
151
+ name: "HvNotificationPanel"
152
+ })(HvNotificationPanel);
153
+ //# sourceMappingURL=NotificationPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationPanel.js","names":["React","Component","PropTypes","map","withStyles","HvBadge","Panel","Notification","styles","HvNotificationPanel","constructor","props","setState","prevState","open","e","keyCode","state","render","classes","icon","header","footer","notifications","n","notification","id","panelProps","panel","onClose","root","iconWrapper","handleIconKeyDown","handleIconClick","length","badgeBorder","propTypes","bool","shape","string","any","isRequired","element","headerTitle","headerCloseImg","arrayOf","defaultProps","name"],"sources":["../../../src/NotificationPanel/NotificationPanel.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport map from \"lodash/map\";\nimport { withStyles } from \"@material-ui/core\";\nimport { HvBadge } from \"@hitachivantara/uikit-react-core\";\nimport Panel from \"./Panel\";\nimport Notification from \"./Notification\";\nimport styles from \"./styles\";\n\n/**\n * Notification Panel displays all of read and unread notifications. Still in development\n */\nclass HvNotificationPanel extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n open: props.open,\n };\n }\n\n handleIconClick = () => {\n this.setState((prevState) => ({\n open: !prevState.open,\n }));\n };\n\n handleIconKeyDown = (e) => {\n if (e.keyCode === 13) {\n this.setState((prevState) => ({\n open: !prevState.open,\n }));\n }\n };\n\n onClose = () => {\n this.setState({\n open: false,\n });\n };\n\n render() {\n const { classes, icon, header, footer, notifications } = this.props;\n const { open } = this.state;\n\n const n = map(notifications, (notification) => (\n <Notification key={notification.id} notification={notification} />\n ));\n\n const panelProps = {\n open,\n classes: {\n panel: classes.panel,\n },\n onClose: this.onClose,\n header,\n footer,\n notifications,\n };\n\n return (\n <div className={classes.root}>\n <div\n role=\"button\"\n className={classes.iconWrapper}\n tabIndex=\"0\"\n onKeyDown={this.handleIconKeyDown}\n onClick={this.handleIconClick}\n >\n <HvBadge\n icon={icon}\n showCount\n count={notifications.length}\n classes={{ root: classes.badgeBorder }}\n />\n </div>\n <Panel {...panelProps}>{n}</Panel>\n </div>\n );\n }\n}\n\nHvNotificationPanel.propTypes = {\n /**\n * 'true' if panel is open or 'false' if the panel is not open\n */\n open: PropTypes.bool,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n root: PropTypes.string,\n iconWrapper: PropTypes.string,\n /**\n * styles object applied to the panel\n */\n panel: PropTypes.any,\n /**\n * styles object applied to badgeContainer\n */\n badgeBorder: PropTypes.any,\n }).isRequired,\n /**\n * renderable element that opens the notification panel\n */\n icon: PropTypes.element.isRequired,\n /**\n * Object that holds header properties\n */\n header: PropTypes.shape({\n /**\n * The title of the header\n */\n headerTitle: PropTypes.string.isRequired,\n /**\n * The icon that denoted close functionality\n */\n headerCloseImg: PropTypes.element.isRequired,\n }).isRequired,\n /**\n * Array of notification object to be rendered inside the panel\n */\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * Id of notification\n */\n id: PropTypes.string.isRequired,\n })\n ).isRequired,\n /**\n * renderable footer element\n */\n footer: PropTypes.element.isRequired,\n};\n\nHvNotificationPanel.defaultProps = {\n open: false,\n};\n\nexport default withStyles(styles, { name: \"HvNotificationPanel\" })(HvNotificationPanel);\n"],"mappings":";AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,YAAhB;AACA,SAASC,UAAT,QAA2B,mBAA3B;AACA,SAASC,OAAT,QAAwB,kCAAxB;AACA,OAAOC,KAAP,MAAkB,SAAlB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA;AACA;AACA;;AACA,MAAMC,mBAAN,SAAkCR,SAAlC,CAA4C;EAC1CS,WAAW,CAACC,KAAD,EAAQ;IACjB,MAAMA,KAAN;;IADiB,yCAQD,MAAM;MACtB,KAAKC,QAAL,CAAeC,SAAD,KAAgB;QAC5BC,IAAI,EAAE,CAACD,SAAS,CAACC;MADW,CAAhB,CAAd;IAGD,CAZkB;;IAAA,2CAcEC,CAAD,IAAO;MACzB,IAAIA,CAAC,CAACC,OAAF,KAAc,EAAlB,EAAsB;QACpB,KAAKJ,QAAL,CAAeC,SAAD,KAAgB;UAC5BC,IAAI,EAAE,CAACD,SAAS,CAACC;QADW,CAAhB,CAAd;MAGD;IACF,CApBkB;;IAAA,iCAsBT,MAAM;MACd,KAAKF,QAAL,CAAc;QACZE,IAAI,EAAE;MADM,CAAd;IAGD,CA1BkB;;IAGjB,KAAKG,KAAL,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ACqC,MADO;IAEvBR,WAAW,EAAE7B,SAAS,CAACqC,MAFA;;IAGvB;AACJ;AACA;IACIX,KAAK,EAAE1B,SAAS,CAACsC,GANM;;IAOvB;AACJ;AACA;IACIL,WAAW,EAAEjC,SAAS,CAACsC;EAVA,CAAhB,EAWNC,UAnB2B;;EAoB9B;AACF;AACA;EACErB,IAAI,EAAElB,SAAS,CAACwC,OAAV,CAAkBD,UAvBM;;EAwB9B;AACF;AACA;EACEpB,MAAM,EAAEnB,SAAS,CAACoC,KAAV,CAAgB;IACtB;AACJ;AACA;IACIK,WAAW,EAAEzC,SAAS,CAACqC,MAAV,CAAiBE,UAJR;;IAKtB;AACJ;AACA;IACIG,cAAc,EAAE1C,SAAS,CAACwC,OAAV,CAAkBD;EARZ,CAAhB,EASLA,UApC2B;;EAqC9B;AACF;AACA;EACElB,aAAa,EAAErB,SAAS,CAAC2C,OAAV,CACb3C,SAAS,CAACoC,KAAV,CAAgB;IACd;AACN;AACA;IACMZ,EAAE,EAAExB,SAAS,CAACqC,MAAV,CAAiBE;EAJP,CAAhB,CADa,EAObA,UA/C4B;;EAgD9B;AACF;AACA;EACEnB,MAAM,EAAEpB,SAAS,CAACwC,OAAV,CAAkBD;AAnDI,CAAhC;AAsDAhC,mBAAmB,CAACqC,YAApB,GAAmC;EACjChC,IAAI,EAAE;AAD2B,CAAnC;AAIA,eAAeV,UAAU,CAACI,MAAD,EAAS;EAAEuC,IAAI,EAAE;AAAR,CAAT,CAAV,CAAoDtC,mBAApD,CAAf"}
@@ -0,0 +1,133 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import "core-js/modules/web.dom-collections.iterator.js";
3
+ import React, { Component } from "react";
4
+ import PropTypes from "prop-types";
5
+ import _ from "lodash";
6
+ import { HvBadge } from "@hitachivantara/uikit-react-core";
7
+ const EnterKeyCode = 13;
8
+ export default class Panel extends Component {
9
+ constructor(...args) {
10
+ super(...args);
11
+
12
+ _defineProperty(this, "onKeyDownClose", e => {
13
+ if (e.keyCode === EnterKeyCode) {
14
+ const {
15
+ onClose
16
+ } = this.props;
17
+ onClose();
18
+ }
19
+ });
20
+ }
21
+
22
+ render() {
23
+ const {
24
+ classes,
25
+ open,
26
+ header: {
27
+ headerTitle,
28
+ headerCloseImg
29
+ },
30
+ notifications,
31
+ onClose,
32
+ footer,
33
+ children
34
+ } = this.props;
35
+
36
+ const newNotificationCount = _.filter(notifications, notification => !notification.isRead).length;
37
+
38
+ return /*#__PURE__*/React.createElement("div", {
39
+ className: `${classes.root} ${open ? classes.open : ""} ${classes.panel}`,
40
+ ref: this.rootRef
41
+ }, /*#__PURE__*/React.createElement("div", {
42
+ className: classes.header
43
+ }, /*#__PURE__*/React.createElement("div", {
44
+ className: classes.titleContainer
45
+ }, /*#__PURE__*/React.createElement("div", {
46
+ className: classes.title
47
+ }, headerTitle), /*#__PURE__*/React.createElement(HvBadge, {
48
+ count: newNotificationCount,
49
+ showCount: true
50
+ })), /*#__PURE__*/React.createElement("div", {
51
+ role: "button",
52
+ className: classes.close,
53
+ tabIndex: "0",
54
+ onKeyDown: this.onKeyDownClose,
55
+ onClick: onClose
56
+ }, headerCloseImg)), /*#__PURE__*/React.createElement("div", {
57
+ className: classes.notificationsContainer
58
+ }, children), /*#__PURE__*/React.createElement("div", {
59
+ className: classes.footerContainer
60
+ }, footer));
61
+ }
62
+
63
+ }
64
+ process.env.NODE_ENV !== "production" ? Panel.propTypes = {
65
+ /**
66
+ * 'true' if the panel is open or 'false if the panel is closed
67
+ */
68
+ open: PropTypes.bool,
69
+
70
+ /**
71
+ * Number of new notifications
72
+ */
73
+ notifications: PropTypes.arrayOf(PropTypes.shape({
74
+ /**
75
+ * 'true' if notification has been read; 'false' otherwise
76
+ */
77
+ isRead: PropTypes.bool.isRequired
78
+ }).isRequired),
79
+
80
+ /**
81
+ * A Jss Object used to override or extend the styles applied.
82
+ */
83
+ classes: PropTypes.shape({
84
+ /**
85
+ * styles applied to the panel
86
+ */
87
+ panel: PropTypes.string,
88
+ root: PropTypes.string,
89
+ open: PropTypes.string,
90
+ header: PropTypes.string,
91
+ titleContainer: PropTypes.string,
92
+ title: PropTypes.string,
93
+ close: PropTypes.string,
94
+ notificationsContainer: PropTypes.string,
95
+ footerContainer: PropTypes.string
96
+ }).isRequired,
97
+
98
+ /**
99
+ * The function that will be executed when the panel is closed
100
+ */
101
+ onClose: PropTypes.func.isRequired,
102
+
103
+ /**
104
+ * Object that holds header properties
105
+ */
106
+ header: PropTypes.shape({
107
+ /**
108
+ * The title of the header
109
+ */
110
+ headerTitle: PropTypes.string.isRequired,
111
+
112
+ /**
113
+ * The icon that denoted close functionality
114
+ */
115
+ headerCloseImg: PropTypes.element.isRequired
116
+ }).isRequired,
117
+
118
+ /**
119
+ * The renderable footer element
120
+ */
121
+ footer: PropTypes.element.isRequired,
122
+
123
+ /**
124
+ * Node to be rendered
125
+ */
126
+ children: PropTypes.node
127
+ } : void 0;
128
+ Panel.defaultProps = {
129
+ open: false,
130
+ notifications: [],
131
+ children: null
132
+ };
133
+ //# sourceMappingURL=Panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Panel.js","names":["React","Component","PropTypes","_","HvBadge","EnterKeyCode","Panel","e","keyCode","onClose","props","render","classes","open","header","headerTitle","headerCloseImg","notifications","footer","children","newNotificationCount","filter","notification","isRead","length","root","panel","rootRef","titleContainer","title","close","onKeyDownClose","notificationsContainer","footerContainer","propTypes","bool","arrayOf","shape","isRequired","string","func","element","node","defaultProps"],"sources":["../../../../src/NotificationPanel/Panel/Panel.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport _ from \"lodash\";\nimport { HvBadge } from \"@hitachivantara/uikit-react-core\";\n\nconst EnterKeyCode = 13;\n\nexport default class Panel extends Component {\n onKeyDownClose = (e) => {\n if (e.keyCode === EnterKeyCode) {\n const { onClose } = this.props;\n onClose();\n }\n };\n\n render() {\n const {\n classes,\n open,\n header: { headerTitle, headerCloseImg },\n notifications,\n onClose,\n footer,\n children,\n } = this.props;\n const newNotificationCount = _.filter(\n notifications,\n (notification) => !notification.isRead\n ).length;\n\n return (\n <div\n className={`${classes.root} ${open ? classes.open : \"\"} ${classes.panel}`}\n ref={this.rootRef}\n >\n <div className={classes.header}>\n <div className={classes.titleContainer}>\n <div className={classes.title}>{headerTitle}</div>\n <HvBadge count={newNotificationCount} showCount />\n </div>\n <div\n role=\"button\"\n className={classes.close}\n tabIndex=\"0\"\n onKeyDown={this.onKeyDownClose}\n onClick={onClose}\n >\n {headerCloseImg}\n </div>\n </div>\n <div className={classes.notificationsContainer}>{children}</div>\n <div className={classes.footerContainer}>{footer}</div>\n </div>\n );\n }\n}\n\nPanel.propTypes = {\n /**\n * 'true' if the panel is open or 'false if the panel is closed\n */\n open: PropTypes.bool,\n /**\n * Number of new notifications\n */\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * 'true' if notification has been read; 'false' otherwise\n */\n isRead: PropTypes.bool.isRequired,\n }).isRequired\n ),\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * styles applied to the panel\n */\n panel: PropTypes.string,\n root: PropTypes.string,\n open: PropTypes.string,\n header: PropTypes.string,\n titleContainer: PropTypes.string,\n title: PropTypes.string,\n close: PropTypes.string,\n notificationsContainer: PropTypes.string,\n footerContainer: PropTypes.string,\n }).isRequired,\n /**\n * The function that will be executed when the panel is closed\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Object that holds header properties\n */\n header: PropTypes.shape({\n /**\n * The title of the header\n */\n headerTitle: PropTypes.string.isRequired,\n /**\n * The icon that denoted close functionality\n */\n headerCloseImg: PropTypes.element.isRequired,\n }).isRequired,\n /**\n * The renderable footer element\n */\n footer: PropTypes.element.isRequired,\n /**\n * Node to be rendered\n */\n children: PropTypes.node,\n};\n\nPanel.defaultProps = {\n open: false,\n notifications: [],\n children: null,\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAi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;EAkDhB;AACF;AACA;EACEpB,MAAM,EAAEhB,SAAS,CAACuC,OAAV,CAAkBH,UArDV;;EAsDhB;AACF;AACA;EACEnB,QAAQ,EAAEjB,SAAS,CAACwC;AAzDJ,CAAlB;AA4DApC,KAAK,CAACqC,YAAN,GAAqB;EACnB9B,IAAI,EAAE,KADa;EAEnBI,aAAa,EAAE,EAFI;EAGnBE,QAAQ,EAAE;AAHS,CAArB"}
@@ -0,0 +1,7 @@
1
+ import withStyles from "@material-ui/core/styles/withStyles";
2
+ import styles from "./styles";
3
+ import Panel from "./Panel";
4
+ export default withStyles(styles, {
5
+ name: "HvNotificationPanelPanel"
6
+ })(Panel);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["withStyles","styles","Panel","name"],"sources":["../../../../src/NotificationPanel/Panel/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport Panel from \"./Panel\";\n\nexport default withStyles(styles, { name: \"HvNotificationPanelPanel\" })(Panel);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,KAAP,MAAkB,SAAlB;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,IAAI,EAAE;AAAR,CAAT,CAAV,CAAyDD,KAAzD,CAAf"}