@sarasanalytics-com/design-system 0.0.42 → 0.0.43

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 (378) hide show
  1. package/.editorconfig +16 -0
  2. package/.eslintrc.json +23 -0
  3. package/.storybook/main.ts +21 -0
  4. package/.storybook/manager.ts +17 -0
  5. package/.storybook/preview-head.html +5 -0
  6. package/.storybook/preview.ts +66 -0
  7. package/.storybook/tsconfig.doc.json +10 -0
  8. package/.storybook/tsconfig.json +11 -0
  9. package/.storybook/typings.d.ts +4 -0
  10. package/.vscode/extensions.json +7 -0
  11. package/.vscode/launch.json +20 -0
  12. package/.vscode/settings.json +13 -0
  13. package/.vscode/tasks.json +42 -0
  14. package/README.md +45 -24
  15. package/angular.json +195 -0
  16. package/build-storybook.log +45 -0
  17. package/documentation.json +0 -0
  18. package/generate-public-api.js +59 -0
  19. package/package.json +74 -19
  20. package/projects/component-library/README.md +24 -0
  21. package/projects/component-library/ng-package.json +8 -0
  22. package/projects/component-library/package.json +12 -0
  23. package/projects/component-library/src/interfaces/avatar-interface.ts +6 -0
  24. package/projects/component-library/src/interfaces/button-interface.ts +37 -0
  25. package/{interfaces/card-carousel-interface.d.ts → projects/component-library/src/interfaces/card-carousel-interface.ts} +2 -1
  26. package/projects/component-library/src/interfaces/chip-interface.ts +11 -0
  27. package/projects/component-library/src/interfaces/grid-interface.ts +24 -0
  28. package/projects/component-library/src/interfaces/icon-interface.ts +21 -0
  29. package/projects/component-library/src/interfaces/select-interface.ts +20 -0
  30. package/projects/component-library/src/interfaces/tab-interface.ts +6 -0
  31. package/{interfaces/toast-interface.d.ts → projects/component-library/src/interfaces/toast-interface.ts} +1 -1
  32. package/projects/component-library/src/lib/accordion/accordion.component.css +188 -0
  33. package/projects/component-library/src/lib/accordion/accordion.component.html +151 -0
  34. package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +23 -0
  35. package/projects/component-library/src/lib/accordion/accordion.component.ts +129 -0
  36. package/projects/component-library/src/lib/avatar/avatar.component.css +48 -0
  37. package/projects/component-library/src/lib/avatar/avatar.component.html +5 -0
  38. package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +23 -0
  39. package/projects/component-library/src/lib/avatar/avatar.component.ts +50 -0
  40. package/projects/component-library/src/lib/button/button.component.css +145 -0
  41. package/projects/component-library/src/lib/button/button.component.html +25 -0
  42. package/projects/component-library/src/lib/button/button.component.spec.ts +23 -0
  43. package/projects/component-library/src/lib/button/button.component.ts +82 -0
  44. package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +67 -0
  45. package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +20 -0
  46. package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +23 -0
  47. package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +191 -0
  48. package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
  49. package/projects/component-library/src/lib/card/card-body/card-body.component.html +1 -0
  50. package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +23 -0
  51. package/projects/component-library/src/lib/card/card-body/card-body.component.ts +12 -0
  52. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +70 -0
  53. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +1 -0
  54. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +23 -0
  55. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +13 -0
  56. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +4 -0
  57. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +3 -0
  58. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +23 -0
  59. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +12 -0
  60. package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
  61. package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +1 -0
  62. package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +23 -0
  63. package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +12 -0
  64. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +3 -0
  65. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +1 -0
  66. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +23 -0
  67. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +12 -0
  68. package/projects/component-library/src/lib/card/card.component.css +149 -0
  69. package/projects/component-library/src/lib/card/card.component.html +46 -0
  70. package/projects/component-library/src/lib/card/card.component.spec.ts +23 -0
  71. package/projects/component-library/src/lib/card/card.component.ts +47 -0
  72. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +79 -0
  73. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +55 -0
  74. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +23 -0
  75. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +44 -0
  76. package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +80 -0
  77. package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +24 -0
  78. package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +23 -0
  79. package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +19 -0
  80. package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +91 -0
  81. package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +54 -0
  82. package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +23 -0
  83. package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +89 -0
  84. package/projects/component-library/src/lib/checkbox/checkbox.component.css +79 -0
  85. package/projects/component-library/src/lib/checkbox/checkbox.component.html +27 -0
  86. package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +23 -0
  87. package/projects/component-library/src/lib/checkbox/checkbox.component.ts +38 -0
  88. package/projects/component-library/src/lib/chips/chips.component.css +129 -0
  89. package/projects/component-library/src/lib/chips/chips.component.html +17 -0
  90. package/projects/component-library/src/lib/chips/chips.component.spec.ts +23 -0
  91. package/projects/component-library/src/lib/chips/chips.component.ts +54 -0
  92. package/projects/component-library/src/lib/component-library.component.spec.ts +23 -0
  93. package/projects/component-library/src/lib/component-library.component.ts +16 -0
  94. package/projects/component-library/src/lib/component-library.service.spec.ts +16 -0
  95. package/projects/component-library/src/lib/component-library.service.ts +9 -0
  96. package/projects/component-library/src/lib/datepicker/datepicker.component.css +33 -0
  97. package/projects/component-library/src/lib/datepicker/datepicker.component.html +11 -0
  98. package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +23 -0
  99. package/projects/component-library/src/lib/datepicker/datepicker.component.ts +36 -0
  100. package/projects/component-library/src/lib/form-input/form-input.component.css +164 -0
  101. package/projects/component-library/src/lib/form-input/form-input.component.html +55 -0
  102. package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +23 -0
  103. package/projects/component-library/src/lib/form-input/form-input.component.ts +282 -0
  104. package/projects/component-library/src/lib/form-select/form-select.component.css +158 -0
  105. package/projects/component-library/src/lib/form-select/form-select.component.html +38 -0
  106. package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +23 -0
  107. package/projects/component-library/src/lib/form-select/form-select.component.ts +72 -0
  108. package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +78 -0
  109. package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +31 -0
  110. package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +23 -0
  111. package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +89 -0
  112. package/projects/component-library/src/lib/header/header.component.css +62 -0
  113. package/projects/component-library/src/lib/header/header.component.html +23 -0
  114. package/projects/component-library/src/lib/header/header.component.spec.ts +23 -0
  115. package/projects/component-library/src/lib/header/header.component.ts +28 -0
  116. package/projects/component-library/src/lib/icon/icon.component.css +65 -0
  117. package/projects/component-library/src/lib/icon/icon.component.html +9 -0
  118. package/projects/component-library/src/lib/icon/icon.component.ts +64 -0
  119. package/projects/component-library/src/lib/icon/icon.service.ts +26 -0
  120. package/projects/component-library/src/lib/left-nav/left-nav.component.css +109 -0
  121. package/projects/component-library/src/lib/left-nav/left-nav.component.html +51 -0
  122. package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +23 -0
  123. package/projects/component-library/src/lib/left-nav/left-nav.component.ts +180 -0
  124. package/projects/component-library/src/lib/list/list.component.css +28 -0
  125. package/projects/component-library/src/lib/list/list.component.html +10 -0
  126. package/projects/component-library/src/lib/list/list.component.spec.ts +23 -0
  127. package/projects/component-library/src/lib/list/list.component.ts +15 -0
  128. package/projects/component-library/src/lib/message-banner/message-banner.component.css +52 -0
  129. package/projects/component-library/src/lib/message-banner/message-banner.component.html +15 -0
  130. package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +23 -0
  131. package/projects/component-library/src/lib/message-banner/message-banner.component.ts +31 -0
  132. package/projects/component-library/src/lib/page-layout/page-layout.component.css +76 -0
  133. package/projects/component-library/src/lib/page-layout/page-layout.component.html +30 -0
  134. package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +23 -0
  135. package/projects/component-library/src/lib/page-layout/page-layout.component.ts +14 -0
  136. package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +30 -0
  137. package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +4 -0
  138. package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +23 -0
  139. package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +24 -0
  140. package/projects/component-library/src/lib/radio-button/radio-button.component.css +128 -0
  141. package/projects/component-library/src/lib/radio-button/radio-button.component.html +28 -0
  142. package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +23 -0
  143. package/projects/component-library/src/lib/radio-button/radio-button.component.ts +35 -0
  144. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +118 -0
  145. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +11 -0
  146. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +23 -0
  147. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +74 -0
  148. package/projects/component-library/src/lib/spinner/spinner.component.css +41 -0
  149. package/projects/component-library/src/lib/spinner/spinner.component.html +1 -0
  150. package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +23 -0
  151. package/projects/component-library/src/lib/spinner/spinner.component.ts +15 -0
  152. package/projects/component-library/src/lib/stepper/stepper.component.css +96 -0
  153. package/projects/component-library/src/lib/stepper/stepper.component.html +14 -0
  154. package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +23 -0
  155. package/projects/component-library/src/lib/stepper/stepper.component.ts +61 -0
  156. package/projects/component-library/src/lib/tabs/tabs.component.css +100 -0
  157. package/projects/component-library/src/lib/tabs/tabs.component.html +16 -0
  158. package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +23 -0
  159. package/projects/component-library/src/lib/tabs/tabs.component.ts +37 -0
  160. package/projects/component-library/src/lib/toast/toast.component.css +115 -0
  161. package/projects/component-library/src/lib/toast/toast.component.html +29 -0
  162. package/projects/component-library/src/lib/toast/toast.component.spec.ts +23 -0
  163. package/projects/component-library/src/lib/toast/toast.component.ts +87 -0
  164. package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +144 -0
  165. package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +31 -0
  166. package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +23 -0
  167. package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +37 -0
  168. package/{public-api.d.ts → projects/component-library/src/public-api.ts} +12 -0
  169. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
  170. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +22 -0
  171. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +23 -0
  172. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +13 -0
  173. package/projects/component-library/src/utils/validators.ts +100 -0
  174. package/projects/component-library/tsconfig.lib.json +14 -0
  175. package/projects/component-library/tsconfig.lib.prod.json +10 -0
  176. package/projects/component-library/tsconfig.spec.json +14 -0
  177. package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
  178. package/src/Saras-logo.svg +15 -0
  179. package/src/app/app.component.css +82 -0
  180. package/src/app/app.component.html +663 -0
  181. package/src/app/app.component.spec.ts +29 -0
  182. package/src/app/app.component.ts +1341 -0
  183. package/src/app/app.config.ts +56 -0
  184. package/src/app/app.routes.ts +3 -0
  185. package/src/app/data.ts +52 -0
  186. package/src/app/kitchen-sink/kitchen-sink.component.css +30 -0
  187. package/src/app/kitchen-sink/kitchen-sink.component.html +7 -0
  188. package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +23 -0
  189. package/src/app/kitchen-sink/kitchen-sink.component.ts +92 -0
  190. package/src/assets/.gitkeep +0 -0
  191. package/src/assets/analysis.svg +1 -0
  192. package/src/assets/arrowRightOutlined.svg +1 -0
  193. package/src/assets/avatar.svg +1 -0
  194. package/src/assets/bpn.svg +1 -0
  195. package/src/assets/businessStatsFilled.svg +1 -0
  196. package/src/assets/channelkey.svg +1 -0
  197. package/src/assets/chatHelpOutlined.svg +1 -0
  198. package/src/assets/checkCircleFilled.svg +1 -0
  199. package/src/assets/checkCircleOutlined.svg +1 -0
  200. package/src/assets/checkOutlined.svg +1 -0
  201. package/src/assets/circleFilled.svg +1 -0
  202. package/src/assets/closeBlueOutlined.svg +1 -0
  203. package/src/assets/closeCircleFilled.svg +1 -0
  204. package/src/assets/closeOutlined.svg +1 -0
  205. package/src/assets/dataonavatar.svg +1 -0
  206. package/src/assets/datonAvatar.png +0 -0
  207. package/src/assets/desktopSpeakerOutlined.svg +1 -0
  208. package/src/assets/disabledCheckboxFilled.svg +1 -0
  209. package/src/assets/doubleDownOutlined.svg +1 -0
  210. package/src/assets/downChevronOutlined.svg +3 -0
  211. package/src/assets/downOutlined.svg +1 -0
  212. package/src/assets/errorCircleOutlined.svg +1 -0
  213. package/src/assets/errorCrossOutlined.svg +3 -0
  214. package/src/assets/eyeFilled.svg +1 -0
  215. package/src/assets/eyeOff.svg +3 -0
  216. package/src/assets/eyeOutlined.svg +1 -0
  217. package/src/assets/formDetailsOutlined.svg +1 -0
  218. package/src/assets/gridViewOutlined.svg +1 -0
  219. package/src/assets/headsetOutlined.svg +3 -0
  220. package/src/assets/homeOutlined.svg +1 -0
  221. package/src/assets/icons/analysis1.svg +1 -0
  222. package/src/assets/infoCircleOutlined.svg +3 -0
  223. package/src/assets/infoTriangleFilled.svg +1 -0
  224. package/src/assets/infoTriangleOutlined.svg +1 -0
  225. package/src/assets/innosupps.svg +1 -0
  226. package/src/assets/leftChevronCircle.svg +2 -0
  227. package/src/assets/locationOutlined.svg +1 -0
  228. package/src/assets/loginDashboard.png +0 -0
  229. package/src/assets/mailOutlined.svg +1 -0
  230. package/src/assets/multiConnectionHub.svg +1 -0
  231. package/src/assets/murad.svg +1 -0
  232. package/src/assets/personOutlined.svg +1 -0
  233. package/src/assets/pricingIcon.svg +3 -0
  234. package/src/assets/rightChevronCircle.svg +1 -0
  235. package/src/assets/rightChevronOutlined.svg +1 -0
  236. package/src/assets/sarasFullLogo.svg +13 -0
  237. package/src/assets/sarasWhite.svg +1 -0
  238. package/src/assets/settingsOutlined.svg +1 -0
  239. package/src/assets/sourcesOutlined.svg +1 -0
  240. package/src/assets/tabDesktopArrowClockwiseOutlined.svg +1 -0
  241. package/src/assets/targetScanOutlined.svg +1 -0
  242. package/src/assets/timerOutlined.svg +5 -0
  243. package/src/assets/upwardTriangleFilled.svg +1 -0
  244. package/src/custom-theme.scss +37 -0
  245. package/src/favicon.ico +0 -0
  246. package/src/index.html +23 -0
  247. package/src/main.ts +6 -0
  248. package/src/stories/GettingStarted.mdx +233 -0
  249. package/src/stories/KitchenSink.stories.ts +109 -0
  250. package/src/stories/accordion.stories.ts +234 -0
  251. package/src/stories/avatar.stories.ts +45 -0
  252. package/src/stories/card-carousel.stories.ts +136 -0
  253. package/src/stories/card.stories.ts +242 -0
  254. package/src/stories/checkbox.stories.ts +238 -0
  255. package/src/stories/chips.stories.ts +61 -0
  256. package/src/stories/custom-button.stories.ts +89 -0
  257. package/src/stories/datepicker.stories.ts +78 -0
  258. package/src/stories/form-input.stories.ts +166 -0
  259. package/src/stories/gridCell.stories.ts +234 -0
  260. package/src/stories/header.stories.ts +61 -0
  261. package/src/stories/icon.stories.ts +65 -0
  262. package/src/stories/leftnav.stories.ts +67 -0
  263. package/src/stories/message-banner.stories.ts +116 -0
  264. package/src/stories/page-layout.stories.ts +200 -0
  265. package/src/stories/progress-bar.stories.ts +40 -0
  266. package/src/stories/radio-button.stories.ts +80 -0
  267. package/src/stories/scrolling-card.stories.ts +36 -0
  268. package/src/stories/selectInput.stories.ts +176 -0
  269. package/src/stories/stepper.stories.ts +92 -0
  270. package/src/stories/tabs.stories.ts +97 -0
  271. package/src/stories/toast.stories.ts +74 -0
  272. package/src/stories/tool-tip.stories.ts +45 -0
  273. package/src/styles.css +388 -0
  274. package/src/svg.d.ts +1 -0
  275. package/tsconfig.app.json +14 -0
  276. package/tsconfig.json +42 -0
  277. package/tsconfig.spec.json +14 -0
  278. package/esm2022/interfaces/avatar-interface.mjs +0 -2
  279. package/esm2022/interfaces/button-interface.mjs +0 -10
  280. package/esm2022/interfaces/card-carousel-interface.mjs +0 -2
  281. package/esm2022/interfaces/chip-interface.mjs +0 -2
  282. package/esm2022/interfaces/grid-interface.mjs +0 -2
  283. package/esm2022/interfaces/guide-card-interface.mjs +0 -2
  284. package/esm2022/interfaces/icon-interface.mjs +0 -16
  285. package/esm2022/interfaces/message-banner.mjs +0 -2
  286. package/esm2022/interfaces/option-interface.mjs +0 -2
  287. package/esm2022/interfaces/select-interface.mjs +0 -2
  288. package/esm2022/interfaces/tab-interface.mjs +0 -2
  289. package/esm2022/interfaces/toast-interface.mjs +0 -2
  290. package/esm2022/lib/accordion/accordion.component.mjs +0 -115
  291. package/esm2022/lib/avatar/avatar.component.mjs +0 -56
  292. package/esm2022/lib/button/button.component.mjs +0 -100
  293. package/esm2022/lib/calendar-header/calendar-header.component.mjs +0 -168
  294. package/esm2022/lib/card/card-body/card-body.component.mjs +0 -11
  295. package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +0 -11
  296. package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +0 -11
  297. package/esm2022/lib/card/card-icon/card-icon.component.mjs +0 -11
  298. package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +0 -11
  299. package/esm2022/lib/card/card.component.mjs +0 -111
  300. package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +0 -41
  301. package/esm2022/lib/card/guide-card/guide-card.component.mjs +0 -19
  302. package/esm2022/lib/card-carousel/card-carousel.component.mjs +0 -87
  303. package/esm2022/lib/checkbox/checkbox.component.mjs +0 -38
  304. package/esm2022/lib/chips/chips.component.mjs +0 -62
  305. package/esm2022/lib/component-library.component.mjs +0 -19
  306. package/esm2022/lib/component-library.service.mjs +0 -14
  307. package/esm2022/lib/datepicker/datepicker.component.mjs +0 -40
  308. package/esm2022/lib/form-input/form-input.component.mjs +0 -219
  309. package/esm2022/lib/form-select/form-select.component.mjs +0 -77
  310. package/esm2022/lib/grid-cell/grid-cell.component.mjs +0 -84
  311. package/esm2022/lib/header/header.component.mjs +0 -37
  312. package/esm2022/lib/icon/icon.component.mjs +0 -73
  313. package/esm2022/lib/icon/icon.service.mjs +0 -28
  314. package/esm2022/lib/left-nav/left-nav.component.mjs +0 -146
  315. package/esm2022/lib/list/list.component.mjs +0 -23
  316. package/esm2022/lib/message-banner/message-banner.component.mjs +0 -43
  317. package/esm2022/lib/page-layout/page-layout.component.mjs +0 -21
  318. package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -29
  319. package/esm2022/lib/radio-button/radio-button.component.mjs +0 -33
  320. package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +0 -59
  321. package/esm2022/lib/spinner/spinner.component.mjs +0 -22
  322. package/esm2022/lib/stepper/stepper.component.mjs +0 -64
  323. package/esm2022/lib/tabs/tabs.component.mjs +0 -38
  324. package/esm2022/lib/toast/toast.component.mjs +0 -100
  325. package/esm2022/lib/tool-tip/tool-tip.component.mjs +0 -41
  326. package/esm2022/public-api.mjs +0 -56
  327. package/esm2022/sarasanalytics-com-design-system.mjs +0 -5
  328. package/esm2022/utils/validators.mjs +0 -97
  329. package/fesm2022/sarasanalytics-com-design-system.mjs +0 -2001
  330. package/fesm2022/sarasanalytics-com-design-system.mjs.map +0 -1
  331. package/index.d.ts +0 -5
  332. package/interfaces/avatar-interface.d.ts +0 -6
  333. package/interfaces/button-interface.d.ts +0 -22
  334. package/interfaces/chip-interface.d.ts +0 -11
  335. package/interfaces/grid-interface.d.ts +0 -24
  336. package/interfaces/icon-interface.d.ts +0 -4
  337. package/interfaces/select-interface.d.ts +0 -20
  338. package/interfaces/tab-interface.d.ts +0 -6
  339. package/lib/accordion/accordion.component.d.ts +0 -25
  340. package/lib/avatar/avatar.component.d.ts +0 -18
  341. package/lib/button/button.component.d.ts +0 -32
  342. package/lib/calendar-header/calendar-header.component.d.ts +0 -31
  343. package/lib/card/card-body/card-body.component.d.ts +0 -5
  344. package/lib/card/card-custom-header/card-custom-header.component.d.ts +0 -5
  345. package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +0 -5
  346. package/lib/card/card-icon/card-icon.component.d.ts +0 -5
  347. package/lib/card/card-title-actions/card-title-actions.component.d.ts +0 -5
  348. package/lib/card/card.component.d.ts +0 -31
  349. package/lib/card/checkbox-card/checkbox-card.component.d.ts +0 -12
  350. package/lib/card/guide-card/guide-card.component.d.ts +0 -8
  351. package/lib/card-carousel/card-carousel.component.d.ts +0 -27
  352. package/lib/checkbox/checkbox.component.d.ts +0 -9
  353. package/lib/chips/chips.component.d.ts +0 -22
  354. package/lib/component-library.component.d.ts +0 -5
  355. package/lib/component-library.service.d.ts +0 -6
  356. package/lib/datepicker/datepicker.component.d.ts +0 -9
  357. package/lib/form-input/form-input.component.d.ts +0 -67
  358. package/lib/form-select/form-select.component.d.ts +0 -18
  359. package/lib/grid-cell/grid-cell.component.d.ts +0 -20
  360. package/lib/header/header.component.d.ts +0 -14
  361. package/lib/icon/icon.component.d.ts +0 -24
  362. package/lib/icon/icon.service.d.ts +0 -12
  363. package/lib/left-nav/left-nav.component.d.ts +0 -47
  364. package/lib/list/list.component.d.ts +0 -10
  365. package/lib/message-banner/message-banner.component.d.ts +0 -19
  366. package/lib/page-layout/page-layout.component.d.ts +0 -8
  367. package/lib/progress-bar/progress-bar.component.d.ts +0 -13
  368. package/lib/radio-button/radio-button.component.d.ts +0 -12
  369. package/lib/scrolling-cards/scrolling-cards.component.d.ts +0 -36
  370. package/lib/spinner/spinner.component.d.ts +0 -7
  371. package/lib/stepper/stepper.component.d.ts +0 -17
  372. package/lib/tabs/tabs.component.d.ts +0 -15
  373. package/lib/toast/toast.component.d.ts +0 -33
  374. package/lib/tool-tip/tool-tip.component.d.ts +0 -15
  375. package/utils/validators.d.ts +0 -6
  376. /package/{interfaces/guide-card-interface.d.ts → projects/component-library/src/interfaces/guide-card-interface.ts} +0 -0
  377. /package/{interfaces/message-banner.d.ts → projects/component-library/src/interfaces/message-banner.ts} +0 -0
  378. /package/{interfaces/option-interface.d.ts → projects/component-library/src/interfaces/option-interface.ts} +0 -0
@@ -0,0 +1,234 @@
1
+ import type { Meta, StoryObj } from '@storybook/angular';
2
+ import { moduleMetadata } from '@storybook/angular';
3
+ import { ReactiveFormsModule } from '@angular/forms';
4
+ import { FormlyForm, FormlyModule } from '@ngx-formly/core';
5
+ import { map as _map, reduce as _reduce } from 'lodash'
6
+ import { HttpClientModule } from '@angular/common/http';
7
+ import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
8
+ import { AccordionComponent } from '../../projects/component-library/src/lib/accordion/accordion.component';
9
+ import { FormlyFieldWrapperComponent } from '../../projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component';
10
+
11
+ const meta: Meta<AccordionComponent> = {
12
+ title: 'Accordion',
13
+ component: AccordionComponent,
14
+ tags: ['autodocs'],
15
+ argTypes: {
16
+ options: {
17
+ control: { type: 'object' },
18
+ },
19
+ field: {
20
+ control: { type: 'object' },
21
+ },
22
+ model: {
23
+ control: { type: 'object' },
24
+ },
25
+ },
26
+ decorators: [
27
+ moduleMetadata({
28
+ imports: [ReactiveFormsModule, HttpClientModule, FormlyFieldWrapperComponent,
29
+ FormlyModule.forRoot({
30
+ types: [
31
+ {
32
+ name: 'sa-accordion',
33
+ component: AccordionComponent,
34
+ },
35
+ ],
36
+ wrappers: [
37
+ {
38
+ name: 'wrapper',
39
+ component: FormlyFieldWrapperComponent,
40
+ },
41
+ ],
42
+ })
43
+ ],
44
+ providers: [IconService],
45
+ }),
46
+ ],
47
+ render: (args) => ({
48
+ props: {
49
+ ...args,
50
+ modelChangeHandler: (event: any) => {
51
+ console.log(event);
52
+ },
53
+ },
54
+ template: `<form>
55
+ <formly-form
56
+ [form]="form"
57
+ [fields]="fields"
58
+ [model]="model"
59
+ (modelChange)="modelChangeHandler($event)">
60
+ </formly-form>
61
+ </form>`
62
+ }),
63
+ };
64
+
65
+ export default meta;
66
+ type Story = StoryObj<FormlyForm>;
67
+
68
+ const panelData = [
69
+ {
70
+ key: 'marketingPanel',
71
+ title: 'Marketing',
72
+ accordionExpanded: false,
73
+ cardMessage: 'Marketing-specific features',
74
+ titleChip: {
75
+ label: 'Selected',
76
+ type: 'small',
77
+ state: 'neutral',
78
+ filling: 'filled',
79
+ changeStateTo: 'error',
80
+ text: ' {count} Selected',
81
+ },
82
+ features: [
83
+ {
84
+ title: 'Amazon Ads',
85
+ tooltip: 'Track Amazon ad performance.',
86
+ isSelected: false,
87
+ disabled: true
88
+ },
89
+ {
90
+ title: 'Google Ads',
91
+ tooltip: 'Analyze Google ad metrics.',
92
+ isSelected: true,
93
+ },
94
+ {
95
+ title: 'Marketing Overview',
96
+ tooltip: 'Track and analyze performance metrics for Amazon advertising campaigns, including impressions, clicks, and conversions.',
97
+ isSelected: false,
98
+ },
99
+ {
100
+ title: 'Facebook Ads',
101
+ tooltip: 'Track and analyze performance metrics for Amazon advertising campaigns, including impressions, clicks, and conversions.',
102
+ isSelected: false,
103
+ },
104
+ ],
105
+ },
106
+ {
107
+ key: 'accountingPanel',
108
+ title: 'Accounting',
109
+ accordionExpanded: true,
110
+ cardMessage: 'Accounting-specific features',
111
+ customWrapperClass: '',
112
+ titleChip: {
113
+ label: 'Selected',
114
+ type: 'small',
115
+ state: 'neutral',
116
+ filling: 'filled',
117
+ changeStateTo: 'primary',
118
+ text: '{count} Selected',
119
+ },
120
+ features: [
121
+ {
122
+ title: 'QuickBooks',
123
+ tooltip: 'Integrate QuickBooks data.',
124
+ isSelected: false,
125
+ },
126
+ {
127
+ title: 'Xero',
128
+ tooltip: 'Connect Xero accounting.',
129
+ isSelected: true,
130
+ },
131
+ {
132
+ title: 'Shopify',
133
+ tooltip: 'Track Amazon ad performance.',
134
+ isSelected: false,
135
+ },
136
+ {
137
+ title: 'Klaviyo',
138
+ tooltip: 'Analyze Google ad metrics.',
139
+ isSelected: true,
140
+ },
141
+ ],
142
+ advancedFeaturesExpanded: true,
143
+ advancedFeatures: [
144
+ {
145
+ title: 'Magento',
146
+ tooltip: 'Integrate Magento data.',
147
+ isSelected: false,
148
+ disabled: false,
149
+ featureChip: {
150
+ label: 'Advanced',
151
+ type: 'small',
152
+ state: 'primary',
153
+ filling: 'filled',
154
+ },
155
+ },
156
+ {
157
+ title: 'Shiphero',
158
+ tooltip: 'Connect Xero accounting.',
159
+ isSelected: false,
160
+ disabled: false
161
+ },
162
+ ],
163
+ advancedFeatureDisclaimer: 'Please reach out to us to activate the advanced dashboards',
164
+ advancedFeatureTitle: 'View Advanced Features',
165
+ advancedFeatureToggleTitle: 'Hide Advanced Features',
166
+ advancedFeatureDisclaimerButtons: [
167
+ {
168
+ text: 'Learn More',
169
+ type: 'transparent',
170
+ size: 'small',
171
+ state: 'default'
172
+ }, {
173
+ text: 'Schedule a call',
174
+ type: 'outline',
175
+ size: 'small',
176
+ state: 'default',
177
+ iconPosition: 'left',
178
+ icon: "headsetOutlined",
179
+ buttonIconSize: "14"
180
+ }
181
+ ]
182
+ },
183
+ ];
184
+
185
+ const onButtonClick = (card: any, button: any) => {
186
+ console.log('Button clicked on card: ', card.title, button);
187
+ };
188
+
189
+ // export const Accordion: Story = {
190
+ // args: {
191
+ // fields: [
192
+ // {
193
+ // key: 'accordionPanelGroup',
194
+ // wrappers: ['wrapper'],
195
+ // props: {
196
+ // label: 'Choose the features that you would like to activate',
197
+ // description: `Based on your selected features and preferences, we'll recommend the most relevant dashboards to support your goals`,
198
+ // helpText: 'helptext here'
199
+ // },
200
+ // fieldGroupClassName: 'accordions-group-container',
201
+ // fieldGroup: _map(panelData, panel => ({
202
+ // key: panel.key,
203
+ // type: 'sa-accordion',
204
+ // className: 'accordion-group-container',
205
+ // props: {
206
+ // panelTitle: panel.title,
207
+ // accordionExpanded: panel.accordionExpanded,
208
+ // cardMessage: panel.cardMessage,
209
+ // customWrapperClass: panel.customWrapperClass || 'sa-card-accordion-wrapper',
210
+ // titleChip: panel.titleChip,
211
+ // expandedIcon: 'downChevronOutlined',
212
+ // collapsedIcon: 'rightChevronOutlined',
213
+ // tooltipIcon: 'infoCircleOutlined',
214
+ // advancedTooltipIcon: 'infoCircleOutlined',
215
+ // featureCardWidth: '632px',
216
+ // advancedFeatureCardWidth: '632px',
217
+ // featuresList: panel.features,
218
+ // advancedFeatures: panel.advancedFeatures,
219
+ // advancedFeaturesExpanded: panel.advancedFeaturesExpanded || false,
220
+ // advancedFeatureTitle: panel.advancedFeatureTitle || 'View Advanced Features',
221
+ // advancedFeatureToggleTitle: panel.advancedFeatureToggleTitle || 'Hide Advanced Features',
222
+ // advancedFeatureDisclaimerButtons: panel.advancedFeatureDisclaimerButtons,
223
+ // advancedFeatureDisclaimer: panel.advancedFeatureDisclaimer,
224
+ // ...(panel.advancedFeatureDisclaimerButtons && {
225
+ // onButtonClick: (button: any) => onButtonClick(panel, button)
226
+ // }),
227
+ // },
228
+ // }))
229
+ // }
230
+ // ],
231
+ // model: {
232
+ // },
233
+ // },
234
+ // };
@@ -0,0 +1,45 @@
1
+ import type { Meta, StoryObj } from '@storybook/angular';
2
+ import { argsToTemplate } from '@storybook/angular';
3
+ import { AvatarComponent } from '../../projects/component-library/src/lib/avatar/avatar.component';
4
+
5
+ const meta: Meta<AvatarComponent> = {
6
+ title: 'Avatar',
7
+ component: AvatarComponent,
8
+ tags: ['autodocs'],
9
+ argTypes: {
10
+ size: {
11
+ options: ['extra-small', 'small', 'medium', 'large', 'extra-large'],
12
+ control: { type: 'radio' },
13
+ },
14
+ altText: {
15
+ description: "Alternate text that should be displayed if image doesn't exist or is broken"
16
+ },
17
+ onClickEvent: {
18
+ action: "onClickEvent"
19
+ },
20
+ onMouseInEvent: {
21
+ action: "onMouseInEvent"
22
+ },
23
+ onMouseOutEvent: {
24
+ action: "onMouseOutEvent"
25
+ },
26
+ },
27
+ render: (args) => ({
28
+ props: {
29
+ ...args,
30
+ },
31
+ template: `<sa-avatar ${argsToTemplate(args)}></sa-avatar>`
32
+ }),
33
+ };
34
+
35
+ export default meta;
36
+ type Story = StoryObj<AvatarComponent>;
37
+
38
+
39
+ export const Avatar: Story = {
40
+ args: {
41
+ size: "medium",
42
+ imagePath: "../assets/avatar.svg",
43
+ altText: "AB"
44
+ }
45
+ };
@@ -0,0 +1,136 @@
1
+ import type { Meta, StoryObj } from '@storybook/angular';
2
+ import { moduleMetadata } from '@storybook/angular';
3
+ import { CardCarouselComponent } from '../../projects/component-library/src/lib/card-carousel/card-carousel.component';
4
+ import { CardComponent } from '../../projects/component-library/src/lib/card/card.component';
5
+ import { IconComponent } from '../../projects/component-library/src/lib/icon/icon.component';
6
+ import { CardCustomHeaderComponent } from '../../projects/component-library/src/lib/card/card-custom-header/card-custom-header.component';
7
+ import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
8
+ import { HttpClientModule } from '@angular/common/http';
9
+
10
+ const meta: Meta<CardCarouselComponent> = {
11
+ title: 'Interactive Components/Carousel Cards',
12
+ component: CardCarouselComponent,
13
+ tags: ['autodocs'],
14
+ decorators: [
15
+ moduleMetadata({
16
+ imports: [HttpClientModule, CardComponent, IconComponent, CardCustomHeaderComponent],
17
+ providers: [IconService],
18
+ }),
19
+ ],
20
+ argTypes: {
21
+ cards: { control: 'object' },
22
+ autoPlay: { control: 'boolean' },
23
+ interval: { control: 'number' },
24
+ showNavigationArrows: { control: 'boolean' },
25
+ showIndicators: { control: 'boolean' },
26
+ showBrandFooter: { control: 'boolean' }
27
+ }
28
+ };
29
+
30
+ export default meta;
31
+ type Story = StoryObj<CardCarouselComponent>;
32
+
33
+ const sampleCards = [
34
+ {
35
+ id: 1,
36
+ title: 'John Doe',
37
+ subtitle: 'CEO, Company A',
38
+ avatarIcon: 'avatar',
39
+ logoIcon: 'innosupps',
40
+ body: 'This is a great product that has helped our business tremendously.',
41
+ },
42
+ {
43
+ id: 2,
44
+ title: 'Jane Smith',
45
+ subtitle: 'CTO, Company B',
46
+ avatarIcon: 'avatar',
47
+ logoIcon: 'bpn',
48
+ body: 'Weve seen significant improvements in our workflow since implementing this solution.',
49
+ },
50
+ {
51
+ id: 3,
52
+ title: 'Bob Johnson',
53
+ subtitle: 'CFO, Company C',
54
+ avatarIcon: 'avatar',
55
+ logoIcon: 'murad',
56
+ body: 'The ROI on this product has been outstanding. Highly recommended!',
57
+ },
58
+ ];
59
+
60
+ export const Default: Story = {
61
+ args: {
62
+ cards: sampleCards,
63
+ autoPlay: true,
64
+ interval: 5000,
65
+ showNavigationArrows: true,
66
+ showIndicators: true,
67
+ showBrandFooter: true
68
+ }
69
+ };
70
+
71
+ export const WithCustomInterval: Story = {
72
+ args: {
73
+ cards: sampleCards,
74
+ interval: 3000,
75
+ },
76
+ };
77
+
78
+ export const WithoutAutoPlay: Story = {
79
+ args: {
80
+ ...Default.args,
81
+ autoPlay: false,
82
+ },
83
+ };
84
+
85
+ export const WithoutNavigationArrows: Story = {
86
+ args: {
87
+ ...Default.args,
88
+ showNavigationArrows: false,
89
+ },
90
+ };
91
+
92
+ export const WithoutIndicators: Story = {
93
+ args: {
94
+ ...Default.args,
95
+ showIndicators: false,
96
+ },
97
+ };
98
+
99
+ export const WithoutBrandFooter: Story = {
100
+ args: {
101
+ ...Default.args,
102
+ showBrandFooter: false,
103
+ },
104
+ };
105
+
106
+ export const SingleCard: Story = {
107
+ args: {
108
+ ...Default.args,
109
+ cards: [sampleCards[0]],
110
+ },
111
+ };
112
+
113
+ export const ManyCards: Story = {
114
+ args: {
115
+ ...Default.args,
116
+ cards: [
117
+ ...sampleCards,
118
+ {
119
+ id: 4,
120
+ title: 'Alice Brown',
121
+ subtitle: 'CMO, Company D',
122
+ avatarIcon: 'avatar',
123
+ logoIcon: 'targetScanOutlined',
124
+ body: 'This product has revolutionized our marketing efforts.',
125
+ },
126
+ {
127
+ id: 5,
128
+ title: 'Charlie Green',
129
+ subtitle: 'COO, Company E',
130
+ avatarIcon: 'avatar',
131
+ logoIcon: 'infoTriangleFilled',
132
+ body: 'Excellent support and continuous improvements make this a top choice.',
133
+ },
134
+ ]
135
+ },
136
+ };
@@ -0,0 +1,242 @@
1
+ import type { Meta, StoryObj } from '@storybook/angular';
2
+ import { argsToTemplate, moduleMetadata } from '@storybook/angular';
3
+ import { CardComponent } from '../../projects/component-library/src/lib/card/card.component';
4
+ import { HttpClientModule } from '@angular/common/http';
5
+ import { IconService } from '../../projects/component-library/src/lib/icon/icon.service';
6
+ import { ButtonComponent } from '../../projects/component-library/src/lib/button/button.component';
7
+ import { CardFooterActionsComponent } from '../../projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component';
8
+ import { CardTitleActionsComponent } from '../../projects/component-library/src/lib/card/card-title-actions/card-title-actions.component';
9
+ import { ChipsComponent } from '../../projects/component-library/src/lib/chips/chips.component';
10
+ import { IconComponent } from '../../projects/component-library/src/lib/icon/icon.component';
11
+ import { CardCustomHeaderComponent } from '../../projects/component-library/src/lib/card/card-custom-header/card-custom-header.component';
12
+ import { GuideCardComponent } from '../../projects/component-library/src/lib/card/guide-card/guide-card.component';
13
+ import { CheckboxCardComponent } from '../../projects/component-library/src/lib/card/checkbox-card/checkbox-card.component';
14
+
15
+ const meta: Meta<CardComponent> = {
16
+ title: 'Card',
17
+ tags: ['autodocs'],
18
+ component: CardComponent,
19
+ decorators: [
20
+ moduleMetadata({
21
+ imports: [HttpClientModule, ChipsComponent, ButtonComponent, IconComponent, CardFooterActionsComponent, CardTitleActionsComponent, CardCustomHeaderComponent, GuideCardComponent, CheckboxCardComponent],
22
+ providers: [IconService],
23
+ }),
24
+ ],
25
+ argTypes: {
26
+ chip: {
27
+ control: { type: 'object' },
28
+ },
29
+ avatar: {
30
+ control: { type: 'text' },
31
+ },
32
+ },
33
+ render: (args) => ({
34
+ props: { ...args },
35
+ template: `<sa-card ${argsToTemplate(args)}></sa-card>`,
36
+ }),
37
+ };
38
+
39
+ export default meta;
40
+ type Story = StoryObj<CardComponent>;
41
+
42
+ export const ProductListingCardWithAvatar: Story = {
43
+ args: {
44
+ title: "Daton",
45
+ body: "Move your data from 150+ sources and transform into analytics-ready tables",
46
+ avatar: "../assets/datonAvatar.png",
47
+ chip: {
48
+ id: '1',
49
+ text: "Chip",
50
+ type: "regular",
51
+ state: "primary",
52
+ filling: "outline"
53
+ },
54
+ showCardBody: true,
55
+ showCardHeader: false
56
+ },
57
+ render: (args) => ({
58
+ props: args,
59
+ template: `
60
+ <sa-card ${argsToTemplate(args)}>
61
+ <sa-card-footer-actions>
62
+ <sa-button id="document" type="primary" text="Document" size="medium"></sa-button>
63
+ </sa-card-footer-actions>
64
+ </sa-card>
65
+ `
66
+ })
67
+ };
68
+
69
+ export const ProductListingCardWithImage: Story = {
70
+ args: {
71
+ title: "Daton",
72
+ body: "Move your data from 150+ sources and transform into analytics-ready tables",
73
+ image: "../assets/datonAvatar.png",
74
+ imageWidth: "200",
75
+ chip: {
76
+ id: '1',
77
+ text: "Chip",
78
+ type: "regular",
79
+ state: "primary",
80
+ filling: "outline"
81
+ },
82
+ showCardBody: true,
83
+ showCardHeader: false
84
+ },
85
+ render: (args) => ({
86
+ props: args,
87
+ template: `
88
+ <sa-card ${argsToTemplate(args)}>
89
+ <sa-card-footer-actions>
90
+ <sa-button id="document" type="primary" text="Document" size="medium"></sa-button>
91
+ </sa-card-footer-actions>
92
+ </sa-card>
93
+ `
94
+ })
95
+ };
96
+
97
+ export const SignupCard: Story = {
98
+ args: {
99
+ title: "Daton",
100
+ body: "Move your data from 150+ sources and transform into analytics-ready tables.",
101
+ icon: "multiConnectionHub",
102
+ iconSize: "42",
103
+ chip: {
104
+ id: '',
105
+ text: "Chip",
106
+ type: "small",
107
+ state: "primary",
108
+ filling: "outline"
109
+ },
110
+ showCardBody: true,
111
+ showCardHeader: false
112
+ },
113
+ };
114
+
115
+ export const KeyFeaturesCard: Story = {
116
+ args: {
117
+ title: "Connect Effortlessly",
118
+ body: "Access over 250+ data sources with a few clicks, no coding required.",
119
+ icon: "multiConnectionHub",
120
+ iconSize: "42",
121
+ width: "50%",
122
+ height: "300px",
123
+ column: true,
124
+ chip: {
125
+ id: '',
126
+ text: 'Not started yet',
127
+ type: 'small',
128
+ state: 'secondary',
129
+ filling: 'filled'
130
+ },
131
+ showCardBody: true,
132
+ showCardHeader: false
133
+ },
134
+ render: (args) => ({
135
+ props: args,
136
+ template: `
137
+ <sa-card ${argsToTemplate(args)}>
138
+ <sa-card-title-actions>
139
+ <div class="sa-document-action">
140
+ <sa-icon icon="rightChevronOutlined" size="28"></sa-icon>
141
+ </div>
142
+ </sa-card-title-actions>
143
+ </sa-card>
144
+ `
145
+ })
146
+ };
147
+
148
+ export const TestimonialCard: Story = {
149
+ args: {
150
+ body: `"Saras Analytics provides reliable, data-driven insights that empower us to make informed decisions with confidence."`,
151
+ customWrapperClass: 'sa-card-custom-wrapper',
152
+ width: "24.063rem",
153
+ title: 'Jason Panzer',
154
+ subtitle: 'CEO, Innosupps',
155
+ logoIcon: 'innosupps',
156
+ avatar: 'avatar',
157
+ column: false,
158
+ showCardHeader: true,
159
+ showCardBody: true,
160
+ showHeaderBodyDivider: true
161
+ },
162
+ render: (args) => ({
163
+ props: args,
164
+ template: `
165
+ <sa-card ${argsToTemplate(args)}>
166
+ <sa-card-title-header>
167
+ <div class="sa-card-custom-header-container">
168
+ <sa-icon [icon]="avatar" size="50"></sa-icon>
169
+ <div class="sa-card-title-subtitle-container">
170
+ <div class="sa-card-custom-title">{{ title }}</div>
171
+ <div class="sa-card-subtitle">{{ subtitle }}</div>
172
+ </div>
173
+ <div class="sa-card-titleIcon">
174
+ <sa-icon [icon]="logoIcon" customClass="auto-dimensions"></sa-icon>
175
+ </div>
176
+ </div>
177
+ </sa-card-title-header>
178
+ </sa-card>
179
+ `
180
+ })
181
+ };
182
+
183
+ export const GeneralCard: Story = {
184
+ args: {
185
+ title: "Jason Panzer",
186
+ customWrapperClass: 'sa-card-secondary-wrapper',
187
+ body: "Saras Analytics provides reliable, data-driven insights that empower us to make informed decisions with confidence.",
188
+ icon: "avatar",
189
+ iconSize: "54",
190
+ width: "24.063rem",
191
+ column: false,
192
+ showCardBody: true
193
+ },
194
+ };
195
+
196
+ // New meta configuration for GuideCardComponent
197
+ const guideCardMeta: Meta<GuideCardComponent> = {
198
+ title: 'GuideCard',
199
+ component: GuideCardComponent,
200
+ tags: ['autodocs'],
201
+ argTypes: {
202
+ title: { control: 'text' },
203
+ steps: { control: 'object' }
204
+ },
205
+ };
206
+
207
+ export const GuideCard: StoryObj<GuideCardComponent> = {
208
+ args: {
209
+ title: "Getting Started Guide",
210
+ steps: [
211
+ {
212
+ title: "Define your target audience",
213
+ description: "Identify the specific group of people you want to reach with your marketing efforts. Consider demographics, interests, and behaviors."
214
+ }, {
215
+ title: "Set clear marketing goals",
216
+ description: "Establish specific, measurable, achievable, relevant, and time-bound (SMART) objectives for your marketing plan."
217
+ }, {
218
+ title: "Conduct market research",
219
+ description: "Analyze your competitors, industry trends, and customer needs to inform your marketing strategy."
220
+ }, {
221
+ title: "Choose your marketing channels",
222
+ description: "Select the most effective platforms and methods to reach your target audience, such as social media, email marketing, or content marketing."
223
+ }, {
224
+ title: "Develop your marketing message"
225
+ }, {
226
+ title: "Set your marketing budget",
227
+ description: "Allocate resources to different marketing activities based on their potential impact and alignment with your goals."
228
+ }
229
+ ]
230
+ },
231
+ render: (args) => ({
232
+ props: args,
233
+ template: `
234
+ <sa-guide-card
235
+ [title]="title"
236
+ [steps]="steps"
237
+ ></sa-guide-card>
238
+ `
239
+ })
240
+ };
241
+
242
+ GuideCard.storyName = 'Guide Card';