@dubai-design-system/components-js 5.0.3 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/CHANGELOG.md +198 -1
  2. package/MIGRATION.md +423 -0
  3. package/dist/cjs/dda-accordion.cjs.entry.js +12 -7
  4. package/dist/cjs/dda-alert.cjs.entry.js +20 -3
  5. package/dist/cjs/dda-attach-file.cjs.entry.js +24 -8
  6. package/dist/cjs/dda-avatar.cjs.entry.js +23 -12
  7. package/dist/cjs/dda-banner.cjs.entry.js +14 -5
  8. package/dist/cjs/dda-breadcrumb.cjs.entry.js +22 -10
  9. package/dist/cjs/dda-button.cjs.entry.js +16 -9
  10. package/dist/cjs/dda-checkbox.cjs.entry.js +5 -4
  11. package/dist/cjs/dda-chip.cjs.entry.js +8 -3
  12. package/dist/cjs/dda-credit-card.cjs.entry.js +5 -3
  13. package/dist/cjs/dda-creditcard-field.cjs.entry.js +26 -8
  14. package/dist/cjs/dda-dropdown.cjs.entry.js +31 -5
  15. package/dist/cjs/dda-footer.cjs.entry.js +9 -3
  16. package/dist/cjs/dda-header.cjs.entry.js +80 -8
  17. package/dist/cjs/dda-home-banner.cjs.entry.js +11 -5
  18. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +22 -5
  19. package/dist/cjs/dda-input.cjs.entry.js +17 -10
  20. package/dist/cjs/dda-link-button_2.cjs.entry.js +21 -13
  21. package/dist/cjs/dda-number-field.cjs.entry.js +20 -8
  22. package/dist/cjs/dda-pagination.cjs.entry.js +21 -11
  23. package/dist/cjs/dda-phonefield.cjs.entry.js +27 -9
  24. package/dist/cjs/dda-progressbar.cjs.entry.js +8 -3
  25. package/dist/cjs/dda-range-slider.cjs.entry.js +15 -3
  26. package/dist/cjs/dda-search-input.cjs.entry.js +27 -12
  27. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +54 -6
  28. package/dist/cjs/dda-select.cjs.entry.js +40 -8
  29. package/dist/cjs/dda-sticky-footer.cjs.entry.js +20 -3
  30. package/dist/cjs/dda-tabs.cjs.entry.js +10 -4
  31. package/dist/cjs/dda-textarea.cjs.entry.js +22 -12
  32. package/dist/cjs/dda-toggle.cjs.entry.js +5 -4
  33. package/dist/cjs/dda-tooltip.cjs.entry.js +6 -4
  34. package/dist/cjs/dda-ui-card.cjs.entry.js +19 -2
  35. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +23 -3
  36. package/dist/cjs/dda.cjs.js +2 -2
  37. package/dist/cjs/index-Dm7JbFAh.js +2116 -0
  38. package/dist/cjs/loader.cjs.js +2 -2
  39. package/dist/cjs/unique-id-DahNGdQy.js +14 -0
  40. package/dist/collection/collection-manifest.json +1 -1
  41. package/dist/collection/components/dda-accordion/dda-accordion.js +16 -11
  42. package/dist/collection/components/dda-alert/dda-alert.js +74 -17
  43. package/dist/collection/components/dda-alert/dda-alert.stories.js +2 -8
  44. package/dist/collection/components/dda-attach-file/dda-attach-file.js +35 -19
  45. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +0 -9
  46. package/dist/collection/components/dda-avatar/dda-avatar.js +53 -25
  47. package/dist/collection/components/dda-avatar/dda-avatar.stories.js +1 -1
  48. package/dist/collection/components/dda-banner/dda-banner.css +35 -0
  49. package/dist/collection/components/dda-banner/dda-banner.js +34 -5
  50. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +49 -12
  51. package/dist/collection/components/dda-button/dda-button.js +29 -22
  52. package/dist/collection/components/dda-checkbox/dda-checkbox.css +13 -0
  53. package/dist/collection/components/dda-checkbox/dda-checkbox.js +13 -12
  54. package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +0 -11
  55. package/dist/collection/components/dda-chip/dda-chip.js +34 -9
  56. package/dist/collection/components/dda-chip/dda-chip.stories.js +0 -11
  57. package/dist/collection/components/dda-credit-card/dda-credit-card.js +10 -8
  58. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +58 -23
  59. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +1 -10
  60. package/dist/collection/components/dda-dropdown/dda-dropdown.js +90 -18
  61. package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +0 -4
  62. package/dist/collection/components/dda-footer/dda-footer.js +57 -10
  63. package/dist/collection/components/dda-footer/dda-footer.stories.js +5 -4
  64. package/dist/collection/components/dda-header/dda-header.css +11 -0
  65. package/dist/collection/components/dda-header/dda-header.js +224 -37
  66. package/dist/collection/components/dda-header/dda-header.stories.js +12 -21
  67. package/dist/collection/components/dda-home-banner/dda-home-banner.js +8 -2
  68. package/dist/collection/components/dda-home-banner/home-banner.css +21 -1
  69. package/dist/collection/components/dda-input/dda-input.js +28 -21
  70. package/dist/collection/components/dda-input/dda-input.stories.js +0 -13
  71. package/dist/collection/components/dda-link-button/dda-link-button.js +30 -23
  72. package/dist/collection/components/dda-number-field/dda-number-field.js +54 -22
  73. package/dist/collection/components/dda-number-field/dda-number-field.stories.js +0 -9
  74. package/dist/collection/components/dda-pagination/dda-pagination.js +95 -28
  75. package/dist/collection/components/dda-pagination/dda-pagination.stories.js +24 -24
  76. package/dist/collection/components/dda-phonefield/dda-phonefield.js +62 -24
  77. package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +0 -13
  78. package/dist/collection/components/dda-progressbar/dda-progressbar.js +13 -8
  79. package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +121 -4
  80. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +13 -12
  81. package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +5 -16
  82. package/dist/collection/components/dda-range-slider/dda-range-slider.js +29 -17
  83. package/dist/collection/components/dda-search-input/dda-search-input.js +61 -26
  84. package/dist/collection/components/dda-search-input/dda-search-input.stories.js +0 -9
  85. package/dist/collection/components/dda-select/dda-select.js +78 -20
  86. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +80 -43
  87. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +1 -1
  88. package/dist/collection/components/dda-tabs/dda-tabs.js +21 -15
  89. package/dist/collection/components/dda-tabs/dda-tabs.stories.js +3 -10
  90. package/dist/collection/components/dda-textarea/dda-textarea.js +33 -23
  91. package/dist/collection/components/dda-textarea/dda-textarea.stories.js +0 -9
  92. package/dist/collection/components/dda-toggle/dda-toggle.css +9 -0
  93. package/dist/collection/components/dda-toggle/dda-toggle.js +47 -8
  94. package/dist/collection/components/dda-toggle/dda-toggle.stories.js +10 -22
  95. package/dist/collection/components/dda-tooltip/dda-tooltip.js +9 -7
  96. package/dist/collection/components/dda-ui-card/dda-ui-card.js +55 -13
  97. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +79 -11
  98. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +4 -1
  99. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +24 -6
  100. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +2 -2
  101. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +49 -6
  102. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +2 -2
  103. package/dist/collection/global/global.css +117 -4
  104. package/dist/collection/global/input.css +56 -2
  105. package/dist/collection/storybook/component-api.js +15 -0
  106. package/dist/collection/utils/placeholder-color.js +89 -0
  107. package/dist/collection/utils/unique-id.js +10 -0
  108. package/dist/components/dda-accordion.js +1 -1
  109. package/dist/components/dda-alert.js +1 -1
  110. package/dist/components/dda-attach-file.js +1 -1
  111. package/dist/components/dda-avatar.js +1 -1
  112. package/dist/components/dda-banner.js +1 -1
  113. package/dist/components/dda-breadcrumb.js +1 -1
  114. package/dist/components/dda-button.js +1 -1
  115. package/dist/components/dda-checkbox.js +1 -1
  116. package/dist/components/dda-chip.js +1 -1
  117. package/dist/components/dda-credit-card.js +1 -1
  118. package/dist/components/dda-creditcard-field.js +1 -1
  119. package/dist/components/dda-dropdown.js +1 -1
  120. package/dist/components/dda-footer.js +1 -1
  121. package/dist/components/dda-header.js +1 -1
  122. package/dist/components/dda-home-banner.js +1 -1
  123. package/dist/components/dda-horizontal-stepper.js +1 -1
  124. package/dist/components/dda-input.js +1 -1
  125. package/dist/components/dda-link-button.js +1 -1
  126. package/dist/components/dda-number-field.js +1 -1
  127. package/dist/components/dda-pagination.js +1 -1
  128. package/dist/components/dda-phonefield.js +1 -1
  129. package/dist/components/dda-progressbar.js +1 -1
  130. package/dist/components/dda-radiobutton.js +1 -1
  131. package/dist/components/dda-range-slider.js +1 -1
  132. package/dist/components/dda-search-input.js +1 -1
  133. package/dist/components/dda-segmented-tabs.js +1 -1
  134. package/dist/components/dda-select.js +1 -1
  135. package/dist/components/dda-sticky-footer.js +1 -1
  136. package/dist/components/dda-tabs.js +1 -1
  137. package/dist/components/dda-textarea.js +1 -1
  138. package/dist/components/dda-toggle.js +1 -1
  139. package/dist/components/dda-tooltip.js +1 -1
  140. package/dist/components/dda-ui-card.js +1 -1
  141. package/dist/components/dda-vertical-stepper.js +1 -1
  142. package/dist/components/index.js +1 -1
  143. package/dist/components/p-B-I003EB.js +1 -0
  144. package/dist/components/p-B4nkZ15I.js +1 -0
  145. package/dist/components/p-Bk2uycTf.js +1 -0
  146. package/dist/components/p-C96R7OFb.js +1 -0
  147. package/dist/components/p-Ciz-pnTr.js +1 -0
  148. package/dist/components/p-CleacZFl.js +1 -0
  149. package/dist/dda/dda.css +2 -2
  150. package/dist/dda/dda.esm.js +1 -1
  151. package/dist/dda/p-0daa2a14.entry.js +1 -0
  152. package/dist/dda/p-1537b9dd.entry.js +1 -0
  153. package/dist/dda/p-175c52b8.entry.js +1 -0
  154. package/dist/dda/p-2b65a79a.entry.js +1 -0
  155. package/dist/dda/p-2d93b185.entry.js +1 -0
  156. package/dist/dda/p-30d3a014.entry.js +1 -0
  157. package/dist/dda/p-33b890a5.entry.js +1 -0
  158. package/dist/dda/p-64d90f29.entry.js +1 -0
  159. package/dist/dda/p-69bc04c1.entry.js +1 -0
  160. package/dist/dda/p-6daa282f.entry.js +1 -0
  161. package/dist/dda/p-72f22d1f.entry.js +1 -0
  162. package/dist/dda/p-7549868d.entry.js +1 -0
  163. package/dist/dda/p-7a51a946.entry.js +1 -0
  164. package/dist/dda/p-7b187e1f.entry.js +1 -0
  165. package/dist/dda/p-7b4d895e.entry.js +1 -0
  166. package/dist/dda/p-8f408141.entry.js +1 -0
  167. package/dist/dda/p-91341ca7.entry.js +1 -0
  168. package/dist/dda/p-9552def5.entry.js +1 -0
  169. package/dist/dda/p-9672af43.entry.js +1 -0
  170. package/dist/dda/p-98bba4dc.entry.js +1 -0
  171. package/dist/dda/p-B-I003EB.js +1 -0
  172. package/dist/dda/p-a0768b2f.entry.js +1 -0
  173. package/dist/dda/p-a5bd30ad.entry.js +1 -0
  174. package/dist/dda/p-a83f6267.entry.js +1 -0
  175. package/dist/dda/p-b17f79df.entry.js +1 -0
  176. package/dist/dda/p-b79505e1.entry.js +1 -0
  177. package/dist/dda/p-b8b98df2.entry.js +1 -0
  178. package/dist/dda/p-cc2cc09b.entry.js +1 -0
  179. package/dist/dda/p-ceee08fa.entry.js +1 -0
  180. package/dist/dda/p-d000e69d.entry.js +1 -0
  181. package/dist/dda/p-e3a65ceb.entry.js +1 -0
  182. package/dist/dda/p-e5b79469.entry.js +1 -0
  183. package/dist/dda/p-f2f3be5f.entry.js +1 -0
  184. package/dist/dda/p-f92e0a32.entry.js +1 -0
  185. package/dist/dda/p-o6021Dsk.js +2 -0
  186. package/dist/esm/dda-accordion.entry.js +12 -7
  187. package/dist/esm/dda-alert.entry.js +20 -3
  188. package/dist/esm/dda-attach-file.entry.js +24 -8
  189. package/dist/esm/dda-avatar.entry.js +23 -12
  190. package/dist/esm/dda-banner.entry.js +14 -5
  191. package/dist/esm/dda-breadcrumb.entry.js +22 -10
  192. package/dist/esm/dda-button.entry.js +16 -9
  193. package/dist/esm/dda-checkbox.entry.js +5 -4
  194. package/dist/esm/dda-chip.entry.js +8 -3
  195. package/dist/esm/dda-credit-card.entry.js +5 -3
  196. package/dist/esm/dda-creditcard-field.entry.js +26 -8
  197. package/dist/esm/dda-dropdown.entry.js +31 -5
  198. package/dist/esm/dda-footer.entry.js +9 -3
  199. package/dist/esm/dda-header.entry.js +80 -8
  200. package/dist/esm/dda-home-banner.entry.js +11 -5
  201. package/dist/esm/dda-horizontal-stepper.entry.js +22 -5
  202. package/dist/esm/dda-input.entry.js +17 -10
  203. package/dist/esm/dda-link-button_2.entry.js +21 -13
  204. package/dist/esm/dda-number-field.entry.js +20 -8
  205. package/dist/esm/dda-pagination.entry.js +21 -11
  206. package/dist/esm/dda-phonefield.entry.js +27 -9
  207. package/dist/esm/dda-progressbar.entry.js +8 -3
  208. package/dist/esm/dda-range-slider.entry.js +15 -3
  209. package/dist/esm/dda-search-input.entry.js +27 -12
  210. package/dist/esm/dda-segmented-tabs.entry.js +54 -6
  211. package/dist/esm/dda-select.entry.js +40 -8
  212. package/dist/esm/dda-sticky-footer.entry.js +20 -3
  213. package/dist/esm/dda-tabs.entry.js +10 -4
  214. package/dist/esm/dda-textarea.entry.js +22 -12
  215. package/dist/esm/dda-toggle.entry.js +5 -4
  216. package/dist/esm/dda-tooltip.entry.js +6 -4
  217. package/dist/esm/dda-ui-card.entry.js +19 -2
  218. package/dist/esm/dda-vertical-stepper.entry.js +23 -3
  219. package/dist/esm/dda.js +3 -3
  220. package/dist/esm/index-o6021Dsk.js +2106 -0
  221. package/dist/esm/loader.js +3 -3
  222. package/dist/esm/unique-id-B-I003EB.js +12 -0
  223. package/dist/types/components/dda-accordion/dda-accordion.d.ts +6 -0
  224. package/dist/types/components/dda-alert/dda-alert.d.ts +21 -0
  225. package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +17 -0
  226. package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +0 -4
  227. package/dist/types/components/dda-avatar/dda-avatar.d.ts +20 -0
  228. package/dist/types/components/dda-banner/dda-banner.d.ts +5 -0
  229. package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +12 -6
  230. package/dist/types/components/dda-button/dda-button.d.ts +15 -4
  231. package/dist/types/components/dda-checkbox/dda-checkbox.d.ts +11 -0
  232. package/dist/types/components/dda-checkbox/dda-checkbox.stories.d.ts +0 -10
  233. package/dist/types/components/dda-chip/dda-chip.d.ts +10 -0
  234. package/dist/types/components/dda-chip/dda-chip.stories.d.ts +0 -6
  235. package/dist/types/components/dda-credit-card/dda-credit-card.d.ts +7 -0
  236. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +24 -0
  237. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +0 -6
  238. package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +25 -0
  239. package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +0 -4
  240. package/dist/types/components/dda-footer/dda-footer.d.ts +13 -0
  241. package/dist/types/components/dda-header/dda-header.d.ts +60 -0
  242. package/dist/types/components/dda-header/dda-header.stories.d.ts +6 -0
  243. package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +1 -0
  244. package/dist/types/components/dda-input/dda-input.d.ts +16 -0
  245. package/dist/types/components/dda-input/dda-input.stories.d.ts +0 -6
  246. package/dist/types/components/dda-link-button/dda-link-button.d.ts +14 -3
  247. package/dist/types/components/dda-number-field/dda-number-field.d.ts +21 -0
  248. package/dist/types/components/dda-number-field/dda-number-field.stories.d.ts +0 -6
  249. package/dist/types/components/dda-pagination/dda-pagination.d.ts +26 -0
  250. package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +21 -0
  251. package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +0 -6
  252. package/dist/types/components/dda-progressbar/dda-progressbar.d.ts +7 -0
  253. package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +11 -0
  254. package/dist/types/components/dda-radiobutton/dda-radiobutton.stories.d.ts +5 -15
  255. package/dist/types/components/dda-range-slider/dda-range-slider.d.ts +16 -0
  256. package/dist/types/components/dda-search-input/dda-search-input.d.ts +21 -0
  257. package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +0 -6
  258. package/dist/types/components/dda-select/dda-select.d.ts +23 -0
  259. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +46 -3
  260. package/dist/types/components/dda-tabs/dda-tabs.d.ts +12 -1
  261. package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +0 -4
  262. package/dist/types/components/dda-textarea/dda-textarea.d.ts +16 -0
  263. package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +0 -6
  264. package/dist/types/components/dda-toggle/dda-toggle.d.ts +11 -0
  265. package/dist/types/components/dda-toggle/dda-toggle.stories.d.ts +2 -12
  266. package/dist/types/components/dda-tooltip/dda-tooltip.d.ts +5 -0
  267. package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -1
  268. package/dist/types/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.d.ts +19 -2
  269. package/dist/types/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.d.ts +6 -0
  270. package/dist/types/components/stepper/dda-vertical-stepper/dda-vertical-stepper.d.ts +8 -0
  271. package/dist/types/components.d.ts +2373 -47
  272. package/dist/types/utils/placeholder-color.d.ts +10 -0
  273. package/dist/types/utils/unique-id.d.ts +6 -0
  274. package/package.json +4 -3
  275. package/readme.md +6 -0
  276. package/dist/cjs/index-CDUC0Pdj.js +0 -1986
  277. package/dist/components/p-9UeqjDnY.js +0 -1
  278. package/dist/components/p-CrTEb7xH.js +0 -1
  279. package/dist/components/p-DldlmGnP.js +0 -1
  280. package/dist/components/p-NvTw9Mx1.js +0 -1
  281. package/dist/components/p-i15-_er0.js +0 -1
  282. package/dist/dda/p-016e4090.entry.js +0 -1
  283. package/dist/dda/p-0229b303.entry.js +0 -1
  284. package/dist/dda/p-05a6f90d.entry.js +0 -1
  285. package/dist/dda/p-1c9a6035.entry.js +0 -1
  286. package/dist/dda/p-2c313105.entry.js +0 -1
  287. package/dist/dda/p-2cec7be6.entry.js +0 -1
  288. package/dist/dda/p-2f4ace4c.entry.js +0 -1
  289. package/dist/dda/p-360a0577.entry.js +0 -1
  290. package/dist/dda/p-3e49128d.entry.js +0 -1
  291. package/dist/dda/p-3fa27728.entry.js +0 -1
  292. package/dist/dda/p-43e1c12f.entry.js +0 -1
  293. package/dist/dda/p-4428417d.entry.js +0 -1
  294. package/dist/dda/p-44ce832e.entry.js +0 -1
  295. package/dist/dda/p-560a3f0c.entry.js +0 -1
  296. package/dist/dda/p-5712bbd9.entry.js +0 -1
  297. package/dist/dda/p-626d7e7b.entry.js +0 -1
  298. package/dist/dda/p-68008c64.entry.js +0 -1
  299. package/dist/dda/p-6f3d9f78.entry.js +0 -1
  300. package/dist/dda/p-79db1218.entry.js +0 -1
  301. package/dist/dda/p-84911fab.entry.js +0 -1
  302. package/dist/dda/p-90d9648b.entry.js +0 -1
  303. package/dist/dda/p-91040abe.entry.js +0 -1
  304. package/dist/dda/p-Cq6A4mXg.js +0 -2
  305. package/dist/dda/p-a1421a54.entry.js +0 -1
  306. package/dist/dda/p-a22b1c56.entry.js +0 -1
  307. package/dist/dda/p-aa0e9035.entry.js +0 -1
  308. package/dist/dda/p-b2981646.entry.js +0 -1
  309. package/dist/dda/p-c1f45887.entry.js +0 -1
  310. package/dist/dda/p-c50e1141.entry.js +0 -1
  311. package/dist/dda/p-d8a9cab1.entry.js +0 -1
  312. package/dist/dda/p-dd966009.entry.js +0 -1
  313. package/dist/dda/p-ed099201.entry.js +0 -1
  314. package/dist/dda/p-f4bd2b2e.entry.js +0 -1
  315. package/dist/dda/p-fc30c60e.entry.js +0 -1
  316. package/dist/esm/index-Cq6A4mXg.js +0 -1976
@@ -26,51 +26,51 @@ export default {
26
26
  },
27
27
  simple_slider_prev_button: {
28
28
  control: { type: 'text' },
29
- description: 'Text for the previous button in simple slider mode',
29
+ description: '`name` of the previous button when type is simple-slider',
30
30
  },
31
31
  simple_slider_next_button: {
32
32
  control: { type: 'text' },
33
- description: 'Text for the next button in simple slider mode',
33
+ description: '`name` of the next button when type is simple-slider',
34
34
  },
35
35
  buttons_prev_button: {
36
36
  control: { type: 'text' },
37
- description: 'Text for the previous button in buttons mode',
37
+ description: '`name` of the previous button when type is buttons',
38
38
  },
39
39
  buttons_next_button: {
40
40
  control: { type: 'text' },
41
- description: 'Text for the next button in buttons mode',
41
+ description: '`name` of the next button when type is buttons',
42
42
  },
43
43
  text_prev_button: {
44
44
  control: { type: 'text' },
45
- description: 'Text for the previous button in text mode',
45
+ description: '`name` of the previous button when type is text',
46
46
  },
47
47
  text_next_button: {
48
48
  control: { type: 'text' },
49
- description: 'Text for the next button in text mode',
49
+ description: '`name` of the next button when type is text',
50
50
  },
51
51
  text_pages_prev_button: {
52
52
  control: { type: 'text' },
53
- description: 'Text for the previous button in text-pages mode',
53
+ description: '`name` of the previous button when type is text-pages',
54
54
  },
55
55
  text_pages_next_button: {
56
56
  control: { type: 'text' },
57
- description: 'Text for the next button in text-pages mode',
57
+ description: '`name` of the next button when type is text-pages',
58
58
  },
59
59
  button_text_prev_button: {
60
60
  control: { type: 'text' },
61
- description: 'Text for the previous button in button-text mode',
61
+ description: '`name` of the previous button when type is button-text',
62
62
  },
63
63
  button_text_next_button: {
64
64
  control: { type: 'text' },
65
- description: 'Text for the next button in button-text mode',
65
+ description: '`name` of the next button when type is button-text',
66
66
  },
67
67
  buttons_pages_prev_button: {
68
68
  control: { type: 'text' },
69
- description: 'Text for the previous button in buttons-pages mode',
69
+ description: '`name` of the previous button when type is buttons-pages',
70
70
  },
71
71
  buttons_pages_next_button: {
72
72
  control: { type: 'text' },
73
- description: 'Text for the next button in buttons-pages mode',
73
+ description: '`name` of the next button when type is buttons-pages',
74
74
  },
75
75
  },
76
76
  parameters: {
@@ -86,18 +86,18 @@ To use the \`dda-pagination\` component, pass the following props:
86
86
  type="simple-slider"
87
87
  custom_class=""
88
88
  component_mode=""
89
- simple_slider_prev_button: ""
90
- simple_slider_next_button: ""
91
- buttons_prev_button: ""
92
- buttons_next_button: ""
93
- text_prev_button: ""
94
- text_next_button: ""
95
- text_pages_prev_button: ""
96
- text_pages_next_button: ""
97
- button_text_prev_button: ""
98
- button_text_next_button: ""
99
- buttons_pages_prev_button: ""
100
- buttons_pages_next_button: ""
89
+ simple_slider_prev_button=""
90
+ simple_slider_next_button=""
91
+ buttons_prev_button=""
92
+ buttons_next_button=""
93
+ text_prev_button=""
94
+ text_next_button=""
95
+ text_pages_prev_button=""
96
+ text_pages_next_button=""
97
+ button_text_prev_button=""
98
+ button_text_next_button=""
99
+ buttons_pages_prev_button=""
100
+ buttons_pages_next_button=""
101
101
  ></dda-pagination>
102
102
  \`\`\`
103
103
  `,
@@ -1,8 +1,11 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { CountriesList } from "../../assets/countries";
3
+ import { uniqueId } from "../../utils/unique-id";
3
4
  export class DdaPhoneField {
4
5
  constructor() {
6
+ /** Placeholder text of the phone input. */
5
7
  this.placeholder = 'Enter phone number';
8
+ /** Disables the phone input and shows the disabled styling. */
6
9
  this.disabled = false;
7
10
  this.country_code = '+971';
8
11
  this.country_flag = 'https://flagcdn.com/w320/ae.png'; // Default UAE flag
@@ -10,17 +13,26 @@ export class DdaPhoneField {
10
13
  this.is_focused = false;
11
14
  this.dropdown_open = false;
12
15
  this.countries = [];
16
+ /** Accessible name of the country code dropdown button; the selected code is added after it. */
17
+ this.toggle_button_label = 'Choose country code';
13
18
  // F-018 (WCAG 1.3.5): telephone is exactly the field type autocomplete
14
19
  // exists for. Default to the correct token; still overridable.
15
- this.autocomplete = 'tel';
20
+ // The country code is chosen separately, so the input holds the national
21
+ // number only: `tel-national` fits it better than `tel`.
22
+ /** `autocomplete` token of the phone input. Defaults to `tel-national`, because the country code is chosen separately. */
23
+ this.autocomplete = 'tel-national';
24
+ // Fallback id so the label is never orphaned when no input_id is passed.
25
+ this.fallbackId = uniqueId('dda-phonefield');
16
26
  }
17
- // F-016: ids derived from the consumer-supplied input_id, same pattern as
18
- // dda-input/dda-select.
27
+ get inputId() {
28
+ return this.input_id || this.fallbackId;
29
+ }
30
+ // F-016: ids derived from the input id, same pattern as dda-input/dda-select.
19
31
  get helperId() {
20
- return this.input_id ? `${this.input_id}-helper` : undefined;
32
+ return `${this.inputId}-helper`;
21
33
  }
22
34
  get errorId() {
23
- return this.input_id ? `${this.input_id}-error` : undefined;
35
+ return `${this.inputId}-error`;
24
36
  }
25
37
  get describedBy() {
26
38
  const ids = [
@@ -56,11 +68,17 @@ export class DdaPhoneField {
56
68
  handlephonenumberChange(event) {
57
69
  const target = event.target;
58
70
  const targetvalue = target.value.replace(/[^0-9.]/g, '');
71
+ // type="tel" does not block other characters, so write the filtered
72
+ // value back. Leading zeros are digits and stay.
73
+ if (target.value !== targetvalue) {
74
+ target.value = targetvalue;
75
+ }
59
76
  this.phone_number = targetvalue;
60
77
  }
61
78
  render() {
62
79
  const inputClass = `${this.component_mode} ${this.size ? `dda-input-size-${this.size}` : ''} ${this.error_message ? `dda-error-message` : ''} ${this.validation_type ? `dda-validation-${this.validation_type}` : ''} ${this.is_focused ? 'dda-input-focus' : ''} ${this.phone_number ? 'dda-input-focus-filled' : ''}`;
63
- return (h(Host, { key: 'cf25902e0ce27b528e00a92f728a0eb221bb65ff' }, h("div", { key: 'ff34b06175b8ab15fedbad232468316639bbe0d3', class: `dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}` }, this.label && h("label", { key: 'a277c84bebef55a5126396beca24584f70d7acb6', htmlFor: this.input_id, class: "dda-input-label" }, this.label), h("div", { key: 'ccf3e63be167ecbbe310084e8b3306e353a6f243', class: `dda-input-field-group dda-phone-field` }, h("div", { key: 'c41acbf341633482a915273f9d3c522c4b2bd95f', class: "dda-input-dropdown-btn" }, h("button", { key: '0cc277ad44e73255ad84f6e2e099847f254fe4d4', type: "button", name: this.toggle_button_name, class: "dda-dropdown-select", onClick: () => this.toggleDropdown() }, h("img", { key: '78e46d6ca28db487ebe4c66b14c8f46850a0ccd8', src: this.country_flag, alt: "", width: "20" }), " ", this.country_code, " ", h("i", { key: '31511bbcb0826bb1fd787a4431378c4b1f8b616f', class: `material-icons` }, this.dropdown_open ? 'keyboard_arrow_down' : 'keyboard_arrow_down')), this.dropdown_open && (h("div", { key: 'e541a962e8f0ea40162968f700ece1e572ce54d3', class: "dda-input-dropdown-list" }, this.countries.map(country => (h("button", { id: this.button_id, name: this.country_select_button_name, "aria-label": this.button_aria_label, type: "button", class: "dda-input-dropdown-item", onClick: () => this.selectCountry(country) }, h("img", { src: country.flag, alt: "", width: "20" }), " ", country.code)))))), h("input", { key: 'ebb15740cd44c82780ce21a7c4425893fdea7e50', id: this.input_id, name: this.phone_input_name, "aria-label": this.aria_label, type: "number", class: `dda-field-group-input`, placeholder: this.placeholder, inputmode: 'numeric', pattern: "[0-9]*", autocomplete: this.autocomplete, value: this.phone_number, onInput: this.handlephonenumberChange.bind(this), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), disabled: this.disabled, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined })), this.helper_text && !this.validation_type && h("span", { key: '635c07efb64846c0deac837cc269f4b544572ef7', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '7e4e2dce397eb4d761bc1e2536219f5f2005dc68', id: this.errorId, class: "dda-error-message" }, this.error_message))));
80
+ const id = this.inputId;
81
+ return (h(Host, { key: 'ed4636c58fceb5ee94ab0e643bef7c0d80a29e24' }, h("div", { key: '2fac5e6cf7529e1892453eaf0eae6eb49765802d', class: `dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}` }, this.label && h("label", { key: '3d5a0b67761684d04ac28984337598cc69239a89', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: 'c7934f67a0b4210164e9ba2b01f1f4b7f0456a0c', class: `dda-input-field-group dda-phone-field` }, h("div", { key: '57f327b669bd80efe824934f5580df54f6939381', class: "dda-input-dropdown-btn" }, h("button", { key: '645477fa36b62fb9b0495d58074b98db2d62beb4', type: "button", name: this.toggle_button_name, class: "dda-dropdown-select", "aria-label": this.toggle_button_label ? `${this.toggle_button_label}: ${this.country_code}` : undefined, "aria-expanded": this.dropdown_open ? 'true' : 'false', onClick: () => this.toggleDropdown() }, h("img", { key: 'a7e82fcf47ae104a3c39aa97cc9c64cea1588070', src: this.country_flag, alt: "", width: "20" }), " ", this.country_code, " ", h("i", { key: 'b8e9482e942a69b252071d9286c9fa30ead4f2f9', class: `material-icons`, "aria-hidden": "true" }, this.dropdown_open ? 'keyboard_arrow_down' : 'keyboard_arrow_down')), this.dropdown_open && (h("div", { key: 'a71f7b95b1eb9682826645655191c27ec41740d7', class: "dda-input-dropdown-list" }, this.countries.map((country, index) => (h("button", { id: `${this.button_id || `${id}-country`}-${index}`, name: this.country_select_button_name, "aria-label": this.button_aria_label, type: "button", class: "dda-input-dropdown-item", onClick: () => this.selectCountry(country) }, h("img", { src: country.flag, alt: "", width: "20" }), " ", country.code)))))), h("input", { key: 'd8d4ad4c885b26f38ece5fe3ec91bc583d03af58', id: id, name: this.phone_input_name, "aria-label": this.aria_label, type: "tel", class: `dda-field-group-input`, placeholder: this.placeholder, inputmode: 'tel', pattern: "[0-9]*", autocomplete: this.autocomplete, value: this.phone_number, onInput: this.handlephonenumberChange.bind(this), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), disabled: this.disabled, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined })), this.helper_text && !this.validation_type && h("span", { key: 'facc14856c52b22330242c5f3a9ab17293232900', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '6b2d21965e9797235d757e1183799bcfa24b0461', id: this.errorId, class: "dda-error-message" }, this.error_message))));
64
82
  }
65
83
  static get is() { return "dda-phonefield"; }
66
84
  static get originalStyleUrls() {
@@ -87,7 +105,7 @@ export class DdaPhoneField {
87
105
  "optional": false,
88
106
  "docs": {
89
107
  "tags": [],
90
- "text": ""
108
+ "text": "Visible label text, linked to the phone input through `input_id`."
91
109
  },
92
110
  "getter": false,
93
111
  "setter": false,
@@ -106,7 +124,7 @@ export class DdaPhoneField {
106
124
  "optional": false,
107
125
  "docs": {
108
126
  "tags": [],
109
- "text": ""
127
+ "text": "Placeholder text of the phone input."
110
128
  },
111
129
  "getter": false,
112
130
  "setter": false,
@@ -126,7 +144,7 @@ export class DdaPhoneField {
126
144
  "optional": false,
127
145
  "docs": {
128
146
  "tags": [],
129
- "text": ""
147
+ "text": "Helper text shown below the field. Hidden when `validation_type` is set."
130
148
  },
131
149
  "getter": false,
132
150
  "setter": false,
@@ -145,7 +163,7 @@ export class DdaPhoneField {
145
163
  "optional": true,
146
164
  "docs": {
147
165
  "tags": [],
148
- "text": ""
166
+ "text": "Validation style. `error` shows the error colors. Any value hides `helper_text`."
149
167
  },
150
168
  "getter": false,
151
169
  "setter": false,
@@ -164,7 +182,7 @@ export class DdaPhoneField {
164
182
  "optional": false,
165
183
  "docs": {
166
184
  "tags": [],
167
- "text": ""
185
+ "text": "Error text shown below the field. When set, the input gets `aria-invalid=\"true\"`."
168
186
  },
169
187
  "getter": false,
170
188
  "setter": false,
@@ -183,7 +201,7 @@ export class DdaPhoneField {
183
201
  "optional": false,
184
202
  "docs": {
185
203
  "tags": [],
186
- "text": ""
204
+ "text": "Disables the phone input and shows the disabled styling."
187
205
  },
188
206
  "getter": false,
189
207
  "setter": false,
@@ -203,7 +221,7 @@ export class DdaPhoneField {
203
221
  "optional": true,
204
222
  "docs": {
205
223
  "tags": [],
206
- "text": ""
224
+ "text": "Size. `small` shows a smaller field; omit for the default size."
207
225
  },
208
226
  "getter": false,
209
227
  "setter": false,
@@ -222,7 +240,7 @@ export class DdaPhoneField {
222
240
  "optional": false,
223
241
  "docs": {
224
242
  "tags": [],
225
- "text": ""
243
+ "text": "Extra CSS classes added to the field container."
226
244
  },
227
245
  "getter": false,
228
246
  "setter": false,
@@ -241,7 +259,7 @@ export class DdaPhoneField {
241
259
  "optional": true,
242
260
  "docs": {
243
261
  "tags": [],
244
- "text": ""
262
+ "text": "Theme override class for the field, e.g. `light-mode`."
245
263
  },
246
264
  "getter": false,
247
265
  "setter": false,
@@ -260,7 +278,7 @@ export class DdaPhoneField {
260
278
  "optional": true,
261
279
  "docs": {
262
280
  "tags": [],
263
- "text": ""
281
+ "text": "`id` of the phone input. Also used for the label `for` and the helper and error text ids. When it is not set, the component generates a unique id."
264
282
  },
265
283
  "getter": false,
266
284
  "setter": false,
@@ -279,7 +297,7 @@ export class DdaPhoneField {
279
297
  "optional": false,
280
298
  "docs": {
281
299
  "tags": [],
282
- "text": ""
300
+ "text": "Accessible name of the phone input. Use it when there is no visible label."
283
301
  },
284
302
  "getter": false,
285
303
  "setter": false,
@@ -298,7 +316,7 @@ export class DdaPhoneField {
298
316
  "optional": true,
299
317
  "docs": {
300
318
  "tags": [],
301
- "text": ""
319
+ "text": "Prefix of the country option button ids in the open list. Each option gets `<button_id>-<index>`. When it is not set, the prefix comes from the input id."
302
320
  },
303
321
  "getter": false,
304
322
  "setter": false,
@@ -317,7 +335,7 @@ export class DdaPhoneField {
317
335
  "optional": false,
318
336
  "docs": {
319
337
  "tags": [],
320
- "text": ""
338
+ "text": "Accessible name set on each country option button in the open list."
321
339
  },
322
340
  "getter": false,
323
341
  "setter": false,
@@ -336,7 +354,7 @@ export class DdaPhoneField {
336
354
  "optional": false,
337
355
  "docs": {
338
356
  "tags": [],
339
- "text": ""
357
+ "text": "`name` of the country code dropdown button."
340
358
  },
341
359
  "getter": false,
342
360
  "setter": false,
@@ -355,13 +373,33 @@ export class DdaPhoneField {
355
373
  "optional": false,
356
374
  "docs": {
357
375
  "tags": [],
358
- "text": ""
376
+ "text": "`name` of each country option button."
359
377
  },
360
378
  "getter": false,
361
379
  "setter": false,
362
380
  "reflect": false,
363
381
  "attribute": "country_select_button_name"
364
382
  },
383
+ "toggle_button_label": {
384
+ "type": "string",
385
+ "mutable": false,
386
+ "complexType": {
387
+ "original": "string",
388
+ "resolved": "string",
389
+ "references": {}
390
+ },
391
+ "required": false,
392
+ "optional": false,
393
+ "docs": {
394
+ "tags": [],
395
+ "text": "Accessible name of the country code dropdown button; the selected code is added after it."
396
+ },
397
+ "getter": false,
398
+ "setter": false,
399
+ "reflect": false,
400
+ "attribute": "toggle_button_label",
401
+ "defaultValue": "'Choose country code'"
402
+ },
365
403
  "phone_input_name": {
366
404
  "type": "string",
367
405
  "mutable": false,
@@ -374,7 +412,7 @@ export class DdaPhoneField {
374
412
  "optional": false,
375
413
  "docs": {
376
414
  "tags": [],
377
- "text": ""
415
+ "text": "`name` of the phone input, submitted with its form."
378
416
  },
379
417
  "getter": false,
380
418
  "setter": false,
@@ -393,13 +431,13 @@ export class DdaPhoneField {
393
431
  "optional": false,
394
432
  "docs": {
395
433
  "tags": [],
396
- "text": ""
434
+ "text": "`autocomplete` token of the phone input. Defaults to `tel-national`, because the country code is chosen separately."
397
435
  },
398
436
  "getter": false,
399
437
  "setter": false,
400
438
  "reflect": false,
401
439
  "attribute": "autocomplete",
402
- "defaultValue": "'tel'"
440
+ "defaultValue": "'tel-national'"
403
441
  }
404
442
  };
405
443
  }
@@ -57,10 +57,6 @@ export default {
57
57
  control: { type: 'text' },
58
58
  description: 'Aria label for the button inside the phone field',
59
59
  },
60
- onchange: {
61
- control: { type: 'text' },
62
- description: 'onchange event for the phone field',
63
- },
64
60
  toggle_button_name: {
65
61
  control: { type: 'text' },
66
62
  description: 'Name for the toggle button',
@@ -97,7 +93,6 @@ To use the \`dda-phonefield\` component, pass the following props:
97
93
  button_id="button"
98
94
  aria_label="phone-field"
99
95
  button_aria_label="phone-button"
100
- onchange="console.log('changed')"
101
96
  toggle_button_name="toggle-button"
102
97
  country_select_button_name="country-select-button"
103
98
  phone_input_name="phone-input"
@@ -130,7 +125,6 @@ Default.args = {
130
125
  button_id: 'button',
131
126
  aria_label: 'phone-field',
132
127
  button_aria_label: 'phone-button',
133
- onchange: '',
134
128
  toggle_button_name: "toggle-button",
135
129
  country_select_button_name: "country-select-button",
136
130
  phone_input_name: "phone-input",
@@ -143,15 +137,12 @@ FocusFilled.args = {
143
137
  helper_text: 'Helper or footer text',
144
138
  error_message: '',
145
139
  disabled: false,
146
- phone_number: '',
147
- isFocused: true,
148
140
  custom_class: 'dda-input-focus',
149
141
  component_mode: '',
150
142
  input_id: 'input',
151
143
  button_id: 'button',
152
144
  aria_label: 'phone-field',
153
145
  button_aria_label: 'phone-button',
154
- onchange: '',
155
146
  toggle_button_name: "toggle-button",
156
147
  country_select_button_name: "country-select-button",
157
148
  phone_input_name: "phone-input",
@@ -164,14 +155,12 @@ Filled.args = {
164
155
  helper_text: 'Helper or footer text',
165
156
  error_message: '',
166
157
  disabled: false,
167
- phone_number: '56 546 0000',
168
158
  custom_class: '',
169
159
  component_mode: '',
170
160
  input_id: 'input',
171
161
  button_id: 'button',
172
162
  aria_label: 'phone-field',
173
163
  button_aria_label: 'phone-button',
174
- onchange: '',
175
164
  toggle_button_name: "toggle-button",
176
165
  country_select_button_name: "country-select-button",
177
166
  phone_input_name: "phone-input",
@@ -191,7 +180,6 @@ Error.args = {
191
180
  button_id: 'button',
192
181
  aria_label: 'phone-field',
193
182
  button_aria_label: 'phone-button',
194
- onchange: '',
195
183
  toggle_button_name: "toggle-button",
196
184
  country_select_button_name: "country-select-button",
197
185
  phone_input_name: "phone-input",
@@ -210,7 +198,6 @@ Disabled.args = {
210
198
  button_id: 'button',
211
199
  aria_label: 'phone-field',
212
200
  button_aria_label: 'phone-button',
213
- onchange: '',
214
201
  toggle_button_name: "toggle-button",
215
202
  country_select_button_name: "country-select-button",
216
203
  phone_input_name: "phone-input",
@@ -1,17 +1,22 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class DdaProgressBar {
3
3
  constructor() {
4
+ /** Progress in percent, from 0 to 100. Sets the bar width and `aria-valuenow`. */
4
5
  this.progress = 0;
6
+ /** Shows the percentage in a tooltip at the end of the filled bar. */
5
7
  this.tooltip = false;
8
+ /** Tooltip position: `top` or `bottom`. */
6
9
  this.tooltip_position = 'top';
10
+ /** Shows the percentage as text after the bar. */
7
11
  this.show_percentage_text = false;
12
+ /** Accessible name of the progress bar. */
8
13
  this.aria_label = 'Progress';
9
14
  }
10
15
  render() {
11
16
  const progressStyle = {
12
17
  width: `${this.progress}%`,
13
18
  };
14
- return (h(Host, { key: 'd15dd4450a6e3844824c70012a60a7ffc2929a05' }, h("div", { key: '272d319e6dc56d0887c8a5649df86ceefcbd15e1', class: `dda-progress-bar-container ${this.custom_class} ${this.component_mode}` }, h("div", { key: 'a6783ce163ce0f5d18a869f90a941b3956ab84bf', class: "dda-progress-bar", role: "progressbar", "aria-label": this.aria_label, "aria-valuenow": `${this.progress}`, "aria-valuemin": "0", "aria-valuemax": "100" }, h("div", { key: '18dde8d79aa85aa38550aad9b17f145ec1d513ac', class: "dda-progress-value", style: progressStyle }, this.tooltip && (h("div", { key: '682ba315e92ce66c2312169fe157723a0d6d7880', class: `dda-tooltip tooltip-${this.tooltip_position}` }, this.progress, "%")))), this.show_percentage_text && (h("span", { key: 'f8ac4a0f095600dfc5df8b6001fe7221533cc49f', class: "dda-percentage-text" }, this.progress, "%")))));
19
+ return (h(Host, { key: '9aba64a14f203bb1c33e1e062c5d4e7e7184c629' }, h("div", { key: '24696a000c26d6b8247b45503187440fa53a6c63', class: `dda-progress-bar-container ${this.custom_class} ${this.component_mode}` }, h("div", { key: 'f04d35bf3f048585df20c365c716307e683bb77f', class: "dda-progress-bar", role: "progressbar", "aria-label": this.aria_label, "aria-valuenow": `${this.progress}`, "aria-valuemin": "0", "aria-valuemax": "100" }, h("div", { key: '9bc2a539196b12d7579aa01f09a9d11f52bc91fd', class: "dda-progress-value", style: progressStyle }, this.tooltip && (h("div", { key: 'd7267cd54ed3b09ab19dcbb8837e9620a1411e84', class: `dda-tooltip tooltip-${this.tooltip_position}` }, this.progress, "%")))), this.show_percentage_text && (h("span", { key: 'c0cd34956a817d6daa3fe526d961897194452cbe', class: "dda-percentage-text" }, this.progress, "%")))));
15
20
  }
16
21
  static get is() { return "dda-progressbar"; }
17
22
  static get originalStyleUrls() {
@@ -38,7 +43,7 @@ export class DdaProgressBar {
38
43
  "optional": false,
39
44
  "docs": {
40
45
  "tags": [],
41
- "text": ""
46
+ "text": "Progress in percent, from 0 to 100. Sets the bar width and `aria-valuenow`."
42
47
  },
43
48
  "getter": false,
44
49
  "setter": false,
@@ -58,7 +63,7 @@ export class DdaProgressBar {
58
63
  "optional": false,
59
64
  "docs": {
60
65
  "tags": [],
61
- "text": ""
66
+ "text": "Shows the percentage in a tooltip at the end of the filled bar."
62
67
  },
63
68
  "getter": false,
64
69
  "setter": false,
@@ -78,7 +83,7 @@ export class DdaProgressBar {
78
83
  "optional": false,
79
84
  "docs": {
80
85
  "tags": [],
81
- "text": ""
86
+ "text": "Tooltip position: `top` or `bottom`."
82
87
  },
83
88
  "getter": false,
84
89
  "setter": false,
@@ -98,7 +103,7 @@ export class DdaProgressBar {
98
103
  "optional": false,
99
104
  "docs": {
100
105
  "tags": [],
101
- "text": ""
106
+ "text": "Shows the percentage as text after the bar."
102
107
  },
103
108
  "getter": false,
104
109
  "setter": false,
@@ -118,7 +123,7 @@ export class DdaProgressBar {
118
123
  "optional": false,
119
124
  "docs": {
120
125
  "tags": [],
121
- "text": ""
126
+ "text": "Extra CSS classes added to the progress bar container."
122
127
  },
123
128
  "getter": false,
124
129
  "setter": false,
@@ -137,7 +142,7 @@ export class DdaProgressBar {
137
142
  "optional": true,
138
143
  "docs": {
139
144
  "tags": [],
140
- "text": ""
145
+ "text": "Theme override class for the progress bar, e.g. `light-mode`."
141
146
  },
142
147
  "getter": false,
143
148
  "setter": false,
@@ -156,7 +161,7 @@ export class DdaProgressBar {
156
161
  "optional": false,
157
162
  "docs": {
158
163
  "tags": [],
159
- "text": ""
164
+ "text": "Accessible name of the progress bar."
160
165
  },
161
166
  "getter": false,
162
167
  "setter": false,