@esri/calcite-components 5.1.1-next.6 → 5.1.2-next.0

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 (243) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/{F7RQCNJ4.js → 22ZEEBHY.js} +1 -1
  3. package/dist/cdn/{YI3ZMHS5.js → 2E5VWP5F.js} +1 -1
  4. package/dist/cdn/{KB2WIMAL.js → 2IH3A7XP.js} +1 -1
  5. package/dist/cdn/{MWMTHMMN.js → 35O6UEOL.js} +1 -1
  6. package/dist/cdn/{WVJUNLFN.js → 3DHLIYTZ.js} +1 -1
  7. package/dist/cdn/{TQJK5WF5.js → 3LBQM6E5.js} +1 -1
  8. package/dist/cdn/3OUO73FE.js +2 -0
  9. package/dist/cdn/3UQ52WEC.js +2 -0
  10. package/dist/cdn/{F5MS5PBN.js → 46QVRBZQ.js} +1 -1
  11. package/dist/cdn/{YFUBBPNI.js → 4DEE5DJG.js} +1 -1
  12. package/dist/cdn/{3BUDIEL3.js → 4ESXF6CD.js} +1 -1
  13. package/dist/cdn/4GINWH77.js +2 -0
  14. package/dist/cdn/{7M4ANW77.js → 4GLWWIFB.js} +1 -1
  15. package/dist/cdn/55B3DHRL.js +2 -0
  16. package/dist/cdn/{32QFEQZS.js → 5AIYVBUE.js} +1 -1
  17. package/dist/cdn/{Y44WJ7Z2.js → 5GSQDOTM.js} +1 -1
  18. package/dist/cdn/{3XFDQDVC.js → 5JMEGSKG.js} +1 -1
  19. package/dist/cdn/{NAJTDRNC.js → 5P6PZGTL.js} +1 -1
  20. package/dist/cdn/{3XMNPYNB.js → 5RKV22NY.js} +1 -1
  21. package/dist/cdn/{WYGNUS2B.js → 5XBX6MS4.js} +1 -1
  22. package/dist/cdn/{MRRVOAJL.js → 65AE3WDH.js} +1 -1
  23. package/dist/cdn/{QN4XN67Z.js → 6DMJVTU7.js} +1 -1
  24. package/dist/cdn/{M2TFDONT.js → 7CPR7ZY6.js} +1 -1
  25. package/dist/cdn/{Z2GSU7Q2.js → 7LJPLUHO.js} +1 -1
  26. package/dist/cdn/{VYXKMJSU.js → 7Q7ZAE37.js} +1 -1
  27. package/dist/cdn/{ROY5CHB3.js → 7S7I3ZX6.js} +1 -1
  28. package/dist/cdn/{CUSR767T.js → 7TIC7MWH.js} +1 -1
  29. package/dist/cdn/{ND7KY7GE.js → AE6WIDBA.js} +1 -1
  30. package/dist/cdn/{U6NA5WAH.js → ANR6MBC5.js} +1 -1
  31. package/dist/cdn/AQZ7H27V.js +2 -0
  32. package/dist/cdn/AUY3K2CK.js +2 -0
  33. package/dist/cdn/{VWQPK5JA.js → B2ZOCHY5.js} +1 -1
  34. package/dist/cdn/B74ZW4VM.js +2 -0
  35. package/dist/cdn/{74CLXGQH.js → BSFLNK3G.js} +1 -1
  36. package/dist/cdn/{JQIHTMWX.js → BX7JMSW4.js} +1 -1
  37. package/dist/cdn/{45C4ENM6.js → BXUDOEEY.js} +1 -1
  38. package/dist/cdn/{OXKGEAUB.js → BZW75APA.js} +1 -1
  39. package/dist/cdn/{QXPWDVC2.js → CCMLFJRX.js} +1 -1
  40. package/dist/cdn/{C4PPQBLW.js → CHVYZBJP.js} +1 -1
  41. package/dist/cdn/{5X2CR2NN.js → CQMH7FNX.js} +1 -1
  42. package/dist/cdn/{REW7C42W.js → D5RB7ITG.js} +1 -1
  43. package/dist/cdn/{IHGSINVA.js → D7WOEWO3.js} +1 -1
  44. package/dist/cdn/{ATWAUE4R.js → DAUDD3TU.js} +1 -1
  45. package/dist/cdn/{I2DNOFC6.js → DH7CVA3S.js} +1 -1
  46. package/dist/cdn/{5RJTKL4J.js → DIVK7SUE.js} +1 -1
  47. package/dist/cdn/{CDGEWGDD.js → DUFMSJ4N.js} +1 -1
  48. package/dist/cdn/{RZR44QGM.js → DVG3NA3H.js} +1 -1
  49. package/dist/cdn/{RIEKXKB2.js → DZ2ML6RL.js} +1 -1
  50. package/dist/cdn/{N3YQ6P66.js → E274U5KY.js} +1 -1
  51. package/dist/cdn/{5SYOHCLD.js → E5KOELX6.js} +1 -1
  52. package/dist/cdn/{JMKB4CRU.js → EBDWLL34.js} +1 -1
  53. package/dist/cdn/{YNG6JO67.js → EH5Y2TRK.js} +1 -1
  54. package/dist/cdn/{WAXTXFBL.js → FA5NVFJF.js} +1 -1
  55. package/dist/cdn/{5N32D533.js → FPSAFKXP.js} +1 -1
  56. package/dist/cdn/{D2HPEC7F.js → FQTCAXYA.js} +1 -1
  57. package/dist/cdn/{E4MGJ47Y.js → FQZZCTBU.js} +1 -1
  58. package/dist/cdn/{2VL3OCAZ.js → FR5GKBKS.js} +1 -1
  59. package/dist/cdn/{G62VTWNT.js → FTH3OHTR.js} +1 -1
  60. package/dist/cdn/{5L5RJCKK.js → GA2SRL7F.js} +1 -1
  61. package/dist/cdn/{IXQQO6HC.js → GCCKUDLZ.js} +1 -1
  62. package/dist/cdn/{BTSHRUHD.js → GFJSIQAL.js} +1 -1
  63. package/dist/cdn/{F3E7QPPC.js → GQV6EPVW.js} +1 -1
  64. package/dist/cdn/{CUTXFNYN.js → GUYWR6OU.js} +1 -1
  65. package/dist/cdn/{7YNDWV76.js → GVPG6GL6.js} +1 -1
  66. package/dist/cdn/{27MK2V4G.js → H5OQUUCS.js} +1 -1
  67. package/dist/cdn/{5QXKHC54.js → HNFN5XI4.js} +1 -1
  68. package/dist/cdn/{A332WZ6V.js → HOZFU3MX.js} +1 -1
  69. package/dist/cdn/{EJUEMY56.js → HS67EN4X.js} +1 -1
  70. package/dist/cdn/{TMWGSGAP.js → I5FHLUKC.js} +1 -1
  71. package/dist/cdn/{N6V2UT62.js → IDT2SXTU.js} +1 -1
  72. package/dist/cdn/{KQGUXAM6.js → IIK67UVJ.js} +1 -1
  73. package/dist/cdn/{W3N2DKPC.js → J4NTIVMX.js} +1 -1
  74. package/dist/cdn/{VVJGLEIA.js → JBJREVM7.js} +1 -1
  75. package/dist/cdn/{773VWCGD.js → JGIGYWX4.js} +1 -1
  76. package/dist/cdn/{OJO5NPP3.js → JKB2GJ3L.js} +1 -1
  77. package/dist/cdn/{CZPSEMDH.js → KJ3CYYKH.js} +1 -1
  78. package/dist/cdn/KRJOJQ44.js +2 -0
  79. package/dist/cdn/KZAI3CI3.js +2 -0
  80. package/dist/cdn/{UE4QYUAU.js → LBE47OKH.js} +1 -1
  81. package/dist/cdn/{SBQVCX2M.js → LELOCWEB.js} +1 -1
  82. package/dist/cdn/LWJGPTE6.js +2 -0
  83. package/dist/cdn/{5WFJNGXP.js → M3FXEHEJ.js} +1 -1
  84. package/dist/cdn/{2MRL4RKW.js → MOFJZGJJ.js} +1 -1
  85. package/dist/cdn/{Y6WCKCHJ.js → MSMAWAGB.js} +1 -1
  86. package/dist/cdn/{5JIKOOZ6.js → NFJSGECW.js} +1 -1
  87. package/dist/cdn/{JDAOWOTY.js → NFSJVK6S.js} +1 -1
  88. package/dist/cdn/{KJNTF66K.js → NV73Q6Y3.js} +1 -1
  89. package/dist/cdn/{FKX46Z6K.js → NWCJZZUP.js} +1 -1
  90. package/dist/cdn/{SGZ3IG5W.js → NXXNNPTZ.js} +1 -1
  91. package/dist/cdn/OAHYAUPC.js +2 -0
  92. package/dist/cdn/{RVXZUGJA.js → OJOSD3I3.js} +1 -1
  93. package/dist/cdn/{MD2UCHOX.js → OKEUM3YZ.js} +1 -1
  94. package/dist/cdn/{6W4CWLXH.js → ON5SZ43I.js} +1 -1
  95. package/dist/cdn/{EHS7L663.js → OO4DL46D.js} +1 -1
  96. package/dist/cdn/{GEKASHNF.js → OXAULX56.js} +1 -1
  97. package/dist/cdn/{TPML2DIA.js → OYI5HS2H.js} +1 -1
  98. package/dist/cdn/{3VNZC64N.js → PF2E72GP.js} +1 -1
  99. package/dist/cdn/{XTGDCTQE.js → PGOMURMZ.js} +1 -1
  100. package/dist/cdn/{WRQD4O6A.js → PTENM6H3.js} +1 -1
  101. package/dist/cdn/PZBMDHWQ.js +2 -0
  102. package/dist/cdn/{72XY7IDN.js → QEET4SDM.js} +1 -1
  103. package/dist/cdn/QEJPO65G.js +2 -0
  104. package/dist/cdn/{RDOHAXOA.js → QU4Q7ONO.js} +1 -1
  105. package/dist/cdn/{TRN7FUFM.js → QUBOBRBE.js} +1 -1
  106. package/dist/cdn/{YBFI2FQL.js → QUFMR3GW.js} +1 -1
  107. package/dist/cdn/{6N246L5H.js → R6QHGRLY.js} +1 -1
  108. package/dist/cdn/{HQHM5NWX.js → RAPPDCJC.js} +1 -1
  109. package/dist/cdn/{2PEF7GQE.js → RCKGNXG5.js} +1 -1
  110. package/dist/cdn/{O6PZKJ7R.js → ROD7LNFF.js} +1 -1
  111. package/dist/cdn/{IRDSJTUK.js → RRG7YZBV.js} +1 -1
  112. package/dist/cdn/{74UIHSVE.js → RUFVN26P.js} +1 -1
  113. package/dist/cdn/{BZJYGCDK.js → SNI7EAIB.js} +1 -1
  114. package/dist/cdn/{6MUZLYOR.js → T3FWIMHQ.js} +1 -1
  115. package/dist/cdn/{PJSI5N6F.js → THKF3UIU.js} +1 -1
  116. package/dist/cdn/{ERBKUSSX.js → TLYY3J5P.js} +1 -1
  117. package/dist/cdn/{CBUNIAKL.js → TMJJBLP6.js} +1 -1
  118. package/dist/cdn/{KCENWQ6Z.js → TNK2ZMWI.js} +1 -1
  119. package/dist/cdn/{TFTS26NS.js → TO7Y5WZH.js} +1 -1
  120. package/dist/cdn/{PW2XM5HR.js → TPA4W766.js} +1 -1
  121. package/dist/cdn/{NDVX6CLP.js → TPACOVOQ.js} +1 -1
  122. package/dist/cdn/{SH7DQCS7.js → TQ5ZBZVK.js} +1 -1
  123. package/dist/cdn/U5CB5AOH.js +2 -0
  124. package/dist/cdn/{4Q7PL2KY.js → UANLRLKZ.js} +1 -1
  125. package/dist/cdn/{3NNR2AZU.js → UILRTNAY.js} +1 -1
  126. package/dist/cdn/{DJMAPSDY.js → UJSGNQNS.js} +1 -1
  127. package/dist/cdn/{34WAUXUE.js → UMNCTZMZ.js} +1 -1
  128. package/dist/cdn/{UIFHJ5IO.js → UQADROG7.js} +1 -1
  129. package/dist/cdn/{ZEEFJOPQ.js → UU6TKA7Y.js} +1 -1
  130. package/dist/cdn/{4NYY44U4.js → V7X5QMP5.js} +1 -1
  131. package/dist/cdn/{FE3TGEP7.js → VKOMYCKU.js} +1 -1
  132. package/dist/cdn/{C4DX6ZIA.js → VL5MBQLU.js} +1 -1
  133. package/dist/cdn/{OB3Z74X6.js → VLTH6OI4.js} +1 -1
  134. package/dist/cdn/{FZTLSQJL.js → VTIIXIO2.js} +1 -1
  135. package/dist/cdn/{SS4J7QES.js → VVLIBG27.js} +1 -1
  136. package/dist/cdn/{CQYI4Z2Z.js → W776TYSB.js} +1 -1
  137. package/dist/cdn/{UOSSQPFY.js → WBG5KGIT.js} +1 -1
  138. package/dist/cdn/{DEQNFOAS.js → WE6LDLUR.js} +1 -1
  139. package/dist/cdn/{5CBFI2KM.js → WJLDQOSL.js} +1 -1
  140. package/dist/cdn/{XCNAJ4XA.js → WMAINNWS.js} +1 -1
  141. package/dist/cdn/{RUNWK23I.js → WMRHH4QJ.js} +1 -1
  142. package/dist/cdn/WYWBO53V.js +2 -0
  143. package/dist/cdn/XPV23QFC.js +2 -0
  144. package/dist/cdn/XXOHZXFG.js +2 -0
  145. package/dist/cdn/{R4C3WA5S.js → Y7HCDFPY.js} +1 -1
  146. package/dist/cdn/{ZBN5LXKS.js → YCBJZOJS.js} +1 -1
  147. package/dist/cdn/{3H6RVKMN.js → YETMUH7M.js} +1 -1
  148. package/dist/cdn/{WUBPEGFV.js → YPGTWYGF.js} +1 -1
  149. package/dist/cdn/{FKPCRFUW.js → YVT2GP5U.js} +1 -1
  150. package/dist/cdn/{6UM5PQBD.js → ZAWIMU5V.js} +1 -1
  151. package/dist/cdn/{72EJ64LI.js → ZU6VN5T5.js} +1 -1
  152. package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
  153. package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
  154. package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
  155. package/dist/cdn/assets/icon/fireIndex16.json +1 -0
  156. package/dist/cdn/assets/icon/fireIndex24.json +1 -0
  157. package/dist/cdn/assets/icon/fireIndex32.json +1 -0
  158. package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
  159. package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
  160. package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
  161. package/dist/cdn/assets/icon/snowIndex16.json +1 -0
  162. package/dist/cdn/assets/icon/snowIndex24.json +1 -0
  163. package/dist/cdn/assets/icon/snowIndex32.json +1 -0
  164. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
  165. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
  166. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
  167. package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
  168. package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
  169. package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
  170. package/dist/cdn/index.js +1 -1
  171. package/dist/chunks/openCloseComponent.js +1 -1
  172. package/dist/chunks/resources10.js +19 -0
  173. package/dist/chunks/resources11.js +63 -0
  174. package/dist/chunks/resources5.js +40 -51
  175. package/dist/chunks/resources6.js +24 -46
  176. package/dist/chunks/resources7.js +53 -8
  177. package/dist/chunks/resources8.js +50 -10
  178. package/dist/chunks/resources9.js +7 -53
  179. package/dist/chunks/runtime.js +4 -4
  180. package/dist/chunks/utils.js +9 -15
  181. package/dist/chunks/utils2.js +59 -6
  182. package/dist/components/calcite-block/customElement.d.ts +9 -9
  183. package/dist/components/calcite-block/customElement.js +8 -49
  184. package/dist/components/calcite-block-group/customElement.js +3 -5
  185. package/dist/components/calcite-block-section/customElement.d.ts +5 -5
  186. package/dist/components/calcite-block-section/customElement.js +1 -1
  187. package/dist/components/calcite-button/customElement.d.ts +8 -8
  188. package/dist/components/calcite-button/customElement.js +3 -3
  189. package/dist/components/calcite-checkbox/customElement.js +1 -1
  190. package/dist/components/calcite-chip/customElement.js +1 -27
  191. package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
  192. package/dist/components/calcite-color-picker/customElement.js +23 -20
  193. package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
  194. package/dist/components/calcite-color-picker-hex-input/customElement.js +4 -4
  195. package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
  196. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  197. package/dist/components/calcite-combobox/customElement.js +286 -132
  198. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  199. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  200. package/dist/components/calcite-dialog/customElement.js +1 -1
  201. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  202. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  203. package/dist/components/calcite-flow-item/customElement.d.ts +7 -1
  204. package/dist/components/calcite-flow-item/customElement.js +1 -1
  205. package/dist/components/calcite-input/customElement.js +1 -1
  206. package/dist/components/calcite-input-date-picker/customElement.js +5 -10
  207. package/dist/components/calcite-input-number/customElement.js +1 -1
  208. package/dist/components/calcite-input-text/customElement.js +1 -1
  209. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  210. package/dist/components/calcite-list/customElement.js +1 -1
  211. package/dist/components/calcite-list-item/customElement.js +1 -1
  212. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  213. package/dist/components/calcite-panel/customElement.js +1 -1
  214. package/dist/components/calcite-stack/customElement.js +1 -1
  215. package/dist/docs/api.json +1 -1
  216. package/dist/docs/docs.json +1 -1
  217. package/dist/docs/vscode.html-custom-data.json +1 -1
  218. package/dist/docs/web-types.json +1 -1
  219. package/dist/types/lumina.d.ts +1 -1
  220. package/dist/types/preact.d.ts +1 -1
  221. package/dist/types/react.d.ts +1 -1
  222. package/dist/types/stencil.d.ts +1 -1
  223. package/package.json +3 -3
  224. package/dist/cdn/25SUELBY.js +0 -2
  225. package/dist/cdn/73EQ5TEB.js +0 -2
  226. package/dist/cdn/7AOQ4FPG.js +0 -2
  227. package/dist/cdn/C2BK5CUC.js +0 -2
  228. package/dist/cdn/DAXLXKIY.js +0 -2
  229. package/dist/cdn/DSQ47C3C.js +0 -2
  230. package/dist/cdn/DZSC3TJX.js +0 -2
  231. package/dist/cdn/GYYFBZS2.js +0 -2
  232. package/dist/cdn/I5HZNPIE.js +0 -2
  233. package/dist/cdn/OGNY6ZIB.js +0 -2
  234. package/dist/cdn/OWJYARYV.js +0 -2
  235. package/dist/cdn/QABVNEOF.js +0 -2
  236. package/dist/cdn/VCDOY22T.js +0 -2
  237. package/dist/cdn/VYZ6WAWT.js +0 -2
  238. package/dist/cdn/Z7NNDJEN.js +0 -2
  239. /package/dist/cdn/{IYGANVDT.js → 2G2ZTAXT.js} +0 -0
  240. /package/dist/cdn/{UM6KICQF.js → 5ZULUIQ5.js} +0 -0
  241. /package/dist/cdn/{MYDCGCGV.js → EWIZKNXQ.js} +0 -0
  242. /package/dist/cdn/{DCWL5FUH.js → EZQV6OUW.js} +0 -0
  243. /package/dist/cdn/{R6HABYRV.js → SXELOWJI.js} +0 -0
@@ -15,7 +15,7 @@ const CSS = {
15
15
  toggle: "toggle",
16
16
  check: "check-svg"
17
17
  };
18
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-hover)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
18
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`;
19
19
  class Checkbox extends LitElement {
20
20
  constructor() {
21
21
  super();
@@ -9,33 +9,7 @@ import { g as getIconScale } from "../../chunks/component.js";
9
9
  import { u as useT9n } from "../../chunks/useT9n.js";
10
10
  import { u as useSetFocus } from "../../chunks/useSetFocus.js";
11
11
  import { u as useInteractive } from "../../chunks/useInteractive.js";
12
- const CSS = {
13
- title: "title",
14
- close: "close",
15
- imageContainer: "image-container",
16
- chipIcon: "chip-icon",
17
- textSlotted: "text--slotted",
18
- container: "container",
19
- imageSlotted: "image--slotted",
20
- closable: "closable",
21
- multiple: "multiple",
22
- single: "single",
23
- selectable: "selectable",
24
- selectIcon: "select-icon",
25
- selectIconActive: "select-icon--active",
26
- nonInteractive: "non-interactive",
27
- isCircle: "is-circle",
28
- selected: "selected"
29
- };
30
- const SLOTS = {
31
- image: "image"
32
- };
33
- const ICONS = {
34
- close: "x",
35
- checkedSingle: "circle-f",
36
- uncheckedMultiple: "square",
37
- checkedMultiple: "check-square-f"
38
- };
12
+ import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources6.js";
39
13
  const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-flex;cursor:default;border-radius:var(--calcite-chip-corner-radius, 9999px)}:host([closed]){display:none}:host([appearance=outline]) .container,:host([appearance=outline-fill]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-hover-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-active-border-color: var( --calcite-chip-border-color, var(--calcite-color-brand) )}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-inverse))}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-1))}:host([appearance=outline]){--calcite-internal-chip-background-color: transparent}:host([appearance=outline-fill]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-1))}:host([appearance=solid]){--calcite-internal-chip-border-color: transparent;--calcite-internal-chip-selectable-hover-border-color: transparent;--calcite-internal-chip-selectable-active-border-color: transparent}:host([appearance=solid]):host([kind=brand]),:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-close-background-color-hover: var(--calcite-color-transparent-inverse-hover);--calcite-internal-chip-close-background-color-press: var(--calcite-color-transparent-inverse-press);--calcite-internal-chip-close-icon-color: var(--calcite-color-text-inverse);--calcite-internal-chip-close-icon-color-hover: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]) .container,:host([appearance=solid]):host([kind=inverse]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-inverse))}:host([appearance=solid]):host([kind=brand]) .close,:host([appearance=solid]):host([kind=inverse]) .close{--calcite-color-focus: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-brand))}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-inverse))}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-2))}:host([kind=neutral]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([selected]) .select-icon{opacity:1}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-border-2)}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-inverse-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-inverse-press)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-brand-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline-fill]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3)}:host([appearance=outline]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press)}:host([scale=s]){--calcite-internal-chip-close-padding: var(--calcite-spacing-none)}:host([scale=s]) .container{--calcite-internal-chip-block-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--2);--calcite-internal-chip-icon-size: var(--calcite-size-xs, 1rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-image-size: var(--calcite-spacing-xl, 1.25rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-close-size: var(--calcite-size-xs, 1rem) }:host([scale=s]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px)}:host([scale=s]) .container.image--slotted:has(.chip-icon),:host([scale=s]) .container.image--slotted.text--slotted,:host([scale=s]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.image--slotted:not(.text--slotted,:has(.chip-icon)),:host([scale=s]) .container.image--slotted:not(.selectable){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=s]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.multiple:not(.is-circle).image--slotted:not(.text--slotted){--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=m]) .container{--calcite-internal-chip-block-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--1);--calcite-internal-chip-icon-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-image-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-close-size: var(--calcite-size-sm, 1.5rem) }:host([scale=m]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=m]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.image--slotted:has(.chip-icon),:host([scale=m]) .container.image--slotted.text--slotted,:host([scale=m]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=m]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.multiple:not(.is-circle){--calcite-internal-chip-select-space-x-end: .125rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=m]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=l]) .container{--calcite-internal-chip-block-size: 2.75rem ;--calcite-internal-chip-container-space-x-end: .5rem ;--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-font-size: var(--calcite-font-size-0);--calcite-internal-chip-icon-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-icon-space: .5rem ;--calcite-internal-chip-image-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-title-space: .5rem ;--calcite-internal-close-size: var(--calcite-size-md, 2rem) }:host([scale=l]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.image--slotted:has(.chip-icon),:host([scale=l]) .container.image--slotted.text--slotted,:host([scale=l]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: .5rem }:host([scale=l]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=l]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: .5rem }:host([scale=l]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .75rem }:host([scale=l]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) }.container{box-sizing:border-box;display:inline-flex;block-size:100%;max-inline-size:100%;align-items:center;justify-content:center;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-internal-chip-background-color);border-color:var(--calcite-internal-chip-border-color);border-radius:var(--calcite-chip-corner-radius, 9999px);border-width:var(--calcite-border-width-sm);border-style:solid;font-size:var(--calcite-internal-chip-font-size, var(--calcite-font-size));padding-inline-start:var(--calcite-internal-chip-container-space-x-start);padding-inline-end:var(--calcite-internal-chip-container-space-x-end);block-size:var(--calcite-internal-chip-block-size, auto);inline-size:var(--calcite-internal-chip-inline-size, auto);min-inline-size:var(--calcite-internal-chip-block-size, auto)}.container:hover .select-icon--active{opacity:var(--calcite-opacity-full, 1)}.container.selectable{cursor:pointer}.container.selectable:hover{background-color:var(--calcite-internal-chip-selectable-hover-background-color);border-color:var(--calcite-internal-chip-selectable-hover-border-color)}.container.selectable:active{background-color:var(--calcite-internal-chip-selectable-active-background-color);border-color:var(--calcite-internal-chip-selectable-active-border-color)}.container:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.text--slotted .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container:not(.text--slotted) .title,.container:not(.image--slotted) .image-container{display:none}.container.is-circle .chip-icon,.container.is-circle .image-container{padding:var(--calcite-spacing-none, 0)}.title{padding-inline:var(--calcite-internal-chip-title-space)}.image-container{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;pointer-events:none;block-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));padding-inline-start:var(--calcite-spacing-none, 0);padding-inline-end:var(--calcite-internal-chip-image-space-x-end, 0)}.chip-icon{position:relative;margin-block:0px;display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-chip-icon-color, var(--calcite-chip-text-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))));padding-inline:var(--calcite-internal-chip-icon-space, var(--calcite-spacing-xs, .375rem))}.select-icon{align-self:center;justify-content:center;align-items:center;display:flex;inset-block-start:-1px;position:absolute;visibility:hidden;inline-size:auto;opacity:0;transition:opacity .15s ease-in-out,inline-size .15s ease-in-out;color:var(--calcite-chip-select-icon-color, currentColor)}.select-icon.select-icon--active{position:relative;visibility:visible;opacity:var(--calcite-opacity-half, .5);color:var(--calcite-chip-select-icon-color-press, var(--calcite-chip-select-icon-color-pressed, var(--calcite-chip-select-icon-color, currentColor)))}.multiple .select-icon{display:flex;align-items:center;justify-content:center}.multiple .select-icon,.single .select-icon--active{padding-inline-start:var(--calcite-internal-chip-select-space-x-start);padding-inline-end:var(--calcite-internal-chip-select-space-x-end);block-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem))}.close{--calcite-action-background-color-hover: var(--calcite-internal-chip-close-background-color-hover);--calcite-action-background-color-press: var(--calcite-internal-chip-close-background-color-press);--calcite-action-corner-radius: var(--calcite-corner-radius-pill);--calcite-action-text-color: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color)) );--calcite-action-text-color-press: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color-hover)) );--calcite-icon-color: var(--calcite-action-text-color);--calcite-internal-action-min-height: unset;--calcite-internal-action-spacing: var(--calcite-internal-chip-close-padding)}slot[name=image]::slotted(*){display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
40
14
  class Chip extends LitElement {
41
15
  constructor() {
@@ -95,7 +95,7 @@ export abstract class ColorPicker extends LitElement {
95
95
  value?: string;
96
96
  };
97
97
  /** Specifies the Unicode numeral system used by the component for localization. */
98
- accessor numberingSystem: NumberingSystem;
98
+ accessor numberingSystem: NumberingSystem | undefined;
99
99
  /**
100
100
  * When `true`, hides the saved colors section.
101
101
  *
@@ -109,7 +109,7 @@ export abstract class ColorPicker extends LitElement {
109
109
  */
110
110
  accessor scale: Scale;
111
111
  /** Specifies the storage ID for colors. */
112
- accessor storageId: string;
112
+ accessor storageId: string | undefined;
113
113
  /**
114
114
  * The component's value, where the value can be a CSS color string, or a RGB, HSL or HSV object.
115
115
  *
@@ -118,7 +118,7 @@ export abstract class ColorPicker extends LitElement {
118
118
  * @see [MDN - CSS Color](https://developer.mozilla.org/en-US/docs/Web/CSS/color),
119
119
  * @see [ColorValue](https://github.com/Esri/calcite-design-system/blob/dev/packages/components/src/components/color-picker/interfaces.ts#L10).
120
120
  */
121
- accessor value: ColorValue | null;
121
+ accessor value: ColorValue | null | undefined;
122
122
  /**
123
123
  * Sets focus on the component's first focusable element.
124
124
  *
@@ -26,13 +26,11 @@ class ColorPicker extends LitElement {
26
26
  this.colorFieldScopeRef = createRef();
27
27
  this.direction = useDirection();
28
28
  this.hueScopeRef = createRef();
29
- this.internalColorUpdateContext = null;
30
29
  this.isActiveChannelInputEmpty = false;
31
30
  this.mode = CSSColorMode.HEX;
32
31
  this.opacityScopeRef = createRef();
33
32
  this.resizeObserver = createObserver("resize", (entries) => this.resizeCanvas(entries));
34
33
  this.shiftKeyChannelAdjustment = 0;
35
- this.upOrDownArrowKeyTracker = null;
36
34
  this._valueWasSet = false;
37
35
  this.messages = useT9n({ blocking: true });
38
36
  this.captureColorFieldColor = (x, y, skipEqual = true) => {
@@ -94,7 +92,7 @@ class ColorPicker extends LitElement {
94
92
  return;
95
93
  }
96
94
  const previouslyDragging = this.activeCanvasInfo;
97
- this.activeCanvasInfo = null;
95
+ this.activeCanvasInfo = void 0;
98
96
  this.drawColorControls();
99
97
  if (previouslyDragging) {
100
98
  this.calciteColorPickerChange.emit();
@@ -168,8 +166,9 @@ class ColorPicker extends LitElement {
168
166
  }
169
167
  set value(value) {
170
168
  const oldValue = this._value;
171
- this._value = value;
172
- this.handleValueChange(value, oldValue);
169
+ const effectiveValue = value || void 0;
170
+ this._value = effectiveValue;
171
+ this.handleValueChange(effectiveValue, oldValue);
173
172
  this._valueWasSet = true;
174
173
  }
175
174
  async setFocus(options) {
@@ -184,7 +183,8 @@ class ColorPicker extends LitElement {
184
183
  if (!this._valueWasSet) {
185
184
  this._value ??= normalizeHex(hexify(DEFAULT_COLOR, this.alphaChannel));
186
185
  }
187
- const { clearable, color, format, value } = this;
186
+ const { clearable, color, format } = this;
187
+ const value = this.value;
188
188
  const willSetNoColor = clearable && !value;
189
189
  const parsedMode = parseMode(value);
190
190
  const valueIsCompatible = willSetNoColor || format === "auto" && parsedMode || format === parsedMode;
@@ -197,8 +197,11 @@ class ColorPicker extends LitElement {
197
197
  this.updateStaticDimensions(this.scale);
198
198
  this.updateDynamicDimensions(STATIC_DIMENSIONS[this.scale].minWidth);
199
199
  const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
200
- if (this.storageId && localStorage.getItem(storageKey)) {
201
- this.savedColors = JSON.parse(localStorage.getItem(storageKey));
200
+ if (this.storageId) {
201
+ const storedItem = localStorage.getItem(storageKey);
202
+ if (storedItem) {
203
+ this.savedColors = JSON.parse(storedItem);
204
+ }
202
205
  }
203
206
  }
204
207
  willUpdate(changes) {
@@ -263,7 +266,7 @@ class ColorPicker extends LitElement {
263
266
  return;
264
267
  }
265
268
  modeChanged = this.mode !== nextMode;
266
- this.setMode(nextMode, this.internalColorUpdateContext === null);
269
+ this.setMode(nextMode, this.internalColorUpdateContext === void 0);
267
270
  }
268
271
  const dragging = this.activeCanvasInfo;
269
272
  if (this.internalColorUpdateContext === "initial") {
@@ -323,7 +326,7 @@ class ColorPicker extends LitElement {
323
326
  const input = event.target;
324
327
  const hex = input.value;
325
328
  if (clearable && !hex) {
326
- this.internalColorSet(null);
329
+ this.internalColorSet(void 0);
327
330
  return;
328
331
  }
329
332
  const normalizedHex = color && normalizeHex(hexify(color, alphaCompatible(this.mode)));
@@ -344,7 +347,7 @@ class ColorPicker extends LitElement {
344
347
  if (!input.value) {
345
348
  inputValue = "";
346
349
  this.isActiveChannelInputEmpty = true;
347
- this.upOrDownArrowKeyTracker = null;
350
+ this.upOrDownArrowKeyTracker = void 0;
348
351
  } else {
349
352
  const value = Number(input.value);
350
353
  const adjustedValue = value + this.shiftKeyChannelAdjustment;
@@ -364,7 +367,7 @@ class ColorPicker extends LitElement {
364
367
  const channels = [...this.channels];
365
368
  const restoreValueDueToEmptyInput = !input.value && !this.clearable;
366
369
  if (restoreValueDueToEmptyInput) {
367
- input.value = channels[channelIndex]?.toString();
370
+ input.value = channels[channelIndex]?.toString() ?? "";
368
371
  }
369
372
  }
370
373
  handleChannelFocus(event) {
@@ -399,18 +402,18 @@ class ColorPicker extends LitElement {
399
402
  handleChannelChange(event) {
400
403
  const input = event.currentTarget;
401
404
  const channelIndex = Number(input.getAttribute("data-channel-index"));
402
- const channels = [...this.channels];
403
405
  const shouldClearChannels = this.clearable && !input.value;
404
406
  if (shouldClearChannels) {
405
- this.channels = [null, null, null, null];
406
- this.internalColorSet(null);
407
+ this.channels = [void 0, void 0, void 0, void 0];
408
+ this.internalColorSet(void 0);
407
409
  return;
408
410
  }
411
+ const channels = [...this.channels];
409
412
  const isAlphaChannel = channelIndex === 3;
410
413
  if (this.isActiveChannelInputEmpty && this.upOrDownArrowKeyTracker) {
411
414
  input.value = this.upOrDownArrowKeyTracker === "up" ? (channels[channelIndex] + 1 <= this.getChannelInputLimit(channelIndex) ? channels[channelIndex] + 1 : this.getChannelInputLimit(channelIndex)).toString() : (channels[channelIndex] - 1 >= 0 ? channels[channelIndex] - 1 : 0).toString();
412
415
  this.isActiveChannelInputEmpty = false;
413
- this.upOrDownArrowKeyTracker = null;
416
+ this.upOrDownArrowKeyTracker = void 0;
414
417
  }
415
418
  const value = input.value ? Number(input.value) : channels[channelIndex];
416
419
  channels[channelIndex] = isAlphaChannel ? opacityToAlpha(value) : value;
@@ -497,11 +500,11 @@ class ColorPicker extends LitElement {
497
500
  this.internalColorUpdateContext = context;
498
501
  this.color = color;
499
502
  this.value = this.toValue(color);
500
- this.internalColorUpdateContext = null;
503
+ this.internalColorUpdateContext = void 0;
501
504
  }
502
505
  toValue(color, format = this.mode) {
503
506
  if (!color) {
504
- return null;
507
+ return void 0;
505
508
  }
506
509
  const hexMode = "hex";
507
510
  if (format.includes(hexMode)) {
@@ -814,7 +817,7 @@ class ColorPicker extends LitElement {
814
817
  this.internalColorSet(Color(channels, this.channelMode));
815
818
  }
816
819
  updateChannelsFromColor(color) {
817
- this.channels = color ? this.toChannels(color) : [null, null, null, null];
820
+ this.channels = color ? this.toChannels(color) : [void 0, void 0, void 0, void 0];
818
821
  }
819
822
  toChannels(color) {
820
823
  const { channelMode } = this;
@@ -830,7 +833,7 @@ class ColorPicker extends LitElement {
830
833
  render() {
831
834
  const { channelsDisabled, color, colorFieldScopeLeft, colorFieldScopeTop, staticDimensions: { thumb: { radius: thumbRadius } }, fieldDisabled, hexDisabled, hueScopeLeft, messages, alphaChannel, opacityScopeLeft, savedColors, savedDisabled, scale, scopeOrientation } = this;
832
835
  const sliderWidth = this.effectiveSliderWidth;
833
- const selectedColorInHex = color ? hexify(color, alphaChannel) : null;
836
+ const selectedColorInHex = color ? hexify(color, alphaChannel) : void 0;
834
837
  const hueTop = thumbRadius;
835
838
  const hueLeft = hueScopeLeft ?? sliderWidth * DEFAULT_COLOR.hue() / HSV_LIMITS.h;
836
839
  const opacityTop = thumbRadius;
@@ -34,7 +34,7 @@ export abstract class ColorPickerHexInput extends LitElement {
34
34
  */
35
35
  accessor scale: Scale;
36
36
  /** The hex value. */
37
- accessor value: string;
37
+ accessor value: string | undefined;
38
38
  /**
39
39
  * Sets focus on the component.
40
40
  *
@@ -39,7 +39,7 @@ class ColorPickerHexInput extends LitElement {
39
39
  }
40
40
  connectedCallback() {
41
41
  super.connectedCallback();
42
- this.previousNonNullValue = this.value;
42
+ this.previousDefinedValue = this.value;
43
43
  const { allowEmpty, alphaChannel, value } = this;
44
44
  if (value) {
45
45
  const normalized = normalizeHex(value, alphaChannel);
@@ -144,7 +144,7 @@ class ColorPickerHexInput extends LitElement {
144
144
  const oldValue = this.value;
145
145
  if (isNudgeKey) {
146
146
  if (!value) {
147
- this.internalSetValue(this.previousNonNullValue, oldValue);
147
+ this.internalSetValue(this.previousDefinedValue, oldValue);
148
148
  event.preventDefault();
149
149
  return;
150
150
  }
@@ -162,7 +162,7 @@ class ColorPickerHexInput extends LitElement {
162
162
  }
163
163
  }
164
164
  onHexInputPaste(event) {
165
- const hex = event.clipboardData.getData("text");
165
+ const hex = event.clipboardData?.getData("text");
166
166
  if (isValidHex(hex, this.alphaChannel) && isLonghandHex(hex, this.alphaChannel)) {
167
167
  event.preventDefault();
168
168
  this.hexInputRef.value.value = hex.slice(1);
@@ -179,7 +179,7 @@ class ColorPickerHexInput extends LitElement {
179
179
  const normalizedLonghand = normalizeHex(hexify(nextColor, alphaChannel), alphaChannel);
180
180
  const changed = !currentColor || normalizedLonghand !== normalizeHex(hexify(currentColor, alphaChannel), alphaChannel);
181
181
  this.internalColor = nextColor;
182
- this.previousNonNullValue = normalizedLonghand;
182
+ this.previousDefinedValue = normalizedLonghand;
183
183
  this.value = normalizedLonghand;
184
184
  if (changed && emit) {
185
185
  this.calciteColorPickerHexInputChange.emit();
@@ -15,7 +15,7 @@ export abstract class ColorPickerSwatch extends LitElement {
15
15
  *
16
16
  * @see [MDN - Color CSS data type](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
17
17
  */
18
- accessor color: string | null;
18
+ accessor color: string | undefined;
19
19
  /**
20
20
  * Specifies the size of the component.
21
21
  *
@@ -46,7 +46,7 @@ class ColorPickerSwatch extends LitElement {
46
46
  }
47
47
  }
48
48
  handleColorChange(color) {
49
- this.internalColor = color ? Color(color) : null;
49
+ this.internalColor = color ? Color(color) : void 0;
50
50
  }
51
51
  render() {
52
52
  const isEmpty = !this.internalColor;