@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
@@ -46,7 +46,7 @@ const base = css `
46
46
  color: var(--_color);
47
47
  font-family: var(--eun-font-family, "Mulish", sans-serif);
48
48
  font-size: var(--_fontSize);
49
- font-weight: var(--eun-fontWeight-l, 700);
49
+ font-weight: var(--eun-font-weight-l, 700);
50
50
  line-height: 1;
51
51
  white-space: nowrap;
52
52
  user-select: none;
@@ -69,7 +69,7 @@ const base = css `
69
69
  --_fontSize: var(--badge-font-size, 12px);
70
70
  }
71
71
 
72
- :host([variant="primary"]) {
72
+ :host([color="primary"]) {
73
73
  --_background: var(
74
74
  --badge-background,
75
75
  var(--eun-color-primary-500, #3d6fff)
@@ -77,7 +77,7 @@ const base = css `
77
77
  --_color: var(--badge-color, var(--eun-color-on-primary-500, #ffffff));
78
78
  }
79
79
 
80
- :host([variant="secondary"]) {
80
+ :host([color="secondary"]) {
81
81
  --_background: var(
82
82
  --badge-background,
83
83
  var(--eun-color-secondary-500, #e5a030)
@@ -85,7 +85,7 @@ const base = css `
85
85
  --_color: var(--badge-color, var(--eun-color-on-secondary-500, #000000de));
86
86
  }
87
87
 
88
- :host([variant="success"]) {
88
+ :host([color="success"]) {
89
89
  --_background: var(
90
90
  --badge-background,
91
91
  var(--eun-color-success-100, #1a9948)
@@ -93,7 +93,7 @@ const base = css `
93
93
  --_color: var(--badge-color, #fff);
94
94
  }
95
95
 
96
- :host([variant="warning"]) {
96
+ :host([color="warning"]) {
97
97
  --_background: var(
98
98
  --badge-background,
99
99
  var(--eun-color-warning-100, #c85207)
@@ -1,10 +1,10 @@
1
- import { LitElement, TemplateResult } from "lit";
1
+ import { LitElement, PropertyValues, TemplateResult } from "lit";
2
2
  import { EunomiaCardAppearance } from "../../../types/variant.type.js";
3
3
  /**
4
4
  * Tag name of the card component.
5
5
  */
6
6
  export declare const EunomiaCardTagName = "eun-card";
7
- declare const EunomiaCard_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/card-link.mixin.js").CardLinkMixinInterface> & typeof LitElement;
7
+ declare const EunomiaCard_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/card-link.mixin.js").CardLinkMixinInterface & import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
8
8
  /**
9
9
  * A padded, bordered surface around whatever's slotted in, with nothing
10
10
  * else opinionated about the content : no dedicated slots, no forced
@@ -17,26 +17,34 @@ declare const EunomiaCard_base: import("../../../utils/constructor.type.js").Con
17
17
  * slotting your own markup, styled with your own CSS, rather than
18
18
  * reaching for a layout variant baked into the component.
19
19
  *
20
- * @slot [default] - The card's content, arranged in a column by `--card-gap`
20
+ * Without href, a native anchor placed as a direct child links the whole
21
+ * card instead, stretched over its surface, so the link exists in the
22
+ * server-rendered HTML and can be a framework's own link component. Its
23
+ * accessible name stays the anchor's own text, typically the card title.
24
+ * When it opens in a new tab, the card shows the same external link badge
25
+ * and announces it through the anchor's aria-description.
26
+ *
27
+ * @slot [default] - The card's content, arranged in a column by `--card-gap`. A native anchor as a direct child links the whole card when href is unset
21
28
  * @csspart card - The outer box, a link once href is set, a plain container otherwise. Exposed for effects the card's CSS custom properties don't cover, such as a hover accent
22
29
  * @prop {'default' | 'fill' | 'raised'} [appearance='default'] - The card's surface style. Default is a plain surface colored box with a border. Fill and raised both drop the border, fill for a muted tinted background and raised for a drop shadow. All three animate a border, tint, or shadow change on hover or focus regardless of whether the card is a link, though the accompanying lift is narrower
23
30
  * @prop {string} href - The URL the card navigates to. When set, the card renders as a link instead of a plain wrapper
24
- * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology
31
+ * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology, in the current locale
32
+ * @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
25
33
  * @prop {string} download - The filename used when the linked URL is downloaded instead of navigated to. Only used when href is set
26
34
  * @attr {string} aria-label - An accessible label that overrides the card content. When the card also opens in a new tab, a note announcing it is appended automatically
27
35
  * @fires {NavigationEvent} eunnavigate - Fired before following href, so a client-side router can intercept the navigation. Not fired for downloads, and cancelable
28
36
  * @cssprop [--card-padding] - Sets the padding of the card
29
37
  * @cssprop [--card-gap] - Sets the gap between the card's own direct children
30
38
  * @cssprop [--card-border-radius] - Sets the corner radius of the card
31
- * @cssprop [--card-border-color] - Sets the border color, for the default appearance only, since fill and raised have no border
32
- * @cssprop [--card-border-width] - Sets the width of the border, for the default appearance only, since fill and raised have no border
33
- * @cssprop [--card-background] - Sets the background color, for the default appearance only. See card-fill-background for the fill appearance
39
+ * @cssprop [--card-border-color] - Sets the border color, for every appearance. Fill and raised have no border by default, so it draws one when set
40
+ * @cssprop [--card-border-width] - Sets the border width, for every appearance. Fill and raised have a transparent border by default, so it only shows once --card-border-color is set
41
+ * @cssprop [--card-background] - Sets the background color, for every appearance. The fill appearance reads card-fill-background first, then this one
34
42
  * @cssprop [--card-fill-background] - Sets the background color for the fill appearance
35
43
  * @cssprop [--card-fill-hover-background] - Sets the background color on hover for the fill appearance
36
44
  * @cssprop [--card-shadow] - Sets a box shadow for the default appearance, none by default. Replaced by a subtle elevation for the raised appearance, and unused by fill
37
45
  * @cssprop [--card-raised-hover-shadow] - Sets the box shadow on hover for the raised appearance
38
46
  * @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for every appearance. Setting this always applies it, link or not. Left unset, a small lift only applies to linked cards, since a non-linked card gets the border, tint, or shadow change on hover but stays in place otherwise
39
- * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for every appearance, including fill and raised, whose border is otherwise transparent rather than absent, reserving the space so the color reveals with no layout shift. Defaults to the primary color
47
+ * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for every appearance, including fill and raised, whose border is otherwise transparent rather than absent, reserving the space so the color reveals with no layout shift. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest (unchanged for default, still transparent for fill/raised) — hovering a non-link card gives no color feedback, since there's nothing to click
40
48
  * @cssprop [--card-hover-background] - Sets the background color on hover or focus, for the default appearance only, unchanged by default. See card-fill-hover-background for the fill appearance
41
49
  * @cssprop [--card-hover-duration] - Sets the duration of the hover transition
42
50
  * @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, outline, box shadow, background color, and border color
@@ -48,6 +56,7 @@ declare const EunomiaCard_base: import("../../../utils/constructor.type.js").Con
48
56
  * @element eun-card
49
57
  */
50
58
  export declare class EunomiaCard extends EunomiaCard_base {
59
+ #private;
51
60
  /**
52
61
  * Styles to import to the component.
53
62
  *
@@ -61,6 +70,25 @@ export declare class EunomiaCard extends EunomiaCard_base {
61
70
  * @default default
62
71
  */
63
72
  appearance: EunomiaCardAppearance;
73
+ /**
74
+ * Whether a native `<a>` slotted as a direct child links the card while
75
+ * `href` is unset (see the class doc). Navigation, `target`/`rel` and
76
+ * the new-tab hint are the consumer's own in this mode.
77
+ * @private
78
+ */
79
+ private get hasSlottedAnchor();
80
+ /**
81
+ * The native `<a>` slotted as a direct child while `href` is unset.
82
+ * @internal
83
+ */
84
+ private get slottedAnchor();
85
+ /**
86
+ * Re-renders when the default slot changes, so an anchor added or removed
87
+ * after the first render switches between the two modes.
88
+ * @private
89
+ */
90
+ private handleSlotChange;
91
+ protected updated(changed: PropertyValues): void;
64
92
  render(): TemplateResult;
65
93
  }
66
94
  declare global {
@@ -4,9 +4,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _EunomiaCard_newTab;
7
13
  import { customElement, property } from "lit/decorators.js";
8
14
  import { html, LitElement } from "lit";
15
+ import { ifDefined } from "lit/directives/if-defined.js";
9
16
  import { CardLinkMixin } from "../../../mixins/card-link.mixin.js";
17
+ import { warnIgnoredHostLinkAttributes } from "../../../utils/navigation.utils.js";
18
+ import { NewTabAnchorController } from "../../../utils/new-tab-anchor.controller.js";
10
19
  import { cardStyles } from "./card.styles.js";
11
20
  import { cardLinkStyles } from "../shared-styles/card-link.styles.js";
12
21
  /**
@@ -25,26 +34,34 @@ export const EunomiaCardTagName = "eun-card";
25
34
  * slotting your own markup, styled with your own CSS, rather than
26
35
  * reaching for a layout variant baked into the component.
27
36
  *
28
- * @slot [default] - The card's content, arranged in a column by `--card-gap`
37
+ * Without href, a native anchor placed as a direct child links the whole
38
+ * card instead, stretched over its surface, so the link exists in the
39
+ * server-rendered HTML and can be a framework's own link component. Its
40
+ * accessible name stays the anchor's own text, typically the card title.
41
+ * When it opens in a new tab, the card shows the same external link badge
42
+ * and announces it through the anchor's aria-description.
43
+ *
44
+ * @slot [default] - The card's content, arranged in a column by `--card-gap`. A native anchor as a direct child links the whole card when href is unset
29
45
  * @csspart card - The outer box, a link once href is set, a plain container otherwise. Exposed for effects the card's CSS custom properties don't cover, such as a hover accent
30
46
  * @prop {'default' | 'fill' | 'raised'} [appearance='default'] - The card's surface style. Default is a plain surface colored box with a border. Fill and raised both drop the border, fill for a muted tinted background and raised for a drop shadow. All three animate a border, tint, or shadow change on hover or focus regardless of whether the card is a link, though the accompanying lift is narrower
31
47
  * @prop {string} href - The URL the card navigates to. When set, the card renders as a link instead of a plain wrapper
32
- * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology
48
+ * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology, in the current locale
49
+ * @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
33
50
  * @prop {string} download - The filename used when the linked URL is downloaded instead of navigated to. Only used when href is set
34
51
  * @attr {string} aria-label - An accessible label that overrides the card content. When the card also opens in a new tab, a note announcing it is appended automatically
35
52
  * @fires {NavigationEvent} eunnavigate - Fired before following href, so a client-side router can intercept the navigation. Not fired for downloads, and cancelable
36
53
  * @cssprop [--card-padding] - Sets the padding of the card
37
54
  * @cssprop [--card-gap] - Sets the gap between the card's own direct children
38
55
  * @cssprop [--card-border-radius] - Sets the corner radius of the card
39
- * @cssprop [--card-border-color] - Sets the border color, for the default appearance only, since fill and raised have no border
40
- * @cssprop [--card-border-width] - Sets the width of the border, for the default appearance only, since fill and raised have no border
41
- * @cssprop [--card-background] - Sets the background color, for the default appearance only. See card-fill-background for the fill appearance
56
+ * @cssprop [--card-border-color] - Sets the border color, for every appearance. Fill and raised have no border by default, so it draws one when set
57
+ * @cssprop [--card-border-width] - Sets the border width, for every appearance. Fill and raised have a transparent border by default, so it only shows once --card-border-color is set
58
+ * @cssprop [--card-background] - Sets the background color, for every appearance. The fill appearance reads card-fill-background first, then this one
42
59
  * @cssprop [--card-fill-background] - Sets the background color for the fill appearance
43
60
  * @cssprop [--card-fill-hover-background] - Sets the background color on hover for the fill appearance
44
61
  * @cssprop [--card-shadow] - Sets a box shadow for the default appearance, none by default. Replaced by a subtle elevation for the raised appearance, and unused by fill
45
62
  * @cssprop [--card-raised-hover-shadow] - Sets the box shadow on hover for the raised appearance
46
63
  * @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for every appearance. Setting this always applies it, link or not. Left unset, a small lift only applies to linked cards, since a non-linked card gets the border, tint, or shadow change on hover but stays in place otherwise
47
- * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for every appearance, including fill and raised, whose border is otherwise transparent rather than absent, reserving the space so the color reveals with no layout shift. Defaults to the primary color
64
+ * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, for every appearance, including fill and raised, whose border is otherwise transparent rather than absent, reserving the space so the color reveals with no layout shift. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest (unchanged for default, still transparent for fill/raised) — hovering a non-link card gives no color feedback, since there's nothing to click
48
65
  * @cssprop [--card-hover-background] - Sets the background color on hover or focus, for the default appearance only, unchanged by default. See card-fill-hover-background for the fill appearance
49
66
  * @cssprop [--card-hover-duration] - Sets the duration of the hover transition
50
67
  * @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, outline, box shadow, background color, and border color
@@ -63,15 +80,58 @@ let EunomiaCard = class EunomiaCard extends CardLinkMixin(LitElement) {
63
80
  * @default default
64
81
  */
65
82
  this.appearance = "default";
83
+ /**
84
+ * Announces the slotted anchor opening in a new tab.
85
+ * @internal
86
+ */
87
+ _EunomiaCard_newTab.set(this, new NewTabAnchorController(this, () => this.slottedAnchor, () => this.dictionary.link.opensInNewTab));
88
+ /**
89
+ * Re-renders when the default slot changes, so an anchor added or removed
90
+ * after the first render switches between the two modes.
91
+ * @private
92
+ */
93
+ this.handleSlotChange = () => {
94
+ this.requestUpdate();
95
+ };
96
+ }
97
+ /**
98
+ * Whether a native `<a>` slotted as a direct child links the card while
99
+ * `href` is unset (see the class doc). Navigation, `target`/`rel` and
100
+ * the new-tab hint are the consumer's own in this mode.
101
+ * @private
102
+ */
103
+ get hasSlottedAnchor() {
104
+ return !!this.slottedAnchor;
105
+ }
106
+ /**
107
+ * The native `<a>` slotted as a direct child while `href` is unset.
108
+ * @internal
109
+ */
110
+ get slottedAnchor() {
111
+ return this.href ? null : this.querySelector(":scope > a");
112
+ }
113
+ updated(changed) {
114
+ super.updated(changed);
115
+ if (this.hasSlottedAnchor) {
116
+ warnIgnoredHostLinkAttributes(this);
117
+ }
66
118
  }
67
119
  render() {
68
- const inner = html `<slot></slot>${this.renderExternalLinkBadge()}`;
120
+ const inner = html `<slot @slotchange=${this.handleSlotChange}></slot
121
+ >${this.renderExternalLinkBadge(__classPrivateFieldGet(this, _EunomiaCard_newTab, "f").isBlank)}`;
69
122
  if (this.href) {
70
123
  return this.renderCardLink("card", inner);
71
124
  }
72
- return html `<div id="card" part="card">${inner}</div>`;
125
+ return html `<div
126
+ id="card"
127
+ part="card"
128
+ class=${ifDefined(this.hasSlottedAnchor ? "slotted-link" : undefined)}
129
+ >
130
+ ${inner}
131
+ </div>`;
73
132
  }
74
133
  };
134
+ _EunomiaCard_newTab = new WeakMap();
75
135
  /**
76
136
  * Styles to import to the component.
77
137
  *
@@ -20,13 +20,13 @@ const base = css `
20
20
  box-sizing: border-box;
21
21
  height: 100%;
22
22
  padding: var(--card-padding, var(--eun-space-m, 16px));
23
- border-radius: var(--card-border-radius, var(--eun-borderRadius-m, 8px));
24
- border: var(--card-border-width, var(--eun-borderWidth-s, 1px)) solid
23
+ border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
24
+ border: var(--card-border-width, var(--eun-border-width-s, 1px)) solid
25
25
  var(--card-border-color, var(--eun-border-color, #dee0e7));
26
26
  background: var(--card-background, var(--eun-surface-color, #ffffff));
27
27
  box-shadow: var(--card-shadow, none);
28
28
  color: var(--eun-text-color, #071621);
29
- font-size: var(--eun-fontSize-s, 14px);
29
+ font-size: var(--eun-font-size-s, 14px);
30
30
  text-decoration: none;
31
31
  outline: 2px solid transparent;
32
32
  transition: var(
@@ -60,9 +60,18 @@ const base = css `
60
60
 
61
61
  :host {
62
62
  --_hoverLift: none;
63
+ --_hoverBorderDefault: var(
64
+ --card-border-color,
65
+ var(--eun-border-color, #dee0e7)
66
+ );
67
+ }
68
+ :host([appearance="fill"]),
69
+ :host([appearance="raised"]) {
70
+ --_hoverBorderDefault: var(--card-border-color, transparent);
63
71
  }
64
72
  :host([href]) {
65
73
  --_hoverLift: translateY(-4px);
74
+ --_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
66
75
  }
67
76
 
68
77
  :host([appearance="default"]) #card:hover,
@@ -76,7 +85,7 @@ const base = css `
76
85
 
77
86
  :host([appearance="fill"]) #card,
78
87
  :host([appearance="raised"]) #card {
79
- border-color: transparent;
88
+ border-color: var(--card-border-color, transparent);
80
89
  }
81
90
 
82
91
  :host([appearance="fill"]) #card:hover,
@@ -85,14 +94,14 @@ const base = css `
85
94
  :host([appearance="raised"]) #card:focus-visible,
86
95
  #card:hover,
87
96
  #card:focus-visible {
88
- border-color: var(
89
- --card-hover-border-color,
90
- var(--eun-color-primary-500, #3d6fff)
91
- );
97
+ border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
92
98
  }
93
99
 
94
100
  :host([appearance="fill"]) #card {
95
- background: var(--card-fill-background, var(--eun-color-grey-100, #f7f8fa));
101
+ background: var(
102
+ --card-fill-background,
103
+ var(--card-background, var(--eun-surface-sunken, #f7f8fa))
104
+ );
96
105
  }
97
106
 
98
107
  :host([appearance="raised"]) #card {
@@ -106,7 +115,7 @@ const base = css `
106
115
  transform: var(--card-hover-transform, var(--_hoverLift));
107
116
  background: var(
108
117
  --card-fill-hover-background,
109
- var(--eun-color-grey-200, #ecedf0)
118
+ var(--eun-surface-sunken-hover, #ecedf0)
110
119
  );
111
120
  }
112
121
 
@@ -122,8 +131,40 @@ const base = css `
122
131
  );
123
132
  }
124
133
 
134
+ #card.slotted-link {
135
+ --_hoverLift: translateY(-4px);
136
+ --_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
137
+ cursor: pointer;
138
+ }
139
+ ::slotted(a) {
140
+ color: inherit;
141
+ text-decoration: none;
142
+ outline: none !important;
143
+ }
144
+ ::slotted(a)::after {
145
+ content: "";
146
+ position: absolute;
147
+ inset: calc(-1 * var(--card-border-width, var(--eun-border-width-s, 1px)));
148
+ z-index: 1;
149
+ border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
150
+ outline: 2px solid transparent;
151
+ transition: outline 0.2s ease-out;
152
+ }
153
+ ::slotted(a:focus-visible)::after {
154
+ outline-color: var(
155
+ --card-focus-outline-color,
156
+ var(--eun-color-primary-500, #3d6fff)
157
+ );
158
+ outline-offset: 2px;
159
+ }
160
+ :host(:focus-within) #card.slotted-link {
161
+ transform: var(--card-hover-transform, var(--_hoverLift));
162
+ border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
163
+ }
164
+
125
165
  @media (prefers-reduced-motion: reduce) {
126
- #card {
166
+ #card,
167
+ ::slotted(a)::after {
127
168
  transition: none;
128
169
  }
129
170
  }
@@ -3,7 +3,7 @@ import { LitElement, TemplateResult } from "lit";
3
3
  * Tag name of the image card component.
4
4
  */
5
5
  export declare const EunomiaImageCardTagName = "eun-image-card";
6
- declare const EunomiaImageCard_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/card-link.mixin.js").CardLinkMixinInterface> & typeof LitElement;
6
+ declare const EunomiaImageCard_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/card-link.mixin.js").CardLinkMixinInterface & import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
7
7
  /**
8
8
  * An image header with a title and description footer, such as a blog post
9
9
  * preview, a product tile, or a team member card. It shares the same CSS
@@ -19,6 +19,7 @@ declare const EunomiaImageCard_base: import("../../../utils/constructor.type.js"
19
19
  * @csspart card - The outer box, a link once href is set, a plain container otherwise. Exposed for effects the card's CSS custom properties don't cover, such as a hover accent
20
20
  * @prop {string} href - The URL the card navigates to. When set, the card renders as a link instead of a plain wrapper
21
21
  * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology
22
+ * @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
22
23
  * @prop {string} download - The filename used when the linked URL is downloaded instead of navigated to. Only used when href is set
23
24
  * @attr {string} aria-label - An accessible label that overrides the card content. When the card also opens in a new tab, a note announcing it is appended automatically
24
25
  * @fires {NavigationEvent} eunnavigate - Fired before following href, so a client-side router can intercept the navigation. Not fired for downloads, and cancelable
@@ -30,7 +31,7 @@ declare const EunomiaImageCard_base: import("../../../utils/constructor.type.js"
30
31
  * @cssprop [--card-background] - Sets the background color of the card
31
32
  * @cssprop [--card-shadow] - Sets a box shadow, none by default
32
33
  * @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for linked cards only, defaulting to a small lift
33
- * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, linked or not. Defaults to the primary color
34
+ * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest — hovering a non-link card gives no color feedback, since there's nothing to click
34
35
  * @cssprop [--card-hover-background] - Sets the background color on hover or focus, linked or not, unchanged by default
35
36
  * @cssprop [--card-hover-duration] - Sets the duration of the hover transition
36
37
  * @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, box shadow, background color, and border color
@@ -28,6 +28,7 @@ export const EunomiaImageCardTagName = "eun-image-card";
28
28
  * @csspart card - The outer box, a link once href is set, a plain container otherwise. Exposed for effects the card's CSS custom properties don't cover, such as a hover accent
29
29
  * @prop {string} href - The URL the card navigates to. When set, the card renders as a link instead of a plain wrapper
30
30
  * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology
31
+ * @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
31
32
  * @prop {string} download - The filename used when the linked URL is downloaded instead of navigated to. Only used when href is set
32
33
  * @attr {string} aria-label - An accessible label that overrides the card content. When the card also opens in a new tab, a note announcing it is appended automatically
33
34
  * @fires {NavigationEvent} eunnavigate - Fired before following href, so a client-side router can intercept the navigation. Not fired for downloads, and cancelable
@@ -39,7 +40,7 @@ export const EunomiaImageCardTagName = "eun-image-card";
39
40
  * @cssprop [--card-background] - Sets the background color of the card
40
41
  * @cssprop [--card-shadow] - Sets a box shadow, none by default
41
42
  * @cssprop [--card-hover-transform] - Sets a transform applied on hover or focus, for linked cards only, defaulting to a small lift
42
- * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus, linked or not. Defaults to the primary color
43
+ * @cssprop [--card-hover-border-color] - Sets the border color on hover or focus. Defaults to the primary color when `href` is set, otherwise the border stays exactly as it is at rest — hovering a non-link card gives no color feedback, since there's nothing to click
43
44
  * @cssprop [--card-hover-background] - Sets the background color on hover or focus, linked or not, unchanged by default
44
45
  * @cssprop [--card-hover-duration] - Sets the duration of the hover transition
45
46
  * @cssprop [--card-transition] - Overrides the card's whole hover transition, for example to animate an extra property alongside the built-in ones. Defaults to transform, box shadow, background color, and border color
@@ -20,8 +20,8 @@ const base = css `
20
20
  box-sizing: border-box;
21
21
  height: 100%;
22
22
  overflow: hidden;
23
- border-radius: var(--card-border-radius, var(--eun-borderRadius-m, 8px));
24
- border: var(--card-border-width, var(--eun-borderWidth-s, 1px)) solid
23
+ border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
24
+ border: var(--card-border-width, var(--eun-border-width-s, 1px)) solid
25
25
  var(--card-border-color, var(--eun-border-color, #dee0e7));
26
26
  background: var(--card-background, var(--eun-surface-color, #ffffff));
27
27
  box-shadow: var(--card-shadow, none);
@@ -36,12 +36,19 @@ const base = css `
36
36
  );
37
37
  }
38
38
 
39
+ :host {
40
+ --_hoverBorderDefault: var(
41
+ --card-border-color,
42
+ var(--eun-border-color, #dee0e7)
43
+ );
44
+ }
45
+ :host([href]) {
46
+ --_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
47
+ }
48
+
39
49
  #card:hover,
40
50
  #card:focus-visible {
41
- border-color: var(
42
- --card-hover-border-color,
43
- var(--eun-color-primary-500, #3d6fff)
44
- );
51
+ border-color: var(--card-hover-border-color, var(--_hoverBorderDefault));
45
52
  background: var(
46
53
  --card-hover-background,
47
54
  var(--card-background, var(--eun-surface-color, #ffffff))
@@ -85,14 +92,14 @@ const base = css `
85
92
  }
86
93
 
87
94
  ::slotted([slot="title"]) {
88
- font-weight: var(--eun-fontWeight-l, 700);
89
- font-size: var(--image-card-title-size, var(--eun-fontSize-m, 16px));
95
+ font-weight: var(--eun-font-weight-l, 700);
96
+ font-size: var(--image-card-title-size, var(--eun-font-size-m, 16px));
90
97
  color: var(--eun-text-color, #071621);
91
98
  }
92
99
 
93
100
  ::slotted([slot="description"]) {
94
- font-weight: var(--eun-fontWeight-s, 300);
95
- font-size: var(--image-card-description-size, var(--eun-fontSize-s, 14px));
101
+ font-weight: var(--eun-font-weight-s, 300);
102
+ font-size: var(--image-card-description-size, var(--eun-font-size-s, 14px));
96
103
  color: var(--eun-text-secondary, #484e61);
97
104
  }
98
105
 
@@ -3,7 +3,7 @@ import { LitElement, TemplateResult } from "lit";
3
3
  * Tag name of the sliding card component.
4
4
  */
5
5
  export declare const EunomiaSlidingCardTagName = "eun-sliding-card";
6
- declare const EunomiaSlidingCard_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/card-link.mixin.js").CardLinkMixinInterface> & typeof LitElement;
6
+ declare const EunomiaSlidingCard_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/card-link.mixin.js").CardLinkMixinInterface & import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
7
7
  /**
8
8
  * A card with a two layer slide reveal. The front layer is always visible
9
9
  * and slides down to expose the back layer underneath.
@@ -35,6 +35,7 @@ declare const EunomiaSlidingCard_base: import("../../../utils/constructor.type.j
35
35
  * @prop {boolean} [hint=false] - Loops a bounce animation on touch devices while closed, hinting that the card is interactive
36
36
  * @prop {string} href - The URL the back layer navigates to. When set, the back layer renders as a link instead of a plain container
37
37
  * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology
38
+ * @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
38
39
  * @prop {string} download - The filename used when the linked URL is downloaded instead of navigated to. Only used when href is set
39
40
  * @attr {string} aria-label - The accessible label for the front layer's toggle control, touch devices only, since desktop has no such control. When the back layer also opens in a new tab, a note announcing it is appended automatically
40
41
  * @fires {NavigationEvent} eunnavigate - Fired before following href, so a client-side router can intercept the navigation. Not fired for downloads, and cancelable
@@ -47,6 +47,7 @@ export const EunomiaSlidingCardTagName = "eun-sliding-card";
47
47
  * @prop {boolean} [hint=false] - Loops a bounce animation on touch devices while closed, hinting that the card is interactive
48
48
  * @prop {string} href - The URL the back layer navigates to. When set, the back layer renders as a link instead of a plain container
49
49
  * @prop {'_blank' | '_self' | '_parent' | '_top'} target - Where to open the linked URL. Only used when href is set. Opening in a new tab automatically adds an external link badge and announces it to assistive technology
50
+ * @prop {string} [locale] - The locale used to resolve the "opens in a new tab" announcement. Defaults to the one set with setDefaultLocale, English otherwise
50
51
  * @prop {string} download - The filename used when the linked URL is downloaded instead of navigated to. Only used when href is set
51
52
  * @attr {string} aria-label - The accessible label for the front layer's toggle control, touch devices only, since desktop has no such control. When the back layer also opens in a new tab, a note announcing it is appended automatically
52
53
  * @fires {NavigationEvent} eunnavigate - Fired before following href, so a client-side router can intercept the navigation. Not fired for downloads, and cancelable
@@ -63,7 +63,7 @@ const base = css `
63
63
  position: absolute;
64
64
  border-radius: var(
65
65
  --sliding-card-border-radius,
66
- var(--eun-borderRadius-l, 16px)
66
+ var(--eun-border-radius-l, 16px)
67
67
  );
68
68
  padding: var(--sliding-card-padding, var(--eun-space-l, 32px));
69
69
  overflow: hidden;
@@ -115,7 +115,8 @@ const base = css `
115
115
  --sliding-card-front-background,
116
116
  var(--eun-surface-color, #ffffff)
117
117
  );
118
- border: var(--eun-borderWidth-s, 1px) solid var(--eun-border-color, #dee0e7);
118
+ border: var(--eun-border-width-s, 1px) solid
119
+ var(--eun-border-color, #dee0e7);
119
120
  z-index: 2;
120
121
  }
121
122
 
@@ -52,7 +52,9 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
52
52
  * @fires {CloseEvent} eunclose - Fired when the delete button is activated. The chip has no visibility state of its own, so removing or hiding it in response is the consumer's own responsibility
53
53
  * @prop {'primary' | 'secondary' | 'light' | 'medium' | 'dark'} [color='medium'] - The color to apply to the chip
54
54
  * @prop {'info' | 'success' | 'warning' | 'critical' | 'neutral'} severity - The severity of the chip, matching the nature of the information conveyed. Takes priority over color when both are set
55
- * @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat always renders the same muted, low emphasis surface regardless of color or severity
55
+ * @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat renders the same muted, low emphasis surface regardless of color or severity, except for the light and dark colors, which keep their own white or black
56
+ * @prop {boolean} [fixedColor=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
57
+ * @attr {boolean} [fixed-color=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
56
58
  * @prop {'s' | 'm' | 'l'} [size='m'] - The size of the chip
57
59
  * @prop {EunomiaIconName} icon - The leading icon to display. Ignored once an avatar image or initials are set. When severity is set and icon isn't, the icon is set according to the chip's severity
58
60
  * @prop {boolean} [hideIcon=false] - Whether the leading icon is hidden from the chip, once resolved. The avatar and initials are unaffected
@@ -71,13 +73,13 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
71
73
  * @prop {string} [ariaLabelRemove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name, such as "Remove Alice Doe", so multiple chips on the same page stay distinguishable to assistive technology. Defaults to the localized string for the current locale (English: "Remove")
72
74
  * @attr {string} [aria-label-remove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name. Defaults to the localized string for the current locale (English: "Remove")
73
75
  * @prop {string} [locale] - The locale used to resolve the default accessible label of the delete button. Defaults to the runtime's own
74
- * @cssprop [--chip-background-color] - Sets the background color of the chip
75
- * @cssprop [--chip-border-color] - Sets the border color of the chip, for the outline appearance
76
- * @cssprop [--chip-border-width] - Sets the border width of the chip, for the outline appearance
76
+ * @cssprop [--chip-background-color] - Sets the background color of the chip, for every appearance, color and severity
77
+ * @cssprop [--chip-border-color] - Sets the border color of the chip, for every appearance, color and severity
78
+ * @cssprop [--chip-border-width] - Sets the border width of the chip, for every appearance. The border takes room out of the padding, so the chip keeps its size
77
79
  * @cssprop [--chip-box-shadow] - Sets a box shadow on the chip, none by default
78
- * @cssprop [--chip-color] - Sets the text color of the chip
80
+ * @cssprop [--chip-color] - Sets the text color of the chip, for every appearance, color and severity
79
81
  * @cssprop [--chip-icon-color] - Sets the color of the leading icon only, not the avatar, initials, or delete button icon. Defaults to matching the chip's own text color
80
- * @cssprop [--chip-border-radius] - Sets the corner radius of the chip when rounded is unset
82
+ * @cssprop [--chip-border-radius] - Sets the corner radius of the chip, also over rounded
81
83
  * @cssprop [--chip-gap] - Sets the gap between the chip's leading visual, label, and delete button
82
84
  * @cssprop [--chip-avatar-background] - Sets the background color of the initials badge
83
85
  * @cssprop [--chip-avatar-color] - Sets the text color of the initials badge
@@ -93,11 +95,18 @@ export declare class EunomiaChip extends EunomiaChip_base {
93
95
  * @internal
94
96
  * @readonly
95
97
  */
96
- static readonly styles: import("lit").CSSResult;
98
+ static readonly styles: import("lit").CSSResult[];
97
99
  /**
98
100
  * The color of the chip.
99
101
  */
100
102
  color: EunomiaChipColor;
103
+ /**
104
+ * Keeps a `light` or `dark` chip white or black in every theme. Without
105
+ * it, they follow the grey scale, which flips with the active theme.
106
+ * Has no effect on the other colors or on `severity`.
107
+ * @default false
108
+ */
109
+ fixedColor: boolean;
101
110
  /**
102
111
  * The severity of the chip to display.
103
112
  */
@@ -56,7 +56,9 @@ const DELETE_ICON_SIZES = {
56
56
  * @fires {CloseEvent} eunclose - Fired when the delete button is activated. The chip has no visibility state of its own, so removing or hiding it in response is the consumer's own responsibility
57
57
  * @prop {'primary' | 'secondary' | 'light' | 'medium' | 'dark'} [color='medium'] - The color to apply to the chip
58
58
  * @prop {'info' | 'success' | 'warning' | 'critical' | 'neutral'} severity - The severity of the chip, matching the nature of the information conveyed. Takes priority over color when both are set
59
- * @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat always renders the same muted, low emphasis surface regardless of color or severity
59
+ * @prop {'default' | 'fill' | 'outline' | 'flat'} [appearance='default'] - The surface style of the chip. Flat renders the same muted, low emphasis surface regardless of color or severity, except for the light and dark colors, which keep their own white or black
60
+ * @prop {boolean} [fixedColor=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
61
+ * @attr {boolean} [fixed-color=false] - Keeps a light or dark chip white or black in every theme. Without it, they follow the grey scale, which flips with the active theme. Has no effect on the other colors or on severity
60
62
  * @prop {'s' | 'm' | 'l'} [size='m'] - The size of the chip
61
63
  * @prop {EunomiaIconName} icon - The leading icon to display. Ignored once an avatar image or initials are set. When severity is set and icon isn't, the icon is set according to the chip's severity
62
64
  * @prop {boolean} [hideIcon=false] - Whether the leading icon is hidden from the chip, once resolved. The avatar and initials are unaffected
@@ -75,13 +77,13 @@ const DELETE_ICON_SIZES = {
75
77
  * @prop {string} [ariaLabelRemove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name, such as "Remove Alice Doe", so multiple chips on the same page stay distinguishable to assistive technology. Defaults to the localized string for the current locale (English: "Remove")
76
78
  * @attr {string} [aria-label-remove] - A prefix combined with the chip's own slotted text to build the delete button's accessible name. Defaults to the localized string for the current locale (English: "Remove")
77
79
  * @prop {string} [locale] - The locale used to resolve the default accessible label of the delete button. Defaults to the runtime's own
78
- * @cssprop [--chip-background-color] - Sets the background color of the chip
79
- * @cssprop [--chip-border-color] - Sets the border color of the chip, for the outline appearance
80
- * @cssprop [--chip-border-width] - Sets the border width of the chip, for the outline appearance
80
+ * @cssprop [--chip-background-color] - Sets the background color of the chip, for every appearance, color and severity
81
+ * @cssprop [--chip-border-color] - Sets the border color of the chip, for every appearance, color and severity
82
+ * @cssprop [--chip-border-width] - Sets the border width of the chip, for every appearance. The border takes room out of the padding, so the chip keeps its size
81
83
  * @cssprop [--chip-box-shadow] - Sets a box shadow on the chip, none by default
82
- * @cssprop [--chip-color] - Sets the text color of the chip
84
+ * @cssprop [--chip-color] - Sets the text color of the chip, for every appearance, color and severity
83
85
  * @cssprop [--chip-icon-color] - Sets the color of the leading icon only, not the avatar, initials, or delete button icon. Defaults to matching the chip's own text color
84
- * @cssprop [--chip-border-radius] - Sets the corner radius of the chip when rounded is unset
86
+ * @cssprop [--chip-border-radius] - Sets the corner radius of the chip, also over rounded
85
87
  * @cssprop [--chip-gap] - Sets the gap between the chip's leading visual, label, and delete button
86
88
  * @cssprop [--chip-avatar-background] - Sets the background color of the initials badge
87
89
  * @cssprop [--chip-avatar-color] - Sets the text color of the initials badge
@@ -96,6 +98,13 @@ let EunomiaChip = class EunomiaChip extends LocalizableMixin(LitElement) {
96
98
  * The color of the chip.
97
99
  */
98
100
  this.color = "medium";
101
+ /**
102
+ * Keeps a `light` or `dark` chip white or black in every theme. Without
103
+ * it, they follow the grey scale, which flips with the active theme.
104
+ * Has no effect on the other colors or on `severity`.
105
+ * @default false
106
+ */
107
+ this.fixedColor = false;
99
108
  /**
100
109
  * The surface treatment of the chip.
101
110
  * @default default
@@ -323,6 +332,9 @@ EunomiaChip.styles = chipStyles;
323
332
  __decorate([
324
333
  property({ reflect: true })
325
334
  ], EunomiaChip.prototype, "color", void 0);
335
+ __decorate([
336
+ property({ type: Boolean, reflect: true, attribute: "fixed-color" })
337
+ ], EunomiaChip.prototype, "fixedColor", void 0);
326
338
  __decorate([
327
339
  property({ reflect: true })
328
340
  ], EunomiaChip.prototype, "severity", void 0);