@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,389 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
+
7
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
+
9
+ var _react = _interopRequireWildcard(require("react"));
10
+
11
+ var _react2 = require("@storybook/react");
12
+
13
+ var _addonKnobs = require("@storybook/addon-knobs");
14
+
15
+ var _onboarding = require("../../../.storybook/data/onboarding");
16
+
17
+ var _people = require("../../../.storybook/data/people");
18
+
19
+ var _index = require("./index");
20
+
21
+ var _List = _interopRequireDefault(require("../List/List"));
22
+
23
+ var _TextContainer = _interopRequireDefault(require("../TextContainer/TextContainer"));
24
+
25
+ var _Page = _interopRequireWildcard(require("../Page"));
26
+
27
+ var _Layout = _interopRequireWildcard(require("../Layout"));
28
+
29
+ var _Text = _interopRequireDefault(require("../Text/Text"));
30
+
31
+ var _Subheading = _interopRequireDefault(require("../Subheading/Subheading"));
32
+
33
+ var _Image = _interopRequireDefault(require("../Image/Image"));
34
+
35
+ var _Button = _interopRequireWildcard(require("../Button/Button"));
36
+
37
+ var _Avatar = _interopRequireDefault(require("../Avatar/Avatar"));
38
+
39
+ var _user0196w = _interopRequireDefault(require("../../../static/assets/users/user-01--96w.png"));
40
+
41
+ var _spruceTypes = require("@sprucelabs/spruce-types");
42
+
43
+ var LockIcon2 = function LockIcon2(props) {
44
+ return _react["default"].createElement("svg", props, _react["default"].createElement("path", {
45
+ clipRule: "evenodd",
46
+ d: "M2.5 9A1.5 1.5 0 0 1 4 7.5h8A1.5 1.5 0 0 1 13.5 9v6a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 15V9z",
47
+ strokeWidth: "1.5",
48
+ strokeLinecap: "round",
49
+ strokeLinejoin: "round"
50
+ }), _react["default"].createElement("path", {
51
+ d: "M4.5 7.5V5a3.5 3.5 0 1 1 7 0v2.5",
52
+ strokeWidth: "1.5",
53
+ strokeLinecap: "round",
54
+ strokeLinejoin: "round"
55
+ }), _react["default"].createElement("path", {
56
+ clipRule: "evenodd",
57
+ d: "M8 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",
58
+ strokeWidth: "1.5",
59
+ strokeLinecap: "round",
60
+ strokeLinejoin: "round"
61
+ }));
62
+ };
63
+
64
+ LockIcon2.defaultProps = {
65
+ className: "card-header__label-icon",
66
+ xmlns: "http://www.w3.org/2000/svg",
67
+ width: "16",
68
+ height: "18",
69
+ viewBox: "0 0 16 18"
70
+ };
71
+
72
+ var AlertIcon3 = function AlertIcon3(props) {
73
+ return _react["default"].createElement("svg", props, _react["default"].createElement("path", {
74
+ fillRule: "evenodd",
75
+ clipRule: "evenodd",
76
+ d: "M15.413 13.333L9.18 1.433a1.333 1.333 0 0 0-2.362 0l-6.232 11.9a1.333 1.333 0 0 0 1.182 1.952H14.23a1.333 1.333 0 0 0 1.182-1.952zm-8.08-7.718a.667.667 0 0 1 1.334 0v4a.667.667 0 1 1-1.334 0v-4zm.682 7.674h.018A.984.984 0 0 0 9 12.267a1.018 1.018 0 0 0-1.016-.978h-.019A.984.984 0 0 0 7 12.309c.02.546.468.978 1.015.98z"
77
+ }));
78
+ };
79
+
80
+ AlertIcon3.defaultProps = {
81
+ width: "16",
82
+ height: "16",
83
+ viewBox: "0 0 16 16",
84
+ xmlns: "http://www.w3.org/2000/svg"
85
+ };
86
+ var cardJSON = {
87
+ header: {
88
+ title: 'Introducing the Card Builder! (Note: WIP)',
89
+ labelText: '',
90
+ actions: [{
91
+ type: _spruceTypes.IHWButtonTypes.Button,
92
+ text: 'More Info',
93
+ href: '#',
94
+ target: '_blank',
95
+ isSmall: true
96
+ }]
97
+ },
98
+ body: {
99
+ items: [{
100
+ type: _spruceTypes.IHWCardBuilderBodyItemType.Text,
101
+ viewModel: {
102
+ id: 'first',
103
+ text: "The Card Builder enables Skill devs to build cards using JSON. It should not be used for core cards."
104
+ }
105
+ }]
106
+ },
107
+ footer: {
108
+ buttonGroup: {
109
+ actions: [{
110
+ type: _spruceTypes.IHWButtonTypes.Button,
111
+ text: 'Do things',
112
+ kind: _Button.ButtonKinds.Secondary,
113
+ isSmall: true
114
+ }]
115
+ }
116
+ }
117
+ };
118
+ var cardJSON2 = {
119
+ header: {
120
+ title: 'Your sales for today!'
121
+ },
122
+ body: {
123
+ items: [{
124
+ type: _spruceTypes.IHWCardBuilderBodyItemType.Text,
125
+ viewModel: {
126
+ id: 'first',
127
+ text: 'This is your typical score card'
128
+ }
129
+ }, {
130
+ type: _spruceTypes.IHWCardBuilderBodyItemType.ScoreCard,
131
+ viewModel: {
132
+ scores: [{
133
+ id: '1',
134
+ label: 'Today',
135
+ value: '$1,848'
136
+ }, {
137
+ id: '2',
138
+ label: 'This Week',
139
+ value: '$5,778'
140
+ }, {
141
+ id: '3',
142
+ label: 'This Month',
143
+ value: '$25,068'
144
+ }]
145
+ }
146
+ }]
147
+ }
148
+ };
149
+ var cardJSON3 = {
150
+ onboarding: {
151
+ title: 'Setup your first skill!',
152
+ steps: [{
153
+ id: '1',
154
+ isComplete: true,
155
+ tabTitle: 'Add your first location',
156
+ panelTitle: 'It is time to add your location.',
157
+ panelCopy: "It's going to be so great, you know it!"
158
+ }, {
159
+ id: '2',
160
+ tabTitle: 'Set up your team',
161
+ tabIcon: {
162
+ name: 'location',
163
+ isLineIcon: true
164
+ },
165
+ panelTitle: 'Team setup is the best',
166
+ panelCopy: 'Teammwork makes the dream work!'
167
+ }, {
168
+ id: '3',
169
+ tabIcon: {
170
+ name: 'launch',
171
+ isLineIcon: true
172
+ },
173
+ tabTitle: 'Go live',
174
+ panelTitle: "You're ready to go live!",
175
+ panelCopy: 'Do it! Do it!'
176
+ }]
177
+ }
178
+ };
179
+ var cardJSON4 = {
180
+ header: {
181
+ labelText: 'The last example!'
182
+ },
183
+ body: {
184
+ items: [{
185
+ type: _spruceTypes.IHWCardBuilderBodyItemType.List,
186
+ viewModel: {
187
+ header: {
188
+ title: 'This is a list!'
189
+ },
190
+ items: [{
191
+ id: 'number_one',
192
+ title: 'This is so cool!',
193
+ subtitle: 'For sure!',
194
+ icon: {
195
+ name: 'complete',
196
+ isLineIcon: true
197
+ }
198
+ }, {
199
+ id: 'number_two',
200
+ title: 'Takes all the props a List can take!',
201
+ icon: {
202
+ name: 'complete',
203
+ isLineIcon: true
204
+ }
205
+ }]
206
+ }
207
+ }, {
208
+ type: _spruceTypes.IHWCardBuilderBodyItemType.Text,
209
+ viewModel: {
210
+ text: 'Following up with text component!'
211
+ }
212
+ }]
213
+ },
214
+ footer: {
215
+ buttonGroup: {
216
+ actions: [{
217
+ type: _spruceTypes.IHWButtonTypes.Button,
218
+ text: 'Do things',
219
+ kind: _Button.ButtonKinds.Secondary,
220
+ isSmall: true
221
+ }]
222
+ }
223
+ }
224
+ };
225
+ var cardJSON5 = {
226
+ header: {
227
+ title: 'Danger Zone'
228
+ },
229
+ footer: {
230
+ buttonGroup: {
231
+ actions: [{
232
+ type: _spruceTypes.IHWButtonTypes.Button,
233
+ text: 'Delete this thing forever',
234
+ icon: {
235
+ name: 'remove'
236
+ },
237
+ kind: _Button.ButtonKinds.Caution,
238
+ isSmall: true,
239
+ onClick: function onClick() {}
240
+ }]
241
+ },
242
+ helper: 'This is a permanant thing you are doing, be sure you want to do the thing'
243
+ }
244
+ };
245
+ var stories = (0, _react2.storiesOf)('Card', module); // stories.addDecorator(
246
+ // withKnobsOptions({
247
+ // escapeHTML: false
248
+ // })
249
+ // )
250
+
251
+ stories.addDecorator(function (story) {
252
+ return _react["default"].createElement(_Page["default"], null, _react["default"].createElement(_Page.PageContent, null, _react["default"].createElement(_Layout["default"], null, _react["default"].createElement(_Layout.LayoutSection, null, story()))));
253
+ });
254
+ stories.addDecorator(_addonKnobs.withKnobs);
255
+ stories.add('Critical Card', function () {
256
+ return _react["default"].createElement(_index.Card, {
257
+ isCritical: true
258
+ }, _react["default"].createElement(_index.Card.Header, {
259
+ title: (0, _addonKnobs.text)('title', 'Please update your credit card'),
260
+ labelText: (0, _addonKnobs.text)('labelText', 'Billing failure'),
261
+ labelIcon: {
262
+ customIcon: AlertIcon3,
263
+ isLineIcon: false
264
+ }
265
+ }), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement(_Text["default"], null, "Two roads diverged in a wood, and I took the one less traveled by, And that has made all the difference.")), _react["default"].createElement(_index.Card.Footer, null, _react["default"].createElement(_Button["default"], {
266
+ kind: _Button.ButtonKinds.Secondary,
267
+ text: "Update credit card"
268
+ })));
269
+ }).add('Score Card', function () {
270
+ return _react["default"].createElement(_index.Card, null, _react["default"].createElement(_index.Card.Header, {
271
+ title: (0, _addonKnobs.text)('title', 'Value of future appointments'),
272
+ actions: (0, _addonKnobs.object)('actions', [{
273
+ text: 'Go to reports'
274
+ }])
275
+ }), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement(_Text["default"], null, "Two roads diverged in a wood, and I took the one less traveled by, And that has made all the difference."), _react["default"].createElement(_index.Scores, {
276
+ scores: (0, _addonKnobs.object)('scores', [{
277
+ id: '1',
278
+ label: 'Today',
279
+ value: '$1,848'
280
+ }, {
281
+ id: '2',
282
+ label: 'This Week',
283
+ value: '$5,778'
284
+ }, {
285
+ id: '3',
286
+ label: 'This Month',
287
+ value: '$25,068'
288
+ }])
289
+ })));
290
+ }).add('People Card', function () {
291
+ return _react["default"].createElement(_index.Card, null, _react["default"].createElement(_index.Card.Header, {
292
+ title: (0, _addonKnobs.text)('title', 'Your upcoming appointments'),
293
+ actions: (0, _addonKnobs.object)('actions', [{
294
+ text: 'View in calendar'
295
+ }])
296
+ }), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement(_List["default"], {
297
+ items: _people.userList
298
+ }), _react["default"].createElement("a", {
299
+ href: "#",
300
+ style: {
301
+ display: 'block'
302
+ }
303
+ }, "+3 more today")));
304
+ }).add('Person Card', function () {
305
+ return _react["default"].createElement(_index.Card, {
306
+ isCentered: true
307
+ }, _react["default"].createElement(_index.Card.Header, null), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement(_Avatar["default"], {
308
+ isLarge: true,
309
+ image: (0, _addonKnobs.text)('Avatar Image', _user0196w["default"]),
310
+ alt: "Rosamund Mueleer"
311
+ }), _react["default"].createElement(_TextContainer["default"], {
312
+ spacing: "tight"
313
+ }, _react["default"].createElement(_Subheading["default"], {
314
+ className: "card-header__title",
315
+ element: "h3"
316
+ }, "Say \"Happy Birthday\""), _react["default"].createElement(_Text["default"], null, "It\u2019s Rosamond Mueller\u2019s birthday today. Don\u2019t forget to say happy birthday!"))), _react["default"].createElement(_index.Card.Footer, null, _react["default"].createElement(_Button["default"], {
317
+ kind: _Button.ButtonKinds.Secondary,
318
+ text: "Send a birthday message",
319
+ isSmall: true
320
+ })));
321
+ }).add('Place Card', function () {
322
+ return _react["default"].createElement(_index.Card, null, _react["default"].createElement(_Image["default"], {
323
+ id: "header",
324
+ src: "https://images.unsplash.com/photo-1535401991746-da3d9055713e?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=9fa1c73c0d29848a6e63595c588051ad&auto=format&fit=crop&w=720&h=360&q=80",
325
+ width: 720,
326
+ height: 360
327
+ }), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement("h3", null, "Les Basics"), _react["default"].createElement(_Text["default"], null, "101 Purdy Lakes, West Jordanmouth, NH 38827-6100")), _react["default"].createElement(_index.Card.Footer, null, _react["default"].createElement(_Button["default"], {
328
+ kind: _Button.ButtonKinds.Secondary,
329
+ text: "Book an appointment"
330
+ })));
331
+ }).add('Celebration Card', function () {
332
+ return _react["default"].createElement(_index.Card, {
333
+ isCentered: true
334
+ }, _react["default"].createElement(_Image["default"], {
335
+ src: "https://images.unsplash.com/photo-1499306215218-42e51ae058b2?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=6a6ae71facb70ced00bcbae8174ee47c&auto=format&fit=crop&w=720&h=360&q=80",
336
+ width: 720,
337
+ height: 360
338
+ }), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement("h3", null, "Congrats on 10k guests!"), _react["default"].createElement(_Text["default"], null, "I\u2019ve learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel.")));
339
+ }).add('To Do', function () {
340
+ return _react["default"].createElement(_index.Card, null, _react["default"].createElement(_index.Card.Header, {
341
+ labelText: (0, _addonKnobs.text)('Label Text', ''),
342
+ labelIcon: (0, _addonKnobs["boolean"])('Label Icon', false) ? {
343
+ customIcon: LockIcon2,
344
+ isLineIcon: true
345
+ } : undefined,
346
+ title: (0, _addonKnobs.text)('Title', 'Get the most out of Spruce'),
347
+ actions: (0, _addonKnobs["boolean"])('Header Action', false) ? [{
348
+ kind: _Button.ButtonKinds.Simple,
349
+ text: 'Go to team',
350
+ isSmall: true
351
+ }] : undefined,
352
+ contextMenu: (0, _addonKnobs.object)('contextMenu', {
353
+ actions: [{
354
+ text: 'One'
355
+ }, {
356
+ text: 'Two'
357
+ }, {
358
+ text: 'Three'
359
+ }]
360
+ })
361
+ }), _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement(_Text["default"], null, (0, _addonKnobs.text)('Body Copy', 'Two roads diverged in a wood, and I took the one less traveled by, And that has made all the difference.'))), _react["default"].createElement(_index.Card.Footer, null, _react["default"].createElement(_Button["default"], {
362
+ kind: _Button.ButtonKinds.Secondary,
363
+ text: "Get some skills",
364
+ isSmall: true
365
+ })));
366
+ }).add('Onboarding Card', function () {
367
+ return _react["default"].createElement(_index.OnboardingCard, _onboarding.onboarding);
368
+ }).add('CardBuilder', function () {
369
+ return _react["default"].createElement(_react.Fragment, null, _react["default"].createElement(_index.CardBuilder, (0, _extends2["default"])({
370
+ key: "foo-0"
371
+ }, (0, _addonKnobs.object)('json', cardJSON))), _react["default"].createElement(_index.CardBuilder, (0, _extends2["default"])({
372
+ key: "foo-1"
373
+ }, (0, _addonKnobs.object)('json2', cardJSON2))), _react["default"].createElement(_index.CardBuilder, (0, _extends2["default"])({
374
+ key: "foo-2"
375
+ }, (0, _addonKnobs.object)('json3', cardJSON3))), _react["default"].createElement(_index.CardBuilder, (0, _extends2["default"])({
376
+ key: "foo-3"
377
+ }, (0, _addonKnobs.object)('json4', cardJSON4))), _react["default"].createElement(_index.CardBuilder, (0, _extends2["default"])({
378
+ key: "foo-4"
379
+ }, (0, _addonKnobs.object)('json5', cardJSON5))));
380
+ }).add('Expandable Card', function () {
381
+ return _react["default"].createElement(_index.Card, {
382
+ expandable: true,
383
+ headerProps: {
384
+ title: 'Hello'
385
+ },
386
+ defaultExpanded: false
387
+ }, _react["default"].createElement(_index.Card.Body, null, _react["default"].createElement("p", null, "Hello I am card content")));
388
+ });
389
+ //# sourceMappingURL=Card-story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Card/Card-story.tsx"],"names":["LockIcon2","AlertIcon3","cardJSON","header","title","labelText","actions","type","IHWButtonTypes","Button","text","href","target","isSmall","body","items","IHWCardBuilderBodyItemType","Text","viewModel","id","footer","buttonGroup","kind","ButtonKinds","Secondary","cardJSON2","ScoreCard","scores","label","value","cardJSON3","onboarding","steps","isComplete","tabTitle","panelTitle","panelCopy","tabIcon","name","isLineIcon","cardJSON4","List","subtitle","icon","cardJSON5","Caution","onClick","helper","stories","module","addDecorator","story","withKnobs","add","customIcon","userList","display","userImageLg","undefined","Simple"],"mappings":";;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAIA;;IAHOA,S,YAAAA,S;;;;;;;;;;;;;;;;;;;;;AAAAA,S;;;;;;;;IACAC,U,YAAAA,U;;;;;;;;AAAAA,U;;;;;;AAOP,IAAMC,QAA2B,GAAG;AACnCC,EAAAA,MAAM,EAAE;AACPC,IAAAA,KAAK,EAAE,2CADA;AAEPC,IAAAA,SAAS,EAAE,EAFJ;AAGPC,IAAAA,OAAO,EAAE,CACR;AACCC,MAAAA,IAAI,EAAEC,4BAAeC,MADtB;AAECC,MAAAA,IAAI,EAAE,WAFP;AAGCC,MAAAA,IAAI,EAAE,GAHP;AAICC,MAAAA,MAAM,EAAE,QAJT;AAKCC,MAAAA,OAAO,EAAE;AALV,KADQ;AAHF,GAD2B;AAcnCC,EAAAA,IAAI,EAAE;AACLC,IAAAA,KAAK,EAAE,CACN;AACCR,MAAAA,IAAI,EAAES,wCAA2BC,IADlC;AAECC,MAAAA,SAAS,EAAE;AACVC,QAAAA,EAAE,EAAE,OADM;AAEVT,QAAAA,IAAI;AAFM;AAFZ,KADM;AADF,GAd6B;AAyBnCU,EAAAA,MAAM,EAAE;AACPC,IAAAA,WAAW,EAAE;AACZf,MAAAA,OAAO,EAAE,CACR;AACCC,QAAAA,IAAI,EAAEC,4BAAeC,MADtB;AAECC,QAAAA,IAAI,EAAE,WAFP;AAGCY,QAAAA,IAAI,EAAEC,oBAAYC,SAHnB;AAICX,QAAAA,OAAO,EAAE;AAJV,OADQ;AADG;AADN;AAzB2B,CAApC;AAuCA,IAAM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","sourcesContent":["import React, { Fragment } from 'react'\nimport { storiesOf } from '@storybook/react'\nimport { withKnobs, text, boolean, object } from '@storybook/addon-knobs'\nimport { onboarding } from '../../../.storybook/data/onboarding'\nimport { userList } from '../../../.storybook/data/people'\nimport { Card, CardBuilder, OnboardingCard } from './index'\nimport List from '../List/List'\nimport TextContainer from '../TextContainer/TextContainer'\nimport Page, { PageContent } from '../Page'\nimport Layout, { LayoutSection } from '../Layout'\nimport Text from '../Text/Text'\nimport Subheading from '../Subheading/Subheading'\nimport Image from '../Image/Image'\nimport { Scores } from './index'\nimport Button, { ButtonKinds } from '../Button/Button'\nimport Avatar from '../Avatar/Avatar'\nimport userImageLg from '../../../static/assets/users/user-01--96w.png'\nimport LockIcon2 from '../../../static/assets/icons/Interface-Essential/Lock/Unlock/lock-6--16w.svg'\nimport AlertIcon3 from '../../../static/assets/icons/Interface-Essential/Alerts/alert-triangle--16w.svg'\nimport { ICardBuilderProps } from './components/CardBuilder'\nimport {\n\tIHWButtonTypes,\n\tIHWCardBuilderBodyItemType\n} from '@sprucelabs/spruce-types'\n\nconst cardJSON: ICardBuilderProps = {\n\theader: {\n\t\ttitle: 'Introducing the Card Builder! (Note: WIP)',\n\t\tlabelText: '',\n\t\tactions: [\n\t\t\t{\n\t\t\t\ttype: IHWButtonTypes.Button,\n\t\t\t\ttext: 'More Info',\n\t\t\t\thref: '#',\n\t\t\t\ttarget: '_blank',\n\t\t\t\tisSmall: true\n\t\t\t}\n\t\t]\n\t},\n\tbody: {\n\t\titems: [\n\t\t\t{\n\t\t\t\ttype: IHWCardBuilderBodyItemType.Text,\n\t\t\t\tviewModel: {\n\t\t\t\t\tid: 'first',\n\t\t\t\t\ttext: `The Card Builder enables Skill devs to build cards using JSON. It should not be used for core cards.`\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\tfooter: {\n\t\tbuttonGroup: {\n\t\t\tactions: [\n\t\t\t\t{\n\t\t\t\t\ttype: IHWButtonTypes.Button,\n\t\t\t\t\ttext: 'Do things',\n\t\t\t\t\tkind: ButtonKinds.Secondary,\n\t\t\t\t\tisSmall: true\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}\n\nconst cardJSON2: ICardBuilderProps = {\n\theader: {\n\t\ttitle: 'Your sales for today!'\n\t},\n\tbody: {\n\t\titems: [\n\t\t\t{\n\t\t\t\ttype: IHWCardBuilderBodyItemType.Text,\n\t\t\t\tviewModel: { id: 'first', text: 'This is your typical score card' }\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: IHWCardBuilderBodyItemType.ScoreCard,\n\t\t\t\tviewModel: {\n\t\t\t\t\tscores: [\n\t\t\t\t\t\t{ id: '1', label: 'Today', value: '$1,848' },\n\t\t\t\t\t\t{ id: '2', label: 'This Week', value: '$5,778' },\n\t\t\t\t\t\t{ id: '3', label: 'This Month', value: '$25,068' }\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}\nconst cardJSON3: ICardBuilderProps = {\n\tonboarding: {\n\t\ttitle: 'Setup your first skill!',\n\t\tsteps: [\n\t\t\t{\n\t\t\t\tid: '1',\n\t\t\t\tisComplete: true,\n\t\t\t\ttabTitle: 'Add your first location',\n\t\t\t\tpanelTitle: 'It is time to add your location.',\n\t\t\t\tpanelCopy: \"It's going to be so great, you know it!\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: '2',\n\t\t\t\ttabTitle: 'Set up your team',\n\t\t\t\ttabIcon: { name: 'location', isLineIcon: true },\n\t\t\t\tpanelTitle: 'Team setup is the best',\n\t\t\t\tpanelCopy: 'Teammwork makes the dream work!'\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: '3',\n\t\t\t\ttabIcon: { name: 'launch', isLineIcon: true },\n\t\t\t\ttabTitle: 'Go live',\n\t\t\t\tpanelTitle: \"You're ready to go live!\",\n\t\t\t\tpanelCopy: 'Do it! Do it!'\n\t\t\t}\n\t\t]\n\t}\n}\nconst cardJSON4: ICardBuilderProps = {\n\theader: {\n\t\tlabelText: 'The last example!'\n\t},\n\tbody: {\n\t\titems: [\n\t\t\t{\n\t\t\t\ttype: IHWCardBuilderBodyItemType.List,\n\t\t\t\tviewModel: {\n\t\t\t\t\theader: {\n\t\t\t\t\t\ttitle: 'This is a list!'\n\t\t\t\t\t},\n\t\t\t\t\titems: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: 'number_one',\n\t\t\t\t\t\t\ttitle: 'This is so cool!',\n\t\t\t\t\t\t\tsubtitle: 'For sure!',\n\t\t\t\t\t\t\ticon: { name: 'complete', isLineIcon: true }\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: 'number_two',\n\t\t\t\t\t\t\ttitle: 'Takes all the props a List can take!',\n\t\t\t\t\t\t\ticon: { name: 'complete', isLineIcon: true }\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: IHWCardBuilderBodyItemType.Text,\n\t\t\t\tviewModel: {\n\t\t\t\t\ttext: 'Following up with text component!'\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t},\n\tfooter: {\n\t\tbuttonGroup: {\n\t\t\tactions: [\n\t\t\t\t{\n\t\t\t\t\ttype: IHWButtonTypes.Button,\n\t\t\t\t\ttext: 'Do things',\n\t\t\t\t\tkind: ButtonKinds.Secondary,\n\t\t\t\t\tisSmall: true\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}\n\nconst cardJSON5: ICardBuilderProps = {\n\theader: {\n\t\ttitle: 'Danger Zone'\n\t},\n\tfooter: {\n\t\tbuttonGroup: {\n\t\t\tactions: [\n\t\t\t\t{\n\t\t\t\t\ttype: IHWButtonTypes.Button,\n\t\t\t\t\ttext: 'Delete this thing forever',\n\t\t\t\t\ticon: {\n\t\t\t\t\t\tname: 'remove'\n\t\t\t\t\t},\n\t\t\t\t\tkind: ButtonKinds.Caution,\n\t\t\t\t\tisSmall: true,\n\t\t\t\t\tonClick: () => {}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\thelper:\n\t\t\t'This is a permanant thing you are doing, be sure you want to do the thing'\n\t}\n}\n\nconst stories = storiesOf('Card', module)\n\n// stories.addDecorator(\n// \twithKnobsOptions({\n// \t\tescapeHTML: false\n// \t})\n// )\n\nstories.addDecorator(story => (\n\t<Page>\n\t\t<PageContent>\n\t\t\t<Layout>\n\t\t\t\t<LayoutSection>{story()}</LayoutSection>\n\t\t\t</Layout>\n\t\t</PageContent>\n\t</Page>\n))\n\nstories.addDecorator(withKnobs)\n\nstories\n\t.add('Critical Card', () => (\n\t\t<Card isCritical>\n\t\t\t<Card.Header\n\t\t\t\ttitle={text('title', 'Please update your credit card')}\n\t\t\t\tlabelText={text('labelText', 'Billing failure')}\n\t\t\t\tlabelIcon={{ customIcon: AlertIcon3, isLineIcon: false }}\n\t\t\t/>\n\t\t\t<Card.Body>\n\t\t\t\t<Text>\n\t\t\t\t\tTwo roads diverged in a wood, and I took the one less traveled by, And\n\t\t\t\t\tthat has made all the difference.\n\t\t\t\t</Text>\n\t\t\t</Card.Body>\n\t\t\t<Card.Footer>\n\t\t\t\t<Button kind={ButtonKinds.Secondary} text=\"Update credit card\" />\n\t\t\t</Card.Footer>\n\t\t</Card>\n\t))\n\t.add('Score Card', () => (\n\t\t<Card>\n\t\t\t<Card.Header\n\t\t\t\ttitle={text('title', 'Value of future appointments')}\n\t\t\t\tactions={object('actions', [\n\t\t\t\t\t{\n\t\t\t\t\t\ttext: 'Go to reports'\n\t\t\t\t\t}\n\t\t\t\t])}\n\t\t\t/>\n\t\t\t<Card.Body>\n\t\t\t\t<Text>\n\t\t\t\t\tTwo roads diverged in a wood, and I took the one less traveled by, And\n\t\t\t\t\tthat has made all the difference.\n\t\t\t\t</Text>\n\t\t\t\t<Scores\n\t\t\t\t\tscores={object('scores', [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: '1',\n\t\t\t\t\t\t\tlabel: 'Today',\n\t\t\t\t\t\t\tvalue: '$1,848'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: '2',\n\t\t\t\t\t\t\tlabel: 'This Week',\n\t\t\t\t\t\t\tvalue: '$5,778'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: '3',\n\t\t\t\t\t\t\tlabel: 'This Month',\n\t\t\t\t\t\t\tvalue: '$25,068'\n\t\t\t\t\t\t}\n\t\t\t\t\t])}\n\t\t\t\t/>\n\t\t\t</Card.Body>\n\t\t</Card>\n\t))\n\t.add('People Card', () => (\n\t\t<Card>\n\t\t\t<Card.Header\n\t\t\t\ttitle={text('title', 'Your upcoming appointments')}\n\t\t\t\tactions={object('actions', [\n\t\t\t\t\t{\n\t\t\t\t\t\ttext: 'View in calendar'\n\t\t\t\t\t}\n\t\t\t\t])}\n\t\t\t/>\n\t\t\t<Card.Body>\n\t\t\t\t<List items={userList} />\n\t\t\t\t<a href=\"#\" style={{ display: 'block' }}>\n\t\t\t\t\t+3 more today\n\t\t\t\t</a>\n\t\t\t</Card.Body>\n\t\t</Card>\n\t))\n\t.add('Person Card', () => (\n\t\t<Card isCentered>\n\t\t\t<Card.Header />\n\t\t\t<Card.Body>\n\t\t\t\t<Avatar\n\t\t\t\t\tisLarge\n\t\t\t\t\timage={text('Avatar Image', userImageLg)}\n\t\t\t\t\talt=\"Rosamund Mueleer\"\n\t\t\t\t/>\n\t\t\t\t<TextContainer spacing=\"tight\">\n\t\t\t\t\t<Subheading className=\"card-header__title\" element=\"h3\">\n\t\t\t\t\t\t{`Say \"Happy Birthday\"`}\n\t\t\t\t\t</Subheading>\n\t\t\t\t\t<Text>\n\t\t\t\t\t\tIt’s Rosamond Mueller’s birthday today. Don’t forget to say happy\n\t\t\t\t\t\tbirthday!\n\t\t\t\t\t</Text>\n\t\t\t\t</TextContainer>\n\t\t\t</Card.Body>\n\t\t\t<Card.Footer>\n\t\t\t\t<Button\n\t\t\t\t\tkind={ButtonKinds.Secondary}\n\t\t\t\t\ttext=\"Send a birthday message\"\n\t\t\t\t\tisSmall\n\t\t\t\t/>\n\t\t\t</Card.Footer>\n\t\t</Card>\n\t))\n\t.add('Place Card', () => (\n\t\t<Card>\n\t\t\t<Image\n\t\t\t\tid=\"header\"\n\t\t\t\tsrc=\"https://images.unsplash.com/photo-1535401991746-da3d9055713e?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=9fa1c73c0d29848a6e63595c588051ad&auto=format&fit=crop&w=720&h=360&q=80\"\n\t\t\t\twidth={720}\n\t\t\t\theight={360}\n\t\t\t/>\n\t\t\t<Card.Body>\n\t\t\t\t<h3>Les Basics</h3>\n\t\t\t\t<Text>101 Purdy Lakes, West Jordanmouth, NH 38827-6100</Text>\n\t\t\t</Card.Body>\n\t\t\t<Card.Footer>\n\t\t\t\t<Button kind={ButtonKinds.Secondary} text=\"Book an appointment\" />\n\t\t\t</Card.Footer>\n\t\t</Card>\n\t))\n\t.add('Celebration Card', () => (\n\t\t<Card isCentered>\n\t\t\t<Image\n\t\t\t\tsrc=\"https://images.unsplash.com/photo-1499306215218-42e51ae058b2?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=6a6ae71facb70ced00bcbae8174ee47c&auto=format&fit=crop&w=720&h=360&q=80\"\n\t\t\t\twidth={720}\n\t\t\t\theight={360}\n\t\t\t/>\n\n\t\t\t<Card.Body>\n\t\t\t\t<h3>Congrats on 10k guests!</h3>\n\t\t\t\t<Text>\n\t\t\t\t\tI’ve learned that people will forget what you said, people will forget\n\t\t\t\t\twhat you did, but people will never forget how you made them feel.\n\t\t\t\t</Text>\n\t\t\t</Card.Body>\n\t\t</Card>\n\t))\n\t.add('To Do', () => (\n\t\t<Card>\n\t\t\t<Card.Header\n\t\t\t\tlabelText={text('Label Text', '')}\n\t\t\t\tlabelIcon={\n\t\t\t\t\tboolean('Label Icon', false)\n\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\tcustomIcon: LockIcon2,\n\t\t\t\t\t\t\t\tisLineIcon: true\n\t\t\t\t\t\t }\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t\ttitle={text('Title', 'Get the most out of Spruce')}\n\t\t\t\tactions={\n\t\t\t\t\tboolean('Header Action', false)\n\t\t\t\t\t\t? [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tkind: ButtonKinds.Simple,\n\t\t\t\t\t\t\t\t\ttext: 'Go to team',\n\t\t\t\t\t\t\t\t\tisSmall: true\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t ]\n\t\t\t\t\t\t: undefined\n\t\t\t\t}\n\t\t\t\tcontextMenu={object('contextMenu', {\n\t\t\t\t\tactions: [{ text: 'One' }, { text: 'Two' }, { text: 'Three' }]\n\t\t\t\t})}\n\t\t\t/>\n\t\t\t<Card.Body>\n\t\t\t\t<Text>\n\t\t\t\t\t{text(\n\t\t\t\t\t\t'Body Copy',\n\t\t\t\t\t\t'Two roads diverged in a wood, and I took the one less traveled by, And that has made all the difference.'\n\t\t\t\t\t)}\n\t\t\t\t</Text>\n\t\t\t</Card.Body>\n\t\t\t<Card.Footer>\n\t\t\t\t<Button kind={ButtonKinds.Secondary} text=\"Get some skills\" isSmall />\n\t\t\t</Card.Footer>\n\t\t</Card>\n\t))\n\t.add('Onboarding Card', () => <OnboardingCard {...onboarding} />)\n\t.add('CardBuilder', () => (\n\t\t<Fragment>\n\t\t\t<CardBuilder key=\"foo-0\" {...object('json', cardJSON)} />\n\t\t\t<CardBuilder key=\"foo-1\" {...object('json2', cardJSON2)} />\n\t\t\t<CardBuilder key=\"foo-2\" {...object('json3', cardJSON3)} />\n\t\t\t<CardBuilder key=\"foo-3\" {...object('json4', cardJSON4)} />\n\t\t\t<CardBuilder key=\"foo-4\" {...object('json5', cardJSON5)} />\n\t\t</Fragment>\n\t))\n\t.add('Expandable Card', () => {\n\t\treturn (\n\t\t\t<Card expandable headerProps={{ title: 'Hello' }} defaultExpanded={false}>\n\t\t\t\t<Card.Body>\n\t\t\t\t\t<p>Hello I am card content</p>\n\t\t\t\t</Card.Body>\n\t\t\t</Card>\n\t\t)\n\t})\n"],"file":"Card-story.js"}
@@ -0,0 +1,69 @@
1
+ import React, { Component } from 'react';
2
+ import { ICardHeaderProps } from './components/CardHeader';
3
+ export interface ICardProps {
4
+ /** Should be Card Header, Card Body, and Card Footer, unless using the card background for styling only. */
5
+ children?: React.ReactNode;
6
+ /** Set true to make all content center aligned. */
7
+ isCentered?: boolean;
8
+ /** Set true if this card is mission-critical for the person who sees it. */
9
+ isCritical?: boolean;
10
+ /** Set true to render a smaller card variation */
11
+ isSmall?: boolean;
12
+ /** Set true to fill space of parent */
13
+ isFullSize?: boolean;
14
+ /** Optional classname */
15
+ className?: string;
16
+ /** Optional; makes the card expandable */
17
+ expandable?: boolean;
18
+ /** Optional; for expandable cards, sets the default expanded state */
19
+ defaultExpanded?: boolean;
20
+ /** Optional; render the card header */
21
+ headerProps?: ICardHeaderProps;
22
+ }
23
+ interface ICardDefaultProps {
24
+ isCentered: boolean;
25
+ expandable: boolean;
26
+ defaultExpanded: boolean;
27
+ }
28
+ interface ICardState {
29
+ /** Is the card expanded? */
30
+ isExpanded: boolean;
31
+ }
32
+ export default class Card extends Component<ICardProps, ICardState> {
33
+ static Header: {
34
+ (props: import("@sprucelabs/spruce-types").IHWCardHeader | ICardHeaderProps): 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>)>;
35
+ displayName: string;
36
+ defaultProps: {
37
+ title: string;
38
+ labelText: string;
39
+ labelIcon: null;
40
+ headerActions: never[];
41
+ contextMenu: null;
42
+ };
43
+ };
44
+ static Body: {
45
+ (props: import("./components/CardBody").ICardBodyProps): 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>)>;
46
+ displayName: string;
47
+ defaultProps: {
48
+ isSectioned: boolean;
49
+ areSectionSeparatorsVisible: boolean;
50
+ hasTopPadding: boolean;
51
+ hasBottomPadding: boolean;
52
+ };
53
+ };
54
+ static Section: (props: import("./components/CardSection").ICardSectionProps) => 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>)>;
55
+ static Footer: {
56
+ (props: import("./components/CardFooter").ICardFooterProps): 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>)>;
57
+ displayName: string;
58
+ };
59
+ static defaultProps: {
60
+ isCentered: boolean;
61
+ expandable: boolean;
62
+ defaultExpanded: boolean;
63
+ };
64
+ constructor(props: ICardProps & ICardDefaultProps);
65
+ toggleExpanded: () => void;
66
+ render(): React.ReactElement;
67
+ }
68
+ export {};
69
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAmB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAKtE,MAAM,WAAW,UAAU;IAC1B,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAA;IAEzB,uCAAuC;IACvC,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAC9B;AAED,UAAU,iBAAiB;IAC1B,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,OAAO,CAAA;CACxB;AAED,UAAU,UAAU;IACnB,4BAA4B;IAC5B,UAAU,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAClE,OAAc,MAAM;;;;;;;;;;MAAa;IACjC,OAAc,IAAI;;;;;;;;;MAAW;IAC7B,OAAc,OAAO,kRAAc;IACnC,OAAc,MAAM;;;MAAa;IAEjC,OAAc,YAAY;;;;MAIzB;gBAIkB,KAAK,EAAE,UAAU,GAAG,iBAAiB;IAQjD,cAAc,aAIpB;IAEM,MAAM,IAAI,KAAK,CAAC,YAAY;CA0CnC"}
@@ -0,0 +1,113 @@
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 _getPrototypeOf2 = _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 _classnames = _interopRequireDefault(require("classnames"));
31
+
32
+ var _CardHeader = _interopRequireDefault(require("./components/CardHeader"));
33
+
34
+ var _CardBody = _interopRequireDefault(require("./components/CardBody"));
35
+
36
+ var _CardSection = _interopRequireDefault(require("./components/CardSection"));
37
+
38
+ var _CardFooter = _interopRequireDefault(require("./components/CardFooter"));
39
+
40
+ var Card =
41
+ /*#__PURE__*/
42
+ function (_Component) {
43
+ (0, _inherits2["default"])(Card, _Component);
44
+
45
+ function Card(props) {
46
+ var _this;
47
+
48
+ (0, _classCallCheck2["default"])(this, Card);
49
+ _this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Card).call(this, props));
50
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toggleExpanded", function () {
51
+ _this.setState(function (prevState) {
52
+ return {
53
+ isExpanded: !prevState.isExpanded
54
+ };
55
+ });
56
+ });
57
+ _this.state = {
58
+ isExpanded: props.defaultExpanded
59
+ };
60
+ return _this;
61
+ }
62
+
63
+ (0, _createClass2["default"])(Card, [{
64
+ key: "render",
65
+ value: function render() {
66
+ var _this2 = this;
67
+
68
+ var _this$props = this.props,
69
+ children = _this$props.children,
70
+ isCentered = _this$props.isCentered,
71
+ isCritical = _this$props.isCritical,
72
+ isSmall = _this$props.isSmall,
73
+ isFullSize = _this$props.isFullSize,
74
+ className = _this$props.className,
75
+ expandable = _this$props.expandable,
76
+ headerProps = _this$props.headerProps;
77
+ var isExpanded = this.state.isExpanded;
78
+ return _react["default"].createElement("div", {
79
+ className: (0, _classnames["default"])('card', className, {
80
+ 'card--centered': isCentered,
81
+ 'card--critical': isCritical,
82
+ 'card--small': isSmall,
83
+ 'card--full-size': isFullSize,
84
+ 'card--is-collapsed': expandable && !isExpanded
85
+ })
86
+ }, expandable && _react["default"].createElement(_CardHeader["default"], (0, _extends2["default"])({}, headerProps, {
87
+ actions: [{
88
+ icon: {
89
+ name: isExpanded ? 'keyboard_arrow_down' : 'keyboard_arrow_right'
90
+ },
91
+ onClick: function onClick() {
92
+ return _this2.toggleExpanded();
93
+ }
94
+ }]
95
+ })), isExpanded && children);
96
+ }
97
+ }]);
98
+ return Card;
99
+ }(_react.Component);
100
+
101
+ exports["default"] = Card;
102
+ (0, _defineProperty2["default"])(Card, "Header", _CardHeader["default"]);
103
+ (0, _defineProperty2["default"])(Card, "Body", _CardBody["default"]);
104
+ (0, _defineProperty2["default"])(Card, "Section", _CardSection["default"]);
105
+ (0, _defineProperty2["default"])(Card, "Footer", _CardFooter["default"]);
106
+ (0, _defineProperty2["default"])(Card, "defaultProps", {
107
+ isCentered: false,
108
+ expandable: false,
109
+ defaultExpanded: true // TODO: TS/React should be inferring this, but it isn't.
110
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11640
111
+
112
+ });
113
+ //# sourceMappingURL=Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/Card/Card.tsx"],"names":["Card","props","setState","prevState","isExpanded","state","defaultExpanded","children","isCentered","isCritical","isSmall","isFullSize","className","expandable","headerProps","icon","name","onClick","toggleExpanded","Component","CardHeader","CardBody","CardSection","CardFooter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;IA0CqBA,I;;;;;AAcpB,gBAAmBC,KAAnB,EAA0D;AAAA;;AAAA;AACzD,gHAAMA,KAAN;AADyD,uGAQlC,YAAM;AAC7B,YAAKC,QAAL,CAAc,UAAAC,SAAS;AAAA,eAAK;AAC3BC,UAAAA,UAAU,EAAE,CAACD,SAAS,CAACC;AADI,SAAL;AAAA,OAAvB;AAGA,KAZyD;AAGzD,UAAKC,KAAL,GAAa;AACZD,MAAAA,UAAU,EAAEH,KAAK,CAACK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ICardHeaderProps } from './components/CardHeader'\nimport CardBody from './components/CardBody'\nimport CardSection from './components/CardSection'\nimport CardFooter from './components/CardFooter'\n\nexport interface ICardProps {\n\t/** Should be Card Header, Card Body, and Card Footer, unless using the card background for styling only. */\n\tchildren?: React.ReactNode\n\n\t/** Set true to make all content center aligned. */\n\tisCentered?: boolean\n\n\t/** Set true if this card is mission-critical for the person who sees it. */\n\tisCritical?: boolean\n\n\t/** Set true to render a smaller card variation */\n\tisSmall?: boolean\n\n\t/** Set true to fill space of parent */\n\tisFullSize?: boolean\n\n\t/** Optional classname */\n\tclassName?: string\n\n\t/** Optional; makes the card expandable */\n\texpandable?: boolean\n\n\t/** Optional; for expandable cards, sets the default expanded state */\n\tdefaultExpanded?: boolean\n\n\t/** Optional; render the card header */\n\theaderProps?: ICardHeaderProps\n}\n\ninterface ICardDefaultProps {\n\tisCentered: boolean\n\texpandable: boolean\n\tdefaultExpanded: boolean\n}\n\ninterface ICardState {\n\t/** Is the card expanded? */\n\tisExpanded: boolean\n}\n\nexport default class Card extends Component<ICardProps, ICardState> {\n\tpublic static Header = CardHeader\n\tpublic static Body = CardBody\n\tpublic static Section = CardSection\n\tpublic static Footer = CardFooter\n\n\tpublic static defaultProps = {\n\t\tisCentered: false,\n\t\texpandable: false,\n\t\tdefaultExpanded: true\n\t}\n\n\t// TODO: TS/React should be inferring this, but it isn't.\n\t// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11640\n\tpublic constructor(props: ICardProps & ICardDefaultProps) {\n\t\tsuper(props)\n\n\t\tthis.state = {\n\t\t\tisExpanded: props.defaultExpanded\n\t\t}\n\t}\n\n\tpublic toggleExpanded = () => {\n\t\tthis.setState(prevState => ({\n\t\t\tisExpanded: !prevState.isExpanded\n\t\t}))\n\t}\n\n\tpublic render(): React.ReactElement {\n\t\tconst {\n\t\t\tchildren,\n\t\t\tisCentered,\n\t\t\tisCritical,\n\t\t\tisSmall,\n\t\t\tisFullSize,\n\t\t\tclassName,\n\t\t\texpandable,\n\t\t\theaderProps\n\t\t} = this.props\n\n\t\tconst { isExpanded } = this.state\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclassName={cx('card', className, {\n\t\t\t\t\t'card--centered': isCentered,\n\t\t\t\t\t'card--critical': isCritical,\n\t\t\t\t\t'card--small': isSmall,\n\t\t\t\t\t'card--full-size': isFullSize,\n\t\t\t\t\t'card--is-collapsed': expandable && !isExpanded\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{expandable && (\n\t\t\t\t\t<CardHeader\n\t\t\t\t\t\t{...headerProps}\n\t\t\t\t\t\tactions={[\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ticon: {\n\t\t\t\t\t\t\t\t\tname: isExpanded\n\t\t\t\t\t\t\t\t\t\t? 'keyboard_arrow_down'\n\t\t\t\t\t\t\t\t\t\t: 'keyboard_arrow_right'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tonClick: () => this.toggleExpanded()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{isExpanded && children}\n\t\t\t</div>\n\t\t)\n\t}\n}\n"],"file":"Card.js"}