@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
@@ -5,7 +5,7 @@ import { EunomiaModalConfirmColor } from "../../../types/variant.type.js";
5
5
  * Tag name of the modal component.
6
6
  */
7
7
  export declare const EunomiaModalTagName = "eun-modal";
8
- declare const EunomiaModal_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/dialog-surface.mixin.js").DialogSurfaceMixinInterface> & typeof LitElement;
8
+ declare const EunomiaModal_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/dialog-surface.mixin.js").DialogSurfaceMixinInterface> & import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
9
9
  /**
10
10
  * A generic, reusable dialog template. Arbitrary content is passed through
11
11
  * the default slot. Confirm and cancel are exposed as public methods and
@@ -32,11 +32,11 @@ declare const EunomiaModal_base: import("../../../utils/constructor.type.js").Co
32
32
  * @prop {boolean} [dirty=false] - Marks the modal as having unsaved changes, requiring confirmation before any close attempt succeeds
33
33
  * @prop {boolean} [hideActions=false] - Hides the default confirm and cancel footer entirely, for fully custom content-driven dialogs
34
34
  * @prop {boolean} [closeable=true] - Shows the close button in the top right corner
35
- * @prop {string} [cancelLabel='Cancel'] - The label of the default cancel button
36
- * @prop {string} [confirmLabel='Confirm'] - The label of the default confirm button
35
+ * @prop {string} [cancelLabel] - The label of the default cancel button. Defaults to the localized string for the current locale (English: "Cancel")
36
+ * @prop {string} [confirmLabel] - The label of the default confirm button. Defaults to the localized string for the current locale (English: "Confirm")
37
37
  * @prop {'primary' | 'critical'} [confirmColor='primary'] - The color of the default confirm button
38
38
  * @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} cancelColor - The color of the default cancel button. Left unset, it renders as a neutral gray ghost button
39
- * @prop {string} ariaLabelClose - The accessible label of the close button
39
+ * @prop {string} [closeLabel] - The accessible label of the close button. Defaults to the localized string for the current locale (English: "Close")
40
40
  * @prop {string} [confirmCloseHeading='Discard changes?'] - The heading of the internal discard confirmation dialog
41
41
  * @attr {string} [confirm-close-heading='Discard changes?'] - The heading of the internal discard confirmation dialog
42
42
  * @prop {string} confirmCloseDescription - The description of the internal discard confirmation dialog
@@ -115,14 +115,14 @@ export declare class EunomiaModal extends EunomiaModal_base {
115
115
  closeable: boolean;
116
116
  /**
117
117
  * Label of the default cancel button.
118
- * @default Cancel
118
+ * Falls back to the localized string for the current locale when unset.
119
119
  */
120
- cancelLabel: string;
120
+ cancelLabel?: string;
121
121
  /**
122
122
  * Label of the default confirm button.
123
- * @default Confirm
123
+ * Falls back to the localized string for the current locale when unset.
124
124
  */
125
- confirmLabel: string;
125
+ confirmLabel?: string;
126
126
  /**
127
127
  * Color of the default confirm button.
128
128
  * @default primary
@@ -136,9 +136,9 @@ export declare class EunomiaModal extends EunomiaModal_base {
136
136
  cancelColor?: ButtonColor;
137
137
  /**
138
138
  * Aria label of the close (X) button.
139
- * @default Close
139
+ * Falls back to the localized string for the current locale when unset.
140
140
  */
141
- ariaLabelClose: string;
141
+ closeLabel?: string;
142
142
  /**
143
143
  * Heading of the internal discard-confirmation dialog.
144
144
  * @default Discard changes?
@@ -13,6 +13,7 @@ import { DirtyCloseEvent } from "../../../events/dirty-close.event.js";
13
13
  import { handleDialogCommand } from "../../../utils/command.utils.js";
14
14
  import { DialogSurfaceMixin } from "../../../mixins/dialog-surface.mixin.js";
15
15
  import { modalStyles } from "./modal.styles.js";
16
+ import { LocalizableMixin } from "../../../mixins/localizable.mixin.js";
16
17
  /**
17
18
  * Tag name of the modal component.
18
19
  */
@@ -43,11 +44,11 @@ export const EunomiaModalTagName = "eun-modal";
43
44
  * @prop {boolean} [dirty=false] - Marks the modal as having unsaved changes, requiring confirmation before any close attempt succeeds
44
45
  * @prop {boolean} [hideActions=false] - Hides the default confirm and cancel footer entirely, for fully custom content-driven dialogs
45
46
  * @prop {boolean} [closeable=true] - Shows the close button in the top right corner
46
- * @prop {string} [cancelLabel='Cancel'] - The label of the default cancel button
47
- * @prop {string} [confirmLabel='Confirm'] - The label of the default confirm button
47
+ * @prop {string} [cancelLabel] - The label of the default cancel button. Defaults to the localized string for the current locale (English: "Cancel")
48
+ * @prop {string} [confirmLabel] - The label of the default confirm button. Defaults to the localized string for the current locale (English: "Confirm")
48
49
  * @prop {'primary' | 'critical'} [confirmColor='primary'] - The color of the default confirm button
49
50
  * @prop {'primary' | 'secondary' | 'critical' | 'success' | 'warning'} cancelColor - The color of the default cancel button. Left unset, it renders as a neutral gray ghost button
50
- * @prop {string} ariaLabelClose - The accessible label of the close button
51
+ * @prop {string} [closeLabel] - The accessible label of the close button. Defaults to the localized string for the current locale (English: "Close")
51
52
  * @prop {string} [confirmCloseHeading='Discard changes?'] - The heading of the internal discard confirmation dialog
52
53
  * @attr {string} [confirm-close-heading='Discard changes?'] - The heading of the internal discard confirmation dialog
53
54
  * @prop {string} confirmCloseDescription - The description of the internal discard confirmation dialog
@@ -73,7 +74,7 @@ export const EunomiaModalTagName = "eun-modal";
73
74
  * @cssprop [--modal-search-top] - For the search kind only, sets the fixed distance from the top of the viewport to the dialog, since a search dialog never vertically centers and its top edge shouldn't drift as content grows or shrinks
74
75
  * @element eun-modal
75
76
  */
76
- let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
77
+ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LocalizableMixin(LitElement)) {
77
78
  constructor() {
78
79
  super(...arguments);
79
80
  /**
@@ -111,26 +112,11 @@ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
111
112
  * @default true
112
113
  */
113
114
  this.closeable = true;
114
- /**
115
- * Label of the default cancel button.
116
- * @default Cancel
117
- */
118
- this.cancelLabel = "Cancel";
119
- /**
120
- * Label of the default confirm button.
121
- * @default Confirm
122
- */
123
- this.confirmLabel = "Confirm";
124
115
  /**
125
116
  * Color of the default confirm button.
126
117
  * @default primary
127
118
  */
128
119
  this.confirmColor = "primary";
129
- /**
130
- * Aria label of the close (X) button.
131
- * @default Close
132
- */
133
- this.ariaLabelClose = "Close";
134
120
  /**
135
121
  * Heading of the internal discard-confirmation dialog.
136
122
  * @default Discard changes?
@@ -449,7 +435,7 @@ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
449
435
  appearance="ghost"
450
436
  rounded
451
437
  size="xs"
452
- aria-label=${this.ariaLabelClose}
438
+ aria-label=${this.closeLabel ?? this.dictionary.common.close}
453
439
  @click=${() => this.requestClose()}
454
440
  >
455
441
  <eun-icon name="close" size="16"></eun-icon>
@@ -469,12 +455,14 @@ let EunomiaModal = class EunomiaModal extends DialogSurfaceMixin(LitElement) {
469
455
  appearance="ghost"
470
456
  color=${ifDefined(this.cancelColor)}
471
457
  @click=${() => this.requestClose()}
472
- >${this.cancelLabel}</eun-button
458
+ >${this.cancelLabel ??
459
+ this.dictionary.common.cancel}</eun-button
473
460
  >
474
461
  <eun-button
475
462
  color=${this.confirmColor}
476
463
  @click=${() => this.confirm()}
477
- >${this.confirmLabel}</eun-button
464
+ >${this.confirmLabel ??
465
+ this.dictionary.common.confirm}</eun-button
478
466
  >
479
467
  </slot>
480
468
  </div>
@@ -502,7 +490,7 @@ __decorate([
502
490
  property()
503
491
  ], EunomiaModal.prototype, "description", void 0);
504
492
  __decorate([
505
- property({ reflect: true })
493
+ property({ reflect: true, useDefault: true })
506
494
  ], EunomiaModal.prototype, "kind", void 0);
507
495
  __decorate([
508
496
  property({ type: Boolean, attribute: "close-on-backdrop" })
@@ -529,8 +517,8 @@ __decorate([
529
517
  property({ attribute: "cancel-color" })
530
518
  ], EunomiaModal.prototype, "cancelColor", void 0);
531
519
  __decorate([
532
- property({ attribute: "aria-label-close" })
533
- ], EunomiaModal.prototype, "ariaLabelClose", void 0);
520
+ property({ attribute: "close-label" })
521
+ ], EunomiaModal.prototype, "closeLabel", void 0);
534
522
  __decorate([
535
523
  property({ attribute: "confirm-close-heading" })
536
524
  ], EunomiaModal.prototype, "confirmCloseHeading", void 0);
@@ -25,6 +25,7 @@ export type EunomiaToastPosition = "top-left" | "top-center" | "top-right" | "ri
25
25
  * sides) and ignores this.
26
26
  */
27
27
  export type EunomiaToastSlide = "vertical" | "horizontal";
28
+ declare const EunomiaToast_base: import("../../../utils/constructor.type.js").Constructor<import("../../../mixins/localizable.mixin.js").LocalizableMixinInterface> & typeof LitElement;
28
29
  /**
29
30
  * A self-dismissing notification anchored to a screen corner or edge,
30
31
  * reporting something that just happened without requiring the user's
@@ -65,8 +66,8 @@ export type EunomiaToastSlide = "vertical" | "horizontal";
65
66
  * @prop {string} [richText] - Lightweight formatted content rendered above the description slot, combining with it. Supports simple lists, links, bold, and italic text
66
67
  * @attr {string} [rich-text] - Lightweight formatted content rendered above the description slot
67
68
  * @prop {boolean} [closeable=true] - Shows a close button. Always shown when severity is critical, so an error toast is never left with no way to dismiss it
68
- * @prop {string} [ariaLabelClose='Close'] - The accessible label of the close button
69
- * @attr {string} [aria-label-close='Close'] - The accessible label of the close button
69
+ * @prop {string} [closeLabel] - The accessible label of the close button. Defaults to the localized string for the current locale (English: "Close")
70
+ * @attr {string} [close-label] - The accessible label of the close button. Defaults to the localized string for the current locale (English: "Close")
70
71
  * @prop {number} [duration=5000] - Milliseconds before the toast auto-dismisses. Zero, or a critical severity regardless of this value, disables auto-dismiss entirely, requiring a manual close
71
72
  * @prop {boolean} [open=true] - Whether the toast is currently shown. Set it to false upfront, or hide it right after inserting, to insert a toast that's already closed
72
73
  * @cssprop [--toast-z-index] - Sets the stacking order of the toast
@@ -90,7 +91,7 @@ export type EunomiaToastSlide = "vertical" | "horizontal";
90
91
  * @cssprop [--toast-focus-outline-color] - Sets the focus outline color of the close button
91
92
  * @element eun-toast
92
93
  */
93
- export declare class EunomiaToast extends LitElement {
94
+ export declare class EunomiaToast extends EunomiaToast_base {
94
95
  /**
95
96
  * Styles to import to the component.
96
97
  *
@@ -152,9 +153,9 @@ export declare class EunomiaToast extends LitElement {
152
153
  closeable: boolean;
153
154
  /**
154
155
  * Accessible label of the close button.
155
- * @default Close
156
+ * Falls back to the localized string for the current locale when unset.
156
157
  */
157
- ariaLabelClose: string;
158
+ closeLabel?: string;
158
159
  /**
159
160
  * Milliseconds before the toast auto-dismisses. `0` disables auto-dismiss
160
161
  * entirely, same as `severity="critical"` regardless of this value.
@@ -425,3 +426,4 @@ declare global {
425
426
  [EunomiaToastTagName]: EunomiaToast;
426
427
  }
427
428
  }
429
+ export {};
@@ -13,6 +13,7 @@ import { formatRichText } from "../../../utils/rich-text.utils.js";
13
13
  import { popToast, pushToast } from "../../../utils/toast-stack.utils.js";
14
14
  import { resolveIcon } from "../../../utils/severity-icon.utils.js";
15
15
  import { toastStyles } from "./toast.styles.js";
16
+ import { LocalizableMixin } from "../../../mixins/localizable.mixin.js";
16
17
  /**
17
18
  * Tag name of the toast component.
18
19
  */
@@ -64,8 +65,8 @@ const EXIT_FALLBACK_MS = 600;
64
65
  * @prop {string} [richText] - Lightweight formatted content rendered above the description slot, combining with it. Supports simple lists, links, bold, and italic text
65
66
  * @attr {string} [rich-text] - Lightweight formatted content rendered above the description slot
66
67
  * @prop {boolean} [closeable=true] - Shows a close button. Always shown when severity is critical, so an error toast is never left with no way to dismiss it
67
- * @prop {string} [ariaLabelClose='Close'] - The accessible label of the close button
68
- * @attr {string} [aria-label-close='Close'] - The accessible label of the close button
68
+ * @prop {string} [closeLabel] - The accessible label of the close button. Defaults to the localized string for the current locale (English: "Close")
69
+ * @attr {string} [close-label] - The accessible label of the close button. Defaults to the localized string for the current locale (English: "Close")
69
70
  * @prop {number} [duration=5000] - Milliseconds before the toast auto-dismisses. Zero, or a critical severity regardless of this value, disables auto-dismiss entirely, requiring a manual close
70
71
  * @prop {boolean} [open=true] - Whether the toast is currently shown. Set it to false upfront, or hide it right after inserting, to insert a toast that's already closed
71
72
  * @cssprop [--toast-z-index] - Sets the stacking order of the toast
@@ -89,7 +90,7 @@ const EXIT_FALLBACK_MS = 600;
89
90
  * @cssprop [--toast-focus-outline-color] - Sets the focus outline color of the close button
90
91
  * @element eun-toast
91
92
  */
92
- let EunomiaToast = class EunomiaToast extends LitElement {
93
+ let EunomiaToast = class EunomiaToast extends LocalizableMixin(LitElement) {
93
94
  constructor() {
94
95
  super(...arguments);
95
96
  /**
@@ -113,11 +114,6 @@ let EunomiaToast = class EunomiaToast extends LitElement {
113
114
  * @default true
114
115
  */
115
116
  this.closeable = true;
116
- /**
117
- * Accessible label of the close button.
118
- * @default Close
119
- */
120
- this.ariaLabelClose = "Close";
121
117
  /**
122
118
  * Milliseconds before the toast auto-dismisses. `0` disables auto-dismiss
123
119
  * entirely, same as `severity="critical"` regardless of this value.
@@ -503,7 +499,7 @@ let EunomiaToast = class EunomiaToast extends LitElement {
503
499
  appearance="ghost"
504
500
  rounded
505
501
  size="xs"
506
- aria-label=${this.ariaLabelClose}
502
+ aria-label=${this.closeLabel ?? this.dictionary.common.close}
507
503
  @click=${this.handleCloseClick}
508
504
  >
509
505
  <eun-icon name="close" size="16"></eun-icon>
@@ -553,10 +549,10 @@ __decorate([
553
549
  property({ reflect: true })
554
550
  ], EunomiaToast.prototype, "severity", void 0);
555
551
  __decorate([
556
- property({ reflect: true })
552
+ property({ reflect: true, useDefault: true })
557
553
  ], EunomiaToast.prototype, "appearance", void 0);
558
554
  __decorate([
559
- property({ reflect: true })
555
+ property({ reflect: true, useDefault: true })
560
556
  ], EunomiaToast.prototype, "position", void 0);
561
557
  __decorate([
562
558
  property({ reflect: true })
@@ -577,8 +573,8 @@ __decorate([
577
573
  property({ type: Boolean, reflect: true })
578
574
  ], EunomiaToast.prototype, "closeable", void 0);
579
575
  __decorate([
580
- property({ attribute: "aria-label-close" })
581
- ], EunomiaToast.prototype, "ariaLabelClose", void 0);
576
+ property({ attribute: "close-label" })
577
+ ], EunomiaToast.prototype, "closeLabel", void 0);
582
578
  __decorate([
583
579
  property({ type: Number })
584
580
  ], EunomiaToast.prototype, "duration", void 0);
@@ -81,7 +81,7 @@ const base = css `
81
81
  --_stackSign: 1;
82
82
  --_enterY: -24px;
83
83
  }
84
- :host([position="top-right"]) {
84
+ :host(:is([position="top-right"], :not([position]))) {
85
85
  top: var(--_gapEdge);
86
86
  right: var(--_gapEdge);
87
87
  --_stackSign: 1;
@@ -126,7 +126,7 @@ const base = css `
126
126
  --_enterX: -24px;
127
127
  --_enterY: 0px;
128
128
  }
129
- :host([position="top-right"][slide="horizontal"]),
129
+ :host(:is([position="top-right"], :not([position]))[slide="horizontal"]),
130
130
  :host([position="bottom-right"][slide="horizontal"]) {
131
131
  --_enterX: 24px;
132
132
  --_enterY: 0px;
@@ -198,8 +198,14 @@ const base = css `
198
198
  var(--toast-border-color, var(--_frame, transparent));
199
199
  padding: var(
200
200
  --toast-padding,
201
- var(--toast-padding-block, max(0px, calc(var(--eun-space-m, 16px) - var(--_bw))))
202
- var(--toast-padding-inline, max(0px, calc(var(--eun-space-m, 16px) - var(--_bw))))
201
+ var(
202
+ --toast-padding-block,
203
+ max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
204
+ )
205
+ var(
206
+ --toast-padding-inline,
207
+ max(0px, calc(var(--eun-space-m, 16px) - var(--_bw)))
208
+ )
203
209
  );
204
210
  border-radius: var(--toast-border-radius, var(--eun-border-radius-m, 8px));
205
211
  box-shadow: var(
@@ -221,7 +227,7 @@ const base = css `
221
227
  grid-column: 1;
222
228
  }
223
229
 
224
- :host([appearance="default"]) #toast {
230
+ :host(:is([appearance="default"], :not([appearance]))) #toast {
225
231
  background: linear-gradient(
226
232
  to right,
227
233
  var(--toast-border-color, var(--_borderColor)) 4px,
@@ -311,7 +317,10 @@ const base = css `
311
317
  padding-right: calc(
312
318
  var(
313
319
  --toast-padding,
314
- var(--toast-padding-inline, max(0px, calc(var(--eun-space-s, 8px) - var(--_bw))))
320
+ var(
321
+ --toast-padding-inline,
322
+ max(0px, calc(var(--eun-space-s, 8px) - var(--_bw)))
323
+ )
315
324
  ) +
316
325
  var(--eun-space-l, 32px)
317
326
  );
@@ -128,10 +128,10 @@ let EunomiaBadge = class EunomiaBadge extends LitElement {
128
128
  */
129
129
  EunomiaBadge.styles = badgeStyles;
130
130
  __decorate([
131
- property({ reflect: true })
131
+ property({ reflect: true, useDefault: true })
132
132
  ], EunomiaBadge.prototype, "color", void 0);
133
133
  __decorate([
134
- property({ reflect: true })
134
+ property({ reflect: true, useDefault: true })
135
135
  ], EunomiaBadge.prototype, "size", void 0);
136
136
  __decorate([
137
137
  property()
@@ -145,7 +145,7 @@ _EunomiaCard_newTab = new WeakMap();
145
145
  */
146
146
  EunomiaCard.styles = [cardStyles, cardLinkStyles];
147
147
  __decorate([
148
- property({ reflect: true })
148
+ property({ reflect: true, useDefault: true })
149
149
  ], EunomiaCard.prototype, "appearance", void 0);
150
150
  EunomiaCard = __decorate([
151
151
  customElement(EunomiaCardTagName)
@@ -84,8 +84,8 @@ const base = css `
84
84
  --_hoverBorderDefault: var(--eun-color-primary-500, #3d6fff);
85
85
  }
86
86
 
87
- :host([appearance="default"]) #card:hover,
88
- :host([appearance="default"]) #card:focus-visible {
87
+ :host(:is([appearance="default"], :not([appearance]))) #card:hover,
88
+ :host(:is([appearance="default"], :not([appearance]))) #card:focus-visible {
89
89
  transform: var(--card-hover-transform, var(--_hoverLift));
90
90
  background: var(
91
91
  --card-hover-background,
@@ -70,8 +70,8 @@ declare const EunomiaChip_base: import("../../../utils/constructor.type.js").Con
70
70
  * @prop {boolean} [rounded=true] - Whether the chip is fully rounded, as a pill
71
71
  * @prop {boolean} [removable=true] - Shows the delete button. Clicking it fires the close event without changing the chip's own rendering
72
72
  * @prop {boolean} [disabled=false] - Disables the delete button, preventing removal
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")
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
+ * @prop {string} [removeLabel] - 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")
74
+ * @attr {string} [remove-label] - 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")
75
75
  * @prop {string} [locale] - The locale used to resolve the default accessible label of the delete button. Defaults to the runtime's own
76
76
  * @cssprop [--chip-background-color] - Sets the background color of the chip, for every appearance, color and severity
77
77
  * @cssprop [--chip-border-color] - Sets the border color of the chip, for every appearance, color and severity
@@ -182,7 +182,7 @@ export declare class EunomiaChip extends EunomiaChip_base {
182
182
  * unless the consumer overrides it explicitly.
183
183
  * @default {i18n:chip.remove}
184
184
  */
185
- ariaLabelRemove?: string;
185
+ removeLabel?: string;
186
186
  /**
187
187
  * The chip's current slotted label text, trimmed ; tracked so the delete
188
188
  * button's accessible name can include it (see {@link getRemoveLabel}).
@@ -224,7 +224,7 @@ export declare class EunomiaChip extends EunomiaChip_base {
224
224
  private readonly handleRemove;
225
225
  /**
226
226
  * Builds the delete button's accessible name : the chip's own slotted
227
- * text appended to `ariaLabelRemove` (or its locale-resolved fallback),
227
+ * text appended to `removeLabel` (or its locale-resolved fallback),
228
228
  * so multiple chips on the same page stay distinguishable from one
229
229
  * another by sound alone. Falls back to that prefix alone when there's
230
230
  * no label text yet.
@@ -74,8 +74,8 @@ const DELETE_ICON_SIZES = {
74
74
  * @prop {boolean} [rounded=true] - Whether the chip is fully rounded, as a pill
75
75
  * @prop {boolean} [removable=true] - Shows the delete button. Clicking it fires the close event without changing the chip's own rendering
76
76
  * @prop {boolean} [disabled=false] - Disables the delete button, preventing removal
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")
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
+ * @prop {string} [removeLabel] - 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")
78
+ * @attr {string} [remove-label] - 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")
79
79
  * @prop {string} [locale] - The locale used to resolve the default accessible label of the delete button. Defaults to the runtime's own
80
80
  * @cssprop [--chip-background-color] - Sets the background color of the chip, for every appearance, color and severity
81
81
  * @cssprop [--chip-border-color] - Sets the border color of the chip, for every appearance, color and severity
@@ -190,7 +190,7 @@ let EunomiaChip = class EunomiaChip extends LocalizableMixin(LitElement) {
190
190
  }
191
191
  /**
192
192
  * Builds the delete button's accessible name : the chip's own slotted
193
- * text appended to `ariaLabelRemove` (or its locale-resolved fallback),
193
+ * text appended to `removeLabel` (or its locale-resolved fallback),
194
194
  * so multiple chips on the same page stay distinguishable from one
195
195
  * another by sound alone. Falls back to that prefix alone when there's
196
196
  * no label text yet.
@@ -198,7 +198,7 @@ let EunomiaChip = class EunomiaChip extends LocalizableMixin(LitElement) {
198
198
  * @private
199
199
  */
200
200
  getRemoveLabel() {
201
- const removeLabel = this.ariaLabelRemove ?? this.dictionary.chip.remove;
201
+ const removeLabel = this.removeLabel ?? this.dictionary.chip.remove;
202
202
  return this.labelText ? `${removeLabel} ${this.labelText}` : removeLabel;
203
203
  }
204
204
  /**
@@ -330,7 +330,7 @@ let EunomiaChip = class EunomiaChip extends LocalizableMixin(LitElement) {
330
330
  */
331
331
  EunomiaChip.styles = chipStyles;
332
332
  __decorate([
333
- property({ reflect: true })
333
+ property({ reflect: true, useDefault: true })
334
334
  ], EunomiaChip.prototype, "color", void 0);
335
335
  __decorate([
336
336
  property({ type: Boolean, reflect: true, attribute: "fixed-color" })
@@ -339,7 +339,7 @@ __decorate([
339
339
  property({ reflect: true })
340
340
  ], EunomiaChip.prototype, "severity", void 0);
341
341
  __decorate([
342
- property({ reflect: true })
342
+ property({ reflect: true, useDefault: true })
343
343
  ], EunomiaChip.prototype, "appearance", void 0);
344
344
  __decorate([
345
345
  property({ reflect: true })
@@ -372,8 +372,8 @@ __decorate([
372
372
  property({ type: Boolean, reflect: true })
373
373
  ], EunomiaChip.prototype, "disabled", void 0);
374
374
  __decorate([
375
- property({ attribute: "aria-label-remove" })
376
- ], EunomiaChip.prototype, "ariaLabelRemove", void 0);
375
+ property({ attribute: "remove-label" })
376
+ ], EunomiaChip.prototype, "removeLabel", void 0);
377
377
  __decorate([
378
378
  state()
379
379
  ], EunomiaChip.prototype, "labelText", void 0);
@@ -90,13 +90,13 @@ let EunomiaDescriptionList = class EunomiaDescriptionList extends ReactiveElemen
90
90
  }
91
91
  };
92
92
  __decorate([
93
- property({ reflect: true })
93
+ property({ reflect: true, useDefault: true })
94
94
  ], EunomiaDescriptionList.prototype, "layout", void 0);
95
95
  __decorate([
96
- property({ reflect: true })
96
+ property({ reflect: true, useDefault: true })
97
97
  ], EunomiaDescriptionList.prototype, "align", void 0);
98
98
  __decorate([
99
- property({ type: Number, reflect: true })
99
+ property({ type: Number, reflect: true, useDefault: true })
100
100
  ], EunomiaDescriptionList.prototype, "columns", void 0);
101
101
  __decorate([
102
102
  property({ type: Boolean, reflect: true })
@@ -33,7 +33,10 @@ export declare function setIconBaseUrl(url: string): void;
33
33
  * @cssprop [--icon-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --icon-padding is set
34
34
  * @cssprop [--icon-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --icon-padding is set
35
35
  * @cssprop [--icon-border-radius] - Sets the corner radius of the background box
36
+ * @cssprop [--icon-border-width] - Sets the border width of the background box. Zero by default
37
+ * @cssprop [--icon-border-color] - Sets the border color of the background box, once --icon-border-width is set
36
38
  * @cssprop [--icon-transition] - Sets the transition applied to the icon's color, background, and size changes. 0.2s by default
39
+ * @csspart wrapper - The background box around the icon, for effects its CSS custom properties don't cover
37
40
  * @element eun-icon
38
41
  */
39
42
  export declare class EunomiaIcon extends LitElement {
@@ -89,7 +89,10 @@ export function setIconBaseUrl(url) {
89
89
  * @cssprop [--icon-padding-block] - Sets the vertical padding, as one length applied to both sides. Ignored when --icon-padding is set
90
90
  * @cssprop [--icon-padding-inline] - Sets the horizontal padding, as one length applied to both sides. Ignored when --icon-padding is set
91
91
  * @cssprop [--icon-border-radius] - Sets the corner radius of the background box
92
+ * @cssprop [--icon-border-width] - Sets the border width of the background box. Zero by default
93
+ * @cssprop [--icon-border-color] - Sets the border color of the background box, once --icon-border-width is set
92
94
  * @cssprop [--icon-transition] - Sets the transition applied to the icon's color, background, and size changes. 0.2s by default
95
+ * @csspart wrapper - The background box around the icon, for effects its CSS custom properties don't cover
93
96
  * @element eun-icon
94
97
  */
95
98
  let EunomiaIcon = class EunomiaIcon extends LitElement {
@@ -8,6 +8,8 @@
8
8
  * --icon-padding : space between the icon and its background box. Zero by
9
9
  * default, so the background hugs the icon exactly unless widened.
10
10
  * --icon-border-radius : corner radius of the background box.
11
+ * --icon-border-width : border width of the background box. Zero by default.
12
+ * --icon-border-color : border color of the background box.
11
13
  * --icon-transition : transition applied to the icon's color, background,
12
14
  * and size changes. 0.2s by default.
13
15
  */
@@ -9,6 +9,8 @@ import { css } from "lit";
9
9
  * --icon-padding : space between the icon and its background box. Zero by
10
10
  * default, so the background hugs the icon exactly unless widened.
11
11
  * --icon-border-radius : corner radius of the background box.
12
+ * --icon-border-width : border width of the background box. Zero by default.
13
+ * --icon-border-color : border color of the background box.
12
14
  * --icon-transition : transition applied to the icon's color, background,
13
15
  * and size changes. 0.2s by default.
14
16
  */
@@ -30,6 +32,8 @@ export const iconStyles = css `
30
32
  fill: var(--_color);
31
33
  color: var(--_color);
32
34
  background-color: var(--_background);
35
+ border: var(--icon-border-width, 0) solid
36
+ var(--icon-border-color, var(--eun-border-color, #dee0e7));
33
37
  border-radius: var(--icon-border-radius, var(--eun-border-radius-m, 8px));
34
38
  text-decoration: none;
35
39
  white-space: normal;
@@ -61,14 +61,14 @@ declare const EunomiaImageCarousel_base: import("../../../utils/constructor.type
61
61
  * @prop {number} [autoplayInterval=4000] - Milliseconds between each autoplay advance
62
62
  * @attr {number} [autoplay-interval=4000] - Milliseconds between each autoplay advance
63
63
  * @attr {string} aria-label - The accessible name for the main stage. Defaults to the localized string for the current locale (English: "Image gallery")
64
- * @prop {string} [ariaLabelPrevious] - The accessible label of the previous controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Previous image")
65
- * @attr {string} [aria-label-previous] - The accessible label of the previous controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Previous image")
66
- * @prop {string} [ariaLabelNext] - The accessible label of the next controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Next image")
67
- * @attr {string} [aria-label-next] - The accessible label of the next controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Next image")
68
- * @prop {string} [ariaLabelExpand] - The accessible label of the main stage's expand control. Defaults to the localized string for the current locale (English: "View full-size image")
69
- * @attr {string} [aria-label-expand] - The accessible label of the main stage's expand control. Defaults to the localized string for the current locale (English: "View full-size image")
70
- * @prop {string} [ariaLabelLightbox] - The accessible name of the lightbox dialog. Defaults to the localized string for the current locale (English: "Image viewer")
71
- * @attr {string} [aria-label-lightbox] - The accessible name of the lightbox dialog. Defaults to the localized string for the current locale (English: "Image viewer")
64
+ * @prop {string} [previousLabel] - The accessible label of the previous controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Previous image")
65
+ * @attr {string} [previous-label] - The accessible label of the previous controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Previous image")
66
+ * @prop {string} [nextLabel] - The accessible label of the next controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Next image")
67
+ * @attr {string} [next-label] - The accessible label of the next controls, on both the main stage and the lightbox. Defaults to the localized string for the current locale (English: "Next image")
68
+ * @prop {string} [expandLabel] - The accessible label of the main stage's expand control. Defaults to the localized string for the current locale (English: "View full-size image")
69
+ * @attr {string} [expand-label] - The accessible label of the main stage's expand control. Defaults to the localized string for the current locale (English: "View full-size image")
70
+ * @prop {string} [lightboxLabel] - The accessible name of the lightbox dialog. Defaults to the localized string for the current locale (English: "Image viewer")
71
+ * @attr {string} [lightbox-label] - The accessible name of the lightbox dialog. Defaults to the localized string for the current locale (English: "Image viewer")
72
72
  * @fires {ImageChangeEvent} eunimagechange - Fired whenever the active image changes, from either the main stage or the lightbox
73
73
  * @cssprop [--image-carousel-aspect-ratio] - Sets the aspect ratio of the main stage
74
74
  * @cssprop [--image-carousel-object-fit] - Sets how the main image fits its box
@@ -191,26 +191,26 @@ export declare class EunomiaImageCarousel extends EunomiaImageCarousel_base {
191
191
  * `locale` automatically.
192
192
  * @default {i18n:imageCarousel.previous}
193
193
  */
194
- ariaLabelPrevious?: string;
194
+ previousLabel?: string;
195
195
  /**
196
196
  * Accessible label of the Next controls (main stage and lightbox).
197
197
  * Resolved from the locale dictionary when unset, so it follows
198
198
  * `locale` automatically.
199
199
  * @default {i18n:imageCarousel.next}
200
200
  */
201
- ariaLabelNext?: string;
201
+ nextLabel?: string;
202
202
  /**
203
203
  * Accessible label of the main stage's expand control. Resolved from the
204
204
  * locale dictionary when unset, so it follows `locale` automatically.
205
205
  * @default {i18n:imageCarousel.expand}
206
206
  */
207
- ariaLabelExpand?: string;
207
+ expandLabel?: string;
208
208
  /**
209
209
  * Accessible name of the lightbox dialog. Resolved from the locale
210
210
  * dictionary when unset, so it follows `locale` automatically.
211
211
  * @default {i18n:imageCarousel.lightbox}
212
212
  */
213
- ariaLabelLightbox?: string;
213
+ lightboxLabel?: string;
214
214
  /**
215
215
  * Text of the visually-hidden live region, debounced so rapid prev/next
216
216
  * clicks announce once rather than flooding it.