@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":"UnitTimePicker.js","names":["React","PropTypes","clsx","HvInput","DropUpXS","AddTimeIcon","DropDownXS","SubtractTimeIcon","isUnitTimeInValidRange","padTime","TimePickerUnits","UnitTimePicker","props","event","value","unitTime","Number","toString","length","changeTimeUnit","isFocused","state","setState","currentValue","maxValue","minValue","newUnitTime","onChangeUnitTimeValue","isUnitTimeValid","unit","isValid","min","max","unitValue","classes","unitTimeContainer","addIcon","handleAddTime","input","unitTimeInput","root","inputContainer","inputRoot","unitTimeInputRoot","unitTimeInputRootInvalid","renderTimeUnit","handleCurrentValueChange","handleFocusChange","validateUnitTime","placeholder","subtractIcon","handleSubtractTime","Component","propTypes","instanceOf","Object","isRequired","oneOf","HOUR_24","type","HOUR_12","MINUTE","SECOND","otherProps","propName","componentName","Error","func","defaultProps"],"sources":["../../../../src/TimePicker/UnitTimePicker/UnitTimePicker.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { HvInput } from \"@hitachivantara/uikit-react-core\";\nimport {\n DropUpXS as AddTimeIcon,\n DropDownXS as SubtractTimeIcon,\n} from \"@hitachivantara/uikit-react-icons\";\nimport { isUnitTimeInValidRange } from \"../timePickerUtils\";\nimport { padTime } from \"../timePickerFormatter\";\nimport { TimePickerUnits } from \"../enums\";\n\nclass UnitTimePicker extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n minValue: TimePickerUnits[props.unit].min,\n maxValue: TimePickerUnits[props.unit].max,\n currentValue: props.unitValue,\n isFocused: false,\n isValid: true,\n };\n }\n\n /**\n * Handles the unit time value change when it is done through a change on the input.\n * It only reflects on the state if the number of digits is between 0 and 2\n * @param {Number} value - new unit time value\n * @memberof UnitTimePicker\n */\n handleCurrentValueChange = (event, value) => {\n const unitTime = value === \"\" ? value : Number(value);\n if ((unitTime || unitTime === \"\") && unitTime.toString().length <= 2) {\n this.changeTimeUnit(unitTime);\n }\n };\n\n /**\n * Handles the change on the focus of the input\n * @memberof UnitTimePicker\n */\n handleFocusChange = () => {\n const { isFocused } = this.state;\n\n this.setState({\n isFocused: !isFocused,\n });\n };\n\n /**\n * Handles the action to increase the unit time value\n * If the new value surpasses the max allowed, it updates the time to the min value.\n * @memberof UnitTimePicker\n */\n handleAddTime = () => {\n const { currentValue, maxValue, minValue } = this.state;\n let newUnitTime = currentValue === \"\" ? minValue : currentValue + 1;\n if (newUnitTime > maxValue) {\n newUnitTime = minValue;\n }\n this.changeTimeUnit(newUnitTime);\n };\n\n /**\n * Handles the action to decrease the unit time value\n * If the new value goes below the min allowed, it updates the time to the max value.\n * @memberof UnitTimePicker\n */\n handleSubtractTime = () => {\n const { currentValue, maxValue, minValue } = this.state;\n let newUnitTime = currentValue === \"\" ? maxValue : currentValue - 1;\n if (newUnitTime < minValue) {\n newUnitTime = maxValue;\n }\n this.changeTimeUnit(newUnitTime);\n };\n\n /**\n * Changes the time unit value in the state.\n * The onChange callback is only called if the new value is a valid one (in the allowed range)\n *\n * @param {Number} value - new time unit value\n * @memberof UnitTimePicker\n */\n changeTimeUnit = (value) => {\n const { onChangeUnitTimeValue } = this.props;\n this.setState({\n currentValue: value,\n });\n if (this.isUnitTimeValid(value)) {\n onChangeUnitTimeValue(value);\n }\n };\n\n /**\n * Checks if the unit time is valid, meaning that is between the min and max values for the specific unit time\n * @memberof UnitTimePicker\n */\n isUnitTimeValid = (unitTime) => {\n const { unit } = this.props;\n const isValid = isUnitTimeInValidRange(unitTime, unit);\n this.setState({\n isValid,\n });\n return isValid;\n };\n\n /**\n * Renderers\n */\n\n /**\n * Renders the time unit value input in the correct format\n * @memberof UnitTimePicker\n */\n renderTimeUnit = () => {\n const { currentValue, isFocused } = this.state;\n return isFocused ? currentValue.toString() : padTime(currentValue).toString();\n };\n\n /**\n * Renders the UnitTimePicker\n */\n render() {\n const { classes } = this.props;\n const { isValid } = this.state;\n\n return (\n <div className={classes.unitTimeContainer}>\n <AddTimeIcon className={classes.addIcon} onClick={this.handleAddTime} />\n <HvInput\n disableClear\n className={classes.unitTime}\n classes={{\n input: classes.unitTimeInput,\n root: classes.inputContainer,\n inputRoot: clsx(classes.unitTimeInputRoot, {\n [classes.unitTimeInputRootInvalid]: !isValid,\n }),\n }}\n value={this.renderTimeUnit()}\n onChange={this.handleCurrentValueChange}\n onFocus={this.handleFocusChange}\n onBlur={this.handleFocusChange}\n validationIconVisible={false}\n showInfo={false}\n validation={this.validateUnitTime}\n labels={{\n placeholder: \"\",\n }}\n />\n <SubtractTimeIcon className={classes.subtractIcon} onClick={this.handleSubtractTime} />\n </div>\n );\n }\n}\n\nUnitTimePicker.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied to the input/popper\n */\n classes: PropTypes.instanceOf(Object).isRequired,\n /**\n * Type of Unit time picker (hour, minute or second)\n */\n unit: PropTypes.oneOf([\n TimePickerUnits.HOUR_24.type,\n TimePickerUnits.HOUR_12.type,\n TimePickerUnits.MINUTE.type,\n TimePickerUnits.SECOND.type,\n ]).isRequired,\n /**\n * Default unit time value\n */\n unitValue: (otherProps, propName, componentName) => {\n const minValue = TimePickerUnits[otherProps.unit].min;\n const maxValue = TimePickerUnits[otherProps.unit].max;\n const unitValue = otherProps[propName];\n if (unitValue > maxValue || unitValue < minValue) {\n return new Error(\n `Invalid prop ${propName} supplied to ${componentName}. Value not in the correct range ${minValue}-${maxValue}`\n );\n }\n return null;\n },\n /**\n * Callback function called when the unit time value changes\n */\n onChangeUnitTimeValue: PropTypes.func.isRequired,\n};\n\nUnitTimePicker.defaultProps = {\n unitValue: 0,\n};\n\nexport default UnitTimePicker;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,SAASC,OAAT,QAAwB,kCAAxB;AACA,SACEC,QAAQ,IAAIC,WADd,EAEEC,UAAU,IAAIC,gBAFhB,QAGO,mCAHP;AAIA,SAASC,sBAAT,QAAuC,oBAAvC;AACA,SAASC,OAAT,QAAwB,wBAAxB;AACA,SAASC,eAAT,QAAgC,UAAhC;;IAEMC,c;;;;;EACJ,wBAAYC,KAAZ,EAAmB;IAAA;;IAAA;;IACjB,0BAAMA,KAAN;;IADiB,2EAkBQ,UAACC,KAAD,EAAQC,KAAR,EAAkB;MAC3C,IAAMC,QAAQ,GAA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AAe,CAACqD,UAAU,CAAClC,IAAZ,CAAf,CAAiCE,GAAlD;IACA,IAAMP,QAAQ,GAAGd,eAAe,CAACqD,UAAU,CAAClC,IAAZ,CAAf,CAAiCG,GAAlD;IACA,IAAMC,SAAS,GAAG8B,UAAU,CAACC,QAAD,CAA5B;;IACA,IAAI/B,SAAS,GAAGT,QAAZ,IAAwBS,SAAS,GAAGR,QAAxC,EAAkD;MAChD,OAAO,IAAIyC,KAAJ,wBACWF,QADX,0BACmCC,aADnC,8CACoFxC,QADpF,cACgGD,QADhG,EAAP;IAGD;;IACD,OAAO,IAAP;EACD,CA3BwB;;EA4BzB;AACF;AACA;EACEG,qBAAqB,EAAE1B,SAAS,CAACkE,IAAV,CAAeX;AA/Bb,CAA3B;AAkCA7C,cAAc,CAACyD,YAAf,GAA8B;EAC5BnC,SAAS,EAAE;AADiB,CAA9B;AAIA,eAAetB,cAAf"}
@@ -0,0 +1,7 @@
1
+ import withStyles from "@material-ui/core/styles/withStyles";
2
+ import styles from "./styles";
3
+ import UnitTimePicker from "./UnitTimePicker";
4
+ export default withStyles(styles, {
5
+ name: "HvTimePickerUnitTimePicker"
6
+ })(UnitTimePicker);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["withStyles","styles","UnitTimePicker","name"],"sources":["../../../../src/TimePicker/UnitTimePicker/index.js"],"sourcesContent":["import withStyles from \"@material-ui/core/styles/withStyles\";\nimport styles from \"./styles\";\nimport UnitTimePicker from \"./UnitTimePicker\";\n\nexport default withStyles(styles, { name: \"HvTimePickerUnitTimePicker\" })(UnitTimePicker);\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,qCAAvB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AAEA,eAAeF,UAAU,CAACC,MAAD,EAAS;EAAEE,IAAI,EAAE;AAAR,CAAT,CAAV,CAA2DD,cAA3D,CAAf"}
@@ -0,0 +1,63 @@
1
+ import "core-js/modules/es.object.keys.js";
2
+ import "core-js/modules/es.symbol.js";
3
+ import "core-js/modules/es.array.filter.js";
4
+ import "core-js/modules/es.object.to-string.js";
5
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
6
+ import "core-js/modules/web.dom-collections.for-each.js";
7
+ import "core-js/modules/es.object.get-own-property-descriptors.js";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
+
10
+ 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; }
11
+
12
+ 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; }
13
+
14
+ var icon = {
15
+ width: "32px",
16
+ height: "32px",
17
+ cursor: "pointer"
18
+ };
19
+
20
+ var styles = function styles(theme) {
21
+ return {
22
+ unitTimeContainer: {
23
+ display: "flex",
24
+ flexDirection: "column",
25
+ justifyContent: "center",
26
+ alignItems: "center"
27
+ },
28
+ unitTimeInput: _objectSpread(_objectSpread({}, theme.hv.typography.sTitle), {}, {
29
+ fontWeight: 600,
30
+ textAlign: "center",
31
+ height: "40px",
32
+ width: "40px",
33
+ padding: 0,
34
+ margin: 0,
35
+ "&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
36
+ "-webkit-appearance": "none",
37
+ "-moz-appearance": "none",
38
+ margin: 0
39
+ },
40
+ "&[type=number]": {
41
+ "-webkit-appearance": "textfield",
42
+ "-moz-appearance": "textfield"
43
+ }
44
+ }),
45
+ unitTimeInputRoot: {},
46
+ unitTimeInputRootInvalid: {
47
+ border: "1px red solid"
48
+ },
49
+ addIcon: _objectSpread(_objectSpread({}, icon), {}, {
50
+ marginTop: "".concat(theme.hv.spacing.sm, "px")
51
+ }),
52
+ subtractIcon: _objectSpread(_objectSpread({}, icon), {}, {
53
+ marginBottom: "".concat(theme.hv.spacing.sm, "px")
54
+ }),
55
+ inputContainer: {
56
+ minWidth: "40px",
57
+ maxWidth: "40px"
58
+ }
59
+ };
60
+ };
61
+
62
+ export default styles;
63
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["icon","width","height","cursor","styles","theme","unitTimeContainer","display","flexDirection","justifyContent","alignItems","unitTimeInput","hv","typography","sTitle","fontWeight","textAlign","padding","margin","unitTimeInputRoot","unitTimeInputRootInvalid","border","addIcon","marginTop","spacing","sm","subtractIcon","marginBottom","inputContainer","minWidth","maxWidth"],"sources":["../../../../src/TimePicker/UnitTimePicker/styles.js"],"sourcesContent":["const icon = {\n width: \"32px\",\n height: \"32px\",\n cursor: \"pointer\",\n};\n\nconst styles = (theme) => ({\n unitTimeContainer: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n unitTimeInput: {\n ...theme.hv.typography.sTitle,\n fontWeight: 600,\n textAlign: \"center\",\n height: \"40px\",\n width: \"40px\",\n padding: 0,\n margin: 0,\n \"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button\": {\n \"-webkit-appearance\": \"none\",\n \"-moz-appearance\": \"none\",\n margin: 0,\n },\n \"&[type=number]\": {\n \"-webkit-appearance\": \"textfield\",\n \"-moz-appearance\": \"textfield\",\n },\n },\n unitTimeInputRoot: {},\n unitTimeInputRootInvalid: {\n border: \"1px red solid\",\n },\n addIcon: {\n ...icon,\n marginTop: `${theme.hv.spacing.sm}px`,\n },\n subtractIcon: {\n ...icon,\n marginBottom: `${theme.hv.spacing.sm}px`,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Units = {
2
+ HOUR_24: {
3
+ type: "HOUR_24",
4
+ min: 0,
5
+ max: 23
6
+ },
7
+ HOUR_12: {
8
+ type: "HOUR_12",
9
+ min: 1,
10
+ max: 12
11
+ },
12
+ MINUTE: {
13
+ type: "MINUTE",
14
+ min: 0,
15
+ max: 59
16
+ },
17
+ SECOND: {
18
+ type: "SECOND",
19
+ min: 0,
20
+ max: 59
21
+ }
22
+ };
23
+ var PeriodPickerOptions = {
24
+ AM: "AM",
25
+ PM: "PM"
26
+ };
27
+ var TimeFormat = {
28
+ H12: 12,
29
+ H24: 24
30
+ };
31
+ export { TimePickerUnits, PeriodPickerOptions, TimeFormat };
32
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","names":["TimePickerUnits","HOUR_24","type","min","max","HOUR_12","MINUTE","SECOND","PeriodPickerOptions","AM","PM","TimeFormat","H12","H24"],"sources":["../../../src/TimePicker/enums.js"],"sourcesContent":["const TimePickerUnits = {\n HOUR_24: {\n type: \"HOUR_24\",\n min: 0,\n max: 23,\n },\n HOUR_12: {\n type: \"HOUR_12\",\n min: 1,\n max: 12,\n },\n MINUTE: {\n type: \"MINUTE\",\n min: 0,\n max: 59,\n },\n SECOND: {\n type: \"SECOND\",\n min: 0,\n max: 59,\n },\n};\n\nconst PeriodPickerOptions = {\n AM: \"AM\",\n PM: \"PM\",\n};\n\nconst TimeFormat = {\n H12: 12,\n H24: 24,\n};\n\nexport { TimePickerUnits, PeriodPickerOptions, TimeFormat };\n"],"mappings":"AAAA,IAAMA,eAAe,GAAG;EACtBC,OAAO,EAAE;IACPC,IAAI,EAAE,SADC;IAEPC,GAAG,EAAE,CAFE;IAGPC,GAAG,EAAE;EAHE,CADa;EAMtBC,OAAO,EAAE;IACPH,IAAI,EAAE,SADC;IAEPC,GAAG,EAAE,CAFE;IAGPC,GAAG,EAAE;EAHE,CANa;EAWtBE,MAAM,EAAE;IACNJ,IAAI,EAAE,QADA;IAENC,GAAG,EAAE,CAFC;IAGNC,GAAG,EAAE;EAHC,CAXc;EAgBtBG,MAAM,EAAE;IACNL,IAAI,EAAE,QADA;IAENC,GAAG,EAAE,CAFC;IAGNC,GAAG,EAAE;EAHC;AAhBc,CAAxB;AAuBA,IAAMI,mBAAmB,GAAG;EAC1BC,EAAE,EAAE,IADsB;EAE1BC,EAAE,EAAE;AAFsB,CAA5B;AAKA,IAAMC,UAAU,GAAG;EACjBC,GAAG,EAAE,EADY;EAEjBC,GAAG,EAAE;AAFY,CAAnB;AAKA,SAASb,eAAT,EAA0BQ,mBAA1B,EAA+CG,UAA/C"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./TimePicker";
2
+ export * from "./TimePicker";
@@ -0,0 +1,2 @@
1
+ export { default } from "./TimePicker";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../src/TimePicker/index.js"],"sourcesContent":["export { default } from \"./TimePicker\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB"}
@@ -0,0 +1,96 @@
1
+ import "core-js/modules/es.object.keys.js";
2
+ import "core-js/modules/es.symbol.js";
3
+ import "core-js/modules/es.array.filter.js";
4
+ import "core-js/modules/es.object.to-string.js";
5
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
6
+ import "core-js/modules/web.dom-collections.for-each.js";
7
+ import "core-js/modules/es.object.get-own-property-descriptors.js";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
+
10
+ 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; }
11
+
12
+ 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; }
13
+
14
+ var icon = {
15
+ position: "absolute",
16
+ right: 0,
17
+ bottom: 0,
18
+ width: "30px",
19
+ height: "30px"
20
+ };
21
+
22
+ var styles = function styles(theme) {
23
+ return {
24
+ input: _objectSpread(_objectSpread({
25
+ border: "none",
26
+ height: "30px",
27
+ width: "100%",
28
+ background: "white",
29
+ fontFamily: theme.hv.typography.fontFamily
30
+ }, theme.hv.typography.normalText), {}, {
31
+ "&:focus": {
32
+ outline: "none"
33
+ },
34
+ "&::placeholder": _objectSpread({}, theme.hv.typography.placeholderText)
35
+ }),
36
+ inputPopperOpenedBelow: {
37
+ boxShadow: "0 10px 12px #fff"
38
+ },
39
+ inputPopperOpenedAbove: {
40
+ boxShadow: "0 -10px 12px #fff"
41
+ },
42
+ inputPopperClosed: {
43
+ border: "1px solid ".concat(theme.hv.palette.atmosphere.atmo6)
44
+ },
45
+ inputContainer: {
46
+ position: "relative",
47
+ background: theme.hv.palette.atmosphere.atmo1,
48
+ height: "32px",
49
+ paddingLeft: "".concat(theme.hv.spacing.xs, "px"),
50
+ paddingRight: "".concat(theme.hv.spacing.md, "px")
51
+ },
52
+ icon: _objectSpread(_objectSpread({}, icon), {}, {
53
+ cursor: "pointer"
54
+ }),
55
+ timePickerContainer: {
56
+ position: "relative",
57
+ minWidth: "200px"
58
+ },
59
+ label: {
60
+ marginBottom: "".concat(theme.hv.spacing.xs, "px"),
61
+ display: "block"
62
+ },
63
+ timePopperContainer: {
64
+ backgroundColor: "".concat(theme.hv.palette.atmosphere.atmo1),
65
+ zIndex: "10",
66
+ display: "flex",
67
+ flexDirection: "row",
68
+ justifyContent: "center",
69
+ alignItems: "center",
70
+ paddingLeft: "".concat(theme.hv.spacing.sm, "px"),
71
+ paddingRight: "".concat(theme.hv.spacing.sm, "px")
72
+ },
73
+ popper: {
74
+ minWidth: "100%",
75
+ zIndex: "10"
76
+ },
77
+ popperBelow: {
78
+ marginTop: "".concat(theme.hv.spacing.xs, "px"),
79
+ boxShadow: "0 -2px 12px rgba(65,65,65,.12)"
80
+ },
81
+ popperAbove: {
82
+ marginBottom: "".concat(theme.hv.spacing.xs, "px"),
83
+ boxShadow: "0 2px 12px rgba(65,65,65,.12)"
84
+ },
85
+ separator: _objectSpread(_objectSpread({}, theme.hv.typography.sTitle), {}, {
86
+ marginLeft: "5px",
87
+ marginRight: "5px"
88
+ }),
89
+ periodContainer: {
90
+ marginLeft: "".concat(theme.hv.spacing.xs, "px")
91
+ }
92
+ };
93
+ };
94
+
95
+ export default styles;
96
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["icon","position","right","bottom","width","height","styles","theme","input","border","background","fontFamily","hv","typography","normalText","outline","placeholderText","inputPopperOpenedBelow","boxShadow","inputPopperOpenedAbove","inputPopperClosed","palette","atmosphere","atmo6","inputContainer","atmo1","paddingLeft","spacing","xs","paddingRight","md","cursor","timePickerContainer","minWidth","label","marginBottom","display","timePopperContainer","backgroundColor","zIndex","flexDirection","justifyContent","alignItems","sm","popper","popperBelow","marginTop","popperAbove","separator","sTitle","marginLeft","marginRight","periodContainer"],"sources":["../../../src/TimePicker/styles.js"],"sourcesContent":["const icon = {\n position: \"absolute\",\n right: 0,\n bottom: 0,\n width: \"30px\",\n height: \"30px\",\n};\n\nconst styles = (theme) => ({\n input: {\n border: \"none\",\n height: \"30px\",\n width: \"100%\",\n background: \"white\",\n fontFamily: theme.hv.typography.fontFamily,\n ...theme.hv.typography.normalText,\n \"&:focus\": {\n outline: \"none\",\n },\n \"&::placeholder\": {\n ...theme.hv.typography.placeholderText,\n },\n },\n inputPopperOpenedBelow: {\n boxShadow: \"0 10px 12px #fff\",\n },\n inputPopperOpenedAbove: {\n boxShadow: \"0 -10px 12px #fff\",\n },\n inputPopperClosed: {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo6}`,\n },\n inputContainer: {\n position: \"relative\",\n background: theme.hv.palette.atmosphere.atmo1,\n height: \"32px\",\n paddingLeft: `${theme.hv.spacing.xs}px`,\n paddingRight: `${theme.hv.spacing.md}px`,\n },\n icon: {\n ...icon,\n cursor: \"pointer\",\n },\n timePickerContainer: {\n position: \"relative\",\n minWidth: \"200px\",\n },\n label: {\n marginBottom: `${theme.hv.spacing.xs}px`,\n display: \"block\",\n },\n timePopperContainer: {\n backgroundColor: `${theme.hv.palette.atmosphere.atmo1}`,\n zIndex: \"10\",\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\",\n paddingLeft: `${theme.hv.spacing.sm}px`,\n paddingRight: `${theme.hv.spacing.sm}px`,\n },\n popper: {\n minWidth: \"100%\",\n zIndex: \"10\",\n },\n popperBelow: {\n marginTop: `${theme.hv.spacing.xs}px`,\n boxShadow: \"0 -2px 12px rgba(65,65,65,.12)\",\n },\n popperAbove: {\n marginBottom: `${theme.hv.spacing.xs}px`,\n boxShadow: \"0 2px 12px rgba(65,65,65,.12)\",\n },\n separator: {\n ...theme.hv.typography.sTitle,\n marginLeft: \"5px\",\n marginRight: \"5px\",\n },\n periodContainer: {\n marginLeft: `${theme.hv.spacing.xs}px`,\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAMA,IAAI,GAAG;EACXC,QAAQ,EAAE,UADC;EAEXC,KAAK,EAAE,CAFI;EAGXC,MAAM,EAAE,CAHG;EAIXC,KAAK,EAAE,MAJI;EAKXC,MAAM,EAAE;AALG,CAAb;;AAQA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,KAAK;MACHC,MAAM,EAAE,MADL;MAEHJ,MAAM,EAAE,MAFL;MAGHD,KAAK,EAAE,MAHJ;MAIHM,UAAU,EAAE,OAJT;MAKHC,UAAU,EAAE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AE,QALG;MAMnBC,UAAU,EAAE,QANO;MAOnBhB,WAAW,YAAKnB,KAAK,CAACK,EAAN,CAASe,OAAT,CAAiBgB,EAAtB,OAPQ;MAQnBd,YAAY,YAAKtB,KAAK,CAACK,EAAN,CAASe,OAAT,CAAiBgB,EAAtB;IARO,CA3CI;IAqDzBC,MAAM,EAAE;MACNX,QAAQ,EAAE,MADJ;MAENM,MAAM,EAAE;IAFF,CArDiB;IAyDzBM,WAAW,EAAE;MACXC,SAAS,YAAKvC,KAAK,CAACK,EAAN,CAASe,OAAT,CAAiBC,EAAtB,OADE;MAEXV,SAAS,EAAE;IAFA,CAzDY;IA6DzB6B,WAAW,EAAE;MACXZ,YAAY,YAAK5B,KAAK,CAACK,EAAN,CAASe,OAAT,CAAiBC,EAAtB,OADD;MAEXV,SAAS,EAAE;IAFA,CA7DY;IAiEzB8B,SAAS,kCACJzC,KAAK,CAACK,EAAN,CAASC,UAAT,CAAoBoC,MADhB;MAEPC,UAAU,EAAE,KAFL;MAGPC,WAAW,EAAE;IAHN,EAjEgB;IAsEzBC,eAAe,EAAE;MACfF,UAAU,YAAK3C,KAAK,CAACK,EAAN,CAASe,OAAT,CAAiBC,EAAtB;IADK;EAtEQ,CAAZ;AAAA,CAAf;;AA2EA,eAAetB,MAAf"}
@@ -0,0 +1,71 @@
1
+ import "core-js/modules/es.object.keys.js";
2
+ import "core-js/modules/es.symbol.js";
3
+ import "core-js/modules/es.array.filter.js";
4
+ import "core-js/modules/es.object.to-string.js";
5
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
6
+ import "core-js/modules/web.dom-collections.for-each.js";
7
+ import "core-js/modules/es.object.get-own-property-descriptors.js";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
+
10
+ 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; }
11
+
12
+ 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; }
13
+
14
+ import { TimeFormat, PeriodPickerOptions, TimePickerUnits } from "./enums";
15
+ import { isUnitTimeInValidRange } from "./timePickerUtils";
16
+ /**
17
+ * Gets hours for the passed time format.
18
+ * e.g. 20hours in 12h format is set to 8
19
+ * @param {Number} hours - current hours
20
+ * @param {String} timeFormat - AM/PM
21
+ *
22
+ * @returns {Number} - hours in the correct format
23
+ */
24
+
25
+ var getHoursForTimeFormat = function getHoursForTimeFormat(hours, timeFormat) {
26
+ if (timeFormat === TimeFormat.H12) {
27
+ if (hours === 0) {
28
+ return TimePickerUnits.HOUR_12.max;
29
+ }
30
+
31
+ if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_12.type)) {
32
+ return hours;
33
+ }
34
+
35
+ if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_24.type)) {
36
+ return hours - TimePickerUnits.HOUR_12.max;
37
+ }
38
+ }
39
+
40
+ return hours;
41
+ };
42
+ /**
43
+ * Gets the time in 24h format
44
+ * e.g. 08:00:00:PM in 12h format is set to 20:00:00
45
+ * @param {Object} time - object with hours, minutes, seconds and period
46
+ * @param {String} timeFormat - AM/PM
47
+ *
48
+ * @returns {Object} - time object (hours, minutes, seconds and period) with the hours set
49
+ * into the correct format
50
+ */
51
+
52
+
53
+ var getTimeWithFormat24 = function getTimeWithFormat24(time, timeFormat) {
54
+ var hours = time.hours,
55
+ period = time.period;
56
+
57
+ var timeIn24Format = _objectSpread({}, time);
58
+
59
+ if (timeFormat === TimeFormat.H12) {
60
+ if (period === PeriodPickerOptions.AM && hours === TimePickerUnits.HOUR_12.max) {
61
+ timeIn24Format.hours = TimePickerUnits.HOUR_24.min;
62
+ } else if (period === PeriodPickerOptions.PM && hours < TimePickerUnits.HOUR_12.max) {
63
+ timeIn24Format.hours = hours + TimePickerUnits.HOUR_12.max;
64
+ }
65
+ }
66
+
67
+ return timeIn24Format;
68
+ };
69
+
70
+ export { getHoursForTimeFormat, getTimeWithFormat24 };
71
+ //# sourceMappingURL=timePickerConverter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timePickerConverter.js","names":["TimeFormat","PeriodPickerOptions","TimePickerUnits","isUnitTimeInValidRange","getHoursForTimeFormat","hours","timeFormat","H12","HOUR_12","max","type","HOUR_24","getTimeWithFormat24","time","period","timeIn24Format","AM","min","PM"],"sources":["../../../src/TimePicker/timePickerConverter.js"],"sourcesContent":["import { TimeFormat, PeriodPickerOptions, TimePickerUnits } from \"./enums\";\nimport { isUnitTimeInValidRange } from \"./timePickerUtils\";\n\n/**\n * Gets hours for the passed time format.\n * e.g. 20hours in 12h format is set to 8\n * @param {Number} hours - current hours\n * @param {String} timeFormat - AM/PM\n *\n * @returns {Number} - hours in the correct format\n */\nconst getHoursForTimeFormat = (hours, timeFormat) => {\n if (timeFormat === TimeFormat.H12) {\n if (hours === 0) {\n return TimePickerUnits.HOUR_12.max;\n }\n if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_12.type)) {\n return hours;\n }\n if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_24.type)) {\n return hours - TimePickerUnits.HOUR_12.max;\n }\n }\n return hours;\n};\n\n/**\n * Gets the time in 24h format\n * e.g. 08:00:00:PM in 12h format is set to 20:00:00\n * @param {Object} time - object with hours, minutes, seconds and period\n * @param {String} timeFormat - AM/PM\n *\n * @returns {Object} - time object (hours, minutes, seconds and period) with the hours set\n * into the correct format\n */\nconst getTimeWithFormat24 = (time, timeFormat) => {\n const { hours, period } = time;\n const timeIn24Format = { ...time };\n if (timeFormat === TimeFormat.H12) {\n if (period === PeriodPickerOptions.AM && hours === TimePickerUnits.HOUR_12.max) {\n timeIn24Format.hours = TimePickerUnits.HOUR_24.min;\n } else if (period === PeriodPickerOptions.PM && hours < TimePickerUnits.HOUR_12.max) {\n timeIn24Format.hours = hours + TimePickerUnits.HOUR_12.max;\n }\n }\n return timeIn24Format;\n};\n\nexport { getHoursForTimeFormat, getTimeWithFormat24 };\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,UAAT,EAAqBC,mBAArB,EAA0CC,eAA1C,QAAiE,SAAjE;AACA,SAASC,sBAAT,QAAuC,mBAAvC;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,KAAD,EAAQC,UAAR,EAAuB;EACnD,IAAIA,UAAU,KAAKN,UAAU,CAACO,GAA9B,EAAmC;IACjC,IAAIF,KAAK,KAAK,CAAd,EAAiB;MACf,OAAOH,eAAe,CAACM,OAAhB,CAAwBC,GAA/B;IACD;;IACD,IAAIN,sBAAsB,CAACE,KAAD,EAAQH,eAAe,CAACM,OAAhB,CAAwBE,IAAhC,CAA1B,EAAiE;MAC/D,OAAOL,KAAP;IACD;;IACD,IAAIF,sBAAsB,CAACE,KAAD,EAAQH,eAAe,CAACS,OAAhB,CAAwBD,IAAhC,CAA1B,EAAiE;MAC/D,OAAOL,KAAK,GAAGH,eAAe,CAACM,OAAhB,CAAwBC,GAAvC;IACD;EACF;;EACD,OAAOJ,KAAP;AACD,CAbD;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,IAAMO,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACC,IAAD,EAAOP,UAAP,EAAsB;EAChD,IAAQD,KAAR,GAA0BQ,IAA1B,CAAQR,KAAR;EAAA,IAAeS,MAAf,GAA0BD,IAA1B,CAAeC,MAAf;;EACA,IAAMC,cAAc,qBAAQF,IAAR,CAApB;;EACA,IAAIP,UAAU,KAAKN,UAAU,CAACO,GAA9B,EAAmC;IACjC,IAAIO,MAAM,KAAKb,mBAAmB,CAACe,EAA/B,IAAqCX,KAAK,KAAKH,eAAe,CAACM,OAAhB,CAAwBC,GAA3E,EAAgF;MAC9EM,cAAc,CAACV,KAAf,GAAuBH,eAAe,CAACS,OAAhB,CAAwBM,GAA/C;IACD,CAFD,MAEO,IAAIH,MAAM,KAAKb,mBAAmB,CAACiB,EAA/B,IAAqCb,KAAK,GAAGH,eAAe,CAACM,OAAhB,CAAwBC,GAAzE,EAA8E;MACnFM,cAAc,CAACV,KAAf,GAAuBA,KAAK,GAAGH,eAAe,CAACM,OAAhB,CAAwBC,GAAvD;IACD;EACF;;EACD,OAAOM,cAAP;AACD,CAXD;;AAaA,SAASX,qBAAT,EAAgCQ,mBAAhC"}
@@ -0,0 +1,63 @@
1
+ import "core-js/modules/es.object.to-string.js";
2
+ import "core-js/modules/es.regexp.to-string.js";
3
+ import "core-js/modules/es.array.concat.js";
4
+ import { TimeFormat } from "./enums";
5
+ /**
6
+ * Pads the unit time values so that they always have two digits
7
+ * @param {Number} value - unit time value
8
+ * @returns The unit time value with two digits
9
+ */
10
+
11
+ var padTime = function padTime(value) {
12
+ if (!value || value < 0) {
13
+ return "00";
14
+ }
15
+
16
+ if (value < 10 && value.toString().length === 1) {
17
+ return "0".concat(value.toString());
18
+ }
19
+
20
+ return value;
21
+ };
22
+ /**
23
+ * Gets the time format for a given locale
24
+ * @param {String} locale - locale
25
+ * @returns {TimeFormat} the time format for the given locale (12 or 24)
26
+ */
27
+
28
+
29
+ var getTimeFormatForLocale = function getTimeFormatForLocale(locale) {
30
+ var options = {
31
+ hour: "numeric"
32
+ };
33
+ var dateTimeFormat = new Intl.DateTimeFormat(locale, options);
34
+ var isInHour12Format = dateTimeFormat.resolvedOptions().hour12;
35
+ return isInHour12Format ? TimeFormat.H12 : TimeFormat.H24;
36
+ };
37
+ /**
38
+ * Formats the time to be rendered
39
+ * @param {Object} time - time object to be rendered
40
+ * @param {Number} time.hours - hours
41
+ * @param {Number} time.minutes - minutes
42
+ * @param {Number} time.seconds - seconds
43
+ * @param {String} time.period - period (am/pm). It is undefined when the time is to be shown in 24h format
44
+ *
45
+ * @returns {String} formatted time
46
+ */
47
+
48
+
49
+ var getFormattedTime = function getFormattedTime(time) {
50
+ var hours = time.hours,
51
+ minutes = time.minutes,
52
+ seconds = time.seconds;
53
+ var timeToRender = "".concat(padTime(hours), ":").concat(padTime(minutes), ":").concat(padTime(seconds));
54
+
55
+ if (time.period) {
56
+ timeToRender += " ".concat(time.period);
57
+ }
58
+
59
+ return timeToRender;
60
+ };
61
+
62
+ export { padTime, getFormattedTime, getTimeFormatForLocale };
63
+ //# sourceMappingURL=timePickerFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timePickerFormatter.js","names":["TimeFormat","padTime","value","toString","length","getTimeFormatForLocale","locale","options","hour","dateTimeFormat","Intl","DateTimeFormat","isInHour12Format","resolvedOptions","hour12","H12","H24","getFormattedTime","time","hours","minutes","seconds","timeToRender","period"],"sources":["../../../src/TimePicker/timePickerFormatter.js"],"sourcesContent":["import { TimeFormat } from \"./enums\";\n\n/**\n * Pads the unit time values so that they always have two digits\n * @param {Number} value - unit time value\n * @returns The unit time value with two digits\n */\nconst padTime = (value) => {\n if (!value || value < 0) {\n return \"00\";\n }\n if (value < 10 && value.toString().length === 1) {\n return `0${value.toString()}`;\n }\n return value;\n};\n\n/**\n * Gets the time format for a given locale\n * @param {String} locale - locale\n * @returns {TimeFormat} the time format for the given locale (12 or 24)\n */\nconst getTimeFormatForLocale = (locale) => {\n const options = {\n hour: \"numeric\",\n };\n const dateTimeFormat = new Intl.DateTimeFormat(locale, options);\n const isInHour12Format = dateTimeFormat.resolvedOptions().hour12;\n return isInHour12Format ? TimeFormat.H12 : TimeFormat.H24;\n};\n\n/**\n * Formats the time to be rendered\n * @param {Object} time - time object to be rendered\n * @param {Number} time.hours - hours\n * @param {Number} time.minutes - minutes\n * @param {Number} time.seconds - seconds\n * @param {String} time.period - period (am/pm). It is undefined when the time is to be shown in 24h format\n *\n * @returns {String} formatted time\n */\nconst getFormattedTime = (time) => {\n const { hours, minutes, seconds } = time;\n\n let timeToRender = `${padTime(hours)}:${padTime(minutes)}:${padTime(seconds)}`;\n if (time.period) {\n timeToRender += ` ${time.period}`;\n }\n return timeToRender;\n};\n\nexport { padTime, getFormattedTime, getTimeFormatForLocale };\n"],"mappings":";;;AAAA,SAASA,UAAT,QAA2B,SAA3B;AAEA;AACA;AACA;AACA;AACA;;AACA,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAW;EACzB,IAAI,CAACA,KAAD,IAAUA,KAAK,GAAG,CAAtB,EAAyB;IACvB,OAAO,IAAP;EACD;;EACD,IAAIA,KAAK,GAAG,EAAR,IAAcA,KAAK,CAACC,QAAN,GAAiBC,MAAjB,KAA4B,CAA9C,EAAiD;IAC/C,kBAAWF,KAAK,CAACC,QAAN,EAAX;EACD;;EACD,OAAOD,KAAP;AACD,CARD;AAUA;AACA;AACA;AACA;AACA;;;AACA,IAAMG,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,MAAD,EAAY;EACzC,IAAMC,OAAO,GAAG;IACdC,IAAI,EAAE;EADQ,CAAhB;EAGA,IAAMC,cAAc,GAAG,IAAIC,IAAI,CAACC,cAAT,CAAwBL,MAAxB,EAAgCC,OAAhC,CAAvB;EACA,IAAMK,gBAAgB,GAAGH,cAAc,CAACI,eAAf,GAAiCC,MAA1D;EACA,OAAOF,gBAAgB,GAAGZ,UAAU,CAACe,GAAd,GAAoBf,UAAU,CAACgB,GAAtD;AACD,CAPD;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,IAAD,EAAU;EACjC,IAAQC,KAAR,GAAoCD,IAApC,CAAQC,KAAR;EAAA,IAAeC,OAAf,GAAoCF,IAApC,CAAeE,OAAf;EAAA,IAAwBC,OAAxB,GAAoCH,IAApC,CAAwBG,OAAxB;EAEA,IAAIC,YAAY,aAAMrB,OAAO,CAACkB,KAAD,CAAb,cAAwBlB,OAAO,CAACmB,OAAD,CAA/B,cAA4CnB,OAAO,CAACoB,OAAD,CAAnD,CAAhB;;EACA,IAAIH,IAAI,CAACK,MAAT,EAAiB;IACfD,YAAY,eAAQJ,IAAI,CAACK,MAAb,CAAZ;EACD;;EACD,OAAOD,YAAP;AACD,CARD;;AAUA,SAASrB,OAAT,EAAkBgB,gBAAlB,EAAoCZ,sBAApC"}
@@ -0,0 +1,27 @@
1
+ import { PeriodPickerOptions, TimePickerUnits } from "./enums";
2
+ /**
3
+ * Gets the period(am/pm) for a given time
4
+ * @param {Date} date - Date to get the period from. The default date is the current one.
5
+ * @returns {String} - AM or PM
6
+ */
7
+
8
+ var getPeriodForDate = function getPeriodForDate() {
9
+ var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
10
+ var hours = date.getHours();
11
+ return hours < 12 ? PeriodPickerOptions.AM : PeriodPickerOptions.PM;
12
+ };
13
+ /**
14
+ * Checks if the unit time value is inside the acceptable range
15
+ *
16
+ * @param {Number} value - unit time value
17
+ * @param {String} type - unit time type. One of the TimePickerUnits types.
18
+ */
19
+
20
+
21
+ var isUnitTimeInValidRange = function isUnitTimeInValidRange(value, type) {
22
+ var timeUnit = TimePickerUnits[type];
23
+ return value >= timeUnit.min && value <= timeUnit.max;
24
+ };
25
+
26
+ export { getPeriodForDate, isUnitTimeInValidRange };
27
+ //# sourceMappingURL=timePickerUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timePickerUtils.js","names":["PeriodPickerOptions","TimePickerUnits","getPeriodForDate","date","Date","hours","getHours","AM","PM","isUnitTimeInValidRange","value","type","timeUnit","min","max"],"sources":["../../../src/TimePicker/timePickerUtils.js"],"sourcesContent":["import { PeriodPickerOptions, TimePickerUnits } from \"./enums\";\n\n/**\n * Gets the period(am/pm) for a given time\n * @param {Date} date - Date to get the period from. The default date is the current one.\n * @returns {String} - AM or PM\n */\nconst getPeriodForDate = (date = new Date()) => {\n const hours = date.getHours();\n return hours < 12 ? PeriodPickerOptions.AM : PeriodPickerOptions.PM;\n};\n\n/**\n * Checks if the unit time value is inside the acceptable range\n *\n * @param {Number} value - unit time value\n * @param {String} type - unit time type. One of the TimePickerUnits types.\n */\nconst isUnitTimeInValidRange = (value, type) => {\n const timeUnit = TimePickerUnits[type];\n return value >= timeUnit.min && value <= timeUnit.max;\n};\n\nexport { getPeriodForDate, isUnitTimeInValidRange };\n"],"mappings":"AAAA,SAASA,mBAAT,EAA8BC,eAA9B,QAAqD,SAArD;AAEA;AACA;AACA;AACA;AACA;;AACA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,GAAuB;EAAA,IAAtBC,IAAsB,uEAAf,IAAIC,IAAJ,EAAe;EAC9C,IAAMC,KAAK,GAAGF,IAAI,CAACG,QAAL,EAAd;EACA,OAAOD,KAAK,GAAG,EAAR,GAAaL,mBAAmB,CAACO,EAAjC,GAAsCP,mBAAmB,CAACQ,EAAjE;AACD,CAHD;AAKA;AACA;AACA;AACA;AACA;AACA;;;AACA,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,KAAD,EAAQC,IAAR,EAAiB;EAC9C,IAAMC,QAAQ,GAAGX,eAAe,CAACU,IAAD,CAAhC;EACA,OAAOD,KAAK,IAAIE,QAAQ,CAACC,GAAlB,IAAyBH,KAAK,IAAIE,QAAQ,CAACE,GAAlD;AACD,CAHD;;AAKA,SAASZ,gBAAT,EAA2BO,sBAA3B"}
@@ -0,0 +1,26 @@
1
+ export { default as HvAppSwitcherPanel } from "./AppSwitcherPanel";
2
+ export * from "./AppSwitcherPanel";
3
+
4
+ export { default as HvCodeEditor } from "./CodeEditor";
5
+ export * from "./CodeEditor";
6
+
7
+ export { default as HvFooter } from "./Footer";
8
+ export * from "./Footer";
9
+
10
+ export { default as HvFormComposer } from "./FormComposer";
11
+ export * from "./FormComposer";
12
+
13
+ export { default as HvLoading } from "./Loading";
14
+ export * from "./Loading";
15
+
16
+ export { default as HvNavigationAnchors } from "./NavigationAnchors";
17
+ export * from "./NavigationAnchors";
18
+
19
+ export { default as HvNotificationPanel } from "./NotificationPanel";
20
+ export * from "./NotificationPanel";
21
+
22
+ export { default as HvSlider } from "./Slider";
23
+ export * from "./Slider";
24
+
25
+ export { default as HvTimePicker } from "./TimePicker";
26
+ export * from "./TimePicker";
@@ -0,0 +1,11 @@
1
+ // components
2
+ export { default as HvAppSwitcherPanel } from "./AppSwitcherPanel";
3
+ export { default as HvCodeEditor } from "./CodeEditor";
4
+ export { default as HvFooter } from "./Footer";
5
+ export { default as HvFormComposer } from "./FormComposer";
6
+ export { default as HvLoading } from "./Loading";
7
+ export { default as HvNavigationAnchors } from "./NavigationAnchors";
8
+ export { default as HvNotificationPanel } from "./NotificationPanel";
9
+ export { default as HvSlider } from "./Slider";
10
+ export { default as HvTimePicker } from "./TimePicker";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","HvAppSwitcherPanel","HvCodeEditor","HvFooter","HvFormComposer","HvLoading","HvNavigationAnchors","HvNotificationPanel","HvSlider","HvTimePicker"],"sources":["../../src/index.js"],"sourcesContent":["// components\nexport { default as HvAppSwitcherPanel } from \"./AppSwitcherPanel\";\nexport { default as HvCodeEditor } from \"./CodeEditor\";\nexport { default as HvFooter } from \"./Footer\";\nexport { default as HvFormComposer } from \"./FormComposer\";\nexport { default as HvLoading } from \"./Loading\";\nexport { default as HvNavigationAnchors } from \"./NavigationAnchors\";\nexport { default as HvNotificationPanel } from \"./NotificationPanel\";\nexport { default as HvSlider } from \"./Slider\";\nexport { default as HvTimePicker } from \"./TimePicker\";\n"],"mappings":"AAAA;AACA,SAASA,OAAO,IAAIC,kBAApB,QAA8C,oBAA9C;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,cAAxC;AACA,SAASF,OAAO,IAAIG,QAApB,QAAoC,UAApC;AACA,SAASH,OAAO,IAAII,cAApB,QAA0C,gBAA1C;AACA,SAASJ,OAAO,IAAIK,SAApB,QAAqC,WAArC;AACA,SAASL,OAAO,IAAIM,mBAApB,QAA+C,qBAA/C;AACA,SAASN,OAAO,IAAIO,mBAApB,QAA+C,qBAA/C;AACA,SAASP,OAAO,IAAIQ,QAApB,QAAoC,UAApC;AACA,SAASR,OAAO,IAAIS,YAApB,QAAwC,cAAxC"}
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import withStyles from "@material-ui/core/styles/withStyles";
3
+
4
+ var withStylesProps = function withStylesProps(styles) {
5
+ return function (Component) {
6
+ return function (props) {
7
+ var Comp = withStyles(styles(props))(Component);
8
+ return /*#__PURE__*/React.createElement(Comp, props);
9
+ };
10
+ };
11
+ };
12
+
13
+ export default withStylesProps;
14
+ //# sourceMappingURL=WithStyleProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithStyleProps.js","names":["React","withStyles","withStylesProps","styles","Component","props","Comp"],"sources":["../../../src/withStyleProps/WithStyleProps.js"],"sourcesContent":["import React from \"react\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\n\nconst withStylesProps = (styles) => (Component) => (props) => {\n const Comp = withStyles(styles(props))(Component);\n return <Comp {...props} />;\n};\n\nexport default withStylesProps;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,UAAP,MAAuB,qCAAvB;;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,MAAD;EAAA,OAAY,UAACC,SAAD;IAAA,OAAe,UAACC,KAAD,EAAW;MAC5D,IAAMC,IAAI,GAAGL,UAAU,CAACE,MAAM,CAACE,KAAD,CAAP,CAAV,CAA0BD,SAA1B,CAAb;MACA,oBAAO,oBAAC,IAAD,EAAUC,KAAV,CAAP;IACD,CAHmC;EAAA,CAAZ;AAAA,CAAxB;;AAKA,eAAeH,eAAf"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./WithStyleProps";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../src/withStyleProps/index.js"],"sourcesContent":["export { default } from \"./WithStyleProps\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,kBAAxB"}
@@ -0,0 +1,67 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+
4
+ export interface HvAppSwitcherPanelActionApplication {
5
+ /**
6
+ * Id of the application.
7
+ */
8
+ id: string;
9
+ /**
10
+ * Name of the application, this is the value that will be displayed on the component.
11
+ */
12
+ name: string;
13
+ /**
14
+ * URL with the icon location to be used to represent the application.
15
+ * iconUrl will only be used if no iconElement is provided.
16
+ */
17
+ iconUrl?: string;
18
+ /**
19
+ * Element to be added as the icon representing the application.
20
+ * The iconElement will be the primary option to be displayed.
21
+ */
22
+ iconElement?: React.ReactNode;
23
+ /**
24
+ * Small description of the application.
25
+ */
26
+ description?: string;
27
+ /**
28
+ * URL where the application is accesible.
29
+ */
30
+ url: string;
31
+ /**
32
+ * Defines if the application should be opened in the same tab or in a new one.
33
+ */
34
+ target?: "_top" | "_blank";
35
+ /**
36
+ * True when the application is selected, false otherwise.
37
+ */
38
+ isSelected?: boolean;
39
+ }
40
+
41
+ export type HvAppSwitcherPanelActionClassKey =
42
+ | "iconUrl"
43
+ | "dummyImage"
44
+ | "link"
45
+ | "typography"
46
+ | "selected"
47
+ | "iconInfo";
48
+
49
+ export interface HvAppSwitcherPanelActionProps
50
+ extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherPanelActionClassKey> {
51
+ /**
52
+ * The application data to be used to render the Action object.
53
+ */
54
+ application: HvAppSwitcherPanelActionApplication;
55
+ /**
56
+ * Callback triggered when the action is clicked.
57
+ */
58
+ onClickCallback?: (event: MouseEvent, application?: HvAppSwitcherPanelActionApplication) => void;
59
+ /**
60
+ * Must return a boolean stating if the action element is selected or not.
61
+ */
62
+ isSelectedCallback?: (application?: HvAppSwitcherPanelActionApplication) => boolean;
63
+ }
64
+
65
+ export default function HvAppSwitcherPanelAction(
66
+ props: HvAppSwitcherPanelActionProps
67
+ ): JSX.Element | null;