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

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 (893) 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-6505334e.entry.js → p-010dd109.entry.js} +2 -2
  4. package/dist/calcite/{p-65e8434d.js → p-02c03af1.js} +1 -1
  5. package/dist/calcite/p-02d86d44.js +6 -0
  6. package/dist/calcite/{p-d758a89d.entry.js → p-03bdf648.entry.js} +2 -2
  7. package/dist/calcite/{p-016cee24.entry.js → p-062ce043.entry.js} +2 -2
  8. package/dist/calcite/{p-19c7faaf.entry.js → p-0deab0a4.entry.js} +2 -2
  9. package/dist/calcite/{p-3d3d179c.js → p-0edd33c6.js} +2 -2
  10. package/dist/calcite/{p-fd6d1ed1.js → p-0f5f53c2.js} +1 -1
  11. package/dist/calcite/{p-f827044c.entry.js → p-10c92db7.entry.js} +2 -2
  12. package/dist/calcite/{p-4e7b4c6c.entry.js → p-12b30d17.entry.js} +2 -2
  13. package/dist/calcite/{p-f64286c8.entry.js → p-1352273d.entry.js} +2 -2
  14. package/dist/calcite/{p-5da89821.entry.js → p-176c7c94.entry.js} +2 -2
  15. package/dist/calcite/{p-da5fac1a.entry.js → p-18ebc779.entry.js} +2 -2
  16. package/dist/calcite/{p-576a4d3b.js → p-1db0a85d.js} +2 -2
  17. package/dist/calcite/{p-36aa3ea2.entry.js → p-219e2e73.entry.js} +2 -2
  18. package/dist/calcite/{p-a7626d19.entry.js → p-2ab04b0f.entry.js} +2 -2
  19. package/dist/calcite/{p-ae8f6623.entry.js → p-2f357624.entry.js} +2 -2
  20. package/dist/calcite/{p-2e141574.entry.js → p-2f52a669.entry.js} +2 -2
  21. package/dist/calcite/p-2fecb26e.js +6 -0
  22. package/dist/calcite/{p-67c0d879.js → p-36a2b846.js} +1 -1
  23. package/dist/calcite/{p-034710a1.js → p-36c1c94c.js} +1 -1
  24. package/dist/calcite/{p-d4bab92e.entry.js → p-37bc6ac2.entry.js} +2 -2
  25. package/dist/calcite/{p-6e070c45.entry.js → p-392906a6.entry.js} +2 -2
  26. package/dist/calcite/p-3941a63c.js +6 -0
  27. package/dist/calcite/{p-91db8a1d.entry.js → p-3b9a8c5f.entry.js} +2 -2
  28. package/dist/calcite/{p-9804459d.entry.js → p-404e08b8.entry.js} +2 -2
  29. package/dist/calcite/{p-d465da16.entry.js → p-41aa50b7.entry.js} +2 -2
  30. package/dist/calcite/{p-fb5602cf.js → p-41c52f7c.js} +2 -2
  31. package/dist/calcite/{p-179ed97a.js → p-43b4a53e.js} +1 -1
  32. package/dist/calcite/{p-975aba66.js → p-44aecb14.js} +1 -1
  33. package/dist/calcite/{p-ed51bd87.entry.js → p-49529d9e.entry.js} +2 -2
  34. package/dist/calcite/{p-627b4177.js → p-4987b4ee.js} +1 -1
  35. package/dist/calcite/{p-80a6379c.entry.js → p-4cb9c524.entry.js} +2 -2
  36. package/dist/calcite/p-4e5fcfd7.entry.js +6 -0
  37. package/dist/calcite/{p-86384397.entry.js → p-4eeb34ad.entry.js} +2 -2
  38. package/dist/calcite/{p-df9538a5.entry.js → p-5139ac26.entry.js} +2 -2
  39. package/dist/calcite/{p-dfd51f34.entry.js → p-53c34094.entry.js} +2 -2
  40. package/dist/calcite/{p-205462c9.js → p-543a5925.js} +1 -1
  41. package/dist/calcite/{p-10c17d1c.entry.js → p-58ea74ab.entry.js} +2 -2
  42. package/dist/calcite/{p-b9542a0a.js → p-5d29962c.js} +1 -1
  43. package/dist/calcite/p-5e355fbb.entry.js +6 -0
  44. package/dist/calcite/{p-21931632.entry.js → p-66011932.entry.js} +2 -2
  45. package/dist/calcite/{p-ec1d7ff7.entry.js → p-665605d0.entry.js} +2 -2
  46. package/dist/calcite/{p-ba334a9d.entry.js → p-6d221ee4.entry.js} +2 -2
  47. package/dist/calcite/{p-6b8d9887.js → p-77a66a54.js} +2 -2
  48. package/dist/calcite/{p-b072ee90.js → p-7951d360.js} +2 -2
  49. package/dist/calcite/{p-228315da.entry.js → p-7c084561.entry.js} +2 -2
  50. package/dist/calcite/{p-46ff1ae6.entry.js → p-7cb27f2a.entry.js} +2 -2
  51. package/dist/calcite/{p-2a88fa13.js → p-7fa0faec.js} +1 -1
  52. package/dist/calcite/{p-5a81c608.entry.js → p-820a08a7.entry.js} +2 -2
  53. package/dist/calcite/{p-421dc091.entry.js → p-83ece20a.entry.js} +2 -2
  54. package/dist/calcite/{p-f66dfaea.entry.js → p-857f0433.entry.js} +2 -2
  55. package/dist/calcite/{p-ff82e6f2.entry.js → p-91ec0aa8.entry.js} +2 -2
  56. package/dist/calcite/{p-6bf1fe3b.entry.js → p-92976168.entry.js} +2 -2
  57. package/dist/calcite/{p-5dc47d03.js → p-93cd79e0.js} +1 -1
  58. package/dist/calcite/p-999f8f79.entry.js +6 -0
  59. package/dist/calcite/p-9c54742f.entry.js +6 -0
  60. package/dist/calcite/{p-7e36e2c5.entry.js → p-9fd20f7e.entry.js} +2 -2
  61. package/dist/calcite/p-a7862fd2.entry.js +6 -0
  62. package/dist/calcite/{p-7dddc346.js → p-aa9d985d.js} +2 -2
  63. package/dist/calcite/{p-d16a1324.js → p-ae75f7f9.js} +1 -1
  64. package/dist/calcite/{p-a0db47b9.js → p-b10d453d.js} +1 -1
  65. package/dist/calcite/{p-a71a4bc5.entry.js → p-b5abec95.entry.js} +2 -2
  66. package/dist/calcite/{p-ce171933.entry.js → p-b5d68e9b.entry.js} +2 -2
  67. package/dist/calcite/{p-f94b6442.entry.js → p-b62081a4.entry.js} +2 -2
  68. package/dist/calcite/p-bc460116.entry.js +6 -0
  69. package/dist/calcite/{p-0043efc4.js → p-bce0e288.js} +1 -1
  70. package/dist/calcite/{p-67890d9f.js → p-bd6478ee.js} +2 -2
  71. package/dist/calcite/{p-06505dc6.entry.js → p-cbbaffb1.entry.js} +2 -2
  72. package/dist/calcite/{p-b7dafefc.entry.js → p-cd2d103c.entry.js} +2 -2
  73. package/dist/calcite/p-cd3d6d8a.entry.js +6 -0
  74. package/dist/calcite/p-d274cd75.entry.js +6 -0
  75. package/dist/calcite/{p-e1c801a6.entry.js → p-d393cf2a.entry.js} +2 -2
  76. package/dist/calcite/{p-d6067141.entry.js → p-dd4f0eb4.entry.js} +2 -2
  77. package/dist/calcite/p-dd73aa68.entry.js +6 -0
  78. package/dist/calcite/{p-1085e82f.js → p-e1fa8d26.js} +2 -2
  79. package/dist/calcite/{p-1b9e3fb0.entry.js → p-e3158aba.entry.js} +2 -2
  80. package/dist/calcite/{p-bb21323e.entry.js → p-e43df264.entry.js} +2 -2
  81. package/dist/calcite/{p-59772111.js → p-e6757fa4.js} +2 -2
  82. package/dist/calcite/{p-c2258fac.js → p-e86518a3.js} +1 -1
  83. package/dist/calcite/{p-ec7e67d0.entry.js → p-eb8e9bec.entry.js} +2 -2
  84. package/dist/calcite/p-ecfdca0f.entry.js +6 -0
  85. package/dist/calcite/{p-3d1ef84a.entry.js → p-f1cc17e7.entry.js} +2 -2
  86. package/dist/calcite/{p-61cbec79.entry.js → p-f21ff110.entry.js} +2 -2
  87. package/dist/calcite/{p-1421f9ec.js → p-f4970d48.js} +1 -1
  88. package/dist/calcite/{p-14c442cb.entry.js → p-f707cf6d.entry.js} +2 -2
  89. package/dist/calcite/{p-ce15d4a4.entry.js → p-fd07c84a.entry.js} +2 -2
  90. package/dist/calcite/{p-a25cc528.entry.js → p-fd177f5d.entry.js} +2 -2
  91. package/dist/cjs/{ExpandToggle-73285037.js → ExpandToggle-ab03bc61.js} +5 -5
  92. package/dist/cjs/{Heading-5409de6d.js → Heading-2b3d0f1c.js} +2 -2
  93. package/dist/cjs/{app-globals-77859a02.js → app-globals-3d7459b7.js} +2 -2
  94. package/dist/cjs/{array-f86c9258.js → array-0903a4d0.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 +11 -11
  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-4b981e1a.js} +3 -3
  157. package/dist/cjs/{debounce-1f3af549.js → debounce-6ac6d224.js} +1 -1
  158. package/dist/cjs/{dom-9409deef.js → dom-2aaee0df.js} +3 -3
  159. package/dist/cjs/{filter-6497f68a.js → filter-10c27a83.js} +2 -2
  160. package/dist/cjs/{floating-ui-40005e27.js → floating-ui-bf70093a.js} +2 -2
  161. package/dist/cjs/{form-ed16c84e.js → form-47d1e430.js} +3 -3
  162. package/dist/cjs/{guid-07011a93.js → guid-1b12a751.js} +1 -1
  163. package/dist/cjs/{index-dbaff4c6.js → index-457a5a54.js} +1 -1
  164. package/dist/cjs/index.cjs.js +1 -1
  165. package/dist/cjs/{interactive-825762eb.js → interactive-e35bd87f.js} +1 -1
  166. package/dist/cjs/{interfaces-a747d1cf.js → interfaces-58d0b0fb.js} +1 -1
  167. package/dist/cjs/{key-40cfbef8.js → key-5b6abad3.js} +1 -1
  168. package/dist/cjs/{label-942c98df.js → label-bcb3c8cc.js} +2 -2
  169. package/dist/cjs/loader.cjs.js +5 -5
  170. package/dist/cjs/{locale-3b5c2d93.js → locale-c66b8c43.js} +55 -48
  171. package/dist/cjs/{math-19d2ae8c.js → math-9a4a9057.js} +1 -1
  172. package/dist/cjs/{observers-2571ea25.js → observers-6c3955d2.js} +1 -1
  173. package/dist/cjs/{openCloseComponent-c152728d.js → openCloseComponent-d5404853.js} +1 -1
  174. package/dist/cjs/{resources-adfdf58d.js → resources-29b287c0.js} +1 -1
  175. package/dist/cjs/{resources-e5387109.js → resources-7103f0d8.js} +1 -1
  176. package/dist/cjs/{resources-110e5929.js → resources-83acf426.js} +1 -1
  177. package/dist/cjs/{resources-5f061484.js → resources-a636e50a.js} +5 -5
  178. package/dist/cjs/{resources-24f7e730.js → resources-c689e9d0.js} +3 -3
  179. package/dist/cjs/{resources-b88532e5.js → resources-d8da865a.js} +1 -1
  180. package/dist/cjs/{sortable.esm-9b594ce7.js → sortable.esm-4c7fab47.js} +1 -1
  181. package/dist/cjs/{utils-0af662a9.js → utils-147a89d2.js} +1 -1
  182. package/dist/collection/components/accordion/accordion.js +4 -4
  183. package/dist/collection/components/accordion/accordion.stories.js +197 -0
  184. package/dist/collection/components/accordion-item/accordion-item.js +7 -7
  185. package/dist/collection/components/accordion-item/resources.js +1 -1
  186. package/dist/collection/components/action/action.css +1 -1
  187. package/dist/collection/components/action/action.js +12 -12
  188. package/dist/collection/components/action/action.stories.js +181 -0
  189. package/dist/collection/components/action/resources.js +1 -1
  190. package/dist/collection/components/action-bar/action-bar.js +5 -5
  191. package/dist/collection/components/action-bar/action-bar.stories.js +141 -0
  192. package/dist/collection/components/action-bar/resources.js +1 -1
  193. package/dist/collection/components/action-bar/utils.js +1 -1
  194. package/dist/collection/components/action-group/action-group.css +1 -1
  195. package/dist/collection/components/action-group/action-group.js +5 -5
  196. package/dist/collection/components/action-group/action-group.stories.js +41 -0
  197. package/dist/collection/components/action-group/resources.js +1 -1
  198. package/dist/collection/components/action-menu/action-menu.js +5 -5
  199. package/dist/collection/components/action-menu/action-menu.stories.js +26 -0
  200. package/dist/collection/components/action-menu/resources.js +1 -1
  201. package/dist/collection/components/action-pad/action-pad.js +5 -5
  202. package/dist/collection/components/action-pad/action-pad.stories.js +107 -0
  203. package/dist/collection/components/action-pad/resources.js +1 -1
  204. package/dist/collection/components/alert/alert.js +16 -17
  205. package/dist/collection/components/alert/alert.stories.js +140 -0
  206. package/dist/collection/components/alert/interfaces.js +1 -1
  207. package/dist/collection/components/alert/resources.js +1 -1
  208. package/dist/collection/components/avatar/avatar.js +1 -1
  209. package/dist/collection/components/avatar/avatar.stories.js +44 -0
  210. package/dist/collection/components/avatar/utils.js +1 -1
  211. package/dist/collection/components/block/block.css +7 -0
  212. package/dist/collection/components/block/block.js +4 -4
  213. package/dist/collection/components/block/block.stories.js +158 -0
  214. package/dist/collection/components/block/resources.js +3 -2
  215. package/dist/collection/components/block-section/block-section.js +1 -1
  216. package/dist/collection/components/block-section/resources.js +1 -1
  217. package/dist/collection/components/button/button.js +1 -1
  218. package/dist/collection/components/button/button.stories.js +129 -0
  219. package/dist/collection/components/button/resources.js +1 -1
  220. package/dist/collection/components/card/card.js +1 -1
  221. package/dist/collection/components/card/card.stories.js +225 -0
  222. package/dist/collection/components/card/resources.js +1 -1
  223. package/dist/collection/components/checkbox/checkbox.js +1 -1
  224. package/dist/collection/components/checkbox/checkbox.stories.js +43 -0
  225. package/dist/collection/components/chip/chip.js +1 -1
  226. package/dist/collection/components/chip/chip.stories.js +85 -0
  227. package/dist/collection/components/chip/resources.js +1 -1
  228. package/dist/collection/components/color-picker/color-picker.js +1 -1
  229. package/dist/collection/components/color-picker/color-picker.stories.js +80 -0
  230. package/dist/collection/components/color-picker/resources.js +1 -1
  231. package/dist/collection/components/color-picker/utils.js +1 -1
  232. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
  233. package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
  234. package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
  235. package/dist/collection/components/color-picker-swatch/resources.js +1 -1
  236. package/dist/collection/components/combobox/combobox.js +1 -1
  237. package/dist/collection/components/combobox/combobox.stories.js +387 -0
  238. package/dist/collection/components/combobox/resources.js +1 -1
  239. package/dist/collection/components/combobox/utils.js +1 -1
  240. package/dist/collection/components/combobox-item/combobox-item.js +1 -1
  241. package/dist/collection/components/combobox-item/resources.js +1 -1
  242. package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
  243. package/dist/collection/components/combobox-item-group/resources.js +1 -1
  244. package/dist/collection/components/date-picker/date-picker.js +1 -1
  245. package/dist/collection/components/date-picker/resources.js +1 -1
  246. package/dist/collection/components/date-picker/utils.js +1 -1
  247. package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
  248. package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
  249. package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -8
  250. package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +5 -5
  251. package/dist/collection/components/date-picker-month-header/resources.js +1 -1
  252. package/dist/collection/components/dropdown/dropdown.js +1 -1
  253. package/dist/collection/components/dropdown/dropdown.stories.js +408 -0
  254. package/dist/collection/components/dropdown/resources.js +1 -1
  255. package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
  256. package/dist/collection/components/dropdown-group/resources.js +1 -1
  257. package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
  258. package/dist/collection/components/dropdown-item/resources.js +1 -1
  259. package/dist/collection/components/fab/fab.js +1 -1
  260. package/dist/collection/components/fab/fab.stories.js +96 -0
  261. package/dist/collection/components/fab/resources.js +1 -1
  262. package/dist/collection/components/filter/filter.js +1 -1
  263. package/dist/collection/components/filter/resources.js +1 -1
  264. package/dist/collection/components/flow/flow.js +1 -1
  265. package/dist/collection/components/flow/flow.stories.js +151 -0
  266. package/dist/collection/components/flow/resources.js +1 -1
  267. package/dist/collection/components/flow-item/flow-item.js +6 -3
  268. package/dist/collection/components/flow-item/flow-item.stories.js +181 -0
  269. package/dist/collection/components/flow-item/resources.js +1 -1
  270. package/dist/collection/components/functional/ExpandToggle.js +1 -1
  271. package/dist/collection/components/functional/Heading.js +1 -1
  272. package/dist/collection/components/graph/graph.js +1 -1
  273. package/dist/collection/components/graph/graph.stories.js +77 -0
  274. package/dist/collection/components/graph/util.js +1 -1
  275. package/dist/collection/components/handle/handle.js +1 -1
  276. package/dist/collection/components/handle/resources.js +1 -1
  277. package/dist/collection/components/icon/icon.js +1 -1
  278. package/dist/collection/components/icon/icon.stories.js +26 -0
  279. package/dist/collection/components/icon/resources.js +1 -1
  280. package/dist/collection/components/icon/utils.js +1 -1
  281. package/dist/collection/components/inline-editable/inline-editable.js +1 -1
  282. package/dist/collection/components/inline-editable/inline-editable.stories.js +70 -0
  283. package/dist/collection/components/inline-editable/resources.js +1 -1
  284. package/dist/collection/components/input/input.css +5 -0
  285. package/dist/collection/components/input/input.js +28 -28
  286. package/dist/collection/components/input/input.stories.js +146 -0
  287. package/dist/collection/components/input/resources.js +1 -1
  288. package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
  289. package/dist/collection/components/input-date-picker/input-date-picker.stories.js +79 -0
  290. package/dist/collection/components/input-date-picker/resources.js +1 -1
  291. package/dist/collection/components/input-message/input-message.js +3 -3
  292. package/dist/collection/components/input-message/interfaces.js +1 -1
  293. package/dist/collection/components/input-number/input-number.css +1 -20
  294. package/dist/collection/components/input-number/input-number.js +26 -26
  295. package/dist/collection/components/input-number/input-number.stories.js +124 -0
  296. package/dist/collection/components/input-number/resources.js +1 -1
  297. package/dist/collection/components/input-text/input-text.css +1 -20
  298. package/dist/collection/components/input-text/input-text.js +18 -18
  299. package/dist/collection/components/input-text/input-text.stories.js +99 -0
  300. package/dist/collection/components/input-text/resources.js +1 -1
  301. package/dist/collection/components/input-time-picker/input-time-picker.js +76 -17
  302. package/dist/collection/components/input-time-picker/input-time-picker.stories.js +77 -0
  303. package/dist/collection/components/label/label.js +5 -5
  304. package/dist/collection/components/label/label.stories.js +178 -0
  305. package/dist/collection/components/label/resources.js +1 -1
  306. package/dist/collection/components/link/link.js +4 -4
  307. package/dist/collection/components/link/link.stories.js +89 -0
  308. package/dist/collection/components/list/list.js +3 -3
  309. package/dist/collection/components/list/list.stories.js +187 -0
  310. package/dist/collection/components/list/resources.js +1 -1
  311. package/dist/collection/components/list-item/list-item.js +5 -5
  312. package/dist/collection/components/list-item/resources.js +1 -1
  313. package/dist/collection/components/list-item-group/list-item-group.js +1 -1
  314. package/dist/collection/components/list-item-group/resources.js +1 -1
  315. package/dist/collection/components/loader/loader.css +1 -1
  316. package/dist/collection/components/loader/loader.js +8 -8
  317. package/dist/collection/components/loader/loader.stories.js +42 -0
  318. package/dist/collection/components/modal/modal.js +19 -19
  319. package/dist/collection/components/modal/modal.stories.js +66 -0
  320. package/dist/collection/components/modal/resources.js +1 -1
  321. package/dist/collection/components/notice/notice.js +14 -14
  322. package/dist/collection/components/notice/notice.stories.js +90 -0
  323. package/dist/collection/components/notice/resources.js +1 -1
  324. package/dist/collection/components/option/option.js +4 -4
  325. package/dist/collection/components/option-group/option-group.js +3 -3
  326. package/dist/collection/components/pagination/pagination.js +5 -5
  327. package/dist/collection/components/pagination/pagination.stories.js +37 -0
  328. package/dist/collection/components/pagination/resources.js +1 -1
  329. package/dist/collection/components/panel/panel.js +32 -29
  330. package/dist/collection/components/panel/panel.stories.js +181 -0
  331. package/dist/collection/components/panel/resources.js +1 -1
  332. package/dist/collection/components/pick-list/pick-list.js +12 -12
  333. package/dist/collection/components/pick-list/pick-list.stories.js +142 -0
  334. package/dist/collection/components/pick-list/resources.js +1 -1
  335. package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
  336. package/dist/collection/components/pick-list/shared-list-render.js +1 -1
  337. package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
  338. package/dist/collection/components/pick-list-group/resources.js +1 -1
  339. package/dist/collection/components/pick-list-item/pick-list-item.js +15 -15
  340. package/dist/collection/components/pick-list-item/resources.js +1 -1
  341. package/dist/collection/components/popover/PopoverManager.js +1 -1
  342. package/dist/collection/components/popover/popover.js +24 -22
  343. package/dist/collection/components/popover/popover.stories.js +95 -0
  344. package/dist/collection/components/popover/resources.js +1 -1
  345. package/dist/collection/components/popover-manager/popover-manager.js +1 -1
  346. package/dist/collection/components/progress/progress.js +10 -5
  347. package/dist/collection/components/progress/progress.stories.js +28 -0
  348. package/dist/collection/components/radio-button/radio-button.js +11 -11
  349. package/dist/collection/components/radio-button/radio-button.stories.js +43 -0
  350. package/dist/collection/components/radio-button/resources.js +1 -1
  351. package/dist/collection/components/radio-button-group/radio-button-group.js +7 -7
  352. package/dist/collection/components/radio-button-group/radio-button-group.stories.js +67 -0
  353. package/dist/collection/components/radio-group/radio-group.js +7 -7
  354. package/dist/collection/components/radio-group/radio-group.stories.js +79 -0
  355. package/dist/collection/components/radio-group-item/radio-group-item.js +5 -5
  356. package/dist/collection/components/radio-group-item/resources.js +1 -1
  357. package/dist/collection/components/rating/rating.js +9 -9
  358. package/dist/collection/components/rating/rating.stories.js +42 -0
  359. package/dist/collection/components/rating/resources.js +1 -1
  360. package/dist/collection/components/scrim/resources.js +1 -1
  361. package/dist/collection/components/scrim/scrim.js +3 -3
  362. package/dist/collection/components/scrim/scrim.stories.js +70 -0
  363. package/dist/collection/components/select/resources.js +1 -1
  364. package/dist/collection/components/select/select.js +8 -8
  365. package/dist/collection/components/select/select.stories.js +109 -0
  366. package/dist/collection/components/shell/resources.js +1 -1
  367. package/dist/collection/components/shell/shell.js +1 -1
  368. package/dist/collection/components/shell/shell.stories.js +482 -0
  369. package/dist/collection/components/shell-center-row/resources.js +1 -1
  370. package/dist/collection/components/shell-center-row/shell-center-row.js +3 -3
  371. package/dist/collection/components/shell-panel/resources.js +1 -1
  372. package/dist/collection/components/shell-panel/shell-panel.js +10 -10
  373. package/dist/collection/components/slider/resources.js +1 -1
  374. package/dist/collection/components/slider/slider.js +24 -24
  375. package/dist/collection/components/slider/slider.stories.js +227 -0
  376. package/dist/collection/components/sortable-list/resources.js +1 -1
  377. package/dist/collection/components/sortable-list/sortable-list.js +1 -1
  378. package/dist/collection/components/split-button/resources.js +1 -1
  379. package/dist/collection/components/split-button/split-button.js +8 -8
  380. package/dist/collection/components/split-button/split-button.stories.js +112 -0
  381. package/dist/collection/components/stepper/stepper.js +27 -5
  382. package/dist/collection/components/stepper/stepper.stories.js +163 -0
  383. package/dist/collection/components/stepper-item/stepper-item.js +43 -16
  384. package/dist/collection/components/switch/switch.js +8 -8
  385. package/dist/collection/components/switch/switch.stories.js +32 -0
  386. package/dist/collection/components/tab/tab.js +5 -5
  387. package/dist/collection/components/tab-nav/tab-nav.js +1 -1
  388. package/dist/collection/components/tab-title/tab-title.js +9 -9
  389. package/dist/collection/components/tabs/resources.js +1 -1
  390. package/dist/collection/components/tabs/tabs.js +7 -7
  391. package/dist/collection/components/tabs/tabs.stories.js +223 -0
  392. package/dist/collection/components/tile/resources.js +1 -1
  393. package/dist/collection/components/tile/tile.js +10 -10
  394. package/dist/collection/components/tile/tile.stories.js +81 -0
  395. package/dist/collection/components/tile-select/resources.js +1 -1
  396. package/dist/collection/components/tile-select/tile-select.js +11 -11
  397. package/dist/collection/components/tile-select/tile-select.stories.js +137 -0
  398. package/dist/collection/components/tile-select-group/tile-select-group.js +3 -3
  399. package/dist/collection/components/tile-select-group/tile-select-group.stories.js +89 -0
  400. package/dist/collection/components/time-picker/resources.js +1 -1
  401. package/dist/collection/components/time-picker/time-picker.js +49 -13
  402. package/dist/collection/components/tip/resources.js +1 -1
  403. package/dist/collection/components/tip/tip.js +5 -5
  404. package/dist/collection/components/tip/tip.stories.js +60 -0
  405. package/dist/collection/components/tip-group/tip-group.js +1 -1
  406. package/dist/collection/components/tip-manager/resources.js +1 -1
  407. package/dist/collection/components/tip-manager/tip-manager.js +3 -3
  408. package/dist/collection/components/tip-manager/tip-manager.stories.js +115 -0
  409. package/dist/collection/components/tooltip/TooltipManager.js +1 -1
  410. package/dist/collection/components/tooltip/resources.js +1 -1
  411. package/dist/collection/components/tooltip/tooltip.js +4 -4
  412. package/dist/collection/components/tooltip/tooltip.stories.js +60 -0
  413. package/dist/collection/components/tooltip-manager/tooltip-manager.js +2 -2
  414. package/dist/collection/components/tree/interfaces.js +1 -1
  415. package/dist/collection/components/tree/tree.js +2 -2
  416. package/dist/collection/components/tree/tree.stories.js +76 -0
  417. package/dist/collection/components/tree/utils.js +1 -1
  418. package/dist/collection/components/tree-item/resources.js +1 -1
  419. package/dist/collection/components/tree-item/tree-item.js +7 -7
  420. package/dist/collection/components/value-list/resources.js +1 -1
  421. package/dist/collection/components/value-list/utils.js +1 -1
  422. package/dist/collection/components/value-list/value-list.js +18 -18
  423. package/dist/collection/components/value-list/value-list.stories.js +125 -0
  424. package/dist/collection/components/value-list-item/resources.js +1 -1
  425. package/dist/collection/components/value-list-item/value-list-item.js +9 -9
  426. package/dist/collection/utils/array.js +1 -1
  427. package/dist/collection/utils/conditionalSlot.js +1 -1
  428. package/dist/collection/utils/date.js +1 -1
  429. package/dist/collection/utils/dom.js +1 -1
  430. package/dist/collection/utils/filter.js +1 -1
  431. package/dist/collection/utils/floating-ui.js +1 -1
  432. package/dist/collection/utils/form.js +1 -1
  433. package/dist/collection/utils/globalAttributes.js +1 -1
  434. package/dist/collection/utils/globalScript.js +1 -1
  435. package/dist/collection/utils/guid.js +1 -1
  436. package/dist/collection/utils/interactive.js +1 -1
  437. package/dist/collection/utils/key.js +1 -1
  438. package/dist/collection/utils/label.js +1 -1
  439. package/dist/collection/utils/locale.js +52 -45
  440. package/dist/collection/utils/math.js +1 -1
  441. package/dist/collection/utils/number.js +1 -1
  442. package/dist/collection/utils/observers.js +1 -1
  443. package/dist/collection/utils/openCloseComponent.js +1 -1
  444. package/dist/collection/utils/resources.js +1 -1
  445. package/dist/collection/utils/t9n.js +1 -1
  446. package/dist/collection/utils/theme.js +1 -1
  447. package/dist/collection/utils/time.js +16 -16
  448. package/dist/components/ExpandToggle.js +1 -1
  449. package/dist/components/Heading.js +1 -1
  450. package/dist/components/action-group.js +3 -3
  451. package/dist/components/action-menu.js +3 -3
  452. package/dist/components/action.js +6 -6
  453. package/dist/components/array.js +1 -1
  454. package/dist/components/button.js +1 -1
  455. package/dist/components/calcite-accordion-item.js +4 -4
  456. package/dist/components/calcite-accordion.js +3 -3
  457. package/dist/components/calcite-action-bar.js +3 -3
  458. package/dist/components/calcite-action-group.js +1 -1
  459. package/dist/components/calcite-action-menu.js +1 -1
  460. package/dist/components/calcite-action-pad.js +3 -3
  461. package/dist/components/calcite-action.js +1 -1
  462. package/dist/components/calcite-alert.js +11 -12
  463. package/dist/components/calcite-avatar.js +1 -1
  464. package/dist/components/calcite-block-section.js +1 -1
  465. package/dist/components/calcite-block.js +7 -6
  466. package/dist/components/calcite-button.js +1 -1
  467. package/dist/components/calcite-card.js +1 -1
  468. package/dist/components/calcite-checkbox.js +1 -1
  469. package/dist/components/calcite-chip.js +1 -1
  470. package/dist/components/calcite-color-picker-hex-input.js +1 -1
  471. package/dist/components/calcite-color-picker-swatch.js +1 -1
  472. package/dist/components/calcite-color-picker.js +1 -1
  473. package/dist/components/calcite-combobox-item-group.js +1 -1
  474. package/dist/components/calcite-combobox-item.js +1 -1
  475. package/dist/components/calcite-combobox.js +1 -1
  476. package/dist/components/calcite-date-picker-day.js +1 -1
  477. package/dist/components/calcite-date-picker-month-header.js +1 -1
  478. package/dist/components/calcite-date-picker-month.js +1 -1
  479. package/dist/components/calcite-date-picker.js +1 -1
  480. package/dist/components/calcite-dropdown-group.js +1 -1
  481. package/dist/components/calcite-dropdown-item.js +1 -1
  482. package/dist/components/calcite-dropdown.js +1 -1
  483. package/dist/components/calcite-fab.js +1 -1
  484. package/dist/components/calcite-filter.js +1 -1
  485. package/dist/components/calcite-flow-item.js +6 -3
  486. package/dist/components/calcite-flow.js +1 -1
  487. package/dist/components/calcite-graph.js +1 -1
  488. package/dist/components/calcite-handle.js +1 -1
  489. package/dist/components/calcite-icon.js +1 -1
  490. package/dist/components/calcite-inline-editable.js +1 -1
  491. package/dist/components/calcite-input-date-picker.js +1 -1
  492. package/dist/components/calcite-input-message.js +2 -2
  493. package/dist/components/calcite-input-number.js +17 -17
  494. package/dist/components/calcite-input-text.js +10 -10
  495. package/dist/components/calcite-input-time-picker.js +51 -13
  496. package/dist/components/calcite-input.js +1 -1
  497. package/dist/components/calcite-label.js +1 -1
  498. package/dist/components/calcite-link.js +1 -1
  499. package/dist/components/calcite-list-item-group.js +1 -1
  500. package/dist/components/calcite-list-item.js +3 -3
  501. package/dist/components/calcite-list.js +2 -2
  502. package/dist/components/calcite-loader.js +1 -1
  503. package/dist/components/calcite-modal.js +9 -9
  504. package/dist/components/calcite-notice.js +7 -7
  505. package/dist/components/calcite-option-group.js +2 -2
  506. package/dist/components/calcite-option.js +2 -2
  507. package/dist/components/calcite-pagination.js +4 -4
  508. package/dist/components/calcite-panel.js +1 -1
  509. package/dist/components/calcite-pick-list-group.js +1 -1
  510. package/dist/components/calcite-pick-list-item.js +1 -1
  511. package/dist/components/calcite-pick-list.js +7 -7
  512. package/dist/components/calcite-popover-manager.js +1 -1
  513. package/dist/components/calcite-popover.js +1 -1
  514. package/dist/components/calcite-progress.js +1 -1
  515. package/dist/components/calcite-radio-button-group.js +4 -4
  516. package/dist/components/calcite-radio-button.js +5 -5
  517. package/dist/components/calcite-radio-group-item.js +3 -3
  518. package/dist/components/calcite-radio-group.js +4 -4
  519. package/dist/components/calcite-rating.js +5 -5
  520. package/dist/components/calcite-scrim.js +1 -1
  521. package/dist/components/calcite-select.js +4 -4
  522. package/dist/components/calcite-shell-center-row.js +2 -2
  523. package/dist/components/calcite-shell-panel.js +5 -5
  524. package/dist/components/calcite-shell.js +1 -1
  525. package/dist/components/calcite-slider.js +12 -12
  526. package/dist/components/calcite-sortable-list.js +1 -1
  527. package/dist/components/calcite-split-button.js +4 -4
  528. package/dist/components/calcite-stepper-item.js +32 -11
  529. package/dist/components/calcite-stepper.js +4 -3
  530. package/dist/components/calcite-switch.js +1 -1
  531. package/dist/components/calcite-tab-nav.js +1 -1
  532. package/dist/components/calcite-tab-title.js +1 -1
  533. package/dist/components/calcite-tab.js +1 -1
  534. package/dist/components/calcite-tabs.js +1 -1
  535. package/dist/components/calcite-tile-select-group.js +2 -2
  536. package/dist/components/calcite-tile-select.js +6 -6
  537. package/dist/components/calcite-tile.js +1 -1
  538. package/dist/components/calcite-time-picker.js +1 -1
  539. package/dist/components/calcite-tip-group.js +1 -1
  540. package/dist/components/calcite-tip-manager.js +2 -2
  541. package/dist/components/calcite-tip.js +3 -3
  542. package/dist/components/calcite-tooltip-manager.js +1 -1
  543. package/dist/components/calcite-tooltip.js +1 -1
  544. package/dist/components/calcite-tree-item.js +4 -4
  545. package/dist/components/calcite-tree.js +1 -1
  546. package/dist/components/calcite-value-list-item.js +5 -5
  547. package/dist/components/calcite-value-list.js +8 -8
  548. package/dist/components/checkbox.js +1 -1
  549. package/dist/components/chip.js +1 -1
  550. package/dist/components/color-picker-hex-input.js +1 -1
  551. package/dist/components/color-picker-swatch.js +1 -1
  552. package/dist/components/conditionalSlot.js +1 -1
  553. package/dist/components/date-picker-day.js +1 -1
  554. package/dist/components/date-picker-month-header.js +6 -6
  555. package/dist/components/date-picker-month.js +1 -1
  556. package/dist/components/date-picker.js +2 -2
  557. package/dist/components/date.js +1 -1
  558. package/dist/components/debounce.js +1 -1
  559. package/dist/components/dom.js +1 -1
  560. package/dist/components/dropdown.js +1 -1
  561. package/dist/components/filter.js +1 -1
  562. package/dist/components/filter2.js +1 -1
  563. package/dist/components/floating-ui.js +1 -1
  564. package/dist/components/form.js +1 -1
  565. package/dist/components/graph.js +1 -1
  566. package/dist/components/guid.js +1 -1
  567. package/dist/components/handle.js +1 -1
  568. package/dist/components/icon.js +1 -1
  569. package/dist/components/index.js +1 -1
  570. package/dist/components/input.js +18 -18
  571. package/dist/components/interactive.js +1 -1
  572. package/dist/components/interfaces.js +1 -1
  573. package/dist/components/interfaces2.js +1 -1
  574. package/dist/components/key.js +1 -1
  575. package/dist/components/label.js +3 -3
  576. package/dist/components/label2.js +1 -1
  577. package/dist/components/link.js +2 -2
  578. package/dist/components/loader.js +4 -4
  579. package/dist/components/locale.js +53 -46
  580. package/dist/components/math.js +1 -1
  581. package/dist/components/observers.js +1 -1
  582. package/dist/components/openCloseComponent.js +1 -1
  583. package/dist/components/panel.js +17 -14
  584. package/dist/components/pick-list-item.js +7 -7
  585. package/dist/components/popover.js +13 -11
  586. package/dist/components/progress.js +8 -3
  587. package/dist/components/resources.js +1 -1
  588. package/dist/components/resources2.js +1 -1
  589. package/dist/components/resources3.js +1 -1
  590. package/dist/components/scrim.js +2 -2
  591. package/dist/components/shared-list-render.js +1 -1
  592. package/dist/components/sortable.esm.js +1 -1
  593. package/dist/components/switch.js +4 -4
  594. package/dist/components/tab-nav.js +1 -1
  595. package/dist/components/tab-title.js +4 -4
  596. package/dist/components/tab.js +3 -3
  597. package/dist/components/tabs.js +4 -4
  598. package/dist/components/tile.js +5 -5
  599. package/dist/components/time-picker.js +42 -27
  600. package/dist/components/tooltip.js +2 -2
  601. package/dist/components/utils.js +1 -1
  602. package/dist/components/utils2.js +1 -1
  603. package/dist/esm/{ExpandToggle-21a5493f.js → ExpandToggle-c4680d33.js} +5 -5
  604. package/dist/esm/{Heading-0da1d231.js → Heading-101a701e.js} +2 -2
  605. package/dist/esm/{app-globals-53484588.js → app-globals-ce2cbf03.js} +2 -2
  606. package/dist/esm/{array-afca26e4.js → array-2549899e.js} +1 -1
  607. package/dist/esm/calcite-accordion_2.entry.js +12 -12
  608. package/dist/esm/calcite-action-bar.entry.js +13 -13
  609. package/dist/esm/calcite-action-group.entry.js +11 -11
  610. package/dist/esm/calcite-action-menu.entry.js +10 -10
  611. package/dist/esm/calcite-action-pad.entry.js +12 -12
  612. package/dist/esm/calcite-action.entry.js +12 -12
  613. package/dist/esm/calcite-alert.entry.js +19 -20
  614. package/dist/esm/calcite-avatar.entry.js +6 -6
  615. package/dist/esm/calcite-block_2.entry.js +16 -15
  616. package/dist/esm/calcite-button.entry.js +9 -9
  617. package/dist/esm/calcite-card.entry.js +7 -7
  618. package/dist/esm/calcite-checkbox.entry.js +9 -9
  619. package/dist/esm/calcite-chip.entry.js +7 -7
  620. package/dist/esm/calcite-color-picker_3.entry.js +10 -10
  621. package/dist/esm/calcite-combobox_3.entry.js +14 -14
  622. package/dist/esm/calcite-date-picker_4.entry.js +16 -16
  623. package/dist/esm/calcite-dropdown_3.entry.js +11 -11
  624. package/dist/esm/calcite-fab.entry.js +6 -6
  625. package/dist/esm/calcite-filter.entry.js +8 -8
  626. package/dist/esm/calcite-flow-item.entry.js +12 -9
  627. package/dist/esm/calcite-flow.entry.js +3 -3
  628. package/dist/esm/calcite-graph_2.entry.js +23 -23
  629. package/dist/esm/calcite-handle.entry.js +5 -5
  630. package/dist/esm/calcite-icon.entry.js +6 -6
  631. package/dist/esm/calcite-inline-editable.entry.js +8 -8
  632. package/dist/esm/calcite-input-date-picker.entry.js +15 -15
  633. package/dist/esm/calcite-input-message.entry.js +6 -6
  634. package/dist/esm/calcite-input-number.entry.js +28 -28
  635. package/dist/esm/calcite-input-text.entry.js +18 -18
  636. package/dist/esm/calcite-input-time-picker_2.entry.js +97 -47
  637. package/dist/esm/calcite-input.entry.js +29 -29
  638. package/dist/esm/calcite-label.entry.js +8 -8
  639. package/dist/esm/calcite-link.entry.js +7 -7
  640. package/dist/esm/calcite-list_3.entry.js +12 -12
  641. package/dist/esm/calcite-loader.entry.js +6 -6
  642. package/dist/esm/calcite-modal.entry.js +16 -16
  643. package/dist/esm/calcite-notice.entry.js +14 -14
  644. package/dist/esm/calcite-option_3.entry.js +14 -14
  645. package/dist/esm/calcite-pagination.entry.js +11 -11
  646. package/dist/esm/calcite-panel.entry.js +26 -23
  647. package/dist/esm/calcite-pick-list_3.entry.js +24 -24
  648. package/dist/esm/calcite-popover_2.entry.js +23 -21
  649. package/dist/esm/calcite-progress.entry.js +9 -4
  650. package/dist/esm/calcite-radio-button-group.entry.js +6 -6
  651. package/dist/esm/calcite-radio-button.entry.js +13 -13
  652. package/dist/esm/calcite-radio-group_2.entry.js +13 -13
  653. package/dist/esm/calcite-rating.entry.js +13 -13
  654. package/dist/esm/calcite-scrim.entry.js +3 -3
  655. package/dist/esm/calcite-shell_3.entry.js +13 -13
  656. package/dist/esm/calcite-sortable-list.entry.js +5 -5
  657. package/dist/esm/calcite-split-button.entry.js +6 -6
  658. package/dist/esm/calcite-stepper_2.entry.js +40 -18
  659. package/dist/esm/calcite-switch.entry.js +12 -12
  660. package/dist/esm/calcite-tab_4.entry.js +15 -15
  661. package/dist/esm/calcite-tile-select_2.entry.js +10 -10
  662. package/dist/esm/calcite-tile.entry.js +12 -12
  663. package/dist/esm/calcite-tip_3.entry.js +11 -11
  664. package/dist/esm/calcite-tooltip_2.entry.js +8 -8
  665. package/dist/esm/calcite-tree_2.entry.js +11 -11
  666. package/dist/esm/calcite-value-list_2.entry.js +23 -23
  667. package/dist/esm/calcite.js +5 -5
  668. package/dist/esm/{conditionalSlot-e50c9f14.js → conditionalSlot-97eefd44.js} +3 -3
  669. package/dist/esm/{debounce-6816d02c.js → debounce-eb8de851.js} +1 -1
  670. package/dist/esm/{dom-1ac7b489.js → dom-648b4a2f.js} +3 -3
  671. package/dist/esm/{filter-1cca1a38.js → filter-7d351602.js} +2 -2
  672. package/dist/esm/{floating-ui-41bd9b35.js → floating-ui-65b7d762.js} +2 -2
  673. package/dist/esm/{form-08544720.js → form-6ee82a1e.js} +3 -3
  674. package/dist/esm/{guid-57e25130.js → guid-3260dd45.js} +1 -1
  675. package/dist/esm/{index-5326c3af.js → index-cf16b53b.js} +1 -1
  676. package/dist/esm/index.js +1 -1
  677. package/dist/esm/{interactive-c086cb04.js → interactive-53846bd5.js} +1 -1
  678. package/dist/esm/{interfaces-ba4e7fb1.js → interfaces-5bcff418.js} +1 -1
  679. package/dist/esm/{key-42705c39.js → key-a3bce814.js} +1 -1
  680. package/dist/esm/{label-a209a39c.js → label-a2d9ea4b.js} +2 -2
  681. package/dist/esm/loader.js +5 -5
  682. package/dist/esm/{locale-6840e756.js → locale-66ebbf7a.js} +56 -49
  683. package/dist/esm/{math-e13ce572.js → math-a5ac6592.js} +1 -1
  684. package/dist/esm/{observers-68c33472.js → observers-85e8fe58.js} +1 -1
  685. package/dist/esm/{openCloseComponent-f9f51e92.js → openCloseComponent-926c5b7a.js} +1 -1
  686. package/dist/esm/{resources-d2b2a177.js → resources-19dbedf3.js} +1 -1
  687. package/dist/esm/{resources-ba2025cb.js → resources-386257f3.js} +1 -1
  688. package/dist/esm/{resources-c69a833c.js → resources-418fb8c6.js} +3 -3
  689. package/dist/esm/{resources-a65a8ad1.js → resources-6177d83d.js} +1 -1
  690. package/dist/esm/{resources-bf3cbf16.js → resources-8468e332.js} +1 -1
  691. package/dist/esm/{resources-d0f37d22.js → resources-ab13d20f.js} +5 -5
  692. package/dist/esm/{sortable.esm-1ad7cec8.js → sortable.esm-aca7e683.js} +1 -1
  693. package/dist/esm/{utils-f163e9f8.js → utils-78b2f096.js} +1 -1
  694. package/dist/extras/docs-json.json +553 -250
  695. package/dist/loader/cdn.js +1 -1
  696. package/dist/loader/index.cjs.js +1 -1
  697. package/dist/loader/index.es2017.js +1 -1
  698. package/dist/loader/index.js +1 -1
  699. package/dist/types/components/accordion/accordion.d.ts +2 -2
  700. package/dist/types/components/accordion-item/accordion-item.d.ts +3 -3
  701. package/dist/types/components/action/action.d.ts +6 -6
  702. package/dist/types/components/action-bar/action-bar.d.ts +2 -2
  703. package/dist/types/components/action-group/action-group.d.ts +2 -2
  704. package/dist/types/components/action-menu/action-menu.d.ts +2 -2
  705. package/dist/types/components/action-pad/action-pad.d.ts +2 -2
  706. package/dist/types/components/alert/alert.d.ts +5 -5
  707. package/dist/types/components/block/resources.d.ts +2 -1
  708. package/dist/types/components/flow-item/flow-item.d.ts +1 -0
  709. package/dist/types/components/input/input.d.ts +11 -11
  710. package/dist/types/components/input-message/input-message.d.ts +1 -1
  711. package/dist/types/components/input-number/input-number.d.ts +10 -10
  712. package/dist/types/components/input-text/input-text.d.ts +9 -9
  713. package/dist/types/components/input-time-picker/input-time-picker.d.ts +9 -5
  714. package/dist/types/components/label/label.d.ts +2 -2
  715. package/dist/types/components/link/link.d.ts +2 -2
  716. package/dist/types/components/list/list.d.ts +1 -1
  717. package/dist/types/components/list-item/list-item.d.ts +2 -2
  718. package/dist/types/components/loader/loader.d.ts +9 -4
  719. package/dist/types/components/modal/modal.d.ts +10 -10
  720. package/dist/types/components/notice/notice.d.ts +7 -7
  721. package/dist/types/components/option/option.d.ts +2 -2
  722. package/dist/types/components/option-group/option-group.d.ts +1 -1
  723. package/dist/types/components/pagination/pagination.d.ts +1 -1
  724. package/dist/types/components/panel/panel.d.ts +15 -15
  725. package/dist/types/components/pick-list/pick-list.d.ts +6 -6
  726. package/dist/types/components/pick-list-item/pick-list-item.d.ts +8 -8
  727. package/dist/types/components/popover/popover.d.ts +13 -11
  728. package/dist/types/components/progress/progress.d.ts +7 -2
  729. package/dist/types/components/radio-button/radio-button.d.ts +6 -6
  730. package/dist/types/components/radio-button-group/radio-button-group.d.ts +3 -3
  731. package/dist/types/components/radio-group/radio-group.d.ts +3 -3
  732. package/dist/types/components/radio-group-item/radio-group-item.d.ts +2 -2
  733. package/dist/types/components/rating/rating.d.ts +4 -4
  734. package/dist/types/components/scrim/scrim.d.ts +1 -1
  735. package/dist/types/components/select/select.d.ts +4 -4
  736. package/dist/types/components/shell-center-row/shell-center-row.d.ts +1 -1
  737. package/dist/types/components/shell-panel/shell-panel.d.ts +5 -5
  738. package/dist/types/components/slider/slider.d.ts +12 -12
  739. package/dist/types/components/split-button/split-button.d.ts +4 -4
  740. package/dist/types/components/stepper/stepper.d.ts +7 -2
  741. package/dist/types/components/stepper-item/stepper-item.d.ts +13 -9
  742. package/dist/types/components/switch/switch.d.ts +5 -5
  743. package/dist/types/components/tab/tab.d.ts +2 -2
  744. package/dist/types/components/tab-title/tab-title.d.ts +5 -5
  745. package/dist/types/components/tabs/tabs.d.ts +3 -3
  746. package/dist/types/components/tile/tile.d.ts +5 -5
  747. package/dist/types/components/tile-select/tile-select.d.ts +5 -5
  748. package/dist/types/components/tile-select-group/tile-select-group.d.ts +1 -1
  749. package/dist/types/components/time-picker/time-picker.d.ts +7 -2
  750. package/dist/types/components/tip/tip.d.ts +2 -2
  751. package/dist/types/components/tip-manager/tip-manager.d.ts +1 -1
  752. package/dist/types/components/tooltip/tooltip.d.ts +6 -2
  753. package/dist/types/components/tooltip-manager/tooltip-manager.d.ts +1 -1
  754. package/dist/types/components/tree/tree.d.ts +1 -1
  755. package/dist/types/components/tree-item/tree-item.d.ts +3 -3
  756. package/dist/types/components/value-list/value-list.d.ts +15 -15
  757. package/dist/types/components/value-list-item/value-list-item.d.ts +4 -4
  758. package/dist/types/components.d.ts +472 -448
  759. package/dist/types/utils/locale.d.ts +20 -19
  760. package/dist/types/utils/time.d.ts +29 -5
  761. package/hydrate/index.js +416 -323
  762. package/package.json +5 -5
  763. package/dist/calcite/p-01cb5477.js +0 -6
  764. package/dist/calcite/p-27969266.entry.js +0 -6
  765. package/dist/calcite/p-416510d6.js +0 -6
  766. package/dist/calcite/p-4c8218d4.entry.js +0 -6
  767. package/dist/calcite/p-672cf3c2.js +0 -6
  768. package/dist/calcite/p-99889377.entry.js +0 -6
  769. package/dist/calcite/p-a5ec748f.entry.js +0 -6
  770. package/dist/calcite/p-a8b04902.entry.js +0 -6
  771. package/dist/calcite/p-ab03590a.entry.js +0 -6
  772. package/dist/calcite/p-b31ac46b.entry.js +0 -6
  773. package/dist/calcite/p-b8492482.entry.js +0 -6
  774. package/dist/calcite/p-e9ccd0bc.entry.js +0 -6
  775. package/dist/calcite/p-f52edbbb.entry.js +0 -6
  776. package/dist/collection/components/accordion/accordion.e2e.js +0 -183
  777. package/dist/collection/components/accordion-item/accordion-item.e2e.js +0 -8
  778. package/dist/collection/components/action/action.e2e.js +0 -93
  779. package/dist/collection/components/action-bar/action-bar.e2e.js +0 -290
  780. package/dist/collection/components/action-group/action-group.e2e.js +0 -23
  781. package/dist/collection/components/action-menu/action-menu.e2e.js +0 -153
  782. package/dist/collection/components/action-pad/action-pad.e2e.js +0 -178
  783. package/dist/collection/components/alert/alert.e2e.js +0 -294
  784. package/dist/collection/components/avatar/avatar.e2e.js +0 -55
  785. package/dist/collection/components/avatar/avatar.spec.js +0 -42
  786. package/dist/collection/components/block/block.e2e.js +0 -194
  787. package/dist/collection/components/block-section/block-section.e2e.js +0 -132
  788. package/dist/collection/components/button/button.e2e.js +0 -529
  789. package/dist/collection/components/card/card.e2e.js +0 -87
  790. package/dist/collection/components/checkbox/checkbox.e2e.js +0 -105
  791. package/dist/collection/components/chip/chip.e2e.js +0 -149
  792. package/dist/collection/components/color-picker/color-picker.e2e.js +0 -1068
  793. package/dist/collection/components/color-picker/utils.spec.js +0 -66
  794. package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.e2e.js +0 -281
  795. package/dist/collection/components/color-picker-swatch/color-picker-swatch.e2e.js +0 -71
  796. package/dist/collection/components/combobox/combobox.e2e.js +0 -1043
  797. package/dist/collection/components/combobox-item/combobox-item.e2e.js +0 -7
  798. package/dist/collection/components/date-picker/date-picker.e2e.js +0 -195
  799. package/dist/collection/components/date-picker/utils.spec.js +0 -55
  800. package/dist/collection/components/date-picker-day/date-picker-day.e2e.js +0 -16
  801. package/dist/collection/components/date-picker-month-header/date-picker-month-header.e2e.js +0 -72
  802. package/dist/collection/components/dropdown/dropdown.e2e.js +0 -1030
  803. package/dist/collection/components/dropdown-group/dropdown-group.e2e.js +0 -5
  804. package/dist/collection/components/dropdown-item/dropdown-item.e2e.js +0 -6
  805. package/dist/collection/components/fab/fab.e2e.js +0 -114
  806. package/dist/collection/components/filter/filter.e2e.js +0 -205
  807. package/dist/collection/components/flow/flow.e2e.js +0 -166
  808. package/dist/collection/components/flow-item/flow-item.e2e.js +0 -72
  809. package/dist/collection/components/functional/Heading.spec.js +0 -33
  810. package/dist/collection/components/graph/graph.e2e.js +0 -69
  811. package/dist/collection/components/handle/handle.e2e.js +0 -30
  812. package/dist/collection/components/icon/icon.e2e.js +0 -75
  813. package/dist/collection/components/icon/utils.spec.js +0 -61
  814. package/dist/collection/components/inline-editable/inline-editable.e2e.js +0 -327
  815. package/dist/collection/components/input/input.e2e.js +0 -1192
  816. package/dist/collection/components/input-date-picker/input-date-picker.e2e.js +0 -295
  817. package/dist/collection/components/input-message/input-message.e2e.js +0 -122
  818. package/dist/collection/components/input-number/input-number.e2e.js +0 -1004
  819. package/dist/collection/components/input-text/input-text.e2e.js +0 -276
  820. package/dist/collection/components/input-time-picker/input-time-picker.e2e.js +0 -241
  821. package/dist/collection/components/label/label.e2e.js +0 -156
  822. package/dist/collection/components/link/link.e2e.js +0 -257
  823. package/dist/collection/components/list/list.e2e.js +0 -32
  824. package/dist/collection/components/list-item/list-item.e2e.js +0 -46
  825. package/dist/collection/components/list-item-group/list-item-group.e2e.js +0 -16
  826. package/dist/collection/components/loader/loader.e2e.js +0 -49
  827. package/dist/collection/components/modal/modal.e2e.js +0 -382
  828. package/dist/collection/components/notice/notice.e2e.js +0 -127
  829. package/dist/collection/components/option/option.e2e.js +0 -56
  830. package/dist/collection/components/option-group/option-group.e2e.js +0 -26
  831. package/dist/collection/components/pagination/pagination.e2e.js +0 -208
  832. package/dist/collection/components/panel/panel.e2e.js +0 -281
  833. package/dist/collection/components/pick-list/pick-list.e2e.js +0 -157
  834. package/dist/collection/components/pick-list/shared-list-tests.js +0 -463
  835. package/dist/collection/components/pick-list-group/pick-list-group.e2e.js +0 -54
  836. package/dist/collection/components/pick-list-item/pick-list-item.e2e.js +0 -124
  837. package/dist/collection/components/popover/popover.e2e.js +0 -454
  838. package/dist/collection/components/popover-manager/popover-manager.e2e.js +0 -38
  839. package/dist/collection/components/progress/progress.e2e.js +0 -7
  840. package/dist/collection/components/radio-button/radio-button.e2e.js +0 -332
  841. package/dist/collection/components/radio-button-group/radio-button-group.e2e.js +0 -384
  842. package/dist/collection/components/radio-group/radio-group.e2e.js +0 -258
  843. package/dist/collection/components/radio-group-item/radio-group-item.e2e.js +0 -92
  844. package/dist/collection/components/rating/rating.e2e.js +0 -450
  845. package/dist/collection/components/scrim/scrim.e2e.js +0 -122
  846. package/dist/collection/components/select/select.e2e.js +0 -266
  847. package/dist/collection/components/shell/shell.e2e.js +0 -126
  848. package/dist/collection/components/shell-center-row/shell-center-row.e2e.js +0 -66
  849. package/dist/collection/components/shell-panel/shell-panel.e2e.js +0 -282
  850. package/dist/collection/components/slider/slider.e2e.js +0 -648
  851. package/dist/collection/components/sortable-list/sortable-list.e2e.js +0 -57
  852. package/dist/collection/components/split-button/split-button.e2e.js +0 -206
  853. package/dist/collection/components/stepper/stepper.e2e.js +0 -558
  854. package/dist/collection/components/stepper-item/stepper-item.e2e.js +0 -6
  855. package/dist/collection/components/switch/switch.e2e.js +0 -91
  856. package/dist/collection/components/tab/tab.e2e.js +0 -49
  857. package/dist/collection/components/tab-nav/tab-nav.e2e.js +0 -143
  858. package/dist/collection/components/tab-title/tab-title.e2e.js +0 -222
  859. package/dist/collection/components/tabs/tabs.e2e.js +0 -281
  860. package/dist/collection/components/tile/tile.e2e.js +0 -79
  861. package/dist/collection/components/tile-select/tile-select.e2e.js +0 -133
  862. package/dist/collection/components/tile-select-group/tile-select-group.e2e.js +0 -14
  863. package/dist/collection/components/time-picker/time-picker.e2e.js +0 -737
  864. package/dist/collection/components/tip/tip.e2e.js +0 -42
  865. package/dist/collection/components/tip-group/tip-group.e2e.js +0 -6
  866. package/dist/collection/components/tip-manager/tip-manager.e2e.js +0 -176
  867. package/dist/collection/components/tip-manager/tip-manager.spec.js +0 -13
  868. package/dist/collection/components/tooltip/tooltip.e2e.js +0 -359
  869. package/dist/collection/components/tooltip-manager/tooltip-manager.e2e.js +0 -19
  870. package/dist/collection/components/tree/tree.e2e.js +0 -586
  871. package/dist/collection/components/tree-item/tree-item.e2e.js +0 -302
  872. package/dist/collection/components/value-list/value-list.e2e.js +0 -205
  873. package/dist/collection/components/value-list-item/value-list-item.e2e.js +0 -96
  874. package/dist/collection/demos/_assets/demo-dom-swapper.js +0 -45
  875. package/dist/collection/demos/_assets/demo-spacer.js +0 -17
  876. package/dist/collection/demos/_assets/demo-template.js +0 -24
  877. package/dist/collection/demos/_assets/head.js +0 -48
  878. package/dist/collection/demos/_assets/locales.js +0 -223
  879. package/dist/collection/tests/commonTests.js +0 -596
  880. package/dist/collection/tests/utils.js +0 -200
  881. package/dist/collection/utils/date.spec.js +0 -153
  882. package/dist/collection/utils/dom.e2e.js +0 -107
  883. package/dist/collection/utils/dom.spec.js +0 -273
  884. package/dist/collection/utils/floating-ui.spec.js +0 -23
  885. package/dist/collection/utils/form.spec.js +0 -16
  886. package/dist/collection/utils/globalAttributes.spec.js +0 -36
  887. package/dist/collection/utils/guid.spec.js +0 -7
  888. package/dist/collection/utils/interactive.spec.js +0 -20
  889. package/dist/collection/utils/label.spec.js +0 -188
  890. package/dist/collection/utils/locale.spec.js +0 -44
  891. package/dist/collection/utils/math.spec.js +0 -8
  892. package/dist/collection/utils/number.spec.js +0 -113
  893. package/dist/collection/utils/popper.js +0 -121
@@ -1,156 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { renders, hidden } from "../../tests/commonTests";
3
- describe("calcite-label", () => {
4
- it("renders", () => renders("calcite-label", { display: "inline" }));
5
- it("renders default props when none are provided", async () => {
6
- const page = await newE2EPage();
7
- await page.setContent(`
8
- <calcite-label>
9
- Label text
10
- <calcite-input></calcite-input>
11
- </calcite-label>
12
- `);
13
- const element = await page.find("calcite-label");
14
- expect(element).toEqualAttribute("status", "idle");
15
- expect(element).toEqualAttribute("layout", "default");
16
- });
17
- it("renders requested props when valid props are provided", async () => {
18
- const page = await newE2EPage();
19
- await page.setContent(`
20
- <calcite-label layout="inline-space-between">
21
- Label text
22
- <calcite-input></calcite-input>
23
- </calcite-label>
24
- `);
25
- const element = await page.find("calcite-label");
26
- expect(element).toEqualAttribute("layout", "inline-space-between");
27
- });
28
- it("honors hidden attribute", async () => hidden("calcite-label"));
29
- describe("alignment prop", () => {
30
- let page;
31
- let element;
32
- let style;
33
- describe("default behavior", () => {
34
- it("should render with 'start' alignment", async () => {
35
- page = await newE2EPage({
36
- html: `<calcite-label>Label text
37
- <calcite-input></calcite-input>
38
- </calcite-label>`
39
- });
40
- element = await page.find("calcite-label");
41
- expect(await element.getProperty("alignment")).toEqual("start");
42
- });
43
- describe("when in a center-aligned container", () => {
44
- describe("when direction is left-to-right", () => {
45
- it("should render text left-aligned", async () => {
46
- page = await newE2EPage({
47
- html: `<div style="text-align: center;">
48
- <calcite-label dir="ltr">Label text
49
- <calcite-input></calcite-input>
50
- </calcite-label>
51
- </div>`
52
- });
53
- element = await page.find("calcite-label >>> .container");
54
- style = await element.getComputedStyle();
55
- expect(style["textAlign"]).toEqual("start");
56
- });
57
- });
58
- describe("when direction is right-to-left", () => {
59
- it("should render text right-aligned", async () => {
60
- page = await newE2EPage({
61
- html: `<div style="text-align: center;">
62
- <calcite-label dir="rtl">Label text
63
- <calcite-input></calcite-input>
64
- </calcite-label>
65
- </div>`
66
- });
67
- element = await page.find("calcite-label >>> .container");
68
- style = await element.getComputedStyle();
69
- expect(style["textAlign"]).toEqual("start");
70
- });
71
- });
72
- });
73
- });
74
- describe("when alignment prop is provided", () => {
75
- describe("'center' alignment", () => {
76
- it("should render text center-aligned", async () => {
77
- page = await newE2EPage({
78
- html: `<calcite-label alignment="center">Label text
79
- <calcite-input></calcite-input>
80
- </calcite-label>`
81
- });
82
- element = await page.find("calcite-label >>> .container");
83
- style = await element.getComputedStyle();
84
- expect(style["textAlign"]).toEqual("center");
85
- });
86
- });
87
- describe("'end' alignment", () => {
88
- describe("when direction is left-to-right", () => {
89
- it("should render text right-aligned", async () => {
90
- page = await newE2EPage({
91
- html: `<calcite-label alignment="end" dir="ltr">Label text
92
- <calcite-input></calcite-input>
93
- </calcite-label>`
94
- });
95
- element = await page.find("calcite-label >>> .container");
96
- style = await element.getComputedStyle();
97
- expect(style["textAlign"]).toEqual("end");
98
- });
99
- });
100
- describe("when direction is right-to-left", () => {
101
- it("should render text left-aligned", async () => {
102
- page = await newE2EPage({
103
- html: `<calcite-label alignment="end" dir="rtl">Label text
104
- <calcite-input></calcite-input>
105
- </calcite-label>`
106
- });
107
- element = await page.find("calcite-label >>> .container");
108
- style = await element.getComputedStyle();
109
- expect(style["textAlign"]).toEqual("end");
110
- });
111
- });
112
- });
113
- });
114
- });
115
- it("does not pass id to child label element", async () => {
116
- const page = await newE2EPage();
117
- await page.setContent(`
118
- <calcite-label id="dont-duplicate-me" layout="inline-space-between">
119
- Label text
120
- <calcite-input></calcite-input>
121
- </calcite-label>
122
- `);
123
- const element = await page.find("calcite-label");
124
- const childElement = await page.find("calcite-label >>> .container");
125
- expect(element).toEqualAttribute("id", "dont-duplicate-me");
126
- expect(childElement).not.toHaveAttribute("id");
127
- expect(element).toEqualAttribute("layout", "inline-space-between");
128
- });
129
- // TODO: need shadow DOM equivalent update on helper
130
- it("clicking sibling label focuses input when both are inside a shadowRoot", async () => {
131
- const page = await newE2EPage();
132
- await page.evaluate(() => {
133
- document.addEventListener("calciteInputFocus", (event) => {
134
- window.eventDetail = event.detail;
135
- });
136
- });
137
- await page.evaluate(() => {
138
- class ShadowComponent extends HTMLElement {
139
- constructor() {
140
- super();
141
- const shadow = this.attachShadow({ mode: "open" });
142
- shadow.innerHTML = `
143
- <calcite-label for="input">Label</calcite-label>
144
- <calcite-input id="input"></calcite-input>
145
- `;
146
- }
147
- }
148
- customElements.define("shadow-component", ShadowComponent);
149
- const shadowComponent = document.createElement("shadow-component");
150
- document.body.appendChild(shadowComponent);
151
- shadowComponent.shadowRoot.querySelector("calcite-label").click();
152
- });
153
- const eventDetail = await page.evaluateHandle(() => window.eventDetail);
154
- expect(eventDetail).toBeTruthy();
155
- });
156
- });
@@ -1,257 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { accessible, defaults, disabled, renders, hidden } from "../../tests/commonTests";
3
- describe("calcite-link", () => {
4
- it("renders", async () => renders("<calcite-link href='/'>link</calcite-link>", { display: "inline" }));
5
- it("honors hidden attribute", async () => hidden("calcite-link"));
6
- it("defaults", async () => defaults("calcite-link", [
7
- {
8
- propertyName: "download",
9
- defaultValue: false
10
- }
11
- ]));
12
- it("is accessible", async () => {
13
- await accessible("<calcite-link href='/'>link</calcite-link>");
14
- await accessible("<calcite-link>link</calcite-link>");
15
- await accessible("<calcite-link icon-start='plus' icon-end='plus' href='/'>Go</calcite-link>");
16
- });
17
- it("can be disabled", () => disabled(`<calcite-link href='/'>link</calcite-link>`));
18
- it("sets download attribute on internal anchor", async () => {
19
- const page = await newE2EPage();
20
- await page.setContent(`<calcite-link href="file.jpg">Continue</calcite-link>`);
21
- const elementAsLink = await page.find("calcite-link >>> a");
22
- expect(elementAsLink).not.toBeNull();
23
- expect(await elementAsLink.getProperty("download")).toBe("");
24
- expect(elementAsLink).not.toHaveAttribute("download");
25
- const element = await page.find("calcite-link");
26
- element.setProperty("download", true);
27
- await page.waitForChanges();
28
- expect(await elementAsLink.getProperty("download")).toBe("");
29
- expect(elementAsLink).toHaveAttribute("download");
30
- expect(elementAsLink.getAttribute("download")).toBe("");
31
- const newFilename = "my-cool-file.jpg";
32
- element.setProperty("download", newFilename);
33
- await page.waitForChanges();
34
- expect(await elementAsLink.getProperty("download")).toBe(newFilename);
35
- expect(elementAsLink.getAttribute("download")).toBe(newFilename);
36
- element.setProperty("download", false);
37
- await page.waitForChanges();
38
- expect(await elementAsLink.getProperty("download")).toBe("");
39
- expect(elementAsLink).not.toHaveAttribute("download");
40
- });
41
- it("renders as a span with default props", async () => {
42
- const page = await newE2EPage();
43
- await page.setContent(`<calcite-link>Continue</calcite-link>`);
44
- const element = await page.find("calcite-link");
45
- const elementAsSpan = await page.find("calcite-link >>> span");
46
- const elementAsLink = await page.find("calcite-link >>> a");
47
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
48
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
49
- expect(element).not.toHaveAttribute("icon-flip-rtl");
50
- expect(elementAsLink).toBeNull();
51
- expect(elementAsSpan).not.toBeNull();
52
- expect(iconStart).toBeNull();
53
- expect(iconEnd).toBeNull();
54
- });
55
- it("should update childElType when href changes", async () => {
56
- const page = await newE2EPage({ html: `<calcite-link>Continue</calcite-link>` });
57
- const link = await page.find("calcite-link");
58
- let elementAsLink;
59
- let elementAsSpan;
60
- elementAsSpan = await page.find("calcite-link >>> span");
61
- elementAsLink = await page.find("calcite-link >>> a");
62
- expect(elementAsSpan).not.toBeNull();
63
- expect(elementAsLink).toBeNull();
64
- link.setProperty("href", "/");
65
- await page.waitForChanges();
66
- elementAsSpan = await page.find("calcite-link >>> span");
67
- elementAsLink = await page.find("calcite-link >>> a");
68
- expect(elementAsSpan).toBeNull();
69
- expect(elementAsLink).not.toBeNull();
70
- });
71
- it("renders as a link with default props", async () => {
72
- const page = await newE2EPage();
73
- await page.setContent(`<calcite-link href="/">Continue</calcite-link>`);
74
- const element = await page.find("calcite-link");
75
- const elementAsSpan = await page.find("calcite-link >>> span");
76
- const elementAsLink = await page.find("calcite-link >>> a");
77
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
78
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
79
- expect(element).not.toHaveAttribute("icon-flip-rtl");
80
- expect(elementAsLink).not.toBeNull();
81
- expect(elementAsSpan).toBeNull();
82
- expect(iconStart).toBeNull();
83
- expect(iconEnd).toBeNull();
84
- });
85
- it("renders as a span with requested props", async () => {
86
- const page = await newE2EPage();
87
- await page.setContent(`<calcite-link>Continue</calcite-link>`);
88
- const elementAsSpan = await page.find("calcite-link >>> span");
89
- const elementAsLink = await page.find("calcite-link >>> a");
90
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
91
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
92
- expect(elementAsLink).toBeNull();
93
- expect(elementAsSpan).not.toBeNull();
94
- expect(iconStart).toBeNull();
95
- expect(iconEnd).toBeNull();
96
- });
97
- it("renders as a link with requested props", async () => {
98
- const page = await newE2EPage();
99
- await page.setContent(`<calcite-link href="/">Continue</calcite-link>`);
100
- const elementAsSpan = await page.find("calcite-link >>> span");
101
- const elementAsLink = await page.find("calcite-link >>> a");
102
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
103
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
104
- expect(elementAsLink).not.toBeNull();
105
- expect(elementAsSpan).toBeNull();
106
- expect(iconStart).toBeNull();
107
- expect(iconEnd).toBeNull();
108
- });
109
- it("passes attributes to rendered child link", async () => {
110
- const page = await newE2EPage();
111
- await page.setContent(`<calcite-link rel="noopener noreferrer" target="_blank" class="mycustomclass" href="google.com">Continue</calcite-link>`);
112
- const elementAsSpan = await page.find("calcite-link >>> span");
113
- const elementAsLink = await page.find("calcite-link >>> a");
114
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
115
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
116
- expect(elementAsLink).not.toBeNull();
117
- expect(elementAsSpan).toBeNull();
118
- expect(elementAsLink).not.toHaveClass("mycustomclass");
119
- expect(elementAsLink).toEqualAttribute("href", "google.com");
120
- expect(elementAsLink).toEqualAttribute("rel", "noopener noreferrer");
121
- expect(elementAsLink).toEqualAttribute("target", "_blank");
122
- expect(iconStart).toBeNull();
123
- expect(iconEnd).toBeNull();
124
- });
125
- it("renders with an icon-start", async () => {
126
- const page = await newE2EPage();
127
- await page.setContent(`<calcite-link icon-start='plus'>Continue</calcite-link>`);
128
- const elementAsSpan = await page.find("calcite-link >>> span");
129
- const elementAsLink = await page.find("calcite-link >>> a");
130
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
131
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
132
- expect(elementAsLink).toBeNull();
133
- expect(elementAsSpan).not.toBeNull();
134
- expect(iconStart).not.toBeNull();
135
- expect(iconEnd).toBeNull();
136
- });
137
- it("renders with an icon-end", async () => {
138
- const page = await newE2EPage();
139
- await page.setContent(`<calcite-link icon-end='plus'>Continue</calcite-link>`);
140
- const elementAsSpan = await page.find("calcite-link >>> span");
141
- const elementAsLink = await page.find("calcite-link >>> a");
142
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
143
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
144
- expect(elementAsLink).toBeNull();
145
- expect(elementAsSpan).not.toBeNull();
146
- expect(iconStart).toBeNull();
147
- expect(iconEnd).not.toBeNull();
148
- });
149
- it("renders with an icon-start and icon-end", async () => {
150
- const page = await newE2EPage();
151
- await page.setContent(`<calcite-link icon-start='plus' icon-end='plus'>Continue</calcite-link>`);
152
- const elementAsSpan = await page.find("calcite-link >>> span");
153
- const elementAsLink = await page.find("calcite-link >>> a");
154
- const iconStart = await page.find("calcite-link >>> .calcite-link--icon.icon-start");
155
- const iconEnd = await page.find("calcite-link >>> .calcite-link--icon.icon-end");
156
- expect(elementAsLink).toBeNull();
157
- expect(elementAsSpan).not.toBeNull();
158
- expect(iconStart).not.toBeNull();
159
- expect(iconEnd).not.toBeNull();
160
- });
161
- describe("link interactivity", () => {
162
- const targetPage = "#test";
163
- let page;
164
- let pageUrl;
165
- let targetUrl;
166
- beforeEach(async () => {
167
- page = await newE2EPage({
168
- html: `<calcite-link href="/${targetPage}">link</calcite-link>`
169
- });
170
- pageUrl = page.url();
171
- targetUrl = `${pageUrl}${targetPage}`;
172
- });
173
- it("keyboard", async () => {
174
- const element = await page.find("calcite-link");
175
- await element.callMethod("setFocus");
176
- await page.keyboard.press("Enter");
177
- await page.waitForChanges();
178
- expect(page.url()).toBe(targetUrl);
179
- });
180
- it("mouse", async () => {
181
- // workaround for https://github.com/puppeteer/puppeteer/issues/2977
182
- await page.$eval("calcite-link", (link) => {
183
- link.shadowRoot.querySelector("a").click();
184
- });
185
- await page.waitForChanges();
186
- expect(page.url()).toBe(targetUrl);
187
- });
188
- it("non user-initiated click event", async () => {
189
- const link = await page.find("calcite-link");
190
- const clickEvent = await link.spyOnEvent("click");
191
- // helps test click behavior via HTMLElement.click()
192
- await link.callMethod("click");
193
- await page.waitForChanges();
194
- expect(page.url()).toBe(targetUrl);
195
- // make sure forwarded internal event does not propagate
196
- expect(clickEvent).toHaveReceivedEventTimes(1);
197
- });
198
- });
199
- describe("CSS properties for light/dark themes", () => {
200
- const linkHtml = `
201
- <h3>
202
- A link <calcite-link href="#" title="in the middle with an icon" icon-start='launch'>
203
- with an icon </calcite-link> in some text.
204
- </h3>
205
- `;
206
- let page;
207
- let link;
208
- let linkStyles;
209
- let linkUnderlineStyle;
210
- it("should have defined CSS custom properties", async () => {
211
- page = await newE2EPage({ html: linkHtml });
212
- linkUnderlineStyle = await page.evaluate(() => {
213
- link = document.querySelector("calcite-link");
214
- link.style.setProperty("--calcite-link-blue-underline", "red");
215
- return window.getComputedStyle(link).getPropertyValue("--calcite-link-blue-underline");
216
- });
217
- expect(linkUnderlineStyle).toEqual("red");
218
- });
219
- describe("when theme attribute is not provided", () => {
220
- it("should render link background with default value tied to light theme", async () => {
221
- page = await newE2EPage({ html: linkHtml });
222
- link = await page.find("calcite-link >>> a");
223
- linkStyles = await link.getComputedStyle();
224
- linkUnderlineStyle = await linkStyles.getPropertyValue("background-image");
225
- expect(linkUnderlineStyle).toEqual("linear-gradient(rgb(0, 97, 155), rgb(0, 97, 155)), linear-gradient(rgba(0, 97, 155, 0.4), rgba(0, 97, 155, 0.4))");
226
- });
227
- });
228
- describe("when theme attribute is dark", () => {
229
- it("should render link background with value tied to dark theme", async () => {
230
- page = await newE2EPage({
231
- html: `<article class="calcite-theme-dark">${linkHtml}</article>`
232
- });
233
- link = await page.find("calcite-link >>> a");
234
- linkStyles = await link.getComputedStyle();
235
- linkUnderlineStyle = await linkStyles.getPropertyValue("background-image");
236
- expect(linkUnderlineStyle).toEqual("linear-gradient(rgb(0, 160, 255), rgb(0, 160, 255)), linear-gradient(rgba(0, 160, 255, 0.4), rgba(0, 160, 255, 0.4))");
237
- });
238
- });
239
- it("should allow the CSS custom property to be overridden", async () => {
240
- const overrideStyle = "rgba(255, 244, 40, 0.5)";
241
- page = await newE2EPage({
242
- html: `
243
- <style>
244
- :root {
245
- --calcite-link-blue-underline: ${overrideStyle};
246
- }
247
- </style>
248
- ${linkHtml}
249
- `
250
- });
251
- link = await page.find("calcite-link >>> a");
252
- linkStyles = await link.getComputedStyle();
253
- linkUnderlineStyle = await linkStyles.getPropertyValue("background-image");
254
- expect(linkUnderlineStyle).toEqual(`linear-gradient(rgb(0, 97, 155), rgb(0, 97, 155)), linear-gradient(${overrideStyle}, ${overrideStyle})`);
255
- });
256
- });
257
- });
@@ -1,32 +0,0 @@
1
- import { accessible, hidden, renders, focusable, disabled } from "../../tests/commonTests";
2
- import { placeholderImage } from "../../tests/utils";
3
- import { html } from "../../../support/formatting";
4
- const placeholder = placeholderImage({
5
- width: 140,
6
- height: 100
7
- });
8
- describe("calcite-list", () => {
9
- it("renders", async () => renders("calcite-list", { display: "block" }));
10
- it("is focusable", () => focusable(html `<calcite-list>
11
- <calcite-list-item label="test" description="hello world"></calcite-list-item>
12
- </calcite-list>`, {
13
- focusTargetSelector: "calcite-list-item"
14
- }));
15
- it("honors hidden attribute", async () => hidden("calcite-list"));
16
- it("should be accessible", async () => {
17
- await accessible(`<calcite-list>
18
- <calcite-list-item label="candy" description="kingdom">
19
- <calcite-action icon="banana" label="finn" slot="actions-start" />
20
- <calcite-icon icon="banana" slot="content-start" />
21
- <img slot="content-start" src="${placeholder}" alt="Test image" />
22
- <calcite-icon icon="banana" slot="content-end" />
23
- <calcite-action icon="banana" label="jake" slot="actions-end" />
24
- </calcite-list-item>
25
- <calcite-list-item label="test" non-interactive description="hello world"></calcite-list-item>
26
- <calcite-list-item label="test" description="hello world"></calcite-list-item>
27
- </calcite-list>`);
28
- });
29
- it("can be disabled", () => disabled(html `<calcite-list>
30
- <calcite-list-item label="test" description="hello world"></calcite-list-item>
31
- </calcite-list>`, { focusTarget: "child" }));
32
- });
@@ -1,46 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { hidden, renders, focusable, slots, disabled } from "../../tests/commonTests";
3
- import { defaults } from "../../tests/commonTests";
4
- import { CSS, SLOTS } from "./resources";
5
- describe("calcite-list-item", () => {
6
- it("renders", async () => renders("calcite-list-item", { display: "flex" }));
7
- it("is focusable", () => focusable("calcite-list-item", {
8
- shadowFocusTargetSelector: `.${CSS.contentContainerButton}`
9
- }));
10
- it("honors hidden attribute", async () => hidden("calcite-list-item"));
11
- it("has property defaults", async () => defaults("calcite-list-item", [
12
- {
13
- propertyName: "nonInteractive",
14
- defaultValue: false
15
- },
16
- {
17
- propertyName: "description",
18
- defaultValue: undefined
19
- },
20
- {
21
- propertyName: "disabled",
22
- defaultValue: false
23
- },
24
- {
25
- propertyName: "label",
26
- defaultValue: undefined
27
- }
28
- ]));
29
- it("has slots", () => slots("calcite-list-item", SLOTS));
30
- it("can be disabled", () => disabled(`<calcite-list-item label="test"></calcite-list-item>`));
31
- it("renders content node when label is provided", async () => {
32
- const page = await newE2EPage({ html: `<calcite-list-item label="test"></calcite-list-item>` });
33
- const contentNode = await page.find(`calcite-list-item >>> .${CSS.content}`);
34
- expect(contentNode).not.toBeNull();
35
- });
36
- it("renders content node when description is provided", async () => {
37
- const page = await newE2EPage({ html: `<calcite-list-item description="test"></calcite-list-item>` });
38
- const contentNode = await page.find(`calcite-list-item >>> .${CSS.content}`);
39
- expect(contentNode).not.toBeNull();
40
- });
41
- it("does not render content node when description and label is not provided", async () => {
42
- const page = await newE2EPage({ html: `<calcite-list-item></calcite-list-item>` });
43
- const contentNode = await page.find(`calcite-list-item >>> .${CSS.content}`);
44
- expect(contentNode).toBeNull();
45
- });
46
- });
@@ -1,16 +0,0 @@
1
- import { hidden, renders } from "../../tests/commonTests";
2
- import { defaults } from "../../tests/commonTests";
3
- describe("calcite-list-item-group", () => {
4
- it("renders", async () => renders("calcite-list-item-group", { display: "flex" }));
5
- it("honors hidden attribute", async () => hidden("calcite-list-item-group"));
6
- it("has property defaults", async () => defaults("calcite-list-item-group", [
7
- {
8
- propertyName: "heading",
9
- defaultValue: undefined
10
- },
11
- {
12
- propertyName: "headingLevel",
13
- defaultValue: undefined
14
- }
15
- ]));
16
- });
@@ -1,49 +0,0 @@
1
- import { newE2EPage } from "@stencil/core/testing";
2
- import { renders, hidden } from "../../tests/commonTests";
3
- describe("calcite-loader", () => {
4
- it("renders", async () => {
5
- await renders("calcite-loader", { display: "none", visible: false });
6
- await renders(`<calcite-loader active></calcite-loader>`, { display: "flex", visible: true });
7
- });
8
- it("honors hidden attribute", async () => hidden("calcite-loader"));
9
- it("displays label from text prop", async () => {
10
- const page = await newE2EPage();
11
- await page.setContent(`<calcite-loader active text="testing"></calcite-loader>`);
12
- const elm = await page.find("calcite-loader >>> .loader__text");
13
- expect(elm).toEqualText("testing");
14
- });
15
- it("sets aria attributes properly for indeterminate loader", async () => {
16
- const page = await newE2EPage();
17
- await page.setContent(`<calcite-loader></calcite-loader>`);
18
- const loader = await page.find("calcite-loader");
19
- expect(loader).toEqualAttribute("role", "progressbar");
20
- expect(loader).not.toHaveAttribute("aria-valuemin");
21
- expect(loader).not.toHaveAttribute("aria-valuemax");
22
- expect(loader).not.toHaveAttribute("aria-valuenow");
23
- });
24
- it("sets aria attributes properly for determinate loader", async () => {
25
- const page = await newE2EPage();
26
- await page.setContent(`<calcite-loader type="determinate"></calcite-loader>`);
27
- const loader = await page.find("calcite-loader");
28
- expect(loader).toHaveAttribute("aria-valuenow");
29
- expect(loader).toEqualAttribute("aria-valuenow", 0);
30
- expect(loader).toEqualAttribute("aria-valuemin", 0);
31
- expect(loader).toEqualAttribute("aria-valuemax", 100);
32
- loader.setProperty("value", 24);
33
- await page.waitForChanges();
34
- expect(loader).toEqualAttribute("aria-valuenow", 24);
35
- });
36
- it("displays inline with text from inline prop", async () => {
37
- const page = await newE2EPage();
38
- await page.setContent(`<calcite-loader active inline></calcite-loader>`);
39
- const rect = await page.find("calcite-loader >>> circle");
40
- expect(rect).toEqualAttribute("r", "7.2");
41
- });
42
- it("sets a default id when none is provided", async () => {
43
- const page = await newE2EPage();
44
- await page.setContent(`<calcite-loader active></calcite-loader>`);
45
- const loader = await page.find("calcite-loader");
46
- expect(loader).toHaveAttribute("id");
47
- expect(loader.getAttribute("id").length).toEqual(36);
48
- });
49
- });