@ohos-ports/sprucelabs-react-heartwood-components 9.1.0-beta.0

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 (616) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -0
  3. package/lib/__mocks__/stubs/events.js +166 -0
  4. package/lib/__mocks__/stubs/events.js.map +1 -0
  5. package/lib/__mocks__/stubs/location.js +34 -0
  6. package/lib/__mocks__/stubs/location.js.map +1 -0
  7. package/lib/__mocks__/stubs/users.js +225 -0
  8. package/lib/__mocks__/stubs/users.js.map +1 -0
  9. package/lib/__tests__/components/Pagination/Pagination.test.js +127 -0
  10. package/lib/__tests__/components/Pagination/Pagination.test.js.map +1 -0
  11. package/lib/components/Avatar/Avatar-story.js +34 -0
  12. package/lib/components/Avatar/Avatar-story.js.map +1 -0
  13. package/lib/components/Avatar/Avatar.d.ts +40 -0
  14. package/lib/components/Avatar/Avatar.d.ts.map +1 -0
  15. package/lib/components/Avatar/Avatar.js +91 -0
  16. package/lib/components/Avatar/Avatar.js.map +1 -0
  17. package/lib/components/Avatar/UserAvatar.js +45 -0
  18. package/lib/components/Avatar/UserAvatar.js.map +1 -0
  19. package/lib/components/BotText/BotText-story.d.ts +2 -0
  20. package/lib/components/BotText/BotText-story.d.ts.map +1 -0
  21. package/lib/components/BotText/BotText-story.js +21 -0
  22. package/lib/components/BotText/BotText-story.js.map +1 -0
  23. package/lib/components/BotText/BotText.d.ts +12 -0
  24. package/lib/components/BotText/BotText.d.ts.map +1 -0
  25. package/lib/components/BotText/BotText.js +52 -0
  26. package/lib/components/BotText/BotText.js.map +1 -0
  27. package/lib/components/Button/Button-story.js +109 -0
  28. package/lib/components/Button/Button-story.js.map +1 -0
  29. package/lib/components/Button/Button.d.ts +47 -0
  30. package/lib/components/Button/Button.d.ts.map +1 -0
  31. package/lib/components/Button/Button.js +155 -0
  32. package/lib/components/Button/Button.js.map +1 -0
  33. package/lib/components/ButtonGroup/ButtonGroup-story.js +27 -0
  34. package/lib/components/ButtonGroup/ButtonGroup-story.js.map +1 -0
  35. package/lib/components/ButtonGroup/ButtonGroup.d.ts +19 -0
  36. package/lib/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
  37. package/lib/components/ButtonGroup/ButtonGroup.js +64 -0
  38. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -0
  39. package/lib/components/Card/Card-story.d.ts +2 -0
  40. package/lib/components/Card/Card-story.d.ts.map +1 -0
  41. package/lib/components/Card/Card-story.js +389 -0
  42. package/lib/components/Card/Card-story.js.map +1 -0
  43. package/lib/components/Card/Card.d.ts +69 -0
  44. package/lib/components/Card/Card.d.ts.map +1 -0
  45. package/lib/components/Card/Card.js +113 -0
  46. package/lib/components/Card/Card.js.map +1 -0
  47. package/lib/components/Card/components/CardBody.d.ts +27 -0
  48. package/lib/components/Card/components/CardBody.d.ts.map +1 -0
  49. package/lib/components/Card/components/CardBody.js +45 -0
  50. package/lib/components/Card/components/CardBody.js.map +1 -0
  51. package/lib/components/Card/components/CardBuilder.d.ts +50 -0
  52. package/lib/components/Card/components/CardBuilder.d.ts.map +1 -0
  53. package/lib/components/Card/components/CardBuilder.js +139 -0
  54. package/lib/components/Card/components/CardBuilder.js.map +1 -0
  55. package/lib/components/Card/components/CardFooter.d.ts +11 -0
  56. package/lib/components/Card/components/CardFooter.d.ts.map +1 -0
  57. package/lib/components/Card/components/CardFooter.js +22 -0
  58. package/lib/components/Card/components/CardFooter.js.map +1 -0
  59. package/lib/components/Card/components/CardHeader.d.ts +28 -0
  60. package/lib/components/Card/components/CardHeader.d.ts.map +1 -0
  61. package/lib/components/Card/components/CardHeader.js +70 -0
  62. package/lib/components/Card/components/CardHeader.js.map +1 -0
  63. package/lib/components/Card/components/CardSection.d.ts +10 -0
  64. package/lib/components/Card/components/CardSection.d.ts.map +1 -0
  65. package/lib/components/Card/components/CardSection.js +27 -0
  66. package/lib/components/Card/components/CardSection.js.map +1 -0
  67. package/lib/components/Card/components/OnboardingCard.d.ts +27 -0
  68. package/lib/components/Card/components/OnboardingCard.d.ts.map +1 -0
  69. package/lib/components/Card/components/OnboardingCard.js +129 -0
  70. package/lib/components/Card/components/OnboardingCard.js.map +1 -0
  71. package/lib/components/Card/components/Scores.d.ts +15 -0
  72. package/lib/components/Card/components/Scores.d.ts.map +1 -0
  73. package/lib/components/Card/components/Scores.js +39 -0
  74. package/lib/components/Card/components/Scores.js.map +1 -0
  75. package/lib/components/Card/index.d.ts +11 -0
  76. package/lib/components/Card/index.d.ts.map +1 -0
  77. package/lib/components/Card/index.js +120 -0
  78. package/lib/components/Card/index.js.map +1 -0
  79. package/lib/components/CircleLoader/CircleLoader-story.d.ts +2 -0
  80. package/lib/components/CircleLoader/CircleLoader-story.d.ts.map +1 -0
  81. package/lib/components/CircleLoader/CircleLoader-story.js +20 -0
  82. package/lib/components/CircleLoader/CircleLoader-story.js.map +1 -0
  83. package/lib/components/CircleLoader/CircleLoader.d.ts +13 -0
  84. package/lib/components/CircleLoader/CircleLoader.d.ts.map +1 -0
  85. package/lib/components/CircleLoader/CircleLoader.js +28 -0
  86. package/lib/components/CircleLoader/CircleLoader.js.map +1 -0
  87. package/lib/components/ContextMenu/ContextMenu-story.js +31 -0
  88. package/lib/components/ContextMenu/ContextMenu-story.js.map +1 -0
  89. package/lib/components/ContextMenu/ContextMenu.d.ts +70 -0
  90. package/lib/components/ContextMenu/ContextMenu.d.ts.map +1 -0
  91. package/lib/components/ContextMenu/ContextMenu.js +315 -0
  92. package/lib/components/ContextMenu/ContextMenu.js.map +1 -0
  93. package/lib/components/Core/components/FeedBuilder/FeedBuilder-story.js +101 -0
  94. package/lib/components/Core/components/FeedBuilder/FeedBuilder-story.js.map +1 -0
  95. package/lib/components/Core/components/FeedBuilder/FeedBuilder.js +290 -0
  96. package/lib/components/Core/components/FeedBuilder/FeedBuilder.js.map +1 -0
  97. package/lib/components/Core/components/FooterPrimary/FooterPrimary.js +20 -0
  98. package/lib/components/Core/components/FooterPrimary/FooterPrimary.js.map +1 -0
  99. package/lib/components/Core/components/FooterPrimary/components/HelpButton/HelpButton.js +52 -0
  100. package/lib/components/Core/components/FooterPrimary/components/HelpButton/HelpButton.js.map +1 -0
  101. package/lib/components/Core/components/FooterPrimary/components/Legal/Legal.js +38 -0
  102. package/lib/components/Core/components/FooterPrimary/components/Legal/Legal.js.map +1 -0
  103. package/lib/components/Core/components/FooterPrimary/index.js +30 -0
  104. package/lib/components/Core/components/FooterPrimary/index.js.map +1 -0
  105. package/lib/components/Core/components/HeaderPrimary/HeaderPrimary-story.js +134 -0
  106. package/lib/components/Core/components/HeaderPrimary/HeaderPrimary-story.js.map +1 -0
  107. package/lib/components/Core/components/HeaderPrimary/HeaderPrimary.js +238 -0
  108. package/lib/components/Core/components/HeaderPrimary/HeaderPrimary.js.map +1 -0
  109. package/lib/components/Core/components/HeaderPrimary/components/DefaultLockup/DefaultLockup.js +32 -0
  110. package/lib/components/Core/components/HeaderPrimary/components/DefaultLockup/DefaultLockup.js.map +1 -0
  111. package/lib/components/Core/components/HeaderPrimary/components/Hamburger/Hamburger.js +58 -0
  112. package/lib/components/Core/components/HeaderPrimary/components/Hamburger/Hamburger.js.map +1 -0
  113. package/lib/components/Core/components/HeaderPrimary/components/LocationMenu/LocationMenu.js +169 -0
  114. package/lib/components/Core/components/HeaderPrimary/components/LocationMenu/LocationMenu.js.map +1 -0
  115. package/lib/components/Core/components/HeaderPrimary/components/UserMenu/UserMenu.js +56 -0
  116. package/lib/components/Core/components/HeaderPrimary/components/UserMenu/UserMenu.js.map +1 -0
  117. package/lib/components/Core/components/ProfileSummary/ProfileSummary-story.js +26 -0
  118. package/lib/components/Core/components/ProfileSummary/ProfileSummary-story.js.map +1 -0
  119. package/lib/components/Core/components/ProfileSummary/ProfileSummary.js +46 -0
  120. package/lib/components/Core/components/ProfileSummary/ProfileSummary.js.map +1 -0
  121. package/lib/components/Core/components/SaveBar/SaveBar-story.js +68 -0
  122. package/lib/components/Core/components/SaveBar/SaveBar-story.js.map +1 -0
  123. package/lib/components/Core/components/SaveBar/SaveBar.js +127 -0
  124. package/lib/components/Core/components/SaveBar/SaveBar.js.map +1 -0
  125. package/lib/components/Core/components/Sidebar/Sidebar-story.js +204 -0
  126. package/lib/components/Core/components/Sidebar/Sidebar-story.js.map +1 -0
  127. package/lib/components/Core/components/Sidebar/Sidebar.js +87 -0
  128. package/lib/components/Core/components/Sidebar/Sidebar.js.map +1 -0
  129. package/lib/components/Core/components/Sidebar/components/SidebarExpander/SidebarExpander.js +48 -0
  130. package/lib/components/Core/components/Sidebar/components/SidebarExpander/SidebarExpander.js.map +1 -0
  131. package/lib/components/Core/components/Sidebar/components/SidebarFooter/SidebarFooter.js +25 -0
  132. package/lib/components/Core/components/Sidebar/components/SidebarFooter/SidebarFooter.js.map +1 -0
  133. package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.d.ts +12 -0
  134. package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.d.ts.map +1 -0
  135. package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.js +47 -0
  136. package/lib/components/Core/components/Sidebar/components/SidebarHeader/SidebarHeader.js.map +1 -0
  137. package/lib/components/Core/components/Sidebar/components/SidebarItem/SidebarItem.js +115 -0
  138. package/lib/components/Core/components/Sidebar/components/SidebarItem/SidebarItem.js.map +1 -0
  139. package/lib/components/Core/components/Sidebar/components/SidebarSection/SidebarSection.js +38 -0
  140. package/lib/components/Core/components/Sidebar/components/SidebarSection/SidebarSection.js.map +1 -0
  141. package/lib/components/Core/index.js +80 -0
  142. package/lib/components/Core/index.js.map +1 -0
  143. package/lib/components/Dropzone/Dropzone-story.js +119 -0
  144. package/lib/components/Dropzone/Dropzone-story.js.map +1 -0
  145. package/lib/components/Dropzone/Dropzone.js +317 -0
  146. package/lib/components/Dropzone/Dropzone.js.map +1 -0
  147. package/lib/components/EmptyState/EmptyState-story.d.ts +2 -0
  148. package/lib/components/EmptyState/EmptyState-story.d.ts.map +1 -0
  149. package/lib/components/EmptyState/EmptyState-story.js +60 -0
  150. package/lib/components/EmptyState/EmptyState-story.js.map +1 -0
  151. package/lib/components/EmptyState/EmptyState.d.ts +28 -0
  152. package/lib/components/EmptyState/EmptyState.d.ts.map +1 -0
  153. package/lib/components/EmptyState/EmptyState.js +54 -0
  154. package/lib/components/EmptyState/EmptyState.js.map +1 -0
  155. package/lib/components/EventDetails/EventDetails-story.d.ts +2 -0
  156. package/lib/components/EventDetails/EventDetails-story.d.ts.map +1 -0
  157. package/lib/components/EventDetails/EventDetails-story.js +112 -0
  158. package/lib/components/EventDetails/EventDetails-story.js.map +1 -0
  159. package/lib/components/EventDetails/EventDetails.d.ts +18 -0
  160. package/lib/components/EventDetails/EventDetails.d.ts.map +1 -0
  161. package/lib/components/EventDetails/EventDetails.js +75 -0
  162. package/lib/components/EventDetails/EventDetails.js.map +1 -0
  163. package/lib/components/EventDetails/EventDetailsUtilities.d.ts +11 -0
  164. package/lib/components/EventDetails/EventDetailsUtilities.d.ts.map +1 -0
  165. package/lib/components/EventDetails/EventDetailsUtilities.js +56 -0
  166. package/lib/components/EventDetails/EventDetailsUtilities.js.map +1 -0
  167. package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.d.ts +18 -0
  168. package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.d.ts.map +1 -0
  169. package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.js +111 -0
  170. package/lib/components/EventDetails/components/EventDetailsItem/EventDetailsItem.js.map +1 -0
  171. package/lib/components/EventDetails/eventDetailsMock.d.ts +10 -0
  172. package/lib/components/EventDetails/eventDetailsMock.d.ts.map +1 -0
  173. package/lib/components/EventDetails/eventDetailsMock.js +840 -0
  174. package/lib/components/EventDetails/eventDetailsMock.js.map +1 -0
  175. package/lib/components/FontLoader/FontLoader-story.js +16 -0
  176. package/lib/components/FontLoader/FontLoader-story.js.map +1 -0
  177. package/lib/components/FontLoader/FontLoader.js +148 -0
  178. package/lib/components/FontLoader/FontLoader.js.map +1 -0
  179. package/lib/components/Forms/FormPartials.js +70 -0
  180. package/lib/components/Forms/FormPartials.js.map +1 -0
  181. package/lib/components/Forms/Forms-story.js +297 -0
  182. package/lib/components/Forms/Forms-story.js.map +1 -0
  183. package/lib/components/Forms/components/Autosuggest/Autosuggest.d.ts +71 -0
  184. package/lib/components/Forms/components/Autosuggest/Autosuggest.d.ts.map +1 -0
  185. package/lib/components/Forms/components/Autosuggest/Autosuggest.js +372 -0
  186. package/lib/components/Forms/components/Autosuggest/Autosuggest.js.map +1 -0
  187. package/lib/components/Forms/components/Checkbox/Checkbox.d.ts +23 -0
  188. package/lib/components/Forms/components/Checkbox/Checkbox.d.ts.map +1 -0
  189. package/lib/components/Forms/components/Checkbox/Checkbox.js +162 -0
  190. package/lib/components/Forms/components/Checkbox/Checkbox.js.map +1 -0
  191. package/lib/components/Forms/components/DatePicker/DatePicker.js +236 -0
  192. package/lib/components/Forms/components/DatePicker/DatePicker.js.map +1 -0
  193. package/lib/components/Forms/components/DomainInput/DomainInput.js +29 -0
  194. package/lib/components/Forms/components/DomainInput/DomainInput.js.map +1 -0
  195. package/lib/components/Forms/components/DurationInput/DurationInput.js +270 -0
  196. package/lib/components/Forms/components/DurationInput/DurationInput.js.map +1 -0
  197. package/lib/components/Forms/components/FormBuilder/FormBuilder-story.js +357 -0
  198. package/lib/components/Forms/components/FormBuilder/FormBuilder-story.js.map +1 -0
  199. package/lib/components/Forms/components/FormBuilder/FormBuilder.js +121 -0
  200. package/lib/components/Forms/components/FormBuilder/FormBuilder.js.map +1 -0
  201. package/lib/components/Forms/components/FormBuilder/components/FormInner/FormInner.js +201 -0
  202. package/lib/components/Forms/components/FormBuilder/components/FormInner/FormInner.js.map +1 -0
  203. package/lib/components/Forms/components/FormLayout/FormLayout.js +35 -0
  204. package/lib/components/Forms/components/FormLayout/FormLayout.js.map +1 -0
  205. package/lib/components/Forms/components/FormLayout/components/FormLayoutGroup/FormLayoutGroup.js +30 -0
  206. package/lib/components/Forms/components/FormLayout/components/FormLayoutGroup/FormLayoutGroup.js.map +1 -0
  207. package/lib/components/Forms/components/FormLayout/components/FormLayoutItem/FormLayoutItem.js +32 -0
  208. package/lib/components/Forms/components/FormLayout/components/FormLayoutItem/FormLayoutItem.js.map +1 -0
  209. package/lib/components/Forms/components/FormLayout/index.js +32 -0
  210. package/lib/components/Forms/components/FormLayout/index.js.map +1 -0
  211. package/lib/components/Forms/components/PhoneInput/PhoneInput.d.ts +30 -0
  212. package/lib/components/Forms/components/PhoneInput/PhoneInput.d.ts.map +1 -0
  213. package/lib/components/Forms/components/PhoneInput/PhoneInput.js +119 -0
  214. package/lib/components/Forms/components/PhoneInput/PhoneInput.js.map +1 -0
  215. package/lib/components/Forms/components/Radio/Radio.d.ts +15 -0
  216. package/lib/components/Forms/components/Radio/Radio.d.ts.map +1 -0
  217. package/lib/components/Forms/components/Radio/Radio.js +92 -0
  218. package/lib/components/Forms/components/Radio/Radio.js.map +1 -0
  219. package/lib/components/Forms/components/Search/Search.js +96 -0
  220. package/lib/components/Forms/components/Search/Search.js.map +1 -0
  221. package/lib/components/Forms/components/Select/Select.js +95 -0
  222. package/lib/components/Forms/components/Select/Select.js.map +1 -0
  223. package/lib/components/Forms/components/Slider/Slider.js +100 -0
  224. package/lib/components/Forms/components/Slider/Slider.js.map +1 -0
  225. package/lib/components/Forms/components/Stars/Stars.js +101 -0
  226. package/lib/components/Forms/components/Stars/Stars.js.map +1 -0
  227. package/lib/components/Forms/components/Tag/Tag.js +60 -0
  228. package/lib/components/Forms/components/Tag/Tag.js.map +1 -0
  229. package/lib/components/Forms/components/TextArea/TextArea.js +55 -0
  230. package/lib/components/Forms/components/TextArea/TextArea.js.map +1 -0
  231. package/lib/components/Forms/components/TextInput/TextInput.d.ts +28 -0
  232. package/lib/components/Forms/components/TextInput/TextInput.d.ts.map +1 -0
  233. package/lib/components/Forms/components/TextInput/TextInput.js +57 -0
  234. package/lib/components/Forms/components/TextInput/TextInput.js.map +1 -0
  235. package/lib/components/Forms/components/Toggle/Toggle.d.ts +9 -0
  236. package/lib/components/Forms/components/Toggle/Toggle.d.ts.map +1 -0
  237. package/lib/components/Forms/components/Toggle/Toggle.js +43 -0
  238. package/lib/components/Forms/components/Toggle/Toggle.js.map +1 -0
  239. package/lib/components/Forms/index.d.ts +18 -0
  240. package/lib/components/Forms/index.d.ts.map +1 -0
  241. package/lib/components/Forms/index.js +182 -0
  242. package/lib/components/Forms/index.js.map +1 -0
  243. package/lib/components/Heading/Heading-story.js +18 -0
  244. package/lib/components/Heading/Heading-story.js.map +1 -0
  245. package/lib/components/Heading/Heading.d.ts +13 -0
  246. package/lib/components/Heading/Heading.d.ts.map +1 -0
  247. package/lib/components/Heading/Heading.js +32 -0
  248. package/lib/components/Heading/Heading.js.map +1 -0
  249. package/lib/components/Icon/Icon-story.d.ts +2 -0
  250. package/lib/components/Icon/Icon-story.d.ts.map +1 -0
  251. package/lib/components/Icon/Icon-story.js +44 -0
  252. package/lib/components/Icon/Icon-story.js.map +1 -0
  253. package/lib/components/Icon/Icon.d.ts +13 -0
  254. package/lib/components/Icon/Icon.d.ts.map +1 -0
  255. package/lib/components/Icon/Icon.js +52 -0
  256. package/lib/components/Icon/Icon.js.map +1 -0
  257. package/lib/components/Image/Image.d.ts +11 -0
  258. package/lib/components/Image/Image.d.ts.map +1 -0
  259. package/lib/components/Image/Image.js +32 -0
  260. package/lib/components/Image/Image.js.map +1 -0
  261. package/lib/components/ImageCropper/ImageCropper-story.js +219 -0
  262. package/lib/components/ImageCropper/ImageCropper-story.js.map +1 -0
  263. package/lib/components/ImageCropper/ImageCropper.js +256 -0
  264. package/lib/components/ImageCropper/ImageCropper.js.map +1 -0
  265. package/lib/components/ImageSSR/ImageSSR.js +32 -0
  266. package/lib/components/ImageSSR/ImageSSR.js.map +1 -0
  267. package/lib/components/Layout/Layout-story.js +128 -0
  268. package/lib/components/Layout/Layout-story.js.map +1 -0
  269. package/lib/components/Layout/Layout.js +43 -0
  270. package/lib/components/Layout/Layout.js.map +1 -0
  271. package/lib/components/Layout/components/LayoutSection/LayoutSection.js +38 -0
  272. package/lib/components/Layout/components/LayoutSection/LayoutSection.js.map +1 -0
  273. package/lib/components/Layout/index.js +24 -0
  274. package/lib/components/Layout/index.js.map +1 -0
  275. package/lib/components/List/List-story.d.ts +2 -0
  276. package/lib/components/List/List-story.d.ts.map +1 -0
  277. package/lib/components/List/List-story.js +241 -0
  278. package/lib/components/List/List-story.js.map +1 -0
  279. package/lib/components/List/List.d.ts +34 -0
  280. package/lib/components/List/List.d.ts.map +1 -0
  281. package/lib/components/List/List.js +83 -0
  282. package/lib/components/List/List.js.map +1 -0
  283. package/lib/components/List/components/ExpandableListItem/ExpandableListItem.d.ts +27 -0
  284. package/lib/components/List/components/ExpandableListItem/ExpandableListItem.d.ts.map +1 -0
  285. package/lib/components/List/components/ExpandableListItem/ExpandableListItem.js +93 -0
  286. package/lib/components/List/components/ExpandableListItem/ExpandableListItem.js.map +1 -0
  287. package/lib/components/List/components/ListHeader/ListHeader.d.ts +16 -0
  288. package/lib/components/List/components/ListHeader/ListHeader.d.ts.map +1 -0
  289. package/lib/components/List/components/ListHeader/ListHeader.js +51 -0
  290. package/lib/components/List/components/ListHeader/ListHeader.js.map +1 -0
  291. package/lib/components/List/components/ListItem/ListItem.d.ts +67 -0
  292. package/lib/components/List/components/ListItem/ListItem.d.ts.map +1 -0
  293. package/lib/components/List/components/ListItem/ListItem.js +206 -0
  294. package/lib/components/List/components/ListItem/ListItem.js.map +1 -0
  295. package/lib/components/List/components/SortableList/SortableList.d.ts +35 -0
  296. package/lib/components/List/components/SortableList/SortableList.d.ts.map +1 -0
  297. package/lib/components/List/components/SortableList/SortableList.js +180 -0
  298. package/lib/components/List/components/SortableList/SortableList.js.map +1 -0
  299. package/lib/components/List/index.d.ts +6 -0
  300. package/lib/components/List/index.d.ts.map +1 -0
  301. package/lib/components/List/index.js +74 -0
  302. package/lib/components/List/index.js.map +1 -0
  303. package/lib/components/Loader/Loader-story.js +30 -0
  304. package/lib/components/Loader/Loader-story.js.map +1 -0
  305. package/lib/components/Loader/Loader.js +36 -0
  306. package/lib/components/Loader/Loader.js.map +1 -0
  307. package/lib/components/Loader/Loader.test.js +17 -0
  308. package/lib/components/Loader/Loader.test.js.map +1 -0
  309. package/lib/components/MarkdownText/MarkdownText.d.ts +8 -0
  310. package/lib/components/MarkdownText/MarkdownText.d.ts.map +1 -0
  311. package/lib/components/MarkdownText/MarkdownText.js +26 -0
  312. package/lib/components/MarkdownText/MarkdownText.js.map +1 -0
  313. package/lib/components/Message/Message-story.js +135 -0
  314. package/lib/components/Message/Message-story.js.map +1 -0
  315. package/lib/components/Message/Message.js +147 -0
  316. package/lib/components/Message/Message.js.map +1 -0
  317. package/lib/components/Message/components/MessageBuilder.js +132 -0
  318. package/lib/components/Message/components/MessageBuilder.js.map +1 -0
  319. package/lib/components/Message/index.js +24 -0
  320. package/lib/components/Message/index.js.map +1 -0
  321. package/lib/components/Modal/Modal-story.js +239 -0
  322. package/lib/components/Modal/Modal-story.js.map +1 -0
  323. package/lib/components/Modal/Modal.js +86 -0
  324. package/lib/components/Modal/Modal.js.map +1 -0
  325. package/lib/components/Modal/components/ModalBody/ModalBody.js +30 -0
  326. package/lib/components/Modal/components/ModalBody/ModalBody.js.map +1 -0
  327. package/lib/components/Modal/components/ModalFooter/ModalFooter.js +31 -0
  328. package/lib/components/Modal/components/ModalFooter/ModalFooter.js.map +1 -0
  329. package/lib/components/Modal/components/ModalHeader/ModalHeader.js +84 -0
  330. package/lib/components/Modal/components/ModalHeader/ModalHeader.js.map +1 -0
  331. package/lib/components/Page/Page-story.js +115 -0
  332. package/lib/components/Page/Page-story.js.map +1 -0
  333. package/lib/components/Page/Page.js +55 -0
  334. package/lib/components/Page/Page.js.map +1 -0
  335. package/lib/components/Page/components/PageContent/PageContent.js +22 -0
  336. package/lib/components/Page/components/PageContent/PageContent.js.map +1 -0
  337. package/lib/components/Page/components/PageHeader/PageHeader.js +127 -0
  338. package/lib/components/Page/components/PageHeader/PageHeader.js.map +1 -0
  339. package/lib/components/Page/index.js +32 -0
  340. package/lib/components/Page/index.js.map +1 -0
  341. package/lib/components/PagedModal/PagedModal-story.js +121 -0
  342. package/lib/components/PagedModal/PagedModal-story.js.map +1 -0
  343. package/lib/components/PagedModal/PagedModal.js +84 -0
  344. package/lib/components/PagedModal/PagedModal.js.map +1 -0
  345. package/lib/components/Pagination/Pagination-story.js +35 -0
  346. package/lib/components/Pagination/Pagination-story.js.map +1 -0
  347. package/lib/components/Pagination/Pagination.js +157 -0
  348. package/lib/components/Pagination/Pagination.js.map +1 -0
  349. package/lib/components/RecordSelectionList/RecordSelectList-story.js +491 -0
  350. package/lib/components/RecordSelectionList/RecordSelectList-story.js.map +1 -0
  351. package/lib/components/RecordSelectionList/RecordSelectionList.d.ts +112 -0
  352. package/lib/components/RecordSelectionList/RecordSelectionList.d.ts.map +1 -0
  353. package/lib/components/RecordSelectionList/RecordSelectionList.js +702 -0
  354. package/lib/components/RecordSelectionList/RecordSelectionList.js.map +1 -0
  355. package/lib/components/RecordSelectionList/RecordSelectionListItem.d.ts +5 -0
  356. package/lib/components/RecordSelectionList/RecordSelectionListItem.d.ts.map +1 -0
  357. package/lib/components/RecordSelectionList/RecordSelectionListItem.js +20 -0
  358. package/lib/components/RecordSelectionList/RecordSelectionListItem.js.map +1 -0
  359. package/lib/components/RecordTable/RecordTable-story.d.ts +2 -0
  360. package/lib/components/RecordTable/RecordTable-story.d.ts.map +1 -0
  361. package/lib/components/RecordTable/RecordTable-story.js +242 -0
  362. package/lib/components/RecordTable/RecordTable-story.js.map +1 -0
  363. package/lib/components/RecordTable/RecordTable.d.ts +133 -0
  364. package/lib/components/RecordTable/RecordTable.d.ts.map +1 -0
  365. package/lib/components/RecordTable/RecordTable.js +523 -0
  366. package/lib/components/RecordTable/RecordTable.js.map +1 -0
  367. package/lib/components/SplitButton/SplitButton-story.js +60 -0
  368. package/lib/components/SplitButton/SplitButton-story.js.map +1 -0
  369. package/lib/components/SplitButton/SplitButton.d.ts +47 -0
  370. package/lib/components/SplitButton/SplitButton.d.ts.map +1 -0
  371. package/lib/components/SplitButton/SplitButton.js +296 -0
  372. package/lib/components/SplitButton/SplitButton.js.map +1 -0
  373. package/lib/components/Subheading/Subheading-story.js +18 -0
  374. package/lib/components/Subheading/Subheading-story.js.map +1 -0
  375. package/lib/components/Subheading/Subheading.js +40 -0
  376. package/lib/components/Subheading/Subheading.js.map +1 -0
  377. package/lib/components/Table/Table-story.js +428 -0
  378. package/lib/components/Table/Table-story.js.map +1 -0
  379. package/lib/components/Table/Table.d.ts +63 -0
  380. package/lib/components/Table/Table.d.ts.map +1 -0
  381. package/lib/components/Table/Table.js +395 -0
  382. package/lib/components/Table/Table.js.map +1 -0
  383. package/lib/components/Table/components/TableFilters/TableFilters.js +31 -0
  384. package/lib/components/Table/components/TableFilters/TableFilters.js.map +1 -0
  385. package/lib/components/Table/components/TableSearch/TableSearch.d.ts +7 -0
  386. package/lib/components/Table/components/TableSearch/TableSearch.d.ts.map +1 -0
  387. package/lib/components/Table/components/TableSearch/TableSearch.js +30 -0
  388. package/lib/components/Table/components/TableSearch/TableSearch.js.map +1 -0
  389. package/lib/components/Table/index.d.ts +4 -0
  390. package/lib/components/Table/index.d.ts.map +1 -0
  391. package/lib/components/Table/index.js +40 -0
  392. package/lib/components/Table/index.js.map +1 -0
  393. package/lib/components/Tabs/Tabs-story.d.ts +2 -0
  394. package/lib/components/Tabs/Tabs-story.d.ts.map +1 -0
  395. package/lib/components/Tabs/Tabs-story.js +36 -0
  396. package/lib/components/Tabs/Tabs-story.js.map +1 -0
  397. package/lib/components/Tabs/Tabs.d.ts +40 -0
  398. package/lib/components/Tabs/Tabs.d.ts.map +1 -0
  399. package/lib/components/Tabs/Tabs.js +244 -0
  400. package/lib/components/Tabs/Tabs.js.map +1 -0
  401. package/lib/components/Tabs/components/Tab/Tab.d.ts +26 -0
  402. package/lib/components/Tabs/components/Tab/Tab.d.ts.map +1 -0
  403. package/lib/components/Tabs/components/Tab/Tab.js +46 -0
  404. package/lib/components/Tabs/components/Tab/Tab.js.map +1 -0
  405. package/lib/components/Text/Text-story.d.ts +2 -0
  406. package/lib/components/Text/Text-story.d.ts.map +1 -0
  407. package/lib/components/Text/Text-story.js +51 -0
  408. package/lib/components/Text/Text-story.js.map +1 -0
  409. package/lib/components/Text/Text.d.ts +18 -0
  410. package/lib/components/Text/Text.d.ts.map +1 -0
  411. package/lib/components/Text/Text.js +123 -0
  412. package/lib/components/Text/Text.js.map +1 -0
  413. package/lib/components/TextContainer/TextContainer-story.js +32 -0
  414. package/lib/components/TextContainer/TextContainer-story.js.map +1 -0
  415. package/lib/components/TextContainer/TextContainer.js +33 -0
  416. package/lib/components/TextContainer/TextContainer.js.map +1 -0
  417. package/lib/components/TextStyle/TextStyle-story.js +28 -0
  418. package/lib/components/TextStyle/TextStyle-story.js.map +1 -0
  419. package/lib/components/TextStyle/TextStyle.js +41 -0
  420. package/lib/components/TextStyle/TextStyle.js.map +1 -0
  421. package/lib/components/Toast/Toast-story.d.ts +2 -0
  422. package/lib/components/Toast/Toast-story.d.ts.map +1 -0
  423. package/lib/components/Toast/Toast-story.js +210 -0
  424. package/lib/components/Toast/Toast-story.js.map +1 -0
  425. package/lib/components/Toast/Toast.d.ts +24 -0
  426. package/lib/components/Toast/Toast.d.ts.map +1 -0
  427. package/lib/components/Toast/Toast.js +76 -0
  428. package/lib/components/Toast/Toast.js.map +1 -0
  429. package/lib/components/Toast/components/ToastWrapper/ToastWrapper.d.ts +24 -0
  430. package/lib/components/Toast/components/ToastWrapper/ToastWrapper.d.ts.map +1 -0
  431. package/lib/components/Toast/components/ToastWrapper/ToastWrapper.js +131 -0
  432. package/lib/components/Toast/components/ToastWrapper/ToastWrapper.js.map +1 -0
  433. package/lib/components/TruncatedList/TruncatedList-story.js +222 -0
  434. package/lib/components/TruncatedList/TruncatedList-story.js.map +1 -0
  435. package/lib/components/TruncatedList/TruncatedList.d.ts +49 -0
  436. package/lib/components/TruncatedList/TruncatedList.d.ts.map +1 -0
  437. package/lib/components/TruncatedList/TruncatedList.js +188 -0
  438. package/lib/components/TruncatedList/TruncatedList.js.map +1 -0
  439. package/lib/components/View/View-story.js +485 -0
  440. package/lib/components/View/View-story.js.map +1 -0
  441. package/lib/components/View/View.d.ts +26 -0
  442. package/lib/components/View/View.d.ts.map +1 -0
  443. package/lib/components/View/View.js +91 -0
  444. package/lib/components/View/View.js.map +1 -0
  445. package/lib/components/_utilities/Anchor.js +28 -0
  446. package/lib/components/_utilities/Anchor.js.map +1 -0
  447. package/lib/custom-types.d.js +2 -0
  448. package/lib/custom-types.d.js.map +1 -0
  449. package/lib/icons.js +3328 -0
  450. package/lib/icons.js.map +1 -0
  451. package/lib/index.d.ts +46 -0
  452. package/lib/index.d.ts.map +1 -0
  453. package/lib/index.js +707 -0
  454. package/lib/index.js.map +1 -0
  455. package/lib/stubs/events.js +166 -0
  456. package/lib/stubs/events.js.map +1 -0
  457. package/lib/stubs/location.js +34 -0
  458. package/lib/stubs/location.js.map +1 -0
  459. package/lib/stubs/users.js +225 -0
  460. package/lib/stubs/users.js.map +1 -0
  461. package/lib/utilities.js +23 -0
  462. package/lib/utilities.js.map +1 -0
  463. package/package.json +174 -0
  464. package/static/android-chrome-192x192.png +0 -0
  465. package/static/android-chrome-256x256.png +0 -0
  466. package/static/apple-touch-icon.png +0 -0
  467. package/static/assets/bg.jpeg +0 -0
  468. package/static/assets/icons/Design/Rotate/rotate-back.svg +9 -0
  469. package/static/assets/icons/Design/Rotate/rotate-forward.svg +9 -0
  470. package/static/assets/icons/Interface-Essential/Alerts/alert-triangle--16w.svg +3 -0
  471. package/static/assets/icons/Interface-Essential/Alerts/alert-triangle--56w.svg +5 -0
  472. package/static/assets/icons/Interface-Essential/Alerts/alert-triangle.svg +3 -0
  473. package/static/assets/icons/Interface-Essential/Dashboard/gauge-dashboard-1.svg +11 -0
  474. package/static/assets/icons/Interface-Essential/Date/Calendar/calendar-3.svg +12 -0
  475. package/static/assets/icons/Interface-Essential/Date/Calendar/calendar-date.svg +9 -0
  476. package/static/assets/icons/Interface-Essential/Delete/bin.svg +7 -0
  477. package/static/assets/icons/Interface-Essential/Edit/pencil-write.svg +5 -0
  478. package/static/assets/icons/Interface-Essential/Form-Edition/paper-write.svg +8 -0
  479. package/static/assets/icons/Interface-Essential/Form-Validation/check-circle-1.svg +4 -0
  480. package/static/assets/icons/Interface-Essential/Help/question-help-square--16w.svg +5 -0
  481. package/static/assets/icons/Interface-Essential/Help/question-help-square.svg +5 -0
  482. package/static/assets/icons/Interface-Essential/Home/house-1--16w.svg +4 -0
  483. package/static/assets/icons/Interface-Essential/Home/house-1.svg +4 -0
  484. package/static/assets/icons/Interface-Essential/Lists/list-bullets-1.svg +8 -0
  485. package/static/assets/icons/Interface-Essential/Lock/Unlock/Lock/Unlock-4.svg +5 -0
  486. package/static/assets/icons/Interface-Essential/Lock/Unlock/lock-6--16w.svg +3 -0
  487. package/static/assets/icons/Interface-Essential/Lock/Unlock/lock-6.svg +5 -0
  488. package/static/assets/icons/Interface-Essential/Login/Logout/logout.svg +5 -0
  489. package/static/assets/icons/Interface-Essential/Menu/navigation-menu-horizontal.svg +5 -0
  490. package/static/assets/icons/Interface-Essential/Select/cursor-select-4.svg +14 -0
  491. package/static/assets/icons/Interface-Essential/Time/stopwatch.svg +8 -0
  492. package/static/assets/icons/Interface-Essential/Time-Files/time-clock-file-check.svg +7 -0
  493. package/static/assets/icons/Interface-Essential/Time-Files/time-clock-file-upload.svg +9 -0
  494. package/static/assets/icons/Maps-Navigation/Pins/pin-2.svg +4 -0
  495. package/static/assets/icons/Maps-Navigation/Pins/pin.svg +4 -0
  496. package/static/assets/icons/Messages-Chat-Smileys/Conversation/conversation-text--16w.svg +8 -0
  497. package/static/assets/icons/Messages-Chat-Smileys/Conversation/conversation-text.svg +8 -0
  498. package/static/assets/icons/Messages-Chat-Smileys/Messages-Speech-Bubbles/messages-bubble-square-text.svg +5 -0
  499. package/static/assets/icons/Phones-Mobile-Devices/Phone/phone-retro-1.svg +7 -0
  500. package/static/assets/icons/Programming-Apps-Websites/Plugins/Modules/module-puzzle.svg +3 -0
  501. package/static/assets/icons/Shopping-E-Commerce/Shops/shop-1--56w.svg +6 -0
  502. package/static/assets/icons/Shopping-E-Commerce/Shops/shop-1.svg +7 -0
  503. package/static/assets/icons/Social-Medias-Rewards-Rating/Rating/rating-star-1-1.svg +3 -0
  504. package/static/assets/icons/Social-Medias-Rewards-Rating/Rating/rating-star-1.svg +3 -0
  505. package/static/assets/icons/Transportation/Aircraft/aircraft-military-plane.svg +18 -0
  506. package/static/assets/icons/Users/Geometric-Close-Up-Single-User-Actions-Neutral/single-neutral-actions-image--56w.svg +7 -0
  507. package/static/assets/icons/Users/Geometric-Close-Up-Single-User-Actions-Neutral/single-neutral-actions-up-down.svg +8 -0
  508. package/static/assets/icons/Users/Geometric-Close-Up-Single-User-Neutral/single-neutral-id-card-3.svg +8 -0
  509. package/static/assets/icons/Users/Geometric-Full-Body-Multiple-Users/multiple-users-1.svg +8 -0
  510. package/static/assets/icons/Work-Office-Companies/Human-Resources/human-resources-search-team--16w.svg +8 -0
  511. package/static/assets/icons/Work-Office-Companies/Human-Resources/human-resources-search-team.svg +8 -0
  512. package/static/assets/icons/ic_add.svg +5 -0
  513. package/static/assets/icons/ic_add_circle_outline.svg +3 -0
  514. package/static/assets/icons/ic_arrow_back.svg +3 -0
  515. package/static/assets/icons/ic_arrow_drop_down.svg +3 -0
  516. package/static/assets/icons/ic_arrow_forward.svg +3 -0
  517. package/static/assets/icons/ic_button.svg +3 -0
  518. package/static/assets/icons/ic_calendar.svg +12 -0
  519. package/static/assets/icons/ic_cancel.svg +8 -0
  520. package/static/assets/icons/ic_caution.svg +3 -0
  521. package/static/assets/icons/ic_caution_light_large.svg +5 -0
  522. package/static/assets/icons/ic_check_box.svg +3 -0
  523. package/static/assets/icons/ic_check_box_outline_blank.svg +3 -0
  524. package/static/assets/icons/ic_check_circle.svg +3 -0
  525. package/static/assets/icons/ic_close.svg +3 -0
  526. package/static/assets/icons/ic_colors.svg +8 -0
  527. package/static/assets/icons/ic_complete.svg +4 -0
  528. package/static/assets/icons/ic_css.svg +7 -0
  529. package/static/assets/icons/ic_dashboard.svg +11 -0
  530. package/static/assets/icons/ic_date.svg +9 -0
  531. package/static/assets/icons/ic_date_disable.svg +8 -0
  532. package/static/assets/icons/ic_delete.svg +7 -0
  533. package/static/assets/icons/ic_disable.svg +3 -0
  534. package/static/assets/icons/ic_drag_handle.svg +3 -0
  535. package/static/assets/icons/ic_drop_light_large.svg +14 -0
  536. package/static/assets/icons/ic_edit.svg +5 -0
  537. package/static/assets/icons/ic_email.svg +6 -0
  538. package/static/assets/icons/ic_fonts.svg +6 -0
  539. package/static/assets/icons/ic_fullscreen.svg +3 -0
  540. package/static/assets/icons/ic_fullscreen_exit.svg +3 -0
  541. package/static/assets/icons/ic_guests.svg +8 -0
  542. package/static/assets/icons/ic_help.svg +5 -0
  543. package/static/assets/icons/ic_home.svg +4 -0
  544. package/static/assets/icons/ic_indeterminate_check_box.svg +3 -0
  545. package/static/assets/icons/ic_keyboard_arrow_left.svg +3 -0
  546. package/static/assets/icons/ic_keyboard_arrow_right.svg +3 -0
  547. package/static/assets/icons/ic_late.svg +5 -0
  548. package/static/assets/icons/ic_launch.svg +18 -0
  549. package/static/assets/icons/ic_location.svg +4 -0
  550. package/static/assets/icons/ic_logout.svg +5 -0
  551. package/static/assets/icons/ic_menu.svg +3 -0
  552. package/static/assets/icons/ic_message.svg +5 -0
  553. package/static/assets/icons/ic_message_failed.svg +7 -0
  554. package/static/assets/icons/ic_messages.svg +8 -0
  555. package/static/assets/icons/ic_more.svg +5 -0
  556. package/static/assets/icons/ic_new_tab.svg +3 -0
  557. package/static/assets/icons/ic_note.svg +8 -0
  558. package/static/assets/icons/ic_payment_failed_solid.svg +5 -0
  559. package/static/assets/icons/ic_payment_success_solid.svg +5 -0
  560. package/static/assets/icons/ic_phone.svg +7 -0
  561. package/static/assets/icons/ic_pin.svg +4 -0
  562. package/static/assets/icons/ic_pin_outline.svg +4 -0
  563. package/static/assets/icons/ic_power.svg +4 -0
  564. package/static/assets/icons/ic_private.svg +5 -0
  565. package/static/assets/icons/ic_profile_image_light_large.svg +7 -0
  566. package/static/assets/icons/ic_public.svg +5 -0
  567. package/static/assets/icons/ic_radio_button_checked.svg +3 -0
  568. package/static/assets/icons/ic_radio_button_unchecked.svg +3 -0
  569. package/static/assets/icons/ic_rotate_left.svg +9 -0
  570. package/static/assets/icons/ic_rotate_right.svg +9 -0
  571. package/static/assets/icons/ic_search.svg +3 -0
  572. package/static/assets/icons/ic_settings.svg +4 -0
  573. package/static/assets/icons/ic_shop_light_large.svg +6 -0
  574. package/static/assets/icons/ic_show.svg +4 -0
  575. package/static/assets/icons/ic_skill.svg +3 -0
  576. package/static/assets/icons/ic_star_outline.svg +3 -0
  577. package/static/assets/icons/ic_star_solid.svg +3 -0
  578. package/static/assets/icons/ic_status.svg +8 -0
  579. package/static/assets/icons/ic_store.svg +7 -0
  580. package/static/assets/icons/ic_switch_users.svg +8 -0
  581. package/static/assets/icons/ic_team.svg +8 -0
  582. package/static/assets/icons/ic_teammates.svg +8 -0
  583. package/static/assets/icons/ic_unordered_list.svg +8 -0
  584. package/static/assets/icons/ic_upload.svg +8 -0
  585. package/static/assets/icons/ic_upload_file_light_large.svg +9 -0
  586. package/static/assets/icons/ic_upload_file_success_light_large.svg +7 -0
  587. package/static/assets/icons/ic_user_avatar.svg +3 -0
  588. package/static/assets/icons/ic_wifi.svg +9 -0
  589. package/static/assets/icons/s-ic_spruce-logo-02.svg +3 -0
  590. package/static/assets/icons/s-ic_spruce-logo.svg +3 -0
  591. package/static/assets/logo.png +0 -0
  592. package/static/assets/users/user-01--96w.png +0 -0
  593. package/static/assets/users/user-01.png +0 -0
  594. package/static/assets/users/user-02--96w.png +0 -0
  595. package/static/assets/users/user-03--96w.png +0 -0
  596. package/static/assets/users/user-04--96w.png +0 -0
  597. package/static/assets/users/user-04.png +0 -0
  598. package/static/assets/users/user-05--96w.png +0 -0
  599. package/static/assets/users/user-05.png +0 -0
  600. package/static/assets/users/user-06--96w.png +0 -0
  601. package/static/assets/users/user-06.png +0 -0
  602. package/static/assets/users/user-07--96w.png +0 -0
  603. package/static/assets/users/user-07.png +0 -0
  604. package/static/assets/users/user-08--96w.png +0 -0
  605. package/static/assets/users/user-08.png +0 -0
  606. package/static/assets/users/user-09--96w.png +0 -0
  607. package/static/assets/users/user-09.png +0 -0
  608. package/static/assets/users/user-placeholder--96w.png +0 -0
  609. package/static/assets/users/user-placeholder.png +0 -0
  610. package/static/browserconfig.xml +9 -0
  611. package/static/favicon-16x16.png +0 -0
  612. package/static/favicon-32x32.png +0 -0
  613. package/static/favicon.ico +0 -0
  614. package/static/mstile-150x150.png +0 -0
  615. package/static/safari-pinned-tab.svg +26 -0
  616. package/static/site.webmanifest +19 -0
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports["default"] = void 0;
11
+
12
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
17
+
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
+
20
+ var _getPrototypeOf3 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
+
22
+ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
23
+
24
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
25
+
26
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
27
+
28
+ var _react = _interopRequireWildcard(require("react"));
29
+
30
+ var _Card = _interopRequireDefault(require("../Card"));
31
+
32
+ var _CardHeader = _interopRequireDefault(require("./CardHeader"));
33
+
34
+ var _CardBody = _interopRequireDefault(require("./CardBody"));
35
+
36
+ var _CardFooter = _interopRequireDefault(require("./CardFooter"));
37
+
38
+ var _Tabs = _interopRequireDefault(require("../../Tabs/Tabs"));
39
+
40
+ var _Button = _interopRequireWildcard(require("../../Button/Button"));
41
+
42
+ var _ = require("../../..");
43
+
44
+ var getCurrentStep = function getCurrentStep(steps) {
45
+ // Find the first step that is not complete
46
+ if (steps && steps.length > 0) {
47
+ for (var i = 0; i < steps.length; i++) {
48
+ if (!steps[i].isComplete) {
49
+ return i;
50
+ }
51
+ }
52
+ }
53
+
54
+ return 0;
55
+ };
56
+
57
+ var OnboardingCard =
58
+ /*#__PURE__*/
59
+ function (_Component) {
60
+ (0, _inherits2["default"])(OnboardingCard, _Component);
61
+
62
+ function OnboardingCard() {
63
+ var _getPrototypeOf2;
64
+
65
+ var _this;
66
+
67
+ (0, _classCallCheck2["default"])(this, OnboardingCard);
68
+
69
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
70
+ args[_key] = arguments[_key];
71
+ }
72
+
73
+ _this = (0, _possibleConstructorReturn2["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(OnboardingCard)).call.apply(_getPrototypeOf2, [this].concat(args)));
74
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
75
+ currentStep: getCurrentStep(_this.props.steps)
76
+ });
77
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClick", function (idx) {
78
+ _this.setState({
79
+ currentStep: idx
80
+ });
81
+ });
82
+ return _this;
83
+ }
84
+
85
+ (0, _createClass2["default"])(OnboardingCard, [{
86
+ key: "render",
87
+ value: function render() {
88
+ var _this2 = this;
89
+
90
+ var currentStep = this.state.currentStep;
91
+ var _this$props = this.props,
92
+ title = _this$props.title,
93
+ steps = _this$props.steps;
94
+ var tabs = (0, _.unionArray)(steps).map(function (step, idx) {
95
+ return {
96
+ text: step.tabTitle,
97
+ icon: step.tabIcon,
98
+ isCurrent: idx === currentStep,
99
+ onClick: function onClick() {
100
+ return _this2.handleClick(idx);
101
+ },
102
+ className: step.isComplete ? 'tab--is-complete' : ''
103
+ };
104
+ });
105
+ return _react["default"].createElement(_Card["default"], {
106
+ className: "onboarding-card"
107
+ }, _react["default"].createElement("div", {
108
+ className: "onboarding-card__header"
109
+ }, _react["default"].createElement("p", {
110
+ className: "onboarding-card__title"
111
+ }, title), tabs && _react["default"].createElement(_Tabs["default"], {
112
+ tabs: tabs,
113
+ isPadded: false,
114
+ isTruncatable: false
115
+ })), _react["default"].createElement(_CardHeader["default"], {
116
+ title: steps[currentStep].panelTitle
117
+ }), _react["default"].createElement(_CardBody["default"], {
118
+ isSectioned: true,
119
+ isFullBleed: false
120
+ }, steps[currentStep].panelCopy), steps[currentStep].panelCTA && _react["default"].createElement(_CardFooter["default"], null, _react["default"].createElement(_Button["default"], (0, _extends2["default"])({
121
+ kind: _Button.ButtonKinds.Primary
122
+ }, steps[currentStep].panelCTA))));
123
+ }
124
+ }]);
125
+ return OnboardingCard;
126
+ }(_react.Component);
127
+
128
+ exports["default"] = OnboardingCard;
129
+ //# sourceMappingURL=OnboardingCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Card/components/OnboardingCard.tsx"],"names":["getCurrentStep","steps","length","i","isComplete","OnboardingCard","currentStep","props","idx","setState","state","title","tabs","map","step","text","tabTitle","icon","tabIcon","isCurrent","onClick","handleClick","className","panelTitle","panelCopy","panelCTA","ButtonKinds","Primary","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAMA;;AAsBA,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAsD;AAC5E;AACA,MAAIA,KAAK,IAAIA,KAAK,CAACC,MAAN,GAAe,CAA5B,EAA+B;AAC9B,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,KAAK,CAACC,MAA1B,EAAkCC,CAAC,EAAnC,EAAuC;AACtC,UAAI,CAACF,KAAK,CAACE,CAAD,CAAL,CAASC,UAAd,EAA0B;AACzB,eAAOD,CAAP;AACA;AACD;AACD;;AACD,SAAO,CAAP;AACA,CAVD;;IAYqBE,c;;;;;;;;;;;;;;;;;8FAIL;AACdC,MAAAA,WAAW,EAAEN,cAAc,CAAC,MAAKO,KAAL,CAAWN,KAAZ;AADb,K;oGAIM,UAACO,GAAD,EAAiB;AACrC,YAAKC,QAAL,CAAc;AACbH,QAAAA,WAAW,EAAEE;AADA,OAAd;AAGA,K;;;;;;6BAEmC;AAAA;;AAAA,UAC3BF,WAD2B,GACX,KAAKI,KADM,CAC3BJ,WAD2B;AAAA,wBAEV,KAAKC,KAFK;AAAA,UAE3BI,KAF2B,eAE3BA,KAF2B;AAAA,UAEpBV,KAFoB,eAEpBA,KAFoB;AAGnC,UAAMW,IAAI,GAAG,kBAAWX,KAAX,EAAkBY,GAAlB,CAAsB,UAACC,IAAD,EAAON,GAAP;AAAA,eAAgB;AAClDO,UAAAA,IAAI,EAAED,IAAI,CAACE,QADuC;AAElDC,UAAAA,IAAI,EAAEH,IAAI,CAACI,OAFuC;AAGlDC,UAAAA,SAAS,EAAEX,GAAG,KAAKF,WAH+B;AAIlDc,UAAAA,OAAO,EAAE;AAAA,mBAAM,MAAI,CAACC,WAAL,CAAiBb,GAAjB,CAAN;AAAA,WAJyC;AAKlDc,UAAAA,SAAS,EAAER,IAAI,CAACV,UAAL,GAAkB,kBAAlB,GAAuC;AALA,SAAhB;AAAA,OAAtB,CAAb;AAQA,aACC,gCAAC,gBAAD;AAAM,QAAA,SAAS,EAAC;AAAhB,SACC;AAAK,QAAA,SAAS,EAAC;AAAf,SACC;AAAG,QAAA,SAAS,EAAC;AAAb,SAAuCO,KAAvC,CADD,EAEEC,IAAI,IAAI,gCAAC,gBAAD;AAAM,QAAA,IAAI,EAAEA,IAAZ;AAAkB,QAAA,QAAQ,EAAE,KAA5B;AAAmC,QAAA,aAAa,EAAE;AAAlD,QAFV,CADD,EAKC,gCAAC,sBAAD;AAAY,QAAA,KAAK,EAAEX,KAAK,CAACK,WAAD,CAAL,CAAmBiB;AAAtC,QALD,EAMC,gCAAC,oBAAD;AAAU,QAAA,WAAW,MAArB;AAAsB,QAAA,WAAW,EAAE;AAAnC,SACEtB,KAAK,CAACK,WAAD,CAAL,CAAmBkB,SADrB,CAND,EASEvB,KAAK,CAACK,WAAD,CAAL,CAAmBmB,QAAnB,IACA,gCAAC,sBAAD,QACC,gCAAC,kBAAD;AACC,QAAA,IAAI,EAAEC,oBAAYC;AADnB,SAEK1B,KAAK,CAACK,WAAD,CAAL,CAAmBmB,QAFxB,EADD,CAVF,CADD;AAoBA;;;EA7C0CG,gB","sourcesContent":["import React, { Component } from 'react'\nimport Card from '../Card'\nimport CardHeader from './CardHeader'\nimport CardBody from './CardBody'\nimport CardFooter from './CardFooter'\nimport Tabs from '../../Tabs/Tabs'\nimport Button, { IButtonProps, ButtonKinds } from '../../Button/Button'\nimport {\n\tIHWOnboardingCard,\n\tIHWOnboardingCardStep\n} from '@sprucelabs/spruce-types'\nimport { IIconProps } from '../../Icon/Icon'\nimport { unionArray } from '../../..'\n\nexport interface IStep\n\textends Omit<IHWOnboardingCardStep, 'panelCTA' | 'tabIcon'> {\n\t/** Primary CTA of this step */\n\tpanelCTA?: IButtonProps | null\n\n\ttabIcon?: IIconProps | null\n}\n\nexport interface IOnboardingCardProps extends Omit<IHWOnboardingCard, 'steps'> {\n\t/** Steps for onboarding */\n\tsteps: IStep[]\n\n\t/** Optional class to add */\n\tclassName?: string\n}\n\ninterface IOnboardingCardState {\n\tcurrentStep: number\n}\n\nconst getCurrentStep = (steps: IStep[] | IHWOnboardingCardStep[]): number => {\n\t// Find the first step that is not complete\n\tif (steps && steps.length > 0) {\n\t\tfor (let i = 0; i < steps.length; i++) {\n\t\t\tif (!steps[i].isComplete) {\n\t\t\t\treturn i\n\t\t\t}\n\t\t}\n\t}\n\treturn 0\n}\n\nexport default class OnboardingCard extends Component<\n\tIOnboardingCardProps | IHWOnboardingCard,\n\tIOnboardingCardState\n> {\n\tpublic state = {\n\t\tcurrentStep: getCurrentStep(this.props.steps)\n\t}\n\n\tpublic handleClick = (idx: number) => {\n\t\tthis.setState({\n\t\t\tcurrentStep: idx\n\t\t})\n\t}\n\n\tpublic render(): React.ReactElement {\n\t\tconst { currentStep } = this.state\n\t\tconst { title, steps } = this.props\n\t\tconst tabs = unionArray(steps).map((step, idx) => ({\n\t\t\ttext: step.tabTitle,\n\t\t\ticon: step.tabIcon,\n\t\t\tisCurrent: idx === currentStep,\n\t\t\tonClick: () => this.handleClick(idx),\n\t\t\tclassName: step.isComplete ? 'tab--is-complete' : ''\n\t\t}))\n\n\t\treturn (\n\t\t\t<Card className=\"onboarding-card\">\n\t\t\t\t<div className=\"onboarding-card__header\">\n\t\t\t\t\t<p className=\"onboarding-card__title\">{title}</p>\n\t\t\t\t\t{tabs && <Tabs tabs={tabs} isPadded={false} isTruncatable={false} />}\n\t\t\t\t</div>\n\t\t\t\t<CardHeader title={steps[currentStep].panelTitle} />\n\t\t\t\t<CardBody isSectioned isFullBleed={false}>\n\t\t\t\t\t{steps[currentStep].panelCopy}\n\t\t\t\t</CardBody>\n\t\t\t\t{steps[currentStep].panelCTA && (\n\t\t\t\t\t<CardFooter>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tkind={ButtonKinds.Primary}\n\t\t\t\t\t\t\t{...steps[currentStep].panelCTA}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</CardFooter>\n\t\t\t\t)}\n\t\t\t</Card>\n\t\t)\n\t}\n}\n"],"file":"OnboardingCard.js"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface IPanelProps {
3
+ /** Unique id for looping. */
4
+ id: string;
5
+ /** Description of the corresponding value. */
6
+ label: string;
7
+ /** The value to display. */
8
+ value: string;
9
+ }
10
+ interface IScoresProps {
11
+ scores: IPanelProps[];
12
+ }
13
+ declare const Scores: (props: IScoresProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
14
+ export default Scores;
15
+ //# sourceMappingURL=Scores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Scores.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/components/Scores.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,WAAW;IACpB,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAA;IAEV,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAA;IAEb,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;CACb;AAYD,UAAU,YAAY;IACrB,MAAM,EAAE,WAAW,EAAE,CAAA;CACrB;AAED,QAAA,MAAM,MAAM,yOASX,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var ScorePanel = function ScorePanel(props) {
15
+ var label = props.label,
16
+ value = props.value;
17
+ return _react["default"].createElement("div", {
18
+ className: "card__score"
19
+ }, _react["default"].createElement("p", {
20
+ className: "card__score-label"
21
+ }, label), _react["default"].createElement("p", {
22
+ className: "card__score-value"
23
+ }, value));
24
+ };
25
+
26
+ var Scores = function Scores(props) {
27
+ var scores = props.scores;
28
+ return _react["default"].createElement("div", {
29
+ className: "card__scores"
30
+ }, scores.map(function (score) {
31
+ return _react["default"].createElement(ScorePanel, (0, _extends2["default"])({
32
+ key: score.id
33
+ }, score));
34
+ }));
35
+ };
36
+
37
+ var _default = Scores;
38
+ exports["default"] = _default;
39
+ //# sourceMappingURL=Scores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Card/components/Scores.tsx"],"names":["ScorePanel","props","label","value","Scores","scores","map","score","id"],"mappings":";;;;;;;;;;;AAAA;;AAaA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,KAAD,EAA4C;AAAA,MACtDC,KADsD,GACrCD,KADqC,CACtDC,KADsD;AAAA,MAC/CC,KAD+C,GACrCF,KADqC,CAC/CE,KAD+C;AAE9D,SACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACC;AAAG,IAAA,SAAS,EAAC;AAAb,KAAkCD,KAAlC,CADD,EAEC;AAAG,IAAA,SAAS,EAAC;AAAb,KAAkCC,KAAlC,CAFD,CADD;AAMA,CARD;;AAcA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACH,KAAD,EAA6C;AAAA,MACnDI,MADmD,GACxCJ,KADwC,CACnDI,MADmD;AAE3D,SACC;AAAK,IAAA,SAAS,EAAC;AAAf,KACEA,MAAM,CAACC,GAAP,CAAW,UAAAC,KAAK;AAAA,WAChB,gCAAC,UAAD;AAAY,MAAA,GAAG,EAAEA,KAAK,CAACC;AAAvB,OAA+BD,KAA/B,EADgB;AAAA,GAAhB,CADF,CADD;AAOA,CATD;;eAWeH,M","sourcesContent":["import React from 'react'\n\ninterface IPanelProps {\n\t/** Unique id for looping. */\n\tid: string\n\n\t/** Description of the corresponding value. */\n\tlabel: string\n\n\t/** The value to display. */\n\tvalue: string\n}\n\nconst ScorePanel = (props: IPanelProps): React.ReactElement => {\n\tconst { label, value } = props\n\treturn (\n\t\t<div className=\"card__score\">\n\t\t\t<p className=\"card__score-label\">{label}</p>\n\t\t\t<p className=\"card__score-value\">{value}</p>\n\t\t</div>\n\t)\n}\n\ninterface IScoresProps {\n\tscores: IPanelProps[]\n}\n\nconst Scores = (props: IScoresProps): React.ReactElement => {\n\tconst { scores } = props\n\treturn (\n\t\t<div className=\"card__scores\">\n\t\t\t{scores.map(score => (\n\t\t\t\t<ScorePanel key={score.id} {...score} />\n\t\t\t))}\n\t\t</div>\n\t)\n}\n\nexport default Scores\n"],"file":"Scores.js"}
@@ -0,0 +1,11 @@
1
+ export { default as Card, ICardProps } from './Card';
2
+ import Card from './Card';
3
+ export default Card;
4
+ export { default as CardHeader, ICardHeaderProps } from './components/CardHeader';
5
+ export { default as CardBody, ICardBodyProps } from './components/CardBody';
6
+ export { default as CardSection, ICardSectionProps } from './components/CardSection';
7
+ export { default as CardFooter, ICardFooterProps } from './components/CardFooter';
8
+ export { default as CardBuilder, ICardBuilderProps } from './components/CardBuilder';
9
+ export { default as OnboardingCard, IOnboardingCardProps } from './components/OnboardingCard';
10
+ export { default as Scores } from './components/Scores';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACpD,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,eAAe,IAAI,CAAA;AAEnB,OAAO,EACN,OAAO,IAAI,UAAU,EACrB,gBAAgB,EAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,EACN,OAAO,IAAI,WAAW,EACtB,iBAAiB,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,OAAO,IAAI,UAAU,EACrB,gBAAgB,EAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACN,OAAO,IAAI,WAAW,EACtB,iBAAiB,EACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACN,OAAO,IAAI,cAAc,EACzB,oBAAoB,EACpB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ Object.defineProperty(exports, "Card", {
11
+ enumerable: true,
12
+ get: function get() {
13
+ return _Card["default"];
14
+ }
15
+ });
16
+ Object.defineProperty(exports, "ICardProps", {
17
+ enumerable: true,
18
+ get: function get() {
19
+ return _Card.ICardProps;
20
+ }
21
+ });
22
+ Object.defineProperty(exports, "CardHeader", {
23
+ enumerable: true,
24
+ get: function get() {
25
+ return _CardHeader["default"];
26
+ }
27
+ });
28
+ Object.defineProperty(exports, "ICardHeaderProps", {
29
+ enumerable: true,
30
+ get: function get() {
31
+ return _CardHeader.ICardHeaderProps;
32
+ }
33
+ });
34
+ Object.defineProperty(exports, "CardBody", {
35
+ enumerable: true,
36
+ get: function get() {
37
+ return _CardBody["default"];
38
+ }
39
+ });
40
+ Object.defineProperty(exports, "ICardBodyProps", {
41
+ enumerable: true,
42
+ get: function get() {
43
+ return _CardBody.ICardBodyProps;
44
+ }
45
+ });
46
+ Object.defineProperty(exports, "CardSection", {
47
+ enumerable: true,
48
+ get: function get() {
49
+ return _CardSection["default"];
50
+ }
51
+ });
52
+ Object.defineProperty(exports, "ICardSectionProps", {
53
+ enumerable: true,
54
+ get: function get() {
55
+ return _CardSection.ICardSectionProps;
56
+ }
57
+ });
58
+ Object.defineProperty(exports, "CardFooter", {
59
+ enumerable: true,
60
+ get: function get() {
61
+ return _CardFooter["default"];
62
+ }
63
+ });
64
+ Object.defineProperty(exports, "ICardFooterProps", {
65
+ enumerable: true,
66
+ get: function get() {
67
+ return _CardFooter.ICardFooterProps;
68
+ }
69
+ });
70
+ Object.defineProperty(exports, "CardBuilder", {
71
+ enumerable: true,
72
+ get: function get() {
73
+ return _CardBuilder["default"];
74
+ }
75
+ });
76
+ Object.defineProperty(exports, "ICardBuilderProps", {
77
+ enumerable: true,
78
+ get: function get() {
79
+ return _CardBuilder.ICardBuilderProps;
80
+ }
81
+ });
82
+ Object.defineProperty(exports, "OnboardingCard", {
83
+ enumerable: true,
84
+ get: function get() {
85
+ return _OnboardingCard["default"];
86
+ }
87
+ });
88
+ Object.defineProperty(exports, "IOnboardingCardProps", {
89
+ enumerable: true,
90
+ get: function get() {
91
+ return _OnboardingCard.IOnboardingCardProps;
92
+ }
93
+ });
94
+ Object.defineProperty(exports, "Scores", {
95
+ enumerable: true,
96
+ get: function get() {
97
+ return _Scores["default"];
98
+ }
99
+ });
100
+ exports["default"] = void 0;
101
+
102
+ var _Card = _interopRequireWildcard(require("./Card"));
103
+
104
+ var _CardHeader = _interopRequireWildcard(require("./components/CardHeader"));
105
+
106
+ var _CardBody = _interopRequireWildcard(require("./components/CardBody"));
107
+
108
+ var _CardSection = _interopRequireWildcard(require("./components/CardSection"));
109
+
110
+ var _CardFooter = _interopRequireWildcard(require("./components/CardFooter"));
111
+
112
+ var _CardBuilder = _interopRequireWildcard(require("./components/CardBuilder"));
113
+
114
+ var _OnboardingCard = _interopRequireWildcard(require("./components/OnboardingCard"));
115
+
116
+ var _Scores = _interopRequireDefault(require("./components/Scores"));
117
+
118
+ var _default = _Card["default"];
119
+ exports["default"] = _default;
120
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Card/index.tsx"],"names":["Card"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAIA;;AAIA;;AACA;;AAIA;;AAIA;;AAIA;;AAIA;;eAvBeA,gB","sourcesContent":["export { default as Card, ICardProps } from './Card'\nimport Card from './Card'\nexport default Card\n\nexport {\n\tdefault as CardHeader,\n\tICardHeaderProps\n} from './components/CardHeader'\nexport { default as CardBody, ICardBodyProps } from './components/CardBody'\nexport {\n\tdefault as CardSection,\n\tICardSectionProps\n} from './components/CardSection'\nexport {\n\tdefault as CardFooter,\n\tICardFooterProps\n} from './components/CardFooter'\nexport {\n\tdefault as CardBuilder,\n\tICardBuilderProps\n} from './components/CardBuilder'\nexport {\n\tdefault as OnboardingCard,\n\tIOnboardingCardProps\n} from './components/OnboardingCard'\nexport { default as Scores } from './components/Scores'\n"],"file":"index.js"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CircleLoader-story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircleLoader-story.d.ts","sourceRoot":"","sources":["../../../src/components/CircleLoader/CircleLoader-story.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _react2 = require("@storybook/react");
8
+
9
+ var _addonKnobs = require("@storybook/addon-knobs");
10
+
11
+ var _CircleLoader = _interopRequireDefault(require("./CircleLoader"));
12
+
13
+ var stories = (0, _react2.storiesOf)('CircleLoader', module);
14
+ stories.addDecorator(_addonKnobs.withKnobs);
15
+ stories.add('CircleLoader', function () {
16
+ return _react["default"].createElement(_CircleLoader["default"], {
17
+ light: (0, _addonKnobs["boolean"])('light', false)
18
+ });
19
+ });
20
+ //# sourceMappingURL=CircleLoader-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CircleLoader/CircleLoader-story.tsx"],"names":["stories","module","addDecorator","withKnobs","add"],"mappings":";;;;AAAA;;AACA;;AACA;;AAEA;;AAEA,IAAMA,OAAO,GAAG,uBAAU,cAAV,EAA0BC,MAA1B,CAAhB;AAEAD,OAAO,CAACE,YAAR,CAAqBC,qBAArB;AAEAH,OAAO,CAACI,GAAR,CAAY,cAAZ,EAA4B;AAAA,SAC3B,gCAAC,wBAAD;AAAc,IAAA,KAAK,EAAE,4BAAQ,OAAR,EAAiB,KAAjB;AAArB,IAD2B;AAAA,CAA5B","sourcesContent":["import React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, boolean } from '@storybook/addon-knobs'\n\nimport CircleLoader from './CircleLoader'\n\nconst stories = storiesOf('CircleLoader', module)\n\nstories.addDecorator(withKnobs)\n\nstories.add('CircleLoader', () => (\n\t<CircleLoader light={boolean('light', false)} />\n))\n"],"file":"CircleLoader-story.js"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface ICircleLoaderProps {
3
+ /** Optional; makes the loader white instead of primary color */
4
+ light?: boolean;
5
+ }
6
+ declare const CircleLoader: {
7
+ (props: ICircleLoaderProps): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
8
+ defaultProps: {
9
+ light: boolean;
10
+ };
11
+ };
12
+ export default CircleLoader;
13
+ //# sourceMappingURL=CircleLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircleLoader.d.ts","sourceRoot":"","sources":["../../../src/components/CircleLoader/CircleLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,kBAAkB;IAClC,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAA;CACf;AAED,QAAA,MAAM,YAAY;;;;;CAWjB,CAAA;AAMD,eAAe,YAAY,CAAA"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var CircleLoader = function CircleLoader(props) {
15
+ var light = props.light;
16
+ return _react["default"].createElement("div", {
17
+ className: (0, _classnames["default"])('circle-loader', {
18
+ 'circle-loader--light': light
19
+ })
20
+ }, _react["default"].createElement("div", null));
21
+ };
22
+
23
+ CircleLoader.defaultProps = {
24
+ light: false
25
+ };
26
+ var _default = CircleLoader;
27
+ exports["default"] = _default;
28
+ //# sourceMappingURL=CircleLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CircleLoader/CircleLoader.tsx"],"names":["CircleLoader","props","light","defaultProps"],"mappings":";;;;;;;;;AAAA;;AACA;;AAOA,IAAMA,YAAY,GAAG,SAAfA,YAAe,CAACC,KAAD,EAAmD;AAAA,MAC/DC,KAD+D,GACrDD,KADqD,CAC/DC,KAD+D;AAEvE,SACC;AACC,IAAA,SAAS,EAAE,4BAAG,eAAH,EAAoB;AAC9B,8BAAwBA;AADM,KAApB;AADZ,KAKC,4CALD,CADD;AASA,CAXD;;AAaAF,YAAY,CAACG,YAAb,GAA4B;AAC3BD,EAAAA,KAAK,EAAE;AADoB,CAA5B;eAIeF,Y","sourcesContent":["import React from 'react'\nimport cx from 'classnames'\n\nexport interface ICircleLoaderProps {\n\t/** Optional; makes the loader white instead of primary color */\n\tlight?: boolean\n}\n\nconst CircleLoader = (props: ICircleLoaderProps): React.ReactElement => {\n\tconst { light } = props\n\treturn (\n\t\t<div\n\t\t\tclassName={cx('circle-loader', {\n\t\t\t\t'circle-loader--light': light\n\t\t\t})}\n\t\t>\n\t\t\t<div />\n\t\t</div>\n\t)\n}\n\nCircleLoader.defaultProps = {\n\tlight: false\n}\n\nexport default CircleLoader\n"],"file":"CircleLoader.js"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _react2 = require("@storybook/react");
8
+
9
+ var _react3 = require("@storybook/addon-knobs/react");
10
+
11
+ var _ContextMenu = _interopRequireDefault(require("./ContextMenu"));
12
+
13
+ var stories = (0, _react2.storiesOf)('Context Menu', module);
14
+ stories.addDecorator(_react3.withKnobs);
15
+ stories.add('Example', function () {
16
+ return _react["default"].createElement(_ContextMenu["default"], {
17
+ actions: (0, _react3.object)('actions', [{
18
+ text: 'Rebook'
19
+ }, {
20
+ text: 'Cancel appointment'
21
+ }, {
22
+ text: 'Ask for feedback'
23
+ }]),
24
+ isRightAligned: (0, _react3["boolean"])('isRightAligned', false),
25
+ isBottomAligned: (0, _react3["boolean"])('isBottomAligned', false),
26
+ size: (0, _react3.text)('size', 'large'),
27
+ isSimple: (0, _react3["boolean"])('isSimple', false),
28
+ isSmall: (0, _react3["boolean"])('isSmall', false)
29
+ });
30
+ });
31
+ //# sourceMappingURL=ContextMenu-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/ContextMenu/ContextMenu-story.js"],"names":["stories","module","addDecorator","withKnobs","add","text"],"mappings":";;;;AAAA;;AACA;;AACA;;AACA;;AAEA,IAAMA,OAAO,GAAG,uBAAU,cAAV,EAA0BC,MAA1B,CAAhB;AAEAD,OAAO,CAACE,YAAR,CAAqBC,iBAArB;AAEAH,OAAO,CAACI,GAAR,CAAY,SAAZ,EAAuB;AAAA,SACtB,gCAAC,uBAAD;AACC,IAAA,OAAO,EAAE,oBAAO,SAAP,EAAkB,CAC1B;AAAEC,MAAAA,IAAI,EAAE;AAAR,KAD0B,EAE1B;AAAEA,MAAAA,IAAI,EAAE;AAAR,KAF0B,EAG1B;AAAEA,MAAAA,IAAI,EAAE;AAAR,KAH0B,CAAlB,CADV;AAMC,IAAA,cAAc,EAAE,wBAAQ,gBAAR,EAA0B,KAA1B,CANjB;AAOC,IAAA,eAAe,EAAE,wBAAQ,iBAAR,EAA2B,KAA3B,CAPlB;AAQC,IAAA,IAAI,EAAE,kBAAK,MAAL,EAAa,OAAb,CARP;AASC,IAAA,QAAQ,EAAE,wBAAQ,UAAR,EAAoB,KAApB,CATX;AAUC,IAAA,OAAO,EAAE,wBAAQ,SAAR,EAAmB,KAAnB;AAVV,IADsB;AAAA,CAAvB","sourcesContent":["import React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, object, boolean, text } from '@storybook/addon-knobs/react'\nimport ContextMenu from './ContextMenu'\n\nconst stories = storiesOf('Context Menu', module)\n\nstories.addDecorator(withKnobs)\n\nstories.add('Example', () => (\n\t<ContextMenu\n\t\tactions={object('actions', [\n\t\t\t{ text: 'Rebook' },\n\t\t\t{ text: 'Cancel appointment' },\n\t\t\t{ text: 'Ask for feedback' }\n\t\t])}\n\t\tisRightAligned={boolean('isRightAligned', false)}\n\t\tisBottomAligned={boolean('isBottomAligned', false)}\n\t\tsize={text('size', 'large')}\n\t\tisSimple={boolean('isSimple', false)}\n\t\tisSmall={boolean('isSmall', false)}\n\t/>\n))\n"],"file":"ContextMenu-story.js"}
@@ -0,0 +1,70 @@
1
+ /// <reference types="lodash" />
2
+ import { IHWAction, IHWContextMenu } from '@sprucelabs/spruce-types';
3
+ import React, { Component } from 'react';
4
+ import { IButtonProps } from '../Button/Button';
5
+ import { IIconProps } from '../Icon/Icon';
6
+ export interface IContextMenuProps extends Omit<IHWContextMenu, 'actions' | 'icon'> {
7
+ /** The actions to be shown on tap/click */
8
+ actions: IButtonProps[];
9
+ /** DEPRECATED Set true to left align the menu */
10
+ isLeftAligned?: boolean;
11
+ /** DEPRECATED Set true to right align the menu */
12
+ isRightAligned?: boolean;
13
+ /** DEPRECATED Set true to align menu above button */
14
+ isBottomAligned?: boolean;
15
+ /** Overrides the default icon */
16
+ icon?: IIconProps | null;
17
+ /** Optional classname that applies to the button */
18
+ className?: string;
19
+ onToggleContextMenuVisible?: Function;
20
+ /** optional, provide a handler for Actions */
21
+ onAction?: (action: IHWAction) => any;
22
+ }
23
+ interface IContextMenuState {
24
+ /** Show the menu */
25
+ isVisible: boolean;
26
+ /** Where the menu should be positioned when visible */
27
+ menuPosition: {
28
+ top: number | null;
29
+ left: number | null;
30
+ };
31
+ overflowBottom: boolean;
32
+ overflowLeft: boolean;
33
+ }
34
+ export default class ContextMenu extends Component<IContextMenuProps | IHWContextMenu, IContextMenuState> {
35
+ static defaultProps: {
36
+ isRightAligned: boolean;
37
+ isBottomAligned: boolean;
38
+ isTextOnly: boolean;
39
+ isSmall: boolean;
40
+ className: string;
41
+ };
42
+ ref: React.RefObject<HTMLDivElement>;
43
+ menuRef: React.RefObject<HTMLDivElement>;
44
+ portalEl?: HTMLElement;
45
+ debouncedWindowResize: (() => void) & import("lodash").Cancelable;
46
+ state: {
47
+ isVisible: boolean;
48
+ overflowBottom: boolean;
49
+ overflowLeft: boolean;
50
+ menuPosition: {
51
+ top: null;
52
+ left: null;
53
+ };
54
+ };
55
+ constructor(props: IContextMenuProps);
56
+ componentDidMount: () => void;
57
+ componentWillUnmount: () => void;
58
+ handleWindowResize: () => void;
59
+ getTriggerPlacement: () => DOMRect | null;
60
+ getMenuPlacement: () => void;
61
+ updateMenuPlacement: () => void;
62
+ handleClickOutside: () => void;
63
+ handleEscape: (e: any) => void;
64
+ handleToggle: () => void;
65
+ manageListeners: () => void;
66
+ handleClickAction: (payload: any, callback: any) => void;
67
+ render(): React.ReactElement;
68
+ }
69
+ export {};
70
+ //# sourceMappingURL=ContextMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EACN,SAAS,EAET,cAAc,EACd,MAAM,0BAA0B,CAAA;AAGjC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGxC,OAAe,EAAe,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,iBAChB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,MAAM,CAAC;IAChD,2CAA2C;IAC3C,OAAO,EAAE,YAAY,EAAE,CAAA;IAEvB,iDAAiD;IACjD,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB,kDAAkD;IAClD,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB,qDAAqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB,iCAAiC;IACjC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IAExB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,0BAA0B,CAAC,EAAE,QAAQ,CAAA;IAErC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,GAAG,CAAA;CACrC;AAED,UAAU,iBAAiB;IAC1B,oBAAoB;IACpB,SAAS,EAAE,OAAO,CAAA;IAElB,uDAAuD;IACvD,YAAY,EAAE;QACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;QAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KACnB,CAAA;IAED,cAAc,EAAE,OAAO,CAAA;IACvB,YAAY,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CACjD,iBAAiB,GAAG,cAAc,EAClC,iBAAiB,CACjB;IACA,OAAc,YAAY;;;;;;MAMzB;IAEM,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAoB;IACxD,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAoB;IAC5D,QAAQ,CAAC,EAAE,WAAW,CAAA;IAEtB,qBAAqB,6CAAiD;IACtE,KAAK;;;;;;;;MAQX;gBAEkB,KAAK,EAAE,iBAAiB;IASpC,iBAAiB,aAKvB;IAEM,oBAAoB,aAQ1B;IAEM,kBAAkB,aAKxB;IAEM,mBAAmB,uBASzB;IAEM,gBAAgB,aAqBtB;IAEM,mBAAmB,aAoDzB;IAEM,kBAAkB,aAOxB;IAEM,YAAY,mBASlB;IAEM,YAAY,aAmBlB;IAEM,eAAe,aAUrB;IAEM,iBAAiB,wCAKvB;IAEM,MAAM,IAAI,KAAK,CAAC,YAAY;CA2EnC"}