@duetds/components 6.0.2 → 6.0.4

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 (436) hide show
  1. package/hydrate/index.js +51 -41
  2. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
  8. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-card.cjs.entry.js +6 -5
  10. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-editable-table_3.cjs.entry.js +17 -14
  18. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  23. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  25. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  42. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  44. package/lib/cjs/duet.cjs.js +1 -1
  45. package/lib/cjs/{focus-utils-8089a1a8.js → focus-utils-8a615003.js} +1 -1
  46. package/lib/cjs/{index-9d0e33db.js → index-d106d801.js} +1 -1
  47. package/lib/cjs/loader.cjs.js +1 -1
  48. package/lib/cjs/{token-utils-fef5b4eb.js → token-utils-f6e2f4ef.js} +1 -1
  49. package/lib/cjs/{tokens-29450bcb.js → tokens-4c69b122.js} +18 -15
  50. package/lib/cjs/{tokens.module-ef598645.js → tokens.module-1bb2d45e.js} +12 -10
  51. package/lib/collection/components/duet-card/duet-card.js +4 -2
  52. package/lib/collection/components/duet-choice/duet-choice.js +1 -1
  53. package/lib/collection/components/duet-choice-group/duet-choice-group.js +1 -1
  54. package/lib/collection/components/duet-upload/duet-upload.js +18 -15
  55. package/lib/dist-custom-elements/duet-action-button.d.ts +11 -0
  56. package/lib/dist-custom-elements/duet-action-button.js +9 -0
  57. package/lib/dist-custom-elements/duet-alert.d.ts +11 -0
  58. package/lib/dist-custom-elements/duet-alert.js +9 -0
  59. package/lib/dist-custom-elements/duet-badge.d.ts +11 -0
  60. package/lib/dist-custom-elements/duet-badge.js +9 -0
  61. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +11 -0
  62. package/lib/dist-custom-elements/duet-breadcrumb.js +73 -0
  63. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +11 -0
  64. package/lib/dist-custom-elements/duet-breadcrumbs.js +90 -0
  65. package/lib/dist-custom-elements/duet-button.d.ts +11 -0
  66. package/lib/dist-custom-elements/duet-button.js +9 -0
  67. package/lib/dist-custom-elements/duet-caption.d.ts +11 -0
  68. package/lib/dist-custom-elements/duet-caption.js +9 -0
  69. package/lib/dist-custom-elements/duet-card.d.ts +11 -0
  70. package/lib/dist-custom-elements/duet-card.js +190 -0
  71. package/lib/dist-custom-elements/duet-checkbox.d.ts +11 -0
  72. package/lib/dist-custom-elements/duet-checkbox.js +163 -0
  73. package/lib/dist-custom-elements/duet-choice-group.d.ts +11 -0
  74. package/lib/dist-custom-elements/duet-choice-group.js +226 -0
  75. package/lib/dist-custom-elements/duet-choice.d.ts +11 -0
  76. package/lib/dist-custom-elements/duet-choice.js +390 -0
  77. package/lib/dist-custom-elements/duet-collapsible.d.ts +11 -0
  78. package/lib/dist-custom-elements/duet-collapsible.js +170 -0
  79. package/lib/dist-custom-elements/duet-combobox.d.ts +11 -0
  80. package/lib/dist-custom-elements/duet-combobox.js +432 -0
  81. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +11 -0
  82. package/lib/dist-custom-elements/duet-cookie-consent.js +94 -0
  83. package/lib/dist-custom-elements/duet-date-picker.d.ts +11 -0
  84. package/lib/dist-custom-elements/duet-date-picker.js +906 -0
  85. package/lib/dist-custom-elements/duet-divider.d.ts +11 -0
  86. package/lib/dist-custom-elements/duet-divider.js +9 -0
  87. package/lib/dist-custom-elements/duet-editable-table.d.ts +11 -0
  88. package/lib/dist-custom-elements/duet-editable-table.js +9 -0
  89. package/lib/dist-custom-elements/duet-empty-state.d.ts +11 -0
  90. package/lib/dist-custom-elements/duet-empty-state.js +9 -0
  91. package/lib/dist-custom-elements/duet-fieldset.d.ts +11 -0
  92. package/lib/dist-custom-elements/duet-fieldset.js +9 -0
  93. package/lib/dist-custom-elements/duet-footer.d.ts +11 -0
  94. package/lib/dist-custom-elements/duet-footer.js +199 -0
  95. package/lib/dist-custom-elements/duet-grid-item.d.ts +11 -0
  96. package/lib/dist-custom-elements/duet-grid-item.js +9 -0
  97. package/lib/dist-custom-elements/duet-grid.d.ts +11 -0
  98. package/lib/dist-custom-elements/duet-grid.js +9 -0
  99. package/lib/dist-custom-elements/duet-header.d.ts +11 -0
  100. package/lib/dist-custom-elements/duet-header.js +764 -0
  101. package/lib/dist-custom-elements/duet-heading.d.ts +11 -0
  102. package/lib/dist-custom-elements/duet-heading.js +9 -0
  103. package/lib/dist-custom-elements/duet-hero.d.ts +11 -0
  104. package/lib/dist-custom-elements/duet-hero.js +314 -0
  105. package/lib/dist-custom-elements/duet-icon.d.ts +11 -0
  106. package/lib/dist-custom-elements/duet-icon.js +9 -0
  107. package/lib/dist-custom-elements/duet-input.d.ts +11 -0
  108. package/lib/dist-custom-elements/duet-input.js +9 -0
  109. package/lib/dist-custom-elements/duet-label.d.ts +11 -0
  110. package/lib/dist-custom-elements/duet-label.js +9 -0
  111. package/lib/dist-custom-elements/duet-layout.d.ts +11 -0
  112. package/lib/dist-custom-elements/duet-layout.js +107 -0
  113. package/lib/dist-custom-elements/duet-link.d.ts +11 -0
  114. package/lib/dist-custom-elements/duet-link.js +9 -0
  115. package/lib/dist-custom-elements/duet-list-item.d.ts +11 -0
  116. package/lib/dist-custom-elements/duet-list-item.js +9 -0
  117. package/lib/dist-custom-elements/duet-list.d.ts +11 -0
  118. package/lib/dist-custom-elements/duet-list.js +9 -0
  119. package/lib/dist-custom-elements/duet-logo.d.ts +11 -0
  120. package/lib/dist-custom-elements/duet-logo.js +9 -0
  121. package/lib/dist-custom-elements/duet-modal.d.ts +11 -0
  122. package/lib/dist-custom-elements/duet-modal.js +331 -0
  123. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +11 -0
  124. package/lib/dist-custom-elements/duet-notification-drawer.js +194 -0
  125. package/lib/dist-custom-elements/duet-notification.d.ts +11 -0
  126. package/lib/dist-custom-elements/duet-notification.js +114 -0
  127. package/lib/dist-custom-elements/duet-number-input.d.ts +11 -0
  128. package/lib/dist-custom-elements/duet-number-input.js +516 -0
  129. package/lib/dist-custom-elements/duet-pagination.d.ts +11 -0
  130. package/lib/dist-custom-elements/duet-pagination.js +396 -0
  131. package/lib/dist-custom-elements/duet-paragraph.d.ts +11 -0
  132. package/lib/dist-custom-elements/duet-paragraph.js +9 -0
  133. package/lib/dist-custom-elements/duet-progress.d.ts +11 -0
  134. package/lib/dist-custom-elements/duet-progress.js +9 -0
  135. package/lib/dist-custom-elements/duet-radio-group.d.ts +11 -0
  136. package/lib/dist-custom-elements/duet-radio-group.js +216 -0
  137. package/lib/dist-custom-elements/duet-radio.d.ts +11 -0
  138. package/lib/dist-custom-elements/duet-radio.js +167 -0
  139. package/lib/dist-custom-elements/duet-range-slider.d.ts +11 -0
  140. package/lib/dist-custom-elements/duet-range-slider.js +209 -0
  141. package/lib/dist-custom-elements/duet-range-stepper.d.ts +11 -0
  142. package/lib/dist-custom-elements/duet-range-stepper.js +225 -0
  143. package/lib/dist-custom-elements/duet-scrollable.d.ts +11 -0
  144. package/lib/dist-custom-elements/duet-scrollable.js +9 -0
  145. package/lib/dist-custom-elements/duet-select.d.ts +11 -0
  146. package/lib/dist-custom-elements/duet-select.js +9 -0
  147. package/lib/dist-custom-elements/duet-spacer.d.ts +11 -0
  148. package/lib/dist-custom-elements/duet-spacer.js +9 -0
  149. package/lib/dist-custom-elements/duet-spinner.d.ts +11 -0
  150. package/lib/dist-custom-elements/duet-spinner.js +9 -0
  151. package/lib/dist-custom-elements/duet-step.d.ts +11 -0
  152. package/lib/dist-custom-elements/duet-step.js +150 -0
  153. package/lib/dist-custom-elements/duet-stepper.d.ts +11 -0
  154. package/lib/dist-custom-elements/duet-stepper.js +164 -0
  155. package/lib/dist-custom-elements/duet-tab-group.d.ts +11 -0
  156. package/lib/dist-custom-elements/duet-tab-group.js +301 -0
  157. package/lib/dist-custom-elements/duet-tab.d.ts +11 -0
  158. package/lib/dist-custom-elements/duet-tab.js +59 -0
  159. package/lib/dist-custom-elements/duet-table.d.ts +11 -0
  160. package/lib/dist-custom-elements/duet-table.js +9 -0
  161. package/lib/dist-custom-elements/duet-textarea.d.ts +11 -0
  162. package/lib/dist-custom-elements/duet-textarea.js +297 -0
  163. package/lib/dist-custom-elements/duet-toggle.d.ts +11 -0
  164. package/lib/dist-custom-elements/duet-toggle.js +150 -0
  165. package/lib/dist-custom-elements/duet-tooltip.d.ts +11 -0
  166. package/lib/dist-custom-elements/duet-tooltip.js +9 -0
  167. package/lib/dist-custom-elements/duet-tray.d.ts +11 -0
  168. package/lib/dist-custom-elements/duet-tray.js +175 -0
  169. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +11 -0
  170. package/lib/dist-custom-elements/duet-upload-aria-status.js +9 -0
  171. package/lib/dist-custom-elements/duet-upload.d.ts +11 -0
  172. package/lib/dist-custom-elements/duet-upload.js +1514 -0
  173. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +11 -0
  174. package/lib/dist-custom-elements/duet-visually-hidden.js +9 -0
  175. package/lib/dist-custom-elements/index.d.ts +26 -0
  176. package/lib/dist-custom-elements/index.js +37 -0
  177. package/lib/dist-custom-elements/p-01de0640.js +37 -0
  178. package/lib/{esm/tokens-8ff8c570.js → dist-custom-elements/p-02305a1e.js} +18 -15
  179. package/lib/dist-custom-elements/p-08cfe544.js +125 -0
  180. package/lib/dist-custom-elements/p-09ed1ffa.js +160 -0
  181. package/lib/dist-custom-elements/p-0a928609.js +241 -0
  182. package/lib/dist-custom-elements/p-0b3f675e.js +47 -0
  183. package/lib/{esm/focus-utils-9e76623d.js → dist-custom-elements/p-0b8f16f1.js} +1 -1
  184. package/lib/dist-custom-elements/p-115c79b6.js +6 -0
  185. package/lib/dist-custom-elements/p-12721178.js +57 -0
  186. package/lib/dist-custom-elements/p-14dcd82b.js +133 -0
  187. package/lib/dist-custom-elements/p-16d518fd.js +66 -0
  188. package/lib/dist-custom-elements/p-213ef84c.js +87 -0
  189. package/lib/dist-custom-elements/p-266411cf.js +307 -0
  190. package/lib/dist-custom-elements/p-3d987b87.js +75 -0
  191. package/lib/dist-custom-elements/p-3fc2d124.js +1666 -0
  192. package/lib/dist-custom-elements/p-4717744e.js +110 -0
  193. package/lib/dist-custom-elements/p-4ebf1618.js +13 -0
  194. package/lib/dist-custom-elements/p-56118313.js +53 -0
  195. package/lib/dist-custom-elements/p-565779f5.js +199 -0
  196. package/lib/dist-custom-elements/p-5a9d75e1.js +55 -0
  197. package/lib/dist-custom-elements/p-65d3ead5.js +428 -0
  198. package/lib/dist-custom-elements/p-6886544b.js +129 -0
  199. package/lib/dist-custom-elements/p-6e74e660.js +275 -0
  200. package/lib/dist-custom-elements/p-704245ef.js +9 -0
  201. package/lib/dist-custom-elements/p-76f00bd5.js +10 -0
  202. package/lib/dist-custom-elements/p-7739604d.js +214 -0
  203. package/lib/dist-custom-elements/p-81c9b244.js +65 -0
  204. package/lib/{esm/token-utils-df78f4d8.js → dist-custom-elements/p-86faf728.js} +1 -1
  205. package/lib/dist-custom-elements/p-88511d7a.js +275 -0
  206. package/lib/dist-custom-elements/p-9c732bb9.js +193 -0
  207. package/lib/dist-custom-elements/p-acdba2db.js +114 -0
  208. package/lib/dist-custom-elements/p-b08e57cf.js +37 -0
  209. package/lib/dist-custom-elements/p-b9058029.js +138 -0
  210. package/lib/dist-custom-elements/p-bd4b92c4.js +86 -0
  211. package/lib/dist-custom-elements/p-bd779757.js +184 -0
  212. package/lib/dist-custom-elements/p-c1325e35.js +11 -0
  213. package/lib/dist-custom-elements/p-c70f3ccb.js +70 -0
  214. package/lib/dist-custom-elements/p-d004da5f.js +6 -0
  215. package/lib/dist-custom-elements/p-d4c234ed.js +390 -0
  216. package/lib/dist-custom-elements/p-d8549efe.js +20 -0
  217. package/lib/dist-custom-elements/p-d96debb6.js +287 -0
  218. package/lib/dist-custom-elements/p-da03a443.js +154 -0
  219. package/lib/dist-custom-elements/p-e294c0fb.js +341 -0
  220. package/lib/dist-custom-elements/p-e4d5fbc0.js +87 -0
  221. package/lib/dist-custom-elements/p-e5c8a58f.js +71 -0
  222. package/lib/dist-custom-elements/p-ede854e1.js +92 -0
  223. package/lib/dist-custom-elements/p-ef8eff22.js +64 -0
  224. package/lib/dist-custom-elements/p-f11208c3.js +6 -0
  225. package/lib/dist-custom-elements/p-f7db7c40.js +98 -0
  226. package/lib/dist-custom-elements/p-fc5362e7.js +61 -0
  227. package/lib/duet/duet.esm.js +1 -1
  228. package/lib/duet/duet.js +1 -1
  229. package/lib/duet/{p-9ed4eac7.system.entry.js → p-01c551f1.system.entry.js} +1 -1
  230. package/lib/duet/p-02305a1e.js +4 -0
  231. package/lib/duet/{p-f51969f5.entry.js → p-033bfa67.entry.js} +1 -1
  232. package/lib/duet/{p-86a3b203.system.entry.js → p-07a850a5.system.entry.js} +1 -1
  233. package/lib/duet/{p-211e59a0.system.entry.js → p-09e2ff96.system.entry.js} +1 -1
  234. package/lib/duet/{p-07f83b14.entry.js → p-0b74af40.entry.js} +1 -1
  235. package/lib/duet/{p-0c59905a.entry.js → p-0c2a51ac.entry.js} +1 -1
  236. package/lib/duet/{p-e56705ac.system.entry.js → p-0c9f0b8a.system.entry.js} +2 -2
  237. package/lib/duet/{p-4af6e3b1.entry.js → p-0d96924d.entry.js} +1 -1
  238. package/lib/duet/{p-67a78cbe.system.entry.js → p-0e48bca9.system.entry.js} +1 -1
  239. package/lib/duet/{p-82abc212.system.entry.js → p-0e98f667.system.entry.js} +1 -1
  240. package/lib/duet/{p-f5a06ff6.system.js → p-1999f503.system.js} +1 -1
  241. package/lib/duet/{p-e3a6351b.system.entry.js → p-1a41550e.system.entry.js} +1 -1
  242. package/lib/duet/{p-4d6b341d.system.entry.js → p-1bd57792.system.entry.js} +1 -1
  243. package/lib/duet/{p-567cab28.system.entry.js → p-1e0d7680.system.entry.js} +1 -1
  244. package/lib/duet/{p-921085f6.system.entry.js → p-1ebd7945.system.entry.js} +1 -1
  245. package/lib/duet/p-1fc60a60.system.js +4 -0
  246. package/lib/duet/{p-f416e108.entry.js → p-21662682.entry.js} +1 -1
  247. package/lib/duet/{p-2eea39f3.entry.js → p-23943f39.entry.js} +1 -1
  248. package/lib/duet/{p-9a3826e8.system.entry.js → p-23a8fa64.system.entry.js} +1 -1
  249. package/lib/duet/{p-902552a7.system.entry.js → p-264a0e0c.system.entry.js} +1 -1
  250. package/lib/duet/{p-5f407bd1.entry.js → p-27f72e70.entry.js} +1 -1
  251. package/lib/duet/{p-3c80d2fc.entry.js → p-2a3b1a2e.entry.js} +1 -1
  252. package/lib/duet/{p-6c022105.system.entry.js → p-2b320481.system.entry.js} +1 -1
  253. package/lib/duet/p-32f7178a.system.js +4 -0
  254. package/lib/duet/{p-196b2664.entry.js → p-3620ded5.entry.js} +1 -1
  255. package/lib/duet/{p-7d43d67b.entry.js → p-3904232a.entry.js} +1 -1
  256. package/lib/duet/{p-c89b1c28.entry.js → p-3b173cbd.entry.js} +1 -1
  257. package/lib/duet/{p-a9a9d22b.system.entry.js → p-430acad4.system.entry.js} +1 -1
  258. package/lib/duet/{p-5bde4aed.system.entry.js → p-4463946b.system.entry.js} +1 -1
  259. package/lib/duet/{p-cb1f9512.system.entry.js → p-44e9b1c8.system.entry.js} +1 -1
  260. package/lib/duet/p-49ce11a1.entry.js +4 -0
  261. package/lib/duet/{p-5d286e53.system.entry.js → p-4d6feeb5.system.entry.js} +1 -1
  262. package/lib/duet/{p-b4e8f605.system.entry.js → p-4d767c61.system.entry.js} +1 -1
  263. package/lib/duet/{p-94d496e1.system.entry.js → p-4f1fe415.system.entry.js} +1 -1
  264. package/lib/duet/{p-de3c0f4d.js → p-532e9db7.js} +1 -1
  265. package/lib/duet/{p-0250c7b7.system.entry.js → p-55fd512b.system.entry.js} +1 -1
  266. package/lib/duet/{p-398a79a0.js → p-588be556.js} +1 -1
  267. package/lib/duet/{p-f8a52ab0.entry.js → p-5af6d9e2.entry.js} +1 -1
  268. package/lib/duet/{p-626a5916.entry.js → p-5e1d64d8.entry.js} +1 -1
  269. package/lib/duet/{p-422c0465.system.entry.js → p-5f6452ce.system.entry.js} +1 -1
  270. package/lib/duet/{p-b57a4b2d.system.entry.js → p-60e29f52.system.entry.js} +1 -1
  271. package/lib/duet/{p-29157f26.system.entry.js → p-613c4099.system.entry.js} +1 -1
  272. package/lib/duet/{p-f0e4f685.system.entry.js → p-61444a3d.system.entry.js} +1 -1
  273. package/lib/duet/{p-9ef03ba6.js → p-6aca8584.js} +1 -1
  274. package/lib/duet/{p-0c83d107.system.entry.js → p-6e5f2016.system.entry.js} +1 -1
  275. package/lib/duet/{p-0930ce38.system.entry.js → p-6f93638a.system.entry.js} +1 -1
  276. package/lib/duet/{p-bc23dcde.entry.js → p-71105750.entry.js} +1 -1
  277. package/lib/duet/{p-3bbfe384.entry.js → p-73c6e5fb.entry.js} +1 -1
  278. package/lib/duet/{p-af3a016a.system.entry.js → p-751f6957.system.entry.js} +1 -1
  279. package/lib/duet/{p-920f9ff2.system.js → p-77600ed7.system.js} +1 -1
  280. package/lib/duet/{p-32883741.system.entry.js → p-77ca874f.system.entry.js} +1 -1
  281. package/lib/duet/{p-4427f4b2.entry.js → p-787f9eba.entry.js} +1 -1
  282. package/lib/duet/{p-8a91c7bb.system.entry.js → p-7ad2cb10.system.entry.js} +1 -1
  283. package/lib/duet/p-7de4d97d.entry.js +4 -0
  284. package/lib/duet/{p-20b5e96b.system.entry.js → p-8107aeb5.system.entry.js} +1 -1
  285. package/lib/duet/{p-a687eeaa.system.entry.js → p-86cb85b9.system.entry.js} +1 -1
  286. package/lib/duet/{p-d644302f.js → p-875ae637.js} +1 -1
  287. package/lib/duet/{p-39e1c6da.system.entry.js → p-8aafa8e7.system.entry.js} +1 -1
  288. package/lib/duet/{p-8bcd7936.entry.js → p-8b09a46f.entry.js} +1 -1
  289. package/lib/duet/{p-9059b7e3.entry.js → p-8c08e7ba.entry.js} +1 -1
  290. package/lib/duet/p-8e8f8b29.entry.js +4 -0
  291. package/lib/duet/{p-012e33e8.entry.js → p-9094fcf8.entry.js} +1 -1
  292. package/lib/duet/{p-2ebf682d.entry.js → p-988a781d.entry.js} +1 -1
  293. package/lib/duet/{p-194f22b3.system.entry.js → p-a395d4bc.system.entry.js} +1 -1
  294. package/lib/duet/{p-3f1c98d0.entry.js → p-a585113b.entry.js} +1 -1
  295. package/lib/duet/{p-e233e6ed.entry.js → p-aa8973fc.entry.js} +1 -1
  296. package/lib/duet/{p-b014fdca.entry.js → p-ab7f4070.entry.js} +1 -1
  297. package/lib/duet/{p-278340d9.system.entry.js → p-ab89d948.system.entry.js} +1 -1
  298. package/lib/duet/{p-14a2d6f2.entry.js → p-aef02083.entry.js} +1 -1
  299. package/lib/duet/{p-24978396.entry.js → p-afdc57da.entry.js} +1 -1
  300. package/lib/duet/{p-a124d4a0.entry.js → p-b2abaa9e.entry.js} +1 -1
  301. package/lib/duet/{p-68419f1e.entry.js → p-b55e55b5.entry.js} +1 -1
  302. package/lib/duet/{p-007d0250.system.entry.js → p-bbc91480.system.entry.js} +1 -1
  303. package/lib/duet/{p-ecc8ec3e.entry.js → p-bbe1a2cd.entry.js} +1 -1
  304. package/lib/duet/{p-9bd36dc0.system.entry.js → p-bd3c926c.system.entry.js} +1 -1
  305. package/lib/duet/{p-3feb442e.system.entry.js → p-bec16aea.system.entry.js} +1 -1
  306. package/lib/duet/p-bf59e11d.entry.js +4 -0
  307. package/lib/duet/{p-d5ef1959.system.entry.js → p-c4217626.system.entry.js} +1 -1
  308. package/lib/duet/{p-e1a1e52d.system.entry.js → p-c5f6ea62.system.entry.js} +1 -1
  309. package/lib/duet/{p-6ebb40da.entry.js → p-c6d05091.entry.js} +1 -1
  310. package/lib/duet/{p-c3d3f68d.system.entry.js → p-c73a591d.system.entry.js} +1 -1
  311. package/lib/duet/{p-35eaa5a8.entry.js → p-c863a0d1.entry.js} +1 -1
  312. package/lib/duet/{p-33300690.entry.js → p-c986532d.entry.js} +1 -1
  313. package/lib/duet/{p-b43a8c7a.entry.js → p-caa49454.entry.js} +1 -1
  314. package/lib/duet/{p-ddf8a652.system.entry.js → p-ccb0de84.system.entry.js} +1 -1
  315. package/lib/duet/{p-18cc5627.system.js → p-d209191d.system.js} +1 -1
  316. package/lib/duet/{p-4f235805.entry.js → p-defba7cd.entry.js} +1 -1
  317. package/lib/duet/{p-b9e9ac80.system.js → p-df785776.system.js} +1 -1
  318. package/lib/duet/{p-ea60602a.entry.js → p-e9862947.entry.js} +1 -1
  319. package/lib/duet/{p-b9b19fe9.entry.js → p-eb74c96e.entry.js} +1 -1
  320. package/lib/duet/{p-f96da661.entry.js → p-ece47184.entry.js} +1 -1
  321. package/lib/duet/{p-178e0ae7.entry.js → p-f09f968c.entry.js} +1 -1
  322. package/lib/duet/{p-2171d336.entry.js → p-f97776be.entry.js} +1 -1
  323. package/lib/duet/{p-1c0fdc62.system.entry.js → p-fe8fc877.system.entry.js} +1 -1
  324. package/lib/esm/duet-action-button.entry.js +3 -3
  325. package/lib/esm/duet-alert.entry.js +1 -1
  326. package/lib/esm/duet-badge.entry.js +1 -1
  327. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  328. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  329. package/lib/esm/duet-button_2.entry.js +3 -3
  330. package/lib/esm/duet-caption_4.entry.js +3 -3
  331. package/lib/esm/duet-card.entry.js +6 -5
  332. package/lib/esm/duet-checkbox.entry.js +1 -1
  333. package/lib/esm/duet-choice_2.entry.js +4 -4
  334. package/lib/esm/duet-collapsible.entry.js +2 -2
  335. package/lib/esm/duet-combobox.entry.js +1 -1
  336. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  337. package/lib/esm/duet-date-picker.entry.js +2 -2
  338. package/lib/esm/duet-divider_2.entry.js +1 -1
  339. package/lib/esm/duet-editable-table_3.entry.js +17 -14
  340. package/lib/esm/duet-empty-state.entry.js +1 -1
  341. package/lib/esm/duet-fieldset.entry.js +1 -1
  342. package/lib/esm/duet-footer.entry.js +1 -1
  343. package/lib/esm/duet-grid_2.entry.js +2 -2
  344. package/lib/esm/duet-header_2.entry.js +3 -3
  345. package/lib/esm/duet-hero.entry.js +1 -1
  346. package/lib/esm/duet-icon.entry.js +3 -3
  347. package/lib/esm/duet-input_2.entry.js +1 -1
  348. package/lib/esm/duet-layout.entry.js +1 -1
  349. package/lib/esm/duet-list_2.entry.js +1 -1
  350. package/lib/esm/duet-modal.entry.js +2 -2
  351. package/lib/esm/duet-notification_2.entry.js +1 -1
  352. package/lib/esm/duet-number-input.entry.js +1 -1
  353. package/lib/esm/duet-pagination_2.entry.js +1 -1
  354. package/lib/esm/duet-progress.entry.js +1 -1
  355. package/lib/esm/duet-radio_2.entry.js +1 -1
  356. package/lib/esm/duet-range-slider.entry.js +2 -2
  357. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  358. package/lib/esm/duet-select.entry.js +1 -1
  359. package/lib/esm/duet-step_2.entry.js +1 -1
  360. package/lib/esm/duet-textarea.entry.js +1 -1
  361. package/lib/esm/duet-toggle.entry.js +1 -1
  362. package/lib/esm/duet-tooltip.entry.js +1 -1
  363. package/lib/esm/duet-tray.entry.js +2 -2
  364. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  365. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  366. package/lib/esm/duet.js +1 -1
  367. package/lib/esm/focus-utils-236f580e.js +18 -0
  368. package/lib/esm/{index-0d0e51b6.js → index-b601aac1.js} +1 -1
  369. package/lib/esm/loader.js +1 -1
  370. package/lib/esm/token-utils-ebf797ab.js +92 -0
  371. package/lib/esm/tokens-b9d87fda.js +459 -0
  372. package/lib/esm/{tokens.module-f4572ed7.js → tokens.module-385c4cf8.js} +12 -10
  373. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  374. package/lib/esm-es5/duet-alert.entry.js +1 -1
  375. package/lib/esm-es5/duet-badge.entry.js +1 -1
  376. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  377. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  378. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  379. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  380. package/lib/esm-es5/duet-card.entry.js +1 -1
  381. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  382. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  383. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  384. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  385. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  386. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  387. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  388. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  389. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  390. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  391. package/lib/esm-es5/duet-footer.entry.js +1 -1
  392. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  393. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  394. package/lib/esm-es5/duet-hero.entry.js +1 -1
  395. package/lib/esm-es5/duet-icon.entry.js +1 -1
  396. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  397. package/lib/esm-es5/duet-layout.entry.js +1 -1
  398. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  399. package/lib/esm-es5/duet-modal.entry.js +1 -1
  400. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  401. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  402. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  403. package/lib/esm-es5/duet-progress.entry.js +1 -1
  404. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  405. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  406. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  407. package/lib/esm-es5/duet-select.entry.js +1 -1
  408. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  409. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  410. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  411. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  412. package/lib/esm-es5/duet-tray.entry.js +1 -1
  413. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  414. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  415. package/lib/esm-es5/duet.js +1 -1
  416. package/lib/esm-es5/focus-utils-236f580e.js +4 -0
  417. package/lib/esm-es5/{index-0d0e51b6.js → index-b601aac1.js} +1 -1
  418. package/lib/esm-es5/loader.js +1 -1
  419. package/lib/esm-es5/{token-utils-df78f4d8.js → token-utils-ebf797ab.js} +1 -1
  420. package/lib/esm-es5/tokens-b9d87fda.js +4 -0
  421. package/lib/esm-es5/{tokens.module-f4572ed7.js → tokens.module-385c4cf8.js} +1 -1
  422. package/lib/types/components/duet-card/duet-card.d.ts +2 -0
  423. package/lib/types/components/duet-upload/duet-upload.d.ts +8 -8
  424. package/lib/types/components.d.ts +4 -4
  425. package/package.json +5 -5
  426. package/lib/custom-elements-bundle/index.d.ts +0 -399
  427. package/lib/custom-elements-bundle/index.js +0 -14109
  428. package/lib/duet/p-16d21cef.entry.js +0 -4
  429. package/lib/duet/p-6002f3d2.system.js +0 -4
  430. package/lib/duet/p-79817456.entry.js +0 -4
  431. package/lib/duet/p-835f4429.entry.js +0 -4
  432. package/lib/duet/p-a93a04b9.system.js +0 -4
  433. package/lib/duet/p-b6ef2e72.entry.js +0 -4
  434. package/lib/duet/p-d1746325.js +0 -4
  435. package/lib/esm-es5/focus-utils-9e76623d.js +0 -4
  436. package/lib/esm-es5/tokens-8ff8c570.js +0 -4
@@ -0,0 +1,390 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { p as proxyCustomElement, H, c as createEvent, h, b as Host } from './p-3fc2d124.js';
5
+ import { i as inheritGlobalTheme } from './p-4ebf1618.js';
6
+ import { D as DuetStringsExternalDefaults } from './p-76f00bd5.js';
7
+ import { c as createID } from './p-c1325e35.js';
8
+ import { F as FocusGuard } from './p-0b8f16f1.js';
9
+ import { i as isKeyboardClick, a as isQuestionKey, b as isEscapeKey } from './p-d8549efe.js';
10
+ import { g as getLocaleString, a as getLanguage } from './p-ede854e1.js';
11
+ import { d as defineCustomElement$5 } from './p-e5c8a58f.js';
12
+ import { d as defineCustomElement$4 } from './p-7739604d.js';
13
+ import { d as defineCustomElement$3 } from './p-81c9b244.js';
14
+ import { d as defineCustomElement$2 } from './p-b08e57cf.js';
15
+
16
+ var messagingInfo={"title":"messaging-info","tags":"messaging info information circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z\"/><circle cx=\"11.625\" cy=\"7.125\" r=\"1.125\"/><path d=\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\"/></svg>"};
17
+
18
+ const duetChoiceCss = "*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}.horizontal.sc-duet-choice-h{margin-bottom:0 !important}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:#00294d !important;text-align:left;background:white;border-width:2px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:1rem;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:1rem;font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:2px solid #e1e3e6;border-radius:4px;transition:background-color 150ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#e4e4e6}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#e4e4e6}.duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#909599}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:#909599}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#747475}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:#747475}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:#747475}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:#0077b3 !important;background:#f3f9fc;border-color:#0077b3 !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#0077b3}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:#171c3a !important;background:#f5f5f7;border-color:#171c3a !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#c60c30}.checked.collapsible.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:#657787 !important;cursor:default !important;background:#f5f8fa !important;border-color:#e1e3e6 !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:#657787 !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:#747475 !important;background:#f5f5f7 !important;border-color:#e4e4e6 !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:#747475 !important}.checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:#e1e3e6 !important;border-color:#e1e3e6 !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:#e4e4e6 !important;border-color:#e4e4e6 !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid #909599;border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#747475}.checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#0077b3;border-color:#0077b3;transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#171c3a;border-color:#171c3a !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#cfd2d4 !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#cfcfd1 !important}.checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#cfd2d4 !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#cfcfd1 !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid white;border-right:2px solid white;opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important;position:relative;z-index:200;width:100%;font-weight:400;color:#00294d;border:2px solid #e1e3e6;border-top:0;border-radius:0 0 4px 4px}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:#171c3a;border-color:#171c3a}.checked.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:white;border:2px solid #0077b3;border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:white;border-color:#171c3a}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:#f5f8fa;border-color:#e1e3e6}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:#f5f5f7;border-color:#e4e4e6}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:#f5f8fa;transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:#f5f5f7;border-color:#e4e4e6}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:white;border:2px solid #e1e3e6;border-left:0 none;border-top-right-radius:4px;border-bottom-right-radius:4px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:#f5f8fa;border-bottom-color:transparent;border-bottom-right-radius:0}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:#f5f8fa !important;border-color:#e1e3e6 !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#909599 !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:#f5f5f7 !important;border-color:#e4e4e6 !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#747475 !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-choice-info-toggle.sc-duet-choice{border-left-color:#909599}.checked.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:#0077b3 !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#0077b3}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:#c60c30}.duet-choice-input.sc-duet-choice{position:absolute !important;width:auto;height:auto;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);color:transparent}";
19
+
20
+ const DuetChoice$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
21
+ constructor() {
22
+ super();
23
+ this.__registerHost();
24
+ this.duetChange = createEvent(this, "duetChange", 7);
25
+ this.duetFocus = createEvent(this, "duetFocus", 7);
26
+ this.duetBlur = createEvent(this, "duetBlur", 7);
27
+ this.hasHeader = false;
28
+ this.choiceId = createID("DuetChoice");
29
+ this.expandId = createID("DuetChoiceExpand");
30
+ this.headerId = createID("DuetChoiceHeader");
31
+ this.infoButtonId = createID("DuetChoiceInfoButton");
32
+ /**
33
+ * State() variables
34
+ * Inlined decorator, alphabetical order.
35
+ */
36
+ this.isHovering = false;
37
+ this.isInfoOpen = false;
38
+ this.isBlurred = false;
39
+ /**
40
+ * Theme of the choice.
41
+ */
42
+ this.theme = "";
43
+ /**
44
+ * Label for the choice button.
45
+ */
46
+ this.label = "label";
47
+ /**
48
+ * Property to change accessibleLabelInfoButton defaults on the component.
49
+ * normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
50
+ */
51
+ this.accessibleLabelInfoButtonDefaults = DuetStringsExternalDefaults;
52
+ /**
53
+ * Accessible label that is read for screen reader users in the info toggle trigger button.
54
+ * Not visible for normal users.
55
+ * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
56
+ */
57
+ this.accessibleLabelInfoButton = getLocaleString(this.accessibleLabelInfoButtonDefaults);
58
+ /**
59
+ * Aria Details of the component
60
+ */
61
+ this.accessibleDetails = undefined;
62
+ /**
63
+ * String of id's that indicate alternative labels elements
64
+ */
65
+ this.accessibleLabelledBy = undefined;
66
+ /**
67
+ * Aria description the button
68
+ */
69
+ this.accessibleDescription = undefined;
70
+ /**
71
+ * Additional caption to show inside the label of the choice button.
72
+ */
73
+ this.caption = "";
74
+ /**
75
+ * Type of the choice button. You can set the type of the choice to be either
76
+ * “radio” or “checkbox”. Depending on this selection we convey the selection
77
+ * type to assistive technologies as well. When type “radio” is chosen it is
78
+ * required to place the choices inside Choice Group component.
79
+ */
80
+ this.type = "checkbox";
81
+ /**
82
+ * Checked state of the choice button.
83
+ */
84
+ this.checked = false;
85
+ /**
86
+ * Makes the choice button open a new section underneath it when clicked or
87
+ * tapped. This new section can be used to show more options related to this
88
+ * choice. Please note that this feature can’t be used together with the "info"
89
+ * functionality and that it only accepts plain dom nodes (no shadow dom elements
90
+ * such as duet-paragraph can be used as this will break accessibility)
91
+ */
92
+ this.collapsible = false;
93
+ /**
94
+ * Controls the margin of the component.
95
+ */
96
+ this.margin = "auto";
97
+ /**
98
+ * Icon to display to the left of the choice button label.
99
+ */
100
+ this.icon = "";
101
+ /**
102
+ * Expands the choice button to fill 100% of the container width.
103
+ */
104
+ this.expand = false;
105
+ /**
106
+ * Controls the padding of the component.
107
+ */
108
+ this.padding = "auto";
109
+ /**
110
+ * Makes the choice component disabled. This prevents users from being able to
111
+ * interact with the choice, and conveys its inactive state to assistive technologies.
112
+ */
113
+ this.disabled = false;
114
+ /**
115
+ * Set whether the input is required or not. Please note that this is necessary for
116
+ * accessible inputs when the user is required to fill them. When using this property
117
+ * you need to also set “novalidate” attribute to your form element to prevent
118
+ * browser from displaying its own validation errors.
119
+ */
120
+ this.required = false;
121
+ /**
122
+ * Placeholder defaults
123
+ * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
124
+ */
125
+ this.infoLabelDefaults = {
126
+ fi: "Lisätietoja",
127
+ en: "More information about",
128
+ sv: "Mera information om",
129
+ };
130
+ /**
131
+ * Hint text to display before the user types into the date picker input.
132
+ * @default {
133
+ * fi: "Lisätietoja",
134
+ * en: "More information about",
135
+ * sv: "Mera information om",
136
+ * }
137
+ */
138
+ this.infoLabel = getLocaleString(this.infoLabelDefaults, getLanguage());
139
+ this.onMouseEnter = () => {
140
+ this.isHovering = true;
141
+ };
142
+ this.onMouseLeave = () => {
143
+ this.isHovering = false;
144
+ };
145
+ this.onClick = (ev) => {
146
+ this.toggleChecked(ev);
147
+ };
148
+ this.handleKeyDown = (ev) => {
149
+ if (isKeyboardClick(ev)) {
150
+ this.toggleChecked(ev);
151
+ }
152
+ if (isQuestionKey(ev) && this.hasInfo) {
153
+ this.toggleInfo();
154
+ }
155
+ };
156
+ this.onChange = () => {
157
+ this.checked = this.nativeInput.checked || false;
158
+ this.duetChange.emit({
159
+ checked: this.checked,
160
+ value: this.value,
161
+ component: "duet-choice",
162
+ });
163
+ };
164
+ this.onBlur = (ev) => {
165
+ this.duetBlur.emit({
166
+ originalEvent: ev,
167
+ checked: this.checked,
168
+ value: this.value,
169
+ component: "duet-choice",
170
+ });
171
+ };
172
+ this.onFocus = (ev) => {
173
+ this.duetFocus.emit({
174
+ originalEvent: ev,
175
+ checked: this.checked,
176
+ value: this.value,
177
+ component: "duet-choice",
178
+ });
179
+ };
180
+ /**
181
+ * Local methods
182
+ */
183
+ this.toggleChecked = ev => {
184
+ if (this.disabled || this.groupDisabled) {
185
+ return;
186
+ }
187
+ this.isInfoOpen = false;
188
+ // if it's a radio button and it's already checked
189
+ // we shouldn't fire an event, so exit early
190
+ if (this.type === "radio" && this.checked) {
191
+ return;
192
+ }
193
+ this.checked = !this.checked;
194
+ this.duetChange.emit({
195
+ originalEvent: ev,
196
+ checked: this.checked,
197
+ value: this.value,
198
+ component: "duet-choice",
199
+ });
200
+ ev.preventDefault();
201
+ ev.stopPropagation();
202
+ };
203
+ this.toggleInfo = () => {
204
+ this.isInfoOpen = !this.isInfoOpen;
205
+ };
206
+ }
207
+ /**
208
+ * Component lifecycle events.
209
+ */
210
+ componentWillLoad() {
211
+ inheritGlobalTheme(this);
212
+ this.hasInfo = !!this.element.querySelector("[slot='info']");
213
+ this.hasHeader = !!this.element.querySelector('[slot="header"]');
214
+ this.hasAdditional = !!this.element.querySelector("[slot='additional']");
215
+ this.hasLabel = !!this.element.querySelector(":scope > [slot='label']");
216
+ this.hasBeforeText = !!this.element.querySelector("[slot='before-text']");
217
+ }
218
+ /**
219
+ * Component event handling.
220
+ */
221
+ handleHostBlur(ev) {
222
+ /**
223
+ * When moving away from a choice, collapse the info bar to assist visually impared people on focusing
224
+ */
225
+ if (this.hasInfo && this.isInfoOpen && this.isKeyDown) {
226
+ // @ts-ignore
227
+ const isTargetContainedInHost = this.element.contains(ev === null || ev === void 0 ? void 0 : ev.relatedTarget) || false;
228
+ if (!isTargetContainedInHost) {
229
+ this.toggleInfo();
230
+ }
231
+ }
232
+ }
233
+ handleHostKeyDown() {
234
+ this.isKeyDown = true;
235
+ }
236
+ handleHostKeyUp(ev) {
237
+ this.isKeyDown = false;
238
+ if (isEscapeKey(ev) && this.isInfoOpen) {
239
+ this.toggleInfo();
240
+ }
241
+ }
242
+ /**
243
+ * Sets focus on the specified `duet-choice`. Use this method instead of the global
244
+ * `input.focus()`.
245
+ */
246
+ async setFocus(options) {
247
+ this.nativeInput.focus(options);
248
+ }
249
+ getAriaDescribedby() {
250
+ if (this.accessibleDescribedBy) {
251
+ return this.accessibleDescribedBy;
252
+ }
253
+ if (this.collapsible || this.hasInfo) {
254
+ if (this.hasHeader) {
255
+ return this.headerId;
256
+ }
257
+ else {
258
+ return this.expandId;
259
+ }
260
+ }
261
+ return null;
262
+ }
263
+ getClassNames() {
264
+ if (this.hasInfo && !this.collapsible) {
265
+ return {
266
+ "duet-choice-card-info": true,
267
+ "duet-choice-card-info-expanded": this.isInfoOpen,
268
+ "duet-choice-card-collapsed": !this.isInfoOpen,
269
+ "duet-theme-turva": this.theme === "turva",
270
+ };
271
+ }
272
+ if (!this.hasInfo && this.collapsible) {
273
+ return {
274
+ "duet-choice-card-collapsible": true,
275
+ "duet-choice-card-collapsible-expanded": this.checked,
276
+ "duet-choice-card-collapsed": !this.checked,
277
+ "duet-choice-card-collapsible-disabled": this.disabled || this.groupDisabled ? true : false,
278
+ "duet-theme-turva": this.theme === "turva",
279
+ };
280
+ }
281
+ return {
282
+ "duet-choice-default-slot": true,
283
+ };
284
+ }
285
+ /**
286
+ * render() function
287
+ * Always the last one in the class.
288
+ */
289
+ render() {
290
+ const identifier = this.identifier || this.choiceId;
291
+ return (h(Host, { class: {
292
+ horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
293
+ "horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
294
+ "duet-m-0": this.margin === "none",
295
+ "duet-expand": this.expand,
296
+ "duet-theme-turva": this.theme === "turva",
297
+ } }, h("div", { class: {
298
+ "duet-choice-card-flextainer": true,
299
+ "duet-theme-turva": this.theme === "turva",
300
+ } }, h("div", { class: {
301
+ "duet-choice-card": true,
302
+ "has-icon": !!this.icon,
303
+ "has-info": this.hasInfo,
304
+ checked: this.checked,
305
+ info: this.isInfoOpen,
306
+ collapsible: this.collapsible,
307
+ "duet-p-0": this.padding === "none",
308
+ } }, h("input", { class: "duet-choice-input", type: this.type, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, disabled: this.disabled || this.groupDisabled, required: this.required, id: identifier, name: this.name, value: this.value, checked: this.checked, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedby(), onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input) }), h("label", { htmlFor: identifier, class: { "duet-choice-label": true, "no-hover": this.isHovering, "has-before-text": this.hasBeforeText }, onClick: this.onClick }, this.hasBeforeText && h("slot", { name: "before-text" }), this.icon && (h("div", { class: "duet-choice-card-icon" }, h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))), h("div", { class: "duet-choice-card-text" }, h("div", null, this.hasLabel ? h("slot", { name: "label" }) : this.label), this.caption && (h("div", null, h("duet-spacer", { size: "xx-small" }), h("duet-caption", { margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (h("div", null, h("duet-spacer", { size: "xx-small" }), h("slot", { name: "additional" })))), h("div", null, h("div", { class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (h("button", { ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
309
+ "duet-choice-info-toggle": true,
310
+ "duet-theme-turva": this.theme === "turva",
311
+ }, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.disabled || this.groupDisabled, "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, "aria-flowto": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button" }, h("duet-visually-hidden", { "aria-hidden": !this.isBlurred ? "true" : "false" }, this.accessibleLabelInfoButton), h("div", { class: "duet-choice-info-icon" }, h("duet-icon", { icon: messagingInfo.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible || this.hasInfo ? (h("div", { class: this.getClassNames(), id: this.expandId }, h("span", { class: {
312
+ "duet-choice-section-visible": this.collapsible ? this.checked : this.isInfoOpen,
313
+ "duet-choice-section-hidden": this.collapsible ? !this.checked : !this.isInfoOpen,
314
+ } }, h("span", { id: this.headerId }, h("slot", { name: "header" })), this.hasInfo ? (h("span", null, h("span", { "aria-relevant": "all", "aria-atomic": "true", "aria-live": this.isInfoOpen ? "polite" : "off" }, h("slot", { name: "info" })), h("slot", null))) : (h("span", null, h("slot", null)))), this.isInfoOpen && h(FocusGuard, { moveFocusTo: this.infoButtonEl }))) : null));
315
+ }
316
+ get element() { return this; }
317
+ static get style() { return duetChoiceCss; }
318
+ }, [6, "duet-choice", {
319
+ "theme": [1025],
320
+ "label": [1],
321
+ "accessibleLabelInfoButtonDefaults": [1, "accessible-label-info-default"],
322
+ "accessibleLabelInfoButton": [1, "accessible-label-info-button"],
323
+ "accessibleActiveDescendant": [1, "accessible-active-descendant"],
324
+ "accessibleControls": [1, "accessible-controls"],
325
+ "accessibleOwns": [1, "accessible-owns"],
326
+ "accessibleDescribedBy": [1, "accessible-described-by"],
327
+ "accessibleDetails": [1, "accessible-details"],
328
+ "accessibleLabelledBy": [1, "accessible-labelled-by"],
329
+ "accessibleDescription": [1, "accessible-description"],
330
+ "caption": [1],
331
+ "value": [1537],
332
+ "type": [513],
333
+ "name": [1],
334
+ "checked": [1540],
335
+ "collapsible": [4],
336
+ "margin": [1],
337
+ "icon": [1],
338
+ "expand": [4],
339
+ "padding": [1],
340
+ "identifier": [1],
341
+ "groupDirection": [1, "group-direction"],
342
+ "groupDisabled": [4, "group-disabled"],
343
+ "groupResponsive": [4, "group-responsive"],
344
+ "disabled": [516],
345
+ "required": [4],
346
+ "infoLabelDefaults": [1, "accessible-label-info-default"],
347
+ "infoLabel": [1, "info-label"],
348
+ "isHovering": [32],
349
+ "isInfoOpen": [32],
350
+ "isBlurred": [32],
351
+ "setFocus": [64]
352
+ }, [[2, "blur", "handleHostBlur"], [2, "keydown", "handleHostKeyDown"], [2, "keyup", "handleHostKeyUp"]]]);
353
+ function defineCustomElement$1() {
354
+ if (typeof customElements === "undefined") {
355
+ return;
356
+ }
357
+ const components = ["duet-choice", "duet-caption", "duet-icon", "duet-spacer", "duet-visually-hidden"];
358
+ components.forEach(tagName => { switch (tagName) {
359
+ case "duet-choice":
360
+ if (!customElements.get(tagName)) {
361
+ customElements.define(tagName, DuetChoice$1);
362
+ }
363
+ break;
364
+ case "duet-caption":
365
+ if (!customElements.get(tagName)) {
366
+ defineCustomElement$5();
367
+ }
368
+ break;
369
+ case "duet-icon":
370
+ if (!customElements.get(tagName)) {
371
+ defineCustomElement$4();
372
+ }
373
+ break;
374
+ case "duet-spacer":
375
+ if (!customElements.get(tagName)) {
376
+ defineCustomElement$3();
377
+ }
378
+ break;
379
+ case "duet-visually-hidden":
380
+ if (!customElements.get(tagName)) {
381
+ defineCustomElement$2();
382
+ }
383
+ break;
384
+ } });
385
+ }
386
+
387
+ const DuetChoice = DuetChoice$1;
388
+ const defineCustomElement = defineCustomElement$1;
389
+
390
+ export { DuetChoice, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DuetCollapsible extends Components.DuetCollapsible, HTMLElement {}
4
+ export const DuetCollapsible: {
5
+ prototype: DuetCollapsible;
6
+ new (): DuetCollapsible;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,170 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { p as proxyCustomElement, H, c as createEvent, h, b as Host } from './p-3fc2d124.js';
5
+ import { a as actionArrowDownSmall } from './p-115c79b6.js';
6
+ import { f as font_size_medium, t as tokens } from './p-02305a1e.js';
7
+ import { i as inheritGlobalTheme } from './p-4ebf1618.js';
8
+ import { c as createID } from './p-c1325e35.js';
9
+ import { i as isKeyboardClick } from './p-d8549efe.js';
10
+ import { s as sanitizeString } from './p-5a9d75e1.js';
11
+ import { d as defineCustomElement$2 } from './p-7739604d.js';
12
+
13
+ const duetCollapsibleCss = "*.sc-duet-collapsible,*.sc-duet-collapsible::after,*.sc-duet-collapsible::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-collapsible-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:#00294d}.duet-theme-turva.sc-duet-collapsible-h{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a}.duet-m-0.sc-duet-collapsible-h{margin:0 !important}.duet-collapsible-content.sc-duet-collapsible{display:none;padding-left:18px;margin-top:8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:#00294d}@media (max-width: 35.9375em){.duet-collapsible-content.sc-duet-collapsible{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva.sc-duet-collapsible{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a}[open].sc-duet-collapsible-h .duet-collapsible-content.sc-duet-collapsible{display:block}.duet-collapsible-heading.sc-duet-collapsible{-webkit-user-select:none;user-select:none;display:flex;align-items:center;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:#00294d;cursor:pointer;border-radius:4px}.duet-collapsible-heading.duet-collapsible-normal-weight.sc-duet-collapsible{font-weight:400}.duet-collapsible-heading.duet-theme-turva.sc-duet-collapsible{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a}.duet-collapsible-heading.sc-duet-collapsible .duet-collapsible-heading-content.sc-duet-collapsible{flex:1}.duet-collapsible-heading.sc-duet-collapsible:focus{outline:0}.user-is-tabbing.sc-duet-collapsible-h .duet-collapsible-heading.sc-duet-collapsible:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.duet-theme-turva.sc-duet-collapsible-h .duet-collapsible-heading.sc-duet-collapsible:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon.sc-duet-collapsible{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:#00294d;transition:transform 300ms ease}.duet-collapsible-heading-icon.sc-duet-collapsible:last-child,.duet-collapsible-heading-icon.sc-duet-collapsible:last-of-type{margin-right:0 !important}[aria-expanded=true].sc-duet-collapsible .duet-collapsible-heading-icon.sc-duet-collapsible{transform:rotate(180deg)}";
14
+
15
+ const DuetCollapsible$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
16
+ constructor() {
17
+ super();
18
+ this.__registerHost();
19
+ this.duetToggle = createEvent(this, "duetToggle", 7);
20
+ this.id = createID("DuetCollapsible");
21
+ /**
22
+ * Theme of the collapsible.
23
+ */
24
+ this.theme = "";
25
+ /**
26
+ * The content for the collapsible heading.
27
+ */
28
+ this.heading = "";
29
+ /**
30
+ * The font weight of the heading
31
+ */
32
+ this.headingWeight = "semibold";
33
+ /**
34
+ * Custom headingSize to be used for font size of heading, as a design token entered
35
+ * in kebab-case x-small -> font-size-x-small.
36
+ * Example:
37
+ * # 12px (0.75rem) ------ +2px (x-small)
38
+ * # 14px (0.875rem) ------ +2px (small)
39
+ * # 16px (1rem) ------ +2px (medium)
40
+ * # 20px (1.25rem) ------ +4px (large)
41
+ * # 24px (1.5rem) ------ +4px (x-large)
42
+ * # 36px (2.25rem) ------ +12px (xx-large)
43
+ * # 48px (3rem) ------ +12px (xxx-large)
44
+ * # 72px (4.5rem) ------ +24px (xxxx-large)
45
+ */
46
+ this.headingSize = undefined;
47
+ /**
48
+ * The actual heading level used for the heading in html markup. This setting
49
+ * exists for accessibility reasons. It doesn’t change the style visually.
50
+ * only variations of h1-h6 area accepted
51
+ */
52
+ this.headingLevel = undefined;
53
+ /**
54
+ * Controls the margin of the component.
55
+ */
56
+ this.margin = "auto";
57
+ /**
58
+ * Is the component expanded or collapsed.
59
+ */
60
+ this.open = false;
61
+ this.handleKeyDown = (e) => {
62
+ if (isKeyboardClick(e)) {
63
+ this.handleClick(e);
64
+ }
65
+ };
66
+ this.getFontSizeFromTokens = (fontSize = this.headingSize) => {
67
+ if (!fontSize) {
68
+ return font_size_medium;
69
+ }
70
+ else {
71
+ const searchRegExp = /-/g;
72
+ const fontSizeReplaced = fontSize.replace(searchRegExp, "_");
73
+ return tokens[`font_size_${fontSizeReplaced}`];
74
+ }
75
+ };
76
+ this.getEquivalentIconSize = (fontSize = this.headingSize) => {
77
+ switch (fontSize) {
78
+ case "x-small":
79
+ return "xx-small";
80
+ case "small":
81
+ return "xx-small";
82
+ case "medium":
83
+ return "xx-small";
84
+ case "large":
85
+ return "x-small";
86
+ case "x-large":
87
+ return "small";
88
+ case "xx-large":
89
+ return "medium";
90
+ case "xxx-large":
91
+ return "x-large";
92
+ case "xxxx-large":
93
+ return "xxx-large";
94
+ default:
95
+ // default size
96
+ return "xx-small";
97
+ }
98
+ };
99
+ this.handleClick = (e) => {
100
+ e.preventDefault();
101
+ this.open = !this.open;
102
+ this.duetToggle.emit({
103
+ component: "duet-collapsible",
104
+ originalEvent: e,
105
+ });
106
+ };
107
+ }
108
+ /**
109
+ * Component lifecycle events.
110
+ */
111
+ componentWillLoad() {
112
+ inheritGlobalTheme(this);
113
+ }
114
+ /**
115
+ * Sets focus on the specified `duet-collapsible`. Use this method instead of the global
116
+ * `collapsible.focus()`.
117
+ */
118
+ async setFocus(options) {
119
+ if (this.nativeButton) {
120
+ this.element.classList.add("user-is-tabbing");
121
+ this.nativeButton.focus(options);
122
+ }
123
+ }
124
+ /**
125
+ * render() function
126
+ * Always the last one in the class.
127
+ */
128
+ render() {
129
+ const HeadingTagName = this.headingLevel ? sanitizeString(this.headingLevel) : "div";
130
+ return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h(HeadingTagName, { class: {
131
+ "duet-collapsible-heading": true,
132
+ "duet-theme-turva": this.theme === "turva",
133
+ "duet-collapsible-normal-weight": this.headingWeight === "normal",
134
+ }, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", tabindex: "0", ref: button => (this.nativeButton = button), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { class: "duet-collapsible-heading-icon" }, h("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size: this.getEquivalentIconSize(), icon: actionArrowDownSmall.svg })), h("div", { class: "duet-collapsible-heading-content", part: "duet-collapsible-heading-content" }, this.heading)), h("div", { id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" }, part: "duet-collapsible-content" }, h("slot", null))));
135
+ }
136
+ get element() { return this; }
137
+ static get style() { return duetCollapsibleCss; }
138
+ }, [6, "duet-collapsible", {
139
+ "theme": [1025],
140
+ "heading": [1],
141
+ "headingWeight": [1, "heading-weight"],
142
+ "headingSize": [1, "heading-size"],
143
+ "headingLevel": [1, "heading-level"],
144
+ "margin": [1],
145
+ "open": [1540],
146
+ "setFocus": [64]
147
+ }]);
148
+ function defineCustomElement$1() {
149
+ if (typeof customElements === "undefined") {
150
+ return;
151
+ }
152
+ const components = ["duet-collapsible", "duet-icon"];
153
+ components.forEach(tagName => { switch (tagName) {
154
+ case "duet-collapsible":
155
+ if (!customElements.get(tagName)) {
156
+ customElements.define(tagName, DuetCollapsible$1);
157
+ }
158
+ break;
159
+ case "duet-icon":
160
+ if (!customElements.get(tagName)) {
161
+ defineCustomElement$2();
162
+ }
163
+ break;
164
+ } });
165
+ }
166
+
167
+ const DuetCollapsible = DuetCollapsible$1;
168
+ const defineCustomElement = defineCustomElement$1;
169
+
170
+ export { DuetCollapsible, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface DuetCombobox extends Components.DuetCombobox, HTMLElement {}
4
+ export const DuetCombobox: {
5
+ prototype: DuetCombobox;
6
+ new (): DuetCombobox;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;