@eunomia/elements 1.0.0-beta.3 → 1.0.0-beta.5

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 (394) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-2XASWWKR.js} +9 -9
  3. package/dist/cdn/components/chunks/chunk-32DTNR52.js +1 -0
  4. package/dist/cdn/components/chunks/chunk-3MTUVMM5.js +1 -0
  5. package/dist/cdn/components/chunks/chunk-5GKM5DIB.js +1 -0
  6. package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
  7. package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
  8. package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-6ETDXUH2.js} +3 -3
  9. package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
  10. package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
  11. package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-AIS3UICU.js} +9 -9
  12. package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
  13. package/dist/cdn/components/chunks/chunk-DKOPI7QA.js +415 -0
  14. package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-EAKYD33D.js} +3 -3
  15. package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
  16. package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-IDKZKLJR.js} +7 -7
  17. package/dist/cdn/components/chunks/chunk-JRGM3W7I.js +53 -0
  18. package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
  19. package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-L65WUTXM.js} +12 -12
  20. package/dist/cdn/components/chunks/chunk-LFCXUVDO.js +1 -0
  21. package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
  22. package/dist/cdn/components/chunks/chunk-MPQP4R54.js +263 -0
  23. package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-NBIENHLV.js} +6 -6
  24. package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
  25. package/dist/cdn/components/chunks/chunk-OW7XKDCH.js +124 -0
  26. package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
  27. package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
  28. package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
  29. package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
  30. package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-SD2WHGPF.js} +7 -6
  31. package/dist/cdn/components/chunks/chunk-SJWRE6PW.js +1 -0
  32. package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
  33. package/dist/cdn/components/eun-alert.js +65 -45
  34. package/dist/cdn/components/eun-animate.js +5 -3
  35. package/dist/cdn/components/eun-badge.js +8 -8
  36. package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
  37. package/dist/cdn/components/eun-breadcrumb.js +11 -7
  38. package/dist/cdn/components/eun-button.js +1 -1
  39. package/dist/cdn/components/eun-calendar.js +20 -20
  40. package/dist/cdn/components/eun-card.js +61 -13
  41. package/dist/cdn/components/eun-carousel.js +35 -27
  42. package/dist/cdn/components/eun-check-card.js +3 -3
  43. package/dist/cdn/components/eun-checkbox-list.js +3 -3
  44. package/dist/cdn/components/eun-checkbox.js +1 -1
  45. package/dist/cdn/components/eun-chip.js +45 -207
  46. package/dist/cdn/components/eun-collapse.js +49 -29
  47. package/dist/cdn/components/eun-color-picker.js +13 -13
  48. package/dist/cdn/components/eun-counter.js +15 -15
  49. package/dist/cdn/components/eun-date-picker.js +62 -62
  50. package/dist/cdn/components/eun-drawer.js +12 -12
  51. package/dist/cdn/components/eun-dropdown-button.js +1 -1
  52. package/dist/cdn/components/eun-dropdown-item.js +6 -6
  53. package/dist/cdn/components/eun-fab.js +31 -53
  54. package/dist/cdn/components/eun-icon.js +1 -1
  55. package/dist/cdn/components/eun-image-card.js +18 -11
  56. package/dist/cdn/components/eun-image-carousel.js +18 -18
  57. package/dist/cdn/components/eun-infinite-list.js +1 -1
  58. package/dist/cdn/components/eun-input-file.js +12 -12
  59. package/dist/cdn/components/eun-input-phone.js +28 -28
  60. package/dist/cdn/components/eun-input.js +1 -1
  61. package/dist/cdn/components/eun-label.js +4 -4
  62. package/dist/cdn/components/eun-link.js +134 -18
  63. package/dist/cdn/components/eun-loader.js +1 -1
  64. package/dist/cdn/components/eun-modal.js +21 -21
  65. package/dist/cdn/components/eun-pagination.js +3 -3
  66. package/dist/cdn/components/eun-password-strength.js +9 -6
  67. package/dist/cdn/components/eun-progress-bar.js +13 -13
  68. package/dist/cdn/components/eun-radio-card.js +2 -2
  69. package/dist/cdn/components/eun-radio-list.js +1 -1
  70. package/dist/cdn/components/eun-radio.js +1 -1
  71. package/dist/cdn/components/eun-scheduler-event-editor.js +9 -9
  72. package/dist/cdn/components/eun-scheduler-event.js +1 -1
  73. package/dist/cdn/components/eun-scheduler.js +26 -26
  74. package/dist/cdn/components/eun-search.js +21 -21
  75. package/dist/cdn/components/eun-select.js +10 -10
  76. package/dist/cdn/components/eun-sidebar.js +9 -9
  77. package/dist/cdn/components/eun-skeleton.js +1 -1
  78. package/dist/cdn/components/eun-slider.js +8 -8
  79. package/dist/cdn/components/eun-sliding-card.js +4 -3
  80. package/dist/cdn/components/eun-step.js +8 -8
  81. package/dist/cdn/components/eun-stepper.js +8 -8
  82. package/dist/cdn/components/eun-switch.js +10 -10
  83. package/dist/cdn/components/eun-tab-group.js +19 -11
  84. package/dist/cdn/components/eun-tab-panel.js +1 -1
  85. package/dist/cdn/components/eun-tab.js +1 -1
  86. package/dist/cdn/components/eun-table-action-bar.js +1 -1
  87. package/dist/cdn/components/eun-table-cell.js +1 -1
  88. package/dist/cdn/components/eun-table-column.js +1 -1
  89. package/dist/cdn/components/eun-table-header.js +1 -1
  90. package/dist/cdn/components/eun-table-item.js +1 -1
  91. package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
  92. package/dist/cdn/components/eun-table.js +3 -3
  93. package/dist/cdn/components/eun-tag.js +34 -126
  94. package/dist/cdn/components/eun-textarea.js +23 -23
  95. package/dist/cdn/components/eun-time-picker.js +32 -32
  96. package/dist/cdn/components/eun-toast.js +40 -36
  97. package/dist/cdn/components/eun-toggle-group.js +213 -72
  98. package/dist/cdn/components/eun-toggle-item.js +49 -30
  99. package/dist/cdn/components/eun-toggle.js +12 -9
  100. package/dist/cdn/components/eun-toolbar.js +15 -8
  101. package/dist/cdn/components/eun-tooltip.js +122 -87
  102. package/dist/cdn/styles/eunomia-themes.css +1 -1
  103. package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
  104. package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
  105. package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
  106. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
  107. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
  108. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
  109. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
  110. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
  111. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
  112. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
  113. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
  114. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
  115. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
  116. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
  117. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
  118. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
  119. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
  120. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
  121. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
  122. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
  123. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
  124. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
  125. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
  126. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
  127. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
  128. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
  129. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
  130. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
  131. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
  132. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
  133. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
  134. package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
  135. package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
  136. package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
  137. package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
  138. package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
  139. package/dist/components/action/button/button.d.ts +44 -15
  140. package/dist/components/action/button/button.js +100 -20
  141. package/dist/components/action/button/button.styles.js +179 -393
  142. package/dist/components/action/dropdown-button/dropdown-button.d.ts +13 -6
  143. package/dist/components/action/dropdown-button/dropdown-button.js +16 -5
  144. package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
  145. package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
  146. package/dist/components/action/fab/fab.d.ts +7 -4
  147. package/dist/components/action/fab/fab.js +11 -6
  148. package/dist/components/action/fab/fab.styles.js +26 -49
  149. package/dist/components/action/link/link.d.ts +115 -6
  150. package/dist/components/action/link/link.js +245 -21
  151. package/dist/components/action/link/link.styles.js +105 -3
  152. package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
  153. package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
  154. package/dist/components/action/toggle/toggle-group.d.ts +55 -11
  155. package/dist/components/action/toggle/toggle-group.js +193 -52
  156. package/dist/components/action/toggle/toggle-group.styles.d.ts +7 -5
  157. package/dist/components/action/toggle/toggle-group.styles.js +166 -41
  158. package/dist/components/action/toggle/toggle-item.d.ts +4 -4
  159. package/dist/components/action/toggle/toggle-item.js +2 -2
  160. package/dist/components/action/toggle/toggle-item.styles.js +45 -26
  161. package/dist/components/action/toggle/toggle.d.ts +1 -1
  162. package/dist/components/action/toggle/toggle.js +1 -1
  163. package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
  164. package/dist/components/action/toggle/toggle.styles.js +13 -10
  165. package/dist/components/alert/alert/alert.d.ts +4 -3
  166. package/dist/components/alert/alert/alert.js +4 -3
  167. package/dist/components/alert/alert/alert.styles.js +57 -36
  168. package/dist/components/alert/drawer/drawer.js +1 -1
  169. package/dist/components/alert/drawer/drawer.styles.js +3 -3
  170. package/dist/components/alert/modal/modal.d.ts +8 -8
  171. package/dist/components/alert/modal/modal.js +11 -11
  172. package/dist/components/alert/modal/modal.styles.js +6 -6
  173. package/dist/components/alert/toast/toast.d.ts +4 -3
  174. package/dist/components/alert/toast/toast.js +4 -3
  175. package/dist/components/alert/toast/toast.styles.js +41 -36
  176. package/dist/components/content/badge/badge.d.ts +6 -6
  177. package/dist/components/content/badge/badge.js +4 -4
  178. package/dist/components/content/badge/badge.styles.js +5 -5
  179. package/dist/components/content/card/card.d.ts +36 -8
  180. package/dist/components/content/card/card.js +68 -8
  181. package/dist/components/content/card/card.styles.js +52 -11
  182. package/dist/components/content/card/image-card.d.ts +3 -2
  183. package/dist/components/content/card/image-card.js +2 -1
  184. package/dist/components/content/card/image-card.styles.js +17 -10
  185. package/dist/components/content/card/sliding-card.d.ts +2 -1
  186. package/dist/components/content/card/sliding-card.js +1 -0
  187. package/dist/components/content/card/sliding-card.styles.js +3 -2
  188. package/dist/components/content/chip/chip.d.ts +16 -7
  189. package/dist/components/content/chip/chip.js +18 -6
  190. package/dist/components/content/chip/chip.styles.d.ts +1 -1
  191. package/dist/components/content/chip/chip.styles.js +43 -207
  192. package/dist/components/content/collapse/collapse.d.ts +29 -11
  193. package/dist/components/content/collapse/collapse.js +53 -23
  194. package/dist/components/content/collapse/collapse.styles.js +23 -9
  195. package/dist/components/content/icon/icon.d.ts +12 -2
  196. package/dist/components/content/icon/icon.js +52 -22
  197. package/dist/components/content/icon/icon.style.d.ts +2 -0
  198. package/dist/components/content/icon/icon.style.js +5 -2
  199. package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
  200. package/dist/components/content/password-strength/password-strength.styles.js +7 -4
  201. package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
  202. package/dist/components/content/shared-styles/card-link.styles.js +1 -0
  203. package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
  204. package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
  205. package/dist/components/content/tag/tag.d.ts +16 -6
  206. package/dist/components/content/tag/tag.js +19 -6
  207. package/dist/components/content/tag/tag.styles.d.ts +1 -1
  208. package/dist/components/content/tag/tag.styles.js +40 -125
  209. package/dist/components/content/tooltip/tooltip.d.ts +15 -4
  210. package/dist/components/content/tooltip/tooltip.js +21 -4
  211. package/dist/components/content/tooltip/tooltip.styles.js +115 -79
  212. package/dist/components/form/checkbox/check-card.styles.js +2 -2
  213. package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
  214. package/dist/components/form/checkbox/checkbox.d.ts +1 -1
  215. package/dist/components/form/checkbox/checkbox.styles.js +6 -6
  216. package/dist/components/form/color-picker/color-picker.d.ts +3 -3
  217. package/dist/components/form/color-picker/color-picker.js +4 -4
  218. package/dist/components/form/color-picker/color-picker.styles.js +7 -7
  219. package/dist/components/form/counter/counter.d.ts +3 -3
  220. package/dist/components/form/counter/counter.js +3 -3
  221. package/dist/components/form/counter/counter.styles.js +12 -12
  222. package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
  223. package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
  224. package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
  225. package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
  226. package/dist/components/form/date-picker/date-picker.d.ts +3 -3
  227. package/dist/components/form/date-picker/date-picker.js +3 -3
  228. package/dist/components/form/date-picker/date-picker.styles.js +17 -17
  229. package/dist/components/form/input/input.d.ts +3 -3
  230. package/dist/components/form/input/input.js +4 -4
  231. package/dist/components/form/input-file/input-file.d.ts +1 -1
  232. package/dist/components/form/input-file/input-file.styles.js +9 -9
  233. package/dist/components/form/input-phone/input-phone.d.ts +3 -3
  234. package/dist/components/form/input-phone/input-phone.js +3 -3
  235. package/dist/components/form/input-phone/input-phone.styles.js +19 -19
  236. package/dist/components/form/label/label.styles.js +4 -4
  237. package/dist/components/form/radio/radio-card.styles.js +1 -1
  238. package/dist/components/form/radio/radio-list.d.ts +1 -1
  239. package/dist/components/form/radio/radio.d.ts +1 -1
  240. package/dist/components/form/radio/radio.styles.js +2 -2
  241. package/dist/components/form/search/search.styles.js +9 -9
  242. package/dist/components/form/select/select.d.ts +3 -3
  243. package/dist/components/form/select/select.js +3 -3
  244. package/dist/components/form/select/select.styles.js +6 -6
  245. package/dist/components/form/shared-styles/card.styles.js +1 -1
  246. package/dist/components/form/shared-styles/field.styles.js +12 -12
  247. package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
  248. package/dist/components/form/shared-styles/listbox.styles.js +6 -6
  249. package/dist/components/form/slider/slider.d.ts +1 -1
  250. package/dist/components/form/slider/slider.styles.js +6 -6
  251. package/dist/components/form/switch/switch.d.ts +1 -1
  252. package/dist/components/form/switch/switch.styles.js +8 -8
  253. package/dist/components/form/textarea/textarea.d.ts +3 -3
  254. package/dist/components/form/textarea/textarea.js +4 -4
  255. package/dist/components/form/textarea/textarea.styles.js +6 -6
  256. package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
  257. package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
  258. package/dist/components/form/time-picker/time-picker.d.ts +3 -3
  259. package/dist/components/form/time-picker/time-picker.js +3 -3
  260. package/dist/components/form/time-picker/time-picker.styles.js +13 -13
  261. package/dist/components/layout/animate/animate.d.ts +8 -0
  262. package/dist/components/layout/animate/animate.js +20 -8
  263. package/dist/components/loader/loader/loader.styles.js +2 -2
  264. package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
  265. package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
  266. package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
  267. package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
  268. package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
  269. package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
  270. package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
  271. package/dist/components/navigation/carousel/carousel.d.ts +40 -6
  272. package/dist/components/navigation/carousel/carousel.js +61 -12
  273. package/dist/components/navigation/carousel/carousel.styles.js +19 -7
  274. package/dist/components/navigation/pagination/pagination.styles.js +3 -3
  275. package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
  276. package/dist/components/navigation/stepper/step.styles.js +8 -8
  277. package/dist/components/navigation/stepper/stepper.styles.js +8 -8
  278. package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
  279. package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
  280. package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
  281. package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
  282. package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
  283. package/dist/components/navigation/toolbar/toolbar.d.ts +2 -0
  284. package/dist/components/navigation/toolbar/toolbar.js +2 -0
  285. package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
  286. package/dist/features/scheduler/calendar/calendar.d.ts +6 -6
  287. package/dist/features/scheduler/calendar/calendar.js +10 -10
  288. package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
  289. package/dist/features/scheduler/scheduler/scheduler.d.ts +6 -6
  290. package/dist/features/scheduler/scheduler/scheduler.js +13 -13
  291. package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
  292. package/dist/features/scheduler/scheduler-event/scheduler-event.d.ts +10 -8
  293. package/dist/features/scheduler/scheduler-event/scheduler-event.js +7 -7
  294. package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +8 -8
  295. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +5 -5
  296. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
  297. package/dist/features/scheduler/shared/scheduler-event-popover.js +2 -2
  298. package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
  299. package/dist/features/scheduler/shared/scheduler-hour-grid.d.ts +2 -2
  300. package/dist/features/scheduler/shared/scheduler-hour-grid.js +3 -3
  301. package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
  302. package/dist/features/scheduler/shared/scheduler-month-view.d.ts +3 -3
  303. package/dist/features/scheduler/shared/scheduler-month-view.js +2 -2
  304. package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
  305. package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
  306. package/dist/features/table/native-table.css +11 -11
  307. package/dist/features/table/table/table.styles.js +2 -2
  308. package/dist/features/table/table/table.types.d.ts +7 -3
  309. package/dist/features/table/table-action-bar/table-action-bar.js +3 -3
  310. package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
  311. package/dist/features/table/table-cell/table-cell.styles.js +2 -2
  312. package/dist/features/table/table-column/table-column.styles.js +3 -3
  313. package/dist/features/table/table-header/table-header.styles.js +4 -4
  314. package/dist/features/table/table-item/table-item.styles.js +6 -6
  315. package/dist/features/table/table-managed/table-managed.js +2 -2
  316. package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
  317. package/dist/i18n/en.d.ts +3 -0
  318. package/dist/i18n/en.js +3 -0
  319. package/dist/i18n/fr.js +3 -0
  320. package/dist/index.d.ts +7 -7
  321. package/dist/index.js +5 -2
  322. package/dist/jsx.d.ts +19 -6
  323. package/dist/mixins/button.mixin.d.ts +11 -9
  324. package/dist/mixins/button.mixin.js +23 -5
  325. package/dist/mixins/card-link.mixin.d.ts +3 -2
  326. package/dist/mixins/card-link.mixin.js +12 -5
  327. package/dist/mixins/check.mixin.d.ts +1 -1
  328. package/dist/mixins/disabled.mixin.d.ts +3 -3
  329. package/dist/mixins/disabled.mixin.js +10 -5
  330. package/dist/mixins/editable.mixin.d.ts +1 -1
  331. package/dist/mixins/field-appearance.mixin.d.ts +19 -0
  332. package/dist/mixins/{field-variant.mixin.js → field-appearance.mixin.js} +11 -11
  333. package/dist/mixins/form.mixin.d.ts +5 -1
  334. package/dist/mixins/form.mixin.js +32 -12
  335. package/dist/mixins/overflow-navigation.mixin.js +2 -1
  336. package/dist/mixins/radio.mixin.d.ts +1 -1
  337. package/dist/mixins/validators.mixin.d.ts +9 -3
  338. package/dist/ssr/animate-ssr.css +26 -72
  339. package/dist/ssr/links-ssr.css +35 -0
  340. package/dist/ssr/overlay-ssr.css +0 -41
  341. package/dist/ssr/rich-text.css +38 -0
  342. package/dist/ssr/sidebar-ssr.css +0 -38
  343. package/dist/ssr/toolbar-ssr.css +73 -39
  344. package/dist/types/variant.type.d.ts +26 -10
  345. package/dist/utils/navigation.utils.d.ts +14 -0
  346. package/dist/utils/navigation.utils.js +33 -0
  347. package/dist/utils/new-tab-anchor.controller.d.ts +44 -0
  348. package/dist/utils/new-tab-anchor.controller.js +102 -0
  349. package/dist/utils/rich-text.utils.d.ts +33 -0
  350. package/dist/utils/rich-text.utils.js +140 -49
  351. package/dist/utils/severity-icon.utils.d.ts +1 -1
  352. package/dist/utils/severity-icon.utils.js +1 -1
  353. package/dist/utils/theme-generator.utils.d.ts +26 -3
  354. package/dist/utils/theme-generator.utils.js +68 -21
  355. package/package.json +13 -2
  356. package/styles/themes/eunomia-theme.scss +1 -0
  357. package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
  358. package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
  359. package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
  360. package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
  361. package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
  362. package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
  363. package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
  364. package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
  365. package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
  366. package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
  367. package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
  368. package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
  369. package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
  370. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
  371. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
  372. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
  373. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
  374. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
  375. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
  376. package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
  377. package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
  378. package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
  379. package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
  380. package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
  381. package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
  382. package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
  383. package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
  384. package/dist/cdn/components/chunks/chunk-3LMI7KUA.js +0 -48
  385. package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
  386. package/dist/cdn/components/chunks/chunk-ATH2OAMU.js +0 -1
  387. package/dist/cdn/components/chunks/chunk-BKHD4S57.js +0 -1
  388. package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
  389. package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
  390. package/dist/cdn/components/chunks/chunk-T7WABJEJ.js +0 -1
  391. package/dist/cdn/components/chunks/chunk-XSMCT4DF.js +0 -1
  392. package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
  393. package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
  394. package/dist/mixins/field-variant.mixin.d.ts +0 -22
@@ -3,12 +3,14 @@ import { css } from "lit";
3
3
  * Base style for the link component.
4
4
  *
5
5
  * Custom css variables:
6
- * [--link-color] - Set a custom link color, also used as the hover blend base
6
+ * [--link-color] - Set a custom link color, also used as the hover blend base. A visited link still uses the visited color, override it with --link-color-visited or set visited-style="off"
7
7
  * [--link-font-size] - Set a custom font-size to the link
8
+ * [--link-line-height] - Set a custom line-height to the link. Inherits the surrounding text's line-height when unset
8
9
  * [--link-color-hover] - Set a custom link color on hover state
9
10
  * [--link-color-focus] - Set a custom link color on focus-visible state
10
11
  * [--link-color-visited] - Set a custom link color on visited state
11
12
  * [--link-color-visited-hover] - Set a custom link color on visited+hover state
13
+ * [--link-color-current] - Set a custom link color for the current page link (the `current` attribute). It stays this color on hover, focus and visited states
12
14
  * [--link-text-decoration] - Set a custom text-decoration for the link
13
15
  * [--link-icon-color] - Set a custom color for the leading icon, independent from the link text color
14
16
  * [--link-padding] - Set custom padding around the link, for example to give its focus outline room to breathe. Defaults to 0, flush with the text
@@ -35,10 +37,15 @@ const base = css `
35
37
  --link-color-visited-hover,
36
38
  color-mix(in srgb, var(--_colorVisited) 80%, black)
37
39
  );
40
+ --_colorCurrent: var(
41
+ --link-color-current,
42
+ var(--eun-color-primary-500, #3d6fff)
43
+ );
38
44
  --_textDecoration: var(--link-text-decoration, underline);
39
45
  --_iconColor: var(--link-icon-color, var(--_color));
40
46
  --icon-color: var(--_iconColor);
41
47
  font-size: var(--link-font-size, unset);
48
+ line-height: var(--link-line-height, inherit);
42
49
  display: inline-flex;
43
50
  align-items: center;
44
51
  }
@@ -58,6 +65,12 @@ const base = css `
58
65
  display: inline-flex;
59
66
  flex-shrink: 0;
60
67
  }
68
+ #external-link-icon {
69
+ display: inline-flex;
70
+ flex-shrink: 0;
71
+ margin-inline-start: calc(-1 * var(--eun-space-xs, 4px));
72
+ transform: rotate(-45deg);
73
+ }
61
74
  #link {
62
75
  display: inline-flex;
63
76
  align-items: center;
@@ -68,7 +81,7 @@ const base = css `
68
81
  font: inherit;
69
82
  text-decoration: var(--_textDecoration);
70
83
  text-wrap: pretty;
71
- border-radius: var(--link-border-radius, var(--eun-borderRadius-m, 8px));
84
+ border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
72
85
  cursor: pointer;
73
86
  outline: 2px solid transparent;
74
87
  transition:
@@ -117,8 +130,97 @@ const base = css `
117
130
  --icon-color: var(--link-icon-color, var(--_colorHover));
118
131
  }
119
132
 
133
+ :host([current]) #link,
134
+ :host([current]) #link:visited,
135
+ :host([current]) #link:hover,
136
+ :host([current]) #link:visited:hover,
137
+ :host([current]) #link:focus-visible {
138
+ color: var(--_colorCurrent) !important;
139
+ text-decoration-color: var(--_colorCurrent);
140
+ --icon-color: var(--link-icon-color, var(--_colorCurrent));
141
+ }
142
+
143
+ #link.slotted-link {
144
+ position: relative;
145
+ text-decoration: none;
146
+ cursor: auto;
147
+ }
148
+ ::slotted(a)::after {
149
+ content: "";
150
+ position: absolute;
151
+ inset: 0;
152
+ border-radius: inherit;
153
+ }
154
+ ::slotted(a) {
155
+ color: var(--_color);
156
+ font: inherit;
157
+ text-decoration: var(--_textDecoration);
158
+ text-wrap: pretty;
159
+ border-radius: var(--link-border-radius, var(--eun-border-radius-m, 8px));
160
+ transition:
161
+ color 0.3s ease-out,
162
+ background-color 0.3s ease-out,
163
+ text-decoration-color 0.3s ease-out;
164
+ }
165
+ ::slotted(a:visited) {
166
+ color: var(--_colorVisited);
167
+ text-decoration-color: var(--_colorVisited);
168
+ }
169
+ ::slotted(a:visited:hover) {
170
+ color: var(--_colorVisitedHover);
171
+ text-decoration-color: var(--_colorVisitedHover);
172
+ }
173
+ :host([visited-style="off"]) ::slotted(a:visited) {
174
+ color: var(--_color);
175
+ text-decoration-color: currentColor;
176
+ }
177
+ :host([visited-style="off"]) ::slotted(a:visited:hover) {
178
+ color: var(--_colorHover);
179
+ text-decoration-color: currentColor;
180
+ }
181
+ :host([visited-style="on"]) ::slotted(a) {
182
+ color: var(--_colorVisited);
183
+ text-decoration-color: var(--_colorVisited);
184
+ }
185
+ :host([visited-style="on"]) ::slotted(a:hover) {
186
+ color: var(--_colorVisitedHover);
187
+ text-decoration-color: var(--_colorVisitedHover);
188
+ }
189
+ ::slotted(a:hover) {
190
+ color: var(--_colorHover);
191
+ }
192
+ #link.slotted-link:hover {
193
+ --icon-color: var(--link-icon-color, var(--_colorHover));
194
+ }
195
+ ::slotted(a:focus-visible) {
196
+ color: var(--_colorHover) !important;
197
+ text-decoration: none;
198
+ outline: none !important;
199
+ }
200
+ :host(:state(focus-visible)) #link.slotted-link {
201
+ background: var(
202
+ --link-background-focus,
203
+ var(--link-background, transparent)
204
+ );
205
+ outline-color: var(--_colorFocus);
206
+ outline-offset: 2px;
207
+ --icon-color: var(--link-icon-color, var(--_colorHover));
208
+ }
209
+ :host([current]) ::slotted(a),
210
+ :host([current]) ::slotted(a:visited),
211
+ :host([current]) ::slotted(a:hover),
212
+ :host([current]) ::slotted(a:visited:hover),
213
+ :host([current]) ::slotted(a:focus-visible) {
214
+ color: var(--_colorCurrent) !important;
215
+ text-decoration-color: var(--_colorCurrent);
216
+ }
217
+ :host([current]) #link.slotted-link {
218
+ --icon-color: var(--link-icon-color, var(--_colorCurrent));
219
+ }
220
+
120
221
  @media (prefers-reduced-motion: reduce) {
121
- #link {
222
+ #link,
223
+ ::slotted(a) {
122
224
  transition: none;
123
225
  }
124
226
  }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Shared color palette of the button family (`eun-button`, `eun-fab`, and so
3
+ * `eun-dropdown-button`, which renders an `eun-button`). A `color` fills
4
+ * the same slots on the host, and each component's stylesheet then reads
5
+ * them, per appearance and state, *behind* its public `--<component>-*`
6
+ * custom properties, so those always win over any color and appearance.
7
+ *
8
+ * Slots :
9
+ * - `--_solid`, `--_solid-hover`, `--_solid-active` : the strong color, at
10
+ * rest, hovered and pressed.
11
+ * - `--_onSolid` : the text color on top of the strong color.
12
+ * - `--_accent` : the text/border color on a pale or transparent surface.
13
+ * - `--_tint`, `--_tint-hover`, `--_tint-active` : the pale wash, and
14
+ * `--_fgTint` the text color on it.
15
+ * - `--_wash-hover`, `--_wash-active` : the wash a transparent surface
16
+ * (outline, ghost) takes on hover and press.
17
+ * - `--_flat`, `--_flat-hover`, `--_flatFg` : the muted `flat` surface.
18
+ * - `--_ring` : the focus outline color.
19
+ *
20
+ * `light` and `dark` are absolute colors : white and black, whatever the
21
+ * appearance. They have no pale wash, so the tinted surface is as solid as
22
+ * the strong one, and `flat` is a faint wash of the color itself rather than
23
+ * the neutral surface every other color shares. By default they follow the
24
+ * grey scale, which flips with the active theme ; `fixed-color` pins them to
25
+ * the light theme's white and black instead.
26
+ */
27
+ export declare const buttonPaletteStyles: import("lit").CSSResult;
@@ -0,0 +1,151 @@
1
+ import { css } from "lit";
2
+ /**
3
+ * Shared color palette of the button family (`eun-button`, `eun-fab`, and so
4
+ * `eun-dropdown-button`, which renders an `eun-button`). A `color` fills
5
+ * the same slots on the host, and each component's stylesheet then reads
6
+ * them, per appearance and state, *behind* its public `--<component>-*`
7
+ * custom properties, so those always win over any color and appearance.
8
+ *
9
+ * Slots :
10
+ * - `--_solid`, `--_solid-hover`, `--_solid-active` : the strong color, at
11
+ * rest, hovered and pressed.
12
+ * - `--_onSolid` : the text color on top of the strong color.
13
+ * - `--_accent` : the text/border color on a pale or transparent surface.
14
+ * - `--_tint`, `--_tint-hover`, `--_tint-active` : the pale wash, and
15
+ * `--_fgTint` the text color on it.
16
+ * - `--_wash-hover`, `--_wash-active` : the wash a transparent surface
17
+ * (outline, ghost) takes on hover and press.
18
+ * - `--_flat`, `--_flat-hover`, `--_flatFg` : the muted `flat` surface.
19
+ * - `--_ring` : the focus outline color.
20
+ *
21
+ * `light` and `dark` are absolute colors : white and black, whatever the
22
+ * appearance. They have no pale wash, so the tinted surface is as solid as
23
+ * the strong one, and `flat` is a faint wash of the color itself rather than
24
+ * the neutral surface every other color shares. By default they follow the
25
+ * grey scale, which flips with the active theme ; `fixed-color` pins them to
26
+ * the light theme's white and black instead.
27
+ */
28
+ export const buttonPaletteStyles = css `
29
+ :host {
30
+ --_solid: var(--eun-color-primary-500, #3d6fff);
31
+ --_solid-hover: var(--eun-color-primary-700, #3662e0);
32
+ --_solid-active: var(--eun-color-primary-800, #2d52bd);
33
+ --_onSolid: var(--eun-color-on-primary-500, #ffffff);
34
+ --_accent: var(--eun-color-primary-500, #3d6fff);
35
+ --_tint: var(--eun-color-primary-transparent, #3d6fff33);
36
+ --_tint-hover: var(--eun-color-primary-transparent-hover, #3d6fff4d);
37
+ --_tint-active: var(--eun-color-primary-transparent-active, #3d6fff66);
38
+ --_fgTint: var(--_accent);
39
+ --_wash-hover: var(--_tint-hover);
40
+ --_wash-active: var(--_tint-active);
41
+ --_flat: var(--eun-surface-sunken, #f7f8fa);
42
+ --_flat-hover: var(--eun-surface-sunken-hover, #edeff0);
43
+ --_flatFg: var(--eun-text-secondary, #484e61);
44
+ --_ring: var(--eun-color-primary-700, #3662e0);
45
+ }
46
+ :host([color="secondary"]) {
47
+ --_solid: var(--eun-color-secondary-500, #e5a030);
48
+ --_solid-hover: var(--eun-color-secondary-700, #ca8d2a);
49
+ --_solid-active: var(--eun-color-secondary-800, #a97624);
50
+ --_onSolid: var(--eun-color-on-secondary-500, #000000de);
51
+ --_accent: var(--eun-color-secondary-500, #e5a030);
52
+ --_tint: var(--eun-color-secondary-transparent, #e5a03033);
53
+ --_tint-hover: var(--eun-color-secondary-transparent-hover, #e5a0304d);
54
+ --_tint-active: var(--eun-color-secondary-transparent-active, #e5a03066);
55
+ --_ring: var(--eun-color-secondary-700, #ca8d2a);
56
+ }
57
+ :host([color="critical"]) {
58
+ --_solid: var(--eun-color-critical-100, #aa0014);
59
+ --_solid-hover: var(--eun-color-critical-100, #aa0014);
60
+ --_solid-active: var(--eun-color-critical-100, #aa0014);
61
+ --_onSolid: #fff;
62
+ --_accent: var(--eun-color-critical-100, #aa0014);
63
+ --_tint: var(--eun-color-critical-30, #faf0f1);
64
+ --_tint-hover: var(--eun-color-critical-50, #f1d6d9);
65
+ --_tint-active: var(--eun-color-critical-90, #e4adb4);
66
+ --_ring: var(--eun-color-critical-100, #aa0014);
67
+ }
68
+ :host([color="success"]) {
69
+ --_solid: var(--eun-color-success-100, #1a9948);
70
+ --_solid-hover: var(--eun-color-success-100, #1a9948);
71
+ --_solid-active: var(--eun-color-success-100, #1a9948);
72
+ --_onSolid: #fff;
73
+ --_accent: var(--eun-color-success-100, #1a9948);
74
+ --_tint: var(--eun-color-success-30, #f1f9f4);
75
+ --_tint-hover: var(--eun-color-success-50, #daefe2);
76
+ --_tint-active: var(--eun-color-success-90, #b6dec4);
77
+ --_ring: var(--eun-color-success-100, #1a9948);
78
+ }
79
+ :host([color="warning"]) {
80
+ --_solid: var(--eun-color-warning-100, #c85207);
81
+ --_solid-hover: var(--eun-color-warning-100, #c85207);
82
+ --_solid-active: var(--eun-color-warning-100, #c85207);
83
+ --_onSolid: #fff;
84
+ --_accent: var(--eun-color-warning-100, #c85207);
85
+ --_tint: var(--eun-color-warning-30, #fcf5f0);
86
+ --_tint-hover: var(--eun-color-warning-50, #f6e3d7);
87
+ --_tint-active: var(--eun-color-warning-90, #edc8b0);
88
+ --_ring: var(--eun-color-warning-100, #c85207);
89
+ }
90
+ :host([color="medium"]) {
91
+ --_solid: var(--eun-color-grey-700, #484e61);
92
+ --_solid-hover: var(--eun-color-grey-800, #071621);
93
+ --_solid-active: var(--eun-color-grey-900, #000000);
94
+ --_onSolid: var(--eun-color-grey-0, #ffffff);
95
+ --_accent: var(--eun-color-grey-900, #000000);
96
+ --_tint: color-mix(
97
+ in srgb,
98
+ var(--eun-color-grey-700, #484e61) 20%,
99
+ transparent
100
+ );
101
+ --_tint-hover: color-mix(
102
+ in srgb,
103
+ var(--eun-color-grey-700, #484e61) 30%,
104
+ transparent
105
+ );
106
+ --_tint-active: color-mix(
107
+ in srgb,
108
+ var(--eun-color-grey-700, #484e61) 40%,
109
+ transparent
110
+ );
111
+ --_ring: var(--eun-color-grey-700, #484e61);
112
+ }
113
+ :host([color="light"]) {
114
+ --_solid: var(--eun-color-grey-0, #ffffff);
115
+ --_solid-hover: var(--eun-color-grey-200, #ecedf0);
116
+ --_solid-active: var(--eun-color-grey-300, #dee0e7);
117
+ --_onSolid: var(--eun-color-grey-900, #000000);
118
+ }
119
+ :host([color="light"][fixed-color]) {
120
+ --_solid: #ffffff;
121
+ --_solid-hover: #ecedf0;
122
+ --_solid-active: #dee0e7;
123
+ --_onSolid: #000000;
124
+ }
125
+ :host([color="dark"]) {
126
+ --_solid: var(--eun-color-grey-800, #071621);
127
+ --_solid-hover: var(--eun-color-grey-900, #000000);
128
+ --_solid-active: var(--eun-color-grey-900, #000000);
129
+ --_onSolid: var(--eun-color-grey-0, #ffffff);
130
+ }
131
+ :host([color="dark"][fixed-color]) {
132
+ --_solid: #071621;
133
+ --_solid-hover: #000000;
134
+ --_solid-active: #000000;
135
+ --_onSolid: #ffffff;
136
+ }
137
+ :host([color="light"]),
138
+ :host([color="dark"]) {
139
+ --_accent: var(--_solid);
140
+ --_tint: var(--_solid);
141
+ --_tint-hover: var(--_solid-hover);
142
+ --_tint-active: var(--_solid-active);
143
+ --_fgTint: var(--_onSolid);
144
+ --_wash-hover: color-mix(in srgb, var(--_solid) 16%, transparent);
145
+ --_wash-active: color-mix(in srgb, var(--_solid) 28%, transparent);
146
+ --_flat: color-mix(in srgb, var(--_solid) 16%, transparent);
147
+ --_flat-hover: color-mix(in srgb, var(--_solid) 24%, transparent);
148
+ --_flatFg: var(--_solid);
149
+ --_ring: var(--_solid);
150
+ }
151
+ `;
@@ -1,6 +1,6 @@
1
1
  import { LitElement, PropertyValues, TemplateResult } from "lit";
2
2
  import { EunomiaIconName } from "../../content/icon/icon.type.js";
3
- import { ButtonVariant } from "../../../mixins/button.mixin.js";
3
+ import { ButtonColor } from "../../../mixins/button.mixin.js";
4
4
  import { EunomiaToggleAppearance } from "../../../types/variant.type.js";
5
5
  import type { EunomiaToggleItem } from "./toggle-item.js";
6
6
  /**
@@ -36,13 +36,13 @@ export type EunomiaToggleGroupOption = {
36
36
  showLabel?: boolean;
37
37
  /**
38
38
  * This choice's own semantic color, once the group's `appearance` isn't
39
- * `default` — see {@link ButtonVariant}. Falls back to a neutral style at
39
+ * `default` — see {@link ButtonColor}. Falls back to a neutral style at
40
40
  * rest, taking on this color only once selected ; unset choices default
41
41
  * to `primary`. Ignored entirely in `default` appearance.
42
42
  */
43
- variant?: ButtonVariant;
43
+ color?: ButtonColor;
44
44
  };
45
- declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/disabled.mixin.js").DisabledMixinInterface> & typeof LitElement;
45
+ declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/overflow-navigation.mixin.js").NavigationOverflowMixinInterface> & import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/disabled.mixin.js").DisabledMixinInterface> & typeof LitElement;
46
46
  /**
47
47
  * Groups toggle choices, declared through options, slotted toggle item
48
48
  * elements, or both at once, into a single segmented control. The
@@ -70,6 +70,8 @@ declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.j
70
70
  * the Examples tab for what each shape looks like.
71
71
  *
72
72
  * @slot [default] - Toggle item elements, used instead of or alongside options
73
+ * @prop {boolean} [full=false] - Stretches the group to 100% of its parent's width, dividing that width equally between every choice, instead of sizing to content
74
+ * @attr {boolean} [full=false] - Stretches the group to 100% of its parent's width, dividing that width equally between every choice, instead of sizing to content
73
75
  * @prop {Array<EunomiaToggleGroupOption>} options - The choices to render, in order
74
76
  * @prop {Array<string>} value - The currently selected choices' values. Always exactly one entry in exclusive mode
75
77
  * @prop {boolean} [single=false] - Forces the exclusive, sliding indicator mode regardless of choice count. Already the case for exactly two choices without setting this
@@ -77,18 +79,20 @@ declare const EunomiaToggleGroup_base: import("../../../utils/constructor.type.j
77
79
  * @prop {boolean} [disabled=false] - Whether the whole group is disabled
78
80
  * @attr {string} [aria-label] - The accessible label for the group, required since the group has no visible legend of its own
79
81
  * @fires {ChangeEvent} eunchange - Fired whenever the selection changes
80
- * @cssprop [--toggle-group-background] - Sets the background color of the track. Ignored once appearance isn't default, which has no shared background
81
- * @cssprop [--toggle-group-border-color] - Sets the border color of the track, and the border color of each option at rest in the outline appearance
82
+ * @cssprop [--toggle-group-background] - Sets the background color of the track, for every appearance (transparent by default in outline and flat)
83
+ * @cssprop [--toggle-group-border-color] - Sets the border color of the track in the default appearance, and the border color of each option at rest in the outline and flat appearances
82
84
  * @cssprop [--toggle-group-color] - Sets the text color of unselected options
83
- * @cssprop [--toggle-group-active-background] - Sets the background color of selected options, and the sliding indicator in exclusive mode, in the default appearance. Also sets the primary variant's selected color in the outline and flat appearances, for an option that sets no variant of its own
84
- * @cssprop [--toggle-group-active-color] - Sets the text color of selected options in the default appearance. Ignored in the outline and flat appearances, where the selected text color always follows the option's own color instead
85
+ * @cssprop [--toggle-group-active-background] - Sets the background color of selected options, and the sliding indicator in exclusive mode, in the default appearance. In the outline and flat appearances, sets the selected color of every option, over its own color
86
+ * @cssprop [--toggle-group-active-color] - Sets the text color of selected options, for every appearance
85
87
  * @cssprop [--toggle-group-border-radius] - Sets the corner radius of the track and its options
86
88
  * @cssprop [--toggle-group-gap] - Sets the gap between the options
87
89
  * @cssprop [--toggle-group-padding] - Sets the padding of the track, also used as the indicator's inset so it stays flush with the track's edge. Ignored once appearance isn't default
88
- * @cssprop [--toggle-group-hover-color] - Sets the text color of an unselected option on hover, in the default appearance. Ignored in the outline and flat appearances, where hover and focus text color always follow the option's own color instead, exactly like the selected state
90
+ * @cssprop [--toggle-group-hover-color] - Sets the text color of an unselected option on hover and keyboard focus, for every appearance
89
91
  * @cssprop [--toggle-group-hover-background] - Sets the background color of an unselected option on hover. Transparent by default, and applies regardless of appearance
92
+ * @cssprop [--toggle-group-box-shadow] - Sets a box shadow on the track itself, for every appearance. None by default
90
93
  * @cssprop [--toggle-group-shadow] - Sets a box shadow on every option, and the sliding indicator in exclusive mode. None by default
91
94
  * @cssprop [--toggle-group-shadow-hover] - Sets the box shadow of an unselected option on hover, falling back to toggle-group-shadow when unset
95
+ * @cssprop [--toggle-group-arrows-color] - Sets the background color the overflow arrows fade out to, once the group overflows its container
92
96
  * @element eun-toggle-group
93
97
  */
94
98
  export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
@@ -103,7 +107,8 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
103
107
  static readonly styles: import("lit").CSSResult[];
104
108
  /**
105
109
  * The choices to render, in order. Also reflected as a JSON-serialized
106
- * `options` attribute (Lit's default `Array` converter).
110
+ * `options` attribute (Lit's default `Array` converter), left out while
111
+ * empty so an SSR framework doesn't see an attribute it never rendered.
107
112
  * @default []
108
113
  */
109
114
  options: EunomiaToggleGroupOption[];
@@ -128,6 +133,13 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
128
133
  * @default default
129
134
  */
130
135
  appearance: EunomiaToggleGroupAppearance;
136
+ /**
137
+ * Stretches the group to 100% of its parent's width, dividing that width
138
+ * equally between every choice instead of sizing to content. A label
139
+ * that doesn't fit its share makes the row overflow rather than shrink.
140
+ * @default false
141
+ */
142
+ full: boolean;
131
143
  /**
132
144
  * The `eun-toggle-item` elements slotted in, if any.
133
145
  * @internal
@@ -149,6 +161,14 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
149
161
  * @readonly
150
162
  */
151
163
  private readonly indicatorEl?;
164
+ /**
165
+ * Whether the initial selection has been painted once. Until then, the
166
+ * choices and their icons skip their color transitions (see the
167
+ * `#scrollable:not(.settled)` rule), so the selected one appears in its
168
+ * final state on load instead of fading in from the unselected color.
169
+ * @internal
170
+ */
171
+ private settled;
152
172
  /**
153
173
  * The total number of choices, combining `options` and slotted
154
174
  * `eun-toggle-item` elements. Drives {@link exclusive} together with
@@ -169,7 +189,7 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
169
189
  private get entries();
170
190
  connectedCallback(): void;
171
191
  disconnectedCallback(): void;
172
- protected firstUpdated(): void;
192
+ protected firstUpdated(changedProperties: PropertyValues): void;
173
193
  protected updated(_changedProperties: PropertyValues): void;
174
194
  /**
175
195
  * Waits for every slotted item's custom element to be *defined*, not
@@ -293,6 +313,14 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
293
313
  * @private
294
314
  */
295
315
  private refreshIndicator;
316
+ /**
317
+ * Scrolls the row just enough to bring the selected entry into view, once
318
+ * the group overflows its container, leaving room for the arrows.
319
+ *
320
+ * @param animate whether to scroll smoothly, or jump there instantly.
321
+ * @private
322
+ */
323
+ private revealActive;
296
324
  /**
297
325
  * Debounced wrapper around {@link moveIndicator}, used by the resize
298
326
  * observer so a burst of layout changes doesn't retrigger it constantly.
@@ -340,6 +368,22 @@ export declare class EunomiaToggleGroup extends EunomiaToggleGroup_base {
340
368
  * @private
341
369
  */
342
370
  private readonly handleSlotChange;
371
+ /**
372
+ * Whether a given overflow arrow should currently be visible : hidden
373
+ * when nothing overflows, and once scrolled all the way to that edge.
374
+ *
375
+ * @param arrowPosition the position of the arrow to check.
376
+ * @returns true if it should be visible, false otherwise.
377
+ * @private
378
+ */
379
+ private arrowVisible;
380
+ /**
381
+ * The row mixes internal `<button>`s (`options`) with slotted items, so the
382
+ * mixin's slot-based measurement can't see every choice : compares the
383
+ * scrollable's own sizes instead.
384
+ * @protected
385
+ */
386
+ protected isOnOverflow(): boolean;
343
387
  render(): TemplateResult;
344
388
  }
345
389
  declare global {