@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":"index.js","names":["default"],"sources":["../../../src/Footer/index.js"],"sourcesContent":["export { default } from \"./Footer\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,UAAxB"}
@@ -0,0 +1,44 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+
3
+ var styles = function styles(theme) {
4
+ return {
5
+ root: _defineProperty({
6
+ position: "fixed",
7
+ width: "100%",
8
+ height: 40,
9
+ backgroundColor: theme.hv.palette.accent.acce1
10
+ }, theme.breakpoints.down("500"), {
11
+ minWidth: "320px"
12
+ }),
13
+ labelLeft: _defineProperty({
14
+ float: "left",
15
+ marginTop: 10,
16
+ marginLeft: 20,
17
+ fontSize: "16px",
18
+ letterSpacing: "0.02em",
19
+ lineHeight: "".concat(theme.hv.spacing.sm, "px"),
20
+ fontWeight: "600",
21
+ color: theme.hv.palette.atmosphere.atmo3
22
+ }, theme.breakpoints.down("500"), {
23
+ display: "none"
24
+ }),
25
+ labelRight: _defineProperty({
26
+ float: "right",
27
+ marginTop: 12,
28
+ marginRight: 20,
29
+ fontSize: "12px",
30
+ letterSpacing: "0.02em",
31
+ lineHeight: "16px",
32
+ fontWeight: "400",
33
+ color: theme.hv.palette.atmosphere.atmo3
34
+ }, theme.breakpoints.down("500"), {
35
+ minWidth: "320px",
36
+ float: "left",
37
+ marginLeft: 20,
38
+ fontSize: "11px"
39
+ })
40
+ };
41
+ };
42
+
43
+ export default styles;
44
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["styles","theme","root","position","width","height","backgroundColor","hv","palette","accent","acce1","breakpoints","down","minWidth","labelLeft","float","marginTop","marginLeft","fontSize","letterSpacing","lineHeight","spacing","sm","fontWeight","color","atmosphere","atmo3","display","labelRight","marginRight"],"sources":["../../../src/Footer/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n position: \"fixed\",\n width: \"100%\",\n height: 40,\n backgroundColor: theme.hv.palette.accent.acce1,\n [theme.breakpoints.down(\"500\")]: {\n minWidth: \"320px\",\n },\n },\n labelLeft: {\n float: \"left\",\n marginTop: 10,\n marginLeft: 20,\n fontSize: \"16px\",\n letterSpacing: \"0.02em\",\n lineHeight: `${theme.hv.spacing.sm}px`,\n fontWeight: \"600\",\n color: theme.hv.palette.atmosphere.atmo3,\n [theme.breakpoints.down(\"500\")]: {\n display: \"none\",\n },\n },\n labelRight: {\n float: \"right\",\n marginTop: 12,\n marginRight: 20,\n fontSize: \"12px\",\n letterSpacing: \"0.02em\",\n lineHeight: \"16px\",\n fontWeight: \"400\",\n color: theme.hv.palette.atmosphere.atmo3,\n [theme.breakpoints.down(\"500\")]: {\n minWidth: \"320px\",\n float: \"left\",\n marginLeft: 20,\n fontSize: \"11px\",\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI;MACFC,QAAQ,EAAE,OADR;MAEFC,KAAK,EAAE,MAFL;MAGFC,MAAM,EAAE,EAHN;MAIFC,eAAe,EAAEL,KAAK,CAACM,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;IAJvC,GAKDT,KAAK,CAACU,WAAN,CAAkBC,IAAlB,CAAuB,KAAvB,CALC,EAK+B;MAC/BC,QAAQ,EAAE;IADqB,CAL/B,CADqB;IAUzBC,SAAS;MACPC,KAAK,EAAE,MADA;MAEPC,SAAS,EAAE,EAFJ;MAGPC,UAAU,EAAE,EAHL;MAIPC,QAAQ,EAAE,MAJH;MAKPC,aAAa,EAAE,QALR;MAMPC,UAAU,YAAKnB,KAAK,CAACM,EAAN,CAASc,OAAT,CAAiBC,EAAtB,OANH;MAOPC,UAAU,EAAE,KAPL;MAQPC,KAAK,EAAEvB,KAAK,CAACM,EAAN,CAASC,OAAT,CAAiBiB,UAAjB,CAA4BC;IAR5B,GASNzB,KAAK,CAACU,WAAN,CAAkBC,IAAlB,CAAuB,KAAvB,CATM,EAS0B;MAC/Be,OAAO,EAAE;IADsB,CAT1B,CAVgB;IAuBzBC,UAAU;MACRb,KAAK,EAAE,OADC;MAERC,SAAS,EAAE,EAFH;MAGRa,WAAW,EAAE,EAHL;MAIRX,QAAQ,EAAE,MAJF;MAKRC,aAAa,EAAE,QALP;MAMRC,UAAU,EAAE,MANJ;MAORG,UAAU,EAAE,KAPJ;MAQRC,KAAK,EAAEvB,KAAK,CAACM,EAAN,CAASC,OAAT,CAAiBiB,UAAjB,CAA4BC;IAR3B,GASPzB,KAAK,CAACU,WAAN,CAAkBC,IAAlB,CAAuB,KAAvB,CATO,EASyB;MAC/BC,QAAQ,EAAE,OADqB;MAE/BE,KAAK,EAAE,MAFwB;MAG/BE,UAAU,EAAE,EAHmB;MAI/BC,QAAQ,EAAE;IAJqB,CATzB;EAvBe,CAAZ;AAAA,CAAf;;AAyCA,eAAelB,MAAf"}
@@ -0,0 +1,41 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+
4
+ interface FormGroup {
5
+ title: string;
6
+ children: React.ReactNode;
7
+ }
8
+
9
+ export type HvFormComposerClassKey =
10
+ | "root"
11
+ | "title"
12
+ | "mainContainer"
13
+ | "navContainer"
14
+ | "componentContainer"
15
+ | "footer";
16
+
17
+ export interface HvFormComposerProps
18
+ extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvFormComposerClassKey> {
19
+ /**
20
+ * Main title to be displayed.
21
+ */
22
+ mainTitle?: string;
23
+ /**
24
+ * The group of component that will be added to the Form composer.
25
+ */
26
+ groups: FormGroup[];
27
+ /**
28
+ * Shows navigation bar.
29
+ */
30
+ hasNavigation?: boolean;
31
+ /**
32
+ * Shows footer.
33
+ */
34
+ hasFooter?: boolean;
35
+ /**
36
+ * Content to be shown on the footer.
37
+ */
38
+ footerContent?: React.ReactNode;
39
+ }
40
+
41
+ export default function HvFormComposer(props: HvFormComposerProps): JSX.Element | null;
@@ -0,0 +1,218 @@
1
+ import "core-js/modules/es.reflect.construct.js";
2
+ import "core-js/modules/es.object.keys.js";
3
+ import "core-js/modules/es.symbol.js";
4
+ import "core-js/modules/es.array.filter.js";
5
+ import "core-js/modules/es.object.get-own-property-descriptor.js";
6
+ import "core-js/modules/es.object.get-own-property-descriptors.js";
7
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
8
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
9
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
10
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
11
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
12
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
13
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
14
+
15
+ 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; }
16
+
17
+ 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; }
18
+
19
+ import "core-js/modules/es.object.to-string.js";
20
+ import "core-js/modules/web.dom-collections.for-each.js";
21
+ import "core-js/modules/es.function.name.js";
22
+ import "core-js/modules/es.array.map.js";
23
+ import "core-js/modules/es.array.concat.js";
24
+
25
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
26
+
27
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28
+
29
+ import React from "react";
30
+ import PropTypes, { shape } from "prop-types";
31
+ import { withStyles } from "@material-ui/core";
32
+ import { HvTypography } from "@hitachivantara/uikit-react-core";
33
+ import HvNavigationAnchors from "../NavigationAnchors";
34
+ import styles from "./styles";
35
+ /**
36
+ * A form composer component used to create a form dynamically, still in development
37
+ */
38
+
39
+ var HvFormComposer = /*#__PURE__*/function (_React$Component) {
40
+ _inherits(HvFormComposer, _React$Component);
41
+
42
+ var _super = _createSuper(HvFormComposer);
43
+
44
+ function HvFormComposer(props) {
45
+ var _this;
46
+
47
+ _classCallCheck(this, HvFormComposer);
48
+
49
+ _this = _super.call(this, props);
50
+
51
+ _defineProperty(_assertThisInitialized(_this), "getInitialValuesFromComponents", function (groups) {
52
+ var componentValues = {};
53
+ groups.forEach(function (group) {
54
+ group.children.forEach(function (child) {
55
+ componentValues[child.props.name] = child.props.value;
56
+ });
57
+ });
58
+ return componentValues;
59
+ });
60
+
61
+ _defineProperty(_assertThisInitialized(_this), "getValues", function () {
62
+ var componentValues = _this.state.componentValues;
63
+ return componentValues;
64
+ });
65
+
66
+ _defineProperty(_assertThisInitialized(_this), "getValuesHandler", function (originalHandler) {
67
+ if (originalHandler !== undefined && typeof originalHandler === "function") {
68
+ originalHandler(_this.getValues());
69
+ }
70
+ });
71
+
72
+ _defineProperty(_assertThisInitialized(_this), "childOnChangeHandler", function (value, name, onChange) {
73
+ var componentValues = _this.state.componentValues;
74
+
75
+ var newComponentValues = _objectSpread({}, componentValues);
76
+
77
+ newComponentValues[name] = value;
78
+
79
+ _this.setState({
80
+ componentValues: newComponentValues
81
+ });
82
+
83
+ if (onChange !== undefined && typeof onChange === "function") {
84
+ return onChange(value);
85
+ } // The UI-KIT input forced to have the value explicitly returned on the onChanged function.
86
+
87
+
88
+ return value;
89
+ });
90
+
91
+ var _groups = _this.props.groups;
92
+ _this.state = {
93
+ componentValues: _this.getInitialValuesFromComponents(_groups)
94
+ };
95
+ return _this;
96
+ }
97
+ /**
98
+ * Gets the values that are set on each component inside the groups.
99
+ *
100
+ * @param {Object} groups - Initial group object containing all the component elements.
101
+ * @return {Object} - { key (Component name): value (Value set on the component) }
102
+ */
103
+
104
+
105
+ _createClass(HvFormComposer, [{
106
+ key: "render",
107
+ value: function render() {
108
+ var _this2 = this;
109
+
110
+ var _this$props = this.props,
111
+ classes = _this$props.classes,
112
+ mainTitle = _this$props.mainTitle,
113
+ groups = _this$props.groups,
114
+ hasNavigation = _this$props.hasNavigation,
115
+ hasFooter = _this$props.hasFooter,
116
+ footerContent = _this$props.footerContent;
117
+ var footerElements = footerContent.map(function (child, i) {
118
+ var key = "fc-".concat(i);
119
+ return /*#__PURE__*/React.cloneElement(child, {
120
+ onClick: function onClick() {
121
+ return _this2.getValuesHandler(child.props.onClick);
122
+ },
123
+ key: key
124
+ });
125
+ });
126
+ var navigationOptions = [];
127
+ var groupedComponents = groups.map(function (group) {
128
+ navigationOptions.push({
129
+ label: group.title,
130
+ value: group.title
131
+ });
132
+ return /*#__PURE__*/React.createElement("div", {
133
+ key: group.title
134
+ }, /*#__PURE__*/React.createElement(HvTypography, {
135
+ id: group.title,
136
+ variant: "mTitle"
137
+ }, group.title), group.children.map(function (child, i) {
138
+ var key = "fc-".concat(group.title, "-").concat(i);
139
+ return /*#__PURE__*/React.createElement("div", {
140
+ key: key
141
+ }, /*#__PURE__*/React.cloneElement(child, {
142
+ onChange: function onChange(event, value) {
143
+ return _this2.childOnChangeHandler(value, child.props.name, child.props.onChange);
144
+ }
145
+ }));
146
+ }));
147
+ });
148
+ return /*#__PURE__*/React.createElement("div", {
149
+ className: classes.root
150
+ }, /*#__PURE__*/React.createElement(HvTypography, {
151
+ variant: "xlTitle",
152
+ className: classes.title
153
+ }, mainTitle), /*#__PURE__*/React.createElement("div", {
154
+ className: classes.mainContainer
155
+ }, hasNavigation && /*#__PURE__*/React.createElement("div", {
156
+ className: classes.navContainer
157
+ }, /*#__PURE__*/React.createElement(HvNavigationAnchors, {
158
+ options: navigationOptions,
159
+ floating: false
160
+ })), /*#__PURE__*/React.createElement("div", {
161
+ className: classes.componentContainer
162
+ }, groupedComponents)), hasFooter && /*#__PURE__*/React.createElement("div", {
163
+ className: classes.footer
164
+ }, footerElements));
165
+ }
166
+ }]);
167
+
168
+ return HvFormComposer;
169
+ }(React.Component);
170
+
171
+ process.env.NODE_ENV !== "production" ? HvFormComposer.propTypes = {
172
+ /**
173
+ * A Jss Object used to override or extend the styles applied to the form composer.
174
+ */
175
+ classes: PropTypes.instanceOf(Object).isRequired,
176
+
177
+ /**
178
+ * Main title to be displayed.
179
+ */
180
+ mainTitle: PropTypes.string,
181
+
182
+ /**
183
+ * The group of component that will be added to the Form composer.
184
+ */
185
+ groups: PropTypes.arrayOf(shape({
186
+ title: PropTypes.string,
187
+ children: PropTypes.node
188
+ })).isRequired,
189
+
190
+ /**
191
+ * Shows navigation bar.
192
+ */
193
+ hasNavigation: PropTypes.bool,
194
+
195
+ /**
196
+ * Shows footer.
197
+ */
198
+ hasFooter: PropTypes.bool,
199
+
200
+ /**
201
+ * Content to be shown on the footer.
202
+ */
203
+ footerContent: PropTypes.node
204
+ } : void 0;
205
+ /**
206
+ * Default properties.
207
+ */
208
+
209
+ HvFormComposer.defaultProps = {
210
+ mainTitle: "",
211
+ hasNavigation: false,
212
+ hasFooter: false,
213
+ footerContent: []
214
+ };
215
+ export default withStyles(styles, {
216
+ name: "HvFormComposer"
217
+ })(HvFormComposer);
218
+ //# sourceMappingURL=FormComposer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormComposer.js","names":["React","PropTypes","shape","withStyles","HvTypography","HvNavigationAnchors","styles","HvFormComposer","props","groups","componentValues","forEach","group","children","child","name","value","state","originalHandler","undefined","getValues","onChange","newComponentValues","setState","getInitialValuesFromComponents","classes","mainTitle","hasNavigation","hasFooter","footerContent","footerElements","map","i","key","cloneElement","onClick","getValuesHandler","navigationOptions","groupedComponents","push","label","title","event","childOnChangeHandler","root","mainContainer","navContainer","componentContainer","footer","Component","propTypes","instanceOf","Object","isRequired","string","arrayOf","node","bool","defaultProps"],"sources":["../../../src/FormComposer/FormComposer.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes, { shape } from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport HvNavigationAnchors from \"../NavigationAnchors\";\nimport styles from \"./styles\";\n\n/**\n * A form composer component used to create a form dynamically, still in development\n */\nclass HvFormComposer extends React.Component {\n constructor(props) {\n super(props);\n\n const { groups } = this.props;\n\n this.state = {\n componentValues: this.getInitialValuesFromComponents(groups),\n };\n }\n\n /**\n * Gets the values that are set on each component inside the groups.\n *\n * @param {Object} groups - Initial group object containing all the component elements.\n * @return {Object} - { key (Component name): value (Value set on the component) }\n */\n getInitialValuesFromComponents = (groups) => {\n const componentValues = {};\n groups.forEach((group) => {\n group.children.forEach((child) => {\n componentValues[child.props.name] = child.props.value;\n });\n });\n\n return componentValues;\n };\n\n /**\n * Gets the values stored in the state of each component.\n */\n getValues = () => {\n const { componentValues } = this.state;\n return componentValues;\n };\n\n /**\n * Handler to retrieve the values.\n *\n * @param {Function} originalHandler - The handler that was originally triggered.\n */\n getValuesHandler = (originalHandler) => {\n if (originalHandler !== undefined && typeof originalHandler === \"function\") {\n originalHandler(this.getValues());\n }\n };\n\n /**\n * Stores the value on the state when a child component onChange event is triggered.\n *\n * @param {*} value - Value that will be stored on the state.\n * @param {string} name - Name of the component.\n * @param {Function} onChange - Original function triggered by the component.\n */\n childOnChangeHandler = (value, name, onChange) => {\n const { componentValues } = this.state;\n\n const newComponentValues = { ...componentValues };\n newComponentValues[name] = value;\n\n this.setState({ componentValues: newComponentValues });\n\n if (onChange !== undefined && typeof onChange === \"function\") {\n return onChange(value);\n }\n // The UI-KIT input forced to have the value explicitly returned on the onChanged function.\n return value;\n };\n\n render() {\n const { classes, mainTitle, groups, hasNavigation, hasFooter, footerContent } = this.props;\n\n const footerElements = footerContent.map((child, i) => {\n const key = `fc-${i}`;\n return React.cloneElement(child, {\n onClick: () => this.getValuesHandler(child.props.onClick),\n key,\n });\n });\n\n const navigationOptions = [];\n\n const groupedComponents = groups.map((group) => {\n navigationOptions.push({ label: group.title, value: group.title });\n\n return (\n <div key={group.title}>\n <HvTypography id={group.title} variant=\"mTitle\">\n {group.title}\n </HvTypography>\n {group.children.map((child, i) => {\n const key = `fc-${group.title}-${i}`;\n return (\n <div key={key}>\n {React.cloneElement(child, {\n onChange: (event, value) =>\n this.childOnChangeHandler(value, child.props.name, child.props.onChange),\n })}\n </div>\n );\n })}\n </div>\n );\n });\n\n return (\n <div className={classes.root}>\n <HvTypography variant=\"xlTitle\" className={classes.title}>\n {mainTitle}\n </HvTypography>\n <div className={classes.mainContainer}>\n {hasNavigation && (\n <div className={classes.navContainer}>\n <HvNavigationAnchors options={navigationOptions} floating={false} />\n </div>\n )}\n <div className={classes.componentContainer}>{groupedComponents}</div>\n </div>\n {hasFooter && <div className={classes.footer}>{footerElements}</div>}\n </div>\n );\n }\n}\n\nHvFormComposer.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied to the form composer.\n */\n classes: PropTypes.instanceOf(Object).isRequired,\n /**\n * Main title to be displayed.\n */\n mainTitle: PropTypes.string,\n /**\n * The group of component that will be added to the Form composer.\n */\n groups: PropTypes.arrayOf(\n shape({\n title: PropTypes.string,\n children: PropTypes.node,\n })\n ).isRequired,\n /**\n * Shows navigation bar.\n */\n hasNavigation: PropTypes.bool,\n /**\n * Shows footer.\n */\n hasFooter: PropTypes.bool,\n /**\n * Content to be shown on the footer.\n */\n footerContent: PropTypes.node,\n};\n\n/**\n * Default properties.\n */\nHvFormComposer.defaultProps = {\n mainTitle: \"\",\n hasNavigation: false,\n hasFooter: false,\n footerContent: [],\n};\n\nexport default withStyles(styles, { name: \"HvFormComposer\" })(HvFormComposer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,O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,CAAqBC,MAArB,EAA6BC,UAJb;;EAKzB;AACF;AACA;EACE3B,SAAS,EAAEzB,SAAS,CAACqD,MARI;;EASzB;AACF;AACA;EACE7C,MAAM,EAAER,SAAS,CAACsD,OAAV,CACNrD,KAAK,CAAC;IACJuC,KAAK,EAAExC,SAAS,CAACqD,MADb;IAEJzC,QAAQ,EAAEZ,SAAS,CAACuD;EAFhB,CAAD,CADC,EAKNH,UAjBuB;;EAkBzB;AACF;AACA;EACE1B,aAAa,EAAE1B,SAAS,CAACwD,IArBA;;EAsBzB;AACF;AACA;EACE7B,SAAS,EAAE3B,SAAS,CAACwD,IAzBI;;EA0BzB;AACF;AACA;EACE5B,aAAa,EAAE5B,SAAS,CAACuD;AA7BA,CAA3B;AAgCA;AACA;AACA;;AACAjD,cAAc,CAACmD,YAAf,GAA8B;EAC5BhC,SAAS,EAAE,EADiB;EAE5BC,aAAa,EAAE,KAFa;EAG5BC,SAAS,EAAE,KAHiB;EAI5BC,aAAa,EAAE;AAJa,CAA9B;AAOA,eAAe1B,UAAU,CAACG,MAAD,EAAS;EAAES,IAAI,EAAE;AAAR,CAAT,CAAV,CAA+CR,cAA/C,CAAf"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./FormComposer";
2
+ export * from "./FormComposer";
@@ -0,0 +1,2 @@
1
+ export { default } from "./FormComposer";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../src/FormComposer/index.js"],"sourcesContent":["export { default } from \"./FormComposer\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,gBAAxB"}
@@ -0,0 +1,31 @@
1
+ var styles = function styles(theme) {
2
+ return {
3
+ root: {
4
+ backgroundColor: theme.hv.palette.atmosphere.atmo2
5
+ },
6
+ mainContainer: {
7
+ display: "flex",
8
+ backgroundColor: theme.hv.palette.atmosphere.atmo3
9
+ },
10
+ navContainer: {
11
+ maxWidth: "200px",
12
+ paddingTop: "".concat(theme.hv.spacing.md, "px")
13
+ },
14
+ componentContainer: {
15
+ width: "100%",
16
+ maxHeight: "400px",
17
+ overflowY: "auto",
18
+ padding: "".concat(theme.hv.spacing.md, "px")
19
+ },
20
+ title: {
21
+ padding: "".concat(theme.hv.spacing.sm, "px 0")
22
+ },
23
+ footer: {
24
+ padding: "".concat(theme.hv.spacing.sm, "px"),
25
+ textAlign: "right"
26
+ }
27
+ };
28
+ };
29
+
30
+ export default styles;
31
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["styles","theme","root","backgroundColor","hv","palette","atmosphere","atmo2","mainContainer","display","atmo3","navContainer","maxWidth","paddingTop","spacing","md","componentContainer","width","maxHeight","overflowY","padding","title","sm","footer","textAlign"],"sources":["../../../src/FormComposer/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n backgroundColor: theme.hv.palette.atmosphere.atmo2,\n },\n mainContainer: {\n display: \"flex\",\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n },\n navContainer: {\n maxWidth: \"200px\",\n paddingTop: `${theme.hv.spacing.md}px`,\n },\n componentContainer: {\n width: \"100%\",\n maxHeight: \"400px\",\n overflowY: \"auto\",\n padding: `${theme.hv.spacing.md}px`,\n },\n title: {\n padding: `${theme.hv.spacing.sm}px 0`,\n },\n footer: {\n padding: `${theme.hv.spacing.sm}px`,\n textAlign: \"right\",\n },\n});\n\nexport default styles;\n"],"mappings":"AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,eAAe,EAAEF,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BC;IADzC,CADmB;IAIzBC,aAAa,EAAE;MACbC,OAAO,EAAE,MADI;MAEbN,eAAe,EAAEF,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,UAAjB,CAA4BI;IAFhC,CAJU;IAQzBC,YAAY,EAAE;MACZC,QAAQ,EAAE,OADE;MAEZC,UAAU,YAAKZ,KAAK,CAACG,EAAN,CAASU,OAAT,CAAiBC,EAAtB;IAFE,CARW;IAYzBC,kBAAkB,EAAE;MAClBC,KAAK,EAAE,MADW;MAElBC,SAAS,EAAE,OAFO;MAGlBC,SAAS,EAAE,MAHO;MAIlBC,OAAO,YAAKnB,KAAK,CAACG,EAAN,CAASU,OAAT,CAAiBC,EAAtB;IAJW,CAZK;IAkBzBM,KAAK,EAAE;MACLD,OAAO,YAAKnB,KAAK,CAACG,EAAN,CAASU,OAAT,CAAiBQ,EAAtB;IADF,CAlBkB;IAqBzBC,MAAM,EAAE;MACNH,OAAO,YAAKnB,KAAK,CAACG,EAAN,CAASU,OAAT,CAAiBQ,EAAtB,OADD;MAENE,SAAS,EAAE;IAFL;EArBiB,CAAZ;AAAA,CAAf;;AA2BA,eAAexB,MAAf"}
@@ -0,0 +1,32 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+
4
+ export interface HvLoadingProps
5
+ extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvLoadingClassKey> {
6
+ /**
7
+ * The size of the loading indicator.
8
+ */
9
+ size?: "regular" | "small";
10
+
11
+ /**
12
+ * The position where the loading indicator is to be positioned in,
13
+ * center of the page or inline in the container where its inserted.
14
+ */
15
+ position?: "center" | "inline";
16
+
17
+ /**
18
+ * The text to be displayed.
19
+ */
20
+ text?: string;
21
+ }
22
+
23
+ export type HvLoadingClassKey =
24
+ | "input"
25
+ | "characterCounter"
26
+ | "inline"
27
+ | "separator"
28
+ | "maxCharacter"
29
+ | "currentCounter"
30
+ | "disabled";
31
+
32
+ export default function HvLoading(props: HvLoadingProps): JSX.Element | null;
@@ -0,0 +1,71 @@
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import clsx from "clsx";
4
+ import isEmpty from "lodash/isEmpty";
5
+ import { withStyles } from "@material-ui/core";
6
+ import { HvTypography, withDeprecated } from "@hitachivantara/uikit-react-core";
7
+ import styles from "./styles";
8
+ /**
9
+ * A Loading Component component, still in development.
10
+ */
11
+
12
+ var Loading = function Loading(_ref) {
13
+ var classes = _ref.classes,
14
+ size = _ref.size,
15
+ position = _ref.position,
16
+ text = _ref.text;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: clsx(classes.loading, {
19
+ "center": classes.centerPosition,
20
+ "inline": classes.inlinePosition
21
+ }[position])
22
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
23
+ className: clsx(classes.loadingBar, size)
24
+ }), /*#__PURE__*/React.createElement("div", {
25
+ className: clsx(classes.loadingBar, size)
26
+ }), /*#__PURE__*/React.createElement("div", {
27
+ className: clsx(classes.loadingBar, size)
28
+ })), !isEmpty(text) ? /*#__PURE__*/React.createElement("div", {
29
+ className: classes.loadingText
30
+ }, /*#__PURE__*/React.createElement(HvTypography, {
31
+ variant: "normalText"
32
+ }, text)) : null);
33
+ };
34
+
35
+ process.env.NODE_ENV !== "production" ? Loading.propTypes = {
36
+ /**
37
+ * Styles applied to the Drawer Paper element.
38
+ */
39
+ classes: PropTypes.PropTypes.shape({
40
+ loadingBar: PropTypes.string,
41
+ loadingText: PropTypes.string,
42
+ loading: PropTypes.string,
43
+ centerPosition: PropTypes.string,
44
+ inlinePosition: PropTypes.string
45
+ }).isRequired,
46
+
47
+ /**
48
+ * The size of the loading indicator.
49
+ */
50
+ size: PropTypes.oneOf(["regular", "small"]),
51
+
52
+ /**
53
+ * The position where the loading indicator is to be positioned in,
54
+ * center of the page or inline in the container where its inserted.
55
+ */
56
+ position: PropTypes.oneOf(["center", "inline"]),
57
+
58
+ /**
59
+ * The text to be displayed.
60
+ */
61
+ text: PropTypes.string
62
+ } : void 0;
63
+ Loading.defaultProps = {
64
+ size: "regular",
65
+ position: "center",
66
+ text: ""
67
+ };
68
+ export default withDeprecated(withStyles(styles, {
69
+ name: "HvLoading"
70
+ })(Loading), "Please use the Loading component in the Core Package");
71
+ //# sourceMappingURL=Loading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.js","names":["React","PropTypes","clsx","isEmpty","withStyles","HvTypography","withDeprecated","styles","Loading","classes","size","position","text","loading","centerPosition","inlinePosition","loadingBar","loadingText","propTypes","shape","string","isRequired","oneOf","defaultProps","name"],"sources":["../../../src/Loading/Loading.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport isEmpty from \"lodash/isEmpty\";\nimport { withStyles } from \"@material-ui/core\";\nimport { HvTypography, withDeprecated } from \"@hitachivantara/uikit-react-core\";\nimport styles from \"./styles\";\n\n/**\n * A Loading Component component, still in development.\n */\nconst Loading = ({ classes, size, position, text }) => {\n return (\n <div\n className={clsx(classes.loading, {\n [classes.centerPosition]: position === \"center\",\n [classes.inlinePosition]: position === \"inline\",\n })}\n >\n <div>\n <div className={clsx(classes.loadingBar, size)} />\n <div className={clsx(classes.loadingBar, size)} />\n <div className={clsx(classes.loadingBar, size)} />\n </div>\n {!isEmpty(text) ? (\n <div className={classes.loadingText}>\n <HvTypography variant=\"normalText\">{text}</HvTypography>\n </div>\n ) : null}\n </div>\n );\n};\n\nLoading.propTypes = {\n /**\n * Styles applied to the Drawer Paper element.\n */\n classes: PropTypes.PropTypes.shape({\n loadingBar: PropTypes.string,\n loadingText: PropTypes.string,\n loading: PropTypes.string,\n centerPosition: PropTypes.string,\n inlinePosition: PropTypes.string,\n }).isRequired,\n /**\n * The size of the loading indicator.\n */\n size: PropTypes.oneOf([\"regular\", \"small\"]),\n /**\n * The position where the loading indicator is to be positioned in,\n * center of the page or inline in the container where its inserted.\n */\n position: PropTypes.oneOf([\"center\", \"inline\"]),\n /**\n * The text to be displayed.\n */\n text: PropTypes.string,\n};\n\nLoading.defaultProps = {\n size: \"regular\",\n position: \"center\",\n text: \"\",\n};\n\nexport default withDeprecated(\n withStyles(styles, { name: \"HvLoading\" })(Loading),\n \"Please use the Loading component in the Core Package\"\n);\n"],"mappings":"AAAA,OAAOA,KAA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EZ,SAAS,CAACmB,MAHc;IAIjCN,cAAc,EAAEb,SAAS,CAACmB,MAJO;IAKjCL,cAAc,EAAEd,SAAS,CAACmB;EALO,CAA1B,EAMNC,UAVe;;EAWlB;AACF;AACA;EACEX,IAAI,EAAET,SAAS,CAACqB,KAAV,CAAgB,CAAC,SAAD,EAAY,OAAZ,CAAhB,CAdY;;EAelB;AACF;AACA;AACA;EACEX,QAAQ,EAAEV,SAAS,CAACqB,KAAV,CAAgB,CAAC,QAAD,EAAW,QAAX,CAAhB,CAnBQ;;EAoBlB;AACF;AACA;EACEV,IAAI,EAAEX,SAAS,CAACmB;AAvBE,CAApB;AA0BAZ,OAAO,CAACe,YAAR,GAAuB;EACrBb,IAAI,EAAE,SADe;EAErBC,QAAQ,EAAE,QAFW;EAGrBC,IAAI,EAAE;AAHe,CAAvB;AAMA,eAAeN,cAAc,CAC3BF,UAAU,CAACG,MAAD,EAAS;EAAEiB,IAAI,EAAE;AAAR,CAAT,CAAV,CAA0ChB,OAA1C,CAD2B,EAE3B,sDAF2B,CAA7B"}
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+ import { HvLoadingProps } from "./Loading";
4
+
5
+ export interface HvLoadingWithDelayProps extends HvLoadingProps {
6
+ /**
7
+ * The amount of milliseconds that the component should wait before showing the Loading
8
+ */
9
+ delay?: number;
10
+ }
11
+
12
+ export default function HvLoadingWithDelay(props: HvLoadingWithDelayProps): JSX.Element | null;
@@ -0,0 +1,97 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["delay"];
4
+ import React, { useState, useEffect } from "react";
5
+ import { withStyles } from "@material-ui/core";
6
+ import PropTypes from "prop-types";
7
+ import { withDeprecated } from "@hitachivantara/uikit-react-core";
8
+ import Loading from "./Loading";
9
+ import styles from "./styles";
10
+
11
+ var LoadingWithDelay = function LoadingWithDelay(_ref) {
12
+ var _ref$delay = _ref.delay,
13
+ delay = _ref$delay === void 0 ? 0 : _ref$delay,
14
+ loadingProps = _objectWithoutProperties(_ref, _excluded);
15
+
16
+ var _useState = useState(false),
17
+ _useState2 = _slicedToArray(_useState, 2),
18
+ shouldDisplay = _useState2[0],
19
+ setShouldDisplay = _useState2[1];
20
+
21
+ useEffect(function () {
22
+ var timer = setTimeout(function () {
23
+ return setShouldDisplay(true);
24
+ }, delay);
25
+ return function () {
26
+ clearTimeout(timer);
27
+ };
28
+ }, []);
29
+ return shouldDisplay && /*#__PURE__*/React.createElement(Loading, loadingProps);
30
+ };
31
+
32
+ process.env.NODE_ENV !== "production" ? LoadingWithDelay.propTypes = {
33
+ /**
34
+ * Styles applied to the Drawer Paper element.
35
+ */
36
+ classes: PropTypes.PropTypes.shape({
37
+ /**
38
+ * The class applied on the text area input box.
39
+ */
40
+ input: PropTypes.string,
41
+
42
+ /**
43
+ * The class applied on the character counter.
44
+ */
45
+ characterCounter: PropTypes.string,
46
+
47
+ /**
48
+ * The class controlling the layout of the counter.
49
+ */
50
+ inline: PropTypes.string,
51
+
52
+ /**
53
+ * The class applied to the separator element of the character counter.
54
+ */
55
+ separator: PropTypes.string,
56
+
57
+ /**
58
+ * The class applied to the max counter element of the character counter.
59
+ */
60
+ maxCharacter: PropTypes.string,
61
+
62
+ /**
63
+ * The class applied to the current counter element of the character counter.
64
+ */
65
+ currentCounter: PropTypes.string,
66
+
67
+ /**
68
+ * The class applied to the character counter when it is disabled.
69
+ */
70
+ disabled: PropTypes.string
71
+ }).isRequired,
72
+
73
+ /**
74
+ * The size of the loading indicator.
75
+ */
76
+ size: PropTypes.oneOf(["regular", "small"]),
77
+
78
+ /**
79
+ * The position where the loading indicator is to be positioned in,
80
+ * center of the page or inline in the container where its inserted.
81
+ */
82
+ position: PropTypes.oneOf(["center", "inline"]),
83
+
84
+ /**
85
+ * The text to be displayed.
86
+ */
87
+ text: PropTypes.string,
88
+
89
+ /**
90
+ * The amount of milliseconds that the component should wait before showing the Loading
91
+ */
92
+ delay: PropTypes.number
93
+ } : void 0;
94
+ export default withDeprecated(withStyles(styles, {
95
+ name: "HvLoadingWithDelay"
96
+ })(LoadingWithDelay), "Please use the Loading component in the Core Package");
97
+ //# sourceMappingURL=LoadingWithDelay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingWithDelay.js","names":["React","useState","useEffect","withStyles","PropTypes","withDeprecated","Loading","styles","LoadingWithDelay","delay","loadingProps","shouldDisplay","setShouldDisplay","timer","setTimeout","clearTimeout","propTypes","classes","shape","input","string","characterCounter","inline","separator","maxCharacter","currentCounter","disabled","isRequired","size","oneOf","position","text","number","name"],"sources":["../../../src/Loading/LoadingWithDelay.js"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport { withStyles } from \"@material-ui/core\";\nimport PropTypes from \"prop-types\";\nimport { withDeprecated } from \"@hitachivantara/uikit-react-core\";\nimport Loading from \"./Loading\";\nimport styles from \"./styles\";\n\nconst LoadingWithDelay = ({ delay = 0, ...loadingProps }) => {\n const [shouldDisplay, setShouldDisplay] = useState(false);\n\n useEffect(() => {\n const timer = setTimeout(() => setShouldDisplay(true), delay);\n\n return () => {\n clearTimeout(timer);\n };\n }, []);\n\n return shouldDisplay && <Loading {...loadingProps} />;\n};\n\nLoadingWithDelay.propTypes = {\n /**\n * Styles applied to the Drawer Paper element.\n */\n classes: PropTypes.PropTypes.shape({\n /**\n * The class applied on the text area input box.\n */\n input: PropTypes.string,\n /**\n * The class applied on the character counter.\n */\n characterCounter: PropTypes.string,\n /**\n * The class controlling the layout of the counter.\n */\n inline: PropTypes.string,\n /**\n * The class applied to the separator element of the character counter.\n */\n separator: PropTypes.string,\n /**\n * The class applied to the max counter element of the character counter.\n */\n maxCharacter: PropTypes.string,\n /**\n * The class applied to the current counter element of the character counter.\n */\n currentCounter: PropTypes.string,\n /**\n * The class applied to the character counter when it is disabled.\n */\n disabled: PropTypes.string,\n }).isRequired,\n /**\n * The size of the loading indicator.\n */\n size: PropTypes.oneOf([\"regular\", \"small\"]),\n /**\n * The position where the loading indicator is to be positioned in,\n * center of the page or inline in the container where its inserted.\n */\n position: PropTypes.oneOf([\"center\", \"inline\"]),\n /**\n * The text to be displayed.\n */\n text: PropTypes.string,\n /**\n * The amount of milliseconds that the component should wait before showing the Loading\n */\n delay: PropTypes.number,\n};\n\nexport default withDeprecated(\n withStyles(styles, { name: \"HvLoadingWithDelay\" })(LoadingWithDelay),\n \"Please use the Loading component in the Core Package\"\n);\n"],"mappings":";;;AAAA,OAAOA,KAAP,IAAgBC,QAAhB,EAA0BC,SAA1B,QAA2C,OAA3C;AACA,SAASC,UAAT,QAA2B,mBAA3B;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,SAASC,cAAT,QAA+B,kCAA/B;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,OAAOC,MAAP,MAAmB,UAAnB;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,OAAoC;EAAA,sBAAjCC,KAAiC;EAAA,IAAjCA,KAAiC,2BAAzB,CAAyB;EAAA,IAAnBC,YAAmB;;EAC3D,gBAA0CT,QAAQ,CAAC,KAAD,CAAlD;EAAA;EAAA,IAAOU,aAAP;EAAA,IAAsBC,gBAAtB;;EAEAV,SAAS,CAAC,YAAM;IACd,IAAMW,KAAK,GAAGC,UAAU,CAAC;MAAA,OAAMF,gBAAgB,CAAC,IAAD,CAAtB;IAAA,CAAD,EAA+BH,KAA/B,CAAxB;IAEA,OAAO,YAAM;MACXM,YAAY,CAACF,KAAD,CAAZ;IACD,CAFD;EAGD,CANQ,EAMN,EANM,CAAT;EAQA,OAAOF,aAAa,iBAAI,oBAAC,OAAD,EAAaD,YAAb,CAAxB;AACD,CAZD;;AAcA,wCAAAF,gBAAgB,CAACQ,SAAjB,GAA6B;EAC3B;AACF;AACA;EACEC,OAAO,EAAEb,SAAS,CAACA,SAAV,CAAoBc,KAApB,CAA0B;IACjC;AACJ;AACA;IACIC,KAAK,EAAEf,SAAS,CAACgB,MAJgB;;IAKjC;AACJ;AACA;IACIC,gBAAgB,EAAEjB,SAAS,CAACgB,MARK;;IASjC;AACJ;AACA;IACIE,MAAM,EAAElB,SAAS,CAACgB,MAZe;;IAajC;AACJ;AACA;IACIG,SAAS,EAAEnB,SAAS,CAACgB,MAhBY;;IAiBjC;AACJ;AACA;IACII,YAAY,EAAEpB,SAAS,CAACgB,MApBS;;IAqBjC;AACJ;AACA;IACIK,cAAc,EAAErB,SAAS,CAACgB,MAxBO;;IAyBjC;AACJ;AACA;IACIM,QAAQ,EAAEtB,SAAS,CAACgB;EA5Ba,CAA1B,EA6BNO,UAjCwB;;EAkC3B;AACF;AACA;EACEC,IAAI,EAAExB,SAAS,CAACyB,KAAV,CAAgB,CAAC,SAAD,EAAY,OAAZ,CAAhB,CArCqB;;EAsC3B;AACF;AACA;AACA;EACEC,QAAQ,EAAE1B,SAAS,CAACyB,KAAV,CAAgB,CAAC,QAAD,EAAW,QAAX,CAAhB,CA1CiB;;EA2C3B;AACF;AACA;EACEE,IAAI,EAAE3B,SAAS,CAACgB,MA9CW;;EA+C3B;AACF;AACA;EACEX,KAAK,EAAEL,SAAS,CAAC4B;AAlDU,CAA7B;AAqDA,eAAe3B,cAAc,CAC3BF,UAAU,CAACI,MAAD,EAAS;EAAE0B,IAAI,EAAE;AAAR,CAAT,CAAV,CAAmDzB,gBAAnD,CAD2B,EAE3B,sDAF2B,CAA7B"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./LoadingWithDelay";
2
+ export * from "./LoadingWithDelay";
@@ -0,0 +1,2 @@
1
+ export { default } from "./LoadingWithDelay";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../src/Loading/index.js"],"sourcesContent":["export { default } from \"./LoadingWithDelay\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,oBAAxB"}