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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/components/chunks/{chunk-3LMI7KUA.js → chunk-2JLDJFYD.js} +1 -1
  3. package/dist/cdn/components/chunks/chunk-4MXL6PZC.js +124 -0
  4. package/dist/cdn/components/chunks/{chunk-32KRPOPV.js → chunk-5XJGYXW7.js} +6 -6
  5. package/dist/cdn/components/chunks/{chunk-O2HNWH65.js → chunk-5XJLIHAU.js} +7 -7
  6. package/dist/cdn/components/chunks/{chunk-5GF2Q3NR.js → chunk-74AOAB4X.js} +1 -1
  7. package/dist/cdn/components/chunks/{chunk-WYMBUIKX.js → chunk-A6KGFALA.js} +4 -4
  8. package/dist/cdn/components/chunks/chunk-BMQOI7HX.js +371 -0
  9. package/dist/cdn/components/chunks/{chunk-LJYTHDZP.js → chunk-D2M4BV5Y.js} +6 -6
  10. package/dist/cdn/components/chunks/{chunk-NEYBPT3D.js → chunk-EJIX2D4Z.js} +2 -2
  11. package/dist/cdn/components/chunks/{chunk-BYBUXKXC.js → chunk-EOWBYZV7.js} +2 -2
  12. package/dist/cdn/components/chunks/chunk-EST3M4AO.js +1 -0
  13. package/dist/cdn/components/chunks/{chunk-TBKKTJOX.js → chunk-GSJEJLFA.js} +3 -3
  14. package/dist/cdn/components/chunks/{chunk-5RCCZVFZ.js → chunk-IJ5WFMK4.js} +1 -1
  15. package/dist/cdn/components/chunks/{chunk-RWONCXTF.js → chunk-KVYUNKUO.js} +2 -2
  16. package/dist/cdn/components/chunks/chunk-LGLQ36QB.js +16 -0
  17. package/dist/cdn/components/chunks/{chunk-53QH6MPM.js → chunk-NHFWATVN.js} +1 -1
  18. package/dist/cdn/components/chunks/chunk-OAULRKHQ.js +38 -0
  19. package/dist/cdn/components/chunks/chunk-P32B7BFD.js +118 -0
  20. package/dist/cdn/components/chunks/{chunk-ZPFHTJSS.js → chunk-PCM7D3YF.js} +1 -1
  21. package/dist/cdn/components/chunks/{chunk-ABYEBP57.js → chunk-PED5ATYN.js} +11 -8
  22. package/dist/cdn/components/chunks/{chunk-ON42P6FI.js → chunk-RJCJXB7Y.js} +5 -5
  23. package/dist/cdn/components/chunks/{chunk-5C7YND22.js → chunk-S2UCEWNG.js} +8 -8
  24. package/dist/cdn/components/chunks/{chunk-EAGGN3ZI.js → chunk-SIHZFOTK.js} +9 -9
  25. package/dist/cdn/components/chunks/{chunk-6UPI7GHJ.js → chunk-UAGCQF23.js} +7 -7
  26. package/dist/cdn/components/chunks/{chunk-6IILPCSQ.js → chunk-X2AUBZD2.js} +3 -3
  27. package/dist/cdn/components/chunks/chunk-YGUJJ25C.js +263 -0
  28. package/dist/cdn/components/eun-alert.js +65 -45
  29. package/dist/cdn/components/eun-badge.js +1 -1
  30. package/dist/cdn/components/eun-breadcrumb-item.js +14 -10
  31. package/dist/cdn/components/eun-breadcrumb.js +11 -7
  32. package/dist/cdn/components/eun-button.js +1 -1
  33. package/dist/cdn/components/eun-calendar.js +16 -16
  34. package/dist/cdn/components/eun-card.js +21 -12
  35. package/dist/cdn/components/eun-carousel.js +35 -27
  36. package/dist/cdn/components/eun-check-card.js +3 -3
  37. package/dist/cdn/components/eun-checkbox-list.js +3 -3
  38. package/dist/cdn/components/eun-checkbox.js +1 -1
  39. package/dist/cdn/components/eun-chip.js +45 -207
  40. package/dist/cdn/components/eun-collapse.js +13 -12
  41. package/dist/cdn/components/eun-color-picker.js +12 -12
  42. package/dist/cdn/components/eun-counter.js +8 -8
  43. package/dist/cdn/components/eun-date-picker.js +50 -50
  44. package/dist/cdn/components/eun-drawer.js +3 -3
  45. package/dist/cdn/components/eun-dropdown-button.js +1 -1
  46. package/dist/cdn/components/eun-dropdown-item.js +6 -6
  47. package/dist/cdn/components/eun-fab.js +31 -53
  48. package/dist/cdn/components/eun-icon.js +1 -1
  49. package/dist/cdn/components/eun-image-card.js +18 -11
  50. package/dist/cdn/components/eun-image-carousel.js +16 -16
  51. package/dist/cdn/components/eun-infinite-list.js +1 -1
  52. package/dist/cdn/components/eun-input-file.js +12 -12
  53. package/dist/cdn/components/eun-input-phone.js +13 -13
  54. package/dist/cdn/components/eun-input.js +1 -1
  55. package/dist/cdn/components/eun-label.js +4 -4
  56. package/dist/cdn/components/eun-link.js +29 -11
  57. package/dist/cdn/components/eun-loader.js +1 -1
  58. package/dist/cdn/components/eun-modal.js +6 -6
  59. package/dist/cdn/components/eun-pagination.js +3 -3
  60. package/dist/cdn/components/eun-password-strength.js +9 -6
  61. package/dist/cdn/components/eun-progress-bar.js +13 -13
  62. package/dist/cdn/components/eun-radio-card.js +2 -2
  63. package/dist/cdn/components/eun-radio-list.js +1 -1
  64. package/dist/cdn/components/eun-radio.js +1 -1
  65. package/dist/cdn/components/eun-scheduler-event-editor.js +2 -2
  66. package/dist/cdn/components/eun-scheduler-event.js +1 -1
  67. package/dist/cdn/components/eun-scheduler.js +10 -10
  68. package/dist/cdn/components/eun-search.js +7 -7
  69. package/dist/cdn/components/eun-select.js +10 -10
  70. package/dist/cdn/components/eun-sidebar.js +9 -9
  71. package/dist/cdn/components/eun-skeleton.js +1 -1
  72. package/dist/cdn/components/eun-slider.js +8 -8
  73. package/dist/cdn/components/eun-sliding-card.js +4 -3
  74. package/dist/cdn/components/eun-step.js +8 -8
  75. package/dist/cdn/components/eun-stepper.js +8 -8
  76. package/dist/cdn/components/eun-switch.js +10 -10
  77. package/dist/cdn/components/eun-tab-group.js +19 -11
  78. package/dist/cdn/components/eun-tab-panel.js +1 -1
  79. package/dist/cdn/components/eun-tab.js +1 -1
  80. package/dist/cdn/components/eun-table-action-bar.js +1 -1
  81. package/dist/cdn/components/eun-table-cell.js +1 -1
  82. package/dist/cdn/components/eun-table-column.js +1 -1
  83. package/dist/cdn/components/eun-table-header.js +1 -1
  84. package/dist/cdn/components/eun-table-item.js +1 -1
  85. package/dist/cdn/components/eun-table-skeleton-row.js +1 -1
  86. package/dist/cdn/components/eun-table.js +3 -3
  87. package/dist/cdn/components/eun-tag.js +34 -126
  88. package/dist/cdn/components/eun-textarea.js +22 -22
  89. package/dist/cdn/components/eun-time-picker.js +25 -25
  90. package/dist/cdn/components/eun-toast.js +40 -36
  91. package/dist/cdn/components/eun-toggle-group.js +199 -66
  92. package/dist/cdn/components/eun-toggle-item.js +41 -24
  93. package/dist/cdn/components/eun-toggle.js +11 -8
  94. package/dist/cdn/components/eun-toolbar.js +14 -7
  95. package/dist/cdn/components/eun-tooltip.js +122 -87
  96. package/dist/cdn/styles/eunomia-themes.css +1 -1
  97. package/dist/cdn/styles/themes/eunomia-theme.css +1 -1
  98. package/dist/cdn/styles/themes/eunomia-theme.scss +1 -0
  99. package/dist/cdn/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
  100. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
  101. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
  102. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.css +1 -1
  103. package/dist/cdn/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
  104. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
  105. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
  106. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.css +1 -1
  107. package/dist/cdn/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
  108. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
  109. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
  110. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.css +1 -1
  111. package/dist/cdn/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
  112. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
  113. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
  114. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.css +1 -1
  115. package/dist/cdn/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
  116. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
  117. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
  118. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.css +1 -1
  119. package/dist/cdn/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
  120. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
  121. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
  122. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.css +1 -1
  123. package/dist/cdn/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
  124. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
  125. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
  126. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.css +1 -1
  127. package/dist/cdn/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
  128. package/dist/cdn/styles/tools/indexes/eunomia-tools.index.scss +1 -0
  129. package/dist/cdn/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
  130. package/dist/cdn/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
  131. package/dist/cdn/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
  132. package/dist/cdn/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
  133. package/dist/components/action/button/button.d.ts +2 -0
  134. package/dist/components/action/button/button.js +2 -0
  135. package/dist/components/action/button/button.styles.js +132 -384
  136. package/dist/components/action/dropdown-button/dropdown-button.d.ts +7 -0
  137. package/dist/components/action/dropdown-button/dropdown-button.js +11 -0
  138. package/dist/components/action/dropdown-button/dropdown-button.styles.js +8 -8
  139. package/dist/components/action/dropdown-button/dropdown-item.styles.js +6 -6
  140. package/dist/components/action/fab/fab.d.ts +3 -1
  141. package/dist/components/action/fab/fab.js +3 -1
  142. package/dist/components/action/fab/fab.styles.js +26 -49
  143. package/dist/components/action/link/link.d.ts +50 -0
  144. package/dist/components/action/link/link.js +69 -1
  145. package/dist/components/action/link/link.styles.js +19 -2
  146. package/dist/components/action/shared-styles/button-palette.styles.d.ts +27 -0
  147. package/dist/components/action/shared-styles/button-palette.styles.js +151 -0
  148. package/dist/components/action/toggle/toggle-group.d.ts +41 -7
  149. package/dist/components/action/toggle/toggle-group.js +161 -45
  150. package/dist/components/action/toggle/toggle-group.styles.d.ts +6 -5
  151. package/dist/components/action/toggle/toggle-group.styles.js +152 -35
  152. package/dist/components/action/toggle/toggle-item.styles.js +37 -20
  153. package/dist/components/action/toggle/toggle.d.ts +1 -1
  154. package/dist/components/action/toggle/toggle.js +1 -1
  155. package/dist/components/action/toggle/toggle.styles.d.ts +2 -2
  156. package/dist/components/action/toggle/toggle.styles.js +13 -10
  157. package/dist/components/alert/alert/alert.d.ts +4 -3
  158. package/dist/components/alert/alert/alert.js +4 -3
  159. package/dist/components/alert/alert/alert.styles.js +57 -36
  160. package/dist/components/alert/drawer/drawer.styles.js +3 -3
  161. package/dist/components/alert/modal/modal.styles.js +6 -6
  162. package/dist/components/alert/toast/toast.d.ts +4 -3
  163. package/dist/components/alert/toast/toast.js +4 -3
  164. package/dist/components/alert/toast/toast.styles.js +41 -36
  165. package/dist/components/content/badge/badge.styles.js +1 -1
  166. package/dist/components/content/card/card.d.ts +4 -4
  167. package/dist/components/content/card/card.js +4 -4
  168. package/dist/components/content/card/card.styles.js +19 -10
  169. package/dist/components/content/card/image-card.d.ts +1 -1
  170. package/dist/components/content/card/image-card.js +1 -1
  171. package/dist/components/content/card/image-card.styles.js +17 -10
  172. package/dist/components/content/card/sliding-card.styles.js +3 -2
  173. package/dist/components/content/chip/chip.d.ts +16 -7
  174. package/dist/components/content/chip/chip.js +18 -6
  175. package/dist/components/content/chip/chip.styles.d.ts +1 -1
  176. package/dist/components/content/chip/chip.styles.js +43 -207
  177. package/dist/components/content/collapse/collapse.styles.js +10 -9
  178. package/dist/components/content/icon/icon.style.js +1 -1
  179. package/dist/components/content/image-carousel/image-carousel.styles.js +14 -14
  180. package/dist/components/content/password-strength/password-strength.styles.js +7 -4
  181. package/dist/components/content/progress-bar/progress-bar.styles.js +9 -9
  182. package/dist/components/content/shared-styles/tone-surface.styles.d.ts +31 -0
  183. package/dist/components/content/shared-styles/tone-surface.styles.js +149 -0
  184. package/dist/components/content/tag/tag.d.ts +16 -6
  185. package/dist/components/content/tag/tag.js +19 -6
  186. package/dist/components/content/tag/tag.styles.d.ts +1 -1
  187. package/dist/components/content/tag/tag.styles.js +40 -125
  188. package/dist/components/content/tooltip/tooltip.d.ts +15 -4
  189. package/dist/components/content/tooltip/tooltip.js +21 -4
  190. package/dist/components/content/tooltip/tooltip.styles.js +115 -79
  191. package/dist/components/form/checkbox/check-card.styles.js +2 -2
  192. package/dist/components/form/checkbox/checkbox-list.d.ts +1 -1
  193. package/dist/components/form/checkbox/checkbox.d.ts +1 -1
  194. package/dist/components/form/checkbox/checkbox.styles.js +6 -6
  195. package/dist/components/form/color-picker/color-picker.d.ts +1 -1
  196. package/dist/components/form/color-picker/color-picker.styles.js +7 -7
  197. package/dist/components/form/counter/counter.d.ts +1 -1
  198. package/dist/components/form/counter/counter.styles.js +7 -7
  199. package/dist/components/form/date-picker/date-picker-day-grid.styles.js +2 -2
  200. package/dist/components/form/date-picker/date-picker-grid.styles.js +15 -15
  201. package/dist/components/form/date-picker/date-picker-month-grid.styles.js +1 -1
  202. package/dist/components/form/date-picker/date-picker-year-grid.styles.js +1 -1
  203. package/dist/components/form/date-picker/date-picker.d.ts +1 -1
  204. package/dist/components/form/date-picker/date-picker.styles.js +12 -12
  205. package/dist/components/form/input/input.d.ts +1 -1
  206. package/dist/components/form/input-file/input-file.d.ts +1 -1
  207. package/dist/components/form/input-file/input-file.styles.js +9 -9
  208. package/dist/components/form/input-phone/input-phone.d.ts +1 -1
  209. package/dist/components/form/input-phone/input-phone.styles.js +7 -7
  210. package/dist/components/form/label/label.styles.js +4 -4
  211. package/dist/components/form/radio/radio-card.styles.js +1 -1
  212. package/dist/components/form/radio/radio-list.d.ts +1 -1
  213. package/dist/components/form/radio/radio.d.ts +1 -1
  214. package/dist/components/form/radio/radio.styles.js +2 -2
  215. package/dist/components/form/search/search.styles.js +6 -6
  216. package/dist/components/form/select/select.d.ts +1 -1
  217. package/dist/components/form/select/select.styles.js +6 -6
  218. package/dist/components/form/shared-styles/card.styles.js +1 -1
  219. package/dist/components/form/shared-styles/field.styles.js +7 -7
  220. package/dist/components/form/shared-styles/form-labels.styles.js +1 -1
  221. package/dist/components/form/shared-styles/listbox.styles.js +6 -6
  222. package/dist/components/form/slider/slider.d.ts +1 -1
  223. package/dist/components/form/slider/slider.styles.js +6 -6
  224. package/dist/components/form/switch/switch.d.ts +1 -1
  225. package/dist/components/form/switch/switch.styles.js +8 -8
  226. package/dist/components/form/textarea/textarea.d.ts +1 -1
  227. package/dist/components/form/textarea/textarea.styles.js +6 -6
  228. package/dist/components/form/time-picker/time-picker-columns.styles.js +6 -6
  229. package/dist/components/form/time-picker/time-picker-list.styles.js +2 -2
  230. package/dist/components/form/time-picker/time-picker.d.ts +1 -1
  231. package/dist/components/form/time-picker/time-picker.styles.js +8 -8
  232. package/dist/components/loader/loader/loader.styles.js +2 -2
  233. package/dist/components/loader/skeleton/skeleton.styles.js +8 -5
  234. package/dist/components/navigation/breadcrumb/breadcrumb-item.d.ts +7 -0
  235. package/dist/components/navigation/breadcrumb/breadcrumb-item.js +15 -1
  236. package/dist/components/navigation/breadcrumb/breadcrumb-item.styles.js +3 -3
  237. package/dist/components/navigation/breadcrumb/breadcrumb.d.ts +1 -0
  238. package/dist/components/navigation/breadcrumb/breadcrumb.js +7 -1
  239. package/dist/components/navigation/breadcrumb/breadcrumb.styles.js +3 -3
  240. package/dist/components/navigation/carousel/carousel.d.ts +40 -6
  241. package/dist/components/navigation/carousel/carousel.js +61 -12
  242. package/dist/components/navigation/carousel/carousel.styles.js +19 -7
  243. package/dist/components/navigation/pagination/pagination.styles.js +3 -3
  244. package/dist/components/navigation/sidebar/sidebar.styles.js +9 -9
  245. package/dist/components/navigation/stepper/step.styles.js +8 -8
  246. package/dist/components/navigation/stepper/stepper.styles.js +8 -8
  247. package/dist/components/navigation/tabs/tab/tab.styles.js +5 -5
  248. package/dist/components/navigation/tabs/tab-group/tab-group.d.ts +9 -0
  249. package/dist/components/navigation/tabs/tab-group/tab-group.js +19 -2
  250. package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +12 -4
  251. package/dist/components/navigation/tabs/tab-panel/tab-panel.styles.js +1 -1
  252. package/dist/components/navigation/toolbar/toolbar.d.ts +2 -0
  253. package/dist/components/navigation/toolbar/toolbar.js +2 -0
  254. package/dist/components/navigation/toolbar/toolbar.styles.js +16 -7
  255. package/dist/features/scheduler/calendar/calendar.js +1 -1
  256. package/dist/features/scheduler/calendar/calendar.styles.js +3 -3
  257. package/dist/features/scheduler/scheduler/scheduler.styles.js +2 -2
  258. package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +2 -2
  259. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.styles.js +2 -2
  260. package/dist/features/scheduler/shared/scheduler-event-popover.styles.js +4 -4
  261. package/dist/features/scheduler/shared/scheduler-hour-grid.styles.js +1 -1
  262. package/dist/features/scheduler/shared/scheduler-month-view.styles.js +1 -1
  263. package/dist/features/scheduler/shared/scheduler-year-view.styles.js +1 -1
  264. package/dist/features/table/native-table.css +11 -11
  265. package/dist/features/table/table/table.styles.js +2 -2
  266. package/dist/features/table/table-action-bar/table-action-bar.styles.js +2 -2
  267. package/dist/features/table/table-cell/table-cell.styles.js +2 -2
  268. package/dist/features/table/table-column/table-column.styles.js +3 -3
  269. package/dist/features/table/table-header/table-header.styles.js +4 -4
  270. package/dist/features/table/table-item/table-item.styles.js +6 -6
  271. package/dist/features/table/table-skeleton-row/table-skeleton-row.styles.js +1 -1
  272. package/dist/index.d.ts +4 -4
  273. package/dist/index.js +5 -2
  274. package/dist/jsx.d.ts +18 -5
  275. package/dist/mixins/button.mixin.d.ts +1 -0
  276. package/dist/mixins/button.mixin.js +10 -0
  277. package/dist/mixins/check.mixin.d.ts +1 -1
  278. package/dist/mixins/editable.mixin.d.ts +1 -1
  279. package/dist/mixins/form.mixin.d.ts +5 -1
  280. package/dist/mixins/form.mixin.js +32 -12
  281. package/dist/mixins/overflow-navigation.mixin.js +2 -1
  282. package/dist/mixins/radio.mixin.d.ts +1 -1
  283. package/dist/mixins/validators.mixin.d.ts +9 -3
  284. package/dist/utils/rich-text.utils.d.ts +33 -0
  285. package/dist/utils/rich-text.utils.js +140 -49
  286. package/dist/utils/theme-generator.utils.d.ts +24 -3
  287. package/dist/utils/theme-generator.utils.js +66 -21
  288. package/package.json +6 -1
  289. package/styles/themes/eunomia-theme.scss +1 -0
  290. package/styles/themes/mixins/eunomia-neutrals.mixin.scss +71 -0
  291. package/styles/themes/prebuilt-themes/eunomia/eunomia-dark.mixin.scss +3 -13
  292. package/styles/themes/prebuilt-themes/eunomia/eunomia.mixin.scss +3 -13
  293. package/styles/themes/prebuilt-themes/eunomia/eunomia.theme.scss +2 -0
  294. package/styles/themes/prebuilt-themes/fire/eunomia-fire-dark.mixin.scss +3 -13
  295. package/styles/themes/prebuilt-themes/fire/eunomia-fire.mixin.scss +3 -13
  296. package/styles/themes/prebuilt-themes/fire/eunomia-fire.theme.scss +2 -0
  297. package/styles/themes/prebuilt-themes/forest/eunomia-forest-dark.mixin.scss +3 -13
  298. package/styles/themes/prebuilt-themes/forest/eunomia-forest.mixin.scss +3 -13
  299. package/styles/themes/prebuilt-themes/forest/eunomia-forest.theme.scss +2 -0
  300. package/styles/themes/prebuilt-themes/gold/eunomia-gold-dark.mixin.scss +3 -13
  301. package/styles/themes/prebuilt-themes/gold/eunomia-gold.mixin.scss +3 -13
  302. package/styles/themes/prebuilt-themes/gold/eunomia-gold.theme.scss +2 -0
  303. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean-dark.mixin.scss +3 -13
  304. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.mixin.scss +3 -13
  305. package/styles/themes/prebuilt-themes/ocean/eunomia-ocean.theme.scss +2 -0
  306. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon-dark.mixin.scss +3 -13
  307. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.mixin.scss +3 -13
  308. package/styles/themes/prebuilt-themes/salmon/eunomia-salmon.theme.scss +2 -0
  309. package/styles/themes/prebuilt-themes/violet/eunomia-violet-dark.mixin.scss +3 -13
  310. package/styles/themes/prebuilt-themes/violet/eunomia-violet.mixin.scss +3 -13
  311. package/styles/themes/prebuilt-themes/violet/eunomia-violet.theme.scss +2 -0
  312. package/styles/tools/indexes/eunomia-tools.index.scss +1 -0
  313. package/styles/tools/mixins/settings/eunomia-alpha.mixin.scss +39 -0
  314. package/styles/tools/mixins/settings/eunomia-border.mixin.scss +3 -3
  315. package/styles/tools/mixins/settings/eunomia-font.mixin.scss +12 -12
  316. package/styles/tools/mixins/settings/eunomia-radius.mixin.scss +4 -4
  317. package/dist/cdn/components/chunks/chunk-5TH3P53V.js +0 -16
  318. package/dist/cdn/components/chunks/chunk-KNM5QHDK.js +0 -38
  319. package/dist/cdn/components/chunks/chunk-MBF52GEL.js +0 -1
  320. package/dist/cdn/components/chunks/chunk-Z6PJYSC3.js +0 -622
  321. package/dist/cdn/components/chunks/chunk-ZKPCO5RB.js +0 -262
@@ -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
 
@@ -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);
@@ -1 +1 @@
1
- export declare const chipStyles: import("lit").CSSResult;
1
+ export declare const chipStyles: import("lit").CSSResult[];
@@ -1,28 +1,26 @@
1
1
  import { css } from "lit";
2
+ import { toneSurfaceStyles } from "../shared-styles/tone-surface.styles.js";
2
3
  /**
3
4
  * Base style for chip.
4
5
  *
5
6
  * Custom css variables:
6
- * [--chip-background-color] - Set a custom color to the chip background
7
- * [--chip-border-color] - Set a custom color to the chip borders in case of the outline appearance
8
- * [--chip-border-width] - Set a custom border width to the chip borders in case of the outline appearance
7
+ * [--chip-background-color] - Set a custom background color, for every appearance
8
+ * [--chip-border-color] - Set a custom border color, for every appearance
9
+ * [--chip-border-width] - Set a custom border width, for every appearance. Defaults to 1px, only drawn (in a color) by outline, or when --chip-border-color is set
9
10
  * [--chip-box-shadow] - Set a custom box shadow to the chip, none by default
10
- * [--chip-color] - Set a custom color to the chip textual content
11
+ * [--chip-color] - Set a custom color to the chip textual content, for every appearance
11
12
  * [--chip-icon-color] - Set a custom color for the leading icon only (not the avatar/initials, not the delete button's icon). Defaults to the chip's own text color, so it only needs setting to make the icon diverge from the label
12
- * [--chip-border-radius] - Set a custom border radius to the chip when `rounded` is unset
13
+ * [--chip-border-radius] - Set a custom border radius to the chip, also over `rounded`
13
14
  * [--chip-gap] - Set a custom gap between the chip's leading visual, label, and delete button
14
15
  * [--chip-avatar-background] - Set a custom background color for the initials badge
15
16
  * [--chip-avatar-color] - Set a custom text color for the initials badge
16
17
  * [--chip-avatar-size] - Set a custom diameter for the leading avatar/initials/image
17
18
  * [--chip-delete-focus-outline-color] - Set a custom focus outline color for the delete button
18
19
  *
19
- * Unlike `eun-tag`, every color branch below reads its `--_background`/
20
- * `--_color`/`--_border-color` through the matching `--chip-*` custom
21
- * property as an override-with-fallback, rather than only honoring it while
22
- * `color` is unset. That's deliberate : `color` always carries a value (it
23
- * defaults to `medium` and reflects), so a branch that only checked for
24
- * `color` being absent could never actually be reached by a consumer who
25
- * left it at its default — see "Custom colors" in the Examples tab.
20
+ * The palette and appearance resolution is shared with `eun-tag` (see
21
+ * {@link toneSurfaceStyles}) ; this sheet only reads its `--_bg`, `--_fg` and
22
+ * `--_bd` behind the `--chip-*` custom properties, applied last on the chip
23
+ * itself, so they win over any palette/appearance combination.
26
24
  */
27
25
  const base = css `
28
26
  :host {
@@ -33,187 +31,15 @@ const base = css `
33
31
  vertical-align: middle;
34
32
  }
35
33
 
36
- :host([color="primary"]:not([severity])) {
37
- --_background: var(
38
- --chip-background-color,
39
- var(--eun-color-primary-transparent, #3d6fff33)
40
- );
41
- --_backgroundFilled: var(
42
- --chip-background-color,
43
- var(--eun-color-primary-500, #3d6fff)
44
- );
45
- --_border-color: var(
46
- --chip-border-color,
47
- var(--eun-color-primary-500, #3d6fff)
48
- );
49
- --_color: var(--chip-color, var(--eun-color-primary-500, #3d6fff));
50
- }
51
- :host([color="secondary"]:not([severity])) {
52
- --_background: var(
53
- --chip-background-color,
54
- var(--eun-color-secondary-transparent, #e5a03033)
55
- );
56
- --_backgroundFilled: var(
57
- --chip-background-color,
58
- var(--eun-color-secondary-500, #e5a030)
59
- );
60
- --_border-color: var(
61
- --chip-border-color,
62
- var(--eun-color-secondary-500, #e5a030)
63
- );
64
- --_color: var(--chip-color, var(--eun-color-secondary-500, #e5a030));
65
- }
66
- :host([color="light"]:not([severity])) {
67
- --_background: var(
68
- --chip-background-color,
69
- var(--eun-color-grey-0, #ffffff)
70
- );
71
- --_backgroundFilled: var(
72
- --chip-background-color,
73
- var(--eun-color-grey-0, #ffffff)
74
- );
75
- --_border-color: var(
76
- --chip-border-color,
77
- var(--eun-color-grey-0, #ffffff)
78
- );
79
- --_color: var(--chip-color, var(--eun-color-grey-600, #666e8a));
80
- }
81
- :host([color="light"][appearance="outline"]:not([severity])) {
82
- --_color: var(--chip-color, var(--eun-color-grey-600, #666e8a));
83
- }
84
- :host([color="medium"]:not([severity])) {
85
- --_background: var(
86
- --chip-background-color,
87
- color-mix(in srgb, var(--eun-color-grey-700, #484e61) 20%, transparent)
88
- );
89
- --_backgroundFilled: var(--_background);
90
- --_border-color: var(
91
- --chip-border-color,
92
- var(--eun-color-grey-700, #484e61)
93
- );
94
- --_color: var(--chip-color, var(--eun-color-grey-900, #000000));
95
- }
96
- :host([color="dark"]:not([severity])) {
97
- --_background: var(
98
- --chip-background-color,
99
- var(--eun-color-grey-800, #071621)
100
- );
101
- --_backgroundFilled: var(
102
- --chip-background-color,
103
- var(--eun-color-grey-800, #071621)
104
- );
105
- --_border-color: var(
106
- --chip-border-color,
107
- var(--eun-color-grey-800, #071621)
108
- );
109
- --_color: var(--chip-color, var(--eun-color-grey-0, #ffffff));
110
- }
111
- :host([color="dark"][appearance="outline"]:not([severity])) {
112
- --_color: var(--chip-color, var(--eun-color-grey-800, #071621));
113
- }
114
-
115
- :host([severity="info"]) {
116
- --_background: var(
117
- --chip-background-color,
118
- var(--eun-color-info-30, #f0f7fa)
119
- );
120
- --_backgroundFilled: var(
121
- --chip-background-color,
122
- var(--eun-color-info-100, #097faf)
123
- );
124
- --_border-color: var(
125
- --chip-border-color,
126
- var(--eun-color-info-100, #097faf)
127
- );
128
- --_color: var(--chip-color, var(--eun-color-info-100, #097faf));
129
- }
130
- :host([severity="success"]) {
131
- --_background: var(
132
- --chip-background-color,
133
- var(--eun-color-success-30, #f1f9f4)
134
- );
135
- --_backgroundFilled: var(
136
- --chip-background-color,
137
- var(--eun-color-success-100, #1a9948)
138
- );
139
- --_border-color: var(
140
- --chip-border-color,
141
- var(--eun-color-success-100, #1a9948)
142
- );
143
- --_color: var(--chip-color, var(--eun-color-success-100, #1a9948));
144
- }
145
- :host([severity="warning"]) {
146
- --_background: var(
147
- --chip-background-color,
148
- var(--eun-color-warning-30, #fcf5f0)
149
- );
150
- --_backgroundFilled: var(
151
- --chip-background-color,
152
- var(--eun-color-warning-100, #c85207)
153
- );
154
- --_border-color: var(
155
- --chip-border-color,
156
- var(--eun-color-warning-100, #c85207)
157
- );
158
- --_color: var(--chip-color, var(--eun-color-warning-100, #c85207));
159
- }
160
- :host([severity="critical"]) {
161
- --_background: var(
162
- --chip-background-color,
163
- var(--eun-color-critical-30, #faf0f1)
164
- );
165
- --_backgroundFilled: var(
166
- --chip-background-color,
167
- var(--eun-color-critical-100, #aa0014)
168
- );
169
- --_border-color: var(
170
- --chip-border-color,
171
- var(--eun-color-critical-100, #aa0014)
172
- );
173
- --_color: var(--chip-color, var(--eun-color-critical-100, #aa0014));
174
- }
175
- :host([severity="neutral"]) {
176
- --_background: var(
177
- --chip-background-color,
178
- var(--eun-color-grey-200, #ecedf0)
179
- );
180
- --_backgroundFilled: var(
181
- --chip-background-color,
182
- var(--eun-color-grey-700, #484e61)
183
- );
184
- --_border-color: var(
185
- --chip-border-color,
186
- var(--eun-color-grey-700, #484e61)
187
- );
188
- --_color: var(--chip-color, var(--eun-color-grey-700, #484e61));
189
- }
190
-
191
- :host([appearance="default"]) #chip {
192
- background: var(--_background);
193
- }
194
-
195
- :host([appearance="fill"]) #chip {
196
- --_color: var(--chip-color, #fff);
197
- background: var(--_backgroundFilled);
198
- color: var(--_color);
199
- }
200
-
201
- :host([appearance="outline"]) #chip {
202
- background: var(--eun-surface-color, #ffffff);
203
- border: var(--chip-border-width, var(--eun-borderWidth-s, 1px)) solid
204
- var(--_border-color);
205
- }
206
-
207
- :host([appearance="flat"]) #chip {
208
- --_color: var(--chip-color, var(--eun-text-secondary, #484e61));
209
- background: var(--eun-content-hover, #edeff0);
210
- color: var(--_color);
34
+ :host {
35
+ /* Unlike a tag's transparent outline, a chip's sits on the surface. */
36
+ --_bg-outline: var(--eun-surface-color, #ffffff);
211
37
  }
212
38
 
213
39
  :host([size="s"]) {
214
40
  --_height: 26px;
215
41
  --_paddingInline: 4px;
216
- --_fontSize: var(--eun-fontSize-xs, 12px);
42
+ --_fontSize: var(--eun-font-size-xs, 12px);
217
43
  --_gap: 4px;
218
44
  --_avatarFontSize: 10px;
219
45
  --_avatarInsetSize: 16px;
@@ -222,7 +48,7 @@ const base = css `
222
48
  :host(:not([size])) {
223
49
  --_height: 30px;
224
50
  --_paddingInline: 6px;
225
- --_fontSize: var(--eun-fontSize-s, 14px);
51
+ --_fontSize: var(--eun-font-size-s, 14px);
226
52
  --_gap: 6px;
227
53
  --_avatarFontSize: 11px;
228
54
  --_avatarInsetSize: 20px;
@@ -230,17 +56,17 @@ const base = css `
230
56
  :host([size="l"]) {
231
57
  --_height: 38px;
232
58
  --_paddingInline: 6px;
233
- --_fontSize: var(--eun-fontSize-m, 16px);
59
+ --_fontSize: var(--eun-font-size-m, 16px);
234
60
  --_gap: 8px;
235
61
  --_avatarFontSize: 12px;
236
62
  --_avatarInsetSize: 24px;
237
63
  }
238
64
 
239
- :host([rounded]) {
240
- --_borderRadius: var(--eun-borderRadius-xl, 999px);
65
+ :host {
66
+ --_radius: var(--eun-border-radius-s, 5px);
241
67
  }
242
- :host(:not([rounded])) {
243
- --_borderRadius: var(--chip-border-radius, var(--eun-borderRadius-s, 5px));
68
+ :host([rounded]) {
69
+ --_radius: var(--eun-border-radius-xl, 999px);
244
70
  }
245
71
 
246
72
  #chip {
@@ -249,20 +75,30 @@ const base = css `
249
75
  box-sizing: border-box;
250
76
  max-width: 100%;
251
77
  height: var(--_height);
252
- border-radius: var(--_borderRadius);
253
- padding-inline-start: var(--_paddingInline);
254
- padding-inline-end: var(--_paddingInline);
78
+ --_borderWidth: var(--chip-border-width, var(--eun-border-width-s, 1px));
79
+ background: var(--chip-background-color, var(--_bg));
80
+ /* Every appearance carries the same border box (transparent unless
81
+ drawn), taken out of the padding, so switching appearance or adding a
82
+ --chip-border-* never changes the chip's size. */
83
+ border: var(--_borderWidth) solid var(--chip-border-color, var(--_bd));
84
+ border-radius: var(--chip-border-radius, var(--_radius));
85
+ padding-inline-start: max(0px, calc(var(--_paddingInline) - var(--_borderWidth)));
86
+ padding-inline-end: max(0px, calc(var(--_paddingInline) - var(--_borderWidth)));
255
87
  font-size: var(--_fontSize);
256
88
  gap: var(--chip-gap, var(--_gap));
257
- color: var(--_color);
258
- font-weight: var(--eun-fontWeight-m, 500);
89
+ color: var(--chip-color, var(--_fg));
90
+ font-weight: var(--eun-font-weight-m, 500);
259
91
  box-shadow: var(--chip-box-shadow, none);
260
- --_leadingIconColor: var(--chip-icon-color, var(--_color));
92
+ --_textColor: var(--chip-color, var(--_fg));
93
+ --_leadingIconColor: var(--chip-icon-color, var(--_textColor));
261
94
  }
262
95
 
263
96
  #chip[data-leading="icon"],
264
97
  #chip[data-leading="none"] {
265
- padding-inline-start: calc(var(--_paddingInline) + 4px);
98
+ padding-inline-start: max(
99
+ 0px,
100
+ calc(var(--_paddingInline) + 4px - var(--_borderWidth))
101
+ );
266
102
  }
267
103
 
268
104
  #chip[data-leading="none"] slot[name="icon"] {
@@ -288,12 +124,12 @@ const base = css `
288
124
  width: var(--chip-avatar-size, var(--_avatarInsetSize, 20px));
289
125
  height: var(--chip-avatar-size, var(--_avatarInsetSize, 20px));
290
126
  font-size: var(--_avatarFontSize);
291
- font-weight: var(--eun-fontWeight-l, 700);
127
+ font-weight: var(--eun-font-weight-l, 700);
292
128
  line-height: 1;
293
- color: var(--chip-avatar-color, #fff);
129
+ color: var(--chip-avatar-color, var(--_onSolid, #fff));
294
130
  background: var(
295
131
  --chip-avatar-background,
296
- var(--_backgroundFilled, var(--eun-color-grey-500, #8d93aa))
132
+ var(--_solid, var(--eun-color-grey-500, #8d93aa))
297
133
  );
298
134
  overflow: hidden;
299
135
  }
@@ -303,7 +139,7 @@ const base = css `
303
139
  }
304
140
 
305
141
  #avatar[data-shape="square"] {
306
- border-radius: var(--eun-borderRadius-s, 5px);
142
+ border-radius: var(--eun-border-radius-s, 5px);
307
143
  }
308
144
 
309
145
  #avatar img {
@@ -320,7 +156,7 @@ const base = css `
320
156
 
321
157
  #delete {
322
158
  flex-shrink: 0;
323
- --button-text: var(--_color);
159
+ --button-text: var(--_textColor);
324
160
  --button-focus-outline: var(
325
161
  --chip-delete-focus-outline-color,
326
162
  var(--eun-color-primary-500, #3d6fff)
@@ -331,4 +167,4 @@ const base = css `
331
167
  opacity: 0.6;
332
168
  }
333
169
  `;
334
- export const chipStyles = base;
170
+ export const chipStyles = [toneSurfaceStyles, base];
@@ -35,7 +35,7 @@ export const collapseStyles = css `
35
35
  #wrapper {
36
36
  --_background: var(
37
37
  --collapse-background,
38
- var(--eun-color-grey-100, #f7f8fa)
38
+ var(--eun-surface-sunken, #f7f8fa)
39
39
  );
40
40
  --_backgroundHover: var(--collapse-background-hover, var(--_background));
41
41
  --_backgroundOpen: var(--collapse-background-open, var(--_background));
@@ -58,7 +58,7 @@ export const collapseStyles = css `
58
58
  );
59
59
  --_contentFontSize: var(
60
60
  --collapse-content-font-size,
61
- var(--eun-fontSize-s, 14px)
61
+ var(--eun-font-size-s, 14px)
62
62
  );
63
63
  --_richTextLinkColor: var(
64
64
  --collapse-rich-text-link-color,
@@ -70,7 +70,7 @@ export const collapseStyles = css `
70
70
  );
71
71
  --_borderRadius: var(
72
72
  --collapse-border-radius,
73
- var(--eun-borderRadius-l, 16px)
73
+ var(--eun-border-radius-l, 16px)
74
74
  );
75
75
  --_padding: var(--collapse-padding, var(--eun-space-m, 16px));
76
76
  --_transitionDuration: var(--collapse-transition-duration, 0.3s);
@@ -87,8 +87,8 @@ export const collapseStyles = css `
87
87
  border-radius: var(--_borderRadius);
88
88
  color: var(--_color);
89
89
  font: inherit;
90
- font-size: var(--eun-fontSize-m, 16px);
91
- font-weight: var(--eun-fontWeight-l);
90
+ font-size: var(--eun-font-size-m, 16px);
91
+ font-weight: var(--eun-font-weight-l);
92
92
  text-align: left;
93
93
  cursor: pointer;
94
94
  outline: 2px solid transparent;
@@ -138,11 +138,11 @@ export const collapseStyles = css `
138
138
  #heading {
139
139
  overflow: hidden;
140
140
  text-overflow: ellipsis;
141
- font-size: var(--eun-fontSize-s, 14px);
141
+ font-size: var(--eun-font-size-s, 14px);
142
142
  }
143
143
  #subheading {
144
- font-size: var(--eun-fontSize-xs, 14px);
145
- font-weight: var(--eun-fontWeight-m);
144
+ font-size: var(--eun-font-size-xs, 14px);
145
+ font-weight: var(--eun-font-weight-m);
146
146
  color: var(--_subheadingColor);
147
147
  }
148
148
  #actions {
@@ -162,6 +162,7 @@ export const collapseStyles = css `
162
162
  background: var(--_background);
163
163
  border-bottom-left-radius: var(--_borderRadius);
164
164
  border-bottom-right-radius: var(--_borderRadius);
165
+ overflow-anchor: none;
165
166
  transition:
166
167
  grid-template-rows var(--_transitionDuration) ease-out,
167
168
  margin-top var(--_transitionDuration) ease-out,
@@ -171,7 +172,7 @@ export const collapseStyles = css `
171
172
  overflow: hidden;
172
173
  }
173
174
  #panel-content {
174
- border-top: var(--eun-borderWidth-s, 1px) solid
175
+ border-top: var(--eun-border-width-s, 1px) solid
175
176
  var(--eun-color-grey-300, #dee0e7);
176
177
  padding: var(--_padding);
177
178
  color: var(--_contentColor);
@@ -25,7 +25,7 @@ export const iconStyles = css `
25
25
  fill: var(--_color);
26
26
  color: var(--_color);
27
27
  background-color: var(--_background);
28
- border-radius: var(--icon-border-radius, var(--eun-borderRadius-m, 8px));
28
+ border-radius: var(--icon-border-radius, var(--eun-border-radius-m, 8px));
29
29
  text-decoration: none;
30
30
  display: inline-block;
31
31
  user-select: none;