@dubai-design-system/components-js 5.3.0 → 5.3.2

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 (223) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/MIGRATION.md +16 -1
  3. package/dist/cjs/dda-accordion.cjs.entry.js +3 -3
  4. package/dist/cjs/dda-alert.cjs.entry.js +3 -3
  5. package/dist/cjs/dda-attach-file.cjs.entry.js +3 -3
  6. package/dist/cjs/dda-avatar.cjs.entry.js +7 -7
  7. package/dist/cjs/dda-banner-card.cjs.entry.js +5 -5
  8. package/dist/cjs/dda-banner.cjs.entry.js +3 -3
  9. package/dist/cjs/dda-breadcrumb.cjs.entry.js +2 -2
  10. package/dist/cjs/dda-button.cjs.entry.js +3 -3
  11. package/dist/cjs/dda-checkbox.cjs.entry.js +3 -3
  12. package/dist/cjs/dda-chip.cjs.entry.js +3 -3
  13. package/dist/cjs/dda-credit-card.cjs.entry.js +3 -3
  14. package/dist/cjs/dda-creditcard-field.cjs.entry.js +3 -3
  15. package/dist/cjs/dda-dropdown.cjs.entry.js +3 -3
  16. package/dist/cjs/dda-footer.cjs.entry.js +3 -3
  17. package/dist/cjs/dda-header.cjs.entry.js +33 -6
  18. package/dist/cjs/dda-home-banner.cjs.entry.js +9 -5
  19. package/dist/cjs/dda-home-carousel.cjs.entry.js +2 -2
  20. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +3 -3
  21. package/dist/cjs/dda-input.cjs.entry.js +3 -3
  22. package/dist/cjs/dda-link-button_2.cjs.entry.js +6 -6
  23. package/dist/cjs/dda-number-field.cjs.entry.js +3 -3
  24. package/dist/cjs/dda-pagination.cjs.entry.js +3 -3
  25. package/dist/cjs/dda-phonefield.cjs.entry.js +3 -3
  26. package/dist/cjs/dda-progressbar.cjs.entry.js +3 -3
  27. package/dist/cjs/dda-range-slider.cjs.entry.js +3 -3
  28. package/dist/cjs/dda-scroll-icon.cjs.entry.js +32 -0
  29. package/dist/cjs/dda-search-input.cjs.entry.js +3 -3
  30. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +3 -3
  31. package/dist/cjs/dda-select.cjs.entry.js +83 -12
  32. package/dist/cjs/dda-sticky-footer.cjs.entry.js +4 -4
  33. package/dist/cjs/dda-tabs.cjs.entry.js +3 -3
  34. package/dist/cjs/dda-textarea.cjs.entry.js +4 -4
  35. package/dist/cjs/dda-toggle.cjs.entry.js +3 -3
  36. package/dist/cjs/dda-tooltip.cjs.entry.js +3 -3
  37. package/dist/cjs/dda-ui-card.cjs.entry.js +2 -2
  38. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +2 -2
  39. package/dist/cjs/dda.cjs.js +2 -2
  40. package/dist/cjs/{index-DD8fdSxb.js → index-dmQf0qrn.js} +1 -1
  41. package/dist/cjs/loader.cjs.js +2 -2
  42. package/dist/collection/collection-manifest.json +2 -1
  43. package/dist/collection/components/dda-accordion/dda-accordion.js +1 -1
  44. package/dist/collection/components/dda-alert/dda-alert.js +1 -1
  45. package/dist/collection/components/dda-attach-file/dda-attach-file.js +1 -1
  46. package/dist/collection/components/dda-avatar/dda-avatar.js +5 -5
  47. package/dist/collection/components/dda-banner/dda-banner.js +1 -1
  48. package/dist/collection/components/dda-banner-card/dda-banner-card.js +3 -3
  49. package/dist/collection/components/dda-button/dda-button.js +1 -1
  50. package/dist/collection/components/dda-checkbox/dda-checkbox.js +1 -1
  51. package/dist/collection/components/dda-chip/dda-chip.js +1 -1
  52. package/dist/collection/components/dda-credit-card/dda-credit-card.js +1 -1
  53. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +1 -1
  54. package/dist/collection/components/dda-dropdown/dda-dropdown.js +1 -1
  55. package/dist/collection/components/dda-footer/dda-footer.js +1 -1
  56. package/dist/collection/components/dda-header/dda-header.js +32 -5
  57. package/dist/collection/components/dda-home-banner/dda-home-banner.js +46 -2
  58. package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js +6 -0
  59. package/dist/collection/components/dda-home-banner/home-banner.css +10 -0
  60. package/dist/collection/components/dda-input/dda-input.js +1 -1
  61. package/dist/collection/components/dda-link-button/dda-link-button.js +2 -2
  62. package/dist/collection/components/dda-number-field/dda-number-field.js +1 -1
  63. package/dist/collection/components/dda-pagination/dda-pagination.js +1 -1
  64. package/dist/collection/components/dda-phonefield/dda-phonefield.js +1 -1
  65. package/dist/collection/components/dda-progressbar/dda-progressbar.js +1 -1
  66. package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +31 -6
  67. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +1 -1
  68. package/dist/collection/components/dda-range-slider/dda-range-slider.js +2 -2
  69. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.css +72 -0
  70. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js +120 -0
  71. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.stories.js +17 -0
  72. package/dist/collection/components/dda-search-input/dda-search-input.js +1 -1
  73. package/dist/collection/components/dda-select/dda-select.js +209 -18
  74. package/dist/collection/components/dda-select/dda-select.stories.js +68 -10
  75. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +2 -2
  76. package/dist/collection/components/dda-tabs/dda-tabs.js +1 -1
  77. package/dist/collection/components/dda-textarea/dda-textarea.js +2 -2
  78. package/dist/collection/components/dda-toggle/dda-toggle.js +1 -1
  79. package/dist/collection/components/dda-tooltip/dda-tooltip.js +1 -1
  80. package/dist/collection/components/dda-ui-card/dda-ui-card.js +1 -1
  81. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +1 -1
  82. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +1 -1
  83. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +1 -1
  84. package/dist/collection/global/global.css +31 -6
  85. package/dist/components/dda-accordion.js +1 -1
  86. package/dist/components/dda-alert.js +1 -1
  87. package/dist/components/dda-attach-file.js +1 -1
  88. package/dist/components/dda-avatar.js +1 -1
  89. package/dist/components/dda-banner-card.js +1 -1
  90. package/dist/components/dda-banner.js +1 -1
  91. package/dist/components/dda-breadcrumb.js +1 -1
  92. package/dist/components/dda-button.js +1 -1
  93. package/dist/components/dda-checkbox.js +1 -1
  94. package/dist/components/dda-chip.js +1 -1
  95. package/dist/components/dda-credit-card.js +1 -1
  96. package/dist/components/dda-creditcard-field.js +1 -1
  97. package/dist/components/dda-dropdown.js +1 -1
  98. package/dist/components/dda-footer.js +1 -1
  99. package/dist/components/dda-header.js +1 -1
  100. package/dist/components/dda-home-banner.js +1 -1
  101. package/dist/components/dda-home-carousel.js +1 -1
  102. package/dist/components/dda-horizontal-stepper.js +1 -1
  103. package/dist/components/dda-input.js +1 -1
  104. package/dist/components/dda-link-button.js +1 -1
  105. package/dist/components/dda-number-field.js +1 -1
  106. package/dist/components/dda-pagination.js +1 -1
  107. package/dist/components/dda-phonefield.js +1 -1
  108. package/dist/components/dda-progressbar.js +1 -1
  109. package/dist/components/dda-radiobutton.js +1 -1
  110. package/dist/components/dda-range-slider.js +1 -1
  111. package/dist/components/dda-scroll-icon.d.ts +11 -0
  112. package/dist/components/dda-scroll-icon.js +1 -0
  113. package/dist/components/dda-search-input.js +1 -1
  114. package/dist/components/dda-segmented-tabs.js +1 -1
  115. package/dist/components/dda-select.js +1 -1
  116. package/dist/components/dda-sticky-footer.js +1 -1
  117. package/dist/components/dda-tabs.js +1 -1
  118. package/dist/components/dda-textarea.js +1 -1
  119. package/dist/components/dda-toggle.js +1 -1
  120. package/dist/components/dda-tooltip.js +1 -1
  121. package/dist/components/dda-ui-card.js +1 -1
  122. package/dist/components/dda-vertical-stepper.js +1 -1
  123. package/dist/components/index.js +1 -1
  124. package/dist/components/{p-D3e_hki9.js → p-515Iolds.js} +1 -1
  125. package/dist/components/p-BoRFp_3l.js +1 -0
  126. package/dist/components/{p-BCtBptNq.js → p-BsuxUhYp.js} +1 -1
  127. package/dist/components/{p-BZzFtOHg.js → p-CdwbDBBx.js} +1 -1
  128. package/dist/components/{p-DCwxgkNU.js → p-D6rCOerj.js} +1 -1
  129. package/dist/components/{p-BP6BxgDV.js → p-DCJtRqay.js} +1 -1
  130. package/dist/components/{p-R9p4F9Pi.js → p-DW6Q9LDq.js} +1 -1
  131. package/dist/dda/dda.css +53 -1
  132. package/dist/dda/dda.esm.js +1 -1
  133. package/dist/dda/{p-06188c4c.entry.js → p-024607f9.entry.js} +1 -1
  134. package/dist/dda/{p-faed59dd.entry.js → p-08e196c8.entry.js} +1 -1
  135. package/dist/dda/p-11264464.entry.js +1 -0
  136. package/dist/dda/p-1ae9ad19.entry.js +1 -0
  137. package/dist/dda/{p-10c5a752.entry.js → p-1d7eadd0.entry.js} +1 -1
  138. package/dist/dda/p-29d227c2.entry.js +1 -0
  139. package/dist/dda/{p-95100f73.entry.js → p-3220de7f.entry.js} +1 -1
  140. package/dist/dda/{p-4e717a2e.entry.js → p-3a130316.entry.js} +1 -1
  141. package/dist/dda/{p-8852dafb.entry.js → p-4d16c67a.entry.js} +1 -1
  142. package/dist/dda/{p-0480f0a9.entry.js → p-55033258.entry.js} +1 -1
  143. package/dist/dda/{p-7ffce954.entry.js → p-5fe4825e.entry.js} +1 -1
  144. package/dist/dda/{p-6d4f5672.entry.js → p-60a61479.entry.js} +1 -1
  145. package/dist/dda/{p-47322b02.entry.js → p-67ce47e5.entry.js} +1 -1
  146. package/dist/dda/{p-8108c4ed.entry.js → p-6cb8fead.entry.js} +1 -1
  147. package/dist/dda/{p-9ff8dc84.entry.js → p-6d1699c0.entry.js} +1 -1
  148. package/dist/dda/{p-b37f40a9.entry.js → p-6f2aebb1.entry.js} +1 -1
  149. package/dist/dda/{p-333205aa.entry.js → p-7df6794e.entry.js} +1 -1
  150. package/dist/dda/{p-9f01cb56.entry.js → p-854fd7d4.entry.js} +1 -1
  151. package/dist/dda/{p-8dbbc0ca.entry.js → p-8c1f5a63.entry.js} +1 -1
  152. package/dist/dda/{p-46df4933.entry.js → p-8d7f6793.entry.js} +1 -1
  153. package/dist/dda/{p-a8a1ee5d.entry.js → p-9062f90c.entry.js} +1 -1
  154. package/dist/dda/p-91f8c78c.entry.js +1 -0
  155. package/dist/dda/p-92d77aa7.entry.js +1 -0
  156. package/dist/dda/p-96080710.entry.js +1 -0
  157. package/dist/dda/{p-BnrqwGTj.js → p-BJtZ8AZm.js} +1 -1
  158. package/dist/dda/{p-76859bf8.entry.js → p-abae3f8a.entry.js} +1 -1
  159. package/dist/dda/{p-32a7c588.entry.js → p-af5d9ca7.entry.js} +1 -1
  160. package/dist/dda/{p-25058697.entry.js → p-b0eaaa1a.entry.js} +1 -1
  161. package/dist/dda/p-b29a3530.entry.js +1 -0
  162. package/dist/dda/{p-7c1abbd2.entry.js → p-b367e773.entry.js} +1 -1
  163. package/dist/dda/{p-f2efc121.entry.js → p-b3af8eec.entry.js} +1 -1
  164. package/dist/dda/{p-08e1892a.entry.js → p-b6c5c050.entry.js} +1 -1
  165. package/dist/dda/{p-169ba650.entry.js → p-bf1cd0fd.entry.js} +1 -1
  166. package/dist/dda/{p-6430c363.entry.js → p-c0f0d5e5.entry.js} +1 -1
  167. package/dist/dda/{p-fb00dec4.entry.js → p-cfffa1b4.entry.js} +1 -1
  168. package/dist/dda/{p-6db5588a.entry.js → p-e545b6ff.entry.js} +1 -1
  169. package/dist/dda/{p-9d9834ff.entry.js → p-f649bd48.entry.js} +1 -1
  170. package/dist/esm/dda-accordion.entry.js +3 -3
  171. package/dist/esm/dda-alert.entry.js +3 -3
  172. package/dist/esm/dda-attach-file.entry.js +3 -3
  173. package/dist/esm/dda-avatar.entry.js +7 -7
  174. package/dist/esm/dda-banner-card.entry.js +5 -5
  175. package/dist/esm/dda-banner.entry.js +3 -3
  176. package/dist/esm/dda-breadcrumb.entry.js +2 -2
  177. package/dist/esm/dda-button.entry.js +3 -3
  178. package/dist/esm/dda-checkbox.entry.js +3 -3
  179. package/dist/esm/dda-chip.entry.js +3 -3
  180. package/dist/esm/dda-credit-card.entry.js +3 -3
  181. package/dist/esm/dda-creditcard-field.entry.js +3 -3
  182. package/dist/esm/dda-dropdown.entry.js +3 -3
  183. package/dist/esm/dda-footer.entry.js +3 -3
  184. package/dist/esm/dda-header.entry.js +33 -6
  185. package/dist/esm/dda-home-banner.entry.js +9 -5
  186. package/dist/esm/dda-home-carousel.entry.js +2 -2
  187. package/dist/esm/dda-horizontal-stepper.entry.js +3 -3
  188. package/dist/esm/dda-input.entry.js +3 -3
  189. package/dist/esm/dda-link-button_2.entry.js +6 -6
  190. package/dist/esm/dda-number-field.entry.js +3 -3
  191. package/dist/esm/dda-pagination.entry.js +3 -3
  192. package/dist/esm/dda-phonefield.entry.js +3 -3
  193. package/dist/esm/dda-progressbar.entry.js +3 -3
  194. package/dist/esm/dda-range-slider.entry.js +3 -3
  195. package/dist/esm/dda-scroll-icon.entry.js +30 -0
  196. package/dist/esm/dda-search-input.entry.js +3 -3
  197. package/dist/esm/dda-segmented-tabs.entry.js +3 -3
  198. package/dist/esm/dda-select.entry.js +83 -12
  199. package/dist/esm/dda-sticky-footer.entry.js +4 -4
  200. package/dist/esm/dda-tabs.entry.js +3 -3
  201. package/dist/esm/dda-textarea.entry.js +4 -4
  202. package/dist/esm/dda-toggle.entry.js +3 -3
  203. package/dist/esm/dda-tooltip.entry.js +3 -3
  204. package/dist/esm/dda-ui-card.entry.js +2 -2
  205. package/dist/esm/dda-vertical-stepper.entry.js +2 -2
  206. package/dist/esm/dda.js +3 -3
  207. package/dist/esm/{index-BnrqwGTj.js → index-BJtZ8AZm.js} +1 -1
  208. package/dist/esm/loader.js +3 -3
  209. package/dist/types/components/dda-header/dda-header.d.ts +2 -0
  210. package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +4 -0
  211. package/dist/types/components/dda-home-banner/dda-home-banner.stories.d.ts +8 -0
  212. package/dist/types/components/dda-scroll-icon/dda-scroll-icon.d.ts +11 -0
  213. package/dist/types/components/dda-scroll-icon/dda-scroll-icon.stories.d.ts +20 -0
  214. package/dist/types/components/dda-select/dda-select.d.ts +40 -5
  215. package/dist/types/components/dda-select/dda-select.stories.d.ts +25 -0
  216. package/dist/types/components.d.ts +137 -10
  217. package/package.json +1 -1
  218. package/dist/dda/p-5840fad9.entry.js +0 -1
  219. package/dist/dda/p-5bb62ef7.entry.js +0 -1
  220. package/dist/dda/p-5e757702.entry.js +0 -1
  221. package/dist/dda/p-9a4e34d1.entry.js +0 -1
  222. package/dist/dda/p-9b234635.entry.js +0 -1
  223. package/dist/dda/p-eaffd32d.entry.js +0 -1
@@ -24,6 +24,8 @@ export default {
24
24
  pause_button_label: { control: 'text', description: 'Accessible name for the pause button' },
25
25
  play_button_label: { control: 'text', description: 'Accessible name for the play button' },
26
26
  slide_button_label: { control: 'text', description: 'Prefix for each dot’s accessible name' },
27
+ show_scroll_icon: { control: 'boolean', description: 'Show the decorative scroll icon after the slide controls' },
28
+ show_scroll_icon_mobile: { control: 'boolean', description: 'Also show the scroll icon at 992px and below' },
27
29
  },
28
30
  parameters: {
29
31
  docs: {
@@ -64,6 +66,8 @@ const Template = args => `
64
66
  pause_button_label="${args.pause_button_label}"
65
67
  play_button_label="${args.play_button_label}"
66
68
  slide_button_label="${args.slide_button_label}"
69
+ show_scroll_icon="${args.show_scroll_icon}"
70
+ show_scroll_icon_mobile="${args.show_scroll_icon_mobile}"
67
71
  >
68
72
  ${slide(IMG_1, 'Aerial view of Dubai at sunset', 'Digitalizing Life In Dubai', 'Pioneering and accelerating the pace of digital transformation in the city')}
69
73
  ${slide(IMG_2, 'Dubai skyline at dusk', 'Explore More', 'Find the services you need')}
@@ -78,6 +82,8 @@ const defaultArgs = {
78
82
  pause_button_label: 'Pause slideshow',
79
83
  play_button_label: 'Play slideshow',
80
84
  slide_button_label: 'Go to slide',
85
+ show_scroll_icon: true,
86
+ show_scroll_icon_mobile: false,
81
87
  };
82
88
  export const Default = Template.bind({});
83
89
  Default.args = Object.assign({}, defaultArgs);
@@ -160,6 +160,13 @@
160
160
  height: 25px;
161
161
  overflow: hidden;
162
162
  }
163
+
164
+ .slider-nav .dda-mouse-scroll {
165
+ display: flex;
166
+ align-items: center;
167
+ margin-inline-start: 8px;
168
+ }
169
+
163
170
  .slider-nav ul {
164
171
  display: flex;
165
172
  align-items: center;
@@ -208,6 +215,9 @@
208
215
  .slider-nav {
209
216
  bottom: 100px;
210
217
  }
218
+ .slider-nav .dda-mouse-scroll:not(.dda-mouse-scroll-mobile) {
219
+ display: none;
220
+ }
211
221
  }
212
222
  /* On taller small screens the quick-link cards sit on the banner (dda.css), so the controls sit
213
223
  16px above them. The two custom properties are the cards' gap above the bar and their height. */
@@ -42,7 +42,7 @@ export class DdaInput {
42
42
  this.input_name,
43
43
  ].filter(Boolean).join(' ');
44
44
  const id = this.inputId;
45
- return (h(Host, { key: 'b36592f3d8f701d0adf836057c3d3d2073ad64e6' }, h("div", { key: 'f5f37555cc31612fe697cfe4a26aacb273a76acb', class: inputClass }, this.label && h("label", { key: '54f1595fd236e6987e6b347dcecff8c95562e4e7', htmlFor: id, class: "dda-input-label" }, this.label), h("input", { key: '36a393c6dba904336066803822a3efcf0e02ffae', "aria-label": this.aria_label, id: id, name: this.input_name, type: this.type, autocomplete: this.autocomplete, placeholder: this.placeholder, value: this.value, onInput: (event) => this.handleInput(event), class: "dda-input-field dda-input-text", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), this.helper_text && h("span", { key: '9ddd9e935c97814b24d238f44f5d73fc232e5c5a', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '7c3f9642076e69314f2356fb9ad471f75b2b1f08', id: this.errorId, class: "dda-error-message" }, this.error_message))));
45
+ return (h(Host, { key: '456013b1bf9ca36cec1e860eeed4d26cf6b212db' }, h("div", { key: '91cee372c7df53d78228f0cc4203c63b62d87baa', class: inputClass }, this.label && h("label", { key: 'ca0ebefb538fdf75ea2320d9b72e6b37eefceb90', htmlFor: id, class: "dda-input-label" }, this.label), h("input", { key: '2d192f9e330e69343af07dd9dc5ccf3114081a65', "aria-label": this.aria_label, id: id, name: this.input_name, type: this.type, autocomplete: this.autocomplete, placeholder: this.placeholder, value: this.value, onInput: (event) => this.handleInput(event), class: "dda-input-field dda-input-text", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), this.helper_text && h("span", { key: '36471770750b966057d05c2d094649160718337f', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: 'f9f9f7232f29114a03bec71f5e815e7b99b5facb', id: this.errorId, class: "dda-error-message" }, this.error_message))));
46
46
  }
47
47
  static get is() { return "dda-input"; }
48
48
  static get originalStyleUrls() {
@@ -33,9 +33,9 @@ export class DdaLinkButton {
33
33
  this.custom_class, // Include custom class
34
34
  this.component_mode,
35
35
  ].filter(Boolean).join(' ');
36
- return (h(Host, { key: 'e0f1c7a305ff72f3eadf337585da8021e18e4571' }, h("a", { key: 'f2e280df14c0114c54d6e744651bcdfee022b66d',
36
+ return (h(Host, { key: '2e046f0acf81a0794343eeed591da1dc410222a7' }, h("a", { key: 'f0cc2585726e2a4e081dda080edde3894a9f6ab2',
37
37
  // type={this.type}
38
- id: this.button_id, href: this.href, class: linkbuttonClass, "aria-label": this.aria_label }, this.start_icon && h("i", { key: '190f9273d127bcf6a9b20882fda5a08d3c4c065b', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.start_icon), h("slot", { key: 'ec486bf4bd3b3aee2edf30df7f0677f76f090792' }), this.end_icon && h("i", { key: '0f295c677268f3751175800553566d39a2bc5e59', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.end_icon))));
38
+ id: this.button_id, href: this.href, class: linkbuttonClass, "aria-label": this.aria_label }, this.start_icon && h("i", { key: '21aa636558ccc01a45ec274470d1a0e76557ab30', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.start_icon), h("slot", { key: 'f150c5b2d5dcf495c3c1bd345996516a759087d3' }), this.end_icon && h("i", { key: '6534ba8e68d01beebaa69b65271edc772600ce77', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.end_icon))));
39
39
  }
40
40
  static get is() { return "dda-link-button"; }
41
41
  static get originalStyleUrls() {
@@ -72,7 +72,7 @@ export class DdaNumberField {
72
72
  this.component_mode,
73
73
  ].filter(Boolean).join(' ');
74
74
  const id = this.inputId;
75
- return (h(Host, { key: 'f624d00bd4b5e0c29cdf713f837a83be852e8c30' }, h("div", { key: 'bdcbc45802ac76a5b59eecc57514ddfaa29235a7', class: containerClass }, this.label && h("label", { key: '02ef6553822c0a1b9fafc7ccff2038e200e00715', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: 'f0c13e421c9de5d60b815efc709f5021ee9b2509', class: "dda-input-field-group dda-number-field" }, h("input", { key: '09a73be6481a4285520150c3f4541a43bc2db872', id: id, name: this.input_name, "aria-label": this.aria_label, type: "text", placeholder: this.placeholder, value: this.value, pattern: "[0-9]*", onInput: event => this.handleInput(event), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), class: "dda-field-group-input", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), h("div", { key: '26db621e11ca058e3758144a20508483dcf33394', class: "dda-input-dropdown-btn" }, h("button", { key: '9ec16119661ba40362ab85c65f2f108ea5dcafff', name: this.toggle_button_name, type: "button", class: "dda-dropdown-select", "aria-label": this.toggle_button_label ? `${this.toggle_button_label}: ${this.selected_currency}` : undefined, "aria-expanded": this.isCurrencyDropdownOpen ? 'true' : 'false', onClick: () => this.toggleCurrencyDropdown() }, this.selected_currency, " ", h("i", { key: '5ed1789d07a7e70bb8e903e2d9c4ee969ea19a75', class: `material-icons`, "aria-hidden": "true" }, this.isCurrencyDropdownOpen ? 'keyboard_arrow_up' : 'keyboard_arrow_down')), this.isCurrencyDropdownOpen && (h("div", { key: '1f212a2cc5a4d71e8d8c463fc10b1ea828b66630', class: "dda-input-dropdown-list" }, this.parsedCurrencies.length > 0 ? (this.parsedCurrencies.map(option => (h("button", { name: this.currency_button_name, type: "button", class: `dda-input-dropdown-item ${this.selected_currency === option ? 'selected' : ''}`, onClick: () => this.selectCurrency(option) }, option)))) : (h("div", { class: "dda-input-dropdown-item" }, "No options available")))))), this.helper_text && h("span", { key: '038ad7c3098d0353d63a85e5fa224c084ec9989f', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '743f363599d29ff486146638e406053197328204', id: this.errorId, class: "dda-error-message" }, this.error_message))));
75
+ return (h(Host, { key: 'dc33118445c063d8a31299d0e75864f7c2af28b6' }, h("div", { key: '8722c72807a6e63b15ca5332cbdc96e969aba269', class: containerClass }, this.label && h("label", { key: '9dd6dca85d42b69ffa360e71c917fdfc623f6c88', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '4194f6757d7374277e1d83b5e68aed484cddfde3', class: "dda-input-field-group dda-number-field" }, h("input", { key: '23e0faff7ff131e7dc4f510aab976fda2da35cb3', id: id, name: this.input_name, "aria-label": this.aria_label, type: "text", placeholder: this.placeholder, value: this.value, pattern: "[0-9]*", onInput: event => this.handleInput(event), onFocus: this.handleFocus.bind(this), onBlur: this.handleBlur.bind(this), class: "dda-field-group-input", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), h("div", { key: '794dd0cbfd19a7c5248577cd84246e15724f5bbc', class: "dda-input-dropdown-btn" }, h("button", { key: '58342bb737767eec02ab21e85ee54950e47a9c81', name: this.toggle_button_name, type: "button", class: "dda-dropdown-select", "aria-label": this.toggle_button_label ? `${this.toggle_button_label}: ${this.selected_currency}` : undefined, "aria-expanded": this.isCurrencyDropdownOpen ? 'true' : 'false', onClick: () => this.toggleCurrencyDropdown() }, this.selected_currency, " ", h("i", { key: 'c6b45acd08c9c8091c0c350ce589af6a8de55bb3', class: `material-icons`, "aria-hidden": "true" }, this.isCurrencyDropdownOpen ? 'keyboard_arrow_up' : 'keyboard_arrow_down')), this.isCurrencyDropdownOpen && (h("div", { key: 'e9d3355a8cc996668af6bd1d54b2cd63c960ce22', class: "dda-input-dropdown-list" }, this.parsedCurrencies.length > 0 ? (this.parsedCurrencies.map(option => (h("button", { name: this.currency_button_name, type: "button", class: `dda-input-dropdown-item ${this.selected_currency === option ? 'selected' : ''}`, onClick: () => this.selectCurrency(option) }, option)))) : (h("div", { class: "dda-input-dropdown-item" }, "No options available")))))), this.helper_text && h("span", { key: '31e43fb31d6f5256fa1be9ad07ad6b8ed39a10d6', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '7a5ba18f96a66cb35fa217379014d0b5d15da9ce', id: this.errorId, class: "dda-error-message" }, this.error_message))));
76
76
  }
77
77
  static get is() { return "dda-number-field"; }
78
78
  static get originalStyleUrls() {
@@ -63,7 +63,7 @@ export class DdaPagination {
63
63
  }
64
64
  }
65
65
  render() {
66
- return (h(Host, { key: '3b11664484e9c91e045896687bce2b2f645c7947' }, h("div", { key: 'e9a932aaa1c53285520a54d2a66d115a86479817', class: `dda-pagination-container` }, this.renderPagination())));
66
+ return (h(Host, { key: 'df2d0d06768da20cb3abb0321ab530e5843e1926' }, h("div", { key: 'c3eb73ffd96039d3a979fef9f7c750de725c3a9f', class: `dda-pagination-container` }, this.renderPagination())));
67
67
  }
68
68
  static get is() { return "dda-pagination"; }
69
69
  static get originalStyleUrls() {
@@ -78,7 +78,7 @@ export class DdaPhoneField {
78
78
  render() {
79
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' : ''}`;
80
80
  const id = this.inputId;
81
- return (h(Host, { key: '1971e802b7da8e880d20b7e8f11d0b31f1beefc3' }, h("div", { key: 'b7bfc5d49a4d3eb00ded844be34efccaf5864da7', class: `dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}` }, this.label && h("label", { key: 'f53f699392cf4f471f69277f29f6060ae794c826', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '7f805e90bccd3a560eb9a93b6c954a2f1b9b9d60', class: `dda-input-field-group dda-phone-field` }, h("div", { key: 'feb946112770887a9c249b87c47f62651613eb85', class: "dda-input-dropdown-btn" }, h("button", { key: 'e9800cd1a4ae37a887e499f29f34c7dad3afd6c3', 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: '94638c0703e46eb7c56557e2480bfa14ca0d1e26', src: this.country_flag, alt: "", width: "20" }), " ", this.country_code, " ", h("i", { key: '2c7fe54aa11ecc2d3cfffc8960b21cf3b884aa4d', class: `material-icons`, "aria-hidden": "true" }, this.dropdown_open ? 'keyboard_arrow_down' : 'keyboard_arrow_down')), this.dropdown_open && (h("div", { key: 'ed81296b81e4fe2fb6def30f03b1ef47c542921d', 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: '33aacdf8a564316fe1eebc7b8f5897d051e95263', 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: '4022e0e244728725e57d7c8b3bc9f63dcc8f019d', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '93e0cce65d8fde351b2e031b3ad0be723a7804ec', id: this.errorId, class: "dda-error-message" }, this.error_message))));
81
+ return (h(Host, { key: 'c8913d6b359cfe46a5706f42acbb11764bbd63d5' }, h("div", { key: '90871fbde7ba810963796ec709106b0463ef2b97', class: `dda-input-container ${inputClass} ${this.custom_class} ${this.disabled ? 'dda-input-disabled' : ''}` }, this.label && h("label", { key: '031fe1b88ca5dce28bf0d05f065e29b713e6b0e0', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: 'cffc978d774e2e70825cd6b0ea43d91f5b04ff6b', class: `dda-input-field-group dda-phone-field` }, h("div", { key: '5598c70cd89160303d7d3b13a7cefcaa5244d957', class: "dda-input-dropdown-btn" }, h("button", { key: 'bdadca750c04d90a310f0e2a323602b7ae493882', 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: '8074516551e14d63f9db1d964aba1f4d8a2071f8', src: this.country_flag, alt: "", width: "20" }), " ", this.country_code, " ", h("i", { key: '4b02530bc19f68d6caeeda5ebcf26fa497db7805', class: `material-icons`, "aria-hidden": "true" }, this.dropdown_open ? 'keyboard_arrow_down' : 'keyboard_arrow_down')), this.dropdown_open && (h("div", { key: '4b1b3b5d846d2a1520019e99c25d2bdaea404c9f', 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: '679214a85f3ede2dbf92bf47978638f2409da898', 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: '9af9eb28aa2843e44dfbde3fc9fe7f7bd39f1d27', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '5b1f290bba8fc9896a2de543611fa44da2579fab', id: this.errorId, class: "dda-error-message" }, this.error_message))));
82
82
  }
83
83
  static get is() { return "dda-phonefield"; }
84
84
  static get originalStyleUrls() {
@@ -16,7 +16,7 @@ export class DdaProgressBar {
16
16
  const progressStyle = {
17
17
  width: `${this.progress}%`,
18
18
  };
19
- return (h(Host, { key: '097789c9ac738134268e473677410f6966fb2a2e' }, h("div", { key: '7822aa7f33639e49e37248201458931b0418c6a3', class: `dda-progress-bar-container ${this.custom_class} ${this.component_mode}` }, h("div", { key: 'a26c90a915992100c6c1b7763bf40fc86b7786fd', class: "dda-progress-bar", role: "progressbar", "aria-label": this.aria_label, "aria-valuenow": `${this.progress}`, "aria-valuemin": "0", "aria-valuemax": "100" }, h("div", { key: '4c4945e57ffe790edc31d2787fd2ad89f9292cbb', class: "dda-progress-value", style: progressStyle }, this.tooltip && (h("div", { key: '978a8fcfd4101ebe52bf1d2fbc4d0276171bb751', class: `dda-tooltip tooltip-${this.tooltip_position}` }, this.progress, "%")))), this.show_percentage_text && (h("span", { key: 'ee75db5f57bb41d78cc3cd3e0eecc63520637bec', class: "dda-percentage-text" }, this.progress, "%")))));
19
+ return (h(Host, { key: '04313ddfb70c55db686fea642590ba75ab52d00f' }, h("div", { key: '9daec3039295c313c661f990a5e95a583508a744', class: `dda-progress-bar-container ${this.custom_class} ${this.component_mode}` }, h("div", { key: '784a889d7db67402936a560997cbd12d59c886df', class: "dda-progress-bar", role: "progressbar", "aria-label": this.aria_label, "aria-valuenow": `${this.progress}`, "aria-valuemin": "0", "aria-valuemax": "100" }, h("div", { key: '5429f351051181423e18a271269babd479f15e9a', class: "dda-progress-value", style: progressStyle }, this.tooltip && (h("div", { key: '2178aa8908e5fce94a72c1a2b8dada282addc9fe', class: `dda-tooltip tooltip-${this.tooltip_position}` }, this.progress, "%")))), this.show_percentage_text && (h("span", { key: '323b032598d4bbe965dd8e56874835d3573b6adb', class: "dda-percentage-text" }, this.progress, "%")))));
20
20
  }
21
21
  static get is() { return "dda-progressbar"; }
22
22
  static get originalStyleUrls() {
@@ -3028,23 +3028,43 @@ body {
3028
3028
  width: calc(100% - 32px);
3029
3029
  }
3030
3030
 
3031
+ /* The mega menu opens under its own link, like the 3.x dropdown (.dda-default-submenu), and is as
3032
+ wide as its columns. When it does not fit there, dda-header sets --dda-mega-shift to flip it back
3033
+ toward the start of the nav, or to clamp it inside the screen (alignMegaPanel). */
3031
3034
  .megamenu-content{
3032
3035
  display: none;
3033
- width: 100%;
3034
- padding: 0 15px;
3035
- position: fixed;
3036
- top: 150px;
3037
- left: 0;
3036
+ width: max-content;
3037
+ max-width: calc(100vw - 32px);
3038
+ padding-top: 5px;
3039
+ position: absolute;
3040
+ top: 100%;
3041
+ inset-inline-start: var(--dda-mega-shift, 0px);
3042
+ z-index: 1;
3038
3043
  }
3039
3044
  .megamenu-item{
3040
3045
  min-height: 350px;
3041
3046
  background: var(--dda-surface-100);
3042
3047
  border-radius: 8px;
3043
- margin: 0 auto;
3048
+ margin: 0;
3044
3049
  padding: 42px 15px;
3045
3050
  box-shadow: 0px 10px 15px -3px rgba(16, 24, 40, 0.1);
3046
3051
  position: relative;
3047
3052
  }
3053
+ /* .megamenu-item also has .dda-container; the panel is not a page-wide container. Its height comes
3054
+ from its links, and the end padding keeps the close button clear of the column titles. */
3055
+ .megamenu-content .megamenu-item.dda-container{
3056
+ width: auto;
3057
+ max-width: none;
3058
+ min-height: 0;
3059
+ padding-block: 32px 16px;
3060
+ padding-inline-end: 64px;
3061
+ }
3062
+ /* Fixed-width columns: percentage columns (.dda-col-md-3) have no width to take in a max-content panel. */
3063
+ .megamenu-content .dda-row > [class*='dda-col-']{
3064
+ flex: 0 0 300px;
3065
+ width: 300px;
3066
+ max-width: 300px;
3067
+ }
3048
3068
  .megamenu-item .mega-menu-title{
3049
3069
  height: 24px;
3050
3070
  font-size: var(--dda-fs-body-lg);
@@ -3203,6 +3223,11 @@ body {
3203
3223
  .dda-search input[type="text"]::placeholder{
3204
3224
  color: var(--dda-on-surface-0);
3205
3225
  }
3226
+ /* On the transparent header the typed text and the caret are white, like the placeholder. */
3227
+ .transparent dda-header:not(.dda-scrolled) .dda-search input[type="text"] {
3228
+ color: var(--dda-neutral-100);
3229
+ caret-color: var(--dda-neutral-100);
3230
+ }
3206
3231
  .transparent dda-header:not(.dda-scrolled) .dda-search input[type="text"]::-ms-input-placeholder {
3207
3232
  color: var(--dda-neutral-100);
3208
3233
  }
@@ -13,7 +13,7 @@ export class DdaRadiobutton {
13
13
  this.radio_status ? `dda-radio-${this.radio_status}` : '',
14
14
  this.component_mode,
15
15
  ].filter(Boolean).join(' ');
16
- return (h(Host, { key: 'c324fbb5277d318a4f6550f18950ed02cbd0b781' }, h("div", { key: 'dd31d4f163976c7341aceeea2b6fa2a3b2f09ad4', class: radiobuttonClass }, h("input", { key: '920ff8e75067733041c6868bb90556a801a1040c', "aria-label": this.aria_label, type: "radio", id: this.input_id, name: this.group_name, checked: this.checked }), h("label", { key: '7fe73646f3a9f87aa17fba687dd90b06be9277fc', htmlFor: this.input_id }, h("span", { key: 'f8113a4da08152bd0a61ca72e20dfc520d4c561d', class: "radio-circle" }), h("p", { key: 'e08ad9c71518a60081c8ea1ab688e497cb6c7b1f' }, h("span", { key: 'e38e4b2fc129edf82b4a603acf753c9c3afbbb1b', class: "radio-title" }, this.title_text), this.supporting && h("span", { key: '0c5f35d22f5db9af755f8056e0f14e6a0e694ceb', class: "radio-supporting" }, this.supporting))))));
16
+ return (h(Host, { key: 'dd57237727d215708e18097d29e1543b27f155fd' }, h("div", { key: 'c9997615a28ba5e6b39dd5192bce8be6bafa3294', class: radiobuttonClass }, h("input", { key: '06e80cd7290b4582174d1d5ac66016091c9be88b', "aria-label": this.aria_label, type: "radio", id: this.input_id, name: this.group_name, checked: this.checked }), h("label", { key: '1d337acbc432e898381079385de5a44ea7e84d7c', htmlFor: this.input_id }, h("span", { key: 'b3864f116634c2c3d4dca437df9f7e06c9897844', class: "radio-circle" }), h("p", { key: '19241cca6592bc73e695ef7801a6faf18e1a566f' }, h("span", { key: 'a082d64589f2452401380039adfe65d34747c679', class: "radio-title" }, this.title_text), this.supporting && h("span", { key: 'd98a860bbe61b9e09c06f164108c5d49612c9a3a', class: "radio-supporting" }, this.supporting))))));
17
17
  }
18
18
  static get is() { return "dda-radiobutton"; }
19
19
  static get originalStyleUrls() {
@@ -40,10 +40,10 @@ export class DdaRangeSlider {
40
40
  render() {
41
41
  const leftId = this.left_input_id || `${this.fallbackId}-min`;
42
42
  const rightId = this.right_input_id || `${this.fallbackId}-max`;
43
- return (h(Host, { key: '1af601923e27b7c62ef97b8a5199f71003f46a46' }, h("div", { key: '69d46d14321399d2d5e39969a211953c6a87a9a1', class: `dda-range-slider-container dda-tooltip-${this.tooltip_position} ${this.custom_class} ${this.component_mode}` }, h("div", { key: 'fbfecb4cc371d29c862f9408f8af579f05149561', class: "dda-range-slider" }, h("div", { key: '7bc922c71312956eb782250e3e9425d0494996b4', class: "dda-range-slider-track", style: {
43
+ return (h(Host, { key: '183b4a9a57ed9c7c64158595d6d8ecc7985784a4' }, h("div", { key: '741df5d78729be31eb32701d3aa13b7fc6190682', class: `dda-range-slider-container dda-tooltip-${this.tooltip_position} ${this.custom_class} ${this.component_mode}` }, h("div", { key: '13d362fc01c2189edfce78dcc01ae6ae7a397c49', class: "dda-range-slider" }, h("div", { key: '1f5cc6b659e517107a035f15e79245eec9dbd09d', class: "dda-range-slider-track", style: {
44
44
  left: `${this.getPercentage(this.min_value)}%`,
45
45
  right: `${100 - this.getPercentage(this.max_value)}%`,
46
- } }, h("span", { key: 'ec67480ab23cca5d2e905ee6b04c7cea3c2fcb17', class: "min-label" }, this.min_value, "%"), h("span", { key: '77d4387ab709f62f4b97fc1d6c49f0821a10145e', class: "max-label" }, this.max_value, "%")), h("span", { key: '2c455e418dfc1d4716364424fad33565ae65a503' }, h("input", { key: 'c87f18613d6b4e92c100587a340e96a7ea66474e', id: leftId, name: this.left_input_name, "aria-label": this.left_aria_label || 'Minimum', type: "range", min: this.min, max: this.max, step: this.step, value: this.min_value, onInput: (event) => this.handleMinChange(event), class: "dda-range-slider-input", style: { zIndex: `${this.min_value > this.max - this.min_value ? 5 : 3}` } })), h("span", { key: '1b59740d95af2396e7183d250edff76ab8641156' }, h("input", { key: 'c88c8f1358767b3a00b5144c4e689f6e553ebbd7', id: rightId, name: this.right_input_name, "aria-label": this.right_aria_label || 'Maximum', type: "range", min: this.min, max: this.max, step: this.step, value: this.max_value, onInput: (event) => this.handleMaxChange(event), class: "dda-range-slider-input", style: { zIndex: `${this.max_value < this.max - this.min_value ? 5 : 3}` } }))))));
46
+ } }, h("span", { key: '79773cfafea77732a556d70819ea4ac8875c19fd', class: "min-label" }, this.min_value, "%"), h("span", { key: 'e5663666fce21bd4a2a59b811cd740577b890c35', class: "max-label" }, this.max_value, "%")), h("span", { key: 'b4ab6d47bb1e26e0ed4ba430eab6218f5168cefa' }, h("input", { key: '3eb384952b21acf20fefb49e8cc2fd2565c4fb9d', id: leftId, name: this.left_input_name, "aria-label": this.left_aria_label || 'Minimum', type: "range", min: this.min, max: this.max, step: this.step, value: this.min_value, onInput: (event) => this.handleMinChange(event), class: "dda-range-slider-input", style: { zIndex: `${this.min_value > this.max - this.min_value ? 5 : 3}` } })), h("span", { key: '8bfe1915e08e6ce035f74cf781ac9543736bd7e2' }, h("input", { key: '3abcde5b1d268d0d56f687caadfcf16340ae6c4f', id: rightId, name: this.right_input_name, "aria-label": this.right_aria_label || 'Maximum', type: "range", min: this.min, max: this.max, step: this.step, value: this.max_value, onInput: (event) => this.handleMaxChange(event), class: "dda-range-slider-input", style: { zIndex: `${this.max_value < this.max - this.min_value ? 5 : 3}` } }))))));
47
47
  }
48
48
  static get is() { return "dda-range-slider"; }
49
49
  static get originalStyleUrls() {
@@ -0,0 +1,72 @@
1
+ dda-scroll-icon {
2
+ display: inline-flex;
3
+ }
4
+ .dda-scroll-icon-scroll {
5
+ border-style: solid;
6
+ border-radius: 20px;
7
+ box-sizing: border-box;
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: flex-start;
11
+ }
12
+ .scroll-icon-size-sm {
13
+ width: 16.5px;
14
+ height: 24px;
15
+ border-width: 2px;
16
+ }
17
+ .scroll-icon-size-lg {
18
+ width: 40px;
19
+ height: 60px;
20
+ border-width: 4px;
21
+ }
22
+ .scroll-icon-color-white {
23
+ border-color: #ffffff;
24
+ }
25
+ .scroll-icon-color-black {
26
+ border-color: #000000;
27
+ }
28
+ .dda-scroll-icon-scroll-dot {
29
+ border-radius: 50%;
30
+ }
31
+ .scroll-icon-color-white .dda-scroll-icon-scroll-dot {
32
+ background: #ffffff;
33
+ }
34
+ .scroll-icon-color-black .dda-scroll-icon-scroll-dot {
35
+ background: #000000;
36
+ }
37
+ .scroll-icon-size-sm .dda-scroll-icon-scroll-dot {
38
+ width: 4.5px;
39
+ height: 4.5px;
40
+ transform: translateY(2px);
41
+ }
42
+ .scroll-icon-size-lg .dda-scroll-icon-scroll-dot {
43
+ width: 12px;
44
+ height: 12px;
45
+ transform: translateY(5px);
46
+ }
47
+ @media (prefers-reduced-motion: no-preference) {
48
+ .scroll-icon-size-sm .dda-scroll-icon-scroll-dot {
49
+ animation: dda-scroll-icon-sm var(--animation-duration, 1.8s) infinite;
50
+ }
51
+ .scroll-icon-size-lg .dda-scroll-icon-scroll-dot {
52
+ animation: dda-scroll-icon-lg var(--animation-duration, 1.5s) infinite;
53
+ }
54
+ }
55
+ @keyframes dda-scroll-icon-sm {
56
+ 0%,
57
+ 100% {
58
+ transform: translateY(2px);
59
+ }
60
+ 50% {
61
+ transform: translateY(10px);
62
+ }
63
+ }
64
+ @keyframes dda-scroll-icon-lg {
65
+ 0%,
66
+ 100% {
67
+ transform: translateY(5px);
68
+ }
69
+ 50% {
70
+ transform: translateY(24px);
71
+ }
72
+ }
@@ -0,0 +1,120 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
+ import { Host, h } from "@stencil/core";
3
+ // A decorative "scroll down" mouse icon. It carries no information, so it is hidden from
4
+ // assistive technology, and its dot moves only when the user has not asked for reduced motion.
5
+ export class DdaScrollIcon {
6
+ constructor() {
7
+ /** Size: `sm` (16.5 × 24px) or `lg` (40 × 60px). Default: `sm`. */
8
+ this.scroll_icon_size = 'sm';
9
+ /** Colour: `white` or `black`. Default: `white`. */
10
+ this.scroll_icon_color = 'white';
11
+ /** Extra CSS classes on the icon. */
12
+ this.custom_class = '';
13
+ }
14
+ render() {
15
+ const className = [
16
+ 'dda-scroll-icon-scroll',
17
+ `scroll-icon-size-${this.scroll_icon_size || 'sm'}`,
18
+ `scroll-icon-color-${this.scroll_icon_color || 'white'}`,
19
+ this.custom_class,
20
+ this.component_mode,
21
+ ]
22
+ .filter(Boolean)
23
+ .join(' ');
24
+ return (h(Host, { key: '7aa27a84683b21941cc9f843579736d85a5f3717', "aria-hidden": "true" }, h("div", { key: '59a540879bb9786d8088ca64ea0e0ca3ee8b82c2', class: className }, h("div", { key: 'f44dc05a49f86b9af2460de11381516fbe86127b', class: "dda-scroll-icon-scroll-dot" }))));
25
+ }
26
+ static get is() { return "dda-scroll-icon"; }
27
+ static get originalStyleUrls() {
28
+ return {
29
+ "$": ["dda-scroll-icon.css"]
30
+ };
31
+ }
32
+ static get styleUrls() {
33
+ return {
34
+ "$": ["dda-scroll-icon.css"]
35
+ };
36
+ }
37
+ static get properties() {
38
+ return {
39
+ "scroll_icon_size": {
40
+ "type": "string",
41
+ "mutable": false,
42
+ "complexType": {
43
+ "original": "'sm' | 'lg'",
44
+ "resolved": "\"lg\" | \"sm\"",
45
+ "references": {}
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": "Size: `sm` (16.5 \u00D7 24px) or `lg` (40 \u00D7 60px). Default: `sm`."
52
+ },
53
+ "getter": false,
54
+ "setter": false,
55
+ "reflect": false,
56
+ "attribute": "scroll_icon_size",
57
+ "defaultValue": "'sm'"
58
+ },
59
+ "scroll_icon_color": {
60
+ "type": "string",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "'white' | 'black'",
64
+ "resolved": "\"black\" | \"white\"",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": false,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": "Colour: `white` or `black`. Default: `white`."
72
+ },
73
+ "getter": false,
74
+ "setter": false,
75
+ "reflect": false,
76
+ "attribute": "scroll_icon_color",
77
+ "defaultValue": "'white'"
78
+ },
79
+ "custom_class": {
80
+ "type": "string",
81
+ "mutable": false,
82
+ "complexType": {
83
+ "original": "string",
84
+ "resolved": "string",
85
+ "references": {}
86
+ },
87
+ "required": false,
88
+ "optional": false,
89
+ "docs": {
90
+ "tags": [],
91
+ "text": "Extra CSS classes on the icon."
92
+ },
93
+ "getter": false,
94
+ "setter": false,
95
+ "reflect": false,
96
+ "attribute": "custom_class",
97
+ "defaultValue": "''"
98
+ },
99
+ "component_mode": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "string",
104
+ "resolved": "string",
105
+ "references": {}
106
+ },
107
+ "required": false,
108
+ "optional": false,
109
+ "docs": {
110
+ "tags": [],
111
+ "text": "Theme override class, e.g. `light-mode`."
112
+ },
113
+ "getter": false,
114
+ "setter": false,
115
+ "reflect": false,
116
+ "attribute": "component_mode"
117
+ }
118
+ };
119
+ }
120
+ }
@@ -0,0 +1,17 @@
1
+ export default {
2
+ title: 'Components/Scroll Icon',
3
+ tags: ['autodocs'],
4
+ component: 'dda-scroll-icon',
5
+ argTypes: {
6
+ scroll_icon_size: { control: 'select', options: ['sm', 'lg'], description: 'Size of the icon' },
7
+ scroll_icon_color: { control: 'select', options: ['white', 'black'], description: 'Colour of the icon' },
8
+ },
9
+ };
10
+ const Template = args => `
11
+ <div style="padding: 24px; background: ${args.scroll_icon_color === 'white' ? '#1d211b' : '#ffffff'};">
12
+ <dda-scroll-icon scroll_icon_size="${args.scroll_icon_size}" scroll_icon_color="${args.scroll_icon_color}"></dda-scroll-icon>
13
+ </div>`;
14
+ export const Default = Template.bind({});
15
+ Default.args = { scroll_icon_size: 'sm', scroll_icon_color: 'white' };
16
+ export const LargeBlack = Template.bind({});
17
+ LargeBlack.args = { scroll_icon_size: 'lg', scroll_icon_color: 'black' };
@@ -46,7 +46,7 @@ export class DdaSearchInput {
46
46
  }
47
47
  render() {
48
48
  const id = this.inputId;
49
- return (h(Host, { key: 'a04933a4ee9971b6ec7c072f53a6f1b4f065f2fe' }, h("div", { key: '5fe0c2752a3264b9d5c746a6f896b5e035db8a11', class: `dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}` }, this.label && h("label", { key: 'a9e72000f00dcaaaaf868294a056b8b27d677994', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '304af511df79764b150ab91f50cfb161d47e9400', class: "dda-search-area dda-search-action" }, h("i", { key: 'bc6f44b62a7689f5885c6b6a7ccabfb93674b892', class: "material-icons icon-left", "aria-hidden": "true" }, "search"), h("input", { key: '972a383d29613793a37dfaa8aa47b34901db90ab', name: this.search_input_name, "aria-label": this.aria_label, id: id, type: "text", class: "dda-input-field dda-search-field", placeholder: this.placeholder, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), h("div", { key: '398e33adf066c9b80f8500628677ef3bd360c380', class: "dda-search-btngroup" }, h("button", { key: 'f46d5b85fc84154af0c30dfadb8e963bf08f01ee', name: this.close_button_name, "aria-label": this.button_aria_label || this.clear_button_label, id: this.button_id, type: "button", class: "icon-close", onClick: () => this.clearInput() }, h("i", { key: '333cc8bc389f34bd707a89a077e04ba43806128e', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")), this.show_button && (h("button", { key: '75e608f7b78350d120442fa35cf6fa17e041806c', name: this.search_button_name, type: "button", class: "dda-btn btn-color-default-primary dda-btn-sm" }, "Search")))), this.helper_text && h("span", { key: '58be16a63bd590a3cced76e83b3656d465c5eb1f', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '39f6f55a3cda6eba1e919744094670d10dff78b6', id: this.errorId, class: "dda-error-message" }, this.error_message))));
49
+ return (h(Host, { key: '63dd0ce5b1ba526bc4f2b79cd4646f433bf7f5b1' }, h("div", { key: '4b19e3abcdd6e920b8146484f1e859c449eb6f56', class: `dda-input-container dda-input-size-${this.size} ${this.component_mode} ${this.custom_class} ${this.input_status ? `dda-input-${this.input_status}` : ''} ${this.has_error ? 'dda-validation-error' : ''}` }, this.label && h("label", { key: '54f45f95ae269e974064a01d9453934ef25f1f82', htmlFor: id, class: "dda-input-label" }, this.label), h("div", { key: '51b6460a3a04c80947ce2a9f68cbd472d2dac945', class: "dda-search-area dda-search-action" }, h("i", { key: '2d19436afd728672b1dee78a5888a66a9418e929', class: "material-icons icon-left", "aria-hidden": "true" }, "search"), h("input", { key: 'a28e11d99e628aeb122c857bad226bea62881a1f', name: this.search_input_name, "aria-label": this.aria_label, id: id, type: "text", class: "dda-input-field dda-search-field", placeholder: this.placeholder, "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), h("div", { key: 'd0064ab0d27ad86ef26d048a604de6d93f290c60', class: "dda-search-btngroup" }, h("button", { key: 'a6e9f7288c8ff9123553e80f74e36467bc6f5b43', name: this.close_button_name, "aria-label": this.button_aria_label || this.clear_button_label, id: this.button_id, type: "button", class: "icon-close", onClick: () => this.clearInput() }, h("i", { key: '2676bd651dd8fffd3f6ebf76dc812bfb0272e003', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, "close")), this.show_button && (h("button", { key: '455e7da64da6df0b345ad44559a8a403b44d07f8', name: this.search_button_name, type: "button", class: "dda-btn btn-color-default-primary dda-btn-sm" }, "Search")))), this.helper_text && h("span", { key: 'fe5fbeb25377cf89d4d1fa3520d4c11fd44eb55c', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: '8538814d841caf3e75b0f4edb33c5d53d442b792', id: this.errorId, class: "dda-error-message" }, this.error_message))));
50
50
  }
51
51
  static get is() { return "dda-search-input"; }
52
52
  static get originalStyleUrls() {