@eunomia/elements 1.0.0-beta.6 → 1.0.0-beta.8

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 (327) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/components/chunks/{chunk-KDN4O5W2.js → chunk-32L2QYWQ.js} +5 -5
  3. package/dist/cdn/components/chunks/{chunk-JYIIWN2P.js → chunk-36KLGY6U.js} +8 -8
  4. package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
  5. package/dist/cdn/components/chunks/{chunk-2Y2EU2CI.js → chunk-3UUZM7X2.js} +1 -1
  6. package/dist/cdn/components/chunks/chunk-55PUDL7D.js +109 -0
  7. package/dist/cdn/components/chunks/chunk-5LA5DQMP.js +1 -0
  8. package/dist/cdn/components/chunks/chunk-5LXGJVJR.js +1 -0
  9. package/dist/cdn/components/chunks/{chunk-ZKZV2YG5.js → chunk-5XPOGBPL.js} +1 -1
  10. package/dist/cdn/components/chunks/{chunk-LMVW522V.js → chunk-62RLISRD.js} +1 -1
  11. package/dist/cdn/components/chunks/{chunk-PMPSJG5V.js → chunk-6FYW5TQU.js} +3 -3
  12. package/dist/cdn/components/chunks/chunk-6TIEBY34.js +1 -0
  13. package/dist/cdn/components/chunks/{chunk-MOMYII3P.js → chunk-AH2SKZ7T.js} +14 -1
  14. package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
  15. package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
  16. package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
  17. package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
  18. package/dist/cdn/components/chunks/{chunk-UDVB4LAE.js → chunk-I4ERDXSM.js} +5 -3
  19. package/dist/cdn/components/chunks/{chunk-QZ5SHR3I.js → chunk-J3SZBXM6.js} +2 -2
  20. package/dist/cdn/components/chunks/chunk-JAGZL7JH.js +1 -0
  21. package/dist/cdn/components/chunks/{chunk-VYFR364B.js → chunk-LD35BFNK.js} +18 -17
  22. package/dist/cdn/components/chunks/{chunk-XDPRWUKN.js → chunk-MQQJ6DID.js} +1 -1
  23. package/dist/cdn/components/chunks/chunk-P6LGU3FT.js +1 -0
  24. package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
  25. package/dist/cdn/components/chunks/{chunk-UYZR4JXZ.js → chunk-QSZO4GIH.js} +45 -9
  26. package/dist/cdn/components/chunks/{chunk-7KKWYPHY.js → chunk-QXQ25SQS.js} +21 -19
  27. package/dist/cdn/components/chunks/{chunk-SZYEBMG6.js → chunk-QYB6Z6FG.js} +5 -5
  28. package/dist/cdn/components/chunks/{chunk-RIFF2D2F.js → chunk-RGC3I6MK.js} +1 -1
  29. package/dist/cdn/components/chunks/{chunk-L2ADCEN7.js → chunk-SVGWCKWT.js} +1 -1
  30. package/dist/cdn/components/chunks/{chunk-N6ZW5CDN.js → chunk-TCSB2MLU.js} +1 -1
  31. package/dist/cdn/components/chunks/{chunk-MQQ4BGVJ.js → chunk-TFTRCIIK.js} +7 -6
  32. package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
  33. package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
  34. package/dist/cdn/components/chunks/chunk-WIUERJII.js +1 -0
  35. package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
  36. package/dist/cdn/components/eun-alert.js +13 -6
  37. package/dist/cdn/components/eun-animate.js +6 -6
  38. package/dist/cdn/components/eun-badge.js +1 -1
  39. package/dist/cdn/components/eun-button.js +1 -1
  40. package/dist/cdn/components/eun-calendar.js +2 -2
  41. package/dist/cdn/components/eun-card.js +4 -4
  42. package/dist/cdn/components/eun-carousel.js +26 -22
  43. package/dist/cdn/components/eun-check-card.js +1 -1
  44. package/dist/cdn/components/eun-checkbox-list.js +11 -8
  45. package/dist/cdn/components/eun-checkbox.js +1 -1
  46. package/dist/cdn/components/eun-chip.js +17 -11
  47. package/dist/cdn/components/eun-collapse.js +1 -1
  48. package/dist/cdn/components/eun-color-picker.js +74 -69
  49. package/dist/cdn/components/eun-counter.js +16 -14
  50. package/dist/cdn/components/eun-date-picker.js +67 -63
  51. package/dist/cdn/components/eun-description-list.js +2 -2
  52. package/dist/cdn/components/eun-divider.js +3 -3
  53. package/dist/cdn/components/eun-drawer.js +21 -22
  54. package/dist/cdn/components/eun-dropdown-button.js +1 -1
  55. package/dist/cdn/components/eun-dropdown-item.js +3 -3
  56. package/dist/cdn/components/eun-fab.js +2 -2
  57. package/dist/cdn/components/eun-icon.js +1 -1
  58. package/dist/cdn/components/eun-image-card.js +1 -1
  59. package/dist/cdn/components/eun-image-carousel.js +10 -10
  60. package/dist/cdn/components/eun-infinite-list.js +1 -1
  61. package/dist/cdn/components/eun-input-file.js +21 -21
  62. package/dist/cdn/components/eun-input-phone.js +16 -12
  63. package/dist/cdn/components/eun-input.js +1 -1
  64. package/dist/cdn/components/eun-link.js +59 -13
  65. package/dist/cdn/components/eun-loader.js +1 -1
  66. package/dist/cdn/components/eun-modal.js +33 -23
  67. package/dist/cdn/components/eun-pagination.js +16 -16
  68. package/dist/cdn/components/eun-password-strength.js +14 -10
  69. package/dist/cdn/components/eun-radio-card.js +1 -1
  70. package/dist/cdn/components/eun-radio-list.js +11 -8
  71. package/dist/cdn/components/eun-radio.js +1 -1
  72. package/dist/cdn/components/eun-rating.js +276 -0
  73. package/dist/cdn/components/eun-scheduler-event-editor.js +11 -11
  74. package/dist/cdn/components/eun-scheduler-event.js +1 -1
  75. package/dist/cdn/components/eun-scheduler.js +28 -28
  76. package/dist/cdn/components/eun-search.js +36 -32
  77. package/dist/cdn/components/eun-select.js +27 -27
  78. package/dist/cdn/components/eun-sidebar.js +73 -26
  79. package/dist/cdn/components/eun-skeleton.js +1 -1
  80. package/dist/cdn/components/eun-slider.js +3 -3
  81. package/dist/cdn/components/eun-sliding-card.js +1 -1
  82. package/dist/cdn/components/eun-step.js +5 -4
  83. package/dist/cdn/components/eun-stepper.js +30 -30
  84. package/dist/cdn/components/eun-switch.js +1 -1
  85. package/dist/cdn/components/eun-tab-group.js +4 -4
  86. package/dist/cdn/components/eun-tab-panel.js +1 -1
  87. package/dist/cdn/components/eun-tab.js +1 -1
  88. package/dist/cdn/components/eun-table-action-bar.js +1 -1
  89. package/dist/cdn/components/eun-table.js +2 -2
  90. package/dist/cdn/components/eun-tag.js +3 -3
  91. package/dist/cdn/components/eun-textarea.js +36 -28
  92. package/dist/cdn/components/eun-time-picker.js +31 -28
  93. package/dist/cdn/components/eun-toast.js +24 -15
  94. package/dist/cdn/components/eun-toggle-group.js +75 -37
  95. package/dist/cdn/components/eun-toggle-item.js +9 -9
  96. package/dist/cdn/components/eun-toggle.js +2 -2
  97. package/dist/cdn/components/eun-toolbar.js +22 -22
  98. package/dist/cdn/components/eun-tooltip.js +6 -6
  99. package/dist/cdn/styles/eunomia-themes.css +1 -1
  100. package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
  101. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
  102. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
  103. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
  104. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
  105. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
  106. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
  107. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
  108. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
  109. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
  110. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
  111. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
  112. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
  113. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
  114. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
  115. package/dist/components/action/button/button.d.ts +4 -3
  116. package/dist/components/action/button/button.js +6 -9
  117. package/dist/components/action/button/button.styles.js +13 -8
  118. package/dist/components/action/dropdown-button/dropdown-button.d.ts +4 -6
  119. package/dist/components/action/dropdown-button/dropdown-button.js +16 -13
  120. package/dist/components/action/dropdown-button/dropdown-item.d.ts +10 -2
  121. package/dist/components/action/dropdown-button/dropdown-item.js +24 -9
  122. package/dist/components/action/link/link.d.ts +10 -1
  123. package/dist/components/action/link/link.js +13 -1
  124. package/dist/components/action/link/link.styles.js +50 -3
  125. package/dist/components/action/toggle/toggle-group.d.ts +12 -2
  126. package/dist/components/action/toggle/toggle-group.js +18 -3
  127. package/dist/components/action/toggle/toggle-group.styles.js +58 -20
  128. package/dist/components/action/toggle/toggle-item.js +1 -3
  129. package/dist/components/action/toggle/toggle-item.styles.js +7 -7
  130. package/dist/components/action/toggle/toggle.js +1 -1
  131. package/dist/components/alert/alert/alert.d.ts +9 -7
  132. package/dist/components/alert/alert/alert.js +11 -14
  133. package/dist/components/alert/alert/alert.styles.js +9 -2
  134. package/dist/components/alert/drawer/drawer.d.ts +30 -5
  135. package/dist/components/alert/drawer/drawer.js +48 -13
  136. package/dist/components/alert/drawer/drawer.styles.js +7 -7
  137. package/dist/components/alert/modal/modal.d.ts +35 -10
  138. package/dist/components/alert/modal/modal.js +55 -28
  139. package/dist/components/alert/modal/modal.styles.js +17 -6
  140. package/dist/components/alert/toast/toast.d.ts +7 -5
  141. package/dist/components/alert/toast/toast.js +12 -15
  142. package/dist/components/alert/toast/toast.styles.js +18 -9
  143. package/dist/components/content/badge/badge.js +2 -2
  144. package/dist/components/content/card/card.js +1 -1
  145. package/dist/components/content/card/card.styles.js +2 -2
  146. package/dist/components/content/chip/chip.d.ts +4 -4
  147. package/dist/components/content/chip/chip.js +11 -10
  148. package/dist/components/content/chip/chip.styles.js +9 -3
  149. package/dist/components/content/description-list/description-list.js +3 -3
  150. package/dist/components/content/icon/icon.d.ts +3 -0
  151. package/dist/components/content/icon/icon.js +3 -0
  152. package/dist/components/content/icon/icon.style.d.ts +2 -0
  153. package/dist/components/content/icon/icon.style.js +4 -0
  154. package/dist/components/content/image-carousel/image-carousel.d.ts +12 -12
  155. package/dist/components/content/image-carousel/image-carousel.js +29 -28
  156. package/dist/components/content/password-strength/password-strength.d.ts +21 -6
  157. package/dist/components/content/password-strength/password-strength.js +37 -16
  158. package/dist/components/content/password-strength/password-strength.styles.js +4 -0
  159. package/dist/components/content/tag/tag.js +2 -2
  160. package/dist/components/content/tooltip/tooltip.d.ts +16 -9
  161. package/dist/components/content/tooltip/tooltip.js +31 -15
  162. package/dist/components/content/tooltip/tooltip.styles.js +1 -1
  163. package/dist/components/form/checkbox/check-card.d.ts +1 -0
  164. package/dist/components/form/checkbox/check-card.js +1 -0
  165. package/dist/components/form/checkbox/checkbox-list.d.ts +17 -0
  166. package/dist/components/form/checkbox/checkbox-list.js +39 -10
  167. package/dist/components/form/checkbox/checkbox.d.ts +1 -0
  168. package/dist/components/form/checkbox/checkbox.js +3 -1
  169. package/dist/components/form/checkbox/checkbox.styles.js +3 -2
  170. package/dist/components/form/color-picker/color-picker.d.ts +47 -28
  171. package/dist/components/form/color-picker/color-picker.js +73 -51
  172. package/dist/components/form/color-picker/color-picker.styles.js +14 -1
  173. package/dist/components/form/counter/counter.d.ts +24 -18
  174. package/dist/components/form/counter/counter.js +61 -61
  175. package/dist/components/form/counter/counter.styles.js +6 -4
  176. package/dist/components/form/date-picker/date-picker.d.ts +33 -7
  177. package/dist/components/form/date-picker/date-picker.js +82 -56
  178. package/dist/components/form/date-picker/date-picker.styles.js +9 -6
  179. package/dist/components/form/input/input.d.ts +43 -39
  180. package/dist/components/form/input/input.js +91 -110
  181. package/dist/components/form/input-file/input-file.d.ts +26 -13
  182. package/dist/components/form/input-file/input-file.js +35 -35
  183. package/dist/components/form/input-file/input-file.styles.js +4 -4
  184. package/dist/components/form/input-phone/input-phone.d.ts +28 -5
  185. package/dist/components/form/input-phone/input-phone.js +47 -13
  186. package/dist/components/form/input-phone/input-phone.styles.js +6 -3
  187. package/dist/components/form/radio/radio-card.d.ts +1 -0
  188. package/dist/components/form/radio/radio-card.js +1 -0
  189. package/dist/components/form/radio/radio-list.d.ts +23 -7
  190. package/dist/components/form/radio/radio-list.js +47 -22
  191. package/dist/components/form/radio/radio.d.ts +1 -0
  192. package/dist/components/form/radio/radio.js +1 -0
  193. package/dist/components/form/rating/rating.d.ts +349 -0
  194. package/dist/components/form/rating/rating.js +665 -0
  195. package/dist/components/form/rating/rating.styles.d.ts +1 -0
  196. package/dist/components/form/rating/rating.styles.js +213 -0
  197. package/dist/components/form/search/search.d.ts +72 -18
  198. package/dist/components/form/search/search.js +135 -72
  199. package/dist/components/form/search/search.styles.js +2 -0
  200. package/dist/components/form/select/select.d.ts +29 -10
  201. package/dist/components/form/select/select.js +65 -41
  202. package/dist/components/form/shared-styles/field.styles.js +45 -8
  203. package/dist/components/form/shared-styles/listbox.styles.js +15 -1
  204. package/dist/components/form/slider/slider.d.ts +7 -8
  205. package/dist/components/form/slider/slider.js +9 -12
  206. package/dist/components/form/switch/switch.d.ts +1 -0
  207. package/dist/components/form/switch/switch.js +1 -0
  208. package/dist/components/form/textarea/textarea.d.ts +90 -23
  209. package/dist/components/form/textarea/textarea.js +194 -44
  210. package/dist/components/form/textarea/textarea.styles.js +3 -0
  211. package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
  212. package/dist/components/form/time-picker/time-picker-columns.js +8 -8
  213. package/dist/components/form/time-picker/time-picker.d.ts +30 -9
  214. package/dist/components/form/time-picker/time-picker.js +66 -40
  215. package/dist/components/form/time-picker/time-picker.styles.js +7 -5
  216. package/dist/components/layout/animate/animate.js +3 -2
  217. package/dist/components/layout/animate/animate.styles.js +2 -2
  218. package/dist/components/layout/divider/divider.js +1 -1
  219. package/dist/components/layout/divider/divider.styles.js +1 -1
  220. package/dist/components/loader/loader/loader.js +2 -2
  221. package/dist/components/loader/loader/loader.styles.js +14 -12
  222. package/dist/components/loader/skeleton/skeleton.js +1 -1
  223. package/dist/components/navigation/carousel/carousel.d.ts +32 -9
  224. package/dist/components/navigation/carousel/carousel.js +88 -41
  225. package/dist/components/navigation/carousel/carousel.styles.js +10 -6
  226. package/dist/components/navigation/pagination/pagination.d.ts +23 -21
  227. package/dist/components/navigation/pagination/pagination.js +30 -53
  228. package/dist/components/navigation/sidebar/sidebar.d.ts +113 -65
  229. package/dist/components/navigation/sidebar/sidebar.js +161 -118
  230. package/dist/components/navigation/sidebar/sidebar.styles.d.ts +1 -1
  231. package/dist/components/navigation/sidebar/sidebar.styles.js +74 -24
  232. package/dist/components/navigation/stepper/step.js +9 -8
  233. package/dist/components/navigation/stepper/stepper.d.ts +1 -3
  234. package/dist/components/navigation/stepper/stepper.js +15 -26
  235. package/dist/components/navigation/tabs/tab-group/tab-group.js +2 -2
  236. package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +2 -2
  237. package/dist/components/navigation/toolbar/toolbar.d.ts +23 -13
  238. package/dist/components/navigation/toolbar/toolbar.js +28 -35
  239. package/dist/components/navigation/toolbar/toolbar.styles.js +18 -17
  240. package/dist/events/select.event.d.ts +3 -2
  241. package/dist/events/select.event.js +2 -1
  242. package/dist/features/scheduler/calendar/calendar.js +1 -1
  243. package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
  244. package/dist/features/scheduler/scheduler/scheduler.js +15 -24
  245. package/dist/features/scheduler/scheduler-event/scheduler-event.js +3 -3
  246. package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +1 -1
  247. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
  248. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +7 -8
  249. package/dist/features/table/table/table.js +1 -1
  250. package/dist/features/table/table-action-bar/table-action-bar.js +2 -2
  251. package/dist/i18n/en.d.ts +68 -0
  252. package/dist/i18n/en.js +68 -0
  253. package/dist/i18n/fr.js +68 -2
  254. package/dist/index.d.ts +3 -0
  255. package/dist/index.js +1 -0
  256. package/dist/mixins/button.mixin.d.ts +1 -1
  257. package/dist/mixins/button.mixin.js +9 -6
  258. package/dist/mixins/check.mixin.js +11 -10
  259. package/dist/mixins/dialog-surface.mixin.d.ts +8 -0
  260. package/dist/mixins/disabled.mixin.d.ts +5 -0
  261. package/dist/mixins/disabled.mixin.js +21 -1
  262. package/dist/mixins/editable.mixin.js +28 -5
  263. package/dist/mixins/field-appearance.mixin.js +3 -2
  264. package/dist/mixins/field-size.mixin.d.ts +19 -0
  265. package/dist/mixins/field-size.mixin.js +33 -0
  266. package/dist/mixins/form.mixin.d.ts +4 -0
  267. package/dist/mixins/form.mixin.js +87 -13
  268. package/dist/mixins/localizable.mixin.d.ts +1 -1
  269. package/dist/mixins/localizable.mixin.js +1 -1
  270. package/dist/mixins/radio.mixin.js +11 -10
  271. package/dist/mixins/readonly.mixin.d.ts +2 -1
  272. package/dist/mixins/readonly.mixin.js +10 -3
  273. package/dist/mixins/rounded.mixin.d.ts +18 -0
  274. package/dist/mixins/rounded.mixin.js +32 -0
  275. package/dist/ssr/alert-ssr.css +187 -0
  276. package/dist/ssr/badge-ssr.css +67 -0
  277. package/dist/ssr/breadcrumb-ssr.css +41 -0
  278. package/dist/ssr/button-ssr.css +5 -5
  279. package/dist/ssr/card-ssr.css +27 -15
  280. package/dist/ssr/carousel-ssr.css +247 -0
  281. package/dist/ssr/checkbox-ssr.css +67 -0
  282. package/dist/ssr/chip-ssr.css +250 -0
  283. package/dist/ssr/collapse-ssr.css +180 -0
  284. package/dist/ssr/field-ssr.css +202 -0
  285. package/dist/ssr/icon-ssr.css +266 -0
  286. package/dist/ssr/image-carousel-ssr.css +34 -0
  287. package/dist/ssr/links-ssr.css +44 -1
  288. package/dist/ssr/pagination-ssr.css +4 -0
  289. package/dist/ssr/rating-ssr.css +254 -0
  290. package/dist/ssr/sidebar-ssr.css +102 -3
  291. package/dist/ssr/skeleton-ssr.css +63 -0
  292. package/dist/ssr/tabs-ssr.css +129 -0
  293. package/dist/ssr/toggle-group-ssr.css +233 -0
  294. package/dist/ssr/toolbar-ssr.css +81 -2
  295. package/dist/types/variant.type.d.ts +4 -1
  296. package/dist/utils/boolean.utils.d.ts +14 -0
  297. package/dist/utils/boolean.utils.js +20 -0
  298. package/dist/utils/dropdown-menu.utils.d.ts +1 -1
  299. package/dist/utils/focusable-elements.utils.d.ts +12 -0
  300. package/dist/utils/focusable-elements.utils.js +26 -0
  301. package/dist/utils/implicit-submission.utils.d.ts +18 -0
  302. package/dist/utils/implicit-submission.utils.js +79 -0
  303. package/dist/utils/input-modality.utils.d.ts +13 -0
  304. package/dist/utils/input-modality.utils.js +34 -0
  305. package/dist/utils/listbox-options.utils.d.ts +11 -0
  306. package/dist/utils/listbox-options.utils.js +41 -3
  307. package/dist/utils/theme-generator.utils.d.ts +8 -2
  308. package/dist/utils/theme-generator.utils.js +30 -9
  309. package/package.json +26 -7
  310. package/styles/themes/mixins/eunomia-neutrals.mixin.scss +6 -2
  311. package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +6 -2
  312. package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +6 -2
  313. package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +6 -2
  314. package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +6 -2
  315. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +6 -2
  316. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +6 -2
  317. package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +6 -2
  318. package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +0 -1
  319. package/dist/cdn/components/chunks/chunk-6VK6SHCG.js +0 -1
  320. package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +0 -1
  321. package/dist/cdn/components/chunks/chunk-BQFJR2UP.js +0 -110
  322. package/dist/cdn/components/chunks/chunk-G5SBDQQ3.js +0 -1
  323. package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +0 -1
  324. package/dist/cdn/components/chunks/chunk-PE4DAXHQ.js +0 -3
  325. package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +0 -1
  326. package/dist/cdn/components/chunks/chunk-UDOZRIJZ.js +0 -1
  327. package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +0 -38
@@ -1,4 +1,5 @@
1
1
  import { LitElement, PropertyValues, TemplateResult } from "lit";
2
+ import { EunomiaBreakpoint } from "../../../breakpoints.js";
2
3
  /**
3
4
  * Tag name of the sidebar component.
4
5
  */
@@ -16,6 +17,11 @@ export type EunomiaSidebarCollapseMode = "mini" | "hidden";
16
17
  * Where the built-in collapse/expand toggle button renders.
17
18
  */
18
19
  export type EunomiaSidebarTogglePlacement = "edge" | "inline";
20
+ /**
21
+ * The sidebar's color scheme.
22
+ */
23
+ export type EunomiaSidebarTheme = "light" | "dark";
24
+ declare const EunomiaSidebar_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
19
25
  /**
20
26
  * A persistent, non-modal navigation panel that lays out beside page
21
27
  * content, sticky by default, so dropping it into a full-height flex
@@ -43,34 +49,40 @@ export type EunomiaSidebarTogglePlacement = "edge" | "inline";
43
49
  * @slot footer - Optional footer content, such as a user menu, fixed below the scrollable body. Omitted entirely when nothing is slotted
44
50
  * @prop {'start' | 'end'} [position='start'] - Which edge of the layout the sidebar is pinned against
45
51
  * @prop {string} heading - An optional heading, rendered as the header slot's fallback content, and used as the accessible name when set
46
- * @prop {boolean} [collapsible=true] - Whether the built-in toggle button renders at all. The collapse, expand, and toggle methods still work regardless, for driving collapse from elsewhere, such as a page header menu button. Set to false to rely on resizable alone
52
+ * @prop {'mobile' | 'tablet' | 'laptop' | 'desktop'} hideBelow - Hides the sidebar below this breakpoint, for a layout where another navigation takes over on small screens, such as the toolbar's mobile panel. Also applies before the component loads when sidebar-ssr.css is linked
53
+ * @attr {'mobile' | 'tablet' | 'laptop' | 'desktop'} hide-below - Hides the sidebar below this breakpoint
54
+ * @prop {'light' | 'dark'} [theme='light'] - The sidebar's color scheme. Dark uses the inverse surface, for a sidebar on a dark background
55
+ * @prop {boolean} [collapsible=true] - Whether the built-in toggle button renders at all. The collapse, expand, and toggle methods still work regardless, for driving collapse from elsewhere, such as a page header menu button. Set to false, or the attribute to "false", to rely on resizable alone
47
56
  * @prop {'edge' | 'inline'} [togglePlacement='edge'] - Where the built-in toggle button renders: edge floats on the border, and inline sits inside the panel, pinned below the body and footer
48
57
  * @attr {'edge' | 'inline'} [toggle-placement='edge'] - Where the built-in toggle button renders: edge floats on the border, and inline sits inside the panel, pinned below the body and footer
49
58
  * @prop {'mini' | 'hidden'} [collapseMode='mini'] - The shape the collapsed state takes
50
59
  * @attr {'mini' | 'hidden'} [collapse-mode='mini'] - The shape the collapsed state takes
51
60
  * @prop {boolean} [collapsed=false] - Whether the sidebar is currently collapsed
52
- * @prop {string} ariaLabelExpand - The accessible label of the toggle button while collapsed
53
- * @attr {string} [aria-label-expand='Expand sidebar'] - The accessible label of the toggle button while collapsed
54
- * @prop {string} ariaLabelCollapse - The accessible label of the toggle button while expanded
55
- * @attr {string} [aria-label-collapse='Collapse sidebar'] - The accessible label of the toggle button while expanded
56
- * @prop {boolean} [resizable=true] - Whether the border can be dragged, or, once focused, adjusted with arrow keys, to resize the panel
57
- * @prop {string} ariaLabelResize - The accessible label of the drag-to-resize border
58
- * @attr {string} [aria-label-resize='Resize sidebar'] - The accessible label of the drag-to-resize border
59
- * @fires {ChangeEvent} eunchange - Fired whenever collapsed changes, including as a result of dragging or keyboard-resizing past the collapse threshold. Dragging the border all the way to a full hide is reachable regardless of collapseMode, though keyboard resizing never goes past the mini floor
61
+ * @prop {string} [expandLabel] - The accessible label of the toggle button while collapsed. Defaults to the localized string for the current locale (English: "Expand sidebar")
62
+ * @attr {string} [expand-label] - The accessible label of the toggle button while collapsed. Defaults to the localized string for the current locale (English: "Expand sidebar")
63
+ * @prop {string} [collapseLabel] - The accessible label of the toggle button while expanded. Defaults to the localized string for the current locale (English: "Collapse sidebar")
64
+ * @attr {string} [collapse-label] - The accessible label of the toggle button while expanded. Defaults to the localized string for the current locale (English: "Collapse sidebar")
65
+ * @prop {boolean} [resizable=true] - Whether the border can be dragged, or, once focused, adjusted with arrow keys, to resize the panel. Set to false, or the attribute to "false", to turn it off
66
+ * @prop {string} [resizeLabel] - The accessible label of the drag-to-resize border. Defaults to the localized string for the current locale (English: "Resize sidebar")
67
+ * @attr {string} [resize-label] - The accessible label of the drag-to-resize border. Defaults to the localized string for the current locale (English: "Resize sidebar")
68
+ * @fires {ChangeEvent} eunchange - Fired whenever collapsed changes, including as a result of dragging or keyboard-resizing below the mini width. A collapse reached this way takes the shape set by collapseMode, and expanding again returns to --sidebar-width
60
69
  * @cssprop [--sidebar-width] - Sets the expanded width of the sidebar, also the floor of the drag-resize range and, once resized, holds the user's chosen width
61
70
  * @cssprop [--sidebar-mini-width] - Sets the width of the mini collapsed state, also the floor of the drag-resize range
62
71
  * @cssprop [--sidebar-max-width] - Sets the ceiling of the drag-resize range
63
- * @cssprop [--sidebar-background] - Sets the background color of the sidebar
72
+ * @cssprop [--sidebar-background] - Sets the background color of the sidebar. Use an opaque color, or transparent to show the background behind the sidebar
64
73
  * @cssprop [--sidebar-color] - Sets the text color of the sidebar
65
74
  * @cssprop [--sidebar-border-color] - Sets the color of the sidebar's side border
66
75
  * @cssprop [--sidebar-padding] - Sets the padding of the header, body, and footer
67
76
  * @cssprop [--sidebar-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --sidebar-padding is set
68
77
  * @cssprop [--sidebar-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --sidebar-padding is set
69
78
  * @cssprop [--sidebar-gap] - Sets the gap inside the header and footer rows
79
+ * @cssprop [--sidebar-toggle-color] - Sets the color of the toggle button
80
+ * @cssprop [--sidebar-toggle-background-hover] - Sets the background color of the toggle button on hover
81
+ * @cssprop [--sidebar-resize-handle-delay] - Sets how long the pointer must rest on the border before the resize handle shows. Set to 0 to show it right away
70
82
  * @cssprop [--sidebar-transition-duration] - Sets the duration of the collapse and resize transition
71
83
  * @element eun-sidebar
72
84
  */
73
- export declare class EunomiaSidebar extends LitElement {
85
+ export declare class EunomiaSidebar extends EunomiaSidebar_base {
74
86
  /**
75
87
  * Styles to import to the component.
76
88
  *
@@ -78,7 +90,7 @@ export declare class EunomiaSidebar extends LitElement {
78
90
  * @internal
79
91
  * @readonly
80
92
  */
81
- static readonly styles: import("lit").CSSResult;
93
+ static readonly styles: import("lit").CSSResult[];
82
94
  /**
83
95
  * Which edge of the layout the sidebar is pinned against — decides which
84
96
  * edge the border, toggle button, and resize handle render on : always
@@ -86,6 +98,20 @@ export declare class EunomiaSidebar extends LitElement {
86
98
  * @default start
87
99
  */
88
100
  position: EunomiaSidebarPosition;
101
+ /**
102
+ * Hides the sidebar below this breakpoint (`display: none`), for a layout
103
+ * where another navigation takes over on small screens, such as
104
+ * `eun-toolbar`'s mobile panel, which switches at `tablet` by default.
105
+ * A plain `@media` switch in the stylesheet, mirrored in
106
+ * `sidebar-ssr.css`, so it applies from first paint.
107
+ */
108
+ hideBelow?: EunomiaBreakpoint;
109
+ /**
110
+ * The sidebar's color scheme : `dark` uses the inverse surface, the same
111
+ * one `eun-toolbar`'s own `theme="dark"` does.
112
+ * @default light
113
+ */
114
+ theme: EunomiaSidebarTheme;
89
115
  /**
90
116
  * Optional heading text, rendered as the `header` slot's fallback
91
117
  * content, and used as the accessible name (there's no dialog to
@@ -97,7 +123,9 @@ export declare class EunomiaSidebar extends LitElement {
97
123
  * for where) ; `collapse()`/`expand()`/`toggleCollapse()` work regardless,
98
124
  * for driving collapse from elsewhere (e.g. a page header menu button) —
99
125
  * set this to `false` to drop the built-in button entirely and rely on
100
- * `resizable` (dragging the border past the mini floor) alone.
126
+ * `resizable` (dragging the border past the mini floor) alone. The
127
+ * attribute value `"false"` turns it off too (see {@link
128
+ * defaultTrueConverter}).
101
129
  * @default true
102
130
  */
103
131
  collapsible: boolean;
@@ -124,27 +152,28 @@ export declare class EunomiaSidebar extends LitElement {
124
152
  collapsed: boolean;
125
153
  /**
126
154
  * Accessible label of the toggle button while collapsed (offering to expand it).
127
- * @default Expand sidebar
155
+ * Falls back to the localized string for the current locale when unset.
128
156
  */
129
- ariaLabelExpand: string;
157
+ expandLabel?: string;
130
158
  /**
131
159
  * Accessible label of the toggle button while expanded (offering to collapse it).
132
- * @default Collapse sidebar
160
+ * Falls back to the localized string for the current locale when unset.
133
161
  */
134
- ariaLabelCollapse: string;
162
+ collapseLabel?: string;
135
163
  /**
136
164
  * Whether the border can be dragged (or, once focused, adjusted with the
137
165
  * arrow keys) to resize the panel between `--sidebar-mini-width` and
138
166
  * `--sidebar-max-width`. Independent of `collapsible`, which only
139
- * controls the discrete toggle button.
167
+ * controls the discrete toggle button. The attribute value `"false"`
168
+ * turns it off too (see {@link defaultTrueConverter}).
140
169
  * @default true
141
170
  */
142
171
  resizable: boolean;
143
172
  /**
144
173
  * Accessible label of the drag-to-resize border.
145
- * @default Resize sidebar
174
+ * Falls back to the localized string for the current locale when unset.
146
175
  */
147
- ariaLabelResize: string;
176
+ resizeLabel?: string;
148
177
  /**
149
178
  * The drag-to-resize border.
150
179
  * @internal
@@ -170,8 +199,7 @@ export declare class EunomiaSidebar extends LitElement {
170
199
  private dragStartWidth;
171
200
  /**
172
201
  * The last *unclamped* width computed during a drag, used on release to
173
- * decide whether the drag went far enough past the mini floor to snap
174
- * into a full `collapse-mode="hidden"` collapse.
202
+ * decide whether the drag went below the mini floor and collapses.
175
203
  * @internal
176
204
  */
177
205
  private lastRawWidth;
@@ -184,13 +212,6 @@ export declare class EunomiaSidebar extends LitElement {
184
212
  * @internal
185
213
  */
186
214
  private dragStartCollapsed;
187
- /**
188
- * Whether `draggedHidden` was set right before the current drag started
189
- * — compared against the final state at release for the same reason
190
- * `dragStartCollapsed` is.
191
- * @internal
192
- */
193
- private dragStartHidden;
194
215
  /**
195
216
  * Whether `pointermove` actually fired at least once since the current
196
217
  * `pointerdown` — a plain click on the resize handle (no movement)
@@ -205,18 +226,18 @@ export declare class EunomiaSidebar extends LitElement {
205
226
  */
206
227
  private dragging;
207
228
  /**
208
- * Whether a drag has forced the panel fully hidden (width `0`, border
209
- * transparent) regardless of `collapse-mode` — `collapse-mode="mini"`'s
210
- * own collapsed state normally floors at `--sidebar-mini-width`, but a
211
- * drag that goes well past that floor toward zero can still reach a full
212
- * hide, matching what `collapse-mode="hidden"` already looks like.
213
- * Reflected so CSS can force `--_width`/`border-color` to win over
214
- * collapse-mode's own (otherwise fixed) collapsed-state rule. Cleared by
215
- * any discrete collapse()/expand()/toggleCollapse() (button or API),
216
- * which always takes precedence over a lingering drag state.
229
+ * Whether the resize handle shows its highlight and resize cursor : set
230
+ * once the pointer has rested on the border for
231
+ * `--sidebar-resize-handle-delay`, or right away on `pointerdown`, so
232
+ * merely crossing the border on the way to the content doesn't flash it.
233
+ * @internal
234
+ */
235
+ private resizeHandleArmed;
236
+ /**
237
+ * The pending timer arming {@link resizeHandleArmed}, if any.
217
238
  * @internal
218
239
  */
219
- private draggedHidden;
240
+ private resizeHandleArmTimer?;
220
241
  /**
221
242
  * The width, in px, applied by the current (or most recent) drag/keyboard
222
243
  * resize — `undefined` until the panel has been manually resized at
@@ -256,6 +277,11 @@ export declare class EunomiaSidebar extends LitElement {
256
277
  * @param changed the changed properties.
257
278
  */
258
279
  protected updated(changed: PropertyValues): void;
280
+ /**
281
+ * Lifecycle hook called when the element is disconnected from the DOM.
282
+ * Clears a pending resize handle arming timer.
283
+ */
284
+ disconnectedCallback(): void;
259
285
  /**
260
286
  * Collapses the sidebar.
261
287
  */
@@ -276,6 +302,13 @@ export declare class EunomiaSidebar extends LitElement {
276
302
  * @private
277
303
  */
278
304
  private setCollapsed;
305
+ /**
306
+ * Drops the width a drag or keyboard resize applied, so the next expand
307
+ * returns to `--sidebar-width` instead of the narrow width the resize
308
+ * collapsed from.
309
+ * @private
310
+ */
311
+ private forgetResizedWidth;
279
312
  /**
280
313
  * Reads a length custom property off the host's computed style, parsed
281
314
  * as a px number.
@@ -318,16 +351,16 @@ export declare class EunomiaSidebar extends LitElement {
318
351
  * `--sidebar-width` override, so a drag tracks the pointer immediately
319
352
  * rather than waiting on Lit's render cycle) and reactively (via
320
353
  * `liveWidthPx`, so `#resize-handle`'s `aria-valuenow` stays in sync).
321
- * Also clears `collapsed`/`draggedHidden` without dispatching : while
322
- * either reflects, its CSS rule sets `--_width` directly and would
323
- * otherwise ignore every live update below — `settleWidth`/
324
- * `settleCollapsedState` restore the correct final truth (and their one
325
- * authoritative `eunchange`) once the interaction ends.
354
+ * Also clears `collapsed` without dispatching : while it reflects, its
355
+ * CSS rule sets `--_width` directly and would otherwise ignore every live
356
+ * update below — `settleWidth`/`settleCollapsedState` restore the correct
357
+ * final truth (and their one authoritative `eunchange`) once the
358
+ * interaction ends.
326
359
  *
327
360
  * @param px the requested width, in px.
328
- * @param floor the minimum to clamp to — the mini width by default
329
- * (used by keyboard resizing, which never fully hides the panel), or
330
- * `0` during a live drag so it can visually approach a full hide.
361
+ * @param floor the minimum to clamp to — the mini width by default, or
362
+ * `0` during a `collapse-mode="hidden"` drag so it can visually approach
363
+ * a full hide.
331
364
  * @private
332
365
  */
333
366
  private applyWidth;
@@ -335,9 +368,10 @@ export declare class EunomiaSidebar extends LitElement {
335
368
  * Reconciles `collapsed` once a *keyboard* resize ends, comparing the
336
369
  * interaction's start and end states so exactly one `eunchange` fires
337
370
  * for a genuine transition — and none at all for a resize that never
338
- * crossed the mini floor. Never settles into `draggedHidden` : keyboard
339
- * resizing intentionally can't fully hide the panel (see
340
- * `handleResizeKeydown`).
371
+ * crossed the mini floor. Only `collapse-mode="mini"` collapses here :
372
+ * under `hidden`, collapsing would hide the panel entirely, which stays
373
+ * the toggle button's job (see `handleResizeKeydown`). A collapse forgets
374
+ * the resized width, so the next expand returns to `--sidebar-width`.
341
375
  *
342
376
  * @param widthPx the final width the interaction landed on.
343
377
  * @param wasCollapsed whether the sidebar was collapsed when the
@@ -346,21 +380,35 @@ export declare class EunomiaSidebar extends LitElement {
346
380
  */
347
381
  private settleCollapsedState;
348
382
  /**
349
- * Reconciles both `collapsed` and `draggedHidden` once a *drag* resize
350
- * ends. Three outcomes, based on where the (unclamped) drag landed :
351
- * above the mini floor, free width ; below it but not by much, a
352
- * magnetic snap up to exactly the mini width ; well below it, a full
353
- * hide (`draggedHidden`) regardless of `collapse-mode` — dragging is a
354
- * deliberate enough gesture that reaching zero should always be
355
- * reachable, unlike keyboard stepping. Fires exactly one `eunchange` iff
356
- * either flag actually changed from where the interaction started.
383
+ * Reconciles `collapsed` once a *drag* resize ends : a drag that lands
384
+ * below the mini floor collapses into whichever shape `collapse-mode`
385
+ * sets (the icon rail for `mini`, a full hide for `hidden`), and forgets
386
+ * the dragged width so the next expand returns to `--sidebar-width`.
387
+ * Anywhere else keeps the dragged width, clamped to the resize range.
388
+ * Fires exactly one `eunchange` iff `collapsed` actually changed from
389
+ * where the interaction started.
357
390
  *
358
391
  * @param rawWidth the final unclamped width the drag landed on.
359
392
  * @param wasCollapsed whether `collapsed` was set when the drag started.
360
- * @param wasHidden whether `draggedHidden` was set when the drag started.
361
393
  * @private
362
394
  */
363
395
  private settleWidth;
396
+ /**
397
+ * Arms the resize handle once the pointer has rested on the border for
398
+ * `--sidebar-resize-handle-delay` (300ms by default).
399
+ * @private
400
+ */
401
+ private readonly handleResizePointerEnter;
402
+ /**
403
+ * Disarms the resize handle as soon as the pointer leaves the border.
404
+ * @private
405
+ */
406
+ private readonly handleResizePointerLeave;
407
+ /**
408
+ * Clears {@link resizeHandleArmed} and its pending timer, if any.
409
+ * @private
410
+ */
411
+ private disarmResizeHandle;
364
412
  /**
365
413
  * Starts a drag-resize : captures the pointer on the handle itself (so
366
414
  * subsequent `pointermove`/`pointerup` keep firing there even once the
@@ -373,10 +421,10 @@ export declare class EunomiaSidebar extends LitElement {
373
421
  /**
374
422
  * Tracks an in-progress drag-resize, applying the live width as the
375
423
  * pointer moves. Direction is flipped for `position="end"`, where
376
- * dragging left (toward the panel) grows it. Tracks all the way down to
377
- * `0` (not just the mini floor) so the panel visually approaches a full
378
- * hide as the drag continues — `handleResizePointerUp` decides whether
379
- * it actually settles there.
424
+ * dragging left (toward the panel) grows it. Under `collapse-mode="mini"`
425
+ * the panel stops at the mini floor, the narrowest it can ever be ; under
426
+ * `hidden` it tracks all the way down to `0`, previewing the full hide —
427
+ * `handleResizePointerUp` decides whether it actually collapses.
380
428
  *
381
429
  * @param event the pointermove event.
382
430
  * @private
@@ -384,8 +432,7 @@ export declare class EunomiaSidebar extends LitElement {
384
432
  private readonly handleResizePointerMove;
385
433
  /**
386
434
  * Ends a drag-resize : a plain click (no movement) is a no-op ; see
387
- * `settleWidth` for how the final width resolves into `collapsed`/
388
- * `draggedHidden`.
435
+ * `settleWidth` for how the final width resolves into `collapsed`.
389
436
  *
390
437
  * @param event the pointerup/pointercancel event.
391
438
  * @private
@@ -491,3 +538,4 @@ declare global {
491
538
  [EunomiaSidebarTagName]: EunomiaSidebar;
492
539
  }
493
540
  }
541
+ export {};