@esri/calcite-components 1.0.0-next.597 → 1.0.0-next.599

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 (837) hide show
  1. package/dist/calcite/calcite.esm.js +2 -2
  2. package/dist/calcite/index.esm.js +1 -1
  3. package/dist/calcite/{p-1085e82f.js → p-005f18b9.js} +2 -2
  4. package/dist/calcite/{p-c2258fac.js → p-06833f7a.js} +1 -1
  5. package/dist/calcite/{p-2a88fa13.js → p-0e0e4cba.js} +1 -1
  6. package/dist/calcite/p-13c2c05b.entry.js +6 -0
  7. package/dist/calcite/p-17b42586.entry.js +6 -0
  8. package/dist/calcite/{p-ff82e6f2.entry.js → p-191be147.entry.js} +2 -2
  9. package/dist/calcite/{p-034710a1.js → p-1a3a60e3.js} +1 -1
  10. package/dist/calcite/{p-80a6379c.entry.js → p-1d0f773c.entry.js} +2 -2
  11. package/dist/calcite/{p-ce171933.entry.js → p-1d8ae7a0.entry.js} +2 -2
  12. package/dist/calcite/{p-5dc47d03.js → p-1d91de63.js} +1 -1
  13. package/dist/calcite/{p-fd6d1ed1.js → p-1ea21d0c.js} +1 -1
  14. package/dist/calcite/{p-a71a4bc5.entry.js → p-233023ca.entry.js} +2 -2
  15. package/dist/calcite/{p-b072ee90.js → p-25701696.js} +2 -2
  16. package/dist/calcite/p-284265e6.entry.js +6 -0
  17. package/dist/calcite/{p-14c442cb.entry.js → p-2856812b.entry.js} +2 -2
  18. package/dist/calcite/{p-bb21323e.entry.js → p-2882dc12.entry.js} +2 -2
  19. package/dist/calcite/{p-06505dc6.entry.js → p-29078eb8.entry.js} +2 -2
  20. package/dist/calcite/{p-6e070c45.entry.js → p-2f412d05.entry.js} +2 -2
  21. package/dist/calcite/p-32ceedc9.js +6 -0
  22. package/dist/calcite/p-36f2af39.entry.js +6 -0
  23. package/dist/calcite/{p-205462c9.js → p-3d01121e.js} +1 -1
  24. package/dist/calcite/{p-dfd51f34.entry.js → p-3f12b5de.entry.js} +2 -2
  25. package/dist/calcite/{p-975aba66.js → p-453078ec.js} +1 -1
  26. package/dist/calcite/{p-576a4d3b.js → p-454dc870.js} +2 -2
  27. package/dist/calcite/{p-016cee24.entry.js → p-4b862ca0.entry.js} +2 -2
  28. package/dist/calcite/{p-91db8a1d.entry.js → p-4c078d40.entry.js} +2 -2
  29. package/dist/calcite/{p-d16a1324.js → p-513442c5.js} +1 -1
  30. package/dist/calcite/p-59e80436.entry.js +6 -0
  31. package/dist/calcite/{p-1b9e3fb0.entry.js → p-5e6bfb56.entry.js} +2 -2
  32. package/dist/calcite/{p-a25cc528.entry.js → p-6e713b6e.entry.js} +2 -2
  33. package/dist/calcite/{p-7e36e2c5.entry.js → p-6e8c458d.entry.js} +2 -2
  34. package/dist/calcite/{p-d758a89d.entry.js → p-70857f14.entry.js} +2 -2
  35. package/dist/calcite/{p-179ed97a.js → p-73128db6.js} +1 -1
  36. package/dist/calcite/{p-67890d9f.js → p-7bc07fd5.js} +2 -2
  37. package/dist/calcite/p-7d0eb006.entry.js +6 -0
  38. package/dist/calcite/{p-228315da.entry.js → p-7ec93ddb.entry.js} +2 -2
  39. package/dist/calcite/{p-ec7e67d0.entry.js → p-8932b151.entry.js} +2 -2
  40. package/dist/calcite/{p-ce15d4a4.entry.js → p-8de8d255.entry.js} +2 -2
  41. package/dist/calcite/p-8f204210.js +6 -0
  42. package/dist/calcite/{p-9804459d.entry.js → p-950c2a35.entry.js} +2 -2
  43. package/dist/calcite/{p-0043efc4.js → p-97dea8bc.js} +1 -1
  44. package/dist/calcite/{p-ed51bd87.entry.js → p-9a12da19.entry.js} +2 -2
  45. package/dist/calcite/{p-627b4177.js → p-9c31e0d7.js} +1 -1
  46. package/dist/calcite/{p-d465da16.entry.js → p-9cc52c48.entry.js} +2 -2
  47. package/dist/calcite/p-9ed5067b.entry.js +6 -0
  48. package/dist/calcite/{p-6505334e.entry.js → p-9f34b8f6.entry.js} +2 -2
  49. package/dist/calcite/{p-ba334a9d.entry.js → p-a0199d1e.entry.js} +2 -2
  50. package/dist/calcite/{p-a7626d19.entry.js → p-a124f1d6.entry.js} +2 -2
  51. package/dist/calcite/{p-3d1ef84a.entry.js → p-a424b107.entry.js} +2 -2
  52. package/dist/calcite/{p-21931632.entry.js → p-a509a40c.entry.js} +2 -2
  53. package/dist/calcite/{p-d6067141.entry.js → p-a9a679bd.entry.js} +2 -2
  54. package/dist/calcite/{p-a0db47b9.js → p-ac30a477.js} +1 -1
  55. package/dist/calcite/p-b25685c5.js +6 -0
  56. package/dist/calcite/{p-f64286c8.entry.js → p-b49aaeaf.entry.js} +2 -2
  57. package/dist/calcite/{p-b9542a0a.js → p-b6361f79.js} +1 -1
  58. package/dist/calcite/{p-46ff1ae6.entry.js → p-b75011a8.entry.js} +2 -2
  59. package/dist/calcite/{p-f827044c.entry.js → p-bb2eb795.entry.js} +2 -2
  60. package/dist/calcite/{p-da5fac1a.entry.js → p-c497f821.entry.js} +2 -2
  61. package/dist/calcite/{p-10c17d1c.entry.js → p-c6a92e9e.entry.js} +2 -2
  62. package/dist/calcite/p-cad9a78a.entry.js +6 -0
  63. package/dist/calcite/{p-6b8d9887.js → p-caffc253.js} +2 -2
  64. package/dist/calcite/{p-65e8434d.js → p-d16fb192.js} +1 -1
  65. package/dist/calcite/{p-d4bab92e.entry.js → p-d2c5f524.entry.js} +2 -2
  66. package/dist/calcite/{p-ec1d7ff7.entry.js → p-d6b3c812.entry.js} +2 -2
  67. package/dist/calcite/{p-2e141574.entry.js → p-d7d50796.entry.js} +2 -2
  68. package/dist/calcite/{p-ae8f6623.entry.js → p-d927a254.entry.js} +2 -2
  69. package/dist/calcite/{p-421dc091.entry.js → p-d99531a9.entry.js} +2 -2
  70. package/dist/calcite/{p-fb5602cf.js → p-dbd273a7.js} +2 -2
  71. package/dist/calcite/{p-f66dfaea.entry.js → p-dffaa95f.entry.js} +2 -2
  72. package/dist/calcite/{p-b7dafefc.entry.js → p-e2ce697c.entry.js} +2 -2
  73. package/dist/calcite/{p-61cbec79.entry.js → p-e2f1a027.entry.js} +2 -2
  74. package/dist/calcite/{p-5da89821.entry.js → p-e36d406e.entry.js} +2 -2
  75. package/dist/calcite/p-e44e6774.entry.js +6 -0
  76. package/dist/calcite/{p-4e7b4c6c.entry.js → p-e5223ee8.entry.js} +2 -2
  77. package/dist/calcite/p-ea074205.js +6 -0
  78. package/dist/calcite/{p-86384397.entry.js → p-ee64ea59.entry.js} +2 -2
  79. package/dist/calcite/p-ef23a2c9.entry.js +6 -0
  80. package/dist/calcite/{p-19c7faaf.entry.js → p-efe49309.entry.js} +2 -2
  81. package/dist/calcite/{p-3d3d179c.js → p-f02e42cd.js} +2 -2
  82. package/dist/calcite/{p-1421f9ec.js → p-f037ae1d.js} +1 -1
  83. package/dist/calcite/{p-7dddc346.js → p-f3b38995.js} +2 -2
  84. package/dist/calcite/p-f5396d1a.entry.js +6 -0
  85. package/dist/calcite/{p-f94b6442.entry.js → p-f5a4f3cc.entry.js} +2 -2
  86. package/dist/calcite/{p-6bf1fe3b.entry.js → p-f88659fb.entry.js} +2 -2
  87. package/dist/calcite/{p-df9538a5.entry.js → p-fbe73244.entry.js} +2 -2
  88. package/dist/calcite/{p-36aa3ea2.entry.js → p-fd9260fe.entry.js} +2 -2
  89. package/dist/calcite/{p-5a81c608.entry.js → p-fec55310.entry.js} +2 -2
  90. package/dist/calcite/{p-67c0d879.js → p-ff3788c2.js} +1 -1
  91. package/dist/cjs/{ExpandToggle-73285037.js → ExpandToggle-ada2cb3c.js} +5 -5
  92. package/dist/cjs/{Heading-5409de6d.js → Heading-588ecb82.js} +2 -2
  93. package/dist/cjs/{app-globals-77859a02.js → app-globals-f0dc19ca.js} +2 -2
  94. package/dist/cjs/{array-f86c9258.js → array-a08ef783.js} +1 -1
  95. package/dist/cjs/calcite-accordion_2.cjs.entry.js +12 -12
  96. package/dist/cjs/calcite-action-bar.cjs.entry.js +13 -13
  97. package/dist/cjs/calcite-action-group.cjs.entry.js +11 -11
  98. package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
  99. package/dist/cjs/calcite-action-pad.cjs.entry.js +12 -12
  100. package/dist/cjs/calcite-action.cjs.entry.js +12 -12
  101. package/dist/cjs/calcite-alert.cjs.entry.js +19 -20
  102. package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
  103. package/dist/cjs/calcite-block_2.cjs.entry.js +16 -15
  104. package/dist/cjs/calcite-button.cjs.entry.js +9 -9
  105. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  106. package/dist/cjs/calcite-checkbox.cjs.entry.js +9 -9
  107. package/dist/cjs/calcite-chip.cjs.entry.js +7 -7
  108. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +10 -10
  109. package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -14
  110. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +16 -16
  111. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +11 -11
  112. package/dist/cjs/calcite-fab.cjs.entry.js +6 -6
  113. package/dist/cjs/calcite-filter.cjs.entry.js +8 -8
  114. package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -9
  115. package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
  116. package/dist/cjs/calcite-graph_2.cjs.entry.js +23 -23
  117. package/dist/cjs/calcite-handle.cjs.entry.js +5 -5
  118. package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
  119. package/dist/cjs/calcite-inline-editable.cjs.entry.js +8 -8
  120. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +15 -15
  121. package/dist/cjs/calcite-input-message.cjs.entry.js +6 -6
  122. package/dist/cjs/calcite-input-number.cjs.entry.js +28 -28
  123. package/dist/cjs/calcite-input-text.cjs.entry.js +18 -18
  124. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +98 -48
  125. package/dist/cjs/calcite-input.cjs.entry.js +29 -29
  126. package/dist/cjs/calcite-label.cjs.entry.js +8 -8
  127. package/dist/cjs/calcite-link.cjs.entry.js +7 -7
  128. package/dist/cjs/calcite-list_3.cjs.entry.js +12 -12
  129. package/dist/cjs/calcite-loader.cjs.entry.js +6 -6
  130. package/dist/cjs/calcite-modal.cjs.entry.js +16 -16
  131. package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
  132. package/dist/cjs/calcite-option_3.cjs.entry.js +14 -14
  133. package/dist/cjs/calcite-pagination.cjs.entry.js +11 -11
  134. package/dist/cjs/calcite-panel.cjs.entry.js +26 -23
  135. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +24 -24
  136. package/dist/cjs/calcite-popover_2.cjs.entry.js +23 -21
  137. package/dist/cjs/calcite-progress.cjs.entry.js +9 -4
  138. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +6 -6
  139. package/dist/cjs/calcite-radio-button.cjs.entry.js +13 -13
  140. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +13 -13
  141. package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
  142. package/dist/cjs/calcite-scrim.cjs.entry.js +3 -3
  143. package/dist/cjs/calcite-shell_3.cjs.entry.js +13 -13
  144. package/dist/cjs/calcite-sortable-list.cjs.entry.js +5 -5
  145. package/dist/cjs/calcite-split-button.cjs.entry.js +6 -6
  146. package/dist/cjs/calcite-stepper_2.cjs.entry.js +40 -18
  147. package/dist/cjs/calcite-switch.cjs.entry.js +12 -12
  148. package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -15
  149. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +10 -10
  150. package/dist/cjs/calcite-tile.cjs.entry.js +12 -12
  151. package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
  152. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +8 -8
  153. package/dist/cjs/calcite-tree_2.cjs.entry.js +25 -20
  154. package/dist/cjs/calcite-value-list_2.cjs.entry.js +23 -23
  155. package/dist/cjs/calcite.cjs.js +5 -5
  156. package/dist/cjs/{conditionalSlot-cdf70b61.js → conditionalSlot-ccf96751.js} +3 -3
  157. package/dist/cjs/{debounce-1f3af549.js → debounce-25452d97.js} +1 -1
  158. package/dist/cjs/{dom-9409deef.js → dom-968c6614.js} +3 -3
  159. package/dist/cjs/{filter-6497f68a.js → filter-71503a88.js} +2 -2
  160. package/dist/cjs/{floating-ui-40005e27.js → floating-ui-c6acf50b.js} +2 -2
  161. package/dist/cjs/{form-ed16c84e.js → form-8c14ceb5.js} +3 -3
  162. package/dist/cjs/{guid-07011a93.js → guid-6597a2ba.js} +1 -1
  163. package/dist/cjs/{index-dbaff4c6.js → index-2aa35059.js} +1 -1
  164. package/dist/cjs/index.cjs.js +1 -1
  165. package/dist/cjs/{interactive-825762eb.js → interactive-fea18111.js} +1 -1
  166. package/dist/cjs/{interfaces-a747d1cf.js → interfaces-3a459bb8.js} +1 -1
  167. package/dist/cjs/{key-40cfbef8.js → key-c7030cf7.js} +1 -1
  168. package/dist/cjs/{label-942c98df.js → label-b49c5b45.js} +2 -2
  169. package/dist/cjs/loader.cjs.js +5 -5
  170. package/dist/cjs/{locale-3b5c2d93.js → locale-ce092cb3.js} +55 -48
  171. package/dist/cjs/{math-19d2ae8c.js → math-168dbee6.js} +1 -1
  172. package/dist/cjs/{observers-2571ea25.js → observers-ae70ea35.js} +1 -1
  173. package/dist/cjs/{openCloseComponent-c152728d.js → openCloseComponent-a498f505.js} +1 -1
  174. package/dist/cjs/{resources-e5387109.js → resources-0e742993.js} +1 -1
  175. package/dist/cjs/{resources-b88532e5.js → resources-28f26b02.js} +1 -1
  176. package/dist/cjs/{resources-adfdf58d.js → resources-40ac0525.js} +1 -1
  177. package/dist/cjs/{resources-24f7e730.js → resources-b4b4932c.js} +3 -3
  178. package/dist/cjs/{resources-110e5929.js → resources-ec61f956.js} +1 -1
  179. package/dist/cjs/{resources-5f061484.js → resources-f97dfa28.js} +5 -5
  180. package/dist/cjs/{sortable.esm-9b594ce7.js → sortable.esm-4bd00bdb.js} +1 -1
  181. package/dist/cjs/{utils-0af662a9.js → utils-5161d4d6.js} +1 -1
  182. package/dist/collection/components/accordion/accordion.js +4 -4
  183. package/dist/collection/components/accordion-item/accordion-item.js +7 -7
  184. package/dist/collection/components/accordion-item/resources.js +1 -1
  185. package/dist/collection/components/action/action.css +1 -1
  186. package/dist/collection/components/action/action.js +12 -12
  187. package/dist/collection/components/action/resources.js +1 -1
  188. package/dist/collection/components/action-bar/action-bar.js +5 -5
  189. package/dist/collection/components/action-bar/resources.js +1 -1
  190. package/dist/collection/components/action-bar/utils.js +1 -1
  191. package/dist/collection/components/action-group/action-group.css +1 -1
  192. package/dist/collection/components/action-group/action-group.js +5 -5
  193. package/dist/collection/components/action-group/resources.js +1 -1
  194. package/dist/collection/components/action-menu/action-menu.js +5 -5
  195. package/dist/collection/components/action-menu/resources.js +1 -1
  196. package/dist/collection/components/action-pad/action-pad.js +5 -5
  197. package/dist/collection/components/action-pad/resources.js +1 -1
  198. package/dist/collection/components/alert/alert.js +16 -17
  199. package/dist/collection/components/alert/interfaces.js +1 -1
  200. package/dist/collection/components/alert/resources.js +1 -1
  201. package/dist/collection/components/avatar/avatar.js +1 -1
  202. package/dist/collection/components/avatar/utils.js +1 -1
  203. package/dist/collection/components/block/block.css +7 -0
  204. package/dist/collection/components/block/block.js +4 -4
  205. package/dist/collection/components/block/resources.js +3 -2
  206. package/dist/collection/components/block-section/block-section.js +1 -1
  207. package/dist/collection/components/block-section/resources.js +1 -1
  208. package/dist/collection/components/button/button.js +1 -1
  209. package/dist/collection/components/button/resources.js +1 -1
  210. package/dist/collection/components/card/card.js +1 -1
  211. package/dist/collection/components/card/resources.js +1 -1
  212. package/dist/collection/components/checkbox/checkbox.js +1 -1
  213. package/dist/collection/components/chip/chip.js +1 -1
  214. package/dist/collection/components/chip/resources.js +1 -1
  215. package/dist/collection/components/color-picker/color-picker.js +1 -1
  216. package/dist/collection/components/color-picker/resources.js +1 -1
  217. package/dist/collection/components/color-picker/utils.js +1 -1
  218. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  219. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  220. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  221. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  222. package/dist/collection/components/combobox/combobox.js +1 -1
  223. package/dist/collection/components/combobox/resources.js +1 -1
  224. package/dist/collection/components/combobox/utils.js +1 -1
  225. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  226. package/dist/collection/components/combobox-item/resources.js +1 -1
  227. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  228. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  229. package/dist/collection/components/date-picker/date-picker.js +1 -1
  230. package/dist/collection/components/date-picker/resources.js +1 -1
  231. package/dist/collection/components/date-picker/utils.js +1 -1
  232. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  233. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  234. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -8
  235. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +5 -5
  236. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  237. package/dist/collection/components/dropdown/dropdown.js +1 -1
  238. package/dist/collection/components/dropdown/resources.js +1 -1
  239. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  240. package/dist/collection/components/dropdown-group/resources.js +1 -1
  241. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  242. package/dist/collection/components/dropdown-item/resources.js +1 -1
  243. package/dist/collection/components/fab/fab.js +1 -1
  244. package/dist/collection/components/fab/resources.js +1 -1
  245. package/dist/collection/components/filter/filter.js +1 -1
  246. package/dist/collection/components/filter/resources.js +1 -1
  247. package/dist/collection/components/flow/flow.js +1 -1
  248. package/dist/collection/components/flow/resources.js +1 -1
  249. package/dist/collection/components/flow-item/flow-item.js +6 -3
  250. package/dist/collection/components/flow-item/resources.js +1 -1
  251. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  252. package/dist/collection/components/functional/Heading.js +1 -1
  253. package/dist/collection/components/graph/graph.js +1 -1
  254. package/dist/collection/components/graph/util.js +1 -1
  255. package/dist/collection/components/handle/handle.js +1 -1
  256. package/dist/collection/components/handle/resources.js +1 -1
  257. package/dist/collection/components/icon/icon.js +1 -1
  258. package/dist/collection/components/icon/resources.js +1 -1
  259. package/dist/collection/components/icon/utils.js +1 -1
  260. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  261. package/dist/collection/components/inline-editable/resources.js +1 -1
  262. package/dist/collection/components/input/input.css +5 -0
  263. package/dist/collection/components/input/input.js +28 -28
  264. package/dist/collection/components/input/resources.js +1 -1
  265. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  266. package/dist/collection/components/input-date-picker/resources.js +1 -1
  267. package/dist/collection/components/input-message/input-message.js +3 -3
  268. package/dist/collection/components/input-message/interfaces.js +1 -1
  269. package/dist/collection/components/input-number/input-number.css +1 -20
  270. package/dist/collection/components/input-number/input-number.js +26 -26
  271. package/dist/collection/components/input-number/resources.js +1 -1
  272. package/dist/collection/components/input-text/input-text.css +1 -20
  273. package/dist/collection/components/input-text/input-text.js +18 -18
  274. package/dist/collection/components/input-text/resources.js +1 -1
  275. package/dist/collection/components/input-time-picker/input-time-picker.js +76 -17
  276. package/dist/collection/components/label/label.js +5 -5
  277. package/dist/collection/components/label/resources.js +1 -1
  278. package/dist/collection/components/link/link.js +4 -4
  279. package/dist/collection/components/list/list.js +3 -3
  280. package/dist/collection/components/list/resources.js +1 -1
  281. package/dist/collection/components/list-item/list-item.js +5 -5
  282. package/dist/collection/components/list-item/resources.js +1 -1
  283. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  284. package/dist/collection/components/list-item-group/resources.js +1 -1
  285. package/dist/collection/components/loader/loader.css +1 -1
  286. package/dist/collection/components/loader/loader.js +8 -8
  287. package/dist/collection/components/modal/modal.js +19 -19
  288. package/dist/collection/components/modal/resources.js +1 -1
  289. package/dist/collection/components/notice/notice.js +14 -14
  290. package/dist/collection/components/notice/resources.js +1 -1
  291. package/dist/collection/components/option/option.js +4 -4
  292. package/dist/collection/components/option-group/option-group.js +3 -3
  293. package/dist/collection/components/pagination/pagination.js +5 -5
  294. package/dist/collection/components/pagination/resources.js +1 -1
  295. package/dist/collection/components/panel/panel.js +32 -29
  296. package/dist/collection/components/panel/resources.js +1 -1
  297. package/dist/collection/components/pick-list/pick-list.js +12 -12
  298. package/dist/collection/components/pick-list/resources.js +1 -1
  299. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  300. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  301. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  302. package/dist/collection/components/pick-list-group/resources.js +1 -1
  303. package/dist/collection/components/pick-list-item/pick-list-item.js +15 -15
  304. package/dist/collection/components/pick-list-item/resources.js +1 -1
  305. package/dist/collection/components/popover/PopoverManager.js +1 -1
  306. package/dist/collection/components/popover/popover.js +24 -22
  307. package/dist/collection/components/popover/resources.js +1 -1
  308. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  309. package/dist/collection/components/progress/progress.js +10 -5
  310. package/dist/collection/components/radio-button/radio-button.js +11 -11
  311. package/dist/collection/components/radio-button/resources.js +1 -1
  312. package/dist/collection/components/radio-button-group/radio-button-group.js +7 -7
  313. package/dist/collection/components/radio-group/radio-group.js +7 -7
  314. package/dist/collection/components/radio-group-item/radio-group-item.js +5 -5
  315. package/dist/collection/components/radio-group-item/resources.js +1 -1
  316. package/dist/collection/components/rating/rating.js +9 -9
  317. package/dist/collection/components/rating/resources.js +1 -1
  318. package/dist/collection/components/scrim/resources.js +1 -1
  319. package/dist/collection/components/scrim/scrim.js +3 -3
  320. package/dist/collection/components/select/resources.js +1 -1
  321. package/dist/collection/components/select/select.js +8 -8
  322. package/dist/collection/components/shell/resources.js +1 -1
  323. package/dist/collection/components/shell/shell.js +1 -1
  324. package/dist/collection/components/shell-center-row/resources.js +1 -1
  325. package/dist/collection/components/shell-center-row/shell-center-row.js +3 -3
  326. package/dist/collection/components/shell-panel/resources.js +1 -1
  327. package/dist/collection/components/shell-panel/shell-panel.js +10 -10
  328. package/dist/collection/components/slider/resources.js +1 -1
  329. package/dist/collection/components/slider/slider.js +24 -24
  330. package/dist/collection/components/sortable-list/resources.js +1 -1
  331. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  332. package/dist/collection/components/split-button/resources.js +1 -1
  333. package/dist/collection/components/split-button/split-button.js +8 -8
  334. package/dist/collection/components/stepper/stepper.js +27 -5
  335. package/dist/collection/components/stepper-item/stepper-item.js +43 -16
  336. package/dist/collection/components/switch/switch.js +8 -8
  337. package/dist/collection/components/tab/tab.js +5 -5
  338. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  339. package/dist/collection/components/tab-title/tab-title.js +9 -9
  340. package/dist/collection/components/tabs/resources.js +1 -1
  341. package/dist/collection/components/tabs/tabs.js +7 -7
  342. package/dist/collection/components/tile/resources.js +1 -1
  343. package/dist/collection/components/tile/tile.js +10 -10
  344. package/dist/collection/components/tile-select/resources.js +1 -1
  345. package/dist/collection/components/tile-select/tile-select.js +11 -11
  346. package/dist/collection/components/tile-select-group/tile-select-group.js +3 -3
  347. package/dist/collection/components/time-picker/resources.js +1 -1
  348. package/dist/collection/components/time-picker/time-picker.js +49 -13
  349. package/dist/collection/components/tip/resources.js +1 -1
  350. package/dist/collection/components/tip/tip.js +5 -5
  351. package/dist/collection/components/tip-group/tip-group.js +1 -1
  352. package/dist/collection/components/tip-manager/resources.js +1 -1
  353. package/dist/collection/components/tip-manager/tip-manager.js +3 -3
  354. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  355. package/dist/collection/components/tooltip/resources.js +1 -1
  356. package/dist/collection/components/tooltip/tooltip.js +4 -4
  357. package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -2
  358. package/dist/collection/components/tree/interfaces.js +1 -1
  359. package/dist/collection/components/tree/tree.js +10 -8
  360. package/dist/collection/components/tree/utils.js +1 -1
  361. package/dist/collection/components/tree-item/resources.js +1 -1
  362. package/dist/collection/components/tree-item/tree-item.js +13 -10
  363. package/dist/collection/components/value-list/resources.js +1 -1
  364. package/dist/collection/components/value-list/utils.js +1 -1
  365. package/dist/collection/components/value-list/value-list.js +18 -18
  366. package/dist/collection/components/value-list-item/resources.js +1 -1
  367. package/dist/collection/components/value-list-item/value-list-item.js +9 -9
  368. package/dist/collection/utils/array.js +1 -1
  369. package/dist/collection/utils/conditionalSlot.js +1 -1
  370. package/dist/collection/utils/date.js +1 -1
  371. package/dist/collection/utils/dom.js +1 -1
  372. package/dist/collection/utils/filter.js +1 -1
  373. package/dist/collection/utils/floating-ui.js +1 -1
  374. package/dist/collection/utils/form.js +1 -1
  375. package/dist/collection/utils/globalAttributes.js +1 -1
  376. package/dist/collection/utils/globalScript.js +1 -1
  377. package/dist/collection/utils/guid.js +1 -1
  378. package/dist/collection/utils/interactive.js +1 -1
  379. package/dist/collection/utils/key.js +1 -1
  380. package/dist/collection/utils/label.js +1 -1
  381. package/dist/collection/utils/locale.js +52 -45
  382. package/dist/collection/utils/math.js +1 -1
  383. package/dist/collection/utils/number.js +1 -1
  384. package/dist/collection/utils/observers.js +1 -1
  385. package/dist/collection/utils/openCloseComponent.js +1 -1
  386. package/dist/collection/utils/resources.js +1 -1
  387. package/dist/collection/utils/t9n.js +1 -1
  388. package/dist/collection/utils/theme.js +1 -1
  389. package/dist/collection/utils/time.js +16 -16
  390. package/dist/components/ExpandToggle.js +1 -1
  391. package/dist/components/Heading.js +1 -1
  392. package/dist/components/action-group.js +3 -3
  393. package/dist/components/action-menu.js +3 -3
  394. package/dist/components/action.js +6 -6
  395. package/dist/components/array.js +1 -1
  396. package/dist/components/button.js +1 -1
  397. package/dist/components/calcite-accordion-item.js +4 -4
  398. package/dist/components/calcite-accordion.js +3 -3
  399. package/dist/components/calcite-action-bar.js +3 -3
  400. package/dist/components/calcite-action-group.js +1 -1
  401. package/dist/components/calcite-action-menu.js +1 -1
  402. package/dist/components/calcite-action-pad.js +3 -3
  403. package/dist/components/calcite-action.js +1 -1
  404. package/dist/components/calcite-alert.js +11 -12
  405. package/dist/components/calcite-avatar.js +1 -1
  406. package/dist/components/calcite-block-section.js +1 -1
  407. package/dist/components/calcite-block.js +7 -6
  408. package/dist/components/calcite-button.js +1 -1
  409. package/dist/components/calcite-card.js +1 -1
  410. package/dist/components/calcite-checkbox.js +1 -1
  411. package/dist/components/calcite-chip.js +1 -1
  412. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  413. package/dist/components/calcite-color-picker-swatch.js +1 -1
  414. package/dist/components/calcite-color-picker.js +1 -1
  415. package/dist/components/calcite-combobox-item-group.js +1 -1
  416. package/dist/components/calcite-combobox-item.js +1 -1
  417. package/dist/components/calcite-combobox.js +1 -1
  418. package/dist/components/calcite-date-picker-day.js +1 -1
  419. package/dist/components/calcite-date-picker-month-header.js +1 -1
  420. package/dist/components/calcite-date-picker-month.js +1 -1
  421. package/dist/components/calcite-date-picker.js +1 -1
  422. package/dist/components/calcite-dropdown-group.js +1 -1
  423. package/dist/components/calcite-dropdown-item.js +1 -1
  424. package/dist/components/calcite-dropdown.js +1 -1
  425. package/dist/components/calcite-fab.js +1 -1
  426. package/dist/components/calcite-filter.js +1 -1
  427. package/dist/components/calcite-flow-item.js +6 -3
  428. package/dist/components/calcite-flow.js +1 -1
  429. package/dist/components/calcite-graph.js +1 -1
  430. package/dist/components/calcite-handle.js +1 -1
  431. package/dist/components/calcite-icon.js +1 -1
  432. package/dist/components/calcite-inline-editable.js +1 -1
  433. package/dist/components/calcite-input-date-picker.js +1 -1
  434. package/dist/components/calcite-input-message.js +2 -2
  435. package/dist/components/calcite-input-number.js +17 -17
  436. package/dist/components/calcite-input-text.js +10 -10
  437. package/dist/components/calcite-input-time-picker.js +51 -13
  438. package/dist/components/calcite-input.js +1 -1
  439. package/dist/components/calcite-label.js +1 -1
  440. package/dist/components/calcite-link.js +1 -1
  441. package/dist/components/calcite-list-item-group.js +1 -1
  442. package/dist/components/calcite-list-item.js +3 -3
  443. package/dist/components/calcite-list.js +2 -2
  444. package/dist/components/calcite-loader.js +1 -1
  445. package/dist/components/calcite-modal.js +9 -9
  446. package/dist/components/calcite-notice.js +7 -7
  447. package/dist/components/calcite-option-group.js +2 -2
  448. package/dist/components/calcite-option.js +2 -2
  449. package/dist/components/calcite-pagination.js +4 -4
  450. package/dist/components/calcite-panel.js +1 -1
  451. package/dist/components/calcite-pick-list-group.js +1 -1
  452. package/dist/components/calcite-pick-list-item.js +1 -1
  453. package/dist/components/calcite-pick-list.js +7 -7
  454. package/dist/components/calcite-popover-manager.js +1 -1
  455. package/dist/components/calcite-popover.js +1 -1
  456. package/dist/components/calcite-progress.js +1 -1
  457. package/dist/components/calcite-radio-button-group.js +4 -4
  458. package/dist/components/calcite-radio-button.js +5 -5
  459. package/dist/components/calcite-radio-group-item.js +3 -3
  460. package/dist/components/calcite-radio-group.js +4 -4
  461. package/dist/components/calcite-rating.js +5 -5
  462. package/dist/components/calcite-scrim.js +1 -1
  463. package/dist/components/calcite-select.js +4 -4
  464. package/dist/components/calcite-shell-center-row.js +2 -2
  465. package/dist/components/calcite-shell-panel.js +5 -5
  466. package/dist/components/calcite-shell.js +1 -1
  467. package/dist/components/calcite-slider.js +12 -12
  468. package/dist/components/calcite-sortable-list.js +1 -1
  469. package/dist/components/calcite-split-button.js +4 -4
  470. package/dist/components/calcite-stepper-item.js +32 -11
  471. package/dist/components/calcite-stepper.js +4 -3
  472. package/dist/components/calcite-switch.js +1 -1
  473. package/dist/components/calcite-tab-nav.js +1 -1
  474. package/dist/components/calcite-tab-title.js +1 -1
  475. package/dist/components/calcite-tab.js +1 -1
  476. package/dist/components/calcite-tabs.js +1 -1
  477. package/dist/components/calcite-tile-select-group.js +2 -2
  478. package/dist/components/calcite-tile-select.js +6 -6
  479. package/dist/components/calcite-tile.js +1 -1
  480. package/dist/components/calcite-time-picker.js +1 -1
  481. package/dist/components/calcite-tip-group.js +1 -1
  482. package/dist/components/calcite-tip-manager.js +2 -2
  483. package/dist/components/calcite-tip.js +3 -3
  484. package/dist/components/calcite-tooltip-manager.js +1 -1
  485. package/dist/components/calcite-tooltip.js +1 -1
  486. package/dist/components/calcite-tree-item.js +10 -7
  487. package/dist/components/calcite-tree.js +9 -7
  488. package/dist/components/calcite-value-list-item.js +5 -5
  489. package/dist/components/calcite-value-list.js +8 -8
  490. package/dist/components/checkbox.js +1 -1
  491. package/dist/components/chip.js +1 -1
  492. package/dist/components/color-picker-hex-input.js +1 -1
  493. package/dist/components/color-picker-swatch.js +1 -1
  494. package/dist/components/conditionalSlot.js +1 -1
  495. package/dist/components/date-picker-day.js +1 -1
  496. package/dist/components/date-picker-month-header.js +6 -6
  497. package/dist/components/date-picker-month.js +1 -1
  498. package/dist/components/date-picker.js +2 -2
  499. package/dist/components/date.js +1 -1
  500. package/dist/components/debounce.js +1 -1
  501. package/dist/components/dom.js +1 -1
  502. package/dist/components/dropdown.js +1 -1
  503. package/dist/components/filter.js +1 -1
  504. package/dist/components/filter2.js +1 -1
  505. package/dist/components/floating-ui.js +1 -1
  506. package/dist/components/form.js +1 -1
  507. package/dist/components/graph.js +1 -1
  508. package/dist/components/guid.js +1 -1
  509. package/dist/components/handle.js +1 -1
  510. package/dist/components/icon.js +1 -1
  511. package/dist/components/index.js +1 -1
  512. package/dist/components/input.js +18 -18
  513. package/dist/components/interactive.js +1 -1
  514. package/dist/components/interfaces.js +1 -1
  515. package/dist/components/interfaces2.js +1 -1
  516. package/dist/components/key.js +1 -1
  517. package/dist/components/label.js +3 -3
  518. package/dist/components/label2.js +1 -1
  519. package/dist/components/link.js +2 -2
  520. package/dist/components/loader.js +4 -4
  521. package/dist/components/locale.js +53 -46
  522. package/dist/components/math.js +1 -1
  523. package/dist/components/observers.js +1 -1
  524. package/dist/components/openCloseComponent.js +1 -1
  525. package/dist/components/panel.js +17 -14
  526. package/dist/components/pick-list-item.js +7 -7
  527. package/dist/components/popover.js +13 -11
  528. package/dist/components/progress.js +8 -3
  529. package/dist/components/resources.js +1 -1
  530. package/dist/components/resources2.js +1 -1
  531. package/dist/components/resources3.js +1 -1
  532. package/dist/components/scrim.js +2 -2
  533. package/dist/components/shared-list-render.js +1 -1
  534. package/dist/components/sortable.esm.js +1 -1
  535. package/dist/components/switch.js +4 -4
  536. package/dist/components/tab-nav.js +1 -1
  537. package/dist/components/tab-title.js +4 -4
  538. package/dist/components/tab.js +3 -3
  539. package/dist/components/tabs.js +4 -4
  540. package/dist/components/tile.js +5 -5
  541. package/dist/components/time-picker.js +42 -27
  542. package/dist/components/tooltip.js +2 -2
  543. package/dist/components/utils.js +1 -1
  544. package/dist/components/utils2.js +1 -1
  545. package/dist/esm/{ExpandToggle-21a5493f.js → ExpandToggle-9cc61349.js} +5 -5
  546. package/dist/esm/{Heading-0da1d231.js → Heading-70381e15.js} +2 -2
  547. package/dist/esm/{app-globals-53484588.js → app-globals-11b3aae5.js} +2 -2
  548. package/dist/esm/{array-afca26e4.js → array-023ac022.js} +1 -1
  549. package/dist/esm/calcite-accordion_2.entry.js +12 -12
  550. package/dist/esm/calcite-action-bar.entry.js +13 -13
  551. package/dist/esm/calcite-action-group.entry.js +11 -11
  552. package/dist/esm/calcite-action-menu.entry.js +10 -10
  553. package/dist/esm/calcite-action-pad.entry.js +12 -12
  554. package/dist/esm/calcite-action.entry.js +12 -12
  555. package/dist/esm/calcite-alert.entry.js +19 -20
  556. package/dist/esm/calcite-avatar.entry.js +6 -6
  557. package/dist/esm/calcite-block_2.entry.js +16 -15
  558. package/dist/esm/calcite-button.entry.js +9 -9
  559. package/dist/esm/calcite-card.entry.js +7 -7
  560. package/dist/esm/calcite-checkbox.entry.js +9 -9
  561. package/dist/esm/calcite-chip.entry.js +7 -7
  562. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  563. package/dist/esm/calcite-combobox_3.entry.js +14 -14
  564. package/dist/esm/calcite-date-picker_4.entry.js +16 -16
  565. package/dist/esm/calcite-dropdown_3.entry.js +11 -11
  566. package/dist/esm/calcite-fab.entry.js +6 -6
  567. package/dist/esm/calcite-filter.entry.js +8 -8
  568. package/dist/esm/calcite-flow-item.entry.js +12 -9
  569. package/dist/esm/calcite-flow.entry.js +3 -3
  570. package/dist/esm/calcite-graph_2.entry.js +23 -23
  571. package/dist/esm/calcite-handle.entry.js +5 -5
  572. package/dist/esm/calcite-icon.entry.js +6 -6
  573. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  574. package/dist/esm/calcite-input-date-picker.entry.js +15 -15
  575. package/dist/esm/calcite-input-message.entry.js +6 -6
  576. package/dist/esm/calcite-input-number.entry.js +28 -28
  577. package/dist/esm/calcite-input-text.entry.js +18 -18
  578. package/dist/esm/calcite-input-time-picker_2.entry.js +97 -47
  579. package/dist/esm/calcite-input.entry.js +29 -29
  580. package/dist/esm/calcite-label.entry.js +8 -8
  581. package/dist/esm/calcite-link.entry.js +7 -7
  582. package/dist/esm/calcite-list_3.entry.js +12 -12
  583. package/dist/esm/calcite-loader.entry.js +6 -6
  584. package/dist/esm/calcite-modal.entry.js +16 -16
  585. package/dist/esm/calcite-notice.entry.js +14 -14
  586. package/dist/esm/calcite-option_3.entry.js +14 -14
  587. package/dist/esm/calcite-pagination.entry.js +11 -11
  588. package/dist/esm/calcite-panel.entry.js +26 -23
  589. package/dist/esm/calcite-pick-list_3.entry.js +24 -24
  590. package/dist/esm/calcite-popover_2.entry.js +23 -21
  591. package/dist/esm/calcite-progress.entry.js +9 -4
  592. package/dist/esm/calcite-radio-button-group.entry.js +6 -6
  593. package/dist/esm/calcite-radio-button.entry.js +13 -13
  594. package/dist/esm/calcite-radio-group_2.entry.js +13 -13
  595. package/dist/esm/calcite-rating.entry.js +13 -13
  596. package/dist/esm/calcite-scrim.entry.js +3 -3
  597. package/dist/esm/calcite-shell_3.entry.js +13 -13
  598. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  599. package/dist/esm/calcite-split-button.entry.js +6 -6
  600. package/dist/esm/calcite-stepper_2.entry.js +40 -18
  601. package/dist/esm/calcite-switch.entry.js +12 -12
  602. package/dist/esm/calcite-tab_4.entry.js +15 -15
  603. package/dist/esm/calcite-tile-select_2.entry.js +10 -10
  604. package/dist/esm/calcite-tile.entry.js +12 -12
  605. package/dist/esm/calcite-tip_3.entry.js +11 -11
  606. package/dist/esm/calcite-tooltip_2.entry.js +8 -8
  607. package/dist/esm/calcite-tree_2.entry.js +25 -20
  608. package/dist/esm/calcite-value-list_2.entry.js +23 -23
  609. package/dist/esm/calcite.js +5 -5
  610. package/dist/esm/{conditionalSlot-e50c9f14.js → conditionalSlot-12e6668f.js} +3 -3
  611. package/dist/esm/{debounce-6816d02c.js → debounce-e2ddce5d.js} +1 -1
  612. package/dist/esm/{dom-1ac7b489.js → dom-5fbae8c3.js} +3 -3
  613. package/dist/esm/{filter-1cca1a38.js → filter-add68d68.js} +2 -2
  614. package/dist/esm/{floating-ui-41bd9b35.js → floating-ui-826c3e7d.js} +2 -2
  615. package/dist/esm/{form-08544720.js → form-b288cf71.js} +3 -3
  616. package/dist/esm/{guid-57e25130.js → guid-d2a04ff5.js} +1 -1
  617. package/dist/esm/{index-5326c3af.js → index-58724626.js} +1 -1
  618. package/dist/esm/index.js +1 -1
  619. package/dist/esm/{interactive-c086cb04.js → interactive-ea3b8a49.js} +1 -1
  620. package/dist/esm/{interfaces-ba4e7fb1.js → interfaces-fbfaef24.js} +1 -1
  621. package/dist/esm/{key-42705c39.js → key-c62dbce4.js} +1 -1
  622. package/dist/esm/{label-a209a39c.js → label-50ac91c2.js} +2 -2
  623. package/dist/esm/loader.js +5 -5
  624. package/dist/esm/{locale-6840e756.js → locale-75e88bb3.js} +56 -49
  625. package/dist/esm/{math-e13ce572.js → math-3437525f.js} +1 -1
  626. package/dist/esm/{observers-68c33472.js → observers-81228aaa.js} +1 -1
  627. package/dist/esm/{openCloseComponent-f9f51e92.js → openCloseComponent-b1959bd4.js} +1 -1
  628. package/dist/esm/{resources-ba2025cb.js → resources-26ad6cba.js} +1 -1
  629. package/dist/esm/{resources-a65a8ad1.js → resources-56ebd25b.js} +1 -1
  630. package/dist/esm/{resources-d0f37d22.js → resources-7663310e.js} +5 -5
  631. package/dist/esm/{resources-c69a833c.js → resources-86d3add0.js} +3 -3
  632. package/dist/esm/{resources-d2b2a177.js → resources-95b7889f.js} +1 -1
  633. package/dist/esm/{resources-bf3cbf16.js → resources-bdcfb9c6.js} +1 -1
  634. package/dist/esm/{sortable.esm-1ad7cec8.js → sortable.esm-1f8f5b6c.js} +1 -1
  635. package/dist/esm/{utils-f163e9f8.js → utils-51bf9488.js} +1 -1
  636. package/dist/extras/docs-json.json +553 -250
  637. package/dist/loader/cdn.js +1 -1
  638. package/dist/loader/index.cjs.js +1 -1
  639. package/dist/loader/index.es2017.js +1 -1
  640. package/dist/loader/index.js +1 -1
  641. package/dist/types/components/accordion/accordion.d.ts +2 -2
  642. package/dist/types/components/accordion-item/accordion-item.d.ts +3 -3
  643. package/dist/types/components/action/action.d.ts +6 -6
  644. package/dist/types/components/action-bar/action-bar.d.ts +2 -2
  645. package/dist/types/components/action-group/action-group.d.ts +2 -2
  646. package/dist/types/components/action-menu/action-menu.d.ts +2 -2
  647. package/dist/types/components/action-pad/action-pad.d.ts +2 -2
  648. package/dist/types/components/alert/alert.d.ts +5 -5
  649. package/dist/types/components/block/resources.d.ts +2 -1
  650. package/dist/types/components/flow-item/flow-item.d.ts +1 -0
  651. package/dist/types/components/input/input.d.ts +11 -11
  652. package/dist/types/components/input-message/input-message.d.ts +1 -1
  653. package/dist/types/components/input-number/input-number.d.ts +10 -10
  654. package/dist/types/components/input-text/input-text.d.ts +9 -9
  655. package/dist/types/components/input-time-picker/input-time-picker.d.ts +9 -5
  656. package/dist/types/components/label/label.d.ts +2 -2
  657. package/dist/types/components/link/link.d.ts +2 -2
  658. package/dist/types/components/list/list.d.ts +1 -1
  659. package/dist/types/components/list-item/list-item.d.ts +2 -2
  660. package/dist/types/components/loader/loader.d.ts +9 -4
  661. package/dist/types/components/modal/modal.d.ts +10 -10
  662. package/dist/types/components/notice/notice.d.ts +7 -7
  663. package/dist/types/components/option/option.d.ts +2 -2
  664. package/dist/types/components/option-group/option-group.d.ts +1 -1
  665. package/dist/types/components/pagination/pagination.d.ts +1 -1
  666. package/dist/types/components/panel/panel.d.ts +15 -15
  667. package/dist/types/components/pick-list/pick-list.d.ts +6 -6
  668. package/dist/types/components/pick-list-item/pick-list-item.d.ts +8 -8
  669. package/dist/types/components/popover/popover.d.ts +13 -11
  670. package/dist/types/components/progress/progress.d.ts +7 -2
  671. package/dist/types/components/radio-button/radio-button.d.ts +6 -6
  672. package/dist/types/components/radio-button-group/radio-button-group.d.ts +3 -3
  673. package/dist/types/components/radio-group/radio-group.d.ts +3 -3
  674. package/dist/types/components/radio-group-item/radio-group-item.d.ts +2 -2
  675. package/dist/types/components/rating/rating.d.ts +4 -4
  676. package/dist/types/components/scrim/scrim.d.ts +1 -1
  677. package/dist/types/components/select/select.d.ts +4 -4
  678. package/dist/types/components/shell-center-row/shell-center-row.d.ts +1 -1
  679. package/dist/types/components/shell-panel/shell-panel.d.ts +5 -5
  680. package/dist/types/components/slider/slider.d.ts +12 -12
  681. package/dist/types/components/split-button/split-button.d.ts +4 -4
  682. package/dist/types/components/stepper/stepper.d.ts +7 -2
  683. package/dist/types/components/stepper-item/stepper-item.d.ts +13 -9
  684. package/dist/types/components/switch/switch.d.ts +5 -5
  685. package/dist/types/components/tab/tab.d.ts +2 -2
  686. package/dist/types/components/tab-title/tab-title.d.ts +5 -5
  687. package/dist/types/components/tabs/tabs.d.ts +3 -3
  688. package/dist/types/components/tile/tile.d.ts +5 -5
  689. package/dist/types/components/tile-select/tile-select.d.ts +5 -5
  690. package/dist/types/components/tile-select-group/tile-select-group.d.ts +1 -1
  691. package/dist/types/components/time-picker/time-picker.d.ts +7 -2
  692. package/dist/types/components/tip/tip.d.ts +2 -2
  693. package/dist/types/components/tip-manager/tip-manager.d.ts +1 -1
  694. package/dist/types/components/tooltip/tooltip.d.ts +6 -2
  695. package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +1 -1
  696. package/dist/types/components/tree/tree.d.ts +1 -1
  697. package/dist/types/components/tree-item/tree-item.d.ts +3 -3
  698. package/dist/types/components/value-list/value-list.d.ts +15 -15
  699. package/dist/types/components/value-list-item/value-list-item.d.ts +4 -4
  700. package/dist/types/components.d.ts +472 -448
  701. package/dist/types/utils/locale.d.ts +20 -19
  702. package/dist/types/utils/time.d.ts +29 -5
  703. package/hydrate/index.js +430 -332
  704. package/package.json +10 -10
  705. package/dist/calcite/p-01cb5477.js +0 -6
  706. package/dist/calcite/p-27969266.entry.js +0 -6
  707. package/dist/calcite/p-416510d6.js +0 -6
  708. package/dist/calcite/p-4c8218d4.entry.js +0 -6
  709. package/dist/calcite/p-59772111.js +0 -6
  710. package/dist/calcite/p-672cf3c2.js +0 -6
  711. package/dist/calcite/p-99889377.entry.js +0 -6
  712. package/dist/calcite/p-a5ec748f.entry.js +0 -6
  713. package/dist/calcite/p-a8b04902.entry.js +0 -6
  714. package/dist/calcite/p-ab03590a.entry.js +0 -6
  715. package/dist/calcite/p-b31ac46b.entry.js +0 -6
  716. package/dist/calcite/p-b8492482.entry.js +0 -6
  717. package/dist/calcite/p-e1c801a6.entry.js +0 -6
  718. package/dist/calcite/p-e9ccd0bc.entry.js +0 -6
  719. package/dist/calcite/p-f52edbbb.entry.js +0 -6
  720. package/dist/collection/components/accordion/accordion.e2e.js +0 -183
  721. package/dist/collection/components/accordion-item/accordion-item.e2e.js +0 -8
  722. package/dist/collection/components/action/action.e2e.js +0 -93
  723. package/dist/collection/components/action-bar/action-bar.e2e.js +0 -290
  724. package/dist/collection/components/action-group/action-group.e2e.js +0 -23
  725. package/dist/collection/components/action-menu/action-menu.e2e.js +0 -153
  726. package/dist/collection/components/action-pad/action-pad.e2e.js +0 -178
  727. package/dist/collection/components/alert/alert.e2e.js +0 -294
  728. package/dist/collection/components/avatar/avatar.e2e.js +0 -55
  729. package/dist/collection/components/avatar/avatar.spec.js +0 -42
  730. package/dist/collection/components/block/block.e2e.js +0 -194
  731. package/dist/collection/components/block-section/block-section.e2e.js +0 -132
  732. package/dist/collection/components/button/button.e2e.js +0 -529
  733. package/dist/collection/components/card/card.e2e.js +0 -87
  734. package/dist/collection/components/checkbox/checkbox.e2e.js +0 -105
  735. package/dist/collection/components/chip/chip.e2e.js +0 -149
  736. package/dist/collection/components/color-picker/color-picker.e2e.js +0 -1068
  737. package/dist/collection/components/color-picker/utils.spec.js +0 -66
  738. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.e2e.js +0 -281
  739. package/dist/collection/components/color-picker-swatch/color-picker-swatch.e2e.js +0 -71
  740. package/dist/collection/components/combobox/combobox.e2e.js +0 -1043
  741. package/dist/collection/components/combobox-item/combobox-item.e2e.js +0 -7
  742. package/dist/collection/components/date-picker/date-picker.e2e.js +0 -195
  743. package/dist/collection/components/date-picker/utils.spec.js +0 -55
  744. package/dist/collection/components/date-picker-day/date-picker-day.e2e.js +0 -16
  745. package/dist/collection/components/date-picker-month-header/date-picker-month-header.e2e.js +0 -72
  746. package/dist/collection/components/dropdown/dropdown.e2e.js +0 -1030
  747. package/dist/collection/components/dropdown-group/dropdown-group.e2e.js +0 -5
  748. package/dist/collection/components/dropdown-item/dropdown-item.e2e.js +0 -6
  749. package/dist/collection/components/fab/fab.e2e.js +0 -114
  750. package/dist/collection/components/filter/filter.e2e.js +0 -205
  751. package/dist/collection/components/flow/flow.e2e.js +0 -166
  752. package/dist/collection/components/flow-item/flow-item.e2e.js +0 -72
  753. package/dist/collection/components/functional/Heading.spec.js +0 -33
  754. package/dist/collection/components/graph/graph.e2e.js +0 -69
  755. package/dist/collection/components/handle/handle.e2e.js +0 -30
  756. package/dist/collection/components/icon/icon.e2e.js +0 -75
  757. package/dist/collection/components/icon/utils.spec.js +0 -61
  758. package/dist/collection/components/inline-editable/inline-editable.e2e.js +0 -327
  759. package/dist/collection/components/input/input.e2e.js +0 -1192
  760. package/dist/collection/components/input-date-picker/input-date-picker.e2e.js +0 -295
  761. package/dist/collection/components/input-message/input-message.e2e.js +0 -122
  762. package/dist/collection/components/input-number/input-number.e2e.js +0 -1004
  763. package/dist/collection/components/input-text/input-text.e2e.js +0 -276
  764. package/dist/collection/components/input-time-picker/input-time-picker.e2e.js +0 -241
  765. package/dist/collection/components/label/label.e2e.js +0 -156
  766. package/dist/collection/components/link/link.e2e.js +0 -257
  767. package/dist/collection/components/list/list.e2e.js +0 -32
  768. package/dist/collection/components/list-item/list-item.e2e.js +0 -46
  769. package/dist/collection/components/list-item-group/list-item-group.e2e.js +0 -16
  770. package/dist/collection/components/loader/loader.e2e.js +0 -49
  771. package/dist/collection/components/modal/modal.e2e.js +0 -382
  772. package/dist/collection/components/notice/notice.e2e.js +0 -127
  773. package/dist/collection/components/option/option.e2e.js +0 -56
  774. package/dist/collection/components/option-group/option-group.e2e.js +0 -26
  775. package/dist/collection/components/pagination/pagination.e2e.js +0 -208
  776. package/dist/collection/components/panel/panel.e2e.js +0 -281
  777. package/dist/collection/components/pick-list/pick-list.e2e.js +0 -157
  778. package/dist/collection/components/pick-list/shared-list-tests.js +0 -463
  779. package/dist/collection/components/pick-list-group/pick-list-group.e2e.js +0 -54
  780. package/dist/collection/components/pick-list-item/pick-list-item.e2e.js +0 -124
  781. package/dist/collection/components/popover/popover.e2e.js +0 -454
  782. package/dist/collection/components/popover-manager/popover-manager.e2e.js +0 -38
  783. package/dist/collection/components/progress/progress.e2e.js +0 -7
  784. package/dist/collection/components/radio-button/radio-button.e2e.js +0 -332
  785. package/dist/collection/components/radio-button-group/radio-button-group.e2e.js +0 -384
  786. package/dist/collection/components/radio-group/radio-group.e2e.js +0 -258
  787. package/dist/collection/components/radio-group-item/radio-group-item.e2e.js +0 -92
  788. package/dist/collection/components/rating/rating.e2e.js +0 -450
  789. package/dist/collection/components/scrim/scrim.e2e.js +0 -122
  790. package/dist/collection/components/select/select.e2e.js +0 -266
  791. package/dist/collection/components/shell/shell.e2e.js +0 -126
  792. package/dist/collection/components/shell-center-row/shell-center-row.e2e.js +0 -66
  793. package/dist/collection/components/shell-panel/shell-panel.e2e.js +0 -282
  794. package/dist/collection/components/slider/slider.e2e.js +0 -648
  795. package/dist/collection/components/sortable-list/sortable-list.e2e.js +0 -57
  796. package/dist/collection/components/split-button/split-button.e2e.js +0 -206
  797. package/dist/collection/components/stepper/stepper.e2e.js +0 -558
  798. package/dist/collection/components/stepper-item/stepper-item.e2e.js +0 -6
  799. package/dist/collection/components/switch/switch.e2e.js +0 -91
  800. package/dist/collection/components/tab/tab.e2e.js +0 -49
  801. package/dist/collection/components/tab-nav/tab-nav.e2e.js +0 -143
  802. package/dist/collection/components/tab-title/tab-title.e2e.js +0 -222
  803. package/dist/collection/components/tabs/tabs.e2e.js +0 -281
  804. package/dist/collection/components/tile/tile.e2e.js +0 -79
  805. package/dist/collection/components/tile-select/tile-select.e2e.js +0 -133
  806. package/dist/collection/components/tile-select-group/tile-select-group.e2e.js +0 -14
  807. package/dist/collection/components/time-picker/time-picker.e2e.js +0 -737
  808. package/dist/collection/components/tip/tip.e2e.js +0 -42
  809. package/dist/collection/components/tip-group/tip-group.e2e.js +0 -6
  810. package/dist/collection/components/tip-manager/tip-manager.e2e.js +0 -176
  811. package/dist/collection/components/tip-manager/tip-manager.spec.js +0 -13
  812. package/dist/collection/components/tooltip/tooltip.e2e.js +0 -359
  813. package/dist/collection/components/tooltip-manager/tooltip-manager.e2e.js +0 -19
  814. package/dist/collection/components/tree/tree.e2e.js +0 -586
  815. package/dist/collection/components/tree-item/tree-item.e2e.js +0 -302
  816. package/dist/collection/components/value-list/value-list.e2e.js +0 -205
  817. package/dist/collection/components/value-list-item/value-list-item.e2e.js +0 -96
  818. package/dist/collection/demos/_assets/demo-dom-swapper.js +0 -45
  819. package/dist/collection/demos/_assets/demo-spacer.js +0 -17
  820. package/dist/collection/demos/_assets/demo-template.js +0 -24
  821. package/dist/collection/demos/_assets/head.js +0 -48
  822. package/dist/collection/demos/_assets/locales.js +0 -223
  823. package/dist/collection/tests/commonTests.js +0 -596
  824. package/dist/collection/tests/utils.js +0 -200
  825. package/dist/collection/utils/date.spec.js +0 -153
  826. package/dist/collection/utils/dom.e2e.js +0 -107
  827. package/dist/collection/utils/dom.spec.js +0 -273
  828. package/dist/collection/utils/floating-ui.spec.js +0 -23
  829. package/dist/collection/utils/form.spec.js +0 -16
  830. package/dist/collection/utils/globalAttributes.spec.js +0 -36
  831. package/dist/collection/utils/guid.spec.js +0 -7
  832. package/dist/collection/utils/interactive.spec.js +0 -20
  833. package/dist/collection/utils/label.spec.js +0 -188
  834. package/dist/collection/utils/locale.spec.js +0 -44
  835. package/dist/collection/utils/math.spec.js +0 -8
  836. package/dist/collection/utils/number.spec.js +0 -113
  837. package/dist/collection/utils/popper.js +0 -121
@@ -1,132 +0,0 @@
1
- import { CSS, TEXT } from "./resources";
2
- import { accessible, defaults, hidden, reflects, renders } from "../../tests/commonTests";
3
- import { newE2EPage } from "@stencil/core/testing";
4
- describe("calcite-block-section", () => {
5
- it("renders", async () => renders("calcite-block-section", { display: "block" }));
6
- it("honors hidden attribute", async () => hidden("calcite-block-section"));
7
- it("reflects properties", async () => reflects("calcite-block-section", [
8
- {
9
- propertyName: "open",
10
- value: true
11
- }
12
- ]));
13
- it("has property defaults", async () => defaults("calcite-block-section", [
14
- {
15
- propertyName: "open",
16
- defaultValue: false
17
- },
18
- {
19
- propertyName: "toggleDisplay",
20
- defaultValue: "button"
21
- }
22
- ]));
23
- describe("toggle-display = 'switch'", () => {
24
- describe("accessibility", () => {
25
- it("when open", async () => accessible(`<calcite-block-section text="text" toggle-display="switch" open><div>some content</div></calcite-block-section>`));
26
- it("when closed", async () => accessible(`<calcite-block-section text="text" toggle-display="switch"><div>some content</div></calcite-block-section>`));
27
- });
28
- it("can display/hide content", async () => {
29
- const page = await newE2EPage({
30
- html: `<calcite-block-section toggle-display="switch"><div>some content</div></calcite-block-section>`
31
- });
32
- await assertContentIsDisplayedAndHidden(page);
33
- });
34
- it("can be toggled", async () => {
35
- const page = await newE2EPage({
36
- html: `<calcite-block-section toggle-display="switch"></calcite-block-section>`
37
- });
38
- await assertToggleBehavior(page);
39
- });
40
- it("renders section text", async () => {
41
- const page = await newE2EPage({
42
- html: `<calcite-block-section text="test text" open toggle-display="switch"></calcite-block-section>`
43
- });
44
- const element = await page.find(`calcite-block-section >>> .${CSS.toggle}`);
45
- expect(element.textContent).toBe("test text");
46
- });
47
- });
48
- describe("toggle-display = 'button' (default)", () => {
49
- describe("accessibility", () => {
50
- it("when open", async () => accessible(`<calcite-block-section text="text" open><div>some content</div></calcite-block-section>`));
51
- it("when closed", async () => accessible(`<calcite-block-section text="text"><div>some content</div></calcite-block-section>`));
52
- });
53
- it("can display/hide content", async () => {
54
- const page = await newE2EPage({ html: "<calcite-block-section><div>some content</div></calcite-block-section>" });
55
- await assertContentIsDisplayedAndHidden(page);
56
- });
57
- it("can be toggled", async () => {
58
- const page = await newE2EPage({ html: "<calcite-block-section></calcite-block-section>" });
59
- await assertToggleBehavior(page);
60
- });
61
- });
62
- describe("status = 'invalid'", () => {
63
- it("displays a status indicator when `status` is an accepted value", async () => {
64
- const page = await newE2EPage({
65
- html: `<calcite-block-section status="invalid"><div>content</div></calcite-block-section>`
66
- });
67
- const statusIconEl = await page.find(`calcite-block-section >>> .${CSS.statusIcon}`);
68
- expect(statusIconEl).not.toBeNull();
69
- });
70
- });
71
- describe("status = 'foo'", () => {
72
- it("does not display a status indicator when `status` is not an accepted value", async () => {
73
- const page2 = await newE2EPage({
74
- html: `<calcite-block-section status="foo"><div>content</div></calcite-block-section>`
75
- });
76
- const statusIconEl2 = await page2.find(`calcite-block-section >>> .${CSS.statusIcon}`);
77
- await page2.waitForChanges();
78
- expect(statusIconEl2).toBeNull();
79
- });
80
- });
81
- async function assertContentIsDisplayedAndHidden(page) {
82
- let element = await page.find("calcite-block-section");
83
- let content = await page.find(`calcite-block-section >>> .${CSS.content}`);
84
- expect(await content.isVisible()).toBe(false);
85
- element.setProperty("open", true);
86
- await page.waitForChanges();
87
- element = await page.find("calcite-block-section[open]");
88
- content = await page.find(`calcite-block-section >>> .${CSS.content}`);
89
- expect(element).toBeTruthy();
90
- expect(await content.isVisible()).toBe(true);
91
- element.setProperty("open", false);
92
- await page.waitForChanges();
93
- element = await page.find("calcite-block-section[open]");
94
- content = await page.find(`calcite-block-section >>> .${CSS.content}`);
95
- expect(element).toBeNull();
96
- expect(await content.isVisible()).toBe(false);
97
- }
98
- async function assertToggleBehavior(page) {
99
- const element = await page.find("calcite-block-section");
100
- const toggleSpy = await element.spyOnEvent("calciteBlockSectionToggle");
101
- const toggle = await page.find(`calcite-block-section >>> .${CSS.toggle}`);
102
- expect(toggle.getAttribute("aria-label")).toBe(TEXT.expand);
103
- await toggle.click();
104
- expect(toggleSpy).toHaveReceivedEventTimes(1);
105
- expect(await element.getProperty("open")).toBe(true);
106
- expect(toggle.getAttribute("aria-label")).toBe(TEXT.collapse);
107
- await toggle.click();
108
- expect(toggleSpy).toHaveReceivedEventTimes(2);
109
- expect(await element.getProperty("open")).toBe(false);
110
- expect(toggle.getAttribute("aria-label")).toBe(TEXT.expand);
111
- const keyboardToggleEmitter = toggle.tagName === "CALCITE-ACTION"
112
- ? (await page.evaluateHandle(() => {
113
- // keyboard event needs to be dispatched from the action's button for it to trigger a click
114
- // deep shadow piercing is based on https://github.com/puppeteer/puppeteer/issues/858#issuecomment-438540596
115
- return document
116
- .querySelector("calcite-block-section")
117
- .shadowRoot.querySelector("section > calcite-action")
118
- .shadowRoot.querySelector("button");
119
- })).asElement()
120
- : toggle;
121
- await keyboardToggleEmitter.press(" ");
122
- await page.waitForChanges();
123
- expect(toggleSpy).toHaveReceivedEventTimes(3);
124
- expect(await element.getProperty("open")).toBe(true);
125
- expect(toggle.getAttribute("aria-label")).toBe(TEXT.collapse);
126
- await keyboardToggleEmitter.press("Enter");
127
- await page.waitForChanges();
128
- expect(toggleSpy).toHaveReceivedEventTimes(4);
129
- expect(await element.getProperty("open")).toBe(false);
130
- expect(toggle.getAttribute("aria-label")).toBe(TEXT.expand);
131
- }
132
- });
@@ -1,529 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { accessible, disabled, HYDRATED_ATTR, labelable, defaults, hidden } from "../../tests/commonTests";
3
- import { CSS } from "./resources";
4
- import { html } from "../../../support/formatting";
5
- describe("calcite-button", () => {
6
- it("defaults", async () => defaults("calcite-button", [
7
- {
8
- propertyName: "alignment",
9
- defaultValue: "center"
10
- },
11
- {
12
- propertyName: "appearance",
13
- defaultValue: "solid"
14
- },
15
- {
16
- propertyName: "label",
17
- defaultValue: undefined
18
- },
19
- {
20
- propertyName: "color",
21
- defaultValue: "blue"
22
- },
23
- {
24
- propertyName: "disabled",
25
- defaultValue: false
26
- },
27
- {
28
- propertyName: "href",
29
- defaultValue: undefined
30
- },
31
- {
32
- propertyName: "iconEnd",
33
- defaultValue: undefined
34
- },
35
- {
36
- propertyName: "iconFlipRtl",
37
- defaultValue: undefined
38
- },
39
- {
40
- propertyName: "iconStart",
41
- defaultValue: undefined
42
- },
43
- {
44
- propertyName: "intlLoading",
45
- defaultValue: "Loading"
46
- },
47
- {
48
- propertyName: "loading",
49
- defaultValue: false
50
- },
51
- {
52
- propertyName: "name",
53
- defaultValue: undefined
54
- },
55
- {
56
- propertyName: "rel",
57
- defaultValue: undefined
58
- },
59
- {
60
- propertyName: "form",
61
- defaultValue: undefined
62
- },
63
- {
64
- propertyName: "round",
65
- defaultValue: false
66
- },
67
- {
68
- propertyName: "scale",
69
- defaultValue: "m"
70
- },
71
- {
72
- propertyName: "splitChild",
73
- defaultValue: false
74
- },
75
- {
76
- propertyName: "target",
77
- defaultValue: undefined
78
- },
79
- {
80
- propertyName: "type",
81
- defaultValue: "button"
82
- },
83
- {
84
- propertyName: "width",
85
- defaultValue: "auto"
86
- }
87
- ]));
88
- it("honors hidden attribute", async () => hidden("calcite-button"));
89
- it("renders as a button with default props", async () => {
90
- const page = await newE2EPage();
91
- await page.setContent(`<calcite-button>Continue</calcite-button>`);
92
- const element = await page.find("calcite-button");
93
- const elementAsButton = await page.find("calcite-button >>> button");
94
- const elementAsLink = await page.find("calcite-button >>> a");
95
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
96
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
97
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
98
- expect(element).toHaveAttribute(HYDRATED_ATTR);
99
- expect(element).toEqualAttribute("color", "blue");
100
- expect(element).toEqualAttribute("appearance", "solid");
101
- expect(element).toEqualAttribute("scale", "m");
102
- expect(element).toEqualAttribute("width", "auto");
103
- expect(elementAsLink).toBeNull();
104
- expect(elementAsButton).not.toBeNull();
105
- expect(iconStart).toBeNull();
106
- expect(iconEnd).toBeNull();
107
- expect(loader).toBeNull();
108
- });
109
- it("is accessible", async () => accessible(`<calcite-button>Continue</calcite-button>`));
110
- it("is accessible: href", async () => accessible(`<calcite-button href="/">Continue</calcite-button>`));
111
- it("is accessible: style props", async () => accessible(`<calcite-button color="red" scale="l" width="half" appearance="outline">Continue</calcite-button>`));
112
- it("is accessible: href and target", async () => accessible(`<calcite-button rel="noopener noreferrer" target="_blank" class="mycustomclass" href="google.com">Continue</calcite-button>`));
113
- it("is accessible: icons and loading", async () => accessible(`<calcite-button loading icon-start='plus' icon-end='plus'>Continue</calcite-button>`));
114
- it("is labelable", async () => labelable("calcite-button"));
115
- it("can be disabled", () => disabled("calcite-button"));
116
- it("should update childElType when href changes", async () => {
117
- const page = await newE2EPage({ html: `<calcite-button>Continue</calcite-button>` });
118
- const link = await page.find("calcite-button");
119
- let elementAsLink;
120
- let elementAsSpan;
121
- elementAsSpan = await page.find("calcite-button >>> button");
122
- elementAsLink = await page.find("calcite-button >>> a");
123
- expect(elementAsSpan).not.toBeNull();
124
- expect(elementAsLink).toBeNull();
125
- link.setProperty("href", "/");
126
- await page.waitForChanges();
127
- elementAsSpan = await page.find("calcite-button >>> button");
128
- elementAsLink = await page.find("calcite-button >>> a");
129
- expect(elementAsSpan).toBeNull();
130
- expect(elementAsLink).not.toBeNull();
131
- });
132
- it("renders as a link with default props", async () => {
133
- const page = await newE2EPage();
134
- await page.setContent(`<calcite-button href="/">Continue</calcite-button>`);
135
- const element = await page.find("calcite-button");
136
- const elementAsButton = await page.find("calcite-button >>> button");
137
- const elementAsLink = await page.find("calcite-button >>> a");
138
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
139
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
140
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
141
- expect(element).toHaveAttribute(HYDRATED_ATTR);
142
- expect(element).toEqualAttribute("color", "blue");
143
- expect(element).toEqualAttribute("appearance", "solid");
144
- expect(element).toEqualAttribute("scale", "m");
145
- expect(element).toEqualAttribute("width", "auto");
146
- expect(elementAsLink).not.toBeNull();
147
- expect(elementAsButton).toBeNull();
148
- expect(iconStart).toBeNull();
149
- expect(iconEnd).toBeNull();
150
- expect(loader).toBeNull();
151
- });
152
- it("renders as a button with requested props", async () => {
153
- const page = await newE2EPage();
154
- await page.setContent(`<calcite-button color="red" scale="l" width="half" appearance="outline">Continue</calcite-button>`);
155
- const element = await page.find("calcite-button");
156
- const elementAsButton = await page.find("calcite-button >>> button");
157
- const elementAsLink = await page.find("calcite-button >>> a");
158
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
159
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
160
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
161
- expect(element).toHaveAttribute(HYDRATED_ATTR);
162
- expect(element).toEqualAttribute("color", "red");
163
- expect(element).toEqualAttribute("appearance", "outline");
164
- expect(element).toEqualAttribute("scale", "l");
165
- expect(element).toEqualAttribute("width", "half");
166
- expect(elementAsLink).toBeNull();
167
- expect(elementAsButton).not.toBeNull();
168
- expect(iconStart).toBeNull();
169
- expect(iconEnd).toBeNull();
170
- expect(loader).toBeNull();
171
- });
172
- it("renders as a link with requested props", async () => {
173
- const page = await newE2EPage();
174
- await page.setContent(`<calcite-button href="/" color="red" scale="l" width="half" appearance="outline">Continue</calcite-button>`);
175
- const element = await page.find("calcite-button");
176
- const elementAsButton = await page.find("calcite-button >>> button");
177
- const elementAsLink = await page.find("calcite-button >>> a");
178
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
179
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
180
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
181
- expect(element).toHaveAttribute(HYDRATED_ATTR);
182
- expect(element).toEqualAttribute("color", "red");
183
- expect(element).toEqualAttribute("appearance", "outline");
184
- expect(element).toEqualAttribute("scale", "l");
185
- expect(element).toEqualAttribute("width", "half");
186
- expect(elementAsLink).not.toBeNull();
187
- expect(elementAsButton).toBeNull();
188
- expect(iconStart).toBeNull();
189
- expect(iconEnd).toBeNull();
190
- expect(loader).toBeNull();
191
- });
192
- it("passes attributes to rendered child link", async () => {
193
- const page = await newE2EPage();
194
- await page.setContent(`<calcite-button rel="noopener noreferrer" target="_blank" class="mycustomclass" href="google.com">Continue</calcite-button>`);
195
- const element = await page.find("calcite-button");
196
- const elementAsButton = await page.find("calcite-button >>> button");
197
- const elementAsLink = await page.find("calcite-button >>> a");
198
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
199
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
200
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
201
- expect(element).toHaveAttribute(HYDRATED_ATTR);
202
- expect(elementAsLink).not.toBeNull();
203
- expect(elementAsButton).toBeNull();
204
- expect(elementAsLink).toEqualAttribute("href", "google.com");
205
- expect(elementAsLink).toEqualAttribute("rel", "noopener noreferrer");
206
- expect(elementAsLink).toEqualAttribute("target", "_blank");
207
- expect(iconStart).toBeNull();
208
- expect(iconEnd).toBeNull();
209
- expect(loader).toBeNull();
210
- });
211
- it("passes attributes to rendered child button", async () => {
212
- const page = await newE2EPage();
213
- await page.setContent(`<calcite-button type="reset" name="myname" class="mycustomclass">Continue</calcite-button>`);
214
- const element = await page.find("calcite-button");
215
- const elementAsButton = await page.find("calcite-button >>> button");
216
- const elementAsLink = await page.find("calcite-button >>> a");
217
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
218
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
219
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
220
- expect(element).toHaveAttribute(HYDRATED_ATTR);
221
- expect(elementAsLink).toBeNull();
222
- expect(elementAsButton).not.toBeNull();
223
- expect(elementAsButton).toEqualAttribute("type", "reset");
224
- expect(elementAsButton).toEqualAttribute("name", "myname");
225
- expect(iconStart).toBeNull();
226
- expect(iconEnd).toBeNull();
227
- expect(loader).toBeNull();
228
- });
229
- it("renders with an icon-start", async () => {
230
- const page = await newE2EPage();
231
- await page.setContent(`<calcite-button icon-start='plus'>Continue</calcite-button>`);
232
- const element = await page.find("calcite-button");
233
- const elementAsButton = await page.find("calcite-button >>> button");
234
- const elementAsLink = await page.find("calcite-button >>> a");
235
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
236
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
237
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
238
- expect(element).toHaveAttribute(HYDRATED_ATTR);
239
- expect(elementAsLink).toBeNull();
240
- expect(elementAsButton).not.toBeNull();
241
- expect(iconStart).not.toBeNull();
242
- expect(iconEnd).toBeNull();
243
- expect(loader).toBeNull();
244
- });
245
- it("renders with an icon-end", async () => {
246
- const page = await newE2EPage();
247
- await page.setContent(`<calcite-button icon-end='plus'>Continue</calcite-button>`);
248
- const element = await page.find("calcite-button");
249
- const elementAsButton = await page.find("calcite-button >>> button");
250
- const elementAsLink = await page.find("calcite-button >>> a");
251
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
252
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
253
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
254
- expect(element).toHaveAttribute(HYDRATED_ATTR);
255
- expect(elementAsLink).toBeNull();
256
- expect(elementAsButton).not.toBeNull();
257
- expect(iconStart).toBeNull();
258
- expect(iconEnd).not.toBeNull();
259
- expect(loader).toBeNull();
260
- });
261
- it("renders with an icon-start and icon-end", async () => {
262
- const page = await newE2EPage();
263
- await page.setContent(`<calcite-button icon-start='plus' icon-end='plus'>Continue</calcite-button>`);
264
- const element = await page.find("calcite-button");
265
- const elementAsButton = await page.find("calcite-button >>> button");
266
- const elementAsLink = await page.find("calcite-button >>> a");
267
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
268
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
269
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
270
- expect(element).toHaveAttribute(HYDRATED_ATTR);
271
- expect(elementAsLink).toBeNull();
272
- expect(elementAsButton).not.toBeNull();
273
- expect(iconStart).not.toBeNull();
274
- expect(iconEnd).not.toBeNull();
275
- expect(loader).toBeNull();
276
- });
277
- it("renders hidden icon when both icon and loader are requested, no text", async () => {
278
- const page = await newE2EPage();
279
- await page.setContent(`<calcite-button loading icon-start='plus'></calcite-button>`);
280
- const element = await page.find("calcite-button");
281
- const elementAsButton = await page.find("calcite-button >>> button");
282
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
283
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
284
- expect(elementAsButton).not.toBeNull();
285
- expect(iconStart).not.toBeNull();
286
- expect(await iconStart.isVisible()).toBeFalsy();
287
- expect(loader).not.toBeNull();
288
- // one icon only buttons should stay square
289
- expect(await element.getProperty("offsetWidth")).toEqual(await element.getProperty("offsetHeight"));
290
- });
291
- it("renders with a loader and an icon-start when both icon-start and loader are requested", async () => {
292
- const page = await newE2EPage();
293
- await page.setContent(`<calcite-button loading icon-start='plus'>Continue</calcite-button>`);
294
- const element = await page.find("calcite-button");
295
- const elementAsButton = await page.find("calcite-button >>> button");
296
- const elementAsLink = await page.find("calcite-button >>> a");
297
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
298
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
299
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
300
- expect(element).toHaveAttribute(HYDRATED_ATTR);
301
- expect(elementAsLink).toBeNull();
302
- expect(elementAsButton).not.toBeNull();
303
- expect(iconStart).not.toBeNull();
304
- expect(iconEnd).toBeNull();
305
- expect(loader).not.toBeNull();
306
- });
307
- it("renders with a loader and an icon-end when both icon-end and loader are requested", async () => {
308
- const page = await newE2EPage();
309
- await page.setContent(`<calcite-button loading icon-end='plus'>Continue</calcite-button>`);
310
- const element = await page.find("calcite-button");
311
- const elementAsButton = await page.find("calcite-button >>> button");
312
- const elementAsLink = await page.find("calcite-button >>> a");
313
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
314
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
315
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
316
- expect(element).toHaveAttribute(HYDRATED_ATTR);
317
- expect(elementAsLink).toBeNull();
318
- expect(elementAsButton).not.toBeNull();
319
- expect(iconStart).toBeNull();
320
- expect(iconEnd).not.toBeNull();
321
- expect(loader).not.toBeNull();
322
- });
323
- it("renders with a loader and an icon-start and icon-end when all are requested", async () => {
324
- const page = await newE2EPage();
325
- await page.setContent(`<calcite-button loading icon-start='plus' icon-end='plus'>Continue</calcite-button>`);
326
- const element = await page.find("calcite-button");
327
- const elementAsButton = await page.find("calcite-button >>> button");
328
- const elementAsLink = await page.find("calcite-button >>> a");
329
- const iconStart = await page.find(`calcite-button >>> .${CSS.iconStart}`);
330
- const iconEnd = await page.find(`calcite-button >>> .${CSS.iconEnd}`);
331
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
332
- expect(element).toHaveAttribute(HYDRATED_ATTR);
333
- expect(elementAsLink).toBeNull();
334
- expect(elementAsButton).not.toBeNull();
335
- expect(iconStart).not.toBeNull();
336
- expect(iconEnd).not.toBeNull();
337
- expect(loader).not.toBeNull();
338
- });
339
- it("should not render loader with an icon-start ,width set to half and aligned space-between", async () => {
340
- const page = await newE2EPage();
341
- await page.setContent(`<calcite-button icon-start='plus' width='half' , alignment='space-between'>Continue</calcite-button>`);
342
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
343
- expect(loader).toBeNull();
344
- });
345
- it("hascontent class is present on rendered child when content (as text) is present", async () => {
346
- const page = await newE2EPage();
347
- await page.setContent(`<calcite-button>Continue</calcite-button>`);
348
- const elementAsButton = await page.find("calcite-button >>> button");
349
- expect(elementAsButton).toHaveClass(CSS.contentSlotted);
350
- });
351
- it("hascontent class is present on rendered child when content (as element) is present", async () => {
352
- const page = await newE2EPage();
353
- await page.setContent(`<calcite-button><calcite-icon icon="banana" /></calcite-button>`);
354
- const elementAsButton = await page.find("calcite-button >>> button");
355
- expect(elementAsButton).toHaveClass(CSS.contentSlotted);
356
- });
357
- it("hascontent class is present on rendered child when content (as text and element) is present", async () => {
358
- const page = await newE2EPage();
359
- await page.setContent(`<calcite-button>Banana <calcite-icon icon="banana" /></calcite-button>`);
360
- const elementAsButton = await page.find("calcite-button >>> button");
361
- expect(elementAsButton).toHaveClass(CSS.contentSlotted);
362
- });
363
- it("hascontent class is not present on rendered child when content is not present", async () => {
364
- const page = await newE2EPage();
365
- await page.setContent(`<calcite-button icon-start='plus'></calcite-button>`);
366
- const elementAsButton = await page.find("calcite-button >>> button");
367
- expect(elementAsButton).not.toHaveClass(CSS.contentSlotted);
368
- });
369
- describe("CSS properties for light/dark themes", () => {
370
- const buttonSnippet = `
371
- <calcite-button
372
- class="layers"
373
- icon-start="layer"
374
- icon-end="chevron-down"
375
- appearance="transparent"
376
- color="blue"
377
- >
378
- Layers
379
- </calcite-button>
380
- `;
381
- let page;
382
- let buttonEl;
383
- let buttonFocusStyle;
384
- let buttonHoverStyle;
385
- it("should have defined CSS custom properties", async () => {
386
- page = await newE2EPage({ html: buttonSnippet });
387
- const buttonStyles = await page.evaluate(() => {
388
- buttonEl = document.querySelector("calcite-button");
389
- buttonEl.style.setProperty("--calcite-button-transparent-hover", "rgba(34, 23, 200, 0.4)");
390
- buttonEl.style.setProperty("--calcite-button-transparent-press", "rgba(1, 20, 44, 0.1");
391
- return {
392
- hoverFocus: window.getComputedStyle(buttonEl).getPropertyValue("--calcite-button-transparent-hover"),
393
- active: window.getComputedStyle(buttonEl).getPropertyValue("--calcite-button-transparent-press")
394
- };
395
- });
396
- expect(buttonStyles.hoverFocus).toEqual("rgba(34, 23, 200, 0.4)");
397
- expect(buttonStyles.active).toEqual("rgba(1, 20, 44, 0.1");
398
- });
399
- describe("when theme attribute is not provided", () => {
400
- it("should render button pseudo classes with default values tied to light theme", async () => {
401
- page = await newE2EPage({ html: buttonSnippet });
402
- buttonEl = await page.find("calcite-button >>> button");
403
- await buttonEl.focus();
404
- await page.waitForChanges();
405
- buttonFocusStyle = await buttonEl.getComputedStyle(":focus");
406
- expect(buttonFocusStyle.getPropertyValue("background-color")).toEqual("rgba(0, 0, 0, 0.05)");
407
- await buttonEl.hover();
408
- await page.waitForChanges();
409
- buttonHoverStyle = await buttonEl.getComputedStyle(":hover");
410
- expect(buttonHoverStyle.getPropertyValue("background-color")).toEqual("rgba(0, 0, 0, 0.05)");
411
- });
412
- });
413
- describe("when theme attribute is dark", () => {
414
- it("should render button pseudo classes with value tied to dark theme", async () => {
415
- page = await newE2EPage({
416
- html: `<div class="calcite-theme-dark">${buttonSnippet}</div>`
417
- });
418
- buttonEl = await page.find("calcite-button >>> button");
419
- await buttonEl.focus();
420
- await page.waitForChanges();
421
- buttonFocusStyle = await buttonEl.getComputedStyle(":focus");
422
- expect(buttonFocusStyle.getPropertyValue("background-color")).toEqual("rgba(255, 255, 255, 0.05)");
423
- await buttonEl.hover();
424
- await page.waitForChanges();
425
- buttonHoverStyle = await buttonEl.getComputedStyle(":hover");
426
- expect(buttonHoverStyle.getPropertyValue("background-color")).toEqual("rgba(255, 255, 255, 0.05)");
427
- });
428
- });
429
- it("should allow the CSS custom property to be overridden", async () => {
430
- const overrideStyle = "rgba(255, 255, 0, 0.9)";
431
- page = await newE2EPage({
432
- html: `
433
- <style>
434
- :root {
435
- --calcite-button-transparent-hover: ${overrideStyle};
436
- }
437
- </style>
438
- <div>${buttonSnippet}</div>`
439
- });
440
- buttonEl = await page.find("calcite-button >>> button");
441
- await buttonEl.focus();
442
- await page.waitForChanges();
443
- buttonFocusStyle = await buttonEl.getComputedStyle(":focus");
444
- expect(buttonFocusStyle.getPropertyValue("background-color")).toEqual(overrideStyle);
445
- await buttonEl.hover();
446
- await page.waitForChanges();
447
- buttonHoverStyle = await buttonEl.getComputedStyle(":hover");
448
- expect(buttonHoverStyle.getPropertyValue("background-color")).toEqual(overrideStyle);
449
- });
450
- });
451
- describe("when loading changes", () => {
452
- it("should render loader with loading-in class when new value is true", async () => {
453
- const page = await newE2EPage();
454
- await page.setContent(`
455
- <calcite-button id="one-icon" icon-start='plus'></calcite-button>
456
- <calcite-button id="two-icons" icon-start='arrow-right' icon-end='download'></calcite-button>
457
- <calcite-button id="icons-and-text" icon-start='arrow-right' icon-end='download'>Go!</calcite-button>
458
- `);
459
- const button1 = await page.find("calcite-button[id='one-icon']");
460
- const button2 = await page.find("calcite-button[id='two-icons']");
461
- const button3 = await page.find("calcite-button[id='icons-and-text']");
462
- await button1.setProperty("loading", true);
463
- await button2.setProperty("loading", true);
464
- await button3.setProperty("loading", true);
465
- await page.waitForChanges();
466
- const loader1 = await page.find(`calcite-button[id='one-icon'] >>> .${CSS.buttonLoader} calcite-loader`);
467
- const loader2 = await page.find(`calcite-button[id='two-icons'] >>> .${CSS.buttonLoader} calcite-loader`);
468
- const loader3 = await page.find(`calcite-button[id='icons-and-text'] >>> .${CSS.buttonLoader} calcite-loader`);
469
- expect(loader1).toHaveClass(CSS.loadingIn);
470
- expect(loader2).toHaveClass(CSS.loadingIn);
471
- expect(loader3).toHaveClass(CSS.loadingIn);
472
- });
473
- it("should render loader with loading-out class when new value is false", async () => {
474
- const page = await newE2EPage();
475
- await page.setContent(`
476
- <calcite-button loading id="one-icon" icon-start='plus'></calcite-button>
477
- <calcite-button loading id="two-icons" icon-start='arrow-right' icon-end='download'></calcite-button>
478
- <calcite-button loading id="icons-and-text" icon-start='arrow-right' icon-end='download'>Go!</calcite-button>
479
- `);
480
- await page.waitForChanges();
481
- const button1 = await page.find("calcite-button[id='one-icon']");
482
- const button2 = await page.find("calcite-button[id='two-icons']");
483
- const button3 = await page.find("calcite-button[id='icons-and-text']");
484
- const loader1 = await page.find(`calcite-button[id='one-icon'] >>> .${CSS.buttonLoader} calcite-loader`);
485
- const loader2 = await page.find(`calcite-button[id='two-icons'] >>> .${CSS.buttonLoader} calcite-loader`);
486
- const loader3 = await page.find(`calcite-button[id='icons-and-text'] >>> .${CSS.buttonLoader} calcite-loader`);
487
- await button1.setProperty("loading", false);
488
- await button2.setProperty("loading", false);
489
- await button3.setProperty("loading", false);
490
- await page.waitForChanges();
491
- expect(loader1).toHaveClass(CSS.loadingOut);
492
- expect(loader2).toHaveClass(CSS.loadingOut);
493
- expect(loader3).toHaveClass(CSS.loadingOut);
494
- });
495
- it("should remove calcite-loader from dom when new value is false", async () => {
496
- const page = await newE2EPage();
497
- await page.setContent(`<calcite-button loading icon-start='plus'></calcite-button>`);
498
- const animationDurationInMs = 300;
499
- const element = await page.find("calcite-button");
500
- await element.setProperty("loading", false);
501
- await page.waitForChanges();
502
- await page.waitForTimeout(animationDurationInMs);
503
- const loader = await page.find(`calcite-button >>> .${CSS.buttonLoader} calcite-loader`);
504
- expect(loader).toBeNull();
505
- });
506
- });
507
- describe("form integration", () => {
508
- async function assertOnFormButtonType(type) {
509
- const page = await newE2EPage();
510
- await page.setContent(html `
511
- <form>
512
- <calcite-button type="${type}"></calcite-button>
513
- </form>
514
- `);
515
- await page.$eval("form", (form, type) => {
516
- form.addEventListener(type, (event) => {
517
- event.preventDefault();
518
- window.called = true;
519
- });
520
- }, type);
521
- const button = await page.find("calcite-button");
522
- await button.click();
523
- const called = await page.evaluate(() => window.called);
524
- expect(called).toBe(true);
525
- }
526
- it("submits", async () => assertOnFormButtonType("submit"));
527
- it("resets", async () => assertOnFormButtonType("reset"));
528
- });
529
- });