@duetds/components 10.0.0-alpha.24 → 10.0.0-alpha.25

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 (403) hide show
  1. package/hydrate/index.js +348 -195
  2. package/hydrate/index.mjs +348 -195
  3. package/lib/cjs/{a11y-utils-CZnG1VYN.js → a11y-utils-BeS3x4Hg.js} +1 -1
  4. package/lib/cjs/{app-globals-B36JTAfq.js → app-globals-BvljEFtV.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-banner.cjs.entry.js +7 -7
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
  11. package/lib/cjs/duet-button_2.cjs.entry.js +12 -12
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +13 -12
  14. package/lib/cjs/duet-card.cjs.entry.js +4 -4
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +6 -6
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-header_2.cjs.entry.js +6 -5
  32. package/lib/cjs/duet-hero.cjs.entry.js +4 -4
  33. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  34. package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  37. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  41. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  43. package/lib/cjs/duet-modal.cjs.entry.js +37 -20
  44. package/lib/cjs/duet-multiselect.cjs.entry.js +5 -5
  45. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  46. package/lib/cjs/duet-notification_2.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-number-input.cjs.entry.js +14 -9
  48. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
  50. package/lib/cjs/duet-pagination_2.cjs.entry.js +6 -6
  51. package/lib/cjs/duet-panel.cjs.entry.js +53 -0
  52. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
  54. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
  56. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  57. package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
  58. package/lib/cjs/duet-scrollable_3.cjs.entry.js +16 -16
  59. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-select.cjs.entry.js +9 -9
  61. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  63. package/lib/cjs/duet-share-chart.cjs.entry.js +7 -7
  64. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  65. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  66. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  67. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  68. package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
  69. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  70. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  71. package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
  72. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  73. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  74. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  75. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  77. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  78. package/lib/cjs/duet-toggle.cjs.entry.js +6 -6
  79. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  80. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  81. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  82. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  83. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
  85. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  87. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  88. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  89. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  90. package/lib/cjs/duet.cjs.js +3 -3
  91. package/lib/cjs/{errorcodes.utils-C58jiu8o.js → errorcodes.utils-CwTzu57-.js} +1 -1
  92. package/lib/cjs/{focus-utils-tY80LFI3.js → focus-utils-Dh4b8BiX.js} +1 -1
  93. package/lib/cjs/{index-C1crwqC7.js → index-D3O_5Hr7.js} +5 -1
  94. package/lib/cjs/{label-ClSVuKQ_.js → label-8AXhdqJy.js} +1 -1
  95. package/lib/cjs/{language-utils-BtiS-RGS.js → language-utils-CMK9eR4Q.js} +1 -1
  96. package/lib/cjs/loader.cjs.js +3 -3
  97. package/lib/cjs/{slot-utils-DZVD8m30.js → slot-utils-BIdgEejh.js} +1 -1
  98. package/lib/cjs/{themeable-component-6YQpZOSC.js → themeable-component-B3llZmjN.js} +1 -1
  99. package/lib/cjs/{token-utils-CHLLcMzU.js → token-utils-DsVwGXGM.js} +75 -7
  100. package/lib/collection/collection-manifest.json +1 -0
  101. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  102. package/lib/collection/components/duet-banner/duet-banner.css +1 -0
  103. package/lib/collection/components/duet-banner/duet-banner.js +3 -3
  104. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  105. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  106. package/lib/collection/components/duet-button/duet-button.css +14 -5
  107. package/lib/collection/components/duet-button/duet-button.js +5 -5
  108. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  109. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  110. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  111. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  112. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  113. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  114. package/lib/collection/components/duet-header/duet-header.js +3 -2
  115. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  116. package/lib/collection/components/duet-label/duet-label.js +1 -1
  117. package/lib/collection/components/duet-link/duet-link.js +5 -4
  118. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  119. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  120. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  121. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  122. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  123. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  124. package/lib/collection/components/duet-modal/duet-modal.js +96 -15
  125. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  126. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  127. package/lib/collection/components/duet-number-input/duet-number-input.js +11 -6
  128. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  129. package/lib/collection/components/duet-panel/duet-panel.css +98 -0
  130. package/lib/collection/components/duet-panel/duet-panel.js +234 -0
  131. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  132. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  133. package/lib/collection/components/duet-promo-card/duet-promo-card.js +3 -3
  134. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  135. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  136. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  137. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  138. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  139. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  140. package/lib/collection/components/duet-select/duet-select.js +5 -5
  141. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  142. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  143. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  144. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  145. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  146. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  147. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  148. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  149. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  150. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  151. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  152. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  153. package/lib/collection/components/duet-step/duet-step.js +2 -2
  154. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  155. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  156. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  157. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  158. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  159. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  160. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  161. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  162. package/lib/collection/components/duet-table/duet-table.js +2 -2
  163. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  164. package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
  165. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  166. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  167. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  168. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  169. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  170. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  171. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  172. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  173. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  174. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  175. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  176. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  177. package/lib/collection/utils/token-utils.js +59 -7
  178. package/lib/collection/utils/turva2-color-tokens.js +42 -0
  179. package/lib/duet/duet.esm.js +1 -1
  180. package/lib/duet/{p-b8c10f92.entry.js → p-04ce95ba.entry.js} +1 -1
  181. package/lib/duet/{p-6104db31.entry.js → p-05766552.entry.js} +1 -1
  182. package/lib/duet/{p-5816e147.entry.js → p-065f7e81.entry.js} +1 -1
  183. package/lib/duet/{p-f234f837.entry.js → p-06ed84cb.entry.js} +1 -1
  184. package/lib/duet/{p-bae186c7.entry.js → p-08ed76c2.entry.js} +1 -1
  185. package/lib/duet/{p-64731e35.entry.js → p-0a448068.entry.js} +1 -1
  186. package/lib/duet/{p-b4e2e77d.entry.js → p-0dc4fe1d.entry.js} +1 -1
  187. package/lib/duet/{p-688ea42b.entry.js → p-0ebeee02.entry.js} +1 -1
  188. package/lib/duet/{p-0e288f30.entry.js → p-106d3089.entry.js} +1 -1
  189. package/lib/duet/p-15593e3e.entry.js +4 -0
  190. package/lib/duet/{p-bb468aae.entry.js → p-2057cc55.entry.js} +1 -1
  191. package/lib/duet/{p-662331c7.entry.js → p-2792ec0b.entry.js} +1 -1
  192. package/lib/duet/p-28a998f9.entry.js +4 -0
  193. package/lib/duet/{p-416cbbf6.entry.js → p-2d3d11db.entry.js} +1 -1
  194. package/lib/duet/{p-2bc683b8.entry.js → p-2e34dd28.entry.js} +1 -1
  195. package/lib/duet/{p-74d7480d.entry.js → p-30ade10d.entry.js} +1 -1
  196. package/lib/duet/{p-58bd2e53.entry.js → p-35ac072d.entry.js} +1 -1
  197. package/lib/duet/p-37222c50.entry.js +4 -0
  198. package/lib/duet/p-39169420.entry.js +4 -0
  199. package/lib/duet/{p-7dceae70.entry.js → p-3dd4fbf1.entry.js} +1 -1
  200. package/lib/duet/{p-a2a94d9a.entry.js → p-402c8cd9.entry.js} +1 -1
  201. package/lib/duet/{p-908b3a74.entry.js → p-4628e002.entry.js} +1 -1
  202. package/lib/duet/{p-c28dc621.entry.js → p-466ef37c.entry.js} +1 -1
  203. package/lib/duet/{p-32ac2068.entry.js → p-4aece4f9.entry.js} +1 -1
  204. package/lib/duet/{p-3897c6bf.entry.js → p-4ee576a2.entry.js} +1 -1
  205. package/lib/duet/p-500d799b.entry.js +4 -0
  206. package/lib/duet/{p-1c2d8dfc.entry.js → p-5564a39c.entry.js} +1 -1
  207. package/lib/duet/{p-a6173e93.entry.js → p-5848a34c.entry.js} +1 -1
  208. package/lib/duet/{p-5f18c78a.entry.js → p-5ab64521.entry.js} +1 -1
  209. package/lib/duet/{p-42539282.entry.js → p-60be3836.entry.js} +1 -1
  210. package/lib/duet/{p-7c19dac5.entry.js → p-625347d3.entry.js} +1 -1
  211. package/lib/duet/{p-db110424.entry.js → p-64ebf5e9.entry.js} +1 -1
  212. package/lib/duet/{p-3aeaed85.entry.js → p-64f8d654.entry.js} +1 -1
  213. package/lib/duet/{p-3baa3eaa.entry.js → p-652eefa8.entry.js} +1 -1
  214. package/lib/duet/{p-3cee5337.entry.js → p-65a8dd89.entry.js} +1 -1
  215. package/lib/duet/{p-2ba227ae.entry.js → p-66c7af01.entry.js} +1 -1
  216. package/lib/duet/{p-be397530.entry.js → p-67290546.entry.js} +1 -1
  217. package/lib/duet/{p-abec4876.entry.js → p-693fda6b.entry.js} +1 -1
  218. package/lib/duet/{p-545e9dd3.entry.js → p-6a6e4d82.entry.js} +1 -1
  219. package/lib/duet/{p-5018b536.entry.js → p-6aa6ce7d.entry.js} +1 -1
  220. package/lib/duet/{p-ca626317.entry.js → p-71603edd.entry.js} +1 -1
  221. package/lib/duet/{p-156d2362.entry.js → p-71a6b137.entry.js} +1 -1
  222. package/lib/duet/{p-3d8dc9a3.entry.js → p-72c2ba6b.entry.js} +1 -1
  223. package/lib/duet/p-73290da8.entry.js +4 -0
  224. package/lib/duet/{p-f6c347b4.entry.js → p-73ce0ef8.entry.js} +1 -1
  225. package/lib/duet/p-767afcf4.entry.js +4 -0
  226. package/lib/duet/{p-f4a44d9d.entry.js → p-774cf9f5.entry.js} +1 -1
  227. package/lib/duet/{p-ff564afe.entry.js → p-7a9f3475.entry.js} +1 -1
  228. package/lib/duet/{p-6cafd585.entry.js → p-7c814d9a.entry.js} +1 -1
  229. package/lib/duet/{p-038b8ea1.entry.js → p-7f1fb1a9.entry.js} +1 -1
  230. package/lib/duet/{p-88422e6a.entry.js → p-83f6beb5.entry.js} +1 -1
  231. package/lib/duet/{p-f4be7b00.entry.js → p-8596c993.entry.js} +1 -1
  232. package/lib/duet/{p-815c955b.entry.js → p-867aab83.entry.js} +1 -1
  233. package/lib/duet/p-86b74914.entry.js +4 -0
  234. package/lib/duet/{p-f4a0f95a.entry.js → p-8ed6f7c7.entry.js} +1 -1
  235. package/lib/duet/{p-bf586daf.entry.js → p-94e33308.entry.js} +1 -1
  236. package/lib/duet/p-960f95b4.entry.js +4 -0
  237. package/lib/duet/{p-66861503.entry.js → p-9973c0dc.entry.js} +1 -1
  238. package/lib/duet/{p-8a852600.entry.js → p-9a1f29ac.entry.js} +1 -1
  239. package/lib/duet/{p-6f635395.entry.js → p-9fade6a0.entry.js} +1 -1
  240. package/lib/duet/{p-b0484b68.entry.js → p-9fff2189.entry.js} +1 -1
  241. package/lib/duet/{p-CsVaeVlH.js → p-B_VBeM3r.js} +1 -1
  242. package/lib/duet/{p-DglOA-oE.js → p-BaR6ufr4.js} +1 -1
  243. package/lib/duet/p-BdUQgQFn.js +4 -0
  244. package/lib/duet/{p-uJz71_4x.js → p-DdwVwK5C.js} +1 -1
  245. package/lib/duet/p-Dr2j33H2.js +4 -0
  246. package/lib/duet/p-DyXNfxdT.js +4 -0
  247. package/lib/duet/p-DzerL_yn.js +4 -0
  248. package/lib/duet/p-KocOARXM.js +4 -0
  249. package/lib/duet/p-OdY4DjJa.js +4 -0
  250. package/lib/duet/p-T5kkooky.js +4 -0
  251. package/lib/duet/{p-D5_4M8f7.js → p-Z0D6Gy9e.js} +1 -1
  252. package/lib/duet/{p-b463cb8b.entry.js → p-a09c6e42.entry.js} +1 -1
  253. package/lib/duet/{p-41ef0467.entry.js → p-a3a2e89e.entry.js} +1 -1
  254. package/lib/duet/{p-da1914c5.entry.js → p-a440c5b3.entry.js} +1 -1
  255. package/lib/duet/{p-034efb8b.entry.js → p-a4a768bf.entry.js} +1 -1
  256. package/lib/duet/{p-1d5bdc66.entry.js → p-a72b8cf4.entry.js} +1 -1
  257. package/lib/duet/p-ab0cd4e5.entry.js +4 -0
  258. package/lib/duet/{p-9ef5fe85.entry.js → p-aefcd222.entry.js} +1 -1
  259. package/lib/duet/p-b84ac47b.entry.js +4 -0
  260. package/lib/duet/{p-218b0dc3.entry.js → p-ba0fcce1.entry.js} +1 -1
  261. package/lib/duet/p-ba2b47d3.entry.js +4 -0
  262. package/lib/duet/{p-90efef7f.entry.js → p-baeb1090.entry.js} +1 -1
  263. package/lib/duet/{p-db50a06b.entry.js → p-bcbe4d11.entry.js} +1 -1
  264. package/lib/duet/{p-caf145ea.entry.js → p-bf5fae27.entry.js} +1 -1
  265. package/lib/duet/p-c6479694.entry.js +4 -0
  266. package/lib/duet/{p-72ad01cb.entry.js → p-c8308bec.entry.js} +1 -1
  267. package/lib/duet/p-d0f3a2e6.entry.js +4 -0
  268. package/lib/duet/{p-e99bccef.entry.js → p-d28a8bc4.entry.js} +1 -1
  269. package/lib/duet/p-d2ceafd6.entry.js +4 -0
  270. package/lib/duet/{p-7bc24df3.entry.js → p-d96af9c9.entry.js} +1 -1
  271. package/lib/duet/{p-9b757818.entry.js → p-dee8ff90.entry.js} +1 -1
  272. package/lib/duet/p-e9421a0e.entry.js +4 -0
  273. package/lib/duet/p-ec6e097b.entry.js +4 -0
  274. package/lib/duet/{p-08f98123.entry.js → p-effefdec.entry.js} +1 -1
  275. package/lib/duet/{p-4427fd7d.entry.js → p-fb3b8e0f.entry.js} +1 -1
  276. package/lib/esm/{a11y-utils-ehCV15cK.js → a11y-utils-CXqm1pj1.js} +1 -1
  277. package/lib/esm/{app-globals-BWEEyeBa.js → app-globals-s-_CGo5t.js} +1 -1
  278. package/lib/esm/duet-action-button.entry.js +5 -5
  279. package/lib/esm/duet-alert.entry.js +4 -4
  280. package/lib/esm/duet-badge.entry.js +4 -4
  281. package/lib/esm/duet-banner.entry.js +8 -8
  282. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  283. package/lib/esm/duet-breadcrumbs.entry.js +7 -7
  284. package/lib/esm/duet-button_2.entry.js +13 -13
  285. package/lib/esm/duet-callout.entry.js +5 -5
  286. package/lib/esm/duet-caption_4.entry.js +14 -13
  287. package/lib/esm/duet-card.entry.js +5 -5
  288. package/lib/esm/duet-checkbox.entry.js +2 -2
  289. package/lib/esm/duet-checkmark.entry.js +4 -4
  290. package/lib/esm/duet-chip.entry.js +3 -3
  291. package/lib/esm/duet-choice_2.entry.js +6 -6
  292. package/lib/esm/duet-collapsible.entry.js +3 -3
  293. package/lib/esm/duet-combobox.entry.js +4 -4
  294. package/lib/esm/duet-contact-card.entry.js +5 -5
  295. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  296. package/lib/esm/duet-date-picker.entry.js +6 -6
  297. package/lib/esm/duet-divider_2.entry.js +5 -5
  298. package/lib/esm/duet-editable-table_3.entry.js +10 -10
  299. package/lib/esm/duet-empty-state.entry.js +2 -2
  300. package/lib/esm/duet-fieldset.entry.js +6 -6
  301. package/lib/esm/duet-file-chooser.entry.js +2 -2
  302. package/lib/esm/duet-footer.entry.js +4 -4
  303. package/lib/esm/duet-grid_2.entry.js +4 -4
  304. package/lib/esm/duet-header_2.entry.js +7 -6
  305. package/lib/esm/duet-hero.entry.js +4 -4
  306. package/lib/esm/duet-icon.entry.js +7 -7
  307. package/lib/esm/duet-input_2.entry.js +8 -8
  308. package/lib/esm/duet-layout.entry.js +2 -2
  309. package/lib/esm/duet-list_2.entry.js +4 -4
  310. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  311. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  312. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  313. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  314. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  315. package/lib/esm/duet-menu-bar.entry.js +3 -3
  316. package/lib/esm/duet-modal.entry.js +37 -20
  317. package/lib/esm/duet-multiselect.entry.js +5 -5
  318. package/lib/esm/duet-nav.entry.js +3 -3
  319. package/lib/esm/duet-notification_2.entry.js +5 -5
  320. package/lib/esm/duet-number-input.entry.js +14 -9
  321. package/lib/esm/duet-overlay.entry.js +2 -2
  322. package/lib/esm/duet-page-heading.entry.js +4 -4
  323. package/lib/esm/duet-pagination_2.entry.js +7 -7
  324. package/lib/esm/duet-panel.entry.js +51 -0
  325. package/lib/esm/duet-phone-input.entry.js +4 -4
  326. package/lib/esm/duet-popup-menu_2.entry.js +7 -7
  327. package/lib/esm/duet-progress.entry.js +3 -3
  328. package/lib/esm/duet-promo-card.entry.js +7 -7
  329. package/lib/esm/duet-radio_2.entry.js +7 -7
  330. package/lib/esm/duet-range-slider.entry.js +7 -7
  331. package/lib/esm/duet-scrollable_3.entry.js +17 -17
  332. package/lib/esm/duet-section-layout.entry.js +4 -4
  333. package/lib/esm/duet-select.entry.js +9 -9
  334. package/lib/esm/duet-shaped-image.entry.js +4 -4
  335. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  336. package/lib/esm/duet-share-chart.entry.js +8 -8
  337. package/lib/esm/duet-show-more.entry.js +5 -5
  338. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  339. package/lib/esm/duet-slideout-link.entry.js +7 -7
  340. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  341. package/lib/esm/duet-slideout-panel.entry.js +13 -13
  342. package/lib/esm/duet-slideout.entry.js +11 -11
  343. package/lib/esm/duet-status-icon.entry.js +3 -3
  344. package/lib/esm/duet-step_2.entry.js +6 -6
  345. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  346. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  347. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  348. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  349. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  350. package/lib/esm/duet-textarea.entry.js +8 -8
  351. package/lib/esm/duet-toggle.entry.js +6 -6
  352. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  353. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  354. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  355. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  356. package/lib/esm/duet-toolbar.entry.js +4 -4
  357. package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
  358. package/lib/esm/duet-tooltip.entry.js +4 -4
  359. package/lib/esm/duet-tray.entry.js +6 -6
  360. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  361. package/lib/esm/duet-upload-item.entry.js +6 -6
  362. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  363. package/lib/esm/duet.js +4 -4
  364. package/lib/esm/{errorcodes.utils-DM0J2eP4.js → errorcodes.utils-Bre55Njd.js} +1 -1
  365. package/lib/esm/{focus-utils-BSQKWOQJ.js → focus-utils-vvgYykmM.js} +1 -1
  366. package/lib/esm/{index-CsVaeVlH.js → index-B_VBeM3r.js} +5 -1
  367. package/lib/esm/{label-J3UGBylH.js → label-l-Eza5H3.js} +1 -1
  368. package/lib/esm/{language-utils-B79DRNQM.js → language-utils-B7PXWqpg.js} +1 -1
  369. package/lib/esm/loader.js +4 -4
  370. package/lib/esm/{slot-utils-DYWEum3Y.js → slot-utils-aDCRCdc4.js} +1 -1
  371. package/lib/esm/{themeable-component-CcmXnsoX.js → themeable-component-DPqozkF4.js} +1 -1
  372. package/lib/esm/{token-utils-orOLyKQw.js → token-utils-BGFYWQ6j.js} +76 -9
  373. package/lib/esm/{tokens.module-D5_4M8f7.js → tokens.module-Z0D6Gy9e.js} +1 -1
  374. package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
  375. package/lib/types/components/duet-number-input/duet-number-input.d.ts +3 -1
  376. package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
  377. package/lib/types/components.d.ts +111 -4
  378. package/lib/types/utils/token-utils.d.ts +4 -0
  379. package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
  380. package/package.json +3 -3
  381. package/lib/duet/p-0b358066.entry.js +0 -4
  382. package/lib/duet/p-11a4fb44.entry.js +0 -4
  383. package/lib/duet/p-24d04bd7.entry.js +0 -4
  384. package/lib/duet/p-3d904355.entry.js +0 -4
  385. package/lib/duet/p-3e42346e.entry.js +0 -4
  386. package/lib/duet/p-5c2e03bf.entry.js +0 -4
  387. package/lib/duet/p-70757ffa.entry.js +0 -4
  388. package/lib/duet/p-86669a06.entry.js +0 -4
  389. package/lib/duet/p-933da99a.entry.js +0 -4
  390. package/lib/duet/p-C4JF-vDv.js +0 -4
  391. package/lib/duet/p-DpD8uhf3.js +0 -4
  392. package/lib/duet/p-DyjhCDQL.js +0 -4
  393. package/lib/duet/p-R41sfCqP.js +0 -4
  394. package/lib/duet/p-SyNakUqS.js +0 -4
  395. package/lib/duet/p-aad8dac7.entry.js +0 -4
  396. package/lib/duet/p-abda9682.entry.js +0 -4
  397. package/lib/duet/p-d4a03e18.entry.js +0 -4
  398. package/lib/duet/p-d8b7a8da.entry.js +0 -4
  399. package/lib/duet/p-ee3ca3a8.entry.js +0 -4
  400. package/lib/duet/p-ef3083e7.entry.js +0 -4
  401. package/lib/duet/p-f237085e.entry.js +0 -4
  402. package/lib/duet/p-wJIv584C.js +0 -4
  403. package/lib/duet/p-ymqr0QD0.js +0 -4
@@ -38,15 +38,16 @@ import { DuetListLabelWidth, DuetListMobileAlignment, DuetListVariation } from "
38
38
  import { DuetLogoSize } from "./components/duet-logo/duet-logo";
39
39
  import { DuetMenuBarChangeEvent } from "./components/duet-menu-bar/duet-menu-bar";
40
40
  import { DuetModalCloseEvent, DuetModalSize, DuetModalVariation } from "./components/duet-modal/duet-modal";
41
+ import { FocusableComponent, OpenerComponent } from "./common";
41
42
  import { DuetMultiselectEvent, DuetMultiselectItem, DuetMultiselectItemGroup } from "./components/duet-multiselect/duet-multiselect";
42
43
  import { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
43
44
  import { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
44
45
  import { OverlayDisplayDevice } from "./components/duet-overlay/duet-overlay";
45
46
  import { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
47
+ import { DuetPanelVariation } from "./components/duet-panel/duet-panel";
46
48
  import { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
47
49
  import { Country } from "./data/countries";
48
50
  import { DuetPhoneInputEvent } from "./components/duet-phone-input/duet-phone-input";
49
- import { FocusableComponent, OpenerComponent } from "./common";
50
51
  import { DuetPopupMenuEvent } from "./components/duet-popup-menu/duet-popup-menu";
51
52
  import { DuetPopupMenuItemEvent } from "./components/duet-popup-menu-item/duet-popup-menu-item";
52
53
  import { DuetRadioEvent } from "./components/duet-radio/duet-radio";
@@ -103,15 +104,16 @@ export { DuetListLabelWidth, DuetListMobileAlignment, DuetListVariation } from "
103
104
  export { DuetLogoSize } from "./components/duet-logo/duet-logo";
104
105
  export { DuetMenuBarChangeEvent } from "./components/duet-menu-bar/duet-menu-bar";
105
106
  export { DuetModalCloseEvent, DuetModalSize, DuetModalVariation } from "./components/duet-modal/duet-modal";
107
+ export { FocusableComponent, OpenerComponent } from "./common";
106
108
  export { DuetMultiselectEvent, DuetMultiselectItem, DuetMultiselectItemGroup } from "./components/duet-multiselect/duet-multiselect";
107
109
  export { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
108
110
  export { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
109
111
  export { OverlayDisplayDevice } from "./components/duet-overlay/duet-overlay";
110
112
  export { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
113
+ export { DuetPanelVariation } from "./components/duet-panel/duet-panel";
111
114
  export { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
112
115
  export { Country } from "./data/countries";
113
116
  export { DuetPhoneInputEvent } from "./components/duet-phone-input/duet-phone-input";
114
- export { FocusableComponent, OpenerComponent } from "./common";
115
117
  export { DuetPopupMenuEvent } from "./components/duet-popup-menu/duet-popup-menu";
116
118
  export { DuetPopupMenuItemEvent } from "./components/duet-popup-menu-item/duet-popup-menu-item";
117
119
  export { DuetRadioEvent } from "./components/duet-radio/duet-radio";
@@ -2951,6 +2953,10 @@ export namespace Components {
2951
2953
  "theme": DuetTheme;
2952
2954
  }
2953
2955
  interface DuetModal {
2956
+ /**
2957
+ * Makes either the entire modal ("all"), headign and body content ("heading"), or just its body content ("body") an aria-live region, so that changes are announced by the screen readers. Do not use with loader variation, as it handles aria-live separately.
2958
+ */
2959
+ "accessibleAnnounceChanges": "all" | "heading" | "body";
2954
2960
  /**
2955
2961
  * Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface! Swedish translation for this property is “Stäng fönstret”.
2956
2962
  * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
@@ -3004,6 +3010,14 @@ export namespace Components {
3004
3010
  * @default ""
3005
3011
  */
3006
3012
  "color": DuetColor;
3013
+ /**
3014
+ * Set focus on the close button of the modal.
3015
+ */
3016
+ "focusCloseButton": () => Promise<void>;
3017
+ /**
3018
+ * Where to move focus when the modal is closed, either set the element dirctly with JS or give the id of the element as a string. Use empty string to disable focus moving on close - do this if after closing there is another element that automatically gets the focus or you handle focusing manually.
3019
+ */
3020
+ "focusElementOnClose": FocusableComponent | HTMLElement | string;
3007
3021
  /**
3008
3022
  * Size of the modal window's padding.
3009
3023
  * @default "medium"
@@ -3319,7 +3333,7 @@ export namespace Components {
3319
3333
  */
3320
3334
  "accessibleLabelledBy": string;
3321
3335
  /**
3322
- * Format of message used to announce current amount when switching between amounts. The string {current} is replaced with the current amount.
3336
+ * Format of message used to announce current amount when switching between amounts. Note that the default has "euros" so if you use another unit is is essential you set this attribute to reflect that unit. The string {current} is replaced with the current amount.
3323
3337
  * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
3324
3338
  */
3325
3339
  "accessibleLive": string;
@@ -3606,6 +3620,44 @@ export namespace Components {
3606
3620
  */
3607
3621
  "visibleItems": number;
3608
3622
  }
3623
+ interface DuetPanel {
3624
+ /**
3625
+ * Indicates the id of a component that describes the panel.
3626
+ */
3627
+ "accessibleDescribedBy": string;
3628
+ /**
3629
+ * Adds accessible label for the panel that is only shown for screen readers.
3630
+ */
3631
+ "accessibleLabel": string;
3632
+ /**
3633
+ * Indicates the id of a component that labels the panel.
3634
+ */
3635
+ "accessibleLabelledBy": string;
3636
+ /**
3637
+ * Set this attribute to draw a border around the panel.
3638
+ */
3639
+ "border": boolean;
3640
+ /**
3641
+ * Controls the margin of the component.
3642
+ * @default "auto"
3643
+ */
3644
+ "margin": DuetMargin;
3645
+ /**
3646
+ * Controls the padding of the component. Padding is automatically responsive.
3647
+ * @default "medium"
3648
+ */
3649
+ "padding": "small" | "medium" | "large";
3650
+ /**
3651
+ * Theme of the panel.
3652
+ * @default ""
3653
+ */
3654
+ "theme": DuetTheme;
3655
+ /**
3656
+ * The color variation of the panel. Combination of palette ("default", "accent") and palette variation ("primary", "secondary"). You can ommit "default" and "primary" - they are the defaults.
3657
+ * @default ""
3658
+ */
3659
+ "variation": DuetPanelVariation;
3660
+ }
3609
3661
  interface DuetParagraph {
3610
3662
  /**
3611
3663
  * Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
@@ -7025,6 +7077,12 @@ declare global {
7025
7077
  prototype: HTMLDuetPaginationElement;
7026
7078
  new (): HTMLDuetPaginationElement;
7027
7079
  };
7080
+ interface HTMLDuetPanelElement extends Components.DuetPanel, HTMLStencilElement {
7081
+ }
7082
+ var HTMLDuetPanelElement: {
7083
+ prototype: HTMLDuetPanelElement;
7084
+ new (): HTMLDuetPanelElement;
7085
+ };
7028
7086
  interface HTMLDuetParagraphElement extends Components.DuetParagraph, HTMLStencilElement {
7029
7087
  }
7030
7088
  var HTMLDuetParagraphElement: {
@@ -7580,6 +7638,7 @@ declare global {
7580
7638
  "duet-overlay": HTMLDuetOverlayElement;
7581
7639
  "duet-page-heading": HTMLDuetPageHeadingElement;
7582
7640
  "duet-pagination": HTMLDuetPaginationElement;
7641
+ "duet-panel": HTMLDuetPanelElement;
7583
7642
  "duet-paragraph": HTMLDuetParagraphElement;
7584
7643
  "duet-phone-input": HTMLDuetPhoneInputElement;
7585
7644
  "duet-popup-menu": HTMLDuetPopupMenuElement;
@@ -10489,6 +10548,10 @@ declare namespace LocalJSX {
10489
10548
  "theme"?: DuetTheme;
10490
10549
  }
10491
10550
  interface DuetModal {
10551
+ /**
10552
+ * Makes either the entire modal ("all"), headign and body content ("heading"), or just its body content ("body") an aria-live region, so that changes are announced by the screen readers. Do not use with loader variation, as it handles aria-live separately.
10553
+ */
10554
+ "accessibleAnnounceChanges"?: "all" | "heading" | "body";
10492
10555
  /**
10493
10556
  * Adds accessible label for the close icon that is only shown for screen readers. This property is always required to create an accessibly interface! Swedish translation for this property is “Stäng fönstret”.
10494
10557
  * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
@@ -10536,6 +10599,10 @@ declare namespace LocalJSX {
10536
10599
  * @default ""
10537
10600
  */
10538
10601
  "color"?: DuetColor;
10602
+ /**
10603
+ * Where to move focus when the modal is closed, either set the element dirctly with JS or give the id of the element as a string. Use empty string to disable focus moving on close - do this if after closing there is another element that automatically gets the focus or you handle focusing manually.
10604
+ */
10605
+ "focusElementOnClose"?: FocusableComponent | HTMLElement | string;
10539
10606
  /**
10540
10607
  * Size of the modal window's padding.
10541
10608
  * @default "medium"
@@ -10839,7 +10906,7 @@ declare namespace LocalJSX {
10839
10906
  */
10840
10907
  "accessibleLabelledBy"?: string;
10841
10908
  /**
10842
- * Format of message used to announce current amount when switching between amounts. The string {current} is replaced with the current amount.
10909
+ * Format of message used to announce current amount when switching between amounts. Note that the default has "euros" so if you use another unit is is essential you set this attribute to reflect that unit. The string {current} is replaced with the current amount.
10843
10910
  * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
10844
10911
  */
10845
10912
  "accessibleLive"?: string;
@@ -11138,6 +11205,44 @@ declare namespace LocalJSX {
11138
11205
  */
11139
11206
  "visibleItems"?: number;
11140
11207
  }
11208
+ interface DuetPanel {
11209
+ /**
11210
+ * Indicates the id of a component that describes the panel.
11211
+ */
11212
+ "accessibleDescribedBy"?: string;
11213
+ /**
11214
+ * Adds accessible label for the panel that is only shown for screen readers.
11215
+ */
11216
+ "accessibleLabel"?: string;
11217
+ /**
11218
+ * Indicates the id of a component that labels the panel.
11219
+ */
11220
+ "accessibleLabelledBy"?: string;
11221
+ /**
11222
+ * Set this attribute to draw a border around the panel.
11223
+ */
11224
+ "border"?: boolean;
11225
+ /**
11226
+ * Controls the margin of the component.
11227
+ * @default "auto"
11228
+ */
11229
+ "margin"?: DuetMargin;
11230
+ /**
11231
+ * Controls the padding of the component. Padding is automatically responsive.
11232
+ * @default "medium"
11233
+ */
11234
+ "padding"?: "small" | "medium" | "large";
11235
+ /**
11236
+ * Theme of the panel.
11237
+ * @default ""
11238
+ */
11239
+ "theme"?: DuetTheme;
11240
+ /**
11241
+ * The color variation of the panel. Combination of palette ("default", "accent") and palette variation ("primary", "secondary"). You can ommit "default" and "primary" - they are the defaults.
11242
+ * @default ""
11243
+ */
11244
+ "variation"?: DuetPanelVariation;
11245
+ }
11141
11246
  interface DuetParagraph {
11142
11247
  /**
11143
11248
  * Custom color to be used for text, as a design token entered in camelCase or kebab-case. Example: "color-primary".
@@ -13823,6 +13928,7 @@ declare namespace LocalJSX {
13823
13928
  "duet-overlay": DuetOverlay;
13824
13929
  "duet-page-heading": DuetPageHeading;
13825
13930
  "duet-pagination": DuetPagination;
13931
+ "duet-panel": DuetPanel;
13826
13932
  "duet-paragraph": DuetParagraph;
13827
13933
  "duet-phone-input": DuetPhoneInput;
13828
13934
  "duet-popup-menu": DuetPopupMenu;
@@ -13933,6 +14039,7 @@ declare module "@stencil/core" {
13933
14039
  "duet-overlay": LocalJSX.DuetOverlay & JSXBase.HTMLAttributes<HTMLDuetOverlayElement>;
13934
14040
  "duet-page-heading": LocalJSX.DuetPageHeading & JSXBase.HTMLAttributes<HTMLDuetPageHeadingElement>;
13935
14041
  "duet-pagination": LocalJSX.DuetPagination & JSXBase.HTMLAttributes<HTMLDuetPaginationElement>;
14042
+ "duet-panel": LocalJSX.DuetPanel & JSXBase.HTMLAttributes<HTMLDuetPanelElement>;
13936
14043
  "duet-paragraph": LocalJSX.DuetParagraph & JSXBase.HTMLAttributes<HTMLDuetParagraphElement>;
13937
14044
  "duet-phone-input": LocalJSX.DuetPhoneInput & JSXBase.HTMLAttributes<HTMLDuetPhoneInputElement>;
13938
14045
  "duet-popup-menu": LocalJSX.DuetPopupMenu & JSXBase.HTMLAttributes<HTMLDuetPopupMenuElement>;
@@ -5,6 +5,10 @@ export declare function capitalize(str?: string): string;
5
5
  export declare function camelize(str?: string): string;
6
6
  export declare function getTheme(theme?: DuetTheme): DuetTheme;
7
7
  export declare function capitalizeFirstLetter(string: any): any;
8
+ /**
9
+ * Add "-turva" to color names (or "Turva" to camelCase color names)
10
+ */
11
+ export declare function postfixTheme(name: string, theme: DuetTheme): string;
8
12
  export declare function getColorByName(name: string, theme?: DuetTheme): string | undefined;
9
13
  export declare function convertToColorName(name?: string, theme?: DuetTheme): string;
10
14
  export declare function getFontSizeByName(name: string): string | undefined;
@@ -0,0 +1,39 @@
1
+ declare const turva2ColorTokens: {
2
+ "color-turva2-red-00": string;
3
+ "color-turva2-red-50": string;
4
+ "color-turva2-red-100": string;
5
+ "color-turva2-red-200": string;
6
+ "color-turva2-red-300": string;
7
+ "color-turva2-red-400": string;
8
+ "color-turva2-red-500": string;
9
+ "color-turva2-red-600": string;
10
+ "color-turva2-red-700": string;
11
+ "color-turva2-red-800": string;
12
+ "color-turva2-red-900": string;
13
+ "color-turva2-red-1000": string;
14
+ "color-turva2-gray-00": string;
15
+ "color-turva2-gray-50": string;
16
+ "color-turva2-gray-100": string;
17
+ "color-turva2-gray-200": string;
18
+ "color-turva2-gray-300": string;
19
+ "color-turva2-gray-400": string;
20
+ "color-turva2-gray-500": string;
21
+ "color-turva2-gray-600": string;
22
+ "color-turva2-gray-700": string;
23
+ "color-turva2-gray-800": string;
24
+ "color-turva2-gray-900": string;
25
+ "color-turva2-gray-1000": string;
26
+ "color-turva-nude-00": string;
27
+ "color-turva-nude-50": string;
28
+ "color-turva-nude-100": string;
29
+ "color-turva-nude-200": string;
30
+ "color-turva-nude-300": string;
31
+ "color-turva-nude-400": string;
32
+ "color-turva-nude-500": string;
33
+ "color-turva-nude-600": string;
34
+ "color-turva-nude-700": string;
35
+ "color-turva-nude-800": string;
36
+ "color-turva-nude-900": string;
37
+ "color-turva-nude-1000": string;
38
+ };
39
+ export default turva2ColorTokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "10.0.0-alpha.24",
3
+ "version": "10.0.0-alpha.25",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -62,8 +62,8 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@duetds/fonts": "3.0.51",
65
- "@duetds/icons": "4.2.3",
66
- "@duetds/tokens": "4.0.104",
65
+ "@duetds/icons": "4.2.4",
66
+ "@duetds/tokens": "4.0.105",
67
67
  "@percy/cli": "1.30.1",
68
68
  "@rollup/plugin-replace": "5.0.2",
69
69
  "@stencil/core": "4.36.3",
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as a,H as o,g as t}from"./p-CsVaeVlH.js";import{i as r}from"./p-uJz71_4x.js";import{h as i,c as d}from"./p-SyNakUqS.js";import{g as n}from"./p-DyjhCDQL.js";import"./p-D5_4M8f7.js";const s=class{constructor(a){e(this,a),this.theme="",this.margin="auto",this.backgroundColor="",this.textColor="secondary",this.image="",this.headingLevel="h3"}componentWillLoad(){r(this),this.hasPreHeadingSlot=i(this.element,"pre-heading"),this.hasHeadingSlot=i(this.element,"heading"),this.hasDescriptionSlot=i(this.element,"description"),this.hasActionSlot=i(this.element,"action"),d(this.element,"heading","span"),d(this.element,"description","span")}async setFocus(e){this.url&&this.aOrDivElement&&this.aOrDivElement.focus(e)}render(){const e=n(this.backgroundColor,this.theme);return a(o,{key:"af448d11e161105c397211ff014c9383079b42f1",class:{"duet-m-0":"none"===this.margin}},a("aside",{key:"79f3ca4d55f67be99f4f7cd6e0a1ef28d64da3ba",class:{"duet-promo-card":!0,"duet-theme-turva":"turva"===this.theme,"no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:{backgroundColor:e||"none"}},a(this.url?"a":"div",{key:"6a09c556defa485766025260e084d876fcc072a3",href:this.url,class:"content-wrapper",ref:e=>this.aOrDivElement=e},a("img",{key:"9832d77d4f39e634879c2da087a81552a20aaf13",class:"image",src:this.image,alt:"",role:"presentation"}),a("div",{key:"fe2cec5d0c889557be33ac5d663a2990d56ee57c",class:"content"},this.hasPreHeadingSlot&&a("div",{key:"b105405d3236a416549ee74834214461426a5e93",class:"pre-heading"},a("slot",{key:"50359bf5424f78947cfa9bd1c25f42344822b8f1",name:"pre-heading"})),this.hasHeadingSlot&&a("div",{key:"8af70521d1e603b5fe0c44029fbfb99a8a8e89c6",class:"heading"},a("duet-heading",{key:"85e93d6d7b2e7586763646669087933692ebb4d9",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},a("span",{key:"6c606a3c8cd388df51390dd9221dd70e59705532"},a("slot",{key:"838966e5712aa10bd977fc15bd1dfe627617b5db",name:"heading"})))),this.hasDescriptionSlot&&a("div",{key:"42e9d0d08afea654e4152b83d81096313bb98c55",class:"description"},a("duet-paragraph",{key:"28008c2195cd3bad659aac6d84b5f10122c74d2d",theme:this.theme,margin:"none",color:this.textColor},a("span",{key:"52d7a34460dc56568447d7277a53391040a17134"},a("slot",{key:"baa534ae9994e67a375871a29474d3aaef8845fc",name:"description"})))),this.hasActionSlot&&a("div",{key:"46096bcff1087436a10c6e604015785d804de8ae",class:"action"},a("slot",{key:"1202289167a18bac49309d93f03e00737eebf9ff",name:"action"}))))))}get element(){return t(this)}};s.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';export{s as duet_promo_card}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as a,g as d}from"./p-CsVaeVlH.js";import{d as i,e as o}from"./p-B1B-PPrh.js";import{i as s}from"./p-uJz71_4x.js";import{a as l}from"./p-MxsWrBCY.js";import{f as r}from"./p-C4JF-vDv.js";import{a as n}from"./p-Db8rvjPI.js";import{a as m,g as u,c as h,d as p}from"./p-DglOA-oE.js";import{h as c}from"./p-SyNakUqS.js";import{T as g}from"./p-CooAqTCj.js";import"./p-C6E9F6QT.js";const b=class{constructor(a){var d,i;e(this,a),this.duetOpen=t(this,"duetOpen",7),this.duetClose=t(this,"duetClose",7),this.duetCloseComplete=t(this,"duetCloseComplete",7),this.duetBeforeClose=t(this,"duetBeforeClose",7),this.hasStickyHeader=!1,this.isAndroidDevice=(null===(i=null===(d=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===d?void 0:d.toLowerCase())||void 0===i?void 0:i.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.accessibleLoaderAnnouncementDefaults=l,this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var e;try{null===(e=null===document||void 0===document?void 0:document.activeElement)||void 0===e||e.scrollIntoViewIfNeeded(!0)}catch(e){}}),100)},this.open=!1,this.language=m(),this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,this.language),this.accessibleLoaderAnnouncement=u(this.accessibleLoaderAnnouncementDefaults,this.language),this.size="medium",this.accessibleDetails=void 0,this.accessibleDescription=void 0,this.variation="default",this.gutterSize="medium",this.theme="",this.heading="",this.headingLevel="h3",this.icon="",this.color="",this.active=!1,this.closeOnBlur=!1}openChanged(){this.open?(this.modalEl&&this.modalEl.scrollTop&&(this.modalEl.scrollTop=0),this.focusedElBeforeOpen=document.activeElement,i("slide-up"===this.variation?this.modalContentEl:this.modalEl,{reserveScrollBarGap:!0}),this.teleport.makeSiblingsInert(),this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.remove())),setTimeout((()=>{"loader"===this.variation?this.addMessage(this.accessibleLoaderAnnouncement,!1):this.isAndroidDevice?this.modalEl.focus():this.buttonEl.setFocus()}),600),setTimeout((()=>{this.modalEl.classList.add("duet-disable-transitions")}),800),this.isAndroidDevice&&window.addEventListener("resize",this.handleAndroidResizeEvents),this.duetOpen.emit()):(this.modalEl.classList.remove("duet-disable-transitions"),this.modalEl.addEventListener("transitionend",(()=>this.duetCloseComplete.emit()),{once:!0}),o("slide-up"===this.variation?this.modalContentEl:this.modalEl),this.duetClose.emit(),this.teleport.removeInertFromSiblings(),setTimeout((()=>{r(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}activeChanged(){this.open=this.active}componentWillLoad(){this.hasStickyHeader=c(this.element,"sticky-header"),s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){this.teleport||(this.teleport=new g(this.element)),this.teleport.isActive?(this.teleport.observeDeletion(),h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])):this.teleport.activate()}disconnectedCallback(){p(this),this.modalEl&&o(this.modalEl)}handleKeyUp(e){this.open&&n(e)&&this.closeModal(e)}async show(){this.open=!0}async hide(){this.open=!1}async scrollToTop(e=!0){var t;const a=e?"smooth":"auto";if("slide-up"===this.variation){const e=(null===(t=this.modalEl.querySelector(".duet-modal-sticky-header"))||void 0===t?void 0:t.clientHeight)||0,d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+d.value}px`,this.slotContainerEl.scrollIntoView({behavior:a})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}async addMessage(e,t=!0){const a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e,a.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),a.classList.add("show")}),10),this.slotContainerEl.appendChild(a)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let d="primary",i="secondary";const o=a("div",{key:"16ecdebdff260207b978a3c14686bb27f99369bc",class:"duet-modal-close"},a("duet-button",{key:"832185b0eb84406145281ec31a310cba640f42db",ref:e=>this.buttonEl=e,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:i,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:e=>this.closeModal(e),fixed:!0}));return"turva"===this.theme&&(d="primary-turva",i="secondary-turva"),a("div",{key:"ff98af4d04d36b5967954bae9fad52d8a3c92af1",ref:e=>this.modalEl=e,"aria-label":null!==(e=this.accessibleLabel)&&void 0!==e?e:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"loader"===this.variation?"alert":"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1",class:{"duet-modal-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open,"duet-modal-slide-up":"slide-up"===this.variation,"duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"f5b45235e96cfe9afc7e698f58758f3889c3fd18","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"8e01ae356b01d920b2dc99fb9012d0b36e1160c2",ref:e=>this.modalInnerEl=e,class:{"duet-modal-inner":!0,[this.size]:!0,"duet-modal-slide-up":"slide-up"===this.variation},onClick:e=>{this.closeOnBlur&&(e.target||e.srcElement)===this.modalInnerEl&&this.closeModal(e)}},a("div",{key:"4b67fe5599c29429e2e43d2fa3ec1e4bb2362f5a",ref:e=>this.modalContentEl=e,class:{"duet-modal":!0,"duet-modal-has-sticky-header":this.hasStickyHeader,[this.size]:!0,[this.variation]:!0}},"none"!==this.gutterSize&&!this.hasStickyHeader&&a("duet-spacer",{key:"1fc3a1a23142493d5a384fcd1dfbc5e0cb471de4"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"2f216eb1c8db56490a684203edfdb93bcfd736c7",class:{"duet-modal-body":!0,"duet-modal-gutter-none":"none"===this.gutterSize,"duet-modal-gutter-small":"small"===this.gutterSize,"duet-modal-gutter-medium":"medium"===this.gutterSize,"duet-modal-gutter-large":"large"===this.gutterSize}},a("div",{key:"e727afc6bd9c81124f632929b840cc0beaac6537",class:"duet-modal-header"},a("span",{key:"8a55cf9f79f46df6f7d15961f7d1300cc42fe345",class:"duet-modal-inner-slot-top"},a("slot",{key:"c79cbee03e0bce0b44b4d816b5c4d02b05605a10",name:"top"})),this.icon&&a("duet-icon",{key:"278d6e8d84de7394267291e0fb294c577e7be718",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"fad28910b603089cfd9f3bf4fb1e9dc4df6a4d6a","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&a("div",{key:"67d1778db551a40565263f39968e8a7f3e3d148d",class:"duet-modal-spinner"},a("duet-spinner",{key:"71fddb78ad12e0ce90c14a725ac017431bf8864a",size:"large",color:"primary"})),a("div",{key:"e0a601e11fa6761658d6f74af02a509b835e6f37",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"a0ef6dab10ebc813443950cbb369303fd2b305a4"}))))))}get element(){return d(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;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:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';export{b as duet_modal}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as o,H as i,g as a}from"./p-CsVaeVlH.js";import{D as r}from"./p-DpD8uhf3.js";import{i as s}from"./p-uJz71_4x.js";import{c as l}from"./p-Cfr_DJqU.js";import{c as n,p as d}from"./p-SyNakUqS.js";import{p as c}from"./p-C6E9F6QT.js";function p(e){return"options"in e}function h(e,t){for(var o=0;o<e.length;o++){let i=e[o];if(p(i)&&(i=h(i.options,t)),i&&i.value===t)return i}}const u=class{constructor(o){e(this,o),this.duetChange=t(this,"duetChange",3),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.selectId=l("DuetSelect"),this.errorId=l("DuetError"),this.labelId=l("DuetLabel"),this.topCaptionId=l("DuetCaptionTop"),this.topCaptionPlaceholderId=l("DuetCaptionPlaceholderTop"),this.proxyId=l("DuetSelect"),this.processedItems=null,this.variation="default",this.margin="auto",this.error="",this.accessibleLiveError="polite",this.expand=!1,this.theme="",this.labelHidden=!1,this.placeholder="",this.echoPlaceholder=!1,this.disabled=!1,this.required=!1,this.label="label",this.tooltip="",this.tooltipDirection="auto",this.onClick=e=>{e.stopPropagation()},this.onChange=()=>{this.value=this.nativeSelect.value,this.duetChange.emit({value:this.value,component:"duet-select"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,value:this.value,component:"duet-select"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,value:this.value,component:"duet-select"})},this.getDescribedBy=()=>{const e=[];return this.isCaptionVisible&&this.topCaptionId&&e.push(this.topCaptionId),this.accessibleDescribedBy&&e.push(this.accessibleDescribedBy),this.error&&e.push(this.errorId),e.length>0?e.join(" "):null}}valueChanged(){this.nativeSelect&&(this.nativeSelect.value=this.value),this.isCaptionVisible=!!this.caption}componentWillLoad(){s(this),this.isCaptionVisible=!!this.caption,n(this.element,"tooltip","duet-tooltip",1,!0),this.refresh()}componentDidRender(){d(this.element,this.proxyId,this.name,this.value,this.required,void 0)}async setFocus(e){this.nativeSelect&&this.nativeSelect.focus(e)}async refresh(){this.processedItems=c(this.items)}getSelectedItemLabel(){let e;return this.processedItems&&(e=h(this.processedItems,this.value)),e?e.label:this.placeholder||""}renderOption(e){return o("option",{"aria-label":e.ariaLabel,value:e.value,key:e.value,selected:this.value===e.value,disabled:e.disabled},e.label)}renderOptionGroup(e){return o("optgroup",{key:e.label,label:e.label,disabled:e.disabled},e.options.map((e=>this.renderOption(e))))}render(){const e=this.identifier||this.selectId;return o(i,{key:"9d54c9dfad694be3d7e6399d5afc1b1432c1f5dc",onClick:this.onClick,class:{"duet-m-0":"none"===this.margin,"duet-expand":this.expand,[`duet-select-variation-${this.variation}`]:!0}},o("div",{key:"cacd80da0eaeaef2fd6f0e08caec3a39cd273294",class:{"duet-select-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme,[`duet-select-variation-${this.variation}`]:!0,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},o(r,{key:"be880bfbaabc9d88b6b31b921af37f6706f32cd8",theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:e},this.label),this.tooltip&&o("duet-tooltip",{key:"3100b161cfd533403f8a67c305a03e2dc8ea00c5",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),o("slot",{key:"52ab80f0f605fa9711d84f0f26d4325dad7c64cf",name:"tooltip"}),this.caption&&o("duet-caption",{key:"4931ec0414f6cd9716904f1c00d00b02d1550813",id:this.topCaptionId,size:"medium"},this.caption),o("div",{key:"fb713046983da9a542a6aa1c3ad6080c3522a820",class:"duet-select-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&o("duet-caption",{key:"a2b3614b6e03359cecd0167f980c5b48de7cc7b0",id:this.topCaptionPlaceholderId,class:"duet-select-placeholder",size:"small"},this.placeholder),o("slot",{key:"50070cedd7b6049e93093cca483a47183c77bae5"}),o("select",{key:"4f53bcd8e5f889ddac92f9815364e1b25521da46",ref:e=>this.nativeSelect=e,disabled:this.disabled,name:this.name,id:e,role:this.role,"aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,required:this.required},this.placeholder&&o("option",{key:"999f6c43aec61a8c2df743c70444555ae2304e2d",disabled:!0,selected:!0,value:""},this.placeholder),this.processedItems?this.processedItems.map((e=>p(e)?this.renderOptionGroup(e):this.renderOption(e))):o("option",null,"Virhe valintoja ladattaessa. Päivitä sivu ja kokeile uusiksi.")),o("div",{key:"78450970b7a3b2f57640bd8b7eec994076ca1a4c",class:{"duet-select":!0,[`duet-select-variation-${this.variation}`]:!0},"aria-hidden":"true"},o("span",{key:this.value,class:"duet-select-selected-value"},this.getSelectedItemLabel()),"default"===this.variation&&o("svg",{key:"8e2392a51be92391a7dd207ebe0ec2325a8cb194",role:"img",class:"duet-select-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"43c899cb0891bf42e3ebb7cebbb6000690d0d93e",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))||o("duet-icon",{key:"da2b9d8166a8b626b546ee41ac6e10e1473c75b5",theme:this.theme,name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"compact"===this.variation?"xxx-small":"xx-small"})),o("span",{key:"01000fd324d80c490a48f74c1ff2abf87db9f179",class:"duet-keep-container-height",role:"presention","aria-hidden":"true"},"_")),o("span",{key:"199a372ef44043d9d44121109013dca701942bdd",class:"duet-select-help",id:this.errorId,"aria-live":this.accessibleLiveError,"aria-atomic":"true","aria-relevant":"additions removals"},this.error&&o("span",{key:"2d14eea7bc7db58eacc761e52eb098d52f8cfdef"},this.error))))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"],items:["refresh"]}}};u.style='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;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 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(:not(.duet-m-0)){margin-right:16px !important;margin-bottom:12px !important}:host(:not(.duet-m-0)):last-child,:host(:not(.duet-m-0)):last-of-type{margin-right:0 !important}@media (min-width: 36em){:host(.duet-expand){width:100% !important}}:host(.duet-select-variation-tiny),:host(.duet-select-variation-compact){position:relative;top:-2px;width:72px;margin:0;vertical-align:baseline}:host(.duet-select-variation-compact){width:auto}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-select-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-select-container{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny{width:72px}.duet-select-wrapper{position:relative;width:100%;padding:15px 14px !important;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;line-height:1.25}.duet-theme-turva .duet-select-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-variation-tiny .duet-select-wrapper{width:81px;padding:0 !important}.duet-select-variation-compact .duet-select-wrapper{padding:0 !important;line-height:1}.duet-select-wrapper select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;margin:0;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;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva .duet-select-wrapper select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-wrapper select:hover+.duet-select{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select:focus+.duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(23, 28, 58)}.duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(0, 119, 179)}.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select[disabled]{cursor:default !important}.duet-select-wrapper select[disabled]+.duet-select{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-select-wrapper select[disabled]+.duet-select{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-select-wrapper span.duet-keep-container-height{opacity:0}.duet-select-variation-compact .duet-select-wrapper span.duet-keep-container-height{display:none}.duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !important;overflow:hidden;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;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.duet-select svg{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-select svg{color:rgb(23, 28, 58)}.duet-select-variation-tiny .duet-select,.duet-select-variation-compact .duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny .duet-select duet-icon,.duet-select-variation-compact .duet-select duet-icon{padding-left:10px}.duet-select-variation-compact .duet-select{position:relative;width:fit-content;padding:7px 16px !important;font-size:0.875rem;line-height:1.1;text-align:right;border-radius:8px}.duet-select-help{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:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-select-help span{display:block;margin-top:8px}.duet-theme-turva .duet-select-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-select-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-select-help{color:rgb(214, 28, 82)}.duet-label-hidden .duet-internal-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:#7891a4}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select[disabled]+.duet-select{color:#172a3b !important;background:#f5f6f7 !important;border-color:#f5f6f7 !important;-webkit-text-fill-color:#172a3b !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-select{color:#172a3b;border-color:#7891a4}:host(.duet-theme-turva2) .duet-theme-turva .duet-select svg{color:#172a3b}';export{u as duet_select}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as o,H as u,g as n}from"./p-CsVaeVlH.js";import{i as r}from"./p-uJz71_4x.js";import{D as d,b as i}from"./p-MxsWrBCY.js";import{a,g as b,c as s,d as l}from"./p-DglOA-oE.js";import{g as h}from"./p-DyjhCDQL.js";import"./p-C6E9F6QT.js";import"./p-D5_4M8f7.js";const p=class{constructor(o){t(this,o),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.accessiblePopup="false",this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.loading=!1,this.variation="default",this.negative=!1,this.theme="",this.margin="auto",this.padding="auto",this.centerText=!1,this.wrapping="auto",this.expand=!1,this.fixed=!1,this.disabled=!1,this.submit=!1,this.external=!1,this.language=a(),this.accessibleLabelExternalDefaults=d,this.accessibleLabelExternal=b(this.accessibleLabelExternalDefaults),this.accessibleLabelLoadingDefaults=i,this.accessibleLabelLoading=b(this.accessibleLabelLoadingDefaults),this.icon="",this.color="",this.iconRight=!1,this.iconSize="medium",this.size="medium",this.iconOnly=!1,this.proxyButtonSetUp=()=>{const t=this.element.querySelector("button[slot=proxybutton]"),e=t||document.createElement("button");if(this.url)return t&&t.remove(),void(this.proxyButton=null);e.setAttribute("slot","proxybutton"),e.style.display="none",e.type=this.getButtonType(),e.disabled=this.disabled,e.setAttribute("form",this.form),this.form||e.removeAttribute("form"),null!=this.name?e.name=this.name:e.removeAttribute("name"),null!=this.value?e.value=this.value:e.removeAttribute("value"),t||this.element.appendChild(e),this.proxyButton=e},this.handleClick=t=>{this.submit&&!this.url&&(this.element.closest("form")||this.form)&&(t.stopPropagation(),t.preventDefault(),this.proxyButton.click())},this.onFocus=()=>{this.duetFocus.emit()},this.onBlur=()=>{this.duetBlur.emit()}}componentWillLoad(){r(this),this.url&&this.external&&this.icon&&console.warn("[DUET]: Button used as an external link will override any icon that is set")}connectedCallback(){s(this,[{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"},{prop:"accessibleLabelLoading",defaults:"accessibleLabelLoadingDefaults"}])}disconnectedCallback(){l(this)}componentDidRender(){!1===this.disabled&&this.element.removeAttribute("disabled"),this.submit&&this.proxyButtonSetUp()}getButtonType(){return this.submit?"submit":"button"}getButtonIconSize(){switch(this.iconSize){case"small":return"small";case"medium-small":return"medium-small";case"medium":default:return"medium";case"large":return"large"}}async setFocus(t){this.nativeButton&&this.nativeButton.focus(t)}render(){var t,e;const n=this.external&&this.url,r=n?"action-new-window":this.icon,d=!!n||this.iconRight,i=o("span",{key:"dad881c4e315cee7e2fa16020ab44f3b8518ce8b",class:{"duet-button-contents":!0,"icon-right":d},style:{color:h(this.color)}},r&&o("span",{key:"08d196d1bc190ccb57d8f4961a78e1999f69a6f1","aria-hidden":"true",class:{"duet-button-icon":!0,left:!d,right:d,[this.getButtonIconSize()]:!0}},o("duet-icon",{key:"24ffeda883152bfe0123a828ed037aa7bdf365aa",size:"auto",margin:"none",name:r,color:"currentColor"})),o("span",{key:"60cbc950fc893b105e13e98769341697d3065e87",class:"duet-button-contents-slot"},o("slot",{key:"236c0748e32a96046fe4bf1c79b6822ebf5c0b9d"}))),a="medium"==this.size||"small"==this.size||"x-small"==this.size?this.size:"medium",b={onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.nativeButton=t,id:this.identifier,class:{"duet-m-0":"none"===this.margin,"duet-p-0":"none"===this.padding,"duet-no-wrap":"none"===this.wrapping,"duet-button":!0,"duet-button-is-small":"small"===this.size,[`duet-button-size-${a}`]:!0,"duet-button-icon-only":this.iconOnly,"duet-button-text-center":this.centerText,"duet-button-negative":this.negative||"negative"===this.variation,[this.variation]:!0,"input-button":null===(t=this.variation)||void 0===t?void 0:t.startsWith("input-button"),disabled:this.disabled,icon:!!r,"icon-right":d,"icon-left":!!r&&!d,[this.getButtonIconSize()]:!0},"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription};return o(u,{key:"2f71565d21679c2161cbebaa8b3bfaa7aa4183a0",class:{"duet-m-0":"none"===this.margin,"duet-small":"small"===this.size,"duet-x-small":"x-small"===this.size,"duet-fixed":this.fixed,"duet-expand":this.expand,[this.variation]:!0,"input-button":null===(e=this.variation)||void 0===e?void 0:e.startsWith("input-button")}},o("span",{key:"2a2d449975f67608f602eaca489e4ff865496ed8",onClick:this.handleClick,class:{"duet-button-container":!0,"duet-button-is-loading":this.loading,"duet-theme-turva":"turva"===this.theme,"duet-button-negative":this.negative||"negative"===this.variation,[this.variation]:!0}},this.url?o("a",Object.assign({},b,{href:this.url,target:this.external?"_blank":"_self",rel:this.external?"noopener":void 0}),i,this.external&&o("duet-visually-hidden",null,", ",this.accessibleLabelExternal)):o("button",Object.assign({},b,{type:this.getButtonType(),disabled:this.disabled,name:this.name,value:this.value,"aria-pressed":null!=this.accessiblePressed?this.accessiblePressed.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0,"aria-disabled":this.disabled}),i,this.loading&&o("duet-visually-hidden",null," ",this.accessibleLabelLoading," ")),this.loading&&o("duet-spinner",{key:"e27fdd855b9191cdd22c9b74746f3144890d3837",color:"currentColor"})),o("slot",{key:"5f1fec755bfdf56ed261b893fa647308c1e21a7f",name:"proxybutton"}))}get element(){return n(this)}};p.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;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:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, outline 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:12.5px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:18px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:18px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:10px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:14px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:14px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-theme-turva .duet-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48) !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-button.default{color:rgb(198, 12, 48) !important;border-color:rgb(222, 224, 228)}.duet-button.default:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179);outline-offset:-2px}.duet-theme-turva .duet-button.default:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(222, 224, 228) !important}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(126, 2, 35);border-color:rgb(126, 2, 35)}.duet-button.primary:focus,.duet-button.input-button-primary:focus,.duet-button.input-button-left-primary:focus{outline:0;box-shadow:0 0 0 1px #fff, 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus,.duet-theme-turva .duet-button.input-button-primary:focus,.duet-theme-turva .duet-button.input-button-left-primary:focus{box-shadow:0 0 0 1px #fff, 0 0 0 4px rgba(23, 28, 58, 0.75)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 28, 58) !important;border-color:rgb(23, 28, 58)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(222, 224, 228) !important}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.negative{color:rgb(23, 28, 58) !important}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px #00294d, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px #0077b3, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:rgb(198, 12, 48) !important;background:transparent;border-color:transparent}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;cursor:not-allowed;background:transparent !important;border-color:rgb(222, 224, 228) !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(126, 2, 35) !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-theme-turva .duet-button.square{border-color:rgb(222, 224, 228)}.duet-button.square:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179);outline-offset:-2px}.duet-theme-turva .duet-button.square:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(143, 147, 158) !important;cursor:not-allowed;background:rgb(222, 224, 228) !important;border-color:rgb(222, 224, 228) !important;outline-color:rgb(222, 224, 228) !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading.default.duet-theme-turva{color:rgb(198, 12, 48)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default{color:#e61740 !important;border-color:#fbe1d1}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default:hover{border-color:#e61740;outline-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default.duet-button-negative{background-color:#fbe1d1 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.default.duet-button-negative:hover{color:#e61740 !important;border-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.primary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-primary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-primary{background:#e61740;border-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded{color:#172a3b !important;border-color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded:hover{color:#e61740 !important;border-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary.duet-button-negative,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:#fbe1d1 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.secondary.duet-button-negative:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,:host(.duet-theme-turva2) .duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:#e61740 !important;border-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.negative{color:#172a3b !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain{color:#e61740 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain:hover{color:rgba(255, 255, 255, 0.8) !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.plain[disabled]{border-color:#fbe1d1 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square{border-color:#fbe1d1}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square.duet-button-negative{background:#e61740;border-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button.square:hover{border-color:#e61740;outline-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-button-is-loading.default{color:#e61740}';const m=class{constructor(e){t(this,e),this.color="gray-lightest",this.size="small",this.theme=""}componentWillLoad(){r(this)}render(){const t="currentColor"===this.color?"currentColor":h(this.color);return o(u,{key:"1e4de3df57809d0616aee4eba0932615753f160a",class:{"duet-custom-color":"currentColor"!==this.color&&"turva"!==this.theme&&"default"!==this.theme,"duet-theme-turva":"turva"===this.theme&&"currentColor"!==this.color,"duet-theme-default":"default"===this.theme&&"currentColor"!==this.color}},o("div",{key:"b049994ffa0f8e2ef99f19d5730a9b7c961c7c23",class:{"duet-spinner":!0,[this.size]:!0},style:{color:t},"aria-label":this.accessibleLabel}))}get element(){return n(this)}};m.style=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;top:50%;left:50%;z-index:800;max-width:100%}:host(.duet-theme-default) .duet-spinner{color:rgb(0, 119, 179) !important}:host(.duet-theme-turva) .duet-spinner{color:rgb(198, 12, 48) !important}:host(.duet-custom-color){color:inherit}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-spinner{-webkit-user-select:none;user-select:none;position:absolute;top:50%;left:50%;z-index:800;width:24px;height:24px;color:rgb(0, 119, 179);border:2px solid transparent;border-left:2px solid currentColor;border-radius:50%;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%;animation:duetRotate 0.6s linear infinite}.duet-spinner::after{position:absolute;top:50%;left:50%;z-index:200;box-sizing:content-box;width:100%;height:100%;overflow:hidden;content:"";border:2px solid currentColor;border-radius:50%;opacity:0.3;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%}.duet-spinner.medium{width:36px;height:36px;border-width:4px}.duet-spinner.medium::after{border-width:4px}.duet-spinner.large{width:72px;height:72px;border-width:8px}.duet-spinner.large::after{border-width:8px}@keyframes duetRotate{0%{transform:translateZ(0) rotate(0deg) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}:host(.duet-theme-turva2) .duet-spinner{color:#e61740 !important}';export{p as duet_button,m as duet_spinner}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as s,H as i,g as n}from"./p-CsVaeVlH.js";import{g as a}from"./p-DvwKrUS6.js";import{i as u}from"./p-uJz71_4x.js";import{c as r}from"./p-Cfr_DJqU.js";import{f as o,e as h,g as l,d,o as b,s as c,u as p}from"./p-Db8rvjPI.js";import{a as m,b as f,g,c as v,d as x}from"./p-DglOA-oE.js";import{c as y,p as w}from"./p-SyNakUqS.js";import"./p-C6E9F6QT.js";var k,A,D,N,S=a(A?k:(A=1,k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'})),C=a(N?D:(N=1,D={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'}));function E(t,e){let s;if("string"==typeof t){if(""===t)return null;let i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");e&&(i=function(t,e,s=!1){let i;const n=new Intl.NumberFormat(e).format(.5).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),u=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),r=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return i=t.replace(n,"DECIMALSEPARATOR"),i=i.replace(u,s?"THOUSANDSEPARATOR":""),i=i.replace("DECIMALSEPARATOR",a),i=i.replace("THOUSANDSEPARATOR",r),i}(i,e,!1)),i=i.replace(/\s+/g,""),s=parseFloat(i)}if("number"==typeof t&&(s=parseFloat(String(t))),!isNaN(Number(s)))return Number(s);if(null==t)return null;throw new Error("Invalid value passed to SafeParseFloat")}const z=(t,e,s)=>Math.min(Math.max(t,e),s),I=class{constructor(s){t(this,s),this.duetChange=e(this,"duetChange",3),this.duetInput=e(this,"duetInput",3),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=r("DuetInput"),this.proxyId=r("DuetInput"),this.language=m(),this.locale=f(this.language).locale,this.unit=f(this.language).money,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"},this.accessibleLive=g(this.accessibleLiveDefaults,this.language),this.accessibleLiveEnabled=!0,this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"},this.accessibleAdd=g(this.accessibleAddDefaults,this.language),this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"},this.accessibleSubtract=g(this.accessibleSubtractDefaults,this.language),this.theme="",this.margin="auto",this.expand=!1,this.min=0,this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"},this.label=g(this.labelDefaults,this.language),this.labelHidden=!1,this.max=1e6,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.disabled=!1,this.required=!1,this.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{o(t)||h(t)?this.add(t):l(t)||d(t)?this.subtract(t):b(t)&&this.clearValue(t)},this.handleChange=t=>{t.stopPropagation();const e=t.target;if(e&&e.value)try{let s=E(e.value,this.locale);(isNaN(s)||null==s)&&(s=this.min||0),this.setValue(s),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:E(this.value,this.locale).toString(),valueAsNumber:s})}catch(s){"-"!==e.value&&this.clearValue(t),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}else this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})},this.handleBlur=t=>{const e=t.target;var s;if(e)if(e.value)try{let i=E(e.value,this.locale);this.rounding&&(s=this.step,i=Math.round(i/s)*s),i=z(i,this.min,this.max),i===E(this.value,this.locale)&&i===E(this.focusedValue,this.locale)||(this.setValue(i),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=E(this.value,this.locale);this.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})},this.emitNull=t=>{this.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})},this.localizeValue=t=>t.toLocaleString(this.locale,{useGrouping:!1}),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value} ${this.unit}`},this.add=t=>{t&&t.preventDefault();const e=E(this.value,this.locale);if(e===this.max)return;let s=null==e?this.min:e+this.step;s%this.step!=0&&(s-=s%this.step);const i=z(s,this.min,this.max);this.value=this.localizeValue(i),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=E(this.value,this.locale);if(e===this.min)return;let s=e-this.step;s%this.step!=0&&(s+=this.step-s%this.step),s=z(s,this.min,this.max),this.value=this.localizeValue(s),this.emitChange(t)}}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(E(this.value,this.locale))),y(this.element,"tooltip","duet-tooltip",1,!0)}connectedCallback(){v(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]),c(this)}disconnectedCallback(){x(this),p(this)}componentDidRender(){w(this.element,this.proxyId,this.name,this.value?`${this.value} ${this.unit}`:"",this.required)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=E(this.value,this.locale);return null==this.value||isNaN(t)?null:t}clearValue(t){this.duetInputElement.value="",null!==this.value&&(this.value=null,this.emitNull(t))}formatAnnouncement(){const t=this.value?E(this.value,this.locale):null;return null==t?"":this.accessibleLive.replace("{current}",t.toString(10))}render(){const t=this.identifier||this.inputId,e=`${this.localizeValue(this.max)} ${this.unit}`.length,n=this.value?E(this.value,this.locale):null;return s(i,{key:"49a555df21c951b795e625c4799ecb5419fc474e",class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},s("div",{key:"95905465685b005ca2589d1934c237473fac78a7",class:"duet-number-container"},s("duet-input",{key:"6bac3f4ba516dd43f2681d21fcd530d35c772cb5",ref:t=>this.duetInputElement=t,onDuetChange:t=>this.handleChange(t),onDuetFocus:this.handleFocus,onDuetBlur:t=>this.handleBlur(t),onKeyDown:t=>this.handleKeyDown(t),label:this.label,value:this.value?`${this.value} ${this.unit}`:"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":null!=n?n:"",maxlength:e,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:t,theme:this.theme,margin:"none",expand:!0,numericKeyboard:!0,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},s("slot",{key:"52a0896ccb3fd7c716625da4c8de5f2f09622a1c",name:"tooltip"}),s("div",{key:"af1c978396037b1e1e5d8d0d0e8c25904d519098",class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},s("button",{key:"b0bc1e76994b2c22b70a259962adac524b1ca5eb",disabled:this.disabled,"aria-disabled":null==n||n===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},s("duet-visually-hidden",{key:"c6c374074fe1e74907374d89cba0679bf9f5189d"},this.accessibleSubtract," ",this.step),s("duet-icon",{key:"135624fed93bbe112fecdd3b46d95aaf5f416b64",icon:C.svg,size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),s("button",{key:"c65086cc05992d5120765da78e2eac86183e5630",disabled:this.disabled,"aria-disabled":n===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},s("duet-visually-hidden",{key:"7f025ffd2816298087614a7d449739631d0ff9c6"},this.accessibleAdd," ",this.step),s("duet-icon",{key:"f232ce3d5c1ad08b350d02b5c65bd21ec7dcf9c5",icon:S.svg,size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&s("duet-visually-hidden",{key:"03a758593f10d9c55307c3622b8a68b14c720f97","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};I.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{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;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(178, 194, 205, 0.2) 0%, rgba(178, 194, 205, 0.2) 1px, rgba(178, 194, 205, 0.1) 1px, rgba(178, 194, 205, 0) 100%)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:last-of-type::before{background:#d4dde2}';export{I as duet_number_input}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,g as a}from"./p-CsVaeVlH.js";import{i as s}from"./p-uJz71_4x.js";import{g as i}from"./p-DglOA-oE.js";import{g as n}from"./p-ymqr0QD0.js";import"./p-C6E9F6QT.js";const o=class{constructor(t){e(this,t),this.theme="",this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},this.onLinkClick=e=>{const{url:t,meta:a}=this.data;this.linkClickEvent&&(e.preventDefault(),this.linkClickEvent.emit({component:"duet-upload",data:{name:this.data.item.name,url:t,meta:a}}))}}componentWillLoad(){s(this)}async focusActionButton(){this.actionButton&&(await this.actionButton.setFocus({preventScroll:!0}),this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))}getFileNameLine(){const{item:e,size:a,uploaded:s,url:o,progress:r,error:l}=this.data,{name:c}=e,d=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),c),m=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((e,t=2)=>{if(0===e)return"0 Bytes";const a=t<0?0:t,s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][s]})(a),")");switch(this.type){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),c),t("duet-visually-hidden",null,t("duet-paragraph",null,i(this.fileUploadingInfo))),t("duet-progress",{theme:this.theme,progress:Math.ceil(r),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),c);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),c),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},n(l.type,this.errorCodes)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},s&&o&&this.showLinks?t("duet-link",{class:"file-link",onClick:this.onLinkClick,url:o},d):d,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),m)}}getActionButtonTitle(e){return!0===this.buttonTitles[e.name]||!1===this.buttonTitles[e.name]?e:i(this.buttonTitles[e.name])}render(){const{uid:e,meta:a,item:s}=this.data,n=a&&a.badges?t("span",null,a.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,o=`${a&&a.badges?a.badges.join(","):""} ${s.name}`;return t("div",{key:"0f541bd5eab133034ce730ccd2393e4a32fa0f04",class:{"upload-item-row":!0}},this.showCategory&&t("div",{key:"1453c4a57897f79ff16c394e364a49bec0564c01",class:"item-categories"},t("duet-heading",{key:"70abc60205d0a1762ab1bb0e280dffa8e6cc6771",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.categoryLabel)),n),t("div",{key:"4fbfc73b03cea70267c423440d34ab1a356fb14a",class:{"item-name":!0,"no-category":!this.showCategory}},!!this.label&&t("duet-heading",{key:"76e07f77e629200029052bbb394a40602f7b8ce0",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.label)),this.getFileNameLine()),t("div",{key:"97be35ab3df99a8ad62fb85e605fc39f378c8e0c",class:"item-actions"},this.actions.map((s=>t("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:e||null,actionName:s.name,theme:this.theme,iconName:s.icon,iconColor:s.color,iconSize:s.size,background:s.background,"accessible-label":`${o} ${i(s.label)} `,accessibleTitle:this.getActionButtonTitle(s),ref:e=>this.actionButton=e})))))}get element(){return a(this)}};o.style=".file-link::part(duet-link){text-decoration:none}";export{o as duet_upload_item}