@sarasanalytics-com/design-system 0.0.43 → 0.0.44

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/README.md +13 -34
  2. package/esm2022/interfaces/avatar-interface.mjs +2 -0
  3. package/esm2022/interfaces/button-interface.mjs +10 -0
  4. package/esm2022/interfaces/card-carousel-interface.mjs +2 -0
  5. package/esm2022/interfaces/chip-interface.mjs +2 -0
  6. package/esm2022/interfaces/grid-interface.mjs +2 -0
  7. package/esm2022/interfaces/guide-card-interface.mjs +2 -0
  8. package/esm2022/interfaces/icon-interface.mjs +16 -0
  9. package/esm2022/interfaces/message-banner.mjs +2 -0
  10. package/esm2022/interfaces/option-interface.mjs +2 -0
  11. package/esm2022/interfaces/select-interface.mjs +2 -0
  12. package/esm2022/interfaces/tab-interface.mjs +2 -0
  13. package/esm2022/interfaces/toast-interface.mjs +2 -0
  14. package/esm2022/lib/accordion/accordion.component.mjs +115 -0
  15. package/esm2022/lib/avatar/avatar.component.mjs +56 -0
  16. package/esm2022/lib/button/button.component.mjs +100 -0
  17. package/esm2022/lib/calendar-header/calendar-header.component.mjs +168 -0
  18. package/esm2022/lib/card/card-body/card-body.component.mjs +11 -0
  19. package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +11 -0
  20. package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +11 -0
  21. package/esm2022/lib/card/card-icon/card-icon.component.mjs +11 -0
  22. package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +11 -0
  23. package/esm2022/lib/card/card.component.mjs +97 -0
  24. package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +41 -0
  25. package/esm2022/lib/card/guide-card/guide-card.component.mjs +19 -0
  26. package/esm2022/lib/card-carousel/card-carousel.component.mjs +87 -0
  27. package/esm2022/lib/checkbox/checkbox.component.mjs +38 -0
  28. package/esm2022/lib/chips/chips.component.mjs +62 -0
  29. package/esm2022/lib/component-library.component.mjs +19 -0
  30. package/esm2022/lib/component-library.service.mjs +14 -0
  31. package/esm2022/lib/datepicker/datepicker.component.mjs +40 -0
  32. package/esm2022/lib/form-input/form-input.component.mjs +219 -0
  33. package/esm2022/lib/form-select/form-select.component.mjs +77 -0
  34. package/esm2022/lib/grid-cell/grid-cell.component.mjs +84 -0
  35. package/esm2022/lib/header/header.component.mjs +37 -0
  36. package/esm2022/lib/icon/icon.component.mjs +73 -0
  37. package/esm2022/lib/icon/icon.service.mjs +28 -0
  38. package/esm2022/lib/left-nav/left-nav.component.mjs +146 -0
  39. package/esm2022/lib/list/list.component.mjs +23 -0
  40. package/esm2022/lib/message-banner/message-banner.component.mjs +43 -0
  41. package/esm2022/lib/page-layout/page-layout.component.mjs +21 -0
  42. package/esm2022/lib/progress-bar/progress-bar.component.mjs +29 -0
  43. package/esm2022/lib/radio-button/radio-button.component.mjs +33 -0
  44. package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +59 -0
  45. package/esm2022/lib/spinner/spinner.component.mjs +22 -0
  46. package/esm2022/lib/stepper/stepper.component.mjs +64 -0
  47. package/esm2022/lib/tabs/tabs.component.mjs +38 -0
  48. package/esm2022/lib/toast/toast.component.mjs +100 -0
  49. package/esm2022/lib/tool-tip/tool-tip.component.mjs +41 -0
  50. package/esm2022/public-api.mjs +56 -0
  51. package/esm2022/sarasanalytics-com-design-system.mjs +5 -0
  52. package/esm2022/utils/validators.mjs +97 -0
  53. package/fesm2022/sarasanalytics-com-design-system.mjs +1987 -0
  54. package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -0
  55. package/index.d.ts +5 -0
  56. package/interfaces/avatar-interface.d.ts +6 -0
  57. package/interfaces/button-interface.d.ts +22 -0
  58. package/{projects/component-library/src/interfaces/card-carousel-interface.ts → interfaces/card-carousel-interface.d.ts} +1 -2
  59. package/interfaces/chip-interface.d.ts +11 -0
  60. package/interfaces/grid-interface.d.ts +24 -0
  61. package/interfaces/icon-interface.d.ts +4 -0
  62. package/interfaces/select-interface.d.ts +20 -0
  63. package/interfaces/tab-interface.d.ts +6 -0
  64. package/{projects/component-library/src/interfaces/toast-interface.ts → interfaces/toast-interface.d.ts} +1 -1
  65. package/lib/accordion/accordion.component.d.ts +25 -0
  66. package/lib/avatar/avatar.component.d.ts +18 -0
  67. package/lib/button/button.component.d.ts +32 -0
  68. package/lib/calendar-header/calendar-header.component.d.ts +31 -0
  69. package/lib/card/card-body/card-body.component.d.ts +5 -0
  70. package/lib/card/card-custom-header/card-custom-header.component.d.ts +5 -0
  71. package/lib/card/card-footer-actions/card-footer-actions.component.d.ts +5 -0
  72. package/lib/card/card-icon/card-icon.component.d.ts +5 -0
  73. package/lib/card/card-title-actions/card-title-actions.component.d.ts +5 -0
  74. package/lib/card/card.component.d.ts +28 -0
  75. package/lib/card/checkbox-card/checkbox-card.component.d.ts +12 -0
  76. package/lib/card/guide-card/guide-card.component.d.ts +8 -0
  77. package/lib/card-carousel/card-carousel.component.d.ts +27 -0
  78. package/lib/checkbox/checkbox.component.d.ts +9 -0
  79. package/lib/chips/chips.component.d.ts +22 -0
  80. package/lib/component-library.component.d.ts +5 -0
  81. package/lib/component-library.service.d.ts +6 -0
  82. package/lib/datepicker/datepicker.component.d.ts +9 -0
  83. package/lib/form-input/form-input.component.d.ts +67 -0
  84. package/lib/form-select/form-select.component.d.ts +18 -0
  85. package/lib/grid-cell/grid-cell.component.d.ts +20 -0
  86. package/lib/header/header.component.d.ts +14 -0
  87. package/lib/icon/icon.component.d.ts +24 -0
  88. package/lib/icon/icon.service.d.ts +12 -0
  89. package/lib/left-nav/left-nav.component.d.ts +47 -0
  90. package/lib/list/list.component.d.ts +10 -0
  91. package/lib/message-banner/message-banner.component.d.ts +19 -0
  92. package/lib/page-layout/page-layout.component.d.ts +8 -0
  93. package/lib/progress-bar/progress-bar.component.d.ts +13 -0
  94. package/lib/radio-button/radio-button.component.d.ts +12 -0
  95. package/lib/scrolling-cards/scrolling-cards.component.d.ts +36 -0
  96. package/lib/spinner/spinner.component.d.ts +7 -0
  97. package/lib/stepper/stepper.component.d.ts +17 -0
  98. package/lib/tabs/tabs.component.d.ts +15 -0
  99. package/lib/toast/toast.component.d.ts +33 -0
  100. package/lib/tool-tip/tool-tip.component.d.ts +15 -0
  101. package/package.json +19 -74
  102. package/{projects/component-library/src/public-api.ts → public-api.d.ts} +0 -12
  103. package/utils/validators.d.ts +6 -0
  104. package/.editorconfig +0 -16
  105. package/.eslintrc.json +0 -23
  106. package/.storybook/main.ts +0 -21
  107. package/.storybook/manager.ts +0 -17
  108. package/.storybook/preview-head.html +0 -5
  109. package/.storybook/preview.ts +0 -66
  110. package/.storybook/tsconfig.doc.json +0 -10
  111. package/.storybook/tsconfig.json +0 -11
  112. package/.storybook/typings.d.ts +0 -4
  113. package/.vscode/extensions.json +0 -7
  114. package/.vscode/launch.json +0 -20
  115. package/.vscode/settings.json +0 -13
  116. package/.vscode/tasks.json +0 -42
  117. package/angular.json +0 -195
  118. package/build-storybook.log +0 -45
  119. package/documentation.json +0 -0
  120. package/generate-public-api.js +0 -59
  121. package/projects/component-library/README.md +0 -24
  122. package/projects/component-library/ng-package.json +0 -8
  123. package/projects/component-library/package.json +0 -12
  124. package/projects/component-library/src/interfaces/avatar-interface.ts +0 -6
  125. package/projects/component-library/src/interfaces/button-interface.ts +0 -37
  126. package/projects/component-library/src/interfaces/chip-interface.ts +0 -11
  127. package/projects/component-library/src/interfaces/grid-interface.ts +0 -24
  128. package/projects/component-library/src/interfaces/icon-interface.ts +0 -21
  129. package/projects/component-library/src/interfaces/select-interface.ts +0 -20
  130. package/projects/component-library/src/interfaces/tab-interface.ts +0 -6
  131. package/projects/component-library/src/lib/accordion/accordion.component.css +0 -188
  132. package/projects/component-library/src/lib/accordion/accordion.component.html +0 -151
  133. package/projects/component-library/src/lib/accordion/accordion.component.spec.ts +0 -23
  134. package/projects/component-library/src/lib/accordion/accordion.component.ts +0 -129
  135. package/projects/component-library/src/lib/avatar/avatar.component.css +0 -48
  136. package/projects/component-library/src/lib/avatar/avatar.component.html +0 -5
  137. package/projects/component-library/src/lib/avatar/avatar.component.spec.ts +0 -23
  138. package/projects/component-library/src/lib/avatar/avatar.component.ts +0 -50
  139. package/projects/component-library/src/lib/button/button.component.css +0 -145
  140. package/projects/component-library/src/lib/button/button.component.html +0 -25
  141. package/projects/component-library/src/lib/button/button.component.spec.ts +0 -23
  142. package/projects/component-library/src/lib/button/button.component.ts +0 -82
  143. package/projects/component-library/src/lib/calendar-header/calendar-header.component.css +0 -67
  144. package/projects/component-library/src/lib/calendar-header/calendar-header.component.html +0 -20
  145. package/projects/component-library/src/lib/calendar-header/calendar-header.component.spec.ts +0 -23
  146. package/projects/component-library/src/lib/calendar-header/calendar-header.component.ts +0 -191
  147. package/projects/component-library/src/lib/card/card-body/card-body.component.css +0 -0
  148. package/projects/component-library/src/lib/card/card-body/card-body.component.html +0 -1
  149. package/projects/component-library/src/lib/card/card-body/card-body.component.spec.ts +0 -23
  150. package/projects/component-library/src/lib/card/card-body/card-body.component.ts +0 -12
  151. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.css +0 -70
  152. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.html +0 -1
  153. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.spec.ts +0 -23
  154. package/projects/component-library/src/lib/card/card-custom-header/card-custom-header.component.ts +0 -13
  155. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.css +0 -4
  156. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.html +0 -3
  157. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.spec.ts +0 -23
  158. package/projects/component-library/src/lib/card/card-footer-actions/card-footer-actions.component.ts +0 -12
  159. package/projects/component-library/src/lib/card/card-icon/card-icon.component.css +0 -0
  160. package/projects/component-library/src/lib/card/card-icon/card-icon.component.html +0 -1
  161. package/projects/component-library/src/lib/card/card-icon/card-icon.component.spec.ts +0 -23
  162. package/projects/component-library/src/lib/card/card-icon/card-icon.component.ts +0 -12
  163. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.css +0 -3
  164. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.html +0 -1
  165. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.spec.ts +0 -23
  166. package/projects/component-library/src/lib/card/card-title-actions/card-title-actions.component.ts +0 -12
  167. package/projects/component-library/src/lib/card/card.component.css +0 -149
  168. package/projects/component-library/src/lib/card/card.component.html +0 -46
  169. package/projects/component-library/src/lib/card/card.component.spec.ts +0 -23
  170. package/projects/component-library/src/lib/card/card.component.ts +0 -47
  171. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.css +0 -79
  172. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.html +0 -55
  173. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.spec.ts +0 -23
  174. package/projects/component-library/src/lib/card/checkbox-card/checkbox-card.component.ts +0 -44
  175. package/projects/component-library/src/lib/card/guide-card/guide-card.component.css +0 -80
  176. package/projects/component-library/src/lib/card/guide-card/guide-card.component.html +0 -24
  177. package/projects/component-library/src/lib/card/guide-card/guide-card.component.spec.ts +0 -23
  178. package/projects/component-library/src/lib/card/guide-card/guide-card.component.ts +0 -19
  179. package/projects/component-library/src/lib/card-carousel/card-carousel.component.css +0 -91
  180. package/projects/component-library/src/lib/card-carousel/card-carousel.component.html +0 -54
  181. package/projects/component-library/src/lib/card-carousel/card-carousel.component.spec.ts +0 -23
  182. package/projects/component-library/src/lib/card-carousel/card-carousel.component.ts +0 -89
  183. package/projects/component-library/src/lib/checkbox/checkbox.component.css +0 -79
  184. package/projects/component-library/src/lib/checkbox/checkbox.component.html +0 -27
  185. package/projects/component-library/src/lib/checkbox/checkbox.component.spec.ts +0 -23
  186. package/projects/component-library/src/lib/checkbox/checkbox.component.ts +0 -38
  187. package/projects/component-library/src/lib/chips/chips.component.css +0 -129
  188. package/projects/component-library/src/lib/chips/chips.component.html +0 -17
  189. package/projects/component-library/src/lib/chips/chips.component.spec.ts +0 -23
  190. package/projects/component-library/src/lib/chips/chips.component.ts +0 -54
  191. package/projects/component-library/src/lib/component-library.component.spec.ts +0 -23
  192. package/projects/component-library/src/lib/component-library.component.ts +0 -16
  193. package/projects/component-library/src/lib/component-library.service.spec.ts +0 -16
  194. package/projects/component-library/src/lib/component-library.service.ts +0 -9
  195. package/projects/component-library/src/lib/datepicker/datepicker.component.css +0 -33
  196. package/projects/component-library/src/lib/datepicker/datepicker.component.html +0 -11
  197. package/projects/component-library/src/lib/datepicker/datepicker.component.spec.ts +0 -23
  198. package/projects/component-library/src/lib/datepicker/datepicker.component.ts +0 -36
  199. package/projects/component-library/src/lib/form-input/form-input.component.css +0 -164
  200. package/projects/component-library/src/lib/form-input/form-input.component.html +0 -55
  201. package/projects/component-library/src/lib/form-input/form-input.component.spec.ts +0 -23
  202. package/projects/component-library/src/lib/form-input/form-input.component.ts +0 -282
  203. package/projects/component-library/src/lib/form-select/form-select.component.css +0 -158
  204. package/projects/component-library/src/lib/form-select/form-select.component.html +0 -38
  205. package/projects/component-library/src/lib/form-select/form-select.component.spec.ts +0 -23
  206. package/projects/component-library/src/lib/form-select/form-select.component.ts +0 -72
  207. package/projects/component-library/src/lib/grid-cell/grid-cell.component.css +0 -78
  208. package/projects/component-library/src/lib/grid-cell/grid-cell.component.html +0 -31
  209. package/projects/component-library/src/lib/grid-cell/grid-cell.component.spec.ts +0 -23
  210. package/projects/component-library/src/lib/grid-cell/grid-cell.component.ts +0 -89
  211. package/projects/component-library/src/lib/header/header.component.css +0 -62
  212. package/projects/component-library/src/lib/header/header.component.html +0 -23
  213. package/projects/component-library/src/lib/header/header.component.spec.ts +0 -23
  214. package/projects/component-library/src/lib/header/header.component.ts +0 -28
  215. package/projects/component-library/src/lib/icon/icon.component.css +0 -65
  216. package/projects/component-library/src/lib/icon/icon.component.html +0 -9
  217. package/projects/component-library/src/lib/icon/icon.component.ts +0 -64
  218. package/projects/component-library/src/lib/icon/icon.service.ts +0 -26
  219. package/projects/component-library/src/lib/left-nav/left-nav.component.css +0 -109
  220. package/projects/component-library/src/lib/left-nav/left-nav.component.html +0 -51
  221. package/projects/component-library/src/lib/left-nav/left-nav.component.spec.ts +0 -23
  222. package/projects/component-library/src/lib/left-nav/left-nav.component.ts +0 -180
  223. package/projects/component-library/src/lib/list/list.component.css +0 -28
  224. package/projects/component-library/src/lib/list/list.component.html +0 -10
  225. package/projects/component-library/src/lib/list/list.component.spec.ts +0 -23
  226. package/projects/component-library/src/lib/list/list.component.ts +0 -15
  227. package/projects/component-library/src/lib/message-banner/message-banner.component.css +0 -52
  228. package/projects/component-library/src/lib/message-banner/message-banner.component.html +0 -15
  229. package/projects/component-library/src/lib/message-banner/message-banner.component.spec.ts +0 -23
  230. package/projects/component-library/src/lib/message-banner/message-banner.component.ts +0 -31
  231. package/projects/component-library/src/lib/page-layout/page-layout.component.css +0 -76
  232. package/projects/component-library/src/lib/page-layout/page-layout.component.html +0 -30
  233. package/projects/component-library/src/lib/page-layout/page-layout.component.spec.ts +0 -23
  234. package/projects/component-library/src/lib/page-layout/page-layout.component.ts +0 -14
  235. package/projects/component-library/src/lib/progress-bar/progress-bar.component.css +0 -30
  236. package/projects/component-library/src/lib/progress-bar/progress-bar.component.html +0 -4
  237. package/projects/component-library/src/lib/progress-bar/progress-bar.component.spec.ts +0 -23
  238. package/projects/component-library/src/lib/progress-bar/progress-bar.component.ts +0 -24
  239. package/projects/component-library/src/lib/radio-button/radio-button.component.css +0 -128
  240. package/projects/component-library/src/lib/radio-button/radio-button.component.html +0 -28
  241. package/projects/component-library/src/lib/radio-button/radio-button.component.spec.ts +0 -23
  242. package/projects/component-library/src/lib/radio-button/radio-button.component.ts +0 -35
  243. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.css +0 -118
  244. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.html +0 -11
  245. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.spec.ts +0 -23
  246. package/projects/component-library/src/lib/scrolling-cards/scrolling-cards.component.ts +0 -74
  247. package/projects/component-library/src/lib/spinner/spinner.component.css +0 -41
  248. package/projects/component-library/src/lib/spinner/spinner.component.html +0 -1
  249. package/projects/component-library/src/lib/spinner/spinner.component.spec.ts +0 -23
  250. package/projects/component-library/src/lib/spinner/spinner.component.ts +0 -15
  251. package/projects/component-library/src/lib/stepper/stepper.component.css +0 -96
  252. package/projects/component-library/src/lib/stepper/stepper.component.html +0 -14
  253. package/projects/component-library/src/lib/stepper/stepper.component.spec.ts +0 -23
  254. package/projects/component-library/src/lib/stepper/stepper.component.ts +0 -61
  255. package/projects/component-library/src/lib/tabs/tabs.component.css +0 -100
  256. package/projects/component-library/src/lib/tabs/tabs.component.html +0 -16
  257. package/projects/component-library/src/lib/tabs/tabs.component.spec.ts +0 -23
  258. package/projects/component-library/src/lib/tabs/tabs.component.ts +0 -37
  259. package/projects/component-library/src/lib/toast/toast.component.css +0 -115
  260. package/projects/component-library/src/lib/toast/toast.component.html +0 -29
  261. package/projects/component-library/src/lib/toast/toast.component.spec.ts +0 -23
  262. package/projects/component-library/src/lib/toast/toast.component.ts +0 -87
  263. package/projects/component-library/src/lib/tool-tip/tool-tip.component.css +0 -144
  264. package/projects/component-library/src/lib/tool-tip/tool-tip.component.html +0 -31
  265. package/projects/component-library/src/lib/tool-tip/tool-tip.component.spec.ts +0 -23
  266. package/projects/component-library/src/lib/tool-tip/tool-tip.component.ts +0 -37
  267. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.css +0 -0
  268. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.html +0 -22
  269. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.spec.ts +0 -23
  270. package/projects/component-library/src/shared/formly-field-wrapper/formly-field-wrapper.component.ts +0 -13
  271. package/projects/component-library/src/utils/validators.ts +0 -100
  272. package/projects/component-library/tsconfig.lib.json +0 -14
  273. package/projects/component-library/tsconfig.lib.prod.json +0 -10
  274. package/projects/component-library/tsconfig.spec.json +0 -14
  275. package/sarasanalytics-com-design-system-0.0.21.tgz +0 -0
  276. package/src/Saras-logo.svg +0 -15
  277. package/src/app/app.component.css +0 -82
  278. package/src/app/app.component.html +0 -663
  279. package/src/app/app.component.spec.ts +0 -29
  280. package/src/app/app.component.ts +0 -1341
  281. package/src/app/app.config.ts +0 -56
  282. package/src/app/app.routes.ts +0 -3
  283. package/src/app/data.ts +0 -52
  284. package/src/app/kitchen-sink/kitchen-sink.component.css +0 -30
  285. package/src/app/kitchen-sink/kitchen-sink.component.html +0 -7
  286. package/src/app/kitchen-sink/kitchen-sink.component.spec.ts +0 -23
  287. package/src/app/kitchen-sink/kitchen-sink.component.ts +0 -92
  288. package/src/assets/.gitkeep +0 -0
  289. package/src/assets/analysis.svg +0 -1
  290. package/src/assets/arrowRightOutlined.svg +0 -1
  291. package/src/assets/avatar.svg +0 -1
  292. package/src/assets/bpn.svg +0 -1
  293. package/src/assets/businessStatsFilled.svg +0 -1
  294. package/src/assets/channelkey.svg +0 -1
  295. package/src/assets/chatHelpOutlined.svg +0 -1
  296. package/src/assets/checkCircleFilled.svg +0 -1
  297. package/src/assets/checkCircleOutlined.svg +0 -1
  298. package/src/assets/checkOutlined.svg +0 -1
  299. package/src/assets/circleFilled.svg +0 -1
  300. package/src/assets/closeBlueOutlined.svg +0 -1
  301. package/src/assets/closeCircleFilled.svg +0 -1
  302. package/src/assets/closeOutlined.svg +0 -1
  303. package/src/assets/dataonavatar.svg +0 -1
  304. package/src/assets/datonAvatar.png +0 -0
  305. package/src/assets/desktopSpeakerOutlined.svg +0 -1
  306. package/src/assets/disabledCheckboxFilled.svg +0 -1
  307. package/src/assets/doubleDownOutlined.svg +0 -1
  308. package/src/assets/downChevronOutlined.svg +0 -3
  309. package/src/assets/downOutlined.svg +0 -1
  310. package/src/assets/errorCircleOutlined.svg +0 -1
  311. package/src/assets/errorCrossOutlined.svg +0 -3
  312. package/src/assets/eyeFilled.svg +0 -1
  313. package/src/assets/eyeOff.svg +0 -3
  314. package/src/assets/eyeOutlined.svg +0 -1
  315. package/src/assets/formDetailsOutlined.svg +0 -1
  316. package/src/assets/gridViewOutlined.svg +0 -1
  317. package/src/assets/headsetOutlined.svg +0 -3
  318. package/src/assets/homeOutlined.svg +0 -1
  319. package/src/assets/icons/analysis1.svg +0 -1
  320. package/src/assets/infoCircleOutlined.svg +0 -3
  321. package/src/assets/infoTriangleFilled.svg +0 -1
  322. package/src/assets/infoTriangleOutlined.svg +0 -1
  323. package/src/assets/innosupps.svg +0 -1
  324. package/src/assets/leftChevronCircle.svg +0 -2
  325. package/src/assets/locationOutlined.svg +0 -1
  326. package/src/assets/loginDashboard.png +0 -0
  327. package/src/assets/mailOutlined.svg +0 -1
  328. package/src/assets/multiConnectionHub.svg +0 -1
  329. package/src/assets/murad.svg +0 -1
  330. package/src/assets/personOutlined.svg +0 -1
  331. package/src/assets/pricingIcon.svg +0 -3
  332. package/src/assets/rightChevronCircle.svg +0 -1
  333. package/src/assets/rightChevronOutlined.svg +0 -1
  334. package/src/assets/sarasFullLogo.svg +0 -13
  335. package/src/assets/sarasWhite.svg +0 -1
  336. package/src/assets/settingsOutlined.svg +0 -1
  337. package/src/assets/sourcesOutlined.svg +0 -1
  338. package/src/assets/tabDesktopArrowClockwiseOutlined.svg +0 -1
  339. package/src/assets/targetScanOutlined.svg +0 -1
  340. package/src/assets/timerOutlined.svg +0 -5
  341. package/src/assets/upwardTriangleFilled.svg +0 -1
  342. package/src/custom-theme.scss +0 -37
  343. package/src/favicon.ico +0 -0
  344. package/src/index.html +0 -23
  345. package/src/main.ts +0 -6
  346. package/src/stories/GettingStarted.mdx +0 -233
  347. package/src/stories/KitchenSink.stories.ts +0 -109
  348. package/src/stories/accordion.stories.ts +0 -234
  349. package/src/stories/avatar.stories.ts +0 -45
  350. package/src/stories/card-carousel.stories.ts +0 -136
  351. package/src/stories/card.stories.ts +0 -242
  352. package/src/stories/checkbox.stories.ts +0 -238
  353. package/src/stories/chips.stories.ts +0 -61
  354. package/src/stories/custom-button.stories.ts +0 -89
  355. package/src/stories/datepicker.stories.ts +0 -78
  356. package/src/stories/form-input.stories.ts +0 -166
  357. package/src/stories/gridCell.stories.ts +0 -234
  358. package/src/stories/header.stories.ts +0 -61
  359. package/src/stories/icon.stories.ts +0 -65
  360. package/src/stories/leftnav.stories.ts +0 -67
  361. package/src/stories/message-banner.stories.ts +0 -116
  362. package/src/stories/page-layout.stories.ts +0 -200
  363. package/src/stories/progress-bar.stories.ts +0 -40
  364. package/src/stories/radio-button.stories.ts +0 -80
  365. package/src/stories/scrolling-card.stories.ts +0 -36
  366. package/src/stories/selectInput.stories.ts +0 -176
  367. package/src/stories/stepper.stories.ts +0 -92
  368. package/src/stories/tabs.stories.ts +0 -97
  369. package/src/stories/toast.stories.ts +0 -74
  370. package/src/stories/tool-tip.stories.ts +0 -45
  371. package/src/svg.d.ts +0 -1
  372. package/tsconfig.app.json +0 -14
  373. package/tsconfig.json +0 -42
  374. package/tsconfig.spec.json +0 -14
  375. /package/{projects/component-library/src/interfaces/guide-card-interface.ts → interfaces/guide-card-interface.d.ts} +0 -0
  376. /package/{projects/component-library/src/interfaces/message-banner.ts → interfaces/message-banner.d.ts} +0 -0
  377. /package/{projects/component-library/src/interfaces/option-interface.ts → interfaces/option-interface.d.ts} +0 -0
  378. /package/{src → styles}/styles.css +0 -0
@@ -1,65 +0,0 @@
1
- .sa-icon {
2
- display: inline-flex;
3
- /* Align with text */
4
- align-items: center;
5
- /* Center vertically */
6
- justify-content: center;
7
- /* Center horizontally */
8
- color: inherit;
9
- /* Inherit color from parent */
10
- font-size: inherit;
11
- /* Inherit font size */
12
- }
13
-
14
- .sa-icon>svg {
15
- width: 1em;
16
- /* Responsive to font size */
17
- height: 1em;
18
- /* Responsive to font size */
19
- vertical-align: middle;
20
- /* Align with text */
21
- }
22
-
23
- .sa-icon.auto-dimensions>svg {
24
- width: fit-content;
25
- height: fit-content;
26
- }
27
-
28
- .colored-icon {
29
- color: var(--primary-500);
30
- }
31
-
32
- .disabled-icon {
33
- color: var(--icon-grey1);
34
- }
35
-
36
- .disabled-checkbox-icon {
37
- color: var(--grey-200);
38
- }
39
-
40
- .accordion-info-icon.colored-icon {
41
- color: var(--icon-grey1);
42
- }
43
-
44
- .sa-card-checkbox-wrapper .sa-card-title-logo .sa-icon {
45
- display: flex;
46
- width: var(--medium-28px, 28px);
47
- padding: var(--small-4px, 4px);
48
- align-items: center;
49
- border-radius: var(--small-4px, 4px);
50
- background: var(--primary-50, #F4EBFF);
51
- }
52
-
53
- .sa-card-checkbox-wrapper .sa-card-title-logo.disabled-card .sa-icon {
54
- background: var(--grey-50, #F2F4F7);
55
- }
56
-
57
- .checkbox-card-action-button .sa-icon>svg {
58
- height: 1.3rem;
59
- width: 1.05rem;
60
- }
61
-
62
- .sa-icon.accordion-info-icon>svg {
63
- width: var(--medium-20px, 20px);
64
- height: var(--medium-20px, 20px);
65
- }
@@ -1,9 +0,0 @@
1
- @if(img){
2
- <img [src]="img" [height]="size" [width]="size">
3
- }@else{
4
- <span class="sa-icon" [ngClass]="{
5
- 'url-icon': iconUrl
6
- }" [ngClass]="customClass ? [customClass] : []" [innerHTML]="svgIcon" [ngStyle]="iconStyles">
7
-
8
- </span>
9
- }
@@ -1,64 +0,0 @@
1
- import { ChangeDetectorRef, Component, inject, Input, SimpleChanges, ViewEncapsulation } from '@angular/core';
2
- import { IconService } from './icon.service';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
- import { CommonModule } from '@angular/common';
5
- import { IconName } from '../../interfaces/icon-interface';
6
-
7
- @Component({
8
- selector: 'sa-icon',
9
- standalone: true,
10
- imports: [CommonModule],
11
- templateUrl: './icon.component.html',
12
- styleUrl: './icon.component.css',
13
- encapsulation: ViewEncapsulation.None
14
- })
15
- export class IconComponent {
16
- iconService = inject(IconService);
17
- sanitizer = inject(DomSanitizer);
18
-
19
- @Input('img') img: string;
20
-
21
- @Input() icon?: IconName;
22
- @Input('size') size: string;
23
- @Input('color') color: string;
24
- @Input('iconPath') iconPath: string = "";
25
- @Input() iconUrl: string = "";
26
- @Input('customClass') customClass: string = "";
27
-
28
- svgIcon: any;
29
- iconStyles: any = {
30
- // fontSize: '44px',
31
- // color: 'red'
32
- };
33
-
34
- constructor(private cdr: ChangeDetectorRef) { }
35
- ngOnInit() {
36
- }
37
- ngOnChanges(changes: SimpleChanges) {
38
-
39
-
40
- if (changes['iconPath'] && !!this.iconPath.trim()) {
41
- this.iconService.getSvg(this.icon || "", this.iconPath).subscribe((svg) => {
42
- this.svgIcon = this.sanitizer.bypassSecurityTrustHtml(svg);
43
- })
44
- }
45
- if (changes['icon'] || changes['iconUrl']) {
46
- const icon = this.icon || this.iconUrl;
47
- if (icon) {
48
- this.iconService.getSvg(icon).subscribe((svg) => {
49
- this.svgIcon = this.sanitizer.bypassSecurityTrustHtml(svg);
50
- this.cdr.detectChanges()
51
- })
52
- } else {
53
- this.svgIcon = '';
54
- }
55
- }
56
- if (changes['size'] || changes['color']) {
57
- this.iconStyles.fontSize = this.size + 'px';
58
- this.iconStyles.width = this.iconUrl ? "fit-content" : '1em';
59
- this.iconStyles.height = this.iconUrl ? "fit-content" : '1em';
60
- this.iconStyles.color = this.color;
61
- }
62
- }
63
-
64
- }
@@ -1,26 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { inject, Inject, Injectable } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
-
5
- @Injectable({
6
- providedIn: 'root'
7
- })
8
- export class IconService {
9
-
10
- http = inject(HttpClient);
11
- private path: string = 'assets/';
12
-
13
- constructor() { }
14
-
15
- getSvg(iconName: string, customPath?: string): Observable<string> {
16
- const isUrl = /^https?:\/\//.test(iconName);
17
- const customSvgUrl = customPath ? customPath + (iconName ? iconName + '.svg' : '') : '';
18
- const svgUrl = isUrl ? iconName : `${this.path}${iconName}.svg`;
19
-
20
- return this.http.get(customSvgUrl || svgUrl, { headers: { 'skip': 'true' }, responseType: 'text' });
21
- }
22
-
23
- setIconPath(path: string) {
24
- if (path) this.path = path;
25
- }
26
- }
@@ -1,109 +0,0 @@
1
- .sa-left-nav {
2
- height: calc(100vh - 32px);
3
- width: calc(100vw - 32px);
4
- padding: 8px;
5
- display: flex;
6
- }
7
-
8
- .sa-left-nav-logo {
9
- display: block;
10
- width: 40px;
11
- margin: auto;
12
- padding: 20px 0;
13
- border-bottom: 1px #fff solid;
14
- min-height: 40px;
15
- }
16
-
17
- .sa-logo {
18
- height: 40px;
19
- width: 20px;
20
- display: block;
21
- margin: auto;
22
- background-position: center;
23
- background: url('../../../../../src/assets/sarasWhite.svg') no-repeat;
24
- }
25
-
26
- .sa-left-nav-container {
27
- height: inherit;
28
- width: 64px;
29
- background-color: var(--primary-900);
30
- border-radius: 8px;
31
- padding: 8px;
32
- box-sizing: border-box;
33
- display: flex;
34
- flex-direction: column;
35
- justify-content: space-evenly;
36
- }
37
-
38
- .sa-left-nav-items {
39
- flex: 1;
40
- overflow-y: auto;
41
- }
42
-
43
- .sa-left-nav-items-container {
44
- padding: 40px 0;
45
- height: 100%;
46
- overflow: auto;
47
- box-sizing: border-box;
48
- }
49
-
50
- .sa-left-nav-item,
51
- .sa-left-nav-footer-item {
52
- height: 40px;
53
- width: 40px;
54
- margin: 8px auto;
55
- cursor: pointer;
56
- border-radius: 4px;
57
- display: flex;
58
- justify-content: center;
59
- align-items: center;
60
- }
61
-
62
- ::-webkit-scrollbar {
63
- display: none;
64
- }
65
-
66
- .sa-left-nav-footer-item {
67
- margin: 4px auto;
68
- }
69
-
70
- .sa-left-nav-item:hover,
71
- .sa-left-nav-item.active,
72
- .sa-left-nav-footer-item.active,
73
- .sa-left-nav-footer-item:hover {
74
- background-color: var(--primary-500);
75
- }
76
-
77
- .sa-left-nav-item-name,
78
- .sa-left-nav-item-icon,
79
- .sa-left-nav-footer-icon,
80
- .sa-left-nav-footer-name {
81
- /* background-size: 24px;
82
- background-position: center;
83
- background-repeat: no-repeat;
84
- height: 40px;
85
- width: 40px;
86
- display: block; */
87
- height: 24px;
88
- width: 24px;
89
- display: block;
90
- }
91
-
92
- .sa-left-nav-item-name,
93
- mn.sa-left-nav-footer-name {
94
- display: flex;
95
- justify-content: center;
96
- align-items: center;
97
- /* replace with avatar */
98
- }
99
-
100
- .sa-left-nav-footer {
101
- min-height: fit-content;
102
- border-top: 1px solid #fff;
103
- }
104
-
105
- .sa-left-nav-content {
106
- width: calc(100% - 64px)
107
- }
108
-
109
- /* background: url('../../../../../src/assets/saras_white.svg') no-repeat; */
@@ -1,51 +0,0 @@
1
- <div class="sa-left-nav">
2
-
3
- <div class="sa-left-nav-container">
4
- <div class="sa-left-nav-logo">
5
- <!-- <span class="sa-logo"></span> -->
6
- <sa-icon icon="sarasWhite" size="40"></sa-icon>
7
- </div>
8
- <div class="sa-left-nav-items">
9
- @if(data && data.items && !!data.items.length){
10
- <div class="sa-left-nav-items-container">
11
- <ng-container *ngFor="let item of data.items; let i = index">
12
- <div class="sa-left-nav-item" [ngClass]="item.active ? 'active' : '' "
13
- (click)="onNavItemClick(item, i, $event)" (mouseenter)="onNavItemBlur(item,i,$event,tooltip)"
14
- #tooltip="matTooltip" [matTooltip]="item.tooltip" matTooltipPosition="right">
15
-
16
- <sa-icon class="sa-left-nav-item-icon" [icon]="item.icon" size="24" color="white"></sa-icon>
17
- <!-- <span class="sa-left-nav-item-icon"
18
- [ngStyle]="{ 'background-image': 'url(' + item.icon_url + ')' }"></span> -->
19
- </div>
20
- </ng-container>
21
- </div>
22
- }
23
- </div>
24
- <div class="sa-left-nav-footer">
25
- @if(data && data.footerItems && !!data.footerItems.length){
26
- <div class="sa-left-nav-footer-container">
27
- <ng-container *ngFor="let item of data.footerItems; let i = index">
28
- <div class="sa-left-nav-footer-item" [ngClass]="item.active ? 'active' : '' "
29
- (click)="onFooterItemClick(item, i, $event)"
30
- (mouseenter)="onFooterItemBlur(item,i,$event,tooltip)" #tooltip="matTooltip"
31
- [matTooltip]="item.tooltip" matTooltipPosition="right">
32
- @if(item.type === 'AVATAR'){
33
- <!-- <span class="sa-left-nav-footer-name">ET</span> -->
34
- <sa-avatar altText="ET" [imagePath]="''" size="extra-small"></sa-avatar>
35
- }@else{
36
- <sa-icon class="sa-left-nav-footer-icon" [icon]="item.icon" size="24" color="white"></sa-icon>
37
- <!-- <span class="sa-left-nav-footer-icon"
38
- [ngStyle]="{ 'background-image': 'url(' + item.icon_url || '' + ')' }"></span> -->
39
- }
40
- </div>
41
- </ng-container>
42
- </div>
43
- }
44
- </div>
45
- </div>
46
-
47
- <div class="sa-left-nav-content">
48
- <ng-content></ng-content>
49
- </div>
50
-
51
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { LeftNavComponent } from './left-nav.component';
4
-
5
- describe('LeftNavComponent', () => {
6
- let component: LeftNavComponent;
7
- let fixture: ComponentFixture<LeftNavComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [LeftNavComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(LeftNavComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,180 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { Component, EventEmitter, inject, Inject, Input, Output } from '@angular/core';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { AvatarComponent } from '../avatar/avatar.component';
5
- import { IconComponent } from '../icon/icon.component';
6
- // import { AvatarComponent } from '../avatar/avatar.component';
7
-
8
- import {
9
- MatTooltip,
10
- MatTooltipModule
11
- } from '@angular/material/tooltip';
12
- @Component({
13
- selector: 'sa-left-nav',
14
- standalone: true,
15
- imports: [
16
- CommonModule,
17
- AvatarComponent,
18
- IconComponent,
19
- MatTooltipModule
20
- ],
21
- templateUrl: './left-nav.component.html',
22
- styleUrl: './left-nav.component.css'
23
- })
24
- export class LeftNavComponent {
25
- @Input('data') data: ILeftNav;
26
- @Output('clickEvent') clickEvent: EventEmitter<ILeftNavClickEvent>;
27
- @Output('hoverEvent') hoverEvent: EventEmitter<ILeftNavBlurEvent>;
28
-
29
- // @Inject(ActivatedRoute) activeRouteService: ActivatedRoute;
30
- // @Inject(Router) routerService: Router;
31
-
32
- private activeItem: ILeftNavItem | null;
33
-
34
- constructor(private route: ActivatedRoute, private router: Router) {
35
- this.clickEvent = new EventEmitter();
36
- this.hoverEvent = new EventEmitter();
37
- }
38
-
39
- ngOnInit() {
40
- console.log(this.data.items);
41
- if (!this.data.footerItems) {
42
- this.data.footerItems = data.footerItems;
43
- }
44
- if (this.data?.items?.length) {
45
- this.onNavItemClick(this.data.items[0], 0);
46
- }
47
- }
48
-
49
- setItemActive(index: number) {
50
- try {
51
- if (this.activeItem) {
52
- this.activeItem.active = false;
53
- }
54
- if (this.data?.items?.length) {
55
- this.activeItem = this.data.items[index];
56
- this.activeItem.active = true;
57
- }
58
- } catch (e) {
59
- console.log(e);
60
- }
61
- }
62
-
63
- onNavItemClick(item: ILeftNavItem, index: number, event: any = null) {
64
- console.log(item, index);
65
-
66
- this.clickEvent.emit({
67
- event,
68
- type: 'NAV_ITEM_CLICK',
69
- item
70
- });
71
-
72
- if (!item.disable && item.path) {
73
- this.setItemActive(index);
74
- this.router.navigate([item.path])
75
- }
76
- }
77
-
78
- onFooterItemClick(item: ILeftNavItem, index: number, event: any = null) {
79
- this.clickEvent.emit({
80
- event,
81
- type: 'FOOTER_ITEM_CLICK',
82
- item
83
- });
84
- }
85
- onFooterItemBlur(item: ILeftNavItem, index: number, event: any = null, tooltip: MatTooltip) {
86
- // console.log("blur", item, index);
87
- this.hoverEvent.emit({
88
- event,
89
- type: 'FOOTER_ITEM_HOVER',
90
- item
91
- });
92
- if (tooltip) {
93
- tooltip.show();
94
- }
95
- }
96
- onNavItemBlur(item: ILeftNavItem, index: number, event: any = null, tooltip: MatTooltip) {
97
- // console.log(item, index);
98
- this.hoverEvent.emit({
99
- event,
100
- type: 'NAV_ITEM_HOVER',
101
- item
102
- });
103
- if (tooltip) {
104
- tooltip.show();
105
- }
106
- }
107
-
108
-
109
- }
110
-
111
- export interface ILeftNav {
112
- items?: ILeftNavItem[];
113
- footerItems?: ILeftNavItem[];
114
- }
115
- export interface ILeftNavItem {
116
- title: string,
117
- // icon_url?: string,
118
- icon?: string,
119
- disable?: boolean,
120
- tooltip?: string,
121
- relativePath?: boolean,
122
- path?: string,
123
- active?: boolean,
124
- type?: 'ICON' | 'AVATAR';
125
- }
126
- export interface ILeftNavClickEvent {
127
- type: 'NAV_ITEM_CLICK' | 'FOOTER_ITEM_CLICK' | 'LOGO_CLICK';
128
- event: any,
129
- item: ILeftNavItem
130
- }
131
- export interface ILeftNavBlurEvent {
132
- type: 'NAV_ITEM_HOVER' | 'FOOTER_ITEM_HOVER' | 'LOGO_HOVER';
133
- event: any,
134
- item: ILeftNavItem
135
- }
136
-
137
- export enum ILeftNavTypes {
138
-
139
- }
140
-
141
- const data: ILeftNav = {
142
- items: [{
143
- title: 'Home',
144
- icon: '',
145
- disable: false,
146
- tooltip: '',
147
- relativePath: true,
148
- path: 'home'
149
- }, {
150
- title: 'Pricing',
151
- icon: '',
152
- disable: true,
153
- tooltip: '',
154
- relativePath: true,
155
- path: ''
156
- }, {
157
- title: 'Setting',
158
- icon: 'settingsOutlined',
159
- disable: true,
160
- tooltip: 'coming soon',
161
- relativePath: true,
162
- path: ''
163
- }],
164
- footerItems: [{
165
- title: 'Help',
166
- icon: 'chatHelpOutlined',
167
- disable: true,
168
- tooltip: 'coming soon'
169
- }, {
170
- title: 'Name',
171
- disable: false,
172
- tooltip: '',
173
- type: 'AVATAR'
174
- }, {
175
- title: 'Chevron',
176
- icon: 'doubleDownOutlined',
177
- disable: true,
178
- tooltip: ''
179
- }]
180
- }
@@ -1,28 +0,0 @@
1
- .feature-list-container {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: flex-start;
5
- gap: var(--small-12px, 12px);
6
- align-self: stretch;
7
- }
8
-
9
- .feature-item {
10
- display: flex;
11
- align-items: center;
12
- gap: var(--small-8px, 8px);
13
- align-self: stretch;
14
- }
15
-
16
- .feature-list-container .feature-text {
17
- color: var(--text-mediumemphasis, #6D6979);
18
- font-family: var(--font);
19
- font-size: var(--small-14px);
20
- font-style: normal;
21
- font-weight: 400;
22
- line-height: var(--medium-20px);
23
- letter-spacing: 0.25px;
24
- }
25
-
26
- .feature-icon sa-icon {
27
- display: flex;
28
- }
@@ -1,10 +0,0 @@
1
- <div class="feature-list-container">
2
- <div class="feature-item" *ngFor="let item of listData">
3
- <div *ngIf="featuresIcon" class="feature-icon">
4
- <sa-icon [icon]="featuresIcon" customClass="colored-icon"></sa-icon>
5
- </div>
6
- <div>
7
- <span class="feature-text">{{ item?.text }}</span>
8
- </div>
9
- </div>
10
- </div>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { ListComponent } from './list.component';
4
-
5
- describe('ListComponent', () => {
6
- let component: ListComponent;
7
- let fixture: ComponentFixture<ListComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- imports: [ListComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(ListComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,15 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { IconComponent } from '../icon/icon.component';
3
- import { CommonModule } from '@angular/common';
4
-
5
- @Component({
6
- selector: 'lib-list',
7
- standalone: true,
8
- imports: [IconComponent, CommonModule],
9
- templateUrl: './list.component.html',
10
- styleUrl: './list.component.css'
11
- })
12
- export class ListComponent {
13
- @Input() listData: { icon?: string; text: string }[] = [];
14
- @Input('featuresIcon') featuresIcon: string = '';
15
- }
@@ -1,52 +0,0 @@
1
- .message-banner {
2
- display: flex;
3
- align-items: center;
4
- padding: var(--small-12px, 12px) var(--small-16px, 16px);
5
- border-radius: var(--small-8px, 8px);
6
- border: 1px solid var(--grey-100);
7
- font-family: Arial, sans-serif;
8
- gap: var(--small-8px, 8px);
9
- }
10
-
11
- .content {
12
- flex: 1 0 0;
13
- font-family: var(--font-roboto, Roboto);
14
- font-size: var(--small-14px);
15
- font-style: normal;
16
- font-weight: 400;
17
- line-height: var(--medium-20px);
18
- letter-spacing: 0.25px;
19
- display: flex;
20
- flex-wrap: wrap;
21
- }
22
-
23
- .action-button {
24
- background: none;
25
- border: none;
26
- cursor: pointer;
27
- padding: 4px 8px;
28
- }
29
-
30
- .success {
31
- background-color: #e6f4ea;
32
- border: 1px solid var(--grey-100, #EAECF0);
33
- color: #1e8e3e;
34
- }
35
-
36
- .warning {
37
- color: var(--text-highemphasis, #4D4D4D);
38
- border: 1px solid var(--grey-50, #E9EBEB);
39
- background: var(--secondary-50, #FFF3EB);
40
- }
41
-
42
- .info {
43
- border: 1px solid var(--grey-100, #EAECF0);
44
- background-color: var(--structural-primarytint, #FBFAFF);
45
- color: var(--text-mediumemphasis, #6D6979);
46
- }
47
-
48
- .error {
49
- color: var(--semantic-error-500, #BD271E);
50
- border: 1px solid var(--grey-100, #EAECF0);
51
- background: var(--semantic-error-50, #F8E9E9);
52
- }
@@ -1,15 +0,0 @@
1
- <div class="message-banner" [class]="type">
2
- @if (bannerIcon) {
3
- <sa-icon class="icon" [icon]="bannerIcon" [size]="bannerIconSize" [style.height.px]="bannerIconSize"></sa-icon>
4
- }
5
- <div class="content">
6
- <ng-content></ng-content>
7
- </div>
8
- @if (actionText) {
9
- <sa-button class="action-button" [text]="actionText" [icon]="buttonIcon" [size]="buttonSize" [type]="buttonType"
10
- [iconPosition]="buttonIconPosition" [size]="buttonSize" [buttonIconSize]="buttonIconSize"
11
- (click)="onAction()">{{
12
- actionText
13
- }}</sa-button>
14
- }
15
- </div>