@webtides/element-library 0.2.0 → 0.3.1

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 (398) hide show
  1. package/CHANGELOG.md +399 -3
  2. package/README.md +61 -41
  3. package/all.js +28 -0
  4. package/catalog.d.ts +14 -0
  5. package/catalog.js +55 -27
  6. package/custom-elements.json +16676 -3457
  7. package/package.json +35 -28
  8. package/src/components/accordion/accordion.changelog.md +10 -0
  9. package/src/components/accordion/accordion.js +10 -7
  10. package/src/components/accordion/accordion.readme.md +2 -0
  11. package/src/components/accordion/accordion.style.js +8 -0
  12. package/src/components/amount-field/amount-field.changelog.md +23 -3
  13. package/src/components/amount-field/amount-field.js +53 -26
  14. package/src/components/amount-field/amount-field.readme.md +82 -20
  15. package/src/components/amount-field/amount-field.style.js +111 -47
  16. package/src/components/avatar/avatar.changelog.md +23 -0
  17. package/src/components/avatar/avatar.define.js +3 -0
  18. package/src/components/avatar/avatar.js +115 -0
  19. package/src/components/avatar/avatar.readme.md +132 -0
  20. package/src/components/avatar/avatar.style.js +67 -0
  21. package/src/components/badge/badge.changelog.md +23 -0
  22. package/src/components/badge/badge.define.js +3 -0
  23. package/src/components/badge/badge.js +59 -0
  24. package/src/components/badge/badge.readme.md +109 -0
  25. package/src/components/badge/badge.style.js +63 -0
  26. package/src/components/breadcrumb/breadcrumb.changelog.md +22 -0
  27. package/src/components/breadcrumb/breadcrumb.define.js +3 -0
  28. package/src/components/breadcrumb/breadcrumb.js +47 -0
  29. package/src/components/breadcrumb/breadcrumb.readme.md +108 -0
  30. package/src/components/breadcrumb/breadcrumb.style.js +20 -0
  31. package/src/components/breadcrumb-item/breadcrumb-item.changelog.md +23 -0
  32. package/src/components/breadcrumb-item/breadcrumb-item.define.js +3 -0
  33. package/src/components/breadcrumb-item/breadcrumb-item.js +82 -0
  34. package/src/components/breadcrumb-item/breadcrumb-item.readme.md +106 -0
  35. package/src/components/breadcrumb-item/breadcrumb-item.style.js +92 -0
  36. package/src/components/button/button.changelog.md +44 -1
  37. package/src/components/button/button.js +338 -29
  38. package/src/components/button/button.readme.md +138 -10
  39. package/src/components/button/button.style.js +99 -120
  40. package/src/components/button-group/button-group.changelog.md +24 -0
  41. package/src/components/button-group/button-group.define.js +3 -0
  42. package/src/components/button-group/button-group.js +53 -0
  43. package/src/components/button-group/button-group.readme.md +114 -0
  44. package/src/components/button-group/button-group.style.js +41 -0
  45. package/src/components/card/card.changelog.md +23 -0
  46. package/src/components/card/card.define.js +3 -0
  47. package/src/components/card/card.js +73 -0
  48. package/src/components/card/card.readme.md +136 -0
  49. package/src/components/card/card.style.js +99 -0
  50. package/src/components/carousel/carousel.changelog.md +20 -0
  51. package/src/components/carousel/carousel.js +89 -40
  52. package/src/components/carousel/carousel.readme.md +39 -6
  53. package/src/components/carousel/carousel.style.js +21 -77
  54. package/src/components/carousel/glide/components/ShadowAnchors.js +3 -1
  55. package/src/components/carousel/glide/components/ShadowClones.js +21 -24
  56. package/src/components/carousel/glide/components/ShadowGaps.js +2 -2
  57. package/src/components/carousel/glide/components/ShadowHtml.js +22 -3
  58. package/src/components/checkbox-field/checkbox-field.changelog.md +25 -0
  59. package/src/components/checkbox-field/checkbox-field.js +32 -11
  60. package/src/components/checkbox-field/checkbox-field.readme.md +17 -4
  61. package/src/components/checkbox-field/checkbox-field.style.js +15 -3
  62. package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +25 -0
  63. package/src/components/checkbox-group-field/checkbox-group-field.define.js +3 -0
  64. package/src/components/checkbox-group-field/checkbox-group-field.js +217 -0
  65. package/src/components/checkbox-group-field/checkbox-group-field.readme.md +95 -0
  66. package/src/components/checkbox-group-field/checkbox-group-field.style.js +62 -0
  67. package/src/components/color-field/color-field.changelog.md +24 -0
  68. package/src/components/color-field/color-field.define.js +3 -0
  69. package/src/components/color-field/color-field.js +184 -0
  70. package/src/components/color-field/color-field.readme.md +95 -0
  71. package/src/components/color-field/color-field.style.js +39 -0
  72. package/src/components/combobox-field/combobox-field.changelog.md +23 -0
  73. package/src/components/combobox-field/combobox-field.define.js +3 -0
  74. package/src/components/combobox-field/combobox-field.js +97 -0
  75. package/src/components/combobox-field/combobox-field.readme.md +93 -0
  76. package/src/components/combobox-field/combobox-field.style.js +56 -0
  77. package/src/components/copy-button/copy-button.changelog.md +24 -0
  78. package/src/components/copy-button/copy-button.define.js +3 -0
  79. package/src/components/copy-button/copy-button.events.js +4 -0
  80. package/src/components/copy-button/copy-button.js +237 -0
  81. package/src/components/copy-button/copy-button.readme.md +134 -0
  82. package/src/components/copy-button/copy-button.style.js +109 -0
  83. package/src/components/date-field/date-field.changelog.md +24 -0
  84. package/src/components/date-field/date-field.define.js +3 -0
  85. package/src/components/date-field/date-field.js +119 -0
  86. package/src/components/date-field/date-field.readme.md +110 -0
  87. package/src/components/date-field/date-field.style.js +53 -0
  88. package/src/components/dialog/dialog.changelog.md +16 -1
  89. package/src/components/dialog/dialog.js +252 -57
  90. package/src/components/dialog/dialog.readme.md +36 -4
  91. package/src/components/dialog/dialog.style.js +9 -109
  92. package/src/components/divider/divider.changelog.md +23 -0
  93. package/src/components/divider/divider.define.js +3 -0
  94. package/src/components/divider/divider.js +48 -0
  95. package/src/components/divider/divider.readme.md +101 -0
  96. package/src/components/divider/divider.style.js +50 -0
  97. package/src/components/drawer/drawer.changelog.md +25 -0
  98. package/src/components/drawer/drawer.define.js +3 -0
  99. package/src/components/drawer/drawer.events.js +8 -0
  100. package/src/components/drawer/drawer.js +80 -0
  101. package/src/components/drawer/drawer.readme.md +194 -0
  102. package/src/components/drawer/drawer.style.js +83 -0
  103. package/src/components/dropdown/dropdown.js +9 -7
  104. package/src/components/empty-state/empty-state.changelog.md +22 -0
  105. package/src/components/empty-state/empty-state.define.js +3 -0
  106. package/src/components/empty-state/empty-state.js +55 -0
  107. package/src/components/empty-state/empty-state.readme.md +114 -0
  108. package/src/components/empty-state/empty-state.style.js +60 -0
  109. package/src/components/file-field/file-field.changelog.md +24 -0
  110. package/src/components/file-field/file-field.define.js +3 -0
  111. package/src/components/file-field/file-field.js +205 -0
  112. package/src/components/file-field/file-field.readme.md +103 -0
  113. package/src/components/file-field/file-field.style.js +28 -0
  114. package/src/components/form-field/form-field.changelog.md +25 -0
  115. package/src/components/form-field/form-field.js +212 -15
  116. package/src/components/form-field/form-field.readme.md +82 -18
  117. package/src/components/form-field/form-field.style.js +6 -24
  118. package/src/components/input-field/input-field.changelog.md +24 -0
  119. package/src/components/input-field/input-field.js +82 -6
  120. package/src/components/input-field/input-field.readme.md +34 -5
  121. package/src/components/input-field/input-field.style.js +32 -13
  122. package/src/components/notification/notification.changelog.md +21 -1
  123. package/src/components/notification/notification.js +80 -74
  124. package/src/components/notification/notification.readme.md +54 -13
  125. package/src/components/notification/notification.style.js +37 -22
  126. package/src/components/otp-field/otp-field.changelog.md +23 -0
  127. package/src/components/otp-field/otp-field.define.js +3 -0
  128. package/src/components/otp-field/otp-field.events.js +3 -0
  129. package/src/components/otp-field/otp-field.js +172 -0
  130. package/src/components/otp-field/otp-field.readme.md +111 -0
  131. package/src/components/otp-field/otp-field.style.js +53 -0
  132. package/src/components/pagination/pagination.changelog.md +30 -0
  133. package/src/components/pagination/pagination.define.js +3 -0
  134. package/src/components/pagination/pagination.events.js +3 -0
  135. package/src/components/pagination/pagination.js +282 -0
  136. package/src/components/pagination/pagination.readme.md +167 -0
  137. package/src/components/pagination/pagination.style.js +162 -0
  138. package/src/components/password-field/password-field.changelog.md +24 -0
  139. package/src/components/password-field/password-field.js +7 -1
  140. package/src/components/password-field/password-field.readme.md +15 -6
  141. package/src/components/password-field/password-field.style.js +36 -13
  142. package/src/components/popover/popover.changelog.md +24 -0
  143. package/src/components/popover/popover.define.js +3 -0
  144. package/src/components/popover/popover.events.js +4 -0
  145. package/src/components/popover/popover.js +255 -0
  146. package/src/components/popover/popover.readme.md +132 -0
  147. package/src/components/popover/popover.style.js +41 -0
  148. package/src/components/progress-bar/progress-bar.changelog.md +23 -0
  149. package/src/components/progress-bar/progress-bar.define.js +3 -0
  150. package/src/components/progress-bar/progress-bar.js +80 -0
  151. package/src/components/progress-bar/progress-bar.readme.md +110 -0
  152. package/src/components/progress-bar/progress-bar.style.js +93 -0
  153. package/src/components/progress-ring/progress-ring.changelog.md +23 -0
  154. package/src/components/progress-ring/progress-ring.define.js +3 -0
  155. package/src/components/progress-ring/progress-ring.js +83 -0
  156. package/src/components/progress-ring/progress-ring.readme.md +115 -0
  157. package/src/components/progress-ring/progress-ring.style.js +85 -0
  158. package/src/components/radio-field/radio-field.changelog.md +16 -0
  159. package/src/components/radio-field/radio-field.js +34 -11
  160. package/src/components/radio-field/radio-field.readme.md +13 -8
  161. package/src/components/radio-field/radio-field.style.js +17 -65
  162. package/src/components/range-field/range-field.changelog.md +24 -0
  163. package/src/components/range-field/range-field.define.js +3 -0
  164. package/src/components/range-field/range-field.js +167 -0
  165. package/src/components/range-field/range-field.readme.md +87 -0
  166. package/src/components/range-field/range-field.style.js +41 -0
  167. package/src/components/rating-field/rating-field.changelog.md +24 -0
  168. package/src/components/rating-field/rating-field.define.js +3 -0
  169. package/src/components/rating-field/rating-field.js +195 -0
  170. package/src/components/rating-field/rating-field.readme.md +82 -0
  171. package/src/components/rating-field/rating-field.style.js +79 -0
  172. package/src/components/select-field/select-field.changelog.md +17 -0
  173. package/src/components/select-field/select-field.js +100 -8
  174. package/src/components/select-field/select-field.readme.md +32 -6
  175. package/src/components/select-field/select-field.style.js +19 -9
  176. package/src/components/skeleton/skeleton.changelog.md +22 -0
  177. package/src/components/skeleton/skeleton.define.js +3 -0
  178. package/src/components/skeleton/skeleton.js +49 -0
  179. package/src/components/skeleton/skeleton.readme.md +115 -0
  180. package/src/components/skeleton/skeleton.style.js +79 -0
  181. package/src/components/slider/slider.changelog.md +15 -0
  182. package/src/components/slider/slider.js +37 -5
  183. package/src/components/slider/slider.readme.md +28 -6
  184. package/src/components/slider/slider.style.js +7 -71
  185. package/src/components/spinner/spinner.changelog.md +22 -0
  186. package/src/components/spinner/spinner.define.js +3 -0
  187. package/src/components/spinner/spinner.js +48 -0
  188. package/src/components/spinner/spinner.readme.md +98 -0
  189. package/src/components/spinner/spinner.style.js +44 -0
  190. package/src/components/switch-field/switch-field.changelog.md +22 -0
  191. package/src/components/switch-field/switch-field.js +24 -10
  192. package/src/components/switch-field/switch-field.readme.md +11 -4
  193. package/src/components/switch-field/switch-field.style.js +13 -13
  194. package/src/components/tab-group/tab-group.changelog.md +19 -0
  195. package/src/components/tab-group/tab-group.js +122 -10
  196. package/src/components/tab-group/tab-group.readme.md +25 -4
  197. package/src/components/tab-link/tab-link.changelog.md +16 -0
  198. package/src/components/tab-link/tab-link.js +51 -8
  199. package/src/components/tab-link/tab-link.readme.md +14 -8
  200. package/src/components/tab-link/tab-link.style.js +13 -0
  201. package/src/components/tab-panel/tab-panel.changelog.md +8 -2
  202. package/src/components/tab-panel/tab-panel.js +7 -3
  203. package/src/components/tab-panel/tab-panel.readme.md +7 -5
  204. package/src/components/tag/tag.changelog.md +24 -0
  205. package/src/components/tag/tag.define.js +3 -0
  206. package/src/components/tag/tag.events.js +3 -0
  207. package/src/components/tag/tag.js +116 -0
  208. package/src/components/tag/tag.readme.md +119 -0
  209. package/src/components/tag/tag.style.js +101 -0
  210. package/src/components/tag-field/tag-field.changelog.md +25 -0
  211. package/src/components/tag-field/tag-field.define.js +3 -0
  212. package/src/components/tag-field/tag-field.js +359 -0
  213. package/src/components/tag-field/tag-field.readme.md +113 -0
  214. package/src/components/tag-field/tag-field.style.js +62 -0
  215. package/src/components/textarea-field/textarea-field.changelog.md +28 -4
  216. package/src/components/textarea-field/textarea-field.js +68 -14
  217. package/src/components/textarea-field/textarea-field.readme.md +45 -9
  218. package/src/components/textarea-field/textarea-field.style.js +45 -2
  219. package/src/components/toast/toast.changelog.md +24 -0
  220. package/src/components/toast/toast.define.js +3 -0
  221. package/src/components/toast/toast.js +193 -0
  222. package/src/components/toast/toast.readme.md +189 -0
  223. package/src/components/toast/toast.style.js +74 -0
  224. package/src/components/tooltip/tooltip.changelog.md +24 -0
  225. package/src/components/tooltip/tooltip.define.js +3 -0
  226. package/src/components/tooltip/tooltip.events.js +4 -0
  227. package/src/components/tooltip/tooltip.js +377 -0
  228. package/src/components/tooltip/tooltip.readme.md +172 -0
  229. package/src/components/tooltip/tooltip.style.js +107 -0
  230. package/src/components/transition-classes/transition-classes.js +6 -6
  231. package/src/styles/appearance.style.js +42 -0
  232. package/src/styles/arrow.style.js +65 -0
  233. package/src/styles/choice-group.style.js +94 -0
  234. package/src/styles/form-control.style.js +79 -0
  235. package/src/styles/host.style.js +55 -0
  236. package/src/styles/layers.css +31 -0
  237. package/src/styles/modal.style.js +146 -0
  238. package/src/styles/native.css +275 -0
  239. package/src/styles/size.style.js +48 -0
  240. package/src/styles/slide-controls.style.js +225 -0
  241. package/src/styles/utilities.css +30 -0
  242. package/src/styles/variants.style.js +78 -0
  243. package/src/themes/default.css +86 -142
  244. package/src/themes/high-contrast.css +72 -129
  245. package/src/themes/sketchy.css +95 -175
  246. package/src/utils/floating.js +71 -0
  247. package/src/utils/focus.js +18 -0
  248. package/src/utils/progress.js +25 -0
  249. package/src/utils/slots.js +21 -0
  250. package/src/utils/text-entry-attributes.js +51 -0
  251. package/types/all.d.ts +54 -1
  252. package/types/index.d.ts +1 -0
  253. package/types/src/components/accordion/accordion.d.ts +6 -4
  254. package/types/src/components/accordion/accordion.events.d.ts +3 -3
  255. package/types/src/components/accordion-group/accordion-group.d.ts +4 -3
  256. package/types/src/components/amount-field/amount-field.d.ts +30 -16
  257. package/types/src/components/avatar/avatar.d.ts +57 -0
  258. package/types/src/components/avatar/avatar.define.d.ts +1 -0
  259. package/types/src/components/avatar/avatar.style.d.ts +2 -0
  260. package/types/src/components/badge/badge.d.ts +32 -0
  261. package/types/src/components/badge/badge.define.d.ts +1 -0
  262. package/types/src/components/badge/badge.style.d.ts +2 -0
  263. package/types/src/components/breadcrumb/breadcrumb.d.ts +27 -0
  264. package/types/src/components/breadcrumb/breadcrumb.define.d.ts +1 -0
  265. package/types/src/components/breadcrumb/breadcrumb.style.d.ts +2 -0
  266. package/types/src/components/breadcrumb-item/breadcrumb-item.d.ts +38 -0
  267. package/types/src/components/breadcrumb-item/breadcrumb-item.define.d.ts +1 -0
  268. package/types/src/components/breadcrumb-item/breadcrumb-item.style.d.ts +2 -0
  269. package/types/src/components/button/button.d.ts +158 -14
  270. package/types/src/components/button-group/button-group.d.ts +28 -0
  271. package/types/src/components/button-group/button-group.define.d.ts +1 -0
  272. package/types/src/components/button-group/button-group.style.d.ts +2 -0
  273. package/types/src/components/card/card.d.ts +40 -0
  274. package/types/src/components/card/card.define.d.ts +1 -0
  275. package/types/src/components/card/card.style.d.ts +2 -0
  276. package/types/src/components/carousel/carousel.d.ts +22 -8
  277. package/types/src/components/carousel/carousel.events.d.ts +3 -3
  278. package/types/src/components/carousel/glide/components/ShadowAnchors.d.ts +1 -1
  279. package/types/src/components/carousel/glide/components/ShadowClones.d.ts +8 -1
  280. package/types/src/components/carousel/glide/components/ShadowGaps.d.ts +1 -1
  281. package/types/src/components/carousel/glide/components/ShadowHtml.d.ts +1 -1
  282. package/types/src/components/carousel/glide/components/glide-html.d.ts +1 -1
  283. package/types/src/components/checkbox-field/checkbox-field.d.ts +22 -15
  284. package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +100 -0
  285. package/types/src/components/checkbox-group-field/checkbox-group-field.define.d.ts +1 -0
  286. package/types/src/components/checkbox-group-field/checkbox-group-field.style.d.ts +2 -0
  287. package/types/src/components/color-field/color-field.d.ts +102 -0
  288. package/types/src/components/color-field/color-field.define.d.ts +1 -0
  289. package/types/src/components/color-field/color-field.style.d.ts +2 -0
  290. package/types/src/components/combobox-field/combobox-field.d.ts +84 -0
  291. package/types/src/components/combobox-field/combobox-field.define.d.ts +1 -0
  292. package/types/src/components/combobox-field/combobox-field.style.d.ts +2 -0
  293. package/types/src/components/copy-button/copy-button.d.ts +93 -0
  294. package/types/src/components/copy-button/copy-button.define.d.ts +1 -0
  295. package/types/src/components/copy-button/copy-button.events.d.ts +5 -0
  296. package/types/src/components/copy-button/copy-button.style.d.ts +2 -0
  297. package/types/src/components/date-field/date-field.d.ts +102 -0
  298. package/types/src/components/date-field/date-field.define.d.ts +1 -0
  299. package/types/src/components/date-field/date-field.style.d.ts +2 -0
  300. package/types/src/components/dialog/dialog.d.ts +101 -19
  301. package/types/src/components/dialog/dialog.events.d.ts +8 -8
  302. package/types/src/components/divider/divider.d.ts +27 -0
  303. package/types/src/components/divider/divider.define.d.ts +1 -0
  304. package/types/src/components/divider/divider.style.d.ts +2 -0
  305. package/types/src/components/drawer/drawer.d.ts +70 -0
  306. package/types/src/components/drawer/drawer.define.d.ts +1 -0
  307. package/types/src/components/drawer/drawer.events.d.ts +9 -0
  308. package/types/src/components/drawer/drawer.style.d.ts +2 -0
  309. package/types/src/components/dropdown/dropdown.d.ts +5 -3
  310. package/types/src/components/empty-state/empty-state.d.ts +29 -0
  311. package/types/src/components/empty-state/empty-state.define.d.ts +1 -0
  312. package/types/src/components/empty-state/empty-state.style.d.ts +2 -0
  313. package/types/src/components/file-field/file-field.d.ts +115 -0
  314. package/types/src/components/file-field/file-field.define.d.ts +1 -0
  315. package/types/src/components/file-field/file-field.style.d.ts +2 -0
  316. package/types/src/components/form-field/form-field.d.ts +129 -14
  317. package/types/src/components/form-field/form-field.events.d.ts +4 -4
  318. package/types/src/components/input-field/input-field.d.ts +52 -5
  319. package/types/src/components/lazy-src/lazy-src.d.ts +7 -5
  320. package/types/src/components/lazy-src/lazy-src.events.d.ts +5 -5
  321. package/types/src/components/notification/notification.d.ts +18 -18
  322. package/types/src/components/notification/notification.events.d.ts +6 -6
  323. package/types/src/components/otp-field/otp-field.d.ts +130 -0
  324. package/types/src/components/otp-field/otp-field.define.d.ts +1 -0
  325. package/types/src/components/otp-field/otp-field.events.d.ts +4 -0
  326. package/types/src/components/otp-field/otp-field.style.d.ts +2 -0
  327. package/types/src/components/pagination/pagination.d.ts +117 -0
  328. package/types/src/components/pagination/pagination.define.d.ts +1 -0
  329. package/types/src/components/pagination/pagination.events.d.ts +4 -0
  330. package/types/src/components/pagination/pagination.style.d.ts +2 -0
  331. package/types/src/components/password-field/password-field.d.ts +29 -12
  332. package/types/src/components/popover/popover.d.ts +123 -0
  333. package/types/src/components/popover/popover.define.d.ts +1 -0
  334. package/types/src/components/popover/popover.events.d.ts +5 -0
  335. package/types/src/components/popover/popover.style.d.ts +2 -0
  336. package/types/src/components/progress-bar/progress-bar.d.ts +35 -0
  337. package/types/src/components/progress-bar/progress-bar.define.d.ts +1 -0
  338. package/types/src/components/progress-bar/progress-bar.style.d.ts +2 -0
  339. package/types/src/components/progress-ring/progress-ring.d.ts +40 -0
  340. package/types/src/components/progress-ring/progress-ring.define.d.ts +1 -0
  341. package/types/src/components/progress-ring/progress-ring.style.d.ts +2 -0
  342. package/types/src/components/radio-field/radio-field.d.ts +21 -9
  343. package/types/src/components/range-field/range-field.d.ts +94 -0
  344. package/types/src/components/range-field/range-field.define.d.ts +1 -0
  345. package/types/src/components/range-field/range-field.style.d.ts +2 -0
  346. package/types/src/components/rating-field/rating-field.d.ts +96 -0
  347. package/types/src/components/rating-field/rating-field.define.d.ts +1 -0
  348. package/types/src/components/rating-field/rating-field.style.d.ts +2 -0
  349. package/types/src/components/scroll-to/scroll-to.d.ts +3 -2
  350. package/types/src/components/scroll-to-top/scroll-to-top.d.ts +4 -2
  351. package/types/src/components/select-field/select-field.d.ts +55 -5
  352. package/types/src/components/skeleton/skeleton.d.ts +29 -0
  353. package/types/src/components/skeleton/skeleton.define.d.ts +1 -0
  354. package/types/src/components/skeleton/skeleton.style.d.ts +2 -0
  355. package/types/src/components/slider/slider.d.ts +14 -8
  356. package/types/src/components/slider/slider.events.d.ts +4 -4
  357. package/types/src/components/spinner/spinner.d.ts +28 -0
  358. package/types/src/components/spinner/spinner.define.d.ts +1 -0
  359. package/types/src/components/spinner/spinner.style.d.ts +2 -0
  360. package/types/src/components/sticky/sticky.d.ts +4 -2
  361. package/types/src/components/svg-use/svg-use.d.ts +4 -2
  362. package/types/src/components/switch-field/switch-field.d.ts +17 -15
  363. package/types/src/components/tab-group/tab-group.d.ts +44 -3
  364. package/types/src/components/tab-link/tab-link.d.ts +33 -10
  365. package/types/src/components/tab-panel/tab-panel.d.ts +8 -5
  366. package/types/src/components/tag/tag.d.ts +53 -0
  367. package/types/src/components/tag/tag.define.d.ts +1 -0
  368. package/types/src/components/tag/tag.events.d.ts +4 -0
  369. package/types/src/components/tag/tag.style.d.ts +2 -0
  370. package/types/src/components/tag-field/tag-field.d.ts +178 -0
  371. package/types/src/components/tag-field/tag-field.define.d.ts +1 -0
  372. package/types/src/components/tag-field/tag-field.style.d.ts +2 -0
  373. package/types/src/components/textarea-field/textarea-field.d.ts +44 -4
  374. package/types/src/components/toast/toast.d.ts +110 -0
  375. package/types/src/components/toast/toast.define.d.ts +1 -0
  376. package/types/src/components/toast/toast.style.d.ts +2 -0
  377. package/types/src/components/tooltip/tooltip.d.ts +161 -0
  378. package/types/src/components/tooltip/tooltip.define.d.ts +1 -0
  379. package/types/src/components/tooltip/tooltip.events.d.ts +5 -0
  380. package/types/src/components/tooltip/tooltip.style.d.ts +2 -0
  381. package/types/src/components/transition-classes/transition-classes.d.ts +9 -8
  382. package/types/src/styles/appearance.style.d.ts +18 -0
  383. package/types/src/styles/arrow.style.d.ts +15 -0
  384. package/types/src/styles/choice-group.style.d.ts +23 -0
  385. package/types/src/styles/form-control.style.d.ts +26 -0
  386. package/types/src/styles/host.style.d.ts +24 -0
  387. package/types/src/styles/modal.style.d.ts +20 -0
  388. package/types/src/styles/size.style.d.ts +20 -0
  389. package/types/src/styles/slide-controls.style.d.ts +20 -0
  390. package/types/src/styles/variants.style.d.ts +32 -0
  391. package/types/src/utils/body-scroll.d.ts +12 -2
  392. package/types/src/utils/floating.d.ts +36 -0
  393. package/types/src/utils/focus.d.ts +16 -0
  394. package/types/src/utils/progress.d.ts +19 -0
  395. package/types/src/utils/slots.d.ts +19 -0
  396. package/types/src/utils/text-entry-attributes.d.ts +18 -0
  397. package/types/src/utils/transitions.d.ts +2 -2
  398. package/web-types.json +6590 -1584
@@ -0,0 +1,205 @@
1
+ import { html, defineElement, optionalAttribute } from '@webtides/element-js';
2
+ import FormField, { FormFieldEvents } from '../form-field/form-field.js';
3
+ import style from './file-field.style.js';
4
+
5
+ /**
6
+ * One or several files for a form. Renders a native `<input type="file">`, so the dialog of the
7
+ * system, a drop onto the control, the keyboard and the form submission are the ones of the
8
+ * browser. Extends `FormField` and inherits its label / help / error / required surface.
9
+ *
10
+ * The files come from the user. A script cannot choose one, the browser does not allow that; it can
11
+ * take the choice away with an empty `value`.
12
+ *
13
+ * @element el-file-field
14
+ *
15
+ * @fires {CustomEvent<string[]>} input-change - Fired when the user has chosen files, and when the
16
+ * choice was taken away. `detail` is the list of the names; the files are in `files` of the
17
+ * element. Bubbles.
18
+ *
19
+ * @cssstate touched - Set on the host once the user has left the control for another place of the
20
+ * page, or the browser has refused a submit because of it. Inherits `valid` and `invalid` from
21
+ * `FormField`.
22
+ *
23
+ * @property {string[]} value - The names of the chosen files. It follows the control: a script can
24
+ * set it to an empty list, which takes the choice away, and to nothing else.
25
+ * @property {string} accept - Passed on to the control as its `accept` attribute: the kinds of
26
+ * files the dialog offers (`'image/*'`, `'.pdf,.docx'`). Empty (the default) offers every file.
27
+ * @property {boolean} multiple - Whether more than one file can be chosen. Default `false`.
28
+ * @property {string | null} capture - Passed on as `capture`: a phone takes the picture or the
29
+ * recording with its camera (`'user'`, `'environment'`) and does not open its files. `null` (the
30
+ * default) leaves the attribute out.
31
+ * @property {'small'|'medium'|'large'} size - Size of the control: its height, its padding and its
32
+ * font size. Default `'medium'`. Reflected to the `size` attribute. It shows once the control is
33
+ * decorated (`styles/native.css`); a control with the look of the browser keeps its size.
34
+ */
35
+ export default class FileField extends FormField {
36
+ /**
37
+ * The names the control had when the field last looked. See `_matchControl()`.
38
+ * @private
39
+ */
40
+ _chosen = [];
41
+
42
+ /**
43
+ * The value that `input-change` last reported, or that the field started with. See `watch()`.
44
+ * @private
45
+ */
46
+ _reportedValue = undefined;
47
+
48
+ constructor(options) {
49
+ super({
50
+ shadowRender: false,
51
+ styles: [style],
52
+ ...options,
53
+ // The value of this field is a list, so the attribute is parsed, as element-js does for
54
+ // any other. The size module selects the host by the `size` attribute.
55
+ propertyOptions: { value: {}, size: { reflect: true }, ...options?.propertyOptions },
56
+ });
57
+ }
58
+
59
+ properties() {
60
+ return {
61
+ ...super.properties(),
62
+ value: [],
63
+ accept: '',
64
+ multiple: false,
65
+ capture: null,
66
+ size: 'medium',
67
+ };
68
+ }
69
+
70
+ /**
71
+ * The chosen files, as the control has them.
72
+ * @returns {File[]}
73
+ */
74
+ get files() {
75
+ return [...(this.$refs?.input?.files ?? [])];
76
+ }
77
+
78
+ afterUpdate() {
79
+ // Before the form field keeps the state for a reset: what the field takes over from the
80
+ // control is part of it.
81
+ this._matchControl();
82
+ if (this._reportedValue === undefined) this._reportedValue = JSON.stringify(this._names());
83
+ super.afterUpdate();
84
+ }
85
+
86
+ watch() {
87
+ return {
88
+ ...super.watch(),
89
+ // The watcher runs a frame after the change, once for every change, and the field can
90
+ // have taken another value over from the control by then. So it is the value of now
91
+ // that is reported, and each one once.
92
+ value: () => {
93
+ this._matchControl();
94
+ this._report();
95
+ },
96
+ };
97
+ }
98
+
99
+ events() {
100
+ return {
101
+ '[ref=input]': {
102
+ change: () => this.onChange(),
103
+ focus: () => this.onFocus(),
104
+ // The dialog of the system takes the focus from the page, and gives it back. The
105
+ // user has not left the control by that: a required field would show its error
106
+ // message behind the dialog. The field is touched once the focus goes to another
107
+ // place of the page.
108
+ blur: () => document.hasFocus() && this.onBlur(),
109
+ invalid: (event) => this._onInvalid(event.target),
110
+ },
111
+ };
112
+ }
113
+
114
+ /**
115
+ * The user has chosen files, or has taken the choice away in the dialog.
116
+ * @returns {void}
117
+ */
118
+ onChange() {
119
+ const control = this.$refs.input;
120
+ this._chosen = this._namesOf(control);
121
+ this.value = this._chosen;
122
+ this.valid = control.validity.valid;
123
+ // Files with the names of the ones before are another choice all the same, and one the
124
+ // watcher does not see: the value has not changed.
125
+ this._report(true);
126
+ }
127
+
128
+ /**
129
+ * Fires `input-change` with the value of now, once for every value.
130
+ * @private
131
+ * @param {boolean} [always] - Also when the value is the one that was reported last.
132
+ */
133
+ _report(always = false) {
134
+ const value = JSON.stringify(this._names());
135
+ if (!always && value === this._reportedValue) return;
136
+ this._reportedValue = value;
137
+ this.dispatch(FormFieldEvents.INPUT_CHANGE, this._names());
138
+ }
139
+
140
+ /**
141
+ * The value as a list of names. An attribute that is no JSON list gives a single text.
142
+ * @private
143
+ * @returns {string[]}
144
+ */
145
+ _names() {
146
+ if (this.value == null || this.value === '') return [];
147
+ return (Array.isArray(this.value) ? this.value : [this.value]).map(String);
148
+ }
149
+
150
+ /**
151
+ * @private
152
+ * @param {HTMLInputElement} control
153
+ * @returns {string[]}
154
+ */
155
+ _namesOf(control) {
156
+ return [...control.files].map((file) => file.name);
157
+ }
158
+
159
+ /**
160
+ * Makes `value` say what the control has, after every render and every change of `value`.
161
+ *
162
+ * The browser lets nobody but the user choose a file, so the control is what counts: a value
163
+ * from outside that names other files is put back to the names of the control. The one thing a
164
+ * script can do is take the choice away. An empty value after a choice does that; an empty
165
+ * value from the start does not, the browser can have brought a choice back with the page.
166
+ * @private
167
+ */
168
+ _matchControl() {
169
+ const control = this.$refs.input;
170
+ if (!control) return;
171
+
172
+ if (this._names().length === 0 && this._chosen.length > 0 && control.files.length > 0) {
173
+ control.value = '';
174
+ }
175
+
176
+ this._chosen = this._namesOf(control);
177
+ if (JSON.stringify(this._names()) !== JSON.stringify(this._chosen)) this.value = this._chosen;
178
+ }
179
+
180
+ /** @private */
181
+ fieldTemplate() {
182
+ const capture = this.capture ?? false;
183
+
184
+ return html`
185
+ <input
186
+ ref="input"
187
+ type="file"
188
+ id="${this._idOf('input')}"
189
+ name="${this.name}"
190
+ ?multiple="${this.multiple}"
191
+ ?required="${this.required}"
192
+ ?disabled="${this.disabled}"
193
+ ${optionalAttribute(!!this.accept, 'accept', this.accept)}
194
+ ${optionalAttribute(capture !== false, 'capture', capture)}
195
+ aria-describedby="${this._describedBy()}"
196
+ aria-invalid="${this.valid ? 'false' : 'true'}"
197
+ aria-errormessage="${this._idOf('error-message')}"
198
+ />
199
+ `;
200
+ }
201
+ }
202
+
203
+ export function define() {
204
+ defineElement('el-file-field', FileField);
205
+ }
@@ -0,0 +1,103 @@
1
+ # FileField
2
+
3
+ `file-field` takes one or several files for a form: a CV, a receipt, a picture. It renders a native `<input type="file">`, so the dialog of the system, a drop onto the control, the keyboard and the form submission are the ones of the browser. It extends `form-field`, inheriting the label, help text, error message, `required` and touched-state handling.
4
+
5
+ It is headless by default: the control keeps the look of the browser. `styles/native.css` gives it the border of the other fields and its button the tokens of the theme.
6
+
7
+ ## How to use
8
+
9
+ #### Install
10
+
11
+ ```sh
12
+ npm i --save @webtides/element-library
13
+ ```
14
+
15
+ #### Use
16
+
17
+ ```js
18
+ import '@webtides/element-library/file-field/define';
19
+ ```
20
+
21
+ ```html
22
+ <el-file-field name="cv" label="Your CV" accept=".pdf" required="true"></el-file-field>
23
+
24
+ <el-file-field name="receipts" label="Receipts" accept="image/*,.pdf" multiple="true"></el-file-field>
25
+ ```
26
+
27
+ A form that submits files needs `method="post"` and `enctype="multipart/form-data"`, as with every file input.
28
+
29
+ #### The files and the value
30
+
31
+ `files` gives the chosen files, as a list of `File`. `value` is the list of their names, and `input-change` reports it:
32
+
33
+ ```js
34
+ field.addEventListener('input-change', (event) => {
35
+ event.detail; // ['cv.pdf']
36
+ event.target.files; // [File]
37
+ });
38
+ ```
39
+
40
+ The files come from the user. A script cannot choose one, the browser does not allow that: a `value` that names other files is put back to the names of the control. What a script can do is take the choice away, with an empty value:
41
+
42
+ ```js
43
+ field.value = [];
44
+ ```
45
+
46
+ #### Checks of the page
47
+
48
+ The browser knows `required` and nothing else about a file: `accept` only says what the dialog offers. The size, the number and the kind of the files are checked by the page. It renders the field as not valid, with the reason as the error message:
49
+
50
+ ```html
51
+ <el-file-field
52
+ name="picture"
53
+ label="Profile picture"
54
+ valid="false"
55
+ error-message="The picture is larger than 5 MB."
56
+ ></el-file-field>
57
+ ```
58
+
59
+ ## API
60
+
61
+ #### Properties/Attributes
62
+
63
+ Inherits all of `form-field`'s properties (`name`, `value`, `required`, `disabled`, `label`, `labelScreenReaderOnly`, `errorMessage`, `helpMessage`, `valid`, `touched`) and adds:
64
+
65
+ | Name | Type | Default | Description |
66
+ | --- | --- | --- | --- |
67
+ | `value` | `string[]` | `[]` | The names of the chosen files. It follows the control; an empty list takes the choice away. |
68
+ | `files` | `File[]` | `[]` | The chosen files. Read only, and no attribute. |
69
+ | `accept` | `string` | `''` | The kinds of files the dialog offers (`image/*`, `.pdf,.docx`). Empty offers every file. |
70
+ | `multiple` | `boolean` | `false` | Whether more than one file can be chosen. |
71
+ | `capture` | `string \| null` | `null` | A phone takes the picture or the recording with its camera (`user`, `environment`) and does not open its files. |
72
+ | `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Size of the control. Reflected to the `size` attribute. It shows once the control is decorated. |
73
+
74
+ #### Events
75
+
76
+ | Name | Detail | Description |
77
+ | --- | --- | --- |
78
+ | `input-change` | `string[]` (the value) | Fired when the user has chosen files, also ones with the names of the files before, and when the choice was taken away. |
79
+
80
+ #### CSS States
81
+
82
+ | Name | Description |
83
+ | --------- | ------------------------------------------------------------------------------------------------- |
84
+ | `touched` | Set once the user has left the control for another place of the page. The dialog does not set it. |
85
+ | `valid` | Set while the field passes validation. |
86
+ | `invalid` | Set while the field fails validation (`required` with no file, or the page says so with `valid`). |
87
+
88
+ #### CSS Custom Properties
89
+
90
+ Headless by default. The texts read the tokens every field reads (`--el-color-fg`, `--el-color-fg-muted`, `--el-color-danger`, `--el-font-size-sm`, `--el-space-1`, `--el-space-2`).
91
+
92
+ With `styles/native.css` the control has the border, the radius, the colours and the focus ring of the input of `el-input-field`, and its height in each of the three sizes. Its button is a plain surface in `--el-color-bg-muted` with the radius `--el-radius-sm`. The words on the button and beside it are the ones of the browser, in the language of the user.
93
+
94
+ The label, the help message, the control and the error message stack in a column, and the texts have one look in every field: see [Layout](../form-field/form-field.readme.md#layout) in the readme of `form-field`.
95
+
96
+ On a touch screen (`@media (any-pointer: coarse)`) the control is at least `--el-touch-target` high. Without that token, and on a fine pointer, the size stays as it is.
97
+
98
+ ## Accessibility
99
+
100
+ - Uses a native `<input type="file">`: it is a button for a screen reader, which reads the name of the chosen file with it. Enter and Space open the dialog.
101
+ - The control is named by the label (`<label for>`). It names the help message in `aria-describedby`, and the error message while that is shown, and says whether it is valid (`aria-invalid`).
102
+ - Validation messages surface only once the field is `touched`. The dialog of the system takes the focus from the page, which does not touch the field: the error message of a required field does not show behind the dialog. The error message is an alert (`role="alert"`): a screen reader announces it when it appears.
103
+ - Say in the help message what the page takes: the kinds of files and the largest size.
@@ -0,0 +1,28 @@
1
+ import hostStyle from '../../styles/host.style.js';
2
+ import formControlStyle from '../../styles/form-control.style.js';
3
+ import sizeStyle from '../../styles/size.style.js';
4
+
5
+ const css = String.raw;
6
+
7
+ /**
8
+ * The control keeps the look of the browser, as the control of every field does: `styles/native.css`
9
+ * gives it the border of the other fields and its button the tokens of the theme.
10
+ */
11
+ const style = css`
12
+ el-file-field {
13
+ /* Touch screens: the control is at least --el-touch-target high, whatever the size of the
14
+ field. Without the token the size stays as it is. */
15
+ @media (any-pointer: coarse) {
16
+ input {
17
+ min-height: max(
18
+ calc(var(--el-control-height, 0px) * var(--_el-size-scale, 1)),
19
+ var(--el-touch-target, 0px)
20
+ );
21
+ }
22
+ }
23
+ }
24
+ `;
25
+
26
+ export default [hostStyle('el-file-field'), formControlStyle('el-file-field'), sizeStyle('el-file-field'), style].join(
27
+ '\n',
28
+ );
@@ -12,6 +12,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
12
12
 
13
13
  ## Unreleased
14
14
 
15
+ ## [0.3.0] - 2026-11-17
16
+
17
+ ### Added
18
+
19
+ - The readme says how the fields take part in a native `<form>` ("In a form"): what is submitted, what `disabled` and `required` do, and what does not work yet. Every statement there is covered by a test of the field. ([#69](https://github.com/webtides/element-library/issues/69))
20
+
21
+ ### Changed
22
+
23
+ - `el-form-field` has the layout of the fields that extend it: the label, the help message, the control and the error message stack in a column with a gap of `--el-space-1` (4 px without a theme). The messages are set in `--el-font-size-sm` (14 px without a theme), and the error message has the danger colour of the theme; both had the size and the colour of the text. A help message without a text takes no room, and the `hidden` attribute hides the field, which the `display` of the field kept it from. ([#130](https://github.com/webtides/element-library/issues/130))
24
+ - BREAKING: the ids inside a field are no longer made from its name. The control had `input-<name>` and the messages `<name>-help-message` and `<name>-error-message`. They are `input-…`, `help-message-…` and `error-message-…` now, with a part that is random for every field and another one on every page load, as the controls of the checkbox, the switch and the radio group already had. A selector, a link or a `for` of the page that names one of the old ids no longer finds its element: reach the control through the field, `field.querySelector('input')`. ([#133](https://github.com/webtides/element-library/issues/133))
25
+
26
+ ### Fixed
27
+
28
+ - A field has its own stylesheet when its parent class was connected before it. element-js keeps the stylesheets of an element on its class, and a field found the ones of its parent class there and never built its own. On a page with an `el-input-field` before an `el-password-field`, the password field had the styles of the input field only, and its toggle looked like a native button; every field after an `el-form-field` had the styles of that one only. Each field class now has a place of its own for its stylesheets.
29
+ - The error message is announced by screen readers. It is an alert now (`role="alert"`), so it is read the moment it appears, and the fields name it in the `aria-describedby` of their control while it is shown, so it is read again when the control gets focus. Before, a control pointed at the message with `aria-errormessage` at most, which few screen readers read and which axe reports (`aria-valid-attr-value`). The alert reaches every field that shows the message; `aria-describedby` is set by `el-input-field`, `el-password-field`, `el-select-field`, `el-radio-field`, `el-textarea-field` and `el-switch-field`. ([#94](https://github.com/webtides/element-library/issues/94))
30
+ - The cross of a field that is not valid empties the field, not only its control: `clearInput()` sets `value` to the empty text, `input-change` reports it, and `valid` is what the empty control says. Before, the control was empty while `value` kept the old text and no event was fired, so a page that read `value` or listened to `input-change` had another text than the one the form submitted, and a field whose text had been the fault stayed not valid. This reaches the fields that render the cross: `el-input-field`, `el-password-field` and `el-textarea-field`. ([#115](https://github.com/webtides/element-library/issues/115))
31
+ - When the browser refuses to submit a form, every field that is not valid shows its error message. Before, a field that the user had not touched showed nothing: it was `:state(invalid)` but not `touched`, so the message the page wrote for this case never appeared, and the user saw the bubble of the browser alone, for the first field only. The field is now `touched` and not `valid` after a refused submit, and its message is announced like the one that appears when it is left (`role="alert"`, named in `aria-describedby`). That holds for a click on a submit button, for Enter in a field and for `form.requestSubmit()`, in `el-input-field`, `el-password-field`, `el-textarea-field`, `el-select-field`, `el-checkbox-field`, `el-switch-field` and `el-radio-field`. The bubble of the browser stays, and with it the focus on the first field; the readme says how a page takes it away. `form.checkValidity()` and `form.reportValidity()` change nothing, and neither does a form with `novalidate`. ([#103](https://github.com/webtides/element-library/issues/103))
32
+ - `form.reset()` puts every field back to the state it was rendered with. Before, a reset changed nothing: a field writes its value to its control as the default of the control, and a reset goes back to that default, which was the value of now. An `el-input-field` that the user had emptied stayed empty, a checkbox the user had checked stayed checked, and `touched`, `valid` and the error message stayed as well. The fields now listen for the reset of their form and put back what they were connected with: the value of `el-input-field`, `el-password-field` and `el-textarea-field`, the `checked` of `el-checkbox-field` and `el-switch-field`, the option of `el-radio-field` and `el-select-field`, and `touched` and `valid` of all of them. `input-change` reports the value a field goes back to. A reset button and `el-button type="reset"` do the same; a reset that a listener cancels changes nothing. The field follows a task after the event and its control with the render after that, so read the form in the next frame. ([#102](https://github.com/webtides/element-library/issues/102))
33
+ - The `value` attribute of a field is taken as text. element-js parses every attribute, so a value that reads as a number or as JSON arrived as something else: `value="1.50"` was shown and submitted as `1.5`, `12345678901234567890` lost its last digits, `1e3` became `1000` and `[1]` became `1`, and `el-select-field` and `el-radio-field` did not find the option of such a value. That reaches `el-input-field`, `el-password-field`, `el-textarea-field`, `el-select-field`, `el-radio-field`, `el-checkbox-field` and `el-switch-field`. Their `value` property is that text now, where it was a number or a boolean before: `value="5"` gave `5` and gives `'5'`. `el-amount-field` keeps its number. Server-rendered markup still has the parsed value until the element starts in the browser: `@webtides/element-js-ssr-renderer` (0.4.0) parses the attribute itself. ([#127](https://github.com/webtides/element-library/issues/127))
34
+ - An `el-form-field` on the page no longer changes the other fields. Its stylesheet had rules for the tags of all the fields, and those rules were on a page only together with an `el-form-field`: there the labels of the text fields and of the select got a margin, the help message of every field the muted colour, and, where that stylesheet came after theirs, `el-input-field` and `el-password-field` lost their column. The stylesheet has rules for `el-form-field` alone now, and every field brings the same layout itself. ([#130](https://github.com/webtides/element-library/issues/130))
35
+ - Two fields with the same `name` on a page each keep their own label and their own messages. A field made its ids from its name, and a name is unique in a form at most: on a page with a sign-in form and a newsletter form that each had an `email`, the first input was named by both labels, the second had no accessible name, and the second was described by the help message of the first. The ids are made per field now. That reaches the label and the messages of `el-input-field`, `el-password-field`, `el-textarea-field` and `el-select-field`, and the messages of `el-checkbox-field`, `el-switch-field` and `el-radio-field`, whose controls already had an id of their own. Server-rendered markup has ids of its own as well; the element writes new ones to the same elements when it starts. ([#133](https://github.com/webtides/element-library/issues/133))
36
+ - A field without a value keeps it while its control is empty: `value` stays `null`. Before, the first key the field heard made it `''`, also a key that enters nothing (Shift, an arrow key) and the first key of a date, whose control has no value until the date is complete. `input-change` reported that `''`, and the next render wrote it to the control as its default. A control for a date or a time drops what the user has entered so far when its value is written, so the first key of a date was lost (see `input-field`). A text that was entered and deleted is still the value `''`, and is reported. That reaches the fields whose value is the text of their control: `el-input-field`, `el-password-field`, `el-textarea-field`, `el-select-field`, `el-otp-field`, `el-combobox-field` and `el-date-field`. ([#147](https://github.com/webtides/element-library/issues/147))
37
+ - A field reports a change of its control once. The handler for the `change` of the control fired `input-change` itself, and the watcher of `value` fired it again for the same value: a text was reported with every key and once more when its control was left, an option picked in `el-select-field` twice, each value of `el-input-field type="date"` twice. The watcher alone reports now, as it does for a value a script sets. The event comes with the render after the change, a frame later; the first of the two used to come at once. That reaches `el-input-field`, `el-password-field`, `el-textarea-field`, `el-select-field`, `el-otp-field` and `el-combobox-field`; for `el-checkbox-field` and `el-switch-field` see there. ([#148](https://github.com/webtides/element-library/issues/148))
38
+ - A field is as high after it was left as before, whatever the line height of the page. A field that was left shows a mark beside its control (✓ or ✗), which is a line of the text of the page. In a page with high lines that line is higher than a control with the look of the browser (24 px to 21 px for text of 16 px at a line height of 1.5), and `el-input-field`, `el-password-field` and an `el-textarea-field` of one row grew by the difference when they were left for the first time: by 3 px there, by 11 px at a line height of 2. What came after the field moved. The line of the mark no longer adds to the height of the row, and the mark stands where it stood, in the middle of the control. Nothing changes where the control is higher than a line, with `styles/native.css` for example. ([#116](https://github.com/webtides/element-library/issues/116))
39
+
15
40
  ## [0.1.0] - 2026-06-03
16
41
 
17
42
  ### Added