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

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 (245) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/components/chunks/{chunk-JYIIWN2P.js → chunk-36KLGY6U.js} +8 -8
  3. package/dist/cdn/components/chunks/chunk-3BMACIDO.js +1 -0
  4. package/dist/cdn/components/chunks/{chunk-KDN4O5W2.js → chunk-3PNGQEG4.js} +3 -3
  5. package/dist/cdn/components/chunks/{chunk-ZKZV2YG5.js → chunk-5XPOGBPL.js} +1 -1
  6. package/dist/cdn/components/chunks/{chunk-LMVW522V.js → chunk-62RLISRD.js} +1 -1
  7. package/dist/cdn/components/chunks/{chunk-PMPSJG5V.js → chunk-6FYW5TQU.js} +3 -3
  8. package/dist/cdn/components/chunks/chunk-AK2DIJX7.js +1 -0
  9. package/dist/cdn/components/chunks/chunk-B5XMGWM7.js +10 -0
  10. package/dist/cdn/components/chunks/chunk-BVASCT2V.js +109 -0
  11. package/dist/cdn/components/chunks/{chunk-VYFR364B.js → chunk-DGI7TKCU.js} +14 -9
  12. package/dist/cdn/components/chunks/chunk-GVS6IUKC.js +1 -0
  13. package/dist/cdn/components/chunks/chunk-GWLD2I3P.js +8 -0
  14. package/dist/cdn/components/chunks/{chunk-UDVB4LAE.js → chunk-I4ERDXSM.js} +5 -3
  15. package/dist/cdn/components/chunks/{chunk-QZ5SHR3I.js → chunk-J3SZBXM6.js} +2 -2
  16. package/dist/cdn/components/chunks/{chunk-MOMYII3P.js → chunk-LVKMAHMU.js} +10 -0
  17. package/dist/cdn/components/chunks/{chunk-XDPRWUKN.js → chunk-MQQJ6DID.js} +1 -1
  18. package/dist/cdn/components/chunks/{chunk-SZYEBMG6.js → chunk-PXF554MD.js} +1 -1
  19. package/dist/cdn/components/chunks/chunk-QL5GSW2A.js +1 -0
  20. package/dist/cdn/components/chunks/{chunk-7KKWYPHY.js → chunk-QXQ25SQS.js} +21 -19
  21. package/dist/cdn/components/chunks/{chunk-L2ADCEN7.js → chunk-SVGWCKWT.js} +1 -1
  22. package/dist/cdn/components/chunks/{chunk-MQQ4BGVJ.js → chunk-TFTRCIIK.js} +7 -6
  23. package/dist/cdn/components/chunks/chunk-TLBXTBMM.js +46 -0
  24. package/dist/cdn/components/chunks/chunk-UVHVQRPT.js +1 -0
  25. package/dist/cdn/components/chunks/chunk-WW4BTWMH.js +1 -0
  26. package/dist/cdn/components/chunks/{chunk-2Y2EU2CI.js → chunk-Z3OFIE7S.js} +1 -1
  27. package/dist/cdn/components/eun-alert.js +13 -6
  28. package/dist/cdn/components/eun-animate.js +3 -3
  29. package/dist/cdn/components/eun-badge.js +1 -1
  30. package/dist/cdn/components/eun-button.js +1 -1
  31. package/dist/cdn/components/eun-calendar.js +2 -2
  32. package/dist/cdn/components/eun-card.js +4 -4
  33. package/dist/cdn/components/eun-carousel.js +21 -18
  34. package/dist/cdn/components/eun-check-card.js +1 -1
  35. package/dist/cdn/components/eun-checkbox-list.js +11 -8
  36. package/dist/cdn/components/eun-checkbox.js +1 -1
  37. package/dist/cdn/components/eun-chip.js +3 -3
  38. package/dist/cdn/components/eun-color-picker.js +60 -68
  39. package/dist/cdn/components/eun-counter.js +10 -10
  40. package/dist/cdn/components/eun-date-picker.js +47 -46
  41. package/dist/cdn/components/eun-description-list.js +2 -2
  42. package/dist/cdn/components/eun-divider.js +3 -3
  43. package/dist/cdn/components/eun-drawer.js +5 -5
  44. package/dist/cdn/components/eun-dropdown-button.js +1 -1
  45. package/dist/cdn/components/eun-fab.js +2 -2
  46. package/dist/cdn/components/eun-icon.js +1 -1
  47. package/dist/cdn/components/eun-image-card.js +1 -1
  48. package/dist/cdn/components/eun-image-carousel.js +10 -10
  49. package/dist/cdn/components/eun-infinite-list.js +1 -1
  50. package/dist/cdn/components/eun-input-file.js +21 -21
  51. package/dist/cdn/components/eun-input-phone.js +10 -9
  52. package/dist/cdn/components/eun-input.js +1 -1
  53. package/dist/cdn/components/eun-link.js +2 -2
  54. package/dist/cdn/components/eun-loader.js +1 -1
  55. package/dist/cdn/components/eun-modal.js +13 -13
  56. package/dist/cdn/components/eun-pagination.js +16 -16
  57. package/dist/cdn/components/eun-password-strength.js +14 -10
  58. package/dist/cdn/components/eun-radio-card.js +1 -1
  59. package/dist/cdn/components/eun-radio-list.js +11 -8
  60. package/dist/cdn/components/eun-radio.js +1 -1
  61. package/dist/cdn/components/eun-rating.js +276 -0
  62. package/dist/cdn/components/eun-scheduler-event-editor.js +10 -10
  63. package/dist/cdn/components/eun-scheduler-event.js +1 -1
  64. package/dist/cdn/components/eun-scheduler.js +28 -28
  65. package/dist/cdn/components/eun-search.js +19 -21
  66. package/dist/cdn/components/eun-select.js +27 -27
  67. package/dist/cdn/components/eun-sidebar.js +10 -8
  68. package/dist/cdn/components/eun-skeleton.js +1 -1
  69. package/dist/cdn/components/eun-slider.js +3 -3
  70. package/dist/cdn/components/eun-sliding-card.js +1 -1
  71. package/dist/cdn/components/eun-step.js +5 -4
  72. package/dist/cdn/components/eun-stepper.js +25 -25
  73. package/dist/cdn/components/eun-switch.js +1 -1
  74. package/dist/cdn/components/eun-tab-group.js +4 -4
  75. package/dist/cdn/components/eun-tab.js +1 -1
  76. package/dist/cdn/components/eun-table-action-bar.js +1 -1
  77. package/dist/cdn/components/eun-table.js +1 -1
  78. package/dist/cdn/components/eun-tag.js +3 -3
  79. package/dist/cdn/components/eun-textarea.js +39 -34
  80. package/dist/cdn/components/eun-time-picker.js +15 -14
  81. package/dist/cdn/components/eun-toast.js +19 -10
  82. package/dist/cdn/components/eun-toggle-group.js +6 -4
  83. package/dist/cdn/components/eun-toggle-item.js +1 -1
  84. package/dist/cdn/components/eun-toggle.js +2 -2
  85. package/dist/cdn/components/eun-toolbar.js +5 -5
  86. package/dist/cdn/components/eun-tooltip.js +3 -3
  87. package/dist/components/action/button/button.d.ts +2 -1
  88. package/dist/components/action/button/button.js +3 -2
  89. package/dist/components/action/button/button.styles.js +10 -5
  90. package/dist/components/action/dropdown-button/dropdown-button.js +10 -5
  91. package/dist/components/action/toggle/toggle-group.js +1 -1
  92. package/dist/components/action/toggle/toggle-group.styles.js +4 -2
  93. package/dist/components/action/toggle/toggle.js +1 -1
  94. package/dist/components/alert/alert/alert.d.ts +9 -7
  95. package/dist/components/alert/alert/alert.js +11 -14
  96. package/dist/components/alert/alert/alert.styles.js +9 -2
  97. package/dist/components/alert/drawer/drawer.d.ts +5 -5
  98. package/dist/components/alert/drawer/drawer.js +8 -12
  99. package/dist/components/alert/drawer/drawer.styles.js +1 -1
  100. package/dist/components/alert/modal/modal.d.ts +10 -10
  101. package/dist/components/alert/modal/modal.js +13 -25
  102. package/dist/components/alert/toast/toast.d.ts +7 -5
  103. package/dist/components/alert/toast/toast.js +9 -13
  104. package/dist/components/alert/toast/toast.styles.js +15 -6
  105. package/dist/components/content/badge/badge.js +2 -2
  106. package/dist/components/content/card/card.js +1 -1
  107. package/dist/components/content/card/card.styles.js +2 -2
  108. package/dist/components/content/chip/chip.d.ts +4 -4
  109. package/dist/components/content/chip/chip.js +8 -8
  110. package/dist/components/content/description-list/description-list.js +3 -3
  111. package/dist/components/content/icon/icon.d.ts +3 -0
  112. package/dist/components/content/icon/icon.js +3 -0
  113. package/dist/components/content/icon/icon.style.d.ts +2 -0
  114. package/dist/components/content/icon/icon.style.js +4 -0
  115. package/dist/components/content/image-carousel/image-carousel.d.ts +12 -12
  116. package/dist/components/content/image-carousel/image-carousel.js +24 -24
  117. package/dist/components/content/password-strength/password-strength.d.ts +21 -6
  118. package/dist/components/content/password-strength/password-strength.js +37 -16
  119. package/dist/components/content/password-strength/password-strength.styles.js +4 -0
  120. package/dist/components/content/tag/tag.js +2 -2
  121. package/dist/components/content/tooltip/tooltip.js +3 -3
  122. package/dist/components/form/checkbox/check-card.d.ts +1 -0
  123. package/dist/components/form/checkbox/check-card.js +1 -0
  124. package/dist/components/form/checkbox/checkbox-list.d.ts +17 -0
  125. package/dist/components/form/checkbox/checkbox-list.js +39 -10
  126. package/dist/components/form/checkbox/checkbox.d.ts +1 -0
  127. package/dist/components/form/checkbox/checkbox.js +3 -1
  128. package/dist/components/form/checkbox/checkbox.styles.js +3 -2
  129. package/dist/components/form/color-picker/color-picker.d.ts +41 -28
  130. package/dist/components/form/color-picker/color-picker.js +66 -50
  131. package/dist/components/form/color-picker/color-picker.styles.js +1 -1
  132. package/dist/components/form/counter/counter.d.ts +22 -18
  133. package/dist/components/form/counter/counter.js +59 -61
  134. package/dist/components/form/date-picker/date-picker.d.ts +27 -6
  135. package/dist/components/form/date-picker/date-picker.js +75 -54
  136. package/dist/components/form/input/input.d.ts +38 -39
  137. package/dist/components/form/input/input.js +85 -109
  138. package/dist/components/form/input-file/input-file.d.ts +26 -13
  139. package/dist/components/form/input-file/input-file.js +35 -35
  140. package/dist/components/form/input-file/input-file.styles.js +4 -4
  141. package/dist/components/form/input-phone/input-phone.d.ts +22 -5
  142. package/dist/components/form/input-phone/input-phone.js +41 -13
  143. package/dist/components/form/radio/radio-card.d.ts +1 -0
  144. package/dist/components/form/radio/radio-card.js +1 -0
  145. package/dist/components/form/radio/radio-list.d.ts +23 -7
  146. package/dist/components/form/radio/radio-list.js +47 -22
  147. package/dist/components/form/radio/radio.d.ts +1 -0
  148. package/dist/components/form/radio/radio.js +1 -0
  149. package/dist/components/form/rating/rating.d.ts +349 -0
  150. package/dist/components/form/rating/rating.js +665 -0
  151. package/dist/components/form/rating/rating.styles.d.ts +1 -0
  152. package/dist/components/form/rating/rating.styles.js +213 -0
  153. package/dist/components/form/search/search.d.ts +8 -8
  154. package/dist/components/form/search/search.js +23 -41
  155. package/dist/components/form/select/select.d.ts +23 -10
  156. package/dist/components/form/select/select.js +59 -41
  157. package/dist/components/form/shared-styles/listbox.styles.js +10 -0
  158. package/dist/components/form/slider/slider.d.ts +7 -8
  159. package/dist/components/form/slider/slider.js +9 -12
  160. package/dist/components/form/switch/switch.d.ts +1 -0
  161. package/dist/components/form/switch/switch.js +1 -0
  162. package/dist/components/form/textarea/textarea.d.ts +89 -23
  163. package/dist/components/form/textarea/textarea.js +192 -43
  164. package/dist/components/form/time-picker/time-picker-columns.d.ts +2 -2
  165. package/dist/components/form/time-picker/time-picker-columns.js +8 -8
  166. package/dist/components/form/time-picker/time-picker.d.ts +24 -8
  167. package/dist/components/form/time-picker/time-picker.js +59 -38
  168. package/dist/components/layout/animate/animate.js +1 -1
  169. package/dist/components/layout/animate/animate.styles.js +2 -2
  170. package/dist/components/layout/divider/divider.js +1 -1
  171. package/dist/components/layout/divider/divider.styles.js +1 -1
  172. package/dist/components/loader/loader/loader.js +2 -2
  173. package/dist/components/loader/loader/loader.styles.js +14 -12
  174. package/dist/components/loader/skeleton/skeleton.js +1 -1
  175. package/dist/components/navigation/carousel/carousel.d.ts +31 -7
  176. package/dist/components/navigation/carousel/carousel.js +74 -35
  177. package/dist/components/navigation/carousel/carousel.styles.js +5 -2
  178. package/dist/components/navigation/pagination/pagination.d.ts +23 -21
  179. package/dist/components/navigation/pagination/pagination.js +30 -53
  180. package/dist/components/navigation/sidebar/sidebar.d.ts +15 -13
  181. package/dist/components/navigation/sidebar/sidebar.js +21 -33
  182. package/dist/components/navigation/sidebar/sidebar.styles.js +5 -3
  183. package/dist/components/navigation/stepper/step.js +9 -8
  184. package/dist/components/navigation/stepper/stepper.js +12 -5
  185. package/dist/components/navigation/tabs/tab-group/tab-group.js +2 -2
  186. package/dist/components/navigation/tabs/tab-group/tab-group.styles.js +2 -2
  187. package/dist/components/navigation/toolbar/toolbar.d.ts +13 -13
  188. package/dist/components/navigation/toolbar/toolbar.js +20 -34
  189. package/dist/features/scheduler/calendar/calendar.js +1 -1
  190. package/dist/features/scheduler/scheduler/scheduler.d.ts +7 -7
  191. package/dist/features/scheduler/scheduler/scheduler.js +15 -24
  192. package/dist/features/scheduler/scheduler-event/scheduler-event.js +3 -3
  193. package/dist/features/scheduler/scheduler-event/scheduler-event.styles.js +1 -1
  194. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.d.ts +6 -4
  195. package/dist/features/scheduler/scheduler-event-editor/scheduler-event-editor.js +6 -7
  196. package/dist/i18n/en.d.ts +68 -0
  197. package/dist/i18n/en.js +68 -0
  198. package/dist/i18n/fr.js +68 -2
  199. package/dist/index.d.ts +2 -0
  200. package/dist/index.js +1 -0
  201. package/dist/mixins/button.mixin.js +3 -2
  202. package/dist/mixins/check.mixin.js +11 -10
  203. package/dist/mixins/disabled.mixin.d.ts +5 -0
  204. package/dist/mixins/disabled.mixin.js +21 -1
  205. package/dist/mixins/editable.mixin.js +28 -5
  206. package/dist/mixins/field-appearance.mixin.js +3 -2
  207. package/dist/mixins/form.mixin.d.ts +4 -0
  208. package/dist/mixins/form.mixin.js +87 -13
  209. package/dist/mixins/localizable.mixin.d.ts +1 -1
  210. package/dist/mixins/localizable.mixin.js +1 -1
  211. package/dist/mixins/radio.mixin.js +11 -10
  212. package/dist/mixins/readonly.mixin.d.ts +2 -1
  213. package/dist/mixins/readonly.mixin.js +10 -3
  214. package/dist/ssr/alert-ssr.css +187 -0
  215. package/dist/ssr/badge-ssr.css +67 -0
  216. package/dist/ssr/breadcrumb-ssr.css +41 -0
  217. package/dist/ssr/card-ssr.css +27 -15
  218. package/dist/ssr/carousel-ssr.css +238 -0
  219. package/dist/ssr/checkbox-ssr.css +67 -0
  220. package/dist/ssr/chip-ssr.css +242 -0
  221. package/dist/ssr/collapse-ssr.css +151 -0
  222. package/dist/ssr/field-ssr.css +163 -0
  223. package/dist/ssr/icon-ssr.css +266 -0
  224. package/dist/ssr/image-carousel-ssr.css +24 -0
  225. package/dist/ssr/links-ssr.css +7 -1
  226. package/dist/ssr/pagination-ssr.css +4 -0
  227. package/dist/ssr/rating-ssr.css +254 -0
  228. package/dist/ssr/sidebar-ssr.css +9 -1
  229. package/dist/ssr/skeleton-ssr.css +63 -0
  230. package/dist/ssr/tabs-ssr.css +129 -0
  231. package/dist/ssr/toggle-group-ssr.css +182 -0
  232. package/dist/ssr/toolbar-ssr.css +31 -2
  233. package/dist/utils/implicit-submission.utils.d.ts +18 -0
  234. package/dist/utils/implicit-submission.utils.js +79 -0
  235. package/dist/utils/listbox-options.utils.d.ts +11 -0
  236. package/dist/utils/listbox-options.utils.js +41 -3
  237. package/package.json +26 -7
  238. package/dist/cdn/components/chunks/chunk-4PI6RDUS.js +0 -1
  239. package/dist/cdn/components/chunks/chunk-A3X4KD2X.js +0 -1
  240. package/dist/cdn/components/chunks/chunk-BQFJR2UP.js +0 -110
  241. package/dist/cdn/components/chunks/chunk-G5SBDQQ3.js +0 -1
  242. package/dist/cdn/components/chunks/chunk-KSZRQRN4.js +0 -1
  243. package/dist/cdn/components/chunks/chunk-PE4DAXHQ.js +0 -3
  244. package/dist/cdn/components/chunks/chunk-RS7TWEMQ.js +0 -1
  245. package/dist/cdn/components/chunks/chunk-VOTRXBDS.js +0 -38
@@ -0,0 +1,187 @@
1
+ eun-alert:not(:defined) {
2
+ --_background: var(--eun-surface-sunken, #f7f8fa);
3
+ --_backgroundFilled: var(--_background);
4
+ --_borderColor: var(--eun-color-grey-300, #dee0e7);
5
+ --_titleColor: var(--eun-text-color, #071621);
6
+ --_bw: var(--alert-border-width, var(--eun-border-width-s, 1px));
7
+ --_frame: transparent;
8
+ --_textColumn: 2;
9
+ --_contentColor: var(--alert-content-color, var(--eun-text-color, #071621));
10
+ --_headingColor: var(--alert-color, var(--_titleColor));
11
+ display: grid;
12
+ grid-template-columns: auto 1fr;
13
+ align-items: start;
14
+ column-gap: var(--alert-gap, var(--eun-space-m, 16px));
15
+ row-gap: var(--alert-row-gap, var(--eun-space-s, 8px));
16
+ box-sizing: border-box;
17
+ width: 100%;
18
+ border: var(--_bw) solid var(--alert-border-color, var(--_frame));
19
+ padding: var(
20
+ --alert-padding,
21
+ var(
22
+ --alert-padding-block,
23
+ max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
24
+ )
25
+ var(
26
+ --alert-padding-inline,
27
+ max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
28
+ )
29
+ );
30
+ border-radius: var(--alert-border-radius, var(--eun-border-radius-m, 8px));
31
+ background: linear-gradient(
32
+ to right,
33
+ var(--alert-border-color, var(--_borderColor)) 4px,
34
+ var(--alert-background-color, var(--_background)) 4px
35
+ )
36
+ border-box;
37
+ color: var(--_headingColor);
38
+ font-family: var(--eun-font-family, "Mulish", sans-serif);
39
+ font-size: var(--eun-font-size-s, 14px);
40
+ font-weight: var(--eun-font-weight-l, 700);
41
+ }
42
+
43
+ eun-alert[severity="info"]:not(:defined) {
44
+ --_background: var(--eun-color-info-alpha-5, #097faf0d);
45
+ --_backgroundFilled: var(--eun-color-info-100, #097faf);
46
+ --_borderColor: var(--eun-color-info-100, #097faf);
47
+ --_titleColor: var(--eun-color-info-100, #097faf);
48
+ }
49
+
50
+ eun-alert[severity="success"]:not(:defined) {
51
+ --_background: var(--eun-color-success-alpha-5, #1a99480d);
52
+ --_backgroundFilled: var(--eun-color-success-100, #1a9948);
53
+ --_borderColor: var(--eun-color-success-100, #1a9948);
54
+ --_titleColor: var(--eun-color-success-100, #1a9948);
55
+ }
56
+
57
+ eun-alert[severity="warning"]:not(:defined) {
58
+ --_background: var(--eun-color-warning-alpha-5, #c852070d);
59
+ --_backgroundFilled: var(--eun-color-warning-100, #c85207);
60
+ --_borderColor: var(--eun-color-warning-100, #c85207);
61
+ --_titleColor: var(--eun-color-warning-100, #c85207);
62
+ }
63
+
64
+ eun-alert[severity="critical"]:not(:defined) {
65
+ --_background: var(--eun-color-critical-alpha-5, #aa00140d);
66
+ --_backgroundFilled: var(--eun-color-critical-100, #aa0014);
67
+ --_borderColor: var(--eun-color-critical-100, #aa0014);
68
+ --_titleColor: var(--eun-color-critical-100, #aa0014);
69
+ }
70
+
71
+ eun-alert[severity="neutral"]:not(:defined) {
72
+ --_onFilled: var(--eun-color-grey-0, #ffffff);
73
+ --_background: var(--eun-surface-sunken-strong, #ecedf0);
74
+ --_backgroundFilled: var(--eun-color-grey-700, #484e61);
75
+ --_borderColor: var(--eun-color-grey-700, #484e61);
76
+ --_titleColor: var(--eun-color-grey-700, #484e61);
77
+ }
78
+
79
+ eun-alert[appearance="flat"]:not(:defined) {
80
+ background: var(--alert-background-color, var(--_background));
81
+ }
82
+
83
+ eun-alert[appearance="outline"]:not(:defined) {
84
+ --_frame: var(--_borderColor);
85
+ background: var(--alert-background-color, var(--eun-surface-color, #ffffff));
86
+ }
87
+
88
+ eun-alert[appearance="fill"]:not(:defined) {
89
+ --_contentColor: var(--alert-content-color, var(--_onFilled, #fff));
90
+ --_headingColor: var(--alert-color, var(--_onFilled, #fff));
91
+ background: var(--alert-background-color, var(--_backgroundFilled));
92
+ }
93
+
94
+ eun-alert[closeable]:not(:defined) {
95
+ padding-right: calc(
96
+ var(
97
+ --alert-padding,
98
+ var(
99
+ --alert-padding-inline,
100
+ max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
101
+ )
102
+ ) +
103
+ var(--eun-space-l, 32px)
104
+ );
105
+ }
106
+
107
+ eun-alert:is(
108
+ [hide-icon],
109
+ :not([severity], [icon]):not(:has(> [slot="icon"]))
110
+ ):not(:defined) {
111
+ --_textColumn: 1;
112
+ grid-template-columns: 1fr;
113
+ }
114
+
115
+ eun-alert:not(:defined)::before {
116
+ content: "";
117
+ grid-column: 1;
118
+ grid-row: 1;
119
+ align-self: center;
120
+ width: 20px;
121
+ height: 20px;
122
+ }
123
+
124
+ eun-alert:is([hide-icon], :has(> [slot="icon"]), :not([severity], [icon])):not(
125
+ :defined
126
+ )::before {
127
+ display: none;
128
+ }
129
+
130
+ eun-alert:not(:defined) > [slot="icon"] {
131
+ grid-column: 1;
132
+ grid-row: 1;
133
+ align-self: center;
134
+ display: flex;
135
+ }
136
+
137
+ eun-alert[hide-icon]:not(:defined) > [slot="icon"] {
138
+ grid-column: 1;
139
+ }
140
+
141
+ eun-alert:not([heading]):not(:defined) > :not([slot]) {
142
+ grid-column: var(--_textColumn);
143
+ grid-row: 1;
144
+ align-self: center;
145
+ }
146
+
147
+ eun-alert:not(:defined) > :not([slot]) {
148
+ justify-self: start;
149
+ }
150
+
151
+ eun-alert[heading]:not(:defined)::after {
152
+ content: attr(heading);
153
+ order: -1;
154
+ grid-column: var(--_textColumn);
155
+ grid-row: 1;
156
+ align-self: center;
157
+ }
158
+
159
+ eun-alert[heading]:not(:defined) > :not([slot]),
160
+ eun-alert:not(:defined) > [slot="description"],
161
+ eun-alert:not(:defined) > [slot="action"] {
162
+ grid-column: var(--_textColumn);
163
+ font-weight: normal;
164
+ }
165
+
166
+ :where(
167
+ eun-alert[heading]:not(:defined) > :not([slot]),
168
+ eun-alert:not(:defined) > [slot="description"],
169
+ eun-alert:not(:defined) > [slot="icon"],
170
+ eun-alert:not(:defined) > [slot="action"]:not(:any-link)
171
+ ) {
172
+ color: var(--_contentColor);
173
+ }
174
+
175
+ eun-alert[heading]:not(:defined) > :not([slot]) {
176
+ order: 1;
177
+ }
178
+
179
+ eun-alert:not(:defined) > [slot="description"] {
180
+ order: 2;
181
+ margin: 0;
182
+ }
183
+
184
+ eun-alert:not(:defined) > [slot="action"] {
185
+ order: 3;
186
+ justify-self: start;
187
+ }
@@ -0,0 +1,67 @@
1
+ eun-badge:not(:defined) {
2
+ --_background: var(
3
+ --badge-background,
4
+ var(--eun-color-critical-100, #aa0014)
5
+ );
6
+ --_color: var(--badge-color, #fff);
7
+ --_size: var(--badge-size, 18px);
8
+ --_paddingInline: var(--badge-padding-inline, 6px);
9
+ --_fontSize: var(--badge-font-size, 11px);
10
+ display: inline-flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ box-sizing: border-box;
14
+ min-width: var(--_size);
15
+ height: var(--_size);
16
+ padding: 0 var(--_paddingInline);
17
+ border-radius: 999px;
18
+ background: var(--_background);
19
+ color: var(--_color);
20
+ font-family: var(--eun-font-family, "Mulish", sans-serif);
21
+ font-size: var(--_fontSize);
22
+ font-weight: var(--eun-font-weight-l, 700);
23
+ line-height: 1;
24
+ white-space: nowrap;
25
+ vertical-align: baseline;
26
+ user-select: none;
27
+ }
28
+
29
+ eun-badge:empty:not(:defined) {
30
+ width: var(--_size);
31
+ padding: 0;
32
+ }
33
+
34
+ eun-badge[size="s"]:not(:defined) {
35
+ --_size: var(--badge-size, 14px);
36
+ --_paddingInline: var(--badge-padding-inline, 5px);
37
+ --_fontSize: var(--badge-font-size, 10px);
38
+ }
39
+
40
+ eun-badge[size="l"]:not(:defined) {
41
+ --_size: var(--badge-size, 22px);
42
+ --_paddingInline: var(--badge-padding-inline, 7px);
43
+ --_fontSize: var(--badge-font-size, 12px);
44
+ }
45
+
46
+ eun-badge[color="primary"]:not(:defined) {
47
+ --_background: var(--badge-background, var(--eun-color-primary-500, #3d6fff));
48
+ --_color: var(--badge-color, var(--eun-color-on-primary-500, #ffffff));
49
+ }
50
+
51
+ eun-badge[color="secondary"]:not(:defined) {
52
+ --_background: var(
53
+ --badge-background,
54
+ var(--eun-color-secondary-500, #e5a030)
55
+ );
56
+ --_color: var(--badge-color, var(--eun-color-on-secondary-500, #000000de));
57
+ }
58
+
59
+ eun-badge[color="success"]:not(:defined) {
60
+ --_background: var(--badge-background, var(--eun-color-success-100, #1a9948));
61
+ --_color: var(--badge-color, #fff);
62
+ }
63
+
64
+ eun-badge[color="warning"]:not(:defined) {
65
+ --_background: var(--badge-background, var(--eun-color-warning-100, #c85207));
66
+ --_color: var(--badge-color, #fff);
67
+ }
@@ -0,0 +1,41 @@
1
+ eun-breadcrumb:not(:defined) {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ align-items: center;
5
+ row-gap: var(--breadcrumb-gap, var(--eun-space-xs, 4px));
6
+ font-family: var(--eun-font-family, "Mulish", sans-serif);
7
+ font-size: var(--breadcrumb-font-size, var(--eun-font-size-s, 14px));
8
+ }
9
+
10
+ :where(eun-breadcrumb:not(:defined) > *) {
11
+ max-width: var(--breadcrumb-item-max-width, 240px);
12
+ overflow: hidden;
13
+ text-overflow: ellipsis;
14
+ white-space: nowrap;
15
+ color: var(--breadcrumb-current-color, var(--eun-text-secondary, #484e61));
16
+ font-weight: var(--eun-font-weight-m, 500);
17
+ }
18
+
19
+ :where(eun-breadcrumb:not(:defined) > a[href]) {
20
+ color: var(--breadcrumb-link-color, var(--eun-color-primary-500, #3d6fff));
21
+ font-weight: inherit;
22
+ text-decoration: var(--breadcrumb-link-text-decoration, underline);
23
+ }
24
+
25
+ :where(
26
+ eun-breadcrumb:not(:defined) > a[aria-current="page"],
27
+ eun-breadcrumb:not(:defined):not(:has(> [aria-current="page"])) > a:last-child
28
+ ) {
29
+ color: var(--breadcrumb-current-color, var(--eun-text-secondary, #484e61));
30
+ font-weight: var(--eun-font-weight-m, 500);
31
+ text-decoration: none;
32
+ }
33
+
34
+ eun-breadcrumb:not(:defined) > :not(:last-child)::after {
35
+ content: var(--breadcrumb-separator, "/");
36
+ display: inline-block;
37
+ margin-inline: var(--breadcrumb-separator-gap, var(--eun-space-s, 8px));
38
+ color: var(--breadcrumb-separator-color, var(--eun-text-secondary, #484e61));
39
+ font-weight: var(--eun-font-weight-m, 500);
40
+ text-decoration: none;
41
+ }
@@ -53,12 +53,11 @@ eun-image-card:not(:defined) {
53
53
  --card-padding,
54
54
  var(--card-padding-inline, var(--eun-space-m, 16px))
55
55
  );
56
- --_gap: 0px;
57
- display: grid;
58
- grid-template-columns: var(--_padInline) minmax(0, 1fr) var(--_padInline);
59
- grid-template-rows: auto var(--_padBlock) auto var(--_gap) 1fr var(
60
- --_padBlock
61
- );
56
+ --_gap: var(--card-gap, var(--eun-space-s, 8px));
57
+ display: flex;
58
+ flex-direction: column;
59
+ row-gap: var(--_gap);
60
+ padding-block-end: var(--_padBlock);
62
61
  box-sizing: border-box;
63
62
  overflow: hidden;
64
63
  border-radius: var(--card-border-radius, var(--eun-border-radius-m, 8px));
@@ -69,25 +68,38 @@ eun-image-card:not(:defined) {
69
68
  color: var(--eun-text-color, #071621);
70
69
  font-family: var(--eun-font-family, "Mulish", sans-serif);
71
70
  }
72
- eun-image-card:has(> [slot="title"]):has(> [slot="description"]):not(:defined) {
73
- --_gap: var(--card-gap, var(--eun-space-s, 8px));
71
+ eun-image-card:not(:defined)::before {
72
+ content: "";
73
+ order: 1;
74
+ margin-block-start: calc(var(--_padBlock) - 2 * var(--_gap));
75
+ }
76
+ eun-image-card:not(:has(> [slot="image"])):not(:defined)::before {
77
+ margin-block-start: calc(var(--_padBlock) - var(--_gap));
74
78
  }
75
79
  eun-image-card:not(:has(> [slot="title"], > [slot="description"])):not(
76
80
  :defined
77
81
  ) {
78
- grid-template-rows: auto;
82
+ padding-block-end: 0;
83
+ }
84
+ eun-image-card:not(:has(> [slot="title"], > [slot="description"])):not(
85
+ :defined
86
+ )::before {
87
+ display: none;
79
88
  }
80
89
  eun-image-card:not(:defined) > [slot="image"] {
81
- grid-row: 1;
82
- grid-column: 1 / -1;
90
+ order: 0;
91
+ flex: none;
92
+ }
93
+ eun-image-card:not(:defined) > :is([slot="title"], [slot="description"]) {
94
+ align-self: center;
95
+ box-sizing: border-box;
96
+ width: calc(100% - 2 * var(--_padInline));
83
97
  }
84
98
  eun-image-card:not(:defined) > [slot="title"] {
85
- grid-row: 3;
86
- grid-column: 2;
99
+ order: 2;
87
100
  }
88
101
  eun-image-card:not(:defined) > [slot="description"] {
89
- grid-row: 5;
90
- grid-column: 2;
102
+ order: 3;
91
103
  }
92
104
  eun-image-card:not(:defined) > :not([slot]) {
93
105
  display: none;
@@ -0,0 +1,238 @@
1
+ eun-carousel:not(:defined) {
2
+ --_visibleCount: 1;
3
+ --_count: var(--carousel-visible-slides, var(--_visibleCount));
4
+ --_gap: var(--carousel-gap, 16px);
5
+ --_basis: var(
6
+ --carousel-slide-width,
7
+ max(
8
+ var(--carousel-min-slide-width, 220px),
9
+ calc((100% - (var(--_count) - 1) * var(--_gap)) / var(--_count))
10
+ )
11
+ );
12
+ --_navSize: var(--carousel-nav-size, 42px);
13
+ --_navReserve: calc(
14
+ 2 * var(--_navSize) + var(--eun-space-s, 8px) +
15
+ var(--carousel-header-gap, var(--eun-space-m, 16px))
16
+ );
17
+ --_headerMargin: var(--carousel-header-margin, var(--eun-space-m, 16px));
18
+ display: grid;
19
+ grid-template-columns: repeat(var(--_count), var(--_basis));
20
+ grid-template-rows:
21
+ auto
22
+ var(
23
+ --carousel-track-padding-top,
24
+ var(--carousel-track-padding, var(--eun-space-l))
25
+ )
26
+ auto
27
+ var(
28
+ --carousel-track-padding-bottom,
29
+ var(--carousel-track-padding, var(--eun-space-l))
30
+ )
31
+ auto;
32
+ grid-auto-columns: var(--_basis);
33
+ column-gap: var(--_gap);
34
+ overflow: clip;
35
+ overflow-clip-margin: var(--carousel-track-padding-inline, 0px);
36
+ container-type: inline-size;
37
+ }
38
+
39
+ eun-carousel[visible-slides="2"]:not(:defined) {
40
+ --_visibleCount: 2;
41
+ }
42
+
43
+ eun-carousel[visible-slides="3"]:not(:defined) {
44
+ --_visibleCount: 3;
45
+ }
46
+
47
+ eun-carousel[visible-slides="4"]:not(:defined) {
48
+ --_visibleCount: 4;
49
+ }
50
+
51
+ eun-carousel[visible-slides="5"]:not(:defined) {
52
+ --_visibleCount: 5;
53
+ }
54
+
55
+ eun-carousel[visible-slides="6"]:not(:defined) {
56
+ --_visibleCount: 6;
57
+ }
58
+
59
+ eun-carousel:not(:defined) > :not([slot]) {
60
+ grid-row: 3;
61
+ box-sizing: border-box;
62
+ width: auto;
63
+ min-width: 0;
64
+ }
65
+
66
+ eun-carousel:not(:defined) > [slot="title"] {
67
+ --_titleBasis: var(
68
+ --carousel-slide-width,
69
+ max(
70
+ var(--carousel-min-slide-width, 220px),
71
+ calc((100cqi - (var(--_count) - 1) * var(--_gap)) / var(--_count))
72
+ )
73
+ );
74
+ --_titleOverflow: calc(
75
+ var(--_count) * var(--_titleBasis) + (var(--_count) - 1) * var(--_gap) -
76
+ 100cqi
77
+ );
78
+ grid-row: 1;
79
+ grid-column: 1 / -1;
80
+ align-self: var(--carousel-header-align, flex-end);
81
+ justify-self: start;
82
+ max-width: 100cqi;
83
+ margin-block-end: var(--_headerMargin);
84
+ }
85
+
86
+ :where(eun-carousel:not(:defined) > [slot="title"]) {
87
+ margin-block-start: 0;
88
+ margin-inline: 0 var(--_titleOverflow);
89
+ }
90
+
91
+ eun-carousel:not(:defined)::before,
92
+ eun-carousel:not(:defined)::after {
93
+ content: "";
94
+ display: none;
95
+ grid-column: 1 / -1;
96
+ }
97
+
98
+ /* The row the header previous and next buttons take, once upgraded. */
99
+ eun-carousel:not(:defined)::before {
100
+ grid-row: 1;
101
+ height: var(--_navSize);
102
+ margin-block-end: var(--_headerMargin);
103
+ }
104
+
105
+ /* The row the pagination dots take, once upgraded. */
106
+ eun-carousel:not(:defined)::after {
107
+ grid-row: 5;
108
+ height: var(--carousel-dot-size, 6px);
109
+ margin-block-start: var(--carousel-dots-margin, var(--eun-space-m));
110
+ }
111
+
112
+ /*
113
+ * Paged : more slides than fit at once, so the upgraded carousel shows its
114
+ * dots, and its previous and next buttons.
115
+ */
116
+ eun-carousel:is(
117
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
118
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
119
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
120
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
121
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
122
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
123
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
124
+ ):not(:defined)::after {
125
+ display: var(--carousel-dots-display, block);
126
+ }
127
+
128
+ eun-carousel[layout="header"]:is(
129
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
130
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
131
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
132
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
133
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
134
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
135
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
136
+ ):not(:defined)::before {
137
+ display: var(--carousel-nav-display, block);
138
+ }
139
+
140
+ eun-carousel[layout="header"]:is(
141
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
142
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
143
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
144
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
145
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
146
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
147
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
148
+ ):not(:defined)
149
+ > [slot="title"] {
150
+ margin-inline-end: calc(var(--_navReserve) + var(--_titleOverflow));
151
+ }
152
+
153
+ eun-carousel[layout="header"][nav-placement="start"]:is(
154
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
155
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
156
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
157
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
158
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
159
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
160
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
161
+ ):not(:defined)
162
+ > [slot="title"] {
163
+ justify-self: end;
164
+ margin-inline: var(--_navReserve) var(--_titleOverflow);
165
+ }
166
+
167
+ eun-carousel[layout="header"][nav-placement="center"]:is(
168
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
169
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
170
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
171
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
172
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
173
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
174
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
175
+ ):not(:defined)
176
+ > [slot="title"] {
177
+ justify-self: center;
178
+ }
179
+
180
+ @container (width < 480px) {
181
+ eun-carousel:not([layout="header"], [responsive-breakpoint="0"]):is(
182
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
183
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
184
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
185
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
186
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
187
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
188
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
189
+ ):not(:defined)::before {
190
+ display: var(--carousel-nav-display, block);
191
+ }
192
+
193
+ eun-carousel:not([layout="header"], [responsive-breakpoint="0"]):is(
194
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
195
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
196
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
197
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
198
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
199
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
200
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
201
+ ):not(:defined)
202
+ > [slot="title"] {
203
+ margin-inline-end: calc(var(--_navReserve) + var(--_titleOverflow));
204
+ }
205
+
206
+ eun-carousel:not(
207
+ [layout="header"],
208
+ [responsive-breakpoint="0"]
209
+ )[nav-placement="start"]:is(
210
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
211
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
212
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
213
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
214
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
215
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
216
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
217
+ ):not(:defined)
218
+ > [slot="title"] {
219
+ justify-self: end;
220
+ margin-inline: var(--_navReserve) var(--_titleOverflow);
221
+ }
222
+
223
+ eun-carousel:not(
224
+ [layout="header"],
225
+ [responsive-breakpoint="0"]
226
+ )[nav-placement="center"]:is(
227
+ :not([visible-slides]):has(> :nth-child(2 of :not([slot]))),
228
+ [visible-slides="1"]:has(> :nth-child(2 of :not([slot]))),
229
+ [visible-slides="2"]:has(> :nth-child(3 of :not([slot]))),
230
+ [visible-slides="3"]:has(> :nth-child(4 of :not([slot]))),
231
+ [visible-slides="4"]:has(> :nth-child(5 of :not([slot]))),
232
+ [visible-slides="5"]:has(> :nth-child(6 of :not([slot]))),
233
+ [visible-slides="6"]:has(> :nth-child(7 of :not([slot])))
234
+ ):not(:defined)
235
+ > [slot="title"] {
236
+ justify-self: center;
237
+ }
238
+ }
@@ -0,0 +1,67 @@
1
+ eun-checkbox:not(:defined) {
2
+ --_boxSize: var(--checkbox-size, 16px);
3
+ --_gap: var(--eun-space-s, 8px);
4
+ display: inline-block;
5
+ box-sizing: border-box;
6
+ padding-inline-start: calc(var(--_boxSize) + var(--_gap));
7
+ overflow-y: clip;
8
+ vertical-align: middle;
9
+ color: var(--eun-text-color, #071621);
10
+ font-family: var(--eun-font-family, "Mulish", sans-serif);
11
+ font-size: var(--field-label-font-size, var(--eun-font-size-s, 14px));
12
+ }
13
+
14
+ eun-checkbox:not(:defined)::before {
15
+ content: "";
16
+ display: inline-block;
17
+ box-sizing: border-box;
18
+ width: var(--_boxSize);
19
+ height: var(--_boxSize);
20
+ margin-block: -1px calc(7px - var(--_boxSize) / 2);
21
+ margin-inline: calc(-1 * (var(--_boxSize) + var(--_gap))) var(--_gap);
22
+ vertical-align: baseline;
23
+ border: var(--eun-border-width-s, 1px) solid
24
+ var(--checkbox-border-color, var(--eun-border-color, #dee0e7));
25
+ border-radius: var(--checkbox-border-radius, var(--eun-border-radius-s, 5px));
26
+ background: var(--checkbox-background, var(--eun-surface-sunken, #ecedf0));
27
+ }
28
+
29
+ eun-checkbox:is([checked], [indeterminate]):not(:defined)::before {
30
+ border-color: var(
31
+ --checkbox-background-checked,
32
+ var(--eun-color-primary-500, #3d6fff)
33
+ );
34
+ background: var(
35
+ --checkbox-background-checked,
36
+ var(--eun-color-primary-500, #3d6fff)
37
+ );
38
+ }
39
+
40
+ eun-checkbox[disabled]:not(:defined) {
41
+ color: var(--eun-text-disabled-color, #8d93aa);
42
+ }
43
+
44
+ eun-checkbox[disabled]:not(:defined)::before {
45
+ border-color: var(--eun-border-color, #dee0e7);
46
+ background: var(--eun-disabled-color, #ecedf0);
47
+ }
48
+
49
+ eun-checkbox[label]:empty:not(:defined)::after {
50
+ content: attr(label);
51
+ }
52
+
53
+ eun-checkbox[required]:not(:defined)::after {
54
+ content: "*";
55
+ float: inline-end;
56
+ padding-block-end: 9999px;
57
+ margin-block-end: -9999px;
58
+ color: var(--checkbox-error-color, var(--eun-color-critical-100, #aa0014));
59
+ }
60
+
61
+ eun-checkbox[label][required]:empty:not(:defined)::after {
62
+ content: attr(label) "*";
63
+ float: none;
64
+ padding-block-end: 0;
65
+ margin-block-end: 0;
66
+ color: inherit;
67
+ }