@esri/calcite-components 5.1.0-next.5 → 5.1.0-next.50

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 (481) hide show
  1. package/dist/cdn/{ZKCFISUX.js → 2BQNKQRI.js} +1 -1
  2. package/dist/cdn/{EY4MG3NU.js → 2DYDJPQW.js} +1 -1
  3. package/dist/cdn/2IX7I5VV.js +2 -0
  4. package/dist/cdn/{2QARK4VJ.js → 2MRHM2BO.js} +1 -1
  5. package/dist/cdn/{2GS6R2BX.js → 2YDPGI4H.js} +1 -1
  6. package/dist/cdn/3OJIBSJJ.js +2 -0
  7. package/dist/cdn/{NT6RQTF7.js → 454O35TR.js} +1 -1
  8. package/dist/cdn/{PYD5GHXA.js → 4DFUGGYA.js} +1 -1
  9. package/dist/cdn/{3L2WKJUB.js → 4RG7C5Q7.js} +1 -1
  10. package/dist/cdn/{22IPJDDL.js → 5CDQW3XO.js} +1 -1
  11. package/dist/cdn/5CXXZEDF.js +2 -0
  12. package/dist/cdn/{ZVFZSDLX.js → 5G7AIDBP.js} +1 -1
  13. package/dist/cdn/5YECELO5.js +2 -0
  14. package/dist/cdn/5YJJRPPC.js +2 -0
  15. package/dist/cdn/{ALC6PGDZ.js → 6553ZRIF.js} +1 -1
  16. package/dist/cdn/{Q52IY7SS.js → 65UCZN4U.js} +1 -1
  17. package/dist/cdn/65ZXNKAP.js +2 -0
  18. package/dist/cdn/6BFAW3N5.js +2 -0
  19. package/dist/cdn/{QVTLP2LK.js → 6EO6DYWC.js} +1 -1
  20. package/dist/cdn/6TIKVRXP.js +2 -0
  21. package/dist/cdn/7DLX3CKP.js +2 -0
  22. package/dist/cdn/{Z6LSD6MR.js → 7FSTHS3X.js} +1 -1
  23. package/dist/cdn/{2Z4Z3NMS.js → 7L5FWUMX.js} +1 -1
  24. package/dist/cdn/{ZKPCUAN2.js → 7V26OEC7.js} +1 -1
  25. package/dist/cdn/AEVSXNU2.js +2 -0
  26. package/dist/cdn/{KVPLQQ75.js → B44D3FDA.js} +1 -1
  27. package/dist/cdn/{YQOYGBGD.js → B6HC5XUY.js} +1 -1
  28. package/dist/cdn/BHD66HV4.js +2 -0
  29. package/dist/cdn/{NNSUCRNU.js → BIILZIGG.js} +1 -1
  30. package/dist/cdn/{Y5FMVLYP.js → BVKQYKOO.js} +1 -1
  31. package/dist/cdn/CUG5IRRL.js +2 -0
  32. package/dist/cdn/CZFHMF2K.js +2 -0
  33. package/dist/cdn/{DY6SXW3X.js → CZOONFMH.js} +1 -1
  34. package/dist/cdn/D4A7Q4YZ.js +2 -0
  35. package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
  36. package/dist/cdn/DP6TNJTM.js +2 -0
  37. package/dist/cdn/DPTRTPLD.js +2 -0
  38. package/dist/cdn/DVC6MD2D.js +2 -0
  39. package/dist/cdn/E24GSGDD.js +2 -0
  40. package/dist/cdn/E4SS3COX.js +2 -0
  41. package/dist/cdn/{VB7GHJWK.js → E6J6DZZY.js} +1 -1
  42. package/dist/cdn/EGBQZVDX.js +2 -0
  43. package/dist/cdn/{D7UER3G6.js → EI4MHNNW.js} +1 -1
  44. package/dist/cdn/{IU4TJIME.js → F4BSA6GV.js} +1 -1
  45. package/dist/cdn/F6B6A3DE.js +2 -0
  46. package/dist/cdn/{25YVFVC7.js → FDEO2JWC.js} +1 -1
  47. package/dist/cdn/FN4TGSRQ.js +2 -0
  48. package/dist/cdn/FOQFSSLB.js +2 -0
  49. package/dist/cdn/FOZK3QI2.js +2 -0
  50. package/dist/cdn/{X53XDNBL.js → FZG3OQC4.js} +1 -1
  51. package/dist/cdn/G66UIFSH.js +2 -0
  52. package/dist/cdn/GETFOPRM.js +2 -0
  53. package/dist/cdn/{MM6LZCYO.js → GGEKSHUC.js} +1 -1
  54. package/dist/cdn/GKYLNL37.js +2 -0
  55. package/dist/cdn/GOK6UUVH.js +3 -0
  56. package/dist/cdn/GX4FOIRJ.js +2 -0
  57. package/dist/cdn/{TZFOTRCX.js → H2IZGMRU.js} +1 -1
  58. package/dist/cdn/H4LW5M3U.js +2 -0
  59. package/dist/cdn/{ODOOWGRW.js → H5V4CXEU.js} +1 -1
  60. package/dist/cdn/HANIE3A7.js +2 -0
  61. package/dist/cdn/HM2N2CCW.js +2 -0
  62. package/dist/cdn/{C25VFIND.js → HTCOSUPK.js} +1 -1
  63. package/dist/cdn/IDO7UXCH.js +2 -0
  64. package/dist/cdn/{G4QI7VSJ.js → ISHR72IK.js} +1 -1
  65. package/dist/cdn/ITEJJJZW.js +2 -0
  66. package/dist/cdn/{SVHI2LRC.js → J35A7ZYK.js} +1 -1
  67. package/dist/cdn/JB775TAO.js +2 -0
  68. package/dist/cdn/{AJKEEG2Z.js → JDSHUV34.js} +1 -1
  69. package/dist/cdn/JRU4MCKT.js +2 -0
  70. package/dist/cdn/JTQY42ZT.js +2 -0
  71. package/dist/cdn/{B55VO4LW.js → KJMOIYCM.js} +1 -1
  72. package/dist/cdn/{O75ZRZLS.js → KPR2DKVI.js} +1 -1
  73. package/dist/cdn/{T2MUZ4UN.js → KRIRNHSC.js} +1 -1
  74. package/dist/cdn/{FWEFFYYZ.js → L5OBVKJN.js} +1 -1
  75. package/dist/cdn/LFYW7HOL.js +2 -0
  76. package/dist/cdn/{RRNEZXM4.js → LOGLKFMU.js} +1 -1
  77. package/dist/cdn/{5TCLHXAD.js → LWAXAU2P.js} +1 -1
  78. package/dist/cdn/M5WSXZ4R.js +2 -0
  79. package/dist/cdn/MKRCEA57.js +2 -0
  80. package/dist/cdn/{K4R3HUW3.js → MVW4F7DQ.js} +1 -1
  81. package/dist/cdn/MXB4VAMW.js +2 -0
  82. package/dist/cdn/{3GV45XL7.js → MYDCGCGV.js} +1 -1
  83. package/dist/cdn/N4QQO5F7.js +2 -0
  84. package/dist/cdn/NGIVBXHW.js +2 -0
  85. package/dist/cdn/NNXI6WVD.js +2 -0
  86. package/dist/cdn/{5J2UYJYX.js → O55WIRUD.js} +1 -1
  87. package/dist/cdn/{PNXNTD3R.js → O6M5DBBM.js} +1 -1
  88. package/dist/cdn/ODBJ5WTT.js +2 -0
  89. package/dist/cdn/{UYYGQ6AY.js → ODDLX4A2.js} +1 -1
  90. package/dist/cdn/ONOJ67SI.js +2 -0
  91. package/dist/cdn/{BPSXK66S.js → OYIADDSA.js} +1 -1
  92. package/dist/cdn/OYL2S57T.js +2 -0
  93. package/dist/cdn/{SP22KLIK.js → P3DUED3C.js} +1 -1
  94. package/dist/cdn/PGYGTX6H.js +2 -0
  95. package/dist/cdn/{HUNZU2OF.js → PKL245LP.js} +1 -1
  96. package/dist/cdn/{OGOI7JTF.js → PT6XDY4O.js} +1 -1
  97. package/dist/cdn/PXGUVRKO.js +2 -0
  98. package/dist/cdn/Q2QMINL7.js +2 -0
  99. package/dist/cdn/Q572T7QY.js +2 -0
  100. package/dist/cdn/{NIBBUVHR.js → QE5Z7QLF.js} +1 -1
  101. package/dist/cdn/{42NQN6DY.js → QP6TVAJM.js} +1 -1
  102. package/dist/cdn/{NMIBGEIB.js → R25OYM2I.js} +1 -1
  103. package/dist/cdn/R2VFBL44.js +2 -0
  104. package/dist/cdn/RI3BPIUH.js +2 -0
  105. package/dist/cdn/RNRXZGW3.js +4 -0
  106. package/dist/cdn/RXLGGOGW.js +2 -0
  107. package/dist/cdn/{GNDNKP2Q.js → SC27WKHW.js} +1 -1
  108. package/dist/cdn/SFQJT6YW.js +2 -0
  109. package/dist/cdn/SOOH6THK.js +4 -0
  110. package/dist/cdn/{5SU52VYR.js → SRA4ON3Z.js} +1 -1
  111. package/dist/cdn/{HHOMMC4H.js → SRZOMG32.js} +1 -1
  112. package/dist/cdn/{NAFJ5ZYO.js → SWQWT6UY.js} +1 -1
  113. package/dist/cdn/{HGRVTRR3.js → T2BIGOOU.js} +1 -1
  114. package/dist/cdn/T5IAEO6K.js +2 -0
  115. package/dist/cdn/{RGKOGN5W.js → TGXINM27.js} +1 -1
  116. package/dist/cdn/{H77SNVVI.js → THCVDEDQ.js} +1 -1
  117. package/dist/cdn/{IFLPCKYL.js → TSUGHZGP.js} +1 -1
  118. package/dist/cdn/U2S2OJXD.js +2 -0
  119. package/dist/cdn/U4BLA4YQ.js +2 -0
  120. package/dist/cdn/UETXOCGM.js +2 -0
  121. package/dist/cdn/{UVJ3XYK5.js → UISO27PN.js} +1 -1
  122. package/dist/cdn/V3OD3OAU.js +2 -0
  123. package/dist/cdn/{ZPJ4FGXO.js → VJ7EX6PH.js} +1 -1
  124. package/dist/cdn/VO3JGHAF.js +2 -0
  125. package/dist/cdn/{752PQ7IA.js → VQKHXIXM.js} +1 -1
  126. package/dist/cdn/{CWQZDXHH.js → VY5SOQAQ.js} +1 -1
  127. package/dist/cdn/{MQMNX7AM.js → W4ULMZZ6.js} +1 -1
  128. package/dist/cdn/W7ADR7QV.js +2 -0
  129. package/dist/cdn/WF6FXY63.js +2 -0
  130. package/dist/cdn/WFNTQKEK.js +2 -0
  131. package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
  132. package/dist/cdn/WGVSYIK4.js +2 -0
  133. package/dist/cdn/{3LOKHBAB.js → WK36AMAE.js} +1 -1
  134. package/dist/cdn/WNBAMEP4.js +2 -0
  135. package/dist/cdn/WZ2EOOBW.js +2 -0
  136. package/dist/cdn/XDF2XRSP.js +2 -0
  137. package/dist/cdn/XOFNZQVZ.js +2 -0
  138. package/dist/cdn/{3NNVHOGK.js → XVNZ5DWM.js} +1 -1
  139. package/dist/cdn/{UUHRTJGO.js → YDNLNQTM.js} +1 -1
  140. package/dist/cdn/YG62SKHE.js +2 -0
  141. package/dist/cdn/{5L7CGWWD.js → YPJFB3G7.js} +1 -1
  142. package/dist/cdn/{IJP6ZKHZ.js → YQONJA6H.js} +1 -1
  143. package/dist/cdn/YUUGBEJE.js +2 -0
  144. package/dist/cdn/{6XJYCX76.js → ZDYWF5EE.js} +1 -1
  145. package/dist/cdn/{DR7JKZAI.js → ZQ4LGVDF.js} +1 -1
  146. package/dist/cdn/ZUAXYEB6.js +2 -0
  147. package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
  148. package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
  149. package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
  150. package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
  151. package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
  152. package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
  153. package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
  154. package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
  155. package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
  156. package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
  157. package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
  158. package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
  159. package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
  160. package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
  161. package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
  162. package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
  163. package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
  164. package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
  165. package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
  166. package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
  167. package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
  168. package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
  169. package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
  170. package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
  171. package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
  172. package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
  173. package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
  174. package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
  175. package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
  176. package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
  177. package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
  178. package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
  179. package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
  180. package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
  181. package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
  182. package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
  183. package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
  184. package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
  185. package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
  186. package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
  187. package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
  188. package/dist/cdn/assets/icon/arcgisQuickcapture16.json +1 -0
  189. package/dist/cdn/assets/icon/arcgisQuickcapture24.json +1 -0
  190. package/dist/cdn/assets/icon/arcgisQuickcapture32.json +1 -0
  191. package/dist/cdn/assets/icon/arcgisSurvey12316.json +1 -0
  192. package/dist/cdn/assets/icon/arcgisSurvey12324.json +1 -0
  193. package/dist/cdn/assets/icon/arcgisSurvey12332.json +1 -0
  194. package/dist/cdn/assets/icon/buttons16.json +1 -0
  195. package/dist/cdn/assets/icon/buttons24.json +1 -0
  196. package/dist/cdn/assets/icon/buttons32.json +1 -0
  197. package/dist/cdn/assets/icon/entityTypes16.json +1 -0
  198. package/dist/cdn/assets/icon/entityTypes24.json +1 -0
  199. package/dist/cdn/assets/icon/entityTypes32.json +1 -0
  200. package/dist/cdn/assets/icon/gpsReceiver16.json +1 -0
  201. package/dist/cdn/assets/icon/gpsReceiver24.json +1 -0
  202. package/dist/cdn/assets/icon/gpsReceiver32.json +1 -0
  203. package/dist/cdn/assets/icon/layerStreamSetting16.json +1 -0
  204. package/dist/cdn/assets/icon/layerStreamSetting24.json +1 -0
  205. package/dist/cdn/assets/icon/layerStreamSetting32.json +1 -0
  206. package/dist/cdn/assets/icon/publish16.json +1 -0
  207. package/dist/cdn/assets/icon/publish24.json +1 -0
  208. package/dist/cdn/assets/icon/publish32.json +1 -0
  209. package/dist/cdn/assets/icon/totalStation16.json +1 -0
  210. package/dist/cdn/assets/icon/totalStation24.json +1 -0
  211. package/dist/cdn/assets/icon/totalStation32.json +1 -0
  212. package/dist/cdn/assets/icon/velocityServer16.json +1 -0
  213. package/dist/cdn/assets/icon/velocityServer24.json +1 -0
  214. package/dist/cdn/assets/icon/velocityServer32.json +1 -0
  215. package/dist/cdn/index.js +2 -2
  216. package/dist/cdn/main.css +1 -1
  217. package/dist/chunks/ClearButton.js +16 -0
  218. package/dist/chunks/ExpandToggle.js +3 -3
  219. package/dist/chunks/Heading.js +3 -3
  220. package/dist/chunks/component.js +1 -1
  221. package/dist/chunks/dom.js +49 -28
  222. package/dist/chunks/floating-ui.js +2 -5
  223. package/dist/chunks/locale.js +29 -12
  224. package/dist/chunks/manager.js +505 -0
  225. package/dist/chunks/resources5.js +2 -1
  226. package/dist/chunks/resources6.js +2 -0
  227. package/dist/chunks/runtime.js +4 -4
  228. package/dist/chunks/useFocusTrap.js +25 -0
  229. package/dist/chunks/useForm.js +327 -0
  230. package/dist/chunks/useFormTrigger.js +25 -0
  231. package/dist/chunks/{sortableComponent.js → useSortable.js} +70 -44
  232. package/dist/chunks/utils.js +6 -6
  233. package/dist/chunks/utils3.js +18 -3
  234. package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
  235. package/dist/components/calcite-action/customElement.d.ts +14 -12
  236. package/dist/components/calcite-action/customElement.js +8 -14
  237. package/dist/components/calcite-action-bar/customElement.d.ts +12 -3
  238. package/dist/components/calcite-action-bar/customElement.js +47 -16
  239. package/dist/components/calcite-action-group/customElement.d.ts +12 -6
  240. package/dist/components/calcite-action-group/customElement.js +2 -1
  241. package/dist/components/calcite-action-menu/customElement.d.ts +2 -2
  242. package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
  243. package/dist/components/calcite-action-pad/customElement.js +11 -6
  244. package/dist/components/calcite-alert/customElement.d.ts +2 -2
  245. package/dist/components/calcite-alert/customElement.js +1 -1
  246. package/dist/components/calcite-autocomplete/customElement.d.ts +16 -13
  247. package/dist/components/calcite-autocomplete/customElement.js +20 -31
  248. package/dist/components/calcite-autocomplete-item/customElement.d.ts +6 -0
  249. package/dist/components/calcite-autocomplete-item/customElement.js +9 -4
  250. package/dist/components/calcite-block/customElement.d.ts +5 -5
  251. package/dist/components/calcite-block/customElement.js +1 -1
  252. package/dist/components/calcite-block-group/customElement.d.ts +1 -1
  253. package/dist/components/calcite-block-group/customElement.js +4 -11
  254. package/dist/components/calcite-block-group/interfaces.d.ts +2 -6
  255. package/dist/components/calcite-block-section/customElement.d.ts +1 -1
  256. package/dist/components/calcite-button/customElement.d.ts +6 -6
  257. package/dist/components/calcite-button/customElement.js +10 -22
  258. package/dist/components/calcite-card/customElement.d.ts +11 -5
  259. package/dist/components/calcite-card/customElement.js +5 -3
  260. package/dist/components/calcite-card-group/customElement.d.ts +9 -3
  261. package/dist/components/calcite-card-group/customElement.js +11 -1
  262. package/dist/components/calcite-carousel/customElement.d.ts +1 -1
  263. package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
  264. package/dist/components/calcite-checkbox/customElement.js +8 -22
  265. package/dist/components/calcite-chip/customElement.d.ts +2 -2
  266. package/dist/components/calcite-chip/customElement.js +1 -1
  267. package/dist/components/calcite-chip-group/customElement.d.ts +1 -1
  268. package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
  269. package/dist/components/calcite-color-picker/customElement.js +2 -2
  270. package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
  271. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  272. package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
  273. package/dist/components/calcite-combobox/customElement.d.ts +5 -5
  274. package/dist/components/calcite-combobox/customElement.js +195 -108
  275. package/dist/components/calcite-combobox/index.js +2 -1
  276. package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
  277. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  278. package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
  279. package/dist/components/calcite-date-picker/customElement.js +4 -14
  280. package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
  281. package/dist/components/calcite-date-picker-month/customElement.js +2 -2
  282. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  283. package/dist/components/calcite-dialog/customElement.d.ts +7 -5
  284. package/dist/components/calcite-dialog/customElement.js +4 -2
  285. package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
  286. package/dist/components/calcite-dropdown/customElement.js +165 -90
  287. package/dist/components/calcite-dropdown-item/customElement.d.ts +2 -2
  288. package/dist/components/calcite-dropdown-item/customElement.js +14 -32
  289. package/dist/components/calcite-fab/customElement.d.ts +1 -1
  290. package/dist/components/calcite-fab/customElement.js +1 -1
  291. package/dist/components/calcite-filter/customElement.d.ts +1 -1
  292. package/dist/components/calcite-flow/customElement.d.ts +1 -1
  293. package/dist/components/calcite-flow-item/customElement.d.ts +8 -5
  294. package/dist/components/calcite-flow-item/customElement.js +4 -2
  295. package/dist/components/calcite-graph/customElement.js +1 -1
  296. package/dist/components/calcite-handle/customElement.d.ts +1 -1
  297. package/dist/components/calcite-icon/customElement.d.ts +1 -1
  298. package/dist/components/calcite-inline-editable/customElement.d.ts +2 -2
  299. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  300. package/dist/components/calcite-input/customElement.d.ts +17 -18
  301. package/dist/components/calcite-input/customElement.js +26 -49
  302. package/dist/components/calcite-input/index.js +1 -0
  303. package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
  304. package/dist/components/calcite-input-date-picker/customElement.js +66 -75
  305. package/dist/components/calcite-input-message/customElement.d.ts +1 -1
  306. package/dist/components/calcite-input-number/customElement.d.ts +13 -14
  307. package/dist/components/calcite-input-number/customElement.js +22 -48
  308. package/dist/components/calcite-input-number/index.js +1 -0
  309. package/dist/components/calcite-input-text/customElement.d.ts +11 -12
  310. package/dist/components/calcite-input-text/customElement.js +8 -179
  311. package/dist/components/calcite-input-text/index.js +1 -0
  312. package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
  313. package/dist/components/calcite-input-time-picker/customElement.js +11 -23
  314. package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -6
  315. package/dist/components/calcite-input-time-zone/customElement.js +21 -19
  316. package/dist/components/calcite-label/customElement.js +1 -1
  317. package/dist/components/calcite-link/customElement.d.ts +9 -9
  318. package/dist/components/calcite-link/customElement.js +28 -23
  319. package/dist/components/calcite-list/customElement.d.ts +1 -1
  320. package/dist/components/calcite-list/customElement.js +33 -14
  321. package/dist/components/calcite-list/interfaces.d.ts +2 -6
  322. package/dist/components/calcite-list-item/customElement.d.ts +2 -2
  323. package/dist/components/calcite-list-item/customElement.js +2 -2
  324. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  325. package/dist/components/calcite-loader/customElement.d.ts +1 -1
  326. package/dist/components/calcite-menu/customElement.d.ts +1 -1
  327. package/dist/components/calcite-menu/customElement.js +1 -1
  328. package/dist/components/calcite-menu-item/customElement.d.ts +3 -3
  329. package/dist/components/calcite-meter/customElement.d.ts +7 -1
  330. package/dist/components/calcite-meter/customElement.js +4 -8
  331. package/dist/components/calcite-navigation/customElement.d.ts +9 -2
  332. package/dist/components/calcite-navigation/customElement.js +42 -3
  333. package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
  334. package/dist/components/calcite-navigation-logo/customElement.js +4 -3
  335. package/dist/components/calcite-navigation-user/customElement.d.ts +2 -2
  336. package/dist/components/calcite-navigation-user/customElement.js +11 -6
  337. package/dist/components/calcite-notice/customElement.d.ts +3 -3
  338. package/dist/components/calcite-notice/customElement.js +1 -1
  339. package/dist/components/calcite-pagination/customElement.d.ts +1 -1
  340. package/dist/components/calcite-pagination/customElement.js +1 -1
  341. package/dist/components/calcite-panel/customElement.d.ts +7 -5
  342. package/dist/components/calcite-panel/customElement.js +20 -8
  343. package/dist/components/calcite-popover/customElement.d.ts +2 -2
  344. package/dist/components/calcite-popover/customElement.js +11 -175
  345. package/dist/components/calcite-radio-button/customElement.d.ts +16 -1
  346. package/dist/components/calcite-radio-button/customElement.js +10 -18
  347. package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
  348. package/dist/components/calcite-rating/customElement.d.ts +3 -4
  349. package/dist/components/calcite-rating/customElement.js +12 -18
  350. package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
  351. package/dist/components/calcite-segmented-control/customElement.js +8 -19
  352. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  353. package/dist/components/calcite-select/customElement.d.ts +3 -4
  354. package/dist/components/calcite-select/customElement.js +9 -20
  355. package/dist/components/calcite-sheet/customElement.d.ts +3 -3
  356. package/dist/components/calcite-sheet/customElement.js +3 -7
  357. package/dist/components/calcite-shell-panel/customElement.d.ts +3 -3
  358. package/dist/components/calcite-shell-panel/customElement.js +4 -0
  359. package/dist/components/calcite-slider/customElement.d.ts +3 -4
  360. package/dist/components/calcite-slider/customElement.js +12 -22
  361. package/dist/components/calcite-sort-handle/customElement.d.ts +4 -4
  362. package/dist/components/calcite-sort-handle/customElement.js +44 -17
  363. package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
  364. package/dist/components/calcite-sortable-list/customElement.js +3 -3
  365. package/dist/components/calcite-split-button/customElement.d.ts +8 -8
  366. package/dist/components/calcite-stepper/customElement.d.ts +2 -2
  367. package/dist/components/calcite-stepper/customElement.js +29 -42
  368. package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
  369. package/dist/components/calcite-stepper-item/customElement.js +2 -8
  370. package/dist/components/calcite-swatch/customElement.d.ts +1 -1
  371. package/dist/components/calcite-switch/customElement.d.ts +4 -4
  372. package/dist/components/calcite-switch/customElement.js +9 -8
  373. package/dist/components/calcite-tab/customElement.d.ts +1 -1
  374. package/dist/components/calcite-tab/customElement.js +1 -1
  375. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  376. package/dist/components/calcite-tab-title/customElement.js +1 -1
  377. package/dist/components/calcite-table/customElement.js +1 -1
  378. package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
  379. package/dist/components/calcite-table-header/customElement.d.ts +2 -2
  380. package/dist/components/calcite-table-row/customElement.d.ts +1 -1
  381. package/dist/components/calcite-tabs/customElement.js +1 -1
  382. package/dist/components/calcite-text-area/customElement.d.ts +13 -14
  383. package/dist/components/calcite-text-area/customElement.js +32 -37
  384. package/dist/components/calcite-tile/customElement.d.ts +1 -1
  385. package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
  386. package/dist/components/calcite-time-picker/customElement.js +2 -2
  387. package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
  388. package/dist/components/calcite-tooltip/customElement.js +24 -315
  389. package/dist/components/calcite-tree-item/customElement.js +2 -3
  390. package/dist/controllers/useSortable.d.ts +7 -0
  391. package/dist/docs/api.json +1 -1
  392. package/dist/docs/docs.json +1 -1
  393. package/dist/docs/supported-browsers.json +1 -1
  394. package/dist/docs/translations.json +1 -1
  395. package/dist/docs/vscode.css-custom-data.json +1 -1
  396. package/dist/docs/vscode.html-custom-data.json +1 -1
  397. package/dist/docs/web-types.json +1 -1
  398. package/dist/loader.js +28 -28
  399. package/dist/types/lumina.d.ts +8 -8
  400. package/dist/types/preact.d.ts +8 -8
  401. package/dist/types/react.d.ts +8 -8
  402. package/dist/types/stencil.d.ts +8 -8
  403. package/package.json +15 -16
  404. package/dist/cdn/25CWB6HX.js +0 -2
  405. package/dist/cdn/3KLZFJXW.js +0 -2
  406. package/dist/cdn/3WLFK4RW.js +0 -2
  407. package/dist/cdn/462JN5WF.js +0 -2
  408. package/dist/cdn/464S36UH.js +0 -2
  409. package/dist/cdn/4ALKCXNH.js +0 -2
  410. package/dist/cdn/4GQPJFUJ.js +0 -2
  411. package/dist/cdn/4GVH7HTQ.js +0 -2
  412. package/dist/cdn/4J6YW6EK.js +0 -2
  413. package/dist/cdn/52ZOO5HQ.js +0 -2
  414. package/dist/cdn/5HTRQR7F.js +0 -2
  415. package/dist/cdn/6NEHFZMJ.js +0 -2
  416. package/dist/cdn/6VRXKEA7.js +0 -2
  417. package/dist/cdn/7RSGSW76.js +0 -2
  418. package/dist/cdn/7UOYXJ3K.js +0 -2
  419. package/dist/cdn/A2UZRUUF.js +0 -2
  420. package/dist/cdn/A7IQIXR3.js +0 -2
  421. package/dist/cdn/AEUCGVU4.js +0 -2
  422. package/dist/cdn/BIEIKUB2.js +0 -2
  423. package/dist/cdn/BS22M3WT.js +0 -2
  424. package/dist/cdn/BWDCDFXW.js +0 -2
  425. package/dist/cdn/CXVISA7Y.js +0 -2
  426. package/dist/cdn/ED7SQQHM.js +0 -3
  427. package/dist/cdn/EFNE45MK.js +0 -2
  428. package/dist/cdn/EGK4PSW5.js +0 -2
  429. package/dist/cdn/EJCQCHH7.js +0 -2
  430. package/dist/cdn/ENCYKNKN.js +0 -4
  431. package/dist/cdn/EZW5GK73.js +0 -2
  432. package/dist/cdn/GEQ3EBJO.js +0 -2
  433. package/dist/cdn/GLJVCFQW.js +0 -2
  434. package/dist/cdn/HAUWZRL4.js +0 -2
  435. package/dist/cdn/HBUNMGZ3.js +0 -2
  436. package/dist/cdn/HFGDCX3I.js +0 -2
  437. package/dist/cdn/J42TNDHM.js +0 -2
  438. package/dist/cdn/J4J65DN5.js +0 -2
  439. package/dist/cdn/KBHLSIAR.js +0 -2
  440. package/dist/cdn/KKMGV3S6.js +0 -2
  441. package/dist/cdn/KUC6KV4R.js +0 -2
  442. package/dist/cdn/KVRUYI63.js +0 -2
  443. package/dist/cdn/MLQDQZZR.js +0 -2
  444. package/dist/cdn/N47CSPB7.js +0 -2
  445. package/dist/cdn/O6ZRTXVO.js +0 -2
  446. package/dist/cdn/OCFKSX5L.js +0 -2
  447. package/dist/cdn/OO556Q5A.js +0 -2
  448. package/dist/cdn/PGUOVY7V.js +0 -2
  449. package/dist/cdn/PJ3GHZ7T.js +0 -2
  450. package/dist/cdn/Q4EG6G7W.js +0 -2
  451. package/dist/cdn/QEPJF6TC.js +0 -3
  452. package/dist/cdn/QHZAKDI7.js +0 -2
  453. package/dist/cdn/QIUVPLV2.js +0 -2
  454. package/dist/cdn/R3DLH5BB.js +0 -2
  455. package/dist/cdn/R5DGN3O6.js +0 -2
  456. package/dist/cdn/RU3YCR42.js +0 -2
  457. package/dist/cdn/SF7SFEKA.js +0 -2
  458. package/dist/cdn/SKOYS4HM.js +0 -2
  459. package/dist/cdn/TAS3P2HU.js +0 -2
  460. package/dist/cdn/TBA5ATIB.js +0 -2
  461. package/dist/cdn/TW2SRS2O.js +0 -2
  462. package/dist/cdn/V2PPBU7J.js +0 -2
  463. package/dist/cdn/VIMF6KPF.js +0 -2
  464. package/dist/cdn/VYSJFEY6.js +0 -2
  465. package/dist/cdn/WI7KEIGV.js +0 -2
  466. package/dist/cdn/WJXZ7BPV.js +0 -2
  467. package/dist/cdn/WOJJ53FN.js +0 -2
  468. package/dist/cdn/WSRLM2TQ.js +0 -2
  469. package/dist/cdn/XPXJW5E3.js +0 -2
  470. package/dist/cdn/XXVIE4SD.js +0 -2
  471. package/dist/cdn/YBZVV5BN.js +0 -2
  472. package/dist/cdn/Z3B276DZ.js +0 -2
  473. package/dist/cdn/ZDZGWD2Y.js +0 -2
  474. package/dist/cdn/ZIKLLQSU.js +0 -2
  475. package/dist/cdn/ZQLGBHLZ.js +0 -2
  476. package/dist/cdn/ZZ746O36.js +0 -2
  477. package/dist/chunks/form.js +0 -268
  478. package/dist/chunks/input.js +0 -40
  479. package/dist/controllers/useForm.d.ts +0 -3
  480. package/dist/utils/form.d.ts +0 -3
  481. package/dist/utils/sortableComponent.d.ts +0 -7
@@ -1,11 +1,10 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as customElement } from "../../chunks/runtime.js";
3
- import { css, isServer, html, nothing } from "lit";
3
+ import { css, html } from "lit";
4
4
  import { createRef, ref } from "lit/directives/ref.js";
5
5
  import { literal, html as html$1 } from "lit/static-html.js";
6
- import { LitElement, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
6
+ import { LitElement, stringOrBoolean, safeClassMap, nothing } from "@arcgis/lumina";
7
7
  import { useWatchAttributes } from "@arcgis/lumina/controllers";
8
- import { f as findAssociatedForm, s as submitForm, r as resetForm } from "../../chunks/form.js";
9
8
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
10
9
  import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
11
10
  import { g as getIconScale } from "../../chunks/component.js";
@@ -13,6 +12,7 @@ import { u as useT9n } from "../../chunks/useT9n.js";
13
12
  import { h as hasVisibleContent } from "../../chunks/dom.js";
14
13
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
15
14
  import { u as useInteractive } from "../../chunks/useInteractive.js";
15
+ import { u as useFormTrigger } from "../../chunks/useFormTrigger.js";
16
16
  const CSS = {
17
17
  buttonLoader: "calcite-button--loader",
18
18
  content: "content",
@@ -27,12 +27,13 @@ const CSS = {
27
27
  buttonPadding: "button-padding",
28
28
  buttonPaddingShrunk: "button-padding--shrunk"
29
29
  };
30
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-hover, var(--calcite-color-transparent)))}:host a:focus,:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color))}:host a:active,:host button:active{background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-press, var(--calcite-color-transparent)))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon--start,.icon--end{color:var(--calcite-button-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]){--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-background-color-hover: var(--calcite-color-brand-hover);--calcite-internal-button-background-color-press: var(--calcite-color-brand-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=danger]){--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color-hover: var(--calcite-color-status-danger-hover);--calcite-internal-button-background-color-press: var(--calcite-color-status-danger-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=neutral]){--calcite-internal-button-background-color: var(--calcite-color-foreground-3);--calcite-internal-button-background-color-hover: var(--calcite-color-foreground-2);--calcite-internal-button-background-color-press: var(--calcite-color-foreground-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1);--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-background-color-hover: var(--calcite-color-inverse-hover);--calcite-internal-button-background-color-press: var(--calcite-color-inverse-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([appearance=outline-fill]){--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-background-color-hover: var(--calcite-color-foreground-2);--calcite-internal-button-background-color-press: var(--calcite-color-foreground-3)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]){--calcite-internal-button-background-color-hover: var(--calcite-color-border-2);--calcite-internal-button-background-color-press: var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button,:host([appearance=outline-fill][split-child=primary]) a,:host([appearance=outline][split-child=primary]) a{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button,:host([appearance=outline-fill][split-child=secondary]) a,:host([appearance=outline][split-child=secondary]) a{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=inverse]) button calcite-loader,:host([appearance=transparent][kind=inverse]) a calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;inline-size:2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`;
30
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-hover, var(--calcite-color-transparent)))}:host a:focus,:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color))}:host a:active,:host button:active{background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-press, var(--calcite-color-transparent)))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon--start,.icon--end{color:var(--calcite-button-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]){--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-background-color-hover: var(--calcite-color-brand-hover);--calcite-internal-button-background-color-press: var(--calcite-color-brand-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=danger]){--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color-hover: var(--calcite-color-status-danger-hover);--calcite-internal-button-background-color-press: var(--calcite-color-status-danger-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=neutral]){--calcite-internal-button-background-color: var(--calcite-color-foreground-3);--calcite-internal-button-background-color-hover: var(--calcite-color-foreground-2);--calcite-internal-button-background-color-press: var(--calcite-color-foreground-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1);--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-background-color-hover: var(--calcite-color-inverse-hover);--calcite-internal-button-background-color-press: var(--calcite-color-inverse-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([appearance=outline-fill]){--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-background-color-hover: var(--calcite-color-foreground-2);--calcite-internal-button-background-color-press: var(--calcite-color-foreground-3)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]){--calcite-internal-button-background-color-hover: var(--calcite-color-border-2);--calcite-internal-button-background-color-press: var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button,:host([appearance=outline-fill][split-child=primary]) a,:host([appearance=outline][split-child=primary]) a{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button,:host([appearance=outline-fill][split-child=secondary]) a,:host([appearance=outline][split-child=secondary]) a{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=inverse]) button calcite-loader,:host([appearance=transparent][kind=inverse]) a calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;inline-size:2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: var(--calcite-space-sm-plus)}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`;
31
31
  class Button extends LitElement {
32
32
  constructor() {
33
33
  super(...arguments);
34
34
  this.attributeWatch = useWatchAttributes(["aria-expanded"], this.handleGlobalAttributesChanged);
35
35
  this.contentRef = createRef();
36
+ this.formTrigger = useFormTrigger({ disabled: () => !!this.href })(this);
36
37
  this.mutationObserver = createObserver("mutation", () => this.updateHasContent());
37
38
  this.resizeObserver = createObserver("resize", () => this.setTooltipText());
38
39
  this.focusSetter = useSetFocus()(this);
@@ -54,6 +55,9 @@ class Button extends LitElement {
54
55
  static {
55
56
  this.properties = { hasContent: [16, {}, { state: true }], tooltipText: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], appearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], download: [3, { converter: stringOrBoolean }, { reflect: true }], form: [3, {}, { reflect: true }], href: [3, {}, { reflect: true }], iconEnd: [3, { type: String }, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], iconStart: [3, { type: String }, { reflect: true }], kind: [3, {}, { reflect: true }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], rel: [3, {}, { reflect: true }], round: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], splitChild: [3, {}, { reflect: true }], target: [3, {}, { reflect: true }], type: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
56
57
  }
58
+ static {
59
+ this.formAssociated = true;
60
+ }
57
61
  static {
58
62
  this.styles = styles;
59
63
  }
@@ -64,12 +68,9 @@ class Button extends LitElement {
64
68
  super.connectedCallback();
65
69
  this.setupTextContentObserver();
66
70
  connectLabel(this);
67
- this.formEl = findAssociatedForm(this);
68
71
  }
69
72
  async load() {
70
- if (!isServer) {
71
- this.updateHasContent();
72
- }
73
+ this.updateHasContent();
73
74
  }
74
75
  loaded() {
75
76
  this.setTooltipText();
@@ -79,7 +80,6 @@ class Button extends LitElement {
79
80
  this.mutationObserver?.disconnect();
80
81
  disconnectLabel(this);
81
82
  this.resizeObserver?.disconnect();
82
- this.formEl = null;
83
83
  }
84
84
  handleGlobalAttributesChanged() {
85
85
  this.requestUpdate();
@@ -91,20 +91,8 @@ class Button extends LitElement {
91
91
  this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
92
92
  }
93
93
  onLabelClick() {
94
- this.handleClick();
95
94
  this.setFocus();
96
95
  }
97
- handleClick() {
98
- const { type } = this;
99
- if (this.href) {
100
- return;
101
- }
102
- if (type === "submit") {
103
- submitForm(this);
104
- } else if (type === "reset") {
105
- resetForm(this);
106
- }
107
- }
108
96
  setTooltipText() {
109
97
  const { contentRef: { value: contentEl } } = this;
110
98
  if (contentEl) {
@@ -129,7 +117,7 @@ class Button extends LitElement {
129
117
  [CSS.contentSlotted]: this.hasContent,
130
118
  [CSS.iconStartEmpty]: !this.iconStart,
131
119
  [CSS.iconEndEmpty]: !this.iconEnd
132
- })} .disabled=${childElType === "button" ? this.disabled : null} download=${(childElType === "a" ? this.download === true || this.download === "" ? "" : this.download || null : null) ?? nothing} href=${(childElType === "a" && this.href) ?? nothing} name=${(childElType === "button" && this.name) ?? nothing} @click=${this.handleClick} rel=${(childElType === "a" && this.rel) ?? nothing} tabindex=${(this.disabled ? -1 : null) ?? nothing} target=${(childElType === "a" && this.target) ?? nothing} title=${this.tooltipText ?? nothing} type=${(childElType === "button" ? this.type : null) ?? nothing} ${ref(this.setChildEl)}>${loaderNode}${this.iconStart ? iconStartEl : null}${this.hasContent ? contentEl : null}${this.iconEnd ? iconEndEl : null}</${DynamicHtmlTag}>` });
120
+ })} .disabled=${childElType === "button" ? this.disabled : null} download=${(childElType === "a" ? this.download === true || this.download === "" ? "" : this.download || null : null) ?? nothing} href=${(childElType === "a" && this.href) ?? nothing} name=${(childElType === "button" && this.name) ?? nothing} rel=${(childElType === "a" && this.rel) ?? nothing} tabindex=${(this.disabled ? -1 : null) ?? nothing} target=${(childElType === "a" && this.target) ?? nothing} title=${this.tooltipText ?? nothing} type=${(childElType === "button" ? this.type : null) ?? nothing} ${ref(this.setChildEl)}>${loaderNode}${this.iconStart ? iconStartEl : null}${this.hasContent ? contentEl : null}${this.iconEnd ? iconEndEl : null}</${DynamicHtmlTag}>` });
133
121
  }
134
122
  }
135
123
  customElement("calcite-button", Button);
@@ -1,6 +1,6 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { LogicalFlowPosition } from "../interfaces.js";
3
+ import type { LogicalFlowPosition, Scale } from "../interfaces.js";
4
4
 
5
5
  /**
6
6
  * @cssproperty [--calcite-card-accent-color-selected] - Specifies the component's accent color when `selected`.
@@ -9,11 +9,11 @@ import type { LogicalFlowPosition } from "../interfaces.js";
9
9
  * @cssproperty [--calcite-card-corner-radius] - Specifies the component's corner radius.
10
10
  * @cssproperty [--calcite-card-selection-background-color-hover] - Specifies the component's selection element background color when hovered.
11
11
  * @cssproperty [--calcite-card-selection-background-color-press] - Specifies the component's selection element background color when active.
12
- * @cssproperty [--calcite-card-selection-background-color] - [Deprecated] Use `--calcite-card-background-color`. Specifies the component's selection element background color.
12
+ * @cssproperty [--calcite-card-selection-background-color] - [Deprecated] in v2.13.0, removal target v6.0.0 - Use `--calcite-card-background-color` instead. Specifies the component's selection element background color.
13
13
  * @cssproperty [--calcite-card-selection-color-hover] - Specifies the component's selection element color when hovered or focused.
14
14
  * @cssproperty [--calcite-card-selection-color] - Specifies the component's selection element color.
15
- * @cssproperty [--calcite-card-selection-icon-color-hover] - [Deprecated] Use `--calcite-card-selection-color-hover`. Specifies the component's selection element icon color when hovered.
16
- * @cssproperty [--calcite-card-selection-icon-color-selected] - [Deprecated] Use `--calcite-card-accent-color-selected`. Specifies the component's selection element icon color when `selected`.
15
+ * @cssproperty [--calcite-card-selection-icon-color-hover] - [Deprecated] in v2.13.0, removal target v6.0.0 - Use `--calcite-card-selection-color-hover` instead. Specifies the component's selection element icon color when hovered.
16
+ * @cssproperty [--calcite-card-selection-icon-color-selected] - [Deprecated] in v2.13.0, removal target v6.0.0 - Use `--calcite-card-accent-color-selected` instead. Specifies the component's selection element icon color when `selected`.
17
17
  * @cssproperty [--calcite-card-shadow] - Specifies the component's shadow.
18
18
  * @slot - A slot for adding content.
19
19
  * @slot [thumbnail] - A slot for adding a thumbnail.
@@ -42,6 +42,12 @@ export abstract class Card extends LitElement {
42
42
  select?: string;
43
43
  loading?: string;
44
44
  };
45
+ /**
46
+ * Specifies the size of the component. When contained in a parent `calcite-card-group`, inherits the parent's `scale` value, but can be overridden if needed.
47
+ *
48
+ * @default "m"
49
+ */
50
+ accessor scale: Scale;
45
51
  /**
46
52
  * When `true`, the component is selectable.
47
53
  *
@@ -65,7 +71,7 @@ export abstract class Card extends LitElement {
65
71
  * Sets focus on the component.
66
72
  *
67
73
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
68
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
74
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
69
75
  */
70
76
  setFocus(options?: FocusOptions): Promise<void>;
71
77
  /** Fires when the deprecated `selectable` is true, or `selectionMode` set on parent `calcite-card-group` is not `none` and the component is selected. */
@@ -3,6 +3,7 @@ import { c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, html } from "lit";
4
4
  import { createRef, ref } from "lit/directives/ref.js";
5
5
  import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
6
+ import { g as getIconScale } from "../../chunks/component.js";
6
7
  import { s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
7
8
  import { i as isActivationKey } from "../../chunks/key.js";
8
9
  import { u as useT9n } from "../../chunks/useT9n.js";
@@ -33,7 +34,7 @@ const ICONS = {
33
34
  selectedSingle: "circle-f",
34
35
  unselectedSingle: "circle"
35
36
  };
36
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;max-inline-size:100%}.content-wrapper{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border:var(--calcite-border-width-sm) solid var(--calcite-card-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-card-corner-radius, var(--calcite-corner-radius-sharp));background-color:var(--calcite-card-background-color, var(--calcite-color-foreground-1));box-shadow:var(--calcite-card-shadow, var(--calcite-shadow-none));pointer-events:none}::slotted(*){pointer-events:auto}:host(:not([selectable])) .content-wrapper:not(.non-interactive){outline-color:transparent}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .content-wrapper *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0;display:flex;align-items:center}.header{display:flex;flex-direction:row;align-items:flex-start}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:var(--calcite-spacing-md);padding-block-start:var(--calcite-spacing-xxs);padding-block-end:var(--calcite-spacing-md)}.header-text-container{display:flex;inline-size:100%;flex-direction:column;justify-content:center;padding-inline:.75rem;padding-block:.5rem}.header-text-container:not(:only-child){padding-inline-end:.125rem}.footer{margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:.75rem;padding-block:.25rem .75rem}.card-content{block-size:auto;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}.has-slotted-content{padding:.75rem}:host([selected]) .content-wrapper{border:1px solid var(--calcite-card-accent-color-selected, var(--calcite-color-brand))}:host([selectable]) .header{padding-inline-end:var(--calcite-spacing-xxxl)}slot[name=heading]::slotted(*),*::slotted([slot=heading]){margin:0;font-size:var(--calcite-font-size-relative-base);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);line-height:var(--calcite-font-line-height-relative-snug)}slot[name=description]::slotted(*),*::slotted([slot=description]){margin:0;font-size:var(--calcite-font-size-relative-sm);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);line-height:var(--calcite-font-line-height-relative-snug)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-start]::slotted(*),*::slotted([slot=footer-start]){align-self:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);margin-inline-end:auto}slot[name=footer-end]::slotted(*),*::slotted([slot=footer-end]){align-self:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}.checkbox-wrapper-deprecated{pointer-events:auto;position:absolute;inset-block-start:var(--calcite-spacing-sm);inset-inline-end:var(--calcite-spacing-sm);margin:0;padding:0;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper-deprecated:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper-deprecated:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper{pointer-events:auto;margin:.5rem;cursor:pointer;padding:.5rem;outline-color:transparent;display:flex;align-items:center;justify-items:center;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper calcite-icon{pointer-events:none}:host([selected]) .checkbox-wrapper-deprecated,:host([selected]) .checkbox-wrapper{color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press));color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}.thumbnail-wrapper{display:flex}.content-wrapper.inline{flex-direction:row}.content-wrapper.inline>.container{inline-size:60%}.content-wrapper.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.content-wrapper.inline slot[name=thumbnail]::slotted(img),.content-wrapper.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-start]::slotted(*),slot[name=footer-end]::slotted(*){display:flex;gap:.25rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
37
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;max-inline-size:100%}:host([scale=s]){--calcite-internal-card-header-text-container-padding-inline: var(--calcite-space-sm);--calcite-internal-card-header-text-container-padding-block: var(--calcite-space-xs);--calcite-internal-card-header-text-container-padding-right: 0;--calcite-internal-card-heading-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-card-description-font-size: var(--calcite-font-size-relative-xs);--calcite-internal-card-checkbox-wrapper-padding: var(--calcite-space-xs);--calcite-internal-card-checkbox-wrapper-margin: var(--calcite-space-xs);--calcite-internal-card-slotted-content-padding: var(--calcite-space-sm);--calcite-internal-card-footer-padding-inline: var(--calcite-space-sm);--calcite-internal-card-footer-start-end-gap: var(--calcite-space-base)}:host([scale=m]){--calcite-internal-card-header-text-container-padding-inline: var(--calcite-space-md);--calcite-internal-card-header-text-container-padding-block: var(--calcite-space-sm);--calcite-internal-card-header-text-container-padding-right: var(--calcite-space-base);--calcite-internal-card-heading-font-size: var(--calcite-font-size-relative-base);--calcite-internal-card-description-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-card-checkbox-wrapper-padding: var(--calcite-space-sm);--calcite-internal-card-checkbox-wrapper-margin: var(--calcite-space-sm);--calcite-internal-card-slotted-content-padding: var(--calcite-space-md);--calcite-internal-card-footer-padding-inline: var(--calcite-space-md);--calcite-internal-card-footer-start-end-gap: var(--calcite-space-2xs)}:host([scale=l]){--calcite-internal-card-header-text-container-padding-inline: var(--calcite-space-lg);--calcite-internal-card-header-text-container-padding-block: var(--calcite-space-md);--calcite-internal-card-header-text-container-padding-right: var(--calcite-space-xs);--calcite-internal-card-heading-font-size: var(--calcite-font-size-relative-md);--calcite-internal-card-description-font-size: var(--calcite-font-size-relative-base);--calcite-internal-card-checkbox-wrapper-padding: var(--calcite-space-md);--calcite-internal-card-checkbox-wrapper-margin: var(--calcite-space-md);--calcite-internal-card-slotted-content-padding: var(--calcite-space-lg);--calcite-internal-card-footer-padding-inline: var(--calcite-space-lg);--calcite-internal-card-footer-start-end-gap: var(--calcite-space-sm)}.content-wrapper{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border:var(--calcite-border-width-sm) solid var(--calcite-card-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-card-corner-radius, var(--calcite-corner-radius-sharp));background-color:var(--calcite-card-background-color, var(--calcite-color-foreground-1));box-shadow:var(--calcite-card-shadow, var(--calcite-shadow-none));pointer-events:none}::slotted(*){pointer-events:auto}:host(:not([selectable])) .content-wrapper:not(.non-interactive){outline-color:transparent}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .content-wrapper *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0;display:flex;align-items:center}.header{display:flex;flex-direction:row;align-items:flex-start}.header-text-container{display:flex;flex-direction:column;inline-size:100%;justify-content:center;padding-inline:var(--calcite-internal-card-header-text-container-padding-inline);padding-block:var(--calcite-internal-card-header-text-container-padding-block)}.header-text-container:not(:only-child){padding-inline-end:var(--calcite-internal-card-header-text-container-padding-right)}.footer{display:flex;margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:var(--calcite-internal-card-footer-padding-inline);padding-block-start:var(--calcite-space-2xs);padding-block-end:var(--calcite-space-md)}.card-content{block-size:auto;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}.has-slotted-content{padding:var(--calcite-internal-card-slotted-content-padding)}:host([selected]) .content-wrapper{border:1px solid var(--calcite-card-accent-color-selected, var(--calcite-color-brand))}:host([selectable]) .header{padding-inline-end:var(--calcite-spacing-xxxl)}slot[name=heading]::slotted(*),*::slotted([slot=heading]){color:var(--calcite-color-text-1);margin:0;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);font-size:var(--calcite-internal-card-heading-font-size)}slot[name=description]::slotted(*),*::slotted([slot=description]){color:var(--calcite-color-text-2);margin:0;font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug);font-size:var(--calcite-internal-card-description-font-size)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-start]::slotted(*),*::slotted([slot=footer-start]){align-self:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);margin-inline-end:auto}slot[name=footer-end]::slotted(*),*::slotted([slot=footer-end]){align-self:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}.checkbox-wrapper-deprecated{pointer-events:auto;position:absolute;inset-block-start:var(--calcite-spacing-sm);inset-inline-end:var(--calcite-spacing-sm);margin:0;padding:0;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper-deprecated:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper-deprecated:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper{outline-color:transparent;cursor:pointer;pointer-events:auto;display:flex;align-items:center;justify-items:center;color:var(--calcite-card-selection-color, var(--calcite-color-text-3));padding:var(--calcite-internal-card-checkbox-wrapper-padding);margin:var(--calcite-internal-card-checkbox-wrapper-margin)}.checkbox-wrapper:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper calcite-icon{pointer-events:none}:host([selected]) .checkbox-wrapper-deprecated,:host([selected]) .checkbox-wrapper{color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press));color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}.thumbnail-wrapper{display:flex}.content-wrapper.inline{flex-direction:row}.content-wrapper.inline>.container{inline-size:60%}.content-wrapper.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.content-wrapper.inline slot[name=thumbnail]::slotted(img),.content-wrapper.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-start]::slotted(*),slot[name=footer-end]::slotted(*){display:flex;gap:var(--calcite-internal-card-footer-start-end-gap)}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
37
38
  class Card extends LitElement {
38
39
  constructor() {
39
40
  super(...arguments);
@@ -49,6 +50,7 @@ class Card extends LitElement {
49
50
  this.hasThumbnail = false;
50
51
  this.disabled = false;
51
52
  this.loading = false;
53
+ this.scale = "m";
52
54
  this.selectable = false;
53
55
  this.selected = false;
54
56
  this.selectionMode = "none";
@@ -57,7 +59,7 @@ class Card extends LitElement {
57
59
  this.calciteInternalCardKeyEvent = createEvent({ cancelable: false });
58
60
  }
59
61
  static {
60
- this.properties = { hasContent: [16, {}, { state: true }], hasDescription: [16, {}, { state: true }], hasFooterEnd: [16, {}, { state: true }], hasFooterStart: [16, {}, { state: true }], hasHeading: [16, {}, { state: true }], hasThumbnail: [16, {}, { state: true }], disabled: [7, {}, { reflect: true, type: Boolean }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], selectable: [7, {}, { reflect: true, type: Boolean }], selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: 1, thumbnailPosition: [3, {}, { reflect: true }] };
62
+ this.properties = { hasContent: [16, {}, { state: true }], hasDescription: [16, {}, { state: true }], hasFooterEnd: [16, {}, { state: true }], hasFooterStart: [16, {}, { state: true }], hasHeading: [16, {}, { state: true }], hasThumbnail: [16, {}, { state: true }], disabled: [7, {}, { reflect: true, type: Boolean }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], scale: [3, {}, { reflect: true }], selectable: [7, {}, { reflect: true, type: Boolean }], selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: 1, thumbnailPosition: [3, {}, { reflect: true }] };
61
63
  }
62
64
  static {
63
65
  this.styles = styles;
@@ -126,7 +128,7 @@ class Card extends LitElement {
126
128
  }
127
129
  renderSelectionIcon() {
128
130
  const icon = this.selectionMode === "multiple" && this.selected ? ICONS.selected : this.selectionMode === "multiple" ? ICONS.unselected : this.selected ? ICONS.selectedSingle : ICONS.unselectedSingle;
129
- return html`<div class=${safeClassMap(CSS.checkboxWrapper)} @pointerdown=${this.cardSelectClick} tabindex=-1><calcite-icon .icon=${icon} scale=s></calcite-icon></div>`;
131
+ return html`<div class=${safeClassMap(CSS.checkboxWrapper)} @pointerdown=${this.cardSelectClick} tabindex=-1><calcite-icon .icon=${icon} .scale=${getIconScale(this.scale)}></calcite-icon></div>`;
130
132
  }
131
133
  renderHeader() {
132
134
  const showHeader = this.hasHeading || this.hasDescription;
@@ -1,10 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { SelectionMode } from "../interfaces.js";
3
+ import type { Scale, SelectionMode } from "../interfaces.js";
4
4
  import type { Card } from "../calcite-card/customElement.js";
5
5
 
6
6
  /**
7
- * @cssproperty [--calcite-card-group-gap] - [Deprecated] Use `--calcite-card-group-space`. Specifies the gap between slotted elements.
7
+ * @cssproperty [--calcite-card-group-gap] - [Deprecated] in v2.13.0, removal target v6.0.0 - Use `--calcite-card-group-space` instead. Specifies the gap between slotted elements.
8
8
  * @cssproperty [--calcite-card-group-space] - Specifies the space between slotted elements.
9
9
  * @slot - A slot for adding one or more `calcite-card`s.
10
10
  */
@@ -21,6 +21,12 @@ export abstract class CardGroup extends LitElement {
21
21
  * @required
22
22
  */
23
23
  accessor label: string;
24
+ /**
25
+ * Specifies the size of the component. Child `calcite-card`s inherit the component's value.
26
+ *
27
+ * @default "m"
28
+ */
29
+ accessor scale: Scale;
24
30
  /** Specifies the component's selected items. */
25
31
  get selectedItems(): Card[];
26
32
  /**
@@ -33,7 +39,7 @@ export abstract class CardGroup extends LitElement {
33
39
  * Sets focus on the component's first focusable element.
34
40
  *
35
41
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
36
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
42
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
37
43
  */
38
44
  setFocus(options?: FocusOptions): Promise<void>;
39
45
  /** Fires when the component's selection changes and the `selectionMode` is not `none`. */
@@ -18,6 +18,7 @@ class CardGroup extends LitElement {
18
18
  this.focusSetter = useSetFocus()(this);
19
19
  this.interactiveContainer = useInteractive(this);
20
20
  this.disabled = false;
21
+ this.scale = "m";
21
22
  this.selectedItems = [];
22
23
  this.selectionMode = "none";
23
24
  this.calciteCardGroupSelect = createEvent({ cancelable: false });
@@ -25,7 +26,7 @@ class CardGroup extends LitElement {
25
26
  this.listen("calciteCardSelect", this.calciteCardSelectListener);
26
27
  }
27
28
  static {
28
- this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], label: 1, selectedItems: [0, {}, { attribute: false }], selectionMode: [3, {}, { reflect: true }] };
29
+ this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], label: 1, scale: [3, {}, { reflect: true }], selectedItems: [0, {}, { attribute: false }], selectionMode: [3, {}, { reflect: true }] };
29
30
  }
30
31
  static {
31
32
  this.styles = styles;
@@ -37,6 +38,9 @@ class CardGroup extends LitElement {
37
38
  if (changes.has("selectionMode") && this.hasUpdated) {
38
39
  this.updateItemsOnSelectionModeChange();
39
40
  }
41
+ if (changes.has("scale") && (this.hasUpdated || this.scale !== "m")) {
42
+ this.updateItemsScale();
43
+ }
40
44
  }
41
45
  loaded() {
42
46
  this.updateSelectedItems();
@@ -72,10 +76,16 @@ class CardGroup extends LitElement {
72
76
  updateItemsOnSlotChange(event) {
73
77
  this.updateSlottedItems(event.target);
74
78
  this.updateSelectedItems();
79
+ this.updateItemsScale();
75
80
  }
76
81
  updateSlottedItems(target) {
77
82
  this.items = target?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-card")) || [];
78
83
  }
84
+ updateItemsScale() {
85
+ this.items.forEach((el) => {
86
+ el.scale = this.scale;
87
+ });
88
+ }
79
89
  updateSelectedItems() {
80
90
  this.items.forEach((el) => {
81
91
  el.selectionMode = this.selectionMode;
@@ -78,7 +78,7 @@ export abstract class Carousel extends LitElement {
78
78
  * Sets focus on the component.
79
79
  *
80
80
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
81
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
81
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
82
82
  */
83
83
  setFocus(options?: FocusOptions): Promise<void>;
84
84
  /** Stops the carousel. If `autoplay` is not enabled (initialized either to `true` or `"paused"`), these methods will have no effect. */
@@ -1,6 +1,5 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
- import type { MutableValidityState } from "../../utils/form.js";
4
3
  import type { Scale, Status } from "../interfaces.js";
5
4
 
6
5
  /**
@@ -35,7 +34,7 @@ export abstract class Checkbox extends LitElement {
35
34
  * The state is visual only, and can look different across browsers.
36
35
  *
37
36
  * @default false
38
- * @mdn [indeterminate](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes)
37
+ * @see [MDN - indeterminate](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes)
39
38
  */
40
39
  accessor indeterminate: boolean;
41
40
  /** Specifies an accessible label for the component. */
@@ -68,16 +67,16 @@ export abstract class Checkbox extends LitElement {
68
67
  /**
69
68
  * The component's current validation state.
70
69
  *
71
- * @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
70
+ * @see [MDN - ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
72
71
  */
73
- get validity(): MutableValidityState;
72
+ get validity(): ValidityState;
74
73
  /** The component's value. */
75
74
  accessor value: any;
76
75
  /**
77
76
  * Sets focus on the component.
78
77
  *
79
78
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
80
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
79
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
81
80
  */
82
81
  setFocus(options?: FocusOptions): Promise<void>;
83
82
  /** Fires when the component's `checked` status changes. */
@@ -2,15 +2,15 @@
2
2
  import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
3
3
  import { css, svg, html } from "lit";
4
4
  import { createRef, ref } from "lit/directives/ref.js";
5
- import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
5
+ import { LitElement, createEvent, nothing, safeClassMap } from "@arcgis/lumina";
6
6
  import { useDirection } from "@arcgis/lumina/controllers";
7
- import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from "../../chunks/form.js";
8
7
  import { i as isActivationKey } from "../../chunks/key.js";
9
8
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
10
9
  import { I as InternalLabel } from "../../chunks/InternalLabel.js";
11
10
  import { u as useT9n } from "../../chunks/useT9n.js";
12
11
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
13
12
  import { u as useInteractive } from "../../chunks/useInteractive.js";
13
+ import { u as useForm } from "../../chunks/useForm.js";
14
14
  const CSS = {
15
15
  toggle: "toggle",
16
16
  check: "check-svg"
@@ -21,6 +21,7 @@ class Checkbox extends LitElement {
21
21
  super();
22
22
  this.checkedPath = "M5.5 12L2 8.689l.637-.636L5.5 10.727l8.022-7.87.637.637z";
23
23
  this.direction = useDirection();
24
+ this.formSupport = useForm({ inputType: "checkbox" })(this);
24
25
  this.indeterminatePath = "M13 8v1H3V8z";
25
26
  this.onLabelClick = () => {
26
27
  this.toggle();
@@ -36,19 +37,6 @@ class Checkbox extends LitElement {
36
37
  this.required = false;
37
38
  this.scale = "m";
38
39
  this.status = "idle";
39
- this.validity = {
40
- valid: false,
41
- badInput: false,
42
- customError: false,
43
- patternMismatch: false,
44
- rangeOverflow: false,
45
- rangeUnderflow: false,
46
- stepMismatch: false,
47
- tooLong: false,
48
- tooShort: false,
49
- typeMismatch: false,
50
- valueMissing: false
51
- };
52
40
  this.calciteCheckboxChange = createEvent({ cancelable: false });
53
41
  this.calciteInternalCheckboxBlur = createEvent({ cancelable: false });
54
42
  this.calciteInternalCheckboxFocus = createEvent({ cancelable: false });
@@ -56,7 +44,10 @@ class Checkbox extends LitElement {
56
44
  this.listen("keydown", this.keyDownHandler);
57
45
  }
58
46
  static {
59
- this.properties = { checked: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hovered: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], validity: [0, {}, { attribute: false }], value: 1 };
47
+ this.properties = { checked: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hovered: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }], label: 1, labelText: 1, messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
48
+ }
49
+ static {
50
+ this.formAssociated = true;
60
51
  }
61
52
  static {
62
53
  this.styles = styles;
@@ -67,15 +58,10 @@ class Checkbox extends LitElement {
67
58
  connectedCallback() {
68
59
  super.connectedCallback();
69
60
  connectLabel(this);
70
- connectForm(this);
71
61
  }
72
62
  disconnectedCallback() {
73
63
  super.disconnectedCallback();
74
64
  disconnectLabel(this);
75
- disconnectForm(this);
76
- }
77
- syncHiddenFormInput(input) {
78
- input.type = "checkbox";
79
65
  }
80
66
  getPath() {
81
67
  return this.indeterminate ? this.indeterminatePath : this.checked ? this.checkedPath : "";
@@ -108,7 +94,7 @@ class Checkbox extends LitElement {
108
94
  return this.interactiveContainer({ disabled: this.disabled, children: html`<div .ariaChecked=${this.checked} .ariaLabel=${getLabelText(this)} .ariaRequired=${this.required} class=${safeClassMap({
109
95
  [CSS.toggle]: true,
110
96
  [CSS_UTILITY.rtl]: rtl
111
- })} @blur=${this.onToggleBlur} @focus=${this.onToggleFocus} role=checkbox tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.toggleRef)}><svg aria-hidden=true class=${safeClassMap(CSS.check)} viewBox="0 0 16 16">${svg`<path d=${this.getPath() ?? nothing} />`}</svg><slot></slot></div>${this.labelText && InternalLabel({ bottomSpacingDisabled: true, labelText: this.labelText, required: this.required, spacingInlineStart: true, tooltipText: this.messages.required }) || ""}${HiddenFormInputSlot({ component: this })}` });
97
+ })} @blur=${this.onToggleBlur} @focus=${this.onToggleFocus} role=checkbox tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.toggleRef)}><svg aria-hidden=true class=${safeClassMap(CSS.check)} viewBox="0 0 16 16">${svg`<path d=${this.getPath() ?? nothing} />`}</svg><slot></slot></div>${this.labelText && InternalLabel({ bottomSpacingDisabled: true, labelText: this.labelText, required: this.required, spacingInlineStart: true, tooltipText: this.messages.required }) || ""}` });
112
98
  }
113
99
  }
114
100
  customElement("calcite-checkbox", Checkbox);
@@ -10,7 +10,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
10
10
  * @cssproperty [--calcite-chip-corner-radius] - Specifies the component's corner radius.
11
11
  * @cssproperty [--calcite-chip-icon-color] - Specifies the component's icon color.
12
12
  * @cssproperty [--calcite-chip-select-icon-color-press] - Specifies the component's selection element icon color when active.
13
- * @cssproperty [--calcite-chip-select-icon-color-pressed] - [Deprecated] Use `--calcite-chip-select-icon-color-press`. Specifies the component's selection element icon color when active.
13
+ * @cssproperty [--calcite-chip-select-icon-color-pressed] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-chip-select-icon-color-press` instead. Specifies the component's selection element icon color when active.
14
14
  * @cssproperty [--calcite-chip-select-icon-color] - Specifies the component's selection element icon color.
15
15
  * @cssproperty [--calcite-chip-text-color] - Specifies the component's text color.
16
16
  * @slot - A slot for adding text.
@@ -89,7 +89,7 @@ export abstract class Chip extends LitElement {
89
89
  * Sets focus on the component.
90
90
  *
91
91
  * @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
92
- * @mdn [focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
92
+ * @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
93
93
  */
94
94
  setFocus(options?: FocusOptions): Promise<void>;
95
95
  /** Fires when the component's close button is selected. */