@esri/calcite-components 1.0.0-next.342 → 1.0.0-next.346

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 (332) hide show
  1. package/dist/calcite/assets/calcite-icon/explore16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
  10. package/dist/calcite/calcite.esm.js +1 -1
  11. package/dist/calcite/{p-3ba581cf.entry.js → p-0071ba5b.entry.js} +1 -1
  12. package/dist/calcite/p-019c7493.js +5 -0
  13. package/dist/calcite/{p-42f853ae.system.entry.js → p-026a5468.system.entry.js} +1 -1
  14. package/dist/calcite/{p-d4561697.system.entry.js → p-0a68440b.system.entry.js} +1 -1
  15. package/dist/calcite/{p-bf38d77d.system.entry.js → p-0b71f281.system.entry.js} +1 -1
  16. package/dist/calcite/{p-7cf59f80.system.entry.js → p-0eb365bc.system.entry.js} +1 -1
  17. package/dist/calcite/{p-1cbe69ff.system.entry.js → p-0fb7d7ec.system.entry.js} +1 -1
  18. package/dist/calcite/{p-11b4f866.system.entry.js → p-1032abdf.system.entry.js} +1 -1
  19. package/dist/calcite/{p-4e9d072a.system.js → p-11b9e4bb.system.js} +1 -1
  20. package/dist/calcite/{p-4639388a.system.entry.js → p-11e27712.system.entry.js} +1 -1
  21. package/dist/calcite/{p-6d8a5959.entry.js → p-14c32017.entry.js} +1 -1
  22. package/dist/calcite/p-18c4af8f.system.js +5 -0
  23. package/dist/calcite/p-18d9a261.system.js +1 -1
  24. package/dist/calcite/{p-2c6e9854.entry.js → p-1919f0e7.entry.js} +1 -1
  25. package/dist/calcite/{p-5c6f2de9.system.entry.js → p-196f7f73.system.entry.js} +1 -1
  26. package/dist/calcite/{p-ce704ece.js → p-1a378fd0.js} +1 -1
  27. package/dist/calcite/{p-b311fec9.entry.js → p-1bfae224.entry.js} +1 -1
  28. package/dist/calcite/{p-be589623.system.entry.js → p-1c54ee99.system.entry.js} +1 -1
  29. package/dist/calcite/{p-f3ec6f2c.entry.js → p-23659611.entry.js} +1 -1
  30. package/dist/calcite/{p-0c9ea65a.entry.js → p-27537d30.entry.js} +1 -1
  31. package/dist/calcite/{p-0f2b51bf.system.js → p-28d866ec.system.js} +1 -1
  32. package/dist/calcite/{p-4bedcfdd.system.entry.js → p-2ac714c0.system.entry.js} +1 -1
  33. package/dist/calcite/{p-28729351.entry.js → p-2c3944b7.entry.js} +1 -1
  34. package/dist/calcite/{p-130b7a05.system.entry.js → p-2c6eb09e.system.entry.js} +1 -1
  35. package/dist/calcite/{p-456fc41f.system.entry.js → p-3323412f.system.entry.js} +1 -1
  36. package/dist/calcite/{p-cac9db7d.entry.js → p-34093e68.entry.js} +1 -1
  37. package/dist/calcite/{p-9d0b76a0.system.entry.js → p-3866cc08.system.entry.js} +1 -1
  38. package/dist/calcite/{p-0ea8bce1.system.entry.js → p-3a66acfc.system.entry.js} +1 -1
  39. package/dist/calcite/{p-65c6c5a7.entry.js → p-3c3fc397.entry.js} +1 -1
  40. package/dist/calcite/{p-523bc291.system.js → p-3edc47cf.system.js} +1 -1
  41. package/dist/calcite/{p-8dbafcac.system.entry.js → p-4056b8f5.system.entry.js} +1 -1
  42. package/dist/calcite/{p-0229a408.js → p-41c6aa44.js} +1 -1
  43. package/dist/calcite/{p-a4762e4a.system.entry.js → p-41dbbb2e.system.entry.js} +1 -1
  44. package/dist/calcite/{p-eae4d478.entry.js → p-438ab0b5.entry.js} +1 -1
  45. package/dist/calcite/p-49ddb3bd.js +5 -0
  46. package/dist/calcite/{p-fc9ea70f.system.entry.js → p-5252b2a0.system.entry.js} +1 -1
  47. package/dist/calcite/{p-d3bd900e.js → p-52966b4c.js} +1 -1
  48. package/dist/calcite/{p-7fbab7bb.entry.js → p-5465d382.entry.js} +1 -1
  49. package/dist/calcite/p-5479a05d.entry.js +5 -0
  50. package/dist/calcite/{p-e01985ce.system.entry.js → p-5517cd43.system.entry.js} +1 -1
  51. package/dist/calcite/{p-7677d70d.entry.js → p-57ac802c.entry.js} +1 -1
  52. package/dist/calcite/{p-14744d7b.system.entry.js → p-58f7c4e7.system.entry.js} +2 -2
  53. package/dist/calcite/{p-ac03fd82.system.entry.js → p-5a3da753.system.entry.js} +1 -1
  54. package/dist/calcite/{p-16f89a95.entry.js → p-5b71fd3d.entry.js} +1 -1
  55. package/dist/calcite/p-5baa2d34.entry.js +5 -0
  56. package/dist/calcite/{p-cc247988.entry.js → p-5d156676.entry.js} +1 -1
  57. package/dist/calcite/p-5e4b6b1b.system.entry.js +5 -0
  58. package/dist/calcite/{p-c34c4414.system.js → p-5f358f82.system.js} +1 -1
  59. package/dist/calcite/{p-8554d028.system.entry.js → p-605f9465.system.entry.js} +1 -1
  60. package/dist/calcite/{p-33fa07ab.system.entry.js → p-60a4c623.system.entry.js} +1 -1
  61. package/dist/calcite/{p-07779a47.entry.js → p-627a5f7b.entry.js} +1 -1
  62. package/dist/calcite/{p-82d19468.entry.js → p-6394f74a.entry.js} +1 -1
  63. package/dist/calcite/{p-809eed64.system.entry.js → p-648a23bf.system.entry.js} +1 -1
  64. package/dist/calcite/{p-35a5c74c.system.js → p-6555a956.system.js} +1 -1
  65. package/dist/calcite/{p-d30dc8bd.entry.js → p-66204690.entry.js} +1 -1
  66. package/dist/calcite/{p-c1912740.system.entry.js → p-6648629d.system.entry.js} +1 -1
  67. package/dist/calcite/{p-1705739f.system.entry.js → p-6c8478b9.system.entry.js} +2 -2
  68. package/dist/calcite/{p-c4b4312c.entry.js → p-6de70221.entry.js} +1 -1
  69. package/dist/calcite/{p-e942dcc6.entry.js → p-6e31cbff.entry.js} +1 -1
  70. package/dist/calcite/{p-1ce0c26a.entry.js → p-7050bfd3.entry.js} +1 -1
  71. package/dist/calcite/{p-496a04e4.system.entry.js → p-7a49f97c.system.entry.js} +1 -1
  72. package/dist/calcite/{p-be7b205c.entry.js → p-7a9ea862.entry.js} +1 -1
  73. package/dist/calcite/{p-4f7ebefc.system.js → p-834ec82a.system.js} +1 -1
  74. package/dist/calcite/{p-e7f7b0f8.js → p-8396a2d2.js} +1 -1
  75. package/dist/calcite/{p-b5cab90f.entry.js → p-853bd81e.entry.js} +1 -1
  76. package/dist/calcite/{p-6e94b4ef.system.entry.js → p-8a406f82.system.entry.js} +1 -1
  77. package/dist/calcite/{p-6d42cf99.system.entry.js → p-8ba1b621.system.entry.js} +1 -1
  78. package/dist/calcite/{p-12a3d7b1.entry.js → p-8c3c5914.entry.js} +1 -1
  79. package/dist/calcite/{p-ec216f50.entry.js → p-8e2aea68.entry.js} +1 -1
  80. package/dist/calcite/{p-8ebc2d51.entry.js → p-8f32e98b.entry.js} +1 -1
  81. package/dist/calcite/{p-5c141491.entry.js → p-909a04c6.entry.js} +1 -1
  82. package/dist/calcite/p-91300144.js +5 -0
  83. package/dist/calcite/p-917ab4fb.entry.js +5 -0
  84. package/dist/calcite/p-947a15ea.system.js +5 -0
  85. package/dist/calcite/p-98efa8d1.system.entry.js +5 -0
  86. package/dist/calcite/{p-92dea7f7.entry.js → p-9a360708.entry.js} +1 -1
  87. package/dist/calcite/{p-86e37e14.system.js → p-9c571107.system.js} +1 -1
  88. package/dist/calcite/{p-1751551d.entry.js → p-9d6da675.entry.js} +1 -1
  89. package/dist/calcite/{p-3dae9da3.js → p-a19740a1.js} +1 -1
  90. package/dist/calcite/{p-73dad5ab.system.entry.js → p-a2315ee0.system.entry.js} +1 -1
  91. package/dist/calcite/{p-42814ab6.system.entry.js → p-a5e39e25.system.entry.js} +1 -1
  92. package/dist/calcite/{p-5c606052.system.entry.js → p-a7634adb.system.entry.js} +2 -2
  93. package/dist/calcite/{p-b3109189.system.entry.js → p-ac1e4091.system.entry.js} +1 -1
  94. package/dist/calcite/p-b05fbc28.entry.js +5 -0
  95. package/dist/calcite/{p-54d12b6f.entry.js → p-b45576da.entry.js} +1 -1
  96. package/dist/calcite/{p-e7577455.entry.js → p-b582fe81.entry.js} +1 -1
  97. package/dist/calcite/{p-ff623944.entry.js → p-b5da7d26.entry.js} +1 -1
  98. package/dist/calcite/{p-3e646c9b.js → p-b9985a8f.js} +1 -1
  99. package/dist/calcite/{p-985ac8a8.system.entry.js → p-c0f8e35a.system.entry.js} +1 -1
  100. package/dist/calcite/{p-0bb004b7.entry.js → p-c4c35d1b.entry.js} +1 -1
  101. package/dist/calcite/{p-e97696ee.system.entry.js → p-c80baf28.system.entry.js} +1 -1
  102. package/dist/calcite/{p-9180be05.system.entry.js → p-d1db78e7.system.entry.js} +1 -1
  103. package/dist/calcite/{p-1749e1a2.system.entry.js → p-d47c61ac.system.entry.js} +2 -2
  104. package/dist/calcite/{p-899920c9.entry.js → p-d650ec75.entry.js} +1 -1
  105. package/dist/calcite/{p-62e9b8a4.system.entry.js → p-d73fdd7f.system.entry.js} +1 -1
  106. package/dist/calcite/{p-fbcf0cdb.system.entry.js → p-da170a90.system.entry.js} +1 -1
  107. package/dist/calcite/{p-6691b847.system.entry.js → p-da7e1200.system.entry.js} +1 -1
  108. package/dist/calcite/{p-ee5aabd7.entry.js → p-dad53db1.entry.js} +1 -1
  109. package/dist/calcite/p-df9409db.entry.js +5 -0
  110. package/dist/calcite/p-e33346fd.system.entry.js +5 -0
  111. package/dist/calcite/{p-ee7ba765.entry.js → p-e5c97fcc.entry.js} +1 -1
  112. package/dist/calcite/{p-51819373.entry.js → p-e6e288cb.entry.js} +1 -1
  113. package/dist/calcite/p-ea59c57b.entry.js +5 -0
  114. package/dist/calcite/{p-e311dc47.entry.js → p-eba55232.entry.js} +1 -1
  115. package/dist/calcite/{p-9ee56933.entry.js → p-ee7cd75e.entry.js} +1 -1
  116. package/dist/calcite/{p-5a6ad843.system.entry.js → p-f39af806.system.entry.js} +2 -2
  117. package/dist/calcite/{p-15c5e94c.system.entry.js → p-f70d136e.system.entry.js} +1 -1
  118. package/dist/calcite/{p-1acfcee4.entry.js → p-f74583ec.entry.js} +1 -1
  119. package/dist/calcite/{p-109fdcb4.system.entry.js → p-f932a63e.system.entry.js} +1 -1
  120. package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-252bab6d.js} +1 -1
  121. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  122. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  123. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  124. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  125. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  126. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  127. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  128. package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
  129. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  130. package/dist/cjs/calcite-checkbox.cjs.entry.js +4 -4
  131. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  132. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
  133. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
  134. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +4 -4
  135. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +2 -2
  136. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  138. package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
  139. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  140. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +7 -7
  142. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  143. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +4 -4
  144. package/dist/cjs/calcite-input.cjs.entry.js +13 -12
  145. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  146. package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
  147. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  149. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
  150. package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
  151. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
  152. package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
  153. package/dist/cjs/calcite-radio-button.cjs.entry.js +20 -9
  154. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -48
  155. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  156. package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
  157. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  158. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  159. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  160. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +37 -2
  161. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  162. package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
  163. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
  164. package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
  165. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  166. package/dist/cjs/{dom-19822169.js → dom-5a52b331.js} +2 -1
  167. package/dist/cjs/{form-a5b44a1f.js → form-4f471f99.js} +1 -1
  168. package/dist/cjs/{label-8e3552b2.js → label-4c5b7b91.js} +1 -1
  169. package/dist/cjs/{locale-33c458dc.js → locale-ccfa66f6.js} +1 -1
  170. package/dist/cjs/{number-73f7b474.js → number-f57fd111.js} +13 -6
  171. package/dist/cjs/{popper-a7580aca.js → popper-864013e4.js} +1 -1
  172. package/dist/cjs/{resources-27b28faa.js → resources-7b91cec8.js} +1 -1
  173. package/dist/cjs/{resources-16974e48.js → resources-d3c42dc4.js} +1 -1
  174. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
  175. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
  176. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
  177. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
  178. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
  179. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
  180. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
  181. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
  182. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
  183. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
  184. package/dist/collection/components/calcite-input/calcite-input.js +8 -7
  185. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +4 -4
  186. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -5
  187. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
  188. package/dist/collection/components/calcite-tile/calcite-tile.css +37 -49
  189. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +50 -70
  190. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
  191. package/dist/collection/components/calcite-tile-select/resources.js +20 -0
  192. package/dist/collection/utils/dom.js +2 -1
  193. package/dist/collection/utils/number.js +13 -6
  194. package/dist/components/calcite-checkbox2.js +1 -1
  195. package/dist/components/calcite-input2.js +8 -7
  196. package/dist/components/calcite-radio-button.js +17 -6
  197. package/dist/components/calcite-radio-group-item.js +0 -45
  198. package/dist/components/calcite-tile-select.js +37 -2
  199. package/dist/components/calcite-tile2.js +1 -1
  200. package/dist/components/dom.js +2 -1
  201. package/dist/components/number.js +13 -6
  202. package/dist/custom-elements/index.js +334 -323
  203. package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-b6fabbc2.js} +1 -1
  204. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  205. package/dist/esm/calcite-action-bar.entry.js +2 -2
  206. package/dist/esm/calcite-action-group.entry.js +1 -1
  207. package/dist/esm/calcite-action-menu.entry.js +1 -1
  208. package/dist/esm/calcite-action-pad.entry.js +2 -2
  209. package/dist/esm/calcite-alert.entry.js +1 -1
  210. package/dist/esm/calcite-avatar.entry.js +1 -1
  211. package/dist/esm/calcite-block_2.entry.js +1 -1
  212. package/dist/esm/calcite-button.entry.js +2 -2
  213. package/dist/esm/calcite-checkbox.entry.js +4 -4
  214. package/dist/esm/calcite-chip.entry.js +1 -1
  215. package/dist/esm/calcite-color-picker_3.entry.js +1 -1
  216. package/dist/esm/calcite-combobox_3.entry.js +4 -4
  217. package/dist/esm/calcite-date-picker_4.entry.js +4 -4
  218. package/dist/esm/calcite-dropdown_3.entry.js +2 -2
  219. package/dist/esm/calcite-fab.entry.js +1 -1
  220. package/dist/esm/calcite-filter.entry.js +1 -1
  221. package/dist/esm/calcite-graph_2.entry.js +3 -3
  222. package/dist/esm/calcite-icon.entry.js +1 -1
  223. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  224. package/dist/esm/calcite-input-date-picker.entry.js +7 -7
  225. package/dist/esm/calcite-input-message.entry.js +1 -1
  226. package/dist/esm/calcite-input-time-picker_2.entry.js +4 -4
  227. package/dist/esm/calcite-input.entry.js +13 -12
  228. package/dist/esm/calcite-link.entry.js +1 -1
  229. package/dist/esm/calcite-list_3.entry.js +1 -1
  230. package/dist/esm/calcite-modal.entry.js +1 -1
  231. package/dist/esm/calcite-notice.entry.js +1 -1
  232. package/dist/esm/calcite-option_3.entry.js +3 -3
  233. package/dist/esm/calcite-panel.entry.js +1 -1
  234. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  235. package/dist/esm/calcite-popover_2.entry.js +2 -2
  236. package/dist/esm/calcite-radio-button.entry.js +20 -9
  237. package/dist/esm/calcite-radio-group_2.entry.js +3 -48
  238. package/dist/esm/calcite-rating.entry.js +3 -3
  239. package/dist/esm/calcite-shell_3.entry.js +1 -1
  240. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  241. package/dist/esm/calcite-switch.entry.js +3 -3
  242. package/dist/esm/calcite-tab_4.entry.js +1 -1
  243. package/dist/esm/calcite-tile-select_2.entry.js +37 -2
  244. package/dist/esm/calcite-tile.entry.js +2 -2
  245. package/dist/esm/calcite-tip_3.entry.js +1 -1
  246. package/dist/esm/calcite-tooltip_2.entry.js +2 -2
  247. package/dist/esm/calcite-tree_2.entry.js +1 -1
  248. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  249. package/dist/esm/{dom-f24e866c.js → dom-70477ebc.js} +2 -1
  250. package/dist/esm/{form-160b0fb5.js → form-4b3c1995.js} +1 -1
  251. package/dist/esm/{label-5559055d.js → label-905e5ef8.js} +1 -1
  252. package/dist/esm/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
  253. package/dist/esm/{number-06e8500e.js → number-eb92427e.js} +13 -6
  254. package/dist/esm/{popper-f5caedc4.js → popper-ba525bde.js} +1 -1
  255. package/dist/esm/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
  256. package/dist/esm/{resources-7501cc74.js → resources-c1b6ebde.js} +1 -1
  257. package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-b6fabbc2.js} +1 -1
  258. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  259. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  260. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  261. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  262. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  263. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  264. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  265. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  266. package/dist/esm-es5/calcite-button.entry.js +1 -1
  267. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  268. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  269. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  270. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  271. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  272. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  273. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  274. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  275. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  276. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  277. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  278. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  279. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  280. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  281. package/dist/esm-es5/calcite-input.entry.js +1 -1
  282. package/dist/esm-es5/calcite-link.entry.js +1 -1
  283. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  284. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  285. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  286. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  287. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  288. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  289. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  290. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  291. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  292. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  293. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  294. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  295. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  296. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  297. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  298. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  299. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  300. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  301. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  302. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  303. package/dist/esm-es5/dom-70477ebc.js +5 -0
  304. package/dist/esm-es5/{form-160b0fb5.js → form-4b3c1995.js} +1 -1
  305. package/dist/esm-es5/{label-5559055d.js → label-905e5ef8.js} +1 -1
  306. package/dist/esm-es5/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
  307. package/dist/esm-es5/number-eb92427e.js +5 -0
  308. package/dist/esm-es5/{popper-f5caedc4.js → popper-ba525bde.js} +1 -1
  309. package/dist/esm-es5/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
  310. package/dist/esm-es5/{resources-7501cc74.js → resources-c1b6ebde.js} +1 -1
  311. package/dist/extras/docs-json.json +1 -1
  312. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
  313. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -6
  314. package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
  315. package/hydrate/index.js +334 -323
  316. package/package.json +10 -10
  317. package/dist/calcite/p-04417e11.system.entry.js +0 -5
  318. package/dist/calcite/p-1942876c.js +0 -5
  319. package/dist/calcite/p-394d8b91.entry.js +0 -5
  320. package/dist/calcite/p-52cc870b.js +0 -5
  321. package/dist/calcite/p-66146f19.entry.js +0 -5
  322. package/dist/calcite/p-6ba77bae.entry.js +0 -5
  323. package/dist/calcite/p-6cc23c39.system.js +0 -5
  324. package/dist/calcite/p-83744979.system.js +0 -5
  325. package/dist/calcite/p-cc2166e7.system.entry.js +0 -5
  326. package/dist/calcite/p-d00824e4.system.entry.js +0 -5
  327. package/dist/calcite/p-d506cebd.entry.js +0 -5
  328. package/dist/calcite/p-d75a285d.entry.js +0 -5
  329. package/dist/calcite/p-e81cda9d.entry.js +0 -5
  330. package/dist/calcite/p-f595d924.js +0 -5
  331. package/dist/esm-es5/dom-f24e866c.js +0 -5
  332. package/dist/esm-es5/number-06e8500e.js +0 -5
@@ -228,18 +228,19 @@ export class CalciteInput {
228
228
  };
229
229
  this.setValue = (value, nativeEvent, committing = false) => {
230
230
  const previousValue = this.value;
231
- this.value = this.type === "number" ? sanitizeNumberString(value) : value;
232
231
  if (this.type === "number") {
233
- this.setLocalizedValue(this.value);
232
+ const sanitizedValue = sanitizeNumberString(value);
233
+ this.value = sanitizedValue;
234
+ this.setLocalizedValue(sanitizedValue);
235
+ }
236
+ else {
237
+ this.value = value;
234
238
  }
235
239
  if (nativeEvent) {
236
- if (this.type === "number") {
237
- value = sanitizeNumberString(value);
238
- }
239
240
  const calciteInputInputEvent = this.calciteInputInput.emit({
240
241
  element: this.childEl,
241
242
  nativeEvent,
242
- value
243
+ value: this.value
243
244
  });
244
245
  if (calciteInputInputEvent.defaultPrevented) {
245
246
  this.value = previousValue;
@@ -305,7 +306,7 @@ export class CalciteInput {
305
306
  this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
306
307
  }
307
308
  else {
308
- this.value = undefined;
309
+ this.value = "";
309
310
  }
310
311
  }
311
312
  connectLabel(this);
@@ -98,7 +98,7 @@
98
98
  }
99
99
 
100
100
  :host([hovered]) .radio,
101
- :host(:not([checked])[focused]) .radio {
101
+ :host(:not([checked])[focused]:not([disabled])) .radio {
102
102
  box-shadow: inset 0 0 0 2px var(--calcite-ui-brand);
103
103
  }
104
104
 
@@ -137,7 +137,7 @@
137
137
  box-shadow: inset 0 0 0 4px var(--calcite-ui-brand);
138
138
  }
139
139
 
140
- :host([scale=s][focused][checked]) .radio {
140
+ :host([scale=s][focused][checked]:not([disabled])) .radio {
141
141
  box-shadow: inset 0 0 0 4px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);
142
142
  }
143
143
 
@@ -146,7 +146,7 @@
146
146
  box-shadow: inset 0 0 0 5px var(--calcite-ui-brand);
147
147
  }
148
148
 
149
- :host([scale=m][focused][checked]) .radio {
149
+ :host([scale=m][focused][checked]:not([disabled])) .radio {
150
150
  box-shadow: inset 0 0 0 5px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);
151
151
  }
152
152
 
@@ -155,7 +155,7 @@
155
155
  box-shadow: inset 0 0 0 6px var(--calcite-ui-brand);
156
156
  }
157
157
 
158
- :host([scale=l][focused][checked]) .radio {
158
+ :host([scale=l][focused][checked]:not([disabled])) .radio {
159
159
  box-shadow: inset 0 0 0 6px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);
160
160
  }
161
161
 
@@ -115,8 +115,10 @@ export class CalciteRadioButton {
115
115
  this.calciteInternalRadioButtonBlur.emit();
116
116
  };
117
117
  this.onContainerFocus = () => {
118
- this.focused = true;
119
- this.calciteInternalRadioButtonFocus.emit();
118
+ if (!this.disabled) {
119
+ this.focused = true;
120
+ this.calciteInternalRadioButtonFocus.emit();
121
+ }
120
122
  };
121
123
  }
122
124
  checkedChanged(newChecked) {
@@ -139,7 +141,9 @@ export class CalciteRadioButton {
139
141
  //--------------------------------------------------------------------------
140
142
  /** Sets focus on the component. */
141
143
  async setFocus() {
142
- focusElement(this.containerEl);
144
+ if (!this.disabled) {
145
+ focusElement(this.containerEl);
146
+ }
143
147
  }
144
148
  onLabelClick(event) {
145
149
  if (!this.disabled && !this.hidden) {
@@ -192,6 +196,12 @@ export class CalciteRadioButton {
192
196
  }
193
197
  });
194
198
  }
199
+ getTabIndex() {
200
+ if (this.disabled) {
201
+ return undefined;
202
+ }
203
+ return this.checked || this.isDefaultSelectable() ? 0 : -1;
204
+ }
195
205
  //--------------------------------------------------------------------------
196
206
  //
197
207
  // Event Listeners
@@ -218,7 +228,7 @@ export class CalciteRadioButton {
218
228
  connectForm(this);
219
229
  }
220
230
  componentDidLoad() {
221
- if (this.focused) {
231
+ if (this.focused && !this.disabled) {
222
232
  this.setFocus();
223
233
  }
224
234
  }
@@ -232,8 +242,9 @@ export class CalciteRadioButton {
232
242
  //
233
243
  // --------------------------------------------------------------------------
234
244
  render() {
245
+ const tabIndex = this.getTabIndex();
235
246
  return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown },
236
- h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: this.checked || this.isDefaultSelectable() ? 0 : -1 },
247
+ h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: tabIndex },
237
248
  h("div", { class: "radio" })),
238
249
  h(HiddenFormInputSlot, { component: this })));
239
250
  }
@@ -5,7 +5,6 @@
5
5
  import { Component, h, Prop, Element, Event, Host, Watch } from "@stencil/core";
6
6
  import { getElementProp } from "../../utils/dom";
7
7
  import { SLOTS, CSS } from "./resources";
8
- import { createObserver } from "../../utils/observers";
9
8
  export class CalciteRadioGroupItem {
10
9
  constructor() {
11
10
  //--------------------------------------------------------------------------
@@ -19,30 +18,9 @@ export class CalciteRadioGroupItem {
19
18
  this.iconFlipRtl = false;
20
19
  /** optionally used with icon, select where to position the icon */
21
20
  this.iconPosition = "start";
22
- this.mutationObserver = createObserver("mutation", () => this.syncFromExternalInput());
23
21
  }
24
22
  handleCheckedChange() {
25
23
  this.calciteRadioGroupItemChange.emit();
26
- this.syncToExternalInput();
27
- }
28
- //--------------------------------------------------------------------------
29
- //
30
- // Lifecycle
31
- //
32
- //--------------------------------------------------------------------------
33
- connectedCallback() {
34
- var _a;
35
- const inputProxy = this.el.querySelector(`input[slot=${SLOTS.input}]`);
36
- if (inputProxy) {
37
- this.value = inputProxy.value;
38
- this.checked = inputProxy.checked;
39
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(inputProxy, { attributes: true });
40
- }
41
- this.inputProxy = inputProxy;
42
- }
43
- disconnectedCallback() {
44
- var _a;
45
- (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
46
24
  }
47
25
  render() {
48
26
  const { checked, value } = this;
@@ -63,29 +41,6 @@ export class CalciteRadioGroupItem {
63
41
  h("slot", { name: SLOTS.input }),
64
42
  this.icon && this.iconPosition === "end" ? iconEl : null)));
65
43
  }
66
- //--------------------------------------------------------------------------
67
- //
68
- // Private Methods
69
- //
70
- //--------------------------------------------------------------------------
71
- syncFromExternalInput() {
72
- if (this.inputProxy) {
73
- this.value = this.inputProxy.value;
74
- this.checked = this.inputProxy.checked;
75
- }
76
- }
77
- syncToExternalInput() {
78
- if (!this.inputProxy) {
79
- return;
80
- }
81
- this.inputProxy.value = this.value;
82
- if (this.checked) {
83
- this.inputProxy.setAttribute("checked", "");
84
- }
85
- else {
86
- this.inputProxy.removeAttribute("checked");
87
- }
88
- }
89
44
  static get is() { return "calcite-radio-group-item"; }
90
45
  static get encapsulation() { return "shadow"; }
91
46
  static get originalStyleUrls() { return {
@@ -88,46 +88,13 @@
88
88
  transition-duration: 150ms;
89
89
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
90
90
  }
91
-
92
- :host(:not([embed])) {
93
- padding: 0.75rem;
94
- box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
95
- }
96
-
97
- :host(:not([embed])[href]:hover) {
98
- cursor: pointer;
99
- box-shadow: 0 0 0 2px var(--calcite-ui-brand);
100
- }
101
-
102
- :host(:not([embed])[href]:active) {
103
- box-shadow: 0 0 0 3px var(--calcite-ui-brand);
104
- }
105
-
106
- :host([icon][heading]:not([description]):not([embed])) {
107
- padding: 0px;
108
- }
109
-
110
- :host([icon][heading]:not([description])) .icon {
111
- display: flex;
112
- justify-content: center;
113
- }
114
- :host([icon][heading]:not([description])) .large-visual {
115
- text-align: center;
116
- }
117
-
118
- :host([disabled]) {
119
- opacity: var(--calcite-ui-opacity-disabled);
120
- pointer-events: none;
121
- }
122
-
123
- .container {
91
+ :host .container {
124
92
  pointer-events: none;
125
93
  display: grid;
126
94
  grid-template-columns: repeat(1, minmax(0, 1fr));
127
95
  gap: 0.5rem;
128
96
  }
129
-
130
- .content {
97
+ :host .content {
131
98
  display: flex;
132
99
  flex: 1 1 auto;
133
100
  flex-direction: column;
@@ -135,8 +102,7 @@
135
102
  gap: 0.5rem;
136
103
  width: 10%;
137
104
  }
138
-
139
- .content-container {
105
+ :host .content-container {
140
106
  display: flex;
141
107
  width: 100%;
142
108
  flex: 1 1 auto;
@@ -147,20 +113,18 @@
147
113
  outline-color: transparent;
148
114
  transition: outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;
149
115
  }
150
-
151
- .content-slot-container {
116
+ :host .content-slot-container {
152
117
  display: flex;
153
118
  align-items: center;
154
119
  background-color: var(--calcite-ui-foreground-1);
155
120
  }
156
- .content-slot-container:first-child {
121
+ :host .content-slot-container:first-child {
157
122
  padding-right: 0.75rem;
158
123
  }
159
- .content-slot-container:last-child {
124
+ :host .content-slot-container:last-child {
160
125
  padding-left: 0.75rem;
161
126
  }
162
-
163
- .heading {
127
+ :host .heading {
164
128
  pointer-events: none;
165
129
  overflow-wrap: break-word;
166
130
  font-size: var(--calcite-font-size--1);
@@ -170,19 +134,20 @@
170
134
  transition-duration: 150ms;
171
135
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
172
136
  }
173
-
174
- .large-visual {
137
+ :host .large-visual {
175
138
  align-items: center;
139
+ text-align: center;
176
140
  min-height: 12rem;
177
141
  }
178
- .large-visual .icon {
142
+ :host .large-visual .icon {
143
+ display: flex;
144
+ justify-content: center;
179
145
  align-self: flex-end;
180
146
  }
181
- .large-visual .content-container {
147
+ :host .large-visual .content-container {
182
148
  align-self: center;
183
149
  }
184
-
185
- .description {
150
+ :host .description {
186
151
  pointer-events: none;
187
152
  font-size: var(--calcite-font-size--2);
188
153
  line-height: 1.375;
@@ -191,6 +156,29 @@
191
156
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
192
157
  }
193
158
 
159
+ :host(:not([embed])) {
160
+ padding: 0.75rem;
161
+ box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
162
+ }
163
+
164
+ :host(:not([embed])[href]:hover) {
165
+ cursor: pointer;
166
+ box-shadow: 0 0 0 2px var(--calcite-ui-brand);
167
+ }
168
+
169
+ :host(:not([embed])[href]:active) {
170
+ box-shadow: 0 0 0 3px var(--calcite-ui-brand);
171
+ }
172
+
173
+ :host([icon][heading]:not([description]):not([embed])) {
174
+ padding: 0px;
175
+ }
176
+
177
+ :host([disabled]) {
178
+ opacity: var(--calcite-ui-opacity-disabled);
179
+ pointer-events: none;
180
+ }
181
+
194
182
  :host(:hover) .heading, :host([active]) .heading {
195
183
  color: var(--calcite-ui-text-1);
196
184
  }
@@ -78,7 +78,10 @@
78
78
  display: none;
79
79
  }
80
80
 
81
- .root {
81
+ :host {
82
+ display: block;
83
+ }
84
+ :host .container {
82
85
  background-color: var(--calcite-ui-foreground-1);
83
86
  box-shadow: 0 0 0 1px var(--calcite-ui-border-2);
84
87
  box-sizing: border-box;
@@ -92,47 +95,14 @@
92
95
  vertical-align: top;
93
96
  z-index: 10;
94
97
  }
95
-
96
- :host {
97
- display: block;
98
- }
99
-
100
- :host(:hover) .root {
101
- z-index: 20;
102
- box-shadow: 0 0 0 1px var(--calcite-ui-border-1);
103
- }
104
-
105
- :host([checked]) .root {
106
- z-index: 30;
107
- box-shadow: 0 0 0 1px var(--calcite-ui-brand);
108
- }
109
-
110
- .root.focused {
98
+ :host .container.checked {
111
99
  z-index: 30;
112
- }
113
-
114
- :host(:not([input-enabled]):hover) .root {
115
100
  box-shadow: 0 0 0 1px var(--calcite-ui-brand);
116
101
  }
117
-
118
- :host(:not([input-enabled])) .root.focused {
119
- box-shadow: 0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);
120
- }
121
-
122
- :host([width=full]) .root {
123
- display: flex;
124
- max-width: none;
125
- }
126
- :host([width=full]) calcite-tile {
127
- flex: 1 1 auto;
128
- }
129
-
130
- :host([input-alignment=start][width=full]) calcite-tile {
131
- order: 1;
132
- margin-inline-start: 0.75rem;
102
+ :host .container.heading-only {
103
+ align-items: center;
133
104
  }
134
-
135
- :host(:not([input-enabled])) ::slotted(calcite-checkbox), :host(:not([input-enabled])) ::slotted(calcite-radio-button) {
105
+ :host .container:not(.input-enabled) ::slotted(calcite-checkbox), :host .container:not(.input-enabled) ::slotted(calcite-radio-button) {
136
106
  position: absolute;
137
107
  width: 1px;
138
108
  height: 1px;
@@ -143,54 +113,64 @@
143
113
  white-space: nowrap;
144
114
  border-width: 0;
145
115
  }
146
-
147
- :host([heading]:not([icon]):not([description])) .root {
148
- align-items: center;
116
+ :host .container.focused:not(.disabled) {
117
+ z-index: 30;
149
118
  }
150
-
151
- :host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) .root,
152
- :host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) .root {
119
+ :host .container.focused:not(.disabled):not(.input-enabled) {
120
+ box-shadow: 0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);
121
+ }
122
+ :host .container.input-enabled.input-alignment-start.width-auto.heading-only, :host .container.input-enabled.input-alignment-start.width-auto.icon-only, :host .container.input-enabled.input-alignment-start.width-auto.description-only, :host .container.input-enabled.input-alignment-start.width-auto.heading.description, :host .container.input-enabled.input-alignment-start.width-auto.icon.description, :host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description {
153
123
  display: inline-grid;
154
- grid-gap: 0.75rem;
155
124
  grid-template-columns: max-content 1fr;
156
125
  }
157
- :host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-checkbox),
158
- :host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-radio-button),
159
- :host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-checkbox),
160
- :host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-radio-button) {
161
- order: 0;
126
+ :host .container.input-enabled.input-alignment-start.heading-only, :host .container.input-enabled.input-alignment-start.icon-only, :host .container.input-enabled.input-alignment-start.description-only, :host .container.input-enabled.input-alignment-start.heading.description, :host .container.input-enabled.input-alignment-start.icon.description, :host .container.input-enabled.input-alignment-start.heading.icon.description {
127
+ gap: 0.75rem;
162
128
  }
163
- :host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) calcite-tile,
164
- :host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) calcite-tile {
129
+ :host .container.input-enabled.input-alignment-start calcite-tile {
165
130
  order: 1;
166
131
  }
167
-
168
- :host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-checkbox),
169
- :host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-radio-button) {
132
+ :host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),
133
+ :host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button) {
170
134
  position: absolute;
171
- top: 0.75rem;
135
+ inset-block-start: 0.75rem;
172
136
  inset-inline-start: 0.75rem;
173
137
  }
174
-
175
- :host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-checkbox),
176
- :host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-radio-button) {
177
- position: absolute;
178
- top: 0.75rem;
179
- inset-inline-end: 0.75rem;
180
- }
181
-
182
- :host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) .root {
138
+ :host .container.input-enabled.input-alignment-end.width-auto.heading-only, :host .container.input-enabled.input-alignment-end.width-auto.icon-only {
183
139
  display: inline-grid;
184
140
  grid-gap: 0.75rem;
185
141
  grid-template-columns: max-content 1fr;
186
142
  }
187
- :host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-checkbox),
188
- :host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-radio-button) {
189
- justify-self: flex-end;
143
+ :host .container.input-enabled.input-alignment-end.heading-only, :host .container.input-enabled.input-alignment-end.icon-only {
144
+ gap: 0.75rem;
145
+ }
146
+ :host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),
147
+ :host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button), :host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),
148
+ :host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button), :host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),
149
+ :host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button), :host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),
150
+ :host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button) {
151
+ position: absolute;
152
+ inset-block-start: 0.75rem;
153
+ inset-inline-end: 0.75rem;
154
+ }
155
+ :host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),
156
+ :host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button) {
157
+ position: absolute;
158
+ inset-block-start: 0.75rem;
159
+ inset-inline-end: 0.75rem;
160
+ }
161
+ :host .container.width-full {
162
+ display: flex;
163
+ max-width: none;
164
+ }
165
+ :host .container.width-full calcite-tile {
166
+ flex: 1 1 auto;
190
167
  }
191
168
 
192
- :host([hidden]) {
193
- display: none;
169
+ :host(:hover) .container {
170
+ z-index: 20;
171
+ }
172
+ :host(:hover) .container:not(.input-enabled) {
173
+ box-shadow: 0 0 0 1px var(--calcite-ui-brand);
194
174
  }
195
175
 
196
176
  :host([disabled]) {
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { Component, Element, Event, h, Prop, Listen, Watch, State, Method } from "@stencil/core";
6
6
  import { guid } from "../../utils/guid";
7
+ import { CSS } from "./resources";
7
8
  /**
8
9
  * @slot - A slot for adding custom content.
9
10
  */
@@ -149,8 +150,26 @@ export class CalciteTileSelect {
149
150
  this.el.insertAdjacentElement("beforeend", this.input);
150
151
  }
151
152
  render() {
152
- return (h("div", { class: { focused: this.focused, root: true } },
153
- h("calcite-tile", { active: this.checked, description: this.description, embed: true, heading: this.heading, icon: this.icon }),
153
+ const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
154
+ return (h("div", { class: {
155
+ checked,
156
+ container: true,
157
+ [CSS.description]: Boolean(description),
158
+ [CSS.descriptionOnly]: Boolean(!heading && !icon && description),
159
+ disabled,
160
+ focused,
161
+ [CSS.heading]: Boolean(heading),
162
+ [CSS.headingOnly]: heading && !icon && !description,
163
+ [CSS.icon]: Boolean(icon),
164
+ [CSS.iconOnly]: !heading && icon && !description,
165
+ [CSS.inputAlignmentEnd]: inputAlignment === "end",
166
+ [CSS.inputAlignmentStart]: inputAlignment === "start",
167
+ [CSS.inputEnabled]: inputEnabled,
168
+ [CSS.largeVisual]: heading && icon && !description,
169
+ [CSS.widthAuto]: width === "auto",
170
+ [CSS.widthFull]: width === "full"
171
+ } },
172
+ h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }),
154
173
  h("slot", null)));
155
174
  }
156
175
  static get is() { return "calcite-tile-select"; }
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ */
5
+ export const CSS = {
6
+ checked: "checked",
7
+ description: "description",
8
+ descriptionOnly: "description-only",
9
+ disabled: "disabled",
10
+ heading: "heading",
11
+ headingOnly: "heading-only",
12
+ icon: "icon",
13
+ iconOnly: "icon-only",
14
+ inputAlignmentEnd: "input-alignment-end",
15
+ inputAlignmentStart: "input-alignment-start",
16
+ inputEnabled: "input-enabled",
17
+ largeVisual: "large-visual",
18
+ widthAuto: "width-auto",
19
+ widthFull: "width-full"
20
+ };
@@ -21,7 +21,8 @@ export function nodeListToArray(nodeList) {
21
21
  return Array.isArray(nodeList) ? nodeList : Array.from(nodeList);
22
22
  }
23
23
  export function getThemeName(el) {
24
- return closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}`) ? "dark" : "light";
24
+ const closestElWithTheme = closestElementCrossShadowBoundary(el, `.${CSS_UTILITY.darkTheme}, .${CSS_UTILITY.lightTheme}`);
25
+ return (closestElWithTheme === null || closestElWithTheme === void 0 ? void 0 : closestElWithTheme.classList.contains("calcite-theme-dark")) ? "dark" : "light";
25
26
  }
26
27
  export function getElementDir(el) {
27
28
  const prop = "dir";
@@ -8,7 +8,7 @@ export function isValidNumber(numberString) {
8
8
  }
9
9
  export function parseNumberString(numberString) {
10
10
  if (!numberString || !stringContainsNumbers(numberString)) {
11
- return null;
11
+ return "";
12
12
  }
13
13
  let containsDecimal = false;
14
14
  const result = numberString
@@ -27,17 +27,24 @@ export function parseNumberString(numberString) {
27
27
  return isValidNumber(result) ? Number(result).toString() : null;
28
28
  }
29
29
  export function sanitizeDecimalString(decimalString) {
30
- return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(".")) ? decimalString.replace(".", "") : decimalString;
30
+ const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
31
+ return decimalString.replace(decimalAtEndOfStringButNotStart, "");
31
32
  }
32
33
  export function sanitizeNegativeString(negativeString) {
33
- return negativeString.charAt(0) + negativeString.substring(1).replace(/-/g, "");
34
+ const allHyphensExceptTheStart = /(?!^-)-/g;
35
+ return negativeString.replace(allHyphensExceptTheStart, "");
34
36
  }
35
37
  export function sanitizeLeadingZeroString(zeroString) {
36
- return zeroString.replace(/^0+$/, "0");
38
+ const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
39
+ return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
37
40
  }
38
41
  export function sanitizeNumberString(value) {
39
- return value
40
- ? Number(sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)))).toString()
42
+ const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
43
+ const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
44
+ return isValidNumber(sanitizedValue)
45
+ ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
46
+ ? sanitizedValue
47
+ : Number(sanitizedValue).toString()
41
48
  : value;
42
49
  }
43
50
  function stringContainsNumbers(string) {
@@ -120,7 +120,7 @@ let CalciteCheckbox = class extends HTMLElement {
120
120
  //
121
121
  // --------------------------------------------------------------------------
122
122
  render() {
123
- return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
123
+ return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, ref: (toggleEl) => (this.toggleEl = toggleEl), role: "checkbox", tabIndex: this.disabled ? undefined : 0 }, h("svg", { class: "check-svg", viewBox: "0 0 16 16" }, h("path", { d: this.getPath() })), h("slot", null)), h(HiddenFormInputSlot, { component: this })));
124
124
  }
125
125
  get el() { return this; }
126
126
  static get style() { return calciteCheckboxCss; }
@@ -262,18 +262,19 @@ let CalciteInput = class extends HTMLElement {
262
262
  };
263
263
  this.setValue = (value, nativeEvent, committing = false) => {
264
264
  const previousValue = this.value;
265
- this.value = this.type === "number" ? sanitizeNumberString(value) : value;
266
265
  if (this.type === "number") {
267
- this.setLocalizedValue(this.value);
266
+ const sanitizedValue = sanitizeNumberString(value);
267
+ this.value = sanitizedValue;
268
+ this.setLocalizedValue(sanitizedValue);
269
+ }
270
+ else {
271
+ this.value = value;
268
272
  }
269
273
  if (nativeEvent) {
270
- if (this.type === "number") {
271
- value = sanitizeNumberString(value);
272
- }
273
274
  const calciteInputInputEvent = this.calciteInputInput.emit({
274
275
  element: this.childEl,
275
276
  nativeEvent,
276
- value
277
+ value: this.value
277
278
  });
278
279
  if (calciteInputInputEvent.defaultPrevented) {
279
280
  this.value = previousValue;
@@ -339,7 +340,7 @@ let CalciteInput = class extends HTMLElement {
339
340
  this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
340
341
  }
341
342
  else {
342
- this.value = undefined;
343
+ this.value = "";
343
344
  }
344
345
  }
345
346
  connectLabel(this);