@aurodesignsystem/auro-formkit 2.0.0-beta.27 → 2.0.0-beta.29

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 (383) hide show
  1. package/.turbo/cache/019608f754b4fd0c-meta.json +1 -0
  2. package/.turbo/cache/019608f754b4fd0c.tar.zst +0 -0
  3. package/.turbo/cache/06322ed0d04880b4-meta.json +1 -0
  4. package/.turbo/cache/06322ed0d04880b4.tar.zst +0 -0
  5. package/.turbo/cache/0b25a5384daf4b43-meta.json +1 -0
  6. package/.turbo/cache/0b25a5384daf4b43.tar.zst +0 -0
  7. package/.turbo/cache/18ce0cc67c14e0c9-meta.json +1 -0
  8. package/.turbo/cache/18ce0cc67c14e0c9.tar.zst +0 -0
  9. package/.turbo/cache/1d4280429ff4222f-meta.json +1 -0
  10. package/.turbo/cache/1d4280429ff4222f.tar.zst +0 -0
  11. package/.turbo/cache/1e42bb6f66cd5516-meta.json +1 -0
  12. package/.turbo/cache/1e42bb6f66cd5516.tar.zst +0 -0
  13. package/.turbo/cache/202a84630d73699f-meta.json +1 -0
  14. package/.turbo/cache/202a84630d73699f.tar.zst +0 -0
  15. package/.turbo/cache/251ba344c6338ba3-meta.json +1 -0
  16. package/.turbo/cache/251ba344c6338ba3.tar.zst +0 -0
  17. package/.turbo/cache/298b6ff0272e6226-meta.json +1 -0
  18. package/.turbo/cache/298b6ff0272e6226.tar.zst +0 -0
  19. package/.turbo/cache/2abb5400a01a1694-meta.json +1 -0
  20. package/.turbo/cache/2abb5400a01a1694.tar.zst +0 -0
  21. package/.turbo/cache/30fda91ef83677e4-meta.json +1 -0
  22. package/.turbo/cache/3221d91a94756c26-meta.json +1 -0
  23. package/.turbo/cache/3221d91a94756c26.tar.zst +0 -0
  24. package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -0
  25. package/.turbo/cache/3ab09fe7cf32b3bf.tar.zst +0 -0
  26. package/.turbo/cache/3b758f5ca6cedcac-meta.json +1 -0
  27. package/.turbo/cache/3b758f5ca6cedcac.tar.zst +0 -0
  28. package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -0
  29. package/.turbo/cache/{67c3255b202e500b.tar.zst → 3f1b3db13386acdc.tar.zst} +0 -0
  30. package/.turbo/cache/430c124614841675-meta.json +1 -0
  31. package/.turbo/cache/430c124614841675.tar.zst +0 -0
  32. package/.turbo/cache/4472ff3b156042a3-meta.json +1 -0
  33. package/.turbo/cache/4472ff3b156042a3.tar.zst +0 -0
  34. package/.turbo/cache/448b2ae2221bf660-meta.json +1 -0
  35. package/.turbo/cache/448b2ae2221bf660.tar.zst +0 -0
  36. package/.turbo/cache/45bdeb0396723b25-meta.json +1 -0
  37. package/.turbo/cache/45bdeb0396723b25.tar.zst +0 -0
  38. package/.turbo/cache/4655a084a08732a7-meta.json +1 -0
  39. package/.turbo/cache/4655a084a08732a7.tar.zst +0 -0
  40. package/.turbo/cache/46f08b3f239b6b3c-meta.json +1 -0
  41. package/.turbo/cache/46f08b3f239b6b3c.tar.zst +0 -0
  42. package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -0
  43. package/.turbo/cache/4f06a06e4f458e75-meta.json +1 -0
  44. package/.turbo/cache/4f06a06e4f458e75.tar.zst +0 -0
  45. package/.turbo/cache/4f0d7e7df611108b-meta.json +1 -0
  46. package/.turbo/cache/4f0d7e7df611108b.tar.zst +0 -0
  47. package/.turbo/cache/533b2c6c9fb1166a-meta.json +1 -0
  48. package/.turbo/cache/533b2c6c9fb1166a.tar.zst +0 -0
  49. package/.turbo/cache/560d172ca96e1544-meta.json +1 -0
  50. package/.turbo/cache/560d172ca96e1544.tar.zst +0 -0
  51. package/.turbo/cache/59481fd7f6f355ed-meta.json +1 -0
  52. package/.turbo/cache/59481fd7f6f355ed.tar.zst +0 -0
  53. package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -0
  54. package/.turbo/cache/5fc9a7a072827b7b.tar.zst +0 -0
  55. package/.turbo/cache/753b119a389426be-meta.json +1 -0
  56. package/.turbo/cache/753b119a389426be.tar.zst +0 -0
  57. package/.turbo/cache/8ac38d70a60381cb-meta.json +1 -0
  58. package/.turbo/cache/8ac38d70a60381cb.tar.zst +0 -0
  59. package/.turbo/cache/8c637a8d4c2166c5-meta.json +1 -0
  60. package/.turbo/cache/8c637a8d4c2166c5.tar.zst +0 -0
  61. package/.turbo/cache/9dc293081f28a24d-meta.json +1 -0
  62. package/.turbo/cache/{a78d125599f040ae.tar.zst → 9dc293081f28a24d.tar.zst} +0 -0
  63. package/.turbo/cache/a7dea1f1ae1fdc27-meta.json +1 -0
  64. package/.turbo/cache/a7dea1f1ae1fdc27.tar.zst +0 -0
  65. package/.turbo/cache/a9db8818bc92a60e-meta.json +1 -0
  66. package/.turbo/cache/{b49dd5629527427d.tar.zst → a9db8818bc92a60e.tar.zst} +0 -0
  67. package/.turbo/cache/bae62d7b71b88997-meta.json +1 -0
  68. package/.turbo/cache/bb3131b31c8adc36-meta.json +1 -0
  69. package/.turbo/cache/bb3131b31c8adc36.tar.zst +0 -0
  70. package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -0
  71. package/.turbo/cache/bf3d1eace5e676f9.tar.zst +0 -0
  72. package/.turbo/cache/c45962e00a15f78b-meta.json +1 -0
  73. package/.turbo/cache/c49eaa579b60f045-meta.json +1 -0
  74. package/.turbo/cache/cbc12d12ec0e13ca-meta.json +1 -0
  75. package/.turbo/cache/{8e3c73cbb92b3ac8.tar.zst → cbc12d12ec0e13ca.tar.zst} +0 -0
  76. package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -0
  77. package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -0
  78. package/.turbo/cache/d3afdb9a7db9eacc.tar.zst +0 -0
  79. package/.turbo/cache/d7d47541c105641f-meta.json +1 -0
  80. package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -0
  81. package/.turbo/cache/de494df6a3006101-meta.json +1 -0
  82. package/.turbo/cache/de494df6a3006101.tar.zst +0 -0
  83. package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -0
  84. package/.turbo/cache/e56a9865641ec3e8.tar.zst +0 -0
  85. package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -0
  86. package/.turbo/cache/e837827cd24834c4-meta.json +1 -0
  87. package/.turbo/cache/e837827cd24834c4.tar.zst +0 -0
  88. package/.turbo/cache/e95a7d076e700003-meta.json +1 -0
  89. package/.turbo/cache/{abfe0e87025ae648.tar.zst → e95a7d076e700003.tar.zst} +0 -0
  90. package/.turbo/cache/e9ff93179777aa26-meta.json +1 -0
  91. package/.turbo/cache/{2e1456ec1a7873f7.tar.zst → e9ff93179777aa26.tar.zst} +0 -0
  92. package/.turbo/cache/f571abacf9ec4e84-meta.json +1 -0
  93. package/.turbo/cache/f571abacf9ec4e84.tar.zst +0 -0
  94. package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -0
  95. package/.turbo/cache/f7ab9a13f9acc0ab.tar.zst +0 -0
  96. package/.turbo/cache/fa0bc0a1d41397e8-meta.json +1 -0
  97. package/.turbo/cache/fa0bc0a1d41397e8.tar.zst +0 -0
  98. package/.turbo/cache/fce6b6ea288791bf-meta.json +1 -0
  99. package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -0
  100. package/.turbo/cache/ff3c8a3042cab66e.tar.zst +0 -0
  101. package/CHANGELOG.md +31 -0
  102. package/components/checkbox/.turbo/turbo-build.log +3 -3
  103. package/components/checkbox/README.md +1 -1
  104. package/components/checkbox/demo/api.md +0 -1
  105. package/components/checkbox/demo/api.min.js +252 -41
  106. package/components/checkbox/demo/index.min.js +252 -41
  107. package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
  108. package/components/checkbox/dist/index.js +252 -41
  109. package/components/checkbox/package.json +1 -0
  110. package/components/checkbox/src/auro-checkbox-group.js +6 -4
  111. package/components/checkbox/src/styles/colorGroup-css.js +1 -1
  112. package/components/checkbox/src/styles/colorGroup.css +0 -8
  113. package/components/checkbox/src/styles/colorGroup.scss +0 -8
  114. package/components/checkbox/src/styles/tokens-css.js +1 -1
  115. package/components/checkbox/src/styles/tokens.css +0 -1
  116. package/components/checkbox/src/styles/tokens.scss +0 -1
  117. package/components/combobox/.turbo/turbo-build.log +2 -2
  118. package/components/combobox/README.md +4 -4
  119. package/components/combobox/demo/api.min.js +611 -185
  120. package/components/combobox/demo/index.min.js +611 -185
  121. package/components/combobox/dist/index.js +582 -156
  122. package/components/combobox/src/auro-combobox.js +4 -4
  123. package/components/counter/.turbo/turbo-build.log +12 -3
  124. package/components/counter/.turbo/turbo-bundler.log +9 -3
  125. package/components/counter/README.md +1 -1
  126. package/components/counter/demo/api.min.js +163 -3126
  127. package/components/counter/demo/index.min.js +163 -3126
  128. package/components/counter/dist/index.js +163 -3126
  129. package/components/counter/src/styles/counter-button.css +1 -1
  130. package/components/datepicker/.turbo/turbo-build.log +2 -2
  131. package/components/datepicker/README.md +4 -4
  132. package/components/datepicker/demo/api.min.js +712 -286
  133. package/components/datepicker/demo/index.min.js +712 -286
  134. package/components/datepicker/dist/index.js +712 -286
  135. package/components/datepicker/src/auro-datepicker.js +4 -4
  136. package/components/datepicker/src/styles/style-css.js +1 -1
  137. package/components/datepicker/src/styles/style.css +0 -6
  138. package/components/datepicker/src/styles/style.scss +0 -6
  139. package/components/dropdown/.turbo/turbo-build.log +3 -3
  140. package/components/dropdown/README.md +1 -1
  141. package/components/dropdown/demo/api.md +0 -1
  142. package/components/dropdown/demo/api.min.js +259 -50
  143. package/components/dropdown/demo/index.min.js +259 -50
  144. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  145. package/components/dropdown/dist/index.js +259 -50
  146. package/components/dropdown/package.json +1 -0
  147. package/components/dropdown/src/auro-dropdown.js +4 -5
  148. package/components/dropdown/src/styles/color-css.js +1 -1
  149. package/components/dropdown/src/styles/color.css +0 -5
  150. package/components/dropdown/src/styles/color.scss +0 -5
  151. package/components/dropdown/src/styles/style-css.js +1 -1
  152. package/components/dropdown/src/styles/style.css +0 -6
  153. package/components/dropdown/src/styles/style.scss +0 -6
  154. package/components/dropdown/src/styles/tokens-css.js +1 -1
  155. package/components/dropdown/src/styles/tokens.css +0 -1
  156. package/components/dropdown/src/styles/tokens.scss +0 -1
  157. package/components/form/.turbo/turbo-build.log +3 -3
  158. package/components/form/.turbo/turbo-bundler.log +3 -3
  159. package/components/form/README.md +1 -1
  160. package/components/form/demo/api.min.js +62 -14
  161. package/components/form/demo/index.min.js +62 -14
  162. package/components/form/dist/auro-form.d.ts +19 -4
  163. package/components/form/dist/auro-form.d.ts.map +1 -1
  164. package/components/form/dist/index.js +62 -14
  165. package/components/form/src/auro-form.js +62 -14
  166. package/components/form/src/styles/style.css +1 -1
  167. package/components/helptext/.stylelintrc.json +3 -0
  168. package/components/helptext/.turbo/turbo-build$colon$sass.log +34 -0
  169. package/components/helptext/.turbo/turbo-build.log +49 -0
  170. package/components/helptext/.turbo/turbo-bundler.log +7 -0
  171. package/components/helptext/.turbo/turbo-postCss$colon$component.log +4 -0
  172. package/components/helptext/.turbo/turbo-sass$colon$render.log +22 -0
  173. package/components/helptext/.turbo/turbo-types.log +4 -0
  174. package/components/helptext/dist/auro-helptext.d.ts +46 -0
  175. package/components/helptext/dist/auro-helptext.d.ts.map +1 -0
  176. package/components/helptext/dist/index.d.ts +3 -0
  177. package/components/helptext/dist/index.d.ts.map +1 -0
  178. package/components/helptext/dist/index.js +212 -0
  179. package/components/{input/dist/styles/helpText-css.d.ts → helptext/dist/styles/color-css.d.ts} +1 -1
  180. package/components/helptext/dist/styles/color-css.d.ts.map +1 -0
  181. package/components/helptext/dist/styles/style-css.d.ts +3 -0
  182. package/components/helptext/dist/styles/style-css.d.ts.map +1 -0
  183. package/components/helptext/dist/styles/tokens-css.d.ts +3 -0
  184. package/components/helptext/dist/styles/tokens-css.d.ts.map +1 -0
  185. package/components/helptext/node_modules/chalk/package.json +83 -0
  186. package/components/helptext/node_modules/chalk/readme.md +297 -0
  187. package/components/helptext/node_modules/chalk/source/index.d.ts +325 -0
  188. package/components/helptext/node_modules/chalk/source/index.js +225 -0
  189. package/components/helptext/node_modules/chalk/source/utilities.js +33 -0
  190. package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  191. package/components/helptext/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  192. package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  193. package/components/helptext/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  194. package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  195. package/components/helptext/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
  196. package/components/helptext/package.json +57 -0
  197. package/components/helptext/src/auro-helptext.js +115 -0
  198. package/components/helptext/src/index.js +6 -0
  199. package/components/helptext/src/styles/color-css.js +2 -0
  200. package/components/helptext/src/styles/color.css +8 -0
  201. package/components/helptext/src/styles/color.scss +11 -0
  202. package/components/helptext/src/styles/style-css.js +2 -0
  203. package/components/helptext/src/styles/style.css +20 -0
  204. package/components/helptext/src/styles/style.scss +30 -0
  205. package/components/helptext/src/styles/tokens-css.js +2 -0
  206. package/components/helptext/src/styles/tokens.css +3 -0
  207. package/components/helptext/src/styles/tokens.scss +5 -0
  208. package/components/input/.turbo/turbo-build$colon$sass.log +3 -13
  209. package/components/input/.turbo/turbo-build.log +6 -16
  210. package/components/input/.turbo/turbo-sass$colon$render.log +0 -6
  211. package/components/input/README.md +1 -1
  212. package/components/input/demo/api.md +0 -1
  213. package/components/input/demo/api.min.js +317 -100
  214. package/components/input/demo/index.min.js +317 -100
  215. package/components/input/dist/auro-input.d.ts.map +1 -1
  216. package/components/input/dist/index.js +317 -100
  217. package/components/input/package.json +1 -0
  218. package/components/input/src/auro-input.js +18 -10
  219. package/components/input/src/styles/color-css.js +1 -1
  220. package/components/input/src/styles/color.css +0 -5
  221. package/components/input/src/styles/color.scss +0 -5
  222. package/components/input/src/styles/style-css.js +1 -1
  223. package/components/input/src/styles/style.css +0 -7
  224. package/components/input/src/styles/style.scss +0 -1
  225. package/components/input/src/styles/tokens-css.js +1 -1
  226. package/components/input/src/styles/tokens.css +0 -1
  227. package/components/input/src/styles/tokens.scss +0 -1
  228. package/components/menu/.turbo/turbo-build.log +3 -3
  229. package/components/menu/.turbo/turbo-bundler.log +3 -3
  230. package/components/menu/README.md +1 -1
  231. package/components/menu/src/styles/style-menu.css +1 -1
  232. package/components/radio/.turbo/turbo-build.log +3 -3
  233. package/components/radio/README.md +1 -1
  234. package/components/radio/demo/api.md +0 -1
  235. package/components/radio/demo/api.min.js +249 -39
  236. package/components/radio/demo/index.min.js +249 -39
  237. package/components/radio/dist/auro-radio-group.d.ts.map +1 -1
  238. package/components/radio/dist/index.js +249 -39
  239. package/components/radio/package.json +1 -0
  240. package/components/radio/src/auro-radio-group.js +5 -4
  241. package/components/radio/src/styles/groupColor-css.js +1 -1
  242. package/components/radio/src/styles/groupColor.css +0 -8
  243. package/components/radio/src/styles/groupColor.scss +0 -8
  244. package/components/radio/src/styles/tokens-css.js +1 -1
  245. package/components/radio/src/styles/tokens.css +0 -1
  246. package/components/radio/src/styles/tokens.scss +0 -1
  247. package/components/select/.turbo/turbo-build.log +3 -3
  248. package/components/select/README.md +3 -3
  249. package/components/select/demo/api.min.js +306 -97
  250. package/components/select/demo/index.min.js +306 -97
  251. package/components/select/dist/index.js +275 -66
  252. package/components/select/src/auro-select.js +6 -6
  253. package/components/select/src/styles/style-css.js +1 -1
  254. package/components/select/src/styles/style.css +0 -6
  255. package/components/select/src/styles/style.scss +0 -6
  256. package/package.json +4 -1
  257. package/turbo.json +29 -1
  258. package/.turbo/cache/0c0a0bc31b8aab59-meta.json +0 -1
  259. package/.turbo/cache/0c0a0bc31b8aab59.tar.zst +0 -0
  260. package/.turbo/cache/0cbb56c99e650fa0-meta.json +0 -1
  261. package/.turbo/cache/0cbb56c99e650fa0.tar.zst +0 -0
  262. package/.turbo/cache/0fba2ec59e2dfd8b-meta.json +0 -1
  263. package/.turbo/cache/0fba2ec59e2dfd8b.tar.zst +0 -0
  264. package/.turbo/cache/163b3258a0fedac8-meta.json +0 -1
  265. package/.turbo/cache/163b3258a0fedac8.tar.zst +0 -0
  266. package/.turbo/cache/17d8b8bd7a2d45c8-meta.json +0 -1
  267. package/.turbo/cache/17d8b8bd7a2d45c8.tar.zst +0 -0
  268. package/.turbo/cache/23e204ed502c21fe-meta.json +0 -1
  269. package/.turbo/cache/24d7d9090145a626-meta.json +0 -1
  270. package/.turbo/cache/24d7d9090145a626.tar.zst +0 -0
  271. package/.turbo/cache/267a4d6654311f2b-meta.json +0 -1
  272. package/.turbo/cache/285fe2c074654eb2-meta.json +0 -1
  273. package/.turbo/cache/2e1456ec1a7873f7-meta.json +0 -1
  274. package/.turbo/cache/2e4e2a1831bef749-meta.json +0 -1
  275. package/.turbo/cache/2e4e2a1831bef749.tar.zst +0 -0
  276. package/.turbo/cache/351f58d5c3cae34e-meta.json +0 -1
  277. package/.turbo/cache/39dc2793eb573623-meta.json +0 -1
  278. package/.turbo/cache/39dc2793eb573623.tar.zst +0 -0
  279. package/.turbo/cache/3b1f37014160e895-meta.json +0 -1
  280. package/.turbo/cache/3b1f37014160e895.tar.zst +0 -0
  281. package/.turbo/cache/3c1cb8d2e8bec5d5-meta.json +0 -1
  282. package/.turbo/cache/3c1cb8d2e8bec5d5.tar.zst +0 -0
  283. package/.turbo/cache/411cfda2c367c29c-meta.json +0 -1
  284. package/.turbo/cache/411cfda2c367c29c.tar.zst +0 -0
  285. package/.turbo/cache/4225d94a40fc6659-meta.json +0 -1
  286. package/.turbo/cache/4225d94a40fc6659.tar.zst +0 -0
  287. package/.turbo/cache/4359c29d1655eec0-meta.json +0 -1
  288. package/.turbo/cache/4359c29d1655eec0.tar.zst +0 -0
  289. package/.turbo/cache/4e34f0f0a9d02732-meta.json +0 -1
  290. package/.turbo/cache/4e34f0f0a9d02732.tar.zst +0 -0
  291. package/.turbo/cache/4e4992ed3be45c2f-meta.json +0 -1
  292. package/.turbo/cache/4e4992ed3be45c2f.tar.zst +0 -0
  293. package/.turbo/cache/4fb77e22ffd90112-meta.json +0 -1
  294. package/.turbo/cache/4fb77e22ffd90112.tar.zst +0 -0
  295. package/.turbo/cache/52dce5349ebee512-meta.json +0 -1
  296. package/.turbo/cache/52dce5349ebee512.tar.zst +0 -0
  297. package/.turbo/cache/558b31cc05ccc960-meta.json +0 -1
  298. package/.turbo/cache/64424afa661a9d52-meta.json +0 -1
  299. package/.turbo/cache/64424afa661a9d52.tar.zst +0 -0
  300. package/.turbo/cache/67c3255b202e500b-meta.json +0 -1
  301. package/.turbo/cache/6c9f48c7e69a2ec0-meta.json +0 -1
  302. package/.turbo/cache/6c9f48c7e69a2ec0.tar.zst +0 -0
  303. package/.turbo/cache/6f7bdd4097644495-meta.json +0 -1
  304. package/.turbo/cache/6f7bdd4097644495.tar.zst +0 -0
  305. package/.turbo/cache/704a22f3a6a32426-meta.json +0 -1
  306. package/.turbo/cache/704a22f3a6a32426.tar.zst +0 -0
  307. package/.turbo/cache/766995ed5805f011-meta.json +0 -1
  308. package/.turbo/cache/766995ed5805f011.tar.zst +0 -0
  309. package/.turbo/cache/782ea8bf6bfd8203-meta.json +0 -1
  310. package/.turbo/cache/782ea8bf6bfd8203.tar.zst +0 -0
  311. package/.turbo/cache/78968f685c031ba1-meta.json +0 -1
  312. package/.turbo/cache/78968f685c031ba1.tar.zst +0 -0
  313. package/.turbo/cache/78e014dddc2d6125-meta.json +0 -1
  314. package/.turbo/cache/78e014dddc2d6125.tar.zst +0 -0
  315. package/.turbo/cache/7a92232f5b7d1032-meta.json +0 -1
  316. package/.turbo/cache/7a92232f5b7d1032.tar.zst +0 -0
  317. package/.turbo/cache/87987f08153b356f-meta.json +0 -1
  318. package/.turbo/cache/87987f08153b356f.tar.zst +0 -0
  319. package/.turbo/cache/8c6d632132b58f2a-meta.json +0 -1
  320. package/.turbo/cache/8c6d632132b58f2a.tar.zst +0 -0
  321. package/.turbo/cache/8e3c73cbb92b3ac8-meta.json +0 -1
  322. package/.turbo/cache/939b09d0d5a44a8e-meta.json +0 -1
  323. package/.turbo/cache/939b09d0d5a44a8e.tar.zst +0 -0
  324. package/.turbo/cache/951037a4bb464cc3-meta.json +0 -1
  325. package/.turbo/cache/951037a4bb464cc3.tar.zst +0 -0
  326. package/.turbo/cache/9584055bc0f88083-meta.json +0 -1
  327. package/.turbo/cache/9584055bc0f88083.tar.zst +0 -0
  328. package/.turbo/cache/972125b3b011cd6f-meta.json +0 -1
  329. package/.turbo/cache/a07fca2bec5e088a-meta.json +0 -1
  330. package/.turbo/cache/a07fca2bec5e088a.tar.zst +0 -0
  331. package/.turbo/cache/a1f17a427205f758-meta.json +0 -1
  332. package/.turbo/cache/a78d125599f040ae-meta.json +0 -1
  333. package/.turbo/cache/abfe0e87025ae648-meta.json +0 -1
  334. package/.turbo/cache/ad140cc079669a3d-meta.json +0 -1
  335. package/.turbo/cache/ad140cc079669a3d.tar.zst +0 -0
  336. package/.turbo/cache/af78f67fd46864cf-meta.json +0 -1
  337. package/.turbo/cache/af78f67fd46864cf.tar.zst +0 -0
  338. package/.turbo/cache/b49dd5629527427d-meta.json +0 -1
  339. package/.turbo/cache/b6d9b63450b2be32-meta.json +0 -1
  340. package/.turbo/cache/b6d9b63450b2be32.tar.zst +0 -0
  341. package/.turbo/cache/b9b3700e26eea28f-meta.json +0 -1
  342. package/.turbo/cache/b9b3700e26eea28f.tar.zst +0 -0
  343. package/.turbo/cache/be2163f79158c78f-meta.json +0 -1
  344. package/.turbo/cache/be2163f79158c78f.tar.zst +0 -0
  345. package/.turbo/cache/c3d8dc6e45d0331b-meta.json +0 -1
  346. package/.turbo/cache/c3d8dc6e45d0331b.tar.zst +0 -0
  347. package/.turbo/cache/c688990b9f5a9adc-meta.json +0 -1
  348. package/.turbo/cache/c688990b9f5a9adc.tar.zst +0 -0
  349. package/.turbo/cache/c77c96d6a2d1be7d-meta.json +0 -1
  350. package/.turbo/cache/c77c96d6a2d1be7d.tar.zst +0 -0
  351. package/.turbo/cache/ccaf1a2accea911b-meta.json +0 -1
  352. package/.turbo/cache/d40c3723f98d81cd-meta.json +0 -1
  353. package/.turbo/cache/d40c3723f98d81cd.tar.zst +0 -0
  354. package/.turbo/cache/e118c1013f86c6e8-meta.json +0 -1
  355. package/.turbo/cache/e16b24ee6e7c1e50-meta.json +0 -1
  356. package/.turbo/cache/e16b24ee6e7c1e50.tar.zst +0 -0
  357. package/.turbo/cache/f77e5f0c843f7f08-meta.json +0 -1
  358. package/.turbo/cache/f77e5f0c843f7f08.tar.zst +0 -0
  359. package/.turbo/cache/f90d7f40233634c8-meta.json +0 -1
  360. package/components/checkbox/.turbo/turbo-bundler.log +0 -13
  361. package/components/checkbox/.turbo/turbo-types.log +0 -4
  362. package/components/dropdown/.turbo/turbo-build$colon$version.log +0 -7
  363. package/components/dropdown/.turbo/turbo-bundler.log +0 -13
  364. package/components/dropdown/.turbo/turbo-types.log +0 -4
  365. package/components/input/.turbo/turbo-build$colon$version.log +0 -10
  366. package/components/input/.turbo/turbo-bundler.log +0 -13
  367. package/components/input/.turbo/turbo-types.log +0 -4
  368. package/components/input/dist/styles/helpText-css.d.ts.map +0 -1
  369. package/components/input/src/styles/helpText-css.js +0 -2
  370. package/components/input/src/styles/helpText.css +0 -6
  371. package/components/input/src/styles/helpText.scss +0 -9
  372. package/components/radio/.turbo/turbo-bundler.log +0 -13
  373. package/components/radio/.turbo/turbo-types.log +0 -4
  374. /package/.turbo/cache/{351f58d5c3cae34e.tar.zst → 30fda91ef83677e4.tar.zst} +0 -0
  375. /package/.turbo/cache/{ccaf1a2accea911b.tar.zst → 4e9c9a5dd62c50a4.tar.zst} +0 -0
  376. /package/.turbo/cache/{23e204ed502c21fe.tar.zst → bae62d7b71b88997.tar.zst} +0 -0
  377. /package/.turbo/cache/{e118c1013f86c6e8.tar.zst → c45962e00a15f78b.tar.zst} +0 -0
  378. /package/.turbo/cache/{267a4d6654311f2b.tar.zst → c49eaa579b60f045.tar.zst} +0 -0
  379. /package/.turbo/cache/{f90d7f40233634c8.tar.zst → cbcd9db8ac9a2d52.tar.zst} +0 -0
  380. /package/.turbo/cache/{285fe2c074654eb2.tar.zst → d7d47541c105641f.tar.zst} +0 -0
  381. /package/.turbo/cache/{972125b3b011cd6f.tar.zst → d8ecdff9c663c38e.tar.zst} +0 -0
  382. /package/.turbo/cache/{558b31cc05ccc960.tar.zst → e7ed9e7056d80938.tar.zst} +0 -0
  383. /package/.turbo/cache/{a1f17a427205f758.tar.zst → fce6b6ea288791bf.tar.zst} +0 -0
@@ -12,6 +12,7 @@
12
12
  "types": "dist/index.d.ts",
13
13
  "license": "Apache-2.0",
14
14
  "dependencies": {
15
+ "@aurodesignsystem/auro-helptext": "*",
15
16
  "@aurodesignsystem/auro-icon": "^6.1.2",
16
17
  "@floating-ui/dom": "^1.6.11",
17
18
  "@popperjs/core": "^2.11.8",
@@ -21,6 +21,7 @@ import styleCss from "./styles/style-css.js";
21
21
  import colorCss from "./styles/color-css.js";
22
22
  import tokensCss from "./styles/tokens-css.js";
23
23
 
24
+ import '@aurodesignsystem/auro-helptext';
24
25
  import './auro-dropdownBib.js';
25
26
 
26
27
  /**
@@ -435,7 +436,7 @@ export class AuroDropdown extends LitElement {
435
436
  <div class="triggerContent">
436
437
  <slot
437
438
  name="trigger"
438
- @slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
439
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
439
440
  </div>
440
441
  </div>
441
442
  ${this.chevron || this.common ? html`
@@ -452,11 +453,9 @@ export class AuroDropdown extends LitElement {
452
453
  </div>
453
454
  ` : undefined }
454
455
  </div>
455
- <div
456
- class="helpText"
457
- part="helpText">
456
+ <auro-helptext part="helpText" ?error="${this.error}">
458
457
  <slot name="helpText"></slot>
459
- </div>
458
+ </auro-helptext>
460
459
  <div class="slotContent">
461
460
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
462
461
  </div>
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export default css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
2
+ export default css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
@@ -19,10 +19,6 @@
19
19
  --ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));
20
20
  }
21
21
 
22
- .helpText {
23
- color: var(--ds-auro-dropdown-help-text-color);
24
- }
25
-
26
22
  :host([disabled]) {
27
23
  --ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);
28
24
  --ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad);
@@ -39,7 +35,6 @@
39
35
  }
40
36
 
41
37
  :host([error]) {
42
- --ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);
43
38
  --ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816);
44
39
  }
45
40
  :host([error]) .trigger {
@@ -33,10 +33,6 @@
33
33
  }
34
34
  }
35
35
 
36
- .helpText {
37
- color: var(--ds-auro-dropdown-help-text-color);
38
- }
39
-
40
36
  :host([disabled]) {
41
37
  --ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #{$ds-color-text-ui-disabled-default});
42
38
  --ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #{$ds-color-text-ui-disabled-default});
@@ -55,7 +51,6 @@
55
51
  }
56
52
 
57
53
  :host([error]) {
58
- --ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #{$ds-color-text-error-default});
59
54
  --ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #{$ds-color-border-error-default});
60
55
 
61
56
  .trigger {
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export default css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
2
+ export default css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
@@ -63,12 +63,6 @@
63
63
  }
64
64
 
65
65
  /* stylelint-enable selector-id-pattern */
66
- .helpText {
67
- margin-top: var(--ds-size-50, 0.25rem);
68
- font-size: var(--ds-text-body-size-xs, 0.75rem);
69
- line-height: var(--ds-text-body-size-default, 1rem);
70
- }
71
-
72
66
  :host([matchwidth]) #bibSizer {
73
67
  width: 100%;
74
68
  }
@@ -85,12 +85,6 @@
85
85
  }
86
86
  /* stylelint-enable selector-id-pattern */
87
87
 
88
- .helpText {
89
- margin-top: var(--ds-size-50, $ds-size-50);
90
- font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
91
- line-height: var(--ds-text-body-size-default, $ds-text-body-size-default);
92
- }
93
-
94
88
  :host([matchwidth]) {
95
89
  #bibSizer {
96
90
  width: 100%;
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export default css`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
2
+ export default css`:host{--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
@@ -1,5 +1,4 @@
1
1
  :host {
2
- --ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);
3
2
  --ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);
4
3
  --ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);
5
4
  --ds-auro-dropdown-popover-border-color: transparent;
@@ -1,7 +1,6 @@
1
1
  @import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
2
2
 
3
3
  :host {
4
- --ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
5
4
  --ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
6
5
  --ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
7
6
  --ds-auro-dropdown-popover-border-color: transparent;
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
69
69
 
70
70
  
71
71
  ./src/index.js → dist...
72
- created dist in 156ms
72
+ created dist in 146ms
73
73
  
74
74
  ./demo/index.js → ./demo/...
75
- created ./demo/ in 78ms
75
+ created ./demo/ in 76ms
76
76
  
77
77
  ./demo/api.js → ./demo/...
78
- created ./demo/ in 71ms
78
+ created ./demo/ in 66ms
79
79
 
80
80
  > @aurodesignsystem/auro-form@1.0.0 build:docs
81
81
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 363ms
7
+ created dist in 304ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 376ms
10
+ created ./demo/ in 175ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 281ms
13
+ created ./demo/ in 202ms
@@ -98,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
98
98
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
100
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
101
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.26/dist/auro-form__bundled.js" type="module"></script>
101
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.28/dist/auro-form__bundled.js" type="module"></script>
102
102
  <!-- AURO-GENERATED-CONTENT:END -->
103
103
 
104
104
  ## auro-form use cases
@@ -235,6 +235,22 @@ class AuroForm extends r {
235
235
  }, {});
236
236
  }
237
237
 
238
+ /**
239
+ * Getter for internal _submitElements.
240
+ * @returns {HTMLButtonElement[]}
241
+ */
242
+ get submitElements() {
243
+ return this._submitelements;
244
+ }
245
+
246
+ /**
247
+ * Getter for internal _resetElements.
248
+ * @returns {HTMLButtonElement[]}
249
+ */
250
+ get resetElements() {
251
+ return this._resetElements;
252
+ }
253
+
238
254
  /**
239
255
  * Infer validity status based on current formState.
240
256
  * @private
@@ -260,6 +276,9 @@ class AuroForm extends r {
260
276
  * @returns {"valid" | "invalid"}
261
277
  */
262
278
  get validity() {
279
+ // Force calculate, as sometimes validity won't reflect
280
+ // the latest value while in-between renders.
281
+ this._calculateValidity();
263
282
  return this._validity;
264
283
  }
265
284
 
@@ -327,6 +346,27 @@ class AuroForm extends r {
327
346
  ]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
328
347
  }
329
348
 
349
+ /**
350
+ * Store an element in state and on the _elements array.
351
+ * @param {HTMLElement} element - The element to add to our state.
352
+ * @private
353
+ */
354
+ _addElementToState(element) {
355
+ const targetName = element.getAttribute('name');
356
+ if (this.formState[targetName]) {
357
+ return;
358
+ }
359
+
360
+ this.formState[targetName] = {
361
+ value: element.getAttribute('value'),
362
+ validity: element.validity || null,
363
+ required: element.hasAttribute('required'),
364
+ // element
365
+ };
366
+
367
+ this._elements.push(element);
368
+ }
369
+
330
370
  /**
331
371
  * Initialize (or reinitialize) the form state.
332
372
  */
@@ -338,14 +378,7 @@ class AuroForm extends r {
338
378
 
339
379
  this.queryAuroElements().forEach((element) => {
340
380
  if (this.isFormElement(element)) {
341
- this.formState[element.getAttribute('name')] = {
342
- value: element.getAttribute('value'),
343
- validity: element.getAttribute('validity'),
344
- required: element.hasAttribute('required'),
345
- // element
346
- };
347
-
348
- this._elements.push(element);
381
+ this._addElementToState(element);
349
382
  }
350
383
 
351
384
  if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
@@ -369,7 +402,11 @@ class AuroForm extends r {
369
402
  this.setDisabledStateOnButtons();
370
403
  }
371
404
 
405
+ /**
406
+ * Reset fires an event called `reset` - just as you would expect from a normal form.
407
+ */
372
408
  reset() {
409
+ const previousValue = this.value;
373
410
  this._elements.forEach((element) => element.reset());
374
411
 
375
412
  this.updateComplete.then(() => {
@@ -381,16 +418,20 @@ class AuroForm extends r {
381
418
  // Wait for the above changes to run through, then disable submit/reset
382
419
  this.updateComplete.then(() => {
383
420
  this.setDisabledStateOnButtons();
421
+
422
+ this.dispatchEvent(new CustomEvent('reset', {
423
+ bubbles: true,
424
+ composed: true,
425
+ detail: {
426
+ previousValue
427
+ }
428
+ }));
384
429
  });
385
430
  });
386
431
  }
387
432
 
388
433
  /**
389
434
  * Submit fires an event called `submit` - just as you would expect from a normal form.
390
- *
391
- * @example ```
392
- * const form = document.querySelector('auro-
393
- * ```
394
435
  */
395
436
  submit() {
396
437
  // Steps required to get out of beta:
@@ -437,13 +478,16 @@ class AuroForm extends r {
437
478
  return;
438
479
  }
439
480
 
481
+ // Occasionally, a form element will emit their event before the form can read data about the form element.
482
+ if (!this.formState[targetName] && this.isFormElement(event.target)) {
483
+ this._addElementToState(event.target);
484
+ }
485
+
440
486
  // Check special input types and handle their edge cases
441
487
  if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
442
488
  this.formState[targetName].value = event.target.values;
443
-
444
489
  this.requestUpdate('formState');
445
490
  } else {
446
- // "Normal" input value handling, just assign the value
447
491
  this.formState[targetName].value = event.target.value;
448
492
  this.requestUpdate('formState');
449
493
  }
@@ -455,6 +499,10 @@ class AuroForm extends r {
455
499
  return;
456
500
  }
457
501
 
502
+ if (!this.formState[targetName]) {
503
+ this._addElementToState(event.target);
504
+ }
505
+
458
506
  this.formState[targetName].validity = event.detail.validity;
459
507
  this._calculateValidity();
460
508
  });
@@ -235,6 +235,22 @@ class AuroForm extends r {
235
235
  }, {});
236
236
  }
237
237
 
238
+ /**
239
+ * Getter for internal _submitElements.
240
+ * @returns {HTMLButtonElement[]}
241
+ */
242
+ get submitElements() {
243
+ return this._submitelements;
244
+ }
245
+
246
+ /**
247
+ * Getter for internal _resetElements.
248
+ * @returns {HTMLButtonElement[]}
249
+ */
250
+ get resetElements() {
251
+ return this._resetElements;
252
+ }
253
+
238
254
  /**
239
255
  * Infer validity status based on current formState.
240
256
  * @private
@@ -260,6 +276,9 @@ class AuroForm extends r {
260
276
  * @returns {"valid" | "invalid"}
261
277
  */
262
278
  get validity() {
279
+ // Force calculate, as sometimes validity won't reflect
280
+ // the latest value while in-between renders.
281
+ this._calculateValidity();
263
282
  return this._validity;
264
283
  }
265
284
 
@@ -327,6 +346,27 @@ class AuroForm extends r {
327
346
  ]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
328
347
  }
329
348
 
349
+ /**
350
+ * Store an element in state and on the _elements array.
351
+ * @param {HTMLElement} element - The element to add to our state.
352
+ * @private
353
+ */
354
+ _addElementToState(element) {
355
+ const targetName = element.getAttribute('name');
356
+ if (this.formState[targetName]) {
357
+ return;
358
+ }
359
+
360
+ this.formState[targetName] = {
361
+ value: element.getAttribute('value'),
362
+ validity: element.validity || null,
363
+ required: element.hasAttribute('required'),
364
+ // element
365
+ };
366
+
367
+ this._elements.push(element);
368
+ }
369
+
330
370
  /**
331
371
  * Initialize (or reinitialize) the form state.
332
372
  */
@@ -338,14 +378,7 @@ class AuroForm extends r {
338
378
 
339
379
  this.queryAuroElements().forEach((element) => {
340
380
  if (this.isFormElement(element)) {
341
- this.formState[element.getAttribute('name')] = {
342
- value: element.getAttribute('value'),
343
- validity: element.getAttribute('validity'),
344
- required: element.hasAttribute('required'),
345
- // element
346
- };
347
-
348
- this._elements.push(element);
381
+ this._addElementToState(element);
349
382
  }
350
383
 
351
384
  if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
@@ -369,7 +402,11 @@ class AuroForm extends r {
369
402
  this.setDisabledStateOnButtons();
370
403
  }
371
404
 
405
+ /**
406
+ * Reset fires an event called `reset` - just as you would expect from a normal form.
407
+ */
372
408
  reset() {
409
+ const previousValue = this.value;
373
410
  this._elements.forEach((element) => element.reset());
374
411
 
375
412
  this.updateComplete.then(() => {
@@ -381,16 +418,20 @@ class AuroForm extends r {
381
418
  // Wait for the above changes to run through, then disable submit/reset
382
419
  this.updateComplete.then(() => {
383
420
  this.setDisabledStateOnButtons();
421
+
422
+ this.dispatchEvent(new CustomEvent('reset', {
423
+ bubbles: true,
424
+ composed: true,
425
+ detail: {
426
+ previousValue
427
+ }
428
+ }));
384
429
  });
385
430
  });
386
431
  }
387
432
 
388
433
  /**
389
434
  * Submit fires an event called `submit` - just as you would expect from a normal form.
390
- *
391
- * @example ```
392
- * const form = document.querySelector('auro-
393
- * ```
394
435
  */
395
436
  submit() {
396
437
  // Steps required to get out of beta:
@@ -437,13 +478,16 @@ class AuroForm extends r {
437
478
  return;
438
479
  }
439
480
 
481
+ // Occasionally, a form element will emit their event before the form can read data about the form element.
482
+ if (!this.formState[targetName] && this.isFormElement(event.target)) {
483
+ this._addElementToState(event.target);
484
+ }
485
+
440
486
  // Check special input types and handle their edge cases
441
487
  if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
442
488
  this.formState[targetName].value = event.target.values;
443
-
444
489
  this.requestUpdate('formState');
445
490
  } else {
446
- // "Normal" input value handling, just assign the value
447
491
  this.formState[targetName].value = event.target.value;
448
492
  this.requestUpdate('formState');
449
493
  }
@@ -455,6 +499,10 @@ class AuroForm extends r {
455
499
  return;
456
500
  }
457
501
 
502
+ if (!this.formState[targetName]) {
503
+ this._addElementToState(event.target);
504
+ }
505
+
458
506
  this.formState[targetName].validity = event.detail.validity;
459
507
  this._calculateValidity();
460
508
  });
@@ -60,13 +60,12 @@ export class AuroForm extends LitElement {
60
60
  _submitelements: HTMLButtonElement[];
61
61
  /** @type {HTMLButtonElement[]} */
62
62
  _resetElements: HTMLButtonElement[];
63
+ /**
64
+ * Reset fires an event called `reset` - just as you would expect from a normal form.
65
+ */
63
66
  reset(): void;
64
67
  /**
65
68
  * Submit fires an event called `submit` - just as you would expect from a normal form.
66
- *
67
- * @example ```
68
- * const form = document.querySelector('auro-
69
- * ```
70
69
  */
71
70
  submit(): void;
72
71
  /**
@@ -107,6 +106,16 @@ export class AuroForm extends LitElement {
107
106
  * @returns {Record<string, string | number | boolean | string[] | null>} The form value.
108
107
  */
109
108
  get value(): Record<string, string | number | boolean | string[] | null>;
109
+ /**
110
+ * Getter for internal _submitElements.
111
+ * @returns {HTMLButtonElement[]}
112
+ */
113
+ get submitElements(): HTMLButtonElement[];
114
+ /**
115
+ * Getter for internal _resetElements.
116
+ * @returns {HTMLButtonElement[]}
117
+ */
118
+ get resetElements(): HTMLButtonElement[];
110
119
  /**
111
120
  * Infer validity status based on current formState.
112
121
  * @private
@@ -129,6 +138,12 @@ export class AuroForm extends LitElement {
129
138
  * @returns {NodeList}
130
139
  */
131
140
  queryAuroElements(): NodeList;
141
+ /**
142
+ * Store an element in state and on the _elements array.
143
+ * @param {HTMLElement} element - The element to add to our state.
144
+ * @private
145
+ */
146
+ private _addElementToState;
132
147
  /**
133
148
  * Initialize (or reinitialize) the form state.
134
149
  */
@@ -1 +1 @@
1
- {"version":3,"file":"auro-form.d.ts","sourceRoot":"","sources":["../src/auro-form.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;GAEG;AAIH;;;;;GAKG;AAGH;IACE;;;;;;;;;;;;;;;;;;;MASC;IA4BD,uCAOC;IAiCD,yCAKC;IAWD,+CAEC;IAoMD;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA/RC,wBAAwB;IACxB,WADW,SAAS,CACD;IAEnB,yCAAyC;IACzC,WADW,OAAO,GAAG,SAAS,GAAG,IAAI,CAChB;IACrB,yBAA2B;IAE3B,oDAAoD;IACpD,WADW,CAAC,WAAW,GAAG;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAC,CAAC,EAAE,CAC7B;IAEnB,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACL;IAEzB,kCAAkC;IAClC,gBADW,iBAAiB,EAAE,CACN;IA2N1B,cAcC;IAED;;;;;;OAMG;IACH,eAmBC;IAnPD;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;OAMG;IACH,+BAEC;IAED;;;;OAIG;IACH,uBAHW,WAAW,GACT,OAAO,CAInB;IASD;;;;OAIG;IACH,yBAHW,WAAW,GACT,OAAO,CAInB;IAMD;;;;;;;;OAQG;IACH,aAFa,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAOvE;IAED;;;OAGG;IACH,2BAcC;IAED;;;OAGG;IACH,gBAFa,OAAO,GAAG,SAAS,CAI/B;IAED,yBAUC;IAED;;;OAGG;IACH,sBAFa,OAAO,CAInB;IAED,kCAgBC;IAED;;;OAGG;IACH,qBAFa,QAAQ,CAsBpB;IAED;;OAEG;IACH,wBAqCC;IA0DD,4CAiCC;IAED,uCAaC;IAED,qBAEC;IAGD,+CAMC;CACF;;;;;;;;WAlYa,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI;;;;cAC3C,aAAa;;;;cACb,OAAO;;;;aACP,WAAW;;;;;;;;2BAXQ,KAAK"}
1
+ {"version":3,"file":"auro-form.d.ts","sourceRoot":"","sources":["../src/auro-form.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;GAEG;AAIH;;;;;GAKG;AAGH;IACE;;;;;;;;;;;;;;;;;;;MASC;IA4BD,uCAOC;IAiCD,yCAKC;IAWD,+CAEC;IA6OD;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IAxUC,wBAAwB;IACxB,WADW,SAAS,CACD;IAEnB,yCAAyC;IACzC,WADW,OAAO,GAAG,SAAS,GAAG,IAAI,CAChB;IACrB,yBAA2B;IAE3B,oDAAoD;IACpD,WADW,CAAC,WAAW,GAAG;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAC,CAAC,EAAE,CAC7B;IAEnB,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACL;IAEzB,kCAAkC;IAClC,gBADW,iBAAiB,EAAE,CACN;IA4P1B;;OAEG;IACH,cAuBC;IAED;;OAEG;IACH,eAmBC;IA5RD;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;OAMG;IACH,+BAEC;IAED;;;;OAIG;IACH,uBAHW,WAAW,GACT,OAAO,CAInB;IASD;;;;OAIG;IACH,yBAHW,WAAW,GACT,OAAO,CAInB;IAMD;;;;;;;;OAQG;IACH,aAFa,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAOvE;IAED;;;OAGG;IACH,sBAFa,iBAAiB,EAAE,CAI/B;IAED;;;OAGG;IACH,qBAFa,iBAAiB,EAAE,CAI/B;IAED;;;OAGG;IACH,2BAcC;IAED;;;OAGG;IACH,gBAFa,OAAO,GAAG,SAAS,CAO/B;IAED,yBAUC;IAED;;;OAGG;IACH,sBAFa,OAAO,CAInB;IAED,kCAgBC;IAED;;;OAGG;IACH,qBAFa,QAAQ,CAsBpB;IAED;;;;OAIG;IACH,2BAcC;IAED;;OAEG;IACH,wBA8BC;IAkED,4CAwCC;IAED,uCAaC;IAED,qBAEC;IAGD,+CAMC;CACF;;;;;;;;WAlba,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI;;;;cAC3C,aAAa;;;;cACb,OAAO;;;;aACP,WAAW;;;;;;;;2BAXQ,KAAK"}
@@ -235,6 +235,22 @@ class AuroForm extends r {
235
235
  }, {});
236
236
  }
237
237
 
238
+ /**
239
+ * Getter for internal _submitElements.
240
+ * @returns {HTMLButtonElement[]}
241
+ */
242
+ get submitElements() {
243
+ return this._submitelements;
244
+ }
245
+
246
+ /**
247
+ * Getter for internal _resetElements.
248
+ * @returns {HTMLButtonElement[]}
249
+ */
250
+ get resetElements() {
251
+ return this._resetElements;
252
+ }
253
+
238
254
  /**
239
255
  * Infer validity status based on current formState.
240
256
  * @private
@@ -260,6 +276,9 @@ class AuroForm extends r {
260
276
  * @returns {"valid" | "invalid"}
261
277
  */
262
278
  get validity() {
279
+ // Force calculate, as sometimes validity won't reflect
280
+ // the latest value while in-between renders.
281
+ this._calculateValidity();
263
282
  return this._validity;
264
283
  }
265
284
 
@@ -327,6 +346,27 @@ class AuroForm extends r {
327
346
  ]) => tags.map((tag) => `${tag}${extraAttributes}, [${tag}]${extraAttributes}`)).join(', '));
328
347
  }
329
348
 
349
+ /**
350
+ * Store an element in state and on the _elements array.
351
+ * @param {HTMLElement} element - The element to add to our state.
352
+ * @private
353
+ */
354
+ _addElementToState(element) {
355
+ const targetName = element.getAttribute('name');
356
+ if (this.formState[targetName]) {
357
+ return;
358
+ }
359
+
360
+ this.formState[targetName] = {
361
+ value: element.getAttribute('value'),
362
+ validity: element.validity || null,
363
+ required: element.hasAttribute('required'),
364
+ // element
365
+ };
366
+
367
+ this._elements.push(element);
368
+ }
369
+
330
370
  /**
331
371
  * Initialize (or reinitialize) the form state.
332
372
  */
@@ -338,14 +378,7 @@ class AuroForm extends r {
338
378
 
339
379
  this.queryAuroElements().forEach((element) => {
340
380
  if (this.isFormElement(element)) {
341
- this.formState[element.getAttribute('name')] = {
342
- value: element.getAttribute('value'),
343
- validity: element.getAttribute('validity'),
344
- required: element.hasAttribute('required'),
345
- // element
346
- };
347
-
348
- this._elements.push(element);
381
+ this._addElementToState(element);
349
382
  }
350
383
 
351
384
  if (this.isButtonElement(element) && element.getAttribute('type') === 'submit') {
@@ -369,7 +402,11 @@ class AuroForm extends r {
369
402
  this.setDisabledStateOnButtons();
370
403
  }
371
404
 
405
+ /**
406
+ * Reset fires an event called `reset` - just as you would expect from a normal form.
407
+ */
372
408
  reset() {
409
+ const previousValue = this.value;
373
410
  this._elements.forEach((element) => element.reset());
374
411
 
375
412
  this.updateComplete.then(() => {
@@ -381,16 +418,20 @@ class AuroForm extends r {
381
418
  // Wait for the above changes to run through, then disable submit/reset
382
419
  this.updateComplete.then(() => {
383
420
  this.setDisabledStateOnButtons();
421
+
422
+ this.dispatchEvent(new CustomEvent('reset', {
423
+ bubbles: true,
424
+ composed: true,
425
+ detail: {
426
+ previousValue
427
+ }
428
+ }));
384
429
  });
385
430
  });
386
431
  }
387
432
 
388
433
  /**
389
434
  * Submit fires an event called `submit` - just as you would expect from a normal form.
390
- *
391
- * @example ```
392
- * const form = document.querySelector('auro-
393
- * ```
394
435
  */
395
436
  submit() {
396
437
  // Steps required to get out of beta:
@@ -437,13 +478,16 @@ class AuroForm extends r {
437
478
  return;
438
479
  }
439
480
 
481
+ // Occasionally, a form element will emit their event before the form can read data about the form element.
482
+ if (!this.formState[targetName] && this.isFormElement(event.target)) {
483
+ this._addElementToState(event.target);
484
+ }
485
+
440
486
  // Check special input types and handle their edge cases
441
487
  if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
442
488
  this.formState[targetName].value = event.target.values;
443
-
444
489
  this.requestUpdate('formState');
445
490
  } else {
446
- // "Normal" input value handling, just assign the value
447
491
  this.formState[targetName].value = event.target.value;
448
492
  this.requestUpdate('formState');
449
493
  }
@@ -455,6 +499,10 @@ class AuroForm extends r {
455
499
  return;
456
500
  }
457
501
 
502
+ if (!this.formState[targetName]) {
503
+ this._addElementToState(event.target);
504
+ }
505
+
458
506
  this.formState[targetName].validity = event.detail.validity;
459
507
  this._calculateValidity();
460
508
  });