@aurodesignsystem/auro-formkit 2.0.0-beta.7 → 2.0.0-beta.9

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 (291) hide show
  1. package/.turbo/cache/012997da408d7381-meta.json +1 -0
  2. package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -1
  3. package/.turbo/cache/114f70925d97840c-meta.json +1 -0
  4. package/.turbo/cache/114f70925d97840c.tar.zst +0 -0
  5. package/.turbo/cache/144803363093af6b-meta.json +1 -0
  6. package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
  7. package/.turbo/cache/19afa09c8e45c25d-meta.json +1 -0
  8. package/.turbo/cache/19afa09c8e45c25d.tar.zst +0 -0
  9. package/.turbo/cache/20a17be1e896dc95-meta.json +1 -0
  10. package/.turbo/cache/20a17be1e896dc95.tar.zst +0 -0
  11. package/.turbo/cache/2624bedf18a03ab1-meta.json +1 -0
  12. package/.turbo/cache/2624bedf18a03ab1.tar.zst +0 -0
  13. package/.turbo/cache/2706814699cff63a-meta.json +1 -0
  14. package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
  15. package/.turbo/cache/29d704afd7578cda-meta.json +1 -0
  16. package/.turbo/cache/29d704afd7578cda.tar.zst +0 -0
  17. package/.turbo/cache/2edcc8b31cd713fc-meta.json +1 -0
  18. package/.turbo/cache/2edcc8b31cd713fc.tar.zst +0 -0
  19. package/.turbo/cache/318a9085a92f2d32-meta.json +1 -0
  20. package/.turbo/cache/326d9e4692d61af1-meta.json +1 -0
  21. package/.turbo/cache/326d9e4692d61af1.tar.zst +0 -0
  22. package/.turbo/cache/36962b1c4c89a3a2-meta.json +1 -0
  23. package/.turbo/cache/36962b1c4c89a3a2.tar.zst +0 -0
  24. package/.turbo/cache/3cd8fc5f388323db-meta.json +1 -1
  25. package/.turbo/cache/3f8ea42b850fd7b1-meta.json +1 -0
  26. package/.turbo/cache/{c114d428251f56a5.tar.zst → 3f8ea42b850fd7b1.tar.zst} +0 -0
  27. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  28. package/.turbo/cache/457af7906413d2ff-meta.json +1 -0
  29. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  30. package/.turbo/cache/508f2fcc60e5046f-meta.json +1 -0
  31. package/.turbo/cache/508f2fcc60e5046f.tar.zst +0 -0
  32. package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
  33. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  34. package/.turbo/cache/5567d6b2fdae56a9-meta.json +1 -0
  35. package/.turbo/cache/5a6290b52b84f5ef-meta.json +1 -0
  36. package/.turbo/cache/5a6290b52b84f5ef.tar.zst +0 -0
  37. package/.turbo/cache/5aadae8d3f94202e-meta.json +1 -1
  38. package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
  39. package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
  40. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  41. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  42. package/.turbo/cache/64ac8d6a4669ba20-meta.json +1 -0
  43. package/.turbo/cache/64ac8d6a4669ba20.tar.zst +0 -0
  44. package/.turbo/cache/706649b429184693-meta.json +1 -0
  45. package/.turbo/cache/706649b429184693.tar.zst +0 -0
  46. package/.turbo/cache/71dbeaf0706c12fe-meta.json +1 -1
  47. package/.turbo/cache/7445df6e7feed2a7-meta.json +1 -1
  48. package/.turbo/cache/769652d1b874d7cf-meta.json +1 -0
  49. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  50. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  51. package/.turbo/cache/7c4645de5001b034-meta.json +1 -0
  52. package/.turbo/cache/7c4645de5001b034.tar.zst +0 -0
  53. package/.turbo/cache/7e3244d67de2d977-meta.json +1 -0
  54. package/.turbo/cache/7e3244d67de2d977.tar.zst +0 -0
  55. package/.turbo/cache/7f3b42ddf36d0158-meta.json +1 -1
  56. package/.turbo/cache/804ad767c7ba2fc3-meta.json +1 -0
  57. package/.turbo/cache/804ad767c7ba2fc3.tar.zst +0 -0
  58. package/.turbo/cache/8366405184d123d2-meta.json +1 -0
  59. package/.turbo/cache/{a3db8f78e018a955.tar.zst → 8366405184d123d2.tar.zst} +0 -0
  60. package/.turbo/cache/85cc23a2de6b1009-meta.json +1 -0
  61. package/.turbo/cache/99936b010f1533f9-meta.json +1 -0
  62. package/.turbo/cache/{dc6fbe2a8d5b9d9b.tar.zst → 99936b010f1533f9.tar.zst} +0 -0
  63. package/.turbo/cache/9a9b4e449cd84be4-meta.json +1 -1
  64. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
  65. package/.turbo/cache/a275406512608e45-meta.json +1 -1
  66. package/.turbo/cache/a54b4d75b5d265de-meta.json +1 -0
  67. package/.turbo/cache/b280ed4daaf15dcb-meta.json +1 -0
  68. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  69. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  70. package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
  71. package/.turbo/cache/c47b8032d18fc452-meta.json +1 -0
  72. package/.turbo/cache/c47b8032d18fc452.tar.zst +0 -0
  73. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  74. package/.turbo/cache/d3a05e38449c9b24-meta.json +1 -1
  75. package/.turbo/cache/d44acd685455b288-meta.json +1 -0
  76. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  77. package/.turbo/cache/d683a7d23b0d7073-meta.json +1 -0
  78. package/.turbo/cache/d683a7d23b0d7073.tar.zst +0 -0
  79. package/.turbo/cache/d7caaacb8114772f-meta.json +1 -0
  80. package/.turbo/cache/d7caaacb8114772f.tar.zst +0 -0
  81. package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
  82. package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
  83. package/.turbo/cache/db4ea5071b44ee8c-meta.json +1 -1
  84. package/.turbo/cache/de44707e76bdd80c-meta.json +1 -0
  85. package/.turbo/cache/de44707e76bdd80c.tar.zst +0 -0
  86. package/.turbo/cache/e03997efe5adad43-meta.json +1 -0
  87. package/.turbo/cache/e1aa836f0cc2d7c5-meta.json +1 -0
  88. package/.turbo/cache/e1aa836f0cc2d7c5.tar.zst +0 -0
  89. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  90. package/.turbo/cache/e820cc8f220a05f3-meta.json +1 -0
  91. package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
  92. package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
  93. package/.turbo/cache/f3f4ddfd3230e489-meta.json +1 -0
  94. package/.turbo/cache/f3f4ddfd3230e489.tar.zst +0 -0
  95. package/.turbo/cache/fdaf484b1ec4b5ed-meta.json +1 -0
  96. package/.vscode/settings.json +3 -0
  97. package/CHANGELOG.md +27 -0
  98. package/components/checkbox/.turbo/turbo-build.log +2 -2
  99. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  100. package/components/checkbox/README.md +1 -1
  101. package/components/checkbox/demo/api.min.js +79 -20
  102. package/components/checkbox/demo/index.min.js +79 -20
  103. package/components/checkbox/dist/index.js +79 -20
  104. package/components/combobox/.turbo/turbo-build.log +2 -2
  105. package/components/combobox/.turbo/turbo-bundler.log +3 -3
  106. package/components/combobox/README.md +4 -4
  107. package/components/combobox/demo/api.min.js +160 -42
  108. package/components/combobox/demo/index.min.js +160 -42
  109. package/components/combobox/dist/index.js +158 -40
  110. package/components/counter/.turbo/turbo-build$colon$sass.log +172 -0
  111. package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
  112. package/components/counter/.turbo/turbo-build.log +278 -4
  113. package/components/counter/.turbo/turbo-bundler.log +3 -3
  114. package/components/counter/.turbo/turbo-sass$colon$render.log +36 -0
  115. package/components/counter/README.md +188 -0
  116. package/components/counter/demo/api.md +98 -1016
  117. package/components/counter/demo/api.min.js +1670 -32
  118. package/components/counter/demo/index.js +2 -1
  119. package/components/counter/demo/index.md +194 -0
  120. package/components/counter/demo/index.min.js +1702 -19
  121. package/components/counter/dist/auro-counter-button.d.ts +13 -0
  122. package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
  123. package/components/counter/dist/auro-counter-group.d.ts +77 -6
  124. package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
  125. package/components/counter/dist/auro-counter.d.ts +78 -0
  126. package/components/counter/dist/auro-counter.d.ts.map +1 -1
  127. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
  128. package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
  129. package/components/counter/dist/iconVersion.d.ts +3 -0
  130. package/components/counter/dist/iconVersion.d.ts.map +1 -0
  131. package/components/counter/dist/index.js +1670 -32
  132. package/components/counter/dist/styles/color-css.d.ts +3 -0
  133. package/components/counter/dist/styles/color-css.d.ts.map +1 -0
  134. package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
  135. package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
  136. package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
  137. package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
  138. package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
  139. package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
  140. package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
  141. package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
  142. package/components/counter/dist/styles/tokens-css.d.ts +3 -0
  143. package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
  144. package/components/counter/package.json +8 -2
  145. package/components/counter/src/auro-counter-button.js +42 -0
  146. package/components/counter/src/auro-counter-group.js +150 -21
  147. package/components/counter/src/auro-counter.js +272 -12
  148. package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
  149. package/components/counter/src/iconVersion.js +1 -0
  150. package/components/counter/src/index.js +1 -1
  151. package/components/counter/src/styles/color-css.js +2 -0
  152. package/components/counter/src/styles/color.css +25 -0
  153. package/components/counter/src/styles/color.scss +44 -0
  154. package/components/counter/src/styles/counter-button-color-css.js +2 -0
  155. package/components/counter/src/styles/counter-button-color.css +14 -0
  156. package/components/counter/src/styles/counter-button-color.scss +29 -0
  157. package/components/counter/src/styles/counter-button-css.js +2 -0
  158. package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
  159. package/components/counter/src/styles/counter-button-tokens.css +7 -0
  160. package/components/counter/src/styles/counter-button-tokens.scss +9 -0
  161. package/components/counter/src/styles/counter-button.css +187 -0
  162. package/components/counter/src/styles/counter-button.scss +83 -0
  163. package/components/counter/src/styles/counter-group-color-css.js +2 -0
  164. package/components/counter/src/styles/counter-group-color.css +4 -0
  165. package/components/counter/src/styles/counter-group-color.scss +19 -0
  166. package/components/counter/src/styles/counter-group-css.js +1 -1
  167. package/components/counter/src/styles/counter-group.css +13 -1
  168. package/components/counter/src/styles/counter-group.scss +14 -1
  169. package/components/counter/src/styles/style-css.js +1 -1
  170. package/components/counter/src/styles/style.css +43 -1
  171. package/components/counter/src/styles/style.scss +48 -2
  172. package/components/counter/src/styles/tokens-css.js +2 -0
  173. package/components/counter/src/styles/tokens.css +11 -0
  174. package/components/counter/src/styles/tokens.scss +24 -0
  175. package/components/datepicker/.turbo/turbo-build.log +2 -2
  176. package/components/datepicker/.turbo/turbo-bundler.log +2 -2
  177. package/components/datepicker/README.md +4 -4
  178. package/components/datepicker/demo/api.min.js +160 -41
  179. package/components/datepicker/demo/index.min.js +160 -41
  180. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  181. package/components/datepicker/dist/index.js +160 -41
  182. package/components/datepicker/src/auro-datepicker.js +2 -1
  183. package/components/dropdown/.turbo/turbo-build.log +3 -3
  184. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  185. package/components/dropdown/README.md +1 -1
  186. package/components/form/.turbo/turbo-build.log +3 -3
  187. package/components/form/.turbo/turbo-bundler.log +3 -3
  188. package/components/form/README.md +1 -1
  189. package/components/input/.turbo/turbo-build.log +3 -3
  190. package/components/input/.turbo/turbo-bundler.log +3 -3
  191. package/components/input/README.md +1 -1
  192. package/components/input/demo/api.min.js +79 -20
  193. package/components/input/demo/index.min.js +79 -20
  194. package/components/input/dist/index.js +79 -20
  195. package/components/menu/.turbo/turbo-build.log +3 -3
  196. package/components/menu/.turbo/turbo-bundler.log +3 -3
  197. package/components/menu/README.md +1 -1
  198. package/components/radio/.turbo/turbo-build.log +3 -3
  199. package/components/radio/.turbo/turbo-bundler.log +3 -3
  200. package/components/radio/README.md +1 -1
  201. package/components/radio/demo/api.min.js +79 -20
  202. package/components/radio/demo/index.min.js +79 -20
  203. package/components/radio/dist/index.js +79 -20
  204. package/components/select/.turbo/turbo-build.log +3 -3
  205. package/components/select/.turbo/turbo-bundler.log +3 -3
  206. package/components/select/README.md +3 -3
  207. package/components/select/demo/api.min.js +79 -20
  208. package/components/select/demo/index.min.js +79 -20
  209. package/components/select/dist/index.js +79 -20
  210. package/package.json +1 -1
  211. package/packages/form-validation/src/validation.js +79 -20
  212. package/packages/utils/package.json +12 -0
  213. package/packages/utils/src/iconUtil.js +25 -0
  214. package/packages/utils/src/index.js +1 -0
  215. package/.turbo/cache/06845874cc82b186-meta.json +0 -1
  216. package/.turbo/cache/06845874cc82b186.tar.zst +0 -0
  217. package/.turbo/cache/0a96f136af026d57-meta.json +0 -1
  218. package/.turbo/cache/0a96f136af026d57.tar.zst +0 -0
  219. package/.turbo/cache/0c9ee13a7c863709-meta.json +0 -1
  220. package/.turbo/cache/0ca9c5ccf3e90704-meta.json +0 -1
  221. package/.turbo/cache/0ca9c5ccf3e90704.tar.zst +0 -0
  222. package/.turbo/cache/1a8d6e4cab38121a-meta.json +0 -1
  223. package/.turbo/cache/2ec1b6d23563659e-meta.json +0 -1
  224. package/.turbo/cache/3afc5b2ea7c1bf51-meta.json +0 -1
  225. package/.turbo/cache/3afc5b2ea7c1bf51.tar.zst +0 -0
  226. package/.turbo/cache/40de011abc31c0cf-meta.json +0 -1
  227. package/.turbo/cache/40de011abc31c0cf.tar.zst +0 -0
  228. package/.turbo/cache/426c825f57054f5f-meta.json +0 -1
  229. package/.turbo/cache/426c825f57054f5f.tar.zst +0 -0
  230. package/.turbo/cache/4524aae614598308-meta.json +0 -1
  231. package/.turbo/cache/4524aae614598308.tar.zst +0 -0
  232. package/.turbo/cache/45ea3e30ae949d53-meta.json +0 -1
  233. package/.turbo/cache/45ea3e30ae949d53.tar.zst +0 -0
  234. package/.turbo/cache/577d86e4072c01f5-meta.json +0 -1
  235. package/.turbo/cache/577d86e4072c01f5.tar.zst +0 -0
  236. package/.turbo/cache/5d770c787aa78d4d-meta.json +0 -1
  237. package/.turbo/cache/5d770c787aa78d4d.tar.zst +0 -0
  238. package/.turbo/cache/624bf5350aacae42-meta.json +0 -1
  239. package/.turbo/cache/66333b75c8f57565-meta.json +0 -1
  240. package/.turbo/cache/66333b75c8f57565.tar.zst +0 -0
  241. package/.turbo/cache/66e9cca767930b1d-meta.json +0 -1
  242. package/.turbo/cache/66e9cca767930b1d.tar.zst +0 -0
  243. package/.turbo/cache/68060c79df03f45a-meta.json +0 -1
  244. package/.turbo/cache/68060c79df03f45a.tar.zst +0 -0
  245. package/.turbo/cache/68e3afb31feab4e9-meta.json +0 -1
  246. package/.turbo/cache/6a1c28febca6163f-meta.json +0 -1
  247. package/.turbo/cache/6bc4e2d881af6ffb-meta.json +0 -1
  248. package/.turbo/cache/6bc4e2d881af6ffb.tar.zst +0 -0
  249. package/.turbo/cache/6c8ea74dc3b07640-meta.json +0 -1
  250. package/.turbo/cache/7a6ef918375d4010-meta.json +0 -1
  251. package/.turbo/cache/7a6ef918375d4010.tar.zst +0 -0
  252. package/.turbo/cache/83e1029b14af6545-meta.json +0 -1
  253. package/.turbo/cache/98936c69a55361fc-meta.json +0 -1
  254. package/.turbo/cache/a3db8f78e018a955-meta.json +0 -1
  255. package/.turbo/cache/ad2b775dd9172ae8-meta.json +0 -1
  256. package/.turbo/cache/ad2b775dd9172ae8.tar.zst +0 -0
  257. package/.turbo/cache/b91d2888e699c76a-meta.json +0 -1
  258. package/.turbo/cache/b91d2888e699c76a.tar.zst +0 -0
  259. package/.turbo/cache/bdc6aadfdbb6feb9-meta.json +0 -1
  260. package/.turbo/cache/be128506a9bcaa65-meta.json +0 -1
  261. package/.turbo/cache/be128506a9bcaa65.tar.zst +0 -0
  262. package/.turbo/cache/c114d428251f56a5-meta.json +0 -1
  263. package/.turbo/cache/c7338727efbc457a-meta.json +0 -1
  264. package/.turbo/cache/c7338727efbc457a.tar.zst +0 -0
  265. package/.turbo/cache/cf235df1ef8d90b0-meta.json +0 -1
  266. package/.turbo/cache/d1d1a072ee099992-meta.json +0 -1
  267. package/.turbo/cache/d9331772756d3d94-meta.json +0 -1
  268. package/.turbo/cache/d9331772756d3d94.tar.zst +0 -0
  269. package/.turbo/cache/dc6fbe2a8d5b9d9b-meta.json +0 -1
  270. package/.turbo/cache/e1e2582a7131011f-meta.json +0 -1
  271. package/.turbo/cache/e6271174c00888fe-meta.json +0 -1
  272. package/.turbo/cache/e8485d2a584b5f08-meta.json +0 -1
  273. package/.turbo/cache/e8485d2a584b5f08.tar.zst +0 -0
  274. package/.turbo/cache/e86451b8f88594b2-meta.json +0 -1
  275. package/.turbo/cache/e86451b8f88594b2.tar.zst +0 -0
  276. package/.turbo/cache/e9872ba002963dd3-meta.json +0 -1
  277. package/.turbo/cache/e9872ba002963dd3.tar.zst +0 -0
  278. /package/.turbo/cache/{e6271174c00888fe.tar.zst → 012997da408d7381.tar.zst} +0 -0
  279. /package/.turbo/cache/{6a1c28febca6163f.tar.zst → 144803363093af6b.tar.zst} +0 -0
  280. /package/.turbo/cache/{0c9ee13a7c863709.tar.zst → 2706814699cff63a.tar.zst} +0 -0
  281. /package/.turbo/cache/{68e3afb31feab4e9.tar.zst → 318a9085a92f2d32.tar.zst} +0 -0
  282. /package/.turbo/cache/{1a8d6e4cab38121a.tar.zst → 457af7906413d2ff.tar.zst} +0 -0
  283. /package/.turbo/cache/{6c8ea74dc3b07640.tar.zst → 5567d6b2fdae56a9.tar.zst} +0 -0
  284. /package/.turbo/cache/{d1d1a072ee099992.tar.zst → 769652d1b874d7cf.tar.zst} +0 -0
  285. /package/.turbo/cache/{bdc6aadfdbb6feb9.tar.zst → 85cc23a2de6b1009.tar.zst} +0 -0
  286. /package/.turbo/cache/{e1e2582a7131011f.tar.zst → a54b4d75b5d265de.tar.zst} +0 -0
  287. /package/.turbo/cache/{83e1029b14af6545.tar.zst → b280ed4daaf15dcb.tar.zst} +0 -0
  288. /package/.turbo/cache/{624bf5350aacae42.tar.zst → d44acd685455b288.tar.zst} +0 -0
  289. /package/.turbo/cache/{cf235df1ef8d90b0.tar.zst → e03997efe5adad43.tar.zst} +0 -0
  290. /package/.turbo/cache/{2ec1b6d23563659e.tar.zst → e820cc8f220a05f3.tar.zst} +0 -0
  291. /package/.turbo/cache/{98936c69a55361fc.tar.zst → fdaf484b1ec4b5ed.tar.zst} +0 -0
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=color-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color-css.d.ts","sourceRoot":"","sources":["../../src/styles/color-css.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=counter-button-color-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-button-color-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-button-color-css.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=counter-button-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-button-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-button-css.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=counter-button-tokens-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-button-tokens-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-button-tokens-css.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=counter-group-color-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"counter-group-color-css.d.ts","sourceRoot":"","sources":["../../src/styles/counter-group-color-css.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
3
+ //# sourceMappingURL=tokens-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens-css.d.ts","sourceRoot":"","sources":["../../src/styles/tokens-css.js"],"names":[],"mappings":""}
@@ -12,6 +12,8 @@
12
12
  "types": "dist/index.d.ts",
13
13
  "license": "Apache-2.0",
14
14
  "dependencies": {
15
+ "@alaskaairux/icons": "^4.44.1",
16
+ "@aurodesignsystem/auro-button": "^8.2.1",
15
17
  "chalk": "^5.2.0",
16
18
  "lit": "^3.2.1"
17
19
  },
@@ -23,6 +25,7 @@
23
25
  "@auro-formkit/build-tools": "*",
24
26
  "@auro-formkit/config": "*",
25
27
  "@auro-formkit/typescript": "*",
28
+ "@auro-formkit/utils": "*",
26
29
  "@aurodesignsystem/design-tokens": "^4.12.1",
27
30
  "@aurodesignsystem/webcorestylesheets": "^5.1.2",
28
31
  "@rollup/plugin-node-resolve": "^15.3.0",
@@ -33,10 +36,13 @@
33
36
  "web-component-analyzer": "^2.0.0"
34
37
  },
35
38
  "scripts": {
36
- "build": "run-s build:sass bundler types",
39
+ "build": "run-s sass bundler build:docs types",
40
+ "build:version": "node ./scripts/version.mjs",
37
41
  "build:sass": "sass --no-source-map --load-path=../../node_modules \"./src/styles/:./src/styles/\"",
38
42
  "build:watch": "nodemon -e scss,js --watch src --ignore \"*.css\" --ignore \"*-css.js\" --exec \"npm run build\"",
43
+ "build:docs": "wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component counter",
39
44
  "bundler": "rollup -c node:@auro-formkit/config/rollup",
45
+ "sass": "run-s build:sass sass:render",
40
46
  "clean": "rm -rf dist build",
41
47
  "dev": "concurrently \"npm run build:watch\" \"npm run serve\"",
42
48
  "postCss:component": "node ../../node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
@@ -44,7 +50,7 @@
44
50
  "serve": "web-dev-server --open demo/ --node-resolve --watch",
45
51
  "types": "tsc --project tsconfig.json",
46
52
  "lint": "npm-run-all scssLint esLint",
47
- "scssLint": "stylelint \"./src/**/*.scss\"",
53
+ "scssLint": "stylelint \"./src/**/*.scss\" --fix",
48
54
  "esLint": "eslint \"./src/**/*.js\""
49
55
  }
50
56
  }
@@ -0,0 +1,42 @@
1
+ // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2
+ // See LICENSE in the project root for license information.
3
+
4
+ // ---------------------------------------------------------------------
5
+
6
+ import styleButtonTokenCss from "./styles/counter-button-tokens-css.js";
7
+ import styleButtonColorCss from "./styles/counter-button-color-css.js";
8
+ import styleButtonCss from "./styles/counter-button-css.js";
9
+
10
+ import { AuroButton } from "@aurodesignsystem/auro-button/src/auro-button.js";
11
+
12
+ import * as RuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
13
+
14
+ // build the component class
15
+ export class AuroCounterButton extends AuroButton {
16
+
17
+ static get styles() {
18
+ return [
19
+ styleButtonCss,
20
+ styleButtonColorCss,
21
+ styleButtonTokenCss
22
+ ];
23
+ }
24
+
25
+ /**
26
+ * This will register this element with the browser.
27
+ * @param {string} [name="auro-counter-button"] - The name of element that you want to register to.
28
+ *
29
+ * @example
30
+ * AuroCounterButton.register("custom-counter-button") // this will register this element to <custom-counter-button/>
31
+ *
32
+ */
33
+ static register(name = "auro-counter-button") {
34
+ RuntimeUtils.default.prototype.registerComponent(name, AuroCounterButton);
35
+ }
36
+ }
37
+
38
+ /* istanbul ignore else */
39
+ // define the name of the custom component
40
+ if (!customElements.get("auro-counter-button")) {
41
+ customElements.define("auro-counter-button", AuroCounterButton);
42
+ }
@@ -1,48 +1,177 @@
1
- // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2
2
  // See LICENSE in the project root for license information.
3
3
 
4
4
  // ---------------------------------------------------------------------
5
5
 
6
6
  import { html } from "lit/static-html.js";
7
7
  import { LitElement } from "lit";
8
-
9
8
  import styleCss from "./styles/counter-group-css.js";
9
+ import colorCss from "./styles/counter-group-color-css.js";
10
+ import AuroLibraryRuntimeUtils from "@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs";
11
+ import AuroFormValidation from "@auro-formkit/form-validation";
10
12
 
13
+ /**
14
+ * Auro Counter Group is a group of counter components.
15
+ *
16
+ * This web component provides a flexible interface for grouping multiple counters, supporting
17
+ * validation, custom validity messages, and disabled states based on the group's value.
18
+ *
19
+ * @element auro-counter-group
20
+ * @extends LitElement
21
+ * @slot Default - Slot for counter elements.
22
+ */
11
23
  export class AuroCounterGroup extends LitElement {
24
+ constructor() {
25
+ super();
26
+
27
+ this.max = undefined;
28
+ this.min = undefined;
29
+ this.validity = undefined;
30
+ this.value = undefined;
31
+
32
+ /**
33
+ * @private
34
+ */
35
+ this.validation = new AuroFormValidation();
36
+ }
12
37
 
13
38
  static get styles() {
14
- return [styleCss];
39
+ return [
40
+ colorCss,
41
+ styleCss
42
+ ];
15
43
  }
16
44
 
17
45
  static get properties() {
18
46
  return {
19
- common: {
20
- type: Boolean,
21
- reflect: true
47
+
48
+ /**
49
+ * The maximum value allowed for the whole group of counters.
50
+ */
51
+ max: {
52
+ type: Number,
53
+ reflect: true,
22
54
  },
23
- inset: {
24
- type: Boolean,
25
- reflect: true
55
+
56
+ /**
57
+ * The minimum value allowed for the whole group of counters.
58
+ */
59
+ min: {
60
+ type: Number,
61
+ reflect: true,
62
+ },
63
+
64
+ /**
65
+ * Reflects the validity state.
66
+ */
67
+ validity: {
68
+ type: String,
69
+ reflect: true,
70
+ },
71
+
72
+ /**
73
+ * The current value.
74
+ */
75
+ value: {
76
+ type: Number,
26
77
  },
27
- rounded: {
28
- type: Boolean,
29
- reflect: true
30
- }
31
78
  };
32
79
  }
33
80
 
81
+ /**
82
+ * Dynamically disables increment/decrement buttons on a counter based on group value.
83
+ * This method checks the total aggregated value against the group's min and max properties.
84
+ * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
85
+ *
86
+ * @param {HTMLElement} counter - The counter element to potentially disable.
87
+ * @private
88
+ */
89
+ manageDisabled(counter) {
90
+ counter.disableMax = false;
91
+ counter.disableMin = false;
92
+
93
+ if (this.value <= this.min) {
94
+ counter.disableMin = true;
95
+ } else if (this.value >= this.max) {
96
+ counter.disableMax = true;
97
+ }
98
+ }
99
+
100
+
101
+ /**
102
+ * Attaches input event listeners to all auro-counter elements within the component.
103
+ * This method selects all `auro-counter` and `[auto-counter]` elements and adds an `input` event listener to each.
104
+ * The listener calls `this.updateValue()` whenever the value of a counter changes.
105
+ * @private
106
+ */
107
+ configureCounters() {
108
+ const counters = this.querySelectorAll("auro-counter, [auto-counter]");
109
+ counters.forEach((counter) => {
110
+ counter.addEventListener("input", () => this.updateValue());
111
+ });
112
+ }
113
+
114
+ /**
115
+ * Safely converts a value to a number, returning 0 if invalid.
116
+ * @private
117
+ * @param {*} value - The value to convert.
118
+ * @returns {number} The converted number or 0 if invalid.
119
+ */
120
+ safeNumberConversion(value) {
121
+ const num = Number(value);
122
+ return Number.isNaN(num) ? 0 : num;
123
+ }
124
+
125
+ /**
126
+ * Updates the aggregate value based on the values of contained auro-counter components.
127
+ * This method queries for all `auro-counter` elements, sums their values, and updates the component's `value` property.
128
+ * Additionally, it iterates through each counter and calls `manageDisabled()` on it.
129
+ * @private
130
+ */
131
+ updateValue() {
132
+ const counters = this.querySelectorAll("auro-counter, [auro-counter]");
133
+ this.value = Array.from(counters).reduce(
134
+ (total, counter) => total + this.safeNumberConversion(counter.value),
135
+ 0,
136
+ );
137
+ counters.forEach((counter) => {
138
+ this.manageDisabled(counter);
139
+ });
140
+ }
141
+
142
+ updated(changedProperties) {
143
+ if (changedProperties.has("value")) {
144
+ this.validation.validate(this);
145
+ this.dispatchEvent(
146
+ new CustomEvent("input", {
147
+ detail: {
148
+ value: this.value,
149
+ },
150
+ }),
151
+ {
152
+ bubble: true,
153
+ composable: true,
154
+ }
155
+ );
156
+ }
157
+ }
158
+
159
+ /**
160
+ * Registers the custom element with the browser.
161
+ * @param {string} [name="auro-counter-group"] - Custom element name to register.
162
+ * @example
163
+ * AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
164
+ */
165
+ static register(name = "auro-counter-group") {
166
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounterGroup);
167
+ }
168
+
34
169
  // function that renders the HTML and CSS into the scope of the component
35
170
  render() {
36
171
  return html`
37
- <div>
38
- <slot></slot>
172
+ <div class="counters">
173
+ <slot @slotchange=${() => this.configureCounters()}></slot>
39
174
  </div>
40
175
  `;
41
176
  }
42
177
  }
43
-
44
- /* istanbul ignore else */
45
- // define the name of the custom component
46
- if (!customElements.get("auro-counter-group")) {
47
- customElements.define("auro-counter-group", AuroCounterGroup);
48
- }
@@ -1,29 +1,289 @@
1
- // Copyright (c) 2024 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1
+ /* eslint-disable lit/binding-positions, lit/no-invalid-html */
2
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2
3
  // See LICENSE in the project root for license information.
3
4
 
4
- import { html } from "lit/static-html.js";
5
5
  import { LitElement } from "lit";
6
+ import { html } from "lit/static-html.js";
7
+
8
+ import "./auro-counter-button.js";
9
+
10
+ import { AuroDependencyVersioning } from "@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs";
11
+ import AuroLibraryRuntimeUtils from "@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs";
12
+
13
+ import { AuroIcon } from "@aurodesignsystem/auro-icon/src/auro-icon.js";
14
+ import iconVersion from "./iconVersion.js";
15
+ import AuroFormValidation from "@auro-formkit/form-validation";
16
+
17
+ import { IconUtil } from "@auro-formkit/utils";
18
+ import plusIcon from '@alaskaairux/icons/dist/icons/interface/plus-lg.mjs';
19
+ import minusIcon from '@alaskaairux/icons/dist/icons/interface/minus-lg.mjs';
6
20
 
21
+ import tokensCss from "./styles/tokens-css.js";
22
+ import colorCss from "./styles/color-css.js";
7
23
  import styleCss from "./styles/style-css.js";
8
24
 
25
+ /**
26
+ * Auro Counter is a customizable counter component for user interface interactions.
27
+ *
28
+ * This web component provides a flexible counter interface with increment and decrement buttons,
29
+ * supporting optional sub-labels and disabled states.
30
+ *
31
+ * @element auro-counter
32
+ * @extends LitElement
33
+ * @slot Default - Main label content for the counter.
34
+ * @slot description - Descriptive content for the counter.
35
+ */
9
36
  export class AuroCounter extends LitElement {
37
+ constructor() {
38
+ super();
39
+
40
+ this.disabled = false;
41
+ this.disableMax = false;
42
+ this.disableMin = false;
43
+ this.max = 9;
44
+ this.min = 0;
45
+ this.validity = undefined;
46
+ this.value = undefined;
47
+
48
+ /**
49
+ * @private
50
+ */
51
+ this.validation = new AuroFormValidation();
52
+
53
+ /**
54
+ * Generate unique names for dependency components.
55
+ * @private
56
+ */
57
+ const versioning = new AuroDependencyVersioning();
58
+
59
+ /**
60
+ * Dynamically generated icon tag for counter buttons.
61
+ * @private
62
+ * @type {string}
63
+ */
64
+ this.iconTag = versioning.generateTag("auro-icon", iconVersion, AuroIcon);
65
+ }
66
+
67
+ /**
68
+ * Defines reactive properties for the component.
69
+ * @returns {Object} Property configuration.
70
+ */
71
+ static get properties() {
72
+ return {
73
+
74
+ /**
75
+ * Indicates if the counter is disabled.
76
+ */
77
+ disabled: {
78
+ type: Boolean,
79
+ reflect: true,
80
+ },
81
+
82
+ /**
83
+ * Group will attach to counter to disable the increment button.
84
+ * @private
85
+ */
86
+ disableMax: {
87
+ type: Boolean,
88
+ },
89
+
90
+ /**
91
+ * Group will attach to counter to disable the decrement button.
92
+ * @private
93
+ */
94
+ disableMin: {
95
+ type: Boolean,
96
+ },
97
+
98
+ /**
99
+ * The maximum value for the counter.
100
+ */
101
+ max: {
102
+ type: Number,
103
+ reflect: true,
104
+ },
105
+
106
+ /**
107
+ * The minimum value for the counter.
108
+ */
109
+ min: {
110
+ type: Number,
111
+ reflect: true,
112
+ },
113
+
114
+ /**
115
+ * The validity state of the counter.
116
+ */
117
+ validity: {
118
+ type: String,
119
+ reflect: true,
120
+ },
121
+
122
+ /**
123
+ * The current value of the counter.
124
+ */
125
+ value: {
126
+ type: Number,
127
+ },
128
+ };
129
+ }
130
+
131
+ /**
132
+ * Registers the custom element with the browser.
133
+ * @param {string} [name="auro-counter"] - Custom element name to register.
134
+ * @example
135
+ * AuroCounter.register("custom-counter") // registers <custom-counter/>
136
+ */
137
+ static register(name = "auro-counter") {
138
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroCounter);
139
+ }
10
140
 
11
141
  static get styles() {
12
- return [styleCss];
142
+ return [
143
+ tokensCss,
144
+ colorCss,
145
+ styleCss
146
+ ];
147
+ }
148
+
149
+ /**
150
+ * Increments the counter value by 1. If a value is provided, it increments by that amount.
151
+ * @method increment
152
+ * @param {number} [value] - The amount to increment by.
153
+ * @returns {void}
154
+ */
155
+ increment(value) {
156
+ this.value += value !== undefined ? value : 1;
157
+ }
158
+
159
+ /**
160
+ * Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.
161
+ * @method decrement
162
+ * @param {number} [value] - The amount to decrement by.
163
+ * @returns {void}
164
+ */
165
+ decrement(value) {
166
+ this.value -= value !== undefined ? value : 1;
167
+ }
168
+
169
+ /**
170
+ * Initializes the value of the counter.
171
+ * If the current value is undefined, it sets the value to the minimum value.
172
+ * @private
173
+ */
174
+ initValue() {
175
+ if (this.value === undefined) {
176
+ this.value = this.min;
177
+ }
178
+ }
179
+
180
+ /**
181
+ * Determines if the increment button should be disabled based on the current value and extrema.
182
+ *
183
+ * @param {number} extrema - The extreme value (either min or max) to compare against the current value.
184
+ * @returns {boolean} - Returns true if the increment button should be disabled, otherwise false.
185
+ * @private
186
+ */
187
+ isIncrementDisabled(extrema) {
188
+ // Initially, the value is undefined and then set to the minimum value. During this transition, the increment button should be disabled.
189
+ if (this.value === undefined) {
190
+ return false;
191
+ } else if (extrema === this.min && this.value > extrema) {
192
+ return false;
193
+ } else if (extrema === this.max && this.value < extrema) {
194
+ return false;
195
+ }
196
+
197
+ return true;
198
+ }
199
+
200
+ /**
201
+ * Moves the focus to the first enabled button within the shadow DOM.
202
+ * This method searches for the first `auro-counter-button` element that is not disabled
203
+ * and sets the focus on it.
204
+ * @private
205
+ */
206
+ jumpFocusToEnabled() {
207
+ const button = this.shadowRoot.querySelector("auro-counter-button:not([disabled])");
208
+ if (button !== null) {
209
+ button.focus();
210
+ }
211
+ }
212
+
213
+ handleSlotChange() {
214
+ this.checkSlots();
215
+ }
216
+
217
+ firstUpdated() {
218
+ this.initValue();
219
+ }
220
+
221
+ updated(changedProperties) {
222
+ if (changedProperties.has("value")) {
223
+ this.validation.validate(this);
224
+ this.dispatchEvent(
225
+ new CustomEvent("input", {
226
+ detail: {
227
+ value: this.value,
228
+ },
229
+ }),
230
+ {
231
+ bubble: true,
232
+ composable: true,
233
+ }
234
+ );
235
+
236
+ if (
237
+ this.value === this.max ||
238
+ this.value === this.min ||
239
+ changedProperties.get("disableMax") ||
240
+ changedProperties.get("disableMin")
241
+ ) {
242
+ this.jumpFocusToEnabled();
243
+ }
244
+ }
245
+ /* eslint-disable no-extra-parens */
246
+ if (
247
+ (changedProperties.has("disableMax") &&
248
+ changedProperties.get("disableMax") !== undefined) ||
249
+ (changedProperties.has("disableMin") &&
250
+ changedProperties.get("disableMin") !== undefined)
251
+ ) {
252
+ this.jumpFocusToEnabled();
253
+ }
254
+ /* eslint-enable no-extra-parens */
13
255
  }
14
256
 
15
- // function that renders the HTML and CSS into the scope of the component
16
257
  render() {
17
258
  return html`
18
- <div>
19
- <slot></slot>
259
+ <div class="counter">
260
+ <div class="content" >
261
+ <label class="label"><slot></slot></label>
262
+ <slot name="description"></slot>
263
+ </div>
264
+
265
+ <div part="counterControl">
266
+ <auro-counter-button
267
+ part="controlMinus"
268
+ @click="${() => this.decrement()}"
269
+ ?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
270
+ >
271
+ <${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(minusIcon)} </${this.iconTag}>
272
+ </auro-counter-button>
273
+
274
+ <div class="quantityWrapper">
275
+ <div class="quantity">${this.value !== undefined ? this.value : this.min}</div>
276
+ </div>
277
+
278
+ <auro-counter-button
279
+ part="controlPlus"
280
+ @click="${() => this.increment()}"
281
+ ?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
282
+ >
283
+ <${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
284
+ </auro-counter-button>
285
+ </div>
20
286
  </div>
21
287
  `;
22
288
  }
23
289
  }
24
-
25
- /* istanbul ignore else */
26
- // define the name of the custom component
27
- if (!customElements.get("auro-counter")) {
28
- customElements.define("auro-counter", AuroCounter);
29
- }
@@ -0,0 +1 @@
1
+ export default '3.0.0';
@@ -0,0 +1 @@
1
+ export default '6.1.2';
@@ -5,4 +5,4 @@ AuroCounter.register();
5
5
  AuroCounterGroup.register();
6
6
 
7
7
  // Enable TypeScript support
8
- export { AuroCounter, AuroCounterGroup };
8
+ export { AuroCounter, AuroCounterGroup};
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export default css`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
@@ -0,0 +1,25 @@
1
+ /* stylelint-disable selector-max-attribute, scss/selector-nest-combinators */
2
+ .counter {
3
+ color: var(--ds-auro-counter-text-default);
4
+ }
5
+
6
+ [name=description]::slotted(*) {
7
+ color: var(--ds-auro-counter-text-secondary);
8
+ }
9
+
10
+ .controlIcon {
11
+ color: var(--ds-auro-counter-icon-color-default);
12
+ }
13
+
14
+ .quantityWrapper {
15
+ background-color: var(--ds-auro-counter-control-ui-bkg);
16
+ }
17
+
18
+ [disabled] .controlIcon, :host([disabled]) .controlIcon {
19
+ color: var(--ds-auro-counter-control-ui-disabled);
20
+ }
21
+ [disabled] label,
22
+ [disabled] [name=description]::slotted(*), [disabled]::part(counterControl), :host([disabled]) label,
23
+ :host([disabled]) [name=description]::slotted(*), :host([disabled])::part(counterControl) {
24
+ color: var(--ds-auro-counter-text-disabled);
25
+ }