@platformscode/core 0.0.35 → 0.0.38

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 (536) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/date-cell_3.cjs.entry.js +12 -12
  3. package/dist/cjs/dga-accordion.cjs.entry.js +3 -3
  4. package/dist/cjs/dga-actions.cjs.entry.js +1 -1
  5. package/dist/cjs/dga-apex-chart.cjs.entry.js +1 -1
  6. package/dist/cjs/dga-avatar_10.cjs.entry.js +985 -0
  7. package/dist/cjs/dga-button-leading-icon.cjs.entry.js +1 -1
  8. package/dist/cjs/dga-card-actions_4.cjs.entry.js +4 -4
  9. package/dist/cjs/dga-card-image.cjs.entry.js +1 -1
  10. package/dist/cjs/dga-card-title.cjs.entry.js +1 -1
  11. package/dist/cjs/dga-card.cjs.entry.js +2 -2
  12. package/dist/cjs/dga-carousel-v2.cjs.entry.js +1 -1
  13. package/dist/cjs/dga-checkbox.cjs.entry.js +5 -5
  14. package/dist/cjs/dga-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/dga-circular-progress-bar.cjs.entry.js +2 -2
  16. package/dist/cjs/dga-codesnippet.cjs.entry.js +4 -4
  17. package/dist/cjs/dga-collapse.cjs.entry.js +1 -1
  18. package/dist/cjs/dga-content-switcher_3.cjs.entry.js +3 -3
  19. package/dist/cjs/dga-data-table-usage.cjs.entry.js +1 -1
  20. package/dist/cjs/dga-data-table.cjs.entry.js +1 -1
  21. package/dist/cjs/dga-date-field.cjs.entry.js +2 -2
  22. package/dist/cjs/dga-digital-signature.cjs.entry.js +2 -2
  23. package/dist/cjs/dga-divider.cjs.entry.js +1 -1
  24. package/dist/cjs/dga-drawer_3.cjs.entry.js +3 -3
  25. package/dist/cjs/dga-dropdown.cjs.entry.js +4 -4
  26. package/dist/cjs/dga-featured-icon-usage.cjs.entry.js +1 -1
  27. package/dist/cjs/dga-file-upload.cjs.entry.js +2 -2
  28. package/dist/cjs/dga-flex.cjs.entry.js +1 -1
  29. package/dist/cjs/dga-footer.cjs.entry.js +2 -2
  30. package/dist/cjs/dga-header-menu_5.cjs.entry.js +1 -1
  31. package/dist/cjs/dga-helper-text_3.cjs.entry.js +2 -2
  32. package/dist/cjs/dga-inline-alert.cjs.entry.js +1 -1
  33. package/dist/cjs/dga-list-item_2.cjs.entry.js +2 -2
  34. package/dist/cjs/dga-loading.cjs.entry.js +1 -1
  35. package/dist/cjs/dga-metric-chart-v2.cjs.entry.js +1 -1
  36. package/dist/cjs/dga-metric-v2.cjs.entry.js +3 -3
  37. package/dist/cjs/dga-metric.cjs.entry.js +3 -3
  38. package/dist/cjs/dga-modal.cjs.entry.js +1 -1
  39. package/dist/cjs/dga-notification-toast.cjs.entry.js +1 -1
  40. package/dist/cjs/dga-notification.cjs.entry.js +9 -28
  41. package/dist/cjs/dga-number-input.cjs.entry.js +1 -1
  42. package/dist/cjs/dga-pagination.cjs.entry.js +1 -1
  43. package/dist/cjs/dga-prefix.cjs.entry.js +1 -1
  44. package/dist/cjs/dga-quote.cjs.entry.js +2 -1
  45. package/dist/cjs/dga-radial-stepper.cjs.entry.js +4 -4
  46. package/dist/cjs/dga-radio-button.cjs.entry.js +4 -4
  47. package/dist/cjs/dga-search-box_2.cjs.entry.js +3 -3
  48. package/dist/cjs/dga-suffix.cjs.entry.js +1 -1
  49. package/dist/cjs/dga-table-body.cjs.entry.js +1 -1
  50. package/dist/cjs/dga-table-of-content.cjs.entry.js +1 -1
  51. package/dist/cjs/dga-table.cjs.entry.js +1 -1
  52. package/dist/cjs/dga-tabs.cjs.entry.js +3 -3
  53. package/dist/cjs/dga-tag_3.cjs.entry.js +2 -2
  54. package/dist/cjs/dga-textarea.cjs.entry.js +2 -2
  55. package/dist/cjs/floating-button.cjs.entry.js +1 -1
  56. package/dist/cjs/index-BCWGzgj9.js +57 -0
  57. package/dist/cjs/{index-D9eOytNW.js → index-BKdUE5XK.js} +10 -0
  58. package/dist/cjs/loader.cjs.js +1 -1
  59. package/dist/cjs/nds-avatar.cjs.entry.js +1 -1
  60. package/dist/cjs/nds-button.cjs.entry.js +1 -1
  61. package/dist/cjs/nds-table-of-content.cjs.entry.js +1 -1
  62. package/dist/collection/collection-manifest.json +1 -1
  63. package/dist/collection/components/dga-accordion/dga-accordion.js +2 -2
  64. package/dist/collection/components/dga-actions/dga-actions.js +1 -1
  65. package/dist/collection/components/dga-apex-chart/dga-apex-chart.js +1 -1
  66. package/dist/collection/components/dga-avatar/dga-avatar.js +7 -4
  67. package/dist/collection/components/dga-avatar-group/dga-avatar-group.css +7 -2
  68. package/dist/collection/components/dga-avatar-group/dga-avatar-group.js +2 -2
  69. package/dist/collection/components/dga-breadcrumbs/dga-breadcrumbs.js +1 -1
  70. package/dist/collection/components/dga-button/dga-button.js +2 -2
  71. package/dist/collection/components/dga-button-v2/dga-button-leading-icon.js +1 -1
  72. package/dist/collection/components/dga-button-v2/dga-button-v2.js +2 -2
  73. package/dist/collection/components/dga-card/dga-card.js +2 -2
  74. package/dist/collection/components/dga-card-v2/dga-card-actions.js +1 -1
  75. package/dist/collection/components/dga-card-v2/dga-card-content.js +1 -1
  76. package/dist/collection/components/dga-card-v2/dga-card-expandable-content.js +1 -1
  77. package/dist/collection/components/dga-card-v2/dga-card-image.js +1 -1
  78. package/dist/collection/components/dga-card-v2/dga-card-title.js +1 -1
  79. package/dist/collection/components/dga-card-v2/dga-card-v2.js +1 -1
  80. package/dist/collection/components/dga-carousel/dga-carousel.js +7 -6
  81. package/dist/collection/components/dga-carousel-item/dga-carousel-item.js +1 -1
  82. package/dist/collection/components/dga-carousel-v2/dga-carousel-v2.js +1 -1
  83. package/dist/collection/components/dga-chart/dga-chart.js +5 -5
  84. package/dist/collection/components/dga-checkbox/dga-checkbox.js +3 -3
  85. package/dist/collection/components/dga-chip/dga-chip.js +2 -2
  86. package/dist/collection/components/dga-circular-progress-bar/dga-circular-progress-bar.js +1 -1
  87. package/dist/collection/components/dga-codeSnippet/dga-codeSnippet.js +4 -4
  88. package/dist/collection/components/dga-collapse/dga-collapse.js +1 -1
  89. package/dist/collection/components/dga-content-switcher/dga-content-switcher-item.js +1 -1
  90. package/dist/collection/components/dga-content-switcher/dga-content-switcher-panel.js +1 -1
  91. package/dist/collection/components/dga-content-switcher/dga-content-switcher.js +1 -1
  92. package/dist/collection/components/dga-data-table/dga-data-table-usage.js +1 -1
  93. package/dist/collection/components/dga-data-table/dga-data-table.js +2 -2
  94. package/dist/collection/components/dga-data-table/dga-table.body.js +1 -1
  95. package/dist/collection/components/dga-data-table/dga-table.js +1 -1
  96. package/dist/collection/components/dga-date-field/dga-date-field.js +1 -1
  97. package/dist/collection/components/dga-datepicker/DateCell.js +1 -1
  98. package/dist/collection/components/dga-datepicker/MonthNavigator.js +4 -4
  99. package/dist/collection/components/dga-datepicker/dga-datepicker.js +7 -7
  100. package/dist/collection/components/dga-digital-signature/dga-digital-signature.js +1 -1
  101. package/dist/collection/components/dga-divider/dga-divider.js +1 -1
  102. package/dist/collection/components/dga-drawer/DrawerMenu.js +1 -1
  103. package/dist/collection/components/dga-drawer/dga-drawer.js +1 -1
  104. package/dist/collection/components/dga-drawer/tab-component.js +1 -1
  105. package/dist/collection/components/dga-dropdown/dga-dropdown.js +2 -2
  106. package/dist/collection/components/dga-featured-icon/dga-featured-icon.js +1 -1
  107. package/dist/collection/components/dga-feedback-icon/dga-feedback-icon.js +1 -1
  108. package/dist/collection/components/dga-file-upload/dga-file-upload.js +1 -1
  109. package/dist/collection/components/dga-filteration/dga-filteration.js +4 -4
  110. package/dist/collection/components/dga-flex/dga-flex.js +1 -1
  111. package/dist/collection/components/dga-floating-button/dga-floatingButton.js +1 -1
  112. package/dist/collection/components/dga-footer/dga-footer.js +1 -1
  113. package/dist/collection/components/dga-grid/dga-grid-container.js +4 -4
  114. package/dist/collection/components/dga-grid/dga-grid-item.js +6 -6
  115. package/dist/collection/components/dga-header/dga-header-menu.js +1 -1
  116. package/dist/collection/components/dga-header/dga-header-mobile-actions.js +1 -1
  117. package/dist/collection/components/dga-header/dga-header.js +1 -1
  118. package/dist/collection/components/dga-header/dga-nav-header-sub-menu.js +1 -1
  119. package/dist/collection/components/dga-icon/dga-icon.js +45 -24
  120. package/dist/collection/components/dga-icon/utils.js +83 -5
  121. package/dist/collection/components/dga-list/dga-list-item.js +3 -3
  122. package/dist/collection/components/dga-list/dga-list-v2.js +2 -2
  123. package/dist/collection/components/dga-loading/dga-loading.js +3 -3
  124. package/dist/collection/components/dga-metric/dga-metric-chart-v2.js +3 -3
  125. package/dist/collection/components/dga-metric/dga-metric.js +5 -5
  126. package/dist/collection/components/dga-metric-v2/dga-metric-v2.js +5 -5
  127. package/dist/collection/components/dga-notification/dga-notification.js +9 -28
  128. package/dist/collection/components/dga-quote/dga-quote.js +22 -1
  129. package/dist/collection/components/dga-radial-stepper/dga-radial-stepper.js +5 -5
  130. package/dist/collection/components/dga-radio-button/dga-radio-button.js +3 -3
  131. package/dist/collection/components/dga-table-of-content/dga-table-of-content.js +2 -2
  132. package/dist/collection/components/dga-tabs/dga-tabs.js +4 -4
  133. package/dist/collection/components/dga-tag/dga-tag.css +3 -3
  134. package/dist/collection/components/dga-text-input/dga-prefix.js +1 -1
  135. package/dist/collection/components/dga-text-input/dga-suffix.js +1 -1
  136. package/dist/collection/components/dga-tooltip/dga-tooltip.js +6 -6
  137. package/dist/collection/nds-components/nds-avatar/nds-avatar.js +4 -4
  138. package/dist/collection/nds-components/nds-button/nds-button.js +3 -3
  139. package/dist/collection/nds-components/nds-link/nds-link.js +1 -1
  140. package/dist/collection/nds-components/nds-table-of-content/nds-table-of-content.js +2 -2
  141. package/dist/collection/utils/index.js +47 -0
  142. package/dist/components/date-cell.js +1 -1
  143. package/dist/components/dga-accordion-usage.js +2 -2
  144. package/dist/components/dga-accordion.js +1 -1
  145. package/dist/components/dga-actions.js +1 -1
  146. package/dist/components/dga-apex-chart.js +1 -1
  147. package/dist/components/dga-avatar-group.js +1 -1
  148. package/dist/components/dga-avatar-usage.js +3 -3
  149. package/dist/components/dga-avatar.js +1 -1
  150. package/dist/components/dga-breadcrumbs-usage.js +2 -2
  151. package/dist/components/dga-breadcrumbs.js +1 -1
  152. package/dist/components/dga-button-leading-icon.js +1 -1
  153. package/dist/components/dga-button-usage.js +2 -2
  154. package/dist/components/dga-button-v2-usage.js +4 -4
  155. package/dist/components/dga-button-v2.js +1 -1
  156. package/dist/components/dga-button.js +1 -1
  157. package/dist/components/dga-card-actions.js +1 -1
  158. package/dist/components/dga-card-content.js +1 -1
  159. package/dist/components/dga-card-expandable-content.js +1 -1
  160. package/dist/components/dga-card-image.js +1 -1
  161. package/dist/components/dga-card-title.js +1 -1
  162. package/dist/components/dga-card-usage.js +6 -6
  163. package/dist/components/dga-card-v2-usage.js +9 -9
  164. package/dist/components/dga-card-v2.js +1 -1
  165. package/dist/components/dga-card.js +1 -1
  166. package/dist/components/dga-carousel-item.js +1 -1
  167. package/dist/components/dga-carousel-usage.js +3 -3
  168. package/dist/components/dga-carousel-v2.js +1 -1
  169. package/dist/components/dga-carousel.js +1 -1
  170. package/dist/components/dga-checkbox-usage.js +2 -2
  171. package/dist/components/dga-checkbox.js +1 -1
  172. package/dist/components/dga-chip-usage.js +2 -2
  173. package/dist/components/dga-chip.js +1 -1
  174. package/dist/components/dga-circular-progress-bar-usage.js +2 -2
  175. package/dist/components/dga-circular-progress-bar.js +1 -1
  176. package/dist/components/dga-codesnippet-usage.js +5 -5
  177. package/dist/components/dga-codesnippet.js +1 -1
  178. package/dist/components/dga-collapse-usage.js +1 -1
  179. package/dist/components/dga-collapse.js +1 -1
  180. package/dist/components/dga-content-switcher-item.js +1 -1
  181. package/dist/components/dga-content-switcher-panel.js +1 -1
  182. package/dist/components/dga-content-switcher-usage.js +3 -3
  183. package/dist/components/dga-content-switcher.js +1 -1
  184. package/dist/components/dga-data-table-usage.js +5 -5
  185. package/dist/components/dga-data-table.js +1 -1
  186. package/dist/components/dga-date-field-usage.js +8 -8
  187. package/dist/components/dga-date-field.js +1 -1
  188. package/dist/components/dga-datepicker-usage.js +7 -7
  189. package/dist/components/dga-datepicker.js +1 -1
  190. package/dist/components/dga-digital-signature-usage.js +2 -2
  191. package/dist/components/dga-digital-signature.js +1 -1
  192. package/dist/components/dga-divider-usage.js +1 -1
  193. package/dist/components/dga-divider.js +1 -1
  194. package/dist/components/dga-drawer-usage.js +7 -7
  195. package/dist/components/dga-drawer.js +1 -1
  196. package/dist/components/dga-dropdown-usage.js +2 -2
  197. package/dist/components/dga-dropdown.js +1 -1
  198. package/dist/components/dga-featured-icon-usage.js +3 -3
  199. package/dist/components/dga-featured-icon.js +1 -1
  200. package/dist/components/dga-feedback-icon.js +1 -1
  201. package/dist/components/dga-file-upload-usage.js +3 -3
  202. package/dist/components/dga-file-upload.js +1 -1
  203. package/dist/components/dga-filteration-usage.js +8 -8
  204. package/dist/components/dga-filteration.js +1 -1
  205. package/dist/components/dga-flex.js +1 -1
  206. package/dist/components/dga-floating-button-usage.js +2 -2
  207. package/dist/components/dga-footer-usage.js +2 -2
  208. package/dist/components/dga-footer.js +1 -1
  209. package/dist/components/dga-header-action-btn.js +1 -1
  210. package/dist/components/dga-header-menu-item-usage.js +13 -13
  211. package/dist/components/dga-header-menu.js +1 -1
  212. package/dist/components/dga-header-sub-menu-item.js +1 -1
  213. package/dist/components/dga-header-usage.js +18 -18
  214. package/dist/components/dga-header.js +4 -4
  215. package/dist/components/dga-helper-text.js +1 -1
  216. package/dist/components/dga-huge-icon-usage.js +1 -1
  217. package/dist/components/dga-icon.js +1 -1
  218. package/dist/components/dga-inline-alert-usage.js +2 -2
  219. package/dist/components/dga-inline-alert.js +1 -1
  220. package/dist/components/dga-list-item.js +1 -1
  221. package/dist/components/dga-list-usage.js +3 -3
  222. package/dist/components/dga-list-v2.js +1 -1
  223. package/dist/components/dga-loading-usage.js +1 -1
  224. package/dist/components/dga-loading.js +1 -1
  225. package/dist/components/dga-menu-usage.js +1 -1
  226. package/dist/components/dga-metric-chart-v2.js +1 -1
  227. package/dist/components/dga-metric-usage.js +1 -1
  228. package/dist/components/dga-metric-v2.js +5 -5
  229. package/dist/components/dga-metric.js +5 -5
  230. package/dist/components/dga-modal-usage.js +4 -4
  231. package/dist/components/dga-modal-v2-usage.js +5 -5
  232. package/dist/components/dga-modal-v2.js +1 -1
  233. package/dist/components/dga-modal.js +1 -1
  234. package/dist/components/dga-nav-header-actions.js +1 -1
  235. package/dist/components/dga-nav-header-link.js +1 -1
  236. package/dist/components/dga-nav-header-sub-menu-link.js +1 -1
  237. package/dist/components/dga-nav-header-sub-menu.js +1 -1
  238. package/dist/components/dga-notification-toast-usage.js +3 -3
  239. package/dist/components/dga-notification-toast.js +1 -1
  240. package/dist/components/dga-notification-usage.js +2 -2
  241. package/dist/components/dga-notification.js +1 -1
  242. package/dist/components/dga-number-input-usage.js +3 -3
  243. package/dist/components/dga-number-input.js +1 -1
  244. package/dist/components/dga-pagination-usage.js +1 -1
  245. package/dist/components/dga-pagination.js +1 -1
  246. package/dist/components/dga-prefix.js +1 -1
  247. package/dist/components/dga-progress-indicator-step-v3.js +1 -1
  248. package/dist/components/dga-progress-indicator-step.js +1 -1
  249. package/dist/components/dga-progress-indicator-usage.js +2 -2
  250. package/dist/components/dga-progress-indicator-v3-usage.js +2 -2
  251. package/dist/components/dga-quote-usage.js +4 -4
  252. package/dist/components/dga-quote.js +1 -1
  253. package/dist/components/dga-radial-stepper-usage.js +2 -2
  254. package/dist/components/dga-radial-stepper.js +1 -1
  255. package/dist/components/dga-radio-button-usage.js +2 -2
  256. package/dist/components/dga-radio-button.js +1 -1
  257. package/dist/components/dga-search-box-usage.js +3 -3
  258. package/dist/components/dga-search-box.js +1 -1
  259. package/dist/components/dga-second-nav-header-usage.js +5 -5
  260. package/dist/components/dga-slideout-menu-header.js +1 -1
  261. package/dist/components/dga-slideout-menu-usage.js +8 -8
  262. package/dist/components/dga-slideout-menu.js +1 -1
  263. package/dist/components/dga-suffix.js +2 -2
  264. package/dist/components/dga-table-body.js +1 -1
  265. package/dist/components/dga-table-of-content-usage.js +1 -1
  266. package/dist/components/dga-table-of-content.js +1 -1
  267. package/dist/components/dga-table-usage.js +3 -3
  268. package/dist/components/dga-table.js +1 -1
  269. package/dist/components/dga-tabs-usage.js +3 -3
  270. package/dist/components/dga-tabs.js +1 -1
  271. package/dist/components/dga-tag-usage.js +2 -2
  272. package/dist/components/dga-tag.js +1 -1
  273. package/dist/components/dga-text-input-usage.js +4 -4
  274. package/dist/components/dga-text-input.js +1 -1
  275. package/dist/components/dga-textarea-usage.js +2 -2
  276. package/dist/components/dga-textarea.js +1 -1
  277. package/dist/components/dga-tooltip-usage.js +2 -2
  278. package/dist/components/dga-tooltip.js +1 -1
  279. package/dist/components/floating-button.js +1 -1
  280. package/dist/components/month-navigator.js +1 -1
  281. package/dist/components/nds-avatar-usage.js +3 -3
  282. package/dist/components/nds-avatar.js +2 -2
  283. package/dist/components/nds-button-usage.js +5 -5
  284. package/dist/components/nds-button.js +1 -1
  285. package/dist/components/nds-floating-button-usage.js +1 -1
  286. package/dist/components/nds-link-usage.js +2 -2
  287. package/dist/components/nds-table-of-content-usage.js +1 -1
  288. package/dist/components/nds-table-of-content.js +1 -1
  289. package/dist/components/{p-Bjxp-Bzv.js → p--j_c9xzb.js} +5 -5
  290. package/dist/components/{p-BM-plR02.js → p-0khNFxl0.js} +9 -9
  291. package/dist/components/{p-DS3wOmQO.js → p-9t9pP5wb.js} +2 -2
  292. package/dist/components/{p-Dd1XVYJF.js → p-B-0hBREP.js} +1 -1
  293. package/dist/components/{p-Bs_sPiZE.js → p-B1kxhXdl.js} +1 -1
  294. package/dist/components/{p-BbTFdVcG.js → p-BFp2aZZz.js} +6 -4
  295. package/dist/components/{p-gl2x-iRx.js → p-BFq0-7mf.js} +4 -4
  296. package/dist/components/{p-D1MMwYa8.js → p-BK2eNLm-.js} +7 -7
  297. package/dist/components/{p-ZelDjkxQ.js → p-BKbPoVUo.js} +3 -3
  298. package/dist/components/{p-DiP2bKrV.js → p-BLvJ2oPi.js} +3 -3
  299. package/dist/components/{p-Dosu8q7R.js → p-BMmSCWCu.js} +1 -1
  300. package/dist/components/{p-Dxf245we.js → p-BNYQpuTv.js} +1 -1
  301. package/dist/components/{p-D_WncN0b.js → p-BNhIil8E.js} +3 -3
  302. package/dist/components/{p-BfhhEgg-.js → p-BOjMTu4v.js} +5 -5
  303. package/dist/components/{p-Pml5NKmL.js → p-BT-zFDF3.js} +3 -3
  304. package/dist/components/{p-BXNu0jRu.js → p-BZ7tXFNm.js} +1 -1
  305. package/dist/components/{p-GDuInssM.js → p-BZPI28S4.js} +3 -3
  306. package/dist/components/{p-awnvl4MX.js → p-B_3saRrm.js} +1 -1
  307. package/dist/components/{p-YcCmBZW3.js → p-BdIwaaMc.js} +6 -1
  308. package/dist/components/{p-D9uV831l.js → p-Bg_-hNst.js} +2 -2
  309. package/dist/components/{p-Don4li2O.js → p-Bgym2s7u.js} +6 -6
  310. package/dist/components/{p-KLIoWA81.js → p-BptOYTd-.js} +1 -1
  311. package/dist/components/{p-DMuRo8EU.js → p-BuRQ_6As.js} +2 -2
  312. package/dist/components/{p-BQEjovbJ.js → p-Bwl3mtDP.js} +7 -6
  313. package/dist/components/{p-BLDzt_Uq.js → p-BzIa2Cq3.js} +1 -1
  314. package/dist/components/{p-Cmg--ZO6.js → p-C-IvTIch.js} +4 -5
  315. package/dist/components/{p-FjQbvIG7.js → p-C16HXFfa.js} +1 -1
  316. package/dist/components/{p-DR5P_P16.js → p-C5RYd_IA.js} +1 -1
  317. package/dist/components/{p-CnoQYu5E.js → p-C8mvgvMh.js} +1 -1
  318. package/dist/components/{p-DmiaKdLo.js → p-CFUMF5YN.js} +5 -2
  319. package/dist/components/{p-C-62j229.js → p-CG1PUR2T.js} +6 -7
  320. package/dist/components/{p-B7B0P3Tp.js → p-CGrf7k7J.js} +2 -2
  321. package/dist/components/{p-DzkNYNWQ.js → p-CK4S8BVY.js} +13 -13
  322. package/dist/components/p-CKmBHs6n.js +68 -0
  323. package/dist/components/{p-CvMsg1eu.js → p-CPgUKuiN.js} +5 -5
  324. package/dist/components/{p-DDV4TUDe.js → p-CPvxSDej.js} +1 -2
  325. package/dist/components/{p-CHHI-Ocu.js → p-CWHgkXX0.js} +1 -1
  326. package/dist/components/{p-TR-8p4D-.js → p-CXATKgnl.js} +1 -1
  327. package/dist/components/{p-CKrmM6in.js → p-CZCeh3H_.js} +3 -3
  328. package/dist/components/{p-CfQ8F8Bh.js → p-CdnvAuto.js} +2 -2
  329. package/dist/components/{p-ybSjjgRd.js → p-ClRnWVkd.js} +1 -1
  330. package/dist/components/{p-DJ_HacYp.js → p-CncwSLJZ.js} +4 -4
  331. package/dist/components/{p-DgX1GhOA.js → p-Cpuem5Xg.js} +1 -1
  332. package/dist/components/{p-Cyhpb_Rn.js → p-D25UKaEu.js} +8 -8
  333. package/dist/components/{p-KG6K-VfA.js → p-D3RrJHe2.js} +1 -1
  334. package/dist/components/{p-ZhmbbVrl.js → p-D4GcJ_x8.js} +3 -3
  335. package/dist/components/{p-CKPSKhfQ.js → p-D6avvN5k.js} +1 -1
  336. package/dist/components/{p-Q1ZPiOaS.js → p-D70Rxxoo.js} +1 -1
  337. package/dist/components/{p-DSD9HLIM.js → p-D95vhfgu.js} +2 -2
  338. package/dist/components/{p-COOZpHM-.js → p-DSwWrZlM.js} +4 -4
  339. package/dist/components/{p-CcNS0CYN.js → p-DWDgZ64y.js} +112 -22
  340. package/dist/components/{p-Cp4XrPXy.js → p-D_XsbuGG.js} +4 -4
  341. package/dist/components/{p-Cg2ruBZP.js → p-DboQJAUi.js} +1 -1
  342. package/dist/components/{p-C0pZ4KiI.js → p-DcTPr2gD.js} +10 -29
  343. package/dist/components/{p-CgHnB4Ok.js → p-DlvOoZQ9.js} +2 -2
  344. package/dist/components/{p-CgCfk7bZ.js → p-DnLupBQZ.js} +5 -5
  345. package/dist/components/{p-BAiv59EH.js → p-DnuBXAJ-.js} +3 -3
  346. package/dist/components/{p-SDJFYO-x.js → p-Dva9vsYN.js} +7 -7
  347. package/dist/components/{p-DOVT1GBx.js → p-Dvv3BdO_.js} +3 -3
  348. package/dist/components/{p-BAXB5c8Q.js → p-DzGU0x_h.js} +1 -1
  349. package/dist/components/{p-B7hJ4SNj.js → p-F66ktz1L.js} +3 -3
  350. package/dist/components/{p-CrHBgvRw.js → p-HV9tkfWL.js} +1 -1
  351. package/dist/components/{p-B1e2w8kd.js → p-HdgDxvir.js} +1 -1
  352. package/dist/components/{p-CGgOSMdv.js → p-J8MM0JsY.js} +7 -7
  353. package/dist/components/{p-VIZKxB_k.js → p-NSwdL19x.js} +2 -2
  354. package/dist/components/{p-DLER3hMX.js → p-PzjGna5K.js} +2 -2
  355. package/dist/components/{p-B_m6I75z.js → p-TfV0XO6J.js} +2 -2
  356. package/dist/components/{p-CSDgLEi4.js → p-UOJXt-FO.js} +4 -4
  357. package/dist/components/{p-CvASpWqB.js → p-XxWV99_u.js} +3 -3
  358. package/dist/components/{p-CYqnvK_U.js → p-ZwTMDF83.js} +3 -3
  359. package/dist/components/{p-B9KjUgb6.js → p-_-CzWbeq.js} +1 -1
  360. package/dist/components/{p-Bs1WQBbi.js → p-f2MDwTxU.js} +5 -6
  361. package/dist/components/{p-CD4HEP4m.js → p-gvnvuiD2.js} +1 -1
  362. package/dist/components/{p-DdRMnDyJ.js → p-ojgiY2yB.js} +1 -1
  363. package/dist/components/{p-DBxuY-4b.js → p-q1GCTpAl.js} +1 -1
  364. package/dist/components/{p-DIBv3sUd.js → p-y48iBw8b.js} +6 -6
  365. package/dist/components/{p-BTlGi_b5.js → p-yHix8HTT.js} +1 -1
  366. package/dist/components/{p-Bb9KX6Pu.js → p-z4AKbeqV.js} +3 -3
  367. package/dist/components/side-panel-menu.js +1 -1
  368. package/dist/components/submenu-component.js +1 -1
  369. package/dist/components/tab-component.js +1 -1
  370. package/dist/components/tab-link.js +1 -1
  371. package/dist/core/core.esm.js +1 -1
  372. package/dist/core/{p-dbf58c4d.entry.js → p-07c3c350.entry.js} +1 -1
  373. package/dist/core/{p-45ad4858.entry.js → p-0fc50a9a.entry.js} +1 -1
  374. package/dist/core/{p-bd2f0ad8.entry.js → p-11a331a1.entry.js} +1 -1
  375. package/dist/core/{p-06b434a6.entry.js → p-15a804c0.entry.js} +1 -1
  376. package/dist/core/{p-f251b80d.entry.js → p-16399b5d.entry.js} +1 -1
  377. package/dist/core/{p-31bbf39e.entry.js → p-17884b9c.entry.js} +1 -1
  378. package/dist/core/{p-065d1649.entry.js → p-1ba77ae3.entry.js} +1 -1
  379. package/dist/core/{p-2eee0460.entry.js → p-1da2536d.entry.js} +1 -1
  380. package/dist/core/{p-9763bcac.entry.js → p-20074a5c.entry.js} +1 -1
  381. package/dist/core/{p-463e1d5d.entry.js → p-209e3e85.entry.js} +1 -1
  382. package/dist/core/{p-a2798609.entry.js → p-30100ced.entry.js} +1 -1
  383. package/dist/core/p-397f73c9.entry.js +1 -0
  384. package/dist/core/p-3a8c8253.entry.js +1 -0
  385. package/dist/core/p-3cc7ee7f.entry.js +1 -0
  386. package/dist/core/{p-9af64a20.entry.js → p-3e5b3bae.entry.js} +1 -1
  387. package/dist/core/{p-9d4ab931.entry.js → p-3e84194b.entry.js} +1 -1
  388. package/dist/core/{p-7a74b3c2.entry.js → p-4011fa2f.entry.js} +1 -1
  389. package/dist/core/{p-99bc050e.entry.js → p-441d800c.entry.js} +1 -1
  390. package/dist/core/{p-f64603bc.entry.js → p-45836373.entry.js} +1 -1
  391. package/dist/core/p-46d64e7f.entry.js +1 -0
  392. package/dist/core/{p-29e5b60c.entry.js → p-4f67210b.entry.js} +1 -1
  393. package/dist/core/{p-8e1d79b3.entry.js → p-592ad114.entry.js} +1 -1
  394. package/dist/core/{p-401383fb.entry.js → p-648402eb.entry.js} +1 -1
  395. package/dist/core/{p-0cef2fd7.entry.js → p-7417fe10.entry.js} +1 -1
  396. package/dist/core/p-79714384.entry.js +1 -0
  397. package/dist/core/p-7b9f73e7.entry.js +1 -0
  398. package/dist/core/{p-f5c3e86e.entry.js → p-7d6fecd1.entry.js} +1 -1
  399. package/dist/core/{p-3c4a5f5a.entry.js → p-8c0cd059.entry.js} +1 -1
  400. package/dist/core/{p-19c8b2ee.entry.js → p-90c8f575.entry.js} +1 -1
  401. package/dist/core/{p-1fb8604b.entry.js → p-91141f0c.entry.js} +1 -1
  402. package/dist/core/{p-8faccf2c.entry.js → p-91e1fff8.entry.js} +1 -1
  403. package/dist/core/{p-4c4b3d2e.entry.js → p-94769efd.entry.js} +1 -1
  404. package/dist/core/{p-4a765c14.entry.js → p-96049578.entry.js} +1 -1
  405. package/dist/core/{p-BgIVAeDg.js → p-BYA91_SW.js} +1 -1
  406. package/dist/core/p-OZG1OajU.js +1 -0
  407. package/dist/core/{p-c7867f2b.entry.js → p-a22233fe.entry.js} +1 -1
  408. package/dist/core/{p-664ceda8.entry.js → p-a7ed9d80.entry.js} +1 -1
  409. package/dist/core/{p-27ce521d.entry.js → p-a96f4b11.entry.js} +1 -1
  410. package/dist/core/{p-681585ef.entry.js → p-aea272f6.entry.js} +1 -1
  411. package/dist/core/{p-bdb9b997.entry.js → p-b6b80d9f.entry.js} +1 -1
  412. package/dist/core/{p-bc146fbc.entry.js → p-b82b874c.entry.js} +1 -1
  413. package/dist/core/{p-0d644700.entry.js → p-c5766c7b.entry.js} +1 -1
  414. package/dist/core/{p-54350028.entry.js → p-c844adbd.entry.js} +1 -1
  415. package/dist/core/{p-834a11a3.entry.js → p-ca658904.entry.js} +1 -1
  416. package/dist/core/{p-b1ede2c9.entry.js → p-cf5eb90f.entry.js} +1 -1
  417. package/dist/core/{p-73e72929.entry.js → p-d5149ac4.entry.js} +1 -1
  418. package/dist/core/{p-21d8b1ab.entry.js → p-daafb4d4.entry.js} +1 -1
  419. package/dist/core/{p-2c0ce8a8.entry.js → p-dda02fce.entry.js} +1 -1
  420. package/dist/core/{p-8772aecf.entry.js → p-df25beeb.entry.js} +1 -1
  421. package/dist/core/{p-d3d905c2.entry.js → p-df81dccf.entry.js} +1 -1
  422. package/dist/core/p-e2db0483.entry.js +1 -0
  423. package/dist/core/{p-15faa2d3.entry.js → p-e484115f.entry.js} +1 -1
  424. package/dist/core/{p-f76c7951.entry.js → p-e5deff13.entry.js} +1 -1
  425. package/dist/core/p-e769c217.entry.js +1 -0
  426. package/dist/core/{p-8e5c541e.entry.js → p-e9f54e9e.entry.js} +1 -1
  427. package/dist/core/{p-1d784936.entry.js → p-ee9eebbf.entry.js} +1 -1
  428. package/dist/core/{p-c3362e4f.entry.js → p-f139edeb.entry.js} +1 -1
  429. package/dist/core/{p-3af2644d.entry.js → p-f7442a5a.entry.js} +1 -1
  430. package/dist/core/{p-5e64c6b2.entry.js → p-fcaf0061.entry.js} +1 -1
  431. package/dist/esm/core.js +1 -1
  432. package/dist/esm/date-cell_3.entry.js +12 -12
  433. package/dist/esm/dga-accordion.entry.js +3 -3
  434. package/dist/esm/dga-actions.entry.js +1 -1
  435. package/dist/esm/dga-apex-chart.entry.js +1 -1
  436. package/dist/esm/dga-avatar_10.entry.js +974 -0
  437. package/dist/esm/dga-button-leading-icon.entry.js +1 -1
  438. package/dist/esm/dga-card-actions_4.entry.js +4 -4
  439. package/dist/esm/dga-card-image.entry.js +1 -1
  440. package/dist/esm/dga-card-title.entry.js +1 -1
  441. package/dist/esm/dga-card.entry.js +2 -2
  442. package/dist/esm/dga-carousel-v2.entry.js +1 -1
  443. package/dist/esm/dga-checkbox.entry.js +5 -5
  444. package/dist/esm/dga-chip.entry.js +2 -2
  445. package/dist/esm/dga-circular-progress-bar.entry.js +2 -2
  446. package/dist/esm/dga-codesnippet.entry.js +4 -4
  447. package/dist/esm/dga-collapse.entry.js +1 -1
  448. package/dist/esm/dga-content-switcher_3.entry.js +3 -3
  449. package/dist/esm/dga-data-table-usage.entry.js +1 -1
  450. package/dist/esm/dga-data-table.entry.js +1 -1
  451. package/dist/esm/dga-date-field.entry.js +2 -2
  452. package/dist/esm/dga-digital-signature.entry.js +2 -2
  453. package/dist/esm/dga-divider.entry.js +1 -1
  454. package/dist/esm/dga-drawer_3.entry.js +3 -3
  455. package/dist/esm/dga-dropdown.entry.js +4 -4
  456. package/dist/esm/dga-featured-icon-usage.entry.js +1 -1
  457. package/dist/esm/dga-file-upload.entry.js +2 -2
  458. package/dist/esm/dga-flex.entry.js +1 -1
  459. package/dist/esm/dga-footer.entry.js +2 -2
  460. package/dist/esm/dga-header-menu_5.entry.js +1 -1
  461. package/dist/esm/dga-helper-text_3.entry.js +2 -2
  462. package/dist/esm/dga-inline-alert.entry.js +1 -1
  463. package/dist/esm/dga-list-item_2.entry.js +2 -2
  464. package/dist/esm/dga-loading.entry.js +1 -1
  465. package/dist/esm/dga-metric-chart-v2.entry.js +1 -1
  466. package/dist/esm/dga-metric-v2.entry.js +3 -3
  467. package/dist/esm/dga-metric.entry.js +3 -3
  468. package/dist/esm/dga-modal.entry.js +1 -1
  469. package/dist/esm/dga-notification-toast.entry.js +1 -1
  470. package/dist/esm/dga-notification.entry.js +9 -28
  471. package/dist/esm/dga-number-input.entry.js +1 -1
  472. package/dist/esm/dga-pagination.entry.js +1 -1
  473. package/dist/esm/dga-prefix.entry.js +1 -1
  474. package/dist/esm/dga-quote.entry.js +2 -1
  475. package/dist/esm/dga-radial-stepper.entry.js +4 -4
  476. package/dist/esm/dga-radio-button.entry.js +4 -4
  477. package/dist/esm/dga-search-box_2.entry.js +3 -3
  478. package/dist/esm/dga-suffix.entry.js +1 -1
  479. package/dist/esm/dga-table-body.entry.js +1 -1
  480. package/dist/esm/dga-table-of-content.entry.js +1 -1
  481. package/dist/esm/dga-table.entry.js +1 -1
  482. package/dist/esm/dga-tabs.entry.js +3 -3
  483. package/dist/esm/dga-tag_3.entry.js +2 -2
  484. package/dist/esm/dga-textarea.entry.js +2 -2
  485. package/dist/esm/floating-button.entry.js +1 -1
  486. package/dist/esm/{index-BgIVAeDg.js → index-BYA91_SW.js} +6 -1
  487. package/dist/esm/index-OZG1OajU.js +54 -0
  488. package/dist/esm/loader.js +1 -1
  489. package/dist/esm/nds-avatar.entry.js +1 -1
  490. package/dist/esm/nds-button.entry.js +1 -1
  491. package/dist/esm/nds-table-of-content.entry.js +1 -1
  492. package/dist/types/components/dga-icon/dga-icon.d.ts +20 -7
  493. package/dist/types/components/dga-icon/utils.d.ts +14 -0
  494. package/dist/types/components/dga-quote/dga-quote.d.ts +1 -0
  495. package/dist/types/components.d.ts +22 -12
  496. package/dist/types/utils/index.d.ts +14 -0
  497. package/package.json +2 -2
  498. package/dist/cjs/dga-avatar-group.cjs.entry.js +0 -39
  499. package/dist/cjs/dga-avatar-usage.cjs.entry.js +0 -47
  500. package/dist/cjs/dga-avatar.cjs.entry.js +0 -75
  501. package/dist/cjs/dga-breadcrumbs-usage.cjs.entry.js +0 -33
  502. package/dist/cjs/dga-breadcrumbs.cjs.entry.js +0 -148
  503. package/dist/cjs/dga-carousel_2.cjs.entry.js +0 -137
  504. package/dist/cjs/dga-huge-icon-usage.cjs.entry.js +0 -14
  505. package/dist/cjs/dga-icon.cjs.entry.js +0 -402
  506. package/dist/cjs/dga-link.cjs.entry.js +0 -30
  507. package/dist/cjs/index-ByjaZgsn.js +0 -9
  508. package/dist/components/p-CH66vbCC.js +0 -15
  509. package/dist/components/p-DEtoWGOc.js +0 -7
  510. package/dist/core/p-0f02946a.entry.js +0 -1
  511. package/dist/core/p-1ab215e2.entry.js +0 -1
  512. package/dist/core/p-205ee115.entry.js +0 -1
  513. package/dist/core/p-4217a2f1.entry.js +0 -1
  514. package/dist/core/p-585d1776.entry.js +0 -1
  515. package/dist/core/p-66983bcd.entry.js +0 -1
  516. package/dist/core/p-8eb0f4d8.entry.js +0 -1
  517. package/dist/core/p-91cdbf84.entry.js +0 -1
  518. package/dist/core/p-927475f3.entry.js +0 -1
  519. package/dist/core/p-DEtoWGOc.js +0 -1
  520. package/dist/core/p-ae4f95b0.entry.js +0 -1
  521. package/dist/core/p-cec8de25.entry.js +0 -1
  522. package/dist/core/p-d619ccb5.entry.js +0 -1
  523. package/dist/core/p-dce286c8.entry.js +0 -1
  524. package/dist/core/p-e3e5ddcb.entry.js +0 -1
  525. package/dist/core/p-f1ece870.entry.js +0 -1
  526. package/dist/core/p-f28050f0.entry.js +0 -1
  527. package/dist/esm/dga-avatar-group.entry.js +0 -37
  528. package/dist/esm/dga-avatar-usage.entry.js +0 -45
  529. package/dist/esm/dga-avatar.entry.js +0 -73
  530. package/dist/esm/dga-breadcrumbs-usage.entry.js +0 -31
  531. package/dist/esm/dga-breadcrumbs.entry.js +0 -146
  532. package/dist/esm/dga-carousel_2.entry.js +0 -134
  533. package/dist/esm/dga-huge-icon-usage.entry.js +0 -12
  534. package/dist/esm/dga-icon.entry.js +0 -400
  535. package/dist/esm/dga-link.entry.js +0 -28
  536. package/dist/esm/index-DEtoWGOc.js +0 -7
@@ -1,8 +1,9 @@
1
1
  import { Build, Host, h } from "@stencil/core";
2
2
  import { getSvgContent, gdsIconContent } from "./request";
3
- import { getName, getUrl } from "./utils";
3
+ import { getName, getUrl, parseIconString, isStr, isSrc } from "./utils";
4
4
  import { inheritAttributes } from "../../utils/helpers";
5
5
  import { isRTL } from "../../utils/rtl/dir";
6
+ import { parseCSSValue } from "../../utils/index";
6
7
  export class Icon {
7
8
  constructor() {
8
9
  this.iconName = null;
@@ -10,12 +11,20 @@ export class Icon {
10
11
  this.didLoadIcon = false;
11
12
  this.isVisible = false;
12
13
  /**
13
- * The variant of the icon.
14
- * Available options are: `"stroke"`, `"solid"`, `"duotone"`, `"twotone"`, `"bulk"`.
15
- * @default "bulk"
16
- */
17
- this.variant = 'bulk';
14
+ * The variant of the icon.
15
+ * Supported options are: `"stroke"` and `"solid"`.
16
+ *
17
+ * Deprecated options:
18
+ * - `"twotone"` → `"stroke"`
19
+ * - `"duotone"` → `"solid"`
20
+ * - `"bulk"` → `"solid"`
21
+ *
22
+ * Deprecated options: `"duotone"`, `"twotone"`, `"bulk"`.
23
+ * @default "stroke"
24
+ */
25
+ this.variant = 'stroke';
18
26
  /**
27
+ * @deprecated This prop will be removed in a future release.
19
28
  * The type/style of the icon.
20
29
  * Available options are: `"rounded"`, `"sharp"`, `"standard"`.
21
30
  * @default "rounded"
@@ -107,7 +116,7 @@ export class Icon {
107
116
  io.observe(el);
108
117
  }
109
118
  /**
110
- * Watch for changes to the icon name, src, icon, variant, or type properties.
119
+ * Watch for changes to the icon name, src, icon, or variant properties.
111
120
  * When a change is detected, the icon will be loaded.
112
121
  */
113
122
  loadIcon() {
@@ -125,6 +134,14 @@ export class Icon {
125
134
  this.didLoadIcon = true;
126
135
  }
127
136
  }
137
+ // Handle parsed icon strings (e.g., "home-solid-rounded") for iconName
138
+ if (this.icon && isStr(this.icon) && !isSrc(this.icon)) {
139
+ const parsed = parseIconString(this.icon);
140
+ if (parsed.variant) {
141
+ this.iconName = parsed.name;
142
+ return;
143
+ }
144
+ }
128
145
  this.iconName = getName(this.name, this.icon);
129
146
  }
130
147
  render() {
@@ -133,19 +150,17 @@ export class Icon {
133
150
  * we have designated that arrows & chevrons should automatically flip (unless flip-rtl
134
151
  * is set to false) because "back" is left in ltr and right in rtl, and "forward" is the opposite
135
152
  */
136
- const shouldAutoFlip = iconName
137
- ? (iconName.includes('arrow') || iconName.includes('chevron')) && flipRtl !== false
138
- : false;
153
+ const shouldAutoFlip = iconName ? (iconName.includes('arrow') || iconName.includes('chevron')) && flipRtl !== false : false;
139
154
  /**
140
155
  * if shouldBeFlippable is true, the icon should change direction when `dir` changes
141
156
  */
142
157
  const shouldBeFlippable = flipRtl || shouldAutoFlip;
143
- return (h(Host, Object.assign({ key: 'c3c86b0aa965042f90353da7160f27ed66a6e37a', role: "img", class: {
158
+ return (h(Host, Object.assign({ key: 'cca86354e98f7bc83a4cfce895be2ef308ae6ba6', role: "img", class: {
144
159
  'flip-rtl': shouldBeFlippable,
145
160
  'icon-rtl': shouldBeFlippable && isRTL(el),
146
161
  } }, inheritedAttributes, { style: {
147
162
  color: color !== null && color !== void 0 ? color : 'inherit',
148
- fontSize: `${size}px`,
163
+ fontSize: parseCSSValue(size),
149
164
  } }), Build.isBrowser && this.svgContent ? (h("div", { class: {
150
165
  'icon-inner': true,
151
166
  }, innerHTML: this.svgContent })) : (h("div", { class: "icon-inner" }))));
@@ -227,23 +242,29 @@ export class Icon {
227
242
  "attribute": "variant",
228
243
  "mutable": false,
229
244
  "complexType": {
230
- "original": "'stroke' | 'solid' | 'duotone' | 'twotone' | 'bulk'",
245
+ "original": "IconVariant",
231
246
  "resolved": "\"bulk\" | \"duotone\" | \"solid\" | \"stroke\" | \"twotone\"",
232
- "references": {}
247
+ "references": {
248
+ "IconVariant": {
249
+ "location": "local",
250
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-icon/dga-icon.tsx",
251
+ "id": "src/components/dga-icon/dga-icon.tsx::IconVariant"
252
+ }
253
+ }
233
254
  },
234
255
  "required": false,
235
256
  "optional": true,
236
257
  "docs": {
237
258
  "tags": [{
238
259
  "name": "default",
239
- "text": "\"bulk\""
260
+ "text": "\"stroke\""
240
261
  }],
241
- "text": "The variant of the icon.\nAvailable options are: `\"stroke\"`, `\"solid\"`, `\"duotone\"`, `\"twotone\"`, `\"bulk\"`."
262
+ "text": "The variant of the icon.\nSupported options are: `\"stroke\"` and `\"solid\"`.\n\nDeprecated options:\n- `\"twotone\"` \u2192 `\"stroke\"`\n- `\"duotone\"` \u2192 `\"solid\"`\n- `\"bulk\"` \u2192 `\"solid\"`\n\nDeprecated options: `\"duotone\"`, `\"twotone\"`, `\"bulk\"`."
242
263
  },
243
264
  "getter": false,
244
265
  "setter": false,
245
266
  "reflect": false,
246
- "defaultValue": "'bulk'"
267
+ "defaultValue": "'stroke'"
247
268
  },
248
269
  "type": {
249
270
  "type": "string",
@@ -258,10 +279,13 @@ export class Icon {
258
279
  "optional": true,
259
280
  "docs": {
260
281
  "tags": [{
282
+ "name": "deprecated",
283
+ "text": "This prop will be removed in a future release.\nThe type/style of the icon.\nAvailable options are: `\"rounded\"`, `\"sharp\"`, `\"standard\"`."
284
+ }, {
261
285
  "name": "default",
262
286
  "text": "\"rounded\""
263
287
  }],
264
- "text": "The type/style of the icon.\nAvailable options are: `\"rounded\"`, `\"sharp\"`, `\"standard\"`."
288
+ "text": ""
265
289
  },
266
290
  "getter": false,
267
291
  "setter": false,
@@ -307,12 +331,12 @@ export class Icon {
307
331
  "reflect": false
308
332
  },
309
333
  "size": {
310
- "type": "number",
334
+ "type": "any",
311
335
  "attribute": "size",
312
336
  "mutable": false,
313
337
  "complexType": {
314
- "original": "number",
315
- "resolved": "number",
338
+ "original": "string | number",
339
+ "resolved": "number | string",
316
340
  "references": {}
317
341
  },
318
342
  "required": false,
@@ -391,9 +415,6 @@ export class Icon {
391
415
  }, {
392
416
  "propName": "variant",
393
417
  "methodName": "loadIcon"
394
- }, {
395
- "propName": "type",
396
- "methodName": "loadIcon"
397
418
  }];
398
419
  }
399
420
  }
@@ -1,5 +1,49 @@
1
1
  import { getAssetPath } from "@stencil/core";
2
2
  let CACHED_MAP;
3
+ const VALID_VARIANTS = ['stroke', 'solid', 'duotone', 'twotone', 'bulk'];
4
+ const DEPRECATED_VARIANT_MAP = {
5
+ twotone: 'stroke',
6
+ duotone: 'solid',
7
+ bulk: 'solid',
8
+ };
9
+ const normalizeVariant = (variant) => {
10
+ var _a;
11
+ if (!variant)
12
+ return 'stroke';
13
+ return (_a = DEPRECATED_VARIANT_MAP[variant]) !== null && _a !== void 0 ? _a : variant;
14
+ };
15
+ /**
16
+ * Parses an icon string in the format `[icon-name]-[variant]`
17
+ * Example: `1st-bracket-circle-solid` -> { name: '1st-bracket-circle', variant: 'solid' }
18
+ * Also handles legacy `[icon-name]-[variant]-[type]` strings by stripping the type.
19
+ * If no variant suffix is found, returns the original string as the name.
20
+ */
21
+ export const parseIconString = (iconString) => {
22
+ if (!iconString || typeof iconString !== 'string') {
23
+ return { name: iconString };
24
+ }
25
+ const lowerStr = iconString.toLowerCase().trim();
26
+ const LEGACY_TYPES = ['rounded', 'sharp', 'standard'];
27
+ for (const variant of VALID_VARIANTS) {
28
+ for (const type of LEGACY_TYPES) {
29
+ const suffix = `-${variant}-${type}`;
30
+ if (lowerStr.endsWith(suffix)) {
31
+ const name = lowerStr.slice(0, -suffix.length);
32
+ if (name.length > 0) {
33
+ return { name, variant };
34
+ }
35
+ }
36
+ }
37
+ const suffix = `-${variant}`;
38
+ if (lowerStr.endsWith(suffix)) {
39
+ const name = lowerStr.slice(0, -suffix.length);
40
+ if (name.length > 0) {
41
+ return { name, variant };
42
+ }
43
+ }
44
+ }
45
+ return { name: lowerStr };
46
+ };
3
47
  export const getIconMap = () => {
4
48
  if (typeof window === 'undefined') {
5
49
  return new Map();
@@ -72,8 +116,23 @@ export const getUrl = (i) => {
72
116
  if (url) {
73
117
  return url;
74
118
  }
119
+ // Check if icon prop contains a full icon string with variant suffix
120
+ // e.g., "1st-bracket-circle-solid"
121
+ if (i.icon && isStr(i.icon) && !isSrc(i.icon)) {
122
+ const parsed = parseIconString(i.icon);
123
+ if (parsed.variant) {
124
+ const iconName = getName(parsed.name, undefined);
125
+ if (iconName) {
126
+ return getNamedUrlWithVariant(iconName, parsed.variant, i);
127
+ }
128
+ }
129
+ }
75
130
  url = getName(i.name, i.icon);
76
131
  if (url) {
132
+ const parsed = parseIconString(url);
133
+ if (parsed.variant) {
134
+ return getNamedUrlWithVariant(parsed.name, parsed.variant, i);
135
+ }
77
136
  return getNamedUrl(url, i);
78
137
  }
79
138
  if (i.icon) {
@@ -84,17 +143,36 @@ export const getUrl = (i) => {
84
143
  }
85
144
  return null;
86
145
  };
146
+ /**
147
+ * Get the URL for a named icon using an explicit variant value.
148
+ * Used when parsing icon strings like "icon-name-variant"
149
+ */
150
+ const getNamedUrlWithVariant = (iconName, variant, iconEl) => {
151
+ const normalized = normalizeVariant(variant);
152
+ const fullName = `${iconName}-${normalized}`;
153
+ const url = getIconMap().get(fullName) || getIconMap().get(iconName);
154
+ if (url) {
155
+ return url;
156
+ }
157
+ try {
158
+ // const assetPath = `assets/svg/${normalized}/${iconName}-${normalized}.svg`;
159
+ const assetPath = `assets/svg/${iconName}-${normalized}.svg`;
160
+ const result = getAssetPath(assetPath);
161
+ return result;
162
+ }
163
+ catch (e) {
164
+ console.log('e', e);
165
+ console.warn(`[GDS Icons Warning]: Could not load icon with name "${iconName}" (variant: ${normalized}). Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`, iconEl);
166
+ }
167
+ };
87
168
  const getNamedUrl = (iconName, iconEl) => {
88
169
  const url = getIconMap().get(iconName);
89
170
  if (url) {
90
171
  return url;
91
172
  }
92
173
  try {
93
- // Get variant and type from the icon element, with defaults
94
- const variant = iconEl.variant || 'bulk';
95
- const type = iconEl.type || 'rounded';
96
- // Construct path with variant-type folder structure
97
- const assetPath = `assets/svg/${variant}-${type}/${iconName}-${variant}-${type}.svg`;
174
+ const variant = normalizeVariant(iconEl.variant);
175
+ const assetPath = `assets/svg/${variant}/${iconName}-${variant}.svg`;
98
176
  const result = getAssetPath(assetPath);
99
177
  return result;
100
178
  }
@@ -25,7 +25,7 @@ export class DgaListItem {
25
25
  return null;
26
26
  }
27
27
  render() {
28
- return (h("li", { key: 'ea563aa2b52b600800ce2991e055b2db73344cf4', class: this.getListClass() }, this.type === 'with-icon' && (h("span", { key: '23548209d319ae5791f14da2b56068a3775b137f', class: "list-item__icon" }, h("dga-icon", { key: 'ecf93dfc8a40471abe01c4e3f78229ea09dd8a82', icon: this.icon, size: 16 }))), this.renderMarker(), h("span", { key: '8ef34fbd75174cb7ba82c84835cb3441b14d33b6', class: "list-item__text" }, this.itemText)));
28
+ return (h("li", { key: '095ccba8b5d487a7e9ed11cb6635e08ed703391a', class: this.getListClass() }, this.type === 'with-icon' && (h("span", { key: '5e04ec4045647289dd314f49c668f27aa2266d5e', class: "list-item__icon" }, h("dga-icon", { key: '9979d04aea2fca3d11f7737bb43ecf563adf00d9', icon: this.icon, size: 16 }))), this.renderMarker(), h("span", { key: '3bb6fe07dc6087b7f8dcc5f86aa5d9910ef0ab3f', class: "list-item__text" }, this.itemText)));
29
29
  }
30
30
  static get is() { return "dga-list-item"; }
31
31
  static get originalStyleUrls() {
@@ -50,7 +50,7 @@ export class DgaListItem {
50
50
  "references": {
51
51
  "ListItemProps": {
52
52
  "location": "local",
53
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-item.tsx",
53
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-item.tsx",
54
54
  "id": "src/components/dga-list/dga-list-item.tsx::ListItemProps"
55
55
  }
56
56
  }
@@ -75,7 +75,7 @@ export class DgaListItem {
75
75
  "references": {
76
76
  "ListItemProps": {
77
77
  "location": "local",
78
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-item.tsx",
78
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-item.tsx",
79
79
  "id": "src/components/dga-list/dga-list-item.tsx::ListItemProps"
80
80
  }
81
81
  }
@@ -25,7 +25,7 @@ export class DgaListV2 {
25
25
  // }
26
26
  render() {
27
27
  const Tag = this.type === 'ordered' ? 'ol' : 'ul';
28
- return (h(Tag, { key: 'ff99aa5ace5c3a92bbff8d30fc3c7820a32b66de', class: `list list--${this.type} list--${this.color}` }, h("slot", { key: '2280745fe712b4b00ce5f459615848b4aa3ef9c4' })));
28
+ return (h(Tag, { key: 'c33ca9f7659546ad35276b507e11dc40260e12f3', class: `list list--${this.type} list--${this.color}` }, h("slot", { key: 'ed5c5c048d7afaf5c3d467343418ffbf6890eb02' })));
29
29
  }
30
30
  static get is() { return "dga-list-v2"; }
31
31
  static get originalStyleUrls() {
@@ -110,7 +110,7 @@ export class DgaListV2 {
110
110
  "references": {
111
111
  "ListItem": {
112
112
  "location": "local",
113
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-v2.tsx",
113
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-list/dga-list-v2.tsx",
114
114
  "id": "src/components/dga-list/dga-list-v2.tsx::ListItem"
115
115
  }
116
116
  }
@@ -38,7 +38,7 @@ export class DgaLoading {
38
38
  }
39
39
  render() {
40
40
  const classes = `dga-loading dga-loading--${this.size} dga-loading--${this.variant} ${this.extraClass ? this.extraClass : ''}`;
41
- return (h(Host, { key: 'aec3305a5289c4f5a2661e5ac024f9d3dba1ce18', id: this.componentId, style: this.rootStyles }, h("div", { key: 'f26f96d4e528b58281080ba7b56c78acd4ff8420', class: classes }, h("div", { key: 'a1aa4321be52b29c87ea64a4a5eb0d7156a6cb65', class: "dga-loading__circle" }))));
41
+ return (h(Host, { key: 'a26a8c3c5407c0af5b128d7f830af590d3c65a03', id: this.componentId, style: this.rootStyles }, h("div", { key: '2bf09fde0a2b05205edb773af7b95dfbcff0b20b', class: classes }, h("div", { key: 'ac65ba6f0cc4118f3a367825e30d0082ffde53f3', class: "dga-loading__circle" }))));
42
42
  }
43
43
  static get is() { return "dga-loading"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -64,7 +64,7 @@ export class DgaLoading {
64
64
  "references": {
65
65
  "LoadingSize": {
66
66
  "location": "local",
67
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-loading/dga-loading.tsx",
67
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-loading/dga-loading.tsx",
68
68
  "id": "src/components/dga-loading/dga-loading.tsx::LoadingSize"
69
69
  }
70
70
  }
@@ -90,7 +90,7 @@ export class DgaLoading {
90
90
  "references": {
91
91
  "LoadingStyle": {
92
92
  "location": "local",
93
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-loading/dga-loading.tsx",
93
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-loading/dga-loading.tsx",
94
94
  "id": "src/components/dga-loading/dga-loading.tsx::LoadingStyle"
95
95
  }
96
96
  }
@@ -216,7 +216,7 @@ export class DgaMetricChartV2 {
216
216
  }
217
217
  render() {
218
218
  const { x: markerX, y: markerY } = this.currentMarkerPos;
219
- return (h("svg", { key: '8441c2e5f5e05b71aa9219772be966ae538abb99', width: this.width, height: this.height, viewBox: "0 0 130 66", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("defs", { key: '2ef4cf4b02a690980a548735a632eee5d317f113' }, h("linearGradient", { key: '3cf5eb7dedd346de4b6663f0f34a871fd31a66b8', id: "gradientMask", x1: "64", y1: "0", x2: "64", y2: "64", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '89d831bf8353aeb7fc62ec8735226779853d541c' }), h("stop", { key: 'bd072fe5eddf721c9c543fcdcb8b9c5afe5b8c05', offset: "1", "stop-opacity": "0" })), h("mask", { key: '73f36217b608723995fd651589dbfb66f1d90f89', id: "chartMask", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "1", width: "128", height: "64" }, h("rect", { key: '0984f7e8941af7ed10fe674cddfea16b0494ed4c', width: "128", height: "64", transform: "translate(1 1)", fill: "url(#gradientMask)" }))), h("g", { key: '7e7ccdb3cb39833368570c48bd52643f0f6d3a51', mask: "url(#chartMask)" }, h("path", { key: 'c85d9a84c13fa6b0e07e17ed7b00521dfc7e2010', opacity: "0.2", d: this.areaD, fill: this.fillColor })), h("path", { key: '78c1fee3e019258c5774c83f8d9e076534af7cd4', d: this.pathD, stroke: this.strokeColor, "stroke-width": this.strokeWidth, "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" }), this.showMarker && (h("g", { key: '7f5dfcd69728523b3abcec8fc3d847f5acddc95c', transform: `translate(${markerX}, ${markerY})` }, h("g", { key: 'ce18730ff77a6e5dc1c7fc8d8572fd7a87e1a449', opacity: "0.2" }, h("rect", { key: '938728b792c35b22a127080a94593669d063b1d1', width: "20", height: "20", rx: "10", stroke: this.strokeColor, "stroke-width": this.strokeWidth })), h("rect", { key: 'd8a9dc11b706ff001739a4950874e02db13f14a3', x: "5", y: "5", width: "10", height: "10", rx: "5", fill: "white" }), h("rect", { key: 'f3ea78180ae863f4108cab1f9e70571b8d3d0208', x: "5", y: "5", width: "10", height: "10", rx: "5", stroke: this.strokeColor, "stroke-width": this.strokeWidth })))));
219
+ return (h("svg", { key: '21cb7639e1bb84c5a07cd7228503c6db8b88960c', width: this.width, height: this.height, viewBox: "0 0 130 66", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("defs", { key: '5fbdc79365affcc8eff80dedd4a5a6a2e03001f8' }, h("linearGradient", { key: 'cacaafbb7da16fdbc8e23f15d0f089210ce9573f', id: "gradientMask", x1: "64", y1: "0", x2: "64", y2: "64", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '50db3958dd54b513043360dfd29baa76a157bd50' }), h("stop", { key: '8f99ff9c56ccc69cb24689ea464311cf3fc9d5ef', offset: "1", "stop-opacity": "0" })), h("mask", { key: '6cab4fc69cd585ed810ce6e7c79531f37ce32ea9', id: "chartMask", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "1", y: "1", width: "128", height: "64" }, h("rect", { key: '84c771ca83db1990d02db3c1604eab70619fd380', width: "128", height: "64", transform: "translate(1 1)", fill: "url(#gradientMask)" }))), h("g", { key: '5b83567dfc8cff62ba9610fbd6088847991dc11a', mask: "url(#chartMask)" }, h("path", { key: 'ef3226d18157e6d3551981bc2f28d0e373297109', opacity: "0.2", d: this.areaD, fill: this.fillColor })), h("path", { key: '9751032b599180fb3350879dbccacedd35cde80a', d: this.pathD, stroke: this.strokeColor, "stroke-width": this.strokeWidth, "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" }), this.showMarker && (h("g", { key: 'a0a87660359ed63d98a5c187a263563d06db5f1a', transform: `translate(${markerX}, ${markerY})` }, h("g", { key: 'aba29f5af07db2022089691c10b509003664e2da', opacity: "0.2" }, h("rect", { key: '60d64614d2fe846eb57cff6c7af88e77e8dc2da7', width: "20", height: "20", rx: "10", stroke: this.strokeColor, "stroke-width": this.strokeWidth })), h("rect", { key: '6b0269e79dac44fab9456f89bc4bb8f5493de5b0', x: "5", y: "5", width: "10", height: "10", rx: "5", fill: "white" }), h("rect", { key: 'd3f2b7ab612f3554b51ada107af3966fd426d1c8', x: "5", y: "5", width: "10", height: "10", rx: "5", stroke: this.strokeColor, "stroke-width": this.strokeWidth })))));
220
220
  }
221
221
  static get is() { return "dga-metric-chart-v2"; }
222
222
  static get encapsulation() { return "shadow"; }
@@ -332,7 +332,7 @@ export class DgaMetricChartV2 {
332
332
  "references": {
333
333
  "DataPoint": {
334
334
  "location": "local",
335
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric-chart-v2.tsx",
335
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric-chart-v2.tsx",
336
336
  "id": "src/components/dga-metric/dga-metric-chart-v2.tsx::DataPoint"
337
337
  }
338
338
  }
@@ -377,7 +377,7 @@ export class DgaMetricChartV2 {
377
377
  "references": {
378
378
  "MarkerPosition": {
379
379
  "location": "local",
380
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric-chart-v2.tsx",
380
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric-chart-v2.tsx",
381
381
  "id": "src/components/dga-metric/dga-metric-chart-v2.tsx::MarkerPosition"
382
382
  }
383
383
  }
@@ -30,15 +30,15 @@ export class DgaMetric {
30
30
  };
31
31
  }
32
32
  render() {
33
- return (h("div", { key: '314cdf92f905dbf8a3ae6b63dc9fdf0e493542c3', class: `dga-metric`, "data-chart-size": this.Style }, h("div", { key: '200315a62f15f2aa0b4fb9f192e69d5cd47ad21c', class: "dga-metric__head" }, h("div", { key: 'e3b34506cdd7400be7a46c5194c070f42710125a', class: "dga-metric__head-content" }, this.showFeaturedIcon && h("div", { key: '3068d2addfa736f01ec2d50df4a4e3293a38707a', class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && h("span", { key: 'bda97e35abad96b0b1d7a8dc1e3f6fe97f3e6fad', class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && (h("dga-button-v2", { key: '7b83a8aeef2b452b115e98b4b345852bdb6bd200', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
33
+ return (h("div", { key: '7eee68aad1ede7c9a1ddafc3ed4cf040c72ec505', class: `dga-metric`, "data-chart-size": this.Style }, h("div", { key: '708b92c50a072e901bf51d3be917d99d35a06d51', class: "dga-metric__head" }, h("div", { key: '126c152cc0a020b3df468d0008129b3be07670e0', class: "dga-metric__head-content" }, this.showFeaturedIcon && h("div", { key: '34cee16589308772e476d1d43eec92a6cd0eb94b', class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && h("span", { key: '4da9317c1d74d063679f2332b746dfbb7bf1e5e9', class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && (h("dga-button-v2", { key: '88400e2fd8ee4c3bd615a7cf6ddf52f217620f97', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
34
34
  name: 'more-vertical',
35
35
  variant: 'stroke',
36
36
  type: 'rounded',
37
- }, onClick: this.onExpandAction }))), h("div", { key: 'f3b2f6290453a9b4ce1d3f399e7609a768af5383', class: "dga-metric__body" }, h("div", { key: '503084c257592859c1249a77460462f2f689f1eb', class: "dga-metric__content" }, h("h3", { key: '7f26e13d786a042e2214dc9caaf7e41c915a3429', class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && (h("div", { key: 'e6b06e62dd0ad6bfdfdd5455417fa95b03b2d0d7', class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, h("span", { key: 'd8d1e0ba9f73f2640aa414ac23db3871756275cd', class: "dga-metric__content-change-icon" }, h("dga-icon", { key: '565f756fc4f6f3d2d2907b4fc3ada1c76016da09', icon: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), h("span", { key: 'd94c1b1831454cb0295715a522c1419909a614f3', class: "dga-metric__content-change-value" }, Math.abs(100), "%"), h("span", { key: 'ea76897604bd61574f635b872275f68f9724ff3f', class: "dga-metric__content-change-period" }, "vs last month")))), this.showChart && (h("div", { key: 'e64a526ba47e91ace2a36aa58a86f84f75bb9ac1', class: "dga-metric__chart" }, h("dga-metric-chart", Object.assign({ key: '7e85020d66426de8a03be8e7d8e07371b7fdde76' }, this.chartProps, { size: this.Style === 'small-chart' ? 'sm' : 'lg' }))))), this.showActions && (h(Fragment, { key: '50d85ae9db0e4e76b1cb4fcb220aadb511523a2a' }, h("div", { key: '9d0cefe611c0d7c150cfbec676129cfa6d1c1681', class: "dga-metric__divider" }), h("div", { key: 'b5d42a5f863ff14702cb65786e290de146a4e551', class: "dga-metric__actions" }, this.showSecondaryAction && (h("dga-button-v2", { key: '718e9ad0e6c9490acdd2037859903dd7fe7b793b', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
37
+ }, onClick: this.onExpandAction }))), h("div", { key: 'a9143e06f761f06c0ff75019c617eaf096c3b6da', class: "dga-metric__body" }, h("div", { key: '260b6b154e01c81f992632a9e581044bdcccbea3', class: "dga-metric__content" }, h("h3", { key: 'f7770fdc054acbb94b6e4e9a20cdf5bdb7877ee8', class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && (h("div", { key: '51cc9d19b3a29b437e139444b296bad468f3934a', class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, h("span", { key: '05f05622179af232a4ec0d199ef21a4a89c80f6a', class: "dga-metric__content-change-icon" }, h("dga-icon", { key: 'e5c1831b21cae1af1beeb4322ed315acf89be811', icon: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), h("span", { key: '547dce2ba0d90d06d814355c0cdecd4d6f06e852', class: "dga-metric__content-change-value" }, Math.abs(100), "%"), h("span", { key: '57e25c115490dcc68dfe93575641528813522956', class: "dga-metric__content-change-period" }, "vs last month")))), this.showChart && (h("div", { key: '0398a82e6fb1c86f7fddab6d1f35721d4639efad', class: "dga-metric__chart" }, h("dga-metric-chart", Object.assign({ key: '508857cbc2f3ddf9cd84840d8b65d25c24473aa6' }, this.chartProps, { size: this.Style === 'small-chart' ? 'sm' : 'lg' }))))), this.showActions && (h(Fragment, { key: '1c6a90eb89cdd7b4ab814d64deee3945f10f3869' }, h("div", { key: '6edf347e501fa6dfb3a9410b0a2979a35fc213fa', class: "dga-metric__divider" }), h("div", { key: 'eca66fa8fc10cecedca2f87cead73036bb8549c9', class: "dga-metric__actions" }, this.showSecondaryAction && (h("dga-button-v2", { key: '43c65479b3f80d9e93d9dfaccbd65e482774388a', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
38
38
  name: 'settings-02',
39
39
  variant: 'stroke',
40
40
  type: 'rounded',
41
- }, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: '19627305bc5456f4e9b9e772e2810fb5871101cb', variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))))));
41
+ }, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: '8cf205718bb0e48edbcd2bd260ed5a098f02812c', variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))))));
42
42
  }
43
43
  static get is() { return "dga-metric"; }
44
44
  static get originalStyleUrls() {
@@ -287,7 +287,7 @@ export class DgaMetric {
287
287
  "references": {
288
288
  "IChartProps": {
289
289
  "location": "local",
290
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric.tsx",
290
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric.tsx",
291
291
  "id": "src/components/dga-metric/dga-metric.tsx::IChartProps"
292
292
  }
293
293
  }
@@ -311,7 +311,7 @@ export class DgaMetric {
311
311
  "references": {
312
312
  "ITrend": {
313
313
  "location": "local",
314
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric.tsx",
314
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric/dga-metric.tsx",
315
315
  "id": "src/components/dga-metric/dga-metric.tsx::ITrend"
316
316
  }
317
317
  }
@@ -30,15 +30,15 @@ export class DgaMetric {
30
30
  };
31
31
  }
32
32
  render() {
33
- return (h("div", { key: '575df91070ec3bb6fbee5528aff23f248d40c5b9', class: `dga-metric`, "data-chart-size": this.Style }, h("div", { key: 'a4ac60e3834f567449ad33430a74406c35244bcd', class: "dga-metric__head" }, h("div", { key: 'b370e1b3de2d28e6d070898778a2dbb098ae868e', class: "dga-metric__head-content" }, this.showFeaturedIcon && h("div", { key: 'c04b9d81254544f5411ac91f43f553e9c73f776b', class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && h("span", { key: 'c8da1099582546dc29e45401d47cddd032c32f5d', class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && (h("dga-button-v2", { key: '09287f5aacd513ca6475a1b4edc4065166553855', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
33
+ return (h("div", { key: 'd14ab1787c8c118ea71175cc5ecbc72a33c5371d', class: `dga-metric`, "data-chart-size": this.Style }, h("div", { key: 'b82347af7ba629ff4936d949756d24212be5e7e0', class: "dga-metric__head" }, h("div", { key: 'd18c5422258a85d62937f9d18c5e9d1880a736d7', class: "dga-metric__head-content" }, this.showFeaturedIcon && h("div", { key: '0a66bc6b5a66446c8a28c9433974a37125602b63', class: "featured-icon featured-icon--light-brand featured-icon--circle featured-icon--sm" }, this.featuredIcon), this.label && h("span", { key: '7979f1e2dd404456399d9226b4dfac936a1e000e', class: "dga-metric__head-content-text" }, this.label)), this.showMoreButton && (h("dga-button-v2", { key: '5d72b1595fc8b25cd571a65efe65bf2c596caa0d', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
34
34
  name: 'more-vertical',
35
35
  variant: 'stroke',
36
36
  type: 'rounded',
37
- }, onClick: this.onExpandAction }))), h("div", { key: '140c4a033c4bc8765826d1b417c5e13150f2380b', class: "dga-metric__body" }, h("div", { key: '18069a890bdb8b9a487e48c254765f448d5f1c5e', class: "dga-metric__content" }, h("h3", { key: 'd4492075d8048b54c7a18e87a55301452d097fa9', class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && (h("div", { key: 'b09735ba9a432b82ea94b779fdcd8ed79884dbbb', class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, h("span", { key: 'd3f7e9aac24725765bb67118913ac5ed961a9fef', class: "dga-metric__content-change-icon" }, h("dga-icon", { key: '7224580232a91864477875c70c6fc9edc2964288', name: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), h("span", { key: 'c4beafe9a72bac2d63d035a4296bfca2d4060251', class: "dga-metric__content-change-value" }, Math.abs(100), "%"), h("span", { key: 'bb71f004fed299027cb7b997004822e366de98e9', class: "dga-metric__content-change-period" }, "vs last month")))), this.showChart && (h("div", { key: 'ff309d5a23565858d6a0a9dfb932fb24fe387286', class: "dga-metric__chart" }, h("dga-metric-chart", Object.assign({ key: 'e6b5eb8e879c61119e31d755a84c32772d3203fa' }, this.chartProps, { size: this.Style === 'small-chart' ? 'sm' : 'lg' }))))), this.showActions && (h(Fragment, { key: '09c619a5301ae6d3cb2cd4c3ec6fe72cdee45257' }, h("div", { key: '1bf127302bcafd84c5c1ded0b2739f87bca53ab4', class: "dga-metric__divider" }), h("div", { key: '33333c471391db91a903cac1e018524288ee3450', class: "dga-metric__actions" }, this.showSecondaryAction && (h("dga-button-v2", { key: 'df34837408a2d4601468fb3f7508d05dba0fe2cb', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
37
+ }, onClick: this.onExpandAction }))), h("div", { key: 'c392fe2d83c260be2297fa662f24169804e7fc10', class: "dga-metric__body" }, h("div", { key: '1fda8b3c6f085bdcdf73d7dac44056ac0dbda5de', class: "dga-metric__content" }, h("h3", { key: 'e429d5b66b3d61f650811fe6ca3eefdb457d83fa', class: "dga-metric__content-percentage" }, this.percentage), this.showInfo && (h("div", { key: 'fd739650accd1444e38f7af40f1d7a22c19375df', class: "dga-metric__content-change", "data-change-trend": this.changeProps.trend }, h("span", { key: '8b5807df922d0905e9a918f8d8bbdea8119383c6', class: "dga-metric__content-change-icon" }, h("dga-icon", { key: '34ac0a4daa85d46244fbd239fe3ca4a08560e6c4', name: this.changeIcons[this.changeProps.type][this.changeProps.trend], type: "rounded", variant: "stroke", size: 24 })), h("span", { key: '4c8c58105a9a28e74992a13adbd2ba62f8019a26', class: "dga-metric__content-change-value" }, Math.abs(100), "%"), h("span", { key: '846e6c2126b331e9fc5235fa084095194c4cf845', class: "dga-metric__content-change-period" }, "vs last month")))), this.showChart && (h("div", { key: '71f10dfc21154d2acc0a2121be627c16c0bae7b0', class: "dga-metric__chart" }, h("dga-metric-chart", Object.assign({ key: '812b4ddcff8bae020fd7ccbefd84df25aeb14472' }, this.chartProps, { size: this.Style === 'small-chart' ? 'sm' : 'lg' }))))), this.showActions && (h(Fragment, { key: '44c5913cf09a3502fe4ae02a5ab4ff31fb7a0144' }, h("div", { key: 'f620bc446036348e32fcb9fab98ba25cf91ed840', class: "dga-metric__divider" }), h("div", { key: '8c31b9c385abae3979bfd016b1871e708fac59ca', class: "dga-metric__actions" }, this.showSecondaryAction && (h("dga-button-v2", { key: '52cae7eb9840ba93292119230e35e5998eb7c8d7', variant: "subtle", iconOnly: true, leadIcon: true, leadIconProps: {
38
38
  name: 'settings-02',
39
39
  variant: 'stroke',
40
40
  type: 'rounded',
41
- }, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: '474382eaa11be141a05c9b5cf664d6054a9b56ca', variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))))));
41
+ }, onClick: this.onSecondaryAction })), h("dga-button-v2", { key: 'c562672015795df55976db881eeea6738c98a40b', variant: "secondary-outline", class: "dga-metric__actions--primary", label: "View Report", onClick: this.onPrimaryAction }))))));
42
42
  }
43
43
  static get is() { return "dga-metric-v2"; }
44
44
  static get originalStyleUrls() {
@@ -287,7 +287,7 @@ export class DgaMetric {
287
287
  "references": {
288
288
  "IChartProps": {
289
289
  "location": "local",
290
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric-v2/dga-metric-v2.tsx",
290
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric-v2/dga-metric-v2.tsx",
291
291
  "id": "src/components/dga-metric-v2/dga-metric-v2.tsx::IChartProps"
292
292
  }
293
293
  }
@@ -311,7 +311,7 @@ export class DgaMetric {
311
311
  "references": {
312
312
  "ITrend": {
313
313
  "location": "local",
314
- "path": "/Users/mohamedaboelezz/projects/Azm-X/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric-v2/dga-metric-v2.tsx",
314
+ "path": "/home/mahmoud/Documents/platform-code-cross-platform-storybook/packages/core/src/components/dga-metric-v2/dga-metric-v2.tsx",
315
315
  "id": "src/components/dga-metric-v2/dga-metric-v2.tsx::ITrend"
316
316
  }
317
317
  }
@@ -1,36 +1,17 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { SxStyleManager } from "../../utils/sx-style-manager";
3
+ import { checkmarkCircle02SolidSharpIcon, informationCircleSolidSharpIcon, alert02SolidSharpIcon, alertCircleSolidSharpIcon, multiplicationSignStrokeRoundedIcon } from "../../assets/icons/index";
3
4
  export class DgaNotification {
4
5
  constructor() {
5
6
  this.icon = true;
6
7
  this.link = false;
7
8
  this.dismissable = false;
8
9
  this.icons = {
9
- success: {
10
- name: "checkmark-circle-02",
11
- variant: "solid",
12
- type: "sharp",
13
- },
14
- info: {
15
- name: "information-circle",
16
- variant: "solid",
17
- type: "sharp",
18
- },
19
- neutral: {
20
- name: "information-circle",
21
- variant: "solid",
22
- type: "sharp",
23
- },
24
- warning: {
25
- name: "alert-02",
26
- variant: "solid",
27
- type: "sharp",
28
- },
29
- critical: {
30
- name: "alert-circle",
31
- variant: "solid",
32
- type: "sharp",
33
- },
10
+ success: checkmarkCircle02SolidSharpIcon,
11
+ info: informationCircleSolidSharpIcon,
12
+ neutral: informationCircleSolidSharpIcon,
13
+ warning: alert02SolidSharpIcon,
14
+ critical: alertCircleSolidSharpIcon,
34
15
  };
35
16
  // Generate a unique ID if not provided
36
17
  this.componentId = `dga-notification-${Math.random().toString(36).substring(2, 9)}`;
@@ -65,11 +46,11 @@ export class DgaNotification {
65
46
  (_a = this.sxStyleManager) === null || _a === void 0 ? void 0 : _a.cleanup();
66
47
  }
67
48
  render() {
68
- return (h(Host, { key: '579d2614e65103439af62032332c6a2e208f03c6', id: this.componentId, style: this.rootStyles }, h("div", { key: '9aacdd487c273ccf9acb7bf8f9b20ad32dad0636', class: `notification notification--${this.variant}`, role: "alert" }, h("div", { key: '2fb5e89d0abebe8028233bd0bd1a6d60a2c0b37b', class: "notification__content" }, this.icon && h("div", { key: 'a3e728c59d97c219cd3fbd5315bc80db953d6071', class: "notification__icon" }, h("dga-icon", { key: '1fde62052ad50ccb8d29062791c9b41b9e00ecc5', name: this.icons[this.variant].name, variant: this.icons[this.variant].variant, type: this.icons[this.variant].type, size: 24 })), this.leadText && h("strong", { key: '99bf3bcc33b5467941c42ed7bd6d54b8be329b65', class: "notification__lead-text" }, this.leadText, ": "), h("p", { key: 'a5ccee40878e673a863dab578484ec1554caf4dd' }, this.content), this.link && (h("a", { key: '2a99612f46242e3b34ea5b4d61a7e8f5818318e0', onClick: () => {
49
+ return (h(Host, { key: 'c10fe5cf1d1b2b8e34f95c9628c93fc54ed08a63', id: this.componentId, style: this.rootStyles }, h("div", { key: '3781e8e6ee2e86b48eee4ff1499dcfb750ff53f2', class: `notification notification--${this.variant}`, role: "alert" }, h("div", { key: '1a54e54e0d597ec96a7dc1baa06e583eedf31256', class: "notification__content" }, this.icon && h("div", { key: '269d9828eab5dce7a867e93e99c46f559fb0bdee', class: "notification__icon" }, h("dga-icon", { key: '214fbd86c993ea9a7ff16b0f124b7c2a18bf26ba', icon: this.icons[this.variant], size: 24 })), this.leadText && h("strong", { key: 'd2649d7873d4457ecb5e21234cc0791f79a0aa37', class: "notification__lead-text" }, this.leadText, ": "), h("p", { key: '5018fc98e3384415f9e1872ec8920762fa2dca39' }, this.content), this.link && (h("a", { key: '82afcee551bb6768f51d7a6e990b59e40e5ce4e0', onClick: () => {
69
50
  this.navigateTo && this.navigateTo(this.setNavigateTo);
70
- }, class: "notification__link link link--md link--neutral link--inline" }, h("span", { key: '8106eae1476e9912aabdb45f773c195e642d5e86', class: "link__label" }, this.textLink)))), this.dismissable && (h("div", { key: 'ddd12f7c22c4079add4f1b744f102f2c4938c055', class: "notification__dismiss" }, h("button", { key: '4ce90062a91a8103cbaf573a6dc464ef6df9aa79', class: "dga-btn dga-btn--close dga-btn--icon dga-btn--md", onClick: () => {
51
+ }, class: "notification__link link link--md link--neutral link--inline" }, h("span", { key: '777c91d4e3d8d8c0a94c701c2a4a199d98482c77', class: "link__label" }, this.textLink)))), this.dismissable && (h("div", { key: '367e85962266e5db6997eabc0cb8a57d796a687b', class: "notification__dismiss" }, h("button", { key: 'e8ffaa3a182a8d2527dface4a0d07e6d78c3abe2', class: "dga-btn dga-btn--close dga-btn--icon dga-btn--md", onClick: () => {
71
52
  this.dismmissed && this.dismmissed();
72
- } }, h("span", { key: '2ed65757bae2ea164ac58aa61dd1038c78797f2a', class: "dga-btn-icon" }, h("dga-icon", { key: '37247fcf010d8f4f876b4e4f8d55ca4402576625', name: "multiplication-sign", variant: 'stroke', size: 20 }))))))));
53
+ } }, h("span", { key: '4fab62e36b1d881c1e03a8556f2bd3eb676c27fa', class: "dga-btn-icon" }, h("dga-icon", { key: 'f4734ac6295ec9bf5aa4d3c7e13c72bdb3a0ec50', icon: multiplicationSignStrokeRoundedIcon, size: 20 }))))))));
73
54
  }
74
55
  static get is() { return "dga-notification"; }
75
56
  static get encapsulation() { return "shadow"; }
@@ -12,6 +12,7 @@ export class DgaQuote {
12
12
  this.authorName = '';
13
13
  this.authorDescription = '';
14
14
  this.showAvatar = false;
15
+ this.avatarSrc = '';
15
16
  }
16
17
  componentWillLoad() {
17
18
  this.sxHandler = new SxHandler(this.el, 'dga-slider');
@@ -26,7 +27,7 @@ export class DgaQuote {
26
27
  this.sxHandler.cleanup();
27
28
  }
28
29
  render() {
29
- return (h("div", { key: '646789efc2ad38b7808ca82592939a6051f19c9f', class: { 'dga-quote': true, 'dga-quote--white-bg': this.whiteBackground } }, h("div", { key: '1837a07a10c5677cdd0c5c219bf38049946bc21d', class: "dga-quote__body" }, h("dga-flex", { key: '75ba955f74da6e195b1aa634d6b946d6fc07993f', spacing: 9 }, h("span", { key: '7e0a9caba28a5d9c21d852061eb9dcd1870d15dd', class: "quote-icon" }, "\u201D"), h("dga-flex", { key: '40644c053b578527da6903a1bdbb304cded58468', direction: "column", spacing: 16 }, this.showQuoteTitle && h("h2", { key: '92ef841ea8f0a55459d6fcc7fa40d46ffa996b3f', class: "dga-quote__body-title" }, this.quoteTitle), this.showQuoteDescription && h("p", { key: '52a97893f283ecdcc78c4648b234026d12f8c63a', class: "dga-quote__body-desc" }, this.quoteDescription)))), this.showAuthorDetails && (h("div", { key: '5083d38d5b396433df0435ae8fc7ad41d7edf580', class: "dga-quote__auther-details" }, h("dga-flex", { key: '8e73fea44dcb5d2a6e5c1cd79684b7d1d03dedf7', direction: "row", spacing: 16, align: "center" }, this.showAvatar && h("dga-avatar", { key: '9f0131bf583ad16c96c219b7d86f5d2b73c5cdfd', size: 80, type: "image", border: false }), h("dga-flex", { key: '32d24e14df4ca57a1bd1daa85b7f1648392408b0', direction: "column", spacing: 8 }, h("h3", { key: '9ca353846a3f53d6cff9e4a8eb1c54f216a6fb6a', class: "auther-title" }, this.authorName), h("p", { key: 'f0fa2d233583a74c5a012f405204f9d75de290d4', class: "auther-desc" }, this.authorDescription))), h("span", { key: 'affac155816d82093ad4341e9226c2fa780008d7', class: "quote-icon" }, "\u201C")))));
30
+ return (h("div", { key: '07dd772dbecb2357d9b415f9d0634b8026dcd545', class: { 'dga-quote': true, 'dga-quote--white-bg': this.whiteBackground } }, h("div", { key: '6610e95353f3401a7ff3611c95fd5265940cb6ae', class: "dga-quote__body" }, h("dga-flex", { key: '0ac4e007538c281e0f77354f6b075cb1c721186e', spacing: 9 }, h("span", { key: '058665944ad2a598a97c578e469feeccaff80356', class: "quote-icon" }, "\u201D"), h("dga-flex", { key: '72675b554aae7b2818776565b5a687a7617c960f', direction: "column", spacing: 16 }, this.showQuoteTitle && h("h2", { key: 'ae55478db2150cbe3fe3958084a022c16ab1dbfe', class: "dga-quote__body-title" }, this.quoteTitle), this.showQuoteDescription && h("p", { key: '161e595a53136e146d2fc4aabd4380b10812d1ba', class: "dga-quote__body-desc" }, this.quoteDescription)))), this.showAuthorDetails && (h("div", { key: '3a3073a56b54bfe6d84e7fd1f1e2879d65684a91', class: "dga-quote__auther-details" }, h("dga-flex", { key: 'ca7ced49fdf2dc3f0e5047d13cc1736948b1b9e3', direction: "row", spacing: 16, align: "center" }, this.showAvatar && h("dga-avatar", { key: '1dd0ab142f1bfb671971289b468cc5802d7735a4', size: 80, type: "image", border: false, imgUrl: this.avatarSrc }), h("dga-flex", { key: 'a48f41654eafe4c267749edc87fa839043f2c170', direction: "column", spacing: 8 }, h("h3", { key: 'dd46a2f0c41206e1fa49dd7d6d6c0f2cb7c9a95e', class: "auther-title" }, this.authorName), h("p", { key: '14c40e6d46e0a2baaa64646e911c2aebc8b3dfcd', class: "auther-desc" }, this.authorDescription))), h("span", { key: '6905a5bbd199c912c81b2ddf5ce5d4fd2c56ebbc', class: "quote-icon" }, "\u201C")))));
30
31
  }
31
32
  static get is() { return "dga-quote"; }
32
33
  static get originalStyleUrls() {
@@ -241,6 +242,26 @@ export class DgaQuote {
241
242
  "reflect": false,
242
243
  "defaultValue": "false"
243
244
  },
245
+ "avatarSrc": {
246
+ "type": "string",
247
+ "attribute": "avatar-src",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "string",
251
+ "resolved": "string",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": true,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": ""
259
+ },
260
+ "getter": false,
261
+ "setter": false,
262
+ "reflect": false,
263
+ "defaultValue": "''"
264
+ },
244
265
  "sx": {
245
266
  "type": "string",
246
267
  "attribute": "sx",