@dubai-design-system/components-js 4.1.0 → 5.0.1

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 (595) hide show
  1. package/CHANGELOG.md +216 -0
  2. package/dist/assets/fonts/dubai/DubaiBold.ttf +0 -0
  3. package/dist/assets/fonts/dubai/DubaiBold.woff +0 -0
  4. package/dist/assets/fonts/dubai/DubaiBold.woff2 +0 -0
  5. package/dist/assets/fonts/dubai/DubaiLight.ttf +0 -0
  6. package/dist/assets/fonts/dubai/DubaiLight.woff +0 -0
  7. package/dist/assets/fonts/dubai/DubaiLight.woff2 +0 -0
  8. package/dist/assets/fonts/dubai/DubaiMedium.ttf +0 -0
  9. package/dist/assets/fonts/dubai/DubaiMedium.woff +0 -0
  10. package/dist/assets/fonts/dubai/DubaiMedium.woff2 +0 -0
  11. package/dist/assets/fonts/dubai/DubaiRegular.ttf +0 -0
  12. package/dist/assets/fonts/dubai/DubaiRegular.woff +0 -0
  13. package/dist/assets/fonts/dubai/DubaiRegular.woff2 +0 -0
  14. package/dist/cjs/dda-accordion.cjs.entry.js +7 -12
  15. package/dist/cjs/dda-alert.cjs.entry.js +21 -13
  16. package/dist/cjs/dda-attach-file.cjs.entry.js +27 -18
  17. package/dist/cjs/dda-avatar.cjs.entry.js +15 -15
  18. package/dist/cjs/dda-banner.cjs.entry.js +23 -0
  19. package/dist/cjs/dda-breadcrumb.cjs.entry.js +5 -11
  20. package/dist/cjs/dda-button.cjs.entry.js +6 -11
  21. package/dist/cjs/dda-checkbox.cjs.entry.js +5 -11
  22. package/dist/cjs/dda-chip.cjs.entry.js +5 -11
  23. package/dist/cjs/dda-credit-card.cjs.entry.js +5 -11
  24. package/dist/cjs/dda-creditcard-field.cjs.entry.js +23 -11
  25. package/dist/cjs/dda-dropdown.cjs.entry.js +5 -11
  26. package/dist/cjs/dda-footer.cjs.entry.js +5 -8
  27. package/dist/cjs/dda-header.cjs.entry.js +123 -25
  28. package/dist/cjs/dda-home-banner.cjs.entry.js +204 -0
  29. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +5 -11
  30. package/dist/cjs/dda-input.cjs.entry.js +23 -11
  31. package/dist/cjs/dda-link-button_2.cjs.entry.js +19 -22
  32. package/dist/cjs/dda-number-field.cjs.entry.js +20 -11
  33. package/dist/cjs/dda-pagination.cjs.entry.js +17 -19
  34. package/dist/cjs/dda-phonefield.cjs.entry.js +201 -189
  35. package/dist/cjs/dda-progressbar.cjs.entry.js +6 -11
  36. package/dist/cjs/dda-range-slider.cjs.entry.js +5 -10
  37. package/dist/cjs/dda-search-input.cjs.entry.js +24 -14
  38. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +32 -13
  39. package/dist/cjs/dda-select.cjs.entry.js +115 -12
  40. package/dist/cjs/dda-sticky-footer.cjs.entry.js +21 -8
  41. package/dist/cjs/dda-tabs.cjs.entry.js +36 -19
  42. package/dist/cjs/dda-textarea.cjs.entry.js +6131 -6168
  43. package/dist/cjs/dda-toggle.cjs.entry.js +5 -11
  44. package/dist/cjs/dda-tooltip.cjs.entry.js +46 -0
  45. package/dist/cjs/dda-ui-card.cjs.entry.js +26 -0
  46. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +4 -9
  47. package/dist/cjs/dda.cjs.js +7 -10
  48. package/dist/cjs/index-Ca7K0Ebk.js +1986 -0
  49. package/dist/cjs/index.cjs.js +12 -16
  50. package/dist/cjs/loader.cjs.js +3 -8
  51. package/dist/collection/assets/countries.js +179 -179
  52. package/dist/collection/assets/digital-logo.svg +82 -82
  53. package/dist/collection/assets/fonts/dubai/DubaiBold.svg +5922 -5922
  54. package/dist/collection/assets/fonts/dubai/DubaiLight.svg +5935 -5935
  55. package/dist/collection/assets/fonts/dubai/DubaiMedium.svg +5926 -5926
  56. package/dist/collection/assets/fonts/dubai/DubaiRegular.svg +5925 -5925
  57. package/dist/collection/assets/img/dda-icon-logo.svg +4 -4
  58. package/dist/collection/assets/img/digital-logo-white.svg +82 -82
  59. package/dist/collection/assets/img/digital-logo.svg +82 -82
  60. package/dist/collection/assets/img/icn/DubaiAI.svg +267 -267
  61. package/dist/collection/assets/img/icn/icn-Excel.svg +9 -9
  62. package/dist/collection/assets/img/icn/icn-Image.svg +6 -6
  63. package/dist/collection/assets/img/icn/icn-OneNote.svg +6 -6
  64. package/dist/collection/assets/img/icn/icn-PDF.svg +7 -7
  65. package/dist/collection/assets/img/icn/icn-PowerPoint.svg +10 -10
  66. package/dist/collection/assets/img/icn/icn-Video.svg +5 -5
  67. package/dist/collection/assets/img/icn/icn-Word.svg +10 -10
  68. package/dist/collection/assets/img/icn/icn-accessibility-dark.svg +3 -3
  69. package/dist/collection/assets/img/icn/icn-apple-dark.svg +3 -3
  70. package/dist/collection/assets/img/icn/icn-apple.svg +3 -3
  71. package/dist/collection/assets/img/icn/icn-chat_bubble_outline.svg +3 -3
  72. package/dist/collection/assets/img/icn/icn-complaints.svg +28 -28
  73. package/dist/collection/assets/img/icn/icn-facebook-dark.svg +4 -4
  74. package/dist/collection/assets/img/icn/icn-facebook.svg +11 -11
  75. package/dist/collection/assets/img/icn/icn-google-dark.svg +13 -13
  76. package/dist/collection/assets/img/icn/icn-google.svg +13 -13
  77. package/dist/collection/assets/img/icn/icn-grid-view.svg +3 -3
  78. package/dist/collection/assets/img/icn/icn-happy.svg +3 -3
  79. package/dist/collection/assets/img/icn/icn-instagram-dark.svg +12 -12
  80. package/dist/collection/assets/img/icn/icn-instagram.svg +30 -30
  81. package/dist/collection/assets/img/icn/icn-search-dark.svg +3 -3
  82. package/dist/collection/assets/img/icn/icn-user-dark.svg +3 -3
  83. package/dist/collection/collection-manifest.json +6 -2
  84. package/dist/collection/components/dda-accordion/dda-accordion.css +82 -72
  85. package/dist/collection/components/dda-accordion/dda-accordion.js +30 -10
  86. package/dist/collection/components/dda-accordion/dda-accordion.stories.js +19 -13
  87. package/dist/collection/components/dda-alert/dda-alert.css +148 -148
  88. package/dist/collection/components/dda-alert/dda-alert.js +118 -16
  89. package/dist/collection/components/dda-alert/dda-alert.stories.js +39 -33
  90. package/dist/collection/components/dda-attach-file/dda-attach-file.js +75 -23
  91. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +38 -21
  92. package/dist/collection/components/dda-avatar/dda-avatar.css +306 -280
  93. package/dist/collection/components/dda-avatar/dda-avatar.js +48 -23
  94. package/dist/collection/components/dda-avatar/dda-avatar.stories.js +51 -43
  95. package/dist/collection/components/dda-banner/dda-banner.css +3 -0
  96. package/dist/collection/components/dda-banner/dda-banner.js +90 -0
  97. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.css +58 -58
  98. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +6 -7
  99. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.stories.js +16 -17
  100. package/dist/collection/components/dda-button/dda-button.js +39 -19
  101. package/dist/collection/components/dda-button/dda-button.stories.js +26 -17
  102. package/dist/collection/components/dda-checkbox/dda-checkbox.css +119 -119
  103. package/dist/collection/components/dda-checkbox/dda-checkbox.js +22 -23
  104. package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +18 -19
  105. package/dist/collection/components/dda-chip/dda-chip.css +113 -100
  106. package/dist/collection/components/dda-chip/dda-chip.js +12 -13
  107. package/dist/collection/components/dda-chip/dda-chip.stories.js +17 -18
  108. package/dist/collection/components/dda-credit-card/dda-credit-card.css +109 -103
  109. package/dist/collection/components/dda-credit-card/dda-credit-card.js +14 -15
  110. package/dist/collection/components/dda-credit-card/dda-credit-card.stories.js +14 -15
  111. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +84 -28
  112. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +39 -22
  113. package/dist/collection/components/dda-dropdown/dda-dropdown.js +60 -23
  114. package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +38 -21
  115. package/dist/collection/components/dda-footer/dda-footer.js +21 -23
  116. package/dist/collection/components/dda-footer/dda-footer.stories.js +29 -30
  117. package/dist/collection/components/dda-header/dda-header.css +36 -0
  118. package/dist/collection/components/dda-header/dda-header.js +418 -26
  119. package/dist/collection/components/dda-header/dda-header.stories.js +151 -60
  120. package/dist/collection/components/dda-home-banner/dda-home-banner.js +397 -0
  121. package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js +94 -0
  122. package/dist/collection/components/dda-home-banner/home-banner.css +195 -0
  123. package/dist/collection/components/dda-input/dda-input.js +63 -27
  124. package/dist/collection/components/dda-input/dda-input.stories.js +33 -21
  125. package/dist/collection/components/dda-link-button/dda-link-button.js +20 -21
  126. package/dist/collection/components/dda-link-button/dda-link-button.stories.js +16 -17
  127. package/dist/collection/components/dda-number-field/dda-number-field.js +99 -28
  128. package/dist/collection/components/dda-number-field/dda-number-field.stories.js +47 -24
  129. package/dist/collection/components/dda-pagination/dda-pagination.css +175 -167
  130. package/dist/collection/components/dda-pagination/dda-pagination.js +241 -14
  131. package/dist/collection/components/dda-pagination/dda-pagination.stories.js +156 -13
  132. package/dist/collection/components/dda-phonefield/dda-phonefield.js +120 -26
  133. package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +60 -20
  134. package/dist/collection/components/dda-progressbar/dda-progressbar.css +98 -94
  135. package/dist/collection/components/dda-progressbar/dda-progressbar.js +30 -10
  136. package/dist/collection/components/dda-progressbar/dda-progressbar.stories.js +19 -14
  137. package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +3811 -3470
  138. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +22 -23
  139. package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +18 -19
  140. package/dist/collection/components/dda-range-slider/dda-range-slider.css +152 -136
  141. package/dist/collection/components/dda-range-slider/dda-range-slider.js +60 -23
  142. package/dist/collection/components/dda-range-slider/dda-range-slider.stories.js +34 -19
  143. package/dist/collection/components/dda-search-input/dda-search-input.js +116 -24
  144. package/dist/collection/components/dda-search-input/dda-search-input.stories.js +57 -22
  145. package/dist/collection/components/dda-select/dda-select.js +173 -25
  146. package/dist/collection/components/dda-select/dda-select.stories.js +36 -19
  147. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +161 -83
  148. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +68 -56
  149. package/dist/collection/components/dda-tabs/dda-tabs.css +119 -119
  150. package/dist/collection/components/dda-tabs/dda-tabs.js +119 -21
  151. package/dist/collection/components/dda-tabs/dda-tabs.stories.js +42 -16
  152. package/dist/collection/components/dda-textarea/dda-textarea.js +116 -29
  153. package/dist/collection/components/dda-textarea/dda-textarea.stories.js +27 -19
  154. package/dist/collection/components/dda-toggle/dda-toggle.css +119 -119
  155. package/dist/collection/components/dda-toggle/dda-toggle.js +14 -15
  156. package/dist/collection/components/dda-toggle/dda-toggle.stories.js +17 -18
  157. package/dist/collection/components/dda-tooltip/dda-tooltip.css +146 -130
  158. package/dist/collection/components/dda-tooltip/dda-tooltip.js +39 -10
  159. package/dist/collection/components/dda-tooltip/dda-tooltip.stories.js +16 -17
  160. package/dist/collection/components/dda-ui-card/dda-ui-card.css +3 -0
  161. package/dist/collection/components/dda-ui-card/dda-ui-card.js +209 -0
  162. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.css +51 -51
  163. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +116 -12
  164. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.js +39 -13
  165. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +120 -108
  166. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +8 -9
  167. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +19 -20
  168. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.css +112 -112
  169. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +7 -8
  170. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +19 -20
  171. package/dist/collection/global/dda-button.css +611 -580
  172. package/dist/collection/global/global.css +3687 -3346
  173. package/dist/collection/global/input.css +676 -615
  174. package/dist/collection/index.js +0 -1
  175. package/dist/collection/utils/applyTheme.js +12 -12
  176. package/dist/collection/utils/contrast.js +38 -0
  177. package/dist/collection/utils/utils.js +0 -1
  178. package/dist/components/dda-accordion.js +1 -54
  179. package/dist/components/dda-alert.js +1 -60
  180. package/dist/components/dda-attach-file.js +1 -107
  181. package/dist/components/dda-avatar.js +1 -91
  182. package/dist/components/dda-banner.d.ts +11 -0
  183. package/dist/components/dda-banner.js +1 -0
  184. package/dist/components/dda-breadcrumb.js +1 -55
  185. package/dist/components/dda-button.js +1 -8
  186. package/dist/components/dda-checkbox.js +1 -60
  187. package/dist/components/dda-chip.js +1 -51
  188. package/dist/components/dda-credit-card.js +1 -54
  189. package/dist/components/dda-creditcard-field.js +1 -97
  190. package/dist/components/dda-dropdown.js +1 -86
  191. package/dist/components/dda-footer.js +1 -64
  192. package/dist/components/dda-header.js +1 -155
  193. package/dist/components/dda-home-banner.d.ts +11 -0
  194. package/dist/components/dda-home-banner.js +1 -0
  195. package/dist/components/dda-horizontal-stepper.js +1 -50
  196. package/dist/components/dda-input.js +1 -67
  197. package/dist/components/dda-link-button.js +1 -8
  198. package/dist/components/dda-number-field.js +1 -98
  199. package/dist/components/dda-pagination.js +1 -103
  200. package/dist/components/dda-phonefield.js +1 -277
  201. package/dist/components/dda-progressbar.js +1 -53
  202. package/dist/components/dda-radiobutton.js +1 -8
  203. package/dist/components/dda-range-slider.js +1 -80
  204. package/dist/components/dda-search-input.js +1 -68
  205. package/dist/components/dda-segmented-tabs.js +1 -50
  206. package/dist/components/dda-select.js +1 -76
  207. package/dist/components/dda-sticky-footer.js +1 -89
  208. package/dist/components/dda-tabs.js +1 -61
  209. package/dist/components/dda-textarea.js +1 -16461
  210. package/dist/components/dda-toggle.js +1 -54
  211. package/dist/components/dda-tooltip.js +1 -8
  212. package/dist/components/dda-ui-card.d.ts +11 -0
  213. package/dist/components/dda-ui-card.js +1 -0
  214. package/dist/components/dda-vertical-stepper.js +1 -48
  215. package/dist/components/index.d.ts +2 -0
  216. package/dist/components/index.js +1 -23
  217. package/dist/components/p-BbQk3lNN.js +1 -0
  218. package/dist/components/p-BqPGP84L.js +1 -0
  219. package/dist/components/p-C90V7afZ.js +1 -0
  220. package/dist/components/p-Ceq73F9H.js +1 -0
  221. package/dist/components/p-CfeBxzCg.js +1 -0
  222. package/dist/dda/dda.css +56 -0
  223. package/dist/dda/dda.esm.js +1 -2
  224. package/dist/dda/index.esm.js +1 -2
  225. package/dist/dda/p-01766265.entry.js +1 -0
  226. package/dist/dda/p-0a3ea903.entry.js +1 -0
  227. package/dist/dda/p-120f0401.entry.js +1 -0
  228. package/dist/dda/p-1620415e.entry.js +1 -0
  229. package/dist/dda/p-18708284.entry.js +1 -0
  230. package/dist/dda/p-1d6d33cd.entry.js +1 -0
  231. package/dist/dda/p-350a04cf.entry.js +1 -0
  232. package/dist/dda/p-3f06f0e2.entry.js +1 -0
  233. package/dist/dda/p-4918df54.entry.js +1 -0
  234. package/dist/dda/p-4a4d087e.entry.js +1 -0
  235. package/dist/dda/p-4ac55d0c.entry.js +1 -0
  236. package/dist/dda/p-4b33da48.entry.js +1 -0
  237. package/dist/dda/p-4d2e2594.entry.js +1 -0
  238. package/dist/dda/p-5473440a.entry.js +1 -0
  239. package/dist/dda/p-554c72d7.entry.js +1 -0
  240. package/dist/dda/p-565c8d35.entry.js +1 -0
  241. package/dist/dda/p-56dc112a.entry.js +1 -0
  242. package/dist/dda/p-64d2b705.entry.js +1 -0
  243. package/dist/dda/p-64e59960.entry.js +1 -0
  244. package/dist/dda/p-6e926e1f.entry.js +1 -0
  245. package/dist/dda/p-73501746.entry.js +1 -0
  246. package/dist/dda/p-82af7b9c.entry.js +1 -0
  247. package/dist/dda/p-865ad76f.entry.js +1 -0
  248. package/dist/dda/p-89799487.entry.js +1 -0
  249. package/dist/dda/p-8e923011.entry.js +1 -0
  250. package/dist/dda/p-9292f9d9.entry.js +1 -0
  251. package/dist/dda/p-Dx9UtVJC.js +2 -0
  252. package/dist/dda/p-a543b2cf.entry.js +1 -0
  253. package/dist/dda/p-c5471384.entry.js +1 -0
  254. package/dist/dda/p-ca3c6a47.entry.js +1 -0
  255. package/dist/dda/p-d2556e9d.entry.js +1 -0
  256. package/dist/dda/p-eca22ee5.entry.js +1 -0
  257. package/dist/dda/p-ee977745.entry.js +1 -0
  258. package/dist/dda/p-f1cdcaa2.entry.js +1 -0
  259. package/dist/esm/dda-accordion.entry.js +7 -10
  260. package/dist/esm/dda-alert.entry.js +21 -11
  261. package/dist/esm/dda-attach-file.entry.js +27 -16
  262. package/dist/esm/dda-avatar.entry.js +15 -13
  263. package/dist/esm/dda-banner.entry.js +21 -0
  264. package/dist/esm/dda-breadcrumb.entry.js +5 -9
  265. package/dist/esm/dda-button.entry.js +6 -9
  266. package/dist/esm/dda-checkbox.entry.js +5 -9
  267. package/dist/esm/dda-chip.entry.js +5 -9
  268. package/dist/esm/dda-credit-card.entry.js +5 -9
  269. package/dist/esm/dda-creditcard-field.entry.js +23 -9
  270. package/dist/esm/dda-dropdown.entry.js +5 -9
  271. package/dist/esm/dda-footer.entry.js +6 -7
  272. package/dist/esm/dda-header.entry.js +123 -23
  273. package/dist/esm/dda-home-banner.entry.js +202 -0
  274. package/dist/esm/dda-horizontal-stepper.entry.js +5 -9
  275. package/dist/esm/dda-input.entry.js +23 -9
  276. package/dist/esm/dda-link-button_2.entry.js +19 -20
  277. package/dist/esm/dda-number-field.entry.js +20 -9
  278. package/dist/esm/dda-pagination.entry.js +17 -17
  279. package/dist/esm/dda-phonefield.entry.js +201 -187
  280. package/dist/esm/dda-progressbar.entry.js +6 -9
  281. package/dist/esm/dda-range-slider.entry.js +5 -8
  282. package/dist/esm/dda-search-input.entry.js +24 -12
  283. package/dist/esm/dda-segmented-tabs.entry.js +32 -11
  284. package/dist/esm/dda-select.entry.js +115 -10
  285. package/dist/esm/dda-sticky-footer.entry.js +22 -7
  286. package/dist/esm/dda-tabs.entry.js +36 -17
  287. package/dist/esm/dda-textarea.entry.js +6131 -6166
  288. package/dist/esm/dda-toggle.entry.js +5 -9
  289. package/dist/esm/dda-tooltip.entry.js +44 -0
  290. package/dist/esm/dda-ui-card.entry.js +24 -0
  291. package/dist/esm/dda-vertical-stepper.entry.js +4 -7
  292. package/dist/esm/dda.js +5 -7
  293. package/dist/esm/index-Dx9UtVJC.js +1976 -0
  294. package/dist/esm/index.js +12 -14
  295. package/dist/esm/loader.js +3 -6
  296. package/dist/types/components/dda-accordion/dda-accordion.d.ts +1 -0
  297. package/dist/types/components/dda-accordion/dda-accordion.stories.d.ts +4 -0
  298. package/dist/types/components/dda-alert/dda-alert.d.ts +9 -0
  299. package/dist/types/components/dda-alert/dda-alert.stories.d.ts +4 -0
  300. package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +5 -0
  301. package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +8 -0
  302. package/dist/types/components/dda-avatar/dda-avatar.d.ts +1 -0
  303. package/dist/types/components/dda-avatar/dda-avatar.stories.d.ts +6 -0
  304. package/dist/types/components/dda-banner/dda-banner.d.ts +13 -0
  305. package/dist/types/components/dda-button/dda-button.d.ts +1 -0
  306. package/dist/types/components/dda-button/dda-button.stories.d.ts +6 -0
  307. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +5 -0
  308. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +12 -0
  309. package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +2 -0
  310. package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +12 -0
  311. package/dist/types/components/dda-header/dda-header.d.ts +25 -1
  312. package/dist/types/components/dda-header/dda-header.stories.d.ts +62 -0
  313. package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +56 -0
  314. package/dist/types/components/dda-home-banner/dda-home-banner.stories.d.ts +51 -0
  315. package/dist/types/components/dda-input/dda-input.d.ts +4 -0
  316. package/dist/types/components/dda-input/dda-input.stories.d.ts +6 -0
  317. package/dist/types/components/dda-number-field/dda-number-field.d.ts +6 -0
  318. package/dist/types/components/dda-number-field/dda-number-field.stories.d.ts +18 -0
  319. package/dist/types/components/dda-pagination/dda-pagination.d.ts +12 -0
  320. package/dist/types/components/dda-pagination/dda-pagination.stories.d.ts +72 -0
  321. package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +7 -0
  322. package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +24 -0
  323. package/dist/types/components/dda-progressbar/dda-progressbar.d.ts +1 -0
  324. package/dist/types/components/dda-progressbar/dda-progressbar.stories.d.ts +7 -0
  325. package/dist/types/components/dda-range-slider/dda-range-slider.d.ts +2 -0
  326. package/dist/types/components/dda-range-slider/dda-range-slider.stories.d.ts +12 -0
  327. package/dist/types/components/dda-search-input/dda-search-input.d.ts +7 -0
  328. package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +24 -0
  329. package/dist/types/components/dda-select/dda-select.d.ts +15 -0
  330. package/dist/types/components/dda-select/dda-select.stories.d.ts +12 -0
  331. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +9 -0
  332. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.stories.d.ts +8 -0
  333. package/dist/types/components/dda-tabs/dda-tabs.d.ts +8 -4
  334. package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +16 -0
  335. package/dist/types/components/dda-textarea/dda-textarea.d.ts +7 -0
  336. package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +6 -0
  337. package/dist/types/components/dda-tooltip/dda-tooltip.d.ts +6 -0
  338. package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -0
  339. package/dist/types/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.d.ts +13 -0
  340. package/dist/types/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.d.ts +18 -0
  341. package/dist/types/components.d.ts +1559 -70
  342. package/dist/types/stencil-public-runtime.d.ts +193 -12
  343. package/dist/types/utils/contrast.d.ts +19 -0
  344. package/package.json +34 -10
  345. package/readme.md +80 -78
  346. package/LICENSE +0 -21
  347. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  348. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  349. package/dist/cjs/dda-accordion.cjs.entry.js.map +0 -1
  350. package/dist/cjs/dda-alert.cjs.entry.js.map +0 -1
  351. package/dist/cjs/dda-attach-file.cjs.entry.js.map +0 -1
  352. package/dist/cjs/dda-avatar.cjs.entry.js.map +0 -1
  353. package/dist/cjs/dda-breadcrumb.cjs.entry.js.map +0 -1
  354. package/dist/cjs/dda-button.cjs.entry.js.map +0 -1
  355. package/dist/cjs/dda-checkbox.cjs.entry.js.map +0 -1
  356. package/dist/cjs/dda-chip.cjs.entry.js.map +0 -1
  357. package/dist/cjs/dda-credit-card.cjs.entry.js.map +0 -1
  358. package/dist/cjs/dda-creditcard-field.cjs.entry.js.map +0 -1
  359. package/dist/cjs/dda-dropdown.cjs.entry.js.map +0 -1
  360. package/dist/cjs/dda-footer.cjs.entry.js.map +0 -1
  361. package/dist/cjs/dda-header.cjs.entry.js.map +0 -1
  362. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js.map +0 -1
  363. package/dist/cjs/dda-input.cjs.entry.js.map +0 -1
  364. package/dist/cjs/dda-link-button_2.cjs.entry.js.map +0 -1
  365. package/dist/cjs/dda-number-field.cjs.entry.js.map +0 -1
  366. package/dist/cjs/dda-pagination.cjs.entry.js.map +0 -1
  367. package/dist/cjs/dda-phonefield.cjs.entry.js.map +0 -1
  368. package/dist/cjs/dda-progressbar.cjs.entry.js.map +0 -1
  369. package/dist/cjs/dda-radiobutton.cjs.entry.js +0 -31
  370. package/dist/cjs/dda-radiobutton.cjs.entry.js.map +0 -1
  371. package/dist/cjs/dda-range-slider.cjs.entry.js.map +0 -1
  372. package/dist/cjs/dda-search-input.cjs.entry.js.map +0 -1
  373. package/dist/cjs/dda-segmented-tabs.cjs.entry.js.map +0 -1
  374. package/dist/cjs/dda-select.cjs.entry.js.map +0 -1
  375. package/dist/cjs/dda-sticky-footer.cjs.entry.js.map +0 -1
  376. package/dist/cjs/dda-tabs.cjs.entry.js.map +0 -1
  377. package/dist/cjs/dda-textarea.cjs.entry.js.map +0 -1
  378. package/dist/cjs/dda-toggle.cjs.entry.js.map +0 -1
  379. package/dist/cjs/dda-vertical-stepper.cjs.entry.js.map +0 -1
  380. package/dist/cjs/dda.cjs.js.map +0 -1
  381. package/dist/cjs/index-a2fa4928.js +0 -1619
  382. package/dist/cjs/index-a2fa4928.js.map +0 -1
  383. package/dist/cjs/index.cjs.js.map +0 -1
  384. package/dist/cjs/loader.cjs.js.map +0 -1
  385. package/dist/collection/components/dda-accordion/dda-accordion.js.map +0 -1
  386. package/dist/collection/components/dda-accordion/dda-accordion.stories.js.map +0 -1
  387. package/dist/collection/components/dda-alert/dda-alert.js.map +0 -1
  388. package/dist/collection/components/dda-alert/dda-alert.stories.js.map +0 -1
  389. package/dist/collection/components/dda-attach-file/dda-attach-file.js.map +0 -1
  390. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js.map +0 -1
  391. package/dist/collection/components/dda-avatar/dda-avatar.js.map +0 -1
  392. package/dist/collection/components/dda-avatar/dda-avatar.stories.js.map +0 -1
  393. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js.map +0 -1
  394. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.stories.js.map +0 -1
  395. package/dist/collection/components/dda-button/dda-button.js.map +0 -1
  396. package/dist/collection/components/dda-button/dda-button.stories.js.map +0 -1
  397. package/dist/collection/components/dda-checkbox/dda-checkbox.js.map +0 -1
  398. package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js.map +0 -1
  399. package/dist/collection/components/dda-chip/dda-chip.js.map +0 -1
  400. package/dist/collection/components/dda-chip/dda-chip.stories.js.map +0 -1
  401. package/dist/collection/components/dda-credit-card/dda-credit-card.js.map +0 -1
  402. package/dist/collection/components/dda-credit-card/dda-credit-card.stories.js.map +0 -1
  403. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js.map +0 -1
  404. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js.map +0 -1
  405. package/dist/collection/components/dda-dropdown/dda-dropdown.js.map +0 -1
  406. package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js.map +0 -1
  407. package/dist/collection/components/dda-footer/dda-footer.js.map +0 -1
  408. package/dist/collection/components/dda-footer/dda-footer.stories.js.map +0 -1
  409. package/dist/collection/components/dda-header/dda-header.js.map +0 -1
  410. package/dist/collection/components/dda-header/dda-header.stories.js.map +0 -1
  411. package/dist/collection/components/dda-input/dda-input.js.map +0 -1
  412. package/dist/collection/components/dda-input/dda-input.stories.js.map +0 -1
  413. package/dist/collection/components/dda-link-button/dda-link-button.js.map +0 -1
  414. package/dist/collection/components/dda-link-button/dda-link-button.stories.js.map +0 -1
  415. package/dist/collection/components/dda-number-field/dda-number-field.js.map +0 -1
  416. package/dist/collection/components/dda-number-field/dda-number-field.stories.js.map +0 -1
  417. package/dist/collection/components/dda-pagination/dda-pagination.js.map +0 -1
  418. package/dist/collection/components/dda-pagination/dda-pagination.stories.js.map +0 -1
  419. package/dist/collection/components/dda-phonefield/dda-phonefield.js.map +0 -1
  420. package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js.map +0 -1
  421. package/dist/collection/components/dda-progressbar/dda-progressbar.js.map +0 -1
  422. package/dist/collection/components/dda-progressbar/dda-progressbar.stories.js.map +0 -1
  423. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js.map +0 -1
  424. package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js.map +0 -1
  425. package/dist/collection/components/dda-range-slider/dda-range-slider.js.map +0 -1
  426. package/dist/collection/components/dda-range-slider/dda-range-slider.stories.js.map +0 -1
  427. package/dist/collection/components/dda-search-input/dda-search-input.js.map +0 -1
  428. package/dist/collection/components/dda-search-input/dda-search-input.stories.js.map +0 -1
  429. package/dist/collection/components/dda-select/dda-select.js.map +0 -1
  430. package/dist/collection/components/dda-select/dda-select.stories.js.map +0 -1
  431. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js.map +0 -1
  432. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js.map +0 -1
  433. package/dist/collection/components/dda-tabs/dda-tabs.js.map +0 -1
  434. package/dist/collection/components/dda-tabs/dda-tabs.stories.js.map +0 -1
  435. package/dist/collection/components/dda-textarea/dda-textarea.js.map +0 -1
  436. package/dist/collection/components/dda-textarea/dda-textarea.stories.js.map +0 -1
  437. package/dist/collection/components/dda-toggle/dda-toggle.js.map +0 -1
  438. package/dist/collection/components/dda-toggle/dda-toggle.stories.js.map +0 -1
  439. package/dist/collection/components/dda-tooltip/dda-tooltip.js.map +0 -1
  440. package/dist/collection/components/dda-tooltip/dda-tooltip.stories.js.map +0 -1
  441. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js.map +0 -1
  442. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.js.map +0 -1
  443. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js.map +0 -1
  444. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js.map +0 -1
  445. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js.map +0 -1
  446. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js.map +0 -1
  447. package/dist/collection/index.js.map +0 -1
  448. package/dist/collection/utils/utils.js.map +0 -1
  449. package/dist/components/dda-accordion.js.map +0 -1
  450. package/dist/components/dda-alert.js.map +0 -1
  451. package/dist/components/dda-attach-file.js.map +0 -1
  452. package/dist/components/dda-avatar.js.map +0 -1
  453. package/dist/components/dda-breadcrumb.js.map +0 -1
  454. package/dist/components/dda-button.js.map +0 -1
  455. package/dist/components/dda-checkbox.js.map +0 -1
  456. package/dist/components/dda-chip.js.map +0 -1
  457. package/dist/components/dda-credit-card.js.map +0 -1
  458. package/dist/components/dda-creditcard-field.js.map +0 -1
  459. package/dist/components/dda-dropdown.js.map +0 -1
  460. package/dist/components/dda-footer.js.map +0 -1
  461. package/dist/components/dda-header.js.map +0 -1
  462. package/dist/components/dda-horizontal-stepper.js.map +0 -1
  463. package/dist/components/dda-input.js.map +0 -1
  464. package/dist/components/dda-link-button.js.map +0 -1
  465. package/dist/components/dda-number-field.js.map +0 -1
  466. package/dist/components/dda-pagination.js.map +0 -1
  467. package/dist/components/dda-phonefield.js.map +0 -1
  468. package/dist/components/dda-progressbar.js.map +0 -1
  469. package/dist/components/dda-radiobutton.js.map +0 -1
  470. package/dist/components/dda-range-slider.js.map +0 -1
  471. package/dist/components/dda-search-input.js.map +0 -1
  472. package/dist/components/dda-segmented-tabs.js.map +0 -1
  473. package/dist/components/dda-select.js.map +0 -1
  474. package/dist/components/dda-sticky-footer.js.map +0 -1
  475. package/dist/components/dda-tabs.js.map +0 -1
  476. package/dist/components/dda-textarea.js.map +0 -1
  477. package/dist/components/dda-toggle.js.map +0 -1
  478. package/dist/components/dda-tooltip.js.map +0 -1
  479. package/dist/components/dda-vertical-stepper.js.map +0 -1
  480. package/dist/components/index.js.map +0 -1
  481. package/dist/components/p-562afefe.js +0 -73
  482. package/dist/components/p-562afefe.js.map +0 -1
  483. package/dist/components/p-6f74eccd.js +0 -1422
  484. package/dist/components/p-6f74eccd.js.map +0 -1
  485. package/dist/components/p-96fcc6bd.js +0 -54
  486. package/dist/components/p-96fcc6bd.js.map +0 -1
  487. package/dist/components/p-ad0417cc.js +0 -44
  488. package/dist/components/p-ad0417cc.js.map +0 -1
  489. package/dist/components/p-f15e5894.js +0 -76
  490. package/dist/components/p-f15e5894.js.map +0 -1
  491. package/dist/dda/dda.esm.js.map +0 -1
  492. package/dist/dda/index.esm.js.map +0 -1
  493. package/dist/dda/p-01b4ec07.entry.js +0 -2
  494. package/dist/dda/p-01b4ec07.entry.js.map +0 -1
  495. package/dist/dda/p-231440d1.entry.js +0 -2
  496. package/dist/dda/p-231440d1.entry.js.map +0 -1
  497. package/dist/dda/p-2e604126.entry.js +0 -2
  498. package/dist/dda/p-2e604126.entry.js.map +0 -1
  499. package/dist/dda/p-31699358.entry.js +0 -2
  500. package/dist/dda/p-31699358.entry.js.map +0 -1
  501. package/dist/dda/p-33561c6d.entry.js +0 -2
  502. package/dist/dda/p-33561c6d.entry.js.map +0 -1
  503. package/dist/dda/p-36561409.entry.js +0 -2
  504. package/dist/dda/p-36561409.entry.js.map +0 -1
  505. package/dist/dda/p-3c099577.entry.js +0 -2
  506. package/dist/dda/p-3c099577.entry.js.map +0 -1
  507. package/dist/dda/p-3cdb54c4.entry.js +0 -2
  508. package/dist/dda/p-3cdb54c4.entry.js.map +0 -1
  509. package/dist/dda/p-3d5608f7.entry.js +0 -2
  510. package/dist/dda/p-3d5608f7.entry.js.map +0 -1
  511. package/dist/dda/p-3fffdb8b.entry.js +0 -2
  512. package/dist/dda/p-3fffdb8b.entry.js.map +0 -1
  513. package/dist/dda/p-466f931b.entry.js +0 -2
  514. package/dist/dda/p-466f931b.entry.js.map +0 -1
  515. package/dist/dda/p-4d0d3545.entry.js +0 -2
  516. package/dist/dda/p-4d0d3545.entry.js.map +0 -1
  517. package/dist/dda/p-511fae4e.entry.js +0 -2
  518. package/dist/dda/p-511fae4e.entry.js.map +0 -1
  519. package/dist/dda/p-540284f3.entry.js +0 -2
  520. package/dist/dda/p-540284f3.entry.js.map +0 -1
  521. package/dist/dda/p-578b6d01.entry.js +0 -2
  522. package/dist/dda/p-578b6d01.entry.js.map +0 -1
  523. package/dist/dda/p-6b401fde.js +0 -3
  524. package/dist/dda/p-6b401fde.js.map +0 -1
  525. package/dist/dda/p-8c970299.entry.js +0 -2
  526. package/dist/dda/p-8c970299.entry.js.map +0 -1
  527. package/dist/dda/p-8ffca988.entry.js +0 -2
  528. package/dist/dda/p-8ffca988.entry.js.map +0 -1
  529. package/dist/dda/p-9c619a7a.entry.js +0 -2
  530. package/dist/dda/p-9c619a7a.entry.js.map +0 -1
  531. package/dist/dda/p-9c693b51.entry.js +0 -2
  532. package/dist/dda/p-9c693b51.entry.js.map +0 -1
  533. package/dist/dda/p-a5b7698d.entry.js +0 -2
  534. package/dist/dda/p-a5b7698d.entry.js.map +0 -1
  535. package/dist/dda/p-a83fa6d1.entry.js +0 -2
  536. package/dist/dda/p-a83fa6d1.entry.js.map +0 -1
  537. package/dist/dda/p-ade2b279.entry.js +0 -2
  538. package/dist/dda/p-ade2b279.entry.js.map +0 -1
  539. package/dist/dda/p-aec2f087.entry.js +0 -2
  540. package/dist/dda/p-aec2f087.entry.js.map +0 -1
  541. package/dist/dda/p-bf69dfab.entry.js +0 -2
  542. package/dist/dda/p-bf69dfab.entry.js.map +0 -1
  543. package/dist/dda/p-ccf23fd7.entry.js +0 -2
  544. package/dist/dda/p-ccf23fd7.entry.js.map +0 -1
  545. package/dist/dda/p-d6a16216.entry.js +0 -2
  546. package/dist/dda/p-d6a16216.entry.js.map +0 -1
  547. package/dist/dda/p-dbba8d56.entry.js +0 -2
  548. package/dist/dda/p-dbba8d56.entry.js.map +0 -1
  549. package/dist/dda/p-e1255160.js +0 -2
  550. package/dist/dda/p-e1255160.js.map +0 -1
  551. package/dist/dda/p-e4d6f6cb.entry.js +0 -2
  552. package/dist/dda/p-e4d6f6cb.entry.js.map +0 -1
  553. package/dist/dda/p-e550c988.entry.js +0 -2
  554. package/dist/dda/p-e550c988.entry.js.map +0 -1
  555. package/dist/dda/p-ed0795e7.entry.js +0 -2
  556. package/dist/dda/p-ed0795e7.entry.js.map +0 -1
  557. package/dist/esm/app-globals-0f993ce5.js +0 -5
  558. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  559. package/dist/esm/dda-accordion.entry.js.map +0 -1
  560. package/dist/esm/dda-alert.entry.js.map +0 -1
  561. package/dist/esm/dda-attach-file.entry.js.map +0 -1
  562. package/dist/esm/dda-avatar.entry.js.map +0 -1
  563. package/dist/esm/dda-breadcrumb.entry.js.map +0 -1
  564. package/dist/esm/dda-button.entry.js.map +0 -1
  565. package/dist/esm/dda-checkbox.entry.js.map +0 -1
  566. package/dist/esm/dda-chip.entry.js.map +0 -1
  567. package/dist/esm/dda-credit-card.entry.js.map +0 -1
  568. package/dist/esm/dda-creditcard-field.entry.js.map +0 -1
  569. package/dist/esm/dda-dropdown.entry.js.map +0 -1
  570. package/dist/esm/dda-footer.entry.js.map +0 -1
  571. package/dist/esm/dda-header.entry.js.map +0 -1
  572. package/dist/esm/dda-horizontal-stepper.entry.js.map +0 -1
  573. package/dist/esm/dda-input.entry.js.map +0 -1
  574. package/dist/esm/dda-link-button_2.entry.js.map +0 -1
  575. package/dist/esm/dda-number-field.entry.js.map +0 -1
  576. package/dist/esm/dda-pagination.entry.js.map +0 -1
  577. package/dist/esm/dda-phonefield.entry.js.map +0 -1
  578. package/dist/esm/dda-progressbar.entry.js.map +0 -1
  579. package/dist/esm/dda-radiobutton.entry.js +0 -27
  580. package/dist/esm/dda-radiobutton.entry.js.map +0 -1
  581. package/dist/esm/dda-range-slider.entry.js.map +0 -1
  582. package/dist/esm/dda-search-input.entry.js.map +0 -1
  583. package/dist/esm/dda-segmented-tabs.entry.js.map +0 -1
  584. package/dist/esm/dda-select.entry.js.map +0 -1
  585. package/dist/esm/dda-sticky-footer.entry.js.map +0 -1
  586. package/dist/esm/dda-tabs.entry.js.map +0 -1
  587. package/dist/esm/dda-textarea.entry.js.map +0 -1
  588. package/dist/esm/dda-toggle.entry.js.map +0 -1
  589. package/dist/esm/dda-vertical-stepper.entry.js.map +0 -1
  590. package/dist/esm/dda.js.map +0 -1
  591. package/dist/esm/index-be8c716a.js +0 -1590
  592. package/dist/esm/index-be8c716a.js.map +0 -1
  593. package/dist/esm/index.js.map +0 -1
  594. package/dist/esm/loader.js.map +0 -1
  595. package/loader/package.json +0 -11
@@ -4,9 +4,17 @@ import accessibility_icon from "../../../public_images/icn-complaints.svg";
4
4
  import happy_icon from "../../../public_images/icn-happy.svg";
5
5
  import chat_icn from "../../../public_images/icn-chat_bubble_outline.svg";
6
6
  import grid_view from "../../../public_images/icn-grid-view.svg";
7
+ import location_pin from "../../../public_images/icn-location-pin.svg";
8
+ import news_pin from "../../../public_images/icn-news.svg";
7
9
  export default {
8
10
  title: 'Components/Sticky Footer',
9
11
  tags: ['autodocs'],
12
+ argTypes: {
13
+ hideMiddleSection: {
14
+ control: { type: 'boolean' },
15
+ description: 'Hides the middle section of the footer',
16
+ }
17
+ },
10
18
  component: 'dda-sticky-footer',
11
19
  parameters: {
12
20
  docs: {
@@ -16,59 +24,61 @@ export default {
16
24
  },
17
25
  },
18
26
  };
19
- const Template = args => `
20
- <dda-sticky-footer
21
- happiness-icon-href="${args.happinessIconHref}"
22
- happiness-icon-src="${args.happinessIconSrc}"
23
- happiness-icon-alt="${args.happinessIconAlt}"
24
- happiness-icon-tooltip="${args.happinessIconTooltip}"
25
-
26
- accessibility-icon-href="${args.accessibilityIconHref}"
27
- accessibility-icon-src="${args.accessibilityIconSrc}"
28
- accessibility-icon-alt="${args.accessibilityIconAlt}"
29
- accessibility-icon-tooltip="${args.accessibilityIconTooltip}"
30
-
31
- services-icon-href="${args.servicesIconHref}"
32
- services-icon-src="${args.servicesIconSrc}"
33
- services-icon-alt="${args.servicesIconAlt}"
34
- services-icon-tooltip="${args.servicesIconTooltip}"
35
- services-icon-text="${args.servicesIconText}"
36
-
37
- first-logo-href="${args.firstLogoHref}"
38
- first-logo-src="${args.firstLogoSrc}"
39
- first-logo-alt="${args.firstLogoAlt}"
40
- first-logo-tooltip="${args.firstLogoTooltip}"
41
-
42
- second-logo-href="${args.secondLogoHref}"
43
- second-logo-src="${args.secondLogoSrc}"
44
- second-logo-alt="${args.secondLogoAlt}"
45
- second-logo-tooltip="${args.secondLogoTooltip}"
46
-
47
- third-logo-href="${args.thirdLogoHref}"
48
- third-logo-src="${args.thirdLogoSrc}"
49
- third-logo-alt="${args.thirdLogoAlt}"
50
- third-logo-tooltip="${args.thirdLogoTooltip}"
51
-
52
- location-button-href="${args.locationButtonHref}"
53
- location-button-text="${args.locationButtonText}"
54
- location-button-icon="${args.locationButtonIcon}"
55
-
56
-
57
- news-button-href="${args.newsButtonHref}"
58
- news-button-text="${args.newsButtonText}"
59
- news-button-icon="${args.newsButtonIcon}"
60
-
61
-
62
- ai-icon-href="${args.aiIconHref}"
63
- ai-icon-src="${args.aiIconSrc}"
64
- ai-icon-alt="${args.aiIconAlt}"
65
- ai-icon-tooltip="${args.aiIconTooltip}"
66
-
67
- chat-icon-href="${args.chatIconHref}"
68
- chat-icon-src="${args.chatIconSrc}"
69
- chat-icon-alt="${args.chatIconAlt}"
70
- chat-icon-tooltip="${args.chatIconTooltip}"
71
- ></dda-sticky-footer>
27
+ const Template = args => `
28
+ <dda-sticky-footer
29
+ happiness-icon-href="${args.happinessIconHref}"
30
+ happiness-icon-src="${args.happinessIconSrc}"
31
+ happiness-icon-alt="${args.happinessIconAlt}"
32
+ happiness-icon-tooltip="${args.happinessIconTooltip}"
33
+
34
+ accessibility-icon-href="${args.accessibilityIconHref}"
35
+ accessibility-icon-src="${args.accessibilityIconSrc}"
36
+ accessibility-icon-alt="${args.accessibilityIconAlt}"
37
+ accessibility-icon-tooltip="${args.accessibilityIconTooltip}"
38
+
39
+ services-icon-href="${args.servicesIconHref}"
40
+ services-icon-src="${args.servicesIconSrc}"
41
+ services-icon-alt="${args.servicesIconAlt}"
42
+ services-icon-tooltip="${args.servicesIconTooltip}"
43
+ services-icon-text="${args.servicesIconText}"
44
+
45
+ first-logo-href="${args.firstLogoHref}"
46
+ first-logo-src="${args.firstLogoSrc}"
47
+ first-logo-alt="${args.firstLogoAlt}"
48
+ first-logo-tooltip="${args.firstLogoTooltip}"
49
+
50
+ second-logo-href="${args.secondLogoHref}"
51
+ second-logo-src="${args.secondLogoSrc}"
52
+ second-logo-alt="${args.secondLogoAlt}"
53
+ second-logo-tooltip="${args.secondLogoTooltip}"
54
+
55
+ third-logo-href="${args.thirdLogoHref}"
56
+ third-logo-src="${args.thirdLogoSrc}"
57
+ third-logo-alt="${args.thirdLogoAlt}"
58
+ third-logo-tooltip="${args.thirdLogoTooltip}"
59
+
60
+ location-button-href="${args.locationButtonHref}"
61
+ location-button-text="${args.locationButtonText}"
62
+ location-button-icon="${args.locationButtonIcon}"
63
+ location-logo-src="${args.locationButtonSrc}"
64
+
65
+ news-button-href="${args.newsButtonHref}"
66
+ news-button-text="${args.newsButtonText}"
67
+ news-button-icon="${args.newsButtonIcon}"
68
+ news-logo-src="${args.newsButtonSrc}"
69
+
70
+ ai-icon-href="${args.aiIconHref}"
71
+ ai-icon-src="${args.aiIconSrc}"
72
+ ai-icon-alt="${args.aiIconAlt}"
73
+ ai-icon-tooltip="${args.aiIconTooltip}"
74
+
75
+ chat-icon-href="${args.chatIconHref}"
76
+ chat-icon-src="${args.chatIconSrc}"
77
+ chat-icon-alt="${args.chatIconAlt}"
78
+ chat-icon-tooltip="${args.chatIconTooltip}"
79
+
80
+ hide-middle-section="${args.hideMiddleSection}"
81
+ ></dda-sticky-footer>
72
82
  `;
73
83
  export const Default = Template.bind({});
74
84
  Default.args = {
@@ -99,10 +109,12 @@ Default.args = {
99
109
  thirdLogoTooltip: 'Logo 3',
100
110
  locationButtonHref: '#',
101
111
  locationButtonText: 'Location',
102
- locationButtonIcon: '',
112
+ locationButtonSrc: location_pin,
113
+ locationButtonIcon: 'location_on',
103
114
  newsButtonHref: '#',
104
115
  newsButtonText: 'News',
105
- newsButtonIcon: '',
116
+ newsButtonSrc: news_pin,
117
+ newsButtonIcon: 'news_on',
106
118
  aiIconHref: '#',
107
119
  aiIconSrc: digital_ai,
108
120
  aiIconAlt: 'Digital AI',
@@ -111,5 +123,5 @@ Default.args = {
111
123
  chatIconSrc: chat_icn,
112
124
  chatIconAlt: 'Online Chat',
113
125
  chatIconTooltip: 'Online Chat',
126
+ hideMiddleSection: false,
114
127
  };
115
- //# sourceMappingURL=dda-sticky-footer.stories.js.map
@@ -1,120 +1,120 @@
1
- .dda-tabs-container {
2
- display: inline-flex;
3
- }
4
-
5
- .dda-tab-item {
6
- background: transparent;
7
- display: inline-flex;
8
- font-size: 16px;
9
- color: var(--dda-on-surface-0);
10
- gap: 6px;
11
- align-items: center;
12
- border: 0;
13
- border-radius: 8px;
14
- padding: 10px 16px;
15
- cursor: pointer;
16
- position: relative;
17
- transition: all 0.25s ease-in-out;
18
- }
19
-
20
- .light-mode .dda-tab-item{
21
- color: var(--dda-neutral-0);
22
- }
23
-
24
- .dda-tab-item i {
25
- font-size: 22px;
26
- color: var(--dda-neutral-variant-30);
27
- }
28
-
29
- .dda-tab-item.active span,
30
- .dda-tab-item:hover span {
31
- font-weight: var(--dda-fw-500);
32
- }
33
-
34
- .dda-tab-default .dda-tab-item.active,
35
- .dda-tab-default .dda-tab-item:hover {
36
- background: var(--dda-neutral-variant-94);
37
- color: var(--dda-color-primary-40);
38
- }
39
-
40
- .light-mode.dda-tab-default .dda-tab-item.active,
41
- .light-mode.dda-tab-default .dda-tab-item:hover {
42
- color: var(--dda-primary-40);
43
- }
44
-
45
- .dda-tab-default .dda-tab-item.active i,
46
- .dda-tab-default .dda-tab-item:hover i {
47
- color: var(--dda-color-primary-40);
48
- }
49
-
50
- .dda-tab-filed .dda-tab-item.active,
51
- .dda-tab-filed .dda-tab-item:hover {
52
- background: var(--dda-color-primary-40);
53
- color: var(--dda-neutral-100);
54
- }
55
-
56
- .light-mode.dda-tab-filed .dda-tab-item.active,
57
- .light-mode.dda-tab-filed .dda-tab-item:hover {
58
- background: var(--dda-primary-40);
59
- }
60
-
61
- .dda-tab-filed .dda-tab-item.active i,
62
- .dda-tab-filed .dda-tab-item:hover i {
63
- color: var(--dda-neutral-100);
64
- }
65
-
66
- .dda-tab-underline {
67
- border-bottom: solid 1px var(--dda-neutral-90);
68
- }
69
-
70
-
71
- .dda-tab-underline .dda-tab-item::after,
72
- .dda-tab-underline-filled .dda-tab-item::after {
73
- content: "";
74
- position: absolute;
75
- bottom: 0;
76
- left: 50%;
77
- width: 0;
78
- height: 4px;
79
- background-color: var(--dda-color-primary-40);
80
- border-radius: 8px 8px 0px 0px;
81
- transform: translateX(-50%);
82
- transition: all 0.25s ease-in-out;
83
- }
84
- .light-mode.dda-tab-underline .dda-tab-item::after,
85
- .light-mode.dda-tab-underline-filled .dda-tab-item::after{
86
- background-color: var(--dda-primary-40);
87
- }
88
- .dda-tab-underline .dda-tab-item:hover::after,
89
- .dda-tab-underline .dda-tab-item.active::after,
90
- .dda-tab-underline-filled .dda-tab-item:hover::after,
91
- .dda-tab-underline-filled .dda-tab-item.active::after{
92
- width: calc(100% - 32px);
93
- }
94
-
95
- .dda-tab-underline .dda-tab-item.active,
96
- .dda-tab-underline .dda-tab-item.active i,
97
- .dda-tab-underline-filled .dda-tab-item.active,
98
- .dda-tab-underline-filled .dda-tab-item.active i,
99
- .dda-tab-underline .dda-tab-item:hover,
100
- .dda-tab-underline .dda-tab-item:hover i,
101
- .dda-tab-underline-filled .dda-tab-item:hover,
102
- .dda-tab-underline-filled .dda-tab-item:hover i {
103
- color: var(--dda-color-primary-40);
104
- }
105
-
106
- .light-mode.dda-tab-underline .dda-tab-item.active,
107
- .light-mode.dda-tab-underline .dda-tab-item.active i,
108
- .light-mode.dda-tab-underline-filled .dda-tab-item.active,
109
- .light-mode.dda-tab-underline-filled .dda-tab-item.active i,
110
- .light-mode.dda-tab-underline .dda-tab-item:hover,
111
- .light-mode.dda-tab-underline .dda-tab-item:hover i,
112
- .light-mode.dda-tab-underline-filled .dda-tab-item:hover,
113
- .light-mode.dda-tab-underline-filled .dda-tab-item:hover i {
114
- color: var(--dda-primary-40);
115
- }
116
-
117
- .dda-tab-underline-filled .dda-tab-item.active,
118
- .dda-tab-underline-filled .dda-tab-item:hover {
119
- background: var(--dda-neutral-variant-94);
1
+ .dda-tabs-container {
2
+ display: inline-flex;
3
+ }
4
+
5
+ .dda-tab-item {
6
+ background: transparent;
7
+ display: inline-flex;
8
+ font-size: 16px;
9
+ color: var(--dda-on-surface-0);
10
+ gap: 6px;
11
+ align-items: center;
12
+ border: 0;
13
+ border-radius: 8px;
14
+ padding: 10px 16px;
15
+ cursor: pointer;
16
+ position: relative;
17
+ transition: all 0.25s ease-in-out;
18
+ }
19
+
20
+ .light-mode .dda-tab-item{
21
+ color: var(--dda-neutral-0);
22
+ }
23
+
24
+ .dda-tab-item i {
25
+ font-size: 22px;
26
+ color: var(--dda-neutral-variant-30);
27
+ }
28
+
29
+ .dda-tab-item.active span,
30
+ .dda-tab-item:hover span {
31
+ font-weight: var(--dda-fw-500);
32
+ }
33
+
34
+ .dda-tab-default .dda-tab-item.active,
35
+ .dda-tab-default .dda-tab-item:hover {
36
+ background: var(--dda-neutral-variant-94);
37
+ color: var(--dda-color-primary-40);
38
+ }
39
+
40
+ .light-mode.dda-tab-default .dda-tab-item.active,
41
+ .light-mode.dda-tab-default .dda-tab-item:hover {
42
+ color: var(--dda-primary-40);
43
+ }
44
+
45
+ .dda-tab-default .dda-tab-item.active i,
46
+ .dda-tab-default .dda-tab-item:hover i {
47
+ color: var(--dda-color-primary-40);
48
+ }
49
+
50
+ .dda-tab-filed .dda-tab-item.active,
51
+ .dda-tab-filed .dda-tab-item:hover {
52
+ background: var(--dda-color-primary-40);
53
+ color: var(--dda-neutral-100);
54
+ }
55
+
56
+ .light-mode.dda-tab-filed .dda-tab-item.active,
57
+ .light-mode.dda-tab-filed .dda-tab-item:hover {
58
+ background: var(--dda-primary-40);
59
+ }
60
+
61
+ .dda-tab-filed .dda-tab-item.active i,
62
+ .dda-tab-filed .dda-tab-item:hover i {
63
+ color: var(--dda-neutral-100);
64
+ }
65
+
66
+ .dda-tab-underline {
67
+ border-bottom: solid 1px var(--dda-neutral-90);
68
+ }
69
+
70
+
71
+ .dda-tab-underline .dda-tab-item::after,
72
+ .dda-tab-underline-filled .dda-tab-item::after {
73
+ content: "";
74
+ position: absolute;
75
+ bottom: 0;
76
+ left: 50%;
77
+ width: 0;
78
+ height: 4px;
79
+ background-color: var(--dda-color-primary-40);
80
+ border-radius: 8px 8px 0px 0px;
81
+ transform: translateX(-50%);
82
+ transition: all 0.25s ease-in-out;
83
+ }
84
+ .light-mode.dda-tab-underline .dda-tab-item::after,
85
+ .light-mode.dda-tab-underline-filled .dda-tab-item::after{
86
+ background-color: var(--dda-primary-40);
87
+ }
88
+ .dda-tab-underline .dda-tab-item:hover::after,
89
+ .dda-tab-underline .dda-tab-item.active::after,
90
+ .dda-tab-underline-filled .dda-tab-item:hover::after,
91
+ .dda-tab-underline-filled .dda-tab-item.active::after{
92
+ width: calc(100% - 32px);
93
+ }
94
+
95
+ .dda-tab-underline .dda-tab-item.active,
96
+ .dda-tab-underline .dda-tab-item.active i,
97
+ .dda-tab-underline-filled .dda-tab-item.active,
98
+ .dda-tab-underline-filled .dda-tab-item.active i,
99
+ .dda-tab-underline .dda-tab-item:hover,
100
+ .dda-tab-underline .dda-tab-item:hover i,
101
+ .dda-tab-underline-filled .dda-tab-item:hover,
102
+ .dda-tab-underline-filled .dda-tab-item:hover i {
103
+ color: var(--dda-color-primary-40);
104
+ }
105
+
106
+ .light-mode.dda-tab-underline .dda-tab-item.active,
107
+ .light-mode.dda-tab-underline .dda-tab-item.active i,
108
+ .light-mode.dda-tab-underline-filled .dda-tab-item.active,
109
+ .light-mode.dda-tab-underline-filled .dda-tab-item.active i,
110
+ .light-mode.dda-tab-underline .dda-tab-item:hover,
111
+ .light-mode.dda-tab-underline .dda-tab-item:hover i,
112
+ .light-mode.dda-tab-underline-filled .dda-tab-item:hover,
113
+ .light-mode.dda-tab-underline-filled .dda-tab-item:hover i {
114
+ color: var(--dda-primary-40);
115
+ }
116
+
117
+ .dda-tab-underline-filled .dda-tab-item.active,
118
+ .dda-tab-underline-filled .dda-tab-item:hover {
119
+ background: var(--dda-neutral-variant-94);
120
120
  }
@@ -1,22 +1,44 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class DdaTabs {
3
3
  constructor() {
4
- this.type = 'text'; // Default to text type
5
- this.hover_style = 'dda-tab-default'; // Default to light background hover style
6
- this.border_bottom = false; // Default to no border-bottom
4
+ this.type = 'text';
5
+ this.hover_style = 'dda-tab-default';
6
+ this.border_bottom = false;
7
7
  this.custom_class = '';
8
+ this.tab_texts = '["Tab 1", "Tab 2", "Tab 3"]'; // Keep it as a string
9
+ this.tab_icons = '["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]';
10
+ this.tabhandler = (index) => {
11
+ this.tabClick.emit(index);
12
+ };
8
13
  this.active_tab = 0;
9
- this.tabs = [
10
- { title: 'Tab 1', icon: 'sentiment_satisfied' },
11
- { title: 'Tab 2', icon: 'sentiment_satisfied' },
12
- { title: 'Tab 3', icon: 'sentiment_satisfied' },
13
- ];
14
+ }
15
+ // Parse the stringified array to an actual array
16
+ get parsedTabs() {
17
+ try {
18
+ return JSON.parse(this.tab_texts); // Parse the string into an array
19
+ }
20
+ catch (error) {
21
+ console.error("Error parsing tab_texts:", error);
22
+ return ['Tab 1', 'Tab 2', 'Tab 3']; // Fallback to default
23
+ }
24
+ }
25
+ get parsedIcons() {
26
+ try {
27
+ return JSON.parse(this.tab_icons); // Parse the string into an array
28
+ }
29
+ catch (error) {
30
+ console.error("Error parsing tabicons:", error);
31
+ return ["sentiment_satisfied", "sentiment_satisfied", "sentiment_satisfied"]; // Fallback to default
32
+ }
14
33
  }
15
34
  setActiveTab(index) {
16
35
  this.active_tab = index;
36
+ if (this.tabClick) {
37
+ this.tabhandler(index);
38
+ }
17
39
  }
18
40
  render() {
19
- return (h(Host, { key: 'e73367823d6faabe08c7efc76a60a202648176f6' }, h("div", { key: '7bf6e938d9ca75b109b0292bf037b36b79fe0bd9', class: `dda-tabs-container ${this.hover_style} ${this.custom_class} ${this.component_mode}` }, this.tabs.map((tab, index) => (h("button", { id: this.button_id, "aria-label": this.aria_label, type: "button", class: `dda-tab-item ${this.active_tab === index ? 'active' : ''}`, onClick: () => this.setActiveTab(index) }, this.type === 'text-icon' && h("i", { class: `material-icons` }, tab.icon), h("span", null, tab.title)))))));
41
+ return (h(Host, { key: '64c80c8f7d18c478dbbbe2ffe9209bbf4f186747' }, h("div", { key: '677b141249edd4ec826c83a83c523b271b078d31', role: "group", "aria-label": this.aria_label, class: `dda-tabs-container ${this.hover_style} ${this.custom_class} ${this.component_mode}` }, this.parsedTabs.map((title, index) => (h("button", { id: this.button_id, name: this.button_name, type: "button", "aria-pressed": this.active_tab === index ? 'true' : 'false', class: `dda-tab-item ${this.active_tab === index ? 'active' : ''}`, onClick: () => this.setActiveTab(index) }, this.type === 'text-icon' && h("i", { class: `material-icons` }, this.parsedIcons[index] || ""), h("span", null, title)))))));
20
42
  }
21
43
  static get is() { return "dda-tabs"; }
22
44
  static get originalStyleUrls() {
@@ -47,15 +69,15 @@ export class DdaTabs {
47
69
  },
48
70
  "getter": false,
49
71
  "setter": false,
50
- "attribute": "type",
51
72
  "reflect": false,
73
+ "attribute": "type",
52
74
  "defaultValue": "'text'"
53
75
  },
54
76
  "hover_style": {
55
77
  "type": "string",
56
78
  "mutable": false,
57
79
  "complexType": {
58
- "original": "'dda-tab-default' | 'dda-tab-filed' | 'dda-tab-underline' |'dda-tab-underline-filled'",
80
+ "original": "'dda-tab-default' | 'dda-tab-filed' | 'dda-tab-underline' | 'dda-tab-underline-filled'",
59
81
  "resolved": "\"dda-tab-default\" | \"dda-tab-filed\" | \"dda-tab-underline\" | \"dda-tab-underline-filled\"",
60
82
  "references": {}
61
83
  },
@@ -67,8 +89,8 @@ export class DdaTabs {
67
89
  },
68
90
  "getter": false,
69
91
  "setter": false,
70
- "attribute": "hover_style",
71
92
  "reflect": false,
93
+ "attribute": "hover_style",
72
94
  "defaultValue": "'dda-tab-default'"
73
95
  },
74
96
  "border_bottom": {
@@ -87,8 +109,8 @@ export class DdaTabs {
87
109
  },
88
110
  "getter": false,
89
111
  "setter": false,
90
- "attribute": "border_bottom",
91
112
  "reflect": false,
113
+ "attribute": "border_bottom",
92
114
  "defaultValue": "false"
93
115
  },
94
116
  "custom_class": {
@@ -107,8 +129,8 @@ export class DdaTabs {
107
129
  },
108
130
  "getter": false,
109
131
  "setter": false,
110
- "attribute": "custom_class",
111
132
  "reflect": false,
133
+ "attribute": "custom_class",
112
134
  "defaultValue": "''"
113
135
  },
114
136
  "component_mode": {
@@ -127,8 +149,8 @@ export class DdaTabs {
127
149
  },
128
150
  "getter": false,
129
151
  "setter": false,
130
- "attribute": "component_mode",
131
- "reflect": false
152
+ "reflect": false,
153
+ "attribute": "component_mode"
132
154
  },
133
155
  "button_id": {
134
156
  "type": "string",
@@ -146,8 +168,8 @@ export class DdaTabs {
146
168
  },
147
169
  "getter": false,
148
170
  "setter": false,
149
- "attribute": "button_id",
150
- "reflect": false
171
+ "reflect": false,
172
+ "attribute": "button_id"
151
173
  },
152
174
  "aria_label": {
153
175
  "type": "string",
@@ -165,8 +187,67 @@ export class DdaTabs {
165
187
  },
166
188
  "getter": false,
167
189
  "setter": false,
168
- "attribute": "aria_label",
169
- "reflect": false
190
+ "reflect": false,
191
+ "attribute": "aria_label"
192
+ },
193
+ "tab_texts": {
194
+ "type": "string",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "string",
198
+ "resolved": "string",
199
+ "references": {}
200
+ },
201
+ "required": false,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": ""
206
+ },
207
+ "getter": false,
208
+ "setter": false,
209
+ "reflect": false,
210
+ "attribute": "tab_texts",
211
+ "defaultValue": "'[\"Tab 1\", \"Tab 2\", \"Tab 3\"]'"
212
+ },
213
+ "tab_icons": {
214
+ "type": "string",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "string",
218
+ "resolved": "string",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": ""
226
+ },
227
+ "getter": false,
228
+ "setter": false,
229
+ "reflect": false,
230
+ "attribute": "tab_icons",
231
+ "defaultValue": "'[\"sentiment_satisfied\", \"sentiment_satisfied\", \"sentiment_satisfied\"]'"
232
+ },
233
+ "button_name": {
234
+ "type": "string",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "string",
238
+ "resolved": "string",
239
+ "references": {}
240
+ },
241
+ "required": false,
242
+ "optional": false,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": ""
246
+ },
247
+ "getter": false,
248
+ "setter": false,
249
+ "reflect": false,
250
+ "attribute": "button_name"
170
251
  }
171
252
  };
172
253
  }
@@ -175,5 +256,22 @@ export class DdaTabs {
175
256
  "active_tab": {}
176
257
  };
177
258
  }
259
+ static get events() {
260
+ return [{
261
+ "method": "tabClick",
262
+ "name": "tabClick",
263
+ "bubbles": true,
264
+ "cancelable": true,
265
+ "composed": true,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": ""
269
+ },
270
+ "complexType": {
271
+ "original": "void",
272
+ "resolved": "void",
273
+ "references": {}
274
+ }
275
+ }];
276
+ }
178
277
  }
179
- //# sourceMappingURL=dda-tabs.js.map