@duetds/components 6.0.3 → 6.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/hydrate/index.js +46 -38
  2. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
  8. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  10. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-editable-table_3.cjs.entry.js +17 -14
  18. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  23. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  25. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  42. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  44. package/lib/cjs/duet.cjs.js +1 -1
  45. package/lib/cjs/{focus-utils-15207057.js → focus-utils-8a615003.js} +1 -1
  46. package/lib/cjs/{index-28a9133b.js → index-d106d801.js} +1 -1
  47. package/lib/cjs/loader.cjs.js +1 -1
  48. package/lib/cjs/{token-utils-fef5b4eb.js → token-utils-f6e2f4ef.js} +1 -1
  49. package/lib/cjs/{tokens-29450bcb.js → tokens-4c69b122.js} +18 -15
  50. package/lib/cjs/{tokens.module-ef598645.js → tokens.module-1bb2d45e.js} +12 -10
  51. package/lib/collection/components/duet-choice-group/duet-choice-group.js +1 -1
  52. package/lib/collection/components/duet-upload/duet-upload.js +18 -15
  53. package/lib/dist-custom-elements/duet-action-button.d.ts +11 -0
  54. package/lib/dist-custom-elements/duet-action-button.js +9 -0
  55. package/lib/dist-custom-elements/duet-alert.d.ts +11 -0
  56. package/lib/dist-custom-elements/duet-alert.js +9 -0
  57. package/lib/dist-custom-elements/duet-badge.d.ts +11 -0
  58. package/lib/dist-custom-elements/duet-badge.js +9 -0
  59. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +11 -0
  60. package/lib/dist-custom-elements/duet-breadcrumb.js +73 -0
  61. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +11 -0
  62. package/lib/dist-custom-elements/duet-breadcrumbs.js +90 -0
  63. package/lib/dist-custom-elements/duet-button.d.ts +11 -0
  64. package/lib/dist-custom-elements/duet-button.js +9 -0
  65. package/lib/dist-custom-elements/duet-caption.d.ts +11 -0
  66. package/lib/dist-custom-elements/duet-caption.js +9 -0
  67. package/lib/dist-custom-elements/duet-card.d.ts +11 -0
  68. package/lib/dist-custom-elements/duet-card.js +190 -0
  69. package/lib/dist-custom-elements/duet-checkbox.d.ts +11 -0
  70. package/lib/dist-custom-elements/duet-checkbox.js +163 -0
  71. package/lib/dist-custom-elements/duet-choice-group.d.ts +11 -0
  72. package/lib/dist-custom-elements/duet-choice-group.js +226 -0
  73. package/lib/dist-custom-elements/duet-choice.d.ts +11 -0
  74. package/lib/dist-custom-elements/duet-choice.js +390 -0
  75. package/lib/dist-custom-elements/duet-collapsible.d.ts +11 -0
  76. package/lib/dist-custom-elements/duet-collapsible.js +170 -0
  77. package/lib/dist-custom-elements/duet-combobox.d.ts +11 -0
  78. package/lib/dist-custom-elements/duet-combobox.js +432 -0
  79. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +11 -0
  80. package/lib/dist-custom-elements/duet-cookie-consent.js +94 -0
  81. package/lib/dist-custom-elements/duet-date-picker.d.ts +11 -0
  82. package/lib/dist-custom-elements/duet-date-picker.js +906 -0
  83. package/lib/dist-custom-elements/duet-divider.d.ts +11 -0
  84. package/lib/dist-custom-elements/duet-divider.js +9 -0
  85. package/lib/dist-custom-elements/duet-editable-table.d.ts +11 -0
  86. package/lib/dist-custom-elements/duet-editable-table.js +9 -0
  87. package/lib/dist-custom-elements/duet-empty-state.d.ts +11 -0
  88. package/lib/dist-custom-elements/duet-empty-state.js +9 -0
  89. package/lib/dist-custom-elements/duet-fieldset.d.ts +11 -0
  90. package/lib/dist-custom-elements/duet-fieldset.js +9 -0
  91. package/lib/dist-custom-elements/duet-footer.d.ts +11 -0
  92. package/lib/dist-custom-elements/duet-footer.js +199 -0
  93. package/lib/dist-custom-elements/duet-grid-item.d.ts +11 -0
  94. package/lib/dist-custom-elements/duet-grid-item.js +9 -0
  95. package/lib/dist-custom-elements/duet-grid.d.ts +11 -0
  96. package/lib/dist-custom-elements/duet-grid.js +9 -0
  97. package/lib/dist-custom-elements/duet-header.d.ts +11 -0
  98. package/lib/dist-custom-elements/duet-header.js +764 -0
  99. package/lib/dist-custom-elements/duet-heading.d.ts +11 -0
  100. package/lib/dist-custom-elements/duet-heading.js +9 -0
  101. package/lib/dist-custom-elements/duet-hero.d.ts +11 -0
  102. package/lib/dist-custom-elements/duet-hero.js +314 -0
  103. package/lib/dist-custom-elements/duet-icon.d.ts +11 -0
  104. package/lib/dist-custom-elements/duet-icon.js +9 -0
  105. package/lib/dist-custom-elements/duet-input.d.ts +11 -0
  106. package/lib/dist-custom-elements/duet-input.js +9 -0
  107. package/lib/dist-custom-elements/duet-label.d.ts +11 -0
  108. package/lib/dist-custom-elements/duet-label.js +9 -0
  109. package/lib/dist-custom-elements/duet-layout.d.ts +11 -0
  110. package/lib/dist-custom-elements/duet-layout.js +107 -0
  111. package/lib/dist-custom-elements/duet-link.d.ts +11 -0
  112. package/lib/dist-custom-elements/duet-link.js +9 -0
  113. package/lib/dist-custom-elements/duet-list-item.d.ts +11 -0
  114. package/lib/dist-custom-elements/duet-list-item.js +9 -0
  115. package/lib/dist-custom-elements/duet-list.d.ts +11 -0
  116. package/lib/dist-custom-elements/duet-list.js +9 -0
  117. package/lib/dist-custom-elements/duet-logo.d.ts +11 -0
  118. package/lib/dist-custom-elements/duet-logo.js +9 -0
  119. package/lib/dist-custom-elements/duet-modal.d.ts +11 -0
  120. package/lib/dist-custom-elements/duet-modal.js +331 -0
  121. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +11 -0
  122. package/lib/dist-custom-elements/duet-notification-drawer.js +194 -0
  123. package/lib/dist-custom-elements/duet-notification.d.ts +11 -0
  124. package/lib/dist-custom-elements/duet-notification.js +114 -0
  125. package/lib/dist-custom-elements/duet-number-input.d.ts +11 -0
  126. package/lib/dist-custom-elements/duet-number-input.js +516 -0
  127. package/lib/dist-custom-elements/duet-pagination.d.ts +11 -0
  128. package/lib/dist-custom-elements/duet-pagination.js +396 -0
  129. package/lib/dist-custom-elements/duet-paragraph.d.ts +11 -0
  130. package/lib/dist-custom-elements/duet-paragraph.js +9 -0
  131. package/lib/dist-custom-elements/duet-progress.d.ts +11 -0
  132. package/lib/dist-custom-elements/duet-progress.js +9 -0
  133. package/lib/dist-custom-elements/duet-radio-group.d.ts +11 -0
  134. package/lib/dist-custom-elements/duet-radio-group.js +216 -0
  135. package/lib/dist-custom-elements/duet-radio.d.ts +11 -0
  136. package/lib/dist-custom-elements/duet-radio.js +167 -0
  137. package/lib/dist-custom-elements/duet-range-slider.d.ts +11 -0
  138. package/lib/dist-custom-elements/duet-range-slider.js +209 -0
  139. package/lib/dist-custom-elements/duet-range-stepper.d.ts +11 -0
  140. package/lib/dist-custom-elements/duet-range-stepper.js +225 -0
  141. package/lib/dist-custom-elements/duet-scrollable.d.ts +11 -0
  142. package/lib/dist-custom-elements/duet-scrollable.js +9 -0
  143. package/lib/dist-custom-elements/duet-select.d.ts +11 -0
  144. package/lib/dist-custom-elements/duet-select.js +9 -0
  145. package/lib/dist-custom-elements/duet-spacer.d.ts +11 -0
  146. package/lib/dist-custom-elements/duet-spacer.js +9 -0
  147. package/lib/dist-custom-elements/duet-spinner.d.ts +11 -0
  148. package/lib/dist-custom-elements/duet-spinner.js +9 -0
  149. package/lib/dist-custom-elements/duet-step.d.ts +11 -0
  150. package/lib/dist-custom-elements/duet-step.js +150 -0
  151. package/lib/dist-custom-elements/duet-stepper.d.ts +11 -0
  152. package/lib/dist-custom-elements/duet-stepper.js +164 -0
  153. package/lib/dist-custom-elements/duet-tab-group.d.ts +11 -0
  154. package/lib/dist-custom-elements/duet-tab-group.js +301 -0
  155. package/lib/dist-custom-elements/duet-tab.d.ts +11 -0
  156. package/lib/dist-custom-elements/duet-tab.js +59 -0
  157. package/lib/dist-custom-elements/duet-table.d.ts +11 -0
  158. package/lib/dist-custom-elements/duet-table.js +9 -0
  159. package/lib/dist-custom-elements/duet-textarea.d.ts +11 -0
  160. package/lib/dist-custom-elements/duet-textarea.js +297 -0
  161. package/lib/dist-custom-elements/duet-toggle.d.ts +11 -0
  162. package/lib/dist-custom-elements/duet-toggle.js +150 -0
  163. package/lib/dist-custom-elements/duet-tooltip.d.ts +11 -0
  164. package/lib/dist-custom-elements/duet-tooltip.js +9 -0
  165. package/lib/dist-custom-elements/duet-tray.d.ts +11 -0
  166. package/lib/dist-custom-elements/duet-tray.js +175 -0
  167. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +11 -0
  168. package/lib/dist-custom-elements/duet-upload-aria-status.js +9 -0
  169. package/lib/dist-custom-elements/duet-upload.d.ts +11 -0
  170. package/lib/dist-custom-elements/duet-upload.js +1514 -0
  171. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +11 -0
  172. package/lib/dist-custom-elements/duet-visually-hidden.js +9 -0
  173. package/lib/dist-custom-elements/index.d.ts +26 -0
  174. package/lib/dist-custom-elements/index.js +37 -0
  175. package/lib/dist-custom-elements/p-01de0640.js +37 -0
  176. package/lib/{esm/tokens-8ff8c570.js → dist-custom-elements/p-02305a1e.js} +18 -15
  177. package/lib/dist-custom-elements/p-08cfe544.js +125 -0
  178. package/lib/dist-custom-elements/p-09ed1ffa.js +160 -0
  179. package/lib/dist-custom-elements/p-0a928609.js +241 -0
  180. package/lib/dist-custom-elements/p-0b3f675e.js +47 -0
  181. package/lib/{esm/focus-utils-559691b3.js → dist-custom-elements/p-0b8f16f1.js} +1 -1
  182. package/lib/dist-custom-elements/p-115c79b6.js +6 -0
  183. package/lib/dist-custom-elements/p-12721178.js +57 -0
  184. package/lib/dist-custom-elements/p-14dcd82b.js +133 -0
  185. package/lib/dist-custom-elements/p-16d518fd.js +66 -0
  186. package/lib/dist-custom-elements/p-213ef84c.js +87 -0
  187. package/lib/dist-custom-elements/p-266411cf.js +307 -0
  188. package/lib/dist-custom-elements/p-3d987b87.js +75 -0
  189. package/lib/dist-custom-elements/p-3fc2d124.js +1666 -0
  190. package/lib/dist-custom-elements/p-4717744e.js +110 -0
  191. package/lib/dist-custom-elements/p-4ebf1618.js +13 -0
  192. package/lib/dist-custom-elements/p-56118313.js +53 -0
  193. package/lib/dist-custom-elements/p-565779f5.js +199 -0
  194. package/lib/dist-custom-elements/p-5a9d75e1.js +55 -0
  195. package/lib/dist-custom-elements/p-65d3ead5.js +428 -0
  196. package/lib/dist-custom-elements/p-6886544b.js +129 -0
  197. package/lib/dist-custom-elements/p-6e74e660.js +275 -0
  198. package/lib/dist-custom-elements/p-704245ef.js +9 -0
  199. package/lib/dist-custom-elements/p-76f00bd5.js +10 -0
  200. package/lib/dist-custom-elements/p-7739604d.js +214 -0
  201. package/lib/dist-custom-elements/p-81c9b244.js +65 -0
  202. package/lib/{esm/token-utils-df78f4d8.js → dist-custom-elements/p-86faf728.js} +1 -1
  203. package/lib/dist-custom-elements/p-88511d7a.js +275 -0
  204. package/lib/dist-custom-elements/p-9c732bb9.js +193 -0
  205. package/lib/dist-custom-elements/p-acdba2db.js +114 -0
  206. package/lib/dist-custom-elements/p-b08e57cf.js +37 -0
  207. package/lib/dist-custom-elements/p-b9058029.js +138 -0
  208. package/lib/dist-custom-elements/p-bd4b92c4.js +86 -0
  209. package/lib/dist-custom-elements/p-bd779757.js +184 -0
  210. package/lib/dist-custom-elements/p-c1325e35.js +11 -0
  211. package/lib/dist-custom-elements/p-c70f3ccb.js +70 -0
  212. package/lib/dist-custom-elements/p-d004da5f.js +6 -0
  213. package/lib/dist-custom-elements/p-d4c234ed.js +390 -0
  214. package/lib/dist-custom-elements/p-d8549efe.js +20 -0
  215. package/lib/dist-custom-elements/p-d96debb6.js +287 -0
  216. package/lib/dist-custom-elements/p-da03a443.js +154 -0
  217. package/lib/dist-custom-elements/p-e294c0fb.js +341 -0
  218. package/lib/dist-custom-elements/p-e4d5fbc0.js +87 -0
  219. package/lib/dist-custom-elements/p-e5c8a58f.js +71 -0
  220. package/lib/dist-custom-elements/p-ede854e1.js +92 -0
  221. package/lib/dist-custom-elements/p-ef8eff22.js +64 -0
  222. package/lib/dist-custom-elements/p-f11208c3.js +6 -0
  223. package/lib/dist-custom-elements/p-f7db7c40.js +98 -0
  224. package/lib/dist-custom-elements/p-fc5362e7.js +61 -0
  225. package/lib/duet/duet.esm.js +1 -1
  226. package/lib/duet/duet.js +1 -1
  227. package/lib/duet/{p-6c875cfa.system.entry.js → p-01c551f1.system.entry.js} +1 -1
  228. package/lib/duet/p-02305a1e.js +4 -0
  229. package/lib/duet/{p-1010fb94.entry.js → p-033bfa67.entry.js} +1 -1
  230. package/lib/duet/{p-946aa901.system.entry.js → p-07a850a5.system.entry.js} +1 -1
  231. package/lib/duet/{p-9e54127f.system.entry.js → p-09e2ff96.system.entry.js} +1 -1
  232. package/lib/duet/{p-d0cee171.entry.js → p-0b74af40.entry.js} +1 -1
  233. package/lib/duet/{p-2bd79d6b.entry.js → p-0c2a51ac.entry.js} +1 -1
  234. package/lib/duet/{p-eb54474f.system.entry.js → p-0c9f0b8a.system.entry.js} +1 -1
  235. package/lib/duet/{p-104bf1b5.entry.js → p-0d96924d.entry.js} +1 -1
  236. package/lib/duet/{p-d444107c.system.entry.js → p-0e48bca9.system.entry.js} +1 -1
  237. package/lib/duet/{p-de815460.system.entry.js → p-0e98f667.system.entry.js} +1 -1
  238. package/lib/duet/{p-cfa50753.system.js → p-1999f503.system.js} +1 -1
  239. package/lib/duet/{p-4034b322.system.entry.js → p-1a41550e.system.entry.js} +1 -1
  240. package/lib/duet/{p-bec24271.system.entry.js → p-1bd57792.system.entry.js} +1 -1
  241. package/lib/duet/{p-dab594cf.system.entry.js → p-1e0d7680.system.entry.js} +1 -1
  242. package/lib/duet/{p-6841adb8.system.entry.js → p-1ebd7945.system.entry.js} +1 -1
  243. package/lib/duet/p-1fc60a60.system.js +4 -0
  244. package/lib/duet/{p-47ed8218.entry.js → p-21662682.entry.js} +1 -1
  245. package/lib/duet/{p-b008fe25.entry.js → p-23943f39.entry.js} +1 -1
  246. package/lib/duet/{p-92d95bde.system.entry.js → p-23a8fa64.system.entry.js} +1 -1
  247. package/lib/duet/{p-72443e94.system.entry.js → p-264a0e0c.system.entry.js} +1 -1
  248. package/lib/duet/{p-5d967d15.entry.js → p-27f72e70.entry.js} +1 -1
  249. package/lib/duet/{p-09364233.entry.js → p-2a3b1a2e.entry.js} +1 -1
  250. package/lib/duet/{p-df11c241.system.entry.js → p-2b320481.system.entry.js} +1 -1
  251. package/lib/duet/p-32f7178a.system.js +4 -0
  252. package/lib/duet/{p-e3983bfe.entry.js → p-3620ded5.entry.js} +1 -1
  253. package/lib/duet/{p-b01e2523.entry.js → p-3904232a.entry.js} +1 -1
  254. package/lib/duet/{p-2bba6489.entry.js → p-3b173cbd.entry.js} +1 -1
  255. package/lib/duet/{p-087d72dd.system.entry.js → p-430acad4.system.entry.js} +1 -1
  256. package/lib/duet/{p-23ba48a5.system.entry.js → p-4463946b.system.entry.js} +1 -1
  257. package/lib/duet/{p-8157e5bb.system.entry.js → p-44e9b1c8.system.entry.js} +1 -1
  258. package/lib/duet/p-49ce11a1.entry.js +4 -0
  259. package/lib/duet/{p-06ab2787.system.entry.js → p-4d6feeb5.system.entry.js} +1 -1
  260. package/lib/duet/{p-f7ac05dd.system.entry.js → p-4d767c61.system.entry.js} +1 -1
  261. package/lib/duet/{p-e0f6ebf4.system.entry.js → p-4f1fe415.system.entry.js} +1 -1
  262. package/lib/duet/{p-de3c0f4d.js → p-532e9db7.js} +1 -1
  263. package/lib/duet/{p-9f8a51b4.system.entry.js → p-55fd512b.system.entry.js} +1 -1
  264. package/lib/duet/{p-398a79a0.js → p-588be556.js} +1 -1
  265. package/lib/duet/{p-074bfd45.entry.js → p-5af6d9e2.entry.js} +1 -1
  266. package/lib/duet/{p-9308c1e6.entry.js → p-5e1d64d8.entry.js} +1 -1
  267. package/lib/duet/{p-4c93a18e.system.entry.js → p-5f6452ce.system.entry.js} +1 -1
  268. package/lib/duet/{p-de986d77.system.entry.js → p-60e29f52.system.entry.js} +1 -1
  269. package/lib/duet/{p-e1654a8b.system.entry.js → p-613c4099.system.entry.js} +1 -1
  270. package/lib/duet/{p-94c07a46.system.entry.js → p-61444a3d.system.entry.js} +1 -1
  271. package/lib/duet/{p-d0f72f22.js → p-6aca8584.js} +1 -1
  272. package/lib/duet/{p-db15d420.system.entry.js → p-6e5f2016.system.entry.js} +1 -1
  273. package/lib/duet/{p-63dbd5af.system.entry.js → p-6f93638a.system.entry.js} +1 -1
  274. package/lib/duet/{p-c8d9da51.entry.js → p-71105750.entry.js} +1 -1
  275. package/lib/duet/{p-db115036.entry.js → p-73c6e5fb.entry.js} +1 -1
  276. package/lib/duet/{p-b3dc55a6.system.entry.js → p-751f6957.system.entry.js} +1 -1
  277. package/lib/duet/{p-1931d33f.system.js → p-77600ed7.system.js} +1 -1
  278. package/lib/duet/{p-571440c7.system.entry.js → p-77ca874f.system.entry.js} +1 -1
  279. package/lib/duet/{p-c2e37fb4.entry.js → p-787f9eba.entry.js} +1 -1
  280. package/lib/duet/{p-674e546f.system.entry.js → p-7ad2cb10.system.entry.js} +1 -1
  281. package/lib/duet/{p-b066a6b7.entry.js → p-7de4d97d.entry.js} +1 -1
  282. package/lib/duet/{p-3d029dce.system.entry.js → p-8107aeb5.system.entry.js} +1 -1
  283. package/lib/duet/{p-31004a7b.system.entry.js → p-86cb85b9.system.entry.js} +1 -1
  284. package/lib/duet/{p-f2eaad1e.js → p-875ae637.js} +1 -1
  285. package/lib/duet/{p-de146ffa.system.entry.js → p-8aafa8e7.system.entry.js} +1 -1
  286. package/lib/duet/{p-064dd5fd.entry.js → p-8b09a46f.entry.js} +1 -1
  287. package/lib/duet/{p-16521f2d.entry.js → p-8c08e7ba.entry.js} +1 -1
  288. package/lib/duet/{p-0626271f.entry.js → p-8e8f8b29.entry.js} +1 -1
  289. package/lib/duet/{p-300147ad.entry.js → p-9094fcf8.entry.js} +1 -1
  290. package/lib/duet/{p-5beb69ac.entry.js → p-988a781d.entry.js} +1 -1
  291. package/lib/duet/{p-cca9c605.system.entry.js → p-a395d4bc.system.entry.js} +1 -1
  292. package/lib/duet/{p-97a369d6.entry.js → p-a585113b.entry.js} +1 -1
  293. package/lib/duet/{p-ef4b4f35.entry.js → p-aa8973fc.entry.js} +1 -1
  294. package/lib/duet/{p-23ad5f8a.entry.js → p-ab7f4070.entry.js} +1 -1
  295. package/lib/duet/{p-49db53a1.system.entry.js → p-ab89d948.system.entry.js} +1 -1
  296. package/lib/duet/{p-20271117.entry.js → p-aef02083.entry.js} +1 -1
  297. package/lib/duet/{p-c5499bc3.entry.js → p-afdc57da.entry.js} +1 -1
  298. package/lib/duet/{p-9f18afd6.entry.js → p-b2abaa9e.entry.js} +1 -1
  299. package/lib/duet/{p-744ce6ce.entry.js → p-b55e55b5.entry.js} +1 -1
  300. package/lib/duet/{p-3cc55c8a.system.entry.js → p-bbc91480.system.entry.js} +1 -1
  301. package/lib/duet/{p-1aca544d.entry.js → p-bbe1a2cd.entry.js} +1 -1
  302. package/lib/duet/{p-8c409ffe.system.entry.js → p-bd3c926c.system.entry.js} +1 -1
  303. package/lib/duet/{p-e2ac0727.system.entry.js → p-bec16aea.system.entry.js} +1 -1
  304. package/lib/duet/p-bf59e11d.entry.js +4 -0
  305. package/lib/duet/{p-ab2f08b3.system.entry.js → p-c4217626.system.entry.js} +1 -1
  306. package/lib/duet/{p-5658ac20.system.entry.js → p-c5f6ea62.system.entry.js} +1 -1
  307. package/lib/duet/{p-41cb95cb.entry.js → p-c6d05091.entry.js} +1 -1
  308. package/lib/duet/{p-0f7f7e7d.system.entry.js → p-c73a591d.system.entry.js} +1 -1
  309. package/lib/duet/{p-6b0a4b3b.entry.js → p-c863a0d1.entry.js} +1 -1
  310. package/lib/duet/{p-c41b07d7.entry.js → p-c986532d.entry.js} +1 -1
  311. package/lib/duet/{p-ae515c54.entry.js → p-caa49454.entry.js} +1 -1
  312. package/lib/duet/{p-9fcac068.system.entry.js → p-ccb0de84.system.entry.js} +1 -1
  313. package/lib/duet/{p-18cc5627.system.js → p-d209191d.system.js} +1 -1
  314. package/lib/duet/{p-bb9624c3.entry.js → p-defba7cd.entry.js} +1 -1
  315. package/lib/duet/{p-339e5901.system.js → p-df785776.system.js} +1 -1
  316. package/lib/duet/{p-691f609b.entry.js → p-e9862947.entry.js} +1 -1
  317. package/lib/duet/{p-5d1787cb.entry.js → p-eb74c96e.entry.js} +1 -1
  318. package/lib/duet/{p-0ae59d7c.entry.js → p-ece47184.entry.js} +1 -1
  319. package/lib/duet/{p-89048c6f.entry.js → p-f09f968c.entry.js} +1 -1
  320. package/lib/duet/{p-68c3b19f.entry.js → p-f97776be.entry.js} +1 -1
  321. package/lib/duet/{p-6eecfced.system.entry.js → p-fe8fc877.system.entry.js} +1 -1
  322. package/lib/esm/duet-action-button.entry.js +3 -3
  323. package/lib/esm/duet-alert.entry.js +1 -1
  324. package/lib/esm/duet-badge.entry.js +1 -1
  325. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  326. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  327. package/lib/esm/duet-button_2.entry.js +3 -3
  328. package/lib/esm/duet-caption_4.entry.js +3 -3
  329. package/lib/esm/duet-card.entry.js +3 -3
  330. package/lib/esm/duet-checkbox.entry.js +1 -1
  331. package/lib/esm/duet-choice_2.entry.js +3 -3
  332. package/lib/esm/duet-collapsible.entry.js +2 -2
  333. package/lib/esm/duet-combobox.entry.js +1 -1
  334. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  335. package/lib/esm/duet-date-picker.entry.js +2 -2
  336. package/lib/esm/duet-divider_2.entry.js +1 -1
  337. package/lib/esm/duet-editable-table_3.entry.js +17 -14
  338. package/lib/esm/duet-empty-state.entry.js +1 -1
  339. package/lib/esm/duet-fieldset.entry.js +1 -1
  340. package/lib/esm/duet-footer.entry.js +1 -1
  341. package/lib/esm/duet-grid_2.entry.js +2 -2
  342. package/lib/esm/duet-header_2.entry.js +3 -3
  343. package/lib/esm/duet-hero.entry.js +1 -1
  344. package/lib/esm/duet-icon.entry.js +3 -3
  345. package/lib/esm/duet-input_2.entry.js +1 -1
  346. package/lib/esm/duet-layout.entry.js +1 -1
  347. package/lib/esm/duet-list_2.entry.js +1 -1
  348. package/lib/esm/duet-modal.entry.js +2 -2
  349. package/lib/esm/duet-notification_2.entry.js +1 -1
  350. package/lib/esm/duet-number-input.entry.js +1 -1
  351. package/lib/esm/duet-pagination_2.entry.js +1 -1
  352. package/lib/esm/duet-progress.entry.js +1 -1
  353. package/lib/esm/duet-radio_2.entry.js +1 -1
  354. package/lib/esm/duet-range-slider.entry.js +2 -2
  355. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  356. package/lib/esm/duet-select.entry.js +1 -1
  357. package/lib/esm/duet-step_2.entry.js +1 -1
  358. package/lib/esm/duet-textarea.entry.js +1 -1
  359. package/lib/esm/duet-toggle.entry.js +1 -1
  360. package/lib/esm/duet-tooltip.entry.js +1 -1
  361. package/lib/esm/duet-tray.entry.js +2 -2
  362. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  363. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  364. package/lib/esm/duet.js +1 -1
  365. package/lib/esm/focus-utils-236f580e.js +18 -0
  366. package/lib/esm/{index-f600b8dc.js → index-b601aac1.js} +1 -1
  367. package/lib/esm/loader.js +1 -1
  368. package/lib/esm/token-utils-ebf797ab.js +92 -0
  369. package/lib/esm/tokens-b9d87fda.js +459 -0
  370. package/lib/esm/{tokens.module-f4572ed7.js → tokens.module-385c4cf8.js} +12 -10
  371. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  372. package/lib/esm-es5/duet-alert.entry.js +1 -1
  373. package/lib/esm-es5/duet-badge.entry.js +1 -1
  374. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  375. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  376. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  377. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  378. package/lib/esm-es5/duet-card.entry.js +1 -1
  379. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  380. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  381. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  382. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  383. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  384. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  385. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  386. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  387. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  388. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  389. package/lib/esm-es5/duet-footer.entry.js +1 -1
  390. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  391. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  392. package/lib/esm-es5/duet-hero.entry.js +1 -1
  393. package/lib/esm-es5/duet-icon.entry.js +1 -1
  394. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  395. package/lib/esm-es5/duet-layout.entry.js +1 -1
  396. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  397. package/lib/esm-es5/duet-modal.entry.js +1 -1
  398. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  399. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  400. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  401. package/lib/esm-es5/duet-progress.entry.js +1 -1
  402. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  403. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  404. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  405. package/lib/esm-es5/duet-select.entry.js +1 -1
  406. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  407. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  408. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  409. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  410. package/lib/esm-es5/duet-tray.entry.js +1 -1
  411. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  412. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  413. package/lib/esm-es5/duet.js +1 -1
  414. package/lib/esm-es5/{focus-utils-559691b3.js → focus-utils-236f580e.js} +1 -1
  415. package/lib/esm-es5/{index-f600b8dc.js → index-b601aac1.js} +1 -1
  416. package/lib/esm-es5/loader.js +1 -1
  417. package/lib/esm-es5/{token-utils-df78f4d8.js → token-utils-ebf797ab.js} +1 -1
  418. package/lib/esm-es5/tokens-b9d87fda.js +4 -0
  419. package/lib/esm-es5/{tokens.module-f4572ed7.js → tokens.module-385c4cf8.js} +1 -1
  420. package/lib/types/components/duet-upload/duet-upload.d.ts +8 -8
  421. package/lib/types/components.d.ts +4 -4
  422. package/package.json +5 -5
  423. package/lib/custom-elements-bundle/index.d.ts +0 -399
  424. package/lib/custom-elements-bundle/index.js +0 -14110
  425. package/lib/duet/p-6002f3d2.system.js +0 -4
  426. package/lib/duet/p-7c198c75.entry.js +0 -4
  427. package/lib/duet/p-a93a04b9.system.js +0 -4
  428. package/lib/duet/p-d1746325.js +0 -4
  429. package/lib/duet/p-f2ab3e5c.entry.js +0 -4
  430. package/lib/esm-es5/tokens-8ff8c570.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { d as debounce } from './js-utils-fa98b8cd.js';
7
7
  import { n as isEnterKey, f as isEscapeKey, o as isTabKey, b as isArrowUpKey, c as isArrowDownKey } from './keyboard-utils-88ea1007.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
 
7
7
  const duetCookieConsentCss = "*,*::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;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;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;color:white !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.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\";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:white !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url(\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+\") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
- import { F as FocusGuard } from './focus-utils-559691b3.js';
7
+ import { F as FocusGuard } from './focus-utils-236f580e.js';
8
8
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
9
9
  import './string-utils-5954f458.js';
10
10
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement, H as Host } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
 
7
7
  const duetDividerCss = "*,*::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:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:#e1e3e6}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:#e4e4e6}";
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { f as fieldSorter, d as debounce } from './js-utils-fa98b8cd.js';
7
7
  import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
8
8
  import { g as getLocaleString, s as sanitizeString } from './language-utils-bf701d37.js';
9
- import { m as mediaQueryMedium, h as mediaQueryLarge, i as mediaQueryXLarge, j as mediaQueryXxLarge, k as mediaQueryXxxLarge, l as mediaQuerySmall, n as sizeNavigation, s as sizeHeader } from './tokens.module-f4572ed7.js';
9
+ import { m as mediaQueryMedium, h as mediaQueryLarge, i as mediaQueryXLarge, j as mediaQueryXxLarge, k as mediaQueryXxxLarge, l as mediaQuerySmall, n as sizeNavigation, s as sizeHeader } from './tokens.module-385c4cf8.js';
10
10
  import { c as createID } from './create-id-981107da.js';
11
11
  import { p as parsePossibleJSON } from './string-utils-5954f458.js';
12
12
 
@@ -901,23 +901,23 @@ const DuetUpload = class {
901
901
  /**
902
902
  * Property to change descriptionDefaults defaults on the component.
903
903
  * @default {
904
- fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.",
905
- sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.",
906
- en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.",
907
- }
904
+ * en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
905
+ * sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
906
+ * fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
907
+ * }
908
908
  */
909
909
  this.descriptionDefaults = {
910
- fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.",
911
- sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.",
912
- en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.",
910
+ en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
911
+ sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
912
+ fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
913
913
  };
914
914
  /**
915
915
  * Description for the upload component.
916
916
  * @default {
917
- fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.",
918
- sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.",
919
- en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.",
920
- }
917
+ * en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",
918
+ * sv: "Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",
919
+ * fi: "Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena.",
920
+ * }
921
921
  */
922
922
  this.description = getLocaleString(this.descriptionDefaults);
923
923
  /**
@@ -1526,8 +1526,11 @@ const DuetUpload = class {
1526
1526
  */
1527
1527
  render() {
1528
1528
  const identifier = this.identifier || this.uploadId;
1529
+ const maxMegaBytesTotal = Math.round((this.maxBytesTotal ? this.maxBytesTotal : this.maxBytes * this.maxFiles) / 1024 / 1024);
1530
+ const maxMegaBytesPrFile = Math.round(this.maxBytes / 1024 / 1024);
1529
1531
  let caption = this.description.replace(/{maxfiles}/g, this.maxFiles.toString());
1530
- caption = caption.replace(/{maxbytes}/g, `${Math.floor((this.maxBytesTotal || this.maxFiles * this.maxBytes) / 1024 / 1024)} MB`);
1532
+ caption = caption.replace(/{maxbytes}/g, `${maxMegaBytesPrFile.toString()} MB`);
1533
+ caption = caption.replace(/{maxbytestotal}/g, `${maxMegaBytesTotal.toString()} MB`);
1531
1534
  caption = caption.replace(/{filetypes}/g, this.allowedExtensions.split(",").join(", "));
1532
1535
  return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { label: this.label, caption: caption }, h("slot", { name: "header" }), !this.files.size && (h("duet-label", { part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", theme: this.theme === "turva" ? "turva" : "default", size: "small", class: {
1533
1536
  "duet-upload-filelist-empty": !this.files.size,
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
 
7
7
  const duetEmptyStateCss = "*,*::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:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:#00294d;text-align:center;background:#f5f8fa;border-radius:4px}.duet-empty-state.duet-theme-turva{color:#171c3a;background:#f5f5f7}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-b601aac1.js';
5
5
  import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
6
6
  import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
7
7
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement, H as Host } from './index-f600b8dc.js';
5
- import { m as media_query_large, a as media_query_medium, b as media_query_small } from './tokens-8ff8c570.js';
4
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-b601aac1.js';
5
+ import { m as media_query_large, a as media_query_medium, b as media_query_small } from './tokens-b9d87fda.js';
6
6
  import { w as watchForOptions, a as watchForElement } from './watch-options-dd55bce8.js';
7
7
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
8
8
 
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-f600b8dc.js';
4
+ import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-b601aac1.js';
5
5
  import { f as formSearch } from './form-search-ea8e19ae.js';
6
- import { m as media_query_large } from './tokens-8ff8c570.js';
6
+ import { m as media_query_large } from './tokens-b9d87fda.js';
7
7
  import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
8
8
  import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
9
9
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
@@ -11,7 +11,7 @@ import { f as isEscapeKey, g as isSpaceKey, d as isArrowLeftKey, b as isArrowUpK
11
11
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
12
12
  import { p as parsePossibleJSON } from './string-utils-5954f458.js';
13
13
  import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
14
- import { e as colorGrayLightest, f as colorBrandGrayTurva, c as colorPrimaryTurva, g as colorBrandBlue } from './tokens.module-f4572ed7.js';
14
+ import { e as colorGrayLightest, f as colorBrandGrayTurva, c as colorPrimaryTurva, g as colorBrandBlue } from './tokens.module-385c4cf8.js';
15
15
  import { c as createID } from './create-id-981107da.js';
16
16
 
17
17
  var navigationContactDropdown={"title":"navigation-contact-dropdown","tags":"navigation contact dropdown speech bubbles","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M20.247 24a.743.743 0 0 1-.53-.22l-4.28-4.28h-.439c-3.308 0-6-2.692-6-6s2.692-6 6-6h3c3.309.001 6 2.692 6 6a5.974 5.974 0 0 1-3 5.179v4.571a.75.75 0 0 1-.751.75zm-5.25-15c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5h.75c.198 0 .391.08.53.22l3.22 3.22v-3.213c0-.289.169-.555.429-.678a4.51 4.51 0 0 0 2.571-4.049 4.504 4.504 0 0 0-4.498-4.499h-3.002z\"/><path d=\"M3.747 16.5a.747.747 0 0 1-.75-.75v-4.57a5.967 5.967 0 0 1-2.65-3.171A5.948 5.948 0 0 1 .57 3.431 6.014 6.014 0 0 1 5.985 0h3.012a6.04 6.04 0 0 1 5.752 4.286.751.751 0 0 1-.718.964.755.755 0 0 1-.719-.536A4.531 4.531 0 0 0 8.997 1.5h-3a4.511 4.511 0 0 0-4.071 2.572c-.512 1.084-.571 2.302-.167 3.431s1.224 2.032 2.308 2.545c.261.123.43.39.43.678v3.214l1.72-1.72a.744.744 0 0 1 1.06 0 .752.752 0 0 1 0 1.061l-3 3a.744.744 0 0 1-.53.219z\"/></svg>"};
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-b601aac1.js';
5
5
  import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
6
6
  import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
7
7
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
- import { g as getColorByName } from './token-utils-df78f4d8.js';
7
- import './tokens.module-f4572ed7.js';
6
+ import { g as getColorByName } from './token-utils-ebf797ab.js';
7
+ import './tokens.module-385c4cf8.js';
8
8
 
9
9
  const cleanupSvg = (svgContent) => {
10
10
  if (typeof document === "undefined" || !svgContent) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { f as formSearch } from './form-search-ea8e19ae.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
6
6
 
7
7
  const duetLayoutCss = "*,*::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:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement, H as Host } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { w as watchForOptions } from './watch-options-dd55bce8.js';
7
7
 
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-b601aac1.js';
5
5
  import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
8
- import { f as focusElement, F as FocusGuard } from './focus-utils-559691b3.js';
8
+ import { f as focusElement, F as FocusGuard } from './focus-utils-236f580e.js';
9
9
  import { f as isEscapeKey } from './keyboard-utils-88ea1007.js';
10
10
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
11
11
  import './string-utils-5954f458.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
7
7
  import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { a as isArrowRightKey, b as isArrowUpKey, c as isArrowDownKey, d as isArrowLeftKey, e as isBackspaceKey } from './keyboard-utils-88ea1007.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { d as debounce } from './js-utils-fa98b8cd.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
5
- import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-f4572ed7.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
+ import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-385c4cf8.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
8
8
  import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { p as parsePossibleJSON } from './string-utils-5954f458.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { c as cleanValue } from './input-utils-de45e099.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-b601aac1.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, g as getElement } from './index-f600b8dc.js';
5
- import { s as sizeHeader } from './tokens.module-f4572ed7.js';
4
+ import { r as registerInstance, h, F as Fragment, g as getElement } from './index-b601aac1.js';
5
+ import { s as sizeHeader } from './tokens.module-385c4cf8.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
8
8
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host } from './index-b601aac1.js';
5
5
 
6
6
  const DuetUploadAriaStatus = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-f600b8dc.js';
4
+ import { r as registerInstance, h, H as Host } from './index-b601aac1.js';
5
5
 
6
6
  const duetVisuallyHiddenCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";
7
7
 
package/lib/esm/duet.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-f600b8dc.js';
4
+ import { d as doc, N as NAMESPACE, w as win, p as promiseResolve, b as bootstrapLazy } from './index-b601aac1.js';
5
5
  import { g as globalScripts } from './app-globals-6641e444.js';
6
6
 
7
7
  /*
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { h } from './index-b601aac1.js';
5
+
6
+ const focusElement = (element) => {
7
+ if ("setFocus" in element) {
8
+ element.setFocus();
9
+ }
10
+ else {
11
+ element.focus();
12
+ }
13
+ };
14
+ const FocusGuard = ({ moveFocusTo }) => {
15
+ return h("div", { class: "duet-focus-guard", "aria-hidden": "true", tabIndex: 0, onFocus: () => focusElement(moveFocusTo) });
16
+ };
17
+
18
+ export { FocusGuard as F, focusElement as f };
@@ -2,7 +2,7 @@
2
2
  * Built with Duet Design System
3
3
  */
4
4
  const NAMESPACE = 'duet';
5
- const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"3.0.3"};
5
+ const Env = /* duet */ {"cdnURILocal":"http://0.0.0.0:3334","cdnURIProd":"https://cdn.duetds.com/api","duetIconVersion":"3.0.4"};
6
6
 
7
7
  let scopeId;
8
8
  let contentRef;
package/lib/esm/loader.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { p as promiseResolve, b as bootstrapLazy } from './index-f600b8dc.js';
4
+ import { p as promiseResolve, b as bootstrapLazy } from './index-b601aac1.js';
5
5
  import { g as globalScripts } from './app-globals-6641e444.js';
6
6
 
7
7
  /*
@@ -0,0 +1,92 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { t as tokens } from './tokens.module-385c4cf8.js';
5
+
6
+ const allowedThemes = ["turva"];
7
+ function isDashCase(str) {
8
+ const dash = str.includes("-");
9
+ const barredString = str.includes(" ") || str.includes("_");
10
+ const barredStartingString = str.charAt(0) === "-";
11
+ return dash && !barredString && !barredStartingString;
12
+ }
13
+ function capitalize(str = "") {
14
+ return `${str.charAt(0).toUpperCase()}${str.slice(1)}`;
15
+ }
16
+ function lowerCaseFirst(str = "") {
17
+ return `${str.charAt(0).toLowerCase()}${str.slice(1)}`;
18
+ }
19
+ function camelize(str = "") {
20
+ const arr = str.split("-");
21
+ //loop through each element of the array and capitalize the first letter.'
22
+ arr.forEach((string, index) => {
23
+ arr[index] = capitalize(string);
24
+ });
25
+ return arr.join("");
26
+ }
27
+ function getTheme(theme = "") {
28
+ if (allowedThemes.includes(theme.toLowerCase())) {
29
+ return theme.toLowerCase();
30
+ }
31
+ return "";
32
+ }
33
+ function capitalizeFirstLetter(string) {
34
+ return string.charAt(0).toUpperCase() + string.slice(1);
35
+ }
36
+ function hasType(t, str = "") {
37
+ return str.indexOf(capitalizeFirstLetter(t)) === 0 || str.indexOf(t) === 0;
38
+ }
39
+ function addPrefix(prefix, str = "") {
40
+ if (str && !isDashCase(str) && !hasType(prefix, str)) {
41
+ return `${prefix}${capitalize(str)}`;
42
+ }
43
+ return str;
44
+ }
45
+ function addTheme(str, theme) {
46
+ const hasTheme = getTheme(theme).length;
47
+ if (hasTheme && str.indexOf(theme) === -1) {
48
+ return `${str}${capitalize(theme)}`;
49
+ }
50
+ return str;
51
+ }
52
+ function getColorByName(name, theme = "") {
53
+ if (!name) {
54
+ return undefined;
55
+ }
56
+ const defaultColor = convertToColorName(name);
57
+ const themedColor = convertToColorName(name, theme);
58
+ // lets just try to get the color first to save some cycles
59
+ let resolvedToken = tokens[themedColor];
60
+ if (!resolvedToken) {
61
+ resolvedToken = tokens[defaultColor];
62
+ }
63
+ return resolvedToken;
64
+ }
65
+ function convertToColorName(name = "", theme = "") {
66
+ let colorResolution = name;
67
+ const dash = isDashCase(name);
68
+ if (dash) {
69
+ colorResolution = camelize(colorResolution);
70
+ }
71
+ colorResolution = addPrefix("color", colorResolution);
72
+ colorResolution = addTheme(colorResolution, theme);
73
+ // takes care of the case where colorPrimaryDark ends up with ColorPrimaryDark
74
+ colorResolution = lowerCaseFirst(colorResolution);
75
+ return colorResolution;
76
+ }
77
+ function shadeRGBColor(color, percent) {
78
+ const f = color.split(","), t = percent < 0 ? 0 : 255, p = percent < 0 ? percent * -1 : percent;
79
+ let R = parseInt(f[0].slice(4)), G = parseInt(f[1]), B = parseInt(f[2]);
80
+ R = Math.round((t - R) * p) + R;
81
+ G = Math.round((t - G) * p) + G;
82
+ B = Math.round((t - B) * p) + B;
83
+ R = R < 0 ? 0 : R;
84
+ R = R > 255 ? 255 : R;
85
+ G = G < 0 ? 0 : G;
86
+ G = G > 255 ? 255 : G;
87
+ B = B < 0 ? 0 : B;
88
+ B = B > 255 ? 255 : B;
89
+ return `rgb(${R},${G},${B})`;
90
+ }
91
+
92
+ export { capitalizeFirstLetter as c, getColorByName as g, shadeRGBColor as s };