@esri/calcite-components 1.0.0-next.343 → 1.0.0-next.347

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 (335) 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.css +1 -1
  11. package/dist/calcite/calcite.esm.js +1 -1
  12. package/dist/calcite/{p-3ba581cf.entry.js → p-0071ba5b.entry.js} +1 -1
  13. package/dist/calcite/p-019c7493.js +5 -0
  14. package/dist/calcite/{p-42f853ae.system.entry.js → p-026a5468.system.entry.js} +1 -1
  15. package/dist/calcite/{p-d4561697.system.entry.js → p-0a68440b.system.entry.js} +1 -1
  16. package/dist/calcite/{p-bf38d77d.system.entry.js → p-0b71f281.system.entry.js} +1 -1
  17. package/dist/calcite/{p-7cf59f80.system.entry.js → p-0eb365bc.system.entry.js} +1 -1
  18. package/dist/calcite/{p-6b5996c3.system.entry.js → p-0fb7d7ec.system.entry.js} +1 -1
  19. package/dist/calcite/{p-11b4f866.system.entry.js → p-1032abdf.system.entry.js} +1 -1
  20. package/dist/calcite/{p-4c441dea.system.js → p-11b9e4bb.system.js} +1 -1
  21. package/dist/calcite/{p-4639388a.system.entry.js → p-11e27712.system.entry.js} +1 -1
  22. package/dist/calcite/{p-6d8a5959.entry.js → p-14c32017.entry.js} +1 -1
  23. package/dist/calcite/{p-15c5e94c.system.entry.js → p-17b38217.system.entry.js} +1 -1
  24. package/dist/calcite/{p-34aadde6.system.js → p-18c4af8f.system.js} +1 -1
  25. package/dist/calcite/p-18d9a261.system.js +1 -1
  26. package/dist/calcite/{p-2c6e9854.entry.js → p-1919f0e7.entry.js} +1 -1
  27. package/dist/calcite/{p-5c6f2de9.system.entry.js → p-196f7f73.system.entry.js} +1 -1
  28. package/dist/calcite/{p-ce704ece.js → p-1a378fd0.js} +1 -1
  29. package/dist/calcite/{p-b311fec9.entry.js → p-1bfae224.entry.js} +1 -1
  30. package/dist/calcite/{p-be589623.system.entry.js → p-1c54ee99.system.entry.js} +1 -1
  31. package/dist/calcite/{p-f3ec6f2c.entry.js → p-23659611.entry.js} +1 -1
  32. package/dist/calcite/{p-0c9ea65a.entry.js → p-27537d30.entry.js} +1 -1
  33. package/dist/calcite/{p-0f2b51bf.system.js → p-28d866ec.system.js} +1 -1
  34. package/dist/calcite/{p-4bedcfdd.system.entry.js → p-2ac714c0.system.entry.js} +1 -1
  35. package/dist/calcite/{p-28729351.entry.js → p-2c3944b7.entry.js} +1 -1
  36. package/dist/calcite/{p-130b7a05.system.entry.js → p-2c6eb09e.system.entry.js} +1 -1
  37. package/dist/calcite/{p-4fc37efc.system.entry.js → p-3323412f.system.entry.js} +1 -1
  38. package/dist/calcite/{p-cac9db7d.entry.js → p-34093e68.entry.js} +1 -1
  39. package/dist/calcite/{p-9d0b76a0.system.entry.js → p-3866cc08.system.entry.js} +1 -1
  40. package/dist/calcite/{p-0ea8bce1.system.entry.js → p-3a66acfc.system.entry.js} +1 -1
  41. package/dist/calcite/{p-65c6c5a7.entry.js → p-3c3fc397.entry.js} +1 -1
  42. package/dist/calcite/{p-523bc291.system.js → p-3edc47cf.system.js} +1 -1
  43. package/dist/calcite/{p-8dbafcac.system.entry.js → p-4056b8f5.system.entry.js} +1 -1
  44. package/dist/calcite/{p-0229a408.js → p-41c6aa44.js} +1 -1
  45. package/dist/calcite/{p-a4762e4a.system.entry.js → p-41dbbb2e.system.entry.js} +1 -1
  46. package/dist/calcite/p-49ddb3bd.js +5 -0
  47. package/dist/calcite/{p-fc9ea70f.system.entry.js → p-5252b2a0.system.entry.js} +1 -1
  48. package/dist/calcite/{p-f50a353a.js → p-52966b4c.js} +1 -1
  49. package/dist/calcite/{p-7fbab7bb.entry.js → p-5465d382.entry.js} +1 -1
  50. package/dist/calcite/p-5479a05d.entry.js +5 -0
  51. package/dist/calcite/{p-e01985ce.system.entry.js → p-5517cd43.system.entry.js} +1 -1
  52. package/dist/calcite/{p-7677d70d.entry.js → p-57ac802c.entry.js} +1 -1
  53. package/dist/calcite/{p-0fa7d7eb.system.entry.js → p-58f7c4e7.system.entry.js} +2 -2
  54. package/dist/calcite/{p-ac03fd82.system.entry.js → p-5a3da753.system.entry.js} +1 -1
  55. package/dist/calcite/{p-16f89a95.entry.js → p-5b71fd3d.entry.js} +1 -1
  56. package/dist/calcite/p-5baa2d34.entry.js +5 -0
  57. package/dist/calcite/{p-cc247988.entry.js → p-5d156676.entry.js} +1 -1
  58. package/dist/calcite/p-5e4b6b1b.system.entry.js +5 -0
  59. package/dist/calcite/{p-c34c4414.system.js → p-5f358f82.system.js} +1 -1
  60. package/dist/calcite/{p-8554d028.system.entry.js → p-605f9465.system.entry.js} +1 -1
  61. package/dist/calcite/{p-33fa07ab.system.entry.js → p-60a4c623.system.entry.js} +1 -1
  62. package/dist/calcite/{p-07779a47.entry.js → p-627a5f7b.entry.js} +1 -1
  63. package/dist/calcite/{p-82d19468.entry.js → p-6394f74a.entry.js} +1 -1
  64. package/dist/calcite/{p-809eed64.system.entry.js → p-648a23bf.system.entry.js} +1 -1
  65. package/dist/calcite/{p-35a5c74c.system.js → p-6555a956.system.js} +1 -1
  66. package/dist/calcite/{p-d30dc8bd.entry.js → p-66204690.entry.js} +1 -1
  67. package/dist/calcite/{p-c1912740.system.entry.js → p-6648629d.system.entry.js} +1 -1
  68. package/dist/calcite/{p-1705739f.system.entry.js → p-6c8478b9.system.entry.js} +2 -2
  69. package/dist/calcite/{p-23418eda.entry.js → p-6de70221.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-669a3067.system.js → p-834ec82a.system.js} +1 -1
  74. package/dist/calcite/{p-bb5b0182.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-da8ff8cb.js → p-91300144.js} +1 -1
  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-b3109189.system.entry.js → p-a260ebdb.system.entry.js} +1 -1
  92. package/dist/calcite/{p-42814ab6.system.entry.js → p-a5e39e25.system.entry.js} +1 -1
  93. package/dist/calcite/{p-5c606052.system.entry.js → p-a7634adb.system.entry.js} +2 -2
  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-550c42c5.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-eae4d478.entry.js → p-b94ab43b.entry.js} +1 -1
  99. package/dist/calcite/{p-3e646c9b.js → p-b9985a8f.js} +1 -1
  100. package/dist/calcite/{p-985ac8a8.system.entry.js → p-c0f8e35a.system.entry.js} +1 -1
  101. package/dist/calcite/{p-0bb004b7.entry.js → p-c4c35d1b.entry.js} +1 -1
  102. package/dist/calcite/{p-e97696ee.system.entry.js → p-c80baf28.system.entry.js} +1 -1
  103. package/dist/calcite/{p-9180be05.system.entry.js → p-d1db78e7.system.entry.js} +1 -1
  104. package/dist/calcite/{p-1749e1a2.system.entry.js → p-d47c61ac.system.entry.js} +2 -2
  105. package/dist/calcite/{p-899920c9.entry.js → p-d650ec75.entry.js} +1 -1
  106. package/dist/calcite/{p-62e9b8a4.system.entry.js → p-d73fdd7f.system.entry.js} +1 -1
  107. package/dist/calcite/{p-9a9781f2.system.entry.js → p-da170a90.system.entry.js} +1 -1
  108. package/dist/calcite/{p-6691b847.system.entry.js → p-da7e1200.system.entry.js} +1 -1
  109. package/dist/calcite/{p-6ffee063.entry.js → p-dad53db1.entry.js} +1 -1
  110. package/dist/calcite/p-df9409db.entry.js +5 -0
  111. package/dist/calcite/p-e33346fd.system.entry.js +5 -0
  112. package/dist/calcite/{p-ee7ba765.entry.js → p-e5c97fcc.entry.js} +1 -1
  113. package/dist/calcite/{p-51819373.entry.js → p-e6e288cb.entry.js} +1 -1
  114. package/dist/calcite/p-ea59c57b.entry.js +5 -0
  115. package/dist/calcite/{p-e311dc47.entry.js → p-eba55232.entry.js} +1 -1
  116. package/dist/calcite/{p-9ee56933.entry.js → p-ee7cd75e.entry.js} +1 -1
  117. package/dist/calcite/{p-5a6ad843.system.entry.js → p-f39af806.system.entry.js} +2 -2
  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/calcite/{p-e942dcc6.entry.js → p-ff549e6c.entry.js} +1 -1
  121. package/dist/cjs/{CalciteExpandToggle-d654421a.js → CalciteExpandToggle-252bab6d.js} +1 -1
  122. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  123. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  124. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  125. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  126. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  127. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  128. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  129. package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
  130. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  131. package/dist/cjs/calcite-checkbox.cjs.entry.js +4 -4
  132. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  133. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
  134. package/dist/cjs/calcite-combobox_3.cjs.entry.js +4 -4
  135. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +4 -4
  136. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +3 -3
  137. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  138. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  139. package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
  140. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
  142. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +7 -7
  143. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  144. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +4 -4
  145. package/dist/cjs/calcite-input.cjs.entry.js +12 -11
  146. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  147. package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  149. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  150. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
  151. package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
  152. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
  153. package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
  154. package/dist/cjs/calcite-radio-button.cjs.entry.js +20 -9
  155. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -48
  156. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  157. package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
  158. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  159. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  160. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  161. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +37 -2
  162. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  163. package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
  164. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
  165. package/dist/cjs/calcite-tree_2.cjs.entry.js +1 -1
  166. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  167. package/dist/cjs/{dom-19822169.js → dom-5a52b331.js} +2 -1
  168. package/dist/cjs/{form-a5b44a1f.js → form-4f471f99.js} +1 -1
  169. package/dist/cjs/{label-8e3552b2.js → label-4c5b7b91.js} +1 -1
  170. package/dist/cjs/{locale-c4cb51ca.js → locale-ccfa66f6.js} +1 -1
  171. package/dist/cjs/{number-5feb0c13.js → number-f57fd111.js} +12 -5
  172. package/dist/cjs/{popper-a7580aca.js → popper-864013e4.js} +1 -1
  173. package/dist/cjs/{resources-27b28faa.js → resources-7b91cec8.js} +1 -1
  174. package/dist/cjs/{resources-5bf6cc29.js → resources-d3c42dc4.js} +1 -1
  175. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
  176. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +4 -0
  177. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
  178. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
  179. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
  180. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
  181. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
  182. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
  183. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
  184. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
  185. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
  186. package/dist/collection/components/calcite-icon/calcite-icon.css +8 -0
  187. package/dist/collection/components/calcite-input/calcite-input.js +7 -6
  188. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +4 -4
  189. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -5
  190. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
  191. package/dist/collection/components/calcite-tile/calcite-tile.css +37 -49
  192. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +50 -70
  193. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
  194. package/dist/collection/components/calcite-tile-select/resources.js +20 -0
  195. package/dist/collection/utils/dom.js +2 -1
  196. package/dist/collection/utils/number.js +12 -5
  197. package/dist/components/calcite-checkbox2.js +1 -1
  198. package/dist/components/calcite-dropdown-group.js +1 -1
  199. package/dist/components/calcite-icon2.js +1 -1
  200. package/dist/components/calcite-input2.js +7 -6
  201. package/dist/components/calcite-radio-button.js +17 -6
  202. package/dist/components/calcite-radio-group-item.js +0 -45
  203. package/dist/components/calcite-tile-select.js +37 -2
  204. package/dist/components/calcite-tile2.js +1 -1
  205. package/dist/components/dom.js +2 -1
  206. package/dist/components/number.js +12 -5
  207. package/dist/custom-elements/index.js +334 -323
  208. package/dist/esm/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-b6fabbc2.js} +1 -1
  209. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  210. package/dist/esm/calcite-action-bar.entry.js +2 -2
  211. package/dist/esm/calcite-action-group.entry.js +1 -1
  212. package/dist/esm/calcite-action-menu.entry.js +1 -1
  213. package/dist/esm/calcite-action-pad.entry.js +2 -2
  214. package/dist/esm/calcite-alert.entry.js +1 -1
  215. package/dist/esm/calcite-avatar.entry.js +1 -1
  216. package/dist/esm/calcite-block_2.entry.js +1 -1
  217. package/dist/esm/calcite-button.entry.js +2 -2
  218. package/dist/esm/calcite-checkbox.entry.js +4 -4
  219. package/dist/esm/calcite-chip.entry.js +1 -1
  220. package/dist/esm/calcite-color-picker_3.entry.js +1 -1
  221. package/dist/esm/calcite-combobox_3.entry.js +4 -4
  222. package/dist/esm/calcite-date-picker_4.entry.js +4 -4
  223. package/dist/esm/calcite-dropdown_3.entry.js +3 -3
  224. package/dist/esm/calcite-fab.entry.js +1 -1
  225. package/dist/esm/calcite-filter.entry.js +1 -1
  226. package/dist/esm/calcite-graph_2.entry.js +3 -3
  227. package/dist/esm/calcite-icon.entry.js +2 -2
  228. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  229. package/dist/esm/calcite-input-date-picker.entry.js +7 -7
  230. package/dist/esm/calcite-input-message.entry.js +1 -1
  231. package/dist/esm/calcite-input-time-picker_2.entry.js +4 -4
  232. package/dist/esm/calcite-input.entry.js +12 -11
  233. package/dist/esm/calcite-link.entry.js +1 -1
  234. package/dist/esm/calcite-list_3.entry.js +1 -1
  235. package/dist/esm/calcite-modal.entry.js +1 -1
  236. package/dist/esm/calcite-notice.entry.js +1 -1
  237. package/dist/esm/calcite-option_3.entry.js +3 -3
  238. package/dist/esm/calcite-panel.entry.js +1 -1
  239. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  240. package/dist/esm/calcite-popover_2.entry.js +2 -2
  241. package/dist/esm/calcite-radio-button.entry.js +20 -9
  242. package/dist/esm/calcite-radio-group_2.entry.js +3 -48
  243. package/dist/esm/calcite-rating.entry.js +3 -3
  244. package/dist/esm/calcite-shell_3.entry.js +1 -1
  245. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  246. package/dist/esm/calcite-switch.entry.js +3 -3
  247. package/dist/esm/calcite-tab_4.entry.js +1 -1
  248. package/dist/esm/calcite-tile-select_2.entry.js +37 -2
  249. package/dist/esm/calcite-tile.entry.js +2 -2
  250. package/dist/esm/calcite-tip_3.entry.js +1 -1
  251. package/dist/esm/calcite-tooltip_2.entry.js +2 -2
  252. package/dist/esm/calcite-tree_2.entry.js +1 -1
  253. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  254. package/dist/esm/{dom-f24e866c.js → dom-70477ebc.js} +2 -1
  255. package/dist/esm/{form-160b0fb5.js → form-4b3c1995.js} +1 -1
  256. package/dist/esm/{label-5559055d.js → label-905e5ef8.js} +1 -1
  257. package/dist/esm/{locale-d635bb3b.js → locale-86b789f9.js} +1 -1
  258. package/dist/esm/{number-56f92613.js → number-eb92427e.js} +12 -5
  259. package/dist/esm/{popper-f5caedc4.js → popper-ba525bde.js} +1 -1
  260. package/dist/esm/{resources-ffaa09ee.js → resources-421133b2.js} +1 -1
  261. package/dist/esm/{resources-7501cc74.js → resources-c1b6ebde.js} +1 -1
  262. package/dist/esm-es5/{CalciteExpandToggle-c33bd6fd.js → CalciteExpandToggle-b6fabbc2.js} +1 -1
  263. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  264. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  265. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  266. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  267. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  268. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  269. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  270. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  271. package/dist/esm-es5/calcite-button.entry.js +1 -1
  272. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  273. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  274. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  275. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  276. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  277. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  278. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  279. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  280. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  281. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  282. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  283. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  284. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  285. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  286. package/dist/esm-es5/calcite-input.entry.js +1 -1
  287. package/dist/esm-es5/calcite-link.entry.js +1 -1
  288. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  289. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  290. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  291. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  292. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  293. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  294. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  295. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  296. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  297. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  298. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  299. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  300. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  301. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  302. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  303. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  304. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  305. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  306. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  307. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  308. package/dist/esm-es5/dom-70477ebc.js +5 -0
  309. package/dist/esm-es5/{form-160b0fb5.js → form-4b3c1995.js} +1 -1
  310. package/dist/esm-es5/{label-5559055d.js → label-905e5ef8.js} +1 -1
  311. package/dist/esm-es5/{locale-d635bb3b.js → locale-86b789f9.js} +1 -1
  312. package/dist/esm-es5/number-eb92427e.js +5 -0
  313. package/dist/esm-es5/{popper-f5caedc4.js → popper-ba525bde.js} +1 -1
  314. package/dist/esm-es5/{resources-ffaa09ee.js → resources-421133b2.js} +1 -1
  315. package/dist/esm-es5/{resources-7501cc74.js → resources-c1b6ebde.js} +1 -1
  316. package/dist/extras/docs-json.json +8 -2
  317. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
  318. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -6
  319. package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
  320. package/hydrate/index.js +334 -323
  321. package/package.json +10 -10
  322. package/dist/calcite/p-04417e11.system.entry.js +0 -5
  323. package/dist/calcite/p-1942876c.js +0 -5
  324. package/dist/calcite/p-394d8b91.entry.js +0 -5
  325. package/dist/calcite/p-478693b3.entry.js +0 -5
  326. package/dist/calcite/p-52cc870b.js +0 -5
  327. package/dist/calcite/p-66146f19.entry.js +0 -5
  328. package/dist/calcite/p-6cc23c39.system.js +0 -5
  329. package/dist/calcite/p-cc2166e7.system.entry.js +0 -5
  330. package/dist/calcite/p-d00824e4.system.entry.js +0 -5
  331. package/dist/calcite/p-d506cebd.entry.js +0 -5
  332. package/dist/calcite/p-d75a285d.entry.js +0 -5
  333. package/dist/calcite/p-e81cda9d.entry.js +0 -5
  334. package/dist/esm-es5/dom-f24e866c.js +0 -5
  335. package/dist/esm-es5/number-56f92613.js +0 -5
@@ -33,17 +33,24 @@ function parseNumberString(numberString) {
33
33
  return isValidNumber(result) ? Number(result).toString() : null;
34
34
  }
35
35
  function sanitizeDecimalString(decimalString) {
36
- return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(".")) ? decimalString.replace(".", "") : decimalString;
36
+ const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
37
+ return decimalString.replace(decimalAtEndOfStringButNotStart, "");
37
38
  }
38
39
  function sanitizeNegativeString(negativeString) {
39
- return negativeString.charAt(0) + negativeString.substring(1).replace(/-/g, "");
40
+ const allHyphensExceptTheStart = /(?!^-)-/g;
41
+ return negativeString.replace(allHyphensExceptTheStart, "");
40
42
  }
41
43
  function sanitizeLeadingZeroString(zeroString) {
42
- return zeroString.replace(/^0+$/, "0");
44
+ const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
45
+ return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
43
46
  }
44
47
  function sanitizeNumberString(value) {
45
- return value
46
- ? Number(sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)))).toString()
48
+ const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
49
+ const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
50
+ return isValidNumber(sanitizedValue)
51
+ ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
52
+ ? sanitizedValue
53
+ : Number(sanitizedValue).toString()
47
54
  : value;
48
55
  }
49
56
  function stringContainsNumbers(string) {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- const dom = require('./dom-19822169.js');
7
+ const dom = require('./dom-5a52b331.js');
8
8
 
9
9
  var top = 'top';
10
10
  var bottom = 'bottom';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  'use strict';
6
6
 
7
- const dom = require('./dom-19822169.js');
7
+ const dom = require('./dom-5a52b331.js');
8
8
  const array = require('./array-a5dedf5a.js');
9
9
  const debounce = require('./debounce-95979061.js');
10
10
  const index = require('./index-6b5d2de5.js');
@@ -5,7 +5,7 @@
5
5
  'use strict';
6
6
 
7
7
  const index = require('./index-6b5d2de5.js');
8
- const locale = require('./locale-c4cb51ca.js');
8
+ const locale = require('./locale-ccfa66f6.js');
9
9
 
10
10
  /**
11
11
  * Get supported locale code from raw user input
@@ -113,7 +113,7 @@ export class CalciteCheckbox {
113
113
  // --------------------------------------------------------------------------
114
114
  render() {
115
115
  return (h(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler },
116
- 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 },
116
+ 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 },
117
117
  h("svg", { class: "check-svg", viewBox: "0 0 16 16" },
118
118
  h("path", { d: this.getPath() })),
119
119
  h("slot", null)),
@@ -78,6 +78,10 @@
78
78
  display: none;
79
79
  }
80
80
 
81
+ :host {
82
+ display: block;
83
+ }
84
+
81
85
  .container--s {
82
86
  font-size: var(--calcite-font-size--2);
83
87
  line-height: 1rem;
@@ -0,0 +1 @@
1
+ "M3.384 12.607L9.799 9.51l2.74-6.05L6.49 6.202zm5.471-3.752l-3.317 1.602 1.606-3.313zM8 .2A7.8 7.8 0 1 0 15.8 8 7.809 7.809 0 0 0 8 .2zm0 14.6A6.8 6.8 0 1 1 14.8 8 6.807 6.807 0 0 1 8 14.8z"
@@ -0,0 +1 @@
1
+ "M6.45 17.216l7.981-3.845 2.98-7.115-7.116 2.98zm6.741-4.358l-4.599 2.216 2.216-4.6zM12 1.2A10.8 10.8 0 1 0 22.8 12 10.812 10.812 0 0 0 12 1.2zm0 20.6a9.8 9.8 0 1 1 9.8-9.8 9.81 9.81 0 0 1-9.8 9.8z"
@@ -0,0 +1 @@
1
+ "M8.235 24.265l11.038-5.212 4.4-10.226-10.226 4.4zm9.798-5.732L10.33 22.17l3.637-7.703zM16 2.2A13.8 13.8 0 1 0 29.8 16 13.815 13.815 0 0 0 16 2.2zm0 26.6A12.8 12.8 0 1 1 28.8 16 12.815 12.815 0 0 1 16 28.8z"
@@ -0,0 +1 @@
1
+ "M4.482 2.52L3.856.335l.96-.275.627 2.183a3.797 3.797 0 0 0-.961.275zM2.347 7.046a3.807 3.807 0 0 1-.09-.493l-2.196.63.275.96 2.196-.63a3.812 3.812 0 0 1-.185-.467zm.33-2.89a3.798 3.798 0 0 1 .272-.42l-1.79-.992-.484.875 1.802.999a3.813 3.813 0 0 1 .2-.461zm5.166-1.48a3.81 3.81 0 0 1 .413.285l.999-1.803L8.38.675l-.992 1.789a3.788 3.788 0 0 1 .455.213zM16 9.5a3.5 3.5 0 0 1-3.5 3.5h-9a2.492 2.492 0 0 1-.648-4.9c.065-.018.127-.042.194-.054a2.482 2.482 0 0 1 .394-.941 2.765 2.765 0 0 1 4.23-3.337 3.97 3.97 0 0 1 6.26 2.544A3.495 3.495 0 0 1 16 9.5zm-1 0a2.503 2.503 0 0 0-1.48-2.276l-.483-.218-.092-.522a2.989 2.989 0 0 0-5.857-.17l-.233.992-.987-.252A1.462 1.462 0 0 0 4.03 8.227l-.124.678-.678.124A1.498 1.498 0 0 0 3.5 12h9A2.503 2.503 0 0 0 15 9.5zM4.241 6.34a2.416 2.416 0 0 1 1.874-.255 3.997 3.997 0 0 1 .813-1.621c-.02-.012-.035-.027-.055-.038a1.799 1.799 0 0 0-2.447.701 1.781 1.781 0 0 0-.185 1.214z"
@@ -0,0 +1 @@
1
+ "M6.386 3.593L5.633.573l.97-.241.753 3.019zM3.472 9.129l-.121-.485-3.02.752.243.971 3.019-.753zM4.4 5.253L1.829 3.708l-.515.858L3.885 6.11zm6.347-.853l1.544-2.571-.857-.515L9.89 3.885zM23 13.187A4.813 4.813 0 0 1 18.187 18H5.438a3.438 3.438 0 0 1 0-6.875l.012.001a3.457 3.457 0 0 1 .275-.48 3.494 3.494 0 1 1 5.381-4.24A5.47 5.47 0 0 1 19.95 8.72 4.805 4.805 0 0 1 23 13.188zm-1 0a3.789 3.789 0 0 0-2.418-3.538l-.429-.17-.15-.436a4.494 4.494 0 0 0-8.629.426l-.232.99-.986-.25a2.41 2.41 0 0 0-.594-.084 2.443 2.443 0 0 0-2.206 1.42l-.268.581h-.715A2.437 2.437 0 0 0 5.437 17h12.75A3.817 3.817 0 0 0 22 13.187zM6.397 9.908a3.312 3.312 0 0 1 3.004-.667 5.465 5.465 0 0 1 .962-2.02 2.492 2.492 0 1 0-3.966 2.687z"
@@ -0,0 +1 @@
1
+ "M4.593 12.959c.05.162.124.31.184.466l-3.672 1.123-.292-.956 3.657-1.118c.037.162.074.324.123.485zM9.53 4.482L8.408.813l-.956.292L8.57 4.762c.155-.06.31-.12.471-.17.16-.048.326-.073.489-.11zm6.841-2.518l-.883-.47-1.799 3.383a6.613 6.613 0 0 1 .884.468zm-11.03 5.46L1.964 5.63l-.47.883 3.377 1.796c.067-.153.135-.305.213-.454a6.79 6.79 0 0 1 .257-.43zM31 18.5a6.5 6.5 0 0 1-6.5 6.5H7.672a4.614 4.614 0 0 1-4.608-3.727 4.532 4.532 0 0 1 4.208-5.261 4.524 4.524 0 0 1 .434-.876 5.29 5.29 0 1 1 7.765-6.954 7.485 7.485 0 0 1 11.222 4.205A6.497 6.497 0 0 1 31 18.5zm-1 0a5.511 5.511 0 0 0-3.645-5.171l-.478-.172-.143-.488a6.497 6.497 0 0 0-12.612.586l-.18.935-1.01-.145A3.172 3.172 0 0 0 11.5 14a3.497 3.497 0 0 0-3.285 2.344l-.223.633-.67.034a3.5 3.5 0 0 0-3.271 4.098A3.621 3.621 0 0 0 7.672 24H24.5a5.506 5.506 0 0 0 5.5-5.5zM6.873 12.262a4.303 4.303 0 0 0 1.428 2.1A4.438 4.438 0 0 1 11.5 13a4.46 4.46 0 0 1 .64.065 7.498 7.498 0 0 1 2.536-4.304 4.31 4.31 0 0 0-7.803 3.5z"
@@ -0,0 +1 @@
1
+ "M2 6H1V3.5A2.5 2.5 0 0 1 3.5 1H6v1H3.5A1.5 1.5 0 0 0 2 3.5zm1.5 9A1.5 1.5 0 0 1 2 13.5V11H1v2.5A2.5 2.5 0 0 0 3.5 16H6v-1zM15 13.5a1.5 1.5 0 0 1-1.5 1.5H11v1h2.5a2.5 2.5 0 0 0 2.5-2.5V11h-1zM13.5 1H11v1h2.5A1.5 1.5 0 0 1 15 3.5V6h1V3.5A2.5 2.5 0 0 0 13.5 1zM9 5h3v3h1V4H9zM5 8V5h3V4H4v4zm7 1v3H9v1h4V9zm-4 3H5V9H4v4h4z"
@@ -0,0 +1 @@
1
+ "M3 8H2V4.5A2.5 2.5 0 0 1 4.5 2H8v1H4.5A1.5 1.5 0 0 0 3 4.5zm1.5 14A1.5 1.5 0 0 1 3 20.5V17H2v3.5A2.5 2.5 0 0 0 4.5 23H8v-1zM22 20.5a1.5 1.5 0 0 1-1.5 1.5H17v1h3.5a2.5 2.5 0 0 0 2.5-2.5V17h-1zM20.5 2H17v1h3.5A1.5 1.5 0 0 1 22 4.5V8h1V4.5A2.5 2.5 0 0 0 20.5 2zM14 7h4v4h1V6h-5zm-7 4V7h4V6H6v5zm11 3v4h-4v1h5v-5zm-7 4H7v-4H6v5h5z"
@@ -0,0 +1 @@
1
+ "M10 30H5.5A2.5 2.5 0 0 1 3 27.5V23h1v4.5A1.5 1.5 0 0 0 5.5 29H10zm19-7v4.5a1.5 1.5 0 0 1-1.5 1.5H23v1h4.5a2.5 2.5 0 0 0 2.5-2.5V23zM10 3H5.5A2.5 2.5 0 0 0 3 5.5V10h1V5.5A1.5 1.5 0 0 1 5.5 4H10zm17.5 0H23v1h4.5A1.5 1.5 0 0 1 29 5.5V10h1V5.5A2.5 2.5 0 0 0 27.5 3zM18 9h6v6h1V8h-7zm-9 6V9h6V8H8v7zm15 3v6h-6v1h7v-7zm-9 6H9v-6H8v7h7z"
@@ -78,8 +78,16 @@
78
78
  display: none;
79
79
  }
80
80
 
81
+ /**
82
+ * CSS Custom Properties
83
+ *
84
+ * These properties can be overridden using the component's tag as selector.
85
+ *
86
+ * @prop --calcite-ui-icon-color: the color of the icon. Defaults to 'currentColor'.
87
+ */
81
88
  :host {
82
89
  display: inline-flex;
90
+ color: var(--calcite-ui-icon-color);
83
91
  }
84
92
 
85
93
  :host([scale=s]) {
@@ -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;
@@ -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"; }